@bitflow/core 0.2.0 → 0.5.1
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.
- package/CHANGELOG.md +30 -0
- package/dist/cjs/bitsSchema.d.ts +2 -2
- package/dist/cjs/doSchema.d.ts +430 -18
- package/dist/cjs/doSchema.js +4 -4
- package/dist/cjs/doSchema.js.map +1 -1
- package/dist/cjs/flow.d.ts +10 -0
- package/dist/cjs/flow.js +34 -1
- package/dist/cjs/flow.js.map +1 -1
- package/dist/cjs/flowSchema.d.ts +403 -1
- package/dist/cjs/flowSchema.js +18 -11
- package/dist/cjs/flowSchema.js.map +1 -1
- package/dist/esm/bitsSchema.d.ts +2 -2
- package/dist/esm/doSchema.d.ts +430 -18
- package/dist/esm/flow.d.ts +10 -0
- package/dist/esm/flow.js +26 -0
- package/dist/esm/flow.js.map +1 -1
- package/dist/esm/flowSchema.d.ts +403 -1
- package/dist/esm/flowSchema.js +9 -2
- package/dist/esm/flowSchema.js.map +1 -1
- package/dist/types/bitsSchema.d.ts +2 -2
- package/dist/types/doSchema.d.ts +430 -18
- package/dist/types/flow.d.ts +10 -0
- package/dist/types/flowSchema.d.ts +403 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @bitflow/core
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fae5a2b: Upgrade dependencies, add disabled state to BitNode and fix default value of SynchronizeNode when dnd.
|
|
8
|
+
|
|
9
|
+
## 0.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 58e8086: Improve types
|
|
14
|
+
|
|
15
|
+
## 0.4.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 7bf6650: Upgrade to Patches v4.0.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 3dca220: Add default for TaskBit type
|
|
24
|
+
- 54b52d0: Improve visual appearance for DoCheckpoint and DoSynchronize. Make buttons fullwidth.
|
|
25
|
+
- 3a9fc4a: Improve types and fix a bug when no toggle function is supplied to a SynchronizeNode
|
|
26
|
+
|
|
27
|
+
## 0.3.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- dea5cca: add toggle lock to synchronize node
|
|
32
|
+
|
|
3
33
|
## 0.2.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
package/dist/cjs/bitsSchema.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
13
13
|
name: z.ZodString;
|
|
14
14
|
description: z.ZodOptional<z.ZodString>;
|
|
15
15
|
subtype: z.ZodString;
|
|
16
|
-
view: z.ZodRecord<z.ZodAny>;
|
|
16
|
+
view: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
17
17
|
evaluation: z.ZodObject<{
|
|
18
18
|
mode: z.ZodEnum<["auto", "skip", "manual"]>;
|
|
19
19
|
enableRetry: z.ZodBoolean;
|
|
@@ -27,7 +27,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
27
27
|
enableRetry: boolean;
|
|
28
28
|
showFeedback: boolean;
|
|
29
29
|
}>;
|
|
30
|
-
feedback: z.ZodOptional<z.ZodRecord<z.ZodAny>>;
|
|
30
|
+
feedback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
description?: string | undefined;
|
|
33
33
|
feedback?: Record<string, any> | undefined;
|
package/dist/cjs/doSchema.d.ts
CHANGED
|
@@ -162,12 +162,99 @@ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps
|
|
|
162
162
|
y: number;
|
|
163
163
|
};
|
|
164
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
|
+
};
|
|
165
234
|
}>]>;
|
|
166
235
|
startDate: z.ZodDate;
|
|
167
236
|
try: z.ZodNumber;
|
|
168
237
|
status: z.ZodString;
|
|
169
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
status: string;
|
|
170
240
|
node: {
|
|
241
|
+
id: string;
|
|
242
|
+
type: "checkpoint";
|
|
243
|
+
position: {
|
|
244
|
+
x: number;
|
|
245
|
+
y: number;
|
|
246
|
+
};
|
|
247
|
+
} | {
|
|
248
|
+
id: string;
|
|
249
|
+
type: "synchronize";
|
|
250
|
+
position: {
|
|
251
|
+
x: number;
|
|
252
|
+
y: number;
|
|
253
|
+
};
|
|
254
|
+
data: {
|
|
255
|
+
unlocked: boolean;
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
171
258
|
id: string;
|
|
172
259
|
type: "task";
|
|
173
260
|
position: {
|
|
@@ -210,9 +297,26 @@ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps
|
|
|
210
297
|
};
|
|
211
298
|
startDate: Date;
|
|
212
299
|
try: number;
|
|
213
|
-
status: string;
|
|
214
300
|
}, {
|
|
301
|
+
status: string;
|
|
215
302
|
node: {
|
|
303
|
+
id: string;
|
|
304
|
+
type: "checkpoint";
|
|
305
|
+
position: {
|
|
306
|
+
x: number;
|
|
307
|
+
y: number;
|
|
308
|
+
};
|
|
309
|
+
} | {
|
|
310
|
+
id: string;
|
|
311
|
+
type: "synchronize";
|
|
312
|
+
position: {
|
|
313
|
+
x: number;
|
|
314
|
+
y: number;
|
|
315
|
+
};
|
|
316
|
+
data: {
|
|
317
|
+
unlocked: boolean;
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
216
320
|
id: string;
|
|
217
321
|
type: "task";
|
|
218
322
|
position: {
|
|
@@ -255,7 +359,6 @@ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps
|
|
|
255
359
|
};
|
|
256
360
|
startDate: Date;
|
|
257
361
|
try: number;
|
|
258
|
-
status: string;
|
|
259
362
|
}>;
|
|
260
363
|
export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
|
|
261
364
|
node: z.ZodUnion<[z.ZodObject<z.extendShape<{
|
|
@@ -413,6 +516,75 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
413
516
|
y: number;
|
|
414
517
|
};
|
|
415
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
|
+
};
|
|
416
588
|
}>]>;
|
|
417
589
|
startDate: z.ZodDate;
|
|
418
590
|
try: z.ZodNumber;
|
|
@@ -420,7 +592,25 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
420
592
|
}, {
|
|
421
593
|
status: z.ZodLiteral<"started">;
|
|
422
594
|
}>, "strip", z.ZodTypeAny, {
|
|
595
|
+
status: "started";
|
|
423
596
|
node: {
|
|
597
|
+
id: string;
|
|
598
|
+
type: "checkpoint";
|
|
599
|
+
position: {
|
|
600
|
+
x: number;
|
|
601
|
+
y: number;
|
|
602
|
+
};
|
|
603
|
+
} | {
|
|
604
|
+
id: string;
|
|
605
|
+
type: "synchronize";
|
|
606
|
+
position: {
|
|
607
|
+
x: number;
|
|
608
|
+
y: number;
|
|
609
|
+
};
|
|
610
|
+
data: {
|
|
611
|
+
unlocked: boolean;
|
|
612
|
+
};
|
|
613
|
+
} | {
|
|
424
614
|
id: string;
|
|
425
615
|
type: "task";
|
|
426
616
|
position: {
|
|
@@ -463,9 +653,26 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
463
653
|
};
|
|
464
654
|
startDate: Date;
|
|
465
655
|
try: number;
|
|
466
|
-
status: "started";
|
|
467
656
|
}, {
|
|
657
|
+
status: "started";
|
|
468
658
|
node: {
|
|
659
|
+
id: string;
|
|
660
|
+
type: "checkpoint";
|
|
661
|
+
position: {
|
|
662
|
+
x: number;
|
|
663
|
+
y: number;
|
|
664
|
+
};
|
|
665
|
+
} | {
|
|
666
|
+
id: string;
|
|
667
|
+
type: "synchronize";
|
|
668
|
+
position: {
|
|
669
|
+
x: number;
|
|
670
|
+
y: number;
|
|
671
|
+
};
|
|
672
|
+
data: {
|
|
673
|
+
unlocked: boolean;
|
|
674
|
+
};
|
|
675
|
+
} | {
|
|
469
676
|
id: string;
|
|
470
677
|
type: "task";
|
|
471
678
|
position: {
|
|
@@ -508,7 +715,6 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
508
715
|
};
|
|
509
716
|
startDate: Date;
|
|
510
717
|
try: number;
|
|
511
|
-
status: "started";
|
|
512
718
|
}>;
|
|
513
719
|
export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
|
|
514
720
|
node: z.ZodUnion<[z.ZodObject<z.extendShape<{
|
|
@@ -666,6 +872,75 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
|
|
|
666
872
|
y: number;
|
|
667
873
|
};
|
|
668
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
|
+
};
|
|
669
944
|
}>]>;
|
|
670
945
|
startDate: z.ZodDate;
|
|
671
946
|
try: z.ZodNumber;
|
|
@@ -697,16 +972,35 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
|
|
|
697
972
|
state: "manual" | "unknown" | "correct" | "wrong";
|
|
698
973
|
}>>;
|
|
699
974
|
}>, "strip", z.ZodTypeAny, {
|
|
975
|
+
answer?: {
|
|
976
|
+
subtype: string;
|
|
977
|
+
} | undefined;
|
|
700
978
|
result?: {
|
|
701
979
|
feedback?: any;
|
|
702
980
|
allowRetry?: boolean | undefined;
|
|
703
981
|
subtype: string;
|
|
704
982
|
state: "manual" | "unknown" | "correct" | "wrong";
|
|
705
983
|
} | undefined;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
} | undefined;
|
|
984
|
+
endDate: Date;
|
|
985
|
+
status: "finished";
|
|
709
986
|
node: {
|
|
987
|
+
id: string;
|
|
988
|
+
type: "checkpoint";
|
|
989
|
+
position: {
|
|
990
|
+
x: number;
|
|
991
|
+
y: number;
|
|
992
|
+
};
|
|
993
|
+
} | {
|
|
994
|
+
id: string;
|
|
995
|
+
type: "synchronize";
|
|
996
|
+
position: {
|
|
997
|
+
x: number;
|
|
998
|
+
y: number;
|
|
999
|
+
};
|
|
1000
|
+
data: {
|
|
1001
|
+
unlocked: boolean;
|
|
1002
|
+
};
|
|
1003
|
+
} | {
|
|
710
1004
|
id: string;
|
|
711
1005
|
type: "task";
|
|
712
1006
|
position: {
|
|
@@ -749,19 +1043,36 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
|
|
|
749
1043
|
};
|
|
750
1044
|
startDate: Date;
|
|
751
1045
|
try: number;
|
|
752
|
-
status: "finished";
|
|
753
|
-
endDate: Date;
|
|
754
1046
|
}, {
|
|
1047
|
+
answer?: {
|
|
1048
|
+
subtype: string;
|
|
1049
|
+
} | undefined;
|
|
755
1050
|
result?: {
|
|
756
1051
|
feedback?: any;
|
|
757
1052
|
allowRetry?: boolean | undefined;
|
|
758
1053
|
subtype: string;
|
|
759
1054
|
state: "manual" | "unknown" | "correct" | "wrong";
|
|
760
1055
|
} | undefined;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
} | undefined;
|
|
1056
|
+
endDate: Date;
|
|
1057
|
+
status: "finished";
|
|
764
1058
|
node: {
|
|
1059
|
+
id: string;
|
|
1060
|
+
type: "checkpoint";
|
|
1061
|
+
position: {
|
|
1062
|
+
x: number;
|
|
1063
|
+
y: number;
|
|
1064
|
+
};
|
|
1065
|
+
} | {
|
|
1066
|
+
id: string;
|
|
1067
|
+
type: "synchronize";
|
|
1068
|
+
position: {
|
|
1069
|
+
x: number;
|
|
1070
|
+
y: number;
|
|
1071
|
+
};
|
|
1072
|
+
data: {
|
|
1073
|
+
unlocked: boolean;
|
|
1074
|
+
};
|
|
1075
|
+
} | {
|
|
765
1076
|
id: string;
|
|
766
1077
|
type: "task";
|
|
767
1078
|
position: {
|
|
@@ -804,8 +1115,6 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
|
|
|
804
1115
|
};
|
|
805
1116
|
startDate: Date;
|
|
806
1117
|
try: number;
|
|
807
|
-
status: "finished";
|
|
808
|
-
endDate: Date;
|
|
809
1118
|
}>;
|
|
810
1119
|
export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
|
|
811
1120
|
node: z.ZodUnion<[z.ZodObject<z.extendShape<{
|
|
@@ -963,6 +1272,75 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
963
1272
|
y: number;
|
|
964
1273
|
};
|
|
965
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
|
+
};
|
|
966
1344
|
}>]>;
|
|
967
1345
|
startDate: z.ZodDate;
|
|
968
1346
|
try: z.ZodNumber;
|
|
@@ -971,7 +1349,26 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
971
1349
|
status: z.ZodLiteral<"skipped">;
|
|
972
1350
|
endDate: z.ZodDate;
|
|
973
1351
|
}>, "strip", z.ZodTypeAny, {
|
|
1352
|
+
endDate: Date;
|
|
1353
|
+
status: "skipped";
|
|
974
1354
|
node: {
|
|
1355
|
+
id: string;
|
|
1356
|
+
type: "checkpoint";
|
|
1357
|
+
position: {
|
|
1358
|
+
x: number;
|
|
1359
|
+
y: number;
|
|
1360
|
+
};
|
|
1361
|
+
} | {
|
|
1362
|
+
id: string;
|
|
1363
|
+
type: "synchronize";
|
|
1364
|
+
position: {
|
|
1365
|
+
x: number;
|
|
1366
|
+
y: number;
|
|
1367
|
+
};
|
|
1368
|
+
data: {
|
|
1369
|
+
unlocked: boolean;
|
|
1370
|
+
};
|
|
1371
|
+
} | {
|
|
975
1372
|
id: string;
|
|
976
1373
|
type: "task";
|
|
977
1374
|
position: {
|
|
@@ -1014,10 +1411,27 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
1014
1411
|
};
|
|
1015
1412
|
startDate: Date;
|
|
1016
1413
|
try: number;
|
|
1017
|
-
status: "skipped";
|
|
1018
|
-
endDate: Date;
|
|
1019
1414
|
}, {
|
|
1415
|
+
endDate: Date;
|
|
1416
|
+
status: "skipped";
|
|
1020
1417
|
node: {
|
|
1418
|
+
id: string;
|
|
1419
|
+
type: "checkpoint";
|
|
1420
|
+
position: {
|
|
1421
|
+
x: number;
|
|
1422
|
+
y: number;
|
|
1423
|
+
};
|
|
1424
|
+
} | {
|
|
1425
|
+
id: string;
|
|
1426
|
+
type: "synchronize";
|
|
1427
|
+
position: {
|
|
1428
|
+
x: number;
|
|
1429
|
+
y: number;
|
|
1430
|
+
};
|
|
1431
|
+
data: {
|
|
1432
|
+
unlocked: boolean;
|
|
1433
|
+
};
|
|
1434
|
+
} | {
|
|
1021
1435
|
id: string;
|
|
1022
1436
|
type: "task";
|
|
1023
1437
|
position: {
|
|
@@ -1060,7 +1474,5 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
|
|
|
1060
1474
|
};
|
|
1061
1475
|
startDate: Date;
|
|
1062
1476
|
try: number;
|
|
1063
|
-
status: "skipped";
|
|
1064
|
-
endDate: Date;
|
|
1065
1477
|
}>;
|
|
1066
1478
|
export {};
|
package/dist/cjs/doSchema.js
CHANGED
|
@@ -6,7 +6,7 @@ var bitsSchema_1 = require("./bitsSchema");
|
|
|
6
6
|
var flowSchema_1 = require("./flowSchema");
|
|
7
7
|
var makeDoBaseTrySchema = function (flowNodeSchemas) {
|
|
8
8
|
return zod_1.z.object({
|
|
9
|
-
node: flowSchema_1.makeInteractiveFlowNodeSchema(flowNodeSchemas),
|
|
9
|
+
node: (0, flowSchema_1.makeInteractiveFlowNodeSchema)(flowNodeSchemas),
|
|
10
10
|
startDate: zod_1.z.date(),
|
|
11
11
|
try: zod_1.z.number(),
|
|
12
12
|
status: zod_1.z.string(),
|
|
@@ -14,13 +14,13 @@ var makeDoBaseTrySchema = function (flowNodeSchemas) {
|
|
|
14
14
|
};
|
|
15
15
|
exports.makeDoBaseTrySchema = makeDoBaseTrySchema;
|
|
16
16
|
var makeDoStartedTry = function (flowNodeSchemas) {
|
|
17
|
-
return exports.makeDoBaseTrySchema(flowNodeSchemas).merge(zod_1.z.object({
|
|
17
|
+
return (0, exports.makeDoBaseTrySchema)(flowNodeSchemas).merge(zod_1.z.object({
|
|
18
18
|
status: zod_1.z.literal("started"),
|
|
19
19
|
}));
|
|
20
20
|
};
|
|
21
21
|
exports.makeDoStartedTry = makeDoStartedTry;
|
|
22
22
|
var makeDoFinishedTry = function (flowNodeSchemas) {
|
|
23
|
-
return exports.makeDoBaseTrySchema(flowNodeSchemas).merge(zod_1.z.object({
|
|
23
|
+
return (0, exports.makeDoBaseTrySchema)(flowNodeSchemas).merge(zod_1.z.object({
|
|
24
24
|
status: zod_1.z.literal("finished"),
|
|
25
25
|
endDate: zod_1.z.date(),
|
|
26
26
|
answer: bitsSchema_1.TaskAnswerSchema.optional(),
|
|
@@ -29,7 +29,7 @@ var makeDoFinishedTry = function (flowNodeSchemas) {
|
|
|
29
29
|
};
|
|
30
30
|
exports.makeDoFinishedTry = makeDoFinishedTry;
|
|
31
31
|
var makeDoSkippedTry = function (flowNodeSchemas) {
|
|
32
|
-
return exports.makeDoBaseTrySchema(flowNodeSchemas).merge(zod_1.z.object({
|
|
32
|
+
return (0, exports.makeDoBaseTrySchema)(flowNodeSchemas).merge(zod_1.z.object({
|
|
33
33
|
status: zod_1.z.literal("skipped"),
|
|
34
34
|
endDate: zod_1.z.date(),
|
|
35
35
|
}));
|
package/dist/cjs/doSchema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSchema.js","sourceRoot":"","sources":["../../src/doSchema.ts"],"names":[],"mappings":";;;AAAA,2BAAmC;AACnC,2CAAkE;AAClE,2CAA6D;AAUtD,IAAM,mBAAmB,GAAG,UAAC,eAAqC;IACvE,OAAA,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,0CAA6B,
|
|
1
|
+
{"version":3,"file":"doSchema.js","sourceRoot":"","sources":["../../src/doSchema.ts"],"names":[],"mappings":";;;AAAA,2BAAmC;AACnC,2CAAkE;AAClE,2CAA6D;AAUtD,IAAM,mBAAmB,GAAG,UAAC,eAAqC;IACvE,OAAA,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,IAAA,0CAA6B,EAAC,eAAe,CAAC;QACpD,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;QACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACnB,CAAC;AALF,CAKE,CAAC;AANQ,QAAA,mBAAmB,uBAM3B;AAEE,IAAM,gBAAgB,GAAG,UAAC,eAAqC;IACpE,OAAA,IAAA,2BAAmB,EAAC,eAAe,CAAC,CAAC,KAAK,CACxC,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC;KAC7B,CAAC,CACH;AAJD,CAIC,CAAC;AALS,QAAA,gBAAgB,oBAKzB;AAEG,IAAM,iBAAiB,GAAG,UAAC,eAAqC;IACrE,OAAA,IAAA,2BAAmB,EAAC,eAAe,CAAC,CAAC,KAAK,CACxC,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC7B,OAAO,EAAE,OAAC,CAAC,IAAI,EAAE;QACjB,MAAM,EAAE,6BAAgB,CAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,6BAAgB,CAAC,QAAQ,EAAE;KACpC,CAAC,CACH;AAPD,CAOC,CAAC;AARS,QAAA,iBAAiB,qBAQ1B;AAEG,IAAM,gBAAgB,GAAG,UAAC,eAAqC;IACpE,OAAA,IAAA,2BAAmB,EAAC,eAAe,CAAC,CAAC,KAAK,CACxC,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC5B,OAAO,EAAE,OAAC,CAAC,IAAI,EAAE;KAClB,CAAC,CACH;AALD,CAKC,CAAC;AANS,QAAA,gBAAgB,oBAMzB"}
|