@digitalculture/ochre-sdk 0.1.22 → 0.1.23

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 CHANGED
@@ -935,6 +935,7 @@ function parseImageMap(imageMap) {
935
935
  function parsePeriod(period) {
936
936
  return {
937
937
  uuid: period.uuid,
938
+ category: "period",
938
939
  publicationDateTime: period.publicationDateTime != null ? new Date(period.publicationDateTime) : null,
939
940
  type: period.type ?? null,
940
941
  number: period.n ?? null,
@@ -963,6 +964,7 @@ function parseBibliography(bibliography) {
963
964
  }
964
965
  return {
965
966
  uuid: bibliography.uuid,
967
+ category: "bibliography",
966
968
  publicationDateTime: bibliography.publicationDateTime != null ? new Date(bibliography.publicationDateTime) : null,
967
969
  type: bibliography.type ?? null,
968
970
  number: bibliography.n ?? null,
package/dist/index.d.cts CHANGED
@@ -295,6 +295,7 @@ type Set = {
295
295
  */
296
296
  type Bibliography = {
297
297
  uuid: string;
298
+ category: "bibliography";
298
299
  publicationDateTime: Date | null;
299
300
  type: string | null;
300
301
  number: number | null;
@@ -326,6 +327,7 @@ type Bibliography = {
326
327
  */
327
328
  type Period = {
328
329
  uuid: string;
330
+ category: "period";
329
331
  publicationDateTime: Date | null;
330
332
  type: string | null;
331
333
  number: number | null;
package/dist/index.d.ts CHANGED
@@ -295,6 +295,7 @@ type Set = {
295
295
  */
296
296
  type Bibliography = {
297
297
  uuid: string;
298
+ category: "bibliography";
298
299
  publicationDateTime: Date | null;
299
300
  type: string | null;
300
301
  number: number | null;
@@ -326,6 +327,7 @@ type Bibliography = {
326
327
  */
327
328
  type Period = {
328
329
  uuid: string;
330
+ category: "period";
329
331
  publicationDateTime: Date | null;
330
332
  type: string | null;
331
333
  number: number | null;
package/dist/index.js CHANGED
@@ -860,6 +860,7 @@ function parseImageMap(imageMap) {
860
860
  function parsePeriod(period) {
861
861
  return {
862
862
  uuid: period.uuid,
863
+ category: "period",
863
864
  publicationDateTime: period.publicationDateTime != null ? new Date(period.publicationDateTime) : null,
864
865
  type: period.type ?? null,
865
866
  number: period.n ?? null,
@@ -888,6 +889,7 @@ function parseBibliography(bibliography) {
888
889
  }
889
890
  return {
890
891
  uuid: bibliography.uuid,
892
+ category: "bibliography",
891
893
  publicationDateTime: bibliography.publicationDateTime != null ? new Date(bibliography.publicationDateTime) : null,
892
894
  type: bibliography.type ?? null,
893
895
  number: bibliography.n ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
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",