@digitalculture/ochre-sdk 0.7.0 → 0.7.1
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.cjs +8 -2765
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -2690
- package/package.json +8 -7
package/dist/index.d.cts
CHANGED
|
@@ -928,6 +928,7 @@ type OchreSpatialUnit = {
|
|
|
928
928
|
identification: OchreIdentification;
|
|
929
929
|
image?: OchreImage;
|
|
930
930
|
description?: OchreStringContent | FakeString;
|
|
931
|
+
coordinate?: string; // "latitude, longitude"
|
|
931
932
|
coordinates?: OchreCoordinates;
|
|
932
933
|
events?: { event: OchreEvent | Array<OchreEvent> };
|
|
933
934
|
observations?: { observation: OchreObservation | Array<OchreObservation> };
|
|
@@ -1518,7 +1519,7 @@ declare function parseNotes(notes: Array<OchreNote>, language?: string): Array<N
|
|
|
1518
1519
|
* @param coordinates - Raw coordinates data in OCHRE format
|
|
1519
1520
|
* @returns Parsed Coordinates object
|
|
1520
1521
|
*/
|
|
1521
|
-
declare function parseCoordinates(coordinates: OchreCoordinates): Coordinates;
|
|
1522
|
+
declare function parseCoordinates(coordinates: OchreCoordinates | string): Coordinates;
|
|
1522
1523
|
/**
|
|
1523
1524
|
* Parses a raw observation into a standardized Observation structure
|
|
1524
1525
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -928,6 +928,7 @@ type OchreSpatialUnit = {
|
|
|
928
928
|
identification: OchreIdentification;
|
|
929
929
|
image?: OchreImage;
|
|
930
930
|
description?: OchreStringContent | FakeString;
|
|
931
|
+
coordinate?: string; // "latitude, longitude"
|
|
931
932
|
coordinates?: OchreCoordinates;
|
|
932
933
|
events?: { event: OchreEvent | Array<OchreEvent> };
|
|
933
934
|
observations?: { observation: OchreObservation | Array<OchreObservation> };
|
|
@@ -1518,7 +1519,7 @@ declare function parseNotes(notes: Array<OchreNote>, language?: string): Array<N
|
|
|
1518
1519
|
* @param coordinates - Raw coordinates data in OCHRE format
|
|
1519
1520
|
* @returns Parsed Coordinates object
|
|
1520
1521
|
*/
|
|
1521
|
-
declare function parseCoordinates(coordinates: OchreCoordinates): Coordinates;
|
|
1522
|
+
declare function parseCoordinates(coordinates: OchreCoordinates | string): Coordinates;
|
|
1522
1523
|
/**
|
|
1523
1524
|
* Parses a raw observation into a standardized Observation structure
|
|
1524
1525
|
*
|