ochre-sdk 1.3.29 → 1.3.31

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.
@@ -1,11 +1,12 @@
1
1
  import { FetchBaseOptions, FetchLanguages } from "../parsers/helpers.mjs";
2
2
  import { ItemLocation, Query } from "../types/index.mjs";
3
+ import { Website } from "../types/website.mjs";
3
4
  /**
4
5
  Fetches the location of every Set or Tree item that matches a query, without paging
5
6
 
6
7
  Each item carries only its identification, the scope Sets and Trees it
7
- belongs to, its publication date, its coordinates, optionally its map
8
- polygons, and the values of the requested property variables (inherited
8
+ belongs to, its publication date, its coordinates, its popupView, optionally
9
+ its map polygons, and the values of the requested property variables (inherited
9
10
  values included), which is what a map needs to draw, color and group every
10
11
  match into layers while a list pages through the same query with
11
12
  {@link fetchSetItems} or {@link fetchTreeItems}.
@@ -17,6 +18,7 @@ match into layers while a list pages through the same query with
17
18
  @param parameters.propertyVariableUuids - The property variables whose values each item should carry
18
19
  @param parameters.isMapDataIncluded - Whether each item should carry its map polygons
19
20
  @param options - Options for the fetch
21
+ @param options.website - The website the items are shown in, whose page and component settings each item's popupView starts from, as the website's own pages do
20
22
  @param options.fetch - The fetch function to use
21
23
  @returns The item locations, or an error if the fetch/parse fails
22
24
  */
@@ -26,7 +28,9 @@ export declare function fetchItemLocations<const TLanguages extends ReadonlyArra
26
28
  queries?: Query | null;
27
29
  propertyVariableUuids?: Array<string>;
28
30
  isMapDataIncluded?: boolean;
