@teemill/product-catalog 1.43.0 → 1.45.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/README.md +2 -2
- package/api.ts +197 -60
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +143 -57
- package/dist/api.js +84 -7
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +143 -57
- package/dist/esm/api.js +83 -6
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.45.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -132,7 +132,13 @@ export interface ApplicationSet {
|
|
|
132
132
|
* @type {string}
|
|
133
133
|
* @memberof ApplicationSet
|
|
134
134
|
*/
|
|
135
|
-
'id'
|
|
135
|
+
'id': string;
|
|
136
|
+
/**
|
|
137
|
+
* A reference to the resource location
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof ApplicationSet
|
|
140
|
+
*/
|
|
141
|
+
'ref': string;
|
|
136
142
|
/**
|
|
137
143
|
* Name of the application set
|
|
138
144
|
* @type {string}
|
|
@@ -168,7 +174,19 @@ export interface ApplicationSet {
|
|
|
168
174
|
* @type {Array<ApplicationSetRecord>}
|
|
169
175
|
* @memberof ApplicationSet
|
|
170
176
|
*/
|
|
171
|
-
'records'
|
|
177
|
+
'records': Array<ApplicationSetRecord>;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof ApplicationSet
|
|
182
|
+
*/
|
|
183
|
+
'createdAt': string;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof ApplicationSet
|
|
188
|
+
*/
|
|
189
|
+
'updatedAt': string;
|
|
172
190
|
}
|
|
173
191
|
/**
|
|
174
192
|
*
|
|
@@ -253,10 +271,10 @@ export interface Attribute {
|
|
|
253
271
|
'value': string;
|
|
254
272
|
/**
|
|
255
273
|
*
|
|
256
|
-
* @type {
|
|
274
|
+
* @type {AttributeThumbnail}
|
|
257
275
|
* @memberof Attribute
|
|
258
276
|
*/
|
|
259
|
-
'thumbnail'?:
|
|
277
|
+
'thumbnail'?: AttributeThumbnail;
|
|
260
278
|
/**
|
|
261
279
|
* Attribute tags
|
|
262
280
|
* @type {Array<string>}
|
|
@@ -264,6 +282,31 @@ export interface Attribute {
|
|
|
264
282
|
*/
|
|
265
283
|
'tags'?: Array<string>;
|
|
266
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
287
|
+
* @export
|
|
288
|
+
* @interface AttributeThumbnail
|
|
289
|
+
*/
|
|
290
|
+
export interface AttributeThumbnail {
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof AttributeThumbnail
|
|
295
|
+
*/
|
|
296
|
+
'type'?: AttributeThumbnailTypeEnum;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof AttributeThumbnail
|
|
301
|
+
*/
|
|
302
|
+
'value'?: string;
|
|
303
|
+
}
|
|
304
|
+
export declare const AttributeThumbnailTypeEnum: {
|
|
305
|
+
readonly Text: "text";
|
|
306
|
+
readonly Color: "color";
|
|
307
|
+
readonly Image: "image";
|
|
308
|
+
};
|
|
309
|
+
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
267
310
|
/**
|
|
268
311
|
*
|
|
269
312
|
* @export
|
|
@@ -320,7 +363,7 @@ export interface CreateApplicationSetRequest {
|
|
|
320
363
|
* @type {string}
|
|
321
364
|
* @memberof CreateApplicationSetRequest
|
|
322
365
|
*/
|
|
323
|
-
'name'
|
|
366
|
+
'name': string;
|
|
324
367
|
/**
|
|
325
368
|
* Description of the application set
|
|
326
369
|
* @type {string}
|
|
@@ -332,25 +375,25 @@ export interface CreateApplicationSetRequest {
|
|
|
332
375
|
* @type {number}
|
|
333
376
|
* @memberof CreateApplicationSetRequest
|
|
334
377
|
*/
|
|
335
|
-
'width'
|
|
378
|
+
'width': number;
|
|
336
379
|
/**
|
|
337
380
|
* The height, in pixels of the images in the set
|
|
338
381
|
* @type {number}
|
|
339
382
|
* @memberof CreateApplicationSetRequest
|
|
340
383
|
*/
|
|
341
|
-
'height'
|
|
384
|
+
'height': number;
|
|
342
385
|
/**
|
|
343
386
|
* The DPI used when printing the images in the set
|
|
344
387
|
* @type {number}
|
|
345
388
|
* @memberof CreateApplicationSetRequest
|
|
346
389
|
*/
|
|
347
|
-
'dpi'
|
|
390
|
+
'dpi': number;
|
|
348
391
|
/**
|
|
349
392
|
* List of application set records
|
|
350
393
|
* @type {Array<CreateApplicationSetRequestRecordsInner>}
|
|
351
394
|
* @memberof CreateApplicationSetRequest
|
|
352
395
|
*/
|
|
353
|
-
'records'
|
|
396
|
+
'records': Array<CreateApplicationSetRequestRecordsInner>;
|
|
354
397
|
}
|
|
355
398
|
/**
|
|
356
399
|
*
|
|
@@ -359,7 +402,7 @@ export interface CreateApplicationSetRequest {
|
|
|
359
402
|
*/
|
|
360
403
|
export interface CreateApplicationSetRequestRecordsInner {
|
|
361
404
|
/**
|
|
362
|
-
* List of attributes this record applies to
|
|
405
|
+
* List of attributes this record applies to. Providing an empty array will apply the application set to all variants.
|
|
363
406
|
* @type {Array<CreateApplicationSetRequestRecordsInnerAttributesInner>}
|
|
364
407
|
* @memberof CreateApplicationSetRequestRecordsInner
|
|
365
408
|
*/
|
|
@@ -382,45 +425,14 @@ export interface CreateApplicationSetRequestRecordsInnerAttributesInner {
|
|
|
382
425
|
* @type {string}
|
|
383
426
|
* @memberof CreateApplicationSetRequestRecordsInnerAttributesInner
|
|
384
427
|
*/
|
|
385
|
-
'name'
|
|
428
|
+
'name': string;
|
|
386
429
|
/**
|
|
387
430
|
* The value of the option this record applies to
|
|
388
431
|
* @type {string}
|
|
389
432
|
* @memberof CreateApplicationSetRequestRecordsInnerAttributesInner
|
|
390
433
|
*/
|
|
391
|
-
'value'
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
* @type {CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnail}
|
|
395
|
-
* @memberof CreateApplicationSetRequestRecordsInnerAttributesInner
|
|
396
|
-
*/
|
|
397
|
-
'thumbnail'?: CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnail;
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
401
|
-
* @export
|
|
402
|
-
* @interface CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnail
|
|
403
|
-
*/
|
|
404
|
-
export interface CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnail {
|
|
405
|
-
/**
|
|
406
|
-
*
|
|
407
|
-
* @type {string}
|
|
408
|
-
* @memberof CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnail
|
|
409
|
-
*/
|
|
410
|
-
'type'?: CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum;
|
|
411
|
-
/**
|
|
412
|
-
*
|
|
413
|
-
* @type {string}
|
|
414
|
-
* @memberof CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnail
|
|
415
|
-
*/
|
|
416
|
-
'value'?: string;
|
|
434
|
+
'value': string;
|
|
417
435
|
}
|
|
418
|
-
export declare const CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum: {
|
|
419
|
-
readonly Text: "text";
|
|
420
|
-
readonly Color: "color";
|
|
421
|
-
readonly Image: "image";
|
|
422
|
-
};
|
|
423
|
-
export type CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum = typeof CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum[keyof typeof CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum];
|
|
424
436
|
/**
|
|
425
437
|
*
|
|
426
438
|
* @export
|
|
@@ -736,12 +748,6 @@ export interface CreateProductVariant {
|
|
|
736
748
|
* @memberof CreateProductVariant
|
|
737
749
|
*/
|
|
738
750
|
'images'?: Array<CreateProductVariantImagesInner>;
|
|
739
|
-
/**
|
|
740
|
-
* List of application set UUIDs to associate with this variant
|
|
741
|
-
* @type {Array<string>}
|
|
742
|
-
* @memberof CreateProductVariant
|
|
743
|
-
*/
|
|
744
|
-
'applicationSets'?: Array<string>;
|
|
745
751
|
/**
|
|
746
752
|
* The GTIN (Global Trade Item Number) or EAN (European Article Number) of the variant. Please note that a barcode can only be attached after the Barcodes module has been installed.
|
|
747
753
|
* @type {string}
|
|
@@ -781,6 +787,38 @@ export interface CreateProductVideosInner {
|
|
|
781
787
|
*/
|
|
782
788
|
'src'?: string;
|
|
783
789
|
}
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @export
|
|
793
|
+
* @interface DuplicateProducts202Response
|
|
794
|
+
*/
|
|
795
|
+
export interface DuplicateProducts202Response {
|
|
796
|
+
/**
|
|
797
|
+
* A message describing the duplication status
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof DuplicateProducts202Response
|
|
800
|
+
*/
|
|
801
|
+
'message'?: string;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @export
|
|
806
|
+
* @interface DuplicateProductsRequest
|
|
807
|
+
*/
|
|
808
|
+
export interface DuplicateProductsRequest {
|
|
809
|
+
/**
|
|
810
|
+
* A set of product IDs to duplicate.
|
|
811
|
+
* @type {Array<string>}
|
|
812
|
+
* @memberof DuplicateProductsRequest
|
|
813
|
+
*/
|
|
814
|
+
'ids': Array<string>;
|
|
815
|
+
/**
|
|
816
|
+
* A set of project IDs to duplicate the products to.
|
|
817
|
+
* @type {Array<string>}
|
|
818
|
+
* @memberof DuplicateProductsRequest
|
|
819
|
+
*/
|
|
820
|
+
'projects': Array<string>;
|
|
821
|
+
}
|
|
784
822
|
/**
|
|
785
823
|
* Image description
|
|
786
824
|
* @export
|
|
@@ -1324,12 +1362,6 @@ export interface TargetSearchPhraseData {
|
|
|
1324
1362
|
* @interface UpdateApplicationSetRequest
|
|
1325
1363
|
*/
|
|
1326
1364
|
export interface UpdateApplicationSetRequest {
|
|
1327
|
-
/**
|
|
1328
|
-
*
|
|
1329
|
-
* @type {string}
|
|
1330
|
-
* @memberof UpdateApplicationSetRequest
|
|
1331
|
-
*/
|
|
1332
|
-
'id'?: string;
|
|
1333
1365
|
/**
|
|
1334
1366
|
* Name of the application set
|
|
1335
1367
|
* @type {string}
|
|
@@ -1374,7 +1406,7 @@ export interface UpdateApplicationSetRequest {
|
|
|
1374
1406
|
*/
|
|
1375
1407
|
export interface UpdateApplicationSetRequestRecordsInner {
|
|
1376
1408
|
/**
|
|
1377
|
-
* List of attributes this record applies to
|
|
1409
|
+
* List of attributes this record applies to. Providing an empty array will apply the application set to all variants.
|
|
1378
1410
|
* @type {Array<UpdateApplicationSetRequestRecordsInnerAttributesInner>}
|
|
1379
1411
|
* @memberof UpdateApplicationSetRequestRecordsInner
|
|
1380
1412
|
*/
|
|
@@ -2315,6 +2347,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2315
2347
|
* @throws {RequiredError}
|
|
2316
2348
|
*/
|
|
2317
2349
|
deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2350
|
+
/**
|
|
2351
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2352
|
+
* @summary Duplicate products.
|
|
2353
|
+
* @param {string} project What project it is
|
|
2354
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
duplicateProducts: (project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2318
2359
|
/**
|
|
2319
2360
|
* Gets a product by a given ID.
|
|
2320
2361
|
* @summary Get product
|
|
@@ -2399,6 +2440,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
2399
2440
|
* @throws {RequiredError}
|
|
2400
2441
|
*/
|
|
2401
2442
|
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2445
|
+
* @summary Duplicate products.
|
|
2446
|
+
* @param {string} project What project it is
|
|
2447
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
|
|
2402
2452
|
/**
|
|
2403
2453
|
* Gets a product by a given ID.
|
|
2404
2454
|
* @summary Get product
|
|
@@ -2481,6 +2531,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
2481
2531
|
* @throws {RequiredError}
|
|
2482
2532
|
*/
|
|
2483
2533
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2536
|
+
* @summary Duplicate products.
|
|
2537
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
*/
|
|
2541
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
|
|
2484
2542
|
/**
|
|
2485
2543
|
* Gets a product by a given ID.
|
|
2486
2544
|
* @summary Get product
|
|
@@ -2568,6 +2626,25 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
2568
2626
|
*/
|
|
2569
2627
|
readonly productId: string;
|
|
2570
2628
|
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
2631
|
+
* @export
|
|
2632
|
+
* @interface ProductsApiDuplicateProductsRequest
|
|
2633
|
+
*/
|
|
2634
|
+
export interface ProductsApiDuplicateProductsRequest {
|
|
2635
|
+
/**
|
|
2636
|
+
* What project it is
|
|
2637
|
+
* @type {string}
|
|
2638
|
+
* @memberof ProductsApiDuplicateProducts
|
|
2639
|
+
*/
|
|
2640
|
+
readonly project: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2643
|
+
* @type {DuplicateProductsRequest}
|
|
2644
|
+
* @memberof ProductsApiDuplicateProducts
|
|
2645
|
+
*/
|
|
2646
|
+
readonly duplicateProductsRequest?: DuplicateProductsRequest;
|
|
2647
|
+
}
|
|
2571
2648
|
/**
|
|
2572
2649
|
* Request parameters for getProduct operation in ProductsApi.
|
|
2573
2650
|
* @export
|
|
@@ -2743,6 +2820,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
2743
2820
|
* @memberof ProductsApi
|
|
2744
2821
|
*/
|
|
2745
2822
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2823
|
+
/**
|
|
2824
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2825
|
+
* @summary Duplicate products.
|
|
2826
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
2827
|
+
* @param {*} [options] Override http request option.
|
|
2828
|
+
* @throws {RequiredError}
|
|
2829
|
+
* @memberof ProductsApi
|
|
2830
|
+
*/
|
|
2831
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any>>;
|
|
2746
2832
|
/**
|
|
2747
2833
|
* Gets a product by a given ID.
|
|
2748
2834
|
* @summary Get product
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.45.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = exports.PriceCurrencyCodeEnum = exports.
|
|
25
|
+
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = exports.PriceCurrencyCodeEnum = exports.CreateApplicationPlacementEnum = exports.CreateApplicationTechnologyEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -47,6 +47,11 @@ exports.ApplicationPlacementEnum = {
|
|
|
47
47
|
Right: 'right',
|
|
48
48
|
Neck: 'neck'
|
|
49
49
|
};
|
|
50
|
+
exports.AttributeThumbnailTypeEnum = {
|
|
51
|
+
Text: 'text',
|
|
52
|
+
Color: 'color',
|
|
53
|
+
Image: 'image'
|
|
54
|
+
};
|
|
50
55
|
exports.CreateApplicationTechnologyEnum = {
|
|
51
56
|
Dtg: 'dtg',
|
|
52
57
|
Embroidery: 'embroidery',
|
|
@@ -65,11 +70,6 @@ exports.CreateApplicationPlacementEnum = {
|
|
|
65
70
|
Right: 'right',
|
|
66
71
|
Neck: 'neck'
|
|
67
72
|
};
|
|
68
|
-
exports.CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum = {
|
|
69
|
-
Text: 'text',
|
|
70
|
-
Color: 'color',
|
|
71
|
-
Image: 'image'
|
|
72
|
-
};
|
|
73
73
|
exports.PriceCurrencyCodeEnum = {
|
|
74
74
|
Gbp: 'GBP'
|
|
75
75
|
};
|
|
@@ -609,6 +609,45 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
609
609
|
options: localVarRequestOptions,
|
|
610
610
|
};
|
|
611
611
|
}),
|
|
612
|
+
/**
|
|
613
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
614
|
+
* @summary Duplicate products.
|
|
615
|
+
* @param {string} project What project it is
|
|
616
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
duplicateProducts: (project_1, duplicateProductsRequest_1, ...args_1) => __awaiter(this, [project_1, duplicateProductsRequest_1, ...args_1], void 0, function* (project, duplicateProductsRequest, options = {}) {
|
|
621
|
+
// verify required parameter 'project' is not null or undefined
|
|
622
|
+
(0, common_1.assertParamExists)('duplicateProducts', 'project', project);
|
|
623
|
+
const localVarPath = `/v1/catalog/products/duplicate`;
|
|
624
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
625
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
626
|
+
let baseOptions;
|
|
627
|
+
if (configuration) {
|
|
628
|
+
baseOptions = configuration.baseOptions;
|
|
629
|
+
}
|
|
630
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
631
|
+
const localVarHeaderParameter = {};
|
|
632
|
+
const localVarQueryParameter = {};
|
|
633
|
+
// authentication session-oauth required
|
|
634
|
+
// oauth required
|
|
635
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
636
|
+
// authentication api-key required
|
|
637
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
638
|
+
if (project !== undefined) {
|
|
639
|
+
localVarQueryParameter['project'] = project;
|
|
640
|
+
}
|
|
641
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
642
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
645
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(duplicateProductsRequest, localVarRequestOptions, configuration);
|
|
646
|
+
return {
|
|
647
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
648
|
+
options: localVarRequestOptions,
|
|
649
|
+
};
|
|
650
|
+
}),
|
|
612
651
|
/**
|
|
613
652
|
* Gets a product by a given ID.
|
|
614
653
|
* @summary Get product
|
|
@@ -915,6 +954,23 @@ const ProductsApiFp = function (configuration) {
|
|
|
915
954
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
916
955
|
});
|
|
917
956
|
},
|
|
957
|
+
/**
|
|
958
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
959
|
+
* @summary Duplicate products.
|
|
960
|
+
* @param {string} project What project it is
|
|
961
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
duplicateProducts(project, duplicateProductsRequest, options) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
var _a, _b, _c;
|
|
968
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProducts(project, duplicateProductsRequest, options);
|
|
969
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
970
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.duplicateProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
971
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
972
|
+
});
|
|
973
|
+
},
|
|
918
974
|
/**
|
|
919
975
|
* Gets a product by a given ID.
|
|
920
976
|
* @summary Get product
|
|
@@ -1053,6 +1109,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1053
1109
|
deleteProduct(requestParameters, options) {
|
|
1054
1110
|
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1055
1111
|
},
|
|
1112
|
+
/**
|
|
1113
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
1114
|
+
* @summary Duplicate products.
|
|
1115
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
*/
|
|
1119
|
+
duplicateProducts(requestParameters, options) {
|
|
1120
|
+
return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
|
|
1121
|
+
},
|
|
1056
1122
|
/**
|
|
1057
1123
|
* Gets a product by a given ID.
|
|
1058
1124
|
* @summary Get product
|
|
@@ -1145,6 +1211,17 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
1145
1211
|
deleteProduct(requestParameters, options) {
|
|
1146
1212
|
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1147
1213
|
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
1216
|
+
* @summary Duplicate products.
|
|
1217
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
* @memberof ProductsApi
|
|
1221
|
+
*/
|
|
1222
|
+
duplicateProducts(requestParameters, options) {
|
|
1223
|
+
return (0, exports.ProductsApiFp)(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1224
|
+
}
|
|
1148
1225
|
/**
|
|
1149
1226
|
* Gets a product by a given ID.
|
|
1150
1227
|
* @summary Get product
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.45.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.45.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.45.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.45.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.45.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.45.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|