2
0

Add AB test block

Closes #449
This commit is contained in:
Baptiste Arnaud
2023-04-17 16:47:17 +02:00
parent b416c6e373
commit 7e937e1c7c
28 changed files with 443 additions and 21 deletions

View File

@ -1,4 +1,5 @@
export enum ItemType {
BUTTON,
CONDITION,
AB_TEST,
}

View File

@ -1,7 +1,11 @@
import { z } from 'zod'
import { buttonItemSchema } from '../blocks/inputs/choice'
import { conditionItemSchema } from '../blocks/logic/condition'
import { aItemSchema, bItemSchema } from '../blocks'
const itemSchema = buttonItemSchema.or(conditionItemSchema)
const itemSchema = buttonItemSchema
.or(conditionItemSchema)
.or(aItemSchema)
.or(bItemSchema)
export type Item = z.infer<typeof itemSchema>