@bitflow/core 0.4.0 → 0.5.3

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