@deliverart/sdk-js-image 2.6.0 → 2.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
@@ -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.createPaginatedSchema)(imageSchema);
11268
+ var getImagesResponseSchema = (0, import_sdk_js_global_types3.mixedPaginationSchema)(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.createPaginatedSchema)(imageSchema);
11292
+ var getImagesFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types4.mixedPaginationSchema)(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.ZodObject<{
113
+ declare const getImagesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
114
114
  data: z.ZodArray<z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  variant: z.ZodNullable<z.ZodString>;
@@ -137,14 +137,31 @@ declare const getImagesResponseSchema: z.ZodObject<{
137
137
  currentPage: z.ZodCoercedNumber<unknown>;
138
138
  lastPage: z.ZodCoercedNumber<unknown>;
139
139
  }, z.core.$strip>;
140
- }, 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>>]>;
141
158
  type GetImagesResponse = z.infer<typeof getImagesResponseSchema>;
142
159
  declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema, typeof getImagesResponseSchema, GetImagesQueryParams> {
143
160
  readonly method: "GET";
144
161
  readonly contentType: "application/json";
145
162
  readonly accept: "application/json";
146
163
  readonly inputSchema: z.ZodUndefined;
147
- readonly outputSchema: z.ZodObject<{
164
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
148
165
  data: z.ZodArray<z.ZodObject<{
149
166
  id: z.ZodString;
150
167
  variant: z.ZodNullable<z.ZodString>;
@@ -171,7 +188,24 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
171
188
  currentPage: z.ZodCoercedNumber<unknown>;
172
189
  lastPage: z.ZodCoercedNumber<unknown>;
173
190
  }, z.core.$strip>;
174
- }, 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>>]>;
175
209
  readonly querySchema: z.ZodObject<{
176
210
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
177
211
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -219,7 +253,7 @@ declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
219
253
  type GetImagesFromPointOfSaleQueryParams = z.infer<typeof getImagesFromPointOfSaleQuerySchema>;
220
254
  declare const getImagesFromPointOfSaleInputSchema: z.ZodUndefined;
221
255
  type GetImagesFromPointOfSaleInput = z.infer<typeof getImagesFromPointOfSaleInputSchema>;
222
- declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
256
+ declare const getImagesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
223
257
  data: z.ZodArray<z.ZodObject<{
224
258
  id: z.ZodString;
225
259
  variant: z.ZodNullable<z.ZodString>;
@@ -246,14 +280,31 @@ declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
246
280
  currentPage: z.ZodCoercedNumber<unknown>;
247
281
  lastPage: z.ZodCoercedNumber<unknown>;
248
282
  }, z.core.$strip>;
249
- }, 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>>]>;
250
301
  type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
251
302
  declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
252
303
  readonly method: "GET";
253
304
  readonly contentType: "application/json";
254
305
  readonly accept: "application/json";
255
306
  readonly inputSchema: z.ZodUndefined;
256
- readonly outputSchema: z.ZodObject<{
307
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
257
308
  data: z.ZodArray<z.ZodObject<{
258
309
  id: z.ZodString;
259
310
  variant: z.ZodNullable<z.ZodString>;
@@ -280,7 +331,24 @@ declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImag
280
331
  currentPage: z.ZodCoercedNumber<unknown>;
281
332
  lastPage: z.ZodCoercedNumber<unknown>;
282
333
  }, z.core.$strip>;
283
- }, 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>>]>;
284
352
  readonly querySchema: z.ZodObject<{
285
353
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
286
354
  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.ZodObject<{
113
+ declare const getImagesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
114
114
  data: z.ZodArray<z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  variant: z.ZodNullable<z.ZodString>;
@@ -137,14 +137,31 @@ declare const getImagesResponseSchema: z.ZodObject<{
137
137
  currentPage: z.ZodCoercedNumber<unknown>;
138
138
  lastPage: z.ZodCoercedNumber<unknown>;
139
139
  }, z.core.$strip>;
140
- }, 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>>]>;
141
158
  type GetImagesResponse = z.infer<typeof getImagesResponseSchema>;
