@teemill/product-catalog 1.49.0 → 1.51.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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/product-catalog@1.49.0
1
+ ## @teemill/product-catalog@1.51.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/product-catalog@1.49.0 --save
39
+ npm install @teemill/product-catalog@1.51.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -58,6 +58,7 @@ Class | Method | HTTP request | Description
58
58
  *ApplicationSetsApi* | [**updateApplicationSet**](docs/ApplicationSetsApi.md#updateapplicationset) | **PATCH** /v1/catalog/applications/sets/{applicationSetId} | Update application set
59
59
  *ProductsApi* | [**createProduct**](docs/ProductsApi.md#createproduct) | **POST** /v1/catalog/products | Create product
60
60
  *ProductsApi* | [**deleteProduct**](docs/ProductsApi.md#deleteproduct) | **DELETE** /v1/catalog/products/{productId} | Delete catalog product
61
+ *ProductsApi* | [**deleteProducts**](docs/ProductsApi.md#deleteproducts) | **DELETE** /v1/catalog/products | Delete products
61
62
  *ProductsApi* | [**duplicateProducts**](docs/ProductsApi.md#duplicateproducts) | **POST** /v1/catalog/products/duplicate | Duplicate products.
62
63
  *ProductsApi* | [**exportProducts**](docs/ProductsApi.md#exportproducts) | **GET** /v1/catalog/products/export | Export products
63
64
  *ProductsApi* | [**getProduct**](docs/ProductsApi.md#getproduct) | **GET** /v1/catalog/products/{productId} | Get product
@@ -95,6 +96,7 @@ Class | Method | HTTP request | Description
95
96
  - [CreateProductVariant](docs/CreateProductVariant.md)
96
97
  - [CreateProductVariantImagesInner](docs/CreateProductVariantImagesInner.md)
97
98
  - [CreateProductVideosInner](docs/CreateProductVideosInner.md)
99
+ - [DeleteProductsRequest](docs/DeleteProductsRequest.md)
98
100
  - [DuplicateProducts202Response](docs/DuplicateProducts202Response.md)
99
101
  - [DuplicateProductsRequest](docs/DuplicateProductsRequest.md)
100
102
  - [ExportProducts202Response](docs/ExportProducts202Response.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -91,6 +91,12 @@ export interface Application {
91
91
  * @memberof Application
92
92
  */
93
93
  'mockup'?: ApplicationMockup | null;
94
+ /**
95
+ * If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF.
96
+ * @type {boolean}
97
+ * @memberof Application
98
+ */
99
+ 'stockedOnly'?: boolean;
94
100
  }
95
101
 
96
102
  export const ApplicationTechnologyEnum = {
@@ -373,6 +379,12 @@ export interface CreateApplication {
373
379
  * @memberof CreateApplication
374
380
  */
375
381
  'src': string;
382
+ /**
383
+ * If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF.
384
+ * @type {boolean}
385
+ * @memberof CreateApplication
386
+ */
387
+ 'stockedOnly'?: boolean;
376
388
  }
377
389
 
378
390
  export const CreateApplicationTechnologyEnum = {
@@ -840,6 +852,19 @@ export interface CreateProductVideosInner {
840
852
  */
841
853
  'src'?: string;
842
854
  }
855
+ /**
856
+ *
857
+ * @export
858
+ * @interface DeleteProductsRequest
859
+ */
860
+ export interface DeleteProductsRequest {
861
+ /**
862
+ *
863
+ * @type {Array<string>}
864
+ * @memberof DeleteProductsRequest
865
+ */
866
+ 'products'?: Array<string>;
867
+ }
843
868
  /**
844
869
  *
845
870
  * @export
@@ -2900,6 +2925,56 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
2900
2925
  options: localVarRequestOptions,
2901
2926
  };
2902
2927
  },
2928
+ /**
2929
+ * Deletes catalog products for the given project.
2930
+ * @summary Delete products
2931
+ * @param {string} project What project it is
2932
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
2933
+ * @param {*} [options] Override http request option.
2934
+ * @throws {RequiredError}
2935
+ */
2936
+ deleteProducts: async (project: string, deleteProductsRequest: DeleteProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2937
+ // verify required parameter 'project' is not null or undefined
2938
+ assertParamExists('deleteProducts', 'project', project)
2939
+ // verify required parameter 'deleteProductsRequest' is not null or undefined
2940
+ assertParamExists('deleteProducts', 'deleteProductsRequest', deleteProductsRequest)
2941
+ const localVarPath = `/v1/catalog/products`;
2942
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2943
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2944
+ let baseOptions;
2945
+ if (configuration) {
2946
+ baseOptions = configuration.baseOptions;
2947
+ }
2948
+
2949
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2950
+ const localVarHeaderParameter = {} as any;
2951
+ const localVarQueryParameter = {} as any;
2952
+
2953
+ // authentication session-oauth required
2954
+ // oauth required
2955
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2956
+
2957
+ // authentication api-key required
2958
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2959
+
2960
+ if (project !== undefined) {
2961
+ localVarQueryParameter['project'] = project;
2962
+ }
2963
+
2964
+
2965
+
2966
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2967
+
2968
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2969
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2970
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2971
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteProductsRequest, localVarRequestOptions, configuration)
2972
+
2973
+ return {
2974
+ url: toPathString(localVarUrlObj),
2975
+ options: localVarRequestOptions,
2976
+ };
2977
+ },
2903
2978
  /**
2904
2979
  * Duplicate products by a set of given IDs to a set of given project IDs.
2905
2980
  * @summary Duplicate products.
@@ -3350,6 +3425,20 @@ export const ProductsApiFp = function(configuration?: Configuration) {
3350
3425
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.deleteProduct']?.[localVarOperationServerIndex]?.url;
3351
3426
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3352
3427
  },
3428
+ /**
3429
+ * Deletes catalog products for the given project.
3430
+ * @summary Delete products
3431
+ * @param {string} project What project it is
3432
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
3433
+ * @param {*} [options] Override http request option.
3434
+ * @throws {RequiredError}
3435
+ */
3436
+ async deleteProducts(project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProducts(project, deleteProductsRequest, options);
3438
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3439
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.deleteProducts']?.[localVarOperationServerIndex]?.url;
3440
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3441
+ },
3353
3442
  /**
3354
3443
  * Duplicate products by a set of given IDs to a set of given project IDs.
3355
3444
  * @summary Duplicate products.
@@ -3497,6 +3586,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
3497
3586
  deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3498
3587
  return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
3499
3588
  },
3589
+ /**
3590
+ * Deletes catalog products for the given project.
3591
+ * @summary Delete products
3592
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
3593
+ * @param {*} [options] Override http request option.
3594
+ * @throws {RequiredError}
3595
+ */
3596
+ deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3597
+ return localVarFp.deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(axios, basePath));
3598
+ },
3500
3599
  /**
3501
3600
  * Duplicate products by a set of given IDs to a set of given project IDs.
3502
3601
  * @summary Duplicate products.
@@ -3622,6 +3721,27 @@ export interface ProductsApiDeleteProductRequest {
3622
3721
  readonly productId: string
3623
3722
  }
3624
3723
 
3724
+ /**
3725
+ * Request parameters for deleteProducts operation in ProductsApi.
3726
+ * @export
3727
+ * @interface ProductsApiDeleteProductsRequest
3728
+ */
3729
+ export interface ProductsApiDeleteProductsRequest {
3730
+ /**
3731
+ * What project it is
3732
+ * @type {string}
3733
+ * @memberof ProductsApiDeleteProducts
3734
+ */
3735
+ readonly project: string
3736
+
3737
+ /**
3738
+ * Delete products in bulk.
3739
+ * @type {DeleteProductsRequest}
3740
+ * @memberof ProductsApiDeleteProducts
3741
+ */
3742
+ readonly deleteProductsRequest: DeleteProductsRequest
3743
+ }
3744
+
3625
3745
  /**
3626
3746
  * Request parameters for duplicateProducts operation in ProductsApi.
3627
3747
  * @export
@@ -3856,6 +3976,18 @@ export class ProductsApi extends BaseAPI {
3856
3976
  return ProductsApiFp(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3857
3977
  }
3858
3978
 
3979
+ /**
3980
+ * Deletes catalog products for the given project.
3981
+ * @summary Delete products
3982
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
3983
+ * @param {*} [options] Override http request option.
3984
+ * @throws {RequiredError}
3985
+ * @memberof ProductsApi
3986
+ */
3987
+ public deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig) {
3988
+ return ProductsApiFp(this.configuration).deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(this.axios, this.basePath));
3989
+ }
3990
+
3859
3991
  /**
3860
3992
  * Duplicate products by a set of given IDs to a set of given project IDs.
3861
3993
  * @summary Duplicate products.
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,6 +81,12 @@ export interface Application {
81
81
  * @memberof Application
82
82
  */
83
83
  'mockup'?: ApplicationMockup | null;
84
+ /**
85
+ * If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF.
86
+ * @type {boolean}
87
+ * @memberof Application
88
+ */
89
+ 'stockedOnly'?: boolean;
84
90
  }
85
91
  export declare const ApplicationTechnologyEnum: {
86
92
  readonly Dtg: "dtg";
@@ -356,6 +362,12 @@ export interface CreateApplication {
356
362
  * @memberof CreateApplication
357
363
  */
358
364
  'src': string;
365
+ /**
366
+ * If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF.
367
+ * @type {boolean}
368
+ * @memberof CreateApplication
369
+ */
370
+ 'stockedOnly'?: boolean;
359
371
  }
360
372
  export declare const CreateApplicationTechnologyEnum: {
361
373
  readonly Dtg: "dtg";
@@ -818,6 +830,19 @@ export interface CreateProductVideosInner {
818
830
  */
819
831
  'src'?: string;
820
832
  }
833
+ /**
834
+ *
835
+ * @export
836
+ * @interface DeleteProductsRequest
837
+ */
838
+ export interface DeleteProductsRequest {
839
+ /**
840
+ *
841
+ * @type {Array<string>}
842
+ * @memberof DeleteProductsRequest
843
+ */
844
+ 'products'?: Array<string>;
845
+ }
821
846
  /**
822
847
  *
823
848
  * @export
@@ -2503,6 +2528,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
2503
2528
  * @throws {RequiredError}
2504
2529
  */
2505
2530
  deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2531
+ /**
2532
+ * Deletes catalog products for the given project.
2533
+ * @summary Delete products
2534
+ * @param {string} project What project it is
2535
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
2536
+ * @param {*} [options] Override http request option.
2537
+ * @throws {RequiredError}
2538
+ */
2539
+ deleteProducts: (project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2506
2540
  /**
2507
2541
  * Duplicate products by a set of given IDs to a set of given project IDs.
2508
2542
  * @summary Duplicate products.
@@ -2604,6 +2638,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
2604
2638
  * @throws {RequiredError}
2605
2639
  */
2606
2640
  deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2641
+ /**
2642
+ * Deletes catalog products for the given project.
2643
+ * @summary Delete products
2644
+ * @param {string} project What project it is
2645
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ */
2649
+ deleteProducts(project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2607
2650
  /**
2608
2651
  * Duplicate products by a set of given IDs to a set of given project IDs.
2609
2652
  * @summary Duplicate products.
@@ -2703,6 +2746,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
2703
2746
  * @throws {RequiredError}
2704
2747
  */
2705
2748
  deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2749
+ /**
2750
+ * Deletes catalog products for the given project.
2751
+ * @summary Delete products
2752
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
2753
+ * @param {*} [options] Override http request option.
2754
+ * @throws {RequiredError}
2755
+ */
2756
+ deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2706
2757
  /**
2707
2758
  * Duplicate products by a set of given IDs to a set of given project IDs.
2708
2759
  * @summary Duplicate products.
@@ -2806,6 +2857,25 @@ export interface ProductsApiDeleteProductRequest {
2806
2857
  */
2807
2858
  readonly productId: string;
2808
2859
  }
2860
+ /**
2861
+ * Request parameters for deleteProducts operation in ProductsApi.
2862
+ * @export
2863
+ * @interface ProductsApiDeleteProductsRequest
2864
+ */
2865
+ export interface ProductsApiDeleteProductsRequest {
2866
+ /**
2867
+ * What project it is
2868
+ * @type {string}
2869
+ * @memberof ProductsApiDeleteProducts
2870
+ */
2871
+ readonly project: string;
2872
+ /**
2873
+ * Delete products in bulk.
2874
+ * @type {DeleteProductsRequest}
2875
+ * @memberof ProductsApiDeleteProducts
2876
+ */
2877
+ readonly deleteProductsRequest: DeleteProductsRequest;
2878
+ }
2809
2879
  /**
2810
2880
  * Request parameters for duplicateProducts operation in ProductsApi.
2811
2881
  * @export
@@ -3013,6 +3083,15 @@ export declare class ProductsApi extends BaseAPI {
3013
3083
  * @memberof ProductsApi
3014
3084
  */
3015
3085
  deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3086
+ /**
3087
+ * Deletes catalog products for the given project.
3088
+ * @summary Delete products
3089
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
3090
+ * @param {*} [options] Override http request option.
3091
+ * @throws {RequiredError}
3092
+ * @memberof ProductsApi
3093
+ */
3094
+ deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3016
3095
  /**
3017
3096
  * Duplicate products by a set of given IDs to a set of given project IDs.
3018
3097
  * @summary Duplicate products.
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.49.0
8
+ * The version of the OpenAPI document: 1.51.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -609,6 +609,47 @@ const ProductsApiAxiosParamCreator = function (configuration) {
609
609
  options: localVarRequestOptions,
610
610
  };
611
611
  }),
612
+ /**
613
+ * Deletes catalog products for the given project.
614
+ * @summary Delete products
615
+ * @param {string} project What project it is
616
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ deleteProducts: (project_1, deleteProductsRequest_1, ...args_1) => __awaiter(this, [project_1, deleteProductsRequest_1, ...args_1], void 0, function* (project, deleteProductsRequest, options = {}) {
621
+ // verify required parameter 'project' is not null or undefined
622
+ (0, common_1.assertParamExists)('deleteProducts', 'project', project);
623
+ // verify required parameter 'deleteProductsRequest' is not null or undefined
624
+ (0, common_1.assertParamExists)('deleteProducts', 'deleteProductsRequest', deleteProductsRequest);
625
+ const localVarPath = `/v1/catalog/products`;
626
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
627
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
628
+ let baseOptions;
629
+ if (configuration) {
630
+ baseOptions = configuration.baseOptions;
631
+ }
632
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
633
+ const localVarHeaderParameter = {};
634
+ const localVarQueryParameter = {};
635
+ // authentication session-oauth required
636
+ // oauth required
637
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
638
+ // authentication api-key required
639
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
640
+ if (project !== undefined) {
641
+ localVarQueryParameter['project'] = project;
642
+ }
643
+ localVarHeaderParameter['Content-Type'] = 'application/json';
644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteProductsRequest, localVarRequestOptions, configuration);
648
+ return {
649
+ url: (0, common_1.toPathString)(localVarUrlObj),
650
+ options: localVarRequestOptions,
651
+ };
652
+ }),
612
653
  /**
613
654
  * Duplicate products by a set of given IDs to a set of given project IDs.
614
655
  * @summary Duplicate products.
@@ -990,6 +1031,23 @@ const ProductsApiFp = function (configuration) {
990
1031
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
991
1032
  });
992
1033
  },
1034
+ /**
1035
+ * Deletes catalog products for the given project.
1036
+ * @summary Delete products
1037
+ * @param {string} project What project it is
1038
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
1039
+ * @param {*} [options] Override http request option.
1040
+ * @throws {RequiredError}
1041
+ */
1042
+ deleteProducts(project, deleteProductsRequest, options) {
1043
+ return __awaiter(this, void 0, void 0, function* () {
1044
+ var _a, _b, _c;
1045
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProducts(project, deleteProductsRequest, options);
1046
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1047
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.deleteProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1048
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1049
+ });
1050
+ },
993
1051
  /**
994
1052
  * Duplicate products by a set of given IDs to a set of given project IDs.
995
1053
  * @summary Duplicate products.
@@ -1161,6 +1219,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1161
1219
  deleteProduct(requestParameters, options) {
1162
1220
  return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
1163
1221
  },
1222
+ /**
1223
+ * Deletes catalog products for the given project.
1224
+ * @summary Delete products
1225
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
1226
+ * @param {*} [options] Override http request option.
1227
+ * @throws {RequiredError}
1228
+ */
1229
+ deleteProducts(requestParameters, options) {
1230
+ return localVarFp.deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(axios, basePath));
1231
+ },
1164
1232
  /**
1165
1233
  * Duplicate products by a set of given IDs to a set of given project IDs.
1166
1234
  * @summary Duplicate products.
@@ -1273,6 +1341,17 @@ class ProductsApi extends base_1.BaseAPI {
1273
1341
  deleteProduct(requestParameters, options) {
1274
1342
  return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1275
1343
  }
1344
+ /**
1345
+ * Deletes catalog products for the given project.
1346
+ * @summary Delete products
1347
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ * @memberof ProductsApi
1351
+ */
1352
+ deleteProducts(requestParameters, options) {
1353
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(this.axios, this.basePath));
1354
+ }
1276
1355
  /**
1277
1356
  * Duplicate products by a set of given IDs to a set of given project IDs.
1278
1357
  * @summary Duplicate products.
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.49.0
5
+ * The version of the OpenAPI document: 1.51.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.49.0
8
+ * The version of the OpenAPI document: 1.51.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.49.0
5
+ * The version of the OpenAPI document: 1.51.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.49.0
8
+ * The version of the OpenAPI document: 1.51.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.49.0
8
+ * The version of the OpenAPI document: 1.51.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,6 +81,12 @@ export interface Application {
81
81
  * @memberof Application
82
82
  */
83
83
  'mockup'?: ApplicationMockup | null;
84
+ /**
85
+ * If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF.
86
+ * @type {boolean}
87
+ * @memberof Application
88
+ */
89
+ 'stockedOnly'?: boolean;
84
90
  }
85
91
  export declare const ApplicationTechnologyEnum: {
86
92
  readonly Dtg: "dtg";
@@ -356,6 +362,12 @@ export interface CreateApplication {
356
362
  * @memberof CreateApplication
357
363
  */
358
364
  'src': string;
365
+ /**
366
+ * If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF.
367
+ * @type {boolean}
368
+ * @memberof CreateApplication
369
+ */
370
+ 'stockedOnly'?: boolean;
359
371
  }
360
372
  export declare const CreateApplicationTechnologyEnum: {
361
373
  readonly Dtg: "dtg";
@@ -818,6 +830,19 @@ export interface CreateProductVideosInner {
818
830
  */
819
831
  'src'?: string;
820
832
  }
833
+ /**
834
+ *
835
+ * @export
836
+ * @interface DeleteProductsRequest
837
+ */
838
+ export interface DeleteProductsRequest {
839
+ /**
840
+ *
841
+ * @type {Array<string>}
842
+ * @memberof DeleteProductsRequest
843
+ */
844
+ 'products'?: Array<string>;
845
+ }
821
846
  /**
822
847
  *
823
848
  * @export
@@ -2503,6 +2528,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
2503
2528
  * @throws {RequiredError}
2504
2529
  */
2505
2530
  deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2531
+ /**
2532
+ * Deletes catalog products for the given project.
2533
+ * @summary Delete products
2534
+ * @param {string} project What project it is
2535
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
2536
+ * @param {*} [options] Override http request option.
2537
+ * @throws {RequiredError}
2538
+ */
2539
+ deleteProducts: (project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2506
2540
  /**
2507
2541
  * Duplicate products by a set of given IDs to a set of given project IDs.
2508
2542
  * @summary Duplicate products.
@@ -2604,6 +2638,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
2604
2638
  * @throws {RequiredError}
2605
2639
  */
2606
2640
  deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2641
+ /**
2642
+ * Deletes catalog products for the given project.
2643
+ * @summary Delete products
2644
+ * @param {string} project What project it is
2645
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ */
2649
+ deleteProducts(project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2607
2650
  /**
2608
2651
  * Duplicate products by a set of given IDs to a set of given project IDs.
2609
2652
  * @summary Duplicate products.
@@ -2703,6 +2746,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
2703
2746
  * @throws {RequiredError}
2704
2747
  */
2705
2748
  deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2749
+ /**
2750
+ * Deletes catalog products for the given project.
2751
+ * @summary Delete products
2752
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
2753
+ * @param {*} [options] Override http request option.
2754
+ * @throws {RequiredError}
2755
+ */
2756
+ deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2706
2757
  /**
2707
2758
  * Duplicate products by a set of given IDs to a set of given project IDs.
2708
2759
  * @summary Duplicate products.
@@ -2806,6 +2857,25 @@ export interface ProductsApiDeleteProductRequest {
2806
2857
  */
2807
2858
  readonly productId: string;
2808
2859
  }
2860
+ /**
2861
+ * Request parameters for deleteProducts operation in ProductsApi.
2862
+ * @export
2863
+ * @interface ProductsApiDeleteProductsRequest
2864
+ */
2865
+ export interface ProductsApiDeleteProductsRequest {
2866
+ /**
2867
+ * What project it is
2868
+ * @type {string}
2869
+ * @memberof ProductsApiDeleteProducts
2870
+ */
2871
+ readonly project: string;
2872
+ /**
2873
+ * Delete products in bulk.
2874
+ * @type {DeleteProductsRequest}
2875
+ * @memberof ProductsApiDeleteProducts
2876
+ */
2877
+ readonly deleteProductsRequest: DeleteProductsRequest;
2878
+ }
2809
2879
  /**
2810
2880
  * Request parameters for duplicateProducts operation in ProductsApi.
2811
2881
  * @export
@@ -3013,6 +3083,15 @@ export declare class ProductsApi extends BaseAPI {
3013
3083
  * @memberof ProductsApi
3014
3084
  */
3015
3085
  deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3086
+ /**
3087
+ * Deletes catalog products for the given project.
3088
+ * @summary Delete products
3089
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
3090
+ * @param {*} [options] Override http request option.
3091
+ * @throws {RequiredError}
3092
+ * @memberof ProductsApi
3093
+ */
3094
+ deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3016
3095
  /**
3017
3096
  * Duplicate products by a set of given IDs to a set of given project IDs.
3018
3097
  * @summary Duplicate products.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -602,6 +602,47 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
602
602
  options: localVarRequestOptions,
603
603
  };
604
604
  }),
605
+ /**
606
+ * Deletes catalog products for the given project.
607
+ * @summary Delete products
608
+ * @param {string} project What project it is
609
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ */
613
+ deleteProducts: (project_1, deleteProductsRequest_1, ...args_1) => __awaiter(this, [project_1, deleteProductsRequest_1, ...args_1], void 0, function* (project, deleteProductsRequest, options = {}) {
614
+ // verify required parameter 'project' is not null or undefined
615
+ assertParamExists('deleteProducts', 'project', project);
616
+ // verify required parameter 'deleteProductsRequest' is not null or undefined
617
+ assertParamExists('deleteProducts', 'deleteProductsRequest', deleteProductsRequest);
618
+ const localVarPath = `/v1/catalog/products`;
619
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
620
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
621
+ let baseOptions;
622
+ if (configuration) {
623
+ baseOptions = configuration.baseOptions;
624
+ }
625
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
626
+ const localVarHeaderParameter = {};
627
+ const localVarQueryParameter = {};
628
+ // authentication session-oauth required
629
+ // oauth required
630
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
631
+ // authentication api-key required
632
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
633
+ if (project !== undefined) {
634
+ localVarQueryParameter['project'] = project;
635
+ }
636
+ localVarHeaderParameter['Content-Type'] = 'application/json';
637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
640
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteProductsRequest, localVarRequestOptions, configuration);
641
+ return {
642
+ url: toPathString(localVarUrlObj),
643
+ options: localVarRequestOptions,
644
+ };
645
+ }),
605
646
  /**
606
647
  * Duplicate products by a set of given IDs to a set of given project IDs.
607
648
  * @summary Duplicate products.
@@ -982,6 +1023,23 @@ export const ProductsApiFp = function (configuration) {
982
1023
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
983
1024
  });
984
1025
  },
1026
+ /**
1027
+ * Deletes catalog products for the given project.
1028
+ * @summary Delete products
1029
+ * @param {string} project What project it is
1030
+ * @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ deleteProducts(project, deleteProductsRequest, options) {
1035
+ return __awaiter(this, void 0, void 0, function* () {
1036
+ var _a, _b, _c;
1037
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProducts(project, deleteProductsRequest, options);
1038
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1039
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.deleteProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1040
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1041
+ });
1042
+ },
985
1043
  /**
986
1044
  * Duplicate products by a set of given IDs to a set of given project IDs.
987
1045
  * @summary Duplicate products.
@@ -1152,6 +1210,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1152
1210
  deleteProduct(requestParameters, options) {
1153
1211
  return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
1154
1212
  },
1213
+ /**
1214
+ * Deletes catalog products for the given project.
1215
+ * @summary Delete products
1216
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
1217
+ * @param {*} [options] Override http request option.
1218
+ * @throws {RequiredError}
1219
+ */
1220
+ deleteProducts(requestParameters, options) {
1221
+ return localVarFp.deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(axios, basePath));
1222
+ },
1155
1223
  /**
1156
1224
  * Duplicate products by a set of given IDs to a set of given project IDs.
1157
1225
  * @summary Duplicate products.
@@ -1263,6 +1331,17 @@ export class ProductsApi extends BaseAPI {
1263
1331
  deleteProduct(requestParameters, options) {
1264
1332
  return ProductsApiFp(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1265
1333
  }
1334
+ /**
1335
+ * Deletes catalog products for the given project.
1336
+ * @summary Delete products
1337
+ * @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
1338
+ * @param {*} [options] Override http request option.
1339
+ * @throws {RequiredError}
1340
+ * @memberof ProductsApi
1341
+ */
1342
+ deleteProducts(requestParameters, options) {
1343
+ return ProductsApiFp(this.configuration).deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(this.axios, this.basePath));
1344
+ }
1266
1345
  /**
1267
1346
  * Duplicate products by a set of given IDs to a set of given project IDs.
1268
1347
  * @summary Duplicate products.
@@ -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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.49.0
5
+ * The version of the OpenAPI document: 1.51.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.49.0
8
+ * The version of the OpenAPI document: 1.51.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **placement** | **string** | Placement of the application. Available placements depend on the chosen product and technology. | [default to undefined]
11
11
  **src** | **string** | Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files. | [default to undefined]
12
12
  **mockup** | [**ApplicationMockup**](ApplicationMockup.md) | | [optional] [default to undefined]
13
+ **stockedOnly** | **boolean** | If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF. | [optional] [default to undefined]
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const instance: Application = {
22
23
  placement,
23
24
  src,
24
25
  mockup,
26
+ stockedOnly,
25
27
  };
26
28
  ```
27
29
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **technology** | **string** | Technology to use for the application. | [default to undefined]
9
9
  **placement** | **string** | Placement of the application. Available placements depend on the chosen product and technology. | [default to undefined]
10
10
  **src** | **string** | Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files. | [default to undefined]
11
+ **stockedOnly** | **boolean** | If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF. | [optional] [default to undefined]
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ const instance: CreateApplication = {
18
19
  technology,
19
20
  placement,
20
21
  src,
22
+ stockedOnly,
21
23
  };
22
24
  ```
23
25
 
@@ -0,0 +1,20 @@
1
+ # DeleteProductsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **products** | **Array&lt;string&gt;** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DeleteProductsRequest } from '@teemill/product-catalog';
14
+
15
+ const instance: DeleteProductsRequest = {
16
+ products,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.podos.io*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createProduct**](#createproduct) | **POST** /v1/catalog/products | Create product|
8
8
  |[**deleteProduct**](#deleteproduct) | **DELETE** /v1/catalog/products/{productId} | Delete catalog product|
9
+ |[**deleteProducts**](#deleteproducts) | **DELETE** /v1/catalog/products | Delete products|
9
10
  |[**duplicateProducts**](#duplicateproducts) | **POST** /v1/catalog/products/duplicate | Duplicate products.|
10
11
  |[**exportProducts**](#exportproducts) | **GET** /v1/catalog/products/export | Export products|
11
12
  |[**getProduct**](#getproduct) | **GET** /v1/catalog/products/{productId} | Get product|
@@ -134,6 +135,66 @@ void (empty response body)
134
135
 
135
136
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
136
137
 
138
+ # **deleteProducts**
139
+ > deleteProducts(deleteProductsRequest)
140
+
141
+ Deletes catalog products for the given project.
142
+
143
+ ### Example
144
+
145
+ ```typescript
146
+ import {
147
+ ProductsApi,
148
+ Configuration,
149
+ DeleteProductsRequest
150
+ } from '@teemill/product-catalog';
151
+
152
+ const configuration = new Configuration();
153
+ const apiInstance = new ProductsApi(configuration);
154
+
155
+ let project: string; //What project it is (default to undefined)
156
+ let deleteProductsRequest: DeleteProductsRequest; //Delete products in bulk.
157
+
158
+ const { status, data } = await apiInstance.deleteProducts(
159
+ project,
160
+ deleteProductsRequest
161
+ );
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+ |Name | Type | Description | Notes|
167
+ |------------- | ------------- | ------------- | -------------|
168
+ | **deleteProductsRequest** | **DeleteProductsRequest**| Delete products in bulk. | |
169
+ | **project** | [**string**] | What project it is | defaults to undefined|
170
+
171
+
172
+ ### Return type
173
+
174
+ void (empty response body)
175
+
176
+ ### Authorization
177
+
178
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
179
+
180
+ ### HTTP request headers
181
+
182
+ - **Content-Type**: application/json
183
+ - **Accept**: application/json
184
+
185
+
186
+ ### HTTP response details
187
+ | Status code | Description | Response headers |
188
+ |-------------|-------------|------------------|
189
+ |**204** | Products deleted | - |
190
+ |**400** | Failed validation. | - |
191
+ |**401** | Not authorised to access this resource. | - |
192
+ |**403** | Refuse to authorize. | - |
193
+ |**404** | Resource not found. | - |
194
+ |**500** | Unknown server error. | - |
195
+
196
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
197
+
137
198
  # **duplicateProducts**
138
199
  > DuplicateProducts202Response duplicateProducts()
139
200
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 1.49.0
7
+ * The version of the OpenAPI document: 1.51.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.49.0",
3
+ "version": "1.51.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {