@deliverart/sdk-js-image 2.6.1 → 2.6.2

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
@@ -11265,7 +11265,7 @@ var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
11265
11265
  var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
11266
11266
  var getImagesQuerySchema = imagesQuerySchema;
11267
11267
  var getImagesInputSchema = external_exports.undefined();
11268
- var getImagesResponseSchema = (0, import_sdk_js_global_types3.mixedPaginationSchema)(imageSchema);
11268
+ var getImagesResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(imageSchema);
11269
11269
  var GetImages = class extends import_sdk_js_core3.AbstractApiRequest {
11270
11270
  constructor(options) {
11271
11271
  super(void 0, options);
@@ -11289,7 +11289,7 @@ var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
11289
11289
  var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
11290
11290
  var getImagesFromPointOfSaleQuerySchema = imagesQuerySchema;
11291
11291
  var getImagesFromPointOfSaleInputSchema = external_exports.undefined();
11292
- var getImagesFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types4.mixedPaginationSchema)(imageSchema);
11292
+ var getImagesFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types4.createPaginatedSchema)(imageSchema);
11293
11293
  var GetImagesFromPointOfSale = class extends import_sdk_js_core4.AbstractApiRequest {
11294
11294
  constructor(pointOfSaleId, options) {
11295
11295
  super(void 0, options);
package/dist/index.d.cts CHANGED
@@ -110,7 +110,7 @@ declare const getImagesQuerySchema: z.ZodObject<{
110
110
  type GetImagesQueryParams = z.infer<typeof getImagesQuerySchema>;
111
111
  declare const getImagesInputSchema: z.ZodUndefined;
112
112
  type GetImagesInput = z.infer<typeof getImagesInputSchema>;
113
- declare const getImagesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
113
+ declare const getImagesResponseSchema: z.ZodObject<{
114
114
  data: z.ZodArray<z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  variant: z.ZodNullable<z.ZodString>;
@@ -137,31 +137,14 @@ declare const getImagesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
137
137
  currentPage: z.ZodCoercedNumber<unknown>;
138
138
  lastPage: z.ZodCoercedNumber<unknown>;
139
139
  }, z.core.$strip>;
140
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
141
- id: z.ZodString;
142
- variant: z.ZodNullable<z.ZodString>;
143
- contentUrl: z.ZodURL;
144
- filePath: z.ZodString;
145
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
146
- createdAt: z.ZodString;
147
- updatedAt: z.ZodString;
148
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
149
- id: z.ZodString;
150
- variant: z.ZodNullable<z.ZodString>;
151
- contentUrl: z.ZodURL;
152
- filePath: z.ZodString;
153
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
154
- createdAt: z.ZodString;
155
- updatedAt: z.ZodString;
156
- }, z.core.$strip>>>;
157
- }, z.core.$strip>>]>;
140
+ }, z.core.$strip>;
158
141
  type GetImagesResponse = z.infer<typeof getImagesResponseSchema>;