142
159
  declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema, typeof getImagesResponseSchema, GetImagesQueryParams> {
143
160
  readonly method: "GET";
144
161
  readonly contentType: "application/json";
145
162
  readonly accept: "application/json";
146
163
  readonly inputSchema: z.ZodUndefined;
147
- readonly outputSchema: z.ZodObject<{
164
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
148
165
  data: z.ZodArray<z.ZodObject<{
149
166
  id: z.ZodString;
150
167
  variant: z.ZodNullable<z.ZodString>;
@@ -171,7 +188,24 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
171
188
  currentPage: z.ZodCoercedNumber<unknown>;
172
189
  lastPage: z.ZodCoercedNumber<unknown>;
173
190
  }, z.core.$strip>;
174
- }, 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>>]>;
175
209
  readonly querySchema: z.ZodObject<{
176
210
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
177
211
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -219,7 +253,7 @@ declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
219
253
  type GetImagesFromPointOfSaleQueryParams = z.infer<typeof getImagesFromPointOfSaleQuerySchema>;
220
254
  declare const getImagesFromPointOfSaleInputSchema: z.ZodUndefined;
221
255
  type GetImagesFromPointOfSaleInput = z.infer<typeof getImagesFromPointOfSaleInputSchema>;
222
- declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
256
+ declare const getImagesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
223
257
  data: z.ZodArray<z.ZodObject<{
224
258
  id: z.ZodString;
225
259
  variant: z.ZodNullable<z.ZodString>;
@@ -246,14 +280,31 @@ declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
246
280
  currentPage: z.ZodCoercedNumber<unknown>;
247
281
  lastPage: z.ZodCoercedNumber<unknown>;
248
282
  }, z.core.$strip>;
249
- }, 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>>]>;
250
301
  type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
251
302
  declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
252
303
  readonly method: "GET";
253
304
  readonly contentType: "application/json";
254
305
  readonly accept: "application/json";
255
306
  readonly inputSchema: z.ZodUndefined;
256
- readonly outputSchema: z.ZodObject<{
307
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
257
308
  data: z.ZodArray<z.ZodObject<{
258
309
  id: z.ZodString;
259
310
  variant: z.ZodNullable<z.ZodString>;
@@ -280,7 +331,24 @@ declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImag
280
331
  currentPage: z.ZodCoercedNumber<unknown>;
281
332
  lastPage: z.ZodCoercedNumber<unknown>;
282
333
  }, z.core.$strip>;
283
- }, 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>>]>;
284
352
  readonly querySchema: z.ZodObject<{
285
353
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
286
354
  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 { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
11222
+ import { mixedPaginationSchema } from "@deliverart/sdk-js-global-types";
11223
11223
  var getImagesQuerySchema = imagesQuerySchema;
11224
11224
  var getImagesInputSchema = external_exports.undefined();
11225
- var getImagesResponseSchema = createPaginatedSchema(imageSchema);
11225
+ var getImagesResponseSchema = mixedPaginationSchema(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 { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
11246
+ import { mixedPaginationSchema as mixedPaginationSchema2 } from "@deliverart/sdk-js-global-types";
11247
11247
  var getImagesFromPointOfSaleQuerySchema = imagesQuerySchema;
11248
11248
  var getImagesFromPointOfSaleInputSchema = external_exports.undefined();
11249
- var getImagesFromPointOfSaleResponseSchema = createPaginatedSchema2(imageSchema);
11249
+ var getImagesFromPointOfSaleResponseSchema = mixedPaginationSchema2(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.0",
4
+ "version": "2.6.1",
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-point-of-sale": "2.6.0",
22
- "@deliverart/sdk-js-core": "2.6.0",
23
- "@deliverart/sdk-js-global-types": "2.6.0"
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"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"