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
|
@@ -739,7 +739,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
|
739
739
|
if (organization_id !== undefined) {
|
|
740
740
|
localVarQueryParameter['organization_id'] = organization_id;
|
|
741
741
|
}
|
|
742
|
-
if (status) {
|
|
742
|
+
if (status !== undefined) {
|
|
743
743
|
localVarQueryParameter['status'] = status;
|
|
744
744
|
}
|
|
745
745
|
if (include_fields) {
|
|
@@ -860,6 +860,19 @@ const DealsApiFp = function (configuration) {
|
|
|
860
860
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
861
861
|
});
|
|
862
862
|
},
|
|
863
|
+
/**
|
|
864
|
+
* Same as `addDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
865
|
+
* @summary Add a new deal
|
|
866
|
+
* @param {AddDealRequest} [AddDealRequest]
|
|
867
|
+
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
*/
|
|
870
|
+
addDealWithHttpInfo(AddDealRequest) {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDeal(AddDealRequest);
|
|
873
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
874
|
+
});
|
|
875
|
+
},
|
|
863
876
|
/**
|
|
864
877
|
* Adds a user as a follower to the deal.
|
|
865
878
|
* @summary Add a follower to a deal
|
|
@@ -874,6 +887,20 @@ const DealsApiFp = function (configuration) {
|
|
|
874
887
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
875
888
|
});
|
|
876
889
|
},
|
|
890
|
+
/**
|
|
891
|
+
* Same as `addDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
892
|
+
* @summary Add a follower to a deal
|
|
893
|
+
* @param {number} id The ID of the deal
|
|
894
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
|
895
|
+
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
*/
|
|
898
|
+
addDealFollowerWithHttpInfo(id, AddDealFollowerRequest) {
|
|
899
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
900
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealFollower(id, AddDealFollowerRequest);
|
|
901
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
902
|
+
});
|
|
903
|
+
},
|
|
877
904
|
/**
|
|
878
905
|
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
|
879
906
|
* @summary Convert a deal to a lead
|
|
@@ -887,6 +914,19 @@ const DealsApiFp = function (configuration) {
|
|
|
887
914
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
888
915
|
});
|
|
889
916
|
},
|
|
917
|
+
/**
|
|
918
|
+
* Same as `convertDealToLead`, but resolves with the response body together with the HTTP status and headers.
|
|
919
|
+
* @summary Convert a deal to a lead
|
|
920
|
+
* @param {number} id The ID of the deal to convert
|
|
921
|
+
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
convertDealToLeadWithHttpInfo(id) {
|
|
925
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
926
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.convertDealToLead(id);
|
|
927
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
928
|
+
});
|
|
929
|
+
},
|
|
890
930
|
/**
|
|
891
931
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
|
892
932
|
* @summary Delete a discount from a deal
|
|
@@ -901,6 +941,20 @@ const DealsApiFp = function (configuration) {
|
|
|
901
941
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
902
942
|
});
|
|
903
943
|
},
|
|
944
|
+
/**
|
|
945
|
+
* Same as `deleteAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
946
|
+
* @summary Delete a discount from a deal
|
|
947
|
+
* @param {number} id The ID of the deal
|
|
948
|
+
* @param {string} discount_id The ID of the discount
|
|
949
|
+
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
*/
|
|
952
|
+
deleteAdditionalDiscountWithHttpInfo(id, discount_id) {
|
|
953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
954
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAdditionalDiscount(id, discount_id);
|
|
955
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
956
|
+
});
|
|
957
|
+
},
|
|
904
958
|
/**
|
|
905
959
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
|
906
960
|
* @summary Delete a deal
|
|
@@ -914,6 +968,19 @@ const DealsApiFp = function (configuration) {
|
|
|
914
968
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
915
969
|
});
|
|
916
970
|
},
|
|
971
|
+
/**
|
|
972
|
+
* Same as `deleteDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
973
|
+
* @summary Delete a deal
|
|
974
|
+
* @param {number} id The ID of the deal
|
|
975
|
+
|
|
976
|
+
* @throws {RequiredError}
|
|
977
|
+
*/
|
|
978
|
+
deleteDealWithHttpInfo(id) {
|
|
979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
980
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeal(id);
|
|
981
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
982
|
+
});
|
|
983
|
+
},
|
|
917
984
|
/**
|
|
918
985
|
* Deletes a user follower from the deal.
|
|
919
986
|
* @summary Delete a follower from a deal
|
|
@@ -928,6 +995,20 @@ const DealsApiFp = function (configuration) {
|
|
|
928
995
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
929
996
|
});
|
|
930
997
|
},
|
|
998
|
+
/**
|
|
999
|
+
* Same as `deleteDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1000
|
+
* @summary Delete a follower from a deal
|
|
1001
|
+
* @param {number} id The ID of the deal
|
|
1002
|
+
* @param {number} follower_id The ID of the following user
|
|
1003
|
+
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
deleteDealFollowerWithHttpInfo(id, follower_id) {
|
|
1007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealFollower(id, follower_id);
|
|
1009
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1010
|
+
});
|
|
1011
|
+
},
|
|
931
1012
|
/**
|
|
932
1013
|
* Lists discounts attached to a deal.
|
|
933
1014
|
* @summary List discounts added to a deal
|
|
@@ -941,6 +1022,19 @@ const DealsApiFp = function (configuration) {
|
|
|
941
1022
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
942
1023
|
});
|
|
943
1024
|
},
|
|
1025
|
+
/**
|
|
1026
|
+
* Same as `getAdditionalDiscounts`, but resolves with the response body together with the HTTP status and headers.
|
|
1027
|
+
* @summary List discounts added to a deal
|
|
1028
|
+
* @param {number} id The ID of the deal
|
|
1029
|
+
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
getAdditionalDiscountsWithHttpInfo(id) {
|
|
1033
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1034
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAdditionalDiscounts(id);
|
|
1035
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1036
|
+
});
|
|
1037
|
+
},
|
|
944
1038
|
/**
|
|
945
1039
|
* Returns data about all archived deals.
|
|
946
1040
|
* @summary Get all archived deals
|
|
@@ -969,6 +1063,34 @@ const DealsApiFp = function (configuration) {
|
|
|
969
1063
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
970
1064
|
});
|
|
971
1065
|
},
|
|
1066
|
+
/**
|
|
1067
|
+
* Same as `getArchivedDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1068
|
+
* @summary Get all archived deals
|
|
1069
|
+
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
|
1070
|
+
* @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
1071
|
+
* @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
1072
|
+
* @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
|
1073
|
+
* @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
1074
|
+
* @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
|
1075
|
+
* @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
|
1076
|
+
* @param {Set<'open' | 'won' | 'lost' | 'deleted'>} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored.
|
|
1077
|
+
* @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
1078
|
+
* @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
1079
|
+
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
1080
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
1081
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>} [include_fields] Optional comma separated string array of additional fields to include
|
|
1082
|
+
* @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
1083
|
+
* @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.
|
|
1084
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1085
|
+
|
|
1086
|
+
* @throws {RequiredError}
|
|
1087
|
+
*/
|
|
1088
|
+
getArchivedDealsWithHttpInfo(filter_id, ids, owner_id, person_id, org_id, pipeline_id, stage_id, status, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor) {
|
|
1089
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1090
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getArchivedDeals(filter_id, ids, owner_id, person_id, org_id, pipeline_id, stage_id, status, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor);
|
|
1091
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1092
|
+
});
|
|
1093
|
+
},
|
|
972
1094
|
/**
|
|
973
1095
|
* Returns the details of a specific deal.
|
|
974
1096
|
* @summary Get details of a deal
|
|
@@ -986,6 +1108,23 @@ const DealsApiFp = function (configuration) {
|
|
|
986
1108
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
987
1109
|
});
|
|
988
1110
|
},
|
|
1111
|
+
/**
|
|
1112
|
+
* Same as `getDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1113
|
+
* @summary Get details of a deal
|
|
1114
|
+
* @param {number} id The ID of the deal
|
|
1115
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>} [include_fields] Optional comma separated string array of additional fields to include
|
|
1116
|
+
* @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
1117
|
+
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
1118
|
+
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
1119
|
+
|
|
1120
|
+
* @throws {RequiredError}
|
|
1121
|
+
*/
|
|
1122
|
+
getDealWithHttpInfo(id, include_fields, custom_fields, include_option_labels, include_labels) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeal(id, include_fields, custom_fields, include_option_labels, include_labels);
|
|
1125
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1126
|
+
});
|
|
1127
|
+
},
|
|
989
1128
|
/**
|
|
990
1129
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
991
1130
|
* @summary Get Deal conversion status
|
|
@@ -1000,6 +1139,20 @@ const DealsApiFp = function (configuration) {
|
|
|
1000
1139
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1001
1140
|
});
|
|
1002
1141
|
},
|
|
1142
|
+
/**
|
|
1143
|
+
* Same as `getDealConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
1144
|
+
* @summary Get Deal conversion status
|
|
1145
|
+
* @param {number} id The ID of a deal
|
|
1146
|
+
* @param {string} conversion_id The ID of the conversion
|
|
1147
|
+
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
getDealConversionStatusWithHttpInfo(id, conversion_id) {
|
|
1151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1152
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealConversionStatus(id, conversion_id);
|
|
1153
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1154
|
+
});
|
|
1155
|
+
},
|
|
1003
1156
|
/**
|
|
1004
1157
|
* Lists users who are following the deal.
|
|
1005
1158
|
* @summary List followers of a deal
|
|
@@ -1015,6 +1168,21 @@ const DealsApiFp = function (configuration) {
|
|
|
1015
1168
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1016
1169
|
});
|
|
1017
1170
|
},
|
|
1171
|
+
/**
|
|
1172
|
+
* Same as `getDealFollowers`, but resolves with the response body together with the HTTP status and headers.
|
|
1173
|
+
* @summary List followers of a deal
|
|
1174
|
+
* @param {number} id The ID of the deal
|
|
1175
|
+
* @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.
|
|
1176
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1177
|
+
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
*/
|
|
1180
|
+
getDealFollowersWithHttpInfo(id, limit, cursor) {
|
|
1181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1182
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowers(id, limit, cursor);
|
|
1183
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1184
|
+
});
|
|
1185
|
+
},
|
|
1018
1186
|
/**
|
|
1019
1187
|
* Lists changelogs about users have followed the deal.
|
|
1020
1188
|
* @summary List followers changelog of a deal
|
|
@@ -1030,6 +1198,21 @@ const DealsApiFp = function (configuration) {
|
|
|
1030
1198
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1031
1199
|
});
|
|
1032
1200
|
},
|
|
1201
|
+
/**
|
|
1202
|
+
* Same as `getDealFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
|
|
1203
|
+
* @summary List followers changelog of a deal
|
|
1204
|
+
* @param {number} id The ID of the deal
|
|
1205
|
+
* @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.
|
|
1206
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1207
|
+
|
|
1208
|
+
* @throws {RequiredError}
|
|
1209
|
+
*/
|
|
1210
|
+
getDealFollowersChangelogWithHttpInfo(id, limit, cursor) {
|
|
1211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowersChangelog(id, limit, cursor);
|
|
1213
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1214
|
+
});
|
|
1215
|
+
},
|
|
1033
1216
|
/**
|
|
1034
1217
|
* Returns data about all not archived deals.
|
|
1035
1218
|
* @summary Get all deals
|
|
@@ -1060,6 +1243,36 @@ const DealsApiFp = function (configuration) {
|
|
|
1060
1243
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1061
1244
|
});
|
|
1062
1245
|
},
|
|
1246
|
+
/**
|
|
1247
|
+
* Same as `getDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1248
|
+
* @summary Get all deals
|
|
1249
|
+
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
|
1250
|
+
* @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
1251
|
+
* @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
1252
|
+
* @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
|
1253
|
+
* @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
1254
|
+
* @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
|
1255
|
+
* @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
|
1256
|
+
* @param {Set<'open' | 'won' | 'lost' | 'deleted'>} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored.
|
|
1257
|
+
* @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
1258
|
+
* @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
1259
|
+
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
1260
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
1261
|
+
* @param {Set<'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'smart_bcc_email' | 'source_lead_id'>} [include_fields] Optional comma separated string array of additional fields to include
|
|
1262
|
+
* @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
1263
|
+
* @param {boolean} [include_option_labels] When provided with a \'true\' value, single option and multiple option custom fields values contain objects in the form of \'{ id: number, label: string }\' instead of plain id
|
|
1264
|
+
* @param {boolean} [include_labels] When provided with \'true\' value, response will include an array of label objects in the form of \'{ id: number, label: string }\'
|
|
1265
|
+
* @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.
|
|
1266
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1267
|
+
|
|
1268
|
+
* @throws {RequiredError}
|
|
1269
|
+
*/
|
|
1270
|
+
getDealsWithHttpInfo(filter_id, ids, owner_id, person_id, org_id, pipeline_id, stage_id, status, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, include_option_labels, include_labels, limit, cursor) {
|
|
1271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeals(filter_id, ids, owner_id, person_id, org_id, pipeline_id, stage_id, status, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, include_option_labels, include_labels, limit, cursor);
|
|
1273
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1274
|
+
});
|
|
1275
|
+
},
|
|
1063
1276
|
/**
|
|
1064
1277
|
* Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
|
|
1065
1278
|
* @summary Add a discount to a deal
|
|
@@ -1074,6 +1287,20 @@ const DealsApiFp = function (configuration) {
|
|
|
1074
1287
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1075
1288
|
});
|
|
1076
1289
|
},
|
|
1290
|
+
/**
|
|
1291
|
+
* Same as `postAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1292
|
+
* @summary Add a discount to a deal
|
|
1293
|
+
* @param {number} id The ID of the deal
|
|
1294
|
+
* @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody]
|
|
1295
|
+
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
postAdditionalDiscountWithHttpInfo(id, AddAdditionalDiscountRequestBody) {
|
|
1299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1300
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postAdditionalDiscount(id, AddAdditionalDiscountRequestBody);
|
|
1301
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1302
|
+
});
|
|
1303
|
+
},
|
|
1077
1304
|
/**
|
|
1078
1305
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
|
1079
1306
|
* @summary Search deals
|
|
@@ -1095,6 +1322,27 @@ const DealsApiFp = function (configuration) {
|
|
|
1095
1322
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1096
1323
|
});
|
|
1097
1324
|
},
|
|
1325
|
+
/**
|
|
1326
|
+
* Same as `searchDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1327
|
+
* @summary Search deals
|
|
1328
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
1329
|
+
* @param {Set<'custom_fields' | 'notes' | 'title'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
1330
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
1331
|
+
* @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
|
|
1332
|
+
* @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
|
|
1333
|
+
* @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000.
|
|
1334
|
+
* @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
1335
|
+
* @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 100 is allowed.
|
|
1336
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1337
|
+
|
|
1338
|
+
* @throws {RequiredError}
|
|
1339
|
+
*/
|
|
1340
|
+
searchDealsWithHttpInfo(term, fields, exact_match, person_id, organization_id, status, include_fields, limit, cursor) {
|
|
1341
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1342
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchDeals(term, fields, exact_match, person_id, organization_id, status, include_fields, limit, cursor);
|
|
1343
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1344
|
+
});
|
|
1345
|
+
},
|
|
1098
1346
|
/**
|
|
1099
1347
|
* Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
|
|
1100
1348
|
* @summary Update a discount added to a deal
|
|
@@ -1110,6 +1358,21 @@ const DealsApiFp = function (configuration) {
|
|
|
1110
1358
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1111
1359
|
});
|
|
1112
1360
|
},
|
|
1361
|
+
/**
|
|
1362
|
+
* Same as `updateAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1363
|
+
* @summary Update a discount added to a deal
|
|
1364
|
+
* @param {number} id The ID of the deal
|
|
1365
|
+
* @param {string} discount_id The ID of the discount
|
|
1366
|
+
* @param {UpdateAdditionalDiscountRequestBody} [UpdateAdditionalDiscountRequestBody]
|
|
1367
|
+
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
updateAdditionalDiscountWithHttpInfo(id, discount_id, UpdateAdditionalDiscountRequestBody) {
|
|
1371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1372
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAdditionalDiscount(id, discount_id, UpdateAdditionalDiscountRequestBody);
|
|
1373
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1374
|
+
});
|
|
1375
|
+
},
|
|
1113
1376
|
/**
|
|
1114
1377
|
* Updates the properties of a deal.
|
|
1115
1378
|
* @summary Update a deal
|
|
@@ -1124,6 +1387,20 @@ const DealsApiFp = function (configuration) {
|
|
|
1124
1387
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1125
1388
|
});
|
|
1126
1389
|
},
|
|
1390
|
+
/**
|
|
1391
|
+
* Same as `updateDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1392
|
+
* @summary Update a deal
|
|
1393
|
+
* @param {number} id The ID of the deal
|
|
1394
|
+
* @param {UpdateDealRequest} [UpdateDealRequest]
|
|
1395
|
+
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
*/
|
|
1398
|
+
updateDealWithHttpInfo(id, UpdateDealRequest) {
|
|
1399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1400
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeal(id, UpdateDealRequest);
|
|
1401
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
1402
|
+
});
|
|
1403
|
+
},
|
|
1127
1404
|
};
|
|
1128
1405
|
};
|
|
1129
1406
|
exports.DealsApiFp = DealsApiFp;
|
|
@@ -1144,6 +1421,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1144
1421
|
addDeal(requestParameters = {}) {
|
|
1145
1422
|
return localVarFp.addDeal(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
|
|
1146
1423
|
},
|
|
1424
|
+
addDealWithHttpInfo(requestParameters = {}) {
|
|
1425
|
+
return localVarFp.addDealWithHttpInfo(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
|
|
1426
|
+
},
|
|
1147
1427
|
/**
|
|
1148
1428
|
* Adds a user as a follower to the deal.
|
|
1149
1429
|
* @summary Add a follower to a deal
|
|
@@ -1154,6 +1434,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1154
1434
|
addDealFollower(requestParameters) {
|
|
1155
1435
|
return localVarFp.addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
|
1156
1436
|
},
|
|
1437
|
+
addDealFollowerWithHttpInfo(requestParameters) {
|
|
1438
|
+
return localVarFp.addDealFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
|
1439
|
+
},
|
|
1157
1440
|
/**
|
|
1158
1441
|
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
|
1159
1442
|
* @summary Convert a deal to a lead
|
|
@@ -1164,6 +1447,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1164
1447
|
convertDealToLead(requestParameters) {
|
|
1165
1448
|
return localVarFp.convertDealToLead(requestParameters.id).then((request) => request(axios, basePath));
|
|
1166
1449
|
},
|
|
1450
|
+
convertDealToLeadWithHttpInfo(requestParameters) {
|
|
1451
|
+
return localVarFp.convertDealToLeadWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1452
|
+
},
|
|
1167
1453
|
/**
|
|
1168
1454
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
|
1169
1455
|
* @summary Delete a discount from a deal
|
|
@@ -1174,6 +1460,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1174
1460
|
deleteAdditionalDiscount(requestParameters) {
|
|
1175
1461
|
return localVarFp.deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id).then((request) => request(axios, basePath));
|
|
1176
1462
|
},
|
|
1463
|
+
deleteAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1464
|
+
return localVarFp.deleteAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id).then((request) => request(axios, basePath));
|
|
1465
|
+
},
|
|
1177
1466
|
/**
|
|
1178
1467
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
|
1179
1468
|
* @summary Delete a deal
|
|
@@ -1184,6 +1473,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1184
1473
|
deleteDeal(requestParameters) {
|
|
1185
1474
|
return localVarFp.deleteDeal(requestParameters.id).then((request) => request(axios, basePath));
|
|
1186
1475
|
},
|
|
1476
|
+
deleteDealWithHttpInfo(requestParameters) {
|
|
1477
|
+
return localVarFp.deleteDealWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1478
|
+
},
|
|
1187
1479
|
/**
|
|
1188
1480
|
* Deletes a user follower from the deal.
|
|
1189
1481
|
* @summary Delete a follower from a deal
|
|
@@ -1194,6 +1486,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1194
1486
|
deleteDealFollower(requestParameters) {
|
|
1195
1487
|
return localVarFp.deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
1196
1488
|
},
|
|
1489
|
+
deleteDealFollowerWithHttpInfo(requestParameters) {
|
|
1490
|
+
return localVarFp.deleteDealFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
1491
|
+
},
|
|
1197
1492
|
/**
|
|
1198
1493
|
* Lists discounts attached to a deal.
|
|
1199
1494
|
* @summary List discounts added to a deal
|
|
@@ -1204,6 +1499,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1204
1499
|
getAdditionalDiscounts(requestParameters) {
|
|
1205
1500
|
return localVarFp.getAdditionalDiscounts(requestParameters.id).then((request) => request(axios, basePath));
|
|
1206
1501
|
},
|
|
1502
|
+
getAdditionalDiscountsWithHttpInfo(requestParameters) {
|
|
1503
|
+
return localVarFp.getAdditionalDiscountsWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1504
|
+
},
|
|
1207
1505
|
/**
|
|
1208
1506
|
* Returns data about all archived deals.
|
|
1209
1507
|
* @summary Get all archived deals
|
|
@@ -1214,6 +1512,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1214
1512
|
getArchivedDeals(requestParameters = {}) {
|
|
1215
1513
|
return localVarFp.getArchivedDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1216
1514
|
},
|
|
1515
|
+
getArchivedDealsWithHttpInfo(requestParameters = {}) {
|
|
1516
|
+
return localVarFp.getArchivedDealsWithHttpInfo(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1517
|
+
},
|
|
1217
1518
|
/**
|
|
1218
1519
|
* Returns the details of a specific deal.
|
|
1219
1520
|
* @summary Get details of a deal
|
|
@@ -1224,6 +1525,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1224
1525
|
getDeal(requestParameters) {
|
|
1225
1526
|
return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels).then((request) => request(axios, basePath));
|
|
1226
1527
|
},
|
|
1528
|
+
getDealWithHttpInfo(requestParameters) {
|
|
1529
|
+
return localVarFp.getDealWithHttpInfo(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels).then((request) => request(axios, basePath));
|
|
1530
|
+
},
|
|
1227
1531
|
/**
|
|
1228
1532
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
1229
1533
|
* @summary Get Deal conversion status
|
|
@@ -1234,6 +1538,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1234
1538
|
getDealConversionStatus(requestParameters) {
|
|
1235
1539
|
return localVarFp.getDealConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
|
1236
1540
|
},
|
|
1541
|
+
getDealConversionStatusWithHttpInfo(requestParameters) {
|
|
1542
|
+
return localVarFp.getDealConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
|
1543
|
+
},
|
|
1237
1544
|
/**
|
|
1238
1545
|
* Lists users who are following the deal.
|
|
1239
1546
|
* @summary List followers of a deal
|
|
@@ -1244,6 +1551,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1244
1551
|
getDealFollowers(requestParameters) {
|
|
1245
1552
|
return localVarFp.getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1246
1553
|
},
|
|
1554
|
+
getDealFollowersWithHttpInfo(requestParameters) {
|
|
1555
|
+
return localVarFp.getDealFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1556
|
+
},
|
|
1247
1557
|
/**
|
|
1248
1558
|
* Lists changelogs about users have followed the deal.
|
|
1249
1559
|
* @summary List followers changelog of a deal
|
|
@@ -1254,6 +1564,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1254
1564
|
getDealFollowersChangelog(requestParameters) {
|
|
1255
1565
|
return localVarFp.getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1256
1566
|
},
|
|
1567
|
+
getDealFollowersChangelogWithHttpInfo(requestParameters) {
|
|
1568
|
+
return localVarFp.getDealFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1569
|
+
},
|
|
1257
1570
|
/**
|
|
1258
1571
|
* Returns data about all not archived deals.
|
|
1259
1572
|
* @summary Get all deals
|
|
@@ -1264,6 +1577,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1264
1577
|
getDeals(requestParameters = {}) {
|
|
1265
1578
|
return localVarFp.getDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1266
1579
|
},
|
|
1580
|
+
getDealsWithHttpInfo(requestParameters = {}) {
|
|
1581
|
+
return localVarFp.getDealsWithHttpInfo(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1582
|
+
},
|
|
1267
1583
|
/**
|
|
1268
1584
|
* Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
|
|
1269
1585
|
* @summary Add a discount to a deal
|
|
@@ -1274,6 +1590,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1274
1590
|
postAdditionalDiscount(requestParameters) {
|
|
1275
1591
|
return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1276
1592
|
},
|
|
1593
|
+
postAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1594
|
+
return localVarFp.postAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1595
|
+
},
|
|
1277
1596
|
/**
|
|
1278
1597
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
|
1279
1598
|
* @summary Search deals
|
|
@@ -1284,6 +1603,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1284
1603
|
searchDeals(requestParameters) {
|
|
1285
1604
|
return localVarFp.searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1286
1605
|
},
|
|
1606
|
+
searchDealsWithHttpInfo(requestParameters) {
|
|
1607
|
+
return localVarFp.searchDealsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1608
|
+
},
|
|
1287
1609
|
/**
|
|
1288
1610
|
* Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
|
|
1289
1611
|
* @summary Update a discount added to a deal
|
|
@@ -1294,6 +1616,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1294
1616
|
updateAdditionalDiscount(requestParameters) {
|
|
1295
1617
|
return localVarFp.updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1296
1618
|
},
|
|
1619
|
+
updateAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1620
|
+
return localVarFp.updateAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1621
|
+
},
|
|
1297
1622
|
/**
|
|
1298
1623
|
* Updates the properties of a deal.
|
|
1299
1624
|
* @summary Update a deal
|
|
@@ -1304,6 +1629,9 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1304
1629
|
updateDeal(requestParameters) {
|
|
1305
1630
|
return localVarFp.updateDeal(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(axios, basePath));
|
|
1306
1631
|
},
|
|
1632
|
+
updateDealWithHttpInfo(requestParameters) {
|
|
1633
|
+
return localVarFp.updateDealWithHttpInfo(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(axios, basePath));
|
|
1634
|
+
},
|
|
1307
1635
|
};
|
|
1308
1636
|
};
|
|
1309
1637
|
exports.DealsApiFactory = DealsApiFactory;
|
|
@@ -1325,6 +1653,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1325
1653
|
addDeal(requestParameters = {}) {
|
|
1326
1654
|
return (0, exports.DealsApiFp)(this.configuration).addDeal(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
|
|
1327
1655
|
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Same as `addDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1658
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1659
|
+
* @param {DealsApiAddDealRequest} requestParameters Request parameters.
|
|
1660
|
+
|
|
1661
|
+
* @throws {RequiredError}
|
|
1662
|
+
* @memberof DealsApi
|
|
1663
|
+
*/
|
|
1664
|
+
addDealWithHttpInfo(requestParameters = {}) {
|
|
1665
|
+
return (0, exports.DealsApiFp)(this.configuration).addDealWithHttpInfo(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
|
|
1666
|
+
}
|
|
1328
1667
|
/**
|
|
1329
1668
|
* Adds a user as a follower to the deal.
|
|
1330
1669
|
* @summary Add a follower to a deal
|
|
@@ -1336,6 +1675,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1336
1675
|
addDealFollower(requestParameters) {
|
|
1337
1676
|
return (0, exports.DealsApiFp)(this.configuration).addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
|
1338
1677
|
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Same as `addDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1680
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1681
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
|
1682
|
+
|
|
1683
|
+
* @throws {RequiredError}
|
|
1684
|
+
* @memberof DealsApi
|
|
1685
|
+
*/
|
|
1686
|
+
addDealFollowerWithHttpInfo(requestParameters) {
|
|
1687
|
+
return (0, exports.DealsApiFp)(this.configuration).addDealFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
|
1688
|
+
}
|
|
1339
1689
|
/**
|
|
1340
1690
|
* Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
|
|
1341
1691
|
* @summary Convert a deal to a lead
|
|
@@ -1347,6 +1697,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1347
1697
|
convertDealToLead(requestParameters) {
|
|
1348
1698
|
return (0, exports.DealsApiFp)(this.configuration).convertDealToLead(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1349
1699
|
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Same as `convertDealToLead`, but resolves with the response body together with the HTTP status and headers.
|
|
1702
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1703
|
+
* @param {DealsApiConvertDealToLeadRequest} requestParameters Request parameters.
|
|
1704
|
+
|
|
1705
|
+
* @throws {RequiredError}
|
|
1706
|
+
* @memberof DealsApi
|
|
1707
|
+
*/
|
|
1708
|
+
convertDealToLeadWithHttpInfo(requestParameters) {
|
|
1709
|
+
return (0, exports.DealsApiFp)(this.configuration).convertDealToLeadWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1710
|
+
}
|
|
1350
1711
|
/**
|
|
1351
1712
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
|
1352
1713
|
* @summary Delete a discount from a deal
|
|
@@ -1358,6 +1719,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1358
1719
|
deleteAdditionalDiscount(requestParameters) {
|
|
1359
1720
|
return (0, exports.DealsApiFp)(this.configuration).deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id).then((request) => request(this.axios, this.basePath));
|
|
1360
1721
|
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Same as `deleteAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1724
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1725
|
+
* @param {DealsApiDeleteAdditionalDiscountRequest} requestParameters Request parameters.
|
|
1726
|
+
|
|
1727
|
+
* @throws {RequiredError}
|
|
1728
|
+
* @memberof DealsApi
|
|
1729
|
+
*/
|
|
1730
|
+
deleteAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1731
|
+
return (0, exports.DealsApiFp)(this.configuration).deleteAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id).then((request) => request(this.axios, this.basePath));
|
|
1732
|
+
}
|
|
1361
1733
|
/**
|
|
1362
1734
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
|
1363
1735
|
* @summary Delete a deal
|
|
@@ -1369,6 +1741,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1369
1741
|
deleteDeal(requestParameters) {
|
|
1370
1742
|
return (0, exports.DealsApiFp)(this.configuration).deleteDeal(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1371
1743
|
}
|
|
1744
|
+
/**
|
|
1745
|
+
* Same as `deleteDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1746
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1747
|
+
* @param {DealsApiDeleteDealRequest} requestParameters Request parameters.
|
|
1748
|
+
|
|
1749
|
+
* @throws {RequiredError}
|
|
1750
|
+
* @memberof DealsApi
|
|
1751
|
+
*/
|
|
1752
|
+
deleteDealWithHttpInfo(requestParameters) {
|
|
1753
|
+
return (0, exports.DealsApiFp)(this.configuration).deleteDealWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1754
|
+
}
|
|
1372
1755
|
/**
|
|
1373
1756
|
* Deletes a user follower from the deal.
|
|
1374
1757
|
* @summary Delete a follower from a deal
|
|
@@ -1380,6 +1763,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1380
1763
|
deleteDealFollower(requestParameters) {
|
|
1381
1764
|
return (0, exports.DealsApiFp)(this.configuration).deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1382
1765
|
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Same as `deleteDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1768
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1769
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
|
1770
|
+
|
|
1771
|
+
* @throws {RequiredError}
|
|
1772
|
+
* @memberof DealsApi
|
|
1773
|
+
*/
|
|
1774
|
+
deleteDealFollowerWithHttpInfo(requestParameters) {
|
|
1775
|
+
return (0, exports.DealsApiFp)(this.configuration).deleteDealFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1776
|
+
}
|
|
1383
1777
|
/**
|
|
1384
1778
|
* Lists discounts attached to a deal.
|
|
1385
1779
|
* @summary List discounts added to a deal
|
|
@@ -1391,6 +1785,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1391
1785
|
getAdditionalDiscounts(requestParameters) {
|
|
1392
1786
|
return (0, exports.DealsApiFp)(this.configuration).getAdditionalDiscounts(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1393
1787
|
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Same as `getAdditionalDiscounts`, but resolves with the response body together with the HTTP status and headers.
|
|
1790
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1791
|
+
* @param {DealsApiGetAdditionalDiscountsRequest} requestParameters Request parameters.
|
|
1792
|
+
|
|
1793
|
+
* @throws {RequiredError}
|
|
1794
|
+
* @memberof DealsApi
|
|
1795
|
+
*/
|
|
1796
|
+
getAdditionalDiscountsWithHttpInfo(requestParameters) {
|
|
1797
|
+
return (0, exports.DealsApiFp)(this.configuration).getAdditionalDiscountsWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1798
|
+
}
|
|
1394
1799
|
/**
|
|
1395
1800
|
* Returns data about all archived deals.
|
|
1396
1801
|
* @summary Get all archived deals
|
|
@@ -1402,6 +1807,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1402
1807
|
getArchivedDeals(requestParameters = {}) {
|
|
1403
1808
|
return (0, exports.DealsApiFp)(this.configuration).getArchivedDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1404
1809
|
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Same as `getArchivedDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1812
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1813
|
+
* @param {DealsApiGetArchivedDealsRequest} requestParameters Request parameters.
|
|
1814
|
+
|
|
1815
|
+
* @throws {RequiredError}
|
|
1816
|
+
* @memberof DealsApi
|
|
1817
|
+
*/
|
|
1818
|
+
getArchivedDealsWithHttpInfo(requestParameters = {}) {
|
|
1819
|
+
return (0, exports.DealsApiFp)(this.configuration).getArchivedDealsWithHttpInfo(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1820
|
+
}
|
|
1405
1821
|
/**
|
|
1406
1822
|
* Returns the details of a specific deal.
|
|
1407
1823
|
* @summary Get details of a deal
|
|
@@ -1413,6 +1829,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1413
1829
|
getDeal(requestParameters) {
|
|
1414
1830
|
return (0, exports.DealsApiFp)(this.configuration).getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels).then((request) => request(this.axios, this.basePath));
|
|
1415
1831
|
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Same as `getDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1834
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1835
|
+
* @param {DealsApiGetDealRequest} requestParameters Request parameters.
|
|
1836
|
+
|
|
1837
|
+
* @throws {RequiredError}
|
|
1838
|
+
* @memberof DealsApi
|
|
1839
|
+
*/
|
|
1840
|
+
getDealWithHttpInfo(requestParameters) {
|
|
1841
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealWithHttpInfo(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels).then((request) => request(this.axios, this.basePath));
|
|
1842
|
+
}
|
|
1416
1843
|
/**
|
|
1417
1844
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
1418
1845
|
* @summary Get Deal conversion status
|
|
@@ -1424,6 +1851,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1424
1851
|
getDealConversionStatus(requestParameters) {
|
|
1425
1852
|
return (0, exports.DealsApiFp)(this.configuration).getDealConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
|
1426
1853
|
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Same as `getDealConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
1856
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1857
|
+
* @param {DealsApiGetDealConversionStatusRequest} requestParameters Request parameters.
|
|
1858
|
+
|
|
1859
|
+
* @throws {RequiredError}
|
|
1860
|
+
* @memberof DealsApi
|
|
1861
|
+
*/
|
|
1862
|
+
getDealConversionStatusWithHttpInfo(requestParameters) {
|
|
1863
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
|
1864
|
+
}
|
|
1427
1865
|
/**
|
|
1428
1866
|
* Lists users who are following the deal.
|
|
1429
1867
|
* @summary List followers of a deal
|
|
@@ -1435,6 +1873,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1435
1873
|
getDealFollowers(requestParameters) {
|
|
1436
1874
|
return (0, exports.DealsApiFp)(this.configuration).getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1437
1875
|
}
|
|
1876
|
+
/**
|
|
1877
|
+
* Same as `getDealFollowers`, but resolves with the response body together with the HTTP status and headers.
|
|
1878
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1879
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
|
1880
|
+
|
|
1881
|
+
* @throws {RequiredError}
|
|
1882
|
+
* @memberof DealsApi
|
|
1883
|
+
*/
|
|
1884
|
+
getDealFollowersWithHttpInfo(requestParameters) {
|
|
1885
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1886
|
+
}
|
|
1438
1887
|
/**
|
|
1439
1888
|
* Lists changelogs about users have followed the deal.
|
|
1440
1889
|
* @summary List followers changelog of a deal
|
|
@@ -1446,6 +1895,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1446
1895
|
getDealFollowersChangelog(requestParameters) {
|
|
1447
1896
|
return (0, exports.DealsApiFp)(this.configuration).getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1448
1897
|
}
|
|
1898
|
+
/**
|
|
1899
|
+
* Same as `getDealFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
|
|
1900
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1901
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
|
1902
|
+
|
|
1903
|
+
* @throws {RequiredError}
|
|
1904
|
+
* @memberof DealsApi
|
|
1905
|
+
*/
|
|
1906
|
+
getDealFollowersChangelogWithHttpInfo(requestParameters) {
|
|
1907
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1908
|
+
}
|
|
1449
1909
|
/**
|
|
1450
1910
|
* Returns data about all not archived deals.
|
|
1451
1911
|
* @summary Get all deals
|
|
@@ -1457,6 +1917,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1457
1917
|
getDeals(requestParameters = {}) {
|
|
1458
1918
|
return (0, exports.DealsApiFp)(this.configuration).getDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1459
1919
|
}
|
|
1920
|
+
/**
|
|
1921
|
+
* Same as `getDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1922
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1923
|
+
* @param {DealsApiGetDealsRequest} requestParameters Request parameters.
|
|
1924
|
+
|
|
1925
|
+
* @throws {RequiredError}
|
|
1926
|
+
* @memberof DealsApi
|
|
1927
|
+
*/
|
|
1928
|
+
getDealsWithHttpInfo(requestParameters = {}) {
|
|
1929
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealsWithHttpInfo(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1930
|
+
}
|
|
1460
1931
|
/**
|
|
1461
1932
|
* Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
|
|
1462
1933
|
* @summary Add a discount to a deal
|
|
@@ -1468,6 +1939,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1468
1939
|
postAdditionalDiscount(requestParameters) {
|
|
1469
1940
|
return (0, exports.DealsApiFp)(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1470
1941
|
}
|
|
1942
|
+
/**
|
|
1943
|
+
* Same as `postAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1944
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1945
|
+
* @param {DealsApiPostAdditionalDiscountRequest} requestParameters Request parameters.
|
|
1946
|
+
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
* @memberof DealsApi
|
|
1949
|
+
*/
|
|
1950
|
+
postAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1951
|
+
return (0, exports.DealsApiFp)(this.configuration).postAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1952
|
+
}
|
|
1471
1953
|
/**
|
|
1472
1954
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
|
1473
1955
|
* @summary Search deals
|
|
@@ -1479,6 +1961,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1479
1961
|
searchDeals(requestParameters) {
|
|
1480
1962
|
return (0, exports.DealsApiFp)(this.configuration).searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1481
1963
|
}
|
|
1964
|
+
/**
|
|
1965
|
+
* Same as `searchDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1966
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1967
|
+
* @param {DealsApiSearchDealsRequest} requestParameters Request parameters.
|
|
1968
|
+
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
* @memberof DealsApi
|
|
1971
|
+
*/
|
|
1972
|
+
searchDealsWithHttpInfo(requestParameters) {
|
|
1973
|
+
return (0, exports.DealsApiFp)(this.configuration).searchDealsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1974
|
+
}
|
|
1482
1975
|
/**
|
|
1483
1976
|
* Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
|
|
1484
1977
|
* @summary Update a discount added to a deal
|
|
@@ -1490,6 +1983,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1490
1983
|
updateAdditionalDiscount(requestParameters) {
|
|
1491
1984
|
return (0, exports.DealsApiFp)(this.configuration).updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1492
1985
|
}
|
|
1986
|
+
/**
|
|
1987
|
+
* Same as `updateAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1988
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1989
|
+
* @param {DealsApiUpdateAdditionalDiscountRequest} requestParameters Request parameters.
|
|
1990
|
+
|
|
1991
|
+
* @throws {RequiredError}
|
|
1992
|
+
* @memberof DealsApi
|
|
1993
|
+
*/
|
|
1994
|
+
updateAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1995
|
+
return (0, exports.DealsApiFp)(this.configuration).updateAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1996
|
+
}
|
|
1493
1997
|
/**
|
|
1494
1998
|
* Updates the properties of a deal.
|
|
1495
1999
|
* @summary Update a deal
|
|
@@ -1501,5 +2005,16 @@ class DealsApi extends base_1.BaseAPI {
|
|
|
1501
2005
|
updateDeal(requestParameters) {
|
|
1502
2006
|
return (0, exports.DealsApiFp)(this.configuration).updateDeal(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(this.axios, this.basePath));
|
|
1503
2007
|
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Same as `updateDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
2010
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
2011
|
+
* @param {DealsApiUpdateDealRequest} requestParameters Request parameters.
|
|
2012
|
+
|
|
2013
|
+
* @throws {RequiredError}
|
|
2014
|
+
* @memberof DealsApi
|
|
2015
|
+
*/
|
|
2016
|
+
updateDealWithHttpInfo(requestParameters) {
|
|
2017
|
+
return (0, exports.DealsApiFp)(this.configuration).updateDealWithHttpInfo(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(this.axios, this.basePath));
|
|
2018
|
+
}
|
|
1504
2019
|
}
|
|
1505
2020
|
exports.DealsApi = DealsApi;
|