keepset 0.26.0 → 0.27.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/README.md +1 -1
- package/dist/{bundled-V1EJ0k9e.js → bundled-BJ9DIeyV.js} +370 -27
- package/dist/{categories-HeWbVPhc.d.ts → categories-C7q-yLo-.d.ts} +151 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/node/fetch-dataset.d.ts +1 -1
- package/dist/node/fetch-dataset.js +678 -87
- package/dist-cli/keepset.mjs +13 -3
- package/package.json +1 -1
- package/schemas/entry.schema.json +1 -1
- package/schemas/manifest.schema.json +1 -1
|
@@ -63,13 +63,30 @@ declare const CitationSchema: z.ZodObject<{
|
|
|
63
63
|
type Citation = z.infer<typeof CitationSchema>;
|
|
64
64
|
/** A relative path inside an archive or a catalogue: `/`-separated segments, none empty, `.` or `..`, so it can never climb out of the directory it is resolved against. */
|
|
65
65
|
declare const RelativePathSchema: z.ZodString;
|
|
66
|
-
/** Which file of an archive to read: a member path, matched against a member's whole path or its trailing segments (so `net.gml` finds `net/net.gml`),
|
|
66
|
+
/** Which file of an archive to read: a member path, matched against a member's whole path or its trailing segments (so `net.gml` finds `net/net.gml`), the member whose name ends with one of a list of extensions (a format can have several, such as Pajek's `.net` and `.paj`), or the member whose whole path matches a regular expression (for an archive whose instance files cannot be told from its readmes and solutions by extension). A `member` selector must match exactly one member when the recipe runs, a `members` selector at least one; macOS resource-fork members (`__MACOSX/` and `._` files) never match. */
|
|
67
67
|
declare const ArchiveMemberSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
68
68
|
path: z.ZodString;
|
|
69
69
|
}, z.core.$strict>, z.ZodObject<{
|
|
70
70
|
extensions: z.ZodArray<z.ZodString>;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
+
pattern: z.ZodString;
|
|
71
73
|
}, z.core.$strict>]>;
|
|
72
74
|
type ArchiveMember = z.infer<typeof ArchiveMemberSchema>;
|
|
75
|
+
/** An archive a collection is read from: every file a selector matches, at least one. */
|
|
76
|
+
declare const CollectionArchiveSchema: z.ZodObject<{
|
|
77
|
+
kind: z.ZodEnum<{
|
|
78
|
+
zip: "zip";
|
|
79
|
+
tar: "tar";
|
|
80
|
+
"tar.gz": "tar.gz";
|
|
81
|
+
}>;
|
|
82
|
+
members: z.ZodUnion<readonly [z.ZodObject<{
|
|
83
|
+
path: z.ZodString;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
pattern: z.ZodString;
|
|
88
|
+
}, z.core.$strict>]>;
|
|
89
|
+
}, z.core.$strict>;
|
|
73
90
|
/** How the downloaded bytes unpack into the file the parser reads, or for a collection the files it reads one by one. A `members` selector gives every member it matches, at least one, in path order. A workbook (`xlsx`) is read as the CSV of its named sheet, with dates as ISO 8601 text, for the `csv-table` parser. */
|
|
74
91
|
declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
75
92
|
kind: z.ZodLiteral<"none">;
|
|
@@ -85,6 +102,8 @@ declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
85
102
|
path: z.ZodString;
|
|
86
103
|
}, z.core.$strict>, z.ZodObject<{
|
|
87
104
|
extensions: z.ZodArray<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
106
|
+
pattern: z.ZodString;
|
|
88
107
|
}, z.core.$strict>]>;
|
|
89
108
|
}, z.core.$strict>, z.ZodObject<{
|
|
90
109
|
kind: z.ZodEnum<{
|
|
@@ -96,12 +115,20 @@ declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
96
115
|
path: z.ZodString;
|
|
97
116
|
}, z.core.$strict>, z.ZodObject<{
|
|
98
117
|
extensions: z.ZodArray<z.ZodString>;
|
|
118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
119
|
+
pattern: z.ZodString;
|
|
99
120
|
}, z.core.$strict>]>;
|
|
100
121
|
}, z.core.$strict>, z.ZodObject<{
|
|
101
122
|
kind: z.ZodLiteral<"xlsx">;
|
|
102
123
|
sheet: z.ZodString;
|
|
103
124
|
}, z.core.$strict>]>;
|
|
104
125
|
type Archive = z.infer<typeof ArchiveSchema>;
|
|
126
|
+
/** An archive that gives the one file a document is read from. */
|
|
127
|
+
type DocumentArchive = Exclude<Archive, {
|
|
128
|
+
readonly members: ArchiveMember;
|
|
129
|
+
}>;
|
|
130
|
+
/** An archive that gives every file a collection is read from. */
|
|
131
|
+
type CollectionArchive = z.infer<typeof CollectionArchiveSchema>;
|
|
105
132
|
/** A column of a table as the table parser names it: the header with every run of characters outside letters, digits and underscore replaced by one underscore, so it is a valid segment of a twindex path. */
|
|
106
133
|
declare const ColumnNameSchema: z.ZodString;
|
|
107
134
|
/** The parser that reads the unpacked file into the dataset's native JSON shape, with the options that format needs. Every option is stated in the entry, so a recipe reads the same way wherever it runs. */
|
|
@@ -140,6 +167,12 @@ declare const ParserSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
140
167
|
"utf-8": "utf-8";
|
|
141
168
|
latin1: "latin1";
|
|
142
169
|
}>;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
format: z.ZodLiteral<"customer-points">;
|
|
172
|
+
encoding: z.ZodEnum<{
|
|
173
|
+
"utf-8": "utf-8";
|
|
174
|
+
latin1: "latin1";
|
|
175
|
+
}>;
|
|
143
176
|
}, z.core.$strict>, z.ZodObject<{
|
|
144
177
|
format: z.ZodLiteral<"solomon">;
|
|
145
178
|
encoding: z.ZodEnum<{
|
|
@@ -164,6 +197,12 @@ declare const ParserSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
164
197
|
"utf-8": "utf-8";
|
|
165
198
|
latin1: "latin1";
|
|
166
199
|
}>;
|
|
200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
+
format: z.ZodLiteral<"verolog-2019">;
|
|
202
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
203
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
204
|
+
format: z.ZodLiteral<"vrp-rep">;
|
|
205
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
167
206
|
}, z.core.$strict>, z.ZodObject<{
|
|
168
207
|
format: z.ZodLiteral<"csv-table">;
|
|
169
208
|
encoding: z.ZodEnum<{
|
|
@@ -226,6 +265,8 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
226
265
|
path: z.ZodString;
|
|
227
266
|
}, z.core.$strict>, z.ZodObject<{
|
|
228
267
|
extensions: z.ZodArray<z.ZodString>;
|
|
268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
269
|
+
pattern: z.ZodString;
|
|
229
270
|
}, z.core.$strict>]>;
|
|
230
271
|
}, z.core.$strict>, z.ZodObject<{
|
|
231
272
|
kind: z.ZodEnum<{
|
|
@@ -237,6 +278,8 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
237
278
|
path: z.ZodString;
|
|
238
279
|
}, z.core.$strict>, z.ZodObject<{
|
|
239
280
|
extensions: z.ZodArray<z.ZodString>;
|
|
281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
282
|
+
pattern: z.ZodString;
|
|
240
283
|
}, z.core.$strict>]>;
|
|
241
284
|
}, z.core.$strict>, z.ZodObject<{
|
|
242
285
|
kind: z.ZodLiteral<"xlsx">;
|
|
@@ -277,6 +320,12 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
277
320
|
"utf-8": "utf-8";
|
|
278
321
|
latin1: "latin1";
|
|
279
322
|
}>;
|
|
323
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
324
|
+
format: z.ZodLiteral<"customer-points">;
|
|
325
|
+
encoding: z.ZodEnum<{
|
|
326
|
+
"utf-8": "utf-8";
|
|
327
|
+
latin1: "latin1";
|
|
328
|
+
}>;
|
|
280
329
|
}, z.core.$strict>, z.ZodObject<{
|
|
281
330
|
format: z.ZodLiteral<"solomon">;
|
|
282
331
|
encoding: z.ZodEnum<{
|
|
@@ -301,6 +350,12 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
350
|
"utf-8": "utf-8";
|
|
302
351
|
latin1: "latin1";
|
|
303
352
|
}>;
|
|
353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
354
|
+
format: z.ZodLiteral<"verolog-2019">;
|
|
355
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
357
|
+
format: z.ZodLiteral<"vrp-rep">;
|
|
358
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
304
359
|
}, z.core.$strict>, z.ZodObject<{
|
|
305
360
|
format: z.ZodLiteral<"csv-table">;
|
|
306
361
|
encoding: z.ZodEnum<{
|
|
@@ -418,6 +473,8 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
418
473
|
path: z.ZodString;
|
|
419
474
|
}, z.core.$strict>, z.ZodObject<{
|
|
420
475
|
extensions: z.ZodArray<z.ZodString>;
|
|
476
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
477
|
+
pattern: z.ZodString;
|
|
421
478
|
}, z.core.$strict>]>;
|
|
422
479
|
}, z.core.$strict>, z.ZodObject<{
|
|
423
480
|
kind: z.ZodEnum<{
|
|
@@ -429,6 +486,8 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
429
486
|
path: z.ZodString;
|
|
430
487
|
}, z.core.$strict>, z.ZodObject<{
|
|
431
488
|
extensions: z.ZodArray<z.ZodString>;
|
|
489
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
490
|
+
pattern: z.ZodString;
|
|
432
491
|
}, z.core.$strict>]>;
|
|
433
492
|
}, z.core.$strict>, z.ZodObject<{
|
|
434
493
|
kind: z.ZodLiteral<"xlsx">;
|
|
@@ -469,6 +528,12 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
469
528
|
"utf-8": "utf-8";
|
|
470
529
|
latin1: "latin1";
|
|
471
530
|
}>;
|
|
531
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
532
|
+
format: z.ZodLiteral<"customer-points">;
|
|
533
|
+
encoding: z.ZodEnum<{
|
|
534
|
+
"utf-8": "utf-8";
|
|
535
|
+
latin1: "latin1";
|
|
536
|
+
}>;
|
|
472
537
|
}, z.core.$strict>, z.ZodObject<{
|
|
473
538
|
format: z.ZodLiteral<"solomon">;
|
|
474
539
|
encoding: z.ZodEnum<{
|
|
@@ -493,6 +558,12 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
493
558
|
"utf-8": "utf-8";
|
|
494
559
|
latin1: "latin1";
|
|
495
560
|
}>;
|
|
561
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
562
|
+
format: z.ZodLiteral<"verolog-2019">;
|
|
563
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
564
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
565
|
+
format: z.ZodLiteral<"vrp-rep">;
|
|
566
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
496
567
|
}, z.core.$strict>, z.ZodObject<{
|
|
497
568
|
format: z.ZodLiteral<"csv-table">;
|
|
498
569
|
encoding: z.ZodEnum<{
|
|
@@ -573,6 +644,8 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
573
644
|
path: string;
|
|
574
645
|
} | {
|
|
575
646
|
extensions: string[];
|
|
647
|
+
} | {
|
|
648
|
+
pattern: string;
|
|
576
649
|
};
|
|
577
650
|
} | {
|
|
578
651
|
kind: "none";
|
|
@@ -584,6 +657,8 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
584
657
|
path: string;
|
|
585
658
|
} | {
|
|
586
659
|
extensions: string[];
|
|
660
|
+
} | {
|
|
661
|
+
pattern: string;
|
|
587
662
|
};
|
|
588
663
|
} | {
|
|
589
664
|
kind: "xlsx";
|
|
@@ -628,6 +703,9 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
628
703
|
} | {
|
|
629
704
|
format: "pajek";
|
|
630
705
|
encoding: "utf-8" | "latin1";
|
|
706
|
+
} | {
|
|
707
|
+
format: "customer-points";
|
|
708
|
+
encoding: "utf-8" | "latin1";
|
|
631
709
|
} | {
|
|
632
710
|
format: "solomon";
|
|
633
711
|
encoding: "utf-8" | "latin1";
|
|
@@ -640,6 +718,12 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
640
718
|
} | {
|
|
641
719
|
format: "tsplib";
|
|
642
720
|
encoding: "utf-8" | "latin1";
|
|
721
|
+
} | {
|
|
722
|
+
format: "verolog-2019";
|
|
723
|
+
encoding: "utf-8";
|
|
724
|
+
} | {
|
|
725
|
+
format: "vrp-rep";
|
|
726
|
+
encoding: "utf-8";
|
|
643
727
|
};
|
|
644
728
|
paging?: {
|
|
645
729
|
kind: "arcgis-query";
|
|
@@ -832,6 +916,8 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
832
916
|
path: z.ZodString;
|
|
833
917
|
}, z.core.$strict>, z.ZodObject<{
|
|
834
918
|
extensions: z.ZodArray<z.ZodString>;
|
|
919
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
920
|
+
pattern: z.ZodString;
|
|
835
921
|
}, z.core.$strict>]>;
|
|
836
922
|
}, z.core.$strict>, z.ZodObject<{
|
|
837
923
|
kind: z.ZodEnum<{
|
|
@@ -843,6 +929,8 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
843
929
|
path: z.ZodString;
|
|
844
930
|
}, z.core.$strict>, z.ZodObject<{
|
|
845
931
|
extensions: z.ZodArray<z.ZodString>;
|
|
932
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
933
|
+
pattern: z.ZodString;
|
|
846
934
|
}, z.core.$strict>]>;
|
|
847
935
|
}, z.core.$strict>, z.ZodObject<{
|
|
848
936
|
kind: z.ZodLiteral<"xlsx">;
|
|
@@ -883,6 +971,12 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
883
971
|
"utf-8": "utf-8";
|
|
884
972
|
latin1: "latin1";
|
|
885
973
|
}>;
|
|
974
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
975
|
+
format: z.ZodLiteral<"customer-points">;
|
|
976
|
+
encoding: z.ZodEnum<{
|
|
977
|
+
"utf-8": "utf-8";
|
|
978
|
+
latin1: "latin1";
|
|
979
|
+
}>;
|
|
886
980
|
}, z.core.$strict>, z.ZodObject<{
|
|
887
981
|
format: z.ZodLiteral<"solomon">;
|
|
888
982
|
encoding: z.ZodEnum<{
|
|
@@ -907,6 +1001,12 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
907
1001
|
"utf-8": "utf-8";
|
|
908
1002
|
latin1: "latin1";
|
|
909
1003
|
}>;
|
|
1004
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1005
|
+
format: z.ZodLiteral<"verolog-2019">;
|
|
1006
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
1007
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1008
|
+
format: z.ZodLiteral<"vrp-rep">;
|
|
1009
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
910
1010
|
}, z.core.$strict>, z.ZodObject<{
|
|
911
1011
|
format: z.ZodLiteral<"csv-table">;
|
|
912
1012
|
encoding: z.ZodEnum<{
|
|
@@ -987,6 +1087,8 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
987
1087
|
path: string;
|
|
988
1088
|
} | {
|
|
989
1089
|
extensions: string[];
|
|
1090
|
+
} | {
|
|
1091
|
+
pattern: string;
|
|
990
1092
|
};
|
|
991
1093
|
} | {
|
|
992
1094
|
kind: "none";
|
|
@@ -998,6 +1100,8 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
998
1100
|
path: string;
|
|
999
1101
|
} | {
|
|
1000
1102
|
extensions: string[];
|
|
1103
|
+
} | {
|
|
1104
|
+
pattern: string;
|
|
1001
1105
|
};
|
|
1002
1106
|
} | {
|
|
1003
1107
|
kind: "xlsx";
|
|
@@ -1042,6 +1146,9 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1042
1146
|
} | {
|
|
1043
1147
|
format: "pajek";
|
|
1044
1148
|
encoding: "utf-8" | "latin1";
|
|
1149
|
+
} | {
|
|
1150
|
+
format: "customer-points";
|
|
1151
|
+
encoding: "utf-8" | "latin1";
|
|
1045
1152
|
} | {
|
|
1046
1153
|
format: "solomon";
|
|
1047
1154
|
encoding: "utf-8" | "latin1";
|
|
@@ -1054,6 +1161,12 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1054
1161
|
} | {
|
|
1055
1162
|
format: "tsplib";
|
|
1056
1163
|
encoding: "utf-8" | "latin1";
|
|
1164
|
+
} | {
|
|
1165
|
+
format: "verolog-2019";
|
|
1166
|
+
encoding: "utf-8";
|
|
1167
|
+
} | {
|
|
1168
|
+
format: "vrp-rep";
|
|
1169
|
+
encoding: "utf-8";
|
|
1057
1170
|
};
|
|
1058
1171
|
paging?: {
|
|
1059
1172
|
kind: "arcgis-query";
|
|
@@ -1137,6 +1250,8 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1137
1250
|
path: string;
|
|
1138
1251
|
} | {
|
|
1139
1252
|
extensions: string[];
|
|
1253
|
+
} | {
|
|
1254
|
+
pattern: string;
|
|
1140
1255
|
};
|
|
1141
1256
|
} | {
|
|
1142
1257
|
kind: "none";
|
|
@@ -1148,6 +1263,8 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1148
1263
|
path: string;
|
|
1149
1264
|
} | {
|
|
1150
1265
|
extensions: string[];
|
|
1266
|
+
} | {
|
|
1267
|
+
pattern: string;
|
|
1151
1268
|
};
|
|
1152
1269
|
} | {
|
|
1153
1270
|
kind: "xlsx";
|
|
@@ -1192,6 +1309,9 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1192
1309
|
} | {
|
|
1193
1310
|
format: "pajek";
|
|
1194
1311
|
encoding: "utf-8" | "latin1";
|
|
1312
|
+
} | {
|
|
1313
|
+
format: "customer-points";
|
|
1314
|
+
encoding: "utf-8" | "latin1";
|
|
1195
1315
|
} | {
|
|
1196
1316
|
format: "solomon";
|
|
1197
1317
|
encoding: "utf-8" | "latin1";
|
|
@@ -1204,6 +1324,12 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1204
1324
|
} | {
|
|
1205
1325
|
format: "tsplib";
|
|
1206
1326
|
encoding: "utf-8" | "latin1";
|
|
1327
|
+
} | {
|
|
1328
|
+
format: "verolog-2019";
|
|
1329
|
+
encoding: "utf-8";
|
|
1330
|
+
} | {
|
|
1331
|
+
format: "vrp-rep";
|
|
1332
|
+
encoding: "utf-8";
|
|
1207
1333
|
};
|
|
1208
1334
|
paging?: {
|
|
1209
1335
|
kind: "arcgis-query";
|
|
@@ -1340,6 +1466,29 @@ declare const GraphV1Schema: z.ZodObject<{
|
|
|
1340
1466
|
type GraphV1 = z.infer<typeof GraphV1Schema>;
|
|
1341
1467
|
//#endregion
|
|
1342
1468
|
//#region src/targets/or-set-v1.d.ts
|
|
1469
|
+
/** One instance of a set: an or/v1 instance, `{ meta, nodes }`, with the id that names it within the set (for a collection read from an archive, the member's path). */
|
|
1470
|
+
declare const OrInstanceSchema: z.ZodObject<{
|
|
1471
|
+
id: z.ZodString;
|
|
1472
|
+
meta: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, unknown>;
|
|
1473
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1474
|
+
id: z.ZodString;
|
|
1475
|
+
lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1476
|
+
lon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1477
|
+
x: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1478
|
+
y: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1479
|
+
prize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1480
|
+
prizeProbability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1481
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1482
|
+
travelTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1483
|
+
skill: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1484
|
+
territory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1485
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1486
|
+
opened: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1487
|
+
closed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1488
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1489
|
+
}, z.core.$loose>>;
|
|
1490
|
+
}, z.core.$strict>;
|
|
1491
|
+
type OrInstance = z.infer<typeof OrInstanceSchema>;
|
|
1343
1492
|
/**
|
|
1344
1493
|
* The or-set/v1 normalisation target: `{ meta, instances }`, a collection of operations-research instances such as a benchmark suite, each instance an or/v1 document (`{ meta, nodes }`) under an id of its own. Beyond the shapes it checks that instance ids are unique in the set and node ids unique within each instance. A node id need not be unique across instances, because every instance numbers its own nodes.
|
|
1345
1494
|
*/
|
|
@@ -1526,4 +1675,4 @@ declare function listCategories(): readonly Category[];
|
|
|
1526
1675
|
*/
|
|
1527
1676
|
declare function countTarget(id: CategoryId, target: CategoryTarget): ReadonlyMap<string, number>;
|
|
1528
1677
|
//#endregion
|
|
1529
|
-
export {
|
|
1678
|
+
export { Entry as $, Dataset as A, AliasSchema as B, GraphNode as C, Catalogue as D, GraphV1Schema as E, LineageSchema as F, Citation as G, ArchiveMember as H, Manifest as I, CollectionArchiveSchema as J, CitationSchema as K, ManifestSchema as L, NamespaceNode as M, createCatalogue as N, CatalogueIndex as O, Lineage as P, DocumentArchive as Q, SemVerSchema as R, GraphEdgeSchema as S, GraphV1 as T, ArchiveMemberSchema as U, Archive as V, ArchiveSchema as W, CrosswalkReference as X, ColumnNameSchema as Y, CrosswalkReferenceSchema as Z, OrInstance as _, WaybackTimestampSchema as _t, CategoryTarget as a, Namespace as at, OrSetV1Schema as b, countTarget as c, ParserSchema as ct, kindOf as d, RecipeSchema as dt, EntrySchema as et, listCategories as f, RelativePathSchema as ft, OrV1Schema as g, SourceSchema as gt, OrV1 as h, Source as ht, CategoryShape as i, LicenceSchema as it, DatasetQuery as j, CatalogueIndexSchema as k, getCategory as l, RESERVED_META_KEYS as lt, OrNodeSchema as m, SnapshotSchema as mt, CategoryId as n, IdSchema as nt, CategoryTargets as o, NamespaceSchema as ot, OrNode as p, Snapshot as pt, CollectionArchive as q, CategoryIdSchema as r, Licence as rt, CountedKey as s, Parser as st, Category as t, HttpUrlSchema as tt, getTarget as u, Recipe as ut, OrInstanceSchema as v, parseEntry as vt, GraphNodeSchema as w, GraphEdge as x, OrSetV1 as y, waybackUrl as yt, parseManifest as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as Entry, A as Dataset, B as AliasSchema, C as GraphNode, D as Catalogue, E as GraphV1Schema, F as LineageSchema, G as Citation, H as ArchiveMember, I as Manifest, J as CollectionArchiveSchema, K as CitationSchema, L as ManifestSchema, M as NamespaceNode, N as createCatalogue, O as CatalogueIndex, P as Lineage, Q as DocumentArchive, R as SemVerSchema, S as GraphEdgeSchema, T as GraphV1, U as ArchiveMemberSchema, V as Archive, W as ArchiveSchema, X as CrosswalkReference, Y as ColumnNameSchema, Z as CrosswalkReferenceSchema, _ as OrInstance, _t as WaybackTimestampSchema, a as CategoryTarget, at as Namespace, b as OrSetV1Schema, c as countTarget, ct as ParserSchema, d as kindOf, dt as RecipeSchema, et as EntrySchema, f as listCategories, ft as RelativePathSchema, g as OrV1Schema, gt as SourceSchema, h as OrV1, ht as Source, i as CategoryShape, it as LicenceSchema, j as DatasetQuery, k as CatalogueIndexSchema, l as getCategory, lt as RESERVED_META_KEYS, m as OrNodeSchema, mt as SnapshotSchema, n as CategoryId, nt as IdSchema, o as CategoryTargets, ot as NamespaceSchema, p as OrNode, pt as Snapshot, q as CollectionArchive, r as CategoryIdSchema, rt as Licence, s as CountedKey, st as Parser, t as Category, tt as HttpUrlSchema, u as getTarget, ut as Recipe, v as OrInstanceSchema, vt as parseEntry, w as GraphNodeSchema, x as GraphEdge, y as OrSetV1, yt as waybackUrl, z as parseManifest } from "./categories-C7q-yLo-.js";
|
|
2
2
|
import { Crosswalk } from "twindex";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/errors.d.ts
|
|
@@ -123,4 +123,4 @@ type JsonScalar = z.infer<typeof JsonScalarSchema>;
|
|
|
123
123
|
*/
|
|
124
124
|
export declare function validateDataset(dataset: Dataset): SyntaxIssue[];
|
|
125
125
|
//#endregion
|
|
126
|
-
export { AliasSchema, type Archive, type ArchiveMember, ArchiveMemberSchema, ArchiveSchema, type Catalogue, type CatalogueIndex, CatalogueIndexSchema, type Category, type CategoryId, CategoryIdSchema, type CategoryTarget, type CategoryTargets, type Citation, CitationSchema, ColumnNameSchema, type CountedKey, type CrosswalkReference, CrosswalkReferenceSchema, type Dataset, type DatasetQuery, type Entry, type EntryNames, EntrySchema, type GraphEdge, GraphEdgeSchema, type GraphNode, GraphNodeSchema, type GraphV1, GraphV1Schema, HttpUrlSchema, IdSchema, type JsonScalar, type Licence, LicenceSchema, type Lineage, LineageSchema, type Manifest, ManifestSchema, type Namespace, type NamespaceNode, NamespaceSchema, type OrNode, OrNodeSchema, type OrV1, OrV1Schema, type Parser, ParserSchema, RESERVED_META_KEYS, type Recipe, RecipeSchema, type RecipeStep, RelativePathSchema, type SegmentAliases, SemVerSchema, type Snapshot, SnapshotSchema, type Source, SourceSchema, type SyntaxIssue, WaybackTimestampSchema, countTarget, createCatalogue, getCategory, getTarget, kindOf, listCategories, parseEntry, parseManifest, waybackUrl };
|
|
126
|
+
export { AliasSchema, type Archive, type ArchiveMember, ArchiveMemberSchema, ArchiveSchema, type Catalogue, type CatalogueIndex, CatalogueIndexSchema, type Category, type CategoryId, CategoryIdSchema, type CategoryShape, type CategoryTarget, type CategoryTargets, type Citation, CitationSchema, type CollectionArchive, CollectionArchiveSchema, ColumnNameSchema, type CountedKey, type CrosswalkReference, CrosswalkReferenceSchema, type Dataset, type DatasetQuery, type DocumentArchive, type Entry, type EntryNames, EntrySchema, type GraphEdge, GraphEdgeSchema, type GraphNode, GraphNodeSchema, type GraphV1, GraphV1Schema, HttpUrlSchema, IdSchema, type JsonScalar, type Licence, LicenceSchema, type Lineage, LineageSchema, type Manifest, ManifestSchema, type Namespace, type NamespaceNode, NamespaceSchema, type OrInstance, OrInstanceSchema, type OrNode, OrNodeSchema, type OrSetV1, OrSetV1Schema, type OrV1, OrV1Schema, type Parser, ParserSchema, RESERVED_META_KEYS, type Recipe, RecipeSchema, type RecipeStep, RelativePathSchema, type SegmentAliases, SemVerSchema, type Snapshot, SnapshotSchema, type Source, SourceSchema, type SyntaxIssue, WaybackTimestampSchema, countTarget, createCatalogue, getCategory, getTarget, kindOf, listCategories, parseEntry, parseManifest, waybackUrl };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as DatasetAmbiguousError, A as parseEntry, B as getTarget, C as ParserSchema, D as SnapshotSchema, E as RelativePathSchema, F as namesOf, G as OrNodeSchema, H as listCategories, J as GraphNodeSchema, K as OrV1Schema, L as CategoryIdSchema, M as waybackUrl, N as NAME_SEPARATOR, O as SourceSchema, P as groupsOf, Q as CatalogueSyntaxError, R as countTarget, S as NamespaceSchema, T as RecipeSchema, U as OrInstanceSchema, V as kindOf, W as OrSetV1Schema, X as JsonScalarSchema, Y as GraphV1Schema, Z as ArchiveError, _ as CrosswalkReferenceSchema, a as CatalogueIndexSchema, b as IdSchema, c as ManifestSchema, d as AliasSchema, et as DatasetNotFoundError, f as ArchiveMemberSchema, g as ColumnNameSchema, h as CollectionArchiveSchema, i as listNamespaces, it as UnknownCategoryError, j as toIssues, k as WaybackTimestampSchema, l as SemVerSchema, m as CitationSchema, n as getManifest, nt as NativeParseError, o as createCatalogue, p as ArchiveSchema, q as GraphEdgeSchema, r as listDatasets, rt as RecipeError, s as LineageSchema, t as getDataset, tt as KeepsetError, u as parseManifest, v as EntrySchema, w as RESERVED_META_KEYS, x as LicenceSchema, y as HttpUrlSchema, z as getCategory } from "./bundled-BJ9DIeyV.js";
|
|
2
2
|
import { validateCrosswalk } from "twindex";
|
|
3
3
|
//#region src/serialise.ts
|
|
4
4
|
/**
|
|
@@ -57,4 +57,4 @@ function validateDataset(dataset) {
|
|
|
57
57
|
return issues;
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
|
-
export { AliasSchema, ArchiveError, ArchiveMemberSchema, ArchiveSchema, CatalogueIndexSchema, CatalogueSyntaxError, CategoryIdSchema, CitationSchema, ColumnNameSchema, CrosswalkReferenceSchema, DatasetAmbiguousError, DatasetNotFoundError, EntrySchema, GraphEdgeSchema, GraphNodeSchema, GraphV1Schema, HttpUrlSchema, IdSchema, JsonScalarSchema, KeepsetError, LicenceSchema, LineageSchema, ManifestSchema, NAME_SEPARATOR, NamespaceSchema, NativeParseError, OrNodeSchema, OrV1Schema, ParserSchema, RESERVED_META_KEYS, RecipeError, RecipeSchema, RelativePathSchema, SemVerSchema, SnapshotSchema, SourceSchema, UnknownCategoryError, WaybackTimestampSchema, countTarget, createCatalogue, getCategory, getDataset, getManifest, getTarget, groupsOf, kindOf, listCategories, listDatasets, listNamespaces, namesOf, parseEntry, parseManifest, serialise, validateDataset, waybackUrl };
|
|
60
|
+
export { AliasSchema, ArchiveError, ArchiveMemberSchema, ArchiveSchema, CatalogueIndexSchema, CatalogueSyntaxError, CategoryIdSchema, CitationSchema, CollectionArchiveSchema, ColumnNameSchema, CrosswalkReferenceSchema, DatasetAmbiguousError, DatasetNotFoundError, EntrySchema, GraphEdgeSchema, GraphNodeSchema, GraphV1Schema, HttpUrlSchema, IdSchema, JsonScalarSchema, KeepsetError, LicenceSchema, LineageSchema, ManifestSchema, NAME_SEPARATOR, NamespaceSchema, NativeParseError, OrInstanceSchema, OrNodeSchema, OrSetV1Schema, OrV1Schema, ParserSchema, RESERVED_META_KEYS, RecipeError, RecipeSchema, RelativePathSchema, SemVerSchema, SnapshotSchema, SourceSchema, UnknownCategoryError, WaybackTimestampSchema, countTarget, createCatalogue, getCategory, getDataset, getManifest, getTarget, groupsOf, kindOf, listCategories, listDatasets, listNamespaces, namesOf, parseEntry, parseManifest, serialise, validateDataset, waybackUrl };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as Entry, A as Dataset, a as CategoryTarget, ht as Source, pt as Snapshot } from "../categories-C7q-yLo-.js";
|
|
2
2
|
//#region src/node/fetch-dataset.d.ts
|
|
3
3
|
/** The network port a recipe downloads through: `downloadRaw` by default, which returns the bytes exactly as served, or a stand-in under test. */
|
|
4
4
|
export type FetchPort = (url: string, init: {
|