@deliverart/sdk-js-image 2.5.33 → 2.6.0

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
@@ -11276,17 +11276,12 @@ var GetImages = class extends import_sdk_js_core3.AbstractApiRequest {
11276
11276
  this.outputSchema = getImagesResponseSchema;
11277
11277
  this.querySchema = getImagesQuerySchema;
11278
11278
  this.headersSchema = void 0;
11279
+ this.listItemSchema = imageSchema;
11280
+ this.paginationDefaultEnabled = true;
11279
11281
  }
11280
11282
  getPath() {
11281
11283
  return "/images";
11282
11284
  }
11283
- parseResponse(data, rawResponse) {
11284
- const images = external_exports.array(imageSchema).parse(data);
11285
- return this.validateOutput({
11286
- data: images,
11287
- pagination: (0, import_sdk_js_global_types3.responseToPagination)(rawResponse)
11288
- });
11289
- }
11290
11285
  };
11291
11286
 
11292
11287
  // src/requests/GetImagesFromPointOfSale.ts
@@ -11305,18 +11300,13 @@ var GetImagesFromPointOfSale = class extends import_sdk_js_core4.AbstractApiRequ
11305
11300
  this.outputSchema = getImagesFromPointOfSaleResponseSchema;
11306
11301
  this.querySchema = getImagesFromPointOfSaleQuerySchema;
11307
11302
  this.headersSchema = void 0;
11303
+ this.listItemSchema = imageSchema;
11304
+ this.paginationDefaultEnabled = true;
11308
11305
  this.pointOfSaleId = pointOfSaleId;
11309
11306
  }
11310
11307
  getPath() {
11311
11308
  return `/point_of_sales/${this.pointOfSaleId}/images`;
11312
11309
  }
11313
- parseResponse(data, rawResponse) {
11314
- const images = external_exports.array(imageSchema).parse(data);
11315
- return this.validateOutput({
11316
- data: images,
11317
- pagination: (0, import_sdk_js_global_types4.responseToPagination)(rawResponse)
11318
- });
11319
- }
11320
11310
  };
11321
11311
 
11322
11312
  // src/requests/GetImageTagsFromPointOfSale.ts
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { AbstractApiRequest } from '@deliverart/sdk-js-core';
3
3
  import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
4
- import { Paginated } from '@deliverart/sdk-js-global-types';
5
4
 
6
5
  declare const imageSchema: z.ZodObject<{
7
6
  id: z.ZodString;
@@ -141,9 +140,9 @@ declare const getImagesResponseSchema: z.ZodObject<{
141
140
  }, z.core.$strip>;
142
141
  type GetImagesResponse = z.infer<typeof getImagesResponseSchema>;
143
142
  declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema, typeof getImagesResponseSchema, GetImagesQueryParams> {
144
- readonly method = "GET";
145
- readonly contentType = "application/json";
146
- readonly accept = "application/json";
143
+ readonly method: "GET";
144
+ readonly contentType: "application/json";
145
+ readonly accept: "application/json";
147
146
  readonly inputSchema: z.ZodUndefined;
148
147
  readonly outputSchema: z.ZodObject<{
149
148
  data: z.ZodArray<z.ZodObject<{
@@ -183,11 +182,29 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
183
182
  'exists[original]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
184
183
  }, z.core.$strip>;
185
184
  readonly headersSchema: undefined;
185
+ readonly listItemSchema: z.ZodObject<{
186
+ id: z.ZodString;
187
+ variant: z.ZodNullable<z.ZodString>;
188
+ contentUrl: z.ZodURL;
189
+ filePath: z.ZodString;
190
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
191
+ createdAt: z.ZodString;
192
+ updatedAt: z.ZodString;
193
+ variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
194
+ id: z.ZodString;
195
+ variant: z.ZodNullable<z.ZodString>;
196
+ contentUrl: z.ZodURL;
197
+ filePath: z.ZodString;
198
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
199
+ createdAt: z.ZodString;
200
+ updatedAt: z.ZodString;
201
+ }, z.core.$strip>>>;
202
+ }, z.core.$strip>;
203
+ readonly paginationDefaultEnabled = true;
186
204
  constructor(options?: {
187
205
  query?: GetImagesQueryParams;
188
206
  });
189
207
  getPath(): string;
190
- parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
191
208
  }
192
209
 
193
210
  declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
@@ -232,9 +249,9 @@ declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
232
249
  }, z.core.$strip>;
233
250
  type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
234
251
  declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
