@digitalculture/ochre-sdk 0.6.0 → 0.6.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 CHANGED
@@ -132,6 +132,12 @@ var categorySchema = import_zod.z.enum([
132
132
  "set",
133
133
  "tree"
134
134
  ]);
135
+ var gallerySchema = import_zod.z.object({
136
+ uuid: import_zod.z.string().uuid({ message: "Invalid UUID" }),
137
+ filter: import_zod.z.string().optional(),
138
+ page: import_zod.z.number().positive({ message: "Page must be positive" }),
139
+ perPage: import_zod.z.number().positive({ message: "Per page must be positive" })
140
+ }).strict();
135
141
  var renderOptionsSchema = import_zod.z.string().transform((str) => str.split(" ")).pipe(
136
142
  import_zod.z.array(
137
143
  import_zod.z.enum([
package/dist/index.js CHANGED
@@ -60,6 +60,12 @@ var categorySchema = z.enum([
60
60
  "set",
61
61
  "tree"
62
62
  ]);
63
+ var gallerySchema = z.object({
64
+ uuid: z.string().uuid({ message: "Invalid UUID" }),
65
+ filter: z.string().optional(),
66
+ page: z.number().positive({ message: "Page must be positive" }),
67
+ perPage: z.number().positive({ message: "Per page must be positive" })
68
+ }).strict();
63
69
  var renderOptionsSchema = z.string().transform((str) => str.split(" ")).pipe(
64
70
  z.array(
65
71
  z.enum([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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",