@inploi/plugin-chatbot 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +3 -3
- package/cdn/style.css +1 -1
- package/dist/chatbot-body-0fa03ac8.cjs +1 -0
- package/dist/chatbot-body-735ba67a.js +4031 -0
- package/dist/chatbot.api.d.ts +117 -150
- package/dist/chatbot.utils.d.ts +39 -50
- package/dist/components/chat-input/chat-input.phone-number.d.ts +1 -0
- package/dist/index-4cbee407.cjs +5 -0
- package/dist/{index-df69f83a.js → index-803e84b9.js} +946 -890
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/rpc.d.ts +78 -100
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chatbot-body-1964a1ed.js +0 -3979
- package/dist/chatbot-body-6eb29db1.cjs +0 -1
- package/dist/index-0b742038.cjs +0 -5
package/dist/chatbot.api.d.ts
CHANGED
|
@@ -13,61 +13,63 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
13
13
|
readonly version: import('valibot').NumberSchema<undefined>;
|
|
14
14
|
readonly build: import('valibot').NumberSchema<undefined>;
|
|
15
15
|
readonly nodes: import('valibot').ArraySchema<GenericSchema<{
|
|
16
|
+
type: "text";
|
|
17
|
+
id: string;
|
|
16
18
|
data: {
|
|
17
19
|
text: string;
|
|
18
20
|
};
|
|
19
|
-
type: "text";
|
|
20
|
-
id: string;
|
|
21
21
|
isHead?: boolean | undefined;
|
|
22
22
|
nextId?: string | undefined;
|
|
23
23
|
} | {
|
|
24
|
+
type: "end-flow";
|
|
25
|
+
id: string;
|
|
24
26
|
data: {
|
|
25
27
|
systemMessage: string;
|
|
26
28
|
};
|
|
27
|
-
type: "end-flow";
|
|
28
|
-
id: string;
|
|
29
29
|
isHead?: boolean | undefined;
|
|
30
30
|
nextId?: string | undefined;
|
|
31
31
|
} | {
|
|
32
|
+
type: "integration-application-submit";
|
|
33
|
+
id: string;
|
|
32
34
|
data: {
|
|
33
35
|
integrationId: string;
|
|
34
36
|
skipConfirmation: boolean;
|
|
35
37
|
submitLabel: string;
|
|
36
|
-
submitKeys:
|
|
38
|
+
submitKeys: "all" | string[];
|
|
37
39
|
key?: string | undefined;
|
|
38
40
|
};
|
|
39
|
-
type: "integration-application-submit";
|
|
40
|
-
id: string;
|
|
41
41
|
isHead?: boolean | undefined;
|
|
42
42
|
nextId?: string | undefined;
|
|
43
43
|
} | {
|
|
44
|
+
type: "integration-workflow-get";
|
|
45
|
+
id: string;
|
|
44
46
|
data: {
|
|
45
47
|
integrationId: string;
|
|
46
48
|
};
|
|
47
|
-
type: "integration-workflow-get";
|
|
48
|
-
id: string;
|
|
49
49
|
isHead?: boolean | undefined;
|
|
50
50
|
nextId?: string | undefined;
|
|
51
51
|
} | {
|
|
52
|
+
type: "link";
|
|
53
|
+
id: string;
|
|
52
54
|
data: {
|
|
53
55
|
href: string;
|
|
54
56
|
cta: string;
|
|
55
57
|
};
|
|
56
|
-
type: "link";
|
|
57
|
-
id: string;
|
|
58
58
|
isHead?: boolean | undefined;
|
|
59
59
|
nextId?: string | undefined;
|
|
60
60
|
} | {
|
|
61
|
+
type: "image";
|
|
62
|
+
id: string;
|
|
61
63
|
data: {
|
|
62
64
|
url: string;
|
|
63
65
|
width: number;
|
|
64
66
|
height: number;
|
|
65
67
|
};
|
|
66
|
-
type: "image";
|
|
67
|
-
id: string;
|
|
68
68
|
isHead?: boolean | undefined;
|
|
69
69
|
nextId?: string | undefined;
|
|
70
70
|
} | {
|
|
71
|
+
type: "question-boolean";
|
|
72
|
+
id: string;
|
|
71
73
|
data: {
|
|
72
74
|
key: string;
|
|
73
75
|
question: string;
|
|
@@ -75,11 +77,11 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
75
77
|
falseLabel: string;
|
|
76
78
|
optional: boolean;
|
|
77
79
|
};
|
|
78
|
-
type: "question-boolean";
|
|
79
|
-
id: string;
|
|
80
80
|
isHead?: boolean | undefined;
|
|
81
81
|
nextId?: string | undefined;
|
|
82
82
|
} | {
|
|
83
|
+
type: "question-text";
|
|
84
|
+
id: string;
|
|
83
85
|
data: {
|
|
84
86
|
key: string;
|
|
85
87
|
question: string;
|
|
@@ -89,11 +91,11 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
89
91
|
maxChars?: number | undefined;
|
|
90
92
|
minChars?: number | undefined;
|
|
91
93
|
};
|
|
92
|
-
type: "question-text";
|
|
93
|
-
id: string;
|
|
94
94
|
isHead?: boolean | undefined;
|
|
95
95
|
nextId?: string | undefined;
|
|
96
96
|
} | {
|
|
97
|
+
type: "question-number";
|
|
98
|
+
id: string;
|
|
97
99
|
data: {
|
|
98
100
|
key: string;
|
|
99
101
|
question: string;
|
|
@@ -103,11 +105,11 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
103
105
|
min?: number | undefined;
|
|
104
106
|
max?: number | undefined;
|
|
105
107
|
};
|
|
106
|
-
type: "question-number";
|
|
107
|
-
id: string;
|
|
108
108
|
isHead?: boolean | undefined;
|
|
109
109
|
nextId?: string | undefined;
|
|
110
110
|
} | {
|
|
111
|
+
type: "question-phone";
|
|
112
|
+
id: string;
|
|
111
113
|
data: {
|
|
112
114
|
key: string;
|
|
113
115
|
question: string;
|
|
@@ -116,11 +118,11 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
116
118
|
minChars: number;
|
|
117
119
|
defaultCountryCode: string;
|
|
118
120
|
};
|
|
119
|
-
type: "question-phone";
|
|
120
|
-
id: string;
|
|
121
121
|
isHead?: boolean | undefined;
|
|
122
122
|
nextId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
+
type: "question-enum";
|
|
125
|
+
id: string;
|
|
124
126
|
data: {
|
|
125
127
|
options: {
|
|
126
128
|
value: string;
|
|
@@ -131,11 +133,11 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
131
133
|
maxSelected: number;
|
|
132
134
|
minSelected: number;
|
|
133
135
|
};
|
|
134
|
-
type: "question-enum";
|
|
135
|
-
id: string;
|
|
136
136
|
isHead?: boolean | undefined;
|
|
137
137
|
nextId?: string | undefined;
|
|
138
138
|
} | {
|
|
139
|
+
type: "question-file";
|
|
140
|
+
id: string;
|
|
139
141
|
data: {
|
|
140
142
|
key: string;
|
|
141
143
|
question: string;
|
|
@@ -144,11 +146,11 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
144
146
|
multiple?: boolean | undefined;
|
|
145
147
|
maxSizeKb?: number | undefined;
|
|
146
148
|
};
|
|
147
|
-
type: "question-file";
|
|
148
|
-
id: string;
|
|
149
149
|
isHead?: boolean | undefined;
|
|
150
150
|
nextId?: string | undefined;
|
|
151
151
|
} | {
|
|
152
|
+
type: "question-address";
|
|
153
|
+
id: string;
|
|
152
154
|
data: {
|
|
153
155
|
keys: {
|
|
154
156
|
line1: string | null;
|
|
@@ -164,23 +166,12 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
164
166
|
optional: boolean;
|
|
165
167
|
placeholder?: string | undefined;
|
|
166
168
|
};
|
|
167
|
-
type: "question-address";
|
|
168
|
-
id: string;
|
|
169
169
|
isHead?: boolean | undefined;
|
|
170
170
|
nextId?: string | undefined;
|
|
171
171
|
} | {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
176
|
-
} | {
|
|
177
|
-
combinator: "and" | "or";
|
|
178
|
-
conditions: {
|
|
179
|
-
compareKey: string;
|
|
180
|
-
compareValue: string;
|
|
181
|
-
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
182
|
-
}[];
|
|
183
|
-
}) & ({
|
|
172
|
+
type: "if-block";
|
|
173
|
+
id: string;
|
|
174
|
+
data: {
|
|
184
175
|
compareKey: string;
|
|
185
176
|
compareValue: string;
|
|
186
177
|
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
@@ -191,49 +182,47 @@ export declare const FlowSchema: import('valibot').ObjectSchema<{
|
|
|
191
182
|
compareValue: string;
|
|
192
183
|
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
193
184
|
}[];
|
|
194
|
-
}
|
|
195
|
-
type: "if-block";
|
|
196
|
-
id: string;
|
|
185
|
+
};
|
|
197
186
|
isHead?: boolean | undefined;
|
|
198
187
|
nextId?: string | undefined;
|
|
199
188
|
branchId?: string | undefined;
|
|
200
189
|
} | {
|
|
190
|
+
type: "jump";
|
|
191
|
+
id: string;
|
|
201
192
|
data: {
|
|
202
193
|
targetId: string;
|
|
203
194
|
};
|
|
204
|
-
type: "jump";
|
|
205
|
-
id: string;
|
|
206
195
|
isHead?: boolean | undefined;
|
|
207
196
|
nextId?: string | undefined;
|
|
208
197
|
} | {
|
|
198
|
+
type: "add-submission";
|
|
199
|
+
id: string;
|
|
209
200
|
data: {
|
|
210
201
|
value: string;
|
|
211
202
|
key: string;
|
|
212
203
|
};
|
|
213
|
-
type: "add-submission";
|
|
214
|
-
id: string;
|
|
215
204
|
isHead?: boolean | undefined;
|
|
216
205
|
nextId?: string | undefined;
|
|
217
206
|
} | {
|
|
207
|
+
type: "identify";
|
|
208
|
+
id: string;
|
|
218
209
|
data: {
|
|
219
210
|
key: string;
|
|
211
|
+
email?: string | undefined;
|
|
220
212
|
firstName?: string | undefined;
|
|
221
213
|
lastName?: string | undefined;
|
|
222
214
|
phoneNumber?: string | undefined;
|
|
223
|
-
email?: string | undefined;
|
|
224
215
|
customTraits?: {
|
|
225
216
|
value: string;
|
|
226
217
|
key: string;
|
|
227
218
|
}[] | undefined;
|
|
228
219
|
};
|
|
229
|
-
type: "identify";
|
|
230
|
-
id: string;
|
|
231
220
|
isHead?: boolean | undefined;
|
|
232
221
|
nextId?: string | undefined;
|
|
233
222
|
} | {
|
|
234
|
-
data: {};
|
|
235
223
|
type: "feedback";
|
|
236
224
|
id: string;
|
|
225
|
+
data: {};
|
|
237
226
|
isHead?: boolean | undefined;
|
|
238
227
|
nextId?: string | undefined;
|
|
239
228
|
}>, undefined>;
|
|
@@ -249,61 +238,63 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
249
238
|
readonly version: import('valibot').NumberSchema<undefined>;
|
|
250
239
|
readonly build: import('valibot').NumberSchema<undefined>;
|
|
251
240
|
readonly nodes: import('valibot').ArraySchema<GenericSchema<{
|
|
241
|
+
type: "text";
|
|
242
|
+
id: string;
|
|
252
243
|
data: {
|
|
253
244
|
text: string;
|
|
254
245
|
};
|
|
255
|
-
type: "text";
|
|
256
|
-
id: string;
|
|
257
246
|
isHead?: boolean | undefined;
|
|
258
247
|
nextId?: string | undefined;
|
|
259
248
|
} | {
|
|
249
|
+
type: "end-flow";
|
|
250
|
+
id: string;
|
|
260
251
|
data: {
|
|
261
252
|
systemMessage: string;
|
|
262
253
|
};
|
|
263
|
-
type: "end-flow";
|
|
264
|
-
id: string;
|
|
265
254
|
isHead?: boolean | undefined;
|
|
266
255
|
nextId?: string | undefined;
|
|
267
256
|
} | {
|
|
257
|
+
type: "integration-application-submit";
|
|
258
|
+
id: string;
|
|
268
259
|
data: {
|
|
269
260
|
integrationId: string;
|
|
270
261
|
skipConfirmation: boolean;
|
|
271
262
|
submitLabel: string;
|
|
272
|
-
submitKeys:
|
|
263
|
+
submitKeys: "all" | string[];
|
|
273
264
|
key?: string | undefined;
|
|
274
265
|
};
|
|
275
|
-
type: "integration-application-submit";
|
|
276
|
-
id: string;
|
|
277
266
|
isHead?: boolean | undefined;
|
|
278
267
|
nextId?: string | undefined;
|
|
279
268
|
} | {
|
|
269
|
+
type: "integration-workflow-get";
|
|
270
|
+
id: string;
|
|
280
271
|
data: {
|
|
281
272
|
integrationId: string;
|
|
282
273
|
};
|
|
283
|
-
type: "integration-workflow-get";
|
|
284
|
-
id: string;
|
|
285
274
|
isHead?: boolean | undefined;
|
|
286
275
|
nextId?: string | undefined;
|
|
287
276
|
} | {
|
|
277
|
+
type: "link";
|
|
278
|
+
id: string;
|
|
288
279
|
data: {
|
|
289
280
|
href: string;
|
|
290
281
|
cta: string;
|
|
291
282
|
};
|
|
292
|
-
type: "link";
|
|
293
|
-
id: string;
|
|
294
283
|
isHead?: boolean | undefined;
|
|
295
284
|
nextId?: string | undefined;
|
|
296
285
|
} | {
|
|
286
|
+
type: "image";
|
|
287
|
+
id: string;
|
|
297
288
|
data: {
|
|
298
289
|
url: string;
|
|
299
290
|
width: number;
|
|
300
291
|
height: number;
|
|
301
292
|
};
|
|
302
|
-
type: "image";
|
|
303
|
-
id: string;
|
|
304
293
|
isHead?: boolean | undefined;
|
|
305
294
|
nextId?: string | undefined;
|
|
306
295
|
} | {
|
|
296
|
+
type: "question-boolean";
|
|
297
|
+
id: string;
|
|
307
298
|
data: {
|
|
308
299
|
key: string;
|
|
309
300
|
question: string;
|
|
@@ -311,11 +302,11 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
311
302
|
falseLabel: string;
|
|
312
303
|
optional: boolean;
|
|
313
304
|
};
|
|
314
|
-
type: "question-boolean";
|
|
315
|
-
id: string;
|
|
316
305
|
isHead?: boolean | undefined;
|
|
317
306
|
nextId?: string | undefined;
|
|
318
307
|
} | {
|
|
308
|
+
type: "question-text";
|
|
309
|
+
id: string;
|
|
319
310
|
data: {
|
|
320
311
|
key: string;
|
|
321
312
|
question: string;
|
|
@@ -325,11 +316,11 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
325
316
|
maxChars?: number | undefined;
|
|
326
317
|
minChars?: number | undefined;
|
|
327
318
|
};
|
|
328
|
-
type: "question-text";
|
|
329
|
-
id: string;
|
|
330
319
|
isHead?: boolean | undefined;
|
|
331
320
|
nextId?: string | undefined;
|
|
332
321
|
} | {
|
|
322
|
+
type: "question-number";
|
|
323
|
+
id: string;
|
|
333
324
|
data: {
|
|
334
325
|
key: string;
|
|
335
326
|
question: string;
|
|
@@ -339,11 +330,11 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
339
330
|
min?: number | undefined;
|
|
340
331
|
max?: number | undefined;
|
|
341
332
|
};
|
|
342
|
-
type: "question-number";
|
|
343
|
-
id: string;
|
|
344
333
|
isHead?: boolean | undefined;
|
|
345
334
|
nextId?: string | undefined;
|
|
346
335
|
} | {
|
|
336
|
+
type: "question-phone";
|
|
337
|
+
id: string;
|
|
347
338
|
data: {
|
|
348
339
|
key: string;
|
|
349
340
|
question: string;
|
|
@@ -352,11 +343,11 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
352
343
|
minChars: number;
|
|
353
344
|
defaultCountryCode: string;
|
|
354
345
|
};
|
|
355
|
-
type: "question-phone";
|
|
356
|
-
id: string;
|
|
357
346
|
isHead?: boolean | undefined;
|
|
358
347
|
nextId?: string | undefined;
|
|
359
348
|
} | {
|
|
349
|
+
type: "question-enum";
|
|
350
|
+
id: string;
|
|
360
351
|
data: {
|
|
361
352
|
options: {
|
|
362
353
|
value: string;
|
|
@@ -367,11 +358,11 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
367
358
|
maxSelected: number;
|
|
368
359
|
minSelected: number;
|
|
369
360
|
};
|
|
370
|
-
type: "question-enum";
|
|
371
|
-
id: string;
|
|
372
361
|
isHead?: boolean | undefined;
|
|
373
362
|
nextId?: string | undefined;
|
|
374
363
|
} | {
|
|
364
|
+
type: "question-file";
|
|
365
|
+
id: string;
|
|
375
366
|
data: {
|
|
376
367
|
key: string;
|
|
377
368
|
question: string;
|
|
@@ -380,11 +371,11 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
380
371
|
multiple?: boolean | undefined;
|
|
381
372
|
maxSizeKb?: number | undefined;
|
|
382
373
|
};
|
|
383
|
-
type: "question-file";
|
|
384
|
-
id: string;
|
|
385
374
|
isHead?: boolean | undefined;
|
|
386
375
|
nextId?: string | undefined;
|
|
387
376
|
} | {
|
|
377
|
+
type: "question-address";
|
|
378
|
+
id: string;
|
|
388
379
|
data: {
|
|
389
380
|
keys: {
|
|
390
381
|
line1: string | null;
|
|
@@ -400,23 +391,12 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
400
391
|
optional: boolean;
|
|
401
392
|
placeholder?: string | undefined;
|
|
402
393
|
};
|
|
403
|
-
type: "question-address";
|
|
404
|
-
id: string;
|
|
405
394
|
isHead?: boolean | undefined;
|
|
406
395
|
nextId?: string | undefined;
|
|
407
396
|
} | {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
412
|
-
} | {
|
|
413
|
-
combinator: "and" | "or";
|
|
414
|
-
conditions: {
|
|
415
|
-
compareKey: string;
|
|
416
|
-
compareValue: string;
|
|
417
|
-
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
418
|
-
}[];
|
|
419
|
-
}) & ({
|
|
397
|
+
type: "if-block";
|
|
398
|
+
id: string;
|
|
399
|
+
data: {
|
|
420
400
|
compareKey: string;
|
|
421
401
|
compareValue: string;
|
|
422
402
|
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
@@ -427,49 +407,47 @@ export declare const FlowByIdPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
427
407
|
compareValue: string;
|
|
428
408
|
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
429
409
|
}[];
|
|
430
|
-
}
|
|
431
|
-
type: "if-block";
|
|
432
|
-
id: string;
|
|
410
|
+
};
|
|
433
411
|
isHead?: boolean | undefined;
|
|
434
412
|
nextId?: string | undefined;
|
|
435
413
|
branchId?: string | undefined;
|
|
436
414
|
} | {
|
|
415
|
+
type: "jump";
|
|
416
|
+
id: string;
|
|
437
417
|
data: {
|
|
438
418
|
targetId: string;
|
|
439
419
|
};
|
|
440
|
-
type: "jump";
|
|
441
|
-
id: string;
|
|
442
420
|
isHead?: boolean | undefined;
|
|
443
421
|
nextId?: string | undefined;
|
|
444
422
|
} | {
|
|
423
|
+
type: "add-submission";
|
|
424
|
+
id: string;
|
|
445
425
|
data: {
|
|
446
426
|
value: string;
|
|
447
427
|
key: string;
|
|
448
428
|
};
|
|
449
|
-
type: "add-submission";
|
|
450
|
-
id: string;
|
|
451
429
|
isHead?: boolean | undefined;
|
|
452
430
|
nextId?: string | undefined;
|
|
453
431
|
} | {
|
|
432
|
+
type: "identify";
|
|
433
|
+
id: string;
|
|
454
434
|
data: {
|
|
455
435
|
key: string;
|
|
436
|
+
email?: string | undefined;
|
|
456
437
|
firstName?: string | undefined;
|
|
457
438
|
lastName?: string | undefined;
|
|
458
439
|
phoneNumber?: string | undefined;
|
|
459
|
-
email?: string | undefined;
|
|
460
440
|
customTraits?: {
|
|
461
441
|
value: string;
|
|
462
442
|
key: string;
|
|
463
443
|
}[] | undefined;
|
|
464
444
|
};
|
|
465
|
-
type: "identify";
|
|
466
|
-
id: string;
|
|
467
445
|
isHead?: boolean | undefined;
|
|
468
446
|
nextId?: string | undefined;
|
|
469
447
|
} | {
|
|
470
|
-
data: {};
|
|
471
448
|
type: "feedback";
|
|
472
449
|
id: string;
|
|
450
|
+
data: {};
|
|
473
451
|
isHead?: boolean | undefined;
|
|
474
452
|
nextId?: string | undefined;
|
|
475
453
|
}>, undefined>;
|
|
@@ -488,61 +466,63 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
488
466
|
readonly version: import('valibot').NumberSchema<undefined>;
|
|
489
467
|
readonly build: import('valibot').NumberSchema<undefined>;
|
|
490
468
|
readonly nodes: import('valibot').ArraySchema<GenericSchema<{
|
|
469
|
+
type: "text";
|
|
470
|
+
id: string;
|
|
491
471
|
data: {
|
|
492
472
|
text: string;
|
|
493
473
|
};
|
|
494
|
-
type: "text";
|
|
495
|
-
id: string;
|
|
496
474
|
isHead?: boolean | undefined;
|
|
497
475
|
nextId?: string | undefined;
|
|
498
476
|
} | {
|
|
477
|
+
type: "end-flow";
|
|
478
|
+
id: string;
|
|
499
479
|
data: {
|
|
500
480
|
systemMessage: string;
|
|
501
481
|
};
|
|
502
|
-
type: "end-flow";
|
|
503
|
-
id: string;
|
|
504
482
|
isHead?: boolean | undefined;
|
|
505
483
|
nextId?: string | undefined;
|
|
506
484
|
} | {
|
|
485
|
+
type: "integration-application-submit";
|
|
486
|
+
id: string;
|
|
507
487
|
data: {
|
|
508
488
|
integrationId: string;
|
|
509
489
|
skipConfirmation: boolean;
|
|
510
490
|
submitLabel: string;
|
|
511
|
-
submitKeys:
|
|
491
|
+
submitKeys: "all" | string[];
|
|
512
492
|
key?: string | undefined;
|
|
513
493
|
};
|
|
514
|
-
type: "integration-application-submit";
|
|
515
|
-
id: string;
|
|
516
494
|
isHead?: boolean | undefined;
|
|
517
495
|
nextId?: string | undefined;
|
|
518
496
|
} | {
|
|
497
|
+
type: "integration-workflow-get";
|
|
498
|
+
id: string;
|
|
519
499
|
data: {
|
|
520
500
|
integrationId: string;
|
|
521
501
|
};
|
|
522
|
-
type: "integration-workflow-get";
|
|
523
|
-
id: string;
|
|
524
502
|
isHead?: boolean | undefined;
|
|
525
503
|
nextId?: string | undefined;
|
|
526
504
|
} | {
|
|
505
|
+
type: "link";
|
|
506
|
+
id: string;
|
|
527
507
|
data: {
|
|
528
508
|
href: string;
|
|
529
509
|
cta: string;
|
|
530
510
|
};
|
|
531
|
-
type: "link";
|
|
532
|
-
id: string;
|
|
533
511
|
isHead?: boolean | undefined;
|
|
534
512
|
nextId?: string | undefined;
|
|
535
513
|
} | {
|
|
514
|
+
type: "image";
|
|
515
|
+
id: string;
|
|
536
516
|
data: {
|
|
537
517
|
url: string;
|
|
538
518
|
width: number;
|
|
539
519
|
height: number;
|
|
540
520
|
};
|
|
541
|
-
type: "image";
|
|
542
|
-
id: string;
|
|
543
521
|
isHead?: boolean | undefined;
|
|
544
522
|
nextId?: string | undefined;
|
|
545
523
|
} | {
|
|
524
|
+
type: "question-boolean";
|
|
525
|
+
id: string;
|
|
546
526
|
data: {
|
|
547
527
|
key: string;
|
|
548
528
|
question: string;
|
|
@@ -550,11 +530,11 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
550
530
|
falseLabel: string;
|
|
551
531
|
optional: boolean;
|
|
552
532
|
};
|
|
553
|
-
type: "question-boolean";
|
|
554
|
-
id: string;
|
|
555
533
|
isHead?: boolean | undefined;
|
|
556
534
|
nextId?: string | undefined;
|
|
557
535
|
} | {
|
|
536
|
+
type: "question-text";
|
|
537
|
+
id: string;
|
|
558
538
|
data: {
|
|
559
539
|
key: string;
|
|
560
540
|
question: string;
|
|
@@ -564,11 +544,11 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
564
544
|
maxChars?: number | undefined;
|
|
565
545
|
minChars?: number | undefined;
|
|
566
546
|
};
|
|
567
|
-
type: "question-text";
|
|
568
|
-
id: string;
|
|
569
547
|
isHead?: boolean | undefined;
|
|
570
548
|
nextId?: string | undefined;
|
|
571
549
|
} | {
|
|
550
|
+
type: "question-number";
|
|
551
|
+
id: string;
|
|
572
552
|
data: {
|
|
573
553
|
key: string;
|
|
574
554
|
question: string;
|
|
@@ -578,11 +558,11 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
578
558
|
min?: number | undefined;
|
|
579
559
|
max?: number | undefined;
|
|
580
560
|
};
|
|
581
|
-
type: "question-number";
|
|
582
|
-
id: string;
|
|
583
561
|
isHead?: boolean | undefined;
|
|
584
562
|
nextId?: string | undefined;
|
|
585
563
|
} | {
|
|
564
|
+
type: "question-phone";
|
|
565
|
+
id: string;
|
|
586
566
|
data: {
|
|
587
567
|
key: string;
|
|
588
568
|
question: string;
|
|
@@ -591,11 +571,11 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
591
571
|
minChars: number;
|
|
592
572
|
defaultCountryCode: string;
|
|
593
573
|
};
|
|
594
|
-
type: "question-phone";
|
|
595
|
-
id: string;
|
|
596
574
|
isHead?: boolean | undefined;
|
|
597
575
|
nextId?: string | undefined;
|
|
598
576
|
} | {
|
|
577
|
+
type: "question-enum";
|
|
578
|
+
id: string;
|
|
599
579
|
data: {
|
|
600
580
|
options: {
|
|
601
581
|
value: string;
|
|
@@ -606,11 +586,11 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
606
586
|
maxSelected: number;
|
|
607
587
|
minSelected: number;
|
|
608
588
|
};
|
|
609
|
-
type: "question-enum";
|
|
610
|
-
id: string;
|
|
611
589
|
isHead?: boolean | undefined;
|
|
612
590
|
nextId?: string | undefined;
|
|
613
591
|
} | {
|
|
592
|
+
type: "question-file";
|
|
593
|
+
id: string;
|
|
614
594
|
data: {
|
|
615
595
|
key: string;
|
|
616
596
|
question: string;
|
|
@@ -619,11 +599,11 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
619
599
|
multiple?: boolean | undefined;
|
|
620
600
|
maxSizeKb?: number | undefined;
|
|
621
601
|
};
|
|
622
|
-
type: "question-file";
|
|
623
|
-
id: string;
|
|
624
602
|
isHead?: boolean | undefined;
|
|
625
603
|
nextId?: string | undefined;
|
|
626
604
|
} | {
|
|
605
|
+
type: "question-address";
|
|
606
|
+
id: string;
|
|
627
607
|
data: {
|
|
628
608
|
keys: {
|
|
629
609
|
line1: string | null;
|
|
@@ -639,23 +619,12 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
639
619
|
optional: boolean;
|
|
640
620
|
placeholder?: string | undefined;
|
|
641
621
|
};
|
|
642
|
-
type: "question-address";
|
|
643
|
-
id: string;
|
|
644
622
|
isHead?: boolean | undefined;
|
|
645
623
|
nextId?: string | undefined;
|
|
646
624
|
} | {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
651
|
-
} | {
|
|
652
|
-
combinator: "and" | "or";
|
|
653
|
-
conditions: {
|
|
654
|
-
compareKey: string;
|
|
655
|
-
compareValue: string;
|
|
656
|
-
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
657
|
-
}[];
|
|
658
|
-
}) & ({
|
|
625
|
+
type: "if-block";
|
|
626
|
+
id: string;
|
|
627
|
+
data: {
|
|
659
628
|
compareKey: string;
|
|
660
629
|
compareValue: string;
|
|
661
630
|
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
@@ -666,49 +635,47 @@ export declare const FlowByJobPayloadSchema: import('valibot').ObjectSchema<{
|
|
|
666
635
|
compareValue: string;
|
|
667
636
|
compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
|
|
668
637
|
}[];
|
|
669
|
-
}
|
|
670
|
-
type: "if-block";
|
|
671
|
-
id: string;
|
|
638
|
+
};
|
|
672
639
|
isHead?: boolean | undefined;
|
|
673
640
|
nextId?: string | undefined;
|
|
674
641
|
branchId?: string | undefined;
|
|
675
642
|
} | {
|
|
643
|
+
type: "jump";
|
|
644
|
+
id: string;
|
|
676
645
|
data: {
|
|
677
646
|
targetId: string;
|
|
678
647
|
};
|
|
679
|
-
type: "jump";
|
|
680
|
-
id: string;
|
|
681
648
|
isHead?: boolean | undefined;
|
|
682
649
|
nextId?: string | undefined;
|
|
683
650
|
} | {
|
|
651
|
+
type: "add-submission";
|
|
652
|
+
id: string;
|
|
684
653
|
data: {
|
|
685
654
|
value: string;
|
|
686
655
|
key: string;
|
|
687
656
|
};
|
|
688
|
-
type: "add-submission";
|
|
689
|
-
id: string;
|
|
690
657
|
isHead?: boolean | undefined;
|
|
691
658
|
nextId?: string | undefined;
|
|
692
659
|
} | {
|
|
660
|
+
type: "identify";
|
|
661
|
+
id: string;
|
|
693
662
|
data: {
|
|
694
663
|
key: string;
|
|
664
|
+
email?: string | undefined;
|
|
695
665
|
firstName?: string | undefined;
|
|
696
666
|
lastName?: string | undefined;
|
|
697
667
|
phoneNumber?: string | undefined;
|
|
698
|
-
email?: string | undefined;
|
|
699
668
|
customTraits?: {
|
|
700
669
|
value: string;
|
|
701
670
|
key: string;
|
|
702
671
|
}[] | undefined;
|
|
703
672
|
};
|
|
704
|
-
type: "identify";
|
|
705
|
-
id: string;
|
|
706
673
|
isHead?: boolean | undefined;
|
|
707
674
|
nextId?: string | undefined;
|
|
708
675
|
} | {
|
|
709
|
-
data: {};
|
|
710
676
|
type: "feedback";
|
|
711
677
|
id: string;
|
|
678
|
+
data: {};
|
|
712
679
|
isHead?: boolean | undefined;
|
|
713
680
|
nextId?: string | undefined;
|
|
714
681
|
}>, undefined>;
|