235
- readonly method = "GET";
236
- readonly contentType = "application/json";
237
- readonly accept = "application/json";
252
+ readonly method: "GET";
253
+ readonly contentType: "application/json";
254
+ readonly accept: "application/json";
238
255
  readonly inputSchema: z.ZodUndefined;
239
256
  readonly outputSchema: z.ZodObject<{
240
257
  data: z.ZodArray<z.ZodObject<{
@@ -274,12 +291,30 @@ declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImag
274
291
  'exists[original]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
275
292
  }, z.core.$strip>;
276
293
  readonly headersSchema: undefined;
294
+ readonly listItemSchema: z.ZodObject<{
295
+ id: z.ZodString;
296
+ variant: z.ZodNullable<z.ZodString>;
297
+ contentUrl: z.ZodURL;
298
+ filePath: z.ZodString;
299
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
300
+ createdAt: z.ZodString;
301
+ updatedAt: z.ZodString;
302
+ variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
303
+ id: z.ZodString;
304
+ variant: z.ZodNullable<z.ZodString>;
305
+ contentUrl: z.ZodURL;
306
+ filePath: z.ZodString;
307
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
308
+ createdAt: z.ZodString;
309
+ updatedAt: z.ZodString;
310
+ }, z.core.$strip>>>;
311
+ }, z.core.$strip>;
312
+ readonly paginationDefaultEnabled = true;
277
313
  private readonly pointOfSaleId;
278
314
  constructor(pointOfSaleId: string, options?: {
279
315
  query?: GetImagesFromPointOfSaleQueryParams;
280
316
  });
281
317
  getPath(): string;
282
- parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
283
318
  }
284
319
 
285
320
  declare const getImageTagsFromPointOfSaleInputSchema: z.ZodUndefined;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { AbstractApiRequest } from '@deliverart/sdk-js-core';
3
3
  import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
4
- import { Paginated } from '@deliverart/sdk-js-global-types';
5
4
 
6
5
  declare const imageSchema: z.ZodObject<{
7
6
  id: z.ZodString;
@@ -141,9 +140,9 @@ declare const getImagesResponseSchema: z.ZodObject<{
141
140
  }, z.core.$strip>;
142
141
  type GetImagesResponse = z.infer<typeof getImagesResponseSchema>;
143
142
  declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema, typeof getImagesResponseSchema, GetImagesQueryParams> {
144
- readonly method = "GET";
145
- readonly contentType = "application/json";
146
- readonly accept = "application/json";
143
+ readonly method: "GET";
144
+ readonly contentType: "application/json";
145
+ readonly accept: "application/json";
147
146
  readonly inputSchema: z.ZodUndefined;
148
147
  readonly outputSchema: z.ZodObject<{
149
148
  data: z.ZodArray<z.ZodObject<{
@@ -183,11 +182,29 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
183
182
  'exists[original]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
184
183
  }, z.core.$strip>;
185
184
  readonly headersSchema: undefined;
185
+ readonly listItemSchema: z.ZodObject<{
186
+ id: z.ZodString;
187
+ variant: z.ZodNullable<z.ZodString>;
188
+ contentUrl: z.ZodURL;
189
+ filePath: z.ZodString;
190
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
191
+ createdAt: z.ZodString;
192
+ updatedAt: z.ZodString;
193
+ variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
194
+ id: z.ZodString;
195
+ variant: z.ZodNullable<z.ZodString>;
196
+ contentUrl: z.ZodURL;
197
+ filePath: z.ZodString;
198
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
199
+ createdAt: z.ZodString;
200
+ updatedAt: z.ZodString;
201
+ }, z.core.$strip>>>;
202
+ }, z.core.$strip>;
203
+ readonly paginationDefaultEnabled = true;
186
204
  constructor(options?: {
187
205
  query?: GetImagesQueryParams;
188
206
  });
189
207
  getPath(): string;
190
- parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
191
208
  }
192
209
 
193
210
  declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
@@ -232,9 +249,9 @@ declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
232
249
  }, z.core.$strip>;
233
250
  type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
234
251
  declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
235
- readonly method = "GET";
236
- readonly contentType = "application/json";
237
- readonly accept = "application/json";
252
+ readonly method: "GET";
253
+ readonly contentType: "application/json";
254
+ readonly accept: "application/json";
238
255
  readonly inputSchema: z.ZodUndefined;
