Skip to content

Commit

Permalink
🚑 Make version in typebot session optional
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Aug 24, 2023
1 parent 06ecdf0 commit af0e727
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/embeds/wordpress/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Typebot](https://www.typebot.io "Typebot")
# [Typebot](https://www.typebot.io 'Typebot')

![WordPress version](https://img.shields.io/wordpress/plugin/v/typebot.svg) ![WordPress Rating](https://img.shields.io/wordpress/plugin/r/typebot.svg) ![WordPress Downloads](https://img.shields.io/wordpress/plugin/dt/typebot.svg)

Expand All @@ -8,4 +8,4 @@ The project is still a mess. I'd like to make it fully automatic (with GitHub wo

## Getting Started

// TO-DO
// TO-DO.
23 changes: 14 additions & 9 deletions packages/schemas/features/chat/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,20 @@ const scriptToExecuteSchema = z.object({

export const startTypebotSchema = z.preprocess(
preprocessTypebot,
typebotSchema._def.schema.pick({
version: true,
id: true,
groups: true,
edges: true,
variables: true,
settings: true,
theme: true,
})
typebotSchema._def.schema
.pick({
id: true,
groups: true,
edges: true,
variables: true,
settings: true,
theme: true,
})
.merge(
z.object({
version: typebotSchema._def.schema.shape.version.optional(),
})
)
)

const startParamsSchema = z.object({
Expand Down
19 changes: 12 additions & 7 deletions packages/schemas/features/chat/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ import { preprocessTypebot } from '../typebot/helpers/preprocessTypebot'

export const typebotInSessionStateSchema = z.preprocess(
preprocessTypebot,
publicTypebotSchema._def.schema.pick({
version: true,
id: true,
groups: true,
edges: true,
variables: true,
})
publicTypebotSchema._def.schema
.pick({
id: true,
groups: true,
edges: true,
variables: true,
})
.merge(
z.object({
version: publicTypebotSchema._def.schema.shape.version.optional(),
})
)
)
export type TypebotInSession = z.infer<typeof typebotInSessionStateSchema>

Expand Down

1 comment on commit af0e727

@vercel
Copy link

@vercel vercel bot commented on af0e727 Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

survey.digienge.io
tribe.ezbooking.ai
w.onewebcenter.com
zap.techadviser.in
ai.digitaldaftar.in
app.danielnalex.com
ask.realversity.org
blazecontrol.com.br
bot.carnaval.studio
linspecteuremma.site
malayanboosterhq.com
menukb.wpwakanda.com
offer.botscientis.us
ore.barrettamario.it
sellmycarglasgow.com
stephanesampa.online
superglicemia.com.br
talkbot.agfunnel.com
tenorioadvogados.com
uppity.wpwakanda.com
83701274.21000000.lol
87186327.21000000.one
90945247.21000000.one
97320578.21000000.one
98650901.21000000.one
abutton.wpwakanda.com
acelera.maxbot.com.br
aidigitalmarketing.kr
atendimento.vrauu.com
bbutton.wpwakanda.com
bot.anovaerarb.online
bot.coachayongzul.com
bot.digitalpointer.id
bot.eikju.photography
bot.incusservices.com
bot.mejoralasalud.fun
bot.meuesocial.com.br
bot.mycompany.reviews
bot.outstandbrand.com
bot.ramonmatos.com.br
bot.sharemyreview.net
bot.synapsegameia.com
bot.truongnguyen.live
bots.baptistearno.com
botz.cloudsiteapp.com
cdd.searchcube.com.sg
chat.missarkansas.org
chatbot.ownacademy.co
chats.maisefetivo.com
claudio-barros.online
criar.somaperuzzo.com
gotasafrodisiacas.com
homerun.wpwakanda.com
mdb.assessoria.ademir
portaldasanalises.com
prenota.aldoemaria.it
revistasaudeemdia.com
rossano.thegymgame.it
viewer-v2-typebot-io.vercel.app
mdb.assessoria.rodrigo.progenbr.com
register.thailandmicespecialist.com
mdb.assessoria.desideri.progenbr.com
mdb.assessoria.fernanda.progenbr.com
mdb.assessoria.jbatista.progenbr.com
mdb.assessoria.mauricio.progenbr.com
mdb.evento.autocadastro.progenbr.com
form.shopmercedesbenzsouthorlando.com
mdb.evento.equipeinterna.progenbr.com
bot.studiotecnicoimmobiliaremerelli.it
mdb.assessoria.boaventura.progenbr.com
mdb.assessoria.jtrebesqui.progenbr.com
pesquisa.escolamodacomproposito.com.br
anamnese.clinicaramosodontologia.com.br
gabinete.baleia.formulario.progenbr.com
mdb.assessoria.carreirinha.progenbr.com
chrome-os-inquiry-system.itschromeos.com
mdb.assessoria.paulomarques.progenbr.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com
mdb.assessoria.qrcode.ademir.progenbr.com
mdb.assessoria.qrcode.arthur.progenbr.com
mdb.assessoria.qrcode.danilo.progenbr.com
mdb.assessoria.qrcode.marcao.progenbr.com
mdb.assessoria.qrcode.marcio.progenbr.com
mdb.assessoria.qrcode.aloisio.progenbr.com
mdb.assessoria.qrcode.girotto.progenbr.com
mdb.assessoria.qrcode.marinho.progenbr.com
mdb.assessoria.qrcode.rodrigo.progenbr.com
mdb.assessoria.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.desideri.progenbr.com
mdb.assessoria.qrcode.fernanda.progenbr.com
mdb.assessoria.qrcode.jbatista.progenbr.com
mdb.assessoria.qrcode.mauricio.progenbr.com
mdb.assessoria.fernanda.regional.progenbr.com
mdb.assessoria.qrcode.boaventura.progenbr.com
mdb.assessoria.qrcode.jtrebesqui.progenbr.com
mdb.assessoria.qrcode.carreirinha.progenbr.com
mdb.assessoria.qrcode.paulomarques.progenbr.com
mdb.assessoria.qrcode.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.fernanda.regional.progenbr.com

Please sign in to comment.