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
|
@@ -348,6 +348,20 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
348
348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
349
349
|
});
|
|
350
350
|
},
|
|
351
|
+
/**
|
|
352
|
+
* Same as `addDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
353
|
+
* @summary Add a product to a deal
|
|
354
|
+
* @param {number} id The ID of the deal
|
|
355
|
+
* @param {AddDealProductRequest} [AddDealProductRequest]
|
|
356
|
+
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
addDealProductWithHttpInfo(id, AddDealProductRequest) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest);
|
|
362
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
363
|
+
});
|
|
364
|
+
},
|
|
351
365
|
/**
|
|
352
366
|
* Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
|
|
353
367
|
* @summary Add multiple products to a deal
|
|
@@ -362,6 +376,20 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
362
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
377
|
});
|
|
364
378
|
},
|
|
379
|
+
/**
|
|
380
|
+
* Same as `addManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
381
|
+
* @summary Add multiple products to a deal
|
|
382
|
+
* @param {number} id The ID of the deal
|
|
383
|
+
* @param {CreateManyDealProductRequest} [CreateManyDealProductRequest]
|
|
384
|
+
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
addManyDealProductsWithHttpInfo(id, CreateManyDealProductRequest) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addManyDealProducts(id, CreateManyDealProductRequest);
|
|
390
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
391
|
+
});
|
|
392
|
+
},
|
|
365
393
|
/**
|
|
366
394
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
|
367
395
|
* @summary Delete an attached product from a deal
|
|
@@ -376,6 +404,20 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
376
404
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
405
|
});
|
|
378
406
|
},
|
|
407
|
+
/**
|
|
408
|
+
* Same as `deleteDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
409
|
+
* @summary Delete an attached product from a deal
|
|
410
|
+
* @param {number} id The ID of the deal
|
|
411
|
+
* @param {number} product_attachment_id The product attachment ID
|
|
412
|
+
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
deleteDealProductWithHttpInfo(id, product_attachment_id) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id);
|
|
418
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
419
|
+
});
|
|
420
|
+
},
|
|
379
421
|
/**
|
|
380
422
|
* 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.
|
|
381
423
|
* @summary Delete many products from a deal
|
|
@@ -390,6 +432,20 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
390
432
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
391
433
|
});
|
|
392
434
|
},
|
|
435
|
+
/**
|
|
436
|
+
* Same as `deleteManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
437
|
+
* @summary Delete many products from a deal
|
|
438
|
+
* @param {number} id The ID of the deal
|
|
439
|
+
* @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.
|
|
440
|
+
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
deleteManyDealProductsWithHttpInfo(id, ids) {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteManyDealProducts(id, ids);
|
|
446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
447
|
+
});
|
|
448
|
+
},
|
|
393
449
|
/**
|
|
394
450
|
* Lists products attached to a deal.
|
|
395
451
|
* @summary List products attached to a deal
|
|
@@ -407,6 +463,23 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
407
463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
408
464
|
});
|
|
409
465
|
},
|
|
466
|
+
/**
|
|
467
|
+
* Same as `getDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
468
|
+
* @summary List products attached to a deal
|
|
469
|
+
* @param {number} id The ID of the deal
|
|
470
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
471
|
+
* @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.
|
|
472
|
+
* @param {'id' | 'add_time' | 'update_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`, `order_nr`.
|
|
473
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
474
|
+
|
|
475
|
+
* @throws {RequiredError}
|
|
476
|
+
*/
|
|
477
|
+
getDealProductsWithHttpInfo(id, cursor, limit, sort_by, sort_direction) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealProducts(id, cursor, limit, sort_by, sort_direction);
|
|
480
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
481
|
+
});
|
|
482
|
+
},
|
|
410
483
|
/**
|
|
411
484
|
* Returns data about products attached to deals
|
|
412
485
|
* @summary Get deal products of several deals
|
|
@@ -424,6 +497,23 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
424
497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
425
498
|
});
|
|
426
499
|
},
|
|
500
|
+
/**
|
|
501
|
+
* Same as `getDealsProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
502
|
+
* @summary Get deal products of several deals
|
|
503
|
+
* @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.
|
|
504
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
505
|
+
* @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.
|
|
506
|
+
* @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`.
|
|
507
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
508
|
+
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
getDealsProductsWithHttpInfo(deal_ids, cursor, limit, sort_by, sort_direction) {
|
|
512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealsProducts(deal_ids, cursor, limit, sort_by, sort_direction);
|
|
514
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
515
|
+
});
|
|
516
|
+
},
|
|
427
517
|
/**
|
|
428
518
|
* Updates the details of the product that has been attached to a deal.
|
|
429
519
|
* @summary Update the product attached to a deal
|
|
@@ -439,6 +529,21 @@ export const DealProductsApiFp = function (configuration) {
|
|
|
439
529
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
440
530
|
});
|
|
441
531
|
},
|
|
532
|
+
/**
|
|
533
|
+
* Same as `updateDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
534
|
+
* @summary Update the product attached to a deal
|
|
535
|
+
* @param {number} id The ID of the deal
|
|
536
|
+
* @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal)
|
|
537
|
+
* @param {UpdateDealProductRequest} [UpdateDealProductRequest]
|
|
538
|
+
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
*/
|
|
541
|
+
updateDealProductWithHttpInfo(id, product_attachment_id, UpdateDealProductRequest) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest);
|
|
544
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
545
|
+
});
|
|
546
|
+
},
|
|
442
547
|
};
|
|
443
548
|
};
|
|
444
549
|
/**
|
|
@@ -458,6 +563,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
458
563
|
addDealProduct(requestParameters) {
|
|
459
564
|
return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(axios, basePath));
|
|
460
565
|
},
|
|
566
|
+
addDealProductWithHttpInfo(requestParameters) {
|
|
567
|
+
return localVarFp.addDealProductWithHttpInfo(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(axios, basePath));
|
|
568
|
+
},
|
|
461
569
|
/**
|
|
462
570
|
* Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
|
|
463
571
|
* @summary Add multiple products to a deal
|
|
@@ -468,6 +576,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
468
576
|
addManyDealProducts(requestParameters) {
|
|
469
577
|
return localVarFp.addManyDealProducts(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(axios, basePath));
|
|
470
578
|
},
|
|
579
|
+
addManyDealProductsWithHttpInfo(requestParameters) {
|
|
580
|
+
return localVarFp.addManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(axios, basePath));
|
|
581
|
+
},
|
|
471
582
|
/**
|
|
472
583
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
|
473
584
|
* @summary Delete an attached product from a deal
|
|
@@ -478,6 +589,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
478
589
|
deleteDealProduct(requestParameters) {
|
|
479
590
|
return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
|
|
480
591
|
},
|
|
592
|
+
deleteDealProductWithHttpInfo(requestParameters) {
|
|
593
|
+
return localVarFp.deleteDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
|
|
594
|
+
},
|
|
481
595
|
/**
|
|
482
596
|
* 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.
|
|
483
597
|
* @summary Delete many products from a deal
|
|
@@ -488,6 +602,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
488
602
|
deleteManyDealProducts(requestParameters) {
|
|
489
603
|
return localVarFp.deleteManyDealProducts(requestParameters.id, requestParameters.ids).then((request) => request(axios, basePath));
|
|
490
604
|
},
|
|
605
|
+
deleteManyDealProductsWithHttpInfo(requestParameters) {
|
|
606
|
+
return localVarFp.deleteManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.ids).then((request) => request(axios, basePath));
|
|
607
|
+
},
|
|
491
608
|
/**
|
|
492
609
|
* Lists products attached to a deal.
|
|
493
610
|
* @summary List products attached to a deal
|
|
@@ -498,6 +615,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
498
615
|
getDealProducts(requestParameters) {
|
|
499
616
|
return localVarFp.getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
500
617
|
},
|
|
618
|
+
getDealProductsWithHttpInfo(requestParameters) {
|
|
619
|
+
return localVarFp.getDealProductsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
620
|
+
},
|
|
501
621
|
/**
|
|
502
622
|
* Returns data about products attached to deals
|
|
503
623
|
* @summary Get deal products of several deals
|
|
@@ -508,6 +628,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
508
628
|
getDealsProducts(requestParameters) {
|
|
509
629
|
return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
510
630
|
},
|
|
631
|
+
getDealsProductsWithHttpInfo(requestParameters) {
|
|
632
|
+
return localVarFp.getDealsProductsWithHttpInfo(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
633
|
+
},
|
|
511
634
|
/**
|
|
512
635
|
* Updates the details of the product that has been attached to a deal.
|
|
513
636
|
* @summary Update the product attached to a deal
|
|
@@ -518,6 +641,9 @@ export const DealProductsApiFactory = function (configuration, basePath, axios)
|
|
|
518
641
|
updateDealProduct(requestParameters) {
|
|
519
642
|
return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
|
|
520
643
|
},
|
|
644
|
+
updateDealProductWithHttpInfo(requestParameters) {
|
|
645
|
+
return localVarFp.updateDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
|
|
646
|
+
},
|
|
521
647
|
};
|
|
522
648
|
};
|
|
523
649
|
/**
|
|
@@ -538,6 +664,17 @@ export class DealProductsApi extends BaseAPI {
|
|
|
538
664
|
addDealProduct(requestParameters) {
|
|
539
665
|
return DealProductsApiFp(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
540
666
|
}
|
|
667
|
+
/**
|
|
668
|
+
* Same as `addDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
669
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
670
|
+
* @param {DealProductsApiAddDealProductRequest} requestParameters Request parameters.
|
|
671
|
+
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
* @memberof DealProductsApi
|
|
674
|
+
*/
|
|
675
|
+
addDealProductWithHttpInfo(requestParameters) {
|
|
676
|
+
return DealProductsApiFp(this.configuration).addDealProductWithHttpInfo(requestParameters.id, requestParameters.AddDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
677
|
+
}
|
|
541
678
|
/**
|
|
542
679
|
* Adds multiple products to a deal in a single request. Maximum of 100 products allowed per request.
|
|
543
680
|
* @summary Add multiple products to a deal
|
|
@@ -549,6 +686,17 @@ export class DealProductsApi extends BaseAPI {
|
|
|
549
686
|
addManyDealProducts(requestParameters) {
|
|
550
687
|
return DealProductsApiFp(this.configuration).addManyDealProducts(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
551
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* Same as `addManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
691
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
692
|
+
* @param {DealProductsApiAddManyDealProductsRequest} requestParameters Request parameters.
|
|
693
|
+
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
* @memberof DealProductsApi
|
|
696
|
+
*/
|
|
697
|
+
addManyDealProductsWithHttpInfo(requestParameters) {
|
|
698
|
+
return DealProductsApiFp(this.configuration).addManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.CreateManyDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
699
|
+
}
|
|
552
700
|
/**
|
|
553
701
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
|
554
702
|
* @summary Delete an attached product from a deal
|
|
@@ -560,6 +708,17 @@ export class DealProductsApi extends BaseAPI {
|
|
|
560
708
|
deleteDealProduct(requestParameters) {
|
|
561
709
|
return DealProductsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
|
|
562
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
* Same as `deleteDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
713
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
714
|
+
* @param {DealProductsApiDeleteDealProductRequest} requestParameters Request parameters.
|
|
715
|
+
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
* @memberof DealProductsApi
|
|
718
|
+
*/
|
|
719
|
+
deleteDealProductWithHttpInfo(requestParameters) {
|
|
720
|
+
return DealProductsApiFp(this.configuration).deleteDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
|
|
721
|
+
}
|
|
563
722
|
/**
|
|
564
723
|
* 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.
|
|
565
724
|
* @summary Delete many products from a deal
|
|
@@ -571,6 +730,17 @@ export class DealProductsApi extends BaseAPI {
|
|
|
571
730
|
deleteManyDealProducts(requestParameters) {
|
|
572
731
|
return DealProductsApiFp(this.configuration).deleteManyDealProducts(requestParameters.id, requestParameters.ids).then((request) => request(this.axios, this.basePath));
|
|
573
732
|
}
|
|
733
|
+
/**
|
|
734
|
+
* Same as `deleteManyDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
735
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
736
|
+
* @param {DealProductsApiDeleteManyDealProductsRequest} requestParameters Request parameters.
|
|
737
|
+
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
* @memberof DealProductsApi
|
|
740
|
+
*/
|
|
741
|
+
deleteManyDealProductsWithHttpInfo(requestParameters) {
|
|
742
|
+
return DealProductsApiFp(this.configuration).deleteManyDealProductsWithHttpInfo(requestParameters.id, requestParameters.ids).then((request) => request(this.axios, this.basePath));
|
|
743
|
+
}
|
|
574
744
|
/**
|
|
575
745
|
* Lists products attached to a deal.
|
|
576
746
|
* @summary List products attached to a deal
|
|
@@ -582,6 +752,17 @@ export class DealProductsApi extends BaseAPI {
|
|
|
582
752
|
getDealProducts(requestParameters) {
|
|
583
753
|
return DealProductsApiFp(this.configuration).getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
584
754
|
}
|
|
755
|
+
/**
|
|
756
|
+
* Same as `getDealProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
757
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
758
|
+
* @param {DealProductsApiGetDealProductsRequest} requestParameters Request parameters.
|
|
759
|
+
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
* @memberof DealProductsApi
|
|
762
|
+
*/
|
|
763
|
+
getDealProductsWithHttpInfo(requestParameters) {
|
|
764
|
+
return DealProductsApiFp(this.configuration).getDealProductsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
765
|
+
}
|
|
585
766
|
/**
|
|
586
767
|
* Returns data about products attached to deals
|
|
587
768
|
* @summary Get deal products of several deals
|
|
@@ -593,6 +774,17 @@ export class DealProductsApi extends BaseAPI {
|
|
|
593
774
|
getDealsProducts(requestParameters) {
|
|
594
775
|
return DealProductsApiFp(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
595
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* Same as `getDealsProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
779
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
780
|
+
* @param {DealProductsApiGetDealsProductsRequest} requestParameters Request parameters.
|
|
781
|
+
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
* @memberof DealProductsApi
|
|
784
|
+
*/
|
|
785
|
+
getDealsProductsWithHttpInfo(requestParameters) {
|
|
786
|
+
return DealProductsApiFp(this.configuration).getDealsProductsWithHttpInfo(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
787
|
+
}
|
|
596
788
|
/**
|
|
597
789
|
* Updates the details of the product that has been attached to a deal.
|
|
598
790
|
* @summary Update the product attached to a deal
|
|
@@ -604,4 +796,15 @@ export class DealProductsApi extends BaseAPI {
|
|
|
604
796
|
updateDealProduct(requestParameters) {
|
|
605
797
|
return DealProductsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
606
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
* Same as `updateDealProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
801
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
802
|
+
* @param {DealProductsApiUpdateDealProductRequest} requestParameters Request parameters.
|
|
803
|
+
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
* @memberof DealProductsApi
|
|
806
|
+
*/
|
|
807
|
+
updateDealProductWithHttpInfo(requestParameters) {
|
|
808
|
+
return DealProductsApiFp(this.configuration).updateDealProductWithHttpInfo(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
|
|
809
|
+
}
|
|
607
810
|
}
|