@bitflow/core 0.5.0 → 0.5.4

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/{cjs/bits.d.ts → bits.d.ts} +0 -0
  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} +8 -8
  5. package/dist/{cjs/findLast.d.ts → findLast.d.ts} +0 -0
  6. package/dist/{cjs/flow.d.ts → flow.d.ts} +0 -0
  7. package/dist/{cjs/flowSchema.d.ts → flowSchema.d.ts} +0 -0
  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 +18 -22
  18. package/CHANGELOG.md +0 -38
  19. package/dist/cjs/bits.js +0 -16
  20. package/dist/cjs/bits.js.map +0 -1
  21. package/dist/cjs/bitsSchema.js +0 -77
  22. package/dist/cjs/bitsSchema.js.map +0 -1
  23. package/dist/cjs/do.js +0 -85
  24. package/dist/cjs/do.js.map +0 -1
  25. package/dist/cjs/doSchema.js +0 -38
  26. package/dist/cjs/doSchema.js.map +0 -1
  27. package/dist/cjs/findLast.js +0 -13
  28. package/dist/cjs/findLast.js.map +0 -1
  29. package/dist/cjs/flow.js +0 -131
  30. package/dist/cjs/flow.js.map +0 -1
  31. package/dist/cjs/flowSchema.js +0 -254
  32. package/dist/cjs/flowSchema.js.map +0 -1
  33. package/dist/cjs/groupBy.js +0 -27
  34. package/dist/cjs/groupBy.js.map +0 -1
  35. package/dist/cjs/index.js +0 -24
  36. package/dist/cjs/index.js.map +0 -1
  37. package/dist/cjs/lerpColor.js +0 -9
  38. package/dist/cjs/lerpColor.js.map +0 -1
  39. package/dist/cjs/levenshtein.js +0 -88
  40. package/dist/cjs/levenshtein.js.map +0 -1
  41. package/dist/cjs/uuid.js +0 -16
  42. package/dist/cjs/uuid.js.map +0 -1
  43. package/dist/esm/bits.d.ts +0 -128
  44. package/dist/esm/bits.js +0 -9
  45. package/dist/esm/bits.js.map +0 -1
  46. package/dist/esm/bitsSchema.d.ts +0 -150
  47. package/dist/esm/bitsSchema.js +0 -55
  48. package/dist/esm/bitsSchema.js.map +0 -1
  49. package/dist/esm/do.d.ts +0 -37
  50. package/dist/esm/do.js +0 -62
  51. package/dist/esm/do.js.map +0 -1
  52. package/dist/esm/doSchema.d.ts +0 -1478
  53. package/dist/esm/doSchema.js +0 -23
  54. package/dist/esm/doSchema.js.map +0 -1
  55. package/dist/esm/findLast.d.ts +0 -1
  56. package/dist/esm/findLast.js +0 -9
  57. package/dist/esm/findLast.js.map +0 -1
  58. package/dist/esm/flow.d.ts +0 -169
  59. package/dist/esm/flow.js +0 -114
  60. package/dist/esm/flow.js.map +0 -1
  61. package/dist/esm/flowSchema.d.ts +0 -2520
  62. package/dist/esm/flowSchema.js +0 -202
  63. package/dist/esm/flowSchema.js.map +0 -1
  64. package/dist/esm/groupBy.d.ts +0 -1
  65. package/dist/esm/groupBy.js +0 -23
  66. package/dist/esm/groupBy.js.map +0 -1
  67. package/dist/esm/index.d.ts +0 -11
  68. package/dist/esm/index.js +0 -12
  69. package/dist/esm/index.js.map +0 -1
  70. package/dist/esm/lerpColor.d.ts +0 -1
  71. package/dist/esm/lerpColor.js +0 -5
  72. package/dist/esm/lerpColor.js.map +0 -1
  73. package/dist/esm/levenshtein.d.ts +0 -1
  74. package/dist/esm/levenshtein.js +0 -84
  75. package/dist/esm/levenshtein.js.map +0 -1
  76. package/dist/esm/uuid.d.ts +0 -1
  77. package/dist/esm/uuid.js +0 -12
  78. package/dist/esm/uuid.js.map +0 -1
  79. package/dist/types/bits.d.ts +0 -128
  80. package/dist/types/bitsSchema.d.ts +0 -150
  81. package/dist/types/do.d.ts +0 -37
  82. package/dist/types/doSchema.d.ts +0 -1478
  83. package/dist/types/findLast.d.ts +0 -1
  84. package/dist/types/flow.d.ts +0 -169
  85. package/dist/types/flowSchema.d.ts +0 -2520
  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,1478 +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
