@bitflow/core 0.5.2 → 0.6.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.
@@ -0,0 +1,1478 @@
1
+ import { z, ZodSchema } from "zod";
2
+ declare type makeDoTrySchemaProps = {
3
+ start: ZodSchema<Bitflow.Start>;
4
+ end: ZodSchema<Bitflow.End>;
5
+ input: ZodSchema<Bitflow.Input>;
6
+ title: ZodSchema<Bitflow.Title>;
7
+ task: ZodSchema<Bitflow.Task>;
8
+ };
9
+ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<{
10
+ node: z.ZodUnion<[z.ZodObject<z.extendShape<{
11
+ id: z.ZodString;
12
+ position: z.ZodObject<{
13
+ x: z.ZodNumber;
14
+ y: z.ZodNumber;
15
+ }, "strip", z.ZodTypeAny, {
16
+ x: number;
17
+ y: number;
18
+ }, {
19
+ x: number;
20
+ y: number;
21
+ }>;
22
+ }, {
23
+ type: z.ZodLiteral<"start">;
24
+ data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
25
+ }>, "strip", z.ZodTypeAny, {
26
+ id: string;
27
+ type: "start";
28
+ position: {
29
+ x: number;
30
+ y: number;
31
+ };
32
+ data: Bitflow.Start;
33
+ }, {
34
+ id: string;
35
+ type: "start";
36
+ position: {
37
+ x: number;
38
+ y: number;
39
+ };
40
+ data: Bitflow.Start;
41
+ }>, z.ZodObject<z.extendShape<{
42
+ id: z.ZodString;
43
+ position: z.ZodObject<{
44
+ x: z.ZodNumber;
45
+ y: z.ZodNumber;
46
+ }, "strip", z.ZodTypeAny, {
47
+ x: number;
48
+ y: number;
49
+ }, {
50
+ x: number;
51
+ y: number;
52
+ }>;
53
+ }, {
54
+ type: z.ZodLiteral<"end">;
55
+ data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
56
+ }>, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ type: "end";
59
+ position: {
60
+ x: number;
61
+ y: number;
62
+ };
63
+ data: Bitflow.End;
64
+ }, {
65
+ id: string;
66
+ type: "end";
67
+ position: {
68
+ x: number;
69
+ y: number;
70
+ };
71
+ data: Bitflow.End;
72
+ }>, z.ZodObject<z.extendShape<{
73
+ id: z.ZodString;
74
+ position: z.ZodObject<{
75
+ x: z.ZodNumber;
76
+ y: z.ZodNumber;
77
+ }, "strip", z.ZodTypeAny, {
78
+ x: number;
79
+ y: number;
80
+ }, {
81
+ x: number;
82
+ y: number;
83
+ }>;
84
+ }, {
85
+ type: z.ZodLiteral<"input">;
86
+ data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
87
+ }>, "strip", z.ZodTypeAny, {
88
+ id: string;
89
+ type: "input";
90
+ position: {
91
+ x: number;
92
+ y: number;
93
+ };
94
+ data: Bitflow.Input;
95
+ }, {
96
+ id: string;
97
+ type: "input";
98
+ position: {
99
+ x: number;
100
+ y: number;
101
+ };
102
+ data: Bitflow.Input;
103
+ }>, z.ZodObject<z.extendShape<{
104
+ id: z.ZodString;
105
+ position: z.ZodObject<{
106
+ x: z.ZodNumber;
107
+ y: z.ZodNumber;
108
+ }, "strip", z.ZodTypeAny, {
109
+ x: number;
110
+ y: number;
111
+ }, {
112
+ x: number;
113
+ y: number;
114
+ }>;
115
+ }, {
116
+ type: z.ZodLiteral<"task">;
117
+ data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
118
+ }>, "strip", z.ZodTypeAny, {
119
+ id: string;
120
+ type: "task";
121
+ position: {
122
+ x: number;
123
+ y: number;
124
+ };
125
+ data: Bitflow.Task;
126
+ }, {
127
+ id: string;
128
+ type: "task";
129
+ position: {
130
+ x: number;
131
+ y: number;
132
+ };
133
+ data: Bitflow.Task;
134
+ }>, z.ZodObject<z.extendShape<{
135
+ id: z.ZodString;
136
+ position: z.ZodObject<{
137
+ x: z.ZodNumber;
138
+ y: z.ZodNumber;
139
+ }, "strip", z.ZodTypeAny, {
140
+ x: number;
141
+ y: number;
142
+ }, {
143
+ x: number;
144
+ y: number;
145
+ }>;
146
+ }, {
147
+ type: z.ZodLiteral<"title">;
148
+ data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
149
+ }>, "strip", z.ZodTypeAny, {
150
+ id: string;
151
+ type: "title";
152
+ position: {
153
+ x: number;
154
+ y: number;
155
+ };
156
+ data: Bitflow.Title;
157
+ }, {
158
+ id: string;
159
+ type: "title";
160
+ position: {
161
+ x: number;
162
+ y: number;
163
+ };
164
+ data: Bitflow.Title;
165
+ }>, z.ZodObject<z.extendShape<{
166
+ id: z.ZodString;
167
+ position: z.ZodObject<{
168
+ x: z.ZodNumber;
169
+ y: z.ZodNumber;
170
+ }, "strip", z.ZodTypeAny, {
171
+ x: number;
172
+ y: number;
173
+ }, {
174
+ x: number;
175
+ y: number;
176
+ }>;
177
+ }, {
178
+ type: z.ZodLiteral<"synchronize">;
179
+ data: z.ZodObject<{
180
+ unlocked: z.ZodBoolean;
181
+ }, "strip", z.ZodTypeAny, {
182
+ unlocked: boolean;
183
+ }, {
184
+ unlocked: boolean;
185
+ }>;
186
+ }>, "strip", z.ZodTypeAny, {
187
+ id: string;
188
+ type: "synchronize";
189
+ position: {
190
+ x: number;
191
+ y: number;
192
+ };
193
+ data: {
194
+ unlocked: boolean;
195
+ };
196
+ }, {
197
+ id: string;
198
+ type: "synchronize";
199
+ position: {
200
+ x: number;
201
+ y: number;
202
+ };
203
+ data: {
204
+ unlocked: boolean;
205
+ };
206
+ }>, z.ZodObject<z.extendShape<{
207
+ id: z.ZodString;
208
+ position: z.ZodObject<{
209
+ x: z.ZodNumber;
210
+ y: z.ZodNumber;
211
+ }, "strip", z.ZodTypeAny, {
212
+ x: number;
213
+ y: number;
214
+ }, {
215
+ x: number;
216
+ y: number;
217
+ }>;
218
+ }, {
219
+ type: z.ZodLiteral<"checkpoint">;
220
+ }>, "strip", z.ZodTypeAny, {
221
+ id: string;
222
+ type: "checkpoint";
223
+ position: {
224
+ x: number;
225
+ y: number;
226
+ };
227
+ }, {
228
+ id: string;
229
+ type: "checkpoint";
230
+ position: {
231
+ x: number;
232
+ y: number;
233
+ };
234
+ }>]>;
235
+ startDate: z.ZodDate;
236
+ try: z.ZodNumber;
237
+ status: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ status: string;
240
+ node: {
241
+ id: string;
242
+ type: "checkpoint";
243
+ position: {
244
+ x: number;
245
+ y: number;
246
+ };
247
+ } | {
248
+ id: string;
249
+ type: "synchronize";
250
+ position: {
251
+ x: number;
252
+ y: number;
253
+ };
254
+ data: {
255
+ unlocked: boolean;
256
+ };
257
+ } | {
258
+ id: string;
259
+ type: "task";
260
+ position: {
261
+ x: number;
262
+ y: number;
263
+ };
264
+ data: Bitflow.Task;
265
+ } | {
266
+ id: string;
267
+ type: "start";
268
+ position: {
269
+ x: number;
270
+ y: number;
271
+ };
272
+ data: Bitflow.Start;
273
+ } | {
274
+ id: string;
275
+ type: "end";
276
+ position: {
277
+ x: number;
278
+ y: number;
279
+ };
280
+ data: Bitflow.End;
281
+ } | {
282
+ id: string;
283
+ type: "input";
284
+ position: {
285
+ x: number;
286
+ y: number;
287
+ };
288
+ data: Bitflow.Input;
289
+ } | {
290
+ id: string;
291
+ type: "title";
292
+ position: {
293
+ x: number;
294
+ y: number;
295
+ };
296
+ data: Bitflow.Title;
297
+ };
298
+ startDate: Date;
299
+ try: number;
300
+ }, {
301
+ status: string;
302
+ node: {
303
+ id: string;
304
+ type: "checkpoint";
305
+ position: {
306
+ x: number;
307
+ y: number;
308
+ };
309
+ } | {
310
+ id: string;
311
+ type: "synchronize";
312
+ position: {
313
+ x: number;
314
+ y: number;
315
+ };
316
+ data: {
317
+ unlocked: boolean;
318
+ };
319
+ } | {
320
+ id: string;
321
+ type: "task";
322
+ position: {
323
+ x: number;
324
+ y: number;
325
+ };
326
+ data: Bitflow.Task;
327
+ } | {
328
+ id: string;
329
+ type: "start";
330
+ position: {
331
+ x: number;
332
+ y: number;
333
+ };
334
+ data: Bitflow.Start;
335
+ } | {
336
+ id: string;
337
+ type: "end";
338
+ position: {
339
+ x: number;
340
+ y: number;
341
+ };
342
+ data: Bitflow.End;
343
+ } | {
344
+ id: string;
345
+ type: "input";
346
+ position: {
347
+ x: number;
348
+ y: number;
349
+ };
350
+ data: Bitflow.Input;
351
+ } | {
352
+ id: string;
353
+ type: "title";
354
+ position: {
355
+ x: number;
356
+ y: number;
357
+ };
358
+ data: Bitflow.Title;
359
+ };
360
+ startDate: Date;
361
+ try: number;
362
+ }>;
363
+ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
364
+ node: z.ZodUnion<[z.ZodObject<z.extendShape<{
365
+ id: z.ZodString;
366
+ position: z.ZodObject<{
367
+ x: z.ZodNumber;
368
+ y: z.ZodNumber;
369
+ }, "strip", z.ZodTypeAny, {
370
+ x: number;
371
+ y: number;
372
+ }, {
373
+ x: number;
374
+ y: number;
375
+ }>;
376
+ }, {
377
+ type: z.ZodLiteral<"start">;
378
+ data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
379
+ }>, "strip", z.ZodTypeAny, {
380
+ id: string;
381
+ type: "start";
382
+ position: {
383
+ x: number;
384
+ y: number;
385
+ };
386
+ data: Bitflow.Start;
387
+ }, {
388
+ id: string;
389
+ type: "start";
390
+ position: {
391
+ x: number;
392
+ y: number;
393
+ };
394
+ data: Bitflow.Start;
395
+ }>, z.ZodObject<z.extendShape<{
396
+ id: z.ZodString;
397
+ position: z.ZodObject<{
398
+ x: z.ZodNumber;
399
+ y: z.ZodNumber;
400
+ }, "strip", z.ZodTypeAny, {
401
+ x: number;
402
+ y: number;
403
+ }, {
404
+ x: number;
405
+ y: number;
406
+ }>;
407
+ }, {
408
+ type: z.ZodLiteral<"end">;
409
+ data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
410
+ }>, "strip", z.ZodTypeAny, {
411
+ id: string;
412
+ type: "end";
413
+ position: {
414
+ x: number;
415
+ y: number;
416
+ };
417
+ data: Bitflow.End;
418
+ }, {
419
+ id: string;
420
+ type: "end";
421
+ position: {
422
+ x: number;
423
+ y: number;
424
+ };
425
+ data: Bitflow.End;
426
+ }>, z.ZodObject<z.extendShape<{
427
+ id: z.ZodString;
428
+ position: z.ZodObject<{
429
+ x: z.ZodNumber;
430
+ y: z.ZodNumber;
431
+ }, "strip", z.ZodTypeAny, {
432
+ x: number;
433
+ y: number;
434
+ }, {
435
+ x: number;
436
+ y: number;
437
+ }>;
438
+ }, {
439
+ type: z.ZodLiteral<"input">;
440
+ data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
441
+ }>, "strip", z.ZodTypeAny, {
442
+ id: string;
443
+ type: "input";
444
+ position: {
445
+ x: number;
446
+ y: number;
447
+ };
448
+ data: Bitflow.Input;
449
+ }, {
450
+ id: string;
451
+ type: "input";
452
+ position: {
453
+ x: number;
454
+ y: number;
455
+ };
456
+ data: Bitflow.Input;
457
+ }>, z.ZodObject<z.extendShape<{
458
+ id: z.ZodString;
459
+ position: z.ZodObject<{
460
+ x: z.ZodNumber;
461
+ y: z.ZodNumber;
462
+ }, "strip", z.ZodTypeAny, {
463
+ x: number;
464
+ y: number;
465
+ }, {
466
+ x: number;
467
+ y: number;
468
+ }>;
469
+ }, {
470
+ type: z.ZodLiteral<"task">;
471
+ data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
472
+ }>, "strip", z.ZodTypeAny, {
473
+ id: string;
474
+ type: "task";
475
+ position: {
476
+ x: number;
477
+ y: number;
478
+ };
479
+ data: Bitflow.Task;
480
+ }, {
481
+ id: string;
482
+ type: "task";
483
+ position: {
484
+ x: number;
485
+ y: number;
486
+ };
487
+ data: Bitflow.Task;
488
+ }>, z.ZodObject<z.extendShape<{
489
+ id: z.ZodString;
490
+ position: z.ZodObject<{
491
+ x: z.ZodNumber;
492
+ y: z.ZodNumber;
493
+ }, "strip", z.ZodTypeAny, {
494
+ x: number;
495
+ y: number;
496
+ }, {
497
+ x: number;
498
+ y: number;
499
+ }>;
500
+ }, {
501
+ type: z.ZodLiteral<"title">;
502
+ data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
503
+ }>, "strip", z.ZodTypeAny, {
504
+ id: string;
505
+ type: "title";
506
+ position: {
507
+ x: number;
508
+ y: number;
509
+ };
510
+ data: Bitflow.Title;
511
+ }, {
512
+ id: string;
513
+ type: "title";
514
+ position: {
515
+ x: number;
516
+ y: number;
517
+ };
518
+ data: Bitflow.Title;
519
+ }>, z.ZodObject<z.extendShape<{
520
+ id: z.ZodString;
521
+ position: z.ZodObject<{
522
+ x: z.ZodNumber;
523
+ y: z.ZodNumber;
524
+ }, "strip", z.ZodTypeAny, {
525
+ x: number;
526
+ y: number;
527
+ }, {
528
+ x: number;
529
+ y: number;
530
+ }>;
531
+ }, {
532
+ type: z.ZodLiteral<"synchronize">;
533
+ data: z.ZodObject<{
534
+ unlocked: z.ZodBoolean;
535
+ }, "strip", z.ZodTypeAny, {
536
+ unlocked: boolean;
537
+ }, {
538
+ unlocked: boolean;
539
+ }>;
540
+ }>, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ type: "synchronize";
543
+ position: {
544
+ x: number;
545
+ y: number;
546
+ };
547
+ data: {
548
+ unlocked: boolean;
549
+ };
550
+ }, {
551
+ id: string;
552
+ type: "synchronize";
553
+ position: {
554
+ x: number;
555
+ y: number;
556
+ };
557
+ data: {
558
+ unlocked: boolean;
559
+ };
560
+ }>, z.ZodObject<z.extendShape<{
561
+ id: z.ZodString;
562
+ position: z.ZodObject<{
563
+ x: z.ZodNumber;
564
+ y: z.ZodNumber;
565
+ }, "strip", z.ZodTypeAny, {
566
+ x: number;
567
+ y: number;
568
+ }, {
569
+ x: number;
570
+ y: number;
571
+ }>;
572
+ }, {
573
+ type: z.ZodLiteral<"checkpoint">;
574
+ }>, "strip", z.ZodTypeAny, {
575
+ id: string;
576
+ type: "checkpoint";
577
+ position: {
578
+ x: number;
579
+ y: number;
580
+ };
581
+ }, {
582
+ id: string;
583
+ type: "checkpoint";
584
+ position: {
585
+ x: number;
586
+ y: number;
587
+ };
588
+ }>]>;
589
+ startDate: z.ZodDate;
590
+ try: z.ZodNumber;
591
+ status: z.ZodString;
592
+ }, {
593
+ status: z.ZodLiteral<"started">;
594
+ }>, "strip", z.ZodTypeAny, {
595
+ status: "started";
596
+ node: {
597
+ id: string;
598
+ type: "checkpoint";
599
+ position: {
600
+ x: number;
601
+ y: number;
602
+ };
603
+ } | {
604
+ id: string;
605
+ type: "synchronize";
606
+ position: {
607
+ x: number;
608
+ y: number;
609
+ };
610
+ data: {
611
+ unlocked: boolean;
612
+ };
613
+ } | {
614
+ id: string;
615
+ type: "task";
616
+ position: {
617
+ x: number;
618
+ y: number;
619
+ };
620
+ data: Bitflow.Task;
621
+ } | {
622
+ id: string;
623
+ type: "start";
624
+ position: {
625
+ x: number;
626
+ y: number;
627
+ };
628
+ data: Bitflow.Start;
629
+ } | {
630
+ id: string;
631
+ type: "end";
632
+ position: {
633
+ x: number;
634
+ y: number;
635
+ };
636
+ data: Bitflow.End;
637
+ } | {
638
+ id: string;
639
+ type: "input";
640
+ position: {
641
+ x: number;
642
+ y: number;
643
+ };
644
+ data: Bitflow.Input;
645
+ } | {
646
+ id: string;
647
+ type: "title";
648
+ position: {
649
+ x: number;
650
+ y: number;
651
+ };
652
+ data: Bitflow.Title;
653
+ };
654
+ startDate: Date;
655
+ try: number;
656
+ }, {
657
+ status: "started";
658
+ node: {
659
+ id: string;
660
+ type: "checkpoint";
661
+ position: {
662
+ x: number;
663
+ y: number;
664
+ };
665
+ } | {
666
+ id: string;
667
+ type: "synchronize";
668
+ position: {
669
+ x: number;
670
+ y: number;
671
+ };
672
+ data: {
673
+ unlocked: boolean;
674
+ };
675
+ } | {
676
+ id: string;
677
+ type: "task";
678
+ position: {
679
+ x: number;
680
+ y: number;
681
+ };
682
+ data: Bitflow.Task;
683
+ } | {
684
+ id: string;
685
+ type: "start";
686
+ position: {
687
+ x: number;
688
+ y: number;
689
+ };
690
+ data: Bitflow.Start;
691
+ } | {
692
+ id: string;
693
+ type: "end";
694
+ position: {
695
+ x: number;
696
+ y: number;
697
+ };
698
+ data: Bitflow.End;
699
+ } | {
700
+ id: string;
701
+ type: "input";
702
+ position: {
703
+ x: number;
704
+ y: number;
705
+ };
706
+ data: Bitflow.Input;
707
+ } | {
708
+ id: string;
709
+ type: "title";
710
+ position: {
711
+ x: number;
712
+ y: number;
713
+ };
714
+ data: Bitflow.Title;
715
+ };
716
+ startDate: Date;
717
+ try: number;
718
+ }>;
719
+ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
720
+ node: z.ZodUnion<[z.ZodObject<z.extendShape<{
721
+ id: z.ZodString;
722
+ position: z.ZodObject<{
723
+ x: z.ZodNumber;
724
+ y: z.ZodNumber;
725
+ }, "strip", z.ZodTypeAny, {
726
+ x: number;
727
+ y: number;
728
+ }, {
729
+ x: number;
730
+ y: number;
731
+ }>;
732
+ }, {
733
+ type: z.ZodLiteral<"start">;
734
+ data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
735
+ }>, "strip", z.ZodTypeAny, {
736
+ id: string;
737
+ type: "start";
738
+ position: {
739
+ x: number;
740
+ y: number;
741
+ };
742
+ data: Bitflow.Start;
743
+ }, {
744
+ id: string;
745
+ type: "start";
746
+ position: {
747
+ x: number;
748
+ y: number;
749
+ };
750
+ data: Bitflow.Start;
751
+ }>, z.ZodObject<z.extendShape<{
752
+ id: z.ZodString;
753
+ position: z.ZodObject<{
754
+ x: z.ZodNumber;
755
+ y: z.ZodNumber;
756
+ }, "strip", z.ZodTypeAny, {
757
+ x: number;
758
+ y: number;
759
+ }, {
760
+ x: number;
761
+ y: number;
762
+ }>;
763
+ }, {
764
+ type: z.ZodLiteral<"end">;
765
+ data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
766
+ }>, "strip", z.ZodTypeAny, {
767
+ id: string;
768
+ type: "end";
769
+ position: {
770
+ x: number;
771
+ y: number;
772
+ };
773
+ data: Bitflow.End;
774
+ }, {
775
+ id: string;
776
+ type: "end";
777
+ position: {
778
+ x: number;
779
+ y: number;
780
+ };
781
+ data: Bitflow.End;
782
+ }>, z.ZodObject<z.extendShape<{
783
+ id: z.ZodString;
784
+ position: z.ZodObject<{
785
+ x: z.ZodNumber;
786
+ y: z.ZodNumber;
787
+ }, "strip", z.ZodTypeAny, {
788
+ x: number;
789
+ y: number;
790
+ }, {
791
+ x: number;
792
+ y: number;
793
+ }>;
794
+ }, {
795
+ type: z.ZodLiteral<"input">;
796
+ data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
797
+ }>, "strip", z.ZodTypeAny, {
798
+ id: string;
799
+ type: "input";
800
+ position: {
801
+ x: number;
802
+ y: number;
803
+ };
804
+ data: Bitflow.Input;
805
+ }, {
806
+ id: string;
807
+ type: "input";
808
+ position: {
809
+ x: number;
810
+ y: number;
811
+ };
812
+ data: Bitflow.Input;
813
+ }>, z.ZodObject<z.extendShape<{
814
+ id: z.ZodString;
815
+ position: z.ZodObject<{
816
+ x: z.ZodNumber;
817
+ y: z.ZodNumber;
818
+ }, "strip", z.ZodTypeAny, {
819
+ x: number;
820
+ y: number;
821
+ }, {
822
+ x: number;
823
+ y: number;
824
+ }>;
825
+ }, {
826
+ type: z.ZodLiteral<"task">;
827
+ data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
828
+ }>, "strip", z.ZodTypeAny, {
829
+ id: string;
830
+ type: "task";
831
+ position: {
832
+ x: number;
833
+ y: number;
834
+ };
835
+ data: Bitflow.Task;
836
+ }, {
837
+ id: string;
838
+ type: "task";
839
+ position: {
840
+ x: number;
841
+ y: number;
842
+ };
843
+ data: Bitflow.Task;
844
+ }>, z.ZodObject<z.extendShape<{
845
+ id: z.ZodString;
846
+ position: z.ZodObject<{
847
+ x: z.ZodNumber;
848
+ y: z.ZodNumber;
849
+ }, "strip", z.ZodTypeAny, {
850
+ x: number;
851
+ y: number;
852
+ }, {
853
+ x: number;
854
+ y: number;
855
+ }>;
856
+ }, {
857
+ type: z.ZodLiteral<"title">;
858
+ data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
859
+ }>, "strip", z.ZodTypeAny, {
860
+ id: string;
861
+ type: "title";
862
+ position: {
863
+ x: number;
864
+ y: number;
865
+ };
866
+ data: Bitflow.Title;
867
+ }, {
868
+ id: string;
869
+ type: "title";
870
+ position: {
871
+ x: number;
872
+ y: number;
873
+ };
874
+ data: Bitflow.Title;
875
+ }>, z.ZodObject<z.extendShape<{
876
+ id: z.ZodString;
877
+ position: z.ZodObject<{
878
+ x: z.ZodNumber;
879
+ y: z.ZodNumber;
880
+ }, "strip", z.ZodTypeAny, {
881
+ x: number;
882
+ y: number;
883
+ }, {
884
+ x: number;
885
+ y: number;
886
+ }>;
887
+ }, {
888
+ type: z.ZodLiteral<"synchronize">;
889
+ data: z.ZodObject<{
890
+ unlocked: z.ZodBoolean;
891
+ }, "strip", z.ZodTypeAny, {
892
+ unlocked: boolean;
893
+ }, {
894
+ unlocked: boolean;
895
+ }>;
896
+ }>, "strip", z.ZodTypeAny, {
897
+ id: string;
898
+ type: "synchronize";
899
+ position: {
900
+ x: number;
901
+ y: number;
902
+ };
903
+ data: {
904
+ unlocked: boolean;
905
+ };
906
+ }, {
907
+ id: string;
908
+ type: "synchronize";
909
+ position: {
910
+ x: number;
911
+ y: number;
912
+ };
913
+ data: {
914
+ unlocked: boolean;
915
+ };
916
+ }>, z.ZodObject<z.extendShape<{
917
+ id: z.ZodString;
918
+ position: z.ZodObject<{
919
+ x: z.ZodNumber;
920
+ y: z.ZodNumber;
921
+ }, "strip", z.ZodTypeAny, {
922
+ x: number;
923
+ y: number;
924
+ }, {
925
+ x: number;
926
+ y: number;
927
+ }>;
928
+ }, {
929
+ type: z.ZodLiteral<"checkpoint">;
930
+ }>, "strip", z.ZodTypeAny, {
931
+ id: string;
932
+ type: "checkpoint";
933
+ position: {
934
+ x: number;
935
+ y: number;
936
+ };
937
+ }, {
938
+ id: string;
939
+ type: "checkpoint";
940
+ position: {
941
+ x: number;
942
+ y: number;
943
+ };
944
+ }>]>;
945
+ startDate: z.ZodDate;
946
+ try: z.ZodNumber;
947
+ status: z.ZodString;
948
+ }, {
949
+ status: z.ZodLiteral<"finished">;
950
+ endDate: z.ZodDate;
951
+ answer: z.ZodOptional<z.ZodObject<{
952
+ subtype: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
954
+ subtype: string;
955
+ }, {
956
+ subtype: string;
957
+ }>>;
958
+ result: z.ZodOptional<z.ZodObject<{
959
+ subtype: z.ZodString;
960
+ state: z.ZodEnum<["unknown", "manual", "correct", "wrong"]>;
961
+ allowRetry: z.ZodOptional<z.ZodBoolean>;
962
+ feedback: z.ZodAny;
963
+ }, "strip", z.ZodTypeAny, {
964
+ feedback?: any;
965
+ allowRetry?: boolean | undefined;
966
+ subtype: string;
967
+ state: "manual" | "unknown" | "correct" | "wrong";
968
+ }, {
969
+ feedback?: any;
970
+ allowRetry?: boolean | undefined;
971
+ subtype: string;
972
+ state: "manual" | "unknown" | "correct" | "wrong";
973
+ }>>;
974
+ }>, "strip", z.ZodTypeAny, {
975
+ answer?: {
976
+ subtype: string;
977
+ } | undefined;
978
+ result?: {
979
+ feedback?: any;
980
+ allowRetry?: boolean | undefined;
981
+ subtype: string;
982
+ state: "manual" | "unknown" | "correct" | "wrong";
983
+ } | undefined;
984
+ endDate: Date;
985
+ status: "finished";
986
+ node: {
987
+ id: string;
988
+ type: "checkpoint";
989
+ position: {
990
+ x: number;
991
+ y: number;
992
+ };
993
+ } | {
994
+ id: string;
995
+ type: "synchronize";
996
+ position: {
997
+ x: number;
998
+ y: number;
999
+ };
1000
+ data: {
1001
+ unlocked: boolean;
1002
+ };
1003
+ } | {
1004
+ id: string;
1005
+ type: "task";
1006
+ position: {
1007
+ x: number;
1008
+ y: number;
1009
+ };
1010
+ data: Bitflow.Task;
1011
+ } | {
1012
+ id: string;
1013
+ type: "start";
1014
+ position: {
1015
+ x: number;
1016
+ y: number;
1017
+ };
1018
+ data: Bitflow.Start;
1019
+ } | {
1020
+ id: string;
1021
+ type: "end";
1022
+ position: {
1023
+ x: number;
1024
+ y: number;
1025
+ };
1026
+ data: Bitflow.End;
1027
+ } | {
1028
+ id: string;
1029
+ type: "input";
1030
+ position: {
1031
+ x: number;
1032
+ y: number;
1033
+ };
1034
+ data: Bitflow.Input;
1035
+ } | {
1036
+ id: string;
1037
+ type: "title";
1038
+ position: {
1039
+ x: number;
1040
+ y: number;
1041
+ };
1042
+ data: Bitflow.Title;
1043
+ };
1044
+ startDate: Date;
1045
+ try: number;
1046
+ }, {
1047
+ answer?: {
1048
+ subtype: string;
1049
+ } | undefined;
1050
+ result?: {
1051
+ feedback?: any;
1052
+ allowRetry?: boolean | undefined;
1053
+ subtype: string;
1054
+ state: "manual" | "unknown" | "correct" | "wrong";
1055
+ } | undefined;
1056
+ endDate: Date;
1057
+ status: "finished";
1058
+ node: {
1059
+ id: string;
1060
+ type: "checkpoint";
1061
+ position: {
1062
+ x: number;
1063
+ y: number;
1064
+ };
1065
+ } | {
1066
+ id: string;
1067
+ type: "synchronize";
1068
+ position: {
1069
+ x: number;
1070
+ y: number;
1071
+ };
1072
+ data: {
1073
+ unlocked: boolean;
1074
+ };
1075
+ } | {
1076
+ id: string;
1077
+ type: "task";
1078
+ position: {
1079
+ x: number;
1080
+ y: number;
1081
+ };
1082
+ data: Bitflow.Task;
1083
+ } | {
1084
+ id: string;
1085
+ type: "start";
1086
+ position: {
1087
+ x: number;
1088
+ y: number;
1089
+ };
1090
+ data: Bitflow.Start;
1091
+ } | {
1092
+ id: string;
1093
+ type: "end";
1094
+ position: {
1095
+ x: number;
1096
+ y: number;
1097
+ };
1098
+ data: Bitflow.End;
1099
+ } | {
1100
+ id: string;
1101
+ type: "input";
1102
+ position: {
1103
+ x: number;
1104
+ y: number;
1105
+ };
1106
+ data: Bitflow.Input;
1107
+ } | {
1108
+ id: string;
1109
+ type: "title";
1110
+ position: {
1111
+ x: number;
1112
+ y: number;
1113
+ };
1114
+ data: Bitflow.Title;
1115
+ };
1116
+ startDate: Date;
1117
+ try: number;
1118
+ }>;
1119
+ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
1120
+ node: z.ZodUnion<[z.ZodObject<z.extendShape<{
1121
+ id: z.ZodString;
1122
+ position: z.ZodObject<{
1123
+ x: z.ZodNumber;
1124
+ y: z.ZodNumber;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ x: number;
1127
+ y: number;
1128
+ }, {
1129
+ x: number;
1130
+ y: number;
1131
+ }>;
1132
+ }, {
1133
+ type: z.ZodLiteral<"start">;
1134
+ data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
1135
+ }>, "strip", z.ZodTypeAny, {
1136
+ id: string;
1137
+ type: "start";
1138
+ position: {
1139
+ x: number;
1140
+ y: number;
1141
+ };
1142
+ data: Bitflow.Start;
1143
+ }, {
1144
+ id: string;
1145
+ type: "start";
1146
+ position: {
1147
+ x: number;
1148
+ y: number;
1149
+ };
1150
+ data: Bitflow.Start;
1151
+ }>, z.ZodObject<z.extendShape<{
1152
+ id: z.ZodString;
1153
+ position: z.ZodObject<{
1154
+ x: z.ZodNumber;
1155
+ y: z.ZodNumber;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ x: number;
1158
+ y: number;
1159
+ }, {
1160
+ x: number;
1161
+ y: number;
1162
+ }>;
1163
+ }, {
1164
+ type: z.ZodLiteral<"end">;
1165
+ data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
1166
+ }>, "strip", z.ZodTypeAny, {
1167
+ id: string;
1168
+ type: "end";
1169
+ position: {
1170
+ x: number;
1171
+ y: number;
1172
+ };
1173
+ data: Bitflow.End;
1174
+ }, {
1175
+ id: string;
1176
+ type: "end";
1177
+ position: {
1178
+ x: number;
1179
+ y: number;
1180
+ };
1181
+ data: Bitflow.End;
1182
+ }>, z.ZodObject<z.extendShape<{
1183
+ id: z.ZodString;
1184
+ position: z.ZodObject<{
1185
+ x: z.ZodNumber;
1186
+ y: z.ZodNumber;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ x: number;
1189
+ y: number;
1190
+ }, {
1191
+ x: number;
1192
+ y: number;
1193
+ }>;
1194
+ }, {
1195
+ type: z.ZodLiteral<"input">;
1196
+ data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
1197
+ }>, "strip", z.ZodTypeAny, {
1198
+ id: string;
1199
+ type: "input";
1200
+ position: {
1201
+ x: number;
1202
+ y: number;
1203
+ };
1204
+ data: Bitflow.Input;
1205
+ }, {
1206
+ id: string;
1207
+ type: "input";
1208
+ position: {
1209
+ x: number;
1210
+ y: number;
1211
+ };
1212
+ data: Bitflow.Input;
1213
+ }>, z.ZodObject<z.extendShape<{
1214
+ id: z.ZodString;
1215
+ position: z.ZodObject<{
1216
+ x: z.ZodNumber;
1217
+ y: z.ZodNumber;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ x: number;
1220
+ y: number;
1221
+ }, {
1222
+ x: number;
1223
+ y: number;
1224
+ }>;
1225
+ }, {
1226
+ type: z.ZodLiteral<"task">;
1227
+ data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
1228
+ }>, "strip", z.ZodTypeAny, {
1229
+ id: string;
1230
+ type: "task";
1231
+ position: {
1232
+ x: number;
1233
+ y: number;
1234
+ };
1235
+ data: Bitflow.Task;
1236
+ }, {
1237
+ id: string;
1238
+ type: "task";
1239
+ position: {
1240
+ x: number;
1241
+ y: number;
1242
+ };
1243
+ data: Bitflow.Task;
1244
+ }>, z.ZodObject<z.extendShape<{
1245
+ id: z.ZodString;
1246
+ position: z.ZodObject<{
1247
+ x: z.ZodNumber;
1248
+ y: z.ZodNumber;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ x: number;
1251
+ y: number;
1252
+ }, {
1253
+ x: number;
1254
+ y: number;
1255
+ }>;
1256
+ }, {
1257
+ type: z.ZodLiteral<"title">;
1258
+ data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
1259
+ }>, "strip", z.ZodTypeAny, {
1260
+ id: string;
1261
+ type: "title";
1262
+ position: {
1263
+ x: number;
1264
+ y: number;
1265
+ };
1266
+ data: Bitflow.Title;
1267
+ }, {
1268
+ id: string;
1269
+ type: "title";
1270
+ position: {
1271
+ x: number;
1272
+ y: number;
1273
+ };
1274
+ data: Bitflow.Title;
1275
+ }>, z.ZodObject<z.extendShape<{
1276
+ id: z.ZodString;
1277
+ position: z.ZodObject<{
1278
+ x: z.ZodNumber;
1279
+ y: z.ZodNumber;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ x: number;
1282
+ y: number;
1283
+ }, {
1284
+ x: number;
1285
+ y: number;
1286
+ }>;
1287
+ }, {
1288
+ type: z.ZodLiteral<"synchronize">;
1289
+ data: z.ZodObject<{
1290
+ unlocked: z.ZodBoolean;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ unlocked: boolean;
1293
+ }, {
1294
+ unlocked: boolean;
1295
+ }>;
1296
+ }>, "strip", z.ZodTypeAny, {
1297
+ id: string;
1298
+ type: "synchronize";
1299
+ position: {
1300
+ x: number;
1301
+ y: number;
1302
+ };
1303
+ data: {
1304
+ unlocked: boolean;
1305
+ };
1306
+ }, {
1307
+ id: string;
1308
+ type: "synchronize";
1309
+ position: {
1310
+ x: number;
1311
+ y: number;
1312
+ };
1313
+ data: {
1314
+ unlocked: boolean;
1315
+ };
1316
+ }>, z.ZodObject<z.extendShape<{
1317
+ id: z.ZodString;
1318
+ position: z.ZodObject<{
1319
+ x: z.ZodNumber;
1320
+ y: z.ZodNumber;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ x: number;
1323
+ y: number;
1324
+ }, {
1325
+ x: number;
1326
+ y: number;
1327
+ }>;
1328
+ }, {
1329
+ type: z.ZodLiteral<"checkpoint">;
1330
+ }>, "strip", z.ZodTypeAny, {
1331
+ id: string;
1332
+ type: "checkpoint";
1333
+ position: {
1334
+ x: number;
1335
+ y: number;
1336
+ };
1337
+ }, {
1338
+ id: string;
1339
+ type: "checkpoint";
1340
+ position: {
1341
+ x: number;
1342
+ y: number;
1343
+ };
1344
+ }>]>;
1345
+ startDate: z.ZodDate;
1346
+ try: z.ZodNumber;
1347
+ status: z.ZodString;
1348
+ }, {
1349
+ status: z.ZodLiteral<"skipped">;
1350
+ endDate: z.ZodDate;
1351
+ }>, "strip", z.ZodTypeAny, {
1352
+ endDate: Date;
1353
+ status: "skipped";
1354
+ node: {
1355
+ id: string;
1356
+ type: "checkpoint";
1357
+ position: {
1358
+ x: number;
1359
+ y: number;
1360
+ };
1361
+ } | {
1362
+ id: string;
1363
+ type: "synchronize";
1364
+ position: {
1365
+ x: number;
1366
+ y: number;
1367
+ };
1368
+ data: {
1369
+ unlocked: boolean;
1370
+ };
1371
+ } | {
1372
+ id: string;
1373
+ type: "task";
1374
+ position: {
1375
+ x: number;
1376
+ y: number;
1377
+ };
1378
+ data: Bitflow.Task;
1379
+ } | {
1380
+ id: string;
1381
+ type: "start";
1382
+ position: {
1383
+ x: number;
1384
+ y: number;
1385
+ };
1386
+ data: Bitflow.Start;
1387
+ } | {
1388
+ id: string;
1389
+ type: "end";
1390
+ position: {
1391
+ x: number;
1392
+ y: number;
1393
+ };
1394
+ data: Bitflow.End;
1395
+ } | {
1396
+ id: string;
1397
+ type: "input";
1398
+ position: {
1399
+ x: number;
1400
+ y: number;
1401
+ };
1402
+ data: Bitflow.Input;
1403
+ } | {
1404
+ id: string;
1405
+ type: "title";
1406
+ position: {
1407
+ x: number;
1408
+ y: number;
1409
+ };
1410
+ data: Bitflow.Title;
1411
+ };
1412
+ startDate: Date;
1413
+ try: number;
1414
+ }, {
1415
+ endDate: Date;
1416
+ status: "skipped";
1417
+ node: {
1418
+ id: string;
1419
+ type: "checkpoint";
1420
+ position: {
1421
+ x: number;
1422
+ y: number;
1423
+ };
1424
+ } | {
1425
+ id: string;
1426
+ type: "synchronize";
1427
+ position: {
1428
+ x: number;
1429
+ y: number;
1430
+ };
1431
+ data: {
1432
+ unlocked: boolean;
1433
+ };
1434
+ } | {
1435
+ id: string;
1436
+ type: "task";
1437
+ position: {
1438
+ x: number;
1439
+ y: number;
1440
+ };
1441
+ data: Bitflow.Task;
1442
+ } | {
1443
+ id: string;
1444
+ type: "start";
1445
+ position: {
1446
+ x: number;
1447
+ y: number;
1448
+ };
1449
+ data: Bitflow.Start;
1450
+ } | {
1451
+ id: string;
1452
+ type: "end";
1453
+ position: {
1454
+ x: number;
1455
+ y: number;
1456
+ };
1457
+ data: Bitflow.End;
1458
+ } | {
1459
+ id: string;
1460
+ type: "input";
1461
+ position: {
1462
+ x: number;
1463
+ y: number;
1464
+ };
1465
+ data: Bitflow.Input;
1466
+ } | {
1467
+ id: string;
1468
+ type: "title";
1469
+ position: {
1470
+ x: number;
1471
+ y: number;
1472
+ };
1473
+ data: Bitflow.Title;
1474
+ };
1475
+ startDate: Date;
1476
+ try: number;
1477
+ }>;
1478
+ export {};