ochre-sdk 0.21.6 → 0.21.8
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/index.d.mts +16 -8
- package/dist/index.mjs +488 -422
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -670,15 +670,14 @@ type SetItemsSort = {
|
|
|
670
670
|
direction?: SetItemsSortDirection;
|
|
671
671
|
language?: string;
|
|
672
672
|
};
|
|
673
|
-
type QueryPropertyDataType = Exclude<PropertyValueContentType, "coordinate"> | "all";
|
|
674
673
|
/**
|
|
675
674
|
* Represents a leaf query for Set items
|
|
676
675
|
*/
|
|
677
676
|
type QueryLeaf = {
|
|
678
677
|
target: "property";
|
|
679
678
|
propertyVariable?: string;
|
|
680
|
-
dataType: "
|
|
681
|
-
value
|
|
679
|
+
dataType: Exclude<Exclude<PropertyValueContentType, "coordinate">, "date" | "dateTime">;
|
|
680
|
+
value?: string;
|
|
682
681
|
from?: never;
|
|
683
682
|
to?: never;
|
|
684
683
|
matchMode: "includes" | "exact";
|
|
@@ -687,9 +686,9 @@ type QueryLeaf = {
|
|
|
687
686
|
isNegated?: boolean;
|
|
688
687
|
} | {
|
|
689
688
|
target: "property";
|
|
690
|
-
propertyVariable
|
|
691
|
-
dataType:
|
|
692
|
-
value
|
|
689
|
+
propertyVariable: string;
|
|
690
|
+
dataType: "date" | "dateTime";
|
|
691
|
+
value: string;
|
|
693
692
|
from?: never;
|
|
694
693
|
to?: never;
|
|
695
694
|
matchMode: "includes" | "exact";
|
|
@@ -718,6 +717,15 @@ type QueryLeaf = {
|
|
|
718
717
|
isCaseSensitive: boolean;
|
|
719
718
|
language: string;
|
|
720
719
|
isNegated?: boolean;
|
|
720
|
+
} | {
|
|
721
|
+
target: "property";
|
|
722
|
+
propertyVariable?: string;
|
|
723
|
+
dataType: "all";
|
|
724
|
+
value: string;
|
|
725
|
+
matchMode: "includes" | "exact";
|
|
726
|
+
isCaseSensitive: boolean;
|
|
727
|
+
language: string;
|
|
728
|
+
isNegated?: boolean;
|
|
721
729
|
} | {
|
|
722
730
|
target: "string";
|
|
723
731
|
value: string;
|
|
@@ -726,7 +734,7 @@ type QueryLeaf = {
|
|
|
726
734
|
language: string;
|
|
727
735
|
isNegated?: boolean;
|
|
728
736
|
} | {
|
|
729
|
-
target: "title" | "description" | "image" | "periods" | "bibliography";
|
|
737
|
+
target: "title" | "description" | "image" | "periods" | "bibliography" | "notes";
|
|
730
738
|
value: string;
|
|
731
739
|
matchMode: "includes" | "exact";
|
|
732
740
|
isCaseSensitive: boolean;
|
|
@@ -1528,4 +1536,4 @@ declare const DEFAULT_PAGE_SIZE = 48;
|
|
|
1528
1536
|
*/
|
|
1529
1537
|
declare function flattenItemProperties<T extends DataCategory = DataCategory, U extends DataCategory | Array<DataCategory> = (T extends "tree" ? Exclude<DataCategory, "tree"> : T extends "set" ? Array<DataCategory> : never)>(item: Item<T, U>): Item<T, U>;
|
|
1530
1538
|
//#endregion
|
|
1531
|
-
export { ApiVersion, Bibliography, Concept, Context, ContextItem, ContextNode, Coordinate, DEFAULT_API_VERSION, DEFAULT_PAGE_SIZE, Data, DataCategory, Event, FileFormat, Gallery, Identification, Image, ImageMap, ImageMapArea, Interpretation, Item, LevelContext, LevelContextItem, License, Link, Metadata, Note, Observation, Period, Person, Property, PropertyContexts, PropertyValue, PropertyValueContent, PropertyValueContentType, PropertyValueQueryItem, PropertyVariable, Query, QueryGroup, QueryLeaf,
|
|
1539
|
+
export { ApiVersion, Bibliography, Concept, Context, ContextItem, ContextNode, Coordinate, DEFAULT_API_VERSION, DEFAULT_PAGE_SIZE, Data, DataCategory, Event, FileFormat, Gallery, Identification, Image, ImageMap, ImageMapArea, Interpretation, Item, LevelContext, LevelContextItem, License, Link, Metadata, Note, Observation, Period, Person, Property, PropertyContexts, PropertyValue, PropertyValueContent, PropertyValueContentType, PropertyValueQueryItem, PropertyVariable, Query, QueryGroup, QueryLeaf, Resource, Scope, Section, Set, SetAttributeValueQueryItem, SetItemsSort, SetItemsSortDirection, SpatialUnit, Style, StylesheetCategory, StylesheetItem, Text, Tree, WebBlock, WebBlockLayout, WebElement, WebElementComponent, WebImage, WebSegment, WebSegmentItem, WebTitle, Webpage, Website, WebsitePropertyQuery, WebsitePropertyQueryNode, WebsiteType, fetchGallery, fetchItem, fetchSetItems, fetchSetPropertyValues, fetchWebsite, filterProperties, flattenItemProperties, getLeafPropertyValues, getPropertyByLabel, getPropertyByLabelAndValue, getPropertyByLabelAndValues, getPropertyByUuid, getPropertyValueByLabel, getPropertyValueByUuid, getPropertyValuesByLabel, getPropertyValuesByUuid, getUniqueProperties, getUniquePropertyLabels };
|