159
142
  declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema, typeof getImagesResponseSchema, GetImagesQueryParams> {
160
143
  readonly method: "GET";
161
144
  readonly contentType: "application/json";
162
145
  readonly accept: "application/json";
163
146
  readonly inputSchema: z.ZodUndefined;
164
- readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
147
+ readonly outputSchema: z.ZodObject<{
165
148
  data: z.ZodArray<z.ZodObject<{
166
149
  id: z.ZodString;
167
150
  variant: z.ZodNullable<z.ZodString>;
@@ -188,24 +171,7 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
188
171
  currentPage: z.ZodCoercedNumber<unknown>;
189
172
  lastPage: z.ZodCoercedNumber<unknown>;
190
173
  }, z.core.$strip>;
191
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
192
- id: z.ZodString;
193
- variant: z.ZodNullable<z.ZodString>;
194
- contentUrl: z.ZodURL;
195
- filePath: z.ZodString;
196
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
197
- createdAt: z.ZodString;
198
- updatedAt: z.ZodString;
199
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
200
- id: z.ZodString;
201
- variant: z.ZodNullable<z.ZodString>;
202
- contentUrl: z.ZodURL;
203
- filePath: z.ZodString;
204
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
205
- createdAt: z.ZodString;
206
- updatedAt: z.ZodString;
207
- }, z.core.$strip>>>;
208
- }, z.core.$strip>>]>;
174
+ }, z.core.$strip>;
209
175
  readonly querySchema: z.ZodObject<{
210
176
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
211
177
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -253,7 +219,7 @@ declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
253
219
  type GetImagesFromPointOfSaleQueryParams = z.infer<typeof getImagesFromPointOfSaleQuerySchema>;
254
220
  declare const getImagesFromPointOfSaleInputSchema: z.ZodUndefined;
255
221
  type GetImagesFromPointOfSaleInput = z.infer<typeof getImagesFromPointOfSaleInputSchema>;
256
- declare const getImagesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
222
+ declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
257
223
  data: z.ZodArray<z.ZodObject<{
258
224
  id: z.ZodString;
259
225
  variant: z.ZodNullable<z.ZodString>;
@@ -280,31 +246,14 @@ declare const getImagesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.Zod
280
246
  currentPage: z.ZodCoercedNumber<unknown>;
281
247
  lastPage: z.ZodCoercedNumber<unknown>;
282
248
  }, z.core.$strip>;
283
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
284
- id: z.ZodString;
285
- variant: z.ZodNullable<z.ZodString>;
286
- contentUrl: z.ZodURL;
287
- filePath: z.ZodString;
288
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
289
- createdAt: z.ZodString;
290
- updatedAt: z.ZodString;
291
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
292
- id: z.ZodString;
293
- variant: z.ZodNullable<z.ZodString>;
294
- contentUrl: z.ZodURL;
295
- filePath: z.ZodString;
296
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
297
- createdAt: z.ZodString;
298
- updatedAt: z.ZodString;
299
- }, z.core.$strip>>>;
300
- }, z.core.$strip>>]>;
249
+ }, z.core.$strip>;
301
250
  type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
302
251
  declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
303
252
  readonly method: "GET";
304
253
  readonly contentType: "application/json";
305
254
  readonly accept: "application/json";
306
255
  readonly inputSchema: z.ZodUndefined;
307
- readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
256
+ readonly outputSchema: z.ZodObject<{
308
257
  data: z.ZodArray<z.ZodObject<{
309
258
  id: z.ZodString;
310
259
  variant: z.ZodNullable<z.ZodString>;
@@ -331,24 +280,7 @@ declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImag
331
280
  currentPage: z.ZodCoercedNumber<unknown>;
332
281
  lastPage: z.ZodCoercedNumber<unknown>;
333
282
  }, z.core.$strip>;
334
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
335
- id: z.ZodString;
336
- variant: z.ZodNullable<z.ZodString>;
337
- contentUrl: z.ZodURL;
338
- filePath: z.ZodString;
339
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
340
- createdAt: z.ZodString;
341
- updatedAt: z.ZodString;
342
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
343
- id: z.ZodString;
344
- variant: z.ZodNullable<z.ZodString>;
345
- contentUrl: z.ZodURL;
346
- filePath: z.ZodString;
347
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
348
- createdAt: z.ZodString;
349
- updatedAt: z.ZodString;
350
- }, z.core.$strip>>>;
351
- }, z.core.$strip>>]>;
283
+ }, z.core.$strip>;
352
284
  readonly querySchema: z.ZodObject<{
353
285
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
354
286
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
package/dist/index.d.ts CHANGED
@@ -110,7 +110,7 @@ declare const getImagesQuerySchema: z.ZodObject<{
110
110
  type GetImagesQueryParams = z.infer<typeof getImagesQuerySchema>;
111
111
  declare const getImagesInputSchema: z.ZodUndefined;
112
112
  type GetImagesInput = z.infer<typeof getImagesInputSchema>;
113
- declare const getImagesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
113
+ declare const getImagesResponseSchema: z.ZodObject<{
114
114
  data: z.ZodArray<z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  variant: z.ZodNullable<z.ZodString>;
@@ -137,31 +137,14 @@ declare const getImagesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
137
137
  currentPage: z.ZodCoercedNumber<unknown>;
138
138
  lastPage: z.ZodCoercedNumber<unknown>;
139
139
  }, z.core.$strip>;
140
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
141
- id: z.ZodString;
142
- variant: z.ZodNullable<z.ZodString>;
143
- contentUrl: z.ZodURL;
144
- filePath: z.ZodString;
145
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
146
- createdAt: z.ZodString;
147
- updatedAt: z.ZodString;
148
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
149
- id: z.ZodString;
150
- variant: z.ZodNullable<z.ZodString>;
151
- contentUrl: z.ZodURL;
152
- filePath: z.ZodString;
153
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
154
- createdAt: z.ZodString;
155
- updatedAt: z.ZodString;
156
- }, z.core.$strip>>>;
157
- }, z.core.$strip>>]>;
140
+ }, z.core.$strip>;
158
141
  type GetImagesResponse = z.infer<typeof getImagesResponseSchema>;
