ochre-sdk 1.3.14 → 1.3.16

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.
@@ -229,7 +229,7 @@ export type Image<T extends LanguageCodes = LanguageCodes> = {
229
229
  * Download option of an item in OCHRE
230
230
  */
231
231
  export type DownloadOption = {
232
- type: "highQualityImage" | "iiifManifest" | "document" | "ocr";
232
+ type: "highQuality" | "iiifManifest" | "document" | "ocr";
233
233
  href: string;
234
234
  fileFormat: string;
235
235
  };
@@ -449,7 +449,7 @@ export declare const XMLGalleryData: v.ObjectSchema<{
449
449
  }, "XMLImageMap: Shape error">, undefined>;
450
450
  readonly downloadOptions: v.OptionalSchema<v.ObjectSchema<{
451
451
  readonly option: v.ArraySchema<v.ObjectSchema<{
452
- readonly type: v.PicklistSchema<["highQualityImage", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQualityImage, iiifManifest, document, or ocr">;
452
+ readonly type: v.PicklistSchema<["highQuality", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or ocr">;
453
453
  readonly href: v.SchemaWithPipe<readonly [v.StringSchema<"XMLDownloadOptions: href is string and required">, v.UrlAction<string, "XMLDownloadOptions: href is not a valid URL">]>;
454
454
  readonly fileFormat: v.StringSchema<"XMLDownloadOptions: fileFormat is string and required">;
455
455
  }, "XMLDownloadOptions: option is object with type, href, and fileFormat">, undefined>;
@@ -1653,7 +1653,7 @@ export declare const XMLGalleryData: v.ObjectSchema<{
1653
1653
  }, "XMLImage: Shape error">, undefined>;
1654
1654
  readonly downloadOptions: v.OptionalSchema<v.ObjectSchema<{
1655
1655
  readonly option: v.ArraySchema<v.ObjectSchema<{
1656
- readonly type: v.PicklistSchema<["highQualityImage", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQualityImage, iiifManifest, document, or ocr">;
1656
+ readonly type: v.PicklistSchema<["highQuality", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or ocr">;
1657
1657
  readonly href: v.SchemaWithPipe<readonly [v.StringSchema<"XMLDownloadOptions: href is string and required">, v.UrlAction<string, "XMLDownloadOptions: href is not a valid URL">]>;
1658
1658
  readonly fileFormat: v.StringSchema<"XMLDownloadOptions: fileFormat is string and required">;
1659
1659
  }, "XMLDownloadOptions: option is object with type, href, and fileFormat">, undefined>;
@@ -2997,7 +2997,7 @@ export declare const XMLGalleryData: v.ObjectSchema<{
2997
2997
  }, "XMLImage: Shape error">, undefined>;
2998
2998
  readonly downloadOptions: v.OptionalSchema<v.ObjectSchema<{
2999
2999
  readonly option: v.ArraySchema<v.ObjectSchema<{
3000
- readonly type: v.PicklistSchema<["highQualityImage", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQualityImage, iiifManifest, document, or ocr">;
3000
+ readonly type: v.PicklistSchema<["highQuality", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or ocr">;
3001
3001
  readonly href: v.SchemaWithPipe<readonly [v.StringSchema<"XMLDownloadOptions: href is string and required">, v.UrlAction<string, "XMLDownloadOptions: href is not a valid URL">]>;
3002
3002
  readonly fileFormat: v.StringSchema<"XMLDownloadOptions: fileFormat is string and required">;
3003
3003
  }, "XMLDownloadOptions: option is object with type, href, and fileFormat">, undefined>;
@@ -223,11 +223,11 @@ const XMLImage = v.object({
223
223
  }, "XMLImage: Shape error");
224
224
  const XMLDownloadOptions = v.object({ option: v.array(v.object({
225
225
  type: v.picklist([
226
- "highQualityImage",
226
+ "highQuality",
227
227
  "iiifManifest",
228
228
  "document",
229
229
  "ocr"
230
- ], "XMLDownloadOptions: type is highQualityImage, iiifManifest, document, or ocr"),
230
+ ], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or ocr"),
231
231
  href: v.pipe(v.string("XMLDownloadOptions: href is string and required"), v.url("XMLDownloadOptions: href is not a valid URL")),
232
232
  fileFormat: v.string("XMLDownloadOptions: fileFormat is string and required")
233
233
  }, "XMLDownloadOptions: option is object with type, href, and fileFormat")) }, "XMLDownloadOptions: Shape error");
@@ -168,7 +168,7 @@ export type XMLImage = {
168
168
  };
169
169
  export type XMLDownloadOptions = {
170
170
  option: Array<{
171
- type: "highQualityImage" | "iiifManifest" | "document" | "ocr";
171
+ type: "highQuality" | "iiifManifest" | "document" | "ocr";
172
172
  href: string;
173
173
  fileFormat: string;
174
174
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
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",