@teemill/product-catalog 1.43.0 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +138 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +87 -1
- package/dist/api.js +78 -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 +87 -1
- package/dist/esm/api.js +78 -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/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.44.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.44.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
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.44.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -803,6 +803,38 @@ export interface CreateProductVideosInner {
|
|
|
803
803
|
*/
|
|
804
804
|
'src'?: string;
|
|
805
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @export
|
|
809
|
+
* @interface DuplicateProducts202Response
|
|
810
|
+
*/
|
|
811
|
+
export interface DuplicateProducts202Response {
|
|
812
|
+
/**
|
|
813
|
+
* A message describing the duplication status
|
|
814
|
+
* @type {string}
|
|
815
|
+
* @memberof DuplicateProducts202Response
|
|
816
|
+
*/
|
|
817
|
+
'message'?: string;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @export
|
|
822
|
+
* @interface DuplicateProductsRequest
|
|
823
|
+
*/
|
|
824
|
+
export interface DuplicateProductsRequest {
|
|
825
|
+
/**
|
|
826
|
+
* A set of product IDs to duplicate.
|
|
827
|
+
* @type {Array<string>}
|
|
828
|
+
* @memberof DuplicateProductsRequest
|
|
829
|
+
*/
|
|
830
|
+
'ids': Array<string>;
|
|
831
|
+
/**
|
|
832
|
+
* A set of project IDs to duplicate the products to.
|
|
833
|
+
* @type {Array<string>}
|
|
834
|
+
* @memberof DuplicateProductsRequest
|
|
835
|
+
*/
|
|
836
|
+
'projects': Array<string>;
|
|
837
|
+
}
|
|
806
838
|
/**
|
|
807
839
|
* Image description
|
|
808
840
|
* @export
|
|
@@ -2712,6 +2744,54 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2712
2744
|
options: localVarRequestOptions,
|
|
2713
2745
|
};
|
|
2714
2746
|
},
|
|
2747
|
+
/**
|
|
2748
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2749
|
+
* @summary Duplicate products.
|
|
2750
|
+
* @param {string} project What project it is
|
|
2751
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2752
|
+
* @param {*} [options] Override http request option.
|
|
2753
|
+
* @throws {RequiredError}
|
|
2754
|
+
*/
|
|
2755
|
+
duplicateProducts: async (project: string, duplicateProductsRequest?: DuplicateProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2756
|
+
// verify required parameter 'project' is not null or undefined
|
|
2757
|
+
assertParamExists('duplicateProducts', 'project', project)
|
|
2758
|
+
const localVarPath = `/v1/catalog/products/duplicate`;
|
|
2759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2760
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2761
|
+
let baseOptions;
|
|
2762
|
+
if (configuration) {
|
|
2763
|
+
baseOptions = configuration.baseOptions;
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2767
|
+
const localVarHeaderParameter = {} as any;
|
|
2768
|
+
const localVarQueryParameter = {} as any;
|
|
2769
|
+
|
|
2770
|
+
// authentication session-oauth required
|
|
2771
|
+
// oauth required
|
|
2772
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2773
|
+
|
|
2774
|
+
// authentication api-key required
|
|
2775
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2776
|
+
|
|
2777
|
+
if (project !== undefined) {
|
|
2778
|
+
localVarQueryParameter['project'] = project;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2784
|
+
|
|
2785
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2786
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2787
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2788
|
+
localVarRequestOptions.data = serializeDataIfNeeded(duplicateProductsRequest, localVarRequestOptions, configuration)
|
|
2789
|
+
|
|
2790
|
+
return {
|
|
2791
|
+
url: toPathString(localVarUrlObj),
|
|
2792
|
+
options: localVarRequestOptions,
|
|
2793
|
+
};
|
|
2794
|
+
},
|
|
2715
2795
|
/**
|
|
2716
2796
|
* Gets a product by a given ID.
|
|
2717
2797
|
* @summary Get product
|
|
@@ -3070,6 +3150,20 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
3070
3150
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.deleteProduct']?.[localVarOperationServerIndex]?.url;
|
|
3071
3151
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3072
3152
|
},
|
|
3153
|
+
/**
|
|
3154
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3155
|
+
* @summary Duplicate products.
|
|
3156
|
+
* @param {string} project What project it is
|
|
3157
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
async duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>> {
|
|
3162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateProducts(project, duplicateProductsRequest, options);
|
|
3163
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3164
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.duplicateProducts']?.[localVarOperationServerIndex]?.url;
|
|
3165
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3166
|
+
},
|
|
3073
3167
|
/**
|
|
3074
3168
|
* Gets a product by a given ID.
|
|
3075
3169
|
* @summary Get product
|
|
@@ -3190,6 +3284,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
3190
3284
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3191
3285
|
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
3192
3286
|
},
|
|
3287
|
+
/**
|
|
3288
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3289
|
+
* @summary Duplicate products.
|
|
3290
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
3291
|
+
* @param {*} [options] Override http request option.
|
|
3292
|
+
* @throws {RequiredError}
|
|
3293
|
+
*/
|
|
3294
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response> {
|
|
3295
|
+
return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
|
|
3296
|
+
},
|
|
3193
3297
|
/**
|
|
3194
3298
|
* Gets a product by a given ID.
|
|
3195
3299
|
* @summary Get product
|
|
@@ -3295,6 +3399,27 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
3295
3399
|
readonly productId: string
|
|
3296
3400
|
}
|
|
3297
3401
|
|
|
3402
|
+
/**
|
|
3403
|
+
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
3404
|
+
* @export
|
|
3405
|
+
* @interface ProductsApiDuplicateProductsRequest
|
|
3406
|
+
*/
|
|
3407
|
+
export interface ProductsApiDuplicateProductsRequest {
|
|
3408
|
+
/**
|
|
3409
|
+
* What project it is
|
|
3410
|
+
* @type {string}
|
|
3411
|
+
* @memberof ProductsApiDuplicateProducts
|
|
3412
|
+
*/
|
|
3413
|
+
readonly project: string
|
|
3414
|
+
|
|
3415
|
+
/**
|
|
3416
|
+
* A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
3417
|
+
* @type {DuplicateProductsRequest}
|
|
3418
|
+
* @memberof ProductsApiDuplicateProducts
|
|
3419
|
+
*/
|
|
3420
|
+
readonly duplicateProductsRequest?: DuplicateProductsRequest
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3298
3423
|
/**
|
|
3299
3424
|
* Request parameters for getProduct operation in ProductsApi.
|
|
3300
3425
|
* @export
|
|
@@ -3494,6 +3619,18 @@ export class ProductsApi extends BaseAPI {
|
|
|
3494
3619
|
return ProductsApiFp(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
3495
3620
|
}
|
|
3496
3621
|
|
|
3622
|
+
/**
|
|
3623
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
3624
|
+
* @summary Duplicate products.
|
|
3625
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
3626
|
+
* @param {*} [options] Override http request option.
|
|
3627
|
+
* @throws {RequiredError}
|
|
3628
|
+
* @memberof ProductsApi
|
|
3629
|
+
*/
|
|
3630
|
+
public duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig) {
|
|
3631
|
+
return ProductsApiFp(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3632
|
+
}
|
|
3633
|
+
|
|
3497
3634
|
/**
|
|
3498
3635
|
* Gets a product by a given ID.
|
|
3499
3636
|
* @summary Get product
|
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.44.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.44.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.44.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.44.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -781,6 +781,38 @@ export interface CreateProductVideosInner {
|
|
|
781
781
|
*/
|
|
782
782
|
'src'?: string;
|
|
783
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @export
|
|
787
|
+
* @interface DuplicateProducts202Response
|
|
788
|
+
*/
|
|
789
|
+
export interface DuplicateProducts202Response {
|
|
790
|
+
/**
|
|
791
|
+
* A message describing the duplication status
|
|
792
|
+
* @type {string}
|
|
793
|
+
* @memberof DuplicateProducts202Response
|
|
794
|
+
*/
|
|
795
|
+
'message'?: string;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @export
|
|
800
|
+
* @interface DuplicateProductsRequest
|
|
801
|
+
*/
|
|
802
|
+
export interface DuplicateProductsRequest {
|
|
803
|
+
/**
|
|
804
|
+
* A set of product IDs to duplicate.
|
|
805
|
+
* @type {Array<string>}
|
|
806
|
+
* @memberof DuplicateProductsRequest
|
|
807
|
+
*/
|
|
808
|
+
'ids': Array<string>;
|
|
809
|
+
/**
|
|
810
|
+
* A set of project IDs to duplicate the products to.
|
|
811
|
+
* @type {Array<string>}
|
|
812
|
+
* @memberof DuplicateProductsRequest
|
|
813
|
+
*/
|
|
814
|
+
'projects': Array<string>;
|
|
815
|
+
}
|
|
784
816
|
/**
|
|
785
817
|
* Image description
|
|
786
818
|
* @export
|
|
@@ -2315,6 +2347,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2315
2347
|
* @throws {RequiredError}
|
|
2316
2348
|
*/
|
|
2317
2349
|
deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2350
|
+
/**
|
|
2351
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2352
|
+
* @summary Duplicate products.
|
|
2353
|
+
* @param {string} project What project it is
|
|
2354
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
duplicateProducts: (project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2318
2359
|
/**
|
|
2319
2360
|
* Gets a product by a given ID.
|
|
2320
2361
|
* @summary Get product
|
|
@@ -2399,6 +2440,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
2399
2440
|
* @throws {RequiredError}
|
|
2400
2441
|
*/
|
|
2401
2442
|
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2445
|
+
* @summary Duplicate products.
|
|
2446
|
+
* @param {string} project What project it is
|
|
2447
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
|
|
2402
2452
|
/**
|
|
2403
2453
|
* Gets a product by a given ID.
|
|
2404
2454
|
* @summary Get product
|
|
@@ -2481,6 +2531,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
2481
2531
|
* @throws {RequiredError}
|
|
2482
2532
|
*/
|
|
2483
2533
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2536
|
+
* @summary Duplicate products.
|
|
2537
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
*/
|
|
2541
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
|
|
2484
2542
|
/**
|
|
2485
2543
|
* Gets a product by a given ID.
|
|
2486
2544
|
* @summary Get product
|
|
@@ -2568,6 +2626,25 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
2568
2626
|
*/
|
|
2569
2627
|
readonly productId: string;
|
|
2570
2628
|
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
2631
|
+
* @export
|
|
2632
|
+
* @interface ProductsApiDuplicateProductsRequest
|
|
2633
|
+
*/
|
|
2634
|
+
export interface ProductsApiDuplicateProductsRequest {
|
|
2635
|
+
/**
|
|
2636
|
+
* What project it is
|
|
2637
|
+
* @type {string}
|
|
2638
|
+
* @memberof ProductsApiDuplicateProducts
|
|
2639
|
+
*/
|
|
2640
|
+
readonly project: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2643
|
+
* @type {DuplicateProductsRequest}
|
|
2644
|
+
* @memberof ProductsApiDuplicateProducts
|
|
2645
|
+
*/
|
|
2646
|
+
readonly duplicateProductsRequest?: DuplicateProductsRequest;
|
|
2647
|
+
}
|
|
2571
2648
|
/**
|
|
2572
2649
|
* Request parameters for getProduct operation in ProductsApi.
|
|
2573
2650
|
* @export
|
|
@@ -2743,6 +2820,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
2743
2820
|
* @memberof ProductsApi
|
|
2744
2821
|
*/
|
|
2745
2822
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2823
|
+
/**
|
|
2824
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2825
|
+
* @summary Duplicate products.
|
|
2826
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
2827
|
+
* @param {*} [options] Override http request option.
|
|
2828
|
+
* @throws {RequiredError}
|
|
2829
|
+
* @memberof ProductsApi
|
|
2830
|
+
*/
|
|
2831
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any>>;
|
|
2746
2832
|
/**
|
|
2747
2833
|
* Gets a product by a given ID.
|
|
2748
2834
|
* @summary Get product
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.44.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -609,6 +609,45 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
609
609
|
options: localVarRequestOptions,
|
|
610
610
|
};
|
|
611
611
|
}),
|
|
612
|
+
/**
|
|
613
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
614
|
+
* @summary Duplicate products.
|
|
615
|
+
* @param {string} project What project it is
|
|
616
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
duplicateProducts: (project_1, duplicateProductsRequest_1, ...args_1) => __awaiter(this, [project_1, duplicateProductsRequest_1, ...args_1], void 0, function* (project, duplicateProductsRequest, options = {}) {
|
|
621
|
+
// verify required parameter 'project' is not null or undefined
|
|
622
|
+
(0, common_1.assertParamExists)('duplicateProducts', 'project', project);
|
|
623
|
+
const localVarPath = `/v1/catalog/products/duplicate`;
|
|
624
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
625
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
626
|
+
let baseOptions;
|
|
627
|
+
if (configuration) {
|
|
628
|
+
baseOptions = configuration.baseOptions;
|
|
629
|
+
}
|
|
630
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
631
|
+
const localVarHeaderParameter = {};
|
|
632
|
+
const localVarQueryParameter = {};
|
|
633
|
+
// authentication session-oauth required
|
|
634
|
+
// oauth required
|
|
635
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
636
|
+
// authentication api-key required
|
|
637
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
638
|
+
if (project !== undefined) {
|
|
639
|
+
localVarQueryParameter['project'] = project;
|
|
640
|
+
}
|
|
641
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
642
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
645
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(duplicateProductsRequest, localVarRequestOptions, configuration);
|
|
646
|
+
return {
|
|
647
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
648
|
+
options: localVarRequestOptions,
|
|
649
|
+
};
|
|
650
|
+
}),
|
|
612
651
|
/**
|
|
613
652
|
* Gets a product by a given ID.
|
|
614
653
|
* @summary Get product
|
|
@@ -915,6 +954,23 @@ const ProductsApiFp = function (configuration) {
|
|
|
915
954
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
916
955
|
});
|
|
917
956
|
},
|
|
957
|
+
/**
|
|
958
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
959
|
+
* @summary Duplicate products.
|
|
960
|
+
* @param {string} project What project it is
|
|
961
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
duplicateProducts(project, duplicateProductsRequest, options) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
var _a, _b, _c;
|
|
968
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProducts(project, duplicateProductsRequest, options);
|
|
969
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
970
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.duplicateProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
971
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
972
|
+
});
|
|
973
|
+
},
|
|
918
974
|
/**
|
|
919
975
|
* Gets a product by a given ID.
|
|
920
976
|
* @summary Get product
|
|
@@ -1053,6 +1109,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1053
1109
|
deleteProduct(requestParameters, options) {
|
|
1054
1110
|
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1055
1111
|
},
|
|
1112
|
+
/**
|
|
1113
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
1114
|
+
* @summary Duplicate products.
|
|
1115
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
*/
|
|
1119
|
+
duplicateProducts(requestParameters, options) {
|
|
1120
|
+
return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
|
|
1121
|
+
},
|
|
1056
1122
|
/**
|
|
1057
1123
|
* Gets a product by a given ID.
|
|
1058
1124
|
* @summary Get product
|
|
@@ -1145,6 +1211,17 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
1145
1211
|
deleteProduct(requestParameters, options) {
|
|
1146
1212
|
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1147
1213
|
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
1216
|
+
* @summary Duplicate products.
|
|
1217
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
* @memberof ProductsApi
|
|
1221
|
+
*/
|
|
1222
|
+
duplicateProducts(requestParameters, options) {
|
|
1223
|
+
return (0, exports.ProductsApiFp)(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1224
|
+
}
|
|
1148
1225
|
/**
|
|
1149
1226
|
* Gets a product by a given ID.
|
|
1150
1227
|
* @summary Get product
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.44.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.44.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.44.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.44.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.44.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.44.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.44.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -781,6 +781,38 @@ export interface CreateProductVideosInner {
|
|
|
781
781
|
*/
|
|
782
782
|
'src'?: string;
|
|
783
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @export
|
|
787
|
+
* @interface DuplicateProducts202Response
|
|
788
|
+
*/
|
|
789
|
+
export interface DuplicateProducts202Response {
|
|
790
|
+
/**
|
|
791
|
+
* A message describing the duplication status
|
|
792
|
+
* @type {string}
|
|
793
|
+
* @memberof DuplicateProducts202Response
|
|
794
|
+
*/
|
|
795
|
+
'message'?: string;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @export
|
|
800
|
+
* @interface DuplicateProductsRequest
|
|
801
|
+
*/
|
|
802
|
+
export interface DuplicateProductsRequest {
|
|
803
|
+
/**
|
|
804
|
+
* A set of product IDs to duplicate.
|
|
805
|
+
* @type {Array<string>}
|
|
806
|
+
* @memberof DuplicateProductsRequest
|
|
807
|
+
*/
|
|
808
|
+
'ids': Array<string>;
|
|
809
|
+
/**
|
|
810
|
+
* A set of project IDs to duplicate the products to.
|
|
811
|
+
* @type {Array<string>}
|
|
812
|
+
* @memberof DuplicateProductsRequest
|
|
813
|
+
*/
|
|
814
|
+
'projects': Array<string>;
|
|
815
|
+
}
|
|
784
816
|
/**
|
|
785
817
|
* Image description
|
|
786
818
|
* @export
|
|
@@ -2315,6 +2347,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2315
2347
|
* @throws {RequiredError}
|
|
2316
2348
|
*/
|
|
2317
2349
|
deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2350
|
+
/**
|
|
2351
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2352
|
+
* @summary Duplicate products.
|
|
2353
|
+
* @param {string} project What project it is
|
|
2354
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
duplicateProducts: (project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2318
2359
|
/**
|
|
2319
2360
|
* Gets a product by a given ID.
|
|
2320
2361
|
* @summary Get product
|
|
@@ -2399,6 +2440,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
2399
2440
|
* @throws {RequiredError}
|
|
2400
2441
|
*/
|
|
2401
2442
|
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2445
|
+
* @summary Duplicate products.
|
|
2446
|
+
* @param {string} project What project it is
|
|
2447
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
|
|
2402
2452
|
/**
|
|
2403
2453
|
* Gets a product by a given ID.
|
|
2404
2454
|
* @summary Get product
|
|
@@ -2481,6 +2531,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
2481
2531
|
* @throws {RequiredError}
|
|
2482
2532
|
*/
|
|
2483
2533
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2536
|
+
* @summary Duplicate products.
|
|
2537
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
*/
|
|
2541
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
|
|
2484
2542
|
/**
|
|
2485
2543
|
* Gets a product by a given ID.
|
|
2486
2544
|
* @summary Get product
|
|
@@ -2568,6 +2626,25 @@ export interface ProductsApiDeleteProductRequest {
|
|
|
2568
2626
|
*/
|
|
2569
2627
|
readonly productId: string;
|
|
2570
2628
|
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Request parameters for duplicateProducts operation in ProductsApi.
|
|
2631
|
+
* @export
|
|
2632
|
+
* @interface ProductsApiDuplicateProductsRequest
|
|
2633
|
+
*/
|
|
2634
|
+
export interface ProductsApiDuplicateProductsRequest {
|
|
2635
|
+
/**
|
|
2636
|
+
* What project it is
|
|
2637
|
+
* @type {string}
|
|
2638
|
+
* @memberof ProductsApiDuplicateProducts
|
|
2639
|
+
*/
|
|
2640
|
+
readonly project: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
2643
|
+
* @type {DuplicateProductsRequest}
|
|
2644
|
+
* @memberof ProductsApiDuplicateProducts
|
|
2645
|
+
*/
|
|
2646
|
+
readonly duplicateProductsRequest?: DuplicateProductsRequest;
|
|
2647
|
+
}
|
|
2571
2648
|
/**
|
|
2572
2649
|
* Request parameters for getProduct operation in ProductsApi.
|
|
2573
2650
|
* @export
|
|
@@ -2743,6 +2820,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
2743
2820
|
* @memberof ProductsApi
|
|
2744
2821
|
*/
|
|
2745
2822
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2823
|
+
/**
|
|
2824
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
2825
|
+
* @summary Duplicate products.
|
|
2826
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
2827
|
+
* @param {*} [options] Override http request option.
|
|
2828
|
+
* @throws {RequiredError}
|
|
2829
|
+
* @memberof ProductsApi
|
|
2830
|
+
*/
|
|
2831
|
+
duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any>>;
|
|
2746
2832
|
/**
|
|
2747
2833
|
* Gets a product by a given ID.
|
|
2748
2834
|
* @summary Get product
|
package/dist/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.44.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -602,6 +602,45 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
602
602
|
options: localVarRequestOptions,
|
|
603
603
|
};
|
|
604
604
|
}),
|
|
605
|
+
/**
|
|
606
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
607
|
+
* @summary Duplicate products.
|
|
608
|
+
* @param {string} project What project it is
|
|
609
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
duplicateProducts: (project_1, duplicateProductsRequest_1, ...args_1) => __awaiter(this, [project_1, duplicateProductsRequest_1, ...args_1], void 0, function* (project, duplicateProductsRequest, options = {}) {
|
|
614
|
+
// verify required parameter 'project' is not null or undefined
|
|
615
|
+
assertParamExists('duplicateProducts', 'project', project);
|
|
616
|
+
const localVarPath = `/v1/catalog/products/duplicate`;
|
|
617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
618
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
619
|
+
let baseOptions;
|
|
620
|
+
if (configuration) {
|
|
621
|
+
baseOptions = configuration.baseOptions;
|
|
622
|
+
}
|
|
623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
624
|
+
const localVarHeaderParameter = {};
|
|
625
|
+
const localVarQueryParameter = {};
|
|
626
|
+
// authentication session-oauth required
|
|
627
|
+
// oauth required
|
|
628
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
629
|
+
// authentication api-key required
|
|
630
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
631
|
+
if (project !== undefined) {
|
|
632
|
+
localVarQueryParameter['project'] = project;
|
|
633
|
+
}
|
|
634
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
638
|
+
localVarRequestOptions.data = serializeDataIfNeeded(duplicateProductsRequest, localVarRequestOptions, configuration);
|
|
639
|
+
return {
|
|
640
|
+
url: toPathString(localVarUrlObj),
|
|
641
|
+
options: localVarRequestOptions,
|
|
642
|
+
};
|
|
643
|
+
}),
|
|
605
644
|
/**
|
|
606
645
|
* Gets a product by a given ID.
|
|
607
646
|
* @summary Get product
|
|
@@ -907,6 +946,23 @@ export const ProductsApiFp = function (configuration) {
|
|
|
907
946
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
908
947
|
});
|
|
909
948
|
},
|
|
949
|
+
/**
|
|
950
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
951
|
+
* @summary Duplicate products.
|
|
952
|
+
* @param {string} project What project it is
|
|
953
|
+
* @param {DuplicateProductsRequest} [duplicateProductsRequest] A set of product IDs to duplicate and the project IDs to duplicate them to.
|
|
954
|
+
* @param {*} [options] Override http request option.
|
|
955
|
+
* @throws {RequiredError}
|
|
956
|
+
*/
|
|
957
|
+
duplicateProducts(project, duplicateProductsRequest, options) {
|
|
958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
959
|
+
var _a, _b, _c;
|
|
960
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProducts(project, duplicateProductsRequest, options);
|
|
961
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
962
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.duplicateProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
963
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
964
|
+
});
|
|
965
|
+
},
|
|
910
966
|
/**
|
|
911
967
|
* Gets a product by a given ID.
|
|
912
968
|
* @summary Get product
|
|
@@ -1044,6 +1100,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1044
1100
|
deleteProduct(requestParameters, options) {
|
|
1045
1101
|
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1046
1102
|
},
|
|
1103
|
+
/**
|
|
1104
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
1105
|
+
* @summary Duplicate products.
|
|
1106
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
*/
|
|
1110
|
+
duplicateProducts(requestParameters, options) {
|
|
1111
|
+
return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
|
|
1112
|
+
},
|
|
1047
1113
|
/**
|
|
1048
1114
|
* Gets a product by a given ID.
|
|
1049
1115
|
* @summary Get product
|
|
@@ -1135,6 +1201,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1135
1201
|
deleteProduct(requestParameters, options) {
|
|
1136
1202
|
return ProductsApiFp(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1137
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Duplicate products by a set of given IDs to a set of given project IDs.
|
|
1206
|
+
* @summary Duplicate products.
|
|
1207
|
+
* @param {ProductsApiDuplicateProductsRequest} requestParameters Request parameters.
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
* @memberof ProductsApi
|
|
1211
|
+
*/
|
|
1212
|
+
duplicateProducts(requestParameters, options) {
|
|
1213
|
+
return ProductsApiFp(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1214
|
+
}
|
|
1138
1215
|
/**
|
|
1139
1216
|
* Gets a product by a given ID.
|
|
1140
1217
|
* @summary Get product
|
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.44.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.44.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.44.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.44.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.44.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.44.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.44.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.44.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.44.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.44.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.44.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|