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
|
@@ -437,6 +437,26 @@ export const FilesApiFp = function (configuration) {
|
|
|
437
437
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
438
438
|
});
|
|
439
439
|
},
|
|
440
|
+
/**
|
|
441
|
+
* Same as `addFile`, but resolves with the response body together with the HTTP status and headers.
|
|
442
|
+
* @summary Add file
|
|
443
|
+
* @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries
|
|
444
|
+
* @param {number} [deal_id] The ID of the deal to associate file(s) with
|
|
445
|
+
* @param {number} [person_id] The ID of the person to associate file(s) with
|
|
446
|
+
* @param {number} [org_id] The ID of the organization to associate file(s) with
|
|
447
|
+
* @param {number} [product_id] The ID of the product to associate file(s) with
|
|
448
|
+
* @param {number} [activity_id] The ID of the activity to associate file(s) with
|
|
449
|
+
* @param {string} [lead_id] The ID of the lead to associate file(s) with
|
|
450
|
+
* @param {number} [project_id] The ID of the project to associate file(s) with
|
|
451
|
+
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
addFileWithHttpInfo(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id) {
|
|
455
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
456
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id);
|
|
457
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
458
|
+
});
|
|
459
|
+
},
|
|
440
460
|
/**
|
|
441
461
|
* Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
|
|
442
462
|
* @summary Create a remote file and link it to an item
|
|
@@ -454,6 +474,23 @@ export const FilesApiFp = function (configuration) {
|
|
|
454
474
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
455
475
|
});
|
|
456
476
|
},
|
|
477
|
+
/**
|
|
478
|
+
* Same as `addFileAndLinkIt`, but resolves with the response body together with the HTTP status and headers.
|
|
479
|
+
* @summary Create a remote file and link it to an item
|
|
480
|
+
* @param {string} file_type The file type
|
|
481
|
+
* @param {string} title The title of the file
|
|
482
|
+
* @param {string} item_type The item type
|
|
483
|
+
* @param {number} item_id The ID of the item to associate the file with
|
|
484
|
+
* @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment.
|
|
485
|
+
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
addFileAndLinkItWithHttpInfo(file_type, title, item_type, item_id, remote_location) {
|
|
489
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFileAndLinkIt(file_type, title, item_type, item_id, remote_location);
|
|
491
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
492
|
+
});
|
|
493
|
+
},
|
|
457
494
|
/**
|
|
458
495
|
* Marks a file as deleted. After 30 days, the file will be permanently deleted.
|
|
459
496
|
* @summary Delete a file
|
|
@@ -467,6 +504,19 @@ export const FilesApiFp = function (configuration) {
|
|
|
467
504
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
468
505
|
});
|
|
469
506
|
},
|
|
507
|
+
/**
|
|
508
|
+
* Same as `deleteFile`, but resolves with the response body together with the HTTP status and headers.
|
|
509
|
+
* @summary Delete a file
|
|
510
|
+
* @param {number} id The ID of the file
|
|
511
|
+
|
|
512
|
+
* @throws {RequiredError}
|
|
513
|
+
*/
|
|
514
|
+
deleteFileWithHttpInfo(id) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteFile(id);
|
|
517
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
518
|
+
});
|
|
519
|
+
},
|
|
470
520
|
/**
|
|
471
521
|
* Initializes a file download.
|
|
472
522
|
* @summary Download one file
|
|
@@ -480,6 +530,19 @@ export const FilesApiFp = function (configuration) {
|
|
|
480
530
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
481
531
|
});
|
|
482
532
|
},
|
|
533
|
+
/**
|
|
534
|
+
* Same as `downloadFile`, but resolves with the response body together with the HTTP status and headers.
|
|
535
|
+
* @summary Download one file
|
|
536
|
+
* @param {number} id The ID of the file
|
|
537
|
+
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
downloadFileWithHttpInfo(id) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadFile(id);
|
|
543
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
544
|
+
});
|
|
545
|
+
},
|
|
483
546
|
/**
|
|
484
547
|
* Returns data about a specific file.
|
|
485
548
|
* @summary Get one file
|
|
@@ -493,6 +556,19 @@ export const FilesApiFp = function (configuration) {
|
|
|
493
556
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
494
557
|
});
|
|
495
558
|
},
|
|
559
|
+
/**
|
|
560
|
+
* Same as `getFile`, but resolves with the response body together with the HTTP status and headers.
|
|
561
|
+
* @summary Get one file
|
|
562
|
+
* @param {number} id The ID of the file
|
|
563
|
+
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
getFileWithHttpInfo(id) {
|
|
567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
568
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFile(id);
|
|
569
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
570
|
+
});
|
|
571
|
+
},
|
|
496
572
|
/**
|
|
497
573
|
* Returns data about all files.
|
|
498
574
|
* @summary Get all files
|
|
@@ -508,6 +584,21 @@ export const FilesApiFp = function (configuration) {
|
|
|
508
584
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
509
585
|
});
|
|
510
586
|
},
|
|
587
|
+
/**
|
|
588
|
+
* Same as `getFiles`, but resolves with the response body together with the HTTP status and headers.
|
|
589
|
+
* @summary Get all files
|
|
590
|
+
* @param {number} [start] Pagination start
|
|
591
|
+
* @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed.
|
|
592
|
+
* @param {string} [sort] Supported fields: `id`, `update_time`
|
|
593
|
+
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
getFilesWithHttpInfo(start, limit, sort) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
598
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFiles(start, limit, sort);
|
|
599
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
600
|
+
});
|
|
601
|
+
},
|
|
511
602
|
/**
|
|
512
603
|
* Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
|
|
513
604
|
* @summary Link a remote file to an item
|
|
@@ -524,6 +615,22 @@ export const FilesApiFp = function (configuration) {
|
|
|
524
615
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
525
616
|
});
|
|
526
617
|
},
|
|
618
|
+
/**
|
|
619
|
+
* Same as `linkFileToItem`, but resolves with the response body together with the HTTP status and headers.
|
|
620
|
+
* @summary Link a remote file to an item
|
|
621
|
+
* @param {string} item_type The item type
|
|
622
|
+
* @param {number} item_id The ID of the item to associate the file with
|
|
623
|
+
* @param {string} remote_id The remote item ID
|
|
624
|
+
* @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment.
|
|
625
|
+
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
linkFileToItemWithHttpInfo(item_type, item_id, remote_id, remote_location) {
|
|
629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
630
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.linkFileToItem(item_type, item_id, remote_id, remote_location);
|
|
631
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
632
|
+
});
|
|
633
|
+
},
|
|
527
634
|
/**
|
|
528
635
|
* Updates the properties of a file.
|
|
529
636
|
* @summary Update file details
|
|
@@ -539,6 +646,21 @@ export const FilesApiFp = function (configuration) {
|
|
|
539
646
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
540
647
|
});
|
|
541
648
|
},
|
|
649
|
+
/**
|
|
650
|
+
* Same as `updateFile`, but resolves with the response body together with the HTTP status and headers.
|
|
651
|
+
* @summary Update file details
|
|
652
|
+
* @param {number} id The ID of the file
|
|
653
|
+
* @param {string} [name] The visible name of the file
|
|
654
|
+
* @param {string} [description] The description of the file
|
|
655
|
+
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
updateFileWithHttpInfo(id, name, description) {
|
|
659
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
660
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFile(id, name, description);
|
|
661
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
662
|
+
});
|
|
663
|
+
},
|
|
542
664
|
};
|
|
543
665
|
};
|
|
544
666
|
/**
|
|
@@ -558,6 +680,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
558
680
|
addFile(requestParameters) {
|
|
559
681
|
return localVarFp.addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, requestParameters.project_id).then((request) => request(axios, basePath));
|
|
560
682
|
},
|
|
683
|
+
addFileWithHttpInfo(requestParameters) {
|
|
684
|
+
return localVarFp.addFileWithHttpInfo(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, requestParameters.project_id).then((request) => request(axios, basePath));
|
|
685
|
+
},
|
|
561
686
|
/**
|
|
562
687
|
* Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
|
|
563
688
|
* @summary Create a remote file and link it to an item
|
|
@@ -568,6 +693,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
568
693
|
addFileAndLinkIt(requestParameters) {
|
|
569
694
|
return localVarFp.addFileAndLinkIt(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
570
695
|
},
|
|
696
|
+
addFileAndLinkItWithHttpInfo(requestParameters) {
|
|
697
|
+
return localVarFp.addFileAndLinkItWithHttpInfo(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
698
|
+
},
|
|
571
699
|
/**
|
|
572
700
|
* Marks a file as deleted. After 30 days, the file will be permanently deleted.
|
|
573
701
|
* @summary Delete a file
|
|
@@ -578,6 +706,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
578
706
|
deleteFile(requestParameters) {
|
|
579
707
|
return localVarFp.deleteFile(requestParameters.id).then((request) => request(axios, basePath));
|
|
580
708
|
},
|
|
709
|
+
deleteFileWithHttpInfo(requestParameters) {
|
|
710
|
+
return localVarFp.deleteFileWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
711
|
+
},
|
|
581
712
|
/**
|
|
582
713
|
* Initializes a file download.
|
|
583
714
|
* @summary Download one file
|
|
@@ -588,6 +719,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
588
719
|
downloadFile(requestParameters) {
|
|
589
720
|
return localVarFp.downloadFile(requestParameters.id).then((request) => request(axios, basePath));
|
|
590
721
|
},
|
|
722
|
+
downloadFileWithHttpInfo(requestParameters) {
|
|
723
|
+
return localVarFp.downloadFileWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
724
|
+
},
|
|
591
725
|
/**
|
|
592
726
|
* Returns data about a specific file.
|
|
593
727
|
* @summary Get one file
|
|
@@ -598,6 +732,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
598
732
|
getFile(requestParameters) {
|
|
599
733
|
return localVarFp.getFile(requestParameters.id).then((request) => request(axios, basePath));
|
|
600
734
|
},
|
|
735
|
+
getFileWithHttpInfo(requestParameters) {
|
|
736
|
+
return localVarFp.getFileWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
737
|
+
},
|
|
601
738
|
/**
|
|
602
739
|
* Returns data about all files.
|
|
603
740
|
* @summary Get all files
|
|
@@ -608,6 +745,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
608
745
|
getFiles(requestParameters = {}) {
|
|
609
746
|
return localVarFp.getFiles(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
|
|
610
747
|
},
|
|
748
|
+
getFilesWithHttpInfo(requestParameters = {}) {
|
|
749
|
+
return localVarFp.getFilesWithHttpInfo(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
|
|
750
|
+
},
|
|
611
751
|
/**
|
|
612
752
|
* Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
|
|
613
753
|
* @summary Link a remote file to an item
|
|
@@ -618,6 +758,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
618
758
|
linkFileToItem(requestParameters) {
|
|
619
759
|
return localVarFp.linkFileToItem(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
620
760
|
},
|
|
761
|
+
linkFileToItemWithHttpInfo(requestParameters) {
|
|
762
|
+
return localVarFp.linkFileToItemWithHttpInfo(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
763
|
+
},
|
|
621
764
|
/**
|
|
622
765
|
* Updates the properties of a file.
|
|
623
766
|
* @summary Update file details
|
|
@@ -628,6 +771,9 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
628
771
|
updateFile(requestParameters) {
|
|
629
772
|
return localVarFp.updateFile(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(axios, basePath));
|
|
630
773
|
},
|
|
774
|
+
updateFileWithHttpInfo(requestParameters) {
|
|
775
|
+
return localVarFp.updateFileWithHttpInfo(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(axios, basePath));
|
|
776
|
+
},
|
|
631
777
|
};
|
|
632
778
|
};
|
|
633
779
|
/**
|
|
@@ -648,6 +794,17 @@ export class FilesApi extends BaseAPI {
|
|
|
648
794
|
addFile(requestParameters) {
|
|
649
795
|
return FilesApiFp(this.configuration).addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, requestParameters.project_id).then((request) => request(this.axios, this.basePath));
|
|
650
796
|
}
|
|
797
|
+
/**
|
|
798
|
+
* Same as `addFile`, but resolves with the response body together with the HTTP status and headers.
|
|
799
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
800
|
+
* @param {FilesApiAddFileRequest} requestParameters Request parameters.
|
|
801
|
+
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
* @memberof FilesApi
|
|
804
|
+
*/
|
|
805
|
+
addFileWithHttpInfo(requestParameters) {
|
|
806
|
+
return FilesApiFp(this.configuration).addFileWithHttpInfo(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, requestParameters.project_id).then((request) => request(this.axios, this.basePath));
|
|
807
|
+
}
|
|
651
808
|
/**
|
|
652
809
|
* Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
|
|
653
810
|
* @summary Create a remote file and link it to an item
|
|
@@ -659,6 +816,17 @@ export class FilesApi extends BaseAPI {
|
|
|
659
816
|
addFileAndLinkIt(requestParameters) {
|
|
660
817
|
return FilesApiFp(this.configuration).addFileAndLinkIt(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location).then((request) => request(this.axios, this.basePath));
|
|
661
818
|
}
|
|
819
|
+
/**
|
|
820
|
+
* Same as `addFileAndLinkIt`, but resolves with the response body together with the HTTP status and headers.
|
|
821
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
822
|
+
* @param {FilesApiAddFileAndLinkItRequest} requestParameters Request parameters.
|
|
823
|
+
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
* @memberof FilesApi
|
|
826
|
+
*/
|
|
827
|
+
addFileAndLinkItWithHttpInfo(requestParameters) {
|
|
828
|
+
return FilesApiFp(this.configuration).addFileAndLinkItWithHttpInfo(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location).then((request) => request(this.axios, this.basePath));
|
|
829
|
+
}
|
|
662
830
|
/**
|
|
663
831
|
* Marks a file as deleted. After 30 days, the file will be permanently deleted.
|
|
664
832
|
* @summary Delete a file
|
|
@@ -670,6 +838,17 @@ export class FilesApi extends BaseAPI {
|
|
|
670
838
|
deleteFile(requestParameters) {
|
|
671
839
|
return FilesApiFp(this.configuration).deleteFile(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
672
840
|
}
|
|
841
|
+
/**
|
|
842
|
+
* Same as `deleteFile`, but resolves with the response body together with the HTTP status and headers.
|
|
843
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
844
|
+
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
845
|
+
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
* @memberof FilesApi
|
|
848
|
+
*/
|
|
849
|
+
deleteFileWithHttpInfo(requestParameters) {
|
|
850
|
+
return FilesApiFp(this.configuration).deleteFileWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
851
|
+
}
|
|
673
852
|
/**
|
|
674
853
|
* Initializes a file download.
|
|
675
854
|
* @summary Download one file
|
|
@@ -681,6 +860,17 @@ export class FilesApi extends BaseAPI {
|
|
|
681
860
|
downloadFile(requestParameters) {
|
|
682
861
|
return FilesApiFp(this.configuration).downloadFile(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
683
862
|
}
|
|
863
|
+
/**
|
|
864
|
+
* Same as `downloadFile`, but resolves with the response body together with the HTTP status and headers.
|
|
865
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
866
|
+
* @param {FilesApiDownloadFileRequest} requestParameters Request parameters.
|
|
867
|
+
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
* @memberof FilesApi
|
|
870
|
+
*/
|
|
871
|
+
downloadFileWithHttpInfo(requestParameters) {
|
|
872
|
+
return FilesApiFp(this.configuration).downloadFileWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
873
|
+
}
|
|
684
874
|
/**
|
|
685
875
|
* Returns data about a specific file.
|
|
686
876
|
* @summary Get one file
|
|
@@ -692,6 +882,17 @@ export class FilesApi extends BaseAPI {
|
|
|
692
882
|
getFile(requestParameters) {
|
|
693
883
|
return FilesApiFp(this.configuration).getFile(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
694
884
|
}
|
|
885
|
+
/**
|
|
886
|
+
* Same as `getFile`, but resolves with the response body together with the HTTP status and headers.
|
|
887
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
888
|
+
* @param {FilesApiGetFileRequest} requestParameters Request parameters.
|
|
889
|
+
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
* @memberof FilesApi
|
|
892
|
+
*/
|
|
893
|
+
getFileWithHttpInfo(requestParameters) {
|
|
894
|
+
return FilesApiFp(this.configuration).getFileWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
895
|
+
}
|
|
695
896
|
/**
|
|
696
897
|
* Returns data about all files.
|
|
697
898
|
* @summary Get all files
|
|
@@ -703,6 +904,17 @@ export class FilesApi extends BaseAPI {
|
|
|
703
904
|
getFiles(requestParameters = {}) {
|
|
704
905
|
return FilesApiFp(this.configuration).getFiles(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
|
|
705
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* Same as `getFiles`, but resolves with the response body together with the HTTP status and headers.
|
|
909
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
910
|
+
* @param {FilesApiGetFilesRequest} requestParameters Request parameters.
|
|
911
|
+
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
* @memberof FilesApi
|
|
914
|
+
*/
|
|
915
|
+
getFilesWithHttpInfo(requestParameters = {}) {
|
|
916
|
+
return FilesApiFp(this.configuration).getFilesWithHttpInfo(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
|
|
917
|
+
}
|
|
706
918
|
/**
|
|
707
919
|
* Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>.
|
|
708
920
|
* @summary Link a remote file to an item
|
|
@@ -714,6 +926,17 @@ export class FilesApi extends BaseAPI {
|
|
|
714
926
|
linkFileToItem(requestParameters) {
|
|
715
927
|
return FilesApiFp(this.configuration).linkFileToItem(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(this.axios, this.basePath));
|
|
716
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* Same as `linkFileToItem`, but resolves with the response body together with the HTTP status and headers.
|
|
931
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
932
|
+
* @param {FilesApiLinkFileToItemRequest} requestParameters Request parameters.
|
|
933
|
+
|
|
934
|
+
* @throws {RequiredError}
|
|
935
|
+
* @memberof FilesApi
|
|
936
|
+
*/
|
|
937
|
+
linkFileToItemWithHttpInfo(requestParameters) {
|
|
938
|
+
return FilesApiFp(this.configuration).linkFileToItemWithHttpInfo(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(this.axios, this.basePath));
|
|
939
|
+
}
|
|
717
940
|
/**
|
|
718
941
|
* Updates the properties of a file.
|
|
719
942
|
* @summary Update file details
|
|
@@ -725,4 +948,15 @@ export class FilesApi extends BaseAPI {
|
|
|
725
948
|
updateFile(requestParameters) {
|
|
726
949
|
return FilesApiFp(this.configuration).updateFile(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(this.axios, this.basePath));
|
|
727
950
|
}
|
|
951
|
+
/**
|
|
952
|
+
* Same as `updateFile`, but resolves with the response body together with the HTTP status and headers.
|
|
953
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
954
|
+
* @param {FilesApiUpdateFileRequest} requestParameters Request parameters.
|
|
955
|
+
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
* @memberof FilesApi
|
|
958
|
+
*/
|
|
959
|
+
updateFileWithHttpInfo(requestParameters) {
|
|
960
|
+
return FilesApiFp(this.configuration).updateFileWithHttpInfo(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(this.axios, this.basePath));
|
|
961
|
+
}
|
|
728
962
|
}
|
|
@@ -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 { AddFilterRequest } from '../models';
|
|
16
16
|
import { AddFiltersResponse } from '../models';
|
|
17
17
|
import { DeleteFilterResponse } from '../models';
|
|
@@ -98,6 +98,15 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
100
|
addFilter(include_field_code?: boolean, AddFilterRequest?: AddFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFiltersResponse>>;
|
|
101
|
+
/**
|
|
102
|
+
* Same as `addFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
103
|
+
* @summary Add a new filter
|
|
104
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
105
|
+
* @param {AddFilterRequest} [AddFilterRequest]
|
|
106
|
+
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
addFilterWithHttpInfo(include_field_code?: boolean, AddFilterRequest?: AddFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<AddFiltersResponse>>>;
|
|
101
110
|
/**
|
|
102
111
|
* Marks a filter as deleted.
|
|
103
112
|
* @summary Delete a filter
|
|
@@ -106,6 +115,14 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
106
115
|
* @throws {RequiredError}
|
|
107
116
|
*/
|
|
108
117
|
deleteFilter(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFilterResponse>>;
|
|
118
|
+
/**
|
|
119
|
+
* Same as `deleteFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
120
|
+
* @summary Delete a filter
|
|
121
|
+
* @param {number} id The ID of the filter
|
|
122
|
+
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
deleteFilterWithHttpInfo(id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteFilterResponse>>>;
|
|
109
126
|
/**
|
|
110
127
|
* Marks multiple filters as deleted.
|
|
111
128
|
* @summary Delete multiple filters in bulk
|
|
@@ -114,6 +131,14 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
114
131
|
* @throws {RequiredError}
|
|
115
132
|
*/
|
|
116
133
|
deleteFilters(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteFiltersResponse>>;
|
|
134
|
+
/**
|
|
135
|
+
* Same as `deleteFilters`, but resolves with the response body together with the HTTP status and headers.
|
|
136
|
+
* @summary Delete multiple filters in bulk
|
|
137
|
+
* @param {Set<number>} ids The comma-separated filter IDs to delete
|
|
138
|
+
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
deleteFiltersWithHttpInfo(ids: Set<number>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteFiltersResponse>>>;
|
|
117
142
|
/**
|
|
118
143
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
119
144
|
* @summary Get one filter
|
|
@@ -123,6 +148,15 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
123
148
|
* @throws {RequiredError}
|
|
124
149
|
*/
|
|
125
150
|
getFilter(id: number, include_field_code?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFiltersResponse1>>;
|
|
151
|
+
/**
|
|
152
|
+
* Same as `getFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
153
|
+
* @summary Get one filter
|
|
154
|
+
* @param {number} id The ID of the filter
|
|
155
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
156
|
+
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
getFilterWithHttpInfo(id: number, include_field_code?: boolean): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFiltersResponse1>>>;
|
|
126
160
|
/**
|
|
127
161
|
* Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
128
162
|
* @summary Get all filter helpers
|
|
@@ -130,6 +164,13 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
130
164
|
* @throws {RequiredError}
|
|
131
165
|
*/
|
|
132
166
|
getFilterHelpers(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<object>>;
|
|
167
|
+
/**
|
|
168
|
+
* Same as `getFilterHelpers`, but resolves with the response body together with the HTTP status and headers.
|
|
169
|
+
* @summary Get all filter helpers
|
|
170
|
+
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
getFilterHelpersWithHttpInfo(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<object>>>;
|
|
133
174
|
/**
|
|
134
175
|
* Returns data about all filters.
|
|
135
176
|
* @summary Get all filters
|
|
@@ -138,6 +179,14 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
138
179
|
* @throws {RequiredError}
|
|
139
180
|
*/
|
|
140
181
|
getFilters(type?: 'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFiltersResponse>>;
|
|
182
|
+
/**
|
|
183
|
+
* Same as `getFilters`, but resolves with the response body together with the HTTP status and headers.
|
|
184
|
+
* @summary Get all filters
|
|
185
|
+
* @param {'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects'} [type] The types of filters to fetch
|
|
186
|
+
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
getFiltersWithHttpInfo(type?: 'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFiltersResponse>>>;
|
|
141
190
|
/**
|
|
142
191
|
* Updates an existing filter.
|
|
143
192
|
* @summary Update filter
|
|
@@ -148,6 +197,16 @@ export declare const FiltersApiFp: (configuration?: Configuration) => {
|
|
|
148
197
|
* @throws {RequiredError}
|
|
149
198
|
*/
|
|
150
199
|
updateFilter(id: number, include_field_code?: boolean, UpdateFilterRequest?: UpdateFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddFiltersResponse>>;
|
|
200
|
+
/**
|
|
201
|
+
* Same as `updateFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
202
|
+
* @summary Update filter
|
|
203
|
+
* @param {number} id The ID of the filter
|
|
204
|
+
* @param {boolean} [include_field_code] If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
|
|
205
|
+
* @param {UpdateFilterRequest} [UpdateFilterRequest]
|
|
206
|
+
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
updateFilterWithHttpInfo(id: number, include_field_code?: boolean, UpdateFilterRequest?: UpdateFilterRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<AddFiltersResponse>>>;
|
|
151
210
|
};
|
|
152
211
|
/**
|
|
153
212
|
* FiltersApi - factory interface
|
|
@@ -162,6 +221,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
162
221
|
* @throws {RequiredError}
|
|
163
222
|
*/
|
|
164
223
|
addFilter(requestParameters?: FiltersApiAddFilterRequest): Promise<AddFiltersResponse>;
|
|
224
|
+
addFilterWithHttpInfo(requestParameters?: FiltersApiAddFilterRequest): Promise<ApiResponse<AddFiltersResponse>>;
|
|
165
225
|
/**
|
|
166
226
|
* Marks a filter as deleted.
|
|
167
227
|
* @summary Delete a filter
|
|
@@ -170,6 +230,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
170
230
|
* @throws {RequiredError}
|
|
171
231
|
*/
|
|
172
232
|
deleteFilter(requestParameters: FiltersApiDeleteFilterRequest): Promise<DeleteFilterResponse>;
|
|
233
|
+
deleteFilterWithHttpInfo(requestParameters: FiltersApiDeleteFilterRequest): Promise<ApiResponse<DeleteFilterResponse>>;
|
|
173
234
|
/**
|
|
174
235
|
* Marks multiple filters as deleted.
|
|
175
236
|
* @summary Delete multiple filters in bulk
|
|
@@ -178,6 +239,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
178
239
|
* @throws {RequiredError}
|
|
179
240
|
*/
|
|
180
241
|
deleteFilters(requestParameters: FiltersApiDeleteFiltersRequest): Promise<DeleteFiltersResponse>;
|
|
242
|
+
deleteFiltersWithHttpInfo(requestParameters: FiltersApiDeleteFiltersRequest): Promise<ApiResponse<DeleteFiltersResponse>>;
|
|
181
243
|
/**
|
|
182
244
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
183
245
|
* @summary Get one filter
|
|
@@ -186,6 +248,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
186
248
|
* @throws {RequiredError}
|
|
187
249
|
*/
|
|
188
250
|
getFilter(requestParameters: FiltersApiGetFilterRequest): Promise<GetFiltersResponse1>;
|
|
251
|
+
getFilterWithHttpInfo(requestParameters: FiltersApiGetFilterRequest): Promise<ApiResponse<GetFiltersResponse1>>;
|
|
189
252
|
/**
|
|
190
253
|
* Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
191
254
|
* @summary Get all filter helpers
|
|
@@ -193,6 +256,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
193
256
|
* @throws {RequiredError}
|
|
194
257
|
*/
|
|
195
258
|
getFilterHelpers(): Promise<object>;
|
|
259
|
+
getFilterHelpersWithHttpInfo(): Promise<ApiResponse<object>>;
|
|
196
260
|
/**
|
|
197
261
|
* Returns data about all filters.
|
|
198
262
|
* @summary Get all filters
|
|
@@ -201,6 +265,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
201
265
|
* @throws {RequiredError}
|
|
202
266
|
*/
|
|
203
267
|
getFilters(requestParameters?: FiltersApiGetFiltersRequest): Promise<GetFiltersResponse>;
|
|
268
|
+
getFiltersWithHttpInfo(requestParameters?: FiltersApiGetFiltersRequest): Promise<ApiResponse<GetFiltersResponse>>;
|
|
204
269
|
/**
|
|
205
270
|
* Updates an existing filter.
|
|
206
271
|
* @summary Update filter
|
|
@@ -209,6 +274,7 @@ export declare const FiltersApiFactory: (configuration?: Configuration, basePath
|
|
|
209
274
|
* @throws {RequiredError}
|
|
210
275
|
*/
|
|
211
276
|
updateFilter(requestParameters: FiltersApiUpdateFilterRequest): Promise<AddFiltersResponse>;
|
|
277
|
+
updateFilterWithHttpInfo(requestParameters: FiltersApiUpdateFilterRequest): Promise<ApiResponse<AddFiltersResponse>>;
|
|
212
278
|
};
|
|
213
279
|
/**
|
|
214
280
|
* Request parameters for addFilter operation in FiltersApi.
|
|
@@ -328,6 +394,15 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
328
394
|
* @memberof FiltersApi
|
|
329
395
|
*/
|
|
330
396
|
addFilter(requestParameters?: FiltersApiAddFilterRequest): Promise<AddFiltersResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* Same as `addFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
399
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
400
|
+
* @param {FiltersApiAddFilterRequest} requestParameters Request parameters.
|
|
401
|
+
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
* @memberof FiltersApi
|
|
404
|
+
*/
|
|
405
|
+
addFilterWithHttpInfo(requestParameters?: FiltersApiAddFilterRequest): Promise<ApiResponse<AddFiltersResponse>>;
|
|
331
406
|
/**
|
|
332
407
|
* Marks a filter as deleted.
|
|
333
408
|
* @summary Delete a filter
|
|
@@ -337,6 +412,15 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
337
412
|
* @memberof FiltersApi
|
|
338
413
|
*/
|
|
339
414
|
deleteFilter(requestParameters: FiltersApiDeleteFilterRequest): Promise<DeleteFilterResponse>;
|
|
415
|
+
/**
|
|
416
|
+
* Same as `deleteFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
417
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
418
|
+
* @param {FiltersApiDeleteFilterRequest} requestParameters Request parameters.
|
|
419
|
+
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof FiltersApi
|
|
422
|
+
*/
|
|
423
|
+
deleteFilterWithHttpInfo(requestParameters: FiltersApiDeleteFilterRequest): Promise<ApiResponse<DeleteFilterResponse>>;
|
|
340
424
|
/**
|
|
341
425
|
* Marks multiple filters as deleted.
|
|
342
426
|
* @summary Delete multiple filters in bulk
|
|
@@ -346,6 +430,15 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
346
430
|
* @memberof FiltersApi
|
|
347
431
|
*/
|
|
348
432
|
deleteFilters(requestParameters: FiltersApiDeleteFiltersRequest): Promise<DeleteFiltersResponse>;
|
|
433
|
+
/**
|
|
434
|
+
* Same as `deleteFilters`, but resolves with the response body together with the HTTP status and headers.
|
|
435
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
436
|
+
* @param {FiltersApiDeleteFiltersRequest} requestParameters Request parameters.
|
|
437
|
+
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
* @memberof FiltersApi
|
|
440
|
+
*/
|
|
441
|
+
deleteFiltersWithHttpInfo(requestParameters: FiltersApiDeleteFiltersRequest): Promise<ApiResponse<DeleteFiltersResponse>>;
|
|
349
442
|
/**
|
|
350
443
|
* Returns data about a specific filter. Note that this also returns the condition lines of the filter.
|
|
351
444
|
* @summary Get one filter
|
|
@@ -355,6 +448,15 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
355
448
|
* @memberof FiltersApi
|
|
356
449
|
*/
|
|
357
450
|
getFilter(requestParameters: FiltersApiGetFilterRequest): Promise<GetFiltersResponse1>;
|
|
451
|
+
/**
|
|
452
|
+
* Same as `getFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
453
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
454
|
+
* @param {FiltersApiGetFilterRequest} requestParameters Request parameters.
|
|
455
|
+
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
* @memberof FiltersApi
|
|
458
|
+
*/
|
|
459
|
+
getFilterWithHttpInfo(requestParameters: FiltersApiGetFilterRequest): Promise<ApiResponse<GetFiltersResponse1>>;
|
|
358
460
|
/**
|
|
359
461
|
* Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
|
|
360
462
|
* @summary Get all filter helpers
|
|
@@ -363,6 +465,14 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
363
465
|
* @memberof FiltersApi
|
|
364
466
|
*/
|
|
365
467
|
getFilterHelpers(): Promise<object>;
|
|
468
|
+
/**
|
|
469
|
+
* Same as `getFilterHelpers`, but resolves with the response body together with the HTTP status and headers.
|
|
470
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
471
|
+
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
* @memberof FiltersApi
|
|
474
|
+
*/
|
|
475
|
+
getFilterHelpersWithHttpInfo(): Promise<ApiResponse<object>>;
|
|
366
476
|
/**
|
|
367
477
|
* Returns data about all filters.
|
|
368
478
|
* @summary Get all filters
|
|
@@ -372,6 +482,15 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
372
482
|
* @memberof FiltersApi
|
|
373
483
|
*/
|
|
374
484
|
getFilters(requestParameters?: FiltersApiGetFiltersRequest): Promise<GetFiltersResponse>;
|
|
485
|
+
/**
|
|
486
|
+
* Same as `getFilters`, but resolves with the response body together with the HTTP status and headers.
|
|
487
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
488
|
+
* @param {FiltersApiGetFiltersRequest} requestParameters Request parameters.
|
|
489
|
+
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
* @memberof FiltersApi
|
|
492
|
+
*/
|
|
493
|
+
getFiltersWithHttpInfo(requestParameters?: FiltersApiGetFiltersRequest): Promise<ApiResponse<GetFiltersResponse>>;
|
|
375
494
|
/**
|
|
376
495
|
* Updates an existing filter.
|
|
377
496
|
* @summary Update filter
|
|
@@ -381,4 +500,13 @@ export declare class FiltersApi extends BaseAPI {
|
|
|
381
500
|
* @memberof FiltersApi
|
|
382
501
|
*/
|
|
383
502
|
updateFilter(requestParameters: FiltersApiUpdateFilterRequest): Promise<AddFiltersResponse>;
|
|
503
|
+
/**
|
|
504
|
+
* Same as `updateFilter`, but resolves with the response body together with the HTTP status and headers.
|
|
505
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
506
|
+
* @param {FiltersApiUpdateFilterRequest} requestParameters Request parameters.
|
|
507
|
+
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
* @memberof FiltersApi
|
|
510
|
+
*/
|
|
511
|
+
updateFilterWithHttpInfo(requestParameters: FiltersApiUpdateFilterRequest): Promise<ApiResponse<AddFiltersResponse>>;
|
|
384
512
|
}
|