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 { AddGoalRequest } from '../models';
|
|
16
16
|
import { BasicGoalRequest } from '../models';
|
|
17
17
|
import { DeleteGoalResponse } from '../models';
|
|
@@ -92,6 +92,14 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
94
|
addGoal(AddGoalRequest?: AddGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertGoalResponse>>;
|
|
95
|
+
/**
|
|
96
|
+
* Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
97
|
+
* @summary Add a new goal
|
|
98
|
+
* @param {AddGoalRequest} [AddGoalRequest]
|
|
99
|
+
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
addGoalWithHttpInfo(AddGoalRequest?: AddGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertGoalResponse>>>;
|
|
95
103
|
/**
|
|
96
104
|
* Marks a goal as deleted.
|
|
97
105
|
* @summary Delete existing goal
|
|
@@ -100,6 +108,14 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
100
108
|
* @throws {RequiredError}
|
|
101
109
|
*/
|
|
102
110
|
deleteGoal(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteGoalResponse>>;
|
|
111
|
+
/**
|
|
112
|
+
* Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
113
|
+
* @summary Delete existing goal
|
|
114
|
+
* @param {string} id The ID of the goal
|
|
115
|
+
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
deleteGoalWithHttpInfo(id: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<DeleteGoalResponse>>>;
|
|
103
119
|
/**
|
|
104
120
|
* Gets the progress of a goal for the specified period.
|
|
105
121
|
* @summary Get result of a goal
|
|
@@ -110,6 +126,16 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
110
126
|
* @throws {RequiredError}
|
|
111
127
|
*/
|
|
112
128
|
getGoalResult(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalResultResponse>>;
|
|
129
|
+
/**
|
|
130
|
+
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
131
|
+
* @summary Get result of a goal
|
|
132
|
+
* @param {string} id The ID of the goal that the results are looked for
|
|
133
|
+
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
134
|
+
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
135
|
+
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
getGoalResultWithHttpInfo(id: string, period_start: string, period_end: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalResultResponse>>>;
|
|
113
139
|
/**
|
|
114
140
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
115
141
|
* @summary Find goals
|
|
@@ -130,6 +156,26 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
130
156
|
* @throws {RequiredError}
|
|
131
157
|
*/
|
|
132
158
|
getGoals(type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started', title?: string, is_active?: boolean, assignee_id?: number, assignee_type?: 'person' | 'company' | 'team', expected_outcome_target?: number, expected_outcome_tracking_metric?: 'quantity' | 'sum', expected_outcome_currency_id?: number, type_params_pipeline_id?: Array<number>, type_params_stage_id?: number, type_params_activity_type_id?: Array<number>, period_start?: string, period_end?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetGoalsResponse>>;
|
|
159
|
+
/**
|
|
160
|
+
* Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
|
|
161
|
+
* @summary Find goals
|
|
162
|
+
* @param {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} [type_name] The type of the goal. If provided, everyone\'s goals will be returned.
|
|
163
|
+
* @param {string} [title] The title of the goal
|
|
164
|
+
* @param {boolean} [is_active] Whether the goal is active or not
|
|
165
|
+
* @param {number} [assignee_id] The ID of the user who\'s goal to fetch. When omitted, only your goals will be returned.
|
|
166
|
+
* @param {'person' | 'company' | 'team'} [assignee_type] The type of the goal\'s assignee. If provided, everyone\'s goals will be returned.
|
|
167
|
+
* @param {number} [expected_outcome_target] The numeric value of the outcome. If provided, everyone\'s goals will be returned.
|
|
168
|
+
* @param {'quantity' | 'sum'} [expected_outcome_tracking_metric] The tracking metric of the expected outcome of the goal. If provided, everyone\'s goals will be returned.
|
|
169
|
+
* @param {number} [expected_outcome_currency_id] The numeric ID of the goal\'s currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone\'s goals will be returned.
|
|
170
|
+
* @param {Array<number>} [type_params_pipeline_id] An array of pipeline IDs or `null` for all pipelines. If provided, everyone\'s goals will be returned.
|
|
171
|
+
* @param {number} [type_params_stage_id] The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone\'s goals will be returned.
|
|
172
|
+
* @param {Array<number>} [type_params_activity_type_id] An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone\'s goals will be returned.
|
|
173
|
+
* @param {string} [period_start] The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too.
|
|
174
|
+
* @param {string} [period_end] The end date of the period for which to find goals. Date in format of YYYY-MM-DD.
|
|
175
|
+
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
getGoalsWithHttpInfo(type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started', title?: string, is_active?: boolean, assignee_id?: number, assignee_type?: 'person' | 'company' | 'team', expected_outcome_target?: number, expected_outcome_tracking_metric?: 'quantity' | 'sum', expected_outcome_currency_id?: number, type_params_pipeline_id?: Array<number>, type_params_stage_id?: number, type_params_activity_type_id?: Array<number>, period_start?: string, period_end?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetGoalsResponse>>>;
|
|
133
179
|
/**
|
|
134
180
|
* Updates an existing goal.
|
|
135
181
|
* @summary Update existing goal
|
|
@@ -139,6 +185,15 @@ export declare const GoalsApiFp: (configuration?: Configuration) => {
|
|
|
139
185
|
* @throws {RequiredError}
|
|
140
186
|
*/
|
|
141
187
|
updateGoal(id: string, BasicGoalRequest?: BasicGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpsertGoalResponse>>;
|
|
188
|
+
/**
|
|
189
|
+
* Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
190
|
+
* @summary Update existing goal
|
|
191
|
+
* @param {string} id The ID of the goal
|
|
192
|
+
* @param {BasicGoalRequest} [BasicGoalRequest]
|
|
193
|
+
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
updateGoalWithHttpInfo(id: string, BasicGoalRequest?: BasicGoalRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<UpsertGoalResponse>>>;
|
|
142
197
|
};
|
|
143
198
|
/**
|
|
144
199
|
* GoalsApi - factory interface
|
|
@@ -153,6 +208,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
153
208
|
* @throws {RequiredError}
|
|
154
209
|
*/
|
|
155
210
|
addGoal(requestParameters?: GoalsApiAddGoalRequest): Promise<UpsertGoalResponse>;
|
|
211
|
+
addGoalWithHttpInfo(requestParameters?: GoalsApiAddGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
|
|
156
212
|
/**
|
|
157
213
|
* Marks a goal as deleted.
|
|
158
214
|
* @summary Delete existing goal
|
|
@@ -161,6 +217,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
161
217
|
* @throws {RequiredError}
|
|
162
218
|
*/
|
|
163
219
|
deleteGoal(requestParameters: GoalsApiDeleteGoalRequest): Promise<DeleteGoalResponse>;
|
|
220
|
+
deleteGoalWithHttpInfo(requestParameters: GoalsApiDeleteGoalRequest): Promise<ApiResponse<DeleteGoalResponse>>;
|
|
164
221
|
/**
|
|
165
222
|
* Gets the progress of a goal for the specified period.
|
|
166
223
|
* @summary Get result of a goal
|
|
@@ -169,6 +226,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
169
226
|
* @throws {RequiredError}
|
|
170
227
|
*/
|
|
171
228
|
getGoalResult(requestParameters: GoalsApiGetGoalResultRequest): Promise<GetGoalResultResponse>;
|
|
229
|
+
getGoalResultWithHttpInfo(requestParameters: GoalsApiGetGoalResultRequest): Promise<ApiResponse<GetGoalResultResponse>>;
|
|
172
230
|
/**
|
|
173
231
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
174
232
|
* @summary Find goals
|
|
@@ -177,6 +235,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
177
235
|
* @throws {RequiredError}
|
|
178
236
|
*/
|
|
179
237
|
getGoals(requestParameters?: GoalsApiGetGoalsRequest): Promise<GetGoalsResponse>;
|
|
238
|
+
getGoalsWithHttpInfo(requestParameters?: GoalsApiGetGoalsRequest): Promise<ApiResponse<GetGoalsResponse>>;
|
|
180
239
|
/**
|
|
181
240
|
* Updates an existing goal.
|
|
182
241
|
* @summary Update existing goal
|
|
@@ -185,6 +244,7 @@ export declare const GoalsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
185
244
|
* @throws {RequiredError}
|
|
186
245
|
*/
|
|
187
246
|
updateGoal(requestParameters: GoalsApiUpdateGoalRequest): Promise<UpsertGoalResponse>;
|
|
247
|
+
updateGoalWithHttpInfo(requestParameters: GoalsApiUpdateGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
|
|
188
248
|
};
|
|
189
249
|
/**
|
|
190
250
|
* Request parameters for addGoal operation in GoalsApi.
|
|
@@ -357,6 +417,15 @@ export declare class GoalsApi extends BaseAPI {
|
|
|
357
417
|
* @memberof GoalsApi
|
|
358
418
|
*/
|
|
359
419
|
addGoal(requestParameters?: GoalsApiAddGoalRequest): Promise<UpsertGoalResponse>;
|
|
420
|
+
/**
|
|
421
|
+
* Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
422
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
423
|
+
* @param {GoalsApiAddGoalRequest} requestParameters Request parameters.
|
|
424
|
+
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
* @memberof GoalsApi
|
|
427
|
+
*/
|
|
428
|
+
addGoalWithHttpInfo(requestParameters?: GoalsApiAddGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
|
|
360
429
|
/**
|
|
361
430
|
* Marks a goal as deleted.
|
|
362
431
|
* @summary Delete existing goal
|
|
@@ -366,6 +435,15 @@ export declare class GoalsApi extends BaseAPI {
|
|
|
366
435
|
* @memberof GoalsApi
|
|
367
436
|
*/
|
|
368
437
|
deleteGoal(requestParameters: GoalsApiDeleteGoalRequest): Promise<DeleteGoalResponse>;
|
|
438
|
+
/**
|
|
439
|
+
* Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
440
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
441
|
+
* @param {GoalsApiDeleteGoalRequest} requestParameters Request parameters.
|
|
442
|
+
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
* @memberof GoalsApi
|
|
445
|
+
*/
|
|
446
|
+
deleteGoalWithHttpInfo(requestParameters: GoalsApiDeleteGoalRequest): Promise<ApiResponse<DeleteGoalResponse>>;
|
|
369
447
|
/**
|
|
370
448
|
* Gets the progress of a goal for the specified period.
|
|
371
449
|
* @summary Get result of a goal
|
|
@@ -375,6 +453,15 @@ export declare class GoalsApi extends BaseAPI {
|
|
|
375
453
|
* @memberof GoalsApi
|
|
376
454
|
*/
|
|
377
455
|
getGoalResult(requestParameters: GoalsApiGetGoalResultRequest): Promise<GetGoalResultResponse>;
|
|
456
|
+
/**
|
|
457
|
+
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
458
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
459
|
+
* @param {GoalsApiGetGoalResultRequest} requestParameters Request parameters.
|
|
460
|
+
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof GoalsApi
|
|
463
|
+
*/
|
|
464
|
+
getGoalResultWithHttpInfo(requestParameters: GoalsApiGetGoalResultRequest): Promise<ApiResponse<GetGoalResultResponse>>;
|
|
378
465
|
/**
|
|
379
466
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
380
467
|
* @summary Find goals
|
|
@@ -384,6 +471,15 @@ export declare class GoalsApi extends BaseAPI {
|
|
|
384
471
|
* @memberof GoalsApi
|
|
385
472
|
*/
|
|
386
473
|
getGoals(requestParameters?: GoalsApiGetGoalsRequest): Promise<GetGoalsResponse>;
|
|
474
|
+
/**
|
|
475
|
+
* Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
|
|
476
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
477
|
+
* @param {GoalsApiGetGoalsRequest} requestParameters Request parameters.
|
|
478
|
+
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
* @memberof GoalsApi
|
|
481
|
+
*/
|
|
482
|
+
getGoalsWithHttpInfo(requestParameters?: GoalsApiGetGoalsRequest): Promise<ApiResponse<GetGoalsResponse>>;
|
|
387
483
|
/**
|
|
388
484
|
* Updates an existing goal.
|
|
389
485
|
* @summary Update existing goal
|
|
@@ -393,4 +489,13 @@ export declare class GoalsApi extends BaseAPI {
|
|
|
393
489
|
* @memberof GoalsApi
|
|
394
490
|
*/
|
|
395
491
|
updateGoal(requestParameters: GoalsApiUpdateGoalRequest): Promise<UpsertGoalResponse>;
|
|
492
|
+
/**
|
|
493
|
+
* Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
494
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
495
|
+
* @param {GoalsApiUpdateGoalRequest} requestParameters Request parameters.
|
|
496
|
+
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
* @memberof GoalsApi
|
|
499
|
+
*/
|
|
500
|
+
updateGoalWithHttpInfo(requestParameters: GoalsApiUpdateGoalRequest): Promise<ApiResponse<UpsertGoalResponse>>;
|
|
396
501
|
}
|
|
@@ -301,6 +301,19 @@ const GoalsApiFp = function (configuration) {
|
|
|
301
301
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
|
+
/**
|
|
305
|
+
* Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
306
|
+
* @summary Add a new goal
|
|
307
|
+
* @param {AddGoalRequest} [AddGoalRequest]
|
|
308
|
+
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
addGoalWithHttpInfo(AddGoalRequest) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addGoal(AddGoalRequest);
|
|
314
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
315
|
+
});
|
|
316
|
+
},
|
|
304
317
|
/**
|
|
305
318
|
* Marks a goal as deleted.
|
|
306
319
|
* @summary Delete existing goal
|
|
@@ -314,6 +327,19 @@ const GoalsApiFp = function (configuration) {
|
|
|
314
327
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
315
328
|
});
|
|
316
329
|
},
|
|
330
|
+
/**
|
|
331
|
+
* Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
332
|
+
* @summary Delete existing goal
|
|
333
|
+
* @param {string} id The ID of the goal
|
|
334
|
+
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
deleteGoalWithHttpInfo(id) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGoal(id);
|
|
340
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
341
|
+
});
|
|
342
|
+
},
|
|
317
343
|
/**
|
|
318
344
|
* Gets the progress of a goal for the specified period.
|
|
319
345
|
* @summary Get result of a goal
|
|
@@ -329,6 +355,21 @@ const GoalsApiFp = function (configuration) {
|
|
|
329
355
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
330
356
|
});
|
|
331
357
|
},
|
|
358
|
+
/**
|
|
359
|
+
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
360
|
+
* @summary Get result of a goal
|
|
361
|
+
* @param {string} id The ID of the goal that the results are looked for
|
|
362
|
+
* @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
|
|
363
|
+
* @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.
|
|
364
|
+
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
getGoalResultWithHttpInfo(id, period_start, period_end) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoalResult(id, period_start, period_end);
|
|
370
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
371
|
+
});
|
|
372
|
+
},
|
|
332
373
|
/**
|
|
333
374
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
334
375
|
* @summary Find goals
|
|
@@ -354,6 +395,31 @@ const GoalsApiFp = function (configuration) {
|
|
|
354
395
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
355
396
|
});
|
|
356
397
|
},
|
|
398
|
+
/**
|
|
399
|
+
* Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
|
|
400
|
+
* @summary Find goals
|
|
401
|
+
* @param {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} [type_name] The type of the goal. If provided, everyone\'s goals will be returned.
|
|
402
|
+
* @param {string} [title] The title of the goal
|
|
403
|
+
* @param {boolean} [is_active] Whether the goal is active or not
|
|
404
|
+
* @param {number} [assignee_id] The ID of the user who\'s goal to fetch. When omitted, only your goals will be returned.
|
|
405
|
+
* @param {'person' | 'company' | 'team'} [assignee_type] The type of the goal\'s assignee. If provided, everyone\'s goals will be returned.
|
|
406
|
+
* @param {number} [expected_outcome_target] The numeric value of the outcome. If provided, everyone\'s goals will be returned.
|
|
407
|
+
* @param {'quantity' | 'sum'} [expected_outcome_tracking_metric] The tracking metric of the expected outcome of the goal. If provided, everyone\'s goals will be returned.
|
|
408
|
+
* @param {number} [expected_outcome_currency_id] The numeric ID of the goal\'s currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone\'s goals will be returned.
|
|
409
|
+
* @param {Array<number>} [type_params_pipeline_id] An array of pipeline IDs or `null` for all pipelines. If provided, everyone\'s goals will be returned.
|
|
410
|
+
* @param {number} [type_params_stage_id] The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone\'s goals will be returned.
|
|
411
|
+
* @param {Array<number>} [type_params_activity_type_id] An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone\'s goals will be returned.
|
|
412
|
+
* @param {string} [period_start] The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too.
|
|
413
|
+
* @param {string} [period_end] The end date of the period for which to find goals. Date in format of YYYY-MM-DD.
|
|
414
|
+
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
getGoalsWithHttpInfo(type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGoals(type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end);
|
|
420
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
421
|
+
});
|
|
422
|
+
},
|
|
357
423
|
/**
|
|
358
424
|
* Updates an existing goal.
|
|
359
425
|
* @summary Update existing goal
|
|
@@ -368,6 +434,20 @@ const GoalsApiFp = function (configuration) {
|
|
|
368
434
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
369
435
|
});
|
|
370
436
|
},
|
|
437
|
+
/**
|
|
438
|
+
* Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
439
|
+
* @summary Update existing goal
|
|
440
|
+
* @param {string} id The ID of the goal
|
|
441
|
+
* @param {BasicGoalRequest} [BasicGoalRequest]
|
|
442
|
+
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
updateGoalWithHttpInfo(id, BasicGoalRequest) {
|
|
446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateGoal(id, BasicGoalRequest);
|
|
448
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
449
|
+
});
|
|
450
|
+
},
|
|
371
451
|
};
|
|
372
452
|
};
|
|
373
453
|
exports.GoalsApiFp = GoalsApiFp;
|
|
@@ -388,6 +468,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
388
468
|
addGoal(requestParameters = {}) {
|
|
389
469
|
return localVarFp.addGoal(requestParameters.AddGoalRequest).then((request) => request(axios, basePath));
|
|
390
470
|
},
|
|
471
|
+
addGoalWithHttpInfo(requestParameters = {}) {
|
|
472
|
+
return localVarFp.addGoalWithHttpInfo(requestParameters.AddGoalRequest).then((request) => request(axios, basePath));
|
|
473
|
+
},
|
|
391
474
|
/**
|
|
392
475
|
* Marks a goal as deleted.
|
|
393
476
|
* @summary Delete existing goal
|
|
@@ -398,6 +481,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
398
481
|
deleteGoal(requestParameters) {
|
|
399
482
|
return localVarFp.deleteGoal(requestParameters.id).then((request) => request(axios, basePath));
|
|
400
483
|
},
|
|
484
|
+
deleteGoalWithHttpInfo(requestParameters) {
|
|
485
|
+
return localVarFp.deleteGoalWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
486
|
+
},
|
|
401
487
|
/**
|
|
402
488
|
* Gets the progress of a goal for the specified period.
|
|
403
489
|
* @summary Get result of a goal
|
|
@@ -408,6 +494,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
408
494
|
getGoalResult(requestParameters) {
|
|
409
495
|
return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
410
496
|
},
|
|
497
|
+
getGoalResultWithHttpInfo(requestParameters) {
|
|
498
|
+
return localVarFp.getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
499
|
+
},
|
|
411
500
|
/**
|
|
412
501
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
413
502
|
* @summary Find goals
|
|
@@ -418,6 +507,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
418
507
|
getGoals(requestParameters = {}) {
|
|
419
508
|
return localVarFp.getGoals(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
420
509
|
},
|
|
510
|
+
getGoalsWithHttpInfo(requestParameters = {}) {
|
|
511
|
+
return localVarFp.getGoalsWithHttpInfo(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(axios, basePath));
|
|
512
|
+
},
|
|
421
513
|
/**
|
|
422
514
|
* Updates an existing goal.
|
|
423
515
|
* @summary Update existing goal
|
|
@@ -428,6 +520,9 @@ const GoalsApiFactory = function (configuration, basePath, axios) {
|
|
|
428
520
|
updateGoal(requestParameters) {
|
|
429
521
|
return localVarFp.updateGoal(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(axios, basePath));
|
|
430
522
|
},
|
|
523
|
+
updateGoalWithHttpInfo(requestParameters) {
|
|
524
|
+
return localVarFp.updateGoalWithHttpInfo(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(axios, basePath));
|
|
525
|
+
},
|
|
431
526
|
};
|
|
432
527
|
};
|
|
433
528
|
exports.GoalsApiFactory = GoalsApiFactory;
|
|
@@ -449,6 +544,17 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
449
544
|
addGoal(requestParameters = {}) {
|
|
450
545
|
return (0, exports.GoalsApiFp)(this.configuration).addGoal(requestParameters.AddGoalRequest).then((request) => request(this.axios, this.basePath));
|
|
451
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* Same as `addGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
549
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
550
|
+
* @param {GoalsApiAddGoalRequest} requestParameters Request parameters.
|
|
551
|
+
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
* @memberof GoalsApi
|
|
554
|
+
*/
|
|
555
|
+
addGoalWithHttpInfo(requestParameters = {}) {
|
|
556
|
+
return (0, exports.GoalsApiFp)(this.configuration).addGoalWithHttpInfo(requestParameters.AddGoalRequest).then((request) => request(this.axios, this.basePath));
|
|
557
|
+
}
|
|
452
558
|
/**
|
|
453
559
|
* Marks a goal as deleted.
|
|
454
560
|
* @summary Delete existing goal
|
|
@@ -460,6 +566,17 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
460
566
|
deleteGoal(requestParameters) {
|
|
461
567
|
return (0, exports.GoalsApiFp)(this.configuration).deleteGoal(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
462
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* Same as `deleteGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
571
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
572
|
+
* @param {GoalsApiDeleteGoalRequest} requestParameters Request parameters.
|
|
573
|
+
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
* @memberof GoalsApi
|
|
576
|
+
*/
|
|
577
|
+
deleteGoalWithHttpInfo(requestParameters) {
|
|
578
|
+
return (0, exports.GoalsApiFp)(this.configuration).deleteGoalWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
}
|
|
463
580
|
/**
|
|
464
581
|
* Gets the progress of a goal for the specified period.
|
|
465
582
|
* @summary Get result of a goal
|
|
@@ -471,6 +588,17 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
471
588
|
getGoalResult(requestParameters) {
|
|
472
589
|
return (0, exports.GoalsApiFp)(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
473
590
|
}
|
|
591
|
+
/**
|
|
592
|
+
* Same as `getGoalResult`, but resolves with the response body together with the HTTP status and headers.
|
|
593
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
594
|
+
* @param {GoalsApiGetGoalResultRequest} requestParameters Request parameters.
|
|
595
|
+
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
* @memberof GoalsApi
|
|
598
|
+
*/
|
|
599
|
+
getGoalResultWithHttpInfo(requestParameters) {
|
|
600
|
+
return (0, exports.GoalsApiFp)(this.configuration).getGoalResultWithHttpInfo(requestParameters.id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
601
|
+
}
|
|
474
602
|
/**
|
|
475
603
|
* Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
|
|
476
604
|
* @summary Find goals
|
|
@@ -482,6 +610,17 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
482
610
|
getGoals(requestParameters = {}) {
|
|
483
611
|
return (0, exports.GoalsApiFp)(this.configuration).getGoals(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
484
612
|
}
|
|
613
|
+
/**
|
|
614
|
+
* Same as `getGoals`, but resolves with the response body together with the HTTP status and headers.
|
|
615
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
616
|
+
* @param {GoalsApiGetGoalsRequest} requestParameters Request parameters.
|
|
617
|
+
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
* @memberof GoalsApi
|
|
620
|
+
*/
|
|
621
|
+
getGoalsWithHttpInfo(requestParameters = {}) {
|
|
622
|
+
return (0, exports.GoalsApiFp)(this.configuration).getGoalsWithHttpInfo(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end).then((request) => request(this.axios, this.basePath));
|
|
623
|
+
}
|
|
485
624
|
/**
|
|
486
625
|
* Updates an existing goal.
|
|
487
626
|
* @summary Update existing goal
|
|
@@ -493,5 +632,16 @@ class GoalsApi extends base_1.BaseAPI {
|
|
|
493
632
|
updateGoal(requestParameters) {
|
|
494
633
|
return (0, exports.GoalsApiFp)(this.configuration).updateGoal(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(this.axios, this.basePath));
|
|
495
634
|
}
|
|
635
|
+
/**
|
|
636
|
+
* Same as `updateGoal`, but resolves with the response body together with the HTTP status and headers.
|
|
637
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
638
|
+
* @param {GoalsApiUpdateGoalRequest} requestParameters Request parameters.
|
|
639
|
+
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
* @memberof GoalsApi
|
|
642
|
+
*/
|
|
643
|
+
updateGoalWithHttpInfo(requestParameters) {
|
|
644
|
+
return (0, exports.GoalsApiFp)(this.configuration).updateGoalWithHttpInfo(requestParameters.id, requestParameters.BasicGoalRequest).then((request) => request(this.axios, this.basePath));
|
|
645
|
+
}
|
|
496
646
|
}
|
|
497
647
|
exports.GoalsApi = GoalsApi;
|
|
@@ -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 { GetFieldsResponse } from '../models';
|
|
16
16
|
/**
|
|
17
17
|
* LeadFieldsApi - axios parameter creator
|
|
@@ -42,6 +42,15 @@ export declare const LeadFieldsApiFp: (configuration?: Configuration) => {
|
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
44
|
getLeadFields(start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetFieldsResponse>>;
|
|
45
|
+
/**
|
|
46
|
+
* Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
|
|
47
|
+
* @summary Get all lead fields
|
|
48
|
+
* @param {number} [start] Pagination start
|
|
49
|
+
* @param {number} [limit] Items shown per page
|
|
50
|
+
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
getLeadFieldsWithHttpInfo(start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetFieldsResponse>>>;
|
|
45
54
|
};
|
|
46
55
|
/**
|
|
47
56
|
* LeadFieldsApi - factory interface
|
|
@@ -56,6 +65,7 @@ export declare const LeadFieldsApiFactory: (configuration?: Configuration, baseP
|
|
|
56
65
|
* @throws {RequiredError}
|
|
57
66
|
*/
|
|
58
67
|
getLeadFields(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<GetFieldsResponse>;
|
|
68
|
+
getLeadFieldsWithHttpInfo(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<ApiResponse<GetFieldsResponse>>;
|
|
59
69
|
};
|
|
60
70
|
/**
|
|
61
71
|
* Request parameters for getLeadFields operation in LeadFieldsApi.
|
|
@@ -92,4 +102,13 @@ export declare class LeadFieldsApi extends BaseAPI {
|
|
|
92
102
|
* @memberof LeadFieldsApi
|
|
93
103
|
*/
|
|
94
104
|
getLeadFields(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<GetFieldsResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
|
|
107
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
108
|
+
* @param {LeadFieldsApiGetLeadFieldsRequest} requestParameters Request parameters.
|
|
109
|
+
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
* @memberof LeadFieldsApi
|
|
112
|
+
*/
|
|
113
|
+
getLeadFieldsWithHttpInfo(requestParameters?: LeadFieldsApiGetLeadFieldsRequest): Promise<ApiResponse<GetFieldsResponse>>;
|
|
95
114
|
}
|
|
@@ -100,6 +100,20 @@ const LeadFieldsApiFp = function (configuration) {
|
|
|
100
100
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
|
+
/**
|
|
104
|
+
* Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
|
|
105
|
+
* @summary Get all lead fields
|
|
106
|
+
* @param {number} [start] Pagination start
|
|
107
|
+
* @param {number} [limit] Items shown per page
|
|
108
|
+
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
getLeadFieldsWithHttpInfo(start, limit) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeadFields(start, limit);
|
|
114
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
115
|
+
});
|
|
116
|
+
},
|
|
103
117
|
};
|
|
104
118
|
};
|
|
105
119
|
exports.LeadFieldsApiFp = LeadFieldsApiFp;
|
|
@@ -120,6 +134,9 @@ const LeadFieldsApiFactory = function (configuration, basePath, axios) {
|
|
|
120
134
|
getLeadFields(requestParameters = {}) {
|
|
121
135
|
return localVarFp.getLeadFields(requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
|
|
122
136
|
},
|
|
137
|
+
getLeadFieldsWithHttpInfo(requestParameters = {}) {
|
|
138
|
+
return localVarFp.getLeadFieldsWithHttpInfo(requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
|
|
139
|
+
},
|
|
123
140
|
};
|
|
124
141
|
};
|
|
125
142
|
exports.LeadFieldsApiFactory = LeadFieldsApiFactory;
|
|
@@ -141,5 +158,16 @@ class LeadFieldsApi extends base_1.BaseAPI {
|
|
|
141
158
|
getLeadFields(requestParameters = {}) {
|
|
142
159
|
return (0, exports.LeadFieldsApiFp)(this.configuration).getLeadFields(requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
143
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Same as `getLeadFields`, but resolves with the response body together with the HTTP status and headers.
|
|
163
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
164
|
+
* @param {LeadFieldsApiGetLeadFieldsRequest} requestParameters Request parameters.
|
|
165
|
+
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
* @memberof LeadFieldsApi
|
|
168
|
+
*/
|
|
169
|
+
getLeadFieldsWithHttpInfo(requestParameters = {}) {
|
|
170
|
+
return (0, exports.LeadFieldsApiFp)(this.configuration).getLeadFieldsWithHttpInfo(requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
171
|
+
}
|
|
144
172
|
}
|
|
145
173
|
exports.LeadFieldsApi = LeadFieldsApi;
|