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
|
@@ -819,6 +819,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
819
819
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
820
820
|
});
|
|
821
821
|
},
|
|
822
|
+
/**
|
|
823
|
+
* Same as `addProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
824
|
+
* @summary Add a product
|
|
825
|
+
* @param {AddProductRequest} [AddProductRequest]
|
|
826
|
+
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
addProductWithHttpInfo(AddProductRequest) {
|
|
830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProduct(AddProductRequest);
|
|
832
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
833
|
+
});
|
|
834
|
+
},
|
|
822
835
|
/**
|
|
823
836
|
* Adds a user as a follower to the product.
|
|
824
837
|
* @summary Add a follower to a product
|
|
@@ -833,6 +846,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
833
846
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
834
847
|
});
|
|
835
848
|
},
|
|
849
|
+
/**
|
|
850
|
+
* Same as `addProductFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
851
|
+
* @summary Add a follower to a product
|
|
852
|
+
* @param {number} id The ID of the product
|
|
853
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
|
854
|
+
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
*/
|
|
857
|
+
addProductFollowerWithHttpInfo(id, AddDealFollowerRequest) {
|
|
858
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
859
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProductFollower(id, AddDealFollowerRequest);
|
|
860
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
861
|
+
});
|
|
862
|
+
},
|
|
836
863
|
/**
|
|
837
864
|
* Adds a new product variation.
|
|
838
865
|
* @summary Add a product variation
|
|
@@ -847,6 +874,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
847
874
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
848
875
|
});
|
|
849
876
|
},
|
|
877
|
+
/**
|
|
878
|
+
* Same as `addProductVariation`, but resolves with the response body together with the HTTP status and headers.
|
|
879
|
+
* @summary Add a product variation
|
|
880
|
+
* @param {number} id The ID of the product
|
|
881
|
+
* @param {AddProductVariationRequest} [AddProductVariationRequest]
|
|
882
|
+
|
|
883
|
+
* @throws {RequiredError}
|
|
884
|
+
*/
|
|
885
|
+
addProductVariationWithHttpInfo(id, AddProductVariationRequest) {
|
|
886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
887
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProductVariation(id, AddProductVariationRequest);
|
|
888
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
889
|
+
});
|
|
890
|
+
},
|
|
850
891
|
/**
|
|
851
892
|
* Marks a product as deleted. After 30 days, the product will be permanently deleted.
|
|
852
893
|
* @summary Delete a product
|
|
@@ -860,6 +901,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
860
901
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
861
902
|
});
|
|
862
903
|
},
|
|
904
|
+
/**
|
|
905
|
+
* Same as `deleteProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
906
|
+
* @summary Delete a product
|
|
907
|
+
* @param {number} id The ID of the product
|
|
908
|
+
|
|
909
|
+
* @throws {RequiredError}
|
|
910
|
+
*/
|
|
911
|
+
deleteProductWithHttpInfo(id) {
|
|
912
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProduct(id);
|
|
914
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
915
|
+
});
|
|
916
|
+
},
|
|
863
917
|
/**
|
|
864
918
|
* Deletes a user follower from the product.
|
|
865
919
|
* @summary Delete a follower from a product
|
|
@@ -874,6 +928,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
874
928
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
875
929
|
});
|
|
876
930
|
},
|
|
931
|
+
/**
|
|
932
|
+
* Same as `deleteProductFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
933
|
+
* @summary Delete a follower from a product
|
|
934
|
+
* @param {number} id The ID of the product
|
|
935
|
+
* @param {number} follower_id The ID of the following user
|
|
936
|
+
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
deleteProductFollowerWithHttpInfo(id, follower_id) {
|
|
940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductFollower(id, follower_id);
|
|
942
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
943
|
+
});
|
|
944
|
+
},
|
|
877
945
|
/**
|
|
878
946
|
* Deletes the image of a product.
|
|
879
947
|
* @summary Delete an image of a product
|
|
@@ -887,6 +955,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
887
955
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
888
956
|
});
|
|
889
957
|
},
|
|
958
|
+
/**
|
|
959
|
+
* Same as `deleteProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
960
|
+
* @summary Delete an image of a product
|
|
961
|
+
* @param {number} id The ID of the product
|
|
962
|
+
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
deleteProductImageWithHttpInfo(id) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductImage(id);
|
|
968
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
969
|
+
});
|
|
970
|
+
},
|
|
890
971
|
/**
|
|
891
972
|
* Deletes a product variation.
|
|
892
973
|
* @summary Delete a product variation
|
|
@@ -901,6 +982,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
901
982
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
902
983
|
});
|
|
903
984
|
},
|
|
985
|
+
/**
|
|
986
|
+
* Same as `deleteProductVariation`, but resolves with the response body together with the HTTP status and headers.
|
|
987
|
+
* @summary Delete a product variation
|
|
988
|
+
* @param {number} id The ID of the product
|
|
989
|
+
* @param {number} product_variation_id The ID of the product variation
|
|
990
|
+
|
|
991
|
+
* @throws {RequiredError}
|
|
992
|
+
*/
|
|
993
|
+
deleteProductVariationWithHttpInfo(id, product_variation_id) {
|
|
994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
995
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductVariation(id, product_variation_id);
|
|
996
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
997
|
+
});
|
|
998
|
+
},
|
|
904
999
|
/**
|
|
905
1000
|
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
906
1001
|
* @summary Duplicate a product
|
|
@@ -914,6 +1009,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
914
1009
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
915
1010
|
});
|
|
916
1011
|
},
|
|
1012
|
+
/**
|
|
1013
|
+
* Same as `duplicateProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1014
|
+
* @summary Duplicate a product
|
|
1015
|
+
* @param {number} id The ID of the product
|
|
1016
|
+
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
*/
|
|
1019
|
+
duplicateProductWithHttpInfo(id) {
|
|
1020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateProduct(id);
|
|
1022
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1023
|
+
});
|
|
1024
|
+
},
|
|
917
1025
|
/**
|
|
918
1026
|
* Returns data about a specific product.
|
|
919
1027
|
* @summary Get one product
|
|
@@ -927,6 +1035,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
927
1035
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
928
1036
|
});
|
|
929
1037
|
},
|
|
1038
|
+
/**
|
|
1039
|
+
* Same as `getProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1040
|
+
* @summary Get one product
|
|
1041
|
+
* @param {number} id The ID of the product
|
|
1042
|
+
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
getProductWithHttpInfo(id) {
|
|
1046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1047
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProduct(id);
|
|
1048
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1049
|
+
});
|
|
1050
|
+
},
|
|
930
1051
|
/**
|
|
931
1052
|
* Lists users who are following the product.
|
|
932
1053
|
* @summary List followers of a product
|
|
@@ -942,6 +1063,21 @@ export const ProductsApiFp = function (configuration) {
|
|
|
942
1063
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
943
1064
|
});
|
|
944
1065
|
},
|
|
1066
|
+
/**
|
|
1067
|
+
* Same as `getProductFollowers`, but resolves with the response body together with the HTTP status and headers.
|
|
1068
|
+
* @summary List followers of a product
|
|
1069
|
+
* @param {number} id The ID of the product
|
|
1070
|
+
* @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.
|
|
1071
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1072
|
+
|
|
1073
|
+
* @throws {RequiredError}
|
|
1074
|
+
*/
|
|
1075
|
+
getProductFollowersWithHttpInfo(id, limit, cursor) {
|
|
1076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1077
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowers(id, limit, cursor);
|
|
1078
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1079
|
+
});
|
|
1080
|
+
},
|
|
945
1081
|
/**
|
|
946
1082
|
* Lists changelogs about users have followed the product.
|
|
947
1083
|
* @summary List followers changelog of a product
|
|
@@ -957,6 +1093,21 @@ export const ProductsApiFp = function (configuration) {
|
|
|
957
1093
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
958
1094
|
});
|
|
959
1095
|
},
|
|
1096
|
+
/**
|
|
1097
|
+
* Same as `getProductFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
|
|
1098
|
+
* @summary List followers changelog of a product
|
|
1099
|
+
* @param {number} id The ID of the product
|
|
1100
|
+
* @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.
|
|
1101
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1102
|
+
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
*/
|
|
1105
|
+
getProductFollowersChangelogWithHttpInfo(id, limit, cursor) {
|
|
1106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductFollowersChangelog(id, limit, cursor);
|
|
1108
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1109
|
+
});
|
|
1110
|
+
},
|
|
960
1111
|
/**
|
|
961
1112
|
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
|
962
1113
|
* @summary Get image of a product
|
|
@@ -970,6 +1121,19 @@ export const ProductsApiFp = function (configuration) {
|
|
|
970
1121
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
971
1122
|
});
|
|
972
1123
|
},
|
|
1124
|
+
/**
|
|
1125
|
+
* Same as `getProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
1126
|
+
* @summary Get image of a product
|
|
1127
|
+
* @param {number} id The ID of the product
|
|
1128
|
+
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
getProductImageWithHttpInfo(id) {
|
|
1132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1133
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductImage(id);
|
|
1134
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1135
|
+
});
|
|
1136
|
+
},
|
|
973
1137
|
/**
|
|
974
1138
|
* Returns data about all product variations.
|
|
975
1139
|
* @summary Get all product variations
|
|
@@ -985,6 +1149,21 @@ export const ProductsApiFp = function (configuration) {
|
|
|
985
1149
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
986
1150
|
});
|
|
987
1151
|
},
|
|
1152
|
+
/**
|
|
1153
|
+
* Same as `getProductVariations`, but resolves with the response body together with the HTTP status and headers.
|
|
1154
|
+
* @summary Get all product variations
|
|
1155
|
+
* @param {number} id The ID of the product
|
|
1156
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1157
|
+
* @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.
|
|
1158
|
+
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
*/
|
|
1161
|
+
getProductVariationsWithHttpInfo(id, cursor, limit) {
|
|
1162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductVariations(id, cursor, limit);
|
|
1164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1165
|
+
});
|
|
1166
|
+
},
|
|
988
1167
|
/**
|
|
989
1168
|
* Returns data about all products.
|
|
990
1169
|
* @summary Get all products
|
|
@@ -1006,6 +1185,27 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1006
1185
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1007
1186
|
});
|
|
1008
1187
|
},
|
|
1188
|
+
/**
|
|
1189
|
+
* Same as `getProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
1190
|
+
* @summary Get all products
|
|
1191
|
+
* @param {number} [owner_id] If supplied, only products owned by the given user will be returned
|
|
1192
|
+
* @param {Set<number>} [ids] Optional comma separated array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
|
1193
|
+
* @param {Set<string>} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
|
|
1194
|
+
* @param {number} [filter_id] The ID of the filter to use
|
|
1195
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1196
|
+
* @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.
|
|
1197
|
+
* @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `name`, `add_time`, `update_time`.
|
|
1198
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
1199
|
+
* @param {string} [updated_since] If set, only products with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
|
1200
|
+
|
|
1201
|
+
* @throws {RequiredError}
|
|
1202
|
+
*/
|
|
1203
|
+
getProductsWithHttpInfo(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since) {
|
|
1204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1205
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProducts(owner_id, ids, custom_fields, filter_id, cursor, limit, sort_by, sort_direction, updated_since);
|
|
1206
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1207
|
+
});
|
|
1208
|
+
},
|
|
1009
1209
|
/**
|
|
1010
1210
|
* Searches all products by name, code 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.
|
|
1011
1211
|
* @summary Search products
|
|
@@ -1024,6 +1224,24 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1024
1224
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1025
1225
|
});
|
|
1026
1226
|
},
|
|
1227
|
+
/**
|
|
1228
|
+
* Same as `searchProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
1229
|
+
* @summary Search products
|
|
1230
|
+
* @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.
|
|
1231
|
+
* @param {Set<'code' | 'custom_fields' | 'name'>} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. 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>.
|
|
1232
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
1233
|
+
* @param {Set<'product.price'>} [include_fields] Supports including optional fields in the results which are not provided by default
|
|
1234
|
+
* @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.
|
|
1235
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1236
|
+
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
searchProductsWithHttpInfo(term, fields, exact_match, include_fields, limit, cursor) {
|
|
1240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1241
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchProducts(term, fields, exact_match, include_fields, limit, cursor);
|
|
1242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1243
|
+
});
|
|
1244
|
+
},
|
|
1027
1245
|
/**
|
|
1028
1246
|
* Updates product data.
|
|
1029
1247
|
* @summary Update a product
|
|
@@ -1038,6 +1256,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1038
1256
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1039
1257
|
});
|
|
1040
1258
|
},
|
|
1259
|
+
/**
|
|
1260
|
+
* Same as `updateProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1261
|
+
* @summary Update a product
|
|
1262
|
+
* @param {number} id The ID of the product
|
|
1263
|
+
* @param {UpdateProductRequest} [UpdateProductRequest]
|
|
1264
|
+
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
*/
|
|
1267
|
+
updateProductWithHttpInfo(id, UpdateProductRequest) {
|
|
1268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(id, UpdateProductRequest);
|
|
1270
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1271
|
+
});
|
|
1272
|
+
},
|
|
1041
1273
|
/**
|
|
1042
1274
|
* Updates the image of a product.
|
|
1043
1275
|
* @summary Update an image for a product
|
|
@@ -1052,6 +1284,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1052
1284
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1053
1285
|
});
|
|
1054
1286
|
},
|
|
1287
|
+
/**
|
|
1288
|
+
* Same as `updateProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
1289
|
+
* @summary Update an image for a product
|
|
1290
|
+
* @param {number} id The ID of the product
|
|
1291
|
+
* @param {File} data One image supplied in the multipart/form-data encoding
|
|
1292
|
+
|
|
1293
|
+
* @throws {RequiredError}
|
|
1294
|
+
*/
|
|
1295
|
+
updateProductImageWithHttpInfo(id, data) {
|
|
1296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1297
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductImage(id, data);
|
|
1298
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1299
|
+
});
|
|
1300
|
+
},
|
|
1055
1301
|
/**
|
|
1056
1302
|
* Updates product variation data.
|
|
1057
1303
|
* @summary Update a product variation
|
|
@@ -1067,6 +1313,21 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1067
1313
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1068
1314
|
});
|
|
1069
1315
|
},
|
|
1316
|
+
/**
|
|
1317
|
+
* Same as `updateProductVariation`, but resolves with the response body together with the HTTP status and headers.
|
|
1318
|
+
* @summary Update a product variation
|
|
1319
|
+
* @param {number} id The ID of the product
|
|
1320
|
+
* @param {number} product_variation_id The ID of the product variation
|
|
1321
|
+
* @param {UpdateProductVariationRequest} [UpdateProductVariationRequest]
|
|
1322
|
+
|
|
1323
|
+
* @throws {RequiredError}
|
|
1324
|
+
*/
|
|
1325
|
+
updateProductVariationWithHttpInfo(id, product_variation_id, UpdateProductVariationRequest) {
|
|
1326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductVariation(id, product_variation_id, UpdateProductVariationRequest);
|
|
1328
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1329
|
+
});
|
|
1330
|
+
},
|
|
1070
1331
|
/**
|
|
1071
1332
|
* Uploads an image for a product.
|
|
1072
1333
|
* @summary Upload an image for a product
|
|
@@ -1081,6 +1342,20 @@ export const ProductsApiFp = function (configuration) {
|
|
|
1081
1342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1082
1343
|
});
|
|
1083
1344
|
},
|
|
1345
|
+
/**
|
|
1346
|
+
* Same as `uploadProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
1347
|
+
* @summary Upload an image for a product
|
|
1348
|
+
* @param {number} id The ID of the product
|
|
1349
|
+
* @param {File} data One image supplied in the multipart/form-data encoding
|
|
1350
|
+
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
*/
|
|
1353
|
+
uploadProductImageWithHttpInfo(id, data) {
|
|
1354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadProductImage(id, data);
|
|
1356
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration, true);
|
|
1357
|
+
});
|
|
1358
|
+
},
|
|
1084
1359
|
};
|
|
1085
1360
|
};
|
|
1086
1361
|
/**
|
|
@@ -1100,6 +1375,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1100
1375
|
addProduct(requestParameters = {}) {
|
|
1101
1376
|
return localVarFp.addProduct(requestParameters.AddProductRequest).then((request) => request(axios, basePath));
|
|
1102
1377
|
},
|
|
1378
|
+
addProductWithHttpInfo(requestParameters = {}) {
|
|
1379
|
+
return localVarFp.addProductWithHttpInfo(requestParameters.AddProductRequest).then((request) => request(axios, basePath));
|
|
1380
|
+
},
|
|
1103
1381
|
/**
|
|
1104
1382
|
* Adds a user as a follower to the product.
|
|
1105
1383
|
* @summary Add a follower to a product
|
|
@@ -1110,6 +1388,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1110
1388
|
addProductFollower(requestParameters) {
|
|
1111
1389
|
return localVarFp.addProductFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
|
1112
1390
|
},
|
|
1391
|
+
addProductFollowerWithHttpInfo(requestParameters) {
|
|
1392
|
+
return localVarFp.addProductFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
|
1393
|
+
},
|
|
1113
1394
|
/**
|
|
1114
1395
|
* Adds a new product variation.
|
|
1115
1396
|
* @summary Add a product variation
|
|
@@ -1120,6 +1401,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1120
1401
|
addProductVariation(requestParameters) {
|
|
1121
1402
|
return localVarFp.addProductVariation(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(axios, basePath));
|
|
1122
1403
|
},
|
|
1404
|
+
addProductVariationWithHttpInfo(requestParameters) {
|
|
1405
|
+
return localVarFp.addProductVariationWithHttpInfo(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(axios, basePath));
|
|
1406
|
+
},
|
|
1123
1407
|
/**
|
|
1124
1408
|
* Marks a product as deleted. After 30 days, the product will be permanently deleted.
|
|
1125
1409
|
* @summary Delete a product
|
|
@@ -1130,6 +1414,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1130
1414
|
deleteProduct(requestParameters) {
|
|
1131
1415
|
return localVarFp.deleteProduct(requestParameters.id).then((request) => request(axios, basePath));
|
|
1132
1416
|
},
|
|
1417
|
+
deleteProductWithHttpInfo(requestParameters) {
|
|
1418
|
+
return localVarFp.deleteProductWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1419
|
+
},
|
|
1133
1420
|
/**
|
|
1134
1421
|
* Deletes a user follower from the product.
|
|
1135
1422
|
* @summary Delete a follower from a product
|
|
@@ -1140,6 +1427,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1140
1427
|
deleteProductFollower(requestParameters) {
|
|
1141
1428
|
return localVarFp.deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
1142
1429
|
},
|
|
1430
|
+
deleteProductFollowerWithHttpInfo(requestParameters) {
|
|
1431
|
+
return localVarFp.deleteProductFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
|
1432
|
+
},
|
|
1143
1433
|
/**
|
|
1144
1434
|
* Deletes the image of a product.
|
|
1145
1435
|
* @summary Delete an image of a product
|
|
@@ -1150,6 +1440,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1150
1440
|
deleteProductImage(requestParameters) {
|
|
1151
1441
|
return localVarFp.deleteProductImage(requestParameters.id).then((request) => request(axios, basePath));
|
|
1152
1442
|
},
|
|
1443
|
+
deleteProductImageWithHttpInfo(requestParameters) {
|
|
1444
|
+
return localVarFp.deleteProductImageWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1445
|
+
},
|
|
1153
1446
|
/**
|
|
1154
1447
|
* Deletes a product variation.
|
|
1155
1448
|
* @summary Delete a product variation
|
|
@@ -1160,6 +1453,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1160
1453
|
deleteProductVariation(requestParameters) {
|
|
1161
1454
|
return localVarFp.deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(axios, basePath));
|
|
1162
1455
|
},
|
|
1456
|
+
deleteProductVariationWithHttpInfo(requestParameters) {
|
|
1457
|
+
return localVarFp.deleteProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id).then((request) => request(axios, basePath));
|
|
1458
|
+
},
|
|
1163
1459
|
/**
|
|
1164
1460
|
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1165
1461
|
* @summary Duplicate a product
|
|
@@ -1170,6 +1466,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1170
1466
|
duplicateProduct(requestParameters) {
|
|
1171
1467
|
return localVarFp.duplicateProduct(requestParameters.id).then((request) => request(axios, basePath));
|
|
1172
1468
|
},
|
|
1469
|
+
duplicateProductWithHttpInfo(requestParameters) {
|
|
1470
|
+
return localVarFp.duplicateProductWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1471
|
+
},
|
|
1173
1472
|
/**
|
|
1174
1473
|
* Returns data about a specific product.
|
|
1175
1474
|
* @summary Get one product
|
|
@@ -1180,6 +1479,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1180
1479
|
getProduct(requestParameters) {
|
|
1181
1480
|
return localVarFp.getProduct(requestParameters.id).then((request) => request(axios, basePath));
|
|
1182
1481
|
},
|
|
1482
|
+
getProductWithHttpInfo(requestParameters) {
|
|
1483
|
+
return localVarFp.getProductWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1484
|
+
},
|
|
1183
1485
|
/**
|
|
1184
1486
|
* Lists users who are following the product.
|
|
1185
1487
|
* @summary List followers of a product
|
|
@@ -1190,6 +1492,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1190
1492
|
getProductFollowers(requestParameters) {
|
|
1191
1493
|
return localVarFp.getProductFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1192
1494
|
},
|
|
1495
|
+
getProductFollowersWithHttpInfo(requestParameters) {
|
|
1496
|
+
return localVarFp.getProductFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1497
|
+
},
|
|
1193
1498
|
/**
|
|
1194
1499
|
* Lists changelogs about users have followed the product.
|
|
1195
1500
|
* @summary List followers changelog of a product
|
|
@@ -1200,6 +1505,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1200
1505
|
getProductFollowersChangelog(requestParameters) {
|
|
1201
1506
|
return localVarFp.getProductFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1202
1507
|
},
|
|
1508
|
+
getProductFollowersChangelogWithHttpInfo(requestParameters) {
|
|
1509
|
+
return localVarFp.getProductFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1510
|
+
},
|
|
1203
1511
|
/**
|
|
1204
1512
|
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
|
1205
1513
|
* @summary Get image of a product
|
|
@@ -1210,6 +1518,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1210
1518
|
getProductImage(requestParameters) {
|
|
1211
1519
|
return localVarFp.getProductImage(requestParameters.id).then((request) => request(axios, basePath));
|
|
1212
1520
|
},
|
|
1521
|
+
getProductImageWithHttpInfo(requestParameters) {
|
|
1522
|
+
return localVarFp.getProductImageWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
1523
|
+
},
|
|
1213
1524
|
/**
|
|
1214
1525
|
* Returns data about all product variations.
|
|
1215
1526
|
* @summary Get all product variations
|
|
@@ -1220,6 +1531,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1220
1531
|
getProductVariations(requestParameters) {
|
|
1221
1532
|
return localVarFp.getProductVariations(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(axios, basePath));
|
|
1222
1533
|
},
|
|
1534
|
+
getProductVariationsWithHttpInfo(requestParameters) {
|
|
1535
|
+
return localVarFp.getProductVariationsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(axios, basePath));
|
|
1536
|
+
},
|
|
1223
1537
|
/**
|
|
1224
1538
|
* Returns data about all products.
|
|
1225
1539
|
* @summary Get all products
|
|
@@ -1230,6 +1544,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1230
1544
|
getProducts(requestParameters = {}) {
|
|
1231
1545
|
return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(axios, basePath));
|
|
1232
1546
|
},
|
|
1547
|
+
getProductsWithHttpInfo(requestParameters = {}) {
|
|
1548
|
+
return localVarFp.getProductsWithHttpInfo(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(axios, basePath));
|
|
1549
|
+
},
|
|
1233
1550
|
/**
|
|
1234
1551
|
* Searches all products by name, code 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.
|
|
1235
1552
|
* @summary Search products
|
|
@@ -1240,6 +1557,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1240
1557
|
searchProducts(requestParameters) {
|
|
1241
1558
|
return localVarFp.searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1242
1559
|
},
|
|
1560
|
+
searchProductsWithHttpInfo(requestParameters) {
|
|
1561
|
+
return localVarFp.searchProductsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1562
|
+
},
|
|
1243
1563
|
/**
|
|
1244
1564
|
* Updates product data.
|
|
1245
1565
|
* @summary Update a product
|
|
@@ -1250,6 +1570,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1250
1570
|
updateProduct(requestParameters) {
|
|
1251
1571
|
return localVarFp.updateProduct(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(axios, basePath));
|
|
1252
1572
|
},
|
|
1573
|
+
updateProductWithHttpInfo(requestParameters) {
|
|
1574
|
+
return localVarFp.updateProductWithHttpInfo(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(axios, basePath));
|
|
1575
|
+
},
|
|
1253
1576
|
/**
|
|
1254
1577
|
* Updates the image of a product.
|
|
1255
1578
|
* @summary Update an image for a product
|
|
@@ -1260,6 +1583,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1260
1583
|
updateProductImage(requestParameters) {
|
|
1261
1584
|
return localVarFp.updateProductImage(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
|
|
1262
1585
|
},
|
|
1586
|
+
updateProductImageWithHttpInfo(requestParameters) {
|
|
1587
|
+
return localVarFp.updateProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
|
|
1588
|
+
},
|
|
1263
1589
|
/**
|
|
1264
1590
|
* Updates product variation data.
|
|
1265
1591
|
* @summary Update a product variation
|
|
@@ -1270,6 +1596,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1270
1596
|
updateProductVariation(requestParameters) {
|
|
1271
1597
|
return localVarFp.updateProductVariation(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(axios, basePath));
|
|
1272
1598
|
},
|
|
1599
|
+
updateProductVariationWithHttpInfo(requestParameters) {
|
|
1600
|
+
return localVarFp.updateProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(axios, basePath));
|
|
1601
|
+
},
|
|
1273
1602
|
/**
|
|
1274
1603
|
* Uploads an image for a product.
|
|
1275
1604
|
* @summary Upload an image for a product
|
|
@@ -1280,6 +1609,9 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
1280
1609
|
uploadProductImage(requestParameters) {
|
|
1281
1610
|
return localVarFp.uploadProductImage(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
|
|
1282
1611
|
},
|
|
1612
|
+
uploadProductImageWithHttpInfo(requestParameters) {
|
|
1613
|
+
return localVarFp.uploadProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
|
|
1614
|
+
},
|
|
1283
1615
|
};
|
|
1284
1616
|
};
|
|
1285
1617
|
/**
|
|
@@ -1300,6 +1632,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1300
1632
|
addProduct(requestParameters = {}) {
|
|
1301
1633
|
return ProductsApiFp(this.configuration).addProduct(requestParameters.AddProductRequest).then((request) => request(this.axios, this.basePath));
|
|
1302
1634
|
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Same as `addProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1637
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1638
|
+
* @param {ProductsApiAddProductRequest} requestParameters Request parameters.
|
|
1639
|
+
|
|
1640
|
+
* @throws {RequiredError}
|
|
1641
|
+
* @memberof ProductsApi
|
|
1642
|
+
*/
|
|
1643
|
+
addProductWithHttpInfo(requestParameters = {}) {
|
|
1644
|
+
return ProductsApiFp(this.configuration).addProductWithHttpInfo(requestParameters.AddProductRequest).then((request) => request(this.axios, this.basePath));
|
|
1645
|
+
}
|
|
1303
1646
|
/**
|
|
1304
1647
|
* Adds a user as a follower to the product.
|
|
1305
1648
|
* @summary Add a follower to a product
|
|
@@ -1311,6 +1654,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1311
1654
|
addProductFollower(requestParameters) {
|
|
1312
1655
|
return ProductsApiFp(this.configuration).addProductFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
|
1313
1656
|
}
|
|
1657
|
+
/**
|
|
1658
|
+
* Same as `addProductFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1659
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1660
|
+
* @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters.
|
|
1661
|
+
|
|
1662
|
+
* @throws {RequiredError}
|
|
1663
|
+
* @memberof ProductsApi
|
|
1664
|
+
*/
|
|
1665
|
+
addProductFollowerWithHttpInfo(requestParameters) {
|
|
1666
|
+
return ProductsApiFp(this.configuration).addProductFollowerWithHttpInfo(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
|
1667
|
+
}
|
|
1314
1668
|
/**
|
|
1315
1669
|
* Adds a new product variation.
|
|
1316
1670
|
* @summary Add a product variation
|
|
@@ -1322,6 +1676,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1322
1676
|
addProductVariation(requestParameters) {
|
|
1323
1677
|
return ProductsApiFp(this.configuration).addProductVariation(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(this.axios, this.basePath));
|
|
1324
1678
|
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Same as `addProductVariation`, but resolves with the response body together with the HTTP status and headers.
|
|
1681
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1682
|
+
* @param {ProductsApiAddProductVariationRequest} requestParameters Request parameters.
|
|
1683
|
+
|
|
1684
|
+
* @throws {RequiredError}
|
|
1685
|
+
* @memberof ProductsApi
|
|
1686
|
+
*/
|
|
1687
|
+
addProductVariationWithHttpInfo(requestParameters) {
|
|
1688
|
+
return ProductsApiFp(this.configuration).addProductVariationWithHttpInfo(requestParameters.id, requestParameters.AddProductVariationRequest).then((request) => request(this.axios, this.basePath));
|
|
1689
|
+
}
|
|
1325
1690
|
/**
|
|
1326
1691
|
* Marks a product as deleted. After 30 days, the product will be permanently deleted.
|
|
1327
1692
|
* @summary Delete a product
|
|
@@ -1333,6 +1698,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1333
1698
|
deleteProduct(requestParameters) {
|
|
1334
1699
|
return ProductsApiFp(this.configuration).deleteProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1335
1700
|
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Same as `deleteProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1703
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1704
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
1705
|
+
|
|
1706
|
+
* @throws {RequiredError}
|
|
1707
|
+
* @memberof ProductsApi
|
|
1708
|
+
*/
|
|
1709
|
+
deleteProductWithHttpInfo(requestParameters) {
|
|
1710
|
+
return ProductsApiFp(this.configuration).deleteProductWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1711
|
+
}
|
|
1336
1712
|
/**
|
|
1337
1713
|
* Deletes a user follower from the product.
|
|
1338
1714
|
* @summary Delete a follower from a product
|
|
@@ -1344,6 +1720,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1344
1720
|
deleteProductFollower(requestParameters) {
|
|
1345
1721
|
return ProductsApiFp(this.configuration).deleteProductFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1346
1722
|
}
|
|
1723
|
+
/**
|
|
1724
|
+
* Same as `deleteProductFollower`, but resolves with the response body together with the HTTP status and headers.
|
|
1725
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1726
|
+
* @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters.
|
|
1727
|
+
|
|
1728
|
+
* @throws {RequiredError}
|
|
1729
|
+
* @memberof ProductsApi
|
|
1730
|
+
*/
|
|
1731
|
+
deleteProductFollowerWithHttpInfo(requestParameters) {
|
|
1732
|
+
return ProductsApiFp(this.configuration).deleteProductFollowerWithHttpInfo(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
|
1733
|
+
}
|
|
1347
1734
|
/**
|
|
1348
1735
|
* Deletes the image of a product.
|
|
1349
1736
|
* @summary Delete an image of a product
|
|
@@ -1355,6 +1742,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1355
1742
|
deleteProductImage(requestParameters) {
|
|
1356
1743
|
return ProductsApiFp(this.configuration).deleteProductImage(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1357
1744
|
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Same as `deleteProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
1747
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1748
|
+
* @param {ProductsApiDeleteProductImageRequest} requestParameters Request parameters.
|
|
1749
|
+
|
|
1750
|
+
* @throws {RequiredError}
|
|
1751
|
+
* @memberof ProductsApi
|
|
1752
|
+
*/
|
|
1753
|
+
deleteProductImageWithHttpInfo(requestParameters) {
|
|
1754
|
+
return ProductsApiFp(this.configuration).deleteProductImageWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1755
|
+
}
|
|
1358
1756
|
/**
|
|
1359
1757
|
* Deletes a product variation.
|
|
1360
1758
|
* @summary Delete a product variation
|
|
@@ -1366,6 +1764,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1366
1764
|
deleteProductVariation(requestParameters) {
|
|
1367
1765
|
return ProductsApiFp(this.configuration).deleteProductVariation(requestParameters.id, requestParameters.product_variation_id).then((request) => request(this.axios, this.basePath));
|
|
1368
1766
|
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Same as `deleteProductVariation`, but resolves with the response body together with the HTTP status and headers.
|
|
1769
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1770
|
+
* @param {ProductsApiDeleteProductVariationRequest} requestParameters Request parameters.
|
|
1771
|
+
|
|
1772
|
+
* @throws {RequiredError}
|
|
1773
|
+
* @memberof ProductsApi
|
|
1774
|
+
*/
|
|
1775
|
+
deleteProductVariationWithHttpInfo(requestParameters) {
|
|
1776
|
+
return ProductsApiFp(this.configuration).deleteProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id).then((request) => request(this.axios, this.basePath));
|
|
1777
|
+
}
|
|
1369
1778
|
/**
|
|
1370
1779
|
* Creates a duplicate of an existing product including all variations, prices, and custom fields.
|
|
1371
1780
|
* @summary Duplicate a product
|
|
@@ -1377,6 +1786,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1377
1786
|
duplicateProduct(requestParameters) {
|
|
1378
1787
|
return ProductsApiFp(this.configuration).duplicateProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1379
1788
|
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Same as `duplicateProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1791
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1792
|
+
* @param {ProductsApiDuplicateProductRequest} requestParameters Request parameters.
|
|
1793
|
+
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
* @memberof ProductsApi
|
|
1796
|
+
*/
|
|
1797
|
+
duplicateProductWithHttpInfo(requestParameters) {
|
|
1798
|
+
return ProductsApiFp(this.configuration).duplicateProductWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1799
|
+
}
|
|
1380
1800
|
/**
|
|
1381
1801
|
* Returns data about a specific product.
|
|
1382
1802
|
* @summary Get one product
|
|
@@ -1388,6 +1808,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1388
1808
|
getProduct(requestParameters) {
|
|
1389
1809
|
return ProductsApiFp(this.configuration).getProduct(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1390
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Same as `getProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1813
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1814
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
1815
|
+
|
|
1816
|
+
* @throws {RequiredError}
|
|
1817
|
+
* @memberof ProductsApi
|
|
1818
|
+
*/
|
|
1819
|
+
getProductWithHttpInfo(requestParameters) {
|
|
1820
|
+
return ProductsApiFp(this.configuration).getProductWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1821
|
+
}
|
|
1391
1822
|
/**
|
|
1392
1823
|
* Lists users who are following the product.
|
|
1393
1824
|
* @summary List followers of a product
|
|
@@ -1399,6 +1830,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1399
1830
|
getProductFollowers(requestParameters) {
|
|
1400
1831
|
return ProductsApiFp(this.configuration).getProductFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1401
1832
|
}
|
|
1833
|
+
/**
|
|
1834
|
+
* Same as `getProductFollowers`, but resolves with the response body together with the HTTP status and headers.
|
|
1835
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1836
|
+
* @param {ProductsApiGetProductFollowersRequest} requestParameters Request parameters.
|
|
1837
|
+
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
* @memberof ProductsApi
|
|
1840
|
+
*/
|
|
1841
|
+
getProductFollowersWithHttpInfo(requestParameters) {
|
|
1842
|
+
return ProductsApiFp(this.configuration).getProductFollowersWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1843
|
+
}
|
|
1402
1844
|
/**
|
|
1403
1845
|
* Lists changelogs about users have followed the product.
|
|
1404
1846
|
* @summary List followers changelog of a product
|
|
@@ -1410,6 +1852,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1410
1852
|
getProductFollowersChangelog(requestParameters) {
|
|
1411
1853
|
return ProductsApiFp(this.configuration).getProductFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1412
1854
|
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Same as `getProductFollowersChangelog`, but resolves with the response body together with the HTTP status and headers.
|
|
1857
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1858
|
+
* @param {ProductsApiGetProductFollowersChangelogRequest} requestParameters Request parameters.
|
|
1859
|
+
|
|
1860
|
+
* @throws {RequiredError}
|
|
1861
|
+
* @memberof ProductsApi
|
|
1862
|
+
*/
|
|
1863
|
+
getProductFollowersChangelogWithHttpInfo(requestParameters) {
|
|
1864
|
+
return ProductsApiFp(this.configuration).getProductFollowersChangelogWithHttpInfo(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1865
|
+
}
|
|
1413
1866
|
/**
|
|
1414
1867
|
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
|
1415
1868
|
* @summary Get image of a product
|
|
@@ -1421,6 +1874,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1421
1874
|
getProductImage(requestParameters) {
|
|
1422
1875
|
return ProductsApiFp(this.configuration).getProductImage(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1423
1876
|
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Same as `getProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
1879
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1880
|
+
* @param {ProductsApiGetProductImageRequest} requestParameters Request parameters.
|
|
1881
|
+
|
|
1882
|
+
* @throws {RequiredError}
|
|
1883
|
+
* @memberof ProductsApi
|
|
1884
|
+
*/
|
|
1885
|
+
getProductImageWithHttpInfo(requestParameters) {
|
|
1886
|
+
return ProductsApiFp(this.configuration).getProductImageWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1887
|
+
}
|
|
1424
1888
|
/**
|
|
1425
1889
|
* Returns data about all product variations.
|
|
1426
1890
|
* @summary Get all product variations
|
|
@@ -1432,6 +1896,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1432
1896
|
getProductVariations(requestParameters) {
|
|
1433
1897
|
return ProductsApiFp(this.configuration).getProductVariations(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
1434
1898
|
}
|
|
1899
|
+
/**
|
|
1900
|
+
* Same as `getProductVariations`, but resolves with the response body together with the HTTP status and headers.
|
|
1901
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1902
|
+
* @param {ProductsApiGetProductVariationsRequest} requestParameters Request parameters.
|
|
1903
|
+
|
|
1904
|
+
* @throws {RequiredError}
|
|
1905
|
+
* @memberof ProductsApi
|
|
1906
|
+
*/
|
|
1907
|
+
getProductVariationsWithHttpInfo(requestParameters) {
|
|
1908
|
+
return ProductsApiFp(this.configuration).getProductVariationsWithHttpInfo(requestParameters.id, requestParameters.cursor, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
1909
|
+
}
|
|
1435
1910
|
/**
|
|
1436
1911
|
* Returns data about all products.
|
|
1437
1912
|
* @summary Get all products
|
|
@@ -1443,6 +1918,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1443
1918
|
getProducts(requestParameters = {}) {
|
|
1444
1919
|
return ProductsApiFp(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(this.axios, this.basePath));
|
|
1445
1920
|
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Same as `getProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
1923
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1924
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
1925
|
+
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
* @memberof ProductsApi
|
|
1928
|
+
*/
|
|
1929
|
+
getProductsWithHttpInfo(requestParameters = {}) {
|
|
1930
|
+
return ProductsApiFp(this.configuration).getProductsWithHttpInfo(requestParameters.owner_id, requestParameters.ids, requestParameters.custom_fields, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.updated_since).then((request) => request(this.axios, this.basePath));
|
|
1931
|
+
}
|
|
1446
1932
|
/**
|
|
1447
1933
|
* Searches all products by name, code 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.
|
|
1448
1934
|
* @summary Search products
|
|
@@ -1454,6 +1940,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1454
1940
|
searchProducts(requestParameters) {
|
|
1455
1941
|
return ProductsApiFp(this.configuration).searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1456
1942
|
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Same as `searchProducts`, but resolves with the response body together with the HTTP status and headers.
|
|
1945
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1946
|
+
* @param {ProductsApiSearchProductsRequest} requestParameters Request parameters.
|
|
1947
|
+
|
|
1948
|
+
* @throws {RequiredError}
|
|
1949
|
+
* @memberof ProductsApi
|
|
1950
|
+
*/
|
|
1951
|
+
searchProductsWithHttpInfo(requestParameters) {
|
|
1952
|
+
return ProductsApiFp(this.configuration).searchProductsWithHttpInfo(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1953
|
+
}
|
|
1457
1954
|
/**
|
|
1458
1955
|
* Updates product data.
|
|
1459
1956
|
* @summary Update a product
|
|
@@ -1465,6 +1962,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1465
1962
|
updateProduct(requestParameters) {
|
|
1466
1963
|
return ProductsApiFp(this.configuration).updateProduct(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(this.axios, this.basePath));
|
|
1467
1964
|
}
|
|
1965
|
+
/**
|
|
1966
|
+
* Same as `updateProduct`, but resolves with the response body together with the HTTP status and headers.
|
|
1967
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1968
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
1969
|
+
|
|
1970
|
+
* @throws {RequiredError}
|
|
1971
|
+
* @memberof ProductsApi
|
|
1972
|
+
*/
|
|
1973
|
+
updateProductWithHttpInfo(requestParameters) {
|
|
1974
|
+
return ProductsApiFp(this.configuration).updateProductWithHttpInfo(requestParameters.id, requestParameters.UpdateProductRequest).then((request) => request(this.axios, this.basePath));
|
|
1975
|
+
}
|
|
1468
1976
|
/**
|
|
1469
1977
|
* Updates the image of a product.
|
|
1470
1978
|
* @summary Update an image for a product
|
|
@@ -1476,6 +1984,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1476
1984
|
updateProductImage(requestParameters) {
|
|
1477
1985
|
return ProductsApiFp(this.configuration).updateProductImage(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
|
|
1478
1986
|
}
|
|
1987
|
+
/**
|
|
1988
|
+
* Same as `updateProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
1989
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1990
|
+
* @param {ProductsApiUpdateProductImageRequest} requestParameters Request parameters.
|
|
1991
|
+
|
|
1992
|
+
* @throws {RequiredError}
|
|
1993
|
+
* @memberof ProductsApi
|
|
1994
|
+
*/
|
|
1995
|
+
updateProductImageWithHttpInfo(requestParameters) {
|
|
1996
|
+
return ProductsApiFp(this.configuration).updateProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
|
|
1997
|
+
}
|
|
1479
1998
|
/**
|
|
1480
1999
|
* Updates product variation data.
|
|
1481
2000
|
* @summary Update a product variation
|
|
@@ -1487,6 +2006,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1487
2006
|
updateProductVariation(requestParameters) {
|
|
1488
2007
|
return ProductsApiFp(this.configuration).updateProductVariation(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(this.axios, this.basePath));
|
|
1489
2008
|
}
|
|
2009
|
+
/**
|
|
2010
|
+
* Same as `updateProductVariation`, but resolves with the response body together with the HTTP status and headers.
|
|
2011
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
2012
|
+
* @param {ProductsApiUpdateProductVariationRequest} requestParameters Request parameters.
|
|
2013
|
+
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
* @memberof ProductsApi
|
|
2016
|
+
*/
|
|
2017
|
+
updateProductVariationWithHttpInfo(requestParameters) {
|
|
2018
|
+
return ProductsApiFp(this.configuration).updateProductVariationWithHttpInfo(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest).then((request) => request(this.axios, this.basePath));
|
|
2019
|
+
}
|
|
1490
2020
|
/**
|
|
1491
2021
|
* Uploads an image for a product.
|
|
1492
2022
|
* @summary Upload an image for a product
|
|
@@ -1498,4 +2028,15 @@ export class ProductsApi extends BaseAPI {
|
|
|
1498
2028
|
uploadProductImage(requestParameters) {
|
|
1499
2029
|
return ProductsApiFp(this.configuration).uploadProductImage(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
|
|
1500
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Same as `uploadProductImage`, but resolves with the response body together with the HTTP status and headers.
|
|
2033
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
2034
|
+
* @param {ProductsApiUploadProductImageRequest} requestParameters Request parameters.
|
|
2035
|
+
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
* @memberof ProductsApi
|
|
2038
|
+
*/
|
|
2039
|
+
uploadProductImageWithHttpInfo(requestParameters) {
|
|
2040
|
+
return ProductsApiFp(this.configuration).uploadProductImageWithHttpInfo(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
|
|
2041
|
+
}
|
|
1501
2042
|
}
|