159
142
  declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema, typeof getImagesResponseSchema, GetImagesQueryParams> {
160
143
  readonly method: "GET";
161
144
  readonly contentType: "application/json";
162
145
  readonly accept: "application/json";
163
146
  readonly inputSchema: z.ZodUndefined;
164
- readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
147
+ readonly outputSchema: z.ZodObject<{
165
148
  data: z.ZodArray<z.ZodObject<{
166
149
  id: z.ZodString;
167
150
  variant: z.ZodNullable<z.ZodString>;
@@ -188,24 +171,7 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
188
171
  currentPage: z.ZodCoercedNumber<unknown>;
189
172
  lastPage: z.ZodCoercedNumber<unknown>;
190
173
  }, z.core.$strip>;
191
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
192
- id: z.ZodString;
193
- variant: z.ZodNullable<z.ZodString>;
194
- contentUrl: z.ZodURL;
195
- filePath: z.ZodString;
196
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
197
- createdAt: z.ZodString;
198
- updatedAt: z.ZodString;
199
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
200
- id: z.ZodString;
201
- variant: z.ZodNullable<z.ZodString>;
202
- contentUrl: z.ZodURL;
203
- filePath: z.ZodString;
204
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
205
- createdAt: z.ZodString;
206
- updatedAt: z.ZodString;
207
- }, z.core.$strip>>>;
208
- }, z.core.$strip>>]>;
174
+ }, z.core.$strip>;
209
175
  readonly querySchema: z.ZodObject<{
210
176
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
211
177
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -253,7 +219,7 @@ declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
253
219
  type GetImagesFromPointOfSaleQueryParams = z.infer<typeof getImagesFromPointOfSaleQuerySchema>;
254
220
  declare const getImagesFromPointOfSaleInputSchema: z.ZodUndefined;
255
221
  type GetImagesFromPointOfSaleInput = z.infer<typeof getImagesFromPointOfSaleInputSchema>;
256
- declare const getImagesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
222
+ declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
257
223
  data: z.ZodArray<z.ZodObject<{
258
224
  id: z.ZodString;
259
225
  variant: z.ZodNullable<z.ZodString>;
@@ -280,31 +246,14 @@ declare const getImagesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.Zod
280
246
  currentPage: z.ZodCoercedNumber<unknown>;
281
247
  lastPage: z.ZodCoercedNumber<unknown>;
282
248
  }, z.core.$strip>;
283
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
284
- id: z.ZodString;
285
- variant: z.ZodNullable<z.ZodString>;
286
- contentUrl: z.ZodURL;
287
- filePath: z.ZodString;
288
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
289
- createdAt: z.ZodString;
290
- updatedAt: z.ZodString;
291
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
292
- id: z.ZodString;
293
- variant: z.ZodNullable<z.ZodString>;
294
- contentUrl: z.ZodURL;
295
- filePath: z.ZodString;
296
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
297
- createdAt: z.ZodString;
298
- updatedAt: z.ZodString;
299
- }, z.core.$strip>>>;
300
- }, z.core.$strip>>]>;
249
+ }, z.core.$strip>;
301
250
  type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
