@bitflow/core 0.3.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/package.json +22 -17
  2. package/CHANGELOG.md +0 -20
  3. package/LICENSE.md +0 -21
  4. package/dist/cjs/bits.d.ts +0 -128
  5. package/dist/cjs/bits.js +0 -16
  6. package/dist/cjs/bits.js.map +0 -1
  7. package/dist/cjs/bitsSchema.d.ts +0 -150
  8. package/dist/cjs/bitsSchema.js +0 -77
  9. package/dist/cjs/bitsSchema.js.map +0 -1
  10. package/dist/cjs/do.d.ts +0 -37
  11. package/dist/cjs/do.js +0 -85
  12. package/dist/cjs/do.js.map +0 -1
  13. package/dist/cjs/doSchema.d.ts +0 -1066
  14. package/dist/cjs/doSchema.js +0 -38
  15. package/dist/cjs/doSchema.js.map +0 -1
  16. package/dist/cjs/findLast.d.ts +0 -1
  17. package/dist/cjs/findLast.js +0 -13
  18. package/dist/cjs/findLast.js.map +0 -1
  19. package/dist/cjs/flow.d.ts +0 -163
  20. package/dist/cjs/flow.js +0 -98
  21. package/dist/cjs/flow.js.map +0 -1
  22. package/dist/cjs/flowSchema.d.ts +0 -2118
  23. package/dist/cjs/flowSchema.js +0 -247
  24. package/dist/cjs/flowSchema.js.map +0 -1
  25. package/dist/cjs/groupBy.d.ts +0 -1
  26. package/dist/cjs/groupBy.js +0 -27
  27. package/dist/cjs/groupBy.js.map +0 -1
  28. package/dist/cjs/index.d.ts +0 -11
  29. package/dist/cjs/index.js +0 -24
  30. package/dist/cjs/index.js.map +0 -1
  31. package/dist/cjs/lerpColor.d.ts +0 -1
  32. package/dist/cjs/lerpColor.js +0 -9
  33. package/dist/cjs/lerpColor.js.map +0 -1
  34. package/dist/cjs/levenshtein.d.ts +0 -1
  35. package/dist/cjs/levenshtein.js +0 -88
  36. package/dist/cjs/levenshtein.js.map +0 -1
  37. package/dist/cjs/uuid.d.ts +0 -1
  38. package/dist/cjs/uuid.js +0 -16
  39. package/dist/cjs/uuid.js.map +0 -1
  40. package/dist/esm/bits.d.ts +0 -128
  41. package/dist/esm/bits.js +0 -9
  42. package/dist/esm/bits.js.map +0 -1
  43. package/dist/esm/bitsSchema.d.ts +0 -150
  44. package/dist/esm/bitsSchema.js +0 -55
  45. package/dist/esm/bitsSchema.js.map +0 -1
  46. package/dist/esm/do.d.ts +0 -37
  47. package/dist/esm/do.js +0 -62
  48. package/dist/esm/do.js.map +0 -1
  49. package/dist/esm/doSchema.d.ts +0 -1066
  50. package/dist/esm/doSchema.js +0 -23
  51. package/dist/esm/doSchema.js.map +0 -1
  52. package/dist/esm/findLast.d.ts +0 -1
  53. package/dist/esm/findLast.js +0 -9
  54. package/dist/esm/findLast.js.map +0 -1
  55. package/dist/esm/flow.d.ts +0 -163
  56. package/dist/esm/flow.js +0 -88
  57. package/dist/esm/flow.js.map +0 -1
  58. package/dist/esm/flowSchema.d.ts +0 -2118
  59. package/dist/esm/flowSchema.js +0 -195
  60. package/dist/esm/flowSchema.js.map +0 -1
  61. package/dist/esm/groupBy.d.ts +0 -1
  62. package/dist/esm/groupBy.js +0 -23
  63. package/dist/esm/groupBy.js.map +0 -1
  64. package/dist/esm/index.d.ts +0 -11
  65. package/dist/esm/index.js +0 -12
  66. package/dist/esm/index.js.map +0 -1
  67. package/dist/esm/lerpColor.d.ts +0 -1
  68. package/dist/esm/lerpColor.js +0 -5
  69. package/dist/esm/lerpColor.js.map +0 -1
  70. package/dist/esm/levenshtein.d.ts +0 -1
  71. package/dist/esm/levenshtein.js +0 -84
  72. package/dist/esm/levenshtein.js.map +0 -1
  73. package/dist/esm/uuid.d.ts +0 -1
  74. package/dist/esm/uuid.js +0 -12
  75. package/dist/esm/uuid.js.map +0 -1
  76. package/dist/types/bits.d.ts +0 -128
  77. package/dist/types/bitsSchema.d.ts +0 -150
  78. package/dist/types/do.d.ts +0 -37
  79. package/dist/types/doSchema.d.ts +0 -1066
  80. package/dist/types/findLast.d.ts +0 -1
  81. package/dist/types/flow.d.ts +0 -163
  82. package/dist/types/flowSchema.d.ts +0 -2118
  83. package/dist/types/groupBy.d.ts +0 -1
  84. package/dist/types/index.d.ts +0 -11
  85. package/dist/types/lerpColor.d.ts +0 -1
  86. package/dist/types/levenshtein.d.ts +0 -1
  87. package/dist/types/uuid.d.ts +0 -1
