ochre-sdk 1.0.76 → 1.0.78
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/constants.d.mts +13 -14
- package/dist/fetchers/gallery.d.mts +2 -3
- package/dist/fetchers/gallery.mjs +2 -1
- package/dist/fetchers/item-children.d.mts +3 -4
- package/dist/fetchers/item-children.mjs +2 -1
- package/dist/fetchers/item-links.d.mts +2 -3
- package/dist/fetchers/item-links.mjs +2 -1
- package/dist/fetchers/item-ocr-data.d.mts +2 -3
- package/dist/fetchers/item.d.mts +7 -8
- package/dist/fetchers/item.mjs +2 -1
- package/dist/fetchers/set/items.d.mts +2 -3
- package/dist/fetchers/set/items.mjs +2 -1
- package/dist/fetchers/set/property-values.d.mts +2 -3
- package/dist/fetchers/set/property-values.mjs +56 -49
- package/dist/fetchers/website-metadata.d.mts +2 -3
- package/dist/fetchers/website.d.mts +2 -3
- package/dist/getters.d.mts +40 -41
- package/dist/getters.mjs +6 -31
- package/dist/helpers.d.mts +3 -4
- package/dist/parsers/helpers.d.mts +16 -17
- package/dist/parsers/index.d.mts +19 -19
- package/dist/parsers/index.mjs +65 -48
- package/dist/parsers/mdx.d.mts +3 -4
- package/dist/parsers/multilingual.d.mts +9 -10
- package/dist/parsers/string.d.mts +5 -6
- package/dist/parsers/string.mjs +124 -146
- package/dist/parsers/website/index.d.mts +4 -5
- package/dist/parsers/website/index.mjs +598 -637
- package/dist/parsers/website/reader.d.mts +3 -4
- package/dist/query.d.mts +3 -4
- package/dist/schemas.d.mts +9 -10
- package/dist/types/index.d.mts +118 -119
- package/dist/types/website.d.mts +36 -38
- package/dist/utilities.d.mts +9 -10
- package/dist/utilities.mjs +28 -25
- package/dist/xml/dates.d.mts +13 -0
- package/dist/xml/dates.mjs +49 -0
- package/dist/xml/metadata.d.mts +3 -4
- package/dist/xml/schemas.d.mts +8 -9
- package/dist/xml/schemas.mjs +20 -27
- package/dist/xml/types.d.mts +129 -131
- package/package.json +13 -12
package/dist/xml/types.d.mts
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
//#region src/xml/types.d.ts
|
|
2
|
-
type XMLItemCategory = "tree" | "bibliography" | "spatialUnit" | "concept" | "period" | "person" | "propertyVariable" | "variable" | "propertyValue" | "value" | "text" | "resource" | "set";
|
|
3
|
-
type XMLHeadingItemCategory = Exclude<XMLItemCategory, "tree" | "bibliography" | "spatialUnit" | "concept" | "period">;
|
|
4
|
-
type XMLRecursiveItemCategory = Exclude<XMLItemCategory, "tree" | "person" | "propertyVariable" | "propertyValue" | "set">;
|
|
2
|
+
export type XMLItemCategory = "tree" | "bibliography" | "spatialUnit" | "concept" | "period" | "person" | "propertyVariable" | "variable" | "propertyValue" | "value" | "text" | "resource" | "set";
|
|
3
|
+
export type XMLHeadingItemCategory = Exclude<XMLItemCategory, "tree" | "bibliography" | "spatialUnit" | "concept" | "period">;
|
|
4
|
+
export type XMLRecursiveItemCategory = Exclude<XMLItemCategory, "tree" | "person" | "propertyVariable" | "propertyValue" | "set">;
|
|
5
5
|
/**
|
|
6
6
|
* Rich text envelope shared by `<string>` and `<content>` nodes, carrying the
|
|
7
7
|
* inline links, presentation properties and annotation identifier that turn a
|
|
8
8
|
* span of text into an annotation.
|
|
9
9
|
*/
|
|
10
|
-
type XMLRichTextEnvelope = {
|
|
10
|
+
export type XMLRichTextEnvelope = {
|
|
11
11
|
links?: XMLLink;
|
|
12
12
|
properties?: {
|
|
13
13
|
property: Array<XMLProperty>;
|
|
14
14
|
};
|
|
15
15
|
annotation?: string;
|
|
16
16
|
};
|
|
17
|
-
type XMLString = XMLRichTextEnvelope & {
|
|
17
|
+
export type XMLString = XMLRichTextEnvelope & {
|
|
18
18
|
payload?: string;
|
|
19
19
|
rend?: string;
|
|
20
20
|
whitespace?: string;
|
|
21
21
|
string?: Array<XMLString>;
|
|
22
22
|
};
|
|
23
|
-
type XMLContent = {
|
|
23
|
+
export type XMLContent = {
|
|
24
24
|
content: Array<XMLRichTextEnvelope & {
|
|
25
25
|
string: Array<XMLString>;
|
|
26
26
|
lang: string;
|
|
27
27
|
title?: string;
|
|
28
28
|
}>;
|
|
29
29
|
};
|
|
30
|
-
type
|
|
31
|
-
type XMLBoolean = boolean;
|
|
32
|
-
type XMLIdentification = {
|
|
30
|
+
export type XMLIdentification = {
|
|
33
31
|
label: XMLContent | XMLString;
|
|
34
32
|
abbreviation?: XMLContent | XMLString;
|
|
35
33
|
code?: XMLString | string;
|
|
36
34
|
email?: XMLString | string;
|
|
37
35
|
website?: XMLString | string;
|
|
38
36
|
};
|
|
39
|
-
type XMLMetadata = {
|
|
37
|
+
export type XMLMetadata = {
|
|
40
38
|
dataset: XMLString;
|
|
41
39
|
description: XMLString;
|
|
42
40
|
publisher: XMLString | Array<XMLString>;
|
|
@@ -66,32 +64,32 @@ type XMLMetadata = {
|
|
|
66
64
|
identification: XMLIdentification;
|
|
67
65
|
category: XMLItemCategory;
|
|
68
66
|
type: string;
|
|
69
|
-
maxLength?:
|
|
67
|
+
maxLength?: number;
|
|
70
68
|
};
|
|
71
69
|
};
|
|
72
|
-
type XMLLicense = XMLString & {
|
|
70
|
+
export type XMLLicense = XMLString & {
|
|
73
71
|
target?: string;
|
|
74
72
|
};
|
|
75
|
-
type XMLContextValue = {
|
|
73
|
+
export type XMLContextValue = {
|
|
76
74
|
uuid?: string;
|
|
77
75
|
publicationDateTime?: Date;
|
|
78
|
-
n:
|
|
76
|
+
n: number;
|
|
79
77
|
payload: string;
|
|
80
78
|
};
|
|
81
|
-
type XMLContextItem = {
|
|
79
|
+
export type XMLContextItem = {
|
|
82
80
|
project: XMLContextValue;
|
|
83
81
|
tree: Array<XMLContextValue>;
|
|
84
82
|
displayPath: string;
|
|
85
83
|
} & Partial<Record<XMLRecursiveItemCategory | "heading" | "propertyVariable" | "variable" | "propertyValue" | "value", Array<XMLContextValue>>>;
|
|
86
|
-
type XMLEmptyContext = {
|
|
84
|
+
export type XMLEmptyContext = {
|
|
87
85
|
payload: string;
|
|
88
86
|
};
|
|
89
|
-
type XMLContextGroup = {
|
|
87
|
+
export type XMLContextGroup = {
|
|
90
88
|
context: Array<XMLContextItem | XMLEmptyContext>;
|
|
91
89
|
displayPath: string;
|
|
92
90
|
};
|
|
93
|
-
type XMLContext = Array<XMLContextGroup | XMLEmptyContext>;
|
|
94
|
-
type XMLEvent = {
|
|
91
|
+
export type XMLContext = Array<XMLContextGroup | XMLEmptyContext>;
|
|
92
|
+
export type XMLEvent = {
|
|
95
93
|
dateTime?: Date;
|
|
96
94
|
endDateTime?: Date;
|
|
97
95
|
agent?: XMLContent & {
|
|
@@ -109,7 +107,7 @@ type XMLEvent = {
|
|
|
109
107
|
category?: XMLItemCategory;
|
|
110
108
|
};
|
|
111
109
|
};
|
|
112
|
-
type XMLCoordinatesSource = {
|
|
110
|
+
export type XMLCoordinatesSource = {
|
|
113
111
|
context: "self";
|
|
114
112
|
label: XMLContent & {
|
|
115
113
|
uuid: string;
|
|
@@ -137,38 +135,38 @@ type XMLCoordinatesSource = {
|
|
|
137
135
|
};
|
|
138
136
|
};
|
|
139
137
|
};
|
|
140
|
-
type XMLCoordinate = {
|
|
138
|
+
export type XMLCoordinate = {
|
|
141
139
|
type: "point";
|
|
142
|
-
latitude:
|
|
143
|
-
longitude:
|
|
144
|
-
altitude?:
|
|
140
|
+
latitude: number;
|
|
141
|
+
longitude: number;
|
|
142
|
+
altitude?: number;
|
|
145
143
|
source?: XMLCoordinatesSource;
|
|
146
144
|
} | {
|
|
147
145
|
type: "plane";
|
|
148
146
|
minimum: {
|
|
149
|
-
latitude:
|
|
150
|
-
longitude:
|
|
147
|
+
latitude: number;
|
|
148
|
+
longitude: number;
|
|
151
149
|
};
|
|
152
150
|
maximum: {
|
|
153
|
-
latitude:
|
|
154
|
-
longitude:
|
|
151
|
+
latitude: number;
|
|
152
|
+
longitude: number;
|
|
155
153
|
};
|
|
156
154
|
source?: XMLCoordinatesSource;
|
|
157
155
|
};
|
|
158
|
-
type XMLCoordinates = {
|
|
156
|
+
export type XMLCoordinates = {
|
|
159
157
|
coord: Array<XMLCoordinate>;
|
|
160
158
|
};
|
|
161
|
-
type XMLImage = {
|
|
159
|
+
export type XMLImage = {
|
|
162
160
|
publicationDateTime?: Date;
|
|
163
161
|
identification?: XMLIdentification;
|
|
164
162
|
href?: string;
|
|
165
163
|
htmlImgSrcPrefix?: string;
|
|
166
|
-
height?:
|
|
167
|
-
width?:
|
|
168
|
-
fileSize?:
|
|
164
|
+
height?: number;
|
|
165
|
+
width?: number;
|
|
166
|
+
fileSize?: number;
|
|
169
167
|
payload?: string;
|
|
170
168
|
};
|
|
171
|
-
type XMLImageMapArea = {
|
|
169
|
+
export type XMLImageMapArea = {
|
|
172
170
|
uuid: string;
|
|
173
171
|
publicationDateTime?: Date;
|
|
174
172
|
type: string;
|
|
@@ -177,28 +175,28 @@ type XMLImageMapArea = {
|
|
|
177
175
|
shape: "rect" | "circle" | "poly" | "point";
|
|
178
176
|
coords: string;
|
|
179
177
|
};
|
|
180
|
-
type XMLImageMap = {
|
|
178
|
+
export type XMLImageMap = {
|
|
181
179
|
area: Array<XMLImageMapArea>;
|
|
182
|
-
width:
|
|
183
|
-
height:
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
184
182
|
};
|
|
185
|
-
type XMLNote = Partial<XMLContent> & XMLString & {
|
|
186
|
-
noteNo?:
|
|
183
|
+
export type XMLNote = Partial<XMLContent> & XMLString & {
|
|
184
|
+
noteNo?: number;
|
|
187
185
|
title?: string;
|
|
188
186
|
authors?: {
|
|
189
187
|
author: Array<XMLPerson>;
|
|
190
188
|
};
|
|
191
189
|
};
|
|
192
|
-
type XMLPropertyRelation = "related" | "inverse";
|
|
193
|
-
type XMLProperty = {
|
|
190
|
+
export type XMLPropertyRelation = "related" | "inverse";
|
|
191
|
+
export type XMLProperty = {
|
|
194
192
|
label: (XMLContent | XMLString) & {
|
|
195
193
|
uuid: string;
|
|
196
194
|
publicationDateTime?: Date;
|
|
197
195
|
relation?: XMLPropertyRelation;
|
|
198
196
|
};
|
|
199
197
|
value?: Array<Partial<XMLContent> & {
|
|
200
|
-
i?:
|
|
201
|
-
inherited?:
|
|
198
|
+
i?: number;
|
|
199
|
+
inherited?: boolean;
|
|
202
200
|
uuid?: string;
|
|
203
201
|
publicationDateTime?: Date;
|
|
204
202
|
dataType?: string;
|
|
@@ -206,9 +204,9 @@ type XMLProperty = {
|
|
|
206
204
|
type?: string;
|
|
207
205
|
slug?: string;
|
|
208
206
|
unit?: string;
|
|
209
|
-
height?:
|
|
210
|
-
width?:
|
|
211
|
-
fileSize?:
|
|
207
|
+
height?: number;
|
|
208
|
+
width?: number;
|
|
209
|
+
fileSize?: number;
|
|
212
210
|
href?: string;
|
|
213
211
|
rawValue?: string;
|
|
214
212
|
isUncertain?: "true";
|
|
@@ -217,15 +215,15 @@ type XMLProperty = {
|
|
|
217
215
|
comment?: XMLContent;
|
|
218
216
|
property?: Array<XMLProperty>;
|
|
219
217
|
};
|
|
220
|
-
type XMLSimplifiedProperty = {
|
|
218
|
+
export type XMLSimplifiedProperty = {
|
|
221
219
|
label: (XMLContent | XMLString) & {
|
|
222
220
|
uuid: string;
|
|
223
221
|
publicationDateTime?: Date;
|
|
224
222
|
relation?: XMLPropertyRelation;
|
|
225
223
|
};
|
|
226
224
|
value?: Array<Partial<XMLContent> & {
|
|
227
|
-
i?:
|
|
228
|
-
inherited?:
|
|
225
|
+
i?: number;
|
|
226
|
+
inherited?: boolean;
|
|
229
227
|
uuid?: string;
|
|
230
228
|
publicationDateTime?: Date;
|
|
231
229
|
dataType?: string;
|
|
@@ -233,9 +231,9 @@ type XMLSimplifiedProperty = {
|
|
|
233
231
|
type?: string;
|
|
234
232
|
slug?: string;
|
|
235
233
|
unit?: string;
|
|
236
|
-
height?:
|
|
237
|
-
width?:
|
|
238
|
-
fileSize?:
|
|
234
|
+
height?: number;
|
|
235
|
+
width?: number;
|
|
236
|
+
fileSize?: number;
|
|
239
237
|
href?: string;
|
|
240
238
|
rawValue?: string;
|
|
241
239
|
isUncertain?: "true";
|
|
@@ -244,7 +242,7 @@ type XMLSimplifiedProperty = {
|
|
|
244
242
|
comment?: XMLContent;
|
|
245
243
|
property?: Array<XMLSimplifiedProperty>;
|
|
246
244
|
};
|
|
247
|
-
type XMLBaseItem = {
|
|
245
|
+
export type XMLBaseItem = {
|
|
248
246
|
uuid: string;
|
|
249
247
|
publicationDateTime?: Date;
|
|
250
248
|
date?: Date | XMLString;
|
|
@@ -263,7 +261,7 @@ type XMLBaseItem = {
|
|
|
263
261
|
event: Array<XMLEvent>;
|
|
264
262
|
};
|
|
265
263
|
};
|
|
266
|
-
type XMLBibliography = Partial<XMLBaseItem> & {
|
|
264
|
+
export type XMLBibliography = Partial<XMLBaseItem> & {
|
|
267
265
|
type?: string;
|
|
268
266
|
zoteroId?: string;
|
|
269
267
|
sourceDocument?: {
|
|
@@ -282,9 +280,9 @@ type XMLBibliography = Partial<XMLBaseItem> & {
|
|
|
282
280
|
};
|
|
283
281
|
};
|
|
284
282
|
startDate?: {
|
|
285
|
-
month?:
|
|
286
|
-
year?:
|
|
287
|
-
day?:
|
|
283
|
+
month?: number;
|
|
284
|
+
year?: number;
|
|
285
|
+
day?: number;
|
|
288
286
|
};
|
|
289
287
|
};
|
|
290
288
|
entryInfo?: {
|
|
@@ -318,16 +316,16 @@ type XMLBibliography = Partial<XMLBaseItem> & {
|
|
|
318
316
|
};
|
|
319
317
|
bibliography?: Array<XMLBibliography>;
|
|
320
318
|
};
|
|
321
|
-
type XMLLinkedBaseItem = Partial<Omit<XMLBaseItem, "uuid">> & {
|
|
319
|
+
export type XMLLinkedBaseItem = Partial<Omit<XMLBaseItem, "uuid">> & {
|
|
322
320
|
uuid: string;
|
|
323
321
|
};
|
|
324
|
-
type XMLLinkedTree = XMLLinkedBaseItem & {
|
|
322
|
+
export type XMLLinkedTree = XMLLinkedBaseItem & {
|
|
325
323
|
type?: string;
|
|
326
324
|
};
|
|
327
|
-
type XMLLinkedSet = XMLLinkedBaseItem & {
|
|
325
|
+
export type XMLLinkedSet = XMLLinkedBaseItem & {
|
|
328
326
|
type?: string;
|
|
329
327
|
};
|
|
330
|
-
type XMLLinkedBibliography = XMLLinkedBaseItem & {
|
|
328
|
+
export type XMLLinkedBibliography = XMLLinkedBaseItem & {
|
|
331
329
|
type?: string;
|
|
332
330
|
zoteroId?: string;
|
|
333
331
|
sourceDocument?: XMLBibliography["sourceDocument"];
|
|
@@ -341,9 +339,9 @@ type XMLLinkedBibliography = XMLLinkedBaseItem & {
|
|
|
341
339
|
};
|
|
342
340
|
};
|
|
343
341
|
startDate?: {
|
|
344
|
-
month?:
|
|
345
|
-
year?:
|
|
346
|
-
day?:
|
|
342
|
+
month?: number;
|
|
343
|
+
year?: number;
|
|
344
|
+
day?: number;
|
|
347
345
|
};
|
|
348
346
|
};
|
|
349
347
|
entryInfo?: XMLBibliography["entryInfo"];
|
|
@@ -362,52 +360,52 @@ type XMLLinkedBibliography = XMLLinkedBaseItem & {
|
|
|
362
360
|
property: Array<XMLProperty>;
|
|
363
361
|
};
|
|
364
362
|
};
|
|
365
|
-
type XMLLinkedConcept = XMLLinkedBaseItem & {
|
|
363
|
+
export type XMLLinkedConcept = XMLLinkedBaseItem & {
|
|
366
364
|
image?: XMLImage;
|
|
367
365
|
coordinates?: XMLCoordinates;
|
|
368
366
|
};
|
|
369
|
-
type XMLLinkedSpatialUnit = XMLLinkedBaseItem & {
|
|
367
|
+
export type XMLLinkedSpatialUnit = XMLLinkedBaseItem & {
|
|
370
368
|
image?: XMLImage;
|
|
371
369
|
coordinates?: XMLCoordinates;
|
|
372
370
|
};
|
|
373
|
-
type XMLLinkedPeriod = XMLLinkedBaseItem & {
|
|
371
|
+
export type XMLLinkedPeriod = XMLLinkedBaseItem & {
|
|
374
372
|
type?: string;
|
|
375
373
|
coordinates?: XMLCoordinates;
|
|
376
374
|
};
|
|
377
|
-
type XMLLinkedPerson = XMLLinkedBaseItem & {
|
|
375
|
+
export type XMLLinkedPerson = XMLLinkedBaseItem & {
|
|
378
376
|
type?: string;
|
|
379
377
|
coordinates?: XMLCoordinates;
|
|
380
378
|
};
|
|
381
|
-
type XMLLinkedPropertyVariable = XMLLinkedBaseItem & {
|
|
379
|
+
export type XMLLinkedPropertyVariable = XMLLinkedBaseItem & {
|
|
382
380
|
type?: string;
|
|
383
381
|
coordinates?: XMLCoordinates;
|
|
384
382
|
};
|
|
385
|
-
type XMLLinkedPropertyValue = XMLLinkedBaseItem & {
|
|
383
|
+
export type XMLLinkedPropertyValue = XMLLinkedBaseItem & {
|
|
386
384
|
coordinates?: XMLCoordinates;
|
|
387
385
|
};
|
|
388
|
-
type XMLLinkedResource = XMLLinkedBaseItem & {
|
|
386
|
+
export type XMLLinkedResource = XMLLinkedBaseItem & {
|
|
389
387
|
type?: string;
|
|
390
388
|
date?: Date | XMLString;
|
|
391
389
|
href?: string;
|
|
392
390
|
fileFormat?: string;
|
|
393
|
-
fileSize?:
|
|
391
|
+
fileSize?: number;
|
|
394
392
|
rend?: "inline";
|
|
395
|
-
isPrimary?:
|
|
396
|
-
height?:
|
|
397
|
-
width?:
|
|
393
|
+
isPrimary?: boolean;
|
|
394
|
+
height?: number;
|
|
395
|
+
width?: number;
|
|
398
396
|
image?: XMLImage;
|
|
399
397
|
coordinates?: XMLCoordinates;
|
|
400
398
|
};
|
|
401
|
-
type XMLLinkedText = XMLLinkedBaseItem & {
|
|
399
|
+
export type XMLLinkedText = XMLLinkedBaseItem & {
|
|
402
400
|
type?: string;
|
|
403
401
|
text?: string;
|
|
404
402
|
language?: string;
|
|
405
403
|
image?: XMLImage;
|
|
406
404
|
coordinates?: XMLCoordinates;
|
|
407
405
|
};
|
|
408
|
-
type XMLDictionaryUnit = XMLLinkedBaseItem;
|
|
409
|
-
type XMLInterpretation = {
|
|
410
|
-
interpretationNo:
|
|
406
|
+
export type XMLDictionaryUnit = XMLLinkedBaseItem;
|
|
407
|
+
export type XMLInterpretation = {
|
|
408
|
+
interpretationNo: number;
|
|
411
409
|
date?: Date;
|
|
412
410
|
interpreters?: {
|
|
413
411
|
interpreter: Array<XMLPerson>;
|
|
@@ -427,7 +425,7 @@ type XMLInterpretation = {
|
|
|
427
425
|
bibliography: Array<XMLBibliography>;
|
|
428
426
|
};
|
|
429
427
|
};
|
|
430
|
-
type XMLConcept = XMLBaseItem & {
|
|
428
|
+
export type XMLConcept = XMLBaseItem & {
|
|
431
429
|
status?: "live";
|
|
432
430
|
image?: XMLImage;
|
|
433
431
|
interpretations?: {
|
|
@@ -440,8 +438,8 @@ type XMLConcept = XMLBaseItem & {
|
|
|
440
438
|
};
|
|
441
439
|
concept?: Array<XMLConcept>;
|
|
442
440
|
};
|
|
443
|
-
type XMLObservation = {
|
|
444
|
-
observationNo:
|
|
441
|
+
export type XMLObservation = {
|
|
442
|
+
observationNo: number;
|
|
445
443
|
date?: Date;
|
|
446
444
|
observers?: {
|
|
447
445
|
observer: Array<XMLPerson>;
|
|
@@ -461,7 +459,7 @@ type XMLObservation = {
|
|
|
461
459
|
bibliography: Array<XMLBibliography>;
|
|
462
460
|
};
|
|
463
461
|
};
|
|
464
|
-
type XMLSpatialUnit = XMLBaseItem & {
|
|
462
|
+
export type XMLSpatialUnit = XMLBaseItem & {
|
|
465
463
|
image?: XMLImage;
|
|
466
464
|
coordinates?: XMLCoordinates;
|
|
467
465
|
mapData?: {
|
|
@@ -469,7 +467,7 @@ type XMLSpatialUnit = XMLBaseItem & {
|
|
|
469
467
|
multiPolygon: {
|
|
470
468
|
payload: string;
|
|
471
469
|
};
|
|
472
|
-
EPSG:
|
|
470
|
+
EPSG: number;
|
|
473
471
|
};
|
|
474
472
|
};
|
|
475
473
|
observations?: {
|
|
@@ -484,7 +482,7 @@ type XMLSpatialUnit = XMLBaseItem & {
|
|
|
484
482
|
};
|
|
485
483
|
spatialUnit?: Array<XMLSpatialUnit>;
|
|
486
484
|
};
|
|
487
|
-
type XMLPeriod = XMLBaseItem & {
|
|
485
|
+
export type XMLPeriod = XMLBaseItem & {
|
|
488
486
|
type?: string;
|
|
489
487
|
coordinates?: XMLCoordinates;
|
|
490
488
|
links?: XMLDataItem;
|
|
@@ -500,7 +498,7 @@ type XMLPeriod = XMLBaseItem & {
|
|
|
500
498
|
};
|
|
501
499
|
period?: Array<XMLPeriod>;
|
|
502
500
|
};
|
|
503
|
-
type XMLPerson = XMLBaseItem & Partial<XMLContent> & {
|
|
501
|
+
export type XMLPerson = XMLBaseItem & Partial<XMLContent> & {
|
|
504
502
|
type?: string;
|
|
505
503
|
image?: XMLImage;
|
|
506
504
|
address?: {
|
|
@@ -525,7 +523,7 @@ type XMLPerson = XMLBaseItem & Partial<XMLContent> & {
|
|
|
525
523
|
bibliography: Array<XMLBibliography>;
|
|
526
524
|
};
|
|
527
525
|
};
|
|
528
|
-
type XMLPropertyVariable = XMLBaseItem & {
|
|
526
|
+
export type XMLPropertyVariable = XMLBaseItem & {
|
|
529
527
|
type?: string;
|
|
530
528
|
coordinates?: XMLCoordinates;
|
|
531
529
|
links?: XMLLink;
|
|
@@ -537,7 +535,7 @@ type XMLPropertyVariable = XMLBaseItem & {
|
|
|
537
535
|
bibliography: Array<XMLBibliography>;
|
|
538
536
|
};
|
|
539
537
|
};
|
|
540
|
-
type XMLPropertyValue = XMLBaseItem & {
|
|
538
|
+
export type XMLPropertyValue = XMLBaseItem & {
|
|
541
539
|
coordinates?: XMLCoordinates;
|
|
542
540
|
links?: XMLLink;
|
|
543
541
|
reverseLinks?: XMLLink | XMLDataItem | Array<XMLLink | XMLDataItem>;
|
|
@@ -551,16 +549,16 @@ type XMLPropertyValue = XMLBaseItem & {
|
|
|
551
549
|
bibliography: Array<XMLBibliography>;
|
|
552
550
|
};
|
|
553
551
|
};
|
|
554
|
-
type XMLResource = XMLBaseItem & {
|
|
552
|
+
export type XMLResource = XMLBaseItem & {
|
|
555
553
|
lang?: string;
|
|
556
554
|
type?: string;
|
|
557
555
|
date?: Date | XMLString;
|
|
558
556
|
href?: string;
|
|
559
557
|
fileFormat?: string;
|
|
560
|
-
fileSize?:
|
|
558
|
+
fileSize?: number;
|
|
561
559
|
rend?: "inline";
|
|
562
|
-
height?:
|
|
563
|
-
width?:
|
|
560
|
+
height?: number;
|
|
561
|
+
width?: number;
|
|
564
562
|
image?: XMLImage;
|
|
565
563
|
imagemap?: XMLImageMap;
|
|
566
564
|
document?: XMLContent;
|
|
@@ -584,7 +582,7 @@ type XMLResource = XMLBaseItem & {
|
|
|
584
582
|
resource?: Array<XMLWebsiteResource>;
|
|
585
583
|
};
|
|
586
584
|
};
|
|
587
|
-
type XMLSection = {
|
|
585
|
+
export type XMLSection = {
|
|
588
586
|
uuid: string;
|
|
589
587
|
publicationDateTime?: Date;
|
|
590
588
|
type: string;
|
|
@@ -593,7 +591,7 @@ type XMLSection = {
|
|
|
593
591
|
identification: XMLIdentification;
|
|
594
592
|
};
|
|
595
593
|
};
|
|
596
|
-
type XMLText = XMLBaseItem & {
|
|
594
|
+
export type XMLText = XMLBaseItem & {
|
|
597
595
|
type?: string;
|
|
598
596
|
text?: string;
|
|
599
597
|
language?: string;
|
|
@@ -624,7 +622,7 @@ type XMLText = XMLBaseItem & {
|
|
|
624
622
|
publisher?: Array<XMLPerson>;
|
|
625
623
|
};
|
|
626
624
|
};
|
|
627
|
-
type XMLHeading = {
|
|
625
|
+
export type XMLHeading = {
|
|
628
626
|
name: string;
|
|
629
627
|
abbreviation?: string;
|
|
630
628
|
heading?: Array<XMLHeading>;
|
|
@@ -645,7 +643,7 @@ type XMLHeading = {
|
|
|
645
643
|
} | {
|
|
646
644
|
set?: Array<XMLSet>;
|
|
647
645
|
});
|
|
648
|
-
type XMLTree = XMLBaseItem & {
|
|
646
|
+
export type XMLTree = XMLBaseItem & {
|
|
649
647
|
type?: string;
|
|
650
648
|
date?: Date | XMLString;
|
|
651
649
|
links?: XMLLink;
|
|
@@ -677,35 +675,36 @@ type XMLTree = XMLBaseItem & {
|
|
|
677
675
|
set: Array<XMLSet>;
|
|
678
676
|
}>;
|
|
679
677
|
};
|
|
680
|
-
type XMLWebsiteContextLevel = XMLString & {
|
|
678
|
+
export type XMLWebsiteContextLevel = XMLString & {
|
|
681
679
|
payload: string;
|
|
682
680
|
dataType?: string;
|
|
683
681
|
};
|
|
684
|
-
type XMLWebsiteContextItem = {
|
|
682
|
+
export type XMLWebsiteContextItem = {
|
|
685
683
|
identification: XMLIdentification;
|
|
684
|
+
description?: XMLContent;
|
|
686
685
|
levels?: {
|
|
687
686
|
level: Array<XMLWebsiteContextLevel>;
|
|
688
687
|
};
|
|
689
688
|
};
|
|
690
|
-
type XMLWebsiteFilterContextItem = XMLWebsiteContextItem & {
|
|
689
|
+
export type XMLWebsiteFilterContextItem = XMLWebsiteContextItem & {
|
|
691
690
|
filterType?: "property" | "coordinates" | "bibliography" | "period";
|
|
692
691
|
filterOption?: "inline-displayed" | "inline-sidebar-displayed-closed" | "inline-sidebar-displayed-open" | "sidebar-displayed-closed" | "sidebar-displayed-open" | "inline-sidebar-hidden";
|
|
693
692
|
filterVariant?: "checkbox" | "chip" | "range" | "tile" | "toggle";
|
|
694
693
|
};
|
|
695
|
-
type XMLWebsiteContext = {
|
|
694
|
+
export type XMLWebsiteContext = {
|
|
696
695
|
context: Array<XMLWebsiteContextItem>;
|
|
697
696
|
};
|
|
698
|
-
type XMLWebsiteFilterContext = {
|
|
697
|
+
export type XMLWebsiteFilterContext = {
|
|
699
698
|
context: Array<XMLWebsiteFilterContextItem>;
|
|
700
699
|
};
|
|
701
|
-
type XMLWebsiteScope = {
|
|
700
|
+
export type XMLWebsiteScope = {
|
|
702
701
|
uuid: XMLString & {
|
|
703
702
|
payload: string;
|
|
704
703
|
type: string;
|
|
705
704
|
};
|
|
706
705
|
identification: XMLIdentification;
|
|
707
706
|
};
|
|
708
|
-
type XMLWebsiteOptions = {
|
|
707
|
+
export type XMLWebsiteOptions = {
|
|
709
708
|
notes?: {
|
|
710
709
|
note: Array<XMLNote>;
|
|
711
710
|
};
|
|
@@ -721,36 +720,36 @@ type XMLWebsiteOptions = {
|
|
|
721
720
|
labelContexts?: Array<XMLWebsiteContext>;
|
|
722
721
|
prominentContexts?: Array<XMLWebsiteContext>;
|
|
723
722
|
};
|
|
724
|
-
type XMLWebsiteStyle = XMLString & {
|
|
723
|
+
export type XMLWebsiteStyle = XMLString & {
|
|
725
724
|
variableUuid: string;
|
|
726
725
|
valueUuid?: string;
|
|
727
726
|
category?: string;
|
|
728
727
|
lucideIcon?: string;
|
|
729
728
|
payload: string;
|
|
730
729
|
} & Record<string, unknown>;
|
|
731
|
-
type XMLWebsiteProperties = {
|
|
730
|
+
export type XMLWebsiteProperties = {
|
|
732
731
|
property: Array<XMLSimplifiedProperty>;
|
|
733
|
-
simplify?:
|
|
732
|
+
simplify?: boolean;
|
|
734
733
|
};
|
|
735
|
-
type XMLWebsiteResourceGroup = {
|
|
734
|
+
export type XMLWebsiteResourceGroup = {
|
|
736
735
|
resource: Array<XMLWebsiteResource>;
|
|
737
736
|
};
|
|
738
|
-
type XMLWebsiteSegment = {
|
|
737
|
+
export type XMLWebsiteSegment = {
|
|
739
738
|
segments: {
|
|
740
739
|
tree: Array<XMLWebsiteTree>;
|
|
741
740
|
};
|
|
742
741
|
uuid: string;
|
|
743
742
|
publicationDateTime?: Date;
|
|
744
743
|
};
|
|
745
|
-
type XMLWebsiteResourceItem = XMLWebsiteResource | XMLWebsiteResourceGroup | XMLWebsiteSegment;
|
|
746
|
-
type XMLWebsiteResource = Omit<XMLResource, "properties" | "resource" | "view"> & {
|
|
744
|
+
export type XMLWebsiteResourceItem = XMLWebsiteResource | XMLWebsiteResourceGroup | XMLWebsiteSegment;
|
|
745
|
+
export type XMLWebsiteResource = Omit<XMLResource, "properties" | "resource" | "view"> & {
|
|
747
746
|
format?: string;
|
|
748
747
|
slug?: string;
|
|
749
748
|
options?: XMLWebsiteOptions;
|
|
750
749
|
properties?: XMLWebsiteProperties;
|
|
751
750
|
resource?: Array<XMLWebsiteResourceItem>;
|
|
752
751
|
};
|
|
753
|
-
type XMLWebsiteTree = Omit<XMLTree, "items" | "properties"> & {
|
|
752
|
+
export type XMLWebsiteTree = Omit<XMLTree, "items" | "properties"> & {
|
|
754
753
|
options?: XMLWebsiteOptions;
|
|
755
754
|
styleOptions?: {
|
|
756
755
|
style: Array<XMLWebsiteStyle>;
|
|
@@ -760,10 +759,10 @@ type XMLWebsiteTree = Omit<XMLTree, "items" | "properties"> & {
|
|
|
760
759
|
resource?: Array<XMLWebsiteResourceItem>;
|
|
761
760
|
};
|
|
762
761
|
};
|
|
763
|
-
type XMLSet = XMLBaseItem & {
|
|
762
|
+
export type XMLSet = XMLBaseItem & {
|
|
764
763
|
type?: string;
|
|
765
|
-
suppressBlanks?:
|
|
766
|
-
tabularStructure?:
|
|
764
|
+
suppressBlanks?: boolean;
|
|
765
|
+
tabularStructure?: boolean;
|
|
767
766
|
links?: XMLLink;
|
|
768
767
|
reverseLinks?: XMLLink | XMLDataItem | Array<XMLLink | XMLDataItem>;
|
|
769
768
|
notes?: {
|
|
@@ -789,7 +788,7 @@ type XMLSet = XMLBaseItem & {
|
|
|
789
788
|
set?: Array<XMLSet>;
|
|
790
789
|
};
|
|
791
790
|
};
|
|
792
|
-
type XMLLink = {
|
|
791
|
+
export type XMLLink = {
|
|
793
792
|
tree?: Array<XMLLinkedTree>;
|
|
794
793
|
bibliography?: Array<XMLLinkedBibliography>;
|
|
795
794
|
concept?: Array<XMLLinkedConcept>;
|
|
@@ -805,7 +804,7 @@ type XMLLink = {
|
|
|
805
804
|
set?: Array<XMLLinkedSet>;
|
|
806
805
|
dictionaryUnit?: Array<XMLDictionaryUnit>;
|
|
807
806
|
};
|
|
808
|
-
type XMLDataItem = {
|
|
807
|
+
export type XMLDataItem = {
|
|
809
808
|
tree: Array<XMLTree>;
|
|
810
809
|
} | {
|
|
811
810
|
bibliography: Array<XMLBibliography>;
|
|
@@ -832,7 +831,7 @@ type XMLDataItem = {
|
|
|
832
831
|
} | {
|
|
833
832
|
set: Array<XMLSet>;
|
|
834
833
|
};
|
|
835
|
-
type XMLItemLinks = Partial<{
|
|
834
|
+
export type XMLItemLinks = Partial<{
|
|
836
835
|
payload: string;
|
|
837
836
|
tree: Array<XMLTree>;
|
|
838
837
|
bibliography: Array<XMLBibliography>;
|
|
@@ -848,7 +847,7 @@ type XMLItemLinks = Partial<{
|
|
|
848
847
|
text: Array<XMLText>;
|
|
849
848
|
set: Array<XMLSet>;
|
|
850
849
|
}>;
|
|
851
|
-
type XMLItemLinksData = {
|
|
850
|
+
export type XMLItemLinksData = {
|
|
852
851
|
result: {
|
|
853
852
|
ochre: {
|
|
854
853
|
payload?: string;
|
|
@@ -856,7 +855,7 @@ type XMLItemLinksData = {
|
|
|
856
855
|
};
|
|
857
856
|
};
|
|
858
857
|
};
|
|
859
|
-
type XMLGallery = {
|
|
858
|
+
export type XMLGallery = {
|
|
860
859
|
payload?: string;
|
|
861
860
|
project: {
|
|
862
861
|
uuid?: string;
|
|
@@ -869,31 +868,31 @@ type XMLGallery = {
|
|
|
869
868
|
identification: XMLIdentification;
|
|
870
869
|
category?: XMLItemCategory;
|
|
871
870
|
type?: string;
|
|
872
|
-
maxLength?:
|
|
871
|
+
maxLength?: number;
|
|
873
872
|
};
|
|
874
873
|
resource?: Array<XMLResource>;
|
|
875
|
-
maxLength:
|
|
874
|
+
maxLength: number;
|
|
876
875
|
};
|
|
877
|
-
type XMLGalleryData = {
|
|
876
|
+
export type XMLGalleryData = {
|
|
878
877
|
result: {
|
|
879
878
|
ochre: {
|
|
880
879
|
gallery: XMLGallery;
|
|
881
880
|
};
|
|
882
881
|
};
|
|
883
882
|
};
|
|
884
|
-
type XMLSetItems = XMLItemLinks & {
|
|
885
|
-
totalCount:
|
|
886
|
-
page:
|
|
887
|
-
pageSize:
|
|
883
|
+
export type XMLSetItems = XMLItemLinks & {
|
|
884
|
+
totalCount: number;
|
|
885
|
+
page: number;
|
|
886
|
+
pageSize: number;
|
|
888
887
|
};
|
|
889
|
-
type XMLSetItemsData = {
|
|
888
|
+
export type XMLSetItemsData = {
|
|
890
889
|
result: {
|
|
891
890
|
ochre: {
|
|
892
891
|
items: XMLSetItems;
|
|
893
892
|
};
|
|
894
893
|
};
|
|
895
894
|
};
|
|
896
|
-
type XMLData = {
|
|
895
|
+
export type XMLData = {
|
|
897
896
|
result: {
|
|
898
897
|
ochre: {
|
|
899
898
|
uuid: string;
|
|
@@ -906,7 +905,7 @@ type XMLData = {
|
|
|
906
905
|
} & XMLDataItem;
|
|
907
906
|
};
|
|
908
907
|
};
|
|
909
|
-
type XMLWebsiteData = {
|
|
908
|
+
export type XMLWebsiteData = {
|
|
910
909
|
result: {
|
|
911
910
|
ochre: {
|
|
912
911
|
uuid: string;
|
|
@@ -920,5 +919,4 @@ type XMLWebsiteData = {
|
|
|
920
919
|
};
|
|
921
920
|
};
|
|
922
921
|
};
|
|
923
|
-
//#endregion
|
|
924
|
-
export { XMLBaseItem, XMLBibliography, XMLBoolean, XMLConcept, XMLContent, XMLContext, XMLContextGroup, XMLContextItem, XMLContextValue, XMLCoordinate, XMLCoordinates, XMLCoordinatesSource, XMLData, XMLDataItem, XMLDictionaryUnit, XMLEmptyContext, XMLEvent, XMLGallery, XMLGalleryData, XMLHeading, XMLHeadingItemCategory, XMLIdentification, XMLImage, XMLImageMap, XMLImageMapArea, XMLInterpretation, XMLItemCategory, XMLItemLinks, XMLItemLinksData, XMLLicense, XMLLink, XMLLinkedBaseItem, XMLLinkedBibliography, XMLLinkedConcept, XMLLinkedPeriod, XMLLinkedPerson, XMLLinkedPropertyValue, XMLLinkedPropertyVariable, XMLLinkedResource, XMLLinkedSet, XMLLinkedSpatialUnit, XMLLinkedText, XMLLinkedTree, XMLMetadata, XMLNote, XMLNumber, XMLObservation, XMLPeriod, XMLPerson, XMLProperty, XMLPropertyRelation, XMLPropertyValue, XMLPropertyVariable, XMLRecursiveItemCategory, XMLResource, XMLRichTextEnvelope, XMLSection, XMLSet, XMLSetItems, XMLSetItemsData, XMLSimplifiedProperty, XMLSpatialUnit, XMLString, XMLText, XMLTree, XMLWebsiteContext, XMLWebsiteContextItem, XMLWebsiteContextLevel, XMLWebsiteData, XMLWebsiteFilterContext, XMLWebsiteFilterContextItem, XMLWebsiteOptions, XMLWebsiteProperties, XMLWebsiteResource, XMLWebsiteResourceGroup, XMLWebsiteResourceItem, XMLWebsiteScope, XMLWebsiteSegment, XMLWebsiteStyle, XMLWebsiteTree };
|
|
922
|
+
//#endregion
|