@deliverart/sdk-js-image 2.4.15 → 2.4.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/index.cjs +76 -5
- package/dist/index.d.cts +148 -1
- package/dist/index.d.ts +148 -1
- package/dist/index.js +68 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -23,16 +23,23 @@ __export(index_exports, {
|
|
|
23
23
|
DeleteImage: () => DeleteImage,
|
|
24
24
|
GetImageDetails: () => GetImageDetails,
|
|
25
25
|
GetImages: () => GetImages,
|
|
26
|
+
GetImagesFromPointOfSale: () => GetImagesFromPointOfSale,
|
|
27
|
+
UpdateImage: () => UpdateImage,
|
|
26
28
|
deleteImageInputSchema: () => deleteImageInputSchema,
|
|
27
29
|
deleteImageResponseSchema: () => deleteImageResponseSchema,
|
|
28
30
|
getImageDetailsInputSchema: () => getImageDetailsInputSchema,
|
|
29
31
|
getImageDetailsResponseSchema: () => getImageDetailsResponseSchema,
|
|
32
|
+
getImagesFromPointOfSaleInputSchema: () => getImagesFromPointOfSaleInputSchema,
|
|
33
|
+
getImagesFromPointOfSaleQuerySchema: () => getImagesFromPointOfSaleQuerySchema,
|
|
34
|
+
getImagesFromPointOfSaleResponseSchema: () => getImagesFromPointOfSaleResponseSchema,
|
|
30
35
|
getImagesInputSchema: () => getImagesInputSchema,
|
|
31
36
|
getImagesQuerySchema: () => getImagesQuerySchema,
|
|
32
37
|
getImagesResponseSchema: () => getImagesResponseSchema,
|
|
33
38
|
imageIriSchema: () => imageIriSchema,
|
|
34
39
|
imageNullableIriSchema: () => imageNullableIriSchema,
|
|
35
|
-
imageSchema: () => imageSchema
|
|
40
|
+
imageSchema: () => imageSchema,
|
|
41
|
+
updateImageInputSchema: () => updateImageInputSchema,
|
|
42
|
+
updateImageResponseSchema: () => updateImageResponseSchema
|
|
36
43
|
});
|
|
37
44
|
module.exports = __toCommonJS(index_exports);
|
|
38
45
|
|
|
@@ -11188,6 +11195,7 @@ var baseImageSchema = external_exports.object({
|
|
|
11188
11195
|
variant: external_exports.string().nullable(),
|
|
11189
11196
|
contentUrl: external_exports.url(),
|
|
11190
11197
|
filePath: external_exports.string(),
|
|
11198
|
+
tags: external_exports.array(external_exports.string()).default([]),
|
|
11191
11199
|
createdAt: import_sdk_js_global_types.datetimeSchema,
|
|
11192
11200
|
updatedAt: import_sdk_js_global_types.datetimeSchema
|
|
11193
11201
|
});
|
|
@@ -11269,23 +11277,86 @@ var GetImages = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
|
11269
11277
|
}
|
|
11270
11278
|
};
|
|
11271
11279
|
|
|
11272
|
-
// src/
|
|
11280
|
+
// src/requests/GetImagesFromPointOfSale.ts
|
|
11281
|
+
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11273
11282
|
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
11274
|
-
var
|
|
11275
|
-
|
|
11283
|
+
var getImagesFromPointOfSaleQuerySchema = external_exports.object({
|
|
11284
|
+
page: external_exports.coerce.number().optional(),
|
|
11285
|
+
"exists[original]": external_exports.coerce.boolean().optional()
|
|
11286
|
+
});
|
|
11287
|
+
var getImagesFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11288
|
+
var getImagesFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types4.createPaginatedSchema)(imageSchema);
|
|
11289
|
+
var GetImagesFromPointOfSale = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
11290
|
+
constructor(pointOfSaleId, options) {
|
|
11291
|
+
super(void 0, options);
|
|
11292
|
+
this.method = "GET";
|
|
11293
|
+
this.contentType = "application/json";
|
|
11294
|
+
this.accept = "application/json";
|
|
11295
|
+
this.inputSchema = getImagesFromPointOfSaleInputSchema;
|
|
11296
|
+
this.outputSchema = getImagesFromPointOfSaleResponseSchema;
|
|
11297
|
+
this.querySchema = getImagesFromPointOfSaleQuerySchema;
|
|
11298
|
+
this.headersSchema = void 0;
|
|
11299
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
11300
|
+
}
|
|
11301
|
+
getPath() {
|
|
11302
|
+
return `/point_of_sales/${this.pointOfSaleId}/images`;
|
|
11303
|
+
}
|
|
11304
|
+
parseResponse(data, rawResponse) {
|
|
11305
|
+
const images = external_exports.array(imageSchema).parse(data);
|
|
11306
|
+
return this.validateOutput({
|
|
11307
|
+
data: images,
|
|
11308
|
+
pagination: (0, import_sdk_js_global_types4.responseToPagination)(rawResponse)
|
|
11309
|
+
});
|
|
11310
|
+
}
|
|
11311
|
+
};
|
|
11312
|
+
|
|
11313
|
+
// src/requests/UpdateImage.ts
|
|
11314
|
+
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
11315
|
+
var updateImageInputSchema = imageSchema.pick({
|
|
11316
|
+
tags: true
|
|
11317
|
+
}).partial();
|
|
11318
|
+
var updateImageResponseSchema = imageSchema;
|
|
11319
|
+
var UpdateImage = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
11320
|
+
constructor(imageId, input) {
|
|
11321
|
+
super(input);
|
|
11322
|
+
this.method = "PATCH";
|
|
11323
|
+
this.contentType = "application/merge-patch+json";
|
|
11324
|
+
this.accept = "application/json";
|
|
11325
|
+
this.inputSchema = updateImageInputSchema;
|
|
11326
|
+
this.outputSchema = updateImageResponseSchema;
|
|
11327
|
+
this.querySchema = void 0;
|
|
11328
|
+
this.headersSchema = void 0;
|
|
11329
|
+
this.imageId = imageId;
|
|
11330
|
+
}
|
|
11331
|
+
getPath() {
|
|
11332
|
+
return `/images/${this.imageId}`;
|
|
11333
|
+
}
|
|
11334
|
+
};
|
|
11335
|
+
|
|
11336
|
+
// src/types.ts
|
|
11337
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11338
|
+
var imageIriSchema = (0, import_sdk_js_global_types5.iriSchema)("/images/:id");
|
|
11339
|
+
var imageNullableIriSchema = (0, import_sdk_js_global_types5.iriNullableSchema)("/images/:id");
|
|
11276
11340
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11277
11341
|
0 && (module.exports = {
|
|
11278
11342
|
DeleteImage,
|
|
11279
11343
|
GetImageDetails,
|
|
11280
11344
|
GetImages,
|
|
11345
|
+
GetImagesFromPointOfSale,
|
|
11346
|
+
UpdateImage,
|
|
11281
11347
|
deleteImageInputSchema,
|
|
11282
11348
|
deleteImageResponseSchema,
|
|
11283
11349
|
getImageDetailsInputSchema,
|
|
11284
11350
|
getImageDetailsResponseSchema,
|
|
11351
|
+
getImagesFromPointOfSaleInputSchema,
|
|
11352
|
+
getImagesFromPointOfSaleQuerySchema,
|
|
11353
|
+
getImagesFromPointOfSaleResponseSchema,
|
|
11285
11354
|
getImagesInputSchema,
|
|
11286
11355
|
getImagesQuerySchema,
|
|
11287
11356
|
getImagesResponseSchema,
|
|
11288
11357
|
imageIriSchema,
|
|
11289
11358
|
imageNullableIriSchema,
|
|
11290
|
-
imageSchema
|
|
11359
|
+
imageSchema,
|
|
11360
|
+
updateImageInputSchema,
|
|
11361
|
+
updateImageResponseSchema
|
|
11291
11362
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,7 @@ declare const imageSchema: z.ZodObject<{
|
|
|
8
8
|
variant: z.ZodNullable<z.ZodString>;
|
|
9
9
|
contentUrl: z.ZodURL;
|
|
10
10
|
filePath: z.ZodString;
|
|
11
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
12
|
createdAt: z.ZodString;
|
|
12
13
|
updatedAt: z.ZodString;
|
|
13
14
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -15,6 +16,7 @@ declare const imageSchema: z.ZodObject<{
|
|
|
15
16
|
variant: z.ZodNullable<z.ZodString>;
|
|
16
17
|
contentUrl: z.ZodURL;
|
|
17
18
|
filePath: z.ZodString;
|
|
19
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18
20
|
createdAt: z.ZodString;
|
|
19
21
|
updatedAt: z.ZodString;
|
|
20
22
|
}, z.core.$strip>>>;
|
|
@@ -43,6 +45,7 @@ declare const getImageDetailsResponseSchema: z.ZodObject<{
|
|
|
43
45
|
variant: z.ZodNullable<z.ZodString>;
|
|
44
46
|
contentUrl: z.ZodURL;
|
|
45
47
|
filePath: z.ZodString;
|
|
48
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
49
|
createdAt: z.ZodString;
|
|
47
50
|
updatedAt: z.ZodString;
|
|
48
51
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -50,6 +53,7 @@ declare const getImageDetailsResponseSchema: z.ZodObject<{
|
|
|
50
53
|
variant: z.ZodNullable<z.ZodString>;
|
|
51
54
|
contentUrl: z.ZodURL;
|
|
52
55
|
filePath: z.ZodString;
|
|
56
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
53
57
|
createdAt: z.ZodString;
|
|
54
58
|
updatedAt: z.ZodString;
|
|
55
59
|
}, z.core.$strip>>>;
|
|
@@ -65,6 +69,7 @@ declare class GetImageDetails extends AbstractApiRequest<typeof getImageDetailsI
|
|
|
65
69
|
variant: z.ZodNullable<z.ZodString>;
|
|
66
70
|
contentUrl: z.ZodURL;
|
|
67
71
|
filePath: z.ZodString;
|
|
72
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
73
|
createdAt: z.ZodString;
|
|
69
74
|
updatedAt: z.ZodString;
|
|
70
75
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -72,6 +77,7 @@ declare class GetImageDetails extends AbstractApiRequest<typeof getImageDetailsI
|
|
|
72
77
|
variant: z.ZodNullable<z.ZodString>;
|
|
73
78
|
contentUrl: z.ZodURL;
|
|
74
79
|
filePath: z.ZodString;
|
|
80
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
75
81
|
createdAt: z.ZodString;
|
|
76
82
|
updatedAt: z.ZodString;
|
|
77
83
|
}, z.core.$strip>>>;
|
|
@@ -95,6 +101,7 @@ declare const getImagesResponseSchema: z.ZodObject<{
|
|
|
95
101
|
variant: z.ZodNullable<z.ZodString>;
|
|
96
102
|
contentUrl: z.ZodURL;
|
|
97
103
|
filePath: z.ZodString;
|
|
104
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
105
|
createdAt: z.ZodString;
|
|
99
106
|
updatedAt: z.ZodString;
|
|
100
107
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -102,6 +109,7 @@ declare const getImagesResponseSchema: z.ZodObject<{
|
|
|
102
109
|
variant: z.ZodNullable<z.ZodString>;
|
|
103
110
|
contentUrl: z.ZodURL;
|
|
104
111
|
filePath: z.ZodString;
|
|
112
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
105
113
|
createdAt: z.ZodString;
|
|
106
114
|
updatedAt: z.ZodString;
|
|
107
115
|
}, z.core.$strip>>>;
|
|
@@ -127,6 +135,7 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
|
|
|
127
135
|
variant: z.ZodNullable<z.ZodString>;
|
|
128
136
|
contentUrl: z.ZodURL;
|
|
129
137
|
filePath: z.ZodString;
|
|
138
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
130
139
|
createdAt: z.ZodString;
|
|
131
140
|
updatedAt: z.ZodString;
|
|
132
141
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -134,6 +143,7 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
|
|
|
134
143
|
variant: z.ZodNullable<z.ZodString>;
|
|
135
144
|
contentUrl: z.ZodURL;
|
|
136
145
|
filePath: z.ZodString;
|
|
146
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
137
147
|
createdAt: z.ZodString;
|
|
138
148
|
updatedAt: z.ZodString;
|
|
139
149
|
}, z.core.$strip>>>;
|
|
@@ -158,9 +168,146 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
|
|
|
158
168
|
parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
|
|
159
169
|
}
|
|
160
170
|
|
|
171
|
+
declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
172
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
173
|
+
'exists[original]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
type GetImagesFromPointOfSaleQueryParams = z.infer<typeof getImagesFromPointOfSaleQuerySchema>;
|
|
176
|
+
declare const getImagesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
177
|
+
type GetImagesFromPointOfSaleInput = z.infer<typeof getImagesFromPointOfSaleInputSchema>;
|
|
178
|
+
declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
179
|
+
data: z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
182
|
+
contentUrl: z.ZodURL;
|
|
183
|
+
filePath: z.ZodString;
|
|
184
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
185
|
+
createdAt: z.ZodString;
|
|
186
|
+
updatedAt: z.ZodString;
|
|
187
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
190
|
+
contentUrl: z.ZodURL;
|
|
191
|
+
filePath: z.ZodString;
|
|
192
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
193
|
+
createdAt: z.ZodString;
|
|
194
|
+
updatedAt: z.ZodString;
|
|
195
|
+
}, z.core.$strip>>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
pagination: z.ZodObject<{
|
|
198
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
199
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
200
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
201
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
202
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
203
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
|
|
207
|
+
declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
|
|
208
|
+
readonly method = "GET";
|
|
209
|
+
readonly contentType = "application/json";
|
|
210
|
+
readonly accept = "application/json";
|
|
211
|
+
readonly inputSchema: z.ZodUndefined;
|
|
212
|
+
readonly outputSchema: z.ZodObject<{
|
|
213
|
+
data: z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
216
|
+
contentUrl: z.ZodURL;
|
|
217
|
+
filePath: z.ZodString;
|
|
218
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
219
|
+
createdAt: z.ZodString;
|
|
220
|
+
updatedAt: z.ZodString;
|
|
221
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
224
|
+
contentUrl: z.ZodURL;
|
|
225
|
+
filePath: z.ZodString;
|
|
226
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
227
|
+
createdAt: z.ZodString;
|
|
228
|
+
updatedAt: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
pagination: z.ZodObject<{
|
|
232
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
233
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
234
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
235
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
236
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
237
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
readonly querySchema: z.ZodObject<{
|
|
241
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
242
|
+
'exists[original]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
readonly headersSchema: undefined;
|
|
245
|
+
private readonly pointOfSaleId;
|
|
246
|
+
constructor(pointOfSaleId: string, options?: {
|
|
247
|
+
query?: GetImagesFromPointOfSaleQueryParams;
|
|
248
|
+
});
|
|
249
|
+
getPath(): string;
|
|
250
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare const updateImageInputSchema: z.ZodObject<{
|
|
254
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
type UpdateImageInput = z.input<typeof updateImageInputSchema>;
|
|
257
|
+
declare const updateImageResponseSchema: z.ZodObject<{
|
|
258
|
+
id: z.ZodString;
|
|
259
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
260
|
+
contentUrl: z.ZodURL;
|
|
261
|
+
filePath: z.ZodString;
|
|
262
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
263
|
+
createdAt: z.ZodString;
|
|
264
|
+
updatedAt: z.ZodString;
|
|
265
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
268
|
+
contentUrl: z.ZodURL;
|
|
269
|
+
filePath: z.ZodString;
|
|
270
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
271
|
+
createdAt: z.ZodString;
|
|
272
|
+
updatedAt: z.ZodString;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
type UpdateImageResponse = z.infer<typeof updateImageResponseSchema>;
|
|
276
|
+
declare class UpdateImage extends AbstractApiRequest<typeof updateImageInputSchema, typeof updateImageResponseSchema> {
|
|
277
|
+
readonly method = "PATCH";
|
|
278
|
+
readonly contentType = "application/merge-patch+json";
|
|
279
|
+
readonly accept = "application/json";
|
|
280
|
+
readonly inputSchema: z.ZodObject<{
|
|
281
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
readonly outputSchema: 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>;
|
|
301
|
+
readonly querySchema: undefined;
|
|
302
|
+
readonly headersSchema: undefined;
|
|
303
|
+
private readonly imageId;
|
|
304
|
+
constructor(imageId: string, input: UpdateImageInput);
|
|
305
|
+
getPath(): string;
|
|
306
|
+
}
|
|
307
|
+
|
|
161
308
|
declare const imageIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>;
|
|
162
309
|
type imageIri = z.infer<typeof imageIriSchema>;
|
|
163
310
|
declare const imageNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id"> | null, unknown>>;
|
|
164
311
|
type imageNullableIri = z.infer<typeof imageNullableIriSchema>;
|
|
165
312
|
|
|
166
|
-
export { DeleteImage, GetImageDetails, type GetImageDetailsInput, type GetImageDetailsResponse, GetImages, type GetImagesInput, type GetImagesQueryParams, type GetImagesResponse, type Image, deleteImageInputSchema, deleteImageResponseSchema, getImageDetailsInputSchema, getImageDetailsResponseSchema, getImagesInputSchema, getImagesQuerySchema, getImagesResponseSchema, type imageIri, imageIriSchema, type imageNullableIri, imageNullableIriSchema, imageSchema };
|
|
313
|
+
export { DeleteImage, GetImageDetails, type GetImageDetailsInput, type GetImageDetailsResponse, GetImages, GetImagesFromPointOfSale, type GetImagesFromPointOfSaleInput, type GetImagesFromPointOfSaleQueryParams, type GetImagesFromPointOfSaleResponse, type GetImagesInput, type GetImagesQueryParams, type GetImagesResponse, type Image, UpdateImage, type UpdateImageInput, type UpdateImageResponse, deleteImageInputSchema, deleteImageResponseSchema, getImageDetailsInputSchema, getImageDetailsResponseSchema, getImagesFromPointOfSaleInputSchema, getImagesFromPointOfSaleQuerySchema, getImagesFromPointOfSaleResponseSchema, getImagesInputSchema, getImagesQuerySchema, getImagesResponseSchema, type imageIri, imageIriSchema, type imageNullableIri, imageNullableIriSchema, imageSchema, updateImageInputSchema, updateImageResponseSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const imageSchema: z.ZodObject<{
|
|
|
8
8
|
variant: z.ZodNullable<z.ZodString>;
|
|
9
9
|
contentUrl: z.ZodURL;
|
|
10
10
|
filePath: z.ZodString;
|
|
11
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
12
|
createdAt: z.ZodString;
|
|
12
13
|
updatedAt: z.ZodString;
|
|
13
14
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -15,6 +16,7 @@ declare const imageSchema: z.ZodObject<{
|
|
|
15
16
|
variant: z.ZodNullable<z.ZodString>;
|
|
16
17
|
contentUrl: z.ZodURL;
|
|
17
18
|
filePath: z.ZodString;
|
|
19
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18
20
|
createdAt: z.ZodString;
|
|
19
21
|
updatedAt: z.ZodString;
|
|
20
22
|
}, z.core.$strip>>>;
|
|
@@ -43,6 +45,7 @@ declare const getImageDetailsResponseSchema: z.ZodObject<{
|
|
|
43
45
|
variant: z.ZodNullable<z.ZodString>;
|
|
44
46
|
contentUrl: z.ZodURL;
|
|
45
47
|
filePath: z.ZodString;
|
|
48
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
49
|
createdAt: z.ZodString;
|
|
47
50
|
updatedAt: z.ZodString;
|
|
48
51
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -50,6 +53,7 @@ declare const getImageDetailsResponseSchema: z.ZodObject<{
|
|
|
50
53
|
variant: z.ZodNullable<z.ZodString>;
|
|
51
54
|
contentUrl: z.ZodURL;
|
|
52
55
|
filePath: z.ZodString;
|
|
56
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
53
57
|
createdAt: z.ZodString;
|
|
54
58
|
updatedAt: z.ZodString;
|
|
55
59
|
}, z.core.$strip>>>;
|
|
@@ -65,6 +69,7 @@ declare class GetImageDetails extends AbstractApiRequest<typeof getImageDetailsI
|
|
|
65
69
|
variant: z.ZodNullable<z.ZodString>;
|
|
66
70
|
contentUrl: z.ZodURL;
|
|
67
71
|
filePath: z.ZodString;
|
|
72
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
73
|
createdAt: z.ZodString;
|
|
69
74
|
updatedAt: z.ZodString;
|
|
70
75
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -72,6 +77,7 @@ declare class GetImageDetails extends AbstractApiRequest<typeof getImageDetailsI
|
|
|
72
77
|
variant: z.ZodNullable<z.ZodString>;
|
|
73
78
|
contentUrl: z.ZodURL;
|
|
74
79
|
filePath: z.ZodString;
|
|
80
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
75
81
|
createdAt: z.ZodString;
|
|
76
82
|
updatedAt: z.ZodString;
|
|
77
83
|
}, z.core.$strip>>>;
|
|
@@ -95,6 +101,7 @@ declare const getImagesResponseSchema: z.ZodObject<{
|
|
|
95
101
|
variant: z.ZodNullable<z.ZodString>;
|
|
96
102
|
contentUrl: z.ZodURL;
|
|
97
103
|
filePath: z.ZodString;
|
|
104
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
105
|
createdAt: z.ZodString;
|
|
99
106
|
updatedAt: z.ZodString;
|
|
100
107
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -102,6 +109,7 @@ declare const getImagesResponseSchema: z.ZodObject<{
|
|
|
102
109
|
variant: z.ZodNullable<z.ZodString>;
|
|
103
110
|
contentUrl: z.ZodURL;
|
|
104
111
|
filePath: z.ZodString;
|
|
112
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
105
113
|
createdAt: z.ZodString;
|
|
106
114
|
updatedAt: z.ZodString;
|
|
107
115
|
}, z.core.$strip>>>;
|
|
@@ -127,6 +135,7 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
|
|
|
127
135
|
variant: z.ZodNullable<z.ZodString>;
|
|
128
136
|
contentUrl: z.ZodURL;
|
|
129
137
|
filePath: z.ZodString;
|
|
138
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
130
139
|
createdAt: z.ZodString;
|
|
131
140
|
updatedAt: z.ZodString;
|
|
132
141
|
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -134,6 +143,7 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
|
|
|
134
143
|
variant: z.ZodNullable<z.ZodString>;
|
|
135
144
|
contentUrl: z.ZodURL;
|
|
136
145
|
filePath: z.ZodString;
|
|
146
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
137
147
|
createdAt: z.ZodString;
|
|
138
148
|
updatedAt: z.ZodString;
|
|
139
149
|
}, z.core.$strip>>>;
|
|
@@ -158,9 +168,146 @@ declare class GetImages extends AbstractApiRequest<typeof getImagesInputSchema,
|
|
|
158
168
|
parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
|
|
159
169
|
}
|
|
160
170
|
|
|
171
|
+
declare const getImagesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
172
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
173
|
+
'exists[original]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
type GetImagesFromPointOfSaleQueryParams = z.infer<typeof getImagesFromPointOfSaleQuerySchema>;
|
|
176
|
+
declare const getImagesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
177
|
+
type GetImagesFromPointOfSaleInput = z.infer<typeof getImagesFromPointOfSaleInputSchema>;
|
|
178
|
+
declare const getImagesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
179
|
+
data: z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
182
|
+
contentUrl: z.ZodURL;
|
|
183
|
+
filePath: z.ZodString;
|
|
184
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
185
|
+
createdAt: z.ZodString;
|
|
186
|
+
updatedAt: z.ZodString;
|
|
187
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
190
|
+
contentUrl: z.ZodURL;
|
|
191
|
+
filePath: z.ZodString;
|
|
192
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
193
|
+
createdAt: z.ZodString;
|
|
194
|
+
updatedAt: z.ZodString;
|
|
195
|
+
}, z.core.$strip>>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
pagination: z.ZodObject<{
|
|
198
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
199
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
200
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
201
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
202
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
203
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
type GetImagesFromPointOfSaleResponse = z.infer<typeof getImagesFromPointOfSaleResponseSchema>;
|
|
207
|
+
declare class GetImagesFromPointOfSale extends AbstractApiRequest<typeof getImagesFromPointOfSaleInputSchema, typeof getImagesFromPointOfSaleResponseSchema, GetImagesFromPointOfSaleQueryParams> {
|
|
208
|
+
readonly method = "GET";
|
|
209
|
+
readonly contentType = "application/json";
|
|
210
|
+
readonly accept = "application/json";
|
|
211
|
+
readonly inputSchema: z.ZodUndefined;
|
|
212
|
+
readonly outputSchema: z.ZodObject<{
|
|
213
|
+
data: z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
216
|
+
contentUrl: z.ZodURL;
|
|
217
|
+
filePath: z.ZodString;
|
|
218
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
219
|
+
createdAt: z.ZodString;
|
|
220
|
+
updatedAt: z.ZodString;
|
|
221
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
224
|
+
contentUrl: z.ZodURL;
|
|
225
|
+
filePath: z.ZodString;
|
|
226
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
227
|
+
createdAt: z.ZodString;
|
|
228
|
+
updatedAt: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
pagination: z.ZodObject<{
|
|
232
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
233
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
234
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
235
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
236
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
237
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
readonly querySchema: z.ZodObject<{
|
|
241
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
242
|
+
'exists[original]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
readonly headersSchema: undefined;
|
|
245
|
+
private readonly pointOfSaleId;
|
|
246
|
+
constructor(pointOfSaleId: string, options?: {
|
|
247
|
+
query?: GetImagesFromPointOfSaleQueryParams;
|
|
248
|
+
});
|
|
249
|
+
getPath(): string;
|
|
250
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Image>;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare const updateImageInputSchema: z.ZodObject<{
|
|
254
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
type UpdateImageInput = z.input<typeof updateImageInputSchema>;
|
|
257
|
+
declare const updateImageResponseSchema: z.ZodObject<{
|
|
258
|
+
id: z.ZodString;
|
|
259
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
260
|
+
contentUrl: z.ZodURL;
|
|
261
|
+
filePath: z.ZodString;
|
|
262
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
263
|
+
createdAt: z.ZodString;
|
|
264
|
+
updatedAt: z.ZodString;
|
|
265
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
268
|
+
contentUrl: z.ZodURL;
|
|
269
|
+
filePath: z.ZodString;
|
|
270
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
271
|
+
createdAt: z.ZodString;
|
|
272
|
+
updatedAt: z.ZodString;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
type UpdateImageResponse = z.infer<typeof updateImageResponseSchema>;
|
|
276
|
+
declare class UpdateImage extends AbstractApiRequest<typeof updateImageInputSchema, typeof updateImageResponseSchema> {
|
|
277
|
+
readonly method = "PATCH";
|
|
278
|
+
readonly contentType = "application/merge-patch+json";
|
|
279
|
+
readonly accept = "application/json";
|
|
280
|
+
readonly inputSchema: z.ZodObject<{
|
|
281
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
readonly outputSchema: 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>;
|
|
301
|
+
readonly querySchema: undefined;
|
|
302
|
+
readonly headersSchema: undefined;
|
|
303
|
+
private readonly imageId;
|
|
304
|
+
constructor(imageId: string, input: UpdateImageInput);
|
|
305
|
+
getPath(): string;
|
|
306
|
+
}
|
|
307
|
+
|
|
161
308
|
declare const imageIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>;
|
|
162
309
|
type imageIri = z.infer<typeof imageIriSchema>;
|
|
163
310
|
declare const imageNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id"> | null, unknown>>;
|
|
164
311
|
type imageNullableIri = z.infer<typeof imageNullableIriSchema>;
|
|
165
312
|
|
|
166
|
-
export { DeleteImage, GetImageDetails, type GetImageDetailsInput, type GetImageDetailsResponse, GetImages, type GetImagesInput, type GetImagesQueryParams, type GetImagesResponse, type Image, deleteImageInputSchema, deleteImageResponseSchema, getImageDetailsInputSchema, getImageDetailsResponseSchema, getImagesInputSchema, getImagesQuerySchema, getImagesResponseSchema, type imageIri, imageIriSchema, type imageNullableIri, imageNullableIriSchema, imageSchema };
|
|
313
|
+
export { DeleteImage, GetImageDetails, type GetImageDetailsInput, type GetImageDetailsResponse, GetImages, GetImagesFromPointOfSale, type GetImagesFromPointOfSaleInput, type GetImagesFromPointOfSaleQueryParams, type GetImagesFromPointOfSaleResponse, type GetImagesInput, type GetImagesQueryParams, type GetImagesResponse, type Image, UpdateImage, type UpdateImageInput, type UpdateImageResponse, deleteImageInputSchema, deleteImageResponseSchema, getImageDetailsInputSchema, getImageDetailsResponseSchema, getImagesFromPointOfSaleInputSchema, getImagesFromPointOfSaleQuerySchema, getImagesFromPointOfSaleResponseSchema, getImagesInputSchema, getImagesQuerySchema, getImagesResponseSchema, type imageIri, imageIriSchema, type imageNullableIri, imageNullableIriSchema, imageSchema, updateImageInputSchema, updateImageResponseSchema };
|
package/dist/index.js
CHANGED
|
@@ -11156,6 +11156,7 @@ var baseImageSchema = external_exports.object({
|
|
|
11156
11156
|
variant: external_exports.string().nullable(),
|
|
11157
11157
|
contentUrl: external_exports.url(),
|
|
11158
11158
|
filePath: external_exports.string(),
|
|
11159
|
+
tags: external_exports.array(external_exports.string()).default([]),
|
|
11159
11160
|
createdAt: datetimeSchema,
|
|
11160
11161
|
updatedAt: datetimeSchema
|
|
11161
11162
|
});
|
|
@@ -11240,6 +11241,65 @@ var GetImages = class extends AbstractApiRequest3 {
|
|
|
11240
11241
|
}
|
|
11241
11242
|
};
|
|
11242
11243
|
|
|
11244
|
+
// src/requests/GetImagesFromPointOfSale.ts
|
|
11245
|
+
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
11246
|
+
import {
|
|
11247
|
+
createPaginatedSchema as createPaginatedSchema2,
|
|
11248
|
+
responseToPagination as responseToPagination2
|
|
11249
|
+
} from "@deliverart/sdk-js-global-types";
|
|
11250
|
+
var getImagesFromPointOfSaleQuerySchema = external_exports.object({
|
|
11251
|
+
page: external_exports.coerce.number().optional(),
|
|
11252
|
+
"exists[original]": external_exports.coerce.boolean().optional()
|
|
11253
|
+
});
|
|
11254
|
+
var getImagesFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11255
|
+
var getImagesFromPointOfSaleResponseSchema = createPaginatedSchema2(imageSchema);
|
|
11256
|
+
var GetImagesFromPointOfSale = class extends AbstractApiRequest4 {
|
|
11257
|
+
constructor(pointOfSaleId, options) {
|
|
11258
|
+
super(void 0, options);
|
|
11259
|
+
this.method = "GET";
|
|
11260
|
+
this.contentType = "application/json";
|
|
11261
|
+
this.accept = "application/json";
|
|
11262
|
+
this.inputSchema = getImagesFromPointOfSaleInputSchema;
|
|
11263
|
+
this.outputSchema = getImagesFromPointOfSaleResponseSchema;
|
|
11264
|
+
this.querySchema = getImagesFromPointOfSaleQuerySchema;
|
|
11265
|
+
this.headersSchema = void 0;
|
|
11266
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
11267
|
+
}
|
|
11268
|
+
getPath() {
|
|
11269
|
+
return `/point_of_sales/${this.pointOfSaleId}/images`;
|
|
11270
|
+
}
|
|
11271
|
+
parseResponse(data, rawResponse) {
|
|
11272
|
+
const images = external_exports.array(imageSchema).parse(data);
|
|
11273
|
+
return this.validateOutput({
|
|
11274
|
+
data: images,
|
|
11275
|
+
pagination: responseToPagination2(rawResponse)
|
|
11276
|
+
});
|
|
11277
|
+
}
|
|
11278
|
+
};
|
|
11279
|
+
|
|
11280
|
+
// src/requests/UpdateImage.ts
|
|
11281
|
+
import { AbstractApiRequest as AbstractApiRequest5 } from "@deliverart/sdk-js-core";
|
|
11282
|
+
var updateImageInputSchema = imageSchema.pick({
|
|
11283
|
+
tags: true
|
|
11284
|
+
}).partial();
|
|
11285
|
+
var updateImageResponseSchema = imageSchema;
|
|
11286
|
+
var UpdateImage = class extends AbstractApiRequest5 {
|
|
11287
|
+
constructor(imageId, input) {
|
|
11288
|
+
super(input);
|
|
11289
|
+
this.method = "PATCH";
|
|
11290
|
+
this.contentType = "application/merge-patch+json";
|
|
11291
|
+
this.accept = "application/json";
|
|
11292
|
+
this.inputSchema = updateImageInputSchema;
|
|
11293
|
+
this.outputSchema = updateImageResponseSchema;
|
|
11294
|
+
this.querySchema = void 0;
|
|
11295
|
+
this.headersSchema = void 0;
|
|
11296
|
+
this.imageId = imageId;
|
|
11297
|
+
}
|
|
11298
|
+
getPath() {
|
|
11299
|
+
return `/images/${this.imageId}`;
|
|
11300
|
+
}
|
|
11301
|
+
};
|
|
11302
|
+
|
|
11243
11303
|
// src/types.ts
|
|
11244
11304
|
import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
11245
11305
|
var imageIriSchema = iriSchema("/images/:id");
|
|
@@ -11248,14 +11308,21 @@ export {
|
|
|
11248
11308
|
DeleteImage,
|
|
11249
11309
|
GetImageDetails,
|
|
11250
11310
|
GetImages,
|
|
11311
|
+
GetImagesFromPointOfSale,
|
|
11312
|
+
UpdateImage,
|
|
11251
11313
|
deleteImageInputSchema,
|
|
11252
11314
|
deleteImageResponseSchema,
|
|
11253
11315
|
getImageDetailsInputSchema,
|
|
11254
11316
|
getImageDetailsResponseSchema,
|
|
11317
|
+
getImagesFromPointOfSaleInputSchema,
|
|
11318
|
+
getImagesFromPointOfSaleQuerySchema,
|
|
11319
|
+
getImagesFromPointOfSaleResponseSchema,
|
|
11255
11320
|
getImagesInputSchema,
|
|
11256
11321
|
getImagesQuerySchema,
|
|
11257
11322
|
getImagesResponseSchema,
|
|
11258
11323
|
imageIriSchema,
|
|
11259
11324
|
imageNullableIriSchema,
|
|
11260
|
-
imageSchema
|
|
11325
|
+
imageSchema,
|
|
11326
|
+
updateImageInputSchema,
|
|
11327
|
+
updateImageResponseSchema
|
|
11261
11328
|
};
|
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.4.
|
|
4
|
+
"version": "2.4.17",
|
|
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.4.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.4.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.4.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.17",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.4.17",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.17"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|