@teemill/product-catalog 1.49.0 → 1.50.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 +4 -2
- package/api.ts +121 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +68 -1
- package/dist/api.js +80 -1
- 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 +68 -1
- package/dist/esm/api.js +80 -1
- 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/docs/DeleteProductsRequest.md +20 -0
- package/docs/ProductsApi.md +61 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/product-catalog@1.
|
|
1
|
+
## @teemill/product-catalog@1.50.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.
|
|
39
|
+
npm install @teemill/product-catalog@1.50.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -840,6 +840,19 @@ export interface CreateProductVideosInner {
|
|
|
840
840
|
*/
|
|
841
841
|
'src'?: string;
|
|
842
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @export
|
|
846
|
+
* @interface DeleteProductsRequest
|
|
847
|
+
*/
|
|
848
|
+
export interface DeleteProductsRequest {
|
|
849
|
+
/**
|
|
850
|
+
*
|
|
851
|
+
* @type {Array<string>}
|
|
852
|
+
* @memberof DeleteProductsRequest
|
|
853
|
+
*/
|
|
854
|
+
'products'?: Array<string>;
|
|
855
|
+
}
|
|
843
856
|
/**
|
|
844
857
|
*
|
|
845
858
|
* @export
|
|
@@ -2900,6 +2913,56 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2900
2913
|
options: localVarRequestOptions,
|
|
2901
2914
|
};
|
|
2902
2915
|
},
|
|
2916
|
+
/**
|
|
2917
|
+
* Deletes catalog products for the given project.
|
|
2918
|
+
* @summary Delete products
|
|
2919
|
+
* @param {string} project What project it is
|
|
2920
|
+
* @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
|
|
2921
|
+
* @param {*} [options] Override http request option.
|
|
2922
|
+
* @throws {RequiredError}
|
|
2923
|
+
*/
|
|
2924
|
+
deleteProducts: async (project: string, deleteProductsRequest: DeleteProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2925
|
+
// verify required parameter 'project' is not null or undefined
|
|
2926
|
+
assertParamExists('deleteProducts', 'project', project)
|
|
2927
|
+
// verify required parameter 'deleteProductsRequest' is not null or undefined
|
|
2928
|
+
assertParamExists('deleteProducts', 'deleteProductsRequest', deleteProductsRequest)
|
|
2929
|
+
const localVarPath = `/v1/catalog/products`;
|
|
2930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2932
|
+
let baseOptions;
|
|
2933
|
+
if (configuration) {
|
|
2934
|
+
baseOptions = configuration.baseOptions;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2938
|
+
const localVarHeaderParameter = {} as any;
|
|
2939
|
+
const localVarQueryParameter = {} as any;
|
|
2940
|
+
|
|
2941
|
+
// authentication session-oauth required
|
|
2942
|
+
// oauth required
|
|
2943
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2944
|
+
|
|
2945
|
+
// authentication api-key required
|
|
2946
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2947
|
+
|
|
2948
|
+
if (project !== undefined) {
|
|
2949
|
+
localVarQueryParameter['project'] = project;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2955
|
+
|
|
2956
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2958
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2959
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteProductsRequest, localVarRequestOptions, configuration)
|
|
2960
|
+
|
|
2961
|
+
return {
|
|
2962
|
+
url: toPathString(localVarUrlObj),
|
|
2963
|
+
options: localVarRequestOptions,
|
|
2964
|
+
};
|
|
2965
|
+
},
|
|
2903
2966
|
/**
|
|
2904
2967
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2905
2968
|
* @summary Duplicate products.
|
|
@@ -3350,6 +3413,20 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
3350
3413
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.deleteProduct']?.[localVarOperationServerIndex]?.url;
|
|
3351
3414
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3352
3415
|
},
|
|
3416
|
+
/**
|
|
3417
|
+
* Deletes catalog products for the given project.
|
|
3418
|
+
* @summary Delete products
|
|
3419
|
+
* @param {string} project What project it is
|
|
3420
|
+
* @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
|
|
3421
|
+
* @param {*} [options] Override http request option.
|
|
3422
|
+
* @throws {RequiredError}
|
|
3423
|
+
*/
|
|
3424
|
+
async deleteProducts(project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProducts(project, deleteProductsRequest, options);
|
|
3426
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3427
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.deleteProducts']?.[localVarOperationServerIndex]?.url;
|
|
3428
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3429
|
+
},
|
|
3353
3430
|
/**
|
|
3354
3431
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3355
3432
|
* @summary Duplicate products.
|
|
@@ -3497,6 +3574,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
3497
3574
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3498
3575
|
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
3499
3576
|
},
|
|
3577
|
+
/**
|
|
3578
|
+
* Deletes catalog products for the given project.
|
|
3579
|
+
* @summary Delete products
|
|
3580
|
+
* @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3585
|
+
return localVarFp.deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(axios, basePath));
|
|
3586
|
+
},
|
|
3500
3587
|
/**
|
|
3501
3588
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3502
3589
|
* @summary Duplicate products.
|
|
@@ -3622,6 +3709,27 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
3622
3709
|
readonly productId: string
|
|
3623
3710
|
}
|
|
3624
3711
|
|
|
3712
|
+
/**
|
|
3713
|
+
* Request parameters for deleteProducts operation in ProductsApi.
|
|
3714
|
+
* @export
|
|
3715
|
+
* @interface ProductsApiDeleteProductsRequest
|
|
3716
|
+
*/
|
|
3717
|
+
export interface ProductsApiDeleteProductsRequest {
|
|
3718
|
+
/**
|
|
3719
|
+
* What project it is
|
|
3720
|
+
* @type {string}
|
|
3721
|
+
* @memberof ProductsApiDeleteProducts
|
|
3722
|
+
*/
|
|
3723
|
+
readonly project: string
|
|
3724
|
+
|
|
3725
|
+
/**
|
|
3726
|
+
* Delete products in bulk.
|
|
3727
|
+
* @type {DeleteProductsRequest}
|
|
3728
|
+
* @memberof ProductsApiDeleteProducts
|
|
3729
|
+
*/
|
|
3730
|
+
readonly deleteProductsRequest: DeleteProductsRequest
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3625
3733
|
/**
|
|
3626
3734
|
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
3627
3735
|
* @export
|
|
@@ -3856,6 +3964,18 @@ export class ProductsApi extends BaseAPI {
|
|
|
3856
3964
|
return ProductsApiFp(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
3857
3965
|
}
|
|
3858
3966
|
|
|
3967
|
+
/**
|
|
3968
|
+
* Deletes catalog products for the given project.
|
|
3969
|
+
* @summary Delete products
|
|
3970
|
+
* @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
|
|
3971
|
+
* @param {*} [options] Override http request option.
|
|
3972
|
+
* @throws {RequiredError}
|
|
3973
|
+
* @memberof ProductsApi
|
|
3974
|
+
*/
|
|
3975
|
+
public deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig) {
|
|
3976
|
+
return ProductsApiFp(this.configuration).deleteProducts(requestParameters.project, requestParameters.deleteProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3859
3979
|
/**
|
|
3860
3980
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3861
3981
|
* @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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.50.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -818,6 +818,19 @@ export interface CreateProductVideosInner {
|
|
|
818
818
|
*/
|
|
819
819
|
'src'?: string;
|
|
820
820
|
}
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @export
|
|
824
|
+
* @interface DeleteProductsRequest
|
|
825
|
+
*/
|
|
826
|
+
export interface DeleteProductsRequest {
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @type {Array<string>}
|
|
830
|
+
* @memberof DeleteProductsRequest
|
|
831
|
+
*/
|
|
832
|
+
'products'?: Array<string>;
|
|
833
|
+
}
|
|
821
834
|
/**
|
|
822
835
|
*
|
|
823
836
|
* @export
|
|
@@ -2503,6 +2516,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2503
2516
|
* @throws {RequiredError}
|
|
2504
2517
|
*/
|
|
2505
2518
|
deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Deletes catalog products for the given project.
|
|
2521
|
+
* @summary Delete products
|
|
2522
|
+
* @param {string} project What project it is
|
|
2523
|
+
* @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
*/
|
|
2527
|
+
deleteProducts: (project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2506
2528
|
/**
|
|
2507
2529
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2508
2530
|
* @summary Duplicate products.
|
|
@@ -2604,6 +2626,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
2604
2626
|
* @throws {RequiredError}
|
|
2605
2627
|
*/
|
|
2606
2628
|
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Deletes catalog products for the given project.
|
|
2631
|
+
* @summary Delete products
|
|
2632
|
+
* @param {string} project What project it is
|
|
2633
|
+
* @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
*/
|
|
2637
|
+
deleteProducts(project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2607
2638
|
/**
|
|
2608
2639
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2609
2640
|
* @summary Duplicate products.
|
|
@@ -2703,6 +2734,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
2703
2734
|
* @throws {RequiredError}
|
|
2704
2735
|
*/
|
|
2705
2736
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2737
|
+
/**
|
|
2738
|
+
* Deletes catalog products for the given project.
|
|
2739
|
+
* @summary Delete products
|
|
2740
|
+
* @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
|
|
2741
|
+
* @param {*} [options] Override http request option.
|
|
2742
|
+
* @throws {RequiredError}
|
|
2743
|
+
*/
|
|
2744
|
+
deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2706
2745
|
/**
|
|
2707
2746
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2708
2747
|
* @summary Duplicate products.
|
|
@@ -2806,6 +2845,25 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
2806
2845
|
*/
|
|
2807
2846
|
readonly productId: string;
|
|
2808
2847
|
}
|
|
2848
|
+
/**
|
|
2849
|
+
* Request parameters for deleteProducts operation in ProductsApi.
|
|
2850
|
+
* @export
|
|
2851
|
+
* @interface ProductsApiDeleteProductsRequest
|
|
2852
|
+
*/
|
|
2853
|
+
export interface ProductsApiDeleteProductsRequest {
|
|
2854
|
+
/**
|
|
2855
|
+
* What project it is
|
|
2856
|
+
* @type {string}
|
|
2857
|
+
* @memberof ProductsApiDeleteProducts
|
|
2858
|
+
*/
|
|
2859
|
+
readonly project: string;
|
|
2860
|
+
/**
|
|
2861
|
+
* Delete products in bulk.
|
|
2862
|
+
* @type {DeleteProductsRequest}
|
|
2863
|
+
* @memberof ProductsApiDeleteProducts
|
|
2864
|
+
*/
|
|
2865
|
+
readonly deleteProductsRequest: DeleteProductsRequest;
|
|
2866
|
+
}
|
|
2809
2867
|
/**
|
|
2810
2868
|
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
2811
2869
|
* @export
|
|
@@ -3013,6 +3071,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
3013
3071
|
* @memberof ProductsApi
|
|
3014
3072
|
*/
|
|
3015
3073
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3074
|
+
/**
|
|
3075
|
+
* Deletes catalog products for the given project.
|
|
3076
|
+
* @summary Delete products
|
|
3077
|
+
* @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
|
|
3078
|
+
* @param {*} [options] Override http request option.
|
|
3079
|
+
* @throws {RequiredError}
|
|
3080
|
+
* @memberof ProductsApi
|
|
3081
|
+
*/
|
|
3082
|
+
deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3016
3083
|
/**
|
|
3017
3084
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3018
3085
|
* @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.
|
|
8
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.50.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.50.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.50.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.50.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.50.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.50.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.50.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -818,6 +818,19 @@ export interface CreateProductVideosInner {
|
|
|
818
818
|
*/
|
|
819
819
|
'src'?: string;
|
|
820
820
|
}
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @export
|
|
824
|
+
* @interface DeleteProductsRequest
|
|
825
|
+
*/
|
|
826
|
+
export interface DeleteProductsRequest {
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @type {Array<string>}
|
|
830
|
+
* @memberof DeleteProductsRequest
|
|
831
|
+
*/
|
|
832
|
+
'products'?: Array<string>;
|
|
833
|
+
}
|
|
821
834
|
/**
|
|
822
835
|
*
|
|
823
836
|
* @export
|
|
@@ -2503,6 +2516,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2503
2516
|
* @throws {RequiredError}
|
|
2504
2517
|
*/
|
|
2505
2518
|
deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Deletes catalog products for the given project.
|
|
2521
|
+
* @summary Delete products
|
|
2522
|
+
* @param {string} project What project it is
|
|
2523
|
+
* @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
*/
|
|
2527
|
+
deleteProducts: (project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2506
2528
|
/**
|
|
2507
2529
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2508
2530
|
* @summary Duplicate products.
|
|
@@ -2604,6 +2626,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
2604
2626
|
* @throws {RequiredError}
|
|
2605
2627
|
*/
|
|
2606
2628
|
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Deletes catalog products for the given project.
|
|
2631
|
+
* @summary Delete products
|
|
2632
|
+
* @param {string} project What project it is
|
|
2633
|
+
* @param {DeleteProductsRequest} deleteProductsRequest Delete products in bulk.
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
*/
|
|
2637
|
+
deleteProducts(project: string, deleteProductsRequest: DeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2607
2638
|
/**
|
|
2608
2639
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2609
2640
|
* @summary Duplicate products.
|
|
@@ -2703,6 +2734,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
2703
2734
|
* @throws {RequiredError}
|
|
2704
2735
|
*/
|
|
2705
2736
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2737
|
+
/**
|
|
2738
|
+
* Deletes catalog products for the given project.
|
|
2739
|
+
* @summary Delete products
|
|
2740
|
+
* @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
|
|
2741
|
+
* @param {*} [options] Override http request option.
|
|
2742
|
+
* @throws {RequiredError}
|
|
2743
|
+
*/
|
|
2744
|
+
deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2706
2745
|
/**
|
|
2707
2746
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2708
2747
|
* @summary Duplicate products.
|
|
@@ -2806,6 +2845,25 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
2806
2845
|
*/
|
|
2807
2846
|
readonly productId: string;
|
|
2808
2847
|
}
|
|
2848
|
+
/**
|
|
2849
|
+
* Request parameters for deleteProducts operation in ProductsApi.
|
|
2850
|
+
* @export
|
|
2851
|
+
* @interface ProductsApiDeleteProductsRequest
|
|
2852
|
+
*/
|
|
2853
|
+
export interface ProductsApiDeleteProductsRequest {
|
|
2854
|
+
/**
|
|
2855
|
+
* What project it is
|
|
2856
|
+
* @type {string}
|
|
2857
|
+
* @memberof ProductsApiDeleteProducts
|
|
2858
|
+
*/
|
|
2859
|
+
readonly project: string;
|
|
2860
|
+
/**
|
|
2861
|
+
* Delete products in bulk.
|
|
2862
|
+
* @type {DeleteProductsRequest}
|
|
2863
|
+
* @memberof ProductsApiDeleteProducts
|
|
2864
|
+
*/
|
|
2865
|
+
readonly deleteProductsRequest: DeleteProductsRequest;
|
|
2866
|
+
}
|
|
2809
2867
|
/**
|
|
2810
2868
|
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
2811
2869
|
* @export
|
|
@@ -3013,6 +3071,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
3013
3071
|
* @memberof ProductsApi
|
|
3014
3072
|
*/
|
|
3015
3073
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3074
|
+
/**
|
|
3075
|
+
* Deletes catalog products for the given project.
|
|
3076
|
+
* @summary Delete products
|
|
3077
|
+
* @param {ProductsApiDeleteProductsRequest} requestParameters Request parameters.
|
|
3078
|
+
* @param {*} [options] Override http request option.
|
|
3079
|
+
* @throws {RequiredError}
|
|
3080
|
+
* @memberof ProductsApi
|
|
3081
|
+
*/
|
|
3082
|
+
deleteProducts(requestParameters: ProductsApiDeleteProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3016
3083
|
/**
|
|
3017
3084
|
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3018
3085
|
* @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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.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.
|
package/dist/esm/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.50.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.50.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.
|
|
5
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.50.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.50.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteProductsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**products** | **Array<string>** | | [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)
|
package/docs/ProductsApi.md
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|