- 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
- node: {
240
- id: string;
241
- type: "checkpoint";
242
- position: {
243
- x: number;
244
- y: number;
245
- };
246
- } | {
247
- id: string;
248
- type: "synchronize";
249
- position: {
250
- x: number;
251
- y: number;
252
- };
253
- data: {
254
- unlocked: boolean;
255
- };
256
- } | {
257
- id: string;
258
- type: "task";
259
- position: {
260
- x: number;
261
- y: number;
262
- };
263
- data: Bitflow.Task;
264
- } | {
265
- id: string;
266
- type: "start";
267
- position: {
268
- x: number;
269
- y: number;
270
- };
271
- data: Bitflow.Start;
272
- } | {
273
- id: string;
274
- type: "end";
275
- position: {
276
- x: number;
277
- y: number;
278
- };
279
- data: Bitflow.End;
280
- } | {
281
- id: string;
282
- type: "input";
283
- position: {
284
- x: number;
285
- y: number;
286
- };
287
- data: Bitflow.Input;
288
- } | {
289
- id: string;
290
- type: "title";
291
- position: {
292
- x: number;
293
- y: number;
294
- };
295
- data: Bitflow.Title;
296
- };
297
- startDate: Date;
298
- try: number;
299
- status: string;
300
- }, {
301
- node: {
302
- id: string;
303
- type: "checkpoint";
304
- position: {
305
- x: number;
306
- y: number;
307
- };
308
- } | {
309
- id: string;
310
- type: "synchronize";
311
- position: {
312
- x: number;
313
- y: number;
314
- };
315
- data: {
316
- unlocked: boolean;
317
- };
318
- } | {
319
- id: string;
320
- type: "task";
321
- position: {
322
- x: number;
323
- y: number;
324
- };
325
- data: Bitflow.Task;
326
- } | {
327
- id: string;
328
- type: "start";
329
- position: {
330
- x: number;
331
- y: number;
332
- };
333
- data: Bitflow.Start;
334
- } | {
335
- id: string;
336
- type: "end";
337
- position: {
338
- x: number;
339
- y: number;
340
- };
341
- data: Bitflow.End;
342
- } | {
343
- id: string;
344
- type: "input";
345
- position: {
346
- x: number;
347
- y: number;
348
- };
349
- data: Bitflow.Input;
350
- } | {
351
- id: string;
352
- type: "title";
353
- position: {
354
- x: number;
355
- y: number;
356
- };
357
- data: Bitflow.Title;
358
- };
359
- startDate: Date;
360
- try: number;
361
- status: string;
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
- node: {
596
- id: string;
597
- type: "checkpoint";
598
- position: {
599
- x: number;
600
- y: number;
601
- };
602
- } | {
603
- id: string;
604
- type: "synchronize";
605
- position: {
606
- x: number;
607
- y: number;
608
- };
609
- data: {
610
- unlocked: boolean;
611
- };
612
- } | {
613
- id: string;
614
- type: "task";
615
- position: {
616
- x: number;
617
- y: number;
618
- };
619
- data: Bitflow.Task;
620
- } | {
621
- id: string;
622
- type: "start";
623
- position: {
624
- x: number;
625
- y: number;
626
- };
627
- data: Bitflow.Start;
628
- } | {
629
- id: string;
630
- type: "end";
631
- position: {
632
- x: number;
633
- y: number;
634
- };
635
- data: Bitflow.End;
636
- } | {
637
- id: string;
638
- type: "input";
639
- position: {
640
- x: number;
641
- y: number;
642
- };
643
- data: Bitflow.Input;
644
- } | {
645
- id: string;
646
- type: "title";
647
- position: {
648
- x: number;
649
- y: number;
650
- };
651
- data: Bitflow.Title;
652
- };
653
- startDate: Date;
654
- try: number;
655
- status: "started";
656
- }, {
657
- node: {
658
- id: string;
659
- type: "checkpoint";
660
- position: {
661
- x: number;
662
- y: number;
663
- };
664
- } | {
665
- id: string;
666
- type: "synchronize";
667
- position: {
668
- x: number;
669
- y: number;
670
- };
671
- data: {
672
- unlocked: boolean;
673
- };
674
- } | {
675
- id: string;
676
- type: "task";
677
- position: {
678
- x: number;
679
- y: number;
680
- };
681
- data: Bitflow.Task;
682
- } | {
683
- id: string;
684
- type: "start";
685
- position: {
686
- x: number;
687
- y: number;
688
- };
689
- data: Bitflow.Start;
690
- } | {
691
- id: string;
692
- type: "end";
693
- position: {
694
- x: number;
695
- y: number;
696
- };
697
- data: Bitflow.End;
698
- } | {
699
- id: string;
700
- type: "input";
701
- position: {
702
- x: number;
703
- y: number;
704
- };
705
- data: Bitflow.Input;
706
- } | {
707
- id: string;
708
- type: "title";
709
- position: {
710
- x: number;
711
- y: number;
712
- };
713
- data: Bitflow.Title;
714
- };
715
- startDate: Date;
716
- try: number;
717
- status: "started";
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
- node: {
986
- id: string;
987
- type: "checkpoint";
988
- position: {
989
- x: number;
990
- y: number;
991
- };
992
- } | {
993
- id: string;
994
- type: "synchronize";
995
- position: {
996
- x: number;
997
- y: number;
998
- };
999
- data: {
1000
- unlocked: boolean;
1001
- };
1002
- } | {
1003
- id: string;
1004
- type: "task";
1005
- position: {
1006
- x: number;
1007
- y: number;
1008
- };
1009
- data: Bitflow.Task;
1010
- } | {
1011
- id: string;
1012
- type: "start";
1013
- position: {
1014
- x: number;
1015
- y: number;
1016
- };
1017
- data: Bitflow.Start;
1018
- } | {
1019
- id: string;
1020
- type: "end";
1021
- position: {
1022
- x: number;
1023
- y: number;
1024
- };
1025
- data: Bitflow.End;
1026
- } | {
1027
- id: string;
1028
- type: "input";
1029
- position: {
1030
- x: number;
1031
- y: number;
1032
- };
1033
- data: Bitflow.Input;
1034
- } | {
1035
- id: string;
1036
- type: "title";
1037
- position: {
1038
- x: number;
1039
- y: number;
1040
- };
1041
- data: Bitflow.Title;
1042
- };
1043
- startDate: Date;
1044
- try: number;
1045
- status: "finished";
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
- node: {
1058
- id: string;
1059
- type: "checkpoint";
1060
- position: {
1061
- x: number;
1062
- y: number;
1063
- };
1064
- } | {
1065
- id: string;
1066
- type: "synchronize";
1067
- position: {
1068
- x: number;
1069
- y: number;
1070
- };
1071
- data: {
1072
- unlocked: boolean;
1073
- };
1074
- } | {
1075
- id: string;
1076
- type: "task";
1077
- position: {
1078
- x: number;
1079
- y: number;
1080
- };
1081
- data: Bitflow.Task;
1082
- } | {
1083
- id: string;
1084
- type: "start";
1085
- position: {
1086
- x: number;
1087
- y: number;
1088
- };
1089
- data: Bitflow.Start;
1090
- } | {
1091
- id: string;
1092
- type: "end";
1093
- position: {
1094
- x: number;
1095
- y: number;
1096
- };
1097
- data: Bitflow.End;
1098
- } | {
1099
- id: string;
1100
- type: "input";
1101
- position: {
1102
- x: number;
1103
- y: number;
1104
- };
1105
- data: Bitflow.Input;
1106
- } | {
1107
- id: string;
1108
- type: "title";
1109
- position: {
1110
- x: number;
1111
- y: number;
1112
- };
1113
- data: Bitflow.Title;
1114
- };
1115
- startDate: Date;
1116
- try: number;
1117
- status: "finished";
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
- node: {
1354
- id: string;
1355
- type: "checkpoint";
1356
- position: {
1357
- x: number;
1358
- y: number;
1359
- };
1360
- } | {
1361
- id: string;
1362
- type: "synchronize";
1363
- position: {
1364
- x: number;
1365
- y: number;
1366
- };
1367
- data: {
1368
- unlocked: boolean;
1369
- };
1370
- } | {
1371
- id: string;
1372
- type: "task";
1373
- position: {
1374
- x: number;
1375
- y: number;
1376
- };
1377
- data: Bitflow.Task;
1378
- } | {
1379
- id: string;
1380
- type: "start";
1381
- position: {
1382
- x: number;
1383
- y: number;
1384
- };
1385
- data: Bitflow.Start;
1386
- } | {
1387
- id: string;
1388
- type: "end";
1389
- position: {
1390
- x: number;
1391
- y: number;
1392
- };
1393
- data: Bitflow.End;
1394
- } | {
1395
- id: string;
1396
- type: "input";
1397
- position: {
1398
- x: number;
1399
- y: number;
1400
- };
1401
- data: Bitflow.Input;
1402
- } | {
1403
- id: string;
1404
- type: "title";
1405
- position: {
1406
- x: number;
1407
- y: number;
1408
- };
1409
- data: Bitflow.Title;
1410
- };
1411
- startDate: Date;
1412
- try: number;
1413
- status: "skipped";
1414
- }, {
1415
- endDate: Date;
1416
- node: {
1417
- id: string;
1418
- type: "checkpoint";
1419
- position: {
1420
- x: number;
1421
- y: number;
1422
- };
1423
- } | {
1424
- id: string;
1425
- type: "synchronize";
1426
- position: {
1427
- x: number;
1428
- y: number;
1429
- };
1430
- data: {
1431
- unlocked: boolean;
1432
- };
1433
- } | {
1434
- id: string;
1435
- type: "task";
1436
- position: {
1437
- x: number;
1438
- y: number;
1439
- };
1440
- data: Bitflow.Task;
1441
- } | {
1442
- id: string;
1443
- type: "start";
1444
- position: {
1445
- x: number;
1446
- y: number;
1447
- };
1448
- data: Bitflow.Start;
1449
- } | {
1450
- id: string;
1451
- type: "end";
1452
- position: {
1453
- x: number;
1454
- y: number;
1455
- };
1456
- data: Bitflow.End;
1457
- } | {
1458
- id: string;
1459
- type: "input";
1460
- position: {
1461
- x: number;
1462
- y: number;
1463
- };
1464
- data: Bitflow.Input;
1465
- } | {
1466
- id: string;
1467
- type: "title";
1468
- position: {
1469
- x: number;
1470
- y: number;
1471
- };
1472
- data: Bitflow.Title;
1473
- };
1474
- startDate: Date;
1475
- try: number;
1476
- status: "skipped";
1477
- }>;
1478
- export {};