pipedrive 36.0.1 → 36.1.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/api/activity-fields-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/activity-fields-api.js +25 -0
- package/dist/esm/versions/v1/api/activity-types-api.d.ts +72 -1
- package/dist/esm/versions/v1/api/activity-types-api.js +107 -0
- package/dist/esm/versions/v1/api/billing-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/billing-api.js +25 -0
- package/dist/esm/versions/v1/api/call-logs-api.d.ts +93 -1
- package/dist/esm/versions/v1/api/call-logs-api.js +137 -0
- package/dist/esm/versions/v1/api/channels-api.d.ts +74 -1
- package/dist/esm/versions/v1/api/channels-api.js +109 -0
- package/dist/esm/versions/v1/api/currencies-api.d.ts +19 -1
- package/dist/esm/versions/v1/api/currencies-api.js +27 -0
- package/dist/esm/versions/v1/api/deal-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/deal-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/deals-api.d.ts +399 -1
- package/dist/esm/versions/v1/api/deals-api.js +569 -0
- package/dist/esm/versions/v1/api/files-api.d.ts +163 -1
- package/dist/esm/versions/v1/api/files-api.js +234 -0
- package/dist/esm/versions/v1/api/filters-api.d.ts +129 -1
- package/dist/esm/versions/v1/api/filters-api.js +191 -0
- package/dist/esm/versions/v1/api/goals-api.d.ts +106 -1
- package/dist/esm/versions/v1/api/goals-api.js +150 -0
- package/dist/esm/versions/v1/api/lead-fields-api.d.ts +20 -1
- package/dist/esm/versions/v1/api/lead-fields-api.js +28 -0
- package/dist/esm/versions/v1/api/lead-labels-api.d.ts +72 -1
- package/dist/esm/versions/v1/api/lead-labels-api.js +107 -0
- package/dist/esm/versions/v1/api/lead-sources-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/lead-sources-api.js +25 -0
- package/dist/esm/versions/v1/api/leads-api.d.ts +166 -1
- package/dist/esm/versions/v1/api/leads-api.js +237 -0
- package/dist/esm/versions/v1/api/legacy-teams-api.d.ts +152 -1
- package/dist/esm/versions/v1/api/legacy-teams-api.js +223 -0
- package/dist/esm/versions/v1/api/mailbox-api.d.ts +117 -1
- package/dist/esm/versions/v1/api/mailbox-api.js +170 -0
- package/dist/esm/versions/v1/api/meetings-api.d.ts +37 -1
- package/dist/esm/versions/v1/api/meetings-api.js +54 -0
- package/dist/esm/versions/v1/api/note-fields-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/note-fields-api.js +25 -0
- package/dist/esm/versions/v1/api/notes-api.d.ts +207 -1
- package/dist/esm/versions/v1/api/notes-api.js +296 -0
- package/dist/esm/versions/v1/api/organization-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/organization-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/organization-relationships-api.d.ts +93 -1
- package/dist/esm/versions/v1/api/organization-relationships-api.js +137 -0
- package/dist/esm/versions/v1/api/organizations-api.d.ts +178 -1
- package/dist/esm/versions/v1/api/organizations-api.js +258 -0
- package/dist/esm/versions/v1/api/permission-sets-api.d.ts +57 -1
- package/dist/esm/versions/v1/api/permission-sets-api.js +83 -0
- package/dist/esm/versions/v1/api/person-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/person-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/persons-api.d.ts +275 -37
- package/dist/esm/versions/v1/api/persons-api.js +370 -24
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +69 -1
- package/dist/esm/versions/v1/api/pipelines-api.js +95 -0
- package/dist/esm/versions/v1/api/product-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/product-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/products-api.d.ts +119 -1
- package/dist/esm/versions/v1/api/products-api.js +172 -0
- package/dist/esm/versions/v1/api/project-boards-api.d.ts +35 -1
- package/dist/esm/versions/v1/api/project-boards-api.js +52 -0
- package/dist/esm/versions/v1/api/project-phases-api.d.ts +37 -1
- package/dist/esm/versions/v1/api/project-phases-api.js +54 -0
- package/dist/esm/versions/v1/api/project-templates-api.d.ts +38 -1
- package/dist/esm/versions/v1/api/project-templates-api.js +55 -0
- package/dist/esm/versions/v1/api/projects-api.d.ts +227 -1
- package/dist/esm/versions/v1/api/projects-api.js +334 -0
- package/dist/esm/versions/v1/api/recents-api.d.ts +22 -1
- package/dist/esm/versions/v1/api/recents-api.js +30 -0
- package/dist/esm/versions/v1/api/roles-api.d.ts +226 -1
- package/dist/esm/versions/v1/api/roles-api.js +333 -0
- package/dist/esm/versions/v1/api/stages-api.d.ts +24 -1
- package/dist/esm/versions/v1/api/stages-api.js +32 -0
- package/dist/esm/versions/v1/api/tasks-api.d.ts +97 -1
- package/dist/esm/versions/v1/api/tasks-api.js +141 -0
- package/dist/esm/versions/v1/api/user-connections-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/user-connections-api.js +25 -0
- package/dist/esm/versions/v1/api/user-settings-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/user-settings-api.js +25 -0
- package/dist/esm/versions/v1/api/users-api.d.ts +181 -1
- package/dist/esm/versions/v1/api/users-api.js +270 -0
- package/dist/esm/versions/v1/api/webhooks-api.d.ts +53 -1
- package/dist/esm/versions/v1/api/webhooks-api.js +79 -0
- package/dist/esm/versions/v1/base.d.ts +17 -0
- package/dist/esm/versions/v1/base.js +22 -0
- package/dist/esm/versions/v1/common.d.ts +1 -1
- package/dist/esm/versions/v1/common.js +7 -4
- package/dist/esm/versions/v2/api/activities-api.d.ts +107 -1
- package/dist/esm/versions/v2/api/activities-api.js +151 -0
- package/dist/esm/versions/v2/api/activity-fields-api.d.ts +40 -1
- package/dist/esm/versions/v2/api/activity-fields-api.js +57 -0
- package/dist/esm/versions/v2/api/beta-api.d.ts +451 -1
- package/dist/esm/versions/v2/api/beta-api.js +666 -0
- package/dist/esm/versions/v2/api/deal-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/deal-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/deal-installments-api.d.ts +81 -1
- package/dist/esm/versions/v2/api/deal-installments-api.js +116 -0
- package/dist/esm/versions/v2/api/deal-products-api.d.ts +141 -1
- package/dist/esm/versions/v2/api/deal-products-api.js +203 -0
- package/dist/esm/versions/v2/api/deals-api.d.ts +363 -1
- package/dist/esm/versions/v2/api/deals-api.js +516 -1
- package/dist/esm/versions/v2/api/item-search-api.d.ts +49 -1
- package/dist/esm/versions/v2/api/item-search-api.js +66 -0
- package/dist/esm/versions/v2/api/leads-api.d.ts +64 -1
- package/dist/esm/versions/v2/api/leads-api.js +90 -0
- package/dist/esm/versions/v2/api/organization-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/organization-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/organizations-api.d.ts +208 -1
- package/dist/esm/versions/v2/api/organizations-api.js +297 -0
- package/dist/esm/versions/v2/api/person-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/person-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +230 -1
- package/dist/esm/versions/v2/api/persons-api.js +328 -0
- package/dist/esm/versions/v2/api/pipelines-api.d.ts +95 -1
- package/dist/esm/versions/v2/api/pipelines-api.js +139 -0
- package/dist/esm/versions/v2/api/product-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/product-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/products-api.d.ts +371 -1
- package/dist/esm/versions/v2/api/products-api.js +541 -0
- package/dist/esm/versions/v2/api/project-boards-api.d.ts +90 -1
- package/dist/esm/versions/v2/api/project-boards-api.js +134 -0
- package/dist/esm/versions/v2/api/project-fields-api.d.ts +150 -1
- package/dist/esm/versions/v2/api/project-fields-api.js +221 -0
- package/dist/esm/versions/v2/api/project-phases-api.d.ts +92 -1
- package/dist/esm/versions/v2/api/project-phases-api.js +136 -0
- package/dist/esm/versions/v2/api/project-templates-api.d.ts +38 -1
- package/dist/esm/versions/v2/api/project-templates-api.js +55 -0
- package/dist/esm/versions/v2/api/projects-api.d.ts +201 -1
- package/dist/esm/versions/v2/api/projects-api.js +290 -0
- package/dist/esm/versions/v2/api/stages-api.d.ts +96 -1
- package/dist/esm/versions/v2/api/stages-api.js +140 -0
- package/dist/esm/versions/v2/api/tasks-api.d.ts +98 -1
- package/dist/esm/versions/v2/api/tasks-api.js +142 -0
- package/dist/esm/versions/v2/api/users-api.d.ts +21 -1
- package/dist/esm/versions/v2/api/users-api.js +29 -0
- package/dist/esm/versions/v2/base.d.ts +17 -0
- package/dist/esm/versions/v2/base.js +22 -0
- package/dist/esm/versions/v2/common.d.ts +1 -1
- package/dist/esm/versions/v2/common.js +7 -4
- package/dist/versions/v1/api/activity-fields-api.d.ts +17 -1
- package/dist/versions/v1/api/activity-fields-api.js +25 -0
- package/dist/versions/v1/api/activity-types-api.d.ts +72 -1
- package/dist/versions/v1/api/activity-types-api.js +107 -0
- package/dist/versions/v1/api/billing-api.d.ts +17 -1
- package/dist/versions/v1/api/billing-api.js +25 -0
- package/dist/versions/v1/api/call-logs-api.d.ts +93 -1
- package/dist/versions/v1/api/call-logs-api.js +137 -0
- package/dist/versions/v1/api/channels-api.d.ts +74 -1
- package/dist/versions/v1/api/channels-api.js +109 -0
- package/dist/versions/v1/api/currencies-api.d.ts +19 -1
- package/dist/versions/v1/api/currencies-api.js +27 -0
- package/dist/versions/v1/api/deal-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/deal-fields-api.js +164 -0
- package/dist/versions/v1/api/deals-api.d.ts +399 -1
- package/dist/versions/v1/api/deals-api.js +569 -0
- package/dist/versions/v1/api/files-api.d.ts +163 -1
- package/dist/versions/v1/api/files-api.js +234 -0
- package/dist/versions/v1/api/filters-api.d.ts +129 -1
- package/dist/versions/v1/api/filters-api.js +191 -0
- package/dist/versions/v1/api/goals-api.d.ts +106 -1
- package/dist/versions/v1/api/goals-api.js +150 -0
- package/dist/versions/v1/api/lead-fields-api.d.ts +20 -1
- package/dist/versions/v1/api/lead-fields-api.js +28 -0
- package/dist/versions/v1/api/lead-labels-api.d.ts +72 -1
- package/dist/versions/v1/api/lead-labels-api.js +107 -0
- package/dist/versions/v1/api/lead-sources-api.d.ts +17 -1
- package/dist/versions/v1/api/lead-sources-api.js +25 -0
- package/dist/versions/v1/api/leads-api.d.ts +166 -1
- package/dist/versions/v1/api/leads-api.js +237 -0
- package/dist/versions/v1/api/legacy-teams-api.d.ts +152 -1
- package/dist/versions/v1/api/legacy-teams-api.js +223 -0
- package/dist/versions/v1/api/mailbox-api.d.ts +117 -1
- package/dist/versions/v1/api/mailbox-api.js +170 -0
- package/dist/versions/v1/api/meetings-api.d.ts +37 -1
- package/dist/versions/v1/api/meetings-api.js +54 -0
- package/dist/versions/v1/api/note-fields-api.d.ts +17 -1
- package/dist/versions/v1/api/note-fields-api.js +25 -0
- package/dist/versions/v1/api/notes-api.d.ts +207 -1
- package/dist/versions/v1/api/notes-api.js +296 -0
- package/dist/versions/v1/api/organization-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/organization-fields-api.js +164 -0
- package/dist/versions/v1/api/organization-relationships-api.d.ts +93 -1
- package/dist/versions/v1/api/organization-relationships-api.js +137 -0
- package/dist/versions/v1/api/organizations-api.d.ts +178 -1
- package/dist/versions/v1/api/organizations-api.js +258 -0
- package/dist/versions/v1/api/permission-sets-api.d.ts +57 -1
- package/dist/versions/v1/api/permission-sets-api.js +83 -0
- package/dist/versions/v1/api/person-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/person-fields-api.js +164 -0
- package/dist/versions/v1/api/persons-api.d.ts +275 -37
- package/dist/versions/v1/api/persons-api.js +370 -24
- package/dist/versions/v1/api/pipelines-api.d.ts +69 -1
- package/dist/versions/v1/api/pipelines-api.js +95 -0
- package/dist/versions/v1/api/product-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/product-fields-api.js +164 -0
- package/dist/versions/v1/api/products-api.d.ts +119 -1
- package/dist/versions/v1/api/products-api.js +172 -0
- package/dist/versions/v1/api/project-boards-api.d.ts +35 -1
- package/dist/versions/v1/api/project-boards-api.js +52 -0
- package/dist/versions/v1/api/project-phases-api.d.ts +37 -1
- package/dist/versions/v1/api/project-phases-api.js +54 -0
- package/dist/versions/v1/api/project-templates-api.d.ts +38 -1
- package/dist/versions/v1/api/project-templates-api.js +55 -0
- package/dist/versions/v1/api/projects-api.d.ts +227 -1
- package/dist/versions/v1/api/projects-api.js +334 -0
- package/dist/versions/v1/api/recents-api.d.ts +22 -1
- package/dist/versions/v1/api/recents-api.js +30 -0
- package/dist/versions/v1/api/roles-api.d.ts +226 -1
- package/dist/versions/v1/api/roles-api.js +333 -0
- package/dist/versions/v1/api/stages-api.d.ts +24 -1
- package/dist/versions/v1/api/stages-api.js +32 -0
- package/dist/versions/v1/api/tasks-api.d.ts +97 -1
- package/dist/versions/v1/api/tasks-api.js +141 -0
- package/dist/versions/v1/api/user-connections-api.d.ts +17 -1
- package/dist/versions/v1/api/user-connections-api.js +25 -0
- package/dist/versions/v1/api/user-settings-api.d.ts +17 -1
- package/dist/versions/v1/api/user-settings-api.js +25 -0
- package/dist/versions/v1/api/users-api.d.ts +181 -1
- package/dist/versions/v1/api/users-api.js +270 -0
- package/dist/versions/v1/api/webhooks-api.d.ts +53 -1
- package/dist/versions/v1/api/webhooks-api.js +79 -0
- package/dist/versions/v1/base.d.ts +17 -0
- package/dist/versions/v1/base.js +24 -1
- package/dist/versions/v1/common.d.ts +1 -1
- package/dist/versions/v1/common.js +6 -3
- package/dist/versions/v2/api/activities-api.d.ts +107 -1
- package/dist/versions/v2/api/activities-api.js +151 -0
- package/dist/versions/v2/api/activity-fields-api.d.ts +40 -1
- package/dist/versions/v2/api/activity-fields-api.js +57 -0
- package/dist/versions/v2/api/beta-api.d.ts +451 -1
- package/dist/versions/v2/api/beta-api.js +666 -0
- package/dist/versions/v2/api/deal-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/deal-fields-api.js +223 -0
- package/dist/versions/v2/api/deal-installments-api.d.ts +81 -1
- package/dist/versions/v2/api/deal-installments-api.js +116 -0
- package/dist/versions/v2/api/deal-products-api.d.ts +141 -1
- package/dist/versions/v2/api/deal-products-api.js +203 -0
- package/dist/versions/v2/api/deals-api.d.ts +363 -1
- package/dist/versions/v2/api/deals-api.js +516 -1
- package/dist/versions/v2/api/item-search-api.d.ts +49 -1
- package/dist/versions/v2/api/item-search-api.js +66 -0
- package/dist/versions/v2/api/leads-api.d.ts +64 -1
- package/dist/versions/v2/api/leads-api.js +90 -0
- package/dist/versions/v2/api/organization-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/organization-fields-api.js +223 -0
- package/dist/versions/v2/api/organizations-api.d.ts +208 -1
- package/dist/versions/v2/api/organizations-api.js +297 -0
- package/dist/versions/v2/api/person-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/person-fields-api.js +223 -0
- package/dist/versions/v2/api/persons-api.d.ts +230 -1
- package/dist/versions/v2/api/persons-api.js +328 -0
- package/dist/versions/v2/api/pipelines-api.d.ts +95 -1
- package/dist/versions/v2/api/pipelines-api.js +139 -0
- package/dist/versions/v2/api/product-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/product-fields-api.js +223 -0
- package/dist/versions/v2/api/products-api.d.ts +371 -1
- package/dist/versions/v2/api/products-api.js +541 -0
- package/dist/versions/v2/api/project-boards-api.d.ts +90 -1
- package/dist/versions/v2/api/project-boards-api.js +134 -0
- package/dist/versions/v2/api/project-fields-api.d.ts +150 -1
- package/dist/versions/v2/api/project-fields-api.js +221 -0
- package/dist/versions/v2/api/project-phases-api.d.ts +92 -1
- package/dist/versions/v2/api/project-phases-api.js +136 -0
- package/dist/versions/v2/api/project-templates-api.d.ts +38 -1
- package/dist/versions/v2/api/project-templates-api.js +55 -0
- package/dist/versions/v2/api/projects-api.d.ts +201 -1
- package/dist/versions/v2/api/projects-api.js +290 -0
- package/dist/versions/v2/api/stages-api.d.ts +96 -1
- package/dist/versions/v2/api/stages-api.js +140 -0
- package/dist/versions/v2/api/tasks-api.d.ts +98 -1
- package/dist/versions/v2/api/tasks-api.js +142 -0
- package/dist/versions/v2/api/users-api.d.ts +21 -1
- package/dist/versions/v2/api/users-api.js +29 -0
- package/dist/versions/v2/base.d.ts +17 -0
- package/dist/versions/v2/base.js +24 -1
- package/dist/versions/v2/common.d.ts +1 -1
- package/dist/versions/v2/common.js +6 -3
- package/package.json +1 -1
|
@@ -355,6 +355,20 @@ const DealProductsApiFp = function (configuration) {
|
|
|
355
355
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
356
356
|
});
|
|
357
357
|
},
|
|
358
|
+
/**
|
|
359
|
+
* Same as `addDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
360
|
+
* @summary Add a product to a deal
|
|
361
|
+
* @param {number} id The ID of the deal
|
|
362
|
+
* @param {AddDealProductRequest} [AddDealProductRequest]
|
|
363
|
+
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
addDealProductWithHttpInfo(id, AddDealProductRequest) {
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest);
|
|
369
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
370
|
+
});
|
|
371
|
+
},
|
|
358
372
|
/**
|
|
359
373
|
* Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
|
|
360
374
|
* @summary Add multiple products to a deal
|
|
@@ -369,6 +383,20 @@ const DealProductsApiFp = function (configuration) {
|
|
|
369
383
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
370
384
|
});
|
|
371
385
|
},
|
|
386
|
+
/**
|
|
387
|
+
* Same as `addManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
388
|
+
* @summary Add multiple products to a deal
|
|
389
|
+
* @param {number} id The ID of the deal
|
|
390
|
+
* @param {CreateManyDealProductRequest} [CreateManyDealProductRequest]
|
|
391
|
+
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
addManyDealProductsWithHttpInfo(id, CreateManyDealProductRequest) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addManyDealProducts(id, CreateManyDealProductRequest);
|
|
397
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
398
|
+
});
|
|
399
|
+
},
|
|
372
400
|
/**
|
|
373
401
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
|
374
402
|
* @summary Delete an attached product from a deal
|
|
@@ -383,6 +411,20 @@ const DealProductsApiFp = function (configuration) {
|
|
|
383
411
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
384
412
|
});
|
|
385
413
|
},
|
|
414
|
+
/**
|
|
415
|
+
* Same as `deleteDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
416
|
+
* @summary Delete an attached product from a deal
|
|
417
|
+
* @param {number} id The ID of the deal
|
|
418
|
+
* @param {number} product_attachment_id The product attachment ID
|
|
419
|
+
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
deleteDealProductWithHttpInfo(id, product_attachment_id) {
|
|
423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id);
|
|
425
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
426
|
+
});
|
|
427
|
+
},
|
|
386
428
|
/**
|
|
387
429
|
* Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
|
|
388
430
|
* @summary Delete many products from a deal
|
|
@@ -397,6 +439,20 @@ const DealProductsApiFp = function (configuration) {
|
|
|
397
439
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
398
440
|
});
|
|
399
441
|
},
|
|
442
|
+
/**
|
|
443
|
+
* Same as `deleteManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
444
|
+
* @summary Delete many products from a deal
|
|
445
|
+
* @param {number} id The ID of the deal
|
|
446
|
+
* @param {Set<number>} [ids] Comma-separated list of deal product IDs to delete. If not provided, all deal products will be deleted up to 100 items. Maximum 100 IDs allowed.
|
|
447
|
+
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
deleteManyDealProductsWithHttpInfo(id, ids) {
|
|
451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteManyDealProducts(id, ids);
|
|
453
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
454
|
+
});
|
|
455
|
+
},
|
|
400
456
|
/**
|
|
401
457
|
* Lists products attached to a deal.
|
|
402
458
|
* @summary List products attached to a deal
|
|
@@ -414,6 +470,23 @@ const DealProductsApiFp = function (configuration) {
|
|
|
414
470
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
415
471
|
});
|
|
416
472
|
},
|
|
473
|
+
/**
|
|
474
|
+
* Same as `getDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
475
|
+
* @summary List products attached to a deal
|
|
476
|
+
* @param {number} id The ID of the deal
|
|
477
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
478
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
479
|
+
* @param {'id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`, `order_nr`.
|
|
480
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
481
|
+
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getDealProductsWithHttpInfo(id, cursor, limit, sort_by, sort_direction) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealProducts(id, cursor, limit, sort_by, sort_direction);
|
|
487
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
488
|
+
});
|
|
489
|
+
},
|
|
417
490
|
/**
|
|
418
491
|
* Returns data about products attached to deals
|
|
419
492
|
* @summary Get deal products of several deals
|
|
@@ -431,6 +504,23 @@ const DealProductsApiFp = function (configuration) {
|
|
|
431
504
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
432
505
|
});
|
|
433
506
|
},
|
|
507
|
+
/**
|
|
508
|
+
* Same as `getDealsProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
509
|
+
* @summary Get deal products of several deals
|
|
510
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided.
|
|
511
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
512
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
|
513
|
+
* @param {'id' | 'deal_id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`, `order_nr`.
|
|
514
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
515
|
+
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
getDealsProductsWithHttpInfo(deal_ids, cursor, limit, sort_by, sort_direction) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealsProducts(deal_ids, cursor, limit, sort_by, sort_direction);
|
|
521
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
522
|
+
});
|
|
523
|
+
},
|
|
434
524
|
/**
|
|
435
525
|
* Updates the details of the product that has been attached to a deal.
|
|
436
526
|
* @summary Update the product attached to a deal
|
|
@@ -446,6 +536,21 @@ const DealProductsApiFp = function (configuration) {
|
|
|
446
536
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
447
537
|
});
|
|
448
538
|
},
|
|
539
|
+
/**
|
|
540
|
+
* Same as `updateDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
541
|
+
* @summary Update the product attached to a deal
|
|
542
|
+
* @param {number} id The ID of the deal
|
|
543
|
+
* @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal)
|
|
544
|
+
* @param {UpdateDealProductRequest} [UpdateDealProductRequest]
|
|
545
|
+
|
|
546
|
+
* @throws {RequiredError}
|
|
547
|
+
*/
|
|
548
|
+
updateDealProductWithHttpInfo(id, product_attachment_id, UpdateDealProductRequest) {
|
|
549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest);
|
|
551
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
552
|
+
});
|
|
553
|
+
},
|
|
449
554
|
};
|
|
450
555
|
};
|
|
451
556
|
exports.DealProductsApiFp = DealProductsApiFp;
|
|
@@ -466,6 +571,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
466
571
|
addDealProduct(requestParameters) {
|
|
467
572
|
return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(axios, basePath));
|
|
468
573
|
},
|
|
574
|
+
addDealProductWithHttpInfo(requestParameters) {
|
|
575
|
+
return localVarFp.addDealProductWithHttpInfo(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(axios, basePath));
|
|
576
|
+
},
|
|
469
577
|
/**
|
|
470
578
|
* Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
|
|
471
579
|
* @summary Add multiple products to a deal
|
|
@@ -476,6 +584,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
476
584
|
addManyDealProducts(requestParameters) {
|
|
477
585
|
return localVarFp.addManyDealProducts(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(axios, basePath));
|
|
478
586
|
},
|
|
587
|
+
addManyDealProductsWithHttpInfo(requestParameters) {
|
|
588
|
+
return localVarFp.addManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(axios, basePath));
|
|
589
|
+
},
|
|
479
590
|
/**
|
|
480
591
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
|
481
592
|
* @summary Delete an attached product from a deal
|
|
@@ -486,6 +597,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
486
597
|
deleteDealProduct(requestParameters) {
|
|
487
598
|
return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
|
|
488
599
|
},
|
|
600
|
+
deleteDealProductWithHttpInfo(requestParameters) {
|
|
601
|
+
return localVarFp.deleteDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
|
|
602
|
+
},
|
|
489
603
|
/**
|
|
490
604
|
* Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
|
|
491
605
|
* @summary Delete many products from a deal
|
|
@@ -496,6 +610,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
496
610
|
deleteManyDealProducts(requestParameters) {
|
|
497
611
|
return localVarFp.deleteManyDealProducts(requestParameters.id, requestParameters.ids).then((request) => request(axios, basePath));
|
|
498
612
|
},
|
|
613
|
+
deleteManyDealProductsWithHttpInfo(requestParameters) {
|
|
614
|
+
return localVarFp.deleteManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.ids).then((request) => request(axios, basePath));
|
|
615
|
+
},
|
|
499
616
|
/**
|
|
500
617
|
* Lists products attached to a deal.
|
|
501
618
|
* @summary List products attached to a deal
|
|
@@ -506,6 +623,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
506
623
|
getDealProducts(requestParameters) {
|
|
507
624
|
return localVarFp.getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
508
625
|
},
|
|
626
|
+
getDealProductsWithHttpInfo(requestParameters) {
|
|
627
|
+
return localVarFp.getDealProductsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
628
|
+
},
|
|
509
629
|
/**
|
|
510
630
|
* Returns data about products attached to deals
|
|
511
631
|
* @summary Get deal products of several deals
|
|
@@ -516,6 +636,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
516
636
|
getDealsProducts(requestParameters) {
|
|
517
637
|
return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
518
638
|
},
|
|
639
|
+
getDealsProductsWithHttpInfo(requestParameters) {
|
|
640
|
+
return localVarFp.getDealsProductsWithHttpInfo(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
641
|
+
},
|
|
519
642
|
/**
|
|
520
643
|
* Updates the details of the product that has been attached to a deal.
|
|
521
644
|
* @summary Update the product attached to a deal
|
|
@@ -526,6 +649,9 @@ const DealProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
526
649
|
updateDealProduct(requestParameters) {
|
|
527
650
|
return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
|
|
528
651
|
},
|
|
652
|
+
updateDealProductWithHttpInfo(requestParameters) {
|
|
653
|
+
return localVarFp.updateDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
|
|
654
|
+
},
|
|
529
655
|
};
|
|
530
656
|
};
|
|
531
657
|
exports.DealProductsApiFactory = DealProductsApiFactory;
|
|
@@ -547,6 +673,17 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
547
673
|
addDealProduct(requestParameters) {
|
|
548
674
|
return (0, exports.DealProductsApiFp)(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
549
675
|
}
|
|
676
|
+
/**
|
|
677
|
+
* Same as `addDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
678
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
679
|
+
* @param {DealProductsApiAddDealProductRequest} requestParameters Request parameters.
|
|
680
|
+
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
* @memberof DealProductsApi
|
|
683
|
+
*/
|
|
684
|
+
addDealProductWithHttpInfo(requestParameters) {
|
|
685
|
+
return (0, exports.DealProductsApiFp)(this.configuration).addDealProductWithHttpInfo(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
686
|
+
}
|
|
550
687
|
/**
|
|
551
688
|
* Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
|
|
552
689
|
* @summary Add multiple products to a deal
|
|
@@ -558,6 +695,17 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
558
695
|
addManyDealProducts(requestParameters) {
|
|
559
696
|
return (0, exports.DealProductsApiFp)(this.configuration).addManyDealProducts(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
560
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
* Same as `addManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
700
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
701
|
+
* @param {DealProductsApiAddManyDealProductsRequest} requestParameters Request parameters.
|
|
702
|
+
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
* @memberof DealProductsApi
|
|
705
|
+
*/
|
|
706
|
+
addManyDealProductsWithHttpInfo(requestParameters) {
|
|
707
|
+
return (0, exports.DealProductsApiFp)(this.configuration).addManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
708
|
+
}
|
|
561
709
|
/**
|
|
562
710
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
|
563
711
|
* @summary Delete an attached product from a deal
|
|
@@ -569,6 +717,17 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
569
717
|
deleteDealProduct(requestParameters) {
|
|
570
718
|
return (0, exports.DealProductsApiFp)(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
|
|
571
719
|
}
|
|
720
|
+
/**
|
|
721
|
+
* Same as `deleteDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
722
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
723
|
+
* @param {DealProductsApiDeleteDealProductRequest} requestParameters Request parameters.
|
|
724
|
+
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
* @memberof DealProductsApi
|
|
727
|
+
*/
|
|
728
|
+
deleteDealProductWithHttpInfo(requestParameters) {
|
|
729
|
+
return (0, exports.DealProductsApiFp)(this.configuration).deleteDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
|
|
730
|
+
}
|
|
572
731
|
/**
|
|
573
732
|
* Deletes multiple products from a deal. If no product IDs are specified, up to 100 products will be removed from the deal. A maximum of 100 product IDs can be provided per request.
|
|
574
733
|
* @summary Delete many products from a deal
|
|
@@ -580,6 +739,17 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
580
739
|
deleteManyDealProducts(requestParameters) {
|
|
581
740
|
return (0, exports.DealProductsApiFp)(this.configuration).deleteManyDealProducts(requestParameters.id, requestParameters.ids).then((request) => request(this.axios, this.basePath));
|
|
582
741
|
}
|
|
742
|
+
/**
|
|
743
|
+
* Same as `deleteManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
744
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
745
|
+
* @param {DealProductsApiDeleteManyDealProductsRequest} requestParameters Request parameters.
|
|
746
|
+
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
* @memberof DealProductsApi
|
|
749
|
+
*/
|
|
750
|
+
deleteManyDealProductsWithHttpInfo(requestParameters) {
|
|
751
|
+
return (0, exports.DealProductsApiFp)(this.configuration).deleteManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.ids).then((request) => request(this.axios, this.basePath));
|
|
752
|
+
}
|
|
583
753
|
/**
|
|
584
754
|
* Lists products attached to a deal.
|
|
585
755
|
* @summary List products attached to a deal
|
|
@@ -591,6 +761,17 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
591
761
|
getDealProducts(requestParameters) {
|
|
592
762
|
return (0, exports.DealProductsApiFp)(this.configuration).getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
593
763
|
}
|
|
764
|
+
/**
|
|
765
|
+
* Same as `getDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
766
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
767
|
+
* @param {DealProductsApiGetDealProductsRequest} requestParameters Request parameters.
|
|
768
|
+
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
* @memberof DealProductsApi
|
|
771
|
+
*/
|
|
772
|
+
getDealProductsWithHttpInfo(requestParameters) {
|
|
773
|
+
return (0, exports.DealProductsApiFp)(this.configuration).getDealProductsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
774
|
+
}
|
|
594
775
|
/**
|
|
595
776
|
* Returns data about products attached to deals
|
|
596
777
|
* @summary Get deal products of several deals
|
|
@@ -602,6 +783,17 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
602
783
|
getDealsProducts(requestParameters) {
|
|
603
784
|
return (0, exports.DealProductsApiFp)(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
604
785
|
}
|
|
786
|
+
/**
|
|
787
|
+
* Same as `getDealsProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
788
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
789
|
+
* @param {DealProductsApiGetDealsProductsRequest} requestParameters Request parameters.
|
|
790
|
+
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
* @memberof DealProductsApi
|
|
793
|
+
*/
|
|
794
|
+
getDealsProductsWithHttpInfo(requestParameters) {
|
|
795
|
+
return (0, exports.DealProductsApiFp)(this.configuration).getDealsProductsWithHttpInfo(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
796
|
+
}
|
|
605
797
|
/**
|
|
606
798
|
* Updates the details of the product that has been attached to a deal.
|
|
607
799
|
* @summary Update the product attached to a deal
|
|
@@ -613,5 +805,16 @@ class DealProductsApi extends base_1.BaseAPI {
|
|
|
613
805
|
updateDealProduct(requestParameters) {
|
|
614
806
|
return (0, exports.DealProductsApiFp)(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
615
807
|
}
|
|
808
|
+
/**
|
|
809
|
+
* Same as `updateDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
810
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
811
|
+
* @param {DealProductsApiUpdateDealProductRequest} requestParameters Request parameters.
|
|
812
|
+
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
* @memberof DealProductsApi
|
|
815
|
+
*/
|
|
816
|
+
updateDealProductWithHttpInfo(requestParameters) {
|
|
817
|
+
return (0, exports.DealProductsApiFp)(this.configuration).updateDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
818
|
+
}
|
|
616
819
|
}
|
|
617
820
|
exports.DealProductsApi = DealProductsApi;
|