keepset 0.38.0 → 0.39.0
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-U2l4WT5T.js → bundled-6dYCPVD-.js} +157 -25
- package/dist/{categories-gZh8cn-G.d.ts → categories-DijttH_M.d.ts} +157 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node/fetch-dataset.d.ts +2 -2
- package/dist/node/fetch-dataset.js +322 -53
- package/dist-cli/keepset.mjs +2 -2
- package/package.json +1 -1
- package/schemas/entry.schema.json +1 -1
- package/schemas/manifest.schema.json +1 -1
|
@@ -114,7 +114,7 @@ declare const PartsArchiveSchema: z.ZodObject<{
|
|
|
114
114
|
}, z.core.$strict>>;
|
|
115
115
|
}, z.core.$strict>;
|
|
116
116
|
type PartsArchive = z.infer<typeof PartsArchiveSchema>;
|
|
117
|
-
/** How the downloaded bytes unpack into the file the parser reads, the named files a parser reads together into one document (`parts`), 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. `gzip` and `bzip2` are one compressed file, and `tar.gz` and `tar.bz2` a tar archive compressed with them. A member that is an archive in its turn (a contest bundle that ships its problems as a zip inside the zip, a spreadsheet inside a zip) is unpacked by `inner`. A spreadsheet (`xlsx`, `xls` or `ods`) is read as the CSV of its named sheet, with dates as ISO 8601 text, for the `csv-table` or `edge-list` parser. A point shapefile (`shapefile`) is a zip whose `member` selects the `.shp`, read with the `.dbf`, `.prj` and `.cpg` of the same name beside it as the CSV of its attribute table with each point's stored coordinates and its WGS84 position, for the `csv-table` parser. */
|
|
117
|
+
/** How the downloaded bytes unpack into the file the parser reads, the named files a parser of a parts format reads together into one document (`parts`, such as the split files of a triples download or an HGB dataset's nodes and links), the files a parser of a multi-file format reads together into one document (`files`, such as an OGB raw directory), 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. `gzip` and `bzip2` are one compressed file, and `tar.gz` and `tar.bz2` a tar archive compressed with them. A member that is an archive in its turn (a contest bundle that ships its problems as a zip inside the zip, a spreadsheet inside a zip) is unpacked by `inner`. A spreadsheet (`xlsx`, `xls` or `ods`) is read as the CSV of its named sheet, with dates as ISO 8601 text, for the `csv-table` or `edge-list` parser. A point shapefile (`shapefile`) is a zip whose `member` selects the `.shp`, read with the `.dbf`, `.prj` and `.cpg` of the same name beside it as the CSV of its attribute table with each point's stored coordinates and its WGS84 position, for the `csv-table` parser. */
|
|
118
118
|
declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
119
119
|
kind: z.ZodLiteral<"none">;
|
|
120
120
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -194,6 +194,23 @@ declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
194
194
|
pattern: z.ZodString;
|
|
195
195
|
}, z.core.$strict>]>;
|
|
196
196
|
}, z.core.$strict>>;
|
|
197
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
198
|
+
kind: z.ZodEnum<{
|
|
199
|
+
zip: "zip";
|
|
200
|
+
tar: "tar";
|
|
201
|
+
"tar.gz": "tar.gz";
|
|
202
|
+
"tar.bz2": "tar.bz2";
|
|
203
|
+
}>;
|
|
204
|
+
files: z.ZodUnion<readonly [z.ZodObject<{
|
|
205
|
+
path: z.ZodString;
|
|
206
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
207
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
208
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
209
|
+
pattern: z.ZodString;
|
|
210
|
+
}, z.core.$strict>]>;
|
|
211
|
+
inner: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
kind: z.ZodLiteral<"gzip">;
|
|
213
|
+
}, z.core.$strict>>;
|
|
197
214
|
}, z.core.$strict>, z.ZodObject<{
|
|
198
215
|
kind: z.ZodEnum<{
|
|
199
216
|
xlsx: "xlsx";
|
|
@@ -215,7 +232,9 @@ type Archive = z.infer<typeof ArchiveSchema>;
|
|
|
215
232
|
/** An archive that gives the one file a document is read from. */
|
|
216
233
|
type DocumentArchive = Exclude<Archive, {
|
|
217
234
|
readonly members: ArchiveMember;
|
|
218
|
-
} | PartsArchive
|
|
235
|
+
} | PartsArchive | {
|
|
236
|
+
readonly files: ArchiveMember;
|
|
237
|
+
}>;
|
|
219
238
|
/** An archive that gives every file a collection is read from. */
|
|
220
239
|
type CollectionArchive = z.infer<typeof CollectionArchiveSchema>;
|
|
221
240
|
/** 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 crossmap path. */
|
|
@@ -244,6 +263,10 @@ declare const ParserSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
244
263
|
}, z.core.$strict>>;
|
|
245
264
|
multiplicityColumn: z.ZodOptional<z.ZodInt>;
|
|
246
265
|
mirrored: z.ZodOptional<z.ZodLiteral<true>>;
|
|
266
|
+
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
column: z.ZodInt;
|
|
268
|
+
equals: z.ZodString;
|
|
269
|
+
}, z.core.$strict>>>;
|
|
247
270
|
}, z.core.$strict>, z.ZodObject<{
|
|
248
271
|
format: z.ZodLiteral<"matrix-market">;
|
|
249
272
|
encoding: z.ZodEnum<{
|
|
@@ -336,6 +359,9 @@ declare const ParserSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
336
359
|
}, z.core.$strict>, z.ZodObject<{
|
|
337
360
|
format: z.ZodLiteral<"witvliet-synapses">;
|
|
338
361
|
encoding: z.ZodLiteral<"utf-8">;
|
|
362
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
363
|
+
format: z.ZodLiteral<"ogb">;
|
|
364
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
339
365
|
}, z.core.$strict>, z.ZodObject<{
|
|
340
366
|
format: z.ZodLiteral<"customer-points">;
|
|
341
367
|
encoding: z.ZodEnum<{
|
|
@@ -501,6 +527,23 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
501
527
|
pattern: z.ZodString;
|
|
502
528
|
}, z.core.$strict>]>;
|
|
503
529
|
}, z.core.$strict>>;
|
|
530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
531
|
+
kind: z.ZodEnum<{
|
|
532
|
+
zip: "zip";
|
|
533
|
+
tar: "tar";
|
|
534
|
+
"tar.gz": "tar.gz";
|
|
535
|
+
"tar.bz2": "tar.bz2";
|
|
536
|
+
}>;
|
|
537
|
+
files: z.ZodUnion<readonly [z.ZodObject<{
|
|
538
|
+
path: z.ZodString;
|
|
539
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
540
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
541
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
542
|
+
pattern: z.ZodString;
|
|
543
|
+
}, z.core.$strict>]>;
|
|
544
|
+
inner: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
kind: z.ZodLiteral<"gzip">;
|
|
546
|
+
}, z.core.$strict>>;
|
|
504
547
|
}, z.core.$strict>, z.ZodObject<{
|
|
505
548
|
kind: z.ZodEnum<{
|
|
506
549
|
xlsx: "xlsx";
|
|
@@ -541,6 +584,10 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
541
584
|
}, z.core.$strict>>;
|
|
542
585
|
multiplicityColumn: z.ZodOptional<z.ZodInt>;
|
|
543
586
|
mirrored: z.ZodOptional<z.ZodLiteral<true>>;
|
|
587
|
+
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
588
|
+
column: z.ZodInt;
|
|
589
|
+
equals: z.ZodString;
|
|
590
|
+
}, z.core.$strict>>>;
|
|
544
591
|
}, z.core.$strict>, z.ZodObject<{
|
|
545
592
|
format: z.ZodLiteral<"matrix-market">;
|
|
546
593
|
encoding: z.ZodEnum<{
|
|
@@ -633,6 +680,9 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
633
680
|
}, z.core.$strict>, z.ZodObject<{
|
|
634
681
|
format: z.ZodLiteral<"witvliet-synapses">;
|
|
635
682
|
encoding: z.ZodLiteral<"utf-8">;
|
|
683
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
684
|
+
format: z.ZodLiteral<"ogb">;
|
|
685
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
636
686
|
}, z.core.$strict>, z.ZodObject<{
|
|
637
687
|
format: z.ZodLiteral<"customer-points">;
|
|
638
688
|
encoding: z.ZodEnum<{
|
|
@@ -854,6 +904,23 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
854
904
|
pattern: z.ZodString;
|
|
855
905
|
}, z.core.$strict>]>;
|
|
856
906
|
}, z.core.$strict>>;
|
|
907
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
908
|
+
kind: z.ZodEnum<{
|
|
909
|
+
zip: "zip";
|
|
910
|
+
tar: "tar";
|
|
911
|
+
"tar.gz": "tar.gz";
|
|
912
|
+
"tar.bz2": "tar.bz2";
|
|
913
|
+
}>;
|
|
914
|
+
files: z.ZodUnion<readonly [z.ZodObject<{
|
|
915
|
+
path: z.ZodString;
|
|
916
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
917
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
918
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
919
|
+
pattern: z.ZodString;
|
|
920
|
+
}, z.core.$strict>]>;
|
|
921
|
+
inner: z.ZodOptional<z.ZodObject<{
|
|
922
|
+
kind: z.ZodLiteral<"gzip">;
|
|
923
|
+
}, z.core.$strict>>;
|
|
857
924
|
}, z.core.$strict>, z.ZodObject<{
|
|
858
925
|
kind: z.ZodEnum<{
|
|
859
926
|
xlsx: "xlsx";
|
|
@@ -894,6 +961,10 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
894
961
|
}, z.core.$strict>>;
|
|
895
962
|
multiplicityColumn: z.ZodOptional<z.ZodInt>;
|
|
896
963
|
mirrored: z.ZodOptional<z.ZodLiteral<true>>;
|
|
964
|
+
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
965
|
+
column: z.ZodInt;
|
|
966
|
+
equals: z.ZodString;
|
|
967
|
+
}, z.core.$strict>>>;
|
|
897
968
|
}, z.core.$strict>, z.ZodObject<{
|
|
898
969
|
format: z.ZodLiteral<"matrix-market">;
|
|
899
970
|
encoding: z.ZodEnum<{
|
|
@@ -986,6 +1057,9 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
986
1057
|
}, z.core.$strict>, z.ZodObject<{
|
|
987
1058
|
format: z.ZodLiteral<"witvliet-synapses">;
|
|
988
1059
|
encoding: z.ZodLiteral<"utf-8">;
|
|
1060
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1061
|
+
format: z.ZodLiteral<"ogb">;
|
|
1062
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
989
1063
|
}, z.core.$strict>, z.ZodObject<{
|
|
990
1064
|
format: z.ZodLiteral<"customer-points">;
|
|
991
1065
|
encoding: z.ZodEnum<{
|
|
@@ -1112,6 +1186,18 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1112
1186
|
kind: "xlsx";
|
|
1113
1187
|
sheets?: string | undefined;
|
|
1114
1188
|
} | undefined;
|
|
1189
|
+
} | {
|
|
1190
|
+
kind: "zip" | "tar" | "tar.gz" | "tar.bz2";
|
|
1191
|
+
files: {
|
|
1192
|
+
path: string;
|
|
1193
|
+
} | {
|
|
1194
|
+
extensions: string[];
|
|
1195
|
+
} | {
|
|
1196
|
+
pattern: string;
|
|
1197
|
+
};
|
|
1198
|
+
inner?: {
|
|
1199
|
+
kind: "gzip";
|
|
1200
|
+
} | undefined;
|
|
1115
1201
|
} | {
|
|
1116
1202
|
kind: "xlsx" | "xls" | "ods";
|
|
1117
1203
|
sheet: string;
|
|
@@ -1181,6 +1267,10 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1181
1267
|
} | undefined;
|
|
1182
1268
|
multiplicityColumn?: number | undefined;
|
|
1183
1269
|
mirrored?: true | undefined;
|
|
1270
|
+
where?: {
|
|
1271
|
+
column: number;
|
|
1272
|
+
equals: string;
|
|
1273
|
+
}[] | undefined;
|
|
1184
1274
|
} | {
|
|
1185
1275
|
format: "hgb";
|
|
1186
1276
|
encoding: "utf-8";
|
|
@@ -1256,6 +1346,9 @@ declare const EntrySchema: z.ZodObject<{
|
|
|
1256
1346
|
} | {
|
|
1257
1347
|
format: "witvliet-synapses";
|
|
1258
1348
|
encoding: "utf-8";
|
|
1349
|
+
} | {
|
|
1350
|
+
format: "ogb";
|
|
1351
|
+
encoding: "utf-8";
|
|
1259
1352
|
} | {
|
|
1260
1353
|
format: "customer-points";
|
|
1261
1354
|
encoding: "utf-8" | "latin1";
|
|
@@ -1538,6 +1631,23 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1538
1631
|
pattern: z.ZodString;
|
|
1539
1632
|
}, z.core.$strict>]>;
|
|
1540
1633
|
}, z.core.$strict>>;
|
|
1634
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1635
|
+
kind: z.ZodEnum<{
|
|
1636
|
+
zip: "zip";
|
|
1637
|
+
tar: "tar";
|
|
1638
|
+
"tar.gz": "tar.gz";
|
|
1639
|
+
"tar.bz2": "tar.bz2";
|
|
1640
|
+
}>;
|
|
1641
|
+
files: z.ZodUnion<readonly [z.ZodObject<{
|
|
1642
|
+
path: z.ZodString;
|
|
1643
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1644
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
1645
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1646
|
+
pattern: z.ZodString;
|
|
1647
|
+
}, z.core.$strict>]>;
|
|
1648
|
+
inner: z.ZodOptional<z.ZodObject<{
|
|
1649
|
+
kind: z.ZodLiteral<"gzip">;
|
|
1650
|
+
}, z.core.$strict>>;
|
|
1541
1651
|
}, z.core.$strict>, z.ZodObject<{
|
|
1542
1652
|
kind: z.ZodEnum<{
|
|
1543
1653
|
xlsx: "xlsx";
|
|
@@ -1578,6 +1688,10 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1578
1688
|
}, z.core.$strict>>;
|
|
1579
1689
|
multiplicityColumn: z.ZodOptional<z.ZodInt>;
|
|
1580
1690
|
mirrored: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1691
|
+
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1692
|
+
column: z.ZodInt;
|
|
1693
|
+
equals: z.ZodString;
|
|
1694
|
+
}, z.core.$strict>>>;
|
|
1581
1695
|
}, z.core.$strict>, z.ZodObject<{
|
|
1582
1696
|
format: z.ZodLiteral<"matrix-market">;
|
|
1583
1697
|
encoding: z.ZodEnum<{
|
|
@@ -1670,6 +1784,9 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1670
1784
|
}, z.core.$strict>, z.ZodObject<{
|
|
1671
1785
|
format: z.ZodLiteral<"witvliet-synapses">;
|
|
1672
1786
|
encoding: z.ZodLiteral<"utf-8">;
|
|
1787
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1788
|
+
format: z.ZodLiteral<"ogb">;
|
|
1789
|
+
encoding: z.ZodLiteral<"utf-8">;
|
|
1673
1790
|
}, z.core.$strict>, z.ZodObject<{
|
|
1674
1791
|
format: z.ZodLiteral<"customer-points">;
|
|
1675
1792
|
encoding: z.ZodEnum<{
|
|
@@ -1796,6 +1913,18 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1796
1913
|
kind: "xlsx";
|
|
1797
1914
|
sheets?: string | undefined;
|
|
1798
1915
|
} | undefined;
|
|
1916
|
+
} | {
|
|
1917
|
+
kind: "zip" | "tar" | "tar.gz" | "tar.bz2";
|
|
1918
|
+
files: {
|
|
1919
|
+
path: string;
|
|
1920
|
+
} | {
|
|
1921
|
+
extensions: string[];
|
|
1922
|
+
} | {
|
|
1923
|
+
pattern: string;
|
|
1924
|
+
};
|
|
1925
|
+
inner?: {
|
|
1926
|
+
kind: "gzip";
|
|
1927
|
+
} | undefined;
|
|
1799
1928
|
} | {
|
|
1800
1929
|
kind: "xlsx" | "xls" | "ods";
|
|
1801
1930
|
sheet: string;
|
|
@@ -1865,6 +1994,10 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1865
1994
|
} | undefined;
|
|
1866
1995
|
multiplicityColumn?: number | undefined;
|
|
1867
1996
|
mirrored?: true | undefined;
|
|
1997
|
+
where?: {
|
|
1998
|
+
column: number;
|
|
1999
|
+
equals: string;
|
|
2000
|
+
}[] | undefined;
|
|
1868
2001
|
} | {
|
|
1869
2002
|
format: "hgb";
|
|
1870
2003
|
encoding: "utf-8";
|
|
@@ -1940,6 +2073,9 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
1940
2073
|
} | {
|
|
1941
2074
|
format: "witvliet-synapses";
|
|
1942
2075
|
encoding: "utf-8";
|
|
2076
|
+
} | {
|
|
2077
|
+
format: "ogb";
|
|
2078
|
+
encoding: "utf-8";
|
|
1943
2079
|
} | {
|
|
1944
2080
|
format: "customer-points";
|
|
1945
2081
|
encoding: "utf-8" | "latin1";
|
|
@@ -2055,6 +2191,18 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
2055
2191
|
kind: "xlsx";
|
|
2056
2192
|
sheets?: string | undefined;
|
|
2057
2193
|
} | undefined;
|
|
2194
|
+
} | {
|
|
2195
|
+
kind: "zip" | "tar" | "tar.gz" | "tar.bz2";
|
|
2196
|
+
files: {
|
|
2197
|
+
path: string;
|
|
2198
|
+
} | {
|
|
2199
|
+
extensions: string[];
|
|
2200
|
+
} | {
|
|
2201
|
+
pattern: string;
|
|
2202
|
+
};
|
|
2203
|
+
inner?: {
|
|
2204
|
+
kind: "gzip";
|
|
2205
|
+
} | undefined;
|
|
2058
2206
|
} | {
|
|
2059
2207
|
kind: "xlsx" | "xls" | "ods";
|
|
2060
2208
|
sheet: string;
|
|
@@ -2124,6 +2272,10 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
2124
2272
|
} | undefined;
|
|
2125
2273
|
multiplicityColumn?: number | undefined;
|
|
2126
2274
|
mirrored?: true | undefined;
|
|
2275
|
+
where?: {
|
|
2276
|
+
column: number;
|
|
2277
|
+
equals: string;
|
|
2278
|
+
}[] | undefined;
|
|
2127
2279
|
} | {
|
|
2128
2280
|
format: "hgb";
|
|
2129
2281
|
encoding: "utf-8";
|
|
@@ -2199,6 +2351,9 @@ declare const CatalogueIndexSchema: z.ZodObject<{
|
|
|
2199
2351
|
} | {
|
|
2200
2352
|
format: "witvliet-synapses";
|
|
2201
2353
|
encoding: "utf-8";
|
|
2354
|
+
} | {
|
|
2355
|
+
format: "ogb";
|
|
2356
|
+
encoding: "utf-8";
|
|
2202
2357
|
} | {
|
|
2203
2358
|
format: "customer-points";
|
|
2204
2359
|
encoding: "utf-8" | "latin1";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CrosswalkReference, A as Catalogue, B as ManifestSchema, C as JsonScalarSchema, Ct as parseEntry, D as GraphNodeSchema, E as GraphNode, F as NamespaceNode, G as ArchiveMember, H as parseManifest, I as createCatalogue, J as Citation, K as ArchiveMemberSchema, L as Lineage, M as CatalogueIndexSchema, N as Dataset, O as GraphV1, P as DatasetQuery, Q as ColumnNameSchema, R as LineageSchema, S as JsonScalar, St as WaybackTimestampSchema, T as GraphEdgeSchema, U as AliasSchema, V as SemVerSchema, W as Archive, X as CollectionArchive, Y as CitationSchema, Z as CollectionArchiveSchema, _ as TasksV1, _t as Snapshot, a as CategoryTargets, at as IdSchema, b as Instance, bt as SourceSchema, c as countTarget, ct as Namespace, d as getCollectionTarget, dt as ParserSchema, et as CrosswalkReferenceSchema, f as getTarget, ft as PartsArchive, g as TaskSchema, gt as RelativePathSchema, h as Task, ht as RecipeSchema, i as CategoryTarget, it as HttpUrlSchema, j as CatalogueIndex, k as GraphV1Schema, l as countedKeys, lt as NamespaceSchema, m as listCategories, mt as Recipe, n as CategoryId, nt as Entry, o as CollectionTarget, ot as Licence, p as kindOf, pt as RESERVED_META_KEYS, q as ArchiveSchema, r as CategoryIdSchema, rt as EntrySchema, s as CountedKey, st as LicenceSchema, t as Category, tt as DocumentArchive, u as getCategory, ut as Parser, v as TasksV1Schema, vt as SnapshotSchema, w as GraphEdge, wt as waybackUrl, x as collectionOf, xt as SubjectSchema, y as Collection, yt as Source, z as Manifest } from "./categories-
|
|
1
|
+
import { $ as CrosswalkReference, A as Catalogue, B as ManifestSchema, C as JsonScalarSchema, Ct as parseEntry, D as GraphNodeSchema, E as GraphNode, F as NamespaceNode, G as ArchiveMember, H as parseManifest, I as createCatalogue, J as Citation, K as ArchiveMemberSchema, L as Lineage, M as CatalogueIndexSchema, N as Dataset, O as GraphV1, P as DatasetQuery, Q as ColumnNameSchema, R as LineageSchema, S as JsonScalar, St as WaybackTimestampSchema, T as GraphEdgeSchema, U as AliasSchema, V as SemVerSchema, W as Archive, X as CollectionArchive, Y as CitationSchema, Z as CollectionArchiveSchema, _ as TasksV1, _t as Snapshot, a as CategoryTargets, at as IdSchema, b as Instance, bt as SourceSchema, c as countTarget, ct as Namespace, d as getCollectionTarget, dt as ParserSchema, et as CrosswalkReferenceSchema, f as getTarget, ft as PartsArchive, g as TaskSchema, gt as RelativePathSchema, h as Task, ht as RecipeSchema, i as CategoryTarget, it as HttpUrlSchema, j as CatalogueIndex, k as GraphV1Schema, l as countedKeys, lt as NamespaceSchema, m as listCategories, mt as Recipe, n as CategoryId, nt as Entry, o as CollectionTarget, ot as Licence, p as kindOf, pt as RESERVED_META_KEYS, q as ArchiveSchema, r as CategoryIdSchema, rt as EntrySchema, s as CountedKey, st as LicenceSchema, t as Category, tt as DocumentArchive, u as getCategory, ut as Parser, v as TasksV1Schema, vt as SnapshotSchema, w as GraphEdge, wt as waybackUrl, x as collectionOf, xt as SubjectSchema, y as Collection, yt as Source, z as Manifest } from "./categories-DijttH_M.js";
|
|
2
2
|
import { Crosswalk } from "crossmap";
|
|
3
3
|
//#region src/errors.d.ts
|
|
4
4
|
/** The root of this package's error taxonomy: every error keepset throws is a `KeepsetError`, so callers can catch the family with one check. */
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ArchiveError, A as WaybackTimestampSchema, B as countedKeys, C as ParserSchema, D as SnapshotSchema, E as RelativePathSchema, F as groupsOf, G as listCategories, H as getCollectionTarget, I as namesOf, J as collectionOf, K as TaskSchema, M as toIssues, N as waybackUrl, O as SourceSchema, P as NAME_SEPARATOR, Q as JsonScalarSchema, R as CategoryIdSchema, S as NamespaceSchema, T as RecipeSchema, U as getTarget, V as getCategory, W as kindOf, X as GraphNodeSchema, Y as GraphEdgeSchema, Z as GraphV1Schema, _ as CrosswalkReferenceSchema, a as CatalogueIndexSchema, at as RecipeError, b as IdSchema, c as ManifestSchema, d as AliasSchema, et as CatalogueSyntaxError, f as ArchiveMemberSchema, g as ColumnNameSchema, h as CollectionArchiveSchema, i as listNamespaces, it as NativeParseError, j as parseEntry, k as SubjectSchema, l as SemVerSchema, m as CitationSchema, n as getManifest, nt as DatasetNotFoundError, o as createCatalogue, ot as UnknownCategoryError, p as ArchiveSchema, q as TasksV1Schema, r as listDatasets, rt as KeepsetError, s as LineageSchema, t as getDataset, tt as DatasetAmbiguousError, u as parseManifest, v as EntrySchema, w as RESERVED_META_KEYS, x as LicenceSchema, y as HttpUrlSchema, z as countTarget } from "./bundled-
|
|
1
|
+
import { $ as ArchiveError, A as WaybackTimestampSchema, B as countedKeys, C as ParserSchema, D as SnapshotSchema, E as RelativePathSchema, F as groupsOf, G as listCategories, H as getCollectionTarget, I as namesOf, J as collectionOf, K as TaskSchema, M as toIssues, N as waybackUrl, O as SourceSchema, P as NAME_SEPARATOR, Q as JsonScalarSchema, R as CategoryIdSchema, S as NamespaceSchema, T as RecipeSchema, U as getTarget, V as getCategory, W as kindOf, X as GraphNodeSchema, Y as GraphEdgeSchema, Z as GraphV1Schema, _ as CrosswalkReferenceSchema, a as CatalogueIndexSchema, at as RecipeError, b as IdSchema, c as ManifestSchema, d as AliasSchema, et as CatalogueSyntaxError, f as ArchiveMemberSchema, g as ColumnNameSchema, h as CollectionArchiveSchema, i as listNamespaces, it as NativeParseError, j as parseEntry, k as SubjectSchema, l as SemVerSchema, m as CitationSchema, n as getManifest, nt as DatasetNotFoundError, o as createCatalogue, ot as UnknownCategoryError, p as ArchiveSchema, q as TasksV1Schema, r as listDatasets, rt as KeepsetError, s as LineageSchema, t as getDataset, tt as DatasetAmbiguousError, u as parseManifest, v as EntrySchema, w as RESERVED_META_KEYS, x as LicenceSchema, y as HttpUrlSchema, z as countTarget } from "./bundled-6dYCPVD-.js";
|
|
2
2
|
import { validateCrosswalk } from "crossmap";
|
|
3
3
|
//#region src/serialise.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as Dataset, _t as Snapshot, i as CategoryTarget, nt as Entry, o as CollectionTarget, yt as Source } from "../categories-
|
|
1
|
+
import { N as Dataset, _t as Snapshot, i as CategoryTarget, nt as Entry, o as CollectionTarget, yt as Source } from "../categories-DijttH_M.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: {
|
|
@@ -26,7 +26,7 @@ export interface Provenance {
|
|
|
26
26
|
readonly byteLength: number;
|
|
27
27
|
/** The archive member a document was read from. */
|
|
28
28
|
readonly member?: string;
|
|
29
|
-
/** The archive members a collection, or a document read from
|
|
29
|
+
/** The archive members a collection, or a document read from several files, was read from, in the order they were read. */
|
|
30
30
|
readonly members?: readonly string[];
|
|
31
31
|
}
|
|
32
32
|
/** A fetched dataset: the resolved category target (one document, or for a recipe that selects archive members a collection of them), the provenance of the bytes it came from, and any warnings, such as a count that differs from the one the entry records. */
|