pipedrive 36.0.0 → 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/v1/models/deal-all-of.d.ts +6 -6
- package/dist/esm/versions/v1/models/index.d.ts +0 -3
- package/dist/esm/versions/v1/models/index.js +0 -3
- package/dist/esm/versions/v1/models/note-deal.d.ts +11 -5
- 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/esm/versions/v2/models/index.d.ts +2 -5
- package/dist/esm/versions/v2/models/index.js +2 -5
- package/dist/esm/versions/v2/models/prices-array.d.ts +3 -3
- package/dist/esm/versions/v2/models/{product-request-prices-inner-all-of.d.ts → product-price-request.d.ts} +12 -2
- package/dist/{versions/v2/models/prices-array-prices-inner-all-of.d.ts → esm/versions/v2/models/product-price.d.ts} +12 -2
- package/dist/esm/versions/v2/models/product-request.d.ts +3 -3
- 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/v1/models/deal-all-of.d.ts +6 -6
- package/dist/versions/v1/models/index.d.ts +0 -3
- package/dist/versions/v1/models/index.js +0 -3
- package/dist/versions/v1/models/note-deal.d.ts +11 -5
- 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/dist/versions/v2/models/index.d.ts +2 -5
- package/dist/versions/v2/models/index.js +2 -5
- package/dist/versions/v2/models/prices-array.d.ts +3 -3
- package/dist/versions/v2/models/{product-request-prices-inner-all-of.d.ts → product-price-request.d.ts} +12 -2
- package/dist/{esm/versions/v2/models/prices-array-prices-inner-all-of.d.ts → versions/v2/models/product-price.d.ts} +12 -2
- package/dist/versions/v2/models/product-request.d.ts +3 -3
- package/package.json +1 -1
- package/dist/esm/versions/v1/models/deal-all-of-org-id.d.ts +0 -17
- package/dist/esm/versions/v1/models/deal-all-of-org-id.js +0 -14
- package/dist/esm/versions/v1/models/deal-all-of-person-id.d.ts +0 -17
- package/dist/esm/versions/v1/models/deal-all-of-person-id.js +0 -14
- package/dist/esm/versions/v1/models/note-deal-all-of.d.ts +0 -23
- package/dist/esm/versions/v1/models/note-deal-all-of.js +0 -14
- package/dist/esm/versions/v2/models/prices-array-prices-inner.d.ts +0 -18
- package/dist/esm/versions/v2/models/product-price-base.d.ts +0 -28
- package/dist/esm/versions/v2/models/product-price-base.js +0 -14
- package/dist/esm/versions/v2/models/product-request-prices-inner-all-of.js +0 -14
- package/dist/esm/versions/v2/models/product-request-prices-inner.d.ts +0 -18
- package/dist/esm/versions/v2/models/product-request-prices-inner.js +0 -14
- package/dist/versions/v1/models/deal-all-of-org-id.d.ts +0 -17
- package/dist/versions/v1/models/deal-all-of-org-id.js +0 -15
- package/dist/versions/v1/models/deal-all-of-person-id.d.ts +0 -17
- package/dist/versions/v1/models/deal-all-of-person-id.js +0 -15
- package/dist/versions/v1/models/note-deal-all-of.d.ts +0 -23
- package/dist/versions/v1/models/note-deal-all-of.js +0 -15
- package/dist/versions/v2/models/prices-array-prices-inner.d.ts +0 -18
- package/dist/versions/v2/models/product-price-base.d.ts +0 -28
- package/dist/versions/v2/models/product-price-base.js +0 -15
- package/dist/versions/v2/models/product-request-prices-inner-all-of.js +0 -15
- package/dist/versions/v2/models/product-request-prices-inner.d.ts +0 -18
- package/dist/versions/v2/models/product-request-prices-inner.js +0 -15
- /package/dist/esm/versions/v2/models/{prices-array-prices-inner-all-of.js → product-price-request.js} +0 -0
- /package/dist/esm/versions/v2/models/{prices-array-prices-inner.js → product-price.js} +0 -0
- /package/dist/versions/v2/models/{prices-array-prices-inner-all-of.js → product-price-request.js} +0 -0
- /package/dist/versions/v2/models/{prices-array-prices-inner.js → product-price.js} +0 -0
|
@@ -444,6 +444,26 @@ const FilesApiFp = function (configuration) {
|
|
|
444
444
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
445
445
|
});
|
|
446
446
|
},
|
|
447
|
+
/**
|
|
448
|
+
* Same as `addFile`, but resolves with the response body together with the HTTP status and headers.
|
|
449
|
+
* @summary Add file
|
|
450
|
+
* @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries
|
|
451
|
+
* @param {number} [deal_id] The ID of the deal to associate file(s) with
|
|
452
|
+
* @param {number} [person_id] The ID of the person to associate file(s) with
|
|
453
|
+
* @param {number} [org_id] The ID of the organization to associate file(s) with
|
|
454
|
+
* @param {number} [product_id] The ID of the product to associate file(s) with
|
|
455
|
+
* @param {number} [activity_id] The ID of the activity to associate file(s) with
|
|
456
|
+
* @param {string} [lead_id] The ID of the lead to associate file(s) with
|
|
457
|
+
* @param {number} [project_id] The ID of the project to associate file(s) with
|
|
458
|
+
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
addFileWithHttpInfo(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id) {
|
|
462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, project_id);
|
|
464
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
465
|
+
});
|
|
466
|
+
},
|
|
447
467
|
/**
|
|
448
468
|
* 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>.
|
|
449
469
|
* @summary Create a remote file and link it to an item
|
|
@@ -461,6 +481,23 @@ const FilesApiFp = function (configuration) {
|
|
|
461
481
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
462
482
|
});
|
|
463
483
|
},
|
|
484
|
+
/**
|
|
485
|
+
* Same as `addFileAndLinkIt`, but resolves with the response body together with the HTTP status and headers.
|
|
486
|
+
* @summary Create a remote file and link it to an item
|
|
487
|
+
* @param {string} file_type The file type
|
|
488
|
+
* @param {string} title The title of the file
|
|
489
|
+
* @param {string} item_type The item type
|
|
490
|
+
* @param {number} item_id The ID of the item to associate the file with
|
|
491
|
+
* @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment.
|
|
492
|
+
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
*/
|
|
495
|
+
addFileAndLinkItWithHttpInfo(file_type, title, item_type, item_id, remote_location) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFileAndLinkIt(file_type, title, item_type, item_id, remote_location);
|
|
498
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
499
|
+
});
|
|
500
|
+
},
|
|
464
501
|
/**
|
|
465
502
|
* Marks a file as deleted. After 30 days, the file will be permanently deleted.
|
|
466
503
|
* @summary Delete a file
|
|
@@ -474,6 +511,19 @@ const FilesApiFp = function (configuration) {
|
|
|
474
511
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
475
512
|
});
|
|
476
513
|
},
|
|
514
|
+
/**
|
|
515
|
+
* Same as `deleteFile`, but resolves with the response body together with the HTTP status and headers.
|
|
516
|
+
* @summary Delete a file
|
|
517
|
+
* @param {number} id The ID of the file
|
|
518
|
+
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
deleteFileWithHttpInfo(id) {
|
|
522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
523
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteFile(id);
|
|
524
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
525
|
+
});
|
|
526
|
+
},
|
|
477
527
|
/**
|
|
478
528
|
* Initializes a file download.
|
|
479
529
|
* @summary Download one file
|
|
@@ -487,6 +537,19 @@ const FilesApiFp = function (configuration) {
|
|
|
487
537
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
488
538
|
});
|
|
489
539
|
},
|
|
540
|
+
/**
|
|
541
|
+
* Same as `downloadFile`, but resolves with the response body together with the HTTP status and headers.
|
|
542
|
+
* @summary Download one file
|
|
543
|
+
* @param {number} id The ID of the file
|
|
544
|
+
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
downloadFileWithHttpInfo(id) {
|
|
548
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
549
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadFile(id);
|
|
550
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
551
|
+
});
|
|
552
|
+
},
|
|
490
553
|
/**
|
|
491
554
|
* Returns data about a specific file.
|
|
492
555
|
* @summary Get one file
|
|
@@ -500,6 +563,19 @@ const FilesApiFp = function (configuration) {
|
|
|
500
563
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
501
564
|
});
|
|
502
565
|
},
|
|
566
|
+
/**
|
|
567
|
+
* Same as `getFile`, but resolves with the response body together with the HTTP status and headers.
|
|
568
|
+
* @summary Get one file
|
|
569
|
+
* @param {number} id The ID of the file
|
|
570
|
+
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
getFileWithHttpInfo(id) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFile(id);
|
|
576
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
577
|
+
});
|
|
578
|
+
},
|
|
503
579
|
/**
|
|
504
580
|
* Returns data about all files.
|
|
505
581
|
* @summary Get all files
|
|
@@ -515,6 +591,21 @@ const FilesApiFp = function (configuration) {
|
|
|
515
591
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
516
592
|
});
|
|
517
593
|
},
|
|
594
|
+
/**
|
|
595
|
+
* Same as `getFiles`, but resolves with the response body together with the HTTP status and headers.
|
|
596
|
+
* @summary Get all files
|
|
597
|
+
* @param {number} [start] Pagination start
|
|
598
|
+
* @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed.
|
|
599
|
+
* @param {string} [sort] Supported fields: `id`, `update_time`
|
|
600
|
+
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
getFilesWithHttpInfo(start, limit, sort) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFiles(start, limit, sort);
|
|
606
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
607
|
+
});
|
|
608
|
+
},
|
|
518
609
|
/**
|
|
519
610
|
* 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>.
|
|
520
611
|
* @summary Link a remote file to an item
|
|
@@ -531,6 +622,22 @@ const FilesApiFp = function (configuration) {
|
|
|
531
622
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
532
623
|
});
|
|
533
624
|
},
|
|
625
|
+
/**
|
|
626
|
+
* Same as `linkFileToItem`, but resolves with the response body together with the HTTP status and headers.
|
|
627
|
+
* @summary Link a remote file to an item
|
|
628
|
+
* @param {string} item_type The item type
|
|
629
|
+
* @param {number} item_id The ID of the item to associate the file with
|
|
630
|
+
* @param {string} remote_id The remote item ID
|
|
631
|
+
* @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment.
|
|
632
|
+
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
linkFileToItemWithHttpInfo(item_type, item_id, remote_id, remote_location) {
|
|
636
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.linkFileToItem(item_type, item_id, remote_id, remote_location);
|
|
638
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
639
|
+
});
|
|
640
|
+
},
|
|
534
641
|
/**
|
|
535
642
|
* Updates the properties of a file.
|
|
536
643
|
* @summary Update file details
|
|
@@ -546,6 +653,21 @@ const FilesApiFp = function (configuration) {
|
|
|
546
653
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
547
654
|
});
|
|
548
655
|
},
|
|
656
|
+
/**
|
|
657
|
+
* Same as `updateFile`, but resolves with the response body together with the HTTP status and headers.
|
|
658
|
+
* @summary Update file details
|
|
659
|
+
* @param {number} id The ID of the file
|
|
660
|
+
* @param {string} [name] The visible name of the file
|
|
661
|
+
* @param {string} [description] The description of the file
|
|
662
|
+
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
*/
|
|
665
|
+
updateFileWithHttpInfo(id, name, description) {
|
|
666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFile(id, name, description);
|
|
668
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
669
|
+
});
|
|
670
|
+
},
|
|
549
671
|
};
|
|
550
672
|
};
|
|
551
673
|
exports.FilesApiFp = FilesApiFp;
|
|
@@ -566,6 +688,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
566
688
|
addFile(requestParameters) {
|
|
567
689
|
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));
|
|
568
690
|
},
|
|
691
|
+
addFileWithHttpInfo(requestParameters) {
|
|
692
|
+
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));
|
|
693
|
+
},
|
|
569
694
|
/**
|
|
570
695
|
* 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>.
|
|
571
696
|
* @summary Create a remote file and link it to an item
|
|
@@ -576,6 +701,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
576
701
|
addFileAndLinkIt(requestParameters) {
|
|
577
702
|
return localVarFp.addFileAndLinkIt(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
578
703
|
},
|
|
704
|
+
addFileAndLinkItWithHttpInfo(requestParameters) {
|
|
705
|
+
return localVarFp.addFileAndLinkItWithHttpInfo(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
706
|
+
},
|
|
579
707
|
/**
|
|
580
708
|
* Marks a file as deleted. After 30 days, the file will be permanently deleted.
|
|
581
709
|
* @summary Delete a file
|
|
@@ -586,6 +714,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
586
714
|
deleteFile(requestParameters) {
|
|
587
715
|
return localVarFp.deleteFile(requestParameters.id).then((request) => request(axios, basePath));
|
|
588
716
|
},
|
|
717
|
+
deleteFileWithHttpInfo(requestParameters) {
|
|
718
|
+
return localVarFp.deleteFileWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
719
|
+
},
|
|
589
720
|
/**
|
|
590
721
|
* Initializes a file download.
|
|
591
722
|
* @summary Download one file
|
|
@@ -596,6 +727,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
596
727
|
downloadFile(requestParameters) {
|
|
597
728
|
return localVarFp.downloadFile(requestParameters.id).then((request) => request(axios, basePath));
|
|
598
729
|
},
|
|
730
|
+
downloadFileWithHttpInfo(requestParameters) {
|
|
731
|
+
return localVarFp.downloadFileWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
732
|
+
},
|
|
599
733
|
/**
|
|
600
734
|
* Returns data about a specific file.
|
|
601
735
|
* @summary Get one file
|
|
@@ -606,6 +740,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
606
740
|
getFile(requestParameters) {
|
|
607
741
|
return localVarFp.getFile(requestParameters.id).then((request) => request(axios, basePath));
|
|
608
742
|
},
|
|
743
|
+
getFileWithHttpInfo(requestParameters) {
|
|
744
|
+
return localVarFp.getFileWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
745
|
+
},
|
|
609
746
|
/**
|
|
610
747
|
* Returns data about all files.
|
|
611
748
|
* @summary Get all files
|
|
@@ -616,6 +753,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
616
753
|
getFiles(requestParameters = {}) {
|
|
617
754
|
return localVarFp.getFiles(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
|
|
618
755
|
},
|
|
756
|
+
getFilesWithHttpInfo(requestParameters = {}) {
|
|
757
|
+
return localVarFp.getFilesWithHttpInfo(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(axios, basePath));
|
|
758
|
+
},
|
|
619
759
|
/**
|
|
620
760
|
* 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>.
|
|
621
761
|
* @summary Link a remote file to an item
|
|
@@ -626,6 +766,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
626
766
|
linkFileToItem(requestParameters) {
|
|
627
767
|
return localVarFp.linkFileToItem(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
628
768
|
},
|
|
769
|
+
linkFileToItemWithHttpInfo(requestParameters) {
|
|
770
|
+
return localVarFp.linkFileToItemWithHttpInfo(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(axios, basePath));
|
|
771
|
+
},
|
|
629
772
|
/**
|
|
630
773
|
* Updates the properties of a file.
|
|
631
774
|
* @summary Update file details
|
|
@@ -636,6 +779,9 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
636
779
|
updateFile(requestParameters) {
|
|
637
780
|
return localVarFp.updateFile(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(axios, basePath));
|
|
638
781
|
},
|
|
782
|
+
updateFileWithHttpInfo(requestParameters) {
|
|
783
|
+
return localVarFp.updateFileWithHttpInfo(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(axios, basePath));
|
|
784
|
+
},
|
|
639
785
|
};
|
|
640
786
|
};
|
|
641
787
|
exports.FilesApiFactory = FilesApiFactory;
|
|
@@ -657,6 +803,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
657
803
|
addFile(requestParameters) {
|
|
658
804
|
return (0, exports.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));
|
|
659
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
* Same as `addFile`, but resolves with the response body together with the HTTP status and headers.
|
|
808
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
809
|
+
* @param {FilesApiAddFileRequest} requestParameters Request parameters.
|
|
810
|
+
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
* @memberof FilesApi
|
|
813
|
+
*/
|
|
814
|
+
addFileWithHttpInfo(requestParameters) {
|
|
815
|
+
return (0, exports.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));
|
|
816
|
+
}
|
|
660
817
|
/**
|
|
661
818
|
* 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>.
|
|
662
819
|
* @summary Create a remote file and link it to an item
|
|
@@ -668,6 +825,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
668
825
|
addFileAndLinkIt(requestParameters) {
|
|
669
826
|
return (0, exports.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));
|
|
670
827
|
}
|
|
828
|
+
/**
|
|
829
|
+
* Same as `addFileAndLinkIt`, but resolves with the response body together with the HTTP status and headers.
|
|
830
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
831
|
+
* @param {FilesApiAddFileAndLinkItRequest} requestParameters Request parameters.
|
|
832
|
+
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
* @memberof FilesApi
|
|
835
|
+
*/
|
|
836
|
+
addFileAndLinkItWithHttpInfo(requestParameters) {
|
|
837
|
+
return (0, exports.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));
|
|
838
|
+
}
|
|
671
839
|
/**
|
|
672
840
|
* Marks a file as deleted. After 30 days, the file will be permanently deleted.
|
|
673
841
|
* @summary Delete a file
|
|
@@ -679,6 +847,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
679
847
|
deleteFile(requestParameters) {
|
|
680
848
|
return (0, exports.FilesApiFp)(this.configuration).deleteFile(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
681
849
|
}
|
|
850
|
+
/**
|
|
851
|
+
* Same as `deleteFile`, but resolves with the response body together with the HTTP status and headers.
|
|
852
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
853
|
+
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
854
|
+
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
* @memberof FilesApi
|
|
857
|
+
*/
|
|
858
|
+
deleteFileWithHttpInfo(requestParameters) {
|
|
859
|
+
return (0, exports.FilesApiFp)(this.configuration).deleteFileWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
860
|
+
}
|
|
682
861
|
/**
|
|
683
862
|
* Initializes a file download.
|
|
684
863
|
* @summary Download one file
|
|
@@ -690,6 +869,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
690
869
|
downloadFile(requestParameters) {
|
|
691
870
|
return (0, exports.FilesApiFp)(this.configuration).downloadFile(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
692
871
|
}
|
|
872
|
+
/**
|
|
873
|
+
* Same as `downloadFile`, but resolves with the response body together with the HTTP status and headers.
|
|
874
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
875
|
+
* @param {FilesApiDownloadFileRequest} requestParameters Request parameters.
|
|
876
|
+
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
* @memberof FilesApi
|
|
879
|
+
*/
|
|
880
|
+
downloadFileWithHttpInfo(requestParameters) {
|
|
881
|
+
return (0, exports.FilesApiFp)(this.configuration).downloadFileWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
882
|
+
}
|
|
693
883
|
/**
|
|
694
884
|
* Returns data about a specific file.
|
|
695
885
|
* @summary Get one file
|
|
@@ -701,6 +891,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
701
891
|
getFile(requestParameters) {
|
|
702
892
|
return (0, exports.FilesApiFp)(this.configuration).getFile(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
703
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Same as `getFile`, but resolves with the response body together with the HTTP status and headers.
|
|
896
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
897
|
+
* @param {FilesApiGetFileRequest} requestParameters Request parameters.
|
|
898
|
+
|
|
899
|
+
* @throws {RequiredError}
|
|
900
|
+
* @memberof FilesApi
|
|
901
|
+
*/
|
|
902
|
+
getFileWithHttpInfo(requestParameters) {
|
|
903
|
+
return (0, exports.FilesApiFp)(this.configuration).getFileWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
904
|
+
}
|
|
704
905
|
/**
|
|
705
906
|
* Returns data about all files.
|
|
706
907
|
* @summary Get all files
|
|
@@ -712,6 +913,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
712
913
|
getFiles(requestParameters = {}) {
|
|
713
914
|
return (0, exports.FilesApiFp)(this.configuration).getFiles(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
|
|
714
915
|
}
|
|
916
|
+
/**
|
|
917
|
+
* Same as `getFiles`, but resolves with the response body together with the HTTP status and headers.
|
|
918
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
919
|
+
* @param {FilesApiGetFilesRequest} requestParameters Request parameters.
|
|
920
|
+
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
* @memberof FilesApi
|
|
923
|
+
*/
|
|
924
|
+
getFilesWithHttpInfo(requestParameters = {}) {
|
|
925
|
+
return (0, exports.FilesApiFp)(this.configuration).getFilesWithHttpInfo(requestParameters.start, requestParameters.limit, requestParameters.sort).then((request) => request(this.axios, this.basePath));
|
|
926
|
+
}
|
|
715
927
|
/**
|
|
716
928
|
* 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>.
|
|
717
929
|
* @summary Link a remote file to an item
|
|
@@ -723,6 +935,17 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
723
935
|
linkFileToItem(requestParameters) {
|
|
724
936
|
return (0, exports.FilesApiFp)(this.configuration).linkFileToItem(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(this.axios, this.basePath));
|
|
725
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* Same as `linkFileToItem`, but resolves with the response body together with the HTTP status and headers.
|
|
940
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
941
|
+
* @param {FilesApiLinkFileToItemRequest} requestParameters Request parameters.
|
|
942
|
+
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
* @memberof FilesApi
|
|
945
|
+
*/
|
|
946
|
+
linkFileToItemWithHttpInfo(requestParameters) {
|
|
947
|
+
return (0, exports.FilesApiFp)(this.configuration).linkFileToItemWithHttpInfo(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location).then((request) => request(this.axios, this.basePath));
|
|
948
|
+
}
|
|
726
949
|
/**
|
|
727
950
|
* Updates the properties of a file.
|
|
728
951
|
* @summary Update file details
|
|
@@ -734,5 +957,16 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
734
957
|
updateFile(requestParameters) {
|
|
735
958
|
return (0, exports.FilesApiFp)(this.configuration).updateFile(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(this.axios, this.basePath));
|
|
736
959
|
}
|
|
960
|
+
/**
|
|
961
|
+
* Same as `updateFile`, but resolves with the response body together with the HTTP status and headers.
|
|
962
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
963
|
+
* @param {FilesApiUpdateFileRequest} requestParameters Request parameters.
|
|
964
|
+
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
* @memberof FilesApi
|
|
967
|
+
*/
|
|
968
|
+
updateFileWithHttpInfo(requestParameters) {
|
|
969
|
+
return (0, exports.FilesApiFp)(this.configuration).updateFileWithHttpInfo(requestParameters.id, requestParameters.name, requestParameters.description).then((request) => request(this.axios, this.basePath));
|
|
970
|
+
}
|
|
737
971
|
}
|
|
738
972
|
exports.FilesApi = FilesApi;
|