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
|
@@ -733,7 +733,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
|
733
733
|
if (organization_id !== undefined) {
|
|
734
734
|
localVarQueryParameter['organization_id'] = organization_id;
|
|
735
735
|
}
|
|
736
|
-
if (status) {
|
|
736
|
+
if (status !== undefined) {
|
|
737
737
|
localVarQueryParameter['status'] = status;
|
|
738
738
|
}
|
|
739
739
|
if (include_fields) {
|
|
@@ -853,6 +853,19 @@ export const DealsApiFp = function (configuration) {
|
|
|
853
853
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
854
854
|
});
|
|
855
855
|
},
|
|
856
|
+
/**
|
|
857
|
+
* Same as `addDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
858
|
+
* @summary Add a new deal
|
|
859
|
+
* @param {AddDealRequest} [AddDealRequest]
|
|
860
|
+
|
|
861
|
+
* @throws {RequiredError}
|
|
862
|
+
*/
|
|
863
|
+
addDealWithHttpInfo(AddDealRequest) {
|
|
864
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
865
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDeal(AddDealRequest);
|
|
866
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
867
|
+
});
|
|
868
|
+
},
|
|
856
869
|
/**
|
|
857
870
|
* Adds a user as a follower to the deal.
|
|
858
871
|
* @summary Add a follower to a deal
|
|
@@ -867,6 +880,20 @@ export const DealsApiFp = function (configuration) {
|
|
|
867
880
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
868
881
|
});
|
|
869
882
|
},
|
|
883
|
+
/**
|
|
884
|
+
* Same as `addDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
885
|
+
* @summary Add a follower to a deal
|
|
886
|
+
* @param {number} id The ID of the deal
|
|
887
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
|
888
|
+
|
|
889
|
+
* @throws {RequiredError}
|
|
890
|
+
*/
|
|
891
|
+
addDealFollowerWithHttpInfo(id, AddDealFollowerRequest) {
|
|
892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
893
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealFollower(id, AddDealFollowerRequest);
|
|
894
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
895
|
+
});
|
|
896
|
+
},
|
|
870
897
|
/**
|
|
871
898
|
* 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.
|
|
872
899
|
* @summary Convert a deal to a lead
|
|
@@ -880,6 +907,19 @@ export const DealsApiFp = function (configuration) {
|
|
|
880
907
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
881
908
|
});
|
|
882
909
|
},
|
|
910
|
+
/**
|
|
911
|
+
* Same as `convertDealToLead`, but resolves with the response body together with the HTTP status and headers.
|
|
912
|
+
* @summary Convert a deal to a lead
|
|
913
|
+
* @param {number} id The ID of the deal to convert
|
|
914
|
+
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
convertDealToLeadWithHttpInfo(id) {
|
|
918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
919
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.convertDealToLead(id);
|
|
920
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
921
|
+
});
|
|
922
|
+
},
|
|
883
923
|
/**
|
|
884
924
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
|
885
925
|
* @summary Delete a discount from a deal
|
|
@@ -894,6 +934,20 @@ export const DealsApiFp = function (configuration) {
|
|
|
894
934
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
895
935
|
});
|
|
896
936
|
},
|
|
937
|
+
/**
|
|
938
|
+
* Same as `deleteAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
939
|
+
* @summary Delete a discount from a deal
|
|
940
|
+
* @param {number} id The ID of the deal
|
|
941
|
+
* @param {string} discount_id The ID of the discount
|
|
942
|
+
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
deleteAdditionalDiscountWithHttpInfo(id, discount_id) {
|
|
946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
947
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAdditionalDiscount(id, discount_id);
|
|
948
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
949
|
+
});
|
|
950
|
+
},
|
|
897
951
|
/**
|
|
898
952
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
|
899
953
|
* @summary Delete a deal
|
|
@@ -907,6 +961,19 @@ export const DealsApiFp = function (configuration) {
|
|
|
907
961
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
908
962
|
});
|
|
909
963
|
},
|
|
964
|
+
/**
|
|
965
|
+
* Same as `deleteDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
966
|
+
* @summary Delete a deal
|
|
967
|
+
* @param {number} id The ID of the deal
|
|
968
|
+
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
*/
|
|
971
|
+
deleteDealWithHttpInfo(id) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDeal(id);
|
|
974
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
975
|
+
});
|
|
976
|
+
},
|
|
910
977
|
/**
|
|
911
978
|
* Deletes a user follower from the deal.
|
|
912
979
|
* @summary Delete a follower from a deal
|
|
@@ -921,6 +988,20 @@ export const DealsApiFp = function (configuration) {
|
|
|
921
988
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
922
989
|
});
|
|
923
990
|
},
|
|
991
|
+
/**
|
|
992
|
+
* Same as `deleteDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
993
|
+
* @summary Delete a follower from a deal
|
|
994
|
+
* @param {number} id The ID of the deal
|
|
995
|
+
* @param {number} follower_id The ID of the following user
|
|
996
|
+
|
|
997
|
+
* @throws {RequiredError}
|
|
998
|
+
*/
|
|
999
|
+
deleteDealFollowerWithHttpInfo(id, follower_id) {
|
|
1000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealFollower(id, follower_id);
|
|
1002
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1003
|
+
});
|
|
1004
|
+
},
|
|
924
1005
|
/**
|
|
925
1006
|
* Lists discounts attached to a deal.
|
|
926
1007
|
* @summary List discounts added to a deal
|
|
@@ -934,6 +1015,19 @@ export const DealsApiFp = function (configuration) {
|
|
|
934
1015
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
935
1016
|
});
|
|
936
1017
|
},
|
|
1018
|
+
/**
|
|
1019
|
+
* Same as `getAdditionalDiscounts`, but resolves with the response body together with the HTTP status and headers.
|
|
1020
|
+
* @summary List discounts added to a deal
|
|
1021
|
+
* @param {number} id The ID of the deal
|
|
1022
|
+
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
getAdditionalDiscountsWithHttpInfo(id) {
|
|
1026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1027
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAdditionalDiscounts(id);
|
|
1028
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1029
|
+
});
|
|
1030
|
+
},
|
|
937
1031
|
/**
|
|
938
1032
|
* Returns data about all archived deals.
|
|
939
1033
|
* @summary Get all archived deals
|
|
@@ -962,6 +1056,34 @@ export const DealsApiFp = function (configuration) {
|
|
|
962
1056
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
963
1057
|
});
|
|
964
1058
|
},
|
|
1059
|
+
/**
|
|
1060
|
+
* Same as `getArchivedDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1061
|
+
* @summary Get all archived deals
|
|
1062
|
+
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
|
1063
|
+
* @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.
|
|
1064
|
+
* @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
1065
|
+
* @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
|
1066
|
+
* @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
1067
|
+
* @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
|
1068
|
+
* @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
|
1069
|
+
* @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.
|
|
1070
|
+
* @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.
|
|
1071
|
+
* @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.
|
|
1072
|
+
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
1073
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
1074
|
+
* @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
|
|
1075
|
+
* @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.
|
|
1076
|
+
* @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.
|
|
1077
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1078
|
+
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
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) {
|
|
1082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1083
|
+
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);
|
|
1084
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1085
|
+
});
|
|
1086
|
+
},
|
|
965
1087
|
/**
|
|
966
1088
|
* Returns the details of a specific deal.
|
|
967
1089
|
* @summary Get details of a deal
|
|
@@ -979,6 +1101,23 @@ export const DealsApiFp = function (configuration) {
|
|
|
979
1101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
980
1102
|
});
|
|
981
1103
|
},
|
|
1104
|
+
/**
|
|
1105
|
+
* Same as `getDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1106
|
+
* @summary Get details of a deal
|
|
1107
|
+
* @param {number} id The ID of the deal
|
|
1108
|
+
* @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
|
|
1109
|
+
* @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.
|
|
1110
|
+
* @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
|
|
1111
|
+
* @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 }\'
|
|
1112
|
+
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
*/
|
|
1115
|
+
getDealWithHttpInfo(id, include_fields, custom_fields, include_option_labels, include_labels) {
|
|
1116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeal(id, include_fields, custom_fields, include_option_labels, include_labels);
|
|
1118
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1119
|
+
});
|
|
1120
|
+
},
|
|
982
1121
|
/**
|
|
983
1122
|
* 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.
|
|
984
1123
|
* @summary Get Deal conversion status
|
|
@@ -993,6 +1132,20 @@ export const DealsApiFp = function (configuration) {
|
|
|
993
1132
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
994
1133
|
});
|
|
995
1134
|
},
|
|
1135
|
+
/**
|
|
1136
|
+
* Same as `getDealConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
1137
|
+
* @summary Get Deal conversion status
|
|
1138
|
+
* @param {number} id The ID of a deal
|
|
1139
|
+
* @param {string} conversion_id The ID of the conversion
|
|
1140
|
+
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
getDealConversionStatusWithHttpInfo(id, conversion_id) {
|
|
1144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1145
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealConversionStatus(id, conversion_id);
|
|
1146
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1147
|
+
});
|
|
1148
|
+
},
|
|
996
1149
|
/**
|
|
997
1150
|
* Lists users who are following the deal.
|
|
998
1151
|
* @summary List followers of a deal
|
|
@@ -1008,6 +1161,21 @@ export const DealsApiFp = function (configuration) {
|
|
|
1008
1161
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1009
1162
|
});
|
|
1010
1163
|
},
|
|
1164
|
+
/**
|
|
1165
|
+
* Same as `getDealFollowers`, but resolves with the response body together with the HTTP status and headers.
|
|
1166
|
+
* @summary List followers of a deal
|
|
1167
|
+
* @param {number} id The ID of the deal
|
|
1168
|
+
* @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.
|
|
1169
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1170
|
+
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
*/
|
|
1173
|
+
getDealFollowersWithHttpInfo(id, limit, cursor) {
|
|
1174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowers(id, limit, cursor);
|
|
1176
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1177
|
+
});
|
|
1178
|
+
},
|
|
1011
1179
|
/**
|
|
1012
1180
|
* Lists changelogs about users have followed the deal.
|
|
1013
1181
|
* @summary List followers changelog of a deal
|
|
@@ -1023,6 +1191,21 @@ export const DealsApiFp = function (configuration) {
|
|
|
1023
1191
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1024
1192
|
});
|
|
1025
1193
|
},
|
|
1194
|
+
/**
|
|
1195
|
+
* Same as `getDealFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
|
|
1196
|
+
* @summary List followers changelog of a deal
|
|
1197
|
+
* @param {number} id The ID of the deal
|
|
1198
|
+
* @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.
|
|
1199
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1200
|
+
|
|
1201
|
+
* @throws {RequiredError}
|
|
1202
|
+
*/
|
|
1203
|
+
getDealFollowersChangelogWithHttpInfo(id, limit, cursor) {
|
|
1204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1205
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowersChangelog(id, limit, cursor);
|
|
1206
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1207
|
+
});
|
|
1208
|
+
},
|
|
1026
1209
|
/**
|
|
1027
1210
|
* Returns data about all not archived deals.
|
|
1028
1211
|
* @summary Get all deals
|
|
@@ -1053,6 +1236,36 @@ export const DealsApiFp = function (configuration) {
|
|
|
1053
1236
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1054
1237
|
});
|
|
1055
1238
|
},
|
|
1239
|
+
/**
|
|
1240
|
+
* Same as `getDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1241
|
+
* @summary Get all deals
|
|
1242
|
+
* @param {number} [filter_id] If supplied, only deals matching the specified filter are returned
|
|
1243
|
+
* @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.
|
|
1244
|
+
* @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
1245
|
+
* @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
|
|
1246
|
+
* @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
1247
|
+
* @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
|
|
1248
|
+
* @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
|
|
1249
|
+
* @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.
|
|
1250
|
+
* @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.
|
|
1251
|
+
* @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.
|
|
1252
|
+
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
|
1253
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
1254
|
+
* @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
|
|
1255
|
+
* @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.
|
|
1256
|
+
* @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
|
|
1257
|
+
* @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 }\'
|
|
1258
|
+
* @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.
|
|
1259
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1260
|
+
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
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) {
|
|
1264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
|
+
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);
|
|
1266
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1267
|
+
});
|
|
1268
|
+
},
|
|
1056
1269
|
/**
|
|
1057
1270
|
* Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
|
|
1058
1271
|
* @summary Add a discount to a deal
|
|
@@ -1067,6 +1280,20 @@ export const DealsApiFp = function (configuration) {
|
|
|
1067
1280
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1068
1281
|
});
|
|
1069
1282
|
},
|
|
1283
|
+
/**
|
|
1284
|
+
* Same as `postAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1285
|
+
* @summary Add a discount to a deal
|
|
1286
|
+
* @param {number} id The ID of the deal
|
|
1287
|
+
* @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody]
|
|
1288
|
+
|
|
1289
|
+
* @throws {RequiredError}
|
|
1290
|
+
*/
|
|
1291
|
+
postAdditionalDiscountWithHttpInfo(id, AddAdditionalDiscountRequestBody) {
|
|
1292
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1293
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postAdditionalDiscount(id, AddAdditionalDiscountRequestBody);
|
|
1294
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1295
|
+
});
|
|
1296
|
+
},
|
|
1070
1297
|
/**
|
|
1071
1298
|
* 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.
|
|
1072
1299
|
* @summary Search deals
|
|
@@ -1088,6 +1315,27 @@ export const DealsApiFp = function (configuration) {
|
|
|
1088
1315
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1089
1316
|
});
|
|
1090
1317
|
},
|
|
1318
|
+
/**
|
|
1319
|
+
* Same as `searchDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1320
|
+
* @summary Search deals
|
|
1321
|
+
* @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.
|
|
1322
|
+
* @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>.
|
|
1323
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
1324
|
+
* @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
|
|
1325
|
+
* @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
|
|
1326
|
+
* @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.
|
|
1327
|
+
* @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
1328
|
+
* @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.
|
|
1329
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1330
|
+
|
|
1331
|
+
* @throws {RequiredError}
|
|
1332
|
+
*/
|
|
1333
|
+
searchDealsWithHttpInfo(term, fields, exact_match, person_id, organization_id, status, include_fields, limit, cursor) {
|
|
1334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1335
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchDeals(term, fields, exact_match, person_id, organization_id, status, include_fields, limit, cursor);
|
|
1336
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1337
|
+
});
|
|
1338
|
+
},
|
|
1091
1339
|
/**
|
|
1092
1340
|
* Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
|
|
1093
1341
|
* @summary Update a discount added to a deal
|
|
@@ -1103,6 +1351,21 @@ export const DealsApiFp = function (configuration) {
|
|
|
1103
1351
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1104
1352
|
});
|
|
1105
1353
|
},
|
|
1354
|
+
/**
|
|
1355
|
+
* Same as `updateAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1356
|
+
* @summary Update a discount added to a deal
|
|
1357
|
+
* @param {number} id The ID of the deal
|
|
1358
|
+
* @param {string} discount_id The ID of the discount
|
|
1359
|
+
* @param {UpdateAdditionalDiscountRequestBody} [UpdateAdditionalDiscountRequestBody]
|
|
1360
|
+
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
updateAdditionalDiscountWithHttpInfo(id, discount_id, UpdateAdditionalDiscountRequestBody) {
|
|
1364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAdditionalDiscount(id, discount_id, UpdateAdditionalDiscountRequestBody);
|
|
1366
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1367
|
+
});
|
|
1368
|
+
},
|
|
1106
1369
|
/**
|
|
1107
1370
|
* Updates the properties of a deal.
|
|
1108
1371
|
* @summary Update a deal
|
|
@@ -1117,6 +1380,20 @@ export const DealsApiFp = function (configuration) {
|
|
|
1117
1380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1118
1381
|
});
|
|
1119
1382
|
},
|
|
1383
|
+
/**
|
|
1384
|
+
* Same as `updateDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1385
|
+
* @summary Update a deal
|
|
1386
|
+
* @param {number} id The ID of the deal
|
|
1387
|
+
* @param {UpdateDealRequest} [UpdateDealRequest]
|
|
1388
|
+
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
*/
|
|
1391
|
+
updateDealWithHttpInfo(id, UpdateDealRequest) {
|
|
1392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeal(id, UpdateDealRequest);
|
|
1394
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1395
|
+
});
|
|
1396
|
+
},
|
|
1120
1397
|
};
|
|
1121
1398
|
};
|
|
1122
1399
|
/**
|
|
@@ -1136,6 +1413,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1136
1413
|
addDeal(requestParameters = {}) {
|
|
1137
1414
|
return localVarFp.addDeal(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
|
|
1138
1415
|
},
|
|
1416
|
+
addDealWithHttpInfo(requestParameters = {}) {
|
|
1417
|
+
return localVarFp.addDealWithHttpInfo(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
|
|
1418
|
+
},
|
|
1139
1419
|
/**
|
|
1140
1420
|
* Adds a user as a follower to the deal.
|
|
1141
1421
|
* @summary Add a follower to a deal
|
|
@@ -1146,6 +1426,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1146
1426
|
addDealFollower(requestParameters) {
|
|
1147
1427
|
return localVarFp.addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
|
1148
1428
|
},
|
|
1429
|
+
addDealFollowerWithHttpInfo(requestParameters) {
|
|
1430
|
+
return localVarFp.addDealFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
|
1431
|
+
},
|
|
1149
1432
|
/**
|
|
1150
1433
|
* 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.
|
|
1151
1434
|
* @summary Convert a deal to a lead
|
|
@@ -1156,6 +1439,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1156
1439
|
convertDealToLead(requestParameters) {
|
|
1157
1440
|
return localVarFp.convertDealToLead(requestParameters.id).then((request) => request(axios, basePath));
|
|
1158
1441
|
},
|
|
1442
|
+
convertDealToLeadWithHttpInfo(requestParameters) {
|
|
1443
|
+
return localVarFp.convertDealToLeadWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1444
|
+
},
|
|
1159
1445
|
/**
|
|
1160
1446
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
|
1161
1447
|
* @summary Delete a discount from a deal
|
|
@@ -1166,6 +1452,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1166
1452
|
deleteAdditionalDiscount(requestParameters) {
|
|
1167
1453
|
return localVarFp.deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id).then((request) => request(axios, basePath));
|
|
1168
1454
|
},
|
|
1455
|
+
deleteAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1456
|
+
return localVarFp.deleteAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id).then((request) => request(axios, basePath));
|
|
1457
|
+
},
|
|
1169
1458
|
/**
|
|
1170
1459
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
|
1171
1460
|
* @summary Delete a deal
|
|
@@ -1176,6 +1465,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1176
1465
|
deleteDeal(requestParameters) {
|
|
1177
1466
|
return localVarFp.deleteDeal(requestParameters.id).then((request) => request(axios, basePath));
|
|
1178
1467
|
},
|
|
1468
|
+
deleteDealWithHttpInfo(requestParameters) {
|
|
1469
|
+
return localVarFp.deleteDealWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1470
|
+
},
|
|
1179
1471
|
/**
|
|
1180
1472
|
* Deletes a user follower from the deal.
|
|
1181
1473
|
* @summary Delete a follower from a deal
|
|
@@ -1186,6 +1478,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1186
1478
|
deleteDealFollower(requestParameters) {
|
|
1187
1479
|
return localVarFp.deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
1188
1480
|
},
|
|
1481
|
+
deleteDealFollowerWithHttpInfo(requestParameters) {
|
|
1482
|
+
return localVarFp.deleteDealFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
1483
|
+
},
|
|
1189
1484
|
/**
|
|
1190
1485
|
* Lists discounts attached to a deal.
|
|
1191
1486
|
* @summary List discounts added to a deal
|
|
@@ -1196,6 +1491,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1196
1491
|
getAdditionalDiscounts(requestParameters) {
|
|
1197
1492
|
return localVarFp.getAdditionalDiscounts(requestParameters.id).then((request) => request(axios, basePath));
|
|
1198
1493
|
},
|
|
1494
|
+
getAdditionalDiscountsWithHttpInfo(requestParameters) {
|
|
1495
|
+
return localVarFp.getAdditionalDiscountsWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1496
|
+
},
|
|
1199
1497
|
/**
|
|
1200
1498
|
* Returns data about all archived deals.
|
|
1201
1499
|
* @summary Get all archived deals
|
|
@@ -1206,6 +1504,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1206
1504
|
getArchivedDeals(requestParameters = {}) {
|
|
1207
1505
|
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));
|
|
1208
1506
|
},
|
|
1507
|
+
getArchivedDealsWithHttpInfo(requestParameters = {}) {
|
|
1508
|
+
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));
|
|
1509
|
+
},
|
|
1209
1510
|
/**
|
|
1210
1511
|
* Returns the details of a specific deal.
|
|
1211
1512
|
* @summary Get details of a deal
|
|
@@ -1216,6 +1517,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1216
1517
|
getDeal(requestParameters) {
|
|
1217
1518
|
return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels).then((request) => request(axios, basePath));
|
|
1218
1519
|
},
|
|
1520
|
+
getDealWithHttpInfo(requestParameters) {
|
|
1521
|
+
return localVarFp.getDealWithHttpInfo(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.include_option_labels, requestParameters.include_labels).then((request) => request(axios, basePath));
|
|
1522
|
+
},
|
|
1219
1523
|
/**
|
|
1220
1524
|
* 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.
|
|
1221
1525
|
* @summary Get Deal conversion status
|
|
@@ -1226,6 +1530,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1226
1530
|
getDealConversionStatus(requestParameters) {
|
|
1227
1531
|
return localVarFp.getDealConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
|
1228
1532
|
},
|
|
1533
|
+
getDealConversionStatusWithHttpInfo(requestParameters) {
|
|
1534
|
+
return localVarFp.getDealConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
|
1535
|
+
},
|
|
1229
1536
|
/**
|
|
1230
1537
|
* Lists users who are following the deal.
|
|
1231
1538
|
* @summary List followers of a deal
|
|
@@ -1236,6 +1543,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1236
1543
|
getDealFollowers(requestParameters) {
|
|
1237
1544
|
return localVarFp.getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1238
1545
|
},
|
|
1546
|
+
getDealFollowersWithHttpInfo(requestParameters) {
|
|
1547
|
+
return localVarFp.getDealFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1548
|
+
},
|
|
1239
1549
|
/**
|
|
1240
1550
|
* Lists changelogs about users have followed the deal.
|
|
1241
1551
|
* @summary List followers changelog of a deal
|
|
@@ -1246,6 +1556,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1246
1556
|
getDealFollowersChangelog(requestParameters) {
|
|
1247
1557
|
return localVarFp.getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1248
1558
|
},
|
|
1559
|
+
getDealFollowersChangelogWithHttpInfo(requestParameters) {
|
|
1560
|
+
return localVarFp.getDealFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1561
|
+
},
|
|
1249
1562
|
/**
|
|
1250
1563
|
* Returns data about all not archived deals.
|
|
1251
1564
|
* @summary Get all deals
|
|
@@ -1256,6 +1569,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1256
1569
|
getDeals(requestParameters = {}) {
|
|
1257
1570
|
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));
|
|
1258
1571
|
},
|
|
1572
|
+
getDealsWithHttpInfo(requestParameters = {}) {
|
|
1573
|
+
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));
|
|
1574
|
+
},
|
|
1259
1575
|
/**
|
|
1260
1576
|
* Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
|
|
1261
1577
|
* @summary Add a discount to a deal
|
|
@@ -1266,6 +1582,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1266
1582
|
postAdditionalDiscount(requestParameters) {
|
|
1267
1583
|
return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1268
1584
|
},
|
|
1585
|
+
postAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1586
|
+
return localVarFp.postAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1587
|
+
},
|
|
1269
1588
|
/**
|
|
1270
1589
|
* 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.
|
|
1271
1590
|
* @summary Search deals
|
|
@@ -1276,6 +1595,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1276
1595
|
searchDeals(requestParameters) {
|
|
1277
1596
|
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));
|
|
1278
1597
|
},
|
|
1598
|
+
searchDealsWithHttpInfo(requestParameters) {
|
|
1599
|
+
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));
|
|
1600
|
+
},
|
|
1279
1601
|
/**
|
|
1280
1602
|
* Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
|
|
1281
1603
|
* @summary Update a discount added to a deal
|
|
@@ -1286,6 +1608,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1286
1608
|
updateAdditionalDiscount(requestParameters) {
|
|
1287
1609
|
return localVarFp.updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1288
1610
|
},
|
|
1611
|
+
updateAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1612
|
+
return localVarFp.updateAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
|
1613
|
+
},
|
|
1289
1614
|
/**
|
|
1290
1615
|
* Updates the properties of a deal.
|
|
1291
1616
|
* @summary Update a deal
|
|
@@ -1296,6 +1621,9 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1296
1621
|
updateDeal(requestParameters) {
|
|
1297
1622
|
return localVarFp.updateDeal(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(axios, basePath));
|
|
1298
1623
|
},
|
|
1624
|
+
updateDealWithHttpInfo(requestParameters) {
|
|
1625
|
+
return localVarFp.updateDealWithHttpInfo(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(axios, basePath));
|
|
1626
|
+
},
|
|
1299
1627
|
};
|
|
1300
1628
|
};
|
|
1301
1629
|
/**
|
|
@@ -1316,6 +1644,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1316
1644
|
addDeal(requestParameters = {}) {
|
|
1317
1645
|
return DealsApiFp(this.configuration).addDeal(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
|
|
1318
1646
|
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Same as `addDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1649
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1650
|
+
* @param {DealsApiAddDealRequest} requestParameters Request parameters.
|
|
1651
|
+
|
|
1652
|
+
* @throws {RequiredError}
|
|
1653
|
+
* @memberof DealsApi
|
|
1654
|
+
*/
|
|
1655
|
+
addDealWithHttpInfo(requestParameters = {}) {
|
|
1656
|
+
return DealsApiFp(this.configuration).addDealWithHttpInfo(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
|
|
1657
|
+
}
|
|
1319
1658
|
/**
|
|
1320
1659
|
* Adds a user as a follower to the deal.
|
|
1321
1660
|
* @summary Add a follower to a deal
|
|
@@ -1327,6 +1666,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1327
1666
|
addDealFollower(requestParameters) {
|
|
1328
1667
|
return DealsApiFp(this.configuration).addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
|
1329
1668
|
}
|
|
1669
|
+
/**
|
|
1670
|
+
* Same as `addDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1671
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1672
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
|
1673
|
+
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
* @memberof DealsApi
|
|
1676
|
+
*/
|
|
1677
|
+
addDealFollowerWithHttpInfo(requestParameters) {
|
|
1678
|
+
return DealsApiFp(this.configuration).addDealFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
|
1679
|
+
}
|
|
1330
1680
|
/**
|
|
1331
1681
|
* 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.
|
|
1332
1682
|
* @summary Convert a deal to a lead
|
|
@@ -1338,6 +1688,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1338
1688
|
convertDealToLead(requestParameters) {
|
|
1339
1689
|
return DealsApiFp(this.configuration).convertDealToLead(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1340
1690
|
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Same as `convertDealToLead`, but resolves with the response body together with the HTTP status and headers.
|
|
1693
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1694
|
+
* @param {DealsApiConvertDealToLeadRequest} requestParameters Request parameters.
|
|
1695
|
+
|
|
1696
|
+
* @throws {RequiredError}
|
|
1697
|
+
* @memberof DealsApi
|
|
1698
|
+
*/
|
|
1699
|
+
convertDealToLeadWithHttpInfo(requestParameters) {
|
|
1700
|
+
return DealsApiFp(this.configuration).convertDealToLeadWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1701
|
+
}
|
|
1341
1702
|
/**
|
|
1342
1703
|
* Removes a discount from a deal, changing the deal value if the deal has one-time products attached.
|
|
1343
1704
|
* @summary Delete a discount from a deal
|
|
@@ -1349,6 +1710,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1349
1710
|
deleteAdditionalDiscount(requestParameters) {
|
|
1350
1711
|
return DealsApiFp(this.configuration).deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id).then((request) => request(this.axios, this.basePath));
|
|
1351
1712
|
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Same as `deleteAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1715
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1716
|
+
* @param {DealsApiDeleteAdditionalDiscountRequest} requestParameters Request parameters.
|
|
1717
|
+
|
|
1718
|
+
* @throws {RequiredError}
|
|
1719
|
+
* @memberof DealsApi
|
|
1720
|
+
*/
|
|
1721
|
+
deleteAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1722
|
+
return DealsApiFp(this.configuration).deleteAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id).then((request) => request(this.axios, this.basePath));
|
|
1723
|
+
}
|
|
1352
1724
|
/**
|
|
1353
1725
|
* Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
|
|
1354
1726
|
* @summary Delete a deal
|
|
@@ -1360,6 +1732,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1360
1732
|
deleteDeal(requestParameters) {
|
|
1361
1733
|
return DealsApiFp(this.configuration).deleteDeal(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1362
1734
|
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Same as `deleteDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1737
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1738
|
+
* @param {DealsApiDeleteDealRequest} requestParameters Request parameters.
|
|
1739
|
+
|
|
1740
|
+
* @throws {RequiredError}
|
|
1741
|
+
* @memberof DealsApi
|
|
1742
|
+
*/
|
|
1743
|
+
deleteDealWithHttpInfo(requestParameters) {
|
|
1744
|
+
return DealsApiFp(this.configuration).deleteDealWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1745
|
+
}
|
|
1363
1746
|
/**
|
|
1364
1747
|
* Deletes a user follower from the deal.
|
|
1365
1748
|
* @summary Delete a follower from a deal
|
|
@@ -1371,6 +1754,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1371
1754
|
deleteDealFollower(requestParameters) {
|
|
1372
1755
|
return DealsApiFp(this.configuration).deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1373
1756
|
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Same as `deleteDealFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1759
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1760
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
|
1761
|
+
|
|
1762
|
+
* @throws {RequiredError}
|
|
1763
|
+
* @memberof DealsApi
|
|
1764
|
+
*/
|
|
1765
|
+
deleteDealFollowerWithHttpInfo(requestParameters) {
|
|
1766
|
+
return DealsApiFp(this.configuration).deleteDealFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1767
|
+
}
|
|
1374
1768
|
/**
|
|
1375
1769
|
* Lists discounts attached to a deal.
|
|
1376
1770
|
* @summary List discounts added to a deal
|
|
@@ -1382,6 +1776,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1382
1776
|
getAdditionalDiscounts(requestParameters) {
|
|
1383
1777
|
return DealsApiFp(this.configuration).getAdditionalDiscounts(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1384
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Same as `getAdditionalDiscounts`, but resolves with the response body together with the HTTP status and headers.
|
|
1781
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1782
|
+
* @param {DealsApiGetAdditionalDiscountsRequest} requestParameters Request parameters.
|
|
1783
|
+
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
* @memberof DealsApi
|
|
1786
|
+
*/
|
|
1787
|
+
getAdditionalDiscountsWithHttpInfo(requestParameters) {
|
|
1788
|
+
return DealsApiFp(this.configuration).getAdditionalDiscountsWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1789
|
+
}
|
|
1385
1790
|
/**
|
|
1386
1791
|
* Returns data about all archived deals.
|
|
1387
1792
|
* @summary Get all archived deals
|
|
@@ -1393,6 +1798,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1393
1798
|
getArchivedDeals(requestParameters = {}) {
|
|
1394
1799
|
return 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));
|
|
1395
1800
|
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Same as `getArchivedDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1803
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1804
|
+
* @param {DealsApiGetArchivedDealsRequest} requestParameters Request parameters.
|
|
1805
|
+
|
|
1806
|
+
* @throws {RequiredError}
|
|
1807
|
+
* @memberof DealsApi
|
|
1808
|
+
*/
|
|
1809
|
+
getArchivedDealsWithHttpInfo(requestParameters = {}) {
|
|
1810
|
+
return 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));
|
|
1811
|
+
}
|
|
1396
1812
|
/**
|
|
1397
1813
|
* Returns the details of a specific deal.
|
|
1398
1814
|
* @summary Get details of a deal
|
|
@@ -1404,6 +1820,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1404
1820
|
getDeal(requestParameters) {
|
|
1405
1821
|
return 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));
|
|
1406
1822
|
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Same as `getDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
1825
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1826
|
+
* @param {DealsApiGetDealRequest} requestParameters Request parameters.
|
|
1827
|
+
|
|
1828
|
+
* @throws {RequiredError}
|
|
1829
|
+
* @memberof DealsApi
|
|
1830
|
+
*/
|
|
1831
|
+
getDealWithHttpInfo(requestParameters) {
|
|
1832
|
+
return 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));
|
|
1833
|
+
}
|
|
1407
1834
|
/**
|
|
1408
1835
|
* 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.
|
|
1409
1836
|
* @summary Get Deal conversion status
|
|
@@ -1415,6 +1842,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1415
1842
|
getDealConversionStatus(requestParameters) {
|
|
1416
1843
|
return DealsApiFp(this.configuration).getDealConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
|
1417
1844
|
}
|
|
1845
|
+
/**
|
|
1846
|
+
* Same as `getDealConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
1847
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1848
|
+
* @param {DealsApiGetDealConversionStatusRequest} requestParameters Request parameters.
|
|
1849
|
+
|
|
1850
|
+
* @throws {RequiredError}
|
|
1851
|
+
* @memberof DealsApi
|
|
1852
|
+
*/
|
|
1853
|
+
getDealConversionStatusWithHttpInfo(requestParameters) {
|
|
1854
|
+
return DealsApiFp(this.configuration).getDealConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
|
1855
|
+
}
|
|
1418
1856
|
/**
|
|
1419
1857
|
* Lists users who are following the deal.
|
|
1420
1858
|
* @summary List followers of a deal
|
|
@@ -1426,6 +1864,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1426
1864
|
getDealFollowers(requestParameters) {
|
|
1427
1865
|
return DealsApiFp(this.configuration).getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1428
1866
|
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Same as `getDealFollowers`, but resolves with the response body together with the HTTP status and headers.
|
|
1869
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1870
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
|
1871
|
+
|
|
1872
|
+
* @throws {RequiredError}
|
|
1873
|
+
* @memberof DealsApi
|
|
1874
|
+
*/
|
|
1875
|
+
getDealFollowersWithHttpInfo(requestParameters) {
|
|
1876
|
+
return DealsApiFp(this.configuration).getDealFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1877
|
+
}
|
|
1429
1878
|
/**
|
|
1430
1879
|
* Lists changelogs about users have followed the deal.
|
|
1431
1880
|
* @summary List followers changelog of a deal
|
|
@@ -1437,6 +1886,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1437
1886
|
getDealFollowersChangelog(requestParameters) {
|
|
1438
1887
|
return DealsApiFp(this.configuration).getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1439
1888
|
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Same as `getDealFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
|
|
1891
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1892
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
|
1893
|
+
|
|
1894
|
+
* @throws {RequiredError}
|
|
1895
|
+
* @memberof DealsApi
|
|
1896
|
+
*/
|
|
1897
|
+
getDealFollowersChangelogWithHttpInfo(requestParameters) {
|
|
1898
|
+
return DealsApiFp(this.configuration).getDealFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1899
|
+
}
|
|
1440
1900
|
/**
|
|
1441
1901
|
* Returns data about all not archived deals.
|
|
1442
1902
|
* @summary Get all deals
|
|
@@ -1448,6 +1908,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1448
1908
|
getDeals(requestParameters = {}) {
|
|
1449
1909
|
return 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));
|
|
1450
1910
|
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Same as `getDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1913
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1914
|
+
* @param {DealsApiGetDealsRequest} requestParameters Request parameters.
|
|
1915
|
+
|
|
1916
|
+
* @throws {RequiredError}
|
|
1917
|
+
* @memberof DealsApi
|
|
1918
|
+
*/
|
|
1919
|
+
getDealsWithHttpInfo(requestParameters = {}) {
|
|
1920
|
+
return 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));
|
|
1921
|
+
}
|
|
1451
1922
|
/**
|
|
1452
1923
|
* Adds a discount to a deal, changing the deal value if the deal has one-time products attached.
|
|
1453
1924
|
* @summary Add a discount to a deal
|
|
@@ -1459,6 +1930,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1459
1930
|
postAdditionalDiscount(requestParameters) {
|
|
1460
1931
|
return DealsApiFp(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1461
1932
|
}
|
|
1933
|
+
/**
|
|
1934
|
+
* Same as `postAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1935
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1936
|
+
* @param {DealsApiPostAdditionalDiscountRequest} requestParameters Request parameters.
|
|
1937
|
+
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
* @memberof DealsApi
|
|
1940
|
+
*/
|
|
1941
|
+
postAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1942
|
+
return DealsApiFp(this.configuration).postAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1943
|
+
}
|
|
1462
1944
|
/**
|
|
1463
1945
|
* 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.
|
|
1464
1946
|
* @summary Search deals
|
|
@@ -1470,6 +1952,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1470
1952
|
searchDeals(requestParameters) {
|
|
1471
1953
|
return 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));
|
|
1472
1954
|
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Same as `searchDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
1957
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1958
|
+
* @param {DealsApiSearchDealsRequest} requestParameters Request parameters.
|
|
1959
|
+
|
|
1960
|
+
* @throws {RequiredError}
|
|
1961
|
+
* @memberof DealsApi
|
|
1962
|
+
*/
|
|
1963
|
+
searchDealsWithHttpInfo(requestParameters) {
|
|
1964
|
+
return 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));
|
|
1965
|
+
}
|
|
1473
1966
|
/**
|
|
1474
1967
|
* Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
|
|
1475
1968
|
* @summary Update a discount added to a deal
|
|
@@ -1481,6 +1974,17 @@ export class DealsApi extends BaseAPI {
|
|
|
1481
1974
|
updateAdditionalDiscount(requestParameters) {
|
|
1482
1975
|
return DealsApiFp(this.configuration).updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1483
1976
|
}
|
|
1977
|
+
/**
|
|
1978
|
+
* Same as `updateAdditionalDiscount`, but resolves with the response body together with the HTTP status and headers.
|
|
1979
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1980
|
+
* @param {DealsApiUpdateAdditionalDiscountRequest} requestParameters Request parameters.
|
|
1981
|
+
|
|
1982
|
+
* @throws {RequiredError}
|
|
1983
|
+
* @memberof DealsApi
|
|
1984
|
+
*/
|
|
1985
|
+
updateAdditionalDiscountWithHttpInfo(requestParameters) {
|
|
1986
|
+
return DealsApiFp(this.configuration).updateAdditionalDiscountWithHttpInfo(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
|
1987
|
+
}
|
|
1484
1988
|
/**
|
|
1485
1989
|
* Updates the properties of a deal.
|
|
1486
1990
|
* @summary Update a deal
|
|
@@ -1492,4 +1996,15 @@ export class DealsApi extends BaseAPI {
|
|
|
1492
1996
|
updateDeal(requestParameters) {
|
|
1493
1997
|
return DealsApiFp(this.configuration).updateDeal(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(this.axios, this.basePath));
|
|
1494
1998
|
}
|
|
1999
|
+
/**
|
|
2000
|
+
* Same as `updateDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
2001
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
2002
|
+
* @param {DealsApiUpdateDealRequest} requestParameters Request parameters.
|
|
2003
|
+
|
|
2004
|
+
* @throws {RequiredError}
|
|
2005
|
+
* @memberof DealsApi
|
|
2006
|
+
*/
|
|
2007
|
+
updateDealWithHttpInfo(requestParameters) {
|
|
2008
|
+
return DealsApiFp(this.configuration).updateDealWithHttpInfo(requestParameters.id, requestParameters.UpdateDealRequest).then((request) => request(this.axios, this.basePath));
|
|
2009
|
+
}
|
|
1495
2010
|
}
|