pipedrive 32.2.0 → 33.0.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/notes-api.d.ts +18 -2
- package/dist/esm/versions/v1/api/notes-api.js +15 -5
- package/dist/esm/versions/v1/api/project-boards-api.d.ts +117 -0
- package/dist/esm/versions/v1/api/project-boards-api.js +191 -0
- package/dist/esm/versions/v1/api/project-phases-api.d.ts +134 -0
- package/dist/esm/versions/v1/api/project-phases-api.js +200 -0
- package/dist/esm/versions/v1/api/project-templates-api.d.ts +0 -94
- package/dist/esm/versions/v1/api/project-templates-api.js +0 -136
- package/dist/esm/versions/v1/api/projects-api.d.ts +0 -77
- package/dist/esm/versions/v1/api/projects-api.js +0 -131
- package/dist/esm/versions/v1/api.d.ts +2 -0
- package/dist/esm/versions/v1/api.js +2 -0
- package/dist/esm/versions/v1/models/add-note-request-all-of.d.ts +10 -5
- package/dist/esm/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/esm/versions/v1/models/add-note-request-all-of1.js +4 -0
- package/dist/esm/versions/v1/models/index.d.ts +1 -0
- package/dist/esm/versions/v1/models/index.js +1 -0
- package/dist/esm/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/esm/versions/v1/models/note-task.d.ts +23 -0
- package/dist/esm/versions/v1/models/note-task.js +14 -0
- package/dist/esm/versions/v1/models/note.d.ts +16 -0
- package/dist/esm/versions/v2/api/beta-api.d.ts +1314 -0
- package/dist/esm/versions/v2/api/beta-api.js +1796 -0
- package/dist/esm/versions/v2/api/deal-installments-api.d.ts +294 -0
- package/dist/esm/versions/v2/api/deal-installments-api.js +374 -0
- package/dist/esm/versions/v2/api/deal-products-api.d.ts +482 -0
- package/dist/esm/versions/v2/api/deal-products-api.js +607 -0
- package/dist/esm/versions/v2/api/deals-api.d.ts +32 -696
- package/dist/esm/versions/v2/api/deals-api.js +54 -891
- package/dist/esm/versions/v2/api/organizations-api.d.ts +36 -4
- package/dist/esm/versions/v2/api/organizations-api.js +30 -10
- package/dist/esm/versions/v2/api/persons-api.d.ts +36 -4
- package/dist/esm/versions/v2/api/persons-api.js +30 -10
- package/dist/esm/versions/v2/api/project-boards-api.d.ts +266 -0
- package/dist/esm/versions/v2/api/project-boards-api.js +400 -0
- package/dist/esm/versions/v2/api/project-fields-api.d.ts +457 -0
- package/dist/esm/versions/v2/api/project-fields-api.js +636 -0
- package/dist/esm/versions/v2/api/project-phases-api.d.ts +283 -0
- package/dist/esm/versions/v2/api/project-phases-api.js +409 -0
- package/dist/esm/versions/v2/api/project-templates-api.d.ts +142 -0
- package/dist/esm/versions/v2/api/project-templates-api.js +203 -0
- package/dist/esm/versions/v2/api/projects-api.d.ts +644 -0
- package/dist/esm/versions/v2/api/projects-api.js +829 -0
- package/dist/esm/versions/v2/api/tasks-api.d.ts +333 -0
- package/dist/esm/versions/v2/api/tasks-api.js +437 -0
- package/dist/esm/versions/v2/api.d.ts +9 -0
- package/dist/esm/versions/v2/api.js +9 -0
- package/dist/esm/versions/v2/models/add-deal-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/add-organization-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/add-person-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/add-product-request.d.ts +2 -2
- package/dist/esm/versions/v2/models/add-project-board-request.d.ts +28 -0
- package/dist/esm/versions/v2/models/add-project-board-request.js +14 -0
- package/dist/esm/versions/v2/models/add-project-field-request-important-fields.d.ts +29 -0
- package/dist/esm/versions/v2/models/add-project-field-request-important-fields.js +14 -0
- package/dist/esm/versions/v2/models/add-project-field-request-required-fields.d.ts +24 -0
- package/dist/esm/versions/v2/models/add-project-field-request-required-fields.js +14 -0
- package/dist/esm/versions/v2/models/add-project-field-request-ui-visibility.d.ts +29 -0
- package/dist/esm/versions/v2/models/add-project-field-request-ui-visibility.js +14 -0
- package/dist/esm/versions/v2/models/add-project-field-request.d.ts +71 -0
- package/dist/esm/versions/v2/models/add-project-field-request.js +31 -0
- package/dist/esm/versions/v2/models/add-project-field200-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/add-project-field200-response.js +14 -0
- package/dist/esm/versions/v2/models/add-project-phase-request.d.ts +33 -0
- package/dist/esm/versions/v2/models/add-project-phase-request.js +14 -0
- package/dist/esm/versions/v2/models/add-project-request.d.ts +90 -0
- package/dist/esm/versions/v2/models/add-project-request.js +14 -0
- package/dist/esm/versions/v2/models/add-task-request.d.ts +83 -0
- package/dist/esm/versions/v2/models/add-task-request.js +21 -0
- package/dist/esm/versions/v2/models/add-task-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/add-task-response.js +14 -0
- package/dist/esm/versions/v2/models/base-product-all-of.d.ts +55 -10
- package/dist/esm/versions/v2/models/base-product-all-of.js +5 -7
- package/dist/esm/versions/v2/models/base-product-all-of1.d.ts +32 -0
- package/dist/esm/versions/v2/models/base-product-all-of1.js +21 -0
- package/dist/esm/versions/v2/models/base-product.d.ts +2 -2
- package/dist/esm/versions/v2/models/deal.d.ts +1 -1
- package/dist/esm/versions/v2/models/delete-project-board-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-project-board-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-board-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-project-board-response.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-field200-response-data.d.ts +53 -0
- package/dist/esm/versions/v2/models/delete-project-field200-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-field200-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-project-field200-response.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-phase-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-project-phase-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-phase-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-project-phase-response.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-project-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-project-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-project-response.js +14 -0
- package/dist/esm/versions/v2/models/delete-task-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-task-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-task-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/delete-task-response.js +14 -0
- package/dist/esm/versions/v2/models/get-persons-response-all-of.d.ts +3 -3
- package/dist/esm/versions/v2/models/get-project-boards-response-data-inner.d.ts +43 -0
- package/dist/esm/versions/v2/models/get-project-boards-response-data-inner.js +14 -0
- package/dist/esm/versions/v2/models/get-project-boards-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-project-boards-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-changelog-response-data-inner.d.ts +52 -0
- package/dist/esm/versions/v2/models/get-project-changelog-response-data-inner.js +14 -0
- package/dist/esm/versions/v2/models/get-project-changelog-response.d.ts +35 -0
- package/dist/esm/versions/v2/models/get-project-changelog-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.d.ts +28 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.js +14 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.d.ts +109 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response-data-inner.js +48 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response.d.ts +35 -0
- package/dist/esm/versions/v2/models/get-project-fields200-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-permitted-users-response.d.ts +28 -0
- package/dist/esm/versions/v2/models/get-project-permitted-users-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-phases-response-data-inner.d.ts +48 -0
- package/dist/esm/versions/v2/models/get-project-phases-response-data-inner.js +14 -0
- package/dist/esm/versions/v2/models/get-project-phases-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-project-phases-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.d.ts +28 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.d.ts +33 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.d.ts +23 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.d.ts +28 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.d.ts +28 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.d.ts +98 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner.d.ts +29 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data-items-inner.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data.d.ts +24 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of-data.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-project-search-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-project-search-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-project-search-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-template-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-project-template-response.js +14 -0
- package/dist/esm/versions/v2/models/get-project-templates-response.d.ts +35 -0
- package/dist/esm/versions/v2/models/get-project-templates-response.js +14 -0
- package/dist/esm/versions/v2/models/get-projects-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-projects-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-projects-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-projects-response.js +14 -0
- package/dist/esm/versions/v2/models/get-task-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/get-task-response.js +14 -0
- package/dist/esm/versions/v2/models/get-tasks-response-data-inner.d.ts +93 -0
- package/dist/esm/versions/v2/models/get-tasks-response-data-inner.js +14 -0
- package/dist/esm/versions/v2/models/get-tasks-response.d.ts +35 -0
- package/dist/esm/versions/v2/models/get-tasks-response.js +14 -0
- package/dist/esm/versions/v2/models/index.d.ts +63 -0
- package/dist/esm/versions/v2/models/index.js +63 -0
- package/dist/esm/versions/v2/models/organization-item.d.ts +1 -1
- package/dist/esm/versions/v2/models/person-im-inner.d.ts +33 -0
- package/dist/esm/versions/v2/models/person-im-inner.js +14 -0
- package/dist/esm/versions/v2/models/person-postal-address.d.ts +68 -0
- package/dist/esm/versions/v2/models/person-postal-address.js +14 -0
- package/dist/esm/versions/v2/models/person.d.ts +124 -0
- package/dist/esm/versions/v2/models/person.js +14 -0
- package/dist/esm/versions/v2/models/product-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/project-template.d.ts +53 -0
- package/dist/esm/versions/v2/models/project-template.js +14 -0
- package/dist/esm/versions/v2/models/project.d.ts +115 -0
- package/dist/esm/versions/v2/models/project.js +14 -0
- package/dist/esm/versions/v2/models/update-deal-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/update-organization-field-request.d.ts +0 -5
- package/dist/esm/versions/v2/models/update-organization-request.d.ts +1 -1
- package/dist/esm/versions/v2/models/update-project-board-request.d.ts +28 -0
- package/dist/esm/versions/v2/models/update-project-board-request.js +14 -0
- package/dist/esm/versions/v2/models/update-project-field-request.d.ts +41 -0
- package/dist/esm/versions/v2/models/update-project-field-request.js +14 -0
- package/dist/esm/versions/v2/models/update-project-phase-request.d.ts +33 -0
- package/dist/esm/versions/v2/models/update-project-phase-request.js +14 -0
- package/dist/esm/versions/v2/models/update-project-request.d.ts +90 -0
- package/dist/esm/versions/v2/models/update-project-request.js +14 -0
- package/dist/esm/versions/v2/models/update-task-request.d.ts +83 -0
- package/dist/esm/versions/v2/models/update-task-request.js +21 -0
- package/dist/esm/versions/v2/models/update-task-response.d.ts +34 -0
- package/dist/esm/versions/v2/models/update-task-response.js +14 -0
- package/dist/esm/versions/v2/models/upsert-person-response-data.d.ts +3 -3
- package/dist/esm/versions/v2/models/upsert-project-board-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/upsert-project-board-response.js +14 -0
- package/dist/esm/versions/v2/models/upsert-project-phase-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/upsert-project-phase-response.js +14 -0
- package/dist/esm/versions/v2/models/upsert-project-response-all-of.d.ts +24 -0
- package/dist/esm/versions/v2/models/upsert-project-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/upsert-project-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/upsert-project-response.js +14 -0
- package/dist/versions/v1/api/notes-api.d.ts +18 -2
- package/dist/versions/v1/api/notes-api.js +15 -5
- package/dist/versions/v1/api/project-boards-api.d.ts +117 -0
- package/dist/versions/v1/api/project-boards-api.js +201 -0
- package/dist/versions/v1/api/project-phases-api.d.ts +134 -0
- package/dist/versions/v1/api/project-phases-api.js +210 -0
- package/dist/versions/v1/api/project-templates-api.d.ts +0 -94
- package/dist/versions/v1/api/project-templates-api.js +0 -136
- package/dist/versions/v1/api/projects-api.d.ts +0 -77
- package/dist/versions/v1/api/projects-api.js +0 -131
- package/dist/versions/v1/api.d.ts +2 -0
- package/dist/versions/v1/api.js +2 -0
- package/dist/versions/v1/models/add-note-request-all-of.d.ts +10 -5
- package/dist/versions/v1/models/add-note-request-all-of1.d.ts +10 -0
- package/dist/versions/v1/models/add-note-request-all-of1.js +5 -1
- package/dist/versions/v1/models/index.d.ts +1 -0
- package/dist/versions/v1/models/index.js +1 -0
- package/dist/versions/v1/models/note-request-all-of1.d.ts +5 -0
- package/dist/versions/v1/models/note-task.d.ts +23 -0
- package/dist/versions/v1/models/note-task.js +15 -0
- package/dist/versions/v1/models/note.d.ts +16 -0
- package/dist/versions/v2/api/beta-api.d.ts +1314 -0
- package/dist/versions/v2/api/beta-api.js +1806 -0
- package/dist/versions/v2/api/deal-installments-api.d.ts +294 -0
- package/dist/versions/v2/api/deal-installments-api.js +384 -0
- package/dist/versions/v2/api/deal-products-api.d.ts +482 -0
- package/dist/versions/v2/api/deal-products-api.js +617 -0
- package/dist/versions/v2/api/deals-api.d.ts +32 -696
- package/dist/versions/v2/api/deals-api.js +54 -891
- package/dist/versions/v2/api/organizations-api.d.ts +36 -4
- package/dist/versions/v2/api/organizations-api.js +30 -10
- package/dist/versions/v2/api/persons-api.d.ts +36 -4
- package/dist/versions/v2/api/persons-api.js +30 -10
- package/dist/versions/v2/api/project-boards-api.d.ts +266 -0
- package/dist/versions/v2/api/project-boards-api.js +410 -0
- package/dist/versions/v2/api/project-fields-api.d.ts +457 -0
- package/dist/versions/v2/api/project-fields-api.js +646 -0
- package/dist/versions/v2/api/project-phases-api.d.ts +283 -0
- package/dist/versions/v2/api/project-phases-api.js +419 -0
- package/dist/versions/v2/api/project-templates-api.d.ts +142 -0
- package/dist/versions/v2/api/project-templates-api.js +213 -0
- package/dist/versions/v2/api/projects-api.d.ts +644 -0
- package/dist/versions/v2/api/projects-api.js +839 -0
- package/dist/versions/v2/api/tasks-api.d.ts +333 -0
- package/dist/versions/v2/api/tasks-api.js +447 -0
- package/dist/versions/v2/api.d.ts +9 -0
- package/dist/versions/v2/api.js +9 -0
- package/dist/versions/v2/models/add-deal-request.d.ts +1 -1
- package/dist/versions/v2/models/add-organization-request.d.ts +1 -1
- package/dist/versions/v2/models/add-person-request.d.ts +1 -1
- package/dist/versions/v2/models/add-product-request.d.ts +2 -2
- package/dist/versions/v2/models/add-project-board-request.d.ts +28 -0
- package/dist/versions/v2/models/add-project-board-request.js +15 -0
- package/dist/versions/v2/models/add-project-field-request-important-fields.d.ts +29 -0
- package/dist/versions/v2/models/add-project-field-request-important-fields.js +15 -0
- package/dist/versions/v2/models/add-project-field-request-required-fields.d.ts +24 -0
- package/dist/versions/v2/models/add-project-field-request-required-fields.js +15 -0
- package/dist/versions/v2/models/add-project-field-request-ui-visibility.d.ts +29 -0
- package/dist/versions/v2/models/add-project-field-request-ui-visibility.js +15 -0
- package/dist/versions/v2/models/add-project-field-request.d.ts +71 -0
- package/dist/versions/v2/models/add-project-field-request.js +34 -0
- package/dist/versions/v2/models/add-project-field200-response.d.ts +29 -0
- package/dist/versions/v2/models/add-project-field200-response.js +15 -0
- package/dist/versions/v2/models/add-project-phase-request.d.ts +33 -0
- package/dist/versions/v2/models/add-project-phase-request.js +15 -0
- package/dist/versions/v2/models/add-project-request.d.ts +90 -0
- package/dist/versions/v2/models/add-project-request.js +15 -0
- package/dist/versions/v2/models/add-task-request.d.ts +83 -0
- package/dist/versions/v2/models/add-task-request.js +24 -0
- package/dist/versions/v2/models/add-task-response.d.ts +34 -0
- package/dist/versions/v2/models/add-task-response.js +15 -0
- package/dist/versions/v2/models/base-product-all-of.d.ts +55 -10
- package/dist/versions/v2/models/base-product-all-of.js +6 -8
- package/dist/versions/v2/models/base-product-all-of1.d.ts +32 -0
- package/dist/versions/v2/models/base-product-all-of1.js +24 -0
- package/dist/versions/v2/models/base-product.d.ts +2 -2
- package/dist/versions/v2/models/deal.d.ts +1 -1
- package/dist/versions/v2/models/delete-project-board-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-project-board-response-data.js +15 -0
- package/dist/versions/v2/models/delete-project-board-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-project-board-response.js +15 -0
- package/dist/versions/v2/models/delete-project-field200-response-data.d.ts +53 -0
- package/dist/versions/v2/models/delete-project-field200-response-data.js +15 -0
- package/dist/versions/v2/models/delete-project-field200-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-project-field200-response.js +15 -0
- package/dist/versions/v2/models/delete-project-phase-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-project-phase-response-data.js +15 -0
- package/dist/versions/v2/models/delete-project-phase-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-project-phase-response.js +15 -0
- package/dist/versions/v2/models/delete-project-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-project-response-data.js +15 -0
- package/dist/versions/v2/models/delete-project-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-project-response.js +15 -0
- package/dist/versions/v2/models/delete-task-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-task-response-data.js +15 -0
- package/dist/versions/v2/models/delete-task-response.d.ts +34 -0
- package/dist/versions/v2/models/delete-task-response.js +15 -0
- package/dist/versions/v2/models/get-persons-response-all-of.d.ts +3 -3
- package/dist/versions/v2/models/get-project-boards-response-data-inner.d.ts +43 -0
- package/dist/versions/v2/models/get-project-boards-response-data-inner.js +15 -0
- package/dist/versions/v2/models/get-project-boards-response.d.ts +34 -0
- package/dist/versions/v2/models/get-project-boards-response.js +15 -0
- package/dist/versions/v2/models/get-project-changelog-response-data-inner.d.ts +52 -0
- package/dist/versions/v2/models/get-project-changelog-response-data-inner.js +15 -0
- package/dist/versions/v2/models/get-project-changelog-response.d.ts +35 -0
- package/dist/versions/v2/models/get-project-changelog-response.js +15 -0
- package/dist/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.d.ts +28 -0
- package/dist/versions/v2/models/get-project-fields200-response-data-inner-ui-visibility.js +15 -0
- package/dist/versions/v2/models/get-project-fields200-response-data-inner.d.ts +109 -0
- package/dist/versions/v2/models/get-project-fields200-response-data-inner.js +51 -0
- package/dist/versions/v2/models/get-project-fields200-response.d.ts +35 -0
- package/dist/versions/v2/models/get-project-fields200-response.js +15 -0
- package/dist/versions/v2/models/get-project-permitted-users-response.d.ts +28 -0
- package/dist/versions/v2/models/get-project-permitted-users-response.js +15 -0
- package/dist/versions/v2/models/get-project-phases-response-data-inner.d.ts +48 -0
- package/dist/versions/v2/models/get-project-phases-response-data-inner.js +15 -0
- package/dist/versions/v2/models/get-project-phases-response.d.ts +34 -0
- package/dist/versions/v2/models/get-project-phases-response.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.d.ts +28 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-deal.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.d.ts +33 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-organization.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.d.ts +23 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-owner.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.d.ts +28 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-person.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.d.ts +28 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item-phase.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.d.ts +98 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner-item.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner.d.ts +29 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data-items-inner.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data.d.ts +24 -0
- package/dist/versions/v2/models/get-project-search-response-all-of-data.js +15 -0
- package/dist/versions/v2/models/get-project-search-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-project-search-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-project-search-response.d.ts +18 -0
- package/dist/versions/v2/models/get-project-search-response.js +15 -0
- package/dist/versions/v2/models/get-project-template-response.d.ts +34 -0
- package/dist/versions/v2/models/get-project-template-response.js +15 -0
- package/dist/versions/v2/models/get-project-templates-response.d.ts +35 -0
- package/dist/versions/v2/models/get-project-templates-response.js +15 -0
- package/dist/versions/v2/models/get-projects-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-projects-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-projects-response.d.ts +18 -0
- package/dist/versions/v2/models/get-projects-response.js +15 -0
- package/dist/versions/v2/models/get-task-response.d.ts +34 -0
- package/dist/versions/v2/models/get-task-response.js +15 -0
- package/dist/versions/v2/models/get-tasks-response-data-inner.d.ts +93 -0
- package/dist/versions/v2/models/get-tasks-response-data-inner.js +15 -0
- package/dist/versions/v2/models/get-tasks-response.d.ts +35 -0
- package/dist/versions/v2/models/get-tasks-response.js +15 -0
- package/dist/versions/v2/models/index.d.ts +63 -0
- package/dist/versions/v2/models/index.js +63 -0
- package/dist/versions/v2/models/organization-item.d.ts +1 -1
- package/dist/versions/v2/models/person-im-inner.d.ts +33 -0
- package/dist/versions/v2/models/person-im-inner.js +15 -0
- package/dist/versions/v2/models/person-postal-address.d.ts +68 -0
- package/dist/versions/v2/models/person-postal-address.js +15 -0
- package/dist/versions/v2/models/person.d.ts +124 -0
- package/dist/versions/v2/models/person.js +15 -0
- package/dist/versions/v2/models/product-request.d.ts +1 -1
- package/dist/versions/v2/models/project-template.d.ts +53 -0
- package/dist/versions/v2/models/project-template.js +15 -0
- package/dist/versions/v2/models/project.d.ts +115 -0
- package/dist/versions/v2/models/project.js +15 -0
- package/dist/versions/v2/models/update-deal-request.d.ts +1 -1
- package/dist/versions/v2/models/update-organization-field-request.d.ts +0 -5
- package/dist/versions/v2/models/update-organization-request.d.ts +1 -1
- package/dist/versions/v2/models/update-project-board-request.d.ts +28 -0
- package/dist/versions/v2/models/update-project-board-request.js +15 -0
- package/dist/versions/v2/models/update-project-field-request.d.ts +41 -0
- package/dist/versions/v2/models/update-project-field-request.js +15 -0
- package/dist/versions/v2/models/update-project-phase-request.d.ts +33 -0
- package/dist/versions/v2/models/update-project-phase-request.js +15 -0
- package/dist/versions/v2/models/update-project-request.d.ts +90 -0
- package/dist/versions/v2/models/update-project-request.js +15 -0
- package/dist/versions/v2/models/update-task-request.d.ts +83 -0
- package/dist/versions/v2/models/update-task-request.js +24 -0
- package/dist/versions/v2/models/update-task-response.d.ts +34 -0
- package/dist/versions/v2/models/update-task-response.js +15 -0
- package/dist/versions/v2/models/upsert-person-response-data.d.ts +3 -3
- package/dist/versions/v2/models/upsert-project-board-response.d.ts +29 -0
- package/dist/versions/v2/models/upsert-project-board-response.js +15 -0
- package/dist/versions/v2/models/upsert-project-phase-response.d.ts +29 -0
- package/dist/versions/v2/models/upsert-project-phase-response.js +15 -0
- package/dist/versions/v2/models/upsert-project-response-all-of.d.ts +24 -0
- package/dist/versions/v2/models/upsert-project-response-all-of.js +15 -0
- package/dist/versions/v2/models/upsert-project-response.d.ts +18 -0
- package/dist/versions/v2/models/upsert-project-response.js +15 -0
- package/package.json +3 -2
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipedrive API v2
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosInstance } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { AddAInstallmentResponse } from '../models';
|
|
16
|
+
import { AddInstallmentRequestBody } from '../models';
|
|
17
|
+
import { DeleteInstallmentResponse } from '../models';
|
|
18
|
+
import { GetInstallmentsResponse } from '../models';
|
|
19
|
+
import { UpdateInstallmentRequestBody } from '../models';
|
|
20
|
+
import { UpdateInstallmentResponse } from '../models';
|
|
21
|
+
/**
|
|
22
|
+
* DealInstallmentsApi - axios parameter creator
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const DealInstallmentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
|
+
/**
|
|
27
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
28
|
+
* @summary Delete an installment from a deal
|
|
29
|
+
* @param {number} id The ID of the deal
|
|
30
|
+
* @param {number} installment_id The ID of the installment
|
|
31
|
+
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
deleteInstallment: (id: number, installment_id: number) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
37
|
+
* @summary List installments added to a list of deals
|
|
38
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
|
39
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
40
|
+
* @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.
|
|
41
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
|
42
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
43
|
+
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getInstallments: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
|
|
47
|
+
/**
|
|
48
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
49
|
+
* @summary Add an installment to a deal
|
|
50
|
+
* @param {number} id The ID of the deal
|
|
51
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
|
52
|
+
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
postInstallment: (id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody) => Promise<RequestArgs>;
|
|
56
|
+
/**
|
|
57
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
58
|
+
* @summary Update an installment added to a deal
|
|
59
|
+
* @param {number} id The ID of the deal
|
|
60
|
+
* @param {number} installment_id The ID of the installment
|
|
61
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
|
62
|
+
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
updateInstallment: (id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody) => Promise<RequestArgs>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* DealInstallmentsApi - functional programming interface
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const DealInstallmentsApiFp: (configuration?: Configuration) => {
|
|
72
|
+
/**
|
|
73
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
74
|
+
* @summary Delete an installment from a deal
|
|
75
|
+
* @param {number} id The ID of the deal
|
|
76
|
+
* @param {number} installment_id The ID of the installment
|
|
77
|
+
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
deleteInstallment(id: number, installment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteInstallmentResponse>>;
|
|
81
|
+
/**
|
|
82
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
83
|
+
* @summary List installments added to a list of deals
|
|
84
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
|
85
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
86
|
+
* @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.
|
|
87
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
|
88
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
89
|
+
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
getInstallments(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetInstallmentsResponse>>;
|
|
93
|
+
/**
|
|
94
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
95
|
+
* @summary Add an installment to a deal
|
|
96
|
+
* @param {number} id The ID of the deal
|
|
97
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
|
98
|
+
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
postInstallment(id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAInstallmentResponse>>;
|
|
102
|
+
/**
|
|
103
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
104
|
+
* @summary Update an installment added to a deal
|
|
105
|
+
* @param {number} id The ID of the deal
|
|
106
|
+
* @param {number} installment_id The ID of the installment
|
|
107
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
|
108
|
+
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
updateInstallment(id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateInstallmentResponse>>;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* DealInstallmentsApi - factory interface
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
export declare const DealInstallmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
118
|
+
/**
|
|
119
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
120
|
+
* @summary Delete an installment from a deal
|
|
121
|
+
* @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
|
122
|
+
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
deleteInstallment(requestParameters: DealInstallmentsApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
128
|
+
* @summary List installments added to a list of deals
|
|
129
|
+
* @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
|
|
130
|
+
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
getInstallments(requestParameters: DealInstallmentsApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
136
|
+
* @summary Add an installment to a deal
|
|
137
|
+
* @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
|
|
138
|
+
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
postInstallment(requestParameters: DealInstallmentsApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
144
|
+
* @summary Update an installment added to a deal
|
|
145
|
+
* @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
|
146
|
+
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
updateInstallment(requestParameters: DealInstallmentsApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Request parameters for deleteInstallment operation in DealInstallmentsApi.
|
|
153
|
+
* @export
|
|
154
|
+
* @interface DealInstallmentsApiDeleteInstallmentRequest
|
|
155
|
+
*/
|
|
156
|
+
export interface DealInstallmentsApiDeleteInstallmentRequest {
|
|
157
|
+
/**
|
|
158
|
+
* The ID of the deal
|
|
159
|
+
* @type {number}
|
|
160
|
+
* @memberof DealInstallmentsApiDeleteInstallment
|
|
161
|
+
*/
|
|
162
|
+
readonly id: number;
|
|
163
|
+
/**
|
|
164
|
+
* The ID of the installment
|
|
165
|
+
* @type {number}
|
|
166
|
+
* @memberof DealInstallmentsApiDeleteInstallment
|
|
167
|
+
*/
|
|
168
|
+
readonly installment_id: number;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Request parameters for getInstallments operation in DealInstallmentsApi.
|
|
172
|
+
* @export
|
|
173
|
+
* @interface DealInstallmentsApiGetInstallmentsRequest
|
|
174
|
+
*/
|
|
175
|
+
export interface DealInstallmentsApiGetInstallmentsRequest {
|
|
176
|
+
/**
|
|
177
|
+
* An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
|
178
|
+
* @type {Array<number>}
|
|
179
|
+
* @memberof DealInstallmentsApiGetInstallments
|
|
180
|
+
*/
|
|
181
|
+
readonly deal_ids: Array<number>;
|
|
182
|
+
/**
|
|
183
|
+
* For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof DealInstallmentsApiGetInstallments
|
|
186
|
+
*/
|
|
187
|
+
readonly cursor?: string;
|
|
188
|
+
/**
|
|
189
|
+
* 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.
|
|
190
|
+
* @type {number}
|
|
191
|
+
* @memberof DealInstallmentsApiGetInstallments
|
|
192
|
+
*/
|
|
193
|
+
readonly limit?: number;
|
|
194
|
+
/**
|
|
195
|
+
* The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
|
196
|
+
* @type {'id' | 'billing_date' | 'deal_id'}
|
|
197
|
+
* @memberof DealInstallmentsApiGetInstallments
|
|
198
|
+
*/
|
|
199
|
+
readonly sort_by?: 'id' | 'billing_date' | 'deal_id';
|
|
200
|
+
/**
|
|
201
|
+
* The sorting direction. Supported values: `asc`, `desc`.
|
|
202
|
+
* @type {'asc' | 'desc'}
|
|
203
|
+
* @memberof DealInstallmentsApiGetInstallments
|
|
204
|
+
*/
|
|
205
|
+
readonly sort_direction?: 'asc' | 'desc';
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Request parameters for postInstallment operation in DealInstallmentsApi.
|
|
209
|
+
* @export
|
|
210
|
+
* @interface DealInstallmentsApiPostInstallmentRequest
|
|
211
|
+
*/
|
|
212
|
+
export interface DealInstallmentsApiPostInstallmentRequest {
|
|
213
|
+
/**
|
|
214
|
+
* The ID of the deal
|
|
215
|
+
* @type {number}
|
|
216
|
+
* @memberof DealInstallmentsApiPostInstallment
|
|
217
|
+
*/
|
|
218
|
+
readonly id: number;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {AddInstallmentRequestBody}
|
|
222
|
+
* @memberof DealInstallmentsApiPostInstallment
|
|
223
|
+
*/
|
|
224
|
+
readonly AddInstallmentRequestBody?: AddInstallmentRequestBody;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Request parameters for updateInstallment operation in DealInstallmentsApi.
|
|
228
|
+
* @export
|
|
229
|
+
* @interface DealInstallmentsApiUpdateInstallmentRequest
|
|
230
|
+
*/
|
|
231
|
+
export interface DealInstallmentsApiUpdateInstallmentRequest {
|
|
232
|
+
/**
|
|
233
|
+
* The ID of the deal
|
|
234
|
+
* @type {number}
|
|
235
|
+
* @memberof DealInstallmentsApiUpdateInstallment
|
|
236
|
+
*/
|
|
237
|
+
readonly id: number;
|
|
238
|
+
/**
|
|
239
|
+
* The ID of the installment
|
|
240
|
+
* @type {number}
|
|
241
|
+
* @memberof DealInstallmentsApiUpdateInstallment
|
|
242
|
+
*/
|
|
243
|
+
readonly installment_id: number;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {UpdateInstallmentRequestBody}
|
|
247
|
+
* @memberof DealInstallmentsApiUpdateInstallment
|
|
248
|
+
*/
|
|
249
|
+
readonly UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* DealInstallmentsApi - object-oriented interface
|
|
253
|
+
* @export
|
|
254
|
+
* @class DealInstallmentsApi
|
|
255
|
+
* @extends {BaseAPI}
|
|
256
|
+
*/
|
|
257
|
+
export declare class DealInstallmentsApi extends BaseAPI {
|
|
258
|
+
/**
|
|
259
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
260
|
+
* @summary Delete an installment from a deal
|
|
261
|
+
* @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
|
262
|
+
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
* @memberof DealInstallmentsApi
|
|
265
|
+
*/
|
|
266
|
+
deleteInstallment(requestParameters: DealInstallmentsApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
|
|
267
|
+
/**
|
|
268
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
269
|
+
* @summary List installments added to a list of deals
|
|
270
|
+
* @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
|
|
271
|
+
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
* @memberof DealInstallmentsApi
|
|
274
|
+
*/
|
|
275
|
+
getInstallments(requestParameters: DealInstallmentsApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
278
|
+
* @summary Add an installment to a deal
|
|
279
|
+
* @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
|
|
280
|
+
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
* @memberof DealInstallmentsApi
|
|
283
|
+
*/
|
|
284
|
+
postInstallment(requestParameters: DealInstallmentsApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
|
|
285
|
+
/**
|
|
286
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
287
|
+
* @summary Update an installment added to a deal
|
|
288
|
+
* @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
|
289
|
+
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
* @memberof DealInstallmentsApi
|
|
292
|
+
*/
|
|
293
|
+
updateInstallment(requestParameters: DealInstallmentsApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
|
|
294
|
+
}
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pipedrive API v2
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* DealInstallmentsApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const DealInstallmentsApiAxiosParamCreator = function (configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
37
|
+
* @summary Delete an installment from a deal
|
|
38
|
+
* @param {number} id The ID of the deal
|
|
39
|
+
* @param {number} installment_id The ID of the installment
|
|
40
|
+
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
deleteInstallment: (id, installment_id) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
// verify required parameter 'id' is not null or undefined
|
|
45
|
+
assertParamExists('deleteInstallment', 'id', id);
|
|
46
|
+
// verify required parameter 'installment_id' is not null or undefined
|
|
47
|
+
assertParamExists('deleteInstallment', 'installment_id', installment_id);
|
|
48
|
+
const localVarPath = `/deals/{id}/installments/{installment_id}`
|
|
49
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
50
|
+
.replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
}
|
|
57
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
|
58
|
+
const localVarHeaderParameter = {};
|
|
59
|
+
const localVarQueryParameter = {};
|
|
60
|
+
// authentication api_key required
|
|
61
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
|
62
|
+
// authentication oauth2 required
|
|
63
|
+
// oauth required
|
|
64
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
|
65
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
68
|
+
return {
|
|
69
|
+
url: toPathString(localVarUrlObj),
|
|
70
|
+
options: localVarRequestOptions,
|
|
71
|
+
};
|
|
72
|
+
}),
|
|
73
|
+
/**
|
|
74
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
75
|
+
* @summary List installments added to a list of deals
|
|
76
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
|
77
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
78
|
+
* @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.
|
|
79
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
|
80
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
81
|
+
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
getInstallments: (deal_ids, cursor, limit, sort_by, sort_direction) => __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
// verify required parameter 'deal_ids' is not null or undefined
|
|
86
|
+
assertParamExists('getInstallments', 'deal_ids', deal_ids);
|
|
87
|
+
const localVarPath = `/deals/installments`;
|
|
88
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
90
|
+
let baseOptions;
|
|
91
|
+
if (configuration) {
|
|
92
|
+
baseOptions = configuration.baseOptions;
|
|
93
|
+
}
|
|
94
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
95
|
+
const localVarHeaderParameter = {};
|
|
96
|
+
const localVarQueryParameter = {};
|
|
97
|
+
// authentication api_key required
|
|
98
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
|
99
|
+
// authentication oauth2 required
|
|
100
|
+
// oauth required
|
|
101
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
|
102
|
+
if (deal_ids) {
|
|
103
|
+
localVarQueryParameter['deal_ids'] = deal_ids;
|
|
104
|
+
}
|
|
105
|
+
if (cursor !== undefined) {
|
|
106
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
107
|
+
}
|
|
108
|
+
if (limit !== undefined) {
|
|
109
|
+
localVarQueryParameter['limit'] = limit;
|
|
110
|
+
}
|
|
111
|
+
if (sort_by !== undefined) {
|
|
112
|
+
localVarQueryParameter['sort_by'] = sort_by;
|
|
113
|
+
}
|
|
114
|
+
if (sort_direction !== undefined) {
|
|
115
|
+
localVarQueryParameter['sort_direction'] = sort_direction;
|
|
116
|
+
}
|
|
117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
120
|
+
return {
|
|
121
|
+
url: toPathString(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions,
|
|
123
|
+
};
|
|
124
|
+
}),
|
|
125
|
+
/**
|
|
126
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
127
|
+
* @summary Add an installment to a deal
|
|
128
|
+
* @param {number} id The ID of the deal
|
|
129
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
|
130
|
+
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
postInstallment: (id, AddInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
// verify required parameter 'id' is not null or undefined
|
|
135
|
+
assertParamExists('postInstallment', 'id', id);
|
|
136
|
+
const localVarPath = `/deals/{id}/installments`
|
|
137
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
140
|
+
let baseOptions;
|
|
141
|
+
if (configuration) {
|
|
142
|
+
baseOptions = configuration.baseOptions;
|
|
143
|
+
}
|
|
144
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
145
|
+
const localVarHeaderParameter = {};
|
|
146
|
+
const localVarQueryParameter = {};
|
|
147
|
+
// authentication api_key required
|
|
148
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
|
149
|
+
// authentication oauth2 required
|
|
150
|
+
// oauth required
|
|
151
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
|
152
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
156
|
+
localVarRequestOptions.data = serializeDataIfNeeded(AddInstallmentRequestBody, localVarRequestOptions, configuration);
|
|
157
|
+
return {
|
|
158
|
+
url: toPathString(localVarUrlObj),
|
|
159
|
+
options: localVarRequestOptions,
|
|
160
|
+
};
|
|
161
|
+
}),
|
|
162
|
+
/**
|
|
163
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
164
|
+
* @summary Update an installment added to a deal
|
|
165
|
+
* @param {number} id The ID of the deal
|
|
166
|
+
* @param {number} installment_id The ID of the installment
|
|
167
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
|
168
|
+
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
updateInstallment: (id, installment_id, UpdateInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
// verify required parameter 'id' is not null or undefined
|
|
173
|
+
assertParamExists('updateInstallment', 'id', id);
|
|
174
|
+
// verify required parameter 'installment_id' is not null or undefined
|
|
175
|
+
assertParamExists('updateInstallment', 'installment_id', installment_id);
|
|
176
|
+
const localVarPath = `/deals/{id}/installments/{installment_id}`
|
|
177
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
178
|
+
.replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
|
|
179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
180
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
181
|
+
let baseOptions;
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
|
186
|
+
const localVarHeaderParameter = {};
|
|
187
|
+
const localVarQueryParameter = {};
|
|
188
|
+
// authentication api_key required
|
|
189
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-token", configuration);
|
|
190
|
+
// authentication oauth2 required
|
|
191
|
+
// oauth required
|
|
192
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
|
193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
196
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
197
|
+
localVarRequestOptions.data = serializeDataIfNeeded(UpdateInstallmentRequestBody, localVarRequestOptions, configuration);
|
|
198
|
+
return {
|
|
199
|
+
url: toPathString(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
}),
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* DealInstallmentsApi - functional programming interface
|
|
207
|
+
* @export
|
|
208
|
+
*/
|
|
209
|
+
export const DealInstallmentsApiFp = function (configuration) {
|
|
210
|
+
const localVarAxiosParamCreator = DealInstallmentsApiAxiosParamCreator(configuration);
|
|
211
|
+
return {
|
|
212
|
+
/**
|
|
213
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
214
|
+
* @summary Delete an installment from a deal
|
|
215
|
+
* @param {number} id The ID of the deal
|
|
216
|
+
* @param {number} installment_id The ID of the installment
|
|
217
|
+
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
deleteInstallment(id, installment_id) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInstallment(id, installment_id);
|
|
223
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
/**
|
|
227
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
228
|
+
* @summary List installments added to a list of deals
|
|
229
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
|
230
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
231
|
+
* @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.
|
|
232
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
|
233
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
|
234
|
+
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
getInstallments(deal_ids, cursor, limit, sort_by, sort_direction) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallments(deal_ids, cursor, limit, sort_by, sort_direction);
|
|
240
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
245
|
+
* @summary Add an installment to a deal
|
|
246
|
+
* @param {number} id The ID of the deal
|
|
247
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
|
248
|
+
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
postInstallment(id, AddInstallmentRequestBody) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postInstallment(id, AddInstallmentRequestBody);
|
|
254
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
255
|
+
});
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
259
|
+
* @summary Update an installment added to a deal
|
|
260
|
+
* @param {number} id The ID of the deal
|
|
261
|
+
* @param {number} installment_id The ID of the installment
|
|
262
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
|
263
|
+
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
updateInstallment(id, installment_id, UpdateInstallmentRequestBody) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInstallment(id, installment_id, UpdateInstallmentRequestBody);
|
|
269
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* DealInstallmentsApi - factory interface
|
|
276
|
+
* @export
|
|
277
|
+
*/
|
|
278
|
+
export const DealInstallmentsApiFactory = function (configuration, basePath, axios) {
|
|
279
|
+
const localVarFp = DealInstallmentsApiFp(configuration);
|
|
280
|
+
return {
|
|
281
|
+
/**
|
|
282
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
283
|
+
* @summary Delete an installment from a deal
|
|
284
|
+
* @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
|
285
|
+
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
*/
|
|
288
|
+
deleteInstallment(requestParameters) {
|
|
289
|
+
return localVarFp.deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(axios, basePath));
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
293
|
+
* @summary List installments added to a list of deals
|
|
294
|
+
* @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
|
|
295
|
+
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
getInstallments(requestParameters) {
|
|
299
|
+
return localVarFp.getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
303
|
+
* @summary Add an installment to a deal
|
|
304
|
+
* @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
|
|
305
|
+
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
postInstallment(requestParameters) {
|
|
309
|
+
return localVarFp.postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(axios, basePath));
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
313
|
+
* @summary Update an installment added to a deal
|
|
314
|
+
* @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
|
315
|
+
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
updateInstallment(requestParameters) {
|
|
319
|
+
return localVarFp.updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(axios, basePath));
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* DealInstallmentsApi - object-oriented interface
|
|
325
|
+
* @export
|
|
326
|
+
* @class DealInstallmentsApi
|
|
327
|
+
* @extends {BaseAPI}
|
|
328
|
+
*/
|
|
329
|
+
export class DealInstallmentsApi extends BaseAPI {
|
|
330
|
+
/**
|
|
331
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
|
332
|
+
* @summary Delete an installment from a deal
|
|
333
|
+
* @param {DealInstallmentsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
|
334
|
+
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
* @memberof DealInstallmentsApi
|
|
337
|
+
*/
|
|
338
|
+
deleteInstallment(requestParameters) {
|
|
339
|
+
return DealInstallmentsApiFp(this.configuration).deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(this.axios, this.basePath));
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
|
343
|
+
* @summary List installments added to a list of deals
|
|
344
|
+
* @param {DealInstallmentsApiGetInstallmentsRequest} requestParameters Request parameters.
|
|
345
|
+
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
* @memberof DealInstallmentsApi
|
|
348
|
+
*/
|
|
349
|
+
getInstallments(requestParameters) {
|
|
350
|
+
return DealInstallmentsApiFp(this.configuration).getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
|
354
|
+
* @summary Add an installment to a deal
|
|
355
|
+
* @param {DealInstallmentsApiPostInstallmentRequest} requestParameters Request parameters.
|
|
356
|
+
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof DealInstallmentsApi
|
|
359
|
+
*/
|
|
360
|
+
postInstallment(requestParameters) {
|
|
361
|
+
return DealInstallmentsApiFp(this.configuration).postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
|
365
|
+
* @summary Update an installment added to a deal
|
|
366
|
+
* @param {DealInstallmentsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
|
367
|
+
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
* @memberof DealInstallmentsApi
|
|
370
|
+
*/
|
|
371
|
+
updateInstallment(requestParameters) {
|
|
372
|
+
return DealInstallmentsApiFp(this.configuration).updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
|
373
|
+
}
|
|
374
|
+
}
|