@platforma-sdk/block-tools 2.3.0 → 2.3.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.
- package/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{config-YukCegnp.mjs → config-BbxbO3Iw.mjs} +514 -500
- package/dist/config-BbxbO3Iw.mjs.map +1 -0
- package/dist/config-BczgUC2N.js +3 -0
- package/dist/config-BczgUC2N.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +109 -95
- package/dist/index.mjs.map +1 -1
- package/dist/io/folder_reader.d.ts +1 -15
- package/dist/io/folder_reader.d.ts.map +1 -1
- package/dist/util.d.ts +1 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/v2/build_dist.d.ts.map +1 -1
- package/dist/v2/model/block_components.d.ts +297 -19
- package/dist/v2/model/block_components.d.ts.map +1 -1
- package/dist/v2/model/block_description.d.ts +281 -62
- package/dist/v2/model/block_description.d.ts.map +1 -1
- package/dist/v2/registry/registry.d.ts.map +1 -1
- package/dist/v2/registry/registry_reader.d.ts +6 -4
- package/dist/v2/registry/registry_reader.d.ts.map +1 -1
- package/dist/v2/registry/schema_public.d.ts +218 -100
- package/dist/v2/registry/schema_public.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/io/folder_reader.ts +19 -9
- package/src/util.ts +6 -0
- package/src/v2/build_dist.ts +2 -1
- package/src/v2/model/block_components.ts +10 -8
- package/src/v2/registry/registry.ts +3 -6
- package/src/v2/registry/registry_reader.test.ts +19 -0
- package/src/v2/registry/registry_reader.ts +25 -15
- package/src/v2/registry/schema_public.ts +5 -1
- package/dist/config-B1U40s2a.js +0 -3
- package/dist/config-B1U40s2a.js.map +0 -1
- package/dist/config-YukCegnp.mjs.map +0 -1
|
@@ -14,13 +14,31 @@ export declare function ResolvedBlockPackDescriptionFromPackageJson(root: string
|
|
|
14
14
|
version: string;
|
|
15
15
|
}>;
|
|
16
16
|
components: z.ZodObject<{
|
|
17
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, {
|
|
17
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, {
|
|
18
18
|
type: "absolute-file";
|
|
19
19
|
file: string;
|
|
20
20
|
}, string>, {
|
|
21
|
-
type:
|
|
22
|
-
main:
|
|
23
|
-
|
|
21
|
+
type: "workflow-v1";
|
|
22
|
+
main: {
|
|
23
|
+
type: "absolute-file";
|
|
24
|
+
file: string;
|
|
25
|
+
};
|
|
26
|
+
}, string>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
28
|
+
main: z.ZodEffects<z.ZodString, {
|
|
29
|
+
type: "absolute-file";
|
|
30
|
+
file: string;
|
|
31
|
+
}, string>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
type: "workflow-v1";
|
|
34
|
+
main: {
|
|
35
|
+
type: "absolute-file";
|
|
36
|
+
file: string;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
type: "workflow-v1";
|
|
40
|
+
main: string;
|
|
41
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
24
42
|
type: z.ZodLiteral<"workflow-v1">;
|
|
25
43
|
main: z.ZodEffects<z.ZodString, {
|
|
26
44
|
type: "absolute-file";
|
|
@@ -46,8 +64,11 @@ export declare function ResolvedBlockPackDescriptionFromPackageJson(root: string
|
|
|
46
64
|
}, string>;
|
|
47
65
|
}, "strip", z.ZodTypeAny, {
|
|
48
66
|
workflow: {
|
|
49
|
-
type:
|
|
50
|
-
main:
|
|
67
|
+
type: "workflow-v1";
|
|
68
|
+
main: {
|
|
69
|
+
type: "absolute-file";
|
|
70
|
+
file: string;
|
|
71
|
+
};
|
|
51
72
|
} | {
|
|
52
73
|
type: "workflow-v1";
|
|
53
74
|
main: {
|
|
@@ -399,8 +420,11 @@ export declare function ResolvedBlockPackDescriptionFromPackageJson(root: string
|
|
|
399
420
|
};
|
|
400
421
|
components: {
|
|
401
422
|
workflow: {
|
|
402
|
-
type:
|
|
403
|
-
main:
|
|
423
|
+
type: "workflow-v1";
|
|
424
|
+
main: {
|
|
425
|
+
type: "absolute-file";
|
|
426
|
+
file: string;
|
|
427
|
+
};
|
|
404
428
|
} | {
|
|
405
429
|
type: "workflow-v1";
|
|
406
430
|
main: {
|
|
@@ -547,7 +571,7 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
547
571
|
version: string;
|
|
548
572
|
}>;
|
|
549
573
|
components: z.ZodPipeline<z.ZodObject<{
|
|
550
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
574
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
551
575
|
type: z.ZodLiteral<"explicit-base64">;
|
|
552
576
|
mimeType: z.ZodString;
|
|
553
577
|
content: z.ZodString;
|
|
@@ -583,8 +607,15 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
583
607
|
type: "absolute-file";
|
|
584
608
|
file: string;
|
|
585
609
|
}>, {
|
|
586
|
-
type:
|
|
587
|
-
main:
|
|
610
|
+
type: "workflow-v1";
|
|
611
|
+
main: {
|
|
612
|
+
type: "relative";
|
|
613
|
+
path: string;
|
|
614
|
+
} | {
|
|
615
|
+
type: "explicit-base64";
|
|
616
|
+
content: string;
|
|
617
|
+
mimeType: string;
|
|
618
|
+
};
|
|
588
619
|
}, {
|
|
589
620
|
type: "explicit-base64";
|
|
590
621
|
content: string;
|
|
@@ -592,7 +623,65 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
592
623
|
} | {
|
|
593
624
|
type: "absolute-file";
|
|
594
625
|
file: string;
|
|
595
|
-
}>, z.
|
|
626
|
+
}>, z.ZodObject<{
|
|
627
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
628
|
+
main: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
629
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
630
|
+
mimeType: z.ZodString;
|
|
631
|
+
content: z.ZodString;
|
|
632
|
+
}, "strict", z.ZodTypeAny, {
|
|
633
|
+
type: "explicit-base64";
|
|
634
|
+
content: string;
|
|
635
|
+
mimeType: string;
|
|
636
|
+
}, {
|
|
637
|
+
type: "explicit-base64";
|
|
638
|
+
content: string;
|
|
639
|
+
mimeType: string;
|
|
640
|
+
}>, z.ZodObject<{
|
|
641
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
642
|
+
file: z.ZodString;
|
|
643
|
+
}, "strict", z.ZodTypeAny, {
|
|
644
|
+
type: "absolute-file";
|
|
645
|
+
file: string;
|
|
646
|
+
}, {
|
|
647
|
+
type: "absolute-file";
|
|
648
|
+
file: string;
|
|
649
|
+
}>]>, {
|
|
650
|
+
type: "relative";
|
|
651
|
+
path: string;
|
|
652
|
+
} | {
|
|
653
|
+
type: "explicit-base64";
|
|
654
|
+
content: string;
|
|
655
|
+
mimeType: string;
|
|
656
|
+
}, {
|
|
657
|
+
type: "explicit-base64";
|
|
658
|
+
content: string;
|
|
659
|
+
mimeType: string;
|
|
660
|
+
} | {
|
|
661
|
+
type: "absolute-file";
|
|
662
|
+
file: string;
|
|
663
|
+
}>;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
|
+
type: "workflow-v1";
|
|
666
|
+
main: {
|
|
667
|
+
type: "relative";
|
|
668
|
+
path: string;
|
|
669
|
+
} | {
|
|
670
|
+
type: "explicit-base64";
|
|
671
|
+
content: string;
|
|
672
|
+
mimeType: string;
|
|
673
|
+
};
|
|
674
|
+
}, {
|
|
675
|
+
type: "workflow-v1";
|
|
676
|
+
main: {
|
|
677
|
+
type: "explicit-base64";
|
|
678
|
+
content: string;
|
|
679
|
+
mimeType: string;
|
|
680
|
+
} | {
|
|
681
|
+
type: "absolute-file";
|
|
682
|
+
file: string;
|
|
683
|
+
};
|
|
684
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
596
685
|
type: z.ZodLiteral<"workflow-v1">;
|
|
597
686
|
main: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
598
687
|
type: z.ZodLiteral<"explicit-base64">;
|
|
@@ -705,8 +794,15 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
705
794
|
}>;
|
|
706
795
|
}, "strip", z.ZodTypeAny, {
|
|
707
796
|
workflow: {
|
|
708
|
-
type:
|
|
709
|
-
main:
|
|
797
|
+
type: "workflow-v1";
|
|
798
|
+
main: {
|
|
799
|
+
type: "relative";
|
|
800
|
+
path: string;
|
|
801
|
+
} | {
|
|
802
|
+
type: "explicit-base64";
|
|
803
|
+
content: string;
|
|
804
|
+
mimeType: string;
|
|
805
|
+
};
|
|
710
806
|
} | {
|
|
711
807
|
type: "workflow-v1";
|
|
712
808
|
main: {
|
|
@@ -762,7 +858,7 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
762
858
|
folder: string;
|
|
763
859
|
};
|
|
764
860
|
}>, z.ZodObject<{
|
|
765
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
861
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodObject<{
|
|
766
862
|
type: z.ZodLiteral<"relative">;
|
|
767
863
|
path: z.ZodString;
|
|
768
864
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -772,12 +868,39 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
772
868
|
type: "relative";
|
|
773
869
|
path: string;
|
|
774
870
|
}>, {
|
|
775
|
-
type:
|
|
776
|
-
main:
|
|
871
|
+
type: "workflow-v1";
|
|
872
|
+
main: {
|
|
873
|
+
type: "relative";
|
|
874
|
+
path: string;
|
|
875
|
+
};
|
|
777
876
|
}, {
|
|
778
877
|
type: "relative";
|
|
779
878
|
path: string;
|
|
780
|
-
}>, z.
|
|
879
|
+
}>, z.ZodObject<{
|
|
880
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
881
|
+
main: z.ZodObject<{
|
|
882
|
+
type: z.ZodLiteral<"relative">;
|
|
883
|
+
path: z.ZodString;
|
|
884
|
+
}, "strict", z.ZodTypeAny, {
|
|
885
|
+
type: "relative";
|
|
886
|
+
path: string;
|
|
887
|
+
}, {
|
|
888
|
+
type: "relative";
|
|
889
|
+
path: string;
|
|
890
|
+
}>;
|
|
891
|
+
}, "strip", z.ZodTypeAny, {
|
|
892
|
+
type: "workflow-v1";
|
|
893
|
+
main: {
|
|
894
|
+
type: "relative";
|
|
895
|
+
path: string;
|
|
896
|
+
};
|
|
897
|
+
}, {
|
|
898
|
+
type: "workflow-v1";
|
|
899
|
+
main: {
|
|
900
|
+
type: "relative";
|
|
901
|
+
path: string;
|
|
902
|
+
};
|
|
903
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
781
904
|
type: z.ZodLiteral<"workflow-v1">;
|
|
782
905
|
main: z.ZodObject<{
|
|
783
906
|
type: z.ZodLiteral<"relative">;
|
|
@@ -824,9 +947,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
824
947
|
}>;
|
|
825
948
|
}, "strip", z.ZodTypeAny, {
|
|
826
949
|
workflow: {
|
|
827
|
-
type: string;
|
|
828
|
-
main: any;
|
|
829
|
-
} | {
|
|
830
950
|
type: "workflow-v1";
|
|
831
951
|
main: {
|
|
832
952
|
type: "relative";
|
|
@@ -1074,9 +1194,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
1074
1194
|
};
|
|
1075
1195
|
components: {
|
|
1076
1196
|
workflow: {
|
|
1077
|
-
type: string;
|
|
1078
|
-
main: any;
|
|
1079
|
-
} | {
|
|
1080
1197
|
type: "workflow-v1";
|
|
1081
1198
|
main: {
|
|
1082
1199
|
type: "relative";
|
|
@@ -1215,7 +1332,7 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
1215
1332
|
version: string;
|
|
1216
1333
|
}>;
|
|
1217
1334
|
components: z.ZodObject<{
|
|
1218
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
1335
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodObject<{
|
|
1219
1336
|
type: z.ZodLiteral<"relative">;
|
|
1220
1337
|
path: z.ZodString;
|
|
1221
1338
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1225,12 +1342,39 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
1225
1342
|
type: "relative";
|
|
1226
1343
|
path: string;
|
|
1227
1344
|
}>, {
|
|
1228
|
-
type:
|
|
1229
|
-
main:
|
|
1345
|
+
type: "workflow-v1";
|
|
1346
|
+
main: {
|
|
1347
|
+
type: "relative";
|
|
1348
|
+
path: string;
|
|
1349
|
+
};
|
|
1230
1350
|
}, {
|
|
1231
1351
|
type: "relative";
|
|
1232
1352
|
path: string;
|
|
1233
|
-
}>, z.
|
|
1353
|
+
}>, z.ZodObject<{
|
|
1354
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
1355
|
+
main: z.ZodObject<{
|
|
1356
|
+
type: z.ZodLiteral<"relative">;
|
|
1357
|
+
path: z.ZodString;
|
|
1358
|
+
}, "strict", z.ZodTypeAny, {
|
|
1359
|
+
type: "relative";
|
|
1360
|
+
path: string;
|
|
1361
|
+
}, {
|
|
1362
|
+
type: "relative";
|
|
1363
|
+
path: string;
|
|
1364
|
+
}>;
|
|
1365
|
+
}, "strip", z.ZodTypeAny, {
|
|
1366
|
+
type: "workflow-v1";
|
|
1367
|
+
main: {
|
|
1368
|
+
type: "relative";
|
|
1369
|
+
path: string;
|
|
1370
|
+
};
|
|
1371
|
+
}, {
|
|
1372
|
+
type: "workflow-v1";
|
|
1373
|
+
main: {
|
|
1374
|
+
type: "relative";
|
|
1375
|
+
path: string;
|
|
1376
|
+
};
|
|
1377
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1234
1378
|
type: z.ZodLiteral<"workflow-v1">;
|
|
1235
1379
|
main: z.ZodObject<{
|
|
1236
1380
|
type: z.ZodLiteral<"relative">;
|
|
@@ -1277,9 +1421,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
1277
1421
|
}>;
|
|
1278
1422
|
}, "strip", z.ZodTypeAny, {
|
|
1279
1423
|
workflow: {
|
|
1280
|
-
type: string;
|
|
1281
|
-
main: any;
|
|
1282
|
-
} | {
|
|
1283
1424
|
type: "workflow-v1";
|
|
1284
1425
|
main: {
|
|
1285
1426
|
type: "relative";
|
|
@@ -1482,9 +1623,6 @@ export declare function BlockPackDescriptionConsolidateToFolder(dstFolder: strin
|
|
|
1482
1623
|
}, "strip", z.ZodTypeAny, {
|
|
1483
1624
|
components: {
|
|
1484
1625
|
workflow: {
|
|
1485
|
-
type: string;
|
|
1486
|
-
main: any;
|
|
1487
|
-
} | {
|
|
1488
1626
|
type: "workflow-v1";
|
|
1489
1627
|
main: {
|
|
1490
1628
|
type: "relative";
|
|
@@ -1617,7 +1755,7 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
1617
1755
|
version: string;
|
|
1618
1756
|
}>;
|
|
1619
1757
|
components: z.ZodObject<{
|
|
1620
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
1758
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodObject<{
|
|
1621
1759
|
type: z.ZodLiteral<"relative">;
|
|
1622
1760
|
path: z.ZodString;
|
|
1623
1761
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1627,12 +1765,39 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
1627
1765
|
type: "relative";
|
|
1628
1766
|
path: string;
|
|
1629
1767
|
}>, {
|
|
1630
|
-
type:
|
|
1631
|
-
main:
|
|
1768
|
+
type: "workflow-v1";
|
|
1769
|
+
main: {
|
|
1770
|
+
type: "relative";
|
|
1771
|
+
path: string;
|
|
1772
|
+
};
|
|
1632
1773
|
}, {
|
|
1633
1774
|
type: "relative";
|
|
1634
1775
|
path: string;
|
|
1635
|
-
}>, z.
|
|
1776
|
+
}>, z.ZodObject<{
|
|
1777
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
1778
|
+
main: z.ZodObject<{
|
|
1779
|
+
type: z.ZodLiteral<"relative">;
|
|
1780
|
+
path: z.ZodString;
|
|
1781
|
+
}, "strict", z.ZodTypeAny, {
|
|
1782
|
+
type: "relative";
|
|
1783
|
+
path: string;
|
|
1784
|
+
}, {
|
|
1785
|
+
type: "relative";
|
|
1786
|
+
path: string;
|
|
1787
|
+
}>;
|
|
1788
|
+
}, "strip", z.ZodTypeAny, {
|
|
1789
|
+
type: "workflow-v1";
|
|
1790
|
+
main: {
|
|
1791
|
+
type: "relative";
|
|
1792
|
+
path: string;
|
|
1793
|
+
};
|
|
1794
|
+
}, {
|
|
1795
|
+
type: "workflow-v1";
|
|
1796
|
+
main: {
|
|
1797
|
+
type: "relative";
|
|
1798
|
+
path: string;
|
|
1799
|
+
};
|
|
1800
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1636
1801
|
type: z.ZodLiteral<"workflow-v1">;
|
|
1637
1802
|
main: z.ZodObject<{
|
|
1638
1803
|
type: z.ZodLiteral<"relative">;
|
|
@@ -1679,9 +1844,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
1679
1844
|
}>;
|
|
1680
1845
|
}, "strip", z.ZodTypeAny, {
|
|
1681
1846
|
workflow: {
|
|
1682
|
-
type: string;
|
|
1683
|
-
main: any;
|
|
1684
|
-
} | {
|
|
1685
1847
|
type: "workflow-v1";
|
|
1686
1848
|
main: {
|
|
1687
1849
|
type: "relative";
|
|
@@ -1884,9 +2046,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
1884
2046
|
}, "strip", z.ZodTypeAny, {
|
|
1885
2047
|
components: {
|
|
1886
2048
|
workflow: {
|
|
1887
|
-
type: string;
|
|
1888
|
-
main: any;
|
|
1889
|
-
} | {
|
|
1890
2049
|
type: "workflow-v1";
|
|
1891
2050
|
main: {
|
|
1892
2051
|
type: "relative";
|
|
@@ -2018,7 +2177,7 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2018
2177
|
version: string;
|
|
2019
2178
|
}>;
|
|
2020
2179
|
components: z.ZodObject<{
|
|
2021
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2180
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2022
2181
|
type: z.ZodLiteral<"relative">;
|
|
2023
2182
|
path: z.ZodString;
|
|
2024
2183
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2034,12 +2193,45 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2034
2193
|
type: "relative";
|
|
2035
2194
|
path: string;
|
|
2036
2195
|
}>, {
|
|
2037
|
-
type:
|
|
2038
|
-
main:
|
|
2196
|
+
type: "workflow-v1";
|
|
2197
|
+
main: {
|
|
2198
|
+
type: "relative";
|
|
2199
|
+
path: string;
|
|
2200
|
+
};
|
|
2039
2201
|
}, {
|
|
2040
2202
|
type: "relative";
|
|
2041
2203
|
path: string;
|
|
2042
|
-
}>, z.
|
|
2204
|
+
}>, z.ZodObject<{
|
|
2205
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
2206
|
+
main: z.ZodEffects<z.ZodObject<{
|
|
2207
|
+
type: z.ZodLiteral<"relative">;
|
|
2208
|
+
path: z.ZodString;
|
|
2209
|
+
}, "strict", z.ZodTypeAny, {
|
|
2210
|
+
type: "relative";
|
|
2211
|
+
path: string;
|
|
2212
|
+
}, {
|
|
2213
|
+
type: "relative";
|
|
2214
|
+
path: string;
|
|
2215
|
+
}>, {
|
|
2216
|
+
type: "relative";
|
|
2217
|
+
path: string;
|
|
2218
|
+
}, {
|
|
2219
|
+
type: "relative";
|
|
2220
|
+
path: string;
|
|
2221
|
+
}>;
|
|
2222
|
+
}, "strip", z.ZodTypeAny, {
|
|
2223
|
+
type: "workflow-v1";
|
|
2224
|
+
main: {
|
|
2225
|
+
type: "relative";
|
|
2226
|
+
path: string;
|
|
2227
|
+
};
|
|
2228
|
+
}, {
|
|
2229
|
+
type: "workflow-v1";
|
|
2230
|
+
main: {
|
|
2231
|
+
type: "relative";
|
|
2232
|
+
path: string;
|
|
2233
|
+
};
|
|
2234
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2043
2235
|
type: z.ZodLiteral<"workflow-v1">;
|
|
2044
2236
|
main: z.ZodEffects<z.ZodObject<{
|
|
2045
2237
|
type: z.ZodLiteral<"relative">;
|
|
@@ -2104,8 +2296,11 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2104
2296
|
}>;
|
|
2105
2297
|
}, "strip", z.ZodTypeAny, {
|
|
2106
2298
|
workflow: {
|
|
2107
|
-
type:
|
|
2108
|
-
main:
|
|
2299
|
+
type: "workflow-v1";
|
|
2300
|
+
main: {
|
|
2301
|
+
type: "relative";
|
|
2302
|
+
path: string;
|
|
2303
|
+
};
|
|
2109
2304
|
} | {
|
|
2110
2305
|
type: "workflow-v1";
|
|
2111
2306
|
main: {
|
|
@@ -2354,8 +2549,11 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2354
2549
|
};
|
|
2355
2550
|
components: {
|
|
2356
2551
|
workflow: {
|
|
2357
|
-
type:
|
|
2358
|
-
main:
|
|
2552
|
+
type: "workflow-v1";
|
|
2553
|
+
main: {
|
|
2554
|
+
type: "relative";
|
|
2555
|
+
path: string;
|
|
2556
|
+
};
|
|
2359
2557
|
} | {
|
|
2360
2558
|
type: "workflow-v1";
|
|
2361
2559
|
main: {
|
|
@@ -2483,7 +2681,7 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2483
2681
|
version: string;
|
|
2484
2682
|
}>;
|
|
2485
2683
|
components: z.ZodObject<{
|
|
2486
|
-
workflow: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
2684
|
+
workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodObject<{
|
|
2487
2685
|
type: z.ZodLiteral<"relative">;
|
|
2488
2686
|
path: z.ZodString;
|
|
2489
2687
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -2493,12 +2691,39 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2493
2691
|
type: "relative";
|
|
2494
2692
|
path: string;
|
|
2495
2693
|
}>, {
|
|
2496
|
-
type:
|
|
2497
|
-
main:
|
|
2694
|
+
type: "workflow-v1";
|
|
2695
|
+
main: {
|
|
2696
|
+
type: "relative";
|
|
2697
|
+
path: string;
|
|
2698
|
+
};
|
|
2498
2699
|
}, {
|
|
2499
2700
|
type: "relative";
|
|
2500
2701
|
path: string;
|
|
2501
|
-
}>, z.
|
|
2702
|
+
}>, z.ZodObject<{
|
|
2703
|
+
type: z.ZodLiteral<"workflow-v1">;
|
|
2704
|
+
main: z.ZodObject<{
|
|
2705
|
+
type: z.ZodLiteral<"relative">;
|
|
2706
|
+
path: z.ZodString;
|
|
2707
|
+
}, "strict", z.ZodTypeAny, {
|
|
2708
|
+
type: "relative";
|
|
2709
|
+
path: string;
|
|
2710
|
+
}, {
|
|
2711
|
+
type: "relative";
|
|
2712
|
+
path: string;
|
|
2713
|
+
}>;
|
|
2714
|
+
}, "strip", z.ZodTypeAny, {
|
|
2715
|
+
type: "workflow-v1";
|
|
2716
|
+
main: {
|
|
2717
|
+
type: "relative";
|
|
2718
|
+
path: string;
|
|
2719
|
+
};
|
|
2720
|
+
}, {
|
|
2721
|
+
type: "workflow-v1";
|
|
2722
|
+
main: {
|
|
2723
|
+
type: "relative";
|
|
2724
|
+
path: string;
|
|
2725
|
+
};
|
|
2726
|
+
}>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2502
2727
|
type: z.ZodLiteral<"workflow-v1">;
|
|
2503
2728
|
main: z.ZodObject<{
|
|
2504
2729
|
type: z.ZodLiteral<"relative">;
|
|
@@ -2545,9 +2770,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2545
2770
|
}>;
|
|
2546
2771
|
}, "strip", z.ZodTypeAny, {
|
|
2547
2772
|
workflow: {
|
|
2548
|
-
type: string;
|
|
2549
|
-
main: any;
|
|
2550
|
-
} | {
|
|
2551
2773
|
type: "workflow-v1";
|
|
2552
2774
|
main: {
|
|
2553
2775
|
type: "relative";
|
|
@@ -2750,9 +2972,6 @@ export declare function BlockPackDescriptionManifestAddRelativePathPrefix(prefix
|
|
|
2750
2972
|
}, "strip", z.ZodTypeAny, {
|
|
2751
2973
|
components: {
|
|
2752
2974
|
workflow: {
|
|
2753
|
-
type: string;
|
|
2754
|
-
main: any;
|
|
2755
|
-
} | {
|
|
2756
2975
|
type: "workflow-v1";
|
|
2757
2976
|
main: {
|
|
2758
2977
|
type: "relative";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_description.d.ts","sourceRoot":"","sources":["../../../src/v2/model/block_description.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"block_description.d.ts","sourceRoot":"","sources":["../../../src/v2/model/block_description.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,wB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eAAqC,CAAC;YAAkC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAgpB,CAAC;;;;;;;;;;;WAAuS,CAAC;uBAA6C,CAAC;;;;;;;YAA+K,CAAC;;;;;;;;YAA6M,CAAC;eAAqC,CAAC;YAAkC,CAAC;;;;;;;IAD/iiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/v2/registry/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAQhG,OAAO,EACL,iBAAiB,EAIjB,eAAe,EAGhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqD,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/v2/registry/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAQhG,OAAO,EACL,iBAAiB,EAIjB,eAAe,EAGhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqD,qBAAqB,EAAE,MAAM,UAAU,CAAC;AASpG,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;gBADP,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,QAAQ,YAAA;YAGtB,cAAc;IA0Hf,cAAc,CAAC,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBrD,kBAAkB,CAC7B,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,SAAS,GAAG,eAAe,CAAC;IAM1B,iBAAiB,IAAI,OAAO,CAAC,SAAS,GAAG,iBAAiB,CAAC;IAY3D,cAAc,CACzB,QAAQ,EAAE,iBAAiB,EAC3B,UAAU,EAAE,qBAAqB,GAChC,OAAO,CAAC,IAAI,CAAC;CAiCjB"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { BlockPackOverview } from '@milaboratories/pl-model-middle-layer';
|
|
1
|
+
import { BlockPackId, BlockPackOverview } from '@milaboratories/pl-model-middle-layer';
|
|
2
2
|
import { FolderReader } from '../../io';
|
|
3
|
+
import { BlockComponentsAbsoluteUrl } from '../model';
|
|
3
4
|
export type BlockPackOverviewNoRegLabel = Omit<BlockPackOverview, 'registryId'>;
|
|
4
5
|
export declare class RegistryV2Reader {
|
|
5
|
-
private readonly
|
|
6
|
+
private readonly registryReader;
|
|
6
7
|
private readonly metaCache;
|
|
7
|
-
private readonly
|
|
8
|
-
constructor(
|
|
8
|
+
private readonly v2RootFolderReader;
|
|
9
|
+
constructor(registryReader: FolderReader);
|
|
9
10
|
private embedMetaContent;
|
|
10
11
|
listBlockPacks(): Promise<BlockPackOverviewNoRegLabel[]>;
|
|
12
|
+
getComponents(id: BlockPackId): Promise<BlockComponentsAbsoluteUrl>;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=registry_reader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry_reader.d.ts","sourceRoot":"","sources":["../../../src/v2/registry/registry_reader.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"registry_reader.d.ts","sourceRoot":"","sources":["../../../src/v2/registry/registry_reader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGX,iBAAiB,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAWxC,OAAO,EAAE,0BAA0B,EAA2B,MAAM,UAAU,CAAC;AAE/E,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;AAEhF,qBAAa,gBAAgB;IAQf,OAAO,CAAC,QAAQ,CAAC,cAAc;IAP3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAGtB;IAEJ,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAe;gBAErB,cAAc,EAAE,YAAY;YAI3C,gBAAgB;IAYjB,cAAc,IAAI,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAwBxD,aAAa,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAWjF"}
|