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
|
@@ -151,6 +151,19 @@ export const WebhooksApiFp = function (configuration) {
|
|
|
151
151
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
152
152
|
});
|
|
153
153
|
},
|
|
154
|
+
/**
|
|
155
|
+
* Same as `addWebhook`, but resolves with the response body together with the HTTP status and headers.
|
|
156
|
+
* @summary Create a new Webhook
|
|
157
|
+
* @param {AddWebhookRequest} [AddWebhookRequest]
|
|
158
|
+
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
addWebhookWithHttpInfo(AddWebhookRequest) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addWebhook(AddWebhookRequest);
|
|
164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
165
|
+
});
|
|
166
|
+
},
|
|
154
167
|
/**
|
|
155
168
|
* Deletes the specified Webhook.
|
|
156
169
|
* @summary Delete existing Webhook
|
|
@@ -164,6 +177,19 @@ export const WebhooksApiFp = function (configuration) {
|
|
|
164
177
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
165
178
|
});
|
|
166
179
|
},
|
|
180
|
+
/**
|
|
181
|
+
* Same as `deleteWebhook`, but resolves with the response body together with the HTTP status and headers.
|
|
182
|
+
* @summary Delete existing Webhook
|
|
183
|
+
* @param {number} id The ID of the Webhook to delete
|
|
184
|
+
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
deleteWebhookWithHttpInfo(id) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebhook(id);
|
|
190
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
191
|
+
});
|
|
192
|
+
},
|
|
167
193
|
/**
|
|
168
194
|
* Returns data about all the Webhooks of a company.
|
|
169
195
|
* @summary Get all Webhooks
|
|
@@ -176,6 +202,18 @@ export const WebhooksApiFp = function (configuration) {
|
|
|
176
202
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
177
203
|
});
|
|
178
204
|
},
|
|
205
|
+
/**
|
|
206
|
+
* Same as `getWebhooks`, but resolves with the response body together with the HTTP status and headers.
|
|
207
|
+
* @summary Get all Webhooks
|
|
208
|
+
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
getWebhooksWithHttpInfo() {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebhooks();
|
|
214
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
215
|
+
});
|
|
216
|
+
},
|
|
179
217
|
};
|
|
180
218
|
};
|
|
181
219
|
/**
|
|
@@ -195,6 +233,9 @@ export const WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
195
233
|
addWebhook(requestParameters = {}) {
|
|
196
234
|
return localVarFp.addWebhook(requestParameters.AddWebhookRequest).then((request) => request(axios, basePath));
|
|
197
235
|
},
|
|
236
|
+
addWebhookWithHttpInfo(requestParameters = {}) {
|
|
237
|
+
return localVarFp.addWebhookWithHttpInfo(requestParameters.AddWebhookRequest).then((request) => request(axios, basePath));
|
|
238
|
+
},
|
|
198
239
|
/**
|
|
199
240
|
* Deletes the specified Webhook.
|
|
200
241
|
* @summary Delete existing Webhook
|
|
@@ -205,6 +246,9 @@ export const WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
205
246
|
deleteWebhook(requestParameters) {
|
|
206
247
|
return localVarFp.deleteWebhook(requestParameters.id).then((request) => request(axios, basePath));
|
|
207
248
|
},
|
|
249
|
+
deleteWebhookWithHttpInfo(requestParameters) {
|
|
250
|
+
return localVarFp.deleteWebhookWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
251
|
+
},
|
|
208
252
|
/**
|
|
209
253
|
* Returns data about all the Webhooks of a company.
|
|
210
254
|
* @summary Get all Webhooks
|
|
@@ -214,6 +258,9 @@ export const WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
214
258
|
getWebhooks() {
|
|
215
259
|
return localVarFp.getWebhooks().then((request) => request(axios, basePath));
|
|
216
260
|
},
|
|
261
|
+
getWebhooksWithHttpInfo() {
|
|
262
|
+
return localVarFp.getWebhooksWithHttpInfo().then((request) => request(axios, basePath));
|
|
263
|
+
},
|
|
217
264
|
};
|
|
218
265
|
};
|
|
219
266
|
/**
|
|
@@ -234,6 +281,17 @@ export class WebhooksApi extends BaseAPI {
|
|
|
234
281
|
addWebhook(requestParameters = {}) {
|
|
235
282
|
return WebhooksApiFp(this.configuration).addWebhook(requestParameters.AddWebhookRequest).then((request) => request(this.axios, this.basePath));
|
|
236
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Same as `addWebhook`, but resolves with the response body together with the HTTP status and headers.
|
|
286
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
287
|
+
* @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters.
|
|
288
|
+
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
* @memberof WebhooksApi
|
|
291
|
+
*/
|
|
292
|
+
addWebhookWithHttpInfo(requestParameters = {}) {
|
|
293
|
+
return WebhooksApiFp(this.configuration).addWebhookWithHttpInfo(requestParameters.AddWebhookRequest).then((request) => request(this.axios, this.basePath));
|
|
294
|
+
}
|
|
237
295
|
/**
|
|
238
296
|
* Deletes the specified Webhook.
|
|
239
297
|
* @summary Delete existing Webhook
|
|
@@ -245,6 +303,17 @@ export class WebhooksApi extends BaseAPI {
|
|
|
245
303
|
deleteWebhook(requestParameters) {
|
|
246
304
|
return WebhooksApiFp(this.configuration).deleteWebhook(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
247
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Same as `deleteWebhook`, but resolves with the response body together with the HTTP status and headers.
|
|
308
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
309
|
+
* @param {WebhooksApiDeleteWebhookRequest} requestParameters Request parameters.
|
|
310
|
+
|
|
311
|
+
* @throws {RequiredError}
|
|
312
|
+
* @memberof WebhooksApi
|
|
313
|
+
*/
|
|
314
|
+
deleteWebhookWithHttpInfo(requestParameters) {
|
|
315
|
+
return WebhooksApiFp(this.configuration).deleteWebhookWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
316
|
+
}
|
|
248
317
|
/**
|
|
249
318
|
* Returns data about all the Webhooks of a company.
|
|
250
319
|
* @summary Get all Webhooks
|
|
@@ -255,4 +324,14 @@ export class WebhooksApi extends BaseAPI {
|
|
|
255
324
|
getWebhooks() {
|
|
256
325
|
return WebhooksApiFp(this.configuration).getWebhooks().then((request) => request(this.axios, this.basePath));
|
|
257
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Same as `getWebhooks`, but resolves with the response body together with the HTTP status and headers.
|
|
329
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
330
|
+
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
* @memberof WebhooksApi
|
|
333
|
+
*/
|
|
334
|
+
getWebhooksWithHttpInfo() {
|
|
335
|
+
return WebhooksApiFp(this.configuration).getWebhooksWithHttpInfo().then((request) => request(this.axios, this.basePath));
|
|
336
|
+
}
|
|
258
337
|
}
|
|
@@ -32,7 +32,24 @@ export interface RequestArgs {
|
|
|
32
32
|
options: AxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
export declare const versionInterceptor: (config: InternalAxiosRequestConfig) => Promise<InternalAxiosRequestConfig<any>>;
|
|
35
|
+
/**
|
|
36
|
+
* Response returned by the `*WithHttpInfo` methods: the parsed body together with the HTTP metadata.
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
* @interface ApiResponse
|
|
40
|
+
*/
|
|
41
|
+
export interface ApiResponse<T> {
|
|
42
|
+
data: T;
|
|
43
|
+
status: number;
|
|
44
|
+
headers: AxiosResponse['headers'];
|
|
45
|
+
}
|
|
35
46
|
export declare const responseInterceptor: (response: AxiosResponse) => any;
|
|
47
|
+
/**
|
|
48
|
+
* Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
|
|
49
|
+
* plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
|
|
50
|
+
* were already normalized, are returned unchanged.
|
|
51
|
+
*/
|
|
52
|
+
export declare const toFullResponseError: (error: any) => any;
|
|
36
53
|
export declare const errorInterceptor: (error: AxiosError) => Promise<never>;
|
|
37
54
|
/**
|
|
38
55
|
*
|
|
@@ -38,10 +38,32 @@ export const versionInterceptor = (config) => __awaiter(void 0, void 0, void 0,
|
|
|
38
38
|
config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${_pkg.version}`;
|
|
39
39
|
return config;
|
|
40
40
|
});
|
|
41
|
+
// Set by the `*WithHttpInfo` methods to keep status and headers instead of returning only the body.
|
|
42
|
+
const wantsFullResponse = (config) => !!(config === null || config === void 0 ? void 0 : config.fullResponse);
|
|
41
43
|
export const responseInterceptor = (response) => {
|
|
44
|
+
if (wantsFullResponse(response === null || response === void 0 ? void 0 : response.config)) {
|
|
45
|
+
return { data: response.data, status: response.status, headers: response.headers };
|
|
46
|
+
}
|
|
42
47
|
return (response === null || response === void 0 ? void 0 : response.data) ? response.data : response;
|
|
43
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Turns a raw AxiosError into the rejection used by the `*WithHttpInfo` methods: the error body fields (if any)
|
|
51
|
+
* plus `$response: { status, headers }`. Values that are not AxiosErrors with a response, including errors that
|
|
52
|
+
* were already normalized, are returned unchanged.
|
|
53
|
+
*/
|
|
54
|
+
export const toFullResponseError = (error) => {
|
|
55
|
+
if (!(error === null || error === void 0 ? void 0 : error.isAxiosError) || !error.response) {
|
|
56
|
+
return error;
|
|
57
|
+
}
|
|
58
|
+
const { data, status, headers } = error.response;
|
|
59
|
+
const body = data && typeof data === 'object' ? data : data ? { data } : {};
|
|
60
|
+
return Object.assign(Object.assign({}, body), { $response: { status, headers } });
|
|
61
|
+
};
|
|
44
62
|
export const errorInterceptor = (error) => {
|
|
63
|
+
if (error.response && wantsFullResponse(error.config)) {
|
|
64
|
+
// Applies to empty error bodies too, so headers such as Retry-After are not lost.
|
|
65
|
+
return Promise.reject(toFullResponseError(error));
|
|
66
|
+
}
|
|
45
67
|
if (error.response && error.response.data) {
|
|
46
68
|
return Promise.reject(error.response.data);
|
|
47
69
|
}
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration, fullResponse?: boolean) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
import { RequiredError } from "./base";
|
|
23
|
+
import { RequiredError, toFullResponseError } from "./base";
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
@@ -138,11 +138,14 @@ export const toPathString = function (url) {
|
|
|
138
138
|
*
|
|
139
139
|
* @export
|
|
140
140
|
*/
|
|
141
|
-
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
141
|
+
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration, fullResponse = false) {
|
|
142
142
|
// Explicit return type + cast avoid inferring axios's internal AxiosResponseResult type,
|
|
143
143
|
// which references a module-private `unique symbol` and breaks `tsc --declaration` (TS2742).
|
|
144
144
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
146
|
-
|
|
145
|
+
const axiosRequestArgs = Object.assign(Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url }), (fullResponse ? { fullResponse } : {}));
|
|
146
|
+
const request = axios.request(axiosRequestArgs);
|
|
147
|
+
// Instances without the SDK's interceptors (e.g. the default global axios used by Fp and Factory calls)
|
|
148
|
+
// reject with a raw AxiosError, so give full-response errors the same shape as the class API.
|
|
149
|
+
return fullResponse ? request.catch((error) => Promise.reject(toFullResponseError(error))) : request;
|
|
147
150
|
};
|
|
148
151
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosInstance } from 'axios';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import { RequestArgs, BaseAPI, ApiResponse } from '../base';
|
|
15
15
|
import { AddActivityRequest } from '../models';
|
|
16
16
|
import { DeleteActivityResponse } from '../models';
|
|
17
17
|
import { GetActivitiesResponse } from '../models';
|
|
@@ -91,6 +91,14 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
93
|
addActivity(AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
|
|
94
|
+
/**
|
|
95
|
+
* Same as `addActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
96
|
+
* @summary Add a new activity
|
|
97
|
+
* @param {AddActivityRequest} [AddActivityRequest]
|
|
98
|
+
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
addActivityWithHttpInfo(AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertActivityResponse>>>;
|
|
94
102
|
/**
|
|
95
103
|
* Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
|
|
96
104
|
* @summary Delete an activity
|
|
@@ -99,6 +107,14 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
|
99
107
|
* @throws {RequiredError}
|
|
100
108
|
*/
|
|
101
109
|
deleteActivity(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteActivityResponse>>;
|
|
110
|
+
/**
|
|
111
|
+
* Same as `deleteActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
112
|
+
* @summary Delete an activity
|
|
113
|
+
* @param {number} id The ID of the activity
|
|
114
|
+
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
deleteActivityWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteActivityResponse>>>;
|
|
102
118
|
/**
|
|
103
119
|
* Returns data about all activities.
|
|
104
120
|
* @summary Get all activities
|
|
@@ -121,6 +137,28 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
|
121
137
|
* @throws {RequiredError}
|
|
122
138
|
*/
|
|
123
139
|
getActivities(filter_id?: number, ids?: Set<number>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetActivitiesResponse>>;
|
|
140
|
+
/**
|
|
141
|
+
* Same as `getActivities`, but resolves with the response body together with the HTTP status and headers.
|
|
142
|
+
* @summary Get all activities
|
|
143
|
+
* @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
|
|
144
|
+
* @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.
|
|
145
|
+
* @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
|
|
146
|
+
* @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
|
147
|
+
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
|
148
|
+
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
|
149
|
+
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
|
150
|
+
* @param {boolean} [done] If supplied, only activities with specified \'done\' flag value are returned
|
|
151
|
+
* @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
152
|
+
* @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
153
|
+
* @param {'id' | 'update_time' | 'add_time' | 'due_date'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`.
|
|
154
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
155
|
+
* @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
|
|
156
|
+
* @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.
|
|
157
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
158
|
+
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
getActivitiesWithHttpInfo(filter_id?: number, ids?: Set<number>, owner_id?: number, deal_id?: number, lead_id?: string, person_id?: number, org_id?: number, done?: boolean, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time' | 'due_date', sort_direction?: 'asc' | 'desc', include_fields?: Set<'attendees'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetActivitiesResponse>>>;
|
|
124
162
|
/**
|
|
125
163
|
* Returns the details of a specific activity.
|
|
126
164
|
* @summary Get details of an activity
|
|
@@ -130,6 +168,15 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
|
130
168
|
* @throws {RequiredError}
|
|
131
169
|
*/
|
|
132
170
|
getActivity(id: number, include_fields?: Set<'attendees'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
|
|
171
|
+
/**
|
|
172
|
+
* Same as `getActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
173
|
+
* @summary Get details of an activity
|
|
174
|
+
* @param {number} id The ID of the activity
|
|
175
|
+
* @param {Set<'attendees'>} [include_fields] Optional comma separated string array of additional fields to include
|
|
176
|
+
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
getActivityWithHttpInfo(id: number, include_fields?: Set<'attendees'>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertActivityResponse>>>;
|
|
133
180
|
/**
|
|
134
181
|
* Updates the properties of an activity.
|
|
135
182
|
* @summary Update an activity
|
|
@@ -139,6 +186,15 @@ export declare const ActivitiesApiFp: (configuration?: Configuration) => {
|
|
|
139
186
|
* @throws {RequiredError}
|
|
140
187
|
*/
|
|
141
188
|
updateActivity(id: number, AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertActivityResponse>>;
|
|
189
|
+
/**
|
|
190
|
+
* Same as `updateActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
191
|
+
* @summary Update an activity
|
|
192
|
+
* @param {number} id The ID of the activity
|
|
193
|
+
* @param {AddActivityRequest} [AddActivityRequest]
|
|
194
|
+
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
updateActivityWithHttpInfo(id: number, AddActivityRequest?: AddActivityRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertActivityResponse>>>;
|
|
142
198
|
};
|
|
143
199
|
/**
|
|
144
200
|
* ActivitiesApi - factory interface
|
|
@@ -153,6 +209,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
|
|
|
153
209
|
* @throws {RequiredError}
|
|
154
210
|
*/
|
|
155
211
|
addActivity(requestParameters?: ActivitiesApiAddActivityRequest): Promise<UpsertActivityResponse>;
|
|
212
|
+
addActivityWithHttpInfo(requestParameters?: ActivitiesApiAddActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
|
|
156
213
|
/**
|
|
157
214
|
* Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
|
|
158
215
|
* @summary Delete an activity
|
|
@@ -161,6 +218,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
|
|
|
161
218
|
* @throws {RequiredError}
|
|
162
219
|
*/
|
|
163
220
|
deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<DeleteActivityResponse>;
|
|
221
|
+
deleteActivityWithHttpInfo(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<ApiResponse<DeleteActivityResponse>>;
|
|
164
222
|
/**
|
|
165
223
|
* Returns data about all activities.
|
|
166
224
|
* @summary Get all activities
|
|
@@ -169,6 +227,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
|
|
|
169
227
|
* @throws {RequiredError}
|
|
170
228
|
*/
|
|
171
229
|
getActivities(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<GetActivitiesResponse>;
|
|
230
|
+
getActivitiesWithHttpInfo(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<ApiResponse<GetActivitiesResponse>>;
|
|
172
231
|
/**
|
|
173
232
|
* Returns the details of a specific activity.
|
|
174
233
|
* @summary Get details of an activity
|
|
@@ -177,6 +236,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
|
|
|
177
236
|
* @throws {RequiredError}
|
|
178
237
|
*/
|
|
179
238
|
getActivity(requestParameters: ActivitiesApiGetActivityRequest): Promise<UpsertActivityResponse>;
|
|
239
|
+
getActivityWithHttpInfo(requestParameters: ActivitiesApiGetActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
|
|
180
240
|
/**
|
|
181
241
|
* Updates the properties of an activity.
|
|
182
242
|
* @summary Update an activity
|
|
@@ -185,6 +245,7 @@ export declare const ActivitiesApiFactory: (configuration?: Configuration, baseP
|
|
|
185
245
|
* @throws {RequiredError}
|
|
186
246
|
*/
|
|
187
247
|
updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<UpsertActivityResponse>;
|
|
248
|
+
updateActivityWithHttpInfo(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
|
|
188
249
|
};
|
|
189
250
|
/**
|
|
190
251
|
* Request parameters for addActivity operation in ActivitiesApi.
|
|
@@ -363,6 +424,15 @@ export declare class ActivitiesApi extends BaseAPI {
|
|
|
363
424
|
* @memberof ActivitiesApi
|
|
364
425
|
*/
|
|
365
426
|
addActivity(requestParameters?: ActivitiesApiAddActivityRequest): Promise<UpsertActivityResponse>;
|
|
427
|
+
/**
|
|
428
|
+
* Same as `addActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
429
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
430
|
+
* @param {ActivitiesApiAddActivityRequest} requestParameters Request parameters.
|
|
431
|
+
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
* @memberof ActivitiesApi
|
|
434
|
+
*/
|
|
435
|
+
addActivityWithHttpInfo(requestParameters?: ActivitiesApiAddActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
|
|
366
436
|
/**
|
|
367
437
|
* Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
|
|
368
438
|
* @summary Delete an activity
|
|
@@ -372,6 +442,15 @@ export declare class ActivitiesApi extends BaseAPI {
|
|
|
372
442
|
* @memberof ActivitiesApi
|
|
373
443
|
*/
|
|
374
444
|
deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<DeleteActivityResponse>;
|
|
445
|
+
/**
|
|
446
|
+
* Same as `deleteActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
447
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
448
|
+
* @param {ActivitiesApiDeleteActivityRequest} requestParameters Request parameters.
|
|
449
|
+
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
* @memberof ActivitiesApi
|
|
452
|
+
*/
|
|
453
|
+
deleteActivityWithHttpInfo(requestParameters: ActivitiesApiDeleteActivityRequest): Promise<ApiResponse<DeleteActivityResponse>>;
|
|
375
454
|
/**
|
|
376
455
|
* Returns data about all activities.
|
|
377
456
|
* @summary Get all activities
|
|
@@ -381,6 +460,15 @@ export declare class ActivitiesApi extends BaseAPI {
|
|
|
381
460
|
* @memberof ActivitiesApi
|
|
382
461
|
*/
|
|
383
462
|
getActivities(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<GetActivitiesResponse>;
|
|
463
|
+
/**
|
|
464
|
+
* Same as `getActivities`, but resolves with the response body together with the HTTP status and headers.
|
|
465
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
466
|
+
* @param {ActivitiesApiGetActivitiesRequest} requestParameters Request parameters.
|
|
467
|
+
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
* @memberof ActivitiesApi
|
|
470
|
+
*/
|
|
471
|
+
getActivitiesWithHttpInfo(requestParameters?: ActivitiesApiGetActivitiesRequest): Promise<ApiResponse<GetActivitiesResponse>>;
|
|
384
472
|
/**
|
|
385
473
|
* Returns the details of a specific activity.
|
|
386
474
|
* @summary Get details of an activity
|
|
@@ -390,6 +478,15 @@ export declare class ActivitiesApi extends BaseAPI {
|
|
|
390
478
|
* @memberof ActivitiesApi
|
|
391
479
|
*/
|
|
392
480
|
getActivity(requestParameters: ActivitiesApiGetActivityRequest): Promise<UpsertActivityResponse>;
|
|
481
|
+
/**
|
|
482
|
+
* Same as `getActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
483
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
484
|
+
* @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters.
|
|
485
|
+
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
* @memberof ActivitiesApi
|
|
488
|
+
*/
|
|
489
|
+
getActivityWithHttpInfo(requestParameters: ActivitiesApiGetActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
|
|
393
490
|
/**
|
|
394
491
|
* Updates the properties of an activity.
|
|
395
492
|
* @summary Update an activity
|
|
@@ -399,4 +496,13 @@ export declare class ActivitiesApi extends BaseAPI {
|
|
|
399
496
|
* @memberof ActivitiesApi
|
|
400
497
|
*/
|
|
401
498
|
updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<UpsertActivityResponse>;
|
|
499
|
+
/**
|
|
500
|
+
* Same as `updateActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
501
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
502
|
+
* @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters.
|
|
503
|
+
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
* @memberof ActivitiesApi
|
|
506
|
+
*/
|
|
507
|
+
updateActivityWithHttpInfo(requestParameters: ActivitiesApiUpdateActivityRequest): Promise<ApiResponse<UpsertActivityResponse>>;
|
|
402
508
|
}
|