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