29
- }, options?: FetchBaseOptions<TLanguages>): Promise<{
31
+ }, options?: FetchBaseOptions<TLanguages> & {
32
+ website?: Pick<Website, "properties"> | null;
33
+ }): Promise<{
30
34
  totalCount: number;
31
35
  items: Array<ItemLocation<FetchLanguages<TLanguages>>>;
32
36
  error: null;
@@ -2,14 +2,30 @@ import { normalizeItemCategory } from "../categories.mjs";
2
2
  import { getErrorOutput } from "../errors.mjs";
3
3
  import { requestOchre } from "./request.mjs";
4
4
  import { parseRequiredContentLike } from "../parsers/helpers.mjs";
5
- import { parseCoordinates, parseIdentification, parseSpatialUnitMapData } from "../parsers/index.mjs";
6
- import { parseRequestedLanguages, resolveContentLanguages } from "../parsers/languages.mjs";
5
+ import { parseCoordinates, parseIdentification, parseMetadata, parseSpatialUnitMapData } from "../parsers/index.mjs";
6
+ import { parseRequestedLanguages, resolveContentLanguages, resolveDefaultLanguage } from "../parsers/languages.mjs";
7
+ import { parseWebpageView } from "../parsers/website/index.mjs";
7
8
  import { compileContainerItemsQuery } from "../query.mjs";
8
9
  import { itemLocationsParametersSchema } from "../schemas.mjs";
9
10
  import { XMLItemLocationsData } from "../xml/schemas.mjs";
10
11
  import { getContentLanguage, stringLiteral } from "../xquery.mjs";
11
12
  import * as v from "valibot";
12
13
  // src/fetchers/item-locations.ts
14
+ function parseViewContexts(scopes, languages) {
15
+ const viewContexts = /* @__PURE__ */ new Map();
16
+ for (const scope of scopes) viewContexts.set(scope.uuid, {
17
+ belongsTo: {
18
+ uuid: scope.uuidBelongsTo,
19
+ abbreviation: scope.belongsTo
20
+ },
21
+ metadata: parseMetadata(scope, { languages }, resolveDefaultLanguage(scope, languages))
22
+ });
23
+ return viewContexts;
24
+ }
25
+ function parsePopupView(popupView, viewContext, languages, website) {
26
+ if (popupView == null || viewContext == null) return null;
27
+ return parseWebpageView(popupView, { languages }, viewContext, website);
28
+ }
13
29
  async function fetchItemLocations(parameters, options) {
14
30
  try {
15
31
  const { setScopeUuids, treeScopeUuids, belongsToCollectionScopeUuids, queries, propertyVariableUuids, isMapDataIncluded } = v.parse(itemLocationsParametersSchema, parameters);
@@ -30,11 +46,14 @@ async function fetchItemLocations(parameters, options) {
30
46
  body: ({ items }) => ` let $propertyVariableUuids := (${Array.from(propertyVariableUuids, (uuid) => stringLiteral(uuid)).join(", ")})
31
47
 
32
48
  return <items totalCount="{count(${items})}">{
49
+ for $ochre in ${items}[popupView]/ancestor::ochre[1]
50
+ return <scope uuid="{$ochre/${container}/@uuid}" uuidBelongsTo="{$ochre/@uuidBelongsTo}" belongsTo="{$ochre/@belongsTo}">{$ochre/metadata}</scope>,
33
51
  for $item in ${items}
34
52
  return <itemLocation uuid="{$item/@uuid}" category="{local-name($item)}" scopeUuid="{$item/ancestor::${container}[1]/@uuid}">{
35
53
  ${container === "tree" ? "($item/@publicationDateTime, $item/ancestor::tree[1]/@publicationDateTime)[1]" : "$item/@publicationDateTime"},
36
54
  $item/identification,
37
- $item/coordinates,${isMapDataIncluded ? "\n $item/mapData," : ""}
55
+ $item/coordinates,
56
+ $item/popupView,${isMapDataIncluded ? "\n $item/mapData," : ""}
38
57
  for $value in $item//properties//property[label/@uuid = $propertyVariableUuids]/value[@uuid]
39
58
  return <value variable="{$value/../label/@uuid}" uuid="{$value/@uuid}">{$value/content}</value>
40
59
  }</itemLocation>
@@ -47,6 +66,7 @@ async function fetchItemLocations(parameters, options) {
47
66
  const languages = resolveContentLanguages(outputs.map((output) => output.result.ochre.items), parseRequestedLanguages(options?.languages));
48
67
  let totalCount = 0;
49
68
  for (const output of outputs) totalCount += output.result.ochre.items.totalCount;
69
+ const viewContextsByScopeUuid = parseViewContexts(outputs.flatMap((output) => output.result.ochre.items.scope ?? []), languages);
50
70
  const itemsByUuid = /* @__PURE__ */ new Map();
51
71
  const itemLocations = outputs.flatMap((output) => output.result.ochre.items.itemLocation ?? []);
52
72
  for (const itemLocation of itemLocations) {
@@ -78,6 +98,7 @@ async function fetchItemLocations(parameters, options) {
78
98
  identification: parseIdentification(itemLocation.identification, { languages }),
79
99
  coordinates: parseCoordinates(itemLocation.coordinates, { languages }),
80
100
  mapData: parseSpatialUnitMapData(itemLocation.mapData),
101
+ popupView: parsePopupView(itemLocation.popupView, viewContextsByScopeUuid.get(itemLocation.scopeUuid), languages, options?.website ?? null),
81
102
  propertyValues
82
103
  });
83
104
  }
@@ -23,7 +23,7 @@ single category when it is known, or an array when the item may be any
23
23
  category in that list.
24
24
  @param options.containedItemCategory - The category of items inside the OCHRE item to fetch. Only valid for Trees and Sets. Tree accepts one category; Set accepts one category or an array.
25
25
  @param options.shouldOmitEmbeddedItems - Whether to omit the embedded item hierarchy when fetching a recursive item category. Ignored when the fetched item does not expose recursive embedded items.
26
- @param options.website - The website the item is shown in, whose page and component settings a resource's view starts from, as the website's own pages do
26
+ @param options.website - The website the item is shown in, whose page and component settings a resource's or text's view and popupView start from, as the website's own pages do
27
27
  @param options.languages - Language codes to parse. Inline arrays preserve literal types automatically.
28
28
  @param options.fetch - Custom fetch function to use instead of the default fetch
29
29
  @returns An object containing the parsed item
@@ -85,7 +85,7 @@ async function fetchItem(uuid, options) {
85
85
  category: options?.category,
86
86
  containedItemCategory: options?.containedItemCategory,
87
87
  languages,
88
- parseResourceView: (view, context) => parseWebpageView(view, { languages: context.metadata.languages }, context, options?.website ?? null)
88
+ parseView: (view, context) => parseWebpageView(view, { languages: context.metadata.languages }, context, options?.website ?? null)
89
89
  });
90
90
  assertItemCategoryAllowed(parsedItem.category, options?.containedItemCategory);
91
91
  return {
@@ -1,9 +1,9 @@
1
1
  import { ParserOptions, getParserOptions, parseStringLike } from "./helpers.mjs";
2
2
  import { Bibliography, ContainedItemCategoryFromOption, ContainedItemCategoryOption, Coordinates, Gallery, Identification, Item, ItemCategory, ItemCategoryFromOption, ItemCategoryOption, ItemContainerCategory, ItemLinks, Metadata, Note, Person, Property, Resource, SetItem, SetItemCategory, SimplifiedProperty, SpatialUnit } from "../types/index.mjs";
3
3
  import { Webpage } from "../types/website.mjs";
4
- import { XMLBibliography, XMLCoordinates, XMLData, XMLDataItem, XMLGalleryData, XMLIdentification, XMLItemLinks, XMLLink, XMLMetadata, XMLNote, XMLPerson, XMLProperty, XMLResource, XMLSetItems, XMLSimplifiedProperty, XMLSpatialUnit } from "../xml/types.mjs";
4
+ import { XMLBibliography, XMLCoordinates, XMLData, XMLDataItem, XMLGalleryData, XMLIdentification, XMLItemLinks, XMLItemView, XMLLink, XMLMetadata, XMLNote, XMLPerson, XMLProperty, XMLSetItems, XMLSimplifiedProperty, XMLSpatialUnit } from "../xml/types.mjs";
5
5
  export type RawOchre = XMLData["result"]["ochre"];
6
- type ResourceViewParser<T extends ReadonlyArray<string>> = (view: XMLResource["view"], context: Pick<Resource<T, "topLevel">, "belongsTo" | "metadata">) => Webpage<T> | null;
6
+ type ItemViewParser<T extends ReadonlyArray<string>> = (view: XMLItemView | undefined, context: Pick<Resource<T, "topLevel">, "belongsTo" | "metadata">) => Webpage<T> | null;
7
7
  type SetItemCategoryFromCategories<T extends ReadonlyArray<SetItemCategory> | undefined> = T extends ReadonlyArray<infer U> ? Extract<U, SetItemCategory> : SetItemCategory;
8
8
  export declare function parseIdentification<T extends ReadonlyArray<string>>(rawIdentification: XMLIdentification, options: ParserOptions<T>): Identification<T>;
9
9
  export declare function parseCoordinates<T extends ReadonlyArray<string>>(rawCoordinates: XMLCoordinates | undefined, options: ParserOptions<T>): Array<Coordinates<T>>;
@@ -39,18 +39,18 @@ export declare function parseItem<const TContainedItemCategory extends Contained
39
39
  category?: undefined;
40
40
  containedItemCategory?: TContainedItemCategory;
41
41
  languages: T;
42
- parseResourceView?: ResourceViewParser<T>;
42
+ parseView?: ItemViewParser<T>;
43
43
  }): Item<ItemCategory, ContainedItemCategoryFromOption<ItemCategory, TContainedItemCategory>, T>;
44
44
  export declare function parseItem<const TCategory extends ItemCategoryOption, const TContainedItemCategory extends ContainedItemCategoryOption<Extract<ItemCategoryFromOption<TCategory>, ItemContainerCategory>> | undefined = undefined, T extends ReadonlyArray<string> = ReadonlyArray<string>>(rawData: XMLData, options: {
45
45
  category: TCategory;
46
46
  containedItemCategory?: TContainedItemCategory;
47
47
  languages: T;
48
- parseResourceView?: ResourceViewParser<T>;
48
+ parseView?: ItemViewParser<T>;
49
49
  }): Item<ItemCategoryFromOption<TCategory>, ContainedItemCategoryFromOption<ItemCategoryFromOption<TCategory>, TContainedItemCategory>, T>;
50
50
  export declare function parseItem(rawData: XMLData, options: {
51
51
  category?: ItemCategoryOption;
52
52
  containedItemCategory?: ContainedItemCategoryOption<ItemCategory>;
53
53
  languages: ReadonlyArray<string>;
54
- parseResourceView?: ResourceViewParser<ReadonlyArray<string>>;
54
+ parseView?: ItemViewParser<ReadonlyArray<string>>;
55
55
  }): Item<ItemCategory, SetItemCategory, ReadonlyArray<string>>;
56
56
  export { type ParserOptions, getParserOptions, parseStringLike };
@@ -1232,17 +1232,19 @@ function parseItem(rawData, options) {
1232
1232
  const metadata = parseMetadata(rawOchre, parserOptions, defaultLanguage);
1233
1233
  const persistentUrl = rawOchre.persistentUrl ?? null;
1234
1234
  const item = parseTopLevelItem(rawOchre, category, parserOptions);
1235
- if (category === "resource") {
1236
- const rawResource = getSingleTopLevelRawItem("resource" in rawOchre ? rawOchre.resource : null, "resource");
1235
+ if (category === "resource" || category === "text") {
1236
+ const rawItem = category === "resource" ? getSingleTopLevelRawItem("resource" in rawOchre ? rawOchre.resource : null, "resource") : getSingleTopLevelRawItem("text" in rawOchre ? rawOchre.text : null, "text");
1237
+ const parseView = (view) => options.parseView?.(view, {
1238
+ belongsTo,
1239
+ metadata
1240
+ }) ?? null;
1237
1241
  return {
1238
1242
  ...item,
1239
1243
  belongsTo,
1240
1244
  metadata,
1241
1245
  persistentUrl,
1242
- view: options.parseResourceView?.(rawResource.view, {
1243
- belongsTo,
1244
- metadata
1245
- }) ?? null
1246
+ view: parseView(rawItem.view),
1247
+ popupView: parseView(rawItem.popupView)
1246
1248
  };
1247
1249
  }
1248
1250
  return {
@@ -1,9 +1,7 @@
1
1
  import { ParserOptions } from "../helpers.mjs";
2
2
  import { Webpage, Website } from "../../types/website.mjs";
3
- import { XMLWebsiteData, XMLWebsiteResource } from "../../xml/types.mjs";
4
- export declare function parseWebpageView<T extends ReadonlyArray<string>>(view: {
5
- resource?: Array<XMLWebsiteResource>;
6
- } | undefined, options: ParserOptions<T>, context: Pick<Website<T>, "belongsTo" | "metadata">, website: Pick<Website<T>, "properties"> | null): Webpage<T> | null;
3
+ import { XMLItemView, XMLWebsiteData } from "../../xml/types.mjs";
4
+ export declare function parseWebpageView<T extends ReadonlyArray<string>>(view: XMLItemView | undefined, options: ParserOptions<T>, context: Pick<Website<T>, "belongsTo" | "metadata">, website: Pick<Website<T>, "properties"> | null): Webpage<T> | null;
7
5
  export declare function parseWebsite<const T extends ReadonlyArray<string> = ReadonlyArray<string>>(data: XMLWebsiteData, options?: {
8
6
  languages?: T;
9
7
  }): Website<T>;
@@ -648,6 +648,7 @@ export type ItemLocation<T extends LanguageCodes = LanguageCodes> = {
648
648
  identification: Identification<T>;
649
649
  coordinates: Array<Coordinates<T>>;
650
650
  mapData: SpatialUnit<T>["mapData"];
651
+ popupView: Webpage<T> | null;
651
652
  propertyValues: Array<{
652
653
  variableUuid: string;
653
654
  valueUuid: string;
@@ -817,6 +818,10 @@ export type PropertyValue<T extends LanguageCodes = LanguageCodes, U extends Ite
817
818
  properties: Array<Property<T>>;
818
819
  bibliographies: Array<Bibliography<T, "embedded">>;
819
820
  }>;
821
+ type ItemViews<T extends LanguageCodes, U extends ItemPayloadKind> = U extends "topLevel" ? {
822
+ view: Webpage<T> | null;
823
+ popupView: Webpage<T> | null;
824
+ } : unknown;
820
825
  /**
821
826
  Resource in OCHRE
822
827
  */
@@ -841,9 +846,7 @@ export type Resource<T extends LanguageCodes = LanguageCodes, U extends ItemPayl
841
846
  properties: Array<Property<T>>;
842
847
  bibliographies: Array<Bibliography<T, "embedded">>;
843
848
  items: RecursiveItemChildren<U, Resource<T, RecursiveChildPayloadKind<U>>>;
844
- } & (U extends "topLevel" ? {
845
- view: Webpage<T> | null;
846
- } : unknown)>;
849
+ } & ItemViews<T, U>>;
847
850
  /**
848
851
  Text in OCHRE
849
852
  */
@@ -860,7 +863,7 @@ export type Text<T extends LanguageCodes = LanguageCodes, U extends ItemPayloadK
860
863
  periods: Array<Period<T, "embedded">>;
861
864
  creators: Array<Person<T, "embedded">>;
862
865
  editions: Array<Person<T, "embedded">>;
863
- }>;
866
+ } & ItemViews<T, U>>;
864
867
  /**
865
868
  Section in OCHRE
866
869
  */
@@ -3786,6 +3786,9 @@ export declare const XMLGalleryData: v.ObjectSchema<{
3786
3786
  readonly view: v.OptionalSchema<v.ObjectSchema<{
3787
3787
  readonly resource: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLWebsiteResource>>, undefined>, undefined>;
3788
3788
  }, undefined>, undefined>;
3789
+ readonly popupView: v.OptionalSchema<v.ObjectSchema<{
3790
+ readonly resource: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLWebsiteResource>>, undefined>, undefined>;
3791
+ }, undefined>, undefined>;
3789
3792
  readonly lang: v.OptionalSchema<v.StringSchema<"XMLResource: lang is string and optional">, undefined>;
3790
3793
  readonly uuid: v.SchemaWithPipe<readonly [v.StringSchema<"XMLBaseItem: uuid is string and required">, v.CheckAction<string, "XMLBaseItem: uuid is not a valid pseudo-UUID">]>;
3791
3794
  readonly publicationDateTime: v.OptionalSchema<v.GenericSchema<unknown, Date>, undefined>;
@@ -4333,6 +4336,496 @@ export declare const XMLItemLocationsData: v.ObjectSchema<{
4333
4336
  rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4334
4337
  whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4335
4338
  }, "XMLString: Shape error">], undefined>, v.CheckAction<string | XMLString, "XMLNumber: string is not a number">, v.TransformAction<string | XMLString, number>]>;
4339
+ readonly scope: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
4340
+ readonly uuid: v.StringSchema<"XMLItemLocationsData: scope uuid is string and required">;
4341
+ readonly uuidBelongsTo: v.StringSchema<"XMLItemLocationsData: scope uuidBelongsTo is string and required">;
4342
+ readonly belongsTo: v.StringSchema<"XMLItemLocationsData: scope belongsTo is string and required">;
4343
+ readonly metadata: v.ObjectSchema<{
4344
+ readonly dataset: v.ObjectSchema<{
4345
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4346
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4347
+ properties: v.OptionalSchema<v.ObjectSchema<{
4348
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4349
+ }, undefined>, undefined>;
4350
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4351
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4352
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4353
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4354
+ }, "XMLString: Shape error">;
4355
+ readonly description: v.ObjectSchema<{
4356
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4357
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4358
+ properties: v.OptionalSchema<v.ObjectSchema<{
4359
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4360
+ }, undefined>, undefined>;
4361
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4362
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4363
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4364
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4365
+ }, "XMLString: Shape error">;
4366
+ readonly publisher: v.UnionSchema<[v.ObjectSchema<{
4367
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4368
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4369
+ properties: v.OptionalSchema<v.ObjectSchema<{
4370
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4371
+ }, undefined>, undefined>;
4372
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4373
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4374
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4375
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4376
+ }, "XMLString: Shape error">, v.ArraySchema<v.ObjectSchema<{
4377
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4378
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4379
+ properties: v.OptionalSchema<v.ObjectSchema<{
4380
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4381
+ }, undefined>, undefined>;
4382
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4383
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4384
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4385
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4386
+ }, "XMLString: Shape error">, undefined>], undefined>;
4387
+ readonly identifier: v.ObjectSchema<{
4388
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4389
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4390
+ properties: v.OptionalSchema<v.ObjectSchema<{
4391
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4392
+ }, undefined>, undefined>;
4393
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4394
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4395
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4396
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4397
+ }, "XMLString: Shape error">;
4398
+ readonly language: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
4399
+ readonly payload: v.StringSchema<"XMLMetadata: language is string and required">;
4400
+ readonly default: v.OptionalSchema<v.LiteralSchema<"true", "XMLMetadata: default is true">, undefined>;
4401
+ }, "XMLMetadata: language is array of object with payload and default">, "XMLMetadata: language is array of object with payload and default">, undefined>;
4402
+ readonly project: v.OptionalSchema<v.ObjectSchema<{
4403
+ readonly uuid: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"XMLMetadata: uuid is string and optional">, v.CheckAction<string, "XMLMetadata: uuid is not a valid pseudo-UUID">]>, undefined>;
4404
+ readonly identification: v.ObjectSchema<{
4405
+ readonly label: v.UnionSchema<[v.ObjectSchema<{
4406
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4407
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4408
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4409
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4410
+ }, undefined>, undefined>;
4411
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4412
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4413
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4414
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4415
+ properties: v.OptionalSchema<v.ObjectSchema<{
4416
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4417
+ }, undefined>, undefined>;
4418
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4419
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4420
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4421
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4422
+ }, "XMLString: Shape error">, undefined>;
4423
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4424
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4425
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4426
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4427
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4428
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4429
+ properties: v.OptionalSchema<v.ObjectSchema<{
4430
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4431
+ }, undefined>, undefined>;
4432
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4433
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4434
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4435
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4436
+ }, "XMLString: Shape error">], undefined>;
4437
+ readonly abbreviation: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4438
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4439
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4440
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4441
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4442
+ }, undefined>, undefined>;
4443
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4444
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4445
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4446
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4447
+ properties: v.OptionalSchema<v.ObjectSchema<{
4448
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4449
+ }, undefined>, undefined>;
4450
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4451
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4452
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4453
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4454
+ }, "XMLString: Shape error">, undefined>;
4455
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4456
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4457
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4458
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4459
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4460
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4461
+ properties: v.OptionalSchema<v.ObjectSchema<{
4462
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4463
+ }, undefined>, undefined>;
4464
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4465
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4466
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4467
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4468
+ }, "XMLString: Shape error">], undefined>, undefined>;
4469
+ readonly code: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4470
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4471
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4472
+ properties: v.OptionalSchema<v.ObjectSchema<{
4473
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4474
+ }, undefined>, undefined>;
4475
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4476
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4477
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4478
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4479
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: code is string and optional">], undefined>, undefined>;
4480
+ readonly email: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4481
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4482
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4483
+ properties: v.OptionalSchema<v.ObjectSchema<{
4484
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4485
+ }, undefined>, undefined>;
4486
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4487
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4488
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4489
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4490
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: email is string and optional">], undefined>, undefined>;
4491
+ readonly website: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4492
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4493
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4494
+ properties: v.OptionalSchema<v.ObjectSchema<{
4495
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4496
+ }, undefined>, undefined>;
4497
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4498
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4499
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4500
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4501
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: website is string and optional">], undefined>, undefined>;
4502
+ }, "XMLIdentification: Shape error">;
4503
+ readonly dateFormat: v.OptionalSchema<v.StringSchema<"XMLMetadata: dateFormat is string and optional">, undefined>;
4504
+ readonly page: v.OptionalSchema<v.PicklistSchema<["item", "entry"], "XMLMetadata: page is item or entry and optional">, undefined>;
4505
+ }, "XMLMetadata: project is object with uuid and identification">, undefined>;
4506
+ readonly collection: v.OptionalSchema<v.ObjectSchema<{
4507
+ readonly uuid: v.SchemaWithPipe<readonly [v.StringSchema<"XMLMetadata: uuid is string and required">, v.CheckAction<string, "XMLMetadata: uuid is not a valid pseudo-UUID">]>;
4508
+ readonly identification: v.ObjectSchema<{
4509
+ readonly label: v.UnionSchema<[v.ObjectSchema<{
4510
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4511
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4512
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4513
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4514
+ }, undefined>, undefined>;
4515
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4516
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4517
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4518
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4519
+ properties: v.OptionalSchema<v.ObjectSchema<{
4520
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4521
+ }, undefined>, undefined>;
4522
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4523
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4524
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4525
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4526
+ }, "XMLString: Shape error">, undefined>;
4527
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4528
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4529
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4530
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4531
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4532
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4533
+ properties: v.OptionalSchema<v.ObjectSchema<{
4534
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4535
+ }, undefined>, undefined>;
4536
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4537
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4538
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4539
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4540
+ }, "XMLString: Shape error">], undefined>;
4541
+ readonly abbreviation: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4542
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4543
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4544
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4545
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4546
+ }, undefined>, undefined>;
4547
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4548
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4549
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4550
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4551
+ properties: v.OptionalSchema<v.ObjectSchema<{
4552
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4553
+ }, undefined>, undefined>;
4554
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4555
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4556
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4557
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4558
+ }, "XMLString: Shape error">, undefined>;
4559
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4560
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4561
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4562
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4563
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4564
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4565
+ properties: v.OptionalSchema<v.ObjectSchema<{
4566
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4567
+ }, undefined>, undefined>;
4568
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4569
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4570
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4571
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4572
+ }, "XMLString: Shape error">], undefined>, undefined>;
4573
+ readonly code: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4574
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4575
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4576
+ properties: v.OptionalSchema<v.ObjectSchema<{
4577
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4578
+ }, undefined>, undefined>;
4579
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4580
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4581
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4582
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4583
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: code is string and optional">], undefined>, undefined>;
4584
+ readonly email: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4585
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4586
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4587
+ properties: v.OptionalSchema<v.ObjectSchema<{
4588
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4589
+ }, undefined>, undefined>;
4590
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4591
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4592
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4593
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4594
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: email is string and optional">], undefined>, undefined>;
4595
+ readonly website: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4596
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4597
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4598
+ properties: v.OptionalSchema<v.ObjectSchema<{
4599
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4600
+ }, undefined>, undefined>;
4601
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4602
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4603
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4604
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4605
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: website is string and optional">], undefined>, undefined>;
4606
+ }, "XMLIdentification: Shape error">;
4607
+ readonly page: v.PicklistSchema<["item", "entry"], "XMLMetadata: page is item or entry">;
4608
+ }, "XMLMetadata: collection is object with uuid, identification, and page">, undefined>;
4609
+ readonly publication: v.OptionalSchema<v.ObjectSchema<{
4610
+ readonly uuid: v.SchemaWithPipe<readonly [v.StringSchema<"XMLMetadata: uuid is string and required">, v.CheckAction<string, "XMLMetadata: uuid is not a valid pseudo-UUID">]>;
4611
+ readonly identification: v.ObjectSchema<{
4612
+ readonly label: v.UnionSchema<[v.ObjectSchema<{
4613
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4614
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4615
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4616
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4617
+ }, undefined>, undefined>;
4618
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4619
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4620
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4621
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4622
+ properties: v.OptionalSchema<v.ObjectSchema<{
4623
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4624
+ }, undefined>, undefined>;
4625
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4626
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4627
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4628
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4629
+ }, "XMLString: Shape error">, undefined>;
4630
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4631
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4632
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4633
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4634
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4635
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4636
+ properties: v.OptionalSchema<v.ObjectSchema<{
4637
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4638
+ }, undefined>, undefined>;
4639
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4640
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4641
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4642
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4643
+ }, "XMLString: Shape error">], undefined>;
4644
+ readonly abbreviation: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4645
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4646
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4647
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4648
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4649
+ }, undefined>, undefined>;
4650
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4651
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4652
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4653
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4654
+ properties: v.OptionalSchema<v.ObjectSchema<{
4655
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4656
+ }, undefined>, undefined>;
4657
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4658
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4659
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4660
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4661
+ }, "XMLString: Shape error">, undefined>;
4662
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4663
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4664
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4665
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4666
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4667
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4668
+ properties: v.OptionalSchema<v.ObjectSchema<{
4669
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4670
+ }, undefined>, undefined>;
4671
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4672
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4673
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4674
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4675
+ }, "XMLString: Shape error">], undefined>, undefined>;
4676
+ readonly code: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4677
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4678
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4679
+ properties: v.OptionalSchema<v.ObjectSchema<{
4680
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4681
+ }, undefined>, undefined>;
4682
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4683
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4684
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4685
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4686
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: code is string and optional">], undefined>, undefined>;
4687
+ readonly email: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4688
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4689
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4690
+ properties: v.OptionalSchema<v.ObjectSchema<{
4691
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4692
+ }, undefined>, undefined>;
4693
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4694
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4695
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4696
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4697
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: email is string and optional">], undefined>, undefined>;
4698
+ readonly website: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4699
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4700
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4701
+ properties: v.OptionalSchema<v.ObjectSchema<{
4702
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4703
+ }, undefined>, undefined>;
4704
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4705
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4706
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4707
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4708
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: website is string and optional">], undefined>, undefined>;
4709
+ }, "XMLIdentification: Shape error">;
4710
+ readonly page: v.PicklistSchema<["item", "entry"], "XMLMetadata: page is item or entry and required">;
4711
+ }, "XMLMetadata: publication is object with uuid, identification, and page">, undefined>;
4712
+ readonly item: v.OptionalSchema<v.ObjectSchema<{
4713
+ readonly uuid: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"XMLMetadata: uuid is string and optional">, v.CheckAction<string, "XMLMetadata: uuid is not a valid pseudo-UUID">]>, undefined>;
4714
+ readonly identification: v.ObjectSchema<{
4715
+ readonly label: v.UnionSchema<[v.ObjectSchema<{
4716
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4717
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4718
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4719
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4720
+ }, undefined>, undefined>;
4721
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4722
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4723
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4724
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4725
+ properties: v.OptionalSchema<v.ObjectSchema<{
4726
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4727
+ }, undefined>, undefined>;
4728
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4729
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4730
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4731
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4732
+ }, "XMLString: Shape error">, undefined>;
4733
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4734
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4735
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4736
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4737
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4738
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4739
+ properties: v.OptionalSchema<v.ObjectSchema<{
4740
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4741
+ }, undefined>, undefined>;
4742
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4743
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4744
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4745
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4746
+ }, "XMLString: Shape error">], undefined>;
4747
+ readonly abbreviation: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4748
+ readonly content: v.ArraySchema<v.ObjectSchema<{
4749
+ readonly links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4750
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{
4751
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4752
+ }, undefined>, undefined>;
4753
+ readonly annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4754
+ readonly string: v.ArraySchema<v.ObjectSchema<{
4755
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4756
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4757
+ properties: v.OptionalSchema<v.ObjectSchema<{
4758
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4759
+ }, undefined>, undefined>;
4760
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4761
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4762
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4763
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4764
+ }, "XMLString: Shape error">, undefined>;
4765
+ readonly title: v.OptionalSchema<v.StringSchema<"XMLContent: title is string and optional">, undefined>;
4766
+ readonly lang: v.StringSchema<"XMLContent: lang is string and required">;
4767
+ }, undefined>, "XMLContent: content is array of object with string, title, and lang">;
4768
+ }, "XMLContent: Shape error">, v.ObjectSchema<{
4769
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4770
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4771
+ properties: v.OptionalSchema<v.ObjectSchema<{
4772
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4773
+ }, undefined>, undefined>;
4774
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4775
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4776
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4777
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4778
+ }, "XMLString: Shape error">], undefined>, undefined>;
4779
+ readonly code: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4780
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4781
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4782
+ properties: v.OptionalSchema<v.ObjectSchema<{
4783
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4784
+ }, undefined>, undefined>;
4785
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4786
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4787
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4788
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4789
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: code is string and optional">], undefined>, undefined>;
4790
+ readonly email: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4791
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4792
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4793
+ properties: v.OptionalSchema<v.ObjectSchema<{
4794
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4795
+ }, undefined>, undefined>;
4796
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4797
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4798
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4799
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4800
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: email is string and optional">], undefined>, undefined>;
4801
+ readonly website: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
4802
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4803
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4804
+ properties: v.OptionalSchema<v.ObjectSchema<{
4805
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4806
+ }, undefined>, undefined>;
4807
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4808
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4809
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4810
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4811
+ }, "XMLString: Shape error">, v.StringSchema<"XMLIdentification: website is string and optional">], undefined>, undefined>;
4812
+ }, "XMLIdentification: Shape error">;
4813
+ readonly category: v.PicklistSchema<readonly ["tree", "bibliography", "spatialUnit", "concept", "period", "person", "propertyVariable", "variable", "propertyValue", "value", "resource", "text", "set"], undefined>;
4814
+ readonly type: v.StringSchema<"XMLMetadata: type is string and required">;
4815
+ readonly maxLength: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<"XMLNumber: string is string and required">, v.ObjectSchema<{
4816
+ string: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLString>>, "XMLString: string is array of XMLString">, undefined>;
4817
+ links: v.OptionalSchema<v.LazySchema<v.GenericSchema<unknown, XMLLink$1>>, undefined>;
4818
+ properties: v.OptionalSchema<v.ObjectSchema<{
4819
+ readonly property: v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLProperty>>, "XMLRichTextEnvelope: properties is array of XMLProperty">;
4820
+ }, undefined>, undefined>;
4821
+ annotation: v.OptionalSchema<v.StringSchema<"XMLRichTextEnvelope: annotation is string and optional">, undefined>;
4822
+ payload: v.OptionalSchema<v.StringSchema<"XMLString: payload is string and optional">, undefined>;
4823
+ rend: v.OptionalSchema<v.StringSchema<"XMLString: rend is string and optional">, undefined>;
4824
+ whitespace: v.OptionalSchema<v.StringSchema<"XMLString: whitespace is string and optional">, undefined>;
4825
+ }, "XMLString: Shape error">], undefined>, v.CheckAction<string | XMLString, "XMLNumber: string is not a number">, v.TransformAction<string | XMLString, number | undefined>]>, undefined>;
4826
+ }, "XMLMetadata: item is object with identification, category, type, and maxLength">, undefined>;
4827
+ }, undefined>;
4828
+ }, "XMLItemLocationsData: scope is object with uuid, uuidBelongsTo, belongsTo, and metadata">, undefined>, undefined>;
4336
4829
  readonly itemLocation: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
4337
4830
  readonly uuid: v.StringSchema<"XMLItemLocation: uuid is string and required">;
4338
4831
  readonly category: v.StringSchema<"XMLItemLocation: category is string and required">;
@@ -4917,6 +5410,9 @@ export declare const XMLItemLocationsData: v.ObjectSchema<{
4917
5410
  }, "XMLString: Shape error">], undefined>, v.CheckAction<string | XMLString, "XMLNumber: string is not a number">, v.TransformAction<string | XMLString, number>]>;
4918
5411
  }, undefined>;
4919
5412
  }, "XMLMapData: mapData is object with geoJSON">, undefined>;
5413
+ readonly popupView: v.OptionalSchema<v.ObjectSchema<{
5414
+ readonly resource: v.OptionalSchema<v.ArraySchema<v.LazySchema<v.GenericSchema<unknown, XMLWebsiteResource>>, undefined>, undefined>;
5415
+ }, undefined>, undefined>;
4920
5416
  readonly value: v.OptionalSchema<v.ArraySchema<v.IntersectSchema<[v.ObjectSchema<{
4921
5417
  readonly variable: v.StringSchema<"XMLItemLocation: value variable is string and required">;
4922
5418
  readonly uuid: v.StringSchema<"XMLItemLocation: value uuid is string and required">;
@@ -667,6 +667,7 @@ const XMLPropertyVariable = v.object({
667
667
  notes: v.optional(v.object({ note: v.array(XMLNote) })),
668
668
  bibliographies: v.optional(v.object({ bibliography: v.array(XMLBibliography) }))
669
669
  }, "XMLPropertyVariable: Shape error");
670
+ const XMLItemView = v.object({ resource: v.optional(v.array(v.lazy(() => XMLWebsiteResource))) });
670
671
  const XMLResource = v.object({
671
672
  ...XMLBaseItem.entries,
672
673
  type: v.optional(v.string("XMLResource: type is string and optional")),
@@ -693,7 +694,8 @@ const XMLResource = v.object({
693
694
  properties: v.optional(v.object({ property: v.array(XMLProperty) })),
694
695
  bibliographies: v.optional(v.object({ bibliography: v.array(XMLBibliography) })),
695
696
  resource: v.optional(v.array(v.lazy(() => XMLResource))),
696
- view: v.optional(v.object({ resource: v.optional(v.array(v.lazy(() => XMLWebsiteResource))) })),
697
+ view: v.optional(XMLItemView),
698
+ popupView: v.optional(XMLItemView),
697
699
  lang: v.optional(v.string("XMLResource: lang is string and optional"))
698
700
  }, "XMLResource: Shape error");
699
701
  const XMLSection = v.object({
@@ -727,7 +729,9 @@ const XMLText = v.object({
727
729
  edition: v.optional(v.array(v.lazy(() => XMLPerson))),
728
730
  editor: v.optional(v.array(v.lazy(() => XMLPerson))),
729
731
  publisher: v.optional(v.array(v.lazy(() => XMLPerson)))
730
- }, "XMLText: editions is object with edition array of XMLPerson"))
732
+ }, "XMLText: editions is object with edition array of XMLPerson")),
733
+ view: v.optional(XMLItemView),
734
+ popupView: v.optional(XMLItemView)
731
735
  }, "XMLText: Shape error");
732
736
  const XMLLink = v.pipe(v.object({
733
737
  tree: v.optional(v.array(XMLLinkedTree)),
@@ -972,6 +976,7 @@ const XMLItemLocation = v.object({
972
976
  identification: XMLIdentification,
973
977
  coordinates: v.optional(XMLCoordinates),
974
978
  mapData: XMLMapData,
979
+ popupView: v.optional(XMLItemView),
975
980
  value: v.optional(v.array(v.intersect([v.object({
976
981
  variable: v.string("XMLItemLocation: value variable is string and required"),
977
982
  uuid: v.string("XMLItemLocation: value uuid is string and required")
@@ -979,6 +984,12 @@ const XMLItemLocation = v.object({
979
984
  }, "XMLItemLocation: Shape error");
980
985
  const XMLItemLocationsData = v.object({ result: v.object({ ochre: v.object({ items: v.object({
981
986
  totalCount: XMLNumber,
987
+ scope: v.optional(v.array(v.object({
988
+ uuid: v.string("XMLItemLocationsData: scope uuid is string and required"),
989
+ uuidBelongsTo: v.string("XMLItemLocationsData: scope uuidBelongsTo is string and required"),
990
+ belongsTo: v.string("XMLItemLocationsData: scope belongsTo is string and required"),
991
+ metadata: XMLMetadata
992
+ }, "XMLItemLocationsData: scope is object with uuid, uuidBelongsTo, belongsTo, and metadata"))),
982
993
  itemLocation: v.optional(v.array(XMLItemLocation, "XMLItemLocationsData: itemLocation is array of XMLItemLocation"))
983
994
  }, "XMLItemLocationsData: items is object with totalCount") }, "XMLItemLocationsData: ochre") }) }, "XMLItemLocationsData: Shape error");
984
995
  const XMLMapLayer = v.object({
@@ -559,6 +559,13 @@ export type XMLPropertyValue = XMLBaseItem & {
559
559
  bibliography: Array<XMLBibliography>;
560
560
  };
561
561
  };
562
+ export type XMLItemView = {
563
+ resource?: Array<XMLWebsiteResource>;
564
+ };
565
+ type XMLItemViews = {
566
+ view?: XMLItemView;
567
+ popupView?: XMLItemView;
568
+ };
562
569
  export type XMLResource = XMLBaseItem & {
563
570
  lang?: string;
564
571
  type?: string;
@@ -589,10 +596,7 @@ export type XMLResource = XMLBaseItem & {
589
596
  bibliography: Array<XMLBibliography>;
590
597
  };
591
598
  resource?: Array<XMLResource>;
592
- view?: {
593
- resource?: Array<XMLWebsiteResource>;
594
- };
595
- };
599
+ } & XMLItemViews;
596
600
  export type XMLSection = {
597
601
  uuid: string;
598
602
  publicationDateTime?: Date;
@@ -632,7 +636,7 @@ export type XMLText = XMLBaseItem & {
632
636
  editor?: Array<XMLPerson>;
633
637
  publisher?: Array<XMLPerson>;
634
638
  };
635
- };
639
+ } & XMLItemViews;
636
640
  export type XMLHeading = {
637
641
  name: string;
638
642
  abbreviation?: string;
@@ -753,7 +757,7 @@ export type XMLWebsiteSegment = {
753
757
  publicationDateTime?: Date;
754
758
  };
755
759
  export type XMLWebsiteResourceItem = XMLWebsiteResource | XMLWebsiteResourceGroup | XMLWebsiteSegment;
756
- export type XMLWebsiteResource = Omit<XMLResource, "properties" | "resource" | "view"> & {
760
+ export type XMLWebsiteResource = Omit<XMLResource, "properties" | "resource" | "view" | "popupView"> & {
757
761
  format?: string;
758
762
  slug?: string;
759
763
  options?: XMLWebsiteOptions;
@@ -923,6 +927,7 @@ export type XMLItemLocation = {
923
927
  identification: XMLIdentification;
924
928
  coordinates?: XMLCoordinates;
925
929
  mapData?: XMLSpatialUnit["mapData"];
930
+ popupView?: XMLItemView;
926
931
  value?: Array<{
927
932
  variable: string;
928
933
  uuid: string;
@@ -933,6 +938,12 @@ export type XMLItemLocationsData = {
933
938
  ochre: {
934
939
  items: {
935
940
  totalCount: number;
941
+ scope?: Array<{
942
+ uuid: string;
943
+ uuidBelongsTo: string;
944
+ belongsTo: string;
945
+ metadata: XMLMetadata;
946
+ }>;
936
947
  itemLocation?: Array<XMLItemLocation>;
937
948
  };
938
949
  };
@@ -992,4 +1003,5 @@ export type XMLWebsiteData = {
992
1003
  };
993
1004
  };
994
1005
  };
995
- export type XMLHeadingItemCategory = Exclude<XMLItemCategory, "tree" | "bibliography" | "spatialUnit" | "concept" | "period">;
1006
+ export type XMLHeadingItemCategory = Exclude<XMLItemCategory, "tree" | "bibliography" | "spatialUnit" | "concept" | "period">;
1007
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.3.29",
3
+ "version": "1.3.31",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",