239
256
  readonly outputSchema: z.ZodObject<{
240
257
  data: z.ZodArray<z.ZodObject<{
@@ -274,12 +291,30 @@ declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImag
274
291
  'exists[original]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
275
292
  }, z.core.$strip>;
276
293
  readonly headersSchema: undefined;
294
+ readonly listItemSchema: z.ZodObject<{
295
+ id: z.ZodString;
296
+ variant: z.ZodNullable<z.ZodString>;
297
+ contentUrl: z.ZodURL;
298
+ filePath: z.ZodString;
299
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
300
+ createdAt: z.ZodString;
301
+ updatedAt: z.ZodString;
302
+ variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
303
+ id: z.ZodString;
304
+ variant: z.ZodNullable<z.ZodString>;
305
+ contentUrl: z.ZodURL;
306
+ filePath: z.ZodString;
307
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
308
+ createdAt: z.ZodString;
309
+ updatedAt: z.ZodString;
310
+ }, z.core.$strip>>>;
311
+ }, z.core.$strip>;
312
+ readonly paginationDefaultEnabled = true;
277
313
  private readonly pointOfSaleId;
278
314
  constructor(pointOfSaleId: string, options?: {
279
315
  query?: GetImagesFromPointOfSaleQueryParams;
280
316
  });
281
317
  getPath(): string;
282
- parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
283
318
  }
284
319
 
285
320
  declare const getImageTagsFromPointOfSaleInputSchema: z.ZodUndefined;
package/dist/index.js CHANGED
@@ -11219,10 +11219,7 @@ 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 {
11223
- createPaginatedSchema,
11224
- responseToPagination
11225
- } from "@deliverart/sdk-js-global-types";
11222
+ import { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
11226
11223
  var getImagesQuerySchema = imagesQuerySchema;
11227
11224
  var getImagesInputSchema = external_exports.undefined();
11228
11225
  var getImagesResponseSchema = createPaginatedSchema(imageSchema);
@@ -11236,25 +11233,17 @@ var GetImages = class extends AbstractApiRequest3 {
11236
11233
  this.outputSchema = getImagesResponseSchema;
11237
11234
  this.querySchema = getImagesQuerySchema;
11238
11235
  this.headersSchema = void 0;
11236
+ this.listItemSchema = imageSchema;
11237
+ this.paginationDefaultEnabled = true;
11239
11238
  }
11240
11239
  getPath() {
11241
11240
  return "/images";
11242
11241
  }
11243
- parseResponse(data, rawResponse) {
11244
- const images = external_exports.array(imageSchema).parse(data);
11245
- return this.validateOutput({
11246
- data: images,
11247
- pagination: responseToPagination(rawResponse)
11248
- });
11249
- }
11250
11242
  };
11251
11243
 
11252
11244
  // src/requests/GetImagesFromPointOfSale.ts
11253
11245
  import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
11254
- import {
11255
- createPaginatedSchema as createPaginatedSchema2,
11256
- responseToPagination as responseToPagination2
11257
- } from "@deliverart/sdk-js-global-types";
11246
+ import { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
11258
11247
  var getImagesFromPointOfSaleQuerySchema = imagesQuerySchema;
11259
11248
  var getImagesFromPointOfSaleInputSchema = external_exports.undefined();
11260
11249
  var getImagesFromPointOfSaleResponseSchema = createPaginatedSchema2(imageSchema);
@@ -11268,18 +11257,13 @@ var GetImagesFromPointOfSale = class extends AbstractApiRequest4 {
11268
11257
  this.outputSchema = getImagesFromPointOfSaleResponseSchema;
11269
11258
  this.querySchema = getImagesFromPointOfSaleQuerySchema;
11270
11259
  this.headersSchema = void 0;
11260
+ this.listItemSchema = imageSchema;
11261
+ this.paginationDefaultEnabled = true;
11271
11262
  this.pointOfSaleId = pointOfSaleId;
11272
11263
  }
11273
11264
  getPath() {
11274
11265
  return `/point_of_sales/${this.pointOfSaleId}/images`;
11275
11266
  }
11276
- parseResponse(data, rawResponse) {
11277
- const images = external_exports.array(imageSchema).parse(data);
11278
- return this.validateOutput({
11279
- data: images,
11280
- pagination: responseToPagination2(rawResponse)
11281
- });
11282
- }
11283
11267
  };
11284
11268
 
11285
11269
  // src/requests/GetImageTagsFromPointOfSale.ts
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.5.33",
4
+ "version": "2.6.0",
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-global-types": "2.5.33",
22
- "@deliverart/sdk-js-point-of-sale": "2.5.33",
23
- "@deliverart/sdk-js-core": "2.5.33"
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"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"