@inploi/core
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,3 +5,3 @@ import { z } from 'zod'; | ||
declare const EndFlowNodeSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -25,3 +25,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "end-flow"; | ||
data: { | ||
@@ -32,2 +31,3 @@ text?: string | undefined; | ||
}; | ||
type: "end-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -37,3 +37,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "end-flow"; | ||
data: { | ||
@@ -44,2 +43,3 @@ text?: string | undefined; | ||
}; | ||
type: "end-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -51,5 +51,3 @@ nextId?: string | undefined; | ||
declare const CompleteFlowNodeSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
nextId: z.ZodOptional<z.ZodString>; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
data: z.ZodObject<{ | ||
@@ -68,6 +66,7 @@ text: z.ZodOptional<z.ZodString>; | ||
}>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
nextId: z.ZodOptional<z.ZodString>; | ||
type: z.ZodLiteral<"complete-flow">; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
type: "complete-flow"; | ||
data: { | ||
@@ -78,2 +77,3 @@ text?: string | undefined; | ||
}; | ||
type: "complete-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -83,3 +83,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "complete-flow"; | ||
data: { | ||
@@ -90,2 +89,3 @@ text?: string | undefined; | ||
}; | ||
type: "complete-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -97,3 +97,3 @@ nextId?: string | undefined; | ||
declare const TextNodeSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -111,6 +111,6 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "text"; | ||
data: { | ||
text: string; | ||
}; | ||
type: "text"; | ||
isHead?: boolean | undefined; | ||
@@ -120,6 +120,6 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "text"; | ||
data: { | ||
text: string; | ||
}; | ||
type: "text"; | ||
isHead?: boolean | undefined; | ||
@@ -131,3 +131,3 @@ nextId?: string | undefined; | ||
declare const ImageNodeSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -151,3 +151,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "image"; | ||
data: { | ||
@@ -158,2 +157,3 @@ url: string; | ||
}; | ||
type: "image"; | ||
isHead?: boolean | undefined; | ||
@@ -163,3 +163,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "image"; | ||
data: { | ||
@@ -170,2 +169,3 @@ url: string; | ||
}; | ||
type: "image"; | ||
isHead?: boolean | undefined; | ||
@@ -177,3 +177,3 @@ nextId?: string | undefined; | ||
declare const QuestionBooleanSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -197,3 +197,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-boolean"; | ||
data: { | ||
@@ -204,2 +203,3 @@ question: string; | ||
}; | ||
type: "question-boolean"; | ||
isHead?: boolean | undefined; | ||
@@ -209,3 +209,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-boolean"; | ||
data: { | ||
@@ -216,2 +215,3 @@ question: string; | ||
}; | ||
type: "question-boolean"; | ||
isHead?: boolean | undefined; | ||
@@ -223,3 +223,3 @@ nextId?: string | undefined; | ||
declare const QuestionTextSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -243,3 +243,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-text"; | ||
data: { | ||
@@ -250,2 +249,3 @@ question: string; | ||
}; | ||
type: "question-text"; | ||
isHead?: boolean | undefined; | ||
@@ -255,3 +255,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-text"; | ||
data: { | ||
@@ -262,2 +261,3 @@ question: string; | ||
}; | ||
type: "question-text"; | ||
isHead?: boolean | undefined; | ||
@@ -269,3 +269,3 @@ nextId?: string | undefined; | ||
declare const QuestionEnumSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -307,3 +307,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-enum"; | ||
data: { | ||
@@ -318,2 +317,3 @@ options: { | ||
}; | ||
type: "question-enum"; | ||
isHead?: boolean | undefined; | ||
@@ -323,3 +323,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-enum"; | ||
data: { | ||
@@ -334,2 +333,3 @@ options: { | ||
}; | ||
type: "question-enum"; | ||
isHead?: boolean | undefined; | ||
@@ -341,3 +341,3 @@ nextId?: string | undefined; | ||
declare const QuestionFileSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -358,3 +358,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-file"; | ||
data: { | ||
@@ -364,2 +363,3 @@ question: string; | ||
}; | ||
type: "question-file"; | ||
isHead?: boolean | undefined; | ||
@@ -369,3 +369,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-file"; | ||
data: { | ||
@@ -375,2 +374,3 @@ question: string; | ||
}; | ||
type: "question-file"; | ||
isHead?: boolean | undefined; | ||
@@ -382,3 +382,3 @@ nextId?: string | undefined; | ||
declare const QuestionAddressSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -442,3 +442,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-address"; | ||
data: { | ||
@@ -457,2 +456,3 @@ question: string; | ||
}; | ||
type: "question-address"; | ||
isHead?: boolean | undefined; | ||
@@ -462,3 +462,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-address"; | ||
data: { | ||
@@ -477,2 +476,3 @@ question: string; | ||
}; | ||
type: "question-address"; | ||
isHead?: boolean | undefined; | ||
@@ -484,3 +484,3 @@ nextId?: string | undefined; | ||
declare const IfBlockSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -505,3 +505,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "if-block"; | ||
data: { | ||
@@ -512,2 +511,3 @@ value: string; | ||
}; | ||
type: "if-block"; | ||
isHead?: boolean | undefined; | ||
@@ -518,3 +518,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "if-block"; | ||
data: { | ||
@@ -525,2 +524,3 @@ value: string; | ||
}; | ||
type: "if-block"; | ||
isHead?: boolean | undefined; | ||
@@ -533,3 +533,3 @@ nextId?: string | undefined; | ||
declare const JumpNodeSchema: z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -547,6 +547,6 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "jump"; | ||
data: { | ||
targetId: string; | ||
}; | ||
type: "jump"; | ||
isHead?: boolean | undefined; | ||
@@ -556,6 +556,6 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "jump"; | ||
data: { | ||
targetId: string; | ||
}; | ||
type: "jump"; | ||
isHead?: boolean | undefined; | ||
@@ -567,3 +567,3 @@ nextId?: string | undefined; | ||
declare const FlowNodeSchema: z.ZodUnion<[z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -581,6 +581,6 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "text"; | ||
data: { | ||
text: string; | ||
}; | ||
type: "text"; | ||
isHead?: boolean | undefined; | ||
@@ -590,10 +590,10 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "text"; | ||
data: { | ||
text: string; | ||
}; | ||
type: "text"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -617,3 +617,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "end-flow"; | ||
data: { | ||
@@ -624,2 +623,3 @@ text?: string | undefined; | ||
}; | ||
type: "end-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -629,3 +629,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "end-flow"; | ||
data: { | ||
@@ -636,8 +635,7 @@ text?: string | undefined; | ||
}; | ||
type: "end-flow"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
nextId: z.ZodOptional<z.ZodString>; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
data: z.ZodObject<{ | ||
@@ -656,6 +654,7 @@ text: z.ZodOptional<z.ZodString>; | ||
}>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
nextId: z.ZodOptional<z.ZodString>; | ||
type: z.ZodLiteral<"complete-flow">; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
type: "complete-flow"; | ||
data: { | ||
@@ -666,2 +665,3 @@ text?: string | undefined; | ||
}; | ||
type: "complete-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -671,3 +671,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "complete-flow"; | ||
data: { | ||
@@ -678,6 +677,7 @@ text?: string | undefined; | ||
}; | ||
type: "complete-flow"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -701,3 +701,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "image"; | ||
data: { | ||
@@ -708,2 +707,3 @@ url: string; | ||
}; | ||
type: "image"; | ||
isHead?: boolean | undefined; | ||
@@ -713,3 +713,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "image"; | ||
data: { | ||
@@ -720,6 +719,7 @@ url: string; | ||
}; | ||
type: "image"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -743,3 +743,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-boolean"; | ||
data: { | ||
@@ -750,2 +749,3 @@ question: string; | ||
}; | ||
type: "question-boolean"; | ||
isHead?: boolean | undefined; | ||
@@ -755,3 +755,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-boolean"; | ||
data: { | ||
@@ -762,6 +761,7 @@ question: string; | ||
}; | ||
type: "question-boolean"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -785,3 +785,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-text"; | ||
data: { | ||
@@ -792,2 +791,3 @@ question: string; | ||
}; | ||
type: "question-text"; | ||
isHead?: boolean | undefined; | ||
@@ -797,3 +797,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-text"; | ||
data: { | ||
@@ -804,6 +803,7 @@ question: string; | ||
}; | ||
type: "question-text"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -845,3 +845,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-enum"; | ||
data: { | ||
@@ -856,2 +855,3 @@ options: { | ||
}; | ||
type: "question-enum"; | ||
isHead?: boolean | undefined; | ||
@@ -861,3 +861,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-enum"; | ||
data: { | ||
@@ -872,6 +871,7 @@ options: { | ||
}; | ||
type: "question-enum"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -892,3 +892,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-file"; | ||
data: { | ||
@@ -898,2 +897,3 @@ question: string; | ||
}; | ||
type: "question-file"; | ||
isHead?: boolean | undefined; | ||
@@ -903,3 +903,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-file"; | ||
data: { | ||
@@ -909,6 +908,7 @@ question: string; | ||
}; | ||
type: "question-file"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -972,3 +972,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-address"; | ||
data: { | ||
@@ -987,2 +986,3 @@ question: string; | ||
}; | ||
type: "question-address"; | ||
isHead?: boolean | undefined; | ||
@@ -992,3 +992,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-address"; | ||
data: { | ||
@@ -1007,6 +1006,7 @@ question: string; | ||
}; | ||
type: "question-address"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1031,3 +1031,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "if-block"; | ||
data: { | ||
@@ -1038,2 +1037,3 @@ value: string; | ||
}; | ||
type: "if-block"; | ||
isHead?: boolean | undefined; | ||
@@ -1044,3 +1044,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "if-block"; | ||
data: { | ||
@@ -1051,2 +1050,3 @@ value: string; | ||
}; | ||
type: "if-block"; | ||
isHead?: boolean | undefined; | ||
@@ -1056,3 +1056,3 @@ nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1070,6 +1070,6 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "jump"; | ||
data: { | ||
targetId: string; | ||
}; | ||
type: "jump"; | ||
isHead?: boolean | undefined; | ||
@@ -1079,6 +1079,6 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "jump"; | ||
data: { | ||
targetId: string; | ||
}; | ||
type: "jump"; | ||
isHead?: boolean | undefined; | ||
@@ -1088,3 +1088,3 @@ nextId?: string | undefined; | ||
declare const FlowEventsSchema: z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1102,6 +1102,6 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "text"; | ||
data: { | ||
text: string; | ||
}; | ||
type: "text"; | ||
isHead?: boolean | undefined; | ||
@@ -1111,10 +1111,10 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "text"; | ||
data: { | ||
text: string; | ||
}; | ||
type: "text"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1138,3 +1138,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "end-flow"; | ||
data: { | ||
@@ -1145,2 +1144,3 @@ text?: string | undefined; | ||
}; | ||
type: "end-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -1150,3 +1150,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "end-flow"; | ||
data: { | ||
@@ -1157,8 +1156,7 @@ text?: string | undefined; | ||
}; | ||
type: "end-flow"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
nextId: z.ZodOptional<z.ZodString>; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
data: z.ZodObject<{ | ||
@@ -1177,6 +1175,7 @@ text: z.ZodOptional<z.ZodString>; | ||
}>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
nextId: z.ZodOptional<z.ZodString>; | ||
type: z.ZodLiteral<"complete-flow">; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
type: "complete-flow"; | ||
data: { | ||
@@ -1187,2 +1186,3 @@ text?: string | undefined; | ||
}; | ||
type: "complete-flow"; | ||
isHead?: boolean | undefined; | ||
@@ -1192,3 +1192,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "complete-flow"; | ||
data: { | ||
@@ -1199,6 +1198,7 @@ text?: string | undefined; | ||
}; | ||
type: "complete-flow"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1222,3 +1222,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "image"; | ||
data: { | ||
@@ -1229,2 +1228,3 @@ url: string; | ||
}; | ||
type: "image"; | ||
isHead?: boolean | undefined; | ||
@@ -1234,3 +1234,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "image"; | ||
data: { | ||
@@ -1241,6 +1240,7 @@ url: string; | ||
}; | ||
type: "image"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1264,3 +1264,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-boolean"; | ||
data: { | ||
@@ -1271,2 +1270,3 @@ question: string; | ||
}; | ||
type: "question-boolean"; | ||
isHead?: boolean | undefined; | ||
@@ -1276,3 +1276,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-boolean"; | ||
data: { | ||
@@ -1283,6 +1282,7 @@ question: string; | ||
}; | ||
type: "question-boolean"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1306,3 +1306,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-text"; | ||
data: { | ||
@@ -1313,2 +1312,3 @@ question: string; | ||
}; | ||
type: "question-text"; | ||
isHead?: boolean | undefined; | ||
@@ -1318,3 +1318,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-text"; | ||
data: { | ||
@@ -1325,6 +1324,7 @@ question: string; | ||
}; | ||
type: "question-text"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1366,3 +1366,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-enum"; | ||
data: { | ||
@@ -1377,2 +1376,3 @@ options: { | ||
}; | ||
type: "question-enum"; | ||
isHead?: boolean | undefined; | ||
@@ -1382,3 +1382,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-enum"; | ||
data: { | ||
@@ -1393,6 +1392,7 @@ options: { | ||
}; | ||
type: "question-enum"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1413,3 +1413,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-file"; | ||
data: { | ||
@@ -1419,2 +1418,3 @@ question: string; | ||
}; | ||
type: "question-file"; | ||
isHead?: boolean | undefined; | ||
@@ -1424,3 +1424,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-file"; | ||
data: { | ||
@@ -1430,6 +1429,7 @@ question: string; | ||
}; | ||
type: "question-file"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1493,3 +1493,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "question-address"; | ||
data: { | ||
@@ -1508,2 +1507,3 @@ question: string; | ||
}; | ||
type: "question-address"; | ||
isHead?: boolean | undefined; | ||
@@ -1513,3 +1513,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "question-address"; | ||
data: { | ||
@@ -1528,6 +1527,7 @@ question: string; | ||
}; | ||
type: "question-address"; | ||
isHead?: boolean | undefined; | ||
nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1552,3 +1552,2 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "if-block"; | ||
data: { | ||
@@ -1559,2 +1558,3 @@ value: string; | ||
}; | ||
type: "if-block"; | ||
isHead?: boolean | undefined; | ||
@@ -1565,3 +1565,2 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "if-block"; | ||
data: { | ||
@@ -1572,2 +1571,3 @@ value: string; | ||
}; | ||
type: "if-block"; | ||
isHead?: boolean | undefined; | ||
@@ -1577,3 +1577,3 @@ nextId?: string | undefined; | ||
}>, z.ZodObject<{ | ||
id: z.ZodString; | ||
id: z.ZodEffects<z.ZodString, string, string>; | ||
isHead: z.ZodOptional<z.ZodBoolean>; | ||
@@ -1591,6 +1591,6 @@ nextId: z.ZodOptional<z.ZodString>; | ||
id: string; | ||
type: "jump"; | ||
data: { | ||
targetId: string; | ||
}; | ||
type: "jump"; | ||
isHead?: boolean | undefined; | ||
@@ -1600,6 +1600,6 @@ nextId?: string | undefined; | ||
id: string; | ||
type: "jump"; | ||
data: { | ||
targetId: string; | ||
}; | ||
type: "jump"; | ||
isHead?: boolean | undefined; | ||
@@ -1606,0 +1606,0 @@ nextId?: string | undefined; |
@@ -30,4 +30,5 @@ "use strict"; | ||
var import_zod = require("zod"); | ||
var noUnderscores = (val) => !val.includes("_"); | ||
var BaseFlowNodeSchema = import_zod.z.object({ | ||
id: import_zod.z.coerce.string(), | ||
id: import_zod.z.coerce.string().refine(noUnderscores, "id cannot contain '_'. Please use '-' instead."), | ||
isHead: import_zod.z.boolean().optional(), | ||
@@ -34,0 +35,0 @@ nextId: import_zod.z.string().optional() |
{ | ||
"name": "@inploi/core", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
107188
1730