ochre-sdk 1.3.16 → 1.3.17
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/types/index.d.mts +1 -1
- package/dist/xml/schemas.d.mts +3 -3
- package/dist/xml/schemas.mjs +4 -2
- package/dist/xml/types.d.mts +1 -1
- package/package.json +1 -1
package/dist/types/index.d.mts
CHANGED
|
@@ -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: "highQuality" | "iiifManifest" | "document" | "ocr";
|
|
232
|
+
type: "highQuality" | "iiifManifest" | "document" | "ocr" | "mets" | "alto";
|
|
233
233
|
href: string;
|
|
234
234
|
fileFormat: string;
|
|
235
235
|
};
|
package/dist/xml/schemas.d.mts
CHANGED
|
@@ -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<["highQuality", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or
|
|
452
|
+
readonly type: v.PicklistSchema<["highQuality", "iiifManifest", "document", "ocr", "mets", "alto"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, ocr, mets, or alto">;
|
|
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<["highQuality", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or
|
|
1656
|
+
readonly type: v.PicklistSchema<["highQuality", "iiifManifest", "document", "ocr", "mets", "alto"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, ocr, mets, or alto">;
|
|
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<["highQuality", "iiifManifest", "document", "ocr"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, or
|
|
3000
|
+
readonly type: v.PicklistSchema<["highQuality", "iiifManifest", "document", "ocr", "mets", "alto"], "XMLDownloadOptions: type is highQuality, iiifManifest, document, ocr, mets, or alto">;
|
|
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>;
|
package/dist/xml/schemas.mjs
CHANGED
|
@@ -226,8 +226,10 @@ const XMLDownloadOptions = v.object({ option: v.array(v.object({
|
|
|
226
226
|
"highQuality",
|
|
227
227
|
"iiifManifest",
|
|
228
228
|
"document",
|
|
229
|
-
"ocr"
|
|
230
|
-
|
|
229
|
+
"ocr",
|
|
230
|
+
"mets",
|
|
231
|
+
"alto"
|
|
232
|
+
], "XMLDownloadOptions: type is highQuality, iiifManifest, document, ocr, mets, or alto"),
|
|
231
233
|
href: v.pipe(v.string("XMLDownloadOptions: href is string and required"), v.url("XMLDownloadOptions: href is not a valid URL")),
|
|
232
234
|
fileFormat: v.string("XMLDownloadOptions: fileFormat is string and required")
|
|
233
235
|
}, "XMLDownloadOptions: option is object with type, href, and fileFormat")) }, "XMLDownloadOptions: Shape error");
|
package/dist/xml/types.d.mts
CHANGED
|
@@ -168,7 +168,7 @@ export type XMLImage = {
|
|
|
168
168
|
};
|
|
169
169
|
export type XMLDownloadOptions = {
|
|
170
170
|
option: Array<{
|
|
171
|
-
type: "highQuality" | "iiifManifest" | "document" | "ocr";
|
|
171
|
+
type: "highQuality" | "iiifManifest" | "document" | "ocr" | "mets" | "alto";
|
|
172
172
|
href: string;
|
|
173
173
|
fileFormat: string;
|
|
174
174
|
}>;
|