@inploi/plugin-chatbot 3.10.1 → 3.12.0

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.
@@ -1,12 +1,2446 @@
1
1
  import { FlowNode } from '@inploi/core/flows';
2
- import { ApiClient, Logger } from '@inploi/sdk';
3
- type Result<T> = {
4
- ok: true;
5
- value: T;
6
- } | {
7
- ok: false;
8
- error: string;
2
+ import { AnySchema } from 'valibot';
3
+ export type Flow = {
4
+ id: string;
5
+ version: number;
6
+ nodes: FlowNode[];
9
7
  };
8
+ export type FlowPayload = {
9
+ flow: {
10
+ id: string;
11
+ version: number;
12
+ nodes: FlowNode[];
13
+ };
14
+ };
15
+ export declare const FlowSchema: import("valibot").ObjectSchema<{
16
+ id: import("valibot").StringSchema<string>;
17
+ version: import("valibot").NumberSchema<number>;
18
+ nodes: import("valibot").ArraySchema<AnySchema<{
19
+ id: string;
20
+ data: {
21
+ text: string;
22
+ };
23
+ type: "text";
24
+ isHead?: boolean | undefined;
25
+ nextId?: string | undefined;
26
+ } | {
27
+ id: string;
28
+ data: {
29
+ systemMessage: string;
30
+ };
31
+ type: "end-flow";
32
+ isHead?: boolean | undefined;
33
+ nextId?: string | undefined;
34
+ } | {
35
+ id: string;
36
+ data: {
37
+ integrationId: string;
38
+ };
39
+ type: "integration-application-submit";
40
+ isHead?: boolean | undefined;
41
+ nextId?: string | undefined;
42
+ } | {
43
+ id: string;
44
+ data: {
45
+ ats: "cornerstone";
46
+ integrationId: string;
47
+ };
48
+ type: "integration-workflow-get";
49
+ isHead?: boolean | undefined;
50
+ nextId?: string | undefined;
51
+ } | {
52
+ id: string;
53
+ data: {
54
+ href: string;
55
+ cta: string;
56
+ };
57
+ type: "link";
58
+ isHead?: boolean | undefined;
59
+ nextId?: string | undefined;
60
+ } | {
61
+ id: string;
62
+ data: {
63
+ url: string;
64
+ width: number;
65
+ height: number;
66
+ };
67
+ type: "image";
68
+ isHead?: boolean | undefined;
69
+ nextId?: string | undefined;
70
+ } | {
71
+ id: string;
72
+ data: {
73
+ key: string;
74
+ question: string;
75
+ trueLabel: string;
76
+ falseLabel: string;
77
+ optional: boolean;
78
+ };
79
+ type: "question-boolean";
80
+ isHead?: boolean | undefined;
81
+ nextId?: string | undefined;
82
+ } | {
83
+ id: string;
84
+ data: {
85
+ key: string;
86
+ question: string;
87
+ optional: boolean;
88
+ format: "text" | "url" | "email" | "phone";
89
+ placeholder?: string | undefined;
90
+ };
91
+ type: "question-text";
92
+ isHead?: boolean | undefined;
93
+ nextId?: string | undefined;
94
+ } | {
95
+ id: string;
96
+ data: {
97
+ key: string;
98
+ question: string;
99
+ optional: boolean;
100
+ placeholder?: string | undefined;
101
+ decimalCases?: number | undefined;
102
+ min?: number | undefined;
103
+ max?: number | undefined;
104
+ };
105
+ type: "question-number";
106
+ isHead?: boolean | undefined;
107
+ nextId?: string | undefined;
108
+ } | {
109
+ id: string;
110
+ data: {
111
+ options: {
112
+ value: string;
113
+ label: string;
114
+ }[];
115
+ key: string;
116
+ question: string;
117
+ maxSelected: number;
118
+ minSelected: number;
119
+ };
120
+ type: "question-enum";
121
+ isHead?: boolean | undefined;
122
+ nextId?: string | undefined;
123
+ } | {
124
+ id: string;
125
+ data: {
126
+ key: string;
127
+ question: string;
128
+ optional: boolean;
129
+ extensions: string[];
130
+ multiple?: boolean | undefined;
131
+ maxSizeKb?: number | undefined;
132
+ };
133
+ type: "question-file";
134
+ isHead?: boolean | undefined;
135
+ nextId?: string | undefined;
136
+ } | {
137
+ id: string;
138
+ data: {
139
+ keys: {
140
+ line1: string | null;
141
+ line2: string | null;
142
+ line3: string | null;
143
+ city: string | null;
144
+ state: string | null;
145
+ postcode: string | null;
146
+ country: string | null;
147
+ };
148
+ question: string;
149
+ optional: boolean;
150
+ placeholder?: string | undefined;
151
+ };
152
+ type: "question-address";
153
+ isHead?: boolean | undefined;
154
+ nextId?: string | undefined;
155
+ } | {
156
+ id: string;
157
+ data: {
158
+ compareKey: string;
159
+ compareValue: string;
160
+ compare: "equals" | "notEquals" | "contains" | "notContains";
161
+ };
162
+ type: "if-block";
163
+ isHead?: boolean | undefined;
164
+ nextId?: string | undefined;
165
+ branchId?: string | undefined;
166
+ } | {
167
+ id: string;
168
+ data: {
169
+ targetId: string;
170
+ };
171
+ type: "jump";
172
+ isHead?: boolean | undefined;
173
+ nextId?: string | undefined;
174
+ }>, ({
175
+ id: string;
176
+ data: {
177
+ text: string;
178
+ };
179
+ type: "text";
180
+ isHead?: boolean | undefined;
181
+ nextId?: string | undefined;
182
+ } | {
183
+ id: string;
184
+ data: {
185
+ systemMessage: string;
186
+ };
187
+ type: "end-flow";
188
+ isHead?: boolean | undefined;
189
+ nextId?: string | undefined;
190
+ } | {
191
+ id: string;
192
+ data: {
193
+ integrationId: string;
194
+ };
195
+ type: "integration-application-submit";
196
+ isHead?: boolean | undefined;
197
+ nextId?: string | undefined;
198
+ } | {
199
+ id: string;
200
+ data: {
201
+ ats: "cornerstone";
202
+ integrationId: string;
203
+ };
204
+ type: "integration-workflow-get";
205
+ isHead?: boolean | undefined;
206
+ nextId?: string | undefined;
207
+ } | {
208
+ id: string;
209
+ data: {
210
+ href: string;
211
+ cta: string;
212
+ };
213
+ type: "link";
214
+ isHead?: boolean | undefined;
215
+ nextId?: string | undefined;
216
+ } | {
217
+ id: string;
218
+ data: {
219
+ url: string;
220
+ width: number;
221
+ height: number;
222
+ };
223
+ type: "image";
224
+ isHead?: boolean | undefined;
225
+ nextId?: string | undefined;
226
+ } | {
227
+ id: string;
228
+ data: {
229
+ key: string;
230
+ question: string;
231
+ trueLabel: string;
232
+ falseLabel: string;
233
+ optional: boolean;
234
+ };
235
+ type: "question-boolean";
236
+ isHead?: boolean | undefined;
237
+ nextId?: string | undefined;
238
+ } | {
239
+ id: string;
240
+ data: {
241
+ key: string;
242
+ question: string;
243
+ optional: boolean;
244
+ format: "text" | "url" | "email" | "phone";
245
+ placeholder?: string | undefined;
246
+ };
247
+ type: "question-text";
248
+ isHead?: boolean | undefined;
249
+ nextId?: string | undefined;
250
+ } | {
251
+ id: string;
252
+ data: {
253
+ key: string;
254
+ question: string;
255
+ optional: boolean;
256
+ placeholder?: string | undefined;
257
+ decimalCases?: number | undefined;
258
+ min?: number | undefined;
259
+ max?: number | undefined;
260
+ };
261
+ type: "question-number";
262
+ isHead?: boolean | undefined;
263
+ nextId?: string | undefined;
264
+ } | {
265
+ id: string;
266
+ data: {
267
+ options: {
268
+ value: string;
269
+ label: string;
270
+ }[];
271
+ key: string;
272
+ question: string;
273
+ maxSelected: number;
274
+ minSelected: number;
275
+ };
276
+ type: "question-enum";
277
+ isHead?: boolean | undefined;
278
+ nextId?: string | undefined;
279
+ } | {
280
+ id: string;
281
+ data: {
282
+ key: string;
283
+ question: string;
284
+ optional: boolean;
285
+ extensions: string[];
286
+ multiple?: boolean | undefined;
287
+ maxSizeKb?: number | undefined;
288
+ };
289
+ type: "question-file";
290
+ isHead?: boolean | undefined;
291
+ nextId?: string | undefined;
292
+ } | {
293
+ id: string;
294
+ data: {
295
+ keys: {
296
+ line1: string | null;
297
+ line2: string | null;
298
+ line3: string | null;
299
+ city: string | null;
300
+ state: string | null;
301
+ postcode: string | null;
302
+ country: string | null;
303
+ };
304
+ question: string;
305
+ optional: boolean;
306
+ placeholder?: string | undefined;
307
+ };
308
+ type: "question-address";
309
+ isHead?: boolean | undefined;
310
+ nextId?: string | undefined;
311
+ } | {
312
+ id: string;
313
+ data: {
314
+ compareKey: string;
315
+ compareValue: string;
316
+ compare: "equals" | "notEquals" | "contains" | "notContains";
317
+ };
318
+ type: "if-block";
319
+ isHead?: boolean | undefined;
320
+ nextId?: string | undefined;
321
+ branchId?: string | undefined;
322
+ } | {
323
+ id: string;
324
+ data: {
325
+ targetId: string;
326
+ };
327
+ type: "jump";
328
+ isHead?: boolean | undefined;
329
+ nextId?: string | undefined;
330
+ })[]>;
331
+ }, undefined, {
332
+ id: string;
333
+ version: number;
334
+ nodes: ({
335
+ id: string;
336
+ data: {
337
+ text: string;
338
+ };
339
+ type: "text";
340
+ isHead?: boolean | undefined;
341
+ nextId?: string | undefined;
342
+ } | {
343
+ id: string;
344
+ data: {
345
+ systemMessage: string;
346
+ };
347
+ type: "end-flow";
348
+ isHead?: boolean | undefined;
349
+ nextId?: string | undefined;
350
+ } | {
351
+ id: string;
352
+ data: {
353
+ integrationId: string;
354
+ };
355
+ type: "integration-application-submit";
356
+ isHead?: boolean | undefined;
357
+ nextId?: string | undefined;
358
+ } | {
359
+ id: string;
360
+ data: {
361
+ ats: "cornerstone";
362
+ integrationId: string;
363
+ };
364
+ type: "integration-workflow-get";
365
+ isHead?: boolean | undefined;
366
+ nextId?: string | undefined;
367
+ } | {
368
+ id: string;
369
+ data: {
370
+ href: string;
371
+ cta: string;
372
+ };
373
+ type: "link";
374
+ isHead?: boolean | undefined;
375
+ nextId?: string | undefined;
376
+ } | {
377
+ id: string;
378
+ data: {
379
+ url: string;
380
+ width: number;
381
+ height: number;
382
+ };
383
+ type: "image";
384
+ isHead?: boolean | undefined;
385
+ nextId?: string | undefined;
386
+ } | {
387
+ id: string;
388
+ data: {
389
+ key: string;
390
+ question: string;
391
+ trueLabel: string;
392
+ falseLabel: string;
393
+ optional: boolean;
394
+ };
395
+ type: "question-boolean";
396
+ isHead?: boolean | undefined;
397
+ nextId?: string | undefined;
398
+ } | {
399
+ id: string;
400
+ data: {
401
+ key: string;
402
+ question: string;
403
+ optional: boolean;
404
+ format: "text" | "url" | "email" | "phone";
405
+ placeholder?: string | undefined;
406
+ };
407
+ type: "question-text";
408
+ isHead?: boolean | undefined;
409
+ nextId?: string | undefined;
410
+ } | {
411
+ id: string;
412
+ data: {
413
+ key: string;
414
+ question: string;
415
+ optional: boolean;
416
+ placeholder?: string | undefined;
417
+ decimalCases?: number | undefined;
418
+ min?: number | undefined;
419
+ max?: number | undefined;
420
+ };
421
+ type: "question-number";
422
+ isHead?: boolean | undefined;
423
+ nextId?: string | undefined;
424
+ } | {
425
+ id: string;
426
+ data: {
427
+ options: {
428
+ value: string;
429
+ label: string;
430
+ }[];
431
+ key: string;
432
+ question: string;
433
+ maxSelected: number;
434
+ minSelected: number;
435
+ };
436
+ type: "question-enum";
437
+ isHead?: boolean | undefined;
438
+ nextId?: string | undefined;
439
+ } | {
440
+ id: string;
441
+ data: {
442
+ key: string;
443
+ question: string;
444
+ optional: boolean;
445
+ extensions: string[];
446
+ multiple?: boolean | undefined;
447
+ maxSizeKb?: number | undefined;
448
+ };
449
+ type: "question-file";
450
+ isHead?: boolean | undefined;
451
+ nextId?: string | undefined;
452
+ } | {
453
+ id: string;
454
+ data: {
455
+ keys: {
456
+ line1: string | null;
457
+ line2: string | null;
458
+ line3: string | null;
459
+ city: string | null;
460
+ state: string | null;
461
+ postcode: string | null;
462
+ country: string | null;
463
+ };
464
+ question: string;
465
+ optional: boolean;
466
+ placeholder?: string | undefined;
467
+ };
468
+ type: "question-address";
469
+ isHead?: boolean | undefined;
470
+ nextId?: string | undefined;
471
+ } | {
472
+ id: string;
473
+ data: {
474
+ compareKey: string;
475
+ compareValue: string;
476
+ compare: "equals" | "notEquals" | "contains" | "notContains";
477
+ };
478
+ type: "if-block";
479
+ isHead?: boolean | undefined;
480
+ nextId?: string | undefined;
481
+ branchId?: string | undefined;
482
+ } | {
483
+ id: string;
484
+ data: {
485
+ targetId: string;
486
+ };
487
+ type: "jump";
488
+ isHead?: boolean | undefined;
489
+ nextId?: string | undefined;
490
+ })[];
491
+ }>;
492
+ export declare const FlowByIdPayloadSchema: import("valibot").ObjectSchema<{
493
+ flow: import("valibot").ObjectSchema<{
494
+ id: import("valibot").StringSchema<string>;
495
+ version: import("valibot").NumberSchema<number>;
496
+ nodes: import("valibot").ArraySchema<AnySchema<{
497
+ id: string;
498
+ data: {
499
+ text: string;
500
+ };
501
+ type: "text";
502
+ isHead?: boolean | undefined;
503
+ nextId?: string | undefined;
504
+ } | {
505
+ id: string;
506
+ data: {
507
+ systemMessage: string;
508
+ };
509
+ type: "end-flow";
510
+ isHead?: boolean | undefined;
511
+ nextId?: string | undefined;
512
+ } | {
513
+ id: string;
514
+ data: {
515
+ integrationId: string;
516
+ };
517
+ type: "integration-application-submit";
518
+ isHead?: boolean | undefined;
519
+ nextId?: string | undefined;
520
+ } | {
521
+ id: string;
522
+ data: {
523
+ ats: "cornerstone";
524
+ integrationId: string;
525
+ };
526
+ type: "integration-workflow-get";
527
+ isHead?: boolean | undefined;
528
+ nextId?: string | undefined;
529
+ } | {
530
+ id: string;
531
+ data: {
532
+ href: string;
533
+ cta: string;
534
+ };
535
+ type: "link";
536
+ isHead?: boolean | undefined;
537
+ nextId?: string | undefined;
538
+ } | {
539
+ id: string;
540
+ data: {
541
+ url: string;
542
+ width: number;
543
+ height: number;
544
+ };
545
+ type: "image";
546
+ isHead?: boolean | undefined;
547
+ nextId?: string | undefined;
548
+ } | {
549
+ id: string;
550
+ data: {
551
+ key: string;
552
+ question: string;
553
+ trueLabel: string;
554
+ falseLabel: string;
555
+ optional: boolean;
556
+ };
557
+ type: "question-boolean";
558
+ isHead?: boolean | undefined;
559
+ nextId?: string | undefined;
560
+ } | {
561
+ id: string;
562
+ data: {
563
+ key: string;
564
+ question: string;
565
+ optional: boolean;
566
+ format: "text" | "url" | "email" | "phone";
567
+ placeholder?: string | undefined;
568
+ };
569
+ type: "question-text";
570
+ isHead?: boolean | undefined;
571
+ nextId?: string | undefined;
572
+ } | {
573
+ id: string;
574
+ data: {
575
+ key: string;
576
+ question: string;
577
+ optional: boolean;
578
+ placeholder?: string | undefined;
579
+ decimalCases?: number | undefined;
580
+ min?: number | undefined;
581
+ max?: number | undefined;
582
+ };
583
+ type: "question-number";
584
+ isHead?: boolean | undefined;
585
+ nextId?: string | undefined;
586
+ } | {
587
+ id: string;
588
+ data: {
589
+ options: {
590
+ value: string;
591
+ label: string;
592
+ }[];
593
+ key: string;
594
+ question: string;
595
+ maxSelected: number;
596
+ minSelected: number;
597
+ };
598
+ type: "question-enum";
599
+ isHead?: boolean | undefined;
600
+ nextId?: string | undefined;
601
+ } | {
602
+ id: string;
603
+ data: {
604
+ key: string;
605
+ question: string;
606
+ optional: boolean;
607
+ extensions: string[];
608
+ multiple?: boolean | undefined;
609
+ maxSizeKb?: number | undefined;
610
+ };
611
+ type: "question-file";
612
+ isHead?: boolean | undefined;
613
+ nextId?: string | undefined;
614
+ } | {
615
+ id: string;
616
+ data: {
617
+ keys: {
618
+ line1: string | null;
619
+ line2: string | null;
620
+ line3: string | null;
621
+ city: string | null;
622
+ state: string | null;
623
+ postcode: string | null;
624
+ country: string | null;
625
+ };
626
+ question: string;
627
+ optional: boolean;
628
+ placeholder?: string | undefined;
629
+ };
630
+ type: "question-address";
631
+ isHead?: boolean | undefined;
632
+ nextId?: string | undefined;
633
+ } | {
634
+ id: string;
635
+ data: {
636
+ compareKey: string;
637
+ compareValue: string;
638
+ compare: "equals" | "notEquals" | "contains" | "notContains";
639
+ };
640
+ type: "if-block";
641
+ isHead?: boolean | undefined;
642
+ nextId?: string | undefined;
643
+ branchId?: string | undefined;
644
+ } | {
645
+ id: string;
646
+ data: {
647
+ targetId: string;
648
+ };
649
+ type: "jump";
650
+ isHead?: boolean | undefined;
651
+ nextId?: string | undefined;
652
+ }>, ({
653
+ id: string;
654
+ data: {
655
+ text: string;
656
+ };
657
+ type: "text";
658
+ isHead?: boolean | undefined;
659
+ nextId?: string | undefined;
660
+ } | {
661
+ id: string;
662
+ data: {
663
+ systemMessage: string;
664
+ };
665
+ type: "end-flow";
666
+ isHead?: boolean | undefined;
667
+ nextId?: string | undefined;
668
+ } | {
669
+ id: string;
670
+ data: {
671
+ integrationId: string;
672
+ };
673
+ type: "integration-application-submit";
674
+ isHead?: boolean | undefined;
675
+ nextId?: string | undefined;
676
+ } | {
677
+ id: string;
678
+ data: {
679
+ ats: "cornerstone";
680
+ integrationId: string;
681
+ };
682
+ type: "integration-workflow-get";
683
+ isHead?: boolean | undefined;
684
+ nextId?: string | undefined;
685
+ } | {
686
+ id: string;
687
+ data: {
688
+ href: string;
689
+ cta: string;
690
+ };
691
+ type: "link";
692
+ isHead?: boolean | undefined;
693
+ nextId?: string | undefined;
694
+ } | {
695
+ id: string;
696
+ data: {
697
+ url: string;
698
+ width: number;
699
+ height: number;
700
+ };
701
+ type: "image";
702
+ isHead?: boolean | undefined;
703
+ nextId?: string | undefined;
704
+ } | {
705
+ id: string;
706
+ data: {
707
+ key: string;
708
+ question: string;
709
+ trueLabel: string;
710
+ falseLabel: string;
711
+ optional: boolean;
712
+ };
713
+ type: "question-boolean";
714
+ isHead?: boolean | undefined;
715
+ nextId?: string | undefined;
716
+ } | {
717
+ id: string;
718
+ data: {
719
+ key: string;
720
+ question: string;
721
+ optional: boolean;
722
+ format: "text" | "url" | "email" | "phone";
723
+ placeholder?: string | undefined;
724
+ };
725
+ type: "question-text";
726
+ isHead?: boolean | undefined;
727
+ nextId?: string | undefined;
728
+ } | {
729
+ id: string;
730
+ data: {
731
+ key: string;
732
+ question: string;
733
+ optional: boolean;
734
+ placeholder?: string | undefined;
735
+ decimalCases?: number | undefined;
736
+ min?: number | undefined;
737
+ max?: number | undefined;
738
+ };
739
+ type: "question-number";
740
+ isHead?: boolean | undefined;
741
+ nextId?: string | undefined;
742
+ } | {
743
+ id: string;
744
+ data: {
745
+ options: {
746
+ value: string;
747
+ label: string;
748
+ }[];
749
+ key: string;
750
+ question: string;
751
+ maxSelected: number;
752
+ minSelected: number;
753
+ };
754
+ type: "question-enum";
755
+ isHead?: boolean | undefined;
756
+ nextId?: string | undefined;
757
+ } | {
758
+ id: string;
759
+ data: {
760
+ key: string;
761
+ question: string;
762
+ optional: boolean;
763
+ extensions: string[];
764
+ multiple?: boolean | undefined;
765
+ maxSizeKb?: number | undefined;
766
+ };
767
+ type: "question-file";
768
+ isHead?: boolean | undefined;
769
+ nextId?: string | undefined;
770
+ } | {
771
+ id: string;
772
+ data: {
773
+ keys: {
774
+ line1: string | null;
775
+ line2: string | null;
776
+ line3: string | null;
777
+ city: string | null;
778
+ state: string | null;
779
+ postcode: string | null;
780
+ country: string | null;
781
+ };
782
+ question: string;
783
+ optional: boolean;
784
+ placeholder?: string | undefined;
785
+ };
786
+ type: "question-address";
787
+ isHead?: boolean | undefined;
788
+ nextId?: string | undefined;
789
+ } | {
790
+ id: string;
791
+ data: {
792
+ compareKey: string;
793
+ compareValue: string;
794
+ compare: "equals" | "notEquals" | "contains" | "notContains";
795
+ };
796
+ type: "if-block";
797
+ isHead?: boolean | undefined;
798
+ nextId?: string | undefined;
799
+ branchId?: string | undefined;
800
+ } | {
801
+ id: string;
802
+ data: {
803
+ targetId: string;
804
+ };
805
+ type: "jump";
806
+ isHead?: boolean | undefined;
807
+ nextId?: string | undefined;
808
+ })[]>;
809
+ }, undefined, {
810
+ id: string;
811
+ version: number;
812
+ nodes: ({
813
+ id: string;
814
+ data: {
815
+ text: string;
816
+ };
817
+ type: "text";
818
+ isHead?: boolean | undefined;
819
+ nextId?: string | undefined;
820
+ } | {
821
+ id: string;
822
+ data: {
823
+ systemMessage: string;
824
+ };
825
+ type: "end-flow";
826
+ isHead?: boolean | undefined;
827
+ nextId?: string | undefined;
828
+ } | {
829
+ id: string;
830
+ data: {
831
+ integrationId: string;
832
+ };
833
+ type: "integration-application-submit";
834
+ isHead?: boolean | undefined;
835
+ nextId?: string | undefined;
836
+ } | {
837
+ id: string;
838
+ data: {
839
+ ats: "cornerstone";
840
+ integrationId: string;
841
+ };
842
+ type: "integration-workflow-get";
843
+ isHead?: boolean | undefined;
844
+ nextId?: string | undefined;
845
+ } | {
846
+ id: string;
847
+ data: {
848
+ href: string;
849
+ cta: string;
850
+ };
851
+ type: "link";
852
+ isHead?: boolean | undefined;
853
+ nextId?: string | undefined;
854
+ } | {
855
+ id: string;
856
+ data: {
857
+ url: string;
858
+ width: number;
859
+ height: number;
860
+ };
861
+ type: "image";
862
+ isHead?: boolean | undefined;
863
+ nextId?: string | undefined;
864
+ } | {
865
+ id: string;
866
+ data: {
867
+ key: string;
868
+ question: string;
869
+ trueLabel: string;
870
+ falseLabel: string;
871
+ optional: boolean;
872
+ };
873
+ type: "question-boolean";
874
+ isHead?: boolean | undefined;
875
+ nextId?: string | undefined;
876
+ } | {
877
+ id: string;
878
+ data: {
879
+ key: string;
880
+ question: string;
881
+ optional: boolean;
882
+ format: "text" | "url" | "email" | "phone";
883
+ placeholder?: string | undefined;
884
+ };
885
+ type: "question-text";
886
+ isHead?: boolean | undefined;
887
+ nextId?: string | undefined;
888
+ } | {
889
+ id: string;
890
+ data: {
891
+ key: string;
892
+ question: string;
893
+ optional: boolean;
894
+ placeholder?: string | undefined;
895
+ decimalCases?: number | undefined;
896
+ min?: number | undefined;
897
+ max?: number | undefined;
898
+ };
899
+ type: "question-number";
900
+ isHead?: boolean | undefined;
901
+ nextId?: string | undefined;
902
+ } | {
903
+ id: string;
904
+ data: {
905
+ options: {
906
+ value: string;
907
+ label: string;
908
+ }[];
909
+ key: string;
910
+ question: string;
911
+ maxSelected: number;
912
+ minSelected: number;
913
+ };
914
+ type: "question-enum";
915
+ isHead?: boolean | undefined;
916
+ nextId?: string | undefined;
917
+ } | {
918
+ id: string;
919
+ data: {
920
+ key: string;
921
+ question: string;
922
+ optional: boolean;
923
+ extensions: string[];
924
+ multiple?: boolean | undefined;
925
+ maxSizeKb?: number | undefined;
926
+ };
927
+ type: "question-file";
928
+ isHead?: boolean | undefined;
929
+ nextId?: string | undefined;
930
+ } | {
931
+ id: string;
932
+ data: {
933
+ keys: {
934
+ line1: string | null;
935
+ line2: string | null;
936
+ line3: string | null;
937
+ city: string | null;
938
+ state: string | null;
939
+ postcode: string | null;
940
+ country: string | null;
941
+ };
942
+ question: string;
943
+ optional: boolean;
944
+ placeholder?: string | undefined;
945
+ };
946
+ type: "question-address";
947
+ isHead?: boolean | undefined;
948
+ nextId?: string | undefined;
949
+ } | {
950
+ id: string;
951
+ data: {
952
+ compareKey: string;
953
+ compareValue: string;
954
+ compare: "equals" | "notEquals" | "contains" | "notContains";
955
+ };
956
+ type: "if-block";
957
+ isHead?: boolean | undefined;
958
+ nextId?: string | undefined;
959
+ branchId?: string | undefined;
960
+ } | {
961
+ id: string;
962
+ data: {
963
+ targetId: string;
964
+ };
965
+ type: "jump";
966
+ isHead?: boolean | undefined;
967
+ nextId?: string | undefined;
968
+ })[];
969
+ }>;
970
+ }, undefined, {
971
+ flow: {
972
+ id: string;
973
+ version: number;
974
+ nodes: ({
975
+ id: string;
976
+ data: {
977
+ text: string;
978
+ };
979
+ type: "text";
980
+ isHead?: boolean | undefined;
981
+ nextId?: string | undefined;
982
+ } | {
983
+ id: string;
984
+ data: {
985
+ systemMessage: string;
986
+ };
987
+ type: "end-flow";
988
+ isHead?: boolean | undefined;
989
+ nextId?: string | undefined;
990
+ } | {
991
+ id: string;
992
+ data: {
993
+ integrationId: string;
994
+ };
995
+ type: "integration-application-submit";
996
+ isHead?: boolean | undefined;
997
+ nextId?: string | undefined;
998
+ } | {
999
+ id: string;
1000
+ data: {
1001
+ ats: "cornerstone";
1002
+ integrationId: string;
1003
+ };
1004
+ type: "integration-workflow-get";
1005
+ isHead?: boolean | undefined;
1006
+ nextId?: string | undefined;
1007
+ } | {
1008
+ id: string;
1009
+ data: {
1010
+ href: string;
1011
+ cta: string;
1012
+ };
1013
+ type: "link";
1014
+ isHead?: boolean | undefined;
1015
+ nextId?: string | undefined;
1016
+ } | {
1017
+ id: string;
1018
+ data: {
1019
+ url: string;
1020
+ width: number;
1021
+ height: number;
1022
+ };
1023
+ type: "image";
1024
+ isHead?: boolean | undefined;
1025
+ nextId?: string | undefined;
1026
+ } | {
1027
+ id: string;
1028
+ data: {
1029
+ key: string;
1030
+ question: string;
1031
+ trueLabel: string;
1032
+ falseLabel: string;
1033
+ optional: boolean;
1034
+ };
1035
+ type: "question-boolean";
1036
+ isHead?: boolean | undefined;
1037
+ nextId?: string | undefined;
1038
+ } | {
1039
+ id: string;
1040
+ data: {
1041
+ key: string;
1042
+ question: string;
1043
+ optional: boolean;
1044
+ format: "text" | "url" | "email" | "phone";
1045
+ placeholder?: string | undefined;
1046
+ };
1047
+ type: "question-text";
1048
+ isHead?: boolean | undefined;
1049
+ nextId?: string | undefined;
1050
+ } | {
1051
+ id: string;
1052
+ data: {
1053
+ key: string;
1054
+ question: string;
1055
+ optional: boolean;
1056
+ placeholder?: string | undefined;
1057
+ decimalCases?: number | undefined;
1058
+ min?: number | undefined;
1059
+ max?: number | undefined;
1060
+ };
1061
+ type: "question-number";
1062
+ isHead?: boolean | undefined;
1063
+ nextId?: string | undefined;
1064
+ } | {
1065
+ id: string;
1066
+ data: {
1067
+ options: {
1068
+ value: string;
1069
+ label: string;
1070
+ }[];
1071
+ key: string;
1072
+ question: string;
1073
+ maxSelected: number;
1074
+ minSelected: number;
1075
+ };
1076
+ type: "question-enum";
1077
+ isHead?: boolean | undefined;
1078
+ nextId?: string | undefined;
1079
+ } | {
1080
+ id: string;
1081
+ data: {
1082
+ key: string;
1083
+ question: string;
1084
+ optional: boolean;
1085
+ extensions: string[];
1086
+ multiple?: boolean | undefined;
1087
+ maxSizeKb?: number | undefined;
1088
+ };
1089
+ type: "question-file";
1090
+ isHead?: boolean | undefined;
1091
+ nextId?: string | undefined;
1092
+ } | {
1093
+ id: string;
1094
+ data: {
1095
+ keys: {
1096
+ line1: string | null;
1097
+ line2: string | null;
1098
+ line3: string | null;
1099
+ city: string | null;
1100
+ state: string | null;
1101
+ postcode: string | null;
1102
+ country: string | null;
1103
+ };
1104
+ question: string;
1105
+ optional: boolean;
1106
+ placeholder?: string | undefined;
1107
+ };
1108
+ type: "question-address";
1109
+ isHead?: boolean | undefined;
1110
+ nextId?: string | undefined;
1111
+ } | {
1112
+ id: string;
1113
+ data: {
1114
+ compareKey: string;
1115
+ compareValue: string;
1116
+ compare: "equals" | "notEquals" | "contains" | "notContains";
1117
+ };
1118
+ type: "if-block";
1119
+ isHead?: boolean | undefined;
1120
+ nextId?: string | undefined;
1121
+ branchId?: string | undefined;
1122
+ } | {
1123
+ id: string;
1124
+ data: {
1125
+ targetId: string;
1126
+ };
1127
+ type: "jump";
1128
+ isHead?: boolean | undefined;
1129
+ nextId?: string | undefined;
1130
+ })[];
1131
+ };
1132
+ }>;
1133
+ export declare const FlowByJobPayloadSchema: import("valibot").ObjectSchema<{
1134
+ company: import("valibot").ObjectSchema<{
1135
+ name: import("valibot").StringSchema<string>;
1136
+ }, undefined, {
1137
+ name: string;
1138
+ }>;
1139
+ flow: import("valibot").ObjectSchema<{
1140
+ id: import("valibot").StringSchema<string>;
1141
+ version: import("valibot").NumberSchema<number>;
1142
+ nodes: import("valibot").ArraySchema<AnySchema<{
1143
+ id: string;
1144
+ data: {
1145
+ text: string;
1146
+ };
1147
+ type: "text";
1148
+ isHead?: boolean | undefined;
1149
+ nextId?: string | undefined;
1150
+ } | {
1151
+ id: string;
1152
+ data: {
1153
+ systemMessage: string;
1154
+ };
1155
+ type: "end-flow";
1156
+ isHead?: boolean | undefined;
1157
+ nextId?: string | undefined;
1158
+ } | {
1159
+ id: string;
1160
+ data: {
1161
+ integrationId: string;
1162
+ };
1163
+ type: "integration-application-submit";
1164
+ isHead?: boolean | undefined;
1165
+ nextId?: string | undefined;
1166
+ } | {
1167
+ id: string;
1168
+ data: {
1169
+ ats: "cornerstone";
1170
+ integrationId: string;
1171
+ };
1172
+ type: "integration-workflow-get";
1173
+ isHead?: boolean | undefined;
1174
+ nextId?: string | undefined;
1175
+ } | {
1176
+ id: string;
1177
+ data: {
1178
+ href: string;
1179
+ cta: string;
1180
+ };
1181
+ type: "link";
1182
+ isHead?: boolean | undefined;
1183
+ nextId?: string | undefined;
1184
+ } | {
1185
+ id: string;
1186
+ data: {
1187
+ url: string;
1188
+ width: number;
1189
+ height: number;
1190
+ };
1191
+ type: "image";
1192
+ isHead?: boolean | undefined;
1193
+ nextId?: string | undefined;
1194
+ } | {
1195
+ id: string;
1196
+ data: {
1197
+ key: string;
1198
+ question: string;
1199
+ trueLabel: string;
1200
+ falseLabel: string;
1201
+ optional: boolean;
1202
+ };
1203
+ type: "question-boolean";
1204
+ isHead?: boolean | undefined;
1205
+ nextId?: string | undefined;
1206
+ } | {
1207
+ id: string;
1208
+ data: {
1209
+ key: string;
1210
+ question: string;
1211
+ optional: boolean;
1212
+ format: "text" | "url" | "email" | "phone";
1213
+ placeholder?: string | undefined;
1214
+ };
1215
+ type: "question-text";
1216
+ isHead?: boolean | undefined;
1217
+ nextId?: string | undefined;
1218
+ } | {
1219
+ id: string;
1220
+ data: {
1221
+ key: string;
1222
+ question: string;
1223
+ optional: boolean;
1224
+ placeholder?: string | undefined;
1225
+ decimalCases?: number | undefined;
1226
+ min?: number | undefined;
1227
+ max?: number | undefined;
1228
+ };
1229
+ type: "question-number";
1230
+ isHead?: boolean | undefined;
1231
+ nextId?: string | undefined;
1232
+ } | {
1233
+ id: string;
1234
+ data: {
1235
+ options: {
1236
+ value: string;
1237
+ label: string;
1238
+ }[];
1239
+ key: string;
1240
+ question: string;
1241
+ maxSelected: number;
1242
+ minSelected: number;
1243
+ };
1244
+ type: "question-enum";
1245
+ isHead?: boolean | undefined;
1246
+ nextId?: string | undefined;
1247
+ } | {
1248
+ id: string;
1249
+ data: {
1250
+ key: string;
1251
+ question: string;
1252
+ optional: boolean;
1253
+ extensions: string[];
1254
+ multiple?: boolean | undefined;
1255
+ maxSizeKb?: number | undefined;
1256
+ };
1257
+ type: "question-file";
1258
+ isHead?: boolean | undefined;
1259
+ nextId?: string | undefined;
1260
+ } | {
1261
+ id: string;
1262
+ data: {
1263
+ keys: {
1264
+ line1: string | null;
1265
+ line2: string | null;
1266
+ line3: string | null;
1267
+ city: string | null;
1268
+ state: string | null;
1269
+ postcode: string | null;
1270
+ country: string | null;
1271
+ };
1272
+ question: string;
1273
+ optional: boolean;
1274
+ placeholder?: string | undefined;
1275
+ };
1276
+ type: "question-address";
1277
+ isHead?: boolean | undefined;
1278
+ nextId?: string | undefined;
1279
+ } | {
1280
+ id: string;
1281
+ data: {
1282
+ compareKey: string;
1283
+ compareValue: string;
1284
+ compare: "equals" | "notEquals" | "contains" | "notContains";
1285
+ };
1286
+ type: "if-block";
1287
+ isHead?: boolean | undefined;
1288
+ nextId?: string | undefined;
1289
+ branchId?: string | undefined;
1290
+ } | {
1291
+ id: string;
1292
+ data: {
1293
+ targetId: string;
1294
+ };
1295
+ type: "jump";
1296
+ isHead?: boolean | undefined;
1297
+ nextId?: string | undefined;
1298
+ }>, ({
1299
+ id: string;
1300
+ data: {
1301
+ text: string;
1302
+ };
1303
+ type: "text";
1304
+ isHead?: boolean | undefined;
1305
+ nextId?: string | undefined;
1306
+ } | {
1307
+ id: string;
1308
+ data: {
1309
+ systemMessage: string;
1310
+ };
1311
+ type: "end-flow";
1312
+ isHead?: boolean | undefined;
1313
+ nextId?: string | undefined;
1314
+ } | {
1315
+ id: string;
1316
+ data: {
1317
+ integrationId: string;
1318
+ };
1319
+ type: "integration-application-submit";
1320
+ isHead?: boolean | undefined;
1321
+ nextId?: string | undefined;
1322
+ } | {
1323
+ id: string;
1324
+ data: {
1325
+ ats: "cornerstone";
1326
+ integrationId: string;
1327
+ };
1328
+ type: "integration-workflow-get";
1329
+ isHead?: boolean | undefined;
1330
+ nextId?: string | undefined;
1331
+ } | {
1332
+ id: string;
1333
+ data: {
1334
+ href: string;
1335
+ cta: string;
1336
+ };
1337
+ type: "link";
1338
+ isHead?: boolean | undefined;
1339
+ nextId?: string | undefined;
1340
+ } | {
1341
+ id: string;
1342
+ data: {
1343
+ url: string;
1344
+ width: number;
1345
+ height: number;
1346
+ };
1347
+ type: "image";
1348
+ isHead?: boolean | undefined;
1349
+ nextId?: string | undefined;
1350
+ } | {
1351
+ id: string;
1352
+ data: {
1353
+ key: string;
1354
+ question: string;
1355
+ trueLabel: string;
1356
+ falseLabel: string;
1357
+ optional: boolean;
1358
+ };
1359
+ type: "question-boolean";
1360
+ isHead?: boolean | undefined;
1361
+ nextId?: string | undefined;
1362
+ } | {
1363
+ id: string;
1364
+ data: {
1365
+ key: string;
1366
+ question: string;
1367
+ optional: boolean;
1368
+ format: "text" | "url" | "email" | "phone";
1369
+ placeholder?: string | undefined;
1370
+ };
1371
+ type: "question-text";
1372
+ isHead?: boolean | undefined;
1373
+ nextId?: string | undefined;
1374
+ } | {
1375
+ id: string;
1376
+ data: {
1377
+ key: string;
1378
+ question: string;
1379
+ optional: boolean;
1380
+ placeholder?: string | undefined;
1381
+ decimalCases?: number | undefined;
1382
+ min?: number | undefined;
1383
+ max?: number | undefined;
1384
+ };
1385
+ type: "question-number";
1386
+ isHead?: boolean | undefined;
1387
+ nextId?: string | undefined;
1388
+ } | {
1389
+ id: string;
1390
+ data: {
1391
+ options: {
1392
+ value: string;
1393
+ label: string;
1394
+ }[];
1395
+ key: string;
1396
+ question: string;
1397
+ maxSelected: number;
1398
+ minSelected: number;
1399
+ };
1400
+ type: "question-enum";
1401
+ isHead?: boolean | undefined;
1402
+ nextId?: string | undefined;
1403
+ } | {
1404
+ id: string;
1405
+ data: {
1406
+ key: string;
1407
+ question: string;
1408
+ optional: boolean;
1409
+ extensions: string[];
1410
+ multiple?: boolean | undefined;
1411
+ maxSizeKb?: number | undefined;
1412
+ };
1413
+ type: "question-file";
1414
+ isHead?: boolean | undefined;
1415
+ nextId?: string | undefined;
1416
+ } | {
1417
+ id: string;
1418
+ data: {
1419
+ keys: {
1420
+ line1: string | null;
1421
+ line2: string | null;
1422
+ line3: string | null;
1423
+ city: string | null;
1424
+ state: string | null;
1425
+ postcode: string | null;
1426
+ country: string | null;
1427
+ };
1428
+ question: string;
1429
+ optional: boolean;
1430
+ placeholder?: string | undefined;
1431
+ };
1432
+ type: "question-address";
1433
+ isHead?: boolean | undefined;
1434
+ nextId?: string | undefined;
1435
+ } | {
1436
+ id: string;
1437
+ data: {
1438
+ compareKey: string;
1439
+ compareValue: string;
1440
+ compare: "equals" | "notEquals" | "contains" | "notContains";
1441
+ };
1442
+ type: "if-block";
1443
+ isHead?: boolean | undefined;
1444
+ nextId?: string | undefined;
1445
+ branchId?: string | undefined;
1446
+ } | {
1447
+ id: string;
1448
+ data: {
1449
+ targetId: string;
1450
+ };
1451
+ type: "jump";
1452
+ isHead?: boolean | undefined;
1453
+ nextId?: string | undefined;
1454
+ })[]>;
1455
+ }, undefined, {
1456
+ id: string;
1457
+ version: number;
1458
+ nodes: ({
1459
+ id: string;
1460
+ data: {
1461
+ text: string;
1462
+ };
1463
+ type: "text";
1464
+ isHead?: boolean | undefined;
1465
+ nextId?: string | undefined;
1466
+ } | {
1467
+ id: string;
1468
+ data: {
1469
+ systemMessage: string;
1470
+ };
1471
+ type: "end-flow";
1472
+ isHead?: boolean | undefined;
1473
+ nextId?: string | undefined;
1474
+ } | {
1475
+ id: string;
1476
+ data: {
1477
+ integrationId: string;
1478
+ };
1479
+ type: "integration-application-submit";
1480
+ isHead?: boolean | undefined;
1481
+ nextId?: string | undefined;
1482
+ } | {
1483
+ id: string;
1484
+ data: {
1485
+ ats: "cornerstone";
1486
+ integrationId: string;
1487
+ };
1488
+ type: "integration-workflow-get";
1489
+ isHead?: boolean | undefined;
1490
+ nextId?: string | undefined;
1491
+ } | {
1492
+ id: string;
1493
+ data: {
1494
+ href: string;
1495
+ cta: string;
1496
+ };
1497
+ type: "link";
1498
+ isHead?: boolean | undefined;
1499
+ nextId?: string | undefined;
1500
+ } | {
1501
+ id: string;
1502
+ data: {
1503
+ url: string;
1504
+ width: number;
1505
+ height: number;
1506
+ };
1507
+ type: "image";
1508
+ isHead?: boolean | undefined;
1509
+ nextId?: string | undefined;
1510
+ } | {
1511
+ id: string;
1512
+ data: {
1513
+ key: string;
1514
+ question: string;
1515
+ trueLabel: string;
1516
+ falseLabel: string;
1517
+ optional: boolean;
1518
+ };
1519
+ type: "question-boolean";
1520
+ isHead?: boolean | undefined;
1521
+ nextId?: string | undefined;
1522
+ } | {
1523
+ id: string;
1524
+ data: {
1525
+ key: string;
1526
+ question: string;
1527
+ optional: boolean;
1528
+ format: "text" | "url" | "email" | "phone";
1529
+ placeholder?: string | undefined;
1530
+ };
1531
+ type: "question-text";
1532
+ isHead?: boolean | undefined;
1533
+ nextId?: string | undefined;
1534
+ } | {
1535
+ id: string;
1536
+ data: {
1537
+ key: string;
1538
+ question: string;
1539
+ optional: boolean;
1540
+ placeholder?: string | undefined;
1541
+ decimalCases?: number | undefined;
1542
+ min?: number | undefined;
1543
+ max?: number | undefined;
1544
+ };
1545
+ type: "question-number";
1546
+ isHead?: boolean | undefined;
1547
+ nextId?: string | undefined;
1548
+ } | {
1549
+ id: string;
1550
+ data: {
1551
+ options: {
1552
+ value: string;
1553
+ label: string;
1554
+ }[];
1555
+ key: string;
1556
+ question: string;
1557
+ maxSelected: number;
1558
+ minSelected: number;
1559
+ };
1560
+ type: "question-enum";
1561
+ isHead?: boolean | undefined;
1562
+ nextId?: string | undefined;
1563
+ } | {
1564
+ id: string;
1565
+ data: {
1566
+ key: string;
1567
+ question: string;
1568
+ optional: boolean;
1569
+ extensions: string[];
1570
+ multiple?: boolean | undefined;
1571
+ maxSizeKb?: number | undefined;
1572
+ };
1573
+ type: "question-file";
1574
+ isHead?: boolean | undefined;
1575
+ nextId?: string | undefined;
1576
+ } | {
1577
+ id: string;
1578
+ data: {
1579
+ keys: {
1580
+ line1: string | null;
1581
+ line2: string | null;
1582
+ line3: string | null;
1583
+ city: string | null;
1584
+ state: string | null;
1585
+ postcode: string | null;
1586
+ country: string | null;
1587
+ };
1588
+ question: string;
1589
+ optional: boolean;
1590
+ placeholder?: string | undefined;
1591
+ };
1592
+ type: "question-address";
1593
+ isHead?: boolean | undefined;
1594
+ nextId?: string | undefined;
1595
+ } | {
1596
+ id: string;
1597
+ data: {
1598
+ compareKey: string;
1599
+ compareValue: string;
1600
+ compare: "equals" | "notEquals" | "contains" | "notContains";
1601
+ };
1602
+ type: "if-block";
1603
+ isHead?: boolean | undefined;
1604
+ nextId?: string | undefined;
1605
+ branchId?: string | undefined;
1606
+ } | {
1607
+ id: string;
1608
+ data: {
1609
+ targetId: string;
1610
+ };
1611
+ type: "jump";
1612
+ isHead?: boolean | undefined;
1613
+ nextId?: string | undefined;
1614
+ })[];
1615
+ }>;
1616
+ job: import("valibot").ObjectSchema<{
1617
+ id: import("valibot").StringSchema<string>;
1618
+ title: import("valibot").StringSchema<string>;
1619
+ }, undefined, {
1620
+ id: string;
1621
+ title: string;
1622
+ }>;
1623
+ }, undefined, {
1624
+ flow: {
1625
+ id: string;
1626
+ version: number;
1627
+ nodes: ({
1628
+ id: string;
1629
+ data: {
1630
+ text: string;
1631
+ };
1632
+ type: "text";
1633
+ isHead?: boolean | undefined;
1634
+ nextId?: string | undefined;
1635
+ } | {
1636
+ id: string;
1637
+ data: {
1638
+ systemMessage: string;
1639
+ };
1640
+ type: "end-flow";
1641
+ isHead?: boolean | undefined;
1642
+ nextId?: string | undefined;
1643
+ } | {
1644
+ id: string;
1645
+ data: {
1646
+ integrationId: string;
1647
+ };
1648
+ type: "integration-application-submit";
1649
+ isHead?: boolean | undefined;
1650
+ nextId?: string | undefined;
1651
+ } | {
1652
+ id: string;
1653
+ data: {
1654
+ ats: "cornerstone";
1655
+ integrationId: string;
1656
+ };
1657
+ type: "integration-workflow-get";
1658
+ isHead?: boolean | undefined;
1659
+ nextId?: string | undefined;
1660
+ } | {
1661
+ id: string;
1662
+ data: {
1663
+ href: string;
1664
+ cta: string;
1665
+ };
1666
+ type: "link";
1667
+ isHead?: boolean | undefined;
1668
+ nextId?: string | undefined;
1669
+ } | {
1670
+ id: string;
1671
+ data: {
1672
+ url: string;
1673
+ width: number;
1674
+ height: number;
1675
+ };
1676
+ type: "image";
1677
+ isHead?: boolean | undefined;
1678
+ nextId?: string | undefined;
1679
+ } | {
1680
+ id: string;
1681
+ data: {
1682
+ key: string;
1683
+ question: string;
1684
+ trueLabel: string;
1685
+ falseLabel: string;
1686
+ optional: boolean;
1687
+ };
1688
+ type: "question-boolean";
1689
+ isHead?: boolean | undefined;
1690
+ nextId?: string | undefined;
1691
+ } | {
1692
+ id: string;
1693
+ data: {
1694
+ key: string;
1695
+ question: string;
1696
+ optional: boolean;
1697
+ format: "text" | "url" | "email" | "phone";
1698
+ placeholder?: string | undefined;
1699
+ };
1700
+ type: "question-text";
1701
+ isHead?: boolean | undefined;
1702
+ nextId?: string | undefined;
1703
+ } | {
1704
+ id: string;
1705
+ data: {
1706
+ key: string;
1707
+ question: string;
1708
+ optional: boolean;
1709
+ placeholder?: string | undefined;
1710
+ decimalCases?: number | undefined;
1711
+ min?: number | undefined;
1712
+ max?: number | undefined;
1713
+ };
1714
+ type: "question-number";
1715
+ isHead?: boolean | undefined;
1716
+ nextId?: string | undefined;
1717
+ } | {
1718
+ id: string;
1719
+ data: {
1720
+ options: {
1721
+ value: string;
1722
+ label: string;
1723
+ }[];
1724
+ key: string;
1725
+ question: string;
1726
+ maxSelected: number;
1727
+ minSelected: number;
1728
+ };
1729
+ type: "question-enum";
1730
+ isHead?: boolean | undefined;
1731
+ nextId?: string | undefined;
1732
+ } | {
1733
+ id: string;
1734
+ data: {
1735
+ key: string;
1736
+ question: string;
1737
+ optional: boolean;
1738
+ extensions: string[];
1739
+ multiple?: boolean | undefined;
1740
+ maxSizeKb?: number | undefined;
1741
+ };
1742
+ type: "question-file";
1743
+ isHead?: boolean | undefined;
1744
+ nextId?: string | undefined;
1745
+ } | {
1746
+ id: string;
1747
+ data: {
1748
+ keys: {
1749
+ line1: string | null;
1750
+ line2: string | null;
1751
+ line3: string | null;
1752
+ city: string | null;
1753
+ state: string | null;
1754
+ postcode: string | null;
1755
+ country: string | null;
1756
+ };
1757
+ question: string;
1758
+ optional: boolean;
1759
+ placeholder?: string | undefined;
1760
+ };
1761
+ type: "question-address";
1762
+ isHead?: boolean | undefined;
1763
+ nextId?: string | undefined;
1764
+ } | {
1765
+ id: string;
1766
+ data: {
1767
+ compareKey: string;
1768
+ compareValue: string;
1769
+ compare: "equals" | "notEquals" | "contains" | "notContains";
1770
+ };
1771
+ type: "if-block";
1772
+ isHead?: boolean | undefined;
1773
+ nextId?: string | undefined;
1774
+ branchId?: string | undefined;
1775
+ } | {
1776
+ id: string;
1777
+ data: {
1778
+ targetId: string;
1779
+ };
1780
+ type: "jump";
1781
+ isHead?: boolean | undefined;
1782
+ nextId?: string | undefined;
1783
+ })[];
1784
+ };
1785
+ company: {
1786
+ name: string;
1787
+ };
1788
+ job: {
1789
+ id: string;
1790
+ title: string;
1791
+ };
1792
+ }>;
1793
+ export declare const StartFlowSchema: import("valibot").ObjectSchema<{
1794
+ flow: import("valibot").ObjectSchema<{
1795
+ id: import("valibot").StringSchema<string>;
1796
+ version: import("valibot").NumberSchema<number>;
1797
+ nodes: import("valibot").ArraySchema<AnySchema<{
1798
+ id: string;
1799
+ data: {
1800
+ text: string;
1801
+ };
1802
+ type: "text";
1803
+ isHead?: boolean | undefined;
1804
+ nextId?: string | undefined;
1805
+ } | {
1806
+ id: string;
1807
+ data: {
1808
+ systemMessage: string;
1809
+ };
1810
+ type: "end-flow";
1811
+ isHead?: boolean | undefined;
1812
+ nextId?: string | undefined;
1813
+ } | {
1814
+ id: string;
1815
+ data: {
1816
+ integrationId: string;
1817
+ };
1818
+ type: "integration-application-submit";
1819
+ isHead?: boolean | undefined;
1820
+ nextId?: string | undefined;
1821
+ } | {
1822
+ id: string;
1823
+ data: {
1824
+ ats: "cornerstone";
1825
+ integrationId: string;
1826
+ };
1827
+ type: "integration-workflow-get";
1828
+ isHead?: boolean | undefined;
1829
+ nextId?: string | undefined;
1830
+ } | {
1831
+ id: string;
1832
+ data: {
1833
+ href: string;
1834
+ cta: string;
1835
+ };
1836
+ type: "link";
1837
+ isHead?: boolean | undefined;
1838
+ nextId?: string | undefined;
1839
+ } | {
1840
+ id: string;
1841
+ data: {
1842
+ url: string;
1843
+ width: number;
1844
+ height: number;
1845
+ };
1846
+ type: "image";
1847
+ isHead?: boolean | undefined;
1848
+ nextId?: string | undefined;
1849
+ } | {
1850
+ id: string;
1851
+ data: {
1852
+ key: string;
1853
+ question: string;
1854
+ trueLabel: string;
1855
+ falseLabel: string;
1856
+ optional: boolean;
1857
+ };
1858
+ type: "question-boolean";
1859
+ isHead?: boolean | undefined;
1860
+ nextId?: string | undefined;
1861
+ } | {
1862
+ id: string;
1863
+ data: {
1864
+ key: string;
1865
+ question: string;
1866
+ optional: boolean;
1867
+ format: "text" | "url" | "email" | "phone";
1868
+ placeholder?: string | undefined;
1869
+ };
1870
+ type: "question-text";
1871
+ isHead?: boolean | undefined;
1872
+ nextId?: string | undefined;
1873
+ } | {
1874
+ id: string;
1875
+ data: {
1876
+ key: string;
1877
+ question: string;
1878
+ optional: boolean;
1879
+ placeholder?: string | undefined;
1880
+ decimalCases?: number | undefined;
1881
+ min?: number | undefined;
1882
+ max?: number | undefined;
1883
+ };
1884
+ type: "question-number";
1885
+ isHead?: boolean | undefined;
1886
+ nextId?: string | undefined;
1887
+ } | {
1888
+ id: string;
1889
+ data: {
1890
+ options: {
1891
+ value: string;
1892
+ label: string;
1893
+ }[];
1894
+ key: string;
1895
+ question: string;
1896
+ maxSelected: number;
1897
+ minSelected: number;
1898
+ };
1899
+ type: "question-enum";
1900
+ isHead?: boolean | undefined;
1901
+ nextId?: string | undefined;
1902
+ } | {
1903
+ id: string;
1904
+ data: {
1905
+ key: string;
1906
+ question: string;
1907
+ optional: boolean;
1908
+ extensions: string[];
1909
+ multiple?: boolean | undefined;
1910
+ maxSizeKb?: number | undefined;
1911
+ };
1912
+ type: "question-file";
1913
+ isHead?: boolean | undefined;
1914
+ nextId?: string | undefined;
1915
+ } | {
1916
+ id: string;
1917
+ data: {
1918
+ keys: {
1919
+ line1: string | null;
1920
+ line2: string | null;
1921
+ line3: string | null;
1922
+ city: string | null;
1923
+ state: string | null;
1924
+ postcode: string | null;
1925
+ country: string | null;
1926
+ };
1927
+ question: string;
1928
+ optional: boolean;
1929
+ placeholder?: string | undefined;
1930
+ };
1931
+ type: "question-address";
1932
+ isHead?: boolean | undefined;
1933
+ nextId?: string | undefined;
1934
+ } | {
1935
+ id: string;
1936
+ data: {
1937
+ compareKey: string;
1938
+ compareValue: string;
1939
+ compare: "equals" | "notEquals" | "contains" | "notContains";
1940
+ };
1941
+ type: "if-block";
1942
+ isHead?: boolean | undefined;
1943
+ nextId?: string | undefined;
1944
+ branchId?: string | undefined;
1945
+ } | {
1946
+ id: string;
1947
+ data: {
1948
+ targetId: string;
1949
+ };
1950
+ type: "jump";
1951
+ isHead?: boolean | undefined;
1952
+ nextId?: string | undefined;
1953
+ }>, ({
1954
+ id: string;
1955
+ data: {
1956
+ text: string;
1957
+ };
1958
+ type: "text";
1959
+ isHead?: boolean | undefined;
1960
+ nextId?: string | undefined;
1961
+ } | {
1962
+ id: string;
1963
+ data: {
1964
+ systemMessage: string;
1965
+ };
1966
+ type: "end-flow";
1967
+ isHead?: boolean | undefined;
1968
+ nextId?: string | undefined;
1969
+ } | {
1970
+ id: string;
1971
+ data: {
1972
+ integrationId: string;
1973
+ };
1974
+ type: "integration-application-submit";
1975
+ isHead?: boolean | undefined;
1976
+ nextId?: string | undefined;
1977
+ } | {
1978
+ id: string;
1979
+ data: {
1980
+ ats: "cornerstone";
1981
+ integrationId: string;
1982
+ };
1983
+ type: "integration-workflow-get";
1984
+ isHead?: boolean | undefined;
1985
+ nextId?: string | undefined;
1986
+ } | {
1987
+ id: string;
1988
+ data: {
1989
+ href: string;
1990
+ cta: string;
1991
+ };
1992
+ type: "link";
1993
+ isHead?: boolean | undefined;
1994
+ nextId?: string | undefined;
1995
+ } | {
1996
+ id: string;
1997
+ data: {
1998
+ url: string;
1999
+ width: number;
2000
+ height: number;
2001
+ };
2002
+ type: "image";
2003
+ isHead?: boolean | undefined;
2004
+ nextId?: string | undefined;
2005
+ } | {
2006
+ id: string;
2007
+ data: {
2008
+ key: string;
2009
+ question: string;
2010
+ trueLabel: string;
2011
+ falseLabel: string;
2012
+ optional: boolean;
2013
+ };
2014
+ type: "question-boolean";
2015
+ isHead?: boolean | undefined;
2016
+ nextId?: string | undefined;
2017
+ } | {
2018
+ id: string;
2019
+ data: {
2020
+ key: string;
2021
+ question: string;
2022
+ optional: boolean;
2023
+ format: "text" | "url" | "email" | "phone";
2024
+ placeholder?: string | undefined;
2025
+ };
2026
+ type: "question-text";
2027
+ isHead?: boolean | undefined;
2028
+ nextId?: string | undefined;
2029
+ } | {
2030
+ id: string;
2031
+ data: {
2032
+ key: string;
2033
+ question: string;
2034
+ optional: boolean;
2035
+ placeholder?: string | undefined;
2036
+ decimalCases?: number | undefined;
2037
+ min?: number | undefined;
2038
+ max?: number | undefined;
2039
+ };
2040
+ type: "question-number";
2041
+ isHead?: boolean | undefined;
2042
+ nextId?: string | undefined;
2043
+ } | {
2044
+ id: string;
2045
+ data: {
2046
+ options: {
2047
+ value: string;
2048
+ label: string;
2049
+ }[];
2050
+ key: string;
2051
+ question: string;
2052
+ maxSelected: number;
2053
+ minSelected: number;
2054
+ };
2055
+ type: "question-enum";
2056
+ isHead?: boolean | undefined;
2057
+ nextId?: string | undefined;
2058
+ } | {
2059
+ id: string;
2060
+ data: {
2061
+ key: string;
2062
+ question: string;
2063
+ optional: boolean;
2064
+ extensions: string[];
2065
+ multiple?: boolean | undefined;
2066
+ maxSizeKb?: number | undefined;
2067
+ };
2068
+ type: "question-file";
2069
+ isHead?: boolean | undefined;
2070
+ nextId?: string | undefined;
2071
+ } | {
2072
+ id: string;
2073
+ data: {
2074
+ keys: {
2075
+ line1: string | null;
2076
+ line2: string | null;
2077
+ line3: string | null;
2078
+ city: string | null;
2079
+ state: string | null;
2080
+ postcode: string | null;
2081
+ country: string | null;
2082
+ };
2083
+ question: string;
2084
+ optional: boolean;
2085
+ placeholder?: string | undefined;
2086
+ };
2087
+ type: "question-address";
2088
+ isHead?: boolean | undefined;
2089
+ nextId?: string | undefined;
2090
+ } | {
2091
+ id: string;
2092
+ data: {
2093
+ compareKey: string;
2094
+ compareValue: string;
2095
+ compare: "equals" | "notEquals" | "contains" | "notContains";
2096
+ };
2097
+ type: "if-block";
2098
+ isHead?: boolean | undefined;
2099
+ nextId?: string | undefined;
2100
+ branchId?: string | undefined;
2101
+ } | {
2102
+ id: string;
2103
+ data: {
2104
+ targetId: string;
2105
+ };
2106
+ type: "jump";
2107
+ isHead?: boolean | undefined;
2108
+ nextId?: string | undefined;
2109
+ })[]>;
2110
+ }, undefined, {
2111
+ id: string;
2112
+ version: number;
2113
+ nodes: ({
2114
+ id: string;
2115
+ data: {
2116
+ text: string;
2117
+ };
2118
+ type: "text";
2119
+ isHead?: boolean | undefined;
2120
+ nextId?: string | undefined;
2121
+ } | {
2122
+ id: string;
2123
+ data: {
2124
+ systemMessage: string;
2125
+ };
2126
+ type: "end-flow";
2127
+ isHead?: boolean | undefined;
2128
+ nextId?: string | undefined;
2129
+ } | {
2130
+ id: string;
2131
+ data: {
2132
+ integrationId: string;
2133
+ };
2134
+ type: "integration-application-submit";
2135
+ isHead?: boolean | undefined;
2136
+ nextId?: string | undefined;
2137
+ } | {
2138
+ id: string;
2139
+ data: {
2140
+ ats: "cornerstone";
2141
+ integrationId: string;
2142
+ };
2143
+ type: "integration-workflow-get";
2144
+ isHead?: boolean | undefined;
2145
+ nextId?: string | undefined;
2146
+ } | {
2147
+ id: string;
2148
+ data: {
2149
+ href: string;
2150
+ cta: string;
2151
+ };
2152
+ type: "link";
2153
+ isHead?: boolean | undefined;
2154
+ nextId?: string | undefined;
2155
+ } | {
2156
+ id: string;
2157
+ data: {
2158
+ url: string;
2159
+ width: number;
2160
+ height: number;
2161
+ };
2162
+ type: "image";
2163
+ isHead?: boolean | undefined;
2164
+ nextId?: string | undefined;
2165
+ } | {
2166
+ id: string;
2167
+ data: {
2168
+ key: string;
2169
+ question: string;
2170
+ trueLabel: string;
2171
+ falseLabel: string;
2172
+ optional: boolean;
2173
+ };
2174
+ type: "question-boolean";
2175
+ isHead?: boolean | undefined;
2176
+ nextId?: string | undefined;
2177
+ } | {
2178
+ id: string;
2179
+ data: {
2180
+ key: string;
2181
+ question: string;
2182
+ optional: boolean;
2183
+ format: "text" | "url" | "email" | "phone";
2184
+ placeholder?: string | undefined;
2185
+ };
2186
+ type: "question-text";
2187
+ isHead?: boolean | undefined;
2188
+ nextId?: string | undefined;
2189
+ } | {
2190
+ id: string;
2191
+ data: {
2192
+ key: string;
2193
+ question: string;
2194
+ optional: boolean;
2195
+ placeholder?: string | undefined;
2196
+ decimalCases?: number | undefined;
2197
+ min?: number | undefined;
2198
+ max?: number | undefined;
2199
+ };
2200
+ type: "question-number";
2201
+ isHead?: boolean | undefined;
2202
+ nextId?: string | undefined;
2203
+ } | {
2204
+ id: string;
2205
+ data: {
2206
+ options: {
2207
+ value: string;
2208
+ label: string;
2209
+ }[];
2210
+ key: string;
2211
+ question: string;
2212
+ maxSelected: number;
2213
+ minSelected: number;
2214
+ };
2215
+ type: "question-enum";
2216
+ isHead?: boolean | undefined;
2217
+ nextId?: string | undefined;
2218
+ } | {
2219
+ id: string;
2220
+ data: {
2221
+ key: string;
2222
+ question: string;
2223
+ optional: boolean;
2224
+ extensions: string[];
2225
+ multiple?: boolean | undefined;
2226
+ maxSizeKb?: number | undefined;
2227
+ };
2228
+ type: "question-file";
2229
+ isHead?: boolean | undefined;
2230
+ nextId?: string | undefined;
2231
+ } | {
2232
+ id: string;
2233
+ data: {
2234
+ keys: {
2235
+ line1: string | null;
2236
+ line2: string | null;
2237
+ line3: string | null;
2238
+ city: string | null;
2239
+ state: string | null;
2240
+ postcode: string | null;
2241
+ country: string | null;
2242
+ };
2243
+ question: string;
2244
+ optional: boolean;
2245
+ placeholder?: string | undefined;
2246
+ };
2247
+ type: "question-address";
2248
+ isHead?: boolean | undefined;
2249
+ nextId?: string | undefined;
2250
+ } | {
2251
+ id: string;
2252
+ data: {
2253
+ compareKey: string;
2254
+ compareValue: string;
2255
+ compare: "equals" | "notEquals" | "contains" | "notContains";
2256
+ };
2257
+ type: "if-block";
2258
+ isHead?: boolean | undefined;
2259
+ nextId?: string | undefined;
2260
+ branchId?: string | undefined;
2261
+ } | {
2262
+ id: string;
2263
+ data: {
2264
+ targetId: string;
2265
+ };
2266
+ type: "jump";
2267
+ isHead?: boolean | undefined;
2268
+ nextId?: string | undefined;
2269
+ })[];
2270
+ }>;
2271
+ title: import("valibot").StringSchema<string>;
2272
+ flowKeys: import("valibot").ArraySchema<import("valibot").StringSchema<string>, string[]>;
2273
+ context: import("valibot").RecordSchema<import("valibot").StringSchema<string>, AnySchema<any>, {
2274
+ [x: string]: any;
2275
+ }>;
2276
+ }, undefined, {
2277
+ flow: {
2278
+ id: string;
2279
+ version: number;
2280
+ nodes: ({
2281
+ id: string;
2282
+ data: {
2283
+ text: string;
2284
+ };
2285
+ type: "text";
2286
+ isHead?: boolean | undefined;
2287
+ nextId?: string | undefined;
2288
+ } | {
2289
+ id: string;
2290
+ data: {
2291
+ systemMessage: string;
2292
+ };
2293
+ type: "end-flow";
2294
+ isHead?: boolean | undefined;
2295
+ nextId?: string | undefined;
2296
+ } | {
2297
+ id: string;
2298
+ data: {
2299
+ integrationId: string;
2300
+ };
2301
+ type: "integration-application-submit";
2302
+ isHead?: boolean | undefined;
2303
+ nextId?: string | undefined;
2304
+ } | {
2305
+ id: string;
2306
+ data: {
2307
+ ats: "cornerstone";
2308
+ integrationId: string;
2309
+ };
2310
+ type: "integration-workflow-get";
2311
+ isHead?: boolean | undefined;
2312
+ nextId?: string | undefined;
2313
+ } | {
2314
+ id: string;
2315
+ data: {
2316
+ href: string;
2317
+ cta: string;
2318
+ };
2319
+ type: "link";
2320
+ isHead?: boolean | undefined;
2321
+ nextId?: string | undefined;
2322
+ } | {
2323
+ id: string;
2324
+ data: {
2325
+ url: string;
2326
+ width: number;
2327
+ height: number;
2328
+ };
2329
+ type: "image";
2330
+ isHead?: boolean | undefined;
2331
+ nextId?: string | undefined;
2332
+ } | {
2333
+ id: string;
2334
+ data: {
2335
+ key: string;
2336
+ question: string;
2337
+ trueLabel: string;
2338
+ falseLabel: string;
2339
+ optional: boolean;
2340
+ };
2341
+ type: "question-boolean";
2342
+ isHead?: boolean | undefined;
2343
+ nextId?: string | undefined;
2344
+ } | {
2345
+ id: string;
2346
+ data: {
2347
+ key: string;
2348
+ question: string;
2349
+ optional: boolean;
2350
+ format: "text" | "url" | "email" | "phone";
2351
+ placeholder?: string | undefined;
2352
+ };
2353
+ type: "question-text";
2354
+ isHead?: boolean | undefined;
2355
+ nextId?: string | undefined;
2356
+ } | {
2357
+ id: string;
2358
+ data: {
2359
+ key: string;
2360
+ question: string;
2361
+ optional: boolean;
2362
+ placeholder?: string | undefined;
2363
+ decimalCases?: number | undefined;
2364
+ min?: number | undefined;
2365
+ max?: number | undefined;
2366
+ };
2367
+ type: "question-number";
2368
+ isHead?: boolean | undefined;
2369
+ nextId?: string | undefined;
2370
+ } | {
2371
+ id: string;
2372
+ data: {
2373
+ options: {
2374
+ value: string;
2375
+ label: string;
2376
+ }[];
2377
+ key: string;
2378
+ question: string;
2379
+ maxSelected: number;
2380
+ minSelected: number;
2381
+ };
2382
+ type: "question-enum";
2383
+ isHead?: boolean | undefined;
2384
+ nextId?: string | undefined;
2385
+ } | {
2386
+ id: string;
2387
+ data: {
2388
+ key: string;
2389
+ question: string;
2390
+ optional: boolean;
2391
+ extensions: string[];
2392
+ multiple?: boolean | undefined;
2393
+ maxSizeKb?: number | undefined;
2394
+ };
2395
+ type: "question-file";
2396
+ isHead?: boolean | undefined;
2397
+ nextId?: string | undefined;
2398
+ } | {
2399
+ id: string;
2400
+ data: {
2401
+ keys: {
2402
+ line1: string | null;
2403
+ line2: string | null;
2404
+ line3: string | null;
2405
+ city: string | null;
2406
+ state: string | null;
2407
+ postcode: string | null;
2408
+ country: string | null;
2409
+ };
2410
+ question: string;
2411
+ optional: boolean;
2412
+ placeholder?: string | undefined;
2413
+ };
2414
+ type: "question-address";
2415
+ isHead?: boolean | undefined;
2416
+ nextId?: string | undefined;
2417
+ } | {
2418
+ id: string;
2419
+ data: {
2420
+ compareKey: string;
2421
+ compareValue: string;
2422
+ compare: "equals" | "notEquals" | "contains" | "notContains";
2423
+ };
2424
+ type: "if-block";
2425
+ isHead?: boolean | undefined;
2426
+ nextId?: string | undefined;
2427
+ branchId?: string | undefined;
2428
+ } | {
2429
+ id: string;
2430
+ data: {
2431
+ targetId: string;
2432
+ };
2433
+ type: "jump";
2434
+ isHead?: boolean | undefined;
2435
+ nextId?: string | undefined;
2436
+ })[];
2437
+ };
2438
+ title: string;
2439
+ flowKeys: string[];
2440
+ context: {
2441
+ [x: string]: any;
2442
+ };
2443
+ }>;
10
2444
  export type JobApplication = {
11
2445
  job: {
12
2446
  id: string;
@@ -22,9 +2456,3 @@ export type JobApplication = {
22
2456
  nodes: FlowNode[];
23
2457
  };
24
2458
  };
25
- export declare function getApplicationData({ jobId, apiClient, logger, }: {
26
- jobId: string;
27
- apiClient: ApiClient;
28
- logger: Logger;
29
- }): Promise<Result<JobApplication>>;
30
- export {};