pipedrive 30.3.2 → 30.4.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/dist/esm/versions/v1/models/add-role-request.d.ts +1 -1
- package/dist/esm/versions/v1/models/base-role-request.d.ts +1 -1
- package/dist/esm/versions/v1/models/field.d.ts +4 -4
- package/dist/esm/versions/v2/api/products-api.d.ts +46 -0
- package/dist/esm/versions/v2/api/products-api.js +68 -0
- package/dist/versions/v1/models/add-role-request.d.ts +1 -1
- package/dist/versions/v1/models/base-role-request.d.ts +1 -1
- package/dist/versions/v1/models/field.d.ts +4 -4
- package/dist/versions/v2/api/products-api.d.ts +46 -0
- package/dist/versions/v2/api/products-api.js +68 -0
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export interface Field {
|
|
|
19
19
|
* The ID of the field. Value is `null` in case of subfields.
|
|
20
20
|
* @type {number}
|
|
21
21
|
*/
|
|
22
|
-
'id'?: number;
|
|
22
|
+
'id'?: number | null;
|
|
23
23
|
/**
|
|
24
24
|
* The key of the field. For custom fields this is generated upon creation.
|
|
25
25
|
* @type {string}
|
|
@@ -49,17 +49,17 @@ export interface Field {
|
|
|
49
49
|
* The update time of the field
|
|
50
50
|
* @type {string}
|
|
51
51
|
*/
|
|
52
|
-
'update_time'?: string;
|
|
52
|
+
'update_time'?: string | null;
|
|
53
53
|
/**
|
|
54
54
|
* The ID of the user who created or most recently updated the field, only applicable for custom fields
|
|
55
55
|
* @type {number}
|
|
56
56
|
*/
|
|
57
|
-
'last_updated_by_user_id'?: number;
|
|
57
|
+
'last_updated_by_user_id'?: number | null;
|
|
58
58
|
/**
|
|
59
59
|
* The ID of the user who created the field
|
|
60
60
|
* @type {number}
|
|
61
61
|
*/
|
|
62
|
-
'created_by_user_id'?: number;
|
|
62
|
+
'created_by_user_id'?: number | null;
|
|
63
63
|
/**
|
|
64
64
|
* The active flag of the field
|
|
65
65
|
* @type {boolean}
|
|
@@ -98,6 +98,14 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
100
|
deleteProductVariation: (id: number, product_variation_id: number) => Promise<RequestArgs>;
|
|
101
|
+
/**
|
|
102
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
103
|
+
* @summary Duplicate a product
|
|
104
|
+
* @param {number} id The ID of the product
|
|
105
|
+
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
duplicateProduct: (id: number) => Promise<RequestArgs>;
|
|
101
109
|
/**
|
|
102
110
|
* Returns data about a specific product.
|
|
103
111
|
* @summary Get one product
|
|
@@ -275,6 +283,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
275
283
|
* @throws {RequiredError}
|
|
276
284
|
*/
|
|
277
285
|
deleteProductVariation(id: number, product_variation_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteProductVariationResponse>>;
|
|
286
|
+
/**
|
|
287
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
288
|
+
* @summary Duplicate a product
|
|
289
|
+
* @param {number} id The ID of the product
|
|
290
|
+
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
duplicateProduct(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductResponse>>;
|
|
278
294
|
/**
|
|
279
295
|
* Returns data about a specific product.
|
|
280
296
|
* @summary Get one product
|
|
@@ -448,6 +464,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
448
464
|
* @throws {RequiredError}
|
|
449
465
|
*/
|
|
450
466
|
deleteProductVariation(requestParameters: ProductsApiDeleteProductVariationRequest): Promise<DeleteProductVariationResponse>;
|
|
467
|
+
/**
|
|
468
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
469
|
+
* @summary Duplicate a product
|
|
470
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
471
|
+
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
duplicateProduct(requestParameters: ProductsApiDuplicateProductRequest): Promise<GetProductResponse>;
|
|
451
475
|
/**
|
|
452
476
|
* Returns data about a specific product.
|
|
453
477
|
* @summary Get one product
|
|
@@ -652,6 +676,19 @@ export interface ProductsApiDeleteProductVariationRequest {
|
|
|
652
676
|
*/
|
|
653
677
|
readonly product_variation_id: number;
|
|
654
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Request parameters for duplicateProduct operation in ProductsApi.
|
|
681
|
+
* @export
|
|
682
|
+
* @interface ProductsApiDuplicateProductRequest
|
|
683
|
+
*/
|
|
684
|
+
export interface ProductsApiDuplicateProductRequest {
|
|
685
|
+
/**
|
|
686
|
+
* The ID of the product
|
|
687
|
+
* @type {number}
|
|
688
|
+
* @memberof ProductsApiDuplicateProduct
|
|
689
|
+
*/
|
|
690
|
+
readonly id: number;
|
|
691
|
+
}
|
|
655
692
|
/**
|
|
656
693
|
* Request parameters for getProduct operation in ProductsApi.
|
|
657
694
|
* @export
|
|
@@ -1003,6 +1040,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
1003
1040
|
* @memberof ProductsApi
|
|
1004
1041
|
*/
|
|
1005
1042
|
deleteProductVariation(requestParameters: ProductsApiDeleteProductVariationRequest): Promise<DeleteProductVariationResponse>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1045
|
+
* @summary Duplicate a product
|
|
1046
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1047
|
+
|
|
1048
|
+
* @throws {RequiredError}
|
|
1049
|
+
* @memberof ProductsApi
|
|
1050
|
+
*/
|
|
1051
|
+
duplicateProduct(requestParameters: ProductsApiDuplicateProductRequest): Promise<GetProductResponse>;
|
|
1006
1052
|
/**
|
|
1007
1053
|
* Returns data about a specific product.
|
|
1008
1054
|
* @summary Get one product
|
|
@@ -283,6 +283,40 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
283
283
|
options: localVarRequestOptions,
|
|
284
284
|
};
|
|
285
285
|
}),
|
|
286
|
+
/**
|
|
287
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
288
|
+
* @summary Duplicate a product
|
|
289
|
+
* @param {number} id The ID of the product
|
|
290
|
+
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
duplicateProduct: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
// verify required parameter 'id' is not null or undefined
|
|
295
|
+
assertParamExists('duplicateProduct', 'id', id);
|
|
296
|
+
const localVarPath = `/products/{id}/duplicate`
|
|
297
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
300
|
+
let baseOptions;
|
|
301
|
+
if (configuration) {
|
|
302
|
+
baseOptions = configuration.baseOptions;
|
|
303
|
+
}
|
|
304
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
305
|
+
const localVarHeaderParameter = {};
|
|
306
|
+
const localVarQueryParameter = {};
|
|
307
|
+
// authentication api_key required
|
|
308
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
|
309
|
+
// authentication oauth2 required
|
|
310
|
+
// oauth required
|
|
311
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
|
|
312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
315
|
+
return {
|
|
316
|
+
url: toPathString(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions,
|
|
318
|
+
};
|
|
319
|
+
}),
|
|
286
320
|
/**
|
|
287
321
|
* Returns data about a specific product.
|
|
288
322
|
* @summary Get one product
|
|
@@ -863,6 +897,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
863
897
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
864
898
|
});
|
|
865
899
|
},
|
|
900
|
+
/**
|
|
901
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
902
|
+
* @summary Duplicate a product
|
|
903
|
+
* @param {number} id The ID of the product
|
|
904
|
+
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
*/
|
|
907
|
+
duplicateProduct(id) {
|
|
908
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProduct(id);
|
|
910
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
911
|
+
});
|
|
912
|
+
},
|
|
866
913
|
/**
|
|
867
914
|
* Returns data about a specific product.
|
|
868
915
|
* @summary Get one product
|
|
@@ -1108,6 +1155,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1108
1155
|
deleteProductVariation(requestParameters) {
|
|
1109
1156
|
return localVarFp.deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(axios, basePath));
|
|
1110
1157
|
},
|
|
1158
|
+
/**
|
|
1159
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1160
|
+
* @summary Duplicate a product
|
|
1161
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1162
|
+
|
|
1163
|
+
* @throws {RequiredError}
|
|
1164
|
+
*/
|
|
1165
|
+
duplicateProduct(requestParameters) {
|
|
1166
|
+
return localVarFp.duplicateProduct(requestParameters.id).then((request) => request(axios, basePath));
|
|
1167
|
+
},
|
|
1111
1168
|
/**
|
|
1112
1169
|
* Returns data about a specific product.
|
|
1113
1170
|
* @summary Get one product
|
|
@@ -1304,6 +1361,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1304
1361
|
deleteProductVariation(requestParameters) {
|
|
1305
1362
|
return ProductsApiFp(this.configuration).deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(this.axios, this.basePath));
|
|
1306
1363
|
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1366
|
+
* @summary Duplicate a product
|
|
1367
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1368
|
+
|
|
1369
|
+
* @throws {RequiredError}
|
|
1370
|
+
* @memberof ProductsApi
|
|
1371
|
+
*/
|
|
1372
|
+
duplicateProduct(requestParameters) {
|
|
1373
|
+
return ProductsApiFp(this.configuration).duplicateProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1374
|
+
}
|
|
1307
1375
|
/**
|
|
1308
1376
|
* Returns data about a specific product.
|
|
1309
1377
|
* @summary Get one product
|
|
@@ -19,7 +19,7 @@ export interface Field {
|
|
|
19
19
|
* The ID of the field. Value is `null` in case of subfields.
|
|
20
20
|
* @type {number}
|
|
21
21
|
*/
|
|
22
|
-
'id'?: number;
|
|
22
|
+
'id'?: number | null;
|
|
23
23
|
/**
|
|
24
24
|
* The key of the field. For custom fields this is generated upon creation.
|
|
25
25
|
* @type {string}
|
|
@@ -49,17 +49,17 @@ export interface Field {
|
|
|
49
49
|
* The update time of the field
|
|
50
50
|
* @type {string}
|
|
51
51
|
*/
|
|
52
|
-
'update_time'?: string;
|
|
52
|
+
'update_time'?: string | null;
|
|
53
53
|
/**
|
|
54
54
|
* The ID of the user who created or most recently updated the field, only applicable for custom fields
|
|
55
55
|
* @type {number}
|
|
56
56
|
*/
|
|
57
|
-
'last_updated_by_user_id'?: number;
|
|
57
|
+
'last_updated_by_user_id'?: number | null;
|
|
58
58
|
/**
|
|
59
59
|
* The ID of the user who created the field
|
|
60
60
|
* @type {number}
|
|
61
61
|
*/
|
|
62
|
-
'created_by_user_id'?: number;
|
|
62
|
+
'created_by_user_id'?: number | null;
|
|
63
63
|
/**
|
|
64
64
|
* The active flag of the field
|
|
65
65
|
* @type {boolean}
|
|
@@ -98,6 +98,14 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
100
|
deleteProductVariation: (id: number, product_variation_id: number) => Promise<RequestArgs>;
|
|
101
|
+
/**
|
|
102
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
103
|
+
* @summary Duplicate a product
|
|
104
|
+
* @param {number} id The ID of the product
|
|
105
|
+
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
duplicateProduct: (id: number) => Promise<RequestArgs>;
|
|
101
109
|
/**
|
|
102
110
|
* Returns data about a specific product.
|
|
103
111
|
* @summary Get one product
|
|
@@ -275,6 +283,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
275
283
|
* @throws {RequiredError}
|
|
276
284
|
*/
|
|
277
285
|
deleteProductVariation(id: number, product_variation_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteProductVariationResponse>>;
|
|
286
|
+
/**
|
|
287
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
288
|
+
* @summary Duplicate a product
|
|
289
|
+
* @param {number} id The ID of the product
|
|
290
|
+
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
duplicateProduct(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetProductResponse>>;
|
|
278
294
|
/**
|
|
279
295
|
* Returns data about a specific product.
|
|
280
296
|
* @summary Get one product
|
|
@@ -448,6 +464,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
448
464
|
* @throws {RequiredError}
|
|
449
465
|
*/
|
|
450
466
|
deleteProductVariation(requestParameters: ProductsApiDeleteProductVariationRequest): Promise<DeleteProductVariationResponse>;
|
|
467
|
+
/**
|
|
468
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
469
|
+
* @summary Duplicate a product
|
|
470
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
471
|
+
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
duplicateProduct(requestParameters: ProductsApiDuplicateProductRequest): Promise<GetProductResponse>;
|
|
451
475
|
/**
|
|
452
476
|
* Returns data about a specific product.
|
|
453
477
|
* @summary Get one product
|
|
@@ -652,6 +676,19 @@ export interface ProductsApiDeleteProductVariationRequest {
|
|
|
652
676
|
*/
|
|
653
677
|
readonly product_variation_id: number;
|
|
654
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Request parameters for duplicateProduct operation in ProductsApi.
|
|
681
|
+
* @export
|
|
682
|
+
* @interface ProductsApiDuplicateProductRequest
|
|
683
|
+
*/
|
|
684
|
+
export interface ProductsApiDuplicateProductRequest {
|
|
685
|
+
/**
|
|
686
|
+
* The ID of the product
|
|
687
|
+
* @type {number}
|
|
688
|
+
* @memberof ProductsApiDuplicateProduct
|
|
689
|
+
*/
|
|
690
|
+
readonly id: number;
|
|
691
|
+
}
|
|
655
692
|
/**
|
|
656
693
|
* Request parameters for getProduct operation in ProductsApi.
|
|
657
694
|
* @export
|
|
@@ -1003,6 +1040,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
1003
1040
|
* @memberof ProductsApi
|
|
1004
1041
|
*/
|
|
1005
1042
|
deleteProductVariation(requestParameters: ProductsApiDeleteProductVariationRequest): Promise<DeleteProductVariationResponse>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1045
|
+
* @summary Duplicate a product
|
|
1046
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1047
|
+
|
|
1048
|
+
* @throws {RequiredError}
|
|
1049
|
+
* @memberof ProductsApi
|
|
1050
|
+
*/
|
|
1051
|
+
duplicateProduct(requestParameters: ProductsApiDuplicateProductRequest): Promise<GetProductResponse>;
|
|
1006
1052
|
/**
|
|
1007
1053
|
* Returns data about a specific product.
|
|
1008
1054
|
* @summary Get one product
|
|
@@ -289,6 +289,40 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
289
289
|
options: localVarRequestOptions,
|
|
290
290
|
};
|
|
291
291
|
}),
|
|
292
|
+
/**
|
|
293
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
294
|
+
* @summary Duplicate a product
|
|
295
|
+
* @param {number} id The ID of the product
|
|
296
|
+
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
duplicateProduct: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
// verify required parameter 'id' is not null or undefined
|
|
301
|
+
(0, common_1.assertParamExists)('duplicateProduct', 'id', id);
|
|
302
|
+
const localVarPath = `/products/{id}/duplicate`
|
|
303
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
304
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
305
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
306
|
+
let baseOptions;
|
|
307
|
+
if (configuration) {
|
|
308
|
+
baseOptions = configuration.baseOptions;
|
|
309
|
+
}
|
|
310
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
311
|
+
const localVarHeaderParameter = {};
|
|
312
|
+
const localVarQueryParameter = {};
|
|
313
|
+
// authentication api_key required
|
|
314
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
315
|
+
// authentication oauth2 required
|
|
316
|
+
// oauth required
|
|
317
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
|
|
318
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
321
|
+
return {
|
|
322
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions,
|
|
324
|
+
};
|
|
325
|
+
}),
|
|
292
326
|
/**
|
|
293
327
|
* Returns data about a specific product.
|
|
294
328
|
* @summary Get one product
|
|
@@ -870,6 +904,19 @@ const ProductsApiFp = function (configuration) {
|
|
|
870
904
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
871
905
|
});
|
|
872
906
|
},
|
|
907
|
+
/**
|
|
908
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
909
|
+
* @summary Duplicate a product
|
|
910
|
+
* @param {number} id The ID of the product
|
|
911
|
+
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
duplicateProduct(id) {
|
|
915
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProduct(id);
|
|
917
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
918
|
+
});
|
|
919
|
+
},
|
|
873
920
|
/**
|
|
874
921
|
* Returns data about a specific product.
|
|
875
922
|
* @summary Get one product
|
|
@@ -1116,6 +1163,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1116
1163
|
deleteProductVariation(requestParameters) {
|
|
1117
1164
|
return localVarFp.deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(axios, basePath));
|
|
1118
1165
|
},
|
|
1166
|
+
/**
|
|
1167
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1168
|
+
* @summary Duplicate a product
|
|
1169
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1170
|
+
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
*/
|
|
1173
|
+
duplicateProduct(requestParameters) {
|
|
1174
|
+
return localVarFp.duplicateProduct(requestParameters.id).then((request) => request(axios, basePath));
|
|
1175
|
+
},
|
|
1119
1176
|
/**
|
|
1120
1177
|
* Returns data about a specific product.
|
|
1121
1178
|
* @summary Get one product
|
|
@@ -1313,6 +1370,17 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
1313
1370
|
deleteProductVariation(requestParameters) {
|
|
1314
1371
|
return (0, exports.ProductsApiFp)(this.configuration).deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(this.axios, this.basePath));
|
|
1315
1372
|
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1375
|
+
* @summary Duplicate a product
|
|
1376
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1377
|
+
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
* @memberof ProductsApi
|
|
1380
|
+
*/
|
|
1381
|
+
duplicateProduct(requestParameters) {
|
|
1382
|
+
return (0, exports.ProductsApiFp)(this.configuration).duplicateProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1383
|
+
}
|
|
1316
1384
|
/**
|
|
1317
1385
|
* Returns data about a specific product.
|
|
1318
1386
|
* @summary Get one product
|