ochre-sdk 0.19.3 → 0.19.5
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 +7 -19
- package/dist/index.mjs +1888 -1879
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
//#region src/types/main.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Represents the OCHRE API version
|
|
4
|
+
*/
|
|
5
|
+
type ApiVersion = 1 | 2;
|
|
2
6
|
/**
|
|
3
7
|
* Represents the core data structure containing item information and metadata
|
|
4
8
|
*/
|
|
@@ -635,20 +639,8 @@ type PropertyValueQueryItem = {
|
|
|
635
639
|
content: string | number | boolean | null;
|
|
636
640
|
label: string | null;
|
|
637
641
|
};
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
*/
|
|
641
|
-
type UuidMetadata = {
|
|
642
|
-
item: {
|
|
643
|
-
uuid: string;
|
|
644
|
-
name: string;
|
|
645
|
-
type: string;
|
|
646
|
-
};
|
|
647
|
-
project: {
|
|
648
|
-
name: string;
|
|
649
|
-
website: string | null;
|
|
650
|
-
};
|
|
651
|
-
} | null;
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region src/types/website.d.ts
|
|
652
644
|
/**
|
|
653
645
|
* Represents a level context item with a variable and value
|
|
654
646
|
*/
|
|
@@ -685,10 +677,6 @@ type Scope = {
|
|
|
685
677
|
type: string;
|
|
686
678
|
identification: Identification;
|
|
687
679
|
};
|
|
688
|
-
/**
|
|
689
|
-
* Represents the OCHRE API version
|
|
690
|
-
*/
|
|
691
|
-
type ApiVersion = 1 | 2;
|
|
692
680
|
/**
|
|
693
681
|
* Represents the OCHRE website type
|
|
694
682
|
*/
|
|
@@ -1363,4 +1351,4 @@ declare const DEFAULT_PAGE_SIZE = 48;
|
|
|
1363
1351
|
*/
|
|
1364
1352
|
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>;
|
|
1365
1353
|
//#endregion
|
|
1366
|
-
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, Resource, Scope, Section, Set, SpatialUnit, Style, Text, Tree,
|
|
1354
|
+
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, Resource, Scope, Section, Set, SpatialUnit, Style, Text, Tree, WebBlock, WebBlockLayout, WebElement, WebElementComponent, WebImage, WebSegment, WebSegmentItem, WebTitle, Webpage, Website, WebsiteType, fetchGallery, fetchItem, fetchItemsByPropertyValues, fetchPropertyValuesByPropertyVariables, fetchWebsite, filterProperties, flattenItemProperties, getLeafPropertyValues, getPropertyByLabel, getPropertyByLabelAndValue, getPropertyByLabelAndValues, getPropertyByUuid, getPropertyValueByLabel, getPropertyValueByUuid, getPropertyValuesByLabel, getPropertyValuesByUuid, getUniqueProperties, getUniquePropertyLabels };
|