302
251
  declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
303
252
  readonly method: "GET";
304
253
  readonly contentType: "application/json";
305
254
  readonly accept: "application/json";
306
255
  readonly inputSchema: z.ZodUndefined;
307
- readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
256
+ readonly outputSchema: z.ZodObject<{
308
257
  data: z.ZodArray<z.ZodObject<{
309
258
  id: z.ZodString;
310
259
  variant: z.ZodNullable<z.ZodString>;
@@ -331,24 +280,7 @@ declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImag
331
280
  currentPage: z.ZodCoercedNumber<unknown>;
332
281
  lastPage: z.ZodCoercedNumber<unknown>;
333
282
  }, z.core.$strip>;
334
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
335
- id: z.ZodString;
336
- variant: z.ZodNullable<z.ZodString>;
337
- contentUrl: z.ZodURL;
338
- filePath: z.ZodString;
339
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
340
- createdAt: z.ZodString;
341
- updatedAt: z.ZodString;
342
- variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
343
- id: z.ZodString;
344
- variant: z.ZodNullable<z.ZodString>;
345
- contentUrl: z.ZodURL;
346
- filePath: z.ZodString;
347
- tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
348
- createdAt: z.ZodString;
349
- updatedAt: z.ZodString;
350
- }, z.core.$strip>>>;
351
- }, z.core.$strip>>]>;
283
+ }, z.core.$strip>;
352
284
  readonly querySchema: z.ZodObject<{
353
285
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
354
286
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
package/dist/index.js CHANGED
@@ -11219,10 +11219,10 @@ var GetImageDetails = class extends AbstractApiRequest2 {
11219
11219
 
11220
11220
  // src/requests/GetImages.ts
11221
11221
  import { AbstractApiRequest as AbstractApiRequest3 } from "@deliverart/sdk-js-core";
11222
- import { mixedPaginationSchema } from "@deliverart/sdk-js-global-types";
11222
+ import { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
11223
11223
  var getImagesQuerySchema = imagesQuerySchema;
11224
11224
  var getImagesInputSchema = external_exports.undefined();
11225
- var getImagesResponseSchema = mixedPaginationSchema(imageSchema);
11225
+ var getImagesResponseSchema = createPaginatedSchema(imageSchema);
11226
11226
  var GetImages = class extends AbstractApiRequest3 {
11227
11227
  constructor(options) {
11228
11228
  super(void 0, options);
@@ -11243,10 +11243,10 @@ var GetImages = class extends AbstractApiRequest3 {
11243
11243
 
11244
11244
  // src/requests/GetImagesFromPointOfSale.ts
11245
11245
  import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
11246
- import { mixedPaginationSchema as mixedPaginationSchema2 } from "@deliverart/sdk-js-global-types";
11246
+ import { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
11247
11247
  var getImagesFromPointOfSaleQuerySchema = imagesQuerySchema;
11248
11248
  var getImagesFromPointOfSaleInputSchema = external_exports.undefined();
11249
- var getImagesFromPointOfSaleResponseSchema = mixedPaginationSchema2(imageSchema);
11249
+ var getImagesFromPointOfSaleResponseSchema = createPaginatedSchema2(imageSchema);
11250
11250
  var GetImagesFromPointOfSale = class extends AbstractApiRequest4 {
11251
11251
  constructor(pointOfSaleId, options) {
11252
11252
  super(void 0, options);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-image",
3
3
  "description": "Deliverart JavaScript SDK for Image Management",
4
- "version": "2.6.1",
4
+ "version": "2.6.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@deliverart/sdk-js-core": "2.6.1",
22
- "@deliverart/sdk-js-global-types": "2.6.1",
23
- "@deliverart/sdk-js-point-of-sale": "2.6.1"
21
+ "@deliverart/sdk-js-core": "2.6.2",
22
+ "@deliverart/sdk-js-point-of-sale": "2.6.2",
23
+ "@deliverart/sdk-js-global-types": "2.6.2"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"