@@ -1,1066 +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
- }>]>;
166
- startDate: z.ZodDate;
167
- try: z.ZodNumber;
168
- status: z.ZodString;
169
- }, "strip", z.ZodTypeAny, {
170
- node: {
171
- id: string;
172
- type: "task";
173
- position: {
174
- x: number;
175
- y: number;
176
- };
177
- data: Bitflow.Task;
178
- } | {
179
- id: string;
180
- type: "start";
181
- position: {
182
- x: number;
183
- y: number;
184
- };
185
- data: Bitflow.Start;
186
- } | {
187
- id: string;
188
- type: "end";
189
- position: {
190
- x: number;
191
- y: number;
192
- };
193
- data: Bitflow.End;
194
- } | {
195
- id: string;
196
- type: "input";
197
- position: {
198
- x: number;
199
- y: number;
200
- };
201
- data: Bitflow.Input;
202
- } | {
203
- id: string;
204
- type: "title";
205
- position: {
206
- x: number;
207
- y: number;
208
- };
209
- data: Bitflow.Title;
210
- };
211
- startDate: Date;
212
- try: number;
213
- status: string;
214
- }, {
215
- node: {
216
- id: string;
217
- type: "task";
218
- position: {
219
- x: number;
220
- y: number;
221
- };
222
- data: Bitflow.Task;
223
- } | {
224
- id: string;
225
- type: "start";
226
- position: {
227
- x: number;
228
- y: number;
229
- };
230
- data: Bitflow.Start;
231
- } | {
232
- id: string;
233
- type: "end";
234
- position: {
235
- x: number;
236
- y: number;
237
- };
238
- data: Bitflow.End;
239
- } | {
240
- id: string;
241
- type: "input";
242
- position: {
243
- x: number;
244
- y: number;
245
- };
246
- data: Bitflow.Input;
247
- } | {
248
- id: string;
249
- type: "title";
250
- position: {
251
- x: number;
252
- y: number;
253
- };
254
- data: Bitflow.Title;
255
- };
256
- startDate: Date;
257
- try: number;
258
- status: string;
259
- }>;
260
- export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
261
- node: z.ZodUnion<[z.ZodObject<z.extendShape<{
262
- id: z.ZodString;
263
- position: z.ZodObject<{
264
- x: z.ZodNumber;
265
- y: z.ZodNumber;
266
- }, "strip", z.ZodTypeAny, {
267
- x: number;
268
- y: number;
269
- }, {
270
- x: number;
271
- y: number;
272
- }>;
273
- }, {
274
- type: z.ZodLiteral<"start">;
275
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
276
- }>, "strip", z.ZodTypeAny, {
277
- id: string;
278
- type: "start";
279
- position: {
280
- x: number;
281
- y: number;
282
- };
283
- data: Bitflow.Start;
284
- }, {
285
- id: string;
286
- type: "start";
287
- position: {
288
- x: number;
289
- y: number;
290
- };
291
- data: Bitflow.Start;
292
- }>, z.ZodObject<z.extendShape<{
293
- id: z.ZodString;
294
- position: z.ZodObject<{
295
- x: z.ZodNumber;
296
- y: z.ZodNumber;
297
- }, "strip", z.ZodTypeAny, {
298
- x: number;
299
- y: number;
300
- }, {
301
- x: number;
302
- y: number;
303
- }>;
304
- }, {
305
- type: z.ZodLiteral<"end">;
306
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
307
- }>, "strip", z.ZodTypeAny, {
308
- id: string;
309
- type: "end";
310
- position: {
311
- x: number;
312
- y: number;
313
- };
314
- data: Bitflow.End;
315
- }, {
316
- id: string;
317
- type: "end";
318
- position: {
319
- x: number;
320
- y: number;
321
- };
322
- data: Bitflow.End;
323
- }>, z.ZodObject<z.extendShape<{
324
- id: z.ZodString;
325
- position: z.ZodObject<{
326
- x: z.ZodNumber;
327
- y: z.ZodNumber;
328
- }, "strip", z.ZodTypeAny, {
329
- x: number;
330
- y: number;
331
- }, {
332
- x: number;
333
- y: number;
334
- }>;
335
- }, {
336
- type: z.ZodLiteral<"input">;
337
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
338
- }>, "strip", z.ZodTypeAny, {
339
- id: string;
340
- type: "input";
341
- position: {
342
- x: number;
343
- y: number;
344
- };
345
- data: Bitflow.Input;
346
- }, {
347
- id: string;
348
- type: "input";
349
- position: {
350
- x: number;
351
- y: number;
352
- };
353
- data: Bitflow.Input;
354
- }>, z.ZodObject<z.extendShape<{
355
- id: z.ZodString;
356
- position: z.ZodObject<{
357
- x: z.ZodNumber;
358
- y: z.ZodNumber;
359
- }, "strip", z.ZodTypeAny, {
360
- x: number;
361
- y: number;
362
- }, {
363
- x: number;
364
- y: number;
365
- }>;
366
- }, {
367
- type: z.ZodLiteral<"task">;
368
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
369
- }>, "strip", z.ZodTypeAny, {
370
- id: string;
371
- type: "task";
372
- position: {
373
- x: number;
374
- y: number;
375
- };
376
- data: Bitflow.Task;
377
- }, {
378
- id: string;
379
- type: "task";
380
- position: {
381
- x: number;
382
- y: number;
383
- };
384
- data: Bitflow.Task;
385
- }>, z.ZodObject<z.extendShape<{
386
- id: z.ZodString;
387
- position: z.ZodObject<{
388
- x: z.ZodNumber;
389
- y: z.ZodNumber;
390
- }, "strip", z.ZodTypeAny, {
391
- x: number;
392
- y: number;
393
- }, {
394
- x: number;
395
- y: number;
396
- }>;
397
- }, {
398
- type: z.ZodLiteral<"title">;
399
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
400
- }>, "strip", z.ZodTypeAny, {
401
- id: string;
402
- type: "title";
403
- position: {
404
- x: number;
405
- y: number;
406
- };
407
- data: Bitflow.Title;
408
- }, {
409
- id: string;
410
- type: "title";
411
- position: {
412
- x: number;
413
- y: number;
414
- };
415
- data: Bitflow.Title;
416
- }>]>;
417
- startDate: z.ZodDate;
418
- try: z.ZodNumber;
419
- status: z.ZodString;
420
- }, {
421
- status: z.ZodLiteral<"started">;
422
- }>, "strip", z.ZodTypeAny, {
423
- node: {
424
- id: string;
425
- type: "task";
426
- position: {
427
- x: number;
428
- y: number;
429
- };
430
- data: Bitflow.Task;
431
- } | {
432
- id: string;
433
- type: "start";
434
- position: {
435
- x: number;
436
- y: number;
437
- };
438
- data: Bitflow.Start;
439
- } | {
440
- id: string;
441
- type: "end";
442
- position: {
443
- x: number;
444
- y: number;
445
- };
446
- data: Bitflow.End;
447
- } | {
448
- id: string;
449
- type: "input";
450
- position: {
451
- x: number;
452
- y: number;
453
- };
454
- data: Bitflow.Input;
455
- } | {
456
- id: string;
457
- type: "title";
458
- position: {
459
- x: number;
460
- y: number;
461
- };
462
- data: Bitflow.Title;
463
- };
464
- startDate: Date;
465
- try: number;
466
- status: "started";
467
- }, {
468
- node: {
469
- id: string;
470
- type: "task";
471
- position: {
472
- x: number;
473
- y: number;
474
- };
475
- data: Bitflow.Task;
476
- } | {
477
- id: string;
478
- type: "start";
479
- position: {
480
- x: number;
481
- y: number;
482
- };
483
- data: Bitflow.Start;
484
- } | {
485
- id: string;
486
- type: "end";
487
- position: {
488
- x: number;
489
- y: number;
490
- };
491
- data: Bitflow.End;
492
- } | {
493
- id: string;
494
- type: "input";
495
- position: {
496
- x: number;
497
- y: number;
498
- };
499
- data: Bitflow.Input;
500
- } | {
501
- id: string;
502
- type: "title";
503
- position: {
504
- x: number;
505
- y: number;
506
- };
507
- data: Bitflow.Title;
508
- };
509
- startDate: Date;
510
- try: number;
511
- status: "started";
512
- }>;
513
- export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
514
- node: z.ZodUnion<[z.ZodObject<z.extendShape<{
515
- id: z.ZodString;
516
- position: z.ZodObject<{
517
- x: z.ZodNumber;
518
- y: z.ZodNumber;
519
- }, "strip", z.ZodTypeAny, {
520
- x: number;
521
- y: number;
522
- }, {
523
- x: number;
524
- y: number;
525
- }>;
526
- }, {
527
- type: z.ZodLiteral<"start">;
528
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
529
- }>, "strip", z.ZodTypeAny, {
530
- id: string;
531
- type: "start";
532
- position: {
533
- x: number;
534
- y: number;
535
- };
536
- data: Bitflow.Start;
537
- }, {
538
- id: string;
539
- type: "start";
540
- position: {
541
- x: number;
542
- y: number;
543
- };
544
- data: Bitflow.Start;
545
- }>, z.ZodObject<z.extendShape<{
546
- id: z.ZodString;
547
- position: z.ZodObject<{
548
- x: z.ZodNumber;
549
- y: z.ZodNumber;
550
- }, "strip", z.ZodTypeAny, {
551
- x: number;
552
- y: number;
553
- }, {
554
- x: number;
555
- y: number;
556
- }>;
557
- }, {
558
- type: z.ZodLiteral<"end">;
559
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
560
- }>, "strip", z.ZodTypeAny, {
561
- id: string;
562
- type: "end";
563
- position: {
564
- x: number;
565
- y: number;
566
- };
567
- data: Bitflow.End;
568
- }, {
569
- id: string;
570
- type: "end";
571
- position: {
572
- x: number;
573
- y: number;
574
- };
575
- data: Bitflow.End;
576
- }>, z.ZodObject<z.extendShape<{
577
- id: z.ZodString;
578
- position: z.ZodObject<{
579
- x: z.ZodNumber;
580
- y: z.ZodNumber;
581
- }, "strip", z.ZodTypeAny, {
582
- x: number;
583
- y: number;
584
- }, {
585
- x: number;
586
- y: number;
587
- }>;
588
- }, {
589
- type: z.ZodLiteral<"input">;
590
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
591
- }>, "strip", z.ZodTypeAny, {
592
- id: string;
593
- type: "input";
594
- position: {
595
- x: number;
596
- y: number;
597
- };
598
- data: Bitflow.Input;
599
- }, {
600
- id: string;
601
- type: "input";
602
- position: {
603
- x: number;
604
- y: number;
605
- };
606
- data: Bitflow.Input;
607
- }>, z.ZodObject<z.extendShape<{
608
- id: z.ZodString;
609
- position: z.ZodObject<{
610
- x: z.ZodNumber;
611
- y: z.ZodNumber;
612
- }, "strip", z.ZodTypeAny, {
613
- x: number;
614
- y: number;
615
- }, {
616
- x: number;
617
- y: number;
618
- }>;
619
- }, {
620
- type: z.ZodLiteral<"task">;
621
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
622
- }>, "strip", z.ZodTypeAny, {
623
- id: string;
624
- type: "task";
625
- position: {
626
- x: number;
627
- y: number;
628
- };
629
- data: Bitflow.Task;
630
- }, {
631
- id: string;
632
- type: "task";
633
- position: {
634
- x: number;
635
- y: number;
636
- };
637
- data: Bitflow.Task;
638
- }>, z.ZodObject<z.extendShape<{
639
- id: z.ZodString;
640
- position: z.ZodObject<{
641
- x: z.ZodNumber;
642
- y: z.ZodNumber;
643
- }, "strip", z.ZodTypeAny, {
644
- x: number;
645
- y: number;
646
- }, {
647
- x: number;
648
- y: number;
649
- }>;
650
- }, {
651
- type: z.ZodLiteral<"title">;
652
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
653
- }>, "strip", z.ZodTypeAny, {
654
- id: string;
655
- type: "title";
656
- position: {
657
- x: number;
658
- y: number;
659
- };
660
- data: Bitflow.Title;
661
- }, {
662
- id: string;
663
- type: "title";
664
- position: {
665
- x: number;
666
- y: number;
667
- };
668
- data: Bitflow.Title;
669
- }>]>;
670
- startDate: z.ZodDate;
671
- try: z.ZodNumber;
672
- status: z.ZodString;
673
- }, {
674
- status: z.ZodLiteral<"finished">;
675
- endDate: z.ZodDate;
676
- answer: z.ZodOptional<z.ZodObject<{
677
- subtype: z.ZodString;
678
- }, "strip", z.ZodTypeAny, {
679
- subtype: string;
680
- }, {
681
- subtype: string;
682
- }>>;
683
- result: z.ZodOptional<z.ZodObject<{
684
- subtype: z.ZodString;
685
- state: z.ZodEnum<["unknown", "manual", "correct", "wrong"]>;
686
- allowRetry: z.ZodOptional<z.ZodBoolean>;
687
- feedback: z.ZodAny;
688
- }, "strip", z.ZodTypeAny, {
689
- feedback?: any;
690
- allowRetry?: boolean | undefined;
691
- subtype: string;
692
- state: "manual" | "unknown" | "correct" | "wrong";
693
- }, {
694
- feedback?: any;
695
- allowRetry?: boolean | undefined;
696
- subtype: string;
697
- state: "manual" | "unknown" | "correct" | "wrong";
698
- }>>;
699
- }>, "strip", z.ZodTypeAny, {
700
- answer?: {
701
- subtype: string;
702
- } | undefined;
703
- result?: {
704
- feedback?: any;
705
- allowRetry?: boolean | undefined;
706
- subtype: string;
707
- state: "manual" | "unknown" | "correct" | "wrong";
708
- } | undefined;
709
- endDate: Date;
710
- node: {
711
- id: string;
712
- type: "task";
713
- position: {
714
- x: number;
715
- y: number;
716
- };
717
- data: Bitflow.Task;
718
- } | {
719
- id: string;
720
- type: "start";
721
- position: {
722
- x: number;
723
- y: number;
724
- };
725
- data: Bitflow.Start;
726
- } | {
727
- id: string;
728
- type: "end";
729
- position: {
730
- x: number;
731
- y: number;
732
- };
733
- data: Bitflow.End;
734
- } | {
735
- id: string;
736
- type: "input";
737
- position: {
738
- x: number;
739
- y: number;
740
- };
741
- data: Bitflow.Input;
742
- } | {
743
- id: string;
744
- type: "title";
745
- position: {
746
- x: number;
747
- y: number;
748
- };
749
- data: Bitflow.Title;
750
- };
751
- startDate: Date;
752
- try: number;
753
- status: "finished";
754
- }, {
755
- answer?: {
756
- subtype: string;
757
- } | undefined;
758
- result?: {
759
- feedback?: any;
760
- allowRetry?: boolean | undefined;
761
- subtype: string;
762
- state: "manual" | "unknown" | "correct" | "wrong";
763
- } | undefined;
764
- endDate: Date;
765
- node: {
766
- id: string;
767
- type: "task";
768
- position: {
769
- x: number;
770
- y: number;
771
- };
772
- data: Bitflow.Task;
773
- } | {
774
- id: string;
775
- type: "start";
776
- position: {
777
- x: number;
778
- y: number;
779
- };
780
- data: Bitflow.Start;
781
- } | {
782
- id: string;
783
- type: "end";
784
- position: {
785
- x: number;
786
- y: number;
787
- };
788
- data: Bitflow.End;
789
- } | {
790
- id: string;
791
- type: "input";
792
- position: {
793
- x: number;
794
- y: number;
795
- };
796
- data: Bitflow.Input;
797
- } | {
798
- id: string;
799
- type: "title";
800
- position: {
801
- x: number;
802
- y: number;
803
- };
804
- data: Bitflow.Title;
805
- };
806
- startDate: Date;
807
- try: number;
808
- status: "finished";
809
- }>;
810
- export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
811
- node: z.ZodUnion<[z.ZodObject<z.extendShape<{
812
- id: z.ZodString;
813
- position: z.ZodObject<{
814
- x: z.ZodNumber;
815
- y: z.ZodNumber;
816
- }, "strip", z.ZodTypeAny, {
817
- x: number;
818
- y: number;
819
- }, {
820
- x: number;
821
- y: number;
822
- }>;
823
- }, {
824
- type: z.ZodLiteral<"start">;
825
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
826
- }>, "strip", z.ZodTypeAny, {
827
- id: string;
828
- type: "start";
829
- position: {
830
- x: number;
831
- y: number;
832
- };
833
- data: Bitflow.Start;
834
- }, {
835
- id: string;
836
- type: "start";
837
- position: {
838
- x: number;
839
- y: number;
840
- };
841
- data: Bitflow.Start;
842
- }>, z.ZodObject<z.extendShape<{
843
- id: z.ZodString;
844
- position: z.ZodObject<{
845
- x: z.ZodNumber;
846
- y: z.ZodNumber;
847
- }, "strip", z.ZodTypeAny, {
848
- x: number;
849
- y: number;
850
- }, {
851
- x: number;
852
- y: number;
853
- }>;
854
- }, {
855
- type: z.ZodLiteral<"end">;
856
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
857
- }>, "strip", z.ZodTypeAny, {
858
- id: string;
859
- type: "end";
860
- position: {
861
- x: number;
862
- y: number;
863
- };
864
- data: Bitflow.End;
865
- }, {
866
- id: string;
867
- type: "end";
868
- position: {
869
- x: number;
870
- y: number;
871
- };
872
- data: Bitflow.End;
873
- }>, z.ZodObject<z.extendShape<{
874
- id: z.ZodString;
875
- position: z.ZodObject<{
876
- x: z.ZodNumber;
877
- y: z.ZodNumber;
878
- }, "strip", z.ZodTypeAny, {
879
- x: number;
880
- y: number;
881
- }, {
882
- x: number;
883
- y: number;
884
- }>;
885
- }, {
886
- type: z.ZodLiteral<"input">;
887
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
888
- }>, "strip", z.ZodTypeAny, {
889
- id: string;
890
- type: "input";
891
- position: {
892
- x: number;
893
- y: number;
894
- };
895
- data: Bitflow.Input;
896
- }, {
897
- id: string;
898
- type: "input";
899
- position: {
900
- x: number;
901
- y: number;
902
- };
903
- data: Bitflow.Input;
904
- }>, z.ZodObject<z.extendShape<{
905
- id: z.ZodString;
906
- position: z.ZodObject<{
907
- x: z.ZodNumber;
908
- y: z.ZodNumber;
909
- }, "strip", z.ZodTypeAny, {
910
- x: number;
911
- y: number;
912
- }, {
913
- x: number;
914
- y: number;
915
- }>;
916
- }, {
917
- type: z.ZodLiteral<"task">;
918
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
919
- }>, "strip", z.ZodTypeAny, {
920
- id: string;
921
- type: "task";
922
- position: {
923
- x: number;
924
- y: number;
925
- };
926
- data: Bitflow.Task;
927
- }, {
928
- id: string;
929
- type: "task";
930
- position: {
931
- x: number;
932
- y: number;
933
- };
934
- data: Bitflow.Task;
935
- }>, z.ZodObject<z.extendShape<{
936
- id: z.ZodString;
937
- position: z.ZodObject<{
938
- x: z.ZodNumber;
939
- y: z.ZodNumber;
940
- }, "strip", z.ZodTypeAny, {
941
- x: number;
942
- y: number;
943
- }, {
944
- x: number;
945
- y: number;
946
- }>;
947
- }, {
948
- type: z.ZodLiteral<"title">;
949
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
950
- }>, "strip", z.ZodTypeAny, {
951
- id: string;
952
- type: "title";
953
- position: {
954
- x: number;
955
- y: number;
956
- };
957
- data: Bitflow.Title;
958
- }, {
959
- id: string;
960
- type: "title";
961
- position: {
962
- x: number;
963
- y: number;
964
- };
965
- data: Bitflow.Title;
966
- }>]>;
967
- startDate: z.ZodDate;
968
- try: z.ZodNumber;
969
- status: z.ZodString;
970
- }, {
971
- status: z.ZodLiteral<"skipped">;
972
- endDate: z.ZodDate;
973
- }>, "strip", z.ZodTypeAny, {
974
- endDate: Date;
975
- node: {
976
- id: string;
977
- type: "task";
978
- position: {
979
- x: number;
980
- y: number;
981
- };
982
- data: Bitflow.Task;
983
- } | {
984
- id: string;
985
- type: "start";
986
- position: {
987
- x: number;
988
- y: number;
989
- };
990
- data: Bitflow.Start;
991
- } | {
992
- id: string;
993
- type: "end";
994
- position: {
995
- x: number;
996
- y: number;
997
- };
998
- data: Bitflow.End;
999
- } | {
1000
- id: string;
1001
- type: "input";
1002
- position: {
1003
- x: number;
1004
- y: number;
1005
- };
1006
- data: Bitflow.Input;
1007
- } | {
1008
- id: string;
1009
- type: "title";
1010
- position: {
1011
- x: number;
1012
- y: number;
1013
- };
1014
- data: Bitflow.Title;
1015
- };
1016
- startDate: Date;
1017
- try: number;
1018
- status: "skipped";
1019
- }, {
1020
- endDate: Date;
1021
- node: {
1022
- id: string;
1023
- type: "task";
1024
- position: {
1025
- x: number;
1026
- y: number;
1027
- };
1028
- data: Bitflow.Task;
1029
- } | {
1030
- id: string;
1031
- type: "start";
1032
- position: {
1033
- x: number;
1034
- y: number;
1035
- };
1036
- data: Bitflow.Start;
1037
- } | {
1038
- id: string;
1039
- type: "end";
1040
- position: {
1041
- x: number;
1042
- y: number;
1043
- };
1044
- data: Bitflow.End;
1045
- } | {
1046
- id: string;
1047
- type: "input";
1048
- position: {
1049
- x: number;
1050
- y: number;
1051
- };
1052
- data: Bitflow.Input;
1053
- } | {
1054
- id: string;
1055
- type: "title";
1056
- position: {
1057
- x: number;
1058
- y: number;
1059
- };
1060
- data: Bitflow.Title;
1061
- };
1062
- startDate: Date;
1063
- try: number;
1064
- status: "skipped";
1065
- }>;
1066
- export {};