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
|
@@ -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 { GetItemSearchFieldResponse } from '../models';
|
|
16
16
|
import { GetItemSearchResponse } from '../models';
|
|
17
17
|
/**
|
|
@@ -68,6 +68,21 @@ export declare const ItemSearchApiFp: (configuration?: Configuration) => {
|
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
70
70
|
searchItem(term: string, item_types?: Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>, fields?: Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>, search_for_related_items?: boolean, exact_match?: boolean, include_fields?: Set<'deal.cc_email' | 'person.picture' | 'product.price'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetItemSearchResponse>>;
|
|
71
|
+
/**
|
|
72
|
+
* Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
|
|
73
|
+
* @summary Perform a search from multiple item types
|
|
74
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
75
|
+
* @param {Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all.
|
|
76
|
+
* @param {Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
77
|
+
* @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization
|
|
78
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
79
|
+
* @param {Set<'deal.cc_email' | 'person.picture' | 'product.price'>} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default.
|
|
80
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
|
|
81
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
82
|
+
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
searchItemWithHttpInfo(term: string, item_types?: Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>, fields?: Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>, search_for_related_items?: boolean, exact_match?: boolean, include_fields?: Set<'deal.cc_email' | 'person.picture' | 'product.price'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetItemSearchResponse>>>;
|
|
71
86
|
/**
|
|
72
87
|
* Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
|
|
73
88
|
* @summary Perform a search using a specific field from an item type
|
|
@@ -81,6 +96,19 @@ export declare const ItemSearchApiFp: (configuration?: Configuration) => {
|
|
|
81
96
|
* @throws {RequiredError}
|
|
82
97
|
*/
|
|
83
98
|
searchItemByField(term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetItemSearchFieldResponse>>;
|
|
99
|
+
/**
|
|
100
|
+
* Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
|
|
101
|
+
* @summary Perform a search using a specific field from an item type
|
|
102
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded.
|
|
103
|
+
* @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from
|
|
104
|
+
* @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
105
|
+
* @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>.
|
|
106
|
+
* @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.
|
|
107
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
108
|
+
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
searchItemByFieldWithHttpInfo(term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetItemSearchFieldResponse>>>;
|
|
84
112
|
};
|
|
85
113
|
/**
|
|
86
114
|
* ItemSearchApi - factory interface
|
|
@@ -95,6 +123,7 @@ export declare const ItemSearchApiFactory: (configuration?: Configuration, baseP
|
|
|
95
123
|
* @throws {RequiredError}
|
|
96
124
|
*/
|
|
97
125
|
searchItem(requestParameters: ItemSearchApiSearchItemRequest): Promise<GetItemSearchResponse>;
|
|
126
|
+
searchItemWithHttpInfo(requestParameters: ItemSearchApiSearchItemRequest): Promise<ApiResponse<GetItemSearchResponse>>;
|
|
98
127
|
/**
|
|
99
128
|
* Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
|
|
100
129
|
* @summary Perform a search using a specific field from an item type
|
|
@@ -103,6 +132,7 @@ export declare const ItemSearchApiFactory: (configuration?: Configuration, baseP
|
|
|
103
132
|
* @throws {RequiredError}
|
|
104
133
|
*/
|
|
105
134
|
searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<GetItemSearchFieldResponse>;
|
|
135
|
+
searchItemByFieldWithHttpInfo(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<ApiResponse<GetItemSearchFieldResponse>>;
|
|
106
136
|
};
|
|
107
137
|
/**
|
|
108
138
|
* Request parameters for searchItem operation in ItemSearchApi.
|
|
@@ -218,6 +248,15 @@ export declare class ItemSearchApi extends BaseAPI {
|
|
|
218
248
|
* @memberof ItemSearchApi
|
|
219
249
|
*/
|
|
220
250
|
searchItem(requestParameters: ItemSearchApiSearchItemRequest): Promise<GetItemSearchResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
|
|
253
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
254
|
+
* @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
|
|
255
|
+
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
* @memberof ItemSearchApi
|
|
258
|
+
*/
|
|
259
|
+
searchItemWithHttpInfo(requestParameters: ItemSearchApiSearchItemRequest): Promise<ApiResponse<GetItemSearchResponse>>;
|
|
221
260
|
/**
|
|
222
261
|
* Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
|
|
223
262
|
* @summary Perform a search using a specific field from an item type
|
|
@@ -227,4 +266,13 @@ export declare class ItemSearchApi extends BaseAPI {
|
|
|
227
266
|
* @memberof ItemSearchApi
|
|
228
267
|
*/
|
|
229
268
|
searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<GetItemSearchFieldResponse>;
|
|
269
|
+
/**
|
|
270
|
+
* Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
|
|
271
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
272
|
+
* @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
|
|
273
|
+
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
* @memberof ItemSearchApi
|
|
276
|
+
*/
|
|
277
|
+
searchItemByFieldWithHttpInfo(requestParameters: ItemSearchApiSearchItemByFieldRequest): Promise<ApiResponse<GetItemSearchFieldResponse>>;
|
|
230
278
|
}
|
|
@@ -185,6 +185,26 @@ export const ItemSearchApiFp = function (configuration) {
|
|
|
185
185
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
186
186
|
});
|
|
187
187
|
},
|
|
188
|
+
/**
|
|
189
|
+
* Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
|
|
190
|
+
* @summary Perform a search from multiple item types
|
|
191
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
192
|
+
* @param {Set<'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'>} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all.
|
|
193
|
+
* @param {Set<'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'phone' | 'title' | 'description'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
194
|
+
* @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization
|
|
195
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
196
|
+
* @param {Set<'deal.cc_email' | 'person.picture' | 'product.price'>} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default.
|
|
197
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
|
|
198
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
199
|
+
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
searchItemWithHttpInfo(term, item_types, fields, search_for_related_items, exact_match, include_fields, limit, cursor) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, limit, cursor);
|
|
205
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
206
|
+
});
|
|
207
|
+
},
|
|
188
208
|
/**
|
|
189
209
|
* Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
|
|
190
210
|
* @summary Perform a search using a specific field from an item type
|
|
@@ -203,6 +223,24 @@ export const ItemSearchApiFp = function (configuration) {
|
|
|
203
223
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
204
224
|
});
|
|
205
225
|
},
|
|
226
|
+
/**
|
|
227
|
+
* Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
|
|
228
|
+
* @summary Perform a search using a specific field from an item type
|
|
229
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded.
|
|
230
|
+
* @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from
|
|
231
|
+
* @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.
|
|
232
|
+
* @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>.
|
|
233
|
+
* @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.
|
|
234
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
235
|
+
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
searchItemByFieldWithHttpInfo(term, entity_type, field, match, limit, cursor) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchItemByField(term, entity_type, field, match, limit, cursor);
|
|
241
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
242
|
+
});
|
|
243
|
+
},
|
|
206
244
|
};
|
|
207
245
|
};
|
|
208
246
|
/**
|
|
@@ -222,6 +260,9 @@ export const ItemSearchApiFactory = function (configuration, basePath, axios) {
|
|
|
222
260
|
searchItem(requestParameters) {
|
|
223
261
|
return localVarFp.searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
224
262
|
},
|
|
263
|
+
searchItemWithHttpInfo(requestParameters) {
|
|
264
|
+
return localVarFp.searchItemWithHttpInfo(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
265
|
+
},
|
|
225
266
|
/**
|
|
226
267
|
* Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
|
|
227
268
|
* @summary Perform a search using a specific field from an item type
|
|
@@ -232,6 +273,9 @@ export const ItemSearchApiFactory = function (configuration, basePath, axios) {
|
|
|
232
273
|
searchItemByField(requestParameters) {
|
|
233
274
|
return localVarFp.searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
234
275
|
},
|
|
276
|
+
searchItemByFieldWithHttpInfo(requestParameters) {
|
|
277
|
+
return localVarFp.searchItemByFieldWithHttpInfo(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
278
|
+
},
|
|
235
279
|
};
|
|
236
280
|
};
|
|
237
281
|
/**
|
|
@@ -252,6 +296,17 @@ export class ItemSearchApi extends BaseAPI {
|
|
|
252
296
|
searchItem(requestParameters) {
|
|
253
297
|
return ItemSearchApiFp(this.configuration).searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
254
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Same as `searchItem`, but resolves with the response body together with the HTTP status and headers.
|
|
301
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
302
|
+
* @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters.
|
|
303
|
+
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
* @memberof ItemSearchApi
|
|
306
|
+
*/
|
|
307
|
+
searchItemWithHttpInfo(requestParameters) {
|
|
308
|
+
return ItemSearchApiFp(this.configuration).searchItemWithHttpInfo(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
309
|
+
}
|
|
255
310
|
/**
|
|
256
311
|
* Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
|
|
257
312
|
* @summary Perform a search using a specific field from an item type
|
|
@@ -263,4 +318,15 @@ export class ItemSearchApi extends BaseAPI {
|
|
|
263
318
|
searchItemByField(requestParameters) {
|
|
264
319
|
return ItemSearchApiFp(this.configuration).searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
265
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Same as `searchItemByField`, but resolves with the response body together with the HTTP status and headers.
|
|
323
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
324
|
+
* @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters.
|
|
325
|
+
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
* @memberof ItemSearchApi
|
|
328
|
+
*/
|
|
329
|
+
searchItemByFieldWithHttpInfo(requestParameters) {
|
|
330
|
+
return ItemSearchApiFp(this.configuration).searchItemByFieldWithHttpInfo(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
331
|
+
}
|
|
266
332
|
}
|
|
@@ -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 { AddConvertLeadToDealResponse } from '../models';
|
|
16
16
|
import { ConvertLeadToDealRequest } from '../models';
|
|
17
17
|
import { GetConvertResponse1 } from '../models';
|
|
@@ -69,6 +69,15 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
71
|
convertLeadToDeal(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddConvertLeadToDealResponse>>;
|
|
72
|
+
/**
|
|
73
|
+
* Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
74
|
+
* @summary Convert a lead to a deal
|
|
75
|
+
* @param {string} id The ID of the lead to convert
|
|
76
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
|
77
|
+
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
convertLeadToDealWithHttpInfo(id: string, ConvertLeadToDealRequest?: ConvertLeadToDealRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<AddConvertLeadToDealResponse>>>;
|
|
72
81
|
/**
|
|
73
82
|
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
74
83
|
* @summary Get Lead conversion status
|
|
@@ -78,6 +87,15 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
78
87
|
* @throws {RequiredError}
|
|
79
88
|
*/
|
|
80
89
|
getLeadConversionStatus(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetConvertResponse1>>;
|
|
90
|
+
/**
|
|
91
|
+
* Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
92
|
+
* @summary Get Lead conversion status
|
|
93
|
+
* @param {string} id The ID of a lead
|
|
94
|
+
* @param {string} conversion_id The ID of the conversion
|
|
95
|
+
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
getLeadConversionStatusWithHttpInfo(id: string, conversion_id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetConvertResponse1>>>;
|
|
81
99
|
/**
|
|
82
100
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
|
83
101
|
* @summary Search leads
|
|
@@ -93,6 +111,21 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
93
111
|
* @throws {RequiredError}
|
|
94
112
|
*/
|
|
95
113
|
searchLeads(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: Set<'lead.was_seen'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetLeadSearchResponse>>;
|
|
114
|
+
/**
|
|
115
|
+
* Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
|
|
116
|
+
* @summary Search leads
|
|
117
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
118
|
+
* @param {Set<'custom_fields' | 'notes' | 'title'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
|
119
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
120
|
+
* @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000.
|
|
121
|
+
* @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000.
|
|
122
|
+
* @param {Set<'lead.was_seen'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
123
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
|
|
124
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
125
|
+
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
searchLeadsWithHttpInfo(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: Set<'lead.was_seen'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetLeadSearchResponse>>>;
|
|
96
129
|
};
|
|
97
130
|
/**
|
|
98
131
|
* LeadsApi - factory interface
|
|
@@ -107,6 +140,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
107
140
|
* @throws {RequiredError}
|
|
108
141
|
*/
|
|
109
142
|
convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
|
|
143
|
+
convertLeadToDealWithHttpInfo(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<ApiResponse<AddConvertLeadToDealResponse>>;
|
|
110
144
|
/**
|
|
111
145
|
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
112
146
|
* @summary Get Lead conversion status
|
|
@@ -115,6 +149,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
115
149
|
* @throws {RequiredError}
|
|
116
150
|
*/
|
|
117
151
|
getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
|
|
152
|
+
getLeadConversionStatusWithHttpInfo(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<ApiResponse<GetConvertResponse1>>;
|
|
118
153
|
/**
|
|
119
154
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
|
120
155
|
* @summary Search leads
|
|
@@ -123,6 +158,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
123
158
|
* @throws {RequiredError}
|
|
124
159
|
*/
|
|
125
160
|
searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
|
|
161
|
+
searchLeadsWithHttpInfo(requestParameters: LeadsApiSearchLeadsRequest): Promise<ApiResponse<GetLeadSearchResponse>>;
|
|
126
162
|
};
|
|
127
163
|
/**
|
|
128
164
|
* Request parameters for convertLeadToDeal operation in LeadsApi.
|
|
@@ -233,6 +269,15 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
233
269
|
* @memberof LeadsApi
|
|
234
270
|
*/
|
|
235
271
|
convertLeadToDeal(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<AddConvertLeadToDealResponse>;
|
|
272
|
+
/**
|
|
273
|
+
* Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
274
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
275
|
+
* @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
|
|
276
|
+
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
* @memberof LeadsApi
|
|
279
|
+
*/
|
|
280
|
+
convertLeadToDealWithHttpInfo(requestParameters: LeadsApiConvertLeadToDealRequest): Promise<ApiResponse<AddConvertLeadToDealResponse>>;
|
|
236
281
|
/**
|
|
237
282
|
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
238
283
|
* @summary Get Lead conversion status
|
|
@@ -242,6 +287,15 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
242
287
|
* @memberof LeadsApi
|
|
243
288
|
*/
|
|
244
289
|
getLeadConversionStatus(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<GetConvertResponse1>;
|
|
290
|
+
/**
|
|
291
|
+
* Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
292
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
293
|
+
* @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
|
294
|
+
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
* @memberof LeadsApi
|
|
297
|
+
*/
|
|
298
|
+
getLeadConversionStatusWithHttpInfo(requestParameters: LeadsApiGetLeadConversionStatusRequest): Promise<ApiResponse<GetConvertResponse1>>;
|
|
245
299
|
/**
|
|
246
300
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
|
247
301
|
* @summary Search leads
|
|
@@ -251,4 +305,13 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
251
305
|
* @memberof LeadsApi
|
|
252
306
|
*/
|
|
253
307
|
searchLeads(requestParameters: LeadsApiSearchLeadsRequest): Promise<GetLeadSearchResponse>;
|
|
308
|
+
/**
|
|
309
|
+
* Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
|
|
310
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
311
|
+
* @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters.
|
|
312
|
+
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
* @memberof LeadsApi
|
|
315
|
+
*/
|
|
316
|
+
searchLeadsWithHttpInfo(requestParameters: LeadsApiSearchLeadsRequest): Promise<ApiResponse<GetLeadSearchResponse>>;
|
|
254
317
|
}
|
|
@@ -194,6 +194,20 @@ export const LeadsApiFp = function (configuration) {
|
|
|
194
194
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
199
|
+
* @summary Convert a lead to a deal
|
|
200
|
+
* @param {string} id The ID of the lead to convert
|
|
201
|
+
* @param {ConvertLeadToDealRequest} [ConvertLeadToDealRequest]
|
|
202
|
+
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
convertLeadToDealWithHttpInfo(id, ConvertLeadToDealRequest) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.convertLeadToDeal(id, ConvertLeadToDealRequest);
|
|
208
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
209
|
+
});
|
|
210
|
+
},
|
|
197
211
|
/**
|
|
198
212
|
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
199
213
|
* @summary Get Lead conversion status
|
|
@@ -208,6 +222,20 @@ export const LeadsApiFp = function (configuration) {
|
|
|
208
222
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
209
223
|
});
|
|
210
224
|
},
|
|
225
|
+
/**
|
|
226
|
+
* Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
227
|
+
* @summary Get Lead conversion status
|
|
228
|
+
* @param {string} id The ID of a lead
|
|
229
|
+
* @param {string} conversion_id The ID of the conversion
|
|
230
|
+
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
getLeadConversionStatusWithHttpInfo(id, conversion_id) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeadConversionStatus(id, conversion_id);
|
|
236
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
237
|
+
});
|
|
238
|
+
},
|
|
211
239
|
/**
|
|
212
240
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
|
213
241
|
* @summary Search leads
|
|
@@ -228,6 +256,26 @@ export const LeadsApiFp = function (configuration) {
|
|
|
228
256
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
229
257
|
});
|
|
230
258
|
},
|
|
259
|
+
/**
|
|
260
|
+
* Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
|
|
261
|
+
* @summary Search leads
|
|
262
|
+
* @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded.
|
|
263
|
+
* @param {Set<'custom_fields' | 'notes' | 'title'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
|
264
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
265
|
+
* @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000.
|
|
266
|
+
* @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000.
|
|
267
|
+
* @param {Set<'lead.was_seen'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
268
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 100 is allowed.
|
|
269
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
270
|
+
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
searchLeadsWithHttpInfo(term, fields, exact_match, person_id, organization_id, include_fields, limit, cursor) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchLeads(term, fields, exact_match, person_id, organization_id, include_fields, limit, cursor);
|
|
276
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
277
|
+
});
|
|
278
|
+
},
|
|
231
279
|
};
|
|
232
280
|
};
|
|
233
281
|
/**
|
|
@@ -247,6 +295,9 @@ export const LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
247
295
|
convertLeadToDeal(requestParameters) {
|
|
248
296
|
return localVarFp.convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
|
|
249
297
|
},
|
|
298
|
+
convertLeadToDealWithHttpInfo(requestParameters) {
|
|
299
|
+
return localVarFp.convertLeadToDealWithHttpInfo(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
|
|
300
|
+
},
|
|
250
301
|
/**
|
|
251
302
|
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
252
303
|
* @summary Get Lead conversion status
|
|
@@ -257,6 +308,9 @@ export const LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
257
308
|
getLeadConversionStatus(requestParameters) {
|
|
258
309
|
return localVarFp.getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
|
259
310
|
},
|
|
311
|
+
getLeadConversionStatusWithHttpInfo(requestParameters) {
|
|
312
|
+
return localVarFp.getLeadConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
|
313
|
+
},
|
|
260
314
|
/**
|
|
261
315
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
|
262
316
|
* @summary Search leads
|
|
@@ -267,6 +321,9 @@ export const LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
267
321
|
searchLeads(requestParameters) {
|
|
268
322
|
return localVarFp.searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
269
323
|
},
|
|
324
|
+
searchLeadsWithHttpInfo(requestParameters) {
|
|
325
|
+
return localVarFp.searchLeadsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
326
|
+
},
|
|
270
327
|
};
|
|
271
328
|
};
|
|
272
329
|
/**
|
|
@@ -287,6 +344,17 @@ export class LeadsApi extends BaseAPI {
|
|
|
287
344
|
convertLeadToDeal(requestParameters) {
|
|
288
345
|
return LeadsApiFp(this.configuration).convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
|
|
289
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Same as `convertLeadToDeal`, but resolves with the response body together with the HTTP status and headers.
|
|
349
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
350
|
+
* @param {LeadsApiConvertLeadToDealRequest} requestParameters Request parameters.
|
|
351
|
+
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
* @memberof LeadsApi
|
|
354
|
+
*/
|
|
355
|
+
convertLeadToDealWithHttpInfo(requestParameters) {
|
|
356
|
+
return LeadsApiFp(this.configuration).convertLeadToDealWithHttpInfo(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
|
|
357
|
+
}
|
|
290
358
|
/**
|
|
291
359
|
* Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
|
292
360
|
* @summary Get Lead conversion status
|
|
@@ -298,6 +366,17 @@ export class LeadsApi extends BaseAPI {
|
|
|
298
366
|
getLeadConversionStatus(requestParameters) {
|
|
299
367
|
return LeadsApiFp(this.configuration).getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
|
300
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* Same as `getLeadConversionStatus`, but resolves with the response body together with the HTTP status and headers.
|
|
371
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
372
|
+
* @param {LeadsApiGetLeadConversionStatusRequest} requestParameters Request parameters.
|
|
373
|
+
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof LeadsApi
|
|
376
|
+
*/
|
|
377
|
+
getLeadConversionStatusWithHttpInfo(requestParameters) {
|
|
378
|
+
return LeadsApiFp(this.configuration).getLeadConversionStatusWithHttpInfo(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
|
379
|
+
}
|
|
301
380
|
/**
|
|
302
381
|
* Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
|
|
303
382
|
* @summary Search leads
|
|
@@ -309,4 +388,15 @@ export class LeadsApi extends BaseAPI {
|
|
|
309
388
|
searchLeads(requestParameters) {
|
|
310
389
|
return LeadsApiFp(this.configuration).searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
311
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Same as `searchLeads`, but resolves with the response body together with the HTTP status and headers.
|
|
393
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
394
|
+
* @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters.
|
|
395
|
+
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
* @memberof LeadsApi
|
|
398
|
+
*/
|
|
399
|
+
searchLeadsWithHttpInfo(requestParameters) {
|
|
400
|
+
return LeadsApiFp(this.configuration).searchLeadsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
401
|
+
}
|
|
312
402
|
}
|