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,1806 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pipedrive API v2
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.BetaApi = exports.BetaApiFactory = exports.BetaApiFp = exports.BetaApiAxiosParamCreator = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../base");
|
|
35
|
+
/**
|
|
36
|
+
* BetaApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const BetaApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* Adds a new project board.
|
|
43
|
+
* @summary Add a project board
|
|
44
|
+
* @param {AddProjectBoardRequest} AddProjectBoardRequest
|
|
45
|
+
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
addProjectBoard: (AddProjectBoardRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
// verify required parameter 'AddProjectBoardRequest' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('addProjectBoard', 'AddProjectBoardRequest', AddProjectBoardRequest);
|
|
51
|
+
const localVarPath = `/boards`;
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
}
|
|
58
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
59
|
+
const localVarHeaderParameter = {};
|
|
60
|
+
const localVarQueryParameter = {};
|
|
61
|
+
// authentication api_key required
|
|
62
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
63
|
+
// authentication oauth2 required
|
|
64
|
+
// oauth required
|
|
65
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
66
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
67
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
68
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
69
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
70
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddProjectBoardRequest, localVarRequestOptions, configuration);
|
|
71
|
+
return {
|
|
72
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
/**
|
|
77
|
+
* Creates a new project custom field.
|
|
78
|
+
* @summary Create one project field
|
|
79
|
+
* @param {AddProjectFieldRequest} AddProjectFieldRequest
|
|
80
|
+
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
addProjectField: (AddProjectFieldRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
// verify required parameter 'AddProjectFieldRequest' is not null or undefined
|
|
85
|
+
(0, common_1.assertParamExists)('addProjectField', 'AddProjectFieldRequest', AddProjectFieldRequest);
|
|
86
|
+
const localVarPath = `/projectFields`;
|
|
87
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
88
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
89
|
+
let baseOptions;
|
|
90
|
+
if (configuration) {
|
|
91
|
+
baseOptions = configuration.baseOptions;
|
|
92
|
+
}
|
|
93
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
94
|
+
const localVarHeaderParameter = {};
|
|
95
|
+
const localVarQueryParameter = {};
|
|
96
|
+
// authentication api_key required
|
|
97
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
98
|
+
// authentication oauth2 required
|
|
99
|
+
// oauth required
|
|
100
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["project-fields:full"], configuration);
|
|
101
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
102
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
105
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddProjectFieldRequest, localVarRequestOptions, configuration);
|
|
106
|
+
return {
|
|
107
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
108
|
+
options: localVarRequestOptions,
|
|
109
|
+
};
|
|
110
|
+
}),
|
|
111
|
+
/**
|
|
112
|
+
* Adds new options to a project custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
113
|
+
* @summary Add project field options in bulk
|
|
114
|
+
* @param {string} field_code The unique code identifying the field
|
|
115
|
+
* @param {Array<AddDealFieldOptionsRequestInner>} AddDealFieldOptionsRequestInner
|
|
116
|
+
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
addProjectFieldOptions: (field_code, AddDealFieldOptionsRequestInner) => __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
// verify required parameter 'field_code' is not null or undefined
|
|
121
|
+
(0, common_1.assertParamExists)('addProjectFieldOptions', 'field_code', field_code);
|
|
122
|
+
// verify required parameter 'AddDealFieldOptionsRequestInner' is not null or undefined
|
|
123
|
+
(0, common_1.assertParamExists)('addProjectFieldOptions', 'AddDealFieldOptionsRequestInner', AddDealFieldOptionsRequestInner);
|
|
124
|
+
const localVarPath = `/projectFields/{field_code}/options`
|
|
125
|
+
.replace(`{${"field_code"}}`, encodeURIComponent(String(field_code)));
|
|
126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
let baseOptions;
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
133
|
+
const localVarHeaderParameter = {};
|
|
134
|
+
const localVarQueryParameter = {};
|
|
135
|
+
// authentication api_key required
|
|
136
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
137
|
+
// authentication oauth2 required
|
|
138
|
+
// oauth required
|
|
139
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["project-fields:full"], configuration);
|
|
140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
141
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
144
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddDealFieldOptionsRequestInner, localVarRequestOptions, configuration);
|
|
145
|
+
return {
|
|
146
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions,
|
|
148
|
+
};
|
|
149
|
+
}),
|
|
150
|
+
/**
|
|
151
|
+
* Adds a new project phase to a board.
|
|
152
|
+
* @summary Add a project phase
|
|
153
|
+
* @param {AddProjectPhaseRequest} AddProjectPhaseRequest
|
|
154
|
+
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
addProjectPhase: (AddProjectPhaseRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
// verify required parameter 'AddProjectPhaseRequest' is not null or undefined
|
|
159
|
+
(0, common_1.assertParamExists)('addProjectPhase', 'AddProjectPhaseRequest', AddProjectPhaseRequest);
|
|
160
|
+
const localVarPath = `/phases`;
|
|
161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
162
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
let baseOptions;
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
}
|
|
167
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
168
|
+
const localVarHeaderParameter = {};
|
|
169
|
+
const localVarQueryParameter = {};
|
|
170
|
+
// authentication api_key required
|
|
171
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
172
|
+
// authentication oauth2 required
|
|
173
|
+
// oauth required
|
|
174
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
175
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
179
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddProjectPhaseRequest, localVarRequestOptions, configuration);
|
|
180
|
+
return {
|
|
181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
};
|
|
184
|
+
}),
|
|
185
|
+
/**
|
|
186
|
+
* Adds a new task.
|
|
187
|
+
* @summary Add a task
|
|
188
|
+
* @param {AddTaskRequest} AddTaskRequest
|
|
189
|
+
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
addTask: (AddTaskRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
// verify required parameter 'AddTaskRequest' is not null or undefined
|
|
194
|
+
(0, common_1.assertParamExists)('addTask', 'AddTaskRequest', AddTaskRequest);
|
|
195
|
+
const localVarPath = `/tasks`;
|
|
196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
198
|
+
let baseOptions;
|
|
199
|
+
if (configuration) {
|
|
200
|
+
baseOptions = configuration.baseOptions;
|
|
201
|
+
}
|
|
202
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
|
203
|
+
const localVarHeaderParameter = {};
|
|
204
|
+
const localVarQueryParameter = {};
|
|
205
|
+
// authentication api_key required
|
|
206
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
207
|
+
// authentication oauth2 required
|
|
208
|
+
// oauth required
|
|
209
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
210
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
214
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddTaskRequest, localVarRequestOptions, configuration);
|
|
215
|
+
return {
|
|
216
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
};
|
|
219
|
+
}),
|
|
220
|
+
/**
|
|
221
|
+
* Marks a project board as deleted.
|
|
222
|
+
* @summary Delete a project board
|
|
223
|
+
* @param {number} id The ID of the project board
|
|
224
|
+
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
deleteProjectBoard: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
// verify required parameter 'id' is not null or undefined
|
|
229
|
+
(0, common_1.assertParamExists)('deleteProjectBoard', 'id', id);
|
|
230
|
+
const localVarPath = `/boards/{id}`
|
|
231
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
232
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
233
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
234
|
+
let baseOptions;
|
|
235
|
+
if (configuration) {
|
|
236
|
+
baseOptions = configuration.baseOptions;
|
|
237
|
+
}
|
|
238
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
|
239
|
+
const localVarHeaderParameter = {};
|
|
240
|
+
const localVarQueryParameter = {};
|
|
241
|
+
// authentication api_key required
|
|
242
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
243
|
+
// authentication oauth2 required
|
|
244
|
+
// oauth required
|
|
245
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
246
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
249
|
+
return {
|
|
250
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
}),
|
|
254
|
+
/**
|
|
255
|
+
* Marks a custom field as deleted.
|
|
256
|
+
* @summary Delete one project field
|
|
257
|
+
* @param {string} field_code The unique code identifying the field
|
|
258
|
+
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
deleteProjectField: (field_code) => __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
// verify required parameter 'field_code' is not null or undefined
|
|
263
|
+
(0, common_1.assertParamExists)('deleteProjectField', 'field_code', field_code);
|
|
264
|
+
const localVarPath = `/projectFields/{field_code}`
|
|
265
|
+
.replace(`{${"field_code"}}`, encodeURIComponent(String(field_code)));
|
|
266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
267
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
268
|
+
let baseOptions;
|
|
269
|
+
if (configuration) {
|
|
270
|
+
baseOptions = configuration.baseOptions;
|
|
271
|
+
}
|
|
272
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
|
273
|
+
const localVarHeaderParameter = {};
|
|
274
|
+
const localVarQueryParameter = {};
|
|
275
|
+
// authentication api_key required
|
|
276
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
277
|
+
// authentication oauth2 required
|
|
278
|
+
// oauth required
|
|
279
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["project-fields:full"], configuration);
|
|
280
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
282
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
283
|
+
return {
|
|
284
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
285
|
+
options: localVarRequestOptions,
|
|
286
|
+
};
|
|
287
|
+
}),
|
|
288
|
+
/**
|
|
289
|
+
* Removes existing options from a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the deleted options.
|
|
290
|
+
* @summary Delete project field options in bulk
|
|
291
|
+
* @param {string} field_code The unique code identifying the field
|
|
292
|
+
* @param {Array<DeleteDealFieldOptionsRequestInner>} DeleteDealFieldOptionsRequestInner
|
|
293
|
+
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
deleteProjectFieldOptions: (field_code, DeleteDealFieldOptionsRequestInner) => __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
// verify required parameter 'field_code' is not null or undefined
|
|
298
|
+
(0, common_1.assertParamExists)('deleteProjectFieldOptions', 'field_code', field_code);
|
|
299
|
+
// verify required parameter 'DeleteDealFieldOptionsRequestInner' is not null or undefined
|
|
300
|
+
(0, common_1.assertParamExists)('deleteProjectFieldOptions', 'DeleteDealFieldOptionsRequestInner', DeleteDealFieldOptionsRequestInner);
|
|
301
|
+
const localVarPath = `/projectFields/{field_code}/options`
|
|
302
|
+
.replace(`{${"field_code"}}`, encodeURIComponent(String(field_code)));
|
|
303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
|
310
|
+
const localVarHeaderParameter = {};
|
|
311
|
+
const localVarQueryParameter = {};
|
|
312
|
+
// authentication api_key required
|
|
313
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
314
|
+
// authentication oauth2 required
|
|
315
|
+
// oauth required
|
|
316
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["project-fields:full"], configuration);
|
|
317
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
318
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
321
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(DeleteDealFieldOptionsRequestInner, localVarRequestOptions, configuration);
|
|
322
|
+
return {
|
|
323
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions,
|
|
325
|
+
};
|
|
326
|
+
}),
|
|
327
|
+
/**
|
|
328
|
+
* Marks a project phase as deleted.
|
|
329
|
+
* @summary Delete a project phase
|
|
330
|
+
* @param {number} id The ID of the project phase
|
|
331
|
+
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
deleteProjectPhase: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
// verify required parameter 'id' is not null or undefined
|
|
336
|
+
(0, common_1.assertParamExists)('deleteProjectPhase', 'id', id);
|
|
337
|
+
const localVarPath = `/phases/{id}`
|
|
338
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
340
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
+
let baseOptions;
|
|
342
|
+
if (configuration) {
|
|
343
|
+
baseOptions = configuration.baseOptions;
|
|
344
|
+
}
|
|
345
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
|
346
|
+
const localVarHeaderParameter = {};
|
|
347
|
+
const localVarQueryParameter = {};
|
|
348
|
+
// authentication api_key required
|
|
349
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
350
|
+
// authentication oauth2 required
|
|
351
|
+
// oauth required
|
|
352
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
353
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
356
|
+
return {
|
|
357
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
358
|
+
options: localVarRequestOptions,
|
|
359
|
+
};
|
|
360
|
+
}),
|
|
361
|
+
/**
|
|
362
|
+
* Marks a task as deleted. If the task has subtasks, those will also be deleted.
|
|
363
|
+
* @summary Delete a task
|
|
364
|
+
* @param {number} id The ID of the task
|
|
365
|
+
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
deleteTask: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
// verify required parameter 'id' is not null or undefined
|
|
370
|
+
(0, common_1.assertParamExists)('deleteTask', 'id', id);
|
|
371
|
+
const localVarPath = `/tasks/{id}`
|
|
372
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
let baseOptions;
|
|
376
|
+
if (configuration) {
|
|
377
|
+
baseOptions = configuration.baseOptions;
|
|
378
|
+
}
|
|
379
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
|
380
|
+
const localVarHeaderParameter = {};
|
|
381
|
+
const localVarQueryParameter = {};
|
|
382
|
+
// authentication api_key required
|
|
383
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
384
|
+
// authentication oauth2 required
|
|
385
|
+
// oauth required
|
|
386
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
387
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
389
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
390
|
+
return {
|
|
391
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
392
|
+
options: localVarRequestOptions,
|
|
393
|
+
};
|
|
394
|
+
}),
|
|
395
|
+
/**
|
|
396
|
+
* Returns metadata about a specific project field.
|
|
397
|
+
* @summary Get one project field
|
|
398
|
+
* @param {string} field_code The unique code identifying the field
|
|
399
|
+
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
getProjectField: (field_code) => __awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
// verify required parameter 'field_code' is not null or undefined
|
|
404
|
+
(0, common_1.assertParamExists)('getProjectField', 'field_code', field_code);
|
|
405
|
+
const localVarPath = `/projectFields/{field_code}`
|
|
406
|
+
.replace(`{${"field_code"}}`, encodeURIComponent(String(field_code)));
|
|
407
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
408
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
409
|
+
let baseOptions;
|
|
410
|
+
if (configuration) {
|
|
411
|
+
baseOptions = configuration.baseOptions;
|
|
412
|
+
}
|
|
413
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
414
|
+
const localVarHeaderParameter = {};
|
|
415
|
+
const localVarQueryParameter = {};
|
|
416
|
+
// authentication api_key required
|
|
417
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
418
|
+
// authentication oauth2 required
|
|
419
|
+
// oauth required
|
|
420
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full", "project-fields:full"], configuration);
|
|
421
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
423
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
424
|
+
return {
|
|
425
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
426
|
+
options: localVarRequestOptions,
|
|
427
|
+
};
|
|
428
|
+
}),
|
|
429
|
+
/**
|
|
430
|
+
* Returns metadata about all project fields in the company.
|
|
431
|
+
* @summary Get all project fields
|
|
432
|
+
* @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.
|
|
433
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
434
|
+
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
getProjectFields: (limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
|
438
|
+
const localVarPath = `/projectFields`;
|
|
439
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
440
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
441
|
+
let baseOptions;
|
|
442
|
+
if (configuration) {
|
|
443
|
+
baseOptions = configuration.baseOptions;
|
|
444
|
+
}
|
|
445
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
446
|
+
const localVarHeaderParameter = {};
|
|
447
|
+
const localVarQueryParameter = {};
|
|
448
|
+
// authentication api_key required
|
|
449
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
450
|
+
// authentication oauth2 required
|
|
451
|
+
// oauth required
|
|
452
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full", "project-fields:full"], configuration);
|
|
453
|
+
if (limit !== undefined) {
|
|
454
|
+
localVarQueryParameter['limit'] = limit;
|
|
455
|
+
}
|
|
456
|
+
if (cursor !== undefined) {
|
|
457
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
458
|
+
}
|
|
459
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
460
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
461
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
462
|
+
return {
|
|
463
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
464
|
+
options: localVarRequestOptions,
|
|
465
|
+
};
|
|
466
|
+
}),
|
|
467
|
+
/**
|
|
468
|
+
* Returns the details of a specific project board.
|
|
469
|
+
* @summary Get details of a project board
|
|
470
|
+
* @param {number} id The ID of the project board
|
|
471
|
+
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
getProjectsBoard: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
475
|
+
// verify required parameter 'id' is not null or undefined
|
|
476
|
+
(0, common_1.assertParamExists)('getProjectsBoard', 'id', id);
|
|
477
|
+
const localVarPath = `/boards/{id}`
|
|
478
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
479
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
480
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
481
|
+
let baseOptions;
|
|
482
|
+
if (configuration) {
|
|
483
|
+
baseOptions = configuration.baseOptions;
|
|
484
|
+
}
|
|
485
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
486
|
+
const localVarHeaderParameter = {};
|
|
487
|
+
const localVarQueryParameter = {};
|
|
488
|
+
// authentication api_key required
|
|
489
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
490
|
+
// authentication oauth2 required
|
|
491
|
+
// oauth required
|
|
492
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
|
|
493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
495
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
496
|
+
return {
|
|
497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
498
|
+
options: localVarRequestOptions,
|
|
499
|
+
};
|
|
500
|
+
}),
|
|
501
|
+
/**
|
|
502
|
+
* Returns all active project boards.
|
|
503
|
+
* @summary Get all project boards
|
|
504
|
+
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
getProjectsBoards: () => __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
const localVarPath = `/boards`;
|
|
509
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
510
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
511
|
+
let baseOptions;
|
|
512
|
+
if (configuration) {
|
|
513
|
+
baseOptions = configuration.baseOptions;
|
|
514
|
+
}
|
|
515
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
516
|
+
const localVarHeaderParameter = {};
|
|
517
|
+
const localVarQueryParameter = {};
|
|
518
|
+
// authentication api_key required
|
|
519
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
520
|
+
// authentication oauth2 required
|
|
521
|
+
// oauth required
|
|
522
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
|
|
523
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
524
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
525
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
526
|
+
return {
|
|
527
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
528
|
+
options: localVarRequestOptions,
|
|
529
|
+
};
|
|
530
|
+
}),
|
|
531
|
+
/**
|
|
532
|
+
* Returns the details of a specific project phase.
|
|
533
|
+
* @summary Get details of a project phase
|
|
534
|
+
* @param {number} id The ID of the project phase
|
|
535
|
+
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
getProjectsPhase: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
539
|
+
// verify required parameter 'id' is not null or undefined
|
|
540
|
+
(0, common_1.assertParamExists)('getProjectsPhase', 'id', id);
|
|
541
|
+
const localVarPath = `/phases/{id}`
|
|
542
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
543
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
544
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
545
|
+
let baseOptions;
|
|
546
|
+
if (configuration) {
|
|
547
|
+
baseOptions = configuration.baseOptions;
|
|
548
|
+
}
|
|
549
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
550
|
+
const localVarHeaderParameter = {};
|
|
551
|
+
const localVarQueryParameter = {};
|
|
552
|
+
// authentication api_key required
|
|
553
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
554
|
+
// authentication oauth2 required
|
|
555
|
+
// oauth required
|
|
556
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
|
|
557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
558
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
559
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
560
|
+
return {
|
|
561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
562
|
+
options: localVarRequestOptions,
|
|
563
|
+
};
|
|
564
|
+
}),
|
|
565
|
+
/**
|
|
566
|
+
* Returns all active project phases under a specific board.
|
|
567
|
+
* @summary Get project phases
|
|
568
|
+
* @param {number} board_id The ID of the board for which phases are requested
|
|
569
|
+
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
getProjectsPhases: (board_id) => __awaiter(this, void 0, void 0, function* () {
|
|
573
|
+
// verify required parameter 'board_id' is not null or undefined
|
|
574
|
+
(0, common_1.assertParamExists)('getProjectsPhases', 'board_id', board_id);
|
|
575
|
+
const localVarPath = `/phases`;
|
|
576
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
577
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
578
|
+
let baseOptions;
|
|
579
|
+
if (configuration) {
|
|
580
|
+
baseOptions = configuration.baseOptions;
|
|
581
|
+
}
|
|
582
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
583
|
+
const localVarHeaderParameter = {};
|
|
584
|
+
const localVarQueryParameter = {};
|
|
585
|
+
// authentication api_key required
|
|
586
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
587
|
+
// authentication oauth2 required
|
|
588
|
+
// oauth required
|
|
589
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
|
|
590
|
+
if (board_id !== undefined) {
|
|
591
|
+
localVarQueryParameter['board_id'] = board_id;
|
|
592
|
+
}
|
|
593
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
596
|
+
return {
|
|
597
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
598
|
+
options: localVarRequestOptions,
|
|
599
|
+
};
|
|
600
|
+
}),
|
|
601
|
+
/**
|
|
602
|
+
* Returns the details of a specific task.
|
|
603
|
+
* @summary Get details of a task
|
|
604
|
+
* @param {number} id The ID of the task
|
|
605
|
+
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
getTask: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
// verify required parameter 'id' is not null or undefined
|
|
610
|
+
(0, common_1.assertParamExists)('getTask', 'id', id);
|
|
611
|
+
const localVarPath = `/tasks/{id}`
|
|
612
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
614
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
615
|
+
let baseOptions;
|
|
616
|
+
if (configuration) {
|
|
617
|
+
baseOptions = configuration.baseOptions;
|
|
618
|
+
}
|
|
619
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
620
|
+
const localVarHeaderParameter = {};
|
|
621
|
+
const localVarQueryParameter = {};
|
|
622
|
+
// authentication api_key required
|
|
623
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
624
|
+
// authentication oauth2 required
|
|
625
|
+
// oauth required
|
|
626
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
|
|
627
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
630
|
+
return {
|
|
631
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
632
|
+
options: localVarRequestOptions,
|
|
633
|
+
};
|
|
634
|
+
}),
|
|
635
|
+
/**
|
|
636
|
+
* Returns all tasks.
|
|
637
|
+
* @summary Get all tasks
|
|
638
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
639
|
+
* @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.
|
|
640
|
+
* @param {boolean} [is_done] Whether the task is done or not. If omitted, both done and not done tasks are returned.
|
|
641
|
+
* @param {boolean} [is_milestone] Whether the task is a milestone or not. If omitted, both milestone and non-milestone tasks are returned.
|
|
642
|
+
* @param {number} [assignee_id] If supplied, only tasks assigned to this user are returned
|
|
643
|
+
* @param {number} [project_id] If supplied, only tasks belonging to this project are returned
|
|
644
|
+
* @param {string} [parent_task_id] If `null` is supplied, only root-level tasks (without a parent) are returned. If an integer is supplied, only subtasks of that specific task are returned. By default all tasks are returned.
|
|
645
|
+
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
getTasks: (cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id) => __awaiter(this, void 0, void 0, function* () {
|
|
649
|
+
const localVarPath = `/tasks`;
|
|
650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
651
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
652
|
+
let baseOptions;
|
|
653
|
+
if (configuration) {
|
|
654
|
+
baseOptions = configuration.baseOptions;
|
|
655
|
+
}
|
|
656
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
657
|
+
const localVarHeaderParameter = {};
|
|
658
|
+
const localVarQueryParameter = {};
|
|
659
|
+
// authentication api_key required
|
|
660
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
661
|
+
// authentication oauth2 required
|
|
662
|
+
// oauth required
|
|
663
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration);
|
|
664
|
+
if (cursor !== undefined) {
|
|
665
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
666
|
+
}
|
|
667
|
+
if (limit !== undefined) {
|
|
668
|
+
localVarQueryParameter['limit'] = limit;
|
|
669
|
+
}
|
|
670
|
+
if (is_done !== undefined) {
|
|
671
|
+
localVarQueryParameter['is_done'] = is_done;
|
|
672
|
+
}
|
|
673
|
+
if (is_milestone !== undefined) {
|
|
674
|
+
localVarQueryParameter['is_milestone'] = is_milestone;
|
|
675
|
+
}
|
|
676
|
+
if (assignee_id !== undefined) {
|
|
677
|
+
localVarQueryParameter['assignee_id'] = assignee_id;
|
|
678
|
+
}
|
|
679
|
+
if (project_id !== undefined) {
|
|
680
|
+
localVarQueryParameter['project_id'] = project_id;
|
|
681
|
+
}
|
|
682
|
+
if (parent_task_id !== undefined) {
|
|
683
|
+
localVarQueryParameter['parent_task_id'] = parent_task_id;
|
|
684
|
+
}
|
|
685
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
687
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
688
|
+
return {
|
|
689
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
690
|
+
options: localVarRequestOptions,
|
|
691
|
+
};
|
|
692
|
+
}),
|
|
693
|
+
/**
|
|
694
|
+
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
695
|
+
* @summary Search projects
|
|
696
|
+
* @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.
|
|
697
|
+
* @param {'custom_fields' | 'notes' | 'title' | 'description'} [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>.
|
|
698
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
699
|
+
* @param {number} [person_id] Will filter projects by the provided person ID
|
|
700
|
+
* @param {number} [organization_id] Will filter projects by the provided organization ID
|
|
701
|
+
* @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.
|
|
702
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
703
|
+
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
searchProjects: (term, fields, exact_match, person_id, organization_id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
|
707
|
+
// verify required parameter 'term' is not null or undefined
|
|
708
|
+
(0, common_1.assertParamExists)('searchProjects', 'term', term);
|
|
709
|
+
const localVarPath = `/projects/search`;
|
|
710
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
711
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
712
|
+
let baseOptions;
|
|
713
|
+
if (configuration) {
|
|
714
|
+
baseOptions = configuration.baseOptions;
|
|
715
|
+
}
|
|
716
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
|
717
|
+
const localVarHeaderParameter = {};
|
|
718
|
+
const localVarQueryParameter = {};
|
|
719
|
+
// authentication api_key required
|
|
720
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
721
|
+
// authentication oauth2 required
|
|
722
|
+
// oauth required
|
|
723
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full", "search:read"], configuration);
|
|
724
|
+
if (term !== undefined) {
|
|
725
|
+
localVarQueryParameter['term'] = term;
|
|
726
|
+
}
|
|
727
|
+
if (fields !== undefined) {
|
|
728
|
+
localVarQueryParameter['fields'] = fields;
|
|
729
|
+
}
|
|
730
|
+
if (exact_match !== undefined) {
|
|
731
|
+
localVarQueryParameter['exact_match'] = exact_match;
|
|
732
|
+
}
|
|
733
|
+
if (person_id !== undefined) {
|
|
734
|
+
localVarQueryParameter['person_id'] = person_id;
|
|
735
|
+
}
|
|
736
|
+
if (organization_id !== undefined) {
|
|
737
|
+
localVarQueryParameter['organization_id'] = organization_id;
|
|
738
|
+
}
|
|
739
|
+
if (limit !== undefined) {
|
|
740
|
+
localVarQueryParameter['limit'] = limit;
|
|
741
|
+
}
|
|
742
|
+
if (cursor !== undefined) {
|
|
743
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
744
|
+
}
|
|
745
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
746
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
747
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
748
|
+
return {
|
|
749
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
750
|
+
options: localVarRequestOptions,
|
|
751
|
+
};
|
|
752
|
+
}),
|
|
753
|
+
/**
|
|
754
|
+
* Updates the properties of a project board.
|
|
755
|
+
* @summary Update a project board
|
|
756
|
+
* @param {number} id The ID of the project board
|
|
757
|
+
* @param {UpdateProjectBoardRequest} [UpdateProjectBoardRequest]
|
|
758
|
+
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
updateProjectBoard: (id, UpdateProjectBoardRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
762
|
+
// verify required parameter 'id' is not null or undefined
|
|
763
|
+
(0, common_1.assertParamExists)('updateProjectBoard', 'id', id);
|
|
764
|
+
const localVarPath = `/boards/{id}`
|
|
765
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
766
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
767
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
768
|
+
let baseOptions;
|
|
769
|
+
if (configuration) {
|
|
770
|
+
baseOptions = configuration.baseOptions;
|
|
771
|
+
}
|
|
772
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
|
773
|
+
const localVarHeaderParameter = {};
|
|
774
|
+
const localVarQueryParameter = {};
|
|
775
|
+
// authentication api_key required
|
|
776
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
777
|
+
// authentication oauth2 required
|
|
778
|
+
// oauth required
|
|
779
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
780
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
781
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
782
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
783
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
784
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(UpdateProjectBoardRequest, localVarRequestOptions, configuration);
|
|
785
|
+
return {
|
|
786
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
787
|
+
options: localVarRequestOptions,
|
|
788
|
+
};
|
|
789
|
+
}),
|
|
790
|
+
/**
|
|
791
|
+
* Updates a project custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
792
|
+
* @summary Update one project field
|
|
793
|
+
* @param {string} field_code The unique code identifying the field
|
|
794
|
+
* @param {UpdateProjectFieldRequest} UpdateProjectFieldRequest
|
|
795
|
+
|
|
796
|
+
* @throws {RequiredError}
|
|
797
|
+
*/
|
|
798
|
+
updateProjectField: (field_code, UpdateProjectFieldRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
799
|
+
// verify required parameter 'field_code' is not null or undefined
|
|
800
|
+
(0, common_1.assertParamExists)('updateProjectField', 'field_code', field_code);
|
|
801
|
+
// verify required parameter 'UpdateProjectFieldRequest' is not null or undefined
|
|
802
|
+
(0, common_1.assertParamExists)('updateProjectField', 'UpdateProjectFieldRequest', UpdateProjectFieldRequest);
|
|
803
|
+
const localVarPath = `/projectFields/{field_code}`
|
|
804
|
+
.replace(`{${"field_code"}}`, encodeURIComponent(String(field_code)));
|
|
805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
806
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
807
|
+
let baseOptions;
|
|
808
|
+
if (configuration) {
|
|
809
|
+
baseOptions = configuration.baseOptions;
|
|
810
|
+
}
|
|
811
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
|
812
|
+
const localVarHeaderParameter = {};
|
|
813
|
+
const localVarQueryParameter = {};
|
|
814
|
+
// authentication api_key required
|
|
815
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
816
|
+
// authentication oauth2 required
|
|
817
|
+
// oauth required
|
|
818
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["project-fields:full"], configuration);
|
|
819
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
820
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
821
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
822
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
823
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(UpdateProjectFieldRequest, localVarRequestOptions, configuration);
|
|
824
|
+
return {
|
|
825
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
826
|
+
options: localVarRequestOptions,
|
|
827
|
+
};
|
|
828
|
+
}),
|
|
829
|
+
/**
|
|
830
|
+
* Updates existing options for a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
831
|
+
* @summary Update project field options in bulk
|
|
832
|
+
* @param {string} field_code The unique code identifying the field
|
|
833
|
+
* @param {Array<UpdateDealFieldOptionsRequestInner>} UpdateDealFieldOptionsRequestInner
|
|
834
|
+
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
*/
|
|
837
|
+
updateProjectFieldOptions: (field_code, UpdateDealFieldOptionsRequestInner) => __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
// verify required parameter 'field_code' is not null or undefined
|
|
839
|
+
(0, common_1.assertParamExists)('updateProjectFieldOptions', 'field_code', field_code);
|
|
840
|
+
// verify required parameter 'UpdateDealFieldOptionsRequestInner' is not null or undefined
|
|
841
|
+
(0, common_1.assertParamExists)('updateProjectFieldOptions', 'UpdateDealFieldOptionsRequestInner', UpdateDealFieldOptionsRequestInner);
|
|
842
|
+
const localVarPath = `/projectFields/{field_code}/options`
|
|
843
|
+
.replace(`{${"field_code"}}`, encodeURIComponent(String(field_code)));
|
|
844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
845
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
846
|
+
let baseOptions;
|
|
847
|
+
if (configuration) {
|
|
848
|
+
baseOptions = configuration.baseOptions;
|
|
849
|
+
}
|
|
850
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
|
851
|
+
const localVarHeaderParameter = {};
|
|
852
|
+
const localVarQueryParameter = {};
|
|
853
|
+
// authentication api_key required
|
|
854
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
855
|
+
// authentication oauth2 required
|
|
856
|
+
// oauth required
|
|
857
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["project-fields:full"], configuration);
|
|
858
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
859
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
860
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
861
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
862
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(UpdateDealFieldOptionsRequestInner, localVarRequestOptions, configuration);
|
|
863
|
+
return {
|
|
864
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
865
|
+
options: localVarRequestOptions,
|
|
866
|
+
};
|
|
867
|
+
}),
|
|
868
|
+
/**
|
|
869
|
+
* Updates the properties of a project phase.
|
|
870
|
+
* @summary Update a project phase
|
|
871
|
+
* @param {number} id The ID of the project phase
|
|
872
|
+
* @param {UpdateProjectPhaseRequest} [UpdateProjectPhaseRequest]
|
|
873
|
+
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
*/
|
|
876
|
+
updateProjectPhase: (id, UpdateProjectPhaseRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
877
|
+
// verify required parameter 'id' is not null or undefined
|
|
878
|
+
(0, common_1.assertParamExists)('updateProjectPhase', 'id', id);
|
|
879
|
+
const localVarPath = `/phases/{id}`
|
|
880
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
882
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
883
|
+
let baseOptions;
|
|
884
|
+
if (configuration) {
|
|
885
|
+
baseOptions = configuration.baseOptions;
|
|
886
|
+
}
|
|
887
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
|
888
|
+
const localVarHeaderParameter = {};
|
|
889
|
+
const localVarQueryParameter = {};
|
|
890
|
+
// authentication api_key required
|
|
891
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
892
|
+
// authentication oauth2 required
|
|
893
|
+
// oauth required
|
|
894
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
895
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
896
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
898
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
899
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(UpdateProjectPhaseRequest, localVarRequestOptions, configuration);
|
|
900
|
+
return {
|
|
901
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
902
|
+
options: localVarRequestOptions,
|
|
903
|
+
};
|
|
904
|
+
}),
|
|
905
|
+
/**
|
|
906
|
+
* Updates a task.
|
|
907
|
+
* @summary Update a task
|
|
908
|
+
* @param {number} id The ID of the task
|
|
909
|
+
* @param {UpdateTaskRequest} [UpdateTaskRequest]
|
|
910
|
+
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
updateTask: (id, UpdateTaskRequest) => __awaiter(this, void 0, void 0, function* () {
|
|
914
|
+
// verify required parameter 'id' is not null or undefined
|
|
915
|
+
(0, common_1.assertParamExists)('updateTask', 'id', id);
|
|
916
|
+
const localVarPath = `/tasks/{id}`
|
|
917
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
918
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
919
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
920
|
+
let baseOptions;
|
|
921
|
+
if (configuration) {
|
|
922
|
+
baseOptions = configuration.baseOptions;
|
|
923
|
+
}
|
|
924
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
|
925
|
+
const localVarHeaderParameter = {};
|
|
926
|
+
const localVarQueryParameter = {};
|
|
927
|
+
// authentication api_key required
|
|
928
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
|
929
|
+
// authentication oauth2 required
|
|
930
|
+
// oauth required
|
|
931
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["projects:full"], configuration);
|
|
932
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
933
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
935
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
|
936
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(UpdateTaskRequest, localVarRequestOptions, configuration);
|
|
937
|
+
return {
|
|
938
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
939
|
+
options: localVarRequestOptions,
|
|
940
|
+
};
|
|
941
|
+
}),
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
exports.BetaApiAxiosParamCreator = BetaApiAxiosParamCreator;
|
|
945
|
+
/**
|
|
946
|
+
* BetaApi - functional programming interface
|
|
947
|
+
* @export
|
|
948
|
+
*/
|
|
949
|
+
const BetaApiFp = function (configuration) {
|
|
950
|
+
const localVarAxiosParamCreator = (0, exports.BetaApiAxiosParamCreator)(configuration);
|
|
951
|
+
return {
|
|
952
|
+
/**
|
|
953
|
+
* Adds a new project board.
|
|
954
|
+
* @summary Add a project board
|
|
955
|
+
* @param {AddProjectBoardRequest} AddProjectBoardRequest
|
|
956
|
+
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
addProjectBoard(AddProjectBoardRequest) {
|
|
960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProjectBoard(AddProjectBoardRequest);
|
|
962
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
963
|
+
});
|
|
964
|
+
},
|
|
965
|
+
/**
|
|
966
|
+
* Creates a new project custom field.
|
|
967
|
+
* @summary Create one project field
|
|
968
|
+
* @param {AddProjectFieldRequest} AddProjectFieldRequest
|
|
969
|
+
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
addProjectField(AddProjectFieldRequest) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProjectField(AddProjectFieldRequest);
|
|
975
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
976
|
+
});
|
|
977
|
+
},
|
|
978
|
+
/**
|
|
979
|
+
* Adds new options to a project custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
980
|
+
* @summary Add project field options in bulk
|
|
981
|
+
* @param {string} field_code The unique code identifying the field
|
|
982
|
+
* @param {Array<AddDealFieldOptionsRequestInner>} AddDealFieldOptionsRequestInner
|
|
983
|
+
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
*/
|
|
986
|
+
addProjectFieldOptions(field_code, AddDealFieldOptionsRequestInner) {
|
|
987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProjectFieldOptions(field_code, AddDealFieldOptionsRequestInner);
|
|
989
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
990
|
+
});
|
|
991
|
+
},
|
|
992
|
+
/**
|
|
993
|
+
* Adds a new project phase to a board.
|
|
994
|
+
* @summary Add a project phase
|
|
995
|
+
* @param {AddProjectPhaseRequest} AddProjectPhaseRequest
|
|
996
|
+
|
|
997
|
+
* @throws {RequiredError}
|
|
998
|
+
*/
|
|
999
|
+
addProjectPhase(AddProjectPhaseRequest) {
|
|
1000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProjectPhase(AddProjectPhaseRequest);
|
|
1002
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1003
|
+
});
|
|
1004
|
+
},
|
|
1005
|
+
/**
|
|
1006
|
+
* Adds a new task.
|
|
1007
|
+
* @summary Add a task
|
|
1008
|
+
* @param {AddTaskRequest} AddTaskRequest
|
|
1009
|
+
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
addTask(AddTaskRequest) {
|
|
1013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1014
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addTask(AddTaskRequest);
|
|
1015
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1016
|
+
});
|
|
1017
|
+
},
|
|
1018
|
+
/**
|
|
1019
|
+
* Marks a project board as deleted.
|
|
1020
|
+
* @summary Delete a project board
|
|
1021
|
+
* @param {number} id The ID of the project board
|
|
1022
|
+
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
deleteProjectBoard(id) {
|
|
1026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1027
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProjectBoard(id);
|
|
1028
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1029
|
+
});
|
|
1030
|
+
},
|
|
1031
|
+
/**
|
|
1032
|
+
* Marks a custom field as deleted.
|
|
1033
|
+
* @summary Delete one project field
|
|
1034
|
+
* @param {string} field_code The unique code identifying the field
|
|
1035
|
+
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
deleteProjectField(field_code) {
|
|
1039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProjectField(field_code);
|
|
1041
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1042
|
+
});
|
|
1043
|
+
},
|
|
1044
|
+
/**
|
|
1045
|
+
* Removes existing options from a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the deleted options.
|
|
1046
|
+
* @summary Delete project field options in bulk
|
|
1047
|
+
* @param {string} field_code The unique code identifying the field
|
|
1048
|
+
* @param {Array<DeleteDealFieldOptionsRequestInner>} DeleteDealFieldOptionsRequestInner
|
|
1049
|
+
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
deleteProjectFieldOptions(field_code, DeleteDealFieldOptionsRequestInner) {
|
|
1053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1054
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProjectFieldOptions(field_code, DeleteDealFieldOptionsRequestInner);
|
|
1055
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1056
|
+
});
|
|
1057
|
+
},
|
|
1058
|
+
/**
|
|
1059
|
+
* Marks a project phase as deleted.
|
|
1060
|
+
* @summary Delete a project phase
|
|
1061
|
+
* @param {number} id The ID of the project phase
|
|
1062
|
+
|
|
1063
|
+
* @throws {RequiredError}
|
|
1064
|
+
*/
|
|
1065
|
+
deleteProjectPhase(id) {
|
|
1066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1067
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProjectPhase(id);
|
|
1068
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1069
|
+
});
|
|
1070
|
+
},
|
|
1071
|
+
/**
|
|
1072
|
+
* Marks a task as deleted. If the task has subtasks, those will also be deleted.
|
|
1073
|
+
* @summary Delete a task
|
|
1074
|
+
* @param {number} id The ID of the task
|
|
1075
|
+
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
deleteTask(id) {
|
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1080
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTask(id);
|
|
1081
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1082
|
+
});
|
|
1083
|
+
},
|
|
1084
|
+
/**
|
|
1085
|
+
* Returns metadata about a specific project field.
|
|
1086
|
+
* @summary Get one project field
|
|
1087
|
+
* @param {string} field_code The unique code identifying the field
|
|
1088
|
+
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
*/
|
|
1091
|
+
getProjectField(field_code) {
|
|
1092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1093
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectField(field_code);
|
|
1094
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1095
|
+
});
|
|
1096
|
+
},
|
|
1097
|
+
/**
|
|
1098
|
+
* Returns metadata about all project fields in the company.
|
|
1099
|
+
* @summary Get all project fields
|
|
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
|
+
getProjectFields(limit, cursor) {
|
|
1106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectFields(limit, cursor);
|
|
1108
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1109
|
+
});
|
|
1110
|
+
},
|
|
1111
|
+
/**
|
|
1112
|
+
* Returns the details of a specific project board.
|
|
1113
|
+
* @summary Get details of a project board
|
|
1114
|
+
* @param {number} id The ID of the project board
|
|
1115
|
+
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
*/
|
|
1118
|
+
getProjectsBoard(id) {
|
|
1119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1120
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsBoard(id);
|
|
1121
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1122
|
+
});
|
|
1123
|
+
},
|
|
1124
|
+
/**
|
|
1125
|
+
* Returns all active project boards.
|
|
1126
|
+
* @summary Get all project boards
|
|
1127
|
+
|
|
1128
|
+
* @throws {RequiredError}
|
|
1129
|
+
*/
|
|
1130
|
+
getProjectsBoards() {
|
|
1131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsBoards();
|
|
1133
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1134
|
+
});
|
|
1135
|
+
},
|
|
1136
|
+
/**
|
|
1137
|
+
* Returns the details of a specific project phase.
|
|
1138
|
+
* @summary Get details of a project phase
|
|
1139
|
+
* @param {number} id The ID of the project phase
|
|
1140
|
+
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
getProjectsPhase(id) {
|
|
1144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1145
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsPhase(id);
|
|
1146
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1147
|
+
});
|
|
1148
|
+
},
|
|
1149
|
+
/**
|
|
1150
|
+
* Returns all active project phases under a specific board.
|
|
1151
|
+
* @summary Get project phases
|
|
1152
|
+
* @param {number} board_id The ID of the board for which phases are requested
|
|
1153
|
+
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
getProjectsPhases(board_id) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectsPhases(board_id);
|
|
1159
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns the details of a specific task.
|
|
1164
|
+
* @summary Get details of a task
|
|
1165
|
+
* @param {number} id The ID of the task
|
|
1166
|
+
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
getTask(id) {
|
|
1170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1171
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTask(id);
|
|
1172
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1173
|
+
});
|
|
1174
|
+
},
|
|
1175
|
+
/**
|
|
1176
|
+
* Returns all tasks.
|
|
1177
|
+
* @summary Get all tasks
|
|
1178
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1179
|
+
* @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.
|
|
1180
|
+
* @param {boolean} [is_done] Whether the task is done or not. If omitted, both done and not done tasks are returned.
|
|
1181
|
+
* @param {boolean} [is_milestone] Whether the task is a milestone or not. If omitted, both milestone and non-milestone tasks are returned.
|
|
1182
|
+
* @param {number} [assignee_id] If supplied, only tasks assigned to this user are returned
|
|
1183
|
+
* @param {number} [project_id] If supplied, only tasks belonging to this project are returned
|
|
1184
|
+
* @param {string} [parent_task_id] If `null` is supplied, only root-level tasks (without a parent) are returned. If an integer is supplied, only subtasks of that specific task are returned. By default all tasks are returned.
|
|
1185
|
+
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
*/
|
|
1188
|
+
getTasks(cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id) {
|
|
1189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1190
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTasks(cursor, limit, is_done, is_milestone, assignee_id, project_id, parent_task_id);
|
|
1191
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1192
|
+
});
|
|
1193
|
+
},
|
|
1194
|
+
/**
|
|
1195
|
+
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
1196
|
+
* @summary Search projects
|
|
1197
|
+
* @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.
|
|
1198
|
+
* @param {'custom_fields' | 'notes' | 'title' | 'description'} [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>.
|
|
1199
|
+
* @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
|
1200
|
+
* @param {number} [person_id] Will filter projects by the provided person ID
|
|
1201
|
+
* @param {number} [organization_id] Will filter projects by the provided organization ID
|
|
1202
|
+
* @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.
|
|
1203
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
1204
|
+
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
searchProjects(term, fields, exact_match, person_id, organization_id, limit, cursor) {
|
|
1208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1209
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchProjects(term, fields, exact_match, person_id, organization_id, limit, cursor);
|
|
1210
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1211
|
+
});
|
|
1212
|
+
},
|
|
1213
|
+
/**
|
|
1214
|
+
* Updates the properties of a project board.
|
|
1215
|
+
* @summary Update a project board
|
|
1216
|
+
* @param {number} id The ID of the project board
|
|
1217
|
+
* @param {UpdateProjectBoardRequest} [UpdateProjectBoardRequest]
|
|
1218
|
+
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
1221
|
+
updateProjectBoard(id, UpdateProjectBoardRequest) {
|
|
1222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProjectBoard(id, UpdateProjectBoardRequest);
|
|
1224
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1225
|
+
});
|
|
1226
|
+
},
|
|
1227
|
+
/**
|
|
1228
|
+
* Updates a project custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
1229
|
+
* @summary Update one project field
|
|
1230
|
+
* @param {string} field_code The unique code identifying the field
|
|
1231
|
+
* @param {UpdateProjectFieldRequest} UpdateProjectFieldRequest
|
|
1232
|
+
|
|
1233
|
+
* @throws {RequiredError}
|
|
1234
|
+
*/
|
|
1235
|
+
updateProjectField(field_code, UpdateProjectFieldRequest) {
|
|
1236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1237
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProjectField(field_code, UpdateProjectFieldRequest);
|
|
1238
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1239
|
+
});
|
|
1240
|
+
},
|
|
1241
|
+
/**
|
|
1242
|
+
* Updates existing options for a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
1243
|
+
* @summary Update project field options in bulk
|
|
1244
|
+
* @param {string} field_code The unique code identifying the field
|
|
1245
|
+
* @param {Array<UpdateDealFieldOptionsRequestInner>} UpdateDealFieldOptionsRequestInner
|
|
1246
|
+
|
|
1247
|
+
* @throws {RequiredError}
|
|
1248
|
+
*/
|
|
1249
|
+
updateProjectFieldOptions(field_code, UpdateDealFieldOptionsRequestInner) {
|
|
1250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProjectFieldOptions(field_code, UpdateDealFieldOptionsRequestInner);
|
|
1252
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1253
|
+
});
|
|
1254
|
+
},
|
|
1255
|
+
/**
|
|
1256
|
+
* Updates the properties of a project phase.
|
|
1257
|
+
* @summary Update a project phase
|
|
1258
|
+
* @param {number} id The ID of the project phase
|
|
1259
|
+
* @param {UpdateProjectPhaseRequest} [UpdateProjectPhaseRequest]
|
|
1260
|
+
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
updateProjectPhase(id, UpdateProjectPhaseRequest) {
|
|
1264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProjectPhase(id, UpdateProjectPhaseRequest);
|
|
1266
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1267
|
+
});
|
|
1268
|
+
},
|
|
1269
|
+
/**
|
|
1270
|
+
* Updates a task.
|
|
1271
|
+
* @summary Update a task
|
|
1272
|
+
* @param {number} id The ID of the task
|
|
1273
|
+
* @param {UpdateTaskRequest} [UpdateTaskRequest]
|
|
1274
|
+
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
updateTask(id, UpdateTaskRequest) {
|
|
1278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1279
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTask(id, UpdateTaskRequest);
|
|
1280
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1281
|
+
});
|
|
1282
|
+
},
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
exports.BetaApiFp = BetaApiFp;
|
|
1286
|
+
/**
|
|
1287
|
+
* BetaApi - factory interface
|
|
1288
|
+
* @export
|
|
1289
|
+
*/
|
|
1290
|
+
const BetaApiFactory = function (configuration, basePath, axios) {
|
|
1291
|
+
const localVarFp = (0, exports.BetaApiFp)(configuration);
|
|
1292
|
+
return {
|
|
1293
|
+
/**
|
|
1294
|
+
* Adds a new project board.
|
|
1295
|
+
* @summary Add a project board
|
|
1296
|
+
* @param {BetaApiAddProjectBoardRequest} requestParameters Request parameters.
|
|
1297
|
+
|
|
1298
|
+
* @throws {RequiredError}
|
|
1299
|
+
*/
|
|
1300
|
+
addProjectBoard(requestParameters) {
|
|
1301
|
+
return localVarFp.addProjectBoard(requestParameters.AddProjectBoardRequest).then((request) => request(axios, basePath));
|
|
1302
|
+
},
|
|
1303
|
+
/**
|
|
1304
|
+
* Creates a new project custom field.
|
|
1305
|
+
* @summary Create one project field
|
|
1306
|
+
* @param {BetaApiAddProjectFieldRequest} requestParameters Request parameters.
|
|
1307
|
+
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
addProjectField(requestParameters) {
|
|
1311
|
+
return localVarFp.addProjectField(requestParameters.AddProjectFieldRequest).then((request) => request(axios, basePath));
|
|
1312
|
+
},
|
|
1313
|
+
/**
|
|
1314
|
+
* Adds new options to a project custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
1315
|
+
* @summary Add project field options in bulk
|
|
1316
|
+
* @param {BetaApiAddProjectFieldOptionsRequest} requestParameters Request parameters.
|
|
1317
|
+
|
|
1318
|
+
* @throws {RequiredError}
|
|
1319
|
+
*/
|
|
1320
|
+
addProjectFieldOptions(requestParameters) {
|
|
1321
|
+
return localVarFp.addProjectFieldOptions(requestParameters.field_code, requestParameters.AddDealFieldOptionsRequestInner).then((request) => request(axios, basePath));
|
|
1322
|
+
},
|
|
1323
|
+
/**
|
|
1324
|
+
* Adds a new project phase to a board.
|
|
1325
|
+
* @summary Add a project phase
|
|
1326
|
+
* @param {BetaApiAddProjectPhaseRequest} requestParameters Request parameters.
|
|
1327
|
+
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
*/
|
|
1330
|
+
addProjectPhase(requestParameters) {
|
|
1331
|
+
return localVarFp.addProjectPhase(requestParameters.AddProjectPhaseRequest).then((request) => request(axios, basePath));
|
|
1332
|
+
},
|
|
1333
|
+
/**
|
|
1334
|
+
* Adds a new task.
|
|
1335
|
+
* @summary Add a task
|
|
1336
|
+
* @param {BetaApiAddTaskRequest} requestParameters Request parameters.
|
|
1337
|
+
|
|
1338
|
+
* @throws {RequiredError}
|
|
1339
|
+
*/
|
|
1340
|
+
addTask(requestParameters) {
|
|
1341
|
+
return localVarFp.addTask(requestParameters.AddTaskRequest).then((request) => request(axios, basePath));
|
|
1342
|
+
},
|
|
1343
|
+
/**
|
|
1344
|
+
* Marks a project board as deleted.
|
|
1345
|
+
* @summary Delete a project board
|
|
1346
|
+
* @param {BetaApiDeleteProjectBoardRequest} requestParameters Request parameters.
|
|
1347
|
+
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
deleteProjectBoard(requestParameters) {
|
|
1351
|
+
return localVarFp.deleteProjectBoard(requestParameters.id).then((request) => request(axios, basePath));
|
|
1352
|
+
},
|
|
1353
|
+
/**
|
|
1354
|
+
* Marks a custom field as deleted.
|
|
1355
|
+
* @summary Delete one project field
|
|
1356
|
+
* @param {BetaApiDeleteProjectFieldRequest} requestParameters Request parameters.
|
|
1357
|
+
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
deleteProjectField(requestParameters) {
|
|
1361
|
+
return localVarFp.deleteProjectField(requestParameters.field_code).then((request) => request(axios, basePath));
|
|
1362
|
+
},
|
|
1363
|
+
/**
|
|
1364
|
+
* Removes existing options from a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the deleted options.
|
|
1365
|
+
* @summary Delete project field options in bulk
|
|
1366
|
+
* @param {BetaApiDeleteProjectFieldOptionsRequest} requestParameters Request parameters.
|
|
1367
|
+
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
deleteProjectFieldOptions(requestParameters) {
|
|
1371
|
+
return localVarFp.deleteProjectFieldOptions(requestParameters.field_code, requestParameters.DeleteDealFieldOptionsRequestInner).then((request) => request(axios, basePath));
|
|
1372
|
+
},
|
|
1373
|
+
/**
|
|
1374
|
+
* Marks a project phase as deleted.
|
|
1375
|
+
* @summary Delete a project phase
|
|
1376
|
+
* @param {BetaApiDeleteProjectPhaseRequest} requestParameters Request parameters.
|
|
1377
|
+
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
deleteProjectPhase(requestParameters) {
|
|
1381
|
+
return localVarFp.deleteProjectPhase(requestParameters.id).then((request) => request(axios, basePath));
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
* Marks a task as deleted. If the task has subtasks, those will also be deleted.
|
|
1385
|
+
* @summary Delete a task
|
|
1386
|
+
* @param {BetaApiDeleteTaskRequest} requestParameters Request parameters.
|
|
1387
|
+
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
deleteTask(requestParameters) {
|
|
1391
|
+
return localVarFp.deleteTask(requestParameters.id).then((request) => request(axios, basePath));
|
|
1392
|
+
},
|
|
1393
|
+
/**
|
|
1394
|
+
* Returns metadata about a specific project field.
|
|
1395
|
+
* @summary Get one project field
|
|
1396
|
+
* @param {BetaApiGetProjectFieldRequest} requestParameters Request parameters.
|
|
1397
|
+
|
|
1398
|
+
* @throws {RequiredError}
|
|
1399
|
+
*/
|
|
1400
|
+
getProjectField(requestParameters) {
|
|
1401
|
+
return localVarFp.getProjectField(requestParameters.field_code).then((request) => request(axios, basePath));
|
|
1402
|
+
},
|
|
1403
|
+
/**
|
|
1404
|
+
* Returns metadata about all project fields in the company.
|
|
1405
|
+
* @summary Get all project fields
|
|
1406
|
+
* @param {BetaApiGetProjectFieldsRequest} requestParameters Request parameters.
|
|
1407
|
+
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
getProjectFields(requestParameters = {}) {
|
|
1411
|
+
return localVarFp.getProjectFields(requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1412
|
+
},
|
|
1413
|
+
/**
|
|
1414
|
+
* Returns the details of a specific project board.
|
|
1415
|
+
* @summary Get details of a project board
|
|
1416
|
+
* @param {BetaApiGetProjectsBoardRequest} requestParameters Request parameters.
|
|
1417
|
+
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
*/
|
|
1420
|
+
getProjectsBoard(requestParameters) {
|
|
1421
|
+
return localVarFp.getProjectsBoard(requestParameters.id).then((request) => request(axios, basePath));
|
|
1422
|
+
},
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns all active project boards.
|
|
1425
|
+
* @summary Get all project boards
|
|
1426
|
+
|
|
1427
|
+
* @throws {RequiredError}
|
|
1428
|
+
*/
|
|
1429
|
+
getProjectsBoards() {
|
|
1430
|
+
return localVarFp.getProjectsBoards().then((request) => request(axios, basePath));
|
|
1431
|
+
},
|
|
1432
|
+
/**
|
|
1433
|
+
* Returns the details of a specific project phase.
|
|
1434
|
+
* @summary Get details of a project phase
|
|
1435
|
+
* @param {BetaApiGetProjectsPhaseRequest} requestParameters Request parameters.
|
|
1436
|
+
|
|
1437
|
+
* @throws {RequiredError}
|
|
1438
|
+
*/
|
|
1439
|
+
getProjectsPhase(requestParameters) {
|
|
1440
|
+
return localVarFp.getProjectsPhase(requestParameters.id).then((request) => request(axios, basePath));
|
|
1441
|
+
},
|
|
1442
|
+
/**
|
|
1443
|
+
* Returns all active project phases under a specific board.
|
|
1444
|
+
* @summary Get project phases
|
|
1445
|
+
* @param {BetaApiGetProjectsPhasesRequest} requestParameters Request parameters.
|
|
1446
|
+
|
|
1447
|
+
* @throws {RequiredError}
|
|
1448
|
+
*/
|
|
1449
|
+
getProjectsPhases(requestParameters) {
|
|
1450
|
+
return localVarFp.getProjectsPhases(requestParameters.board_id).then((request) => request(axios, basePath));
|
|
1451
|
+
},
|
|
1452
|
+
/**
|
|
1453
|
+
* Returns the details of a specific task.
|
|
1454
|
+
* @summary Get details of a task
|
|
1455
|
+
* @param {BetaApiGetTaskRequest} requestParameters Request parameters.
|
|
1456
|
+
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
getTask(requestParameters) {
|
|
1460
|
+
return localVarFp.getTask(requestParameters.id).then((request) => request(axios, basePath));
|
|
1461
|
+
},
|
|
1462
|
+
/**
|
|
1463
|
+
* Returns all tasks.
|
|
1464
|
+
* @summary Get all tasks
|
|
1465
|
+
* @param {BetaApiGetTasksRequest} requestParameters Request parameters.
|
|
1466
|
+
|
|
1467
|
+
* @throws {RequiredError}
|
|
1468
|
+
*/
|
|
1469
|
+
getTasks(requestParameters = {}) {
|
|
1470
|
+
return localVarFp.getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(axios, basePath));
|
|
1471
|
+
},
|
|
1472
|
+
/**
|
|
1473
|
+
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
1474
|
+
* @summary Search projects
|
|
1475
|
+
* @param {BetaApiSearchProjectsRequest} requestParameters Request parameters.
|
|
1476
|
+
|
|
1477
|
+
* @throws {RequiredError}
|
|
1478
|
+
*/
|
|
1479
|
+
searchProjects(requestParameters) {
|
|
1480
|
+
return localVarFp.searchProjects(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
|
1481
|
+
},
|
|
1482
|
+
/**
|
|
1483
|
+
* Updates the properties of a project board.
|
|
1484
|
+
* @summary Update a project board
|
|
1485
|
+
* @param {BetaApiUpdateProjectBoardRequest} requestParameters Request parameters.
|
|
1486
|
+
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
*/
|
|
1489
|
+
updateProjectBoard(requestParameters) {
|
|
1490
|
+
return localVarFp.updateProjectBoard(requestParameters.id, requestParameters.UpdateProjectBoardRequest).then((request) => request(axios, basePath));
|
|
1491
|
+
},
|
|
1492
|
+
/**
|
|
1493
|
+
* Updates a project custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
1494
|
+
* @summary Update one project field
|
|
1495
|
+
* @param {BetaApiUpdateProjectFieldRequest} requestParameters Request parameters.
|
|
1496
|
+
|
|
1497
|
+
* @throws {RequiredError}
|
|
1498
|
+
*/
|
|
1499
|
+
updateProjectField(requestParameters) {
|
|
1500
|
+
return localVarFp.updateProjectField(requestParameters.field_code, requestParameters.UpdateProjectFieldRequest).then((request) => request(axios, basePath));
|
|
1501
|
+
},
|
|
1502
|
+
/**
|
|
1503
|
+
* Updates existing options for a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
1504
|
+
* @summary Update project field options in bulk
|
|
1505
|
+
* @param {BetaApiUpdateProjectFieldOptionsRequest} requestParameters Request parameters.
|
|
1506
|
+
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
*/
|
|
1509
|
+
updateProjectFieldOptions(requestParameters) {
|
|
1510
|
+
return localVarFp.updateProjectFieldOptions(requestParameters.field_code, requestParameters.UpdateDealFieldOptionsRequestInner).then((request) => request(axios, basePath));
|
|
1511
|
+
},
|
|
1512
|
+
/**
|
|
1513
|
+
* Updates the properties of a project phase.
|
|
1514
|
+
* @summary Update a project phase
|
|
1515
|
+
* @param {BetaApiUpdateProjectPhaseRequest} requestParameters Request parameters.
|
|
1516
|
+
|
|
1517
|
+
* @throws {RequiredError}
|
|
1518
|
+
*/
|
|
1519
|
+
updateProjectPhase(requestParameters) {
|
|
1520
|
+
return localVarFp.updateProjectPhase(requestParameters.id, requestParameters.UpdateProjectPhaseRequest).then((request) => request(axios, basePath));
|
|
1521
|
+
},
|
|
1522
|
+
/**
|
|
1523
|
+
* Updates a task.
|
|
1524
|
+
* @summary Update a task
|
|
1525
|
+
* @param {BetaApiUpdateTaskRequest} requestParameters Request parameters.
|
|
1526
|
+
|
|
1527
|
+
* @throws {RequiredError}
|
|
1528
|
+
*/
|
|
1529
|
+
updateTask(requestParameters) {
|
|
1530
|
+
return localVarFp.updateTask(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(axios, basePath));
|
|
1531
|
+
},
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
exports.BetaApiFactory = BetaApiFactory;
|
|
1535
|
+
/**
|
|
1536
|
+
* BetaApi - object-oriented interface
|
|
1537
|
+
* @export
|
|
1538
|
+
* @class BetaApi
|
|
1539
|
+
* @extends {BaseAPI}
|
|
1540
|
+
*/
|
|
1541
|
+
class BetaApi extends base_1.BaseAPI {
|
|
1542
|
+
/**
|
|
1543
|
+
* Adds a new project board.
|
|
1544
|
+
* @summary Add a project board
|
|
1545
|
+
* @param {BetaApiAddProjectBoardRequest} requestParameters Request parameters.
|
|
1546
|
+
|
|
1547
|
+
* @throws {RequiredError}
|
|
1548
|
+
* @memberof BetaApi
|
|
1549
|
+
*/
|
|
1550
|
+
addProjectBoard(requestParameters) {
|
|
1551
|
+
return (0, exports.BetaApiFp)(this.configuration).addProjectBoard(requestParameters.AddProjectBoardRequest).then((request) => request(this.axios, this.basePath));
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Creates a new project custom field.
|
|
1555
|
+
* @summary Create one project field
|
|
1556
|
+
* @param {BetaApiAddProjectFieldRequest} requestParameters Request parameters.
|
|
1557
|
+
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
* @memberof BetaApi
|
|
1560
|
+
*/
|
|
1561
|
+
addProjectField(requestParameters) {
|
|
1562
|
+
return (0, exports.BetaApiFp)(this.configuration).addProjectField(requestParameters.AddProjectFieldRequest).then((request) => request(this.axios, this.basePath));
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* Adds new options to a project custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
|
|
1566
|
+
* @summary Add project field options in bulk
|
|
1567
|
+
* @param {BetaApiAddProjectFieldOptionsRequest} requestParameters Request parameters.
|
|
1568
|
+
|
|
1569
|
+
* @throws {RequiredError}
|
|
1570
|
+
* @memberof BetaApi
|
|
1571
|
+
*/
|
|
1572
|
+
addProjectFieldOptions(requestParameters) {
|
|
1573
|
+
return (0, exports.BetaApiFp)(this.configuration).addProjectFieldOptions(requestParameters.field_code, requestParameters.AddDealFieldOptionsRequestInner).then((request) => request(this.axios, this.basePath));
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Adds a new project phase to a board.
|
|
1577
|
+
* @summary Add a project phase
|
|
1578
|
+
* @param {BetaApiAddProjectPhaseRequest} requestParameters Request parameters.
|
|
1579
|
+
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
* @memberof BetaApi
|
|
1582
|
+
*/
|
|
1583
|
+
addProjectPhase(requestParameters) {
|
|
1584
|
+
return (0, exports.BetaApiFp)(this.configuration).addProjectPhase(requestParameters.AddProjectPhaseRequest).then((request) => request(this.axios, this.basePath));
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* Adds a new task.
|
|
1588
|
+
* @summary Add a task
|
|
1589
|
+
* @param {BetaApiAddTaskRequest} requestParameters Request parameters.
|
|
1590
|
+
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
* @memberof BetaApi
|
|
1593
|
+
*/
|
|
1594
|
+
addTask(requestParameters) {
|
|
1595
|
+
return (0, exports.BetaApiFp)(this.configuration).addTask(requestParameters.AddTaskRequest).then((request) => request(this.axios, this.basePath));
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Marks a project board as deleted.
|
|
1599
|
+
* @summary Delete a project board
|
|
1600
|
+
* @param {BetaApiDeleteProjectBoardRequest} requestParameters Request parameters.
|
|
1601
|
+
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
* @memberof BetaApi
|
|
1604
|
+
*/
|
|
1605
|
+
deleteProjectBoard(requestParameters) {
|
|
1606
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteProjectBoard(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* Marks a custom field as deleted.
|
|
1610
|
+
* @summary Delete one project field
|
|
1611
|
+
* @param {BetaApiDeleteProjectFieldRequest} requestParameters Request parameters.
|
|
1612
|
+
|
|
1613
|
+
* @throws {RequiredError}
|
|
1614
|
+
* @memberof BetaApi
|
|
1615
|
+
*/
|
|
1616
|
+
deleteProjectField(requestParameters) {
|
|
1617
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteProjectField(requestParameters.field_code).then((request) => request(this.axios, this.basePath));
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* Removes existing options from a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the deleted options.
|
|
1621
|
+
* @summary Delete project field options in bulk
|
|
1622
|
+
* @param {BetaApiDeleteProjectFieldOptionsRequest} requestParameters Request parameters.
|
|
1623
|
+
|
|
1624
|
+
* @throws {RequiredError}
|
|
1625
|
+
* @memberof BetaApi
|
|
1626
|
+
*/
|
|
1627
|
+
deleteProjectFieldOptions(requestParameters) {
|
|
1628
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteProjectFieldOptions(requestParameters.field_code, requestParameters.DeleteDealFieldOptionsRequestInner).then((request) => request(this.axios, this.basePath));
|
|
1629
|
+
}
|
|
1630
|
+
/**
|
|
1631
|
+
* Marks a project phase as deleted.
|
|
1632
|
+
* @summary Delete a project phase
|
|
1633
|
+
* @param {BetaApiDeleteProjectPhaseRequest} requestParameters Request parameters.
|
|
1634
|
+
|
|
1635
|
+
* @throws {RequiredError}
|
|
1636
|
+
* @memberof BetaApi
|
|
1637
|
+
*/
|
|
1638
|
+
deleteProjectPhase(requestParameters) {
|
|
1639
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteProjectPhase(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Marks a task as deleted. If the task has subtasks, those will also be deleted.
|
|
1643
|
+
* @summary Delete a task
|
|
1644
|
+
* @param {BetaApiDeleteTaskRequest} requestParameters Request parameters.
|
|
1645
|
+
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
* @memberof BetaApi
|
|
1648
|
+
*/
|
|
1649
|
+
deleteTask(requestParameters) {
|
|
1650
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteTask(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Returns metadata about a specific project field.
|
|
1654
|
+
* @summary Get one project field
|
|
1655
|
+
* @param {BetaApiGetProjectFieldRequest} requestParameters Request parameters.
|
|
1656
|
+
|
|
1657
|
+
* @throws {RequiredError}
|
|
1658
|
+
* @memberof BetaApi
|
|
1659
|
+
*/
|
|
1660
|
+
getProjectField(requestParameters) {
|
|
1661
|
+
return (0, exports.BetaApiFp)(this.configuration).getProjectField(requestParameters.field_code).then((request) => request(this.axios, this.basePath));
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Returns metadata about all project fields in the company.
|
|
1665
|
+
* @summary Get all project fields
|
|
1666
|
+
* @param {BetaApiGetProjectFieldsRequest} requestParameters Request parameters.
|
|
1667
|
+
|
|
1668
|
+
* @throws {RequiredError}
|
|
1669
|
+
* @memberof BetaApi
|
|
1670
|
+
*/
|
|
1671
|
+
getProjectFields(requestParameters = {}) {
|
|
1672
|
+
return (0, exports.BetaApiFp)(this.configuration).getProjectFields(requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* Returns the details of a specific project board.
|
|
1676
|
+
* @summary Get details of a project board
|
|
1677
|
+
* @param {BetaApiGetProjectsBoardRequest} requestParameters Request parameters.
|
|
1678
|
+
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
* @memberof BetaApi
|
|
1681
|
+
*/
|
|
1682
|
+
getProjectsBoard(requestParameters) {
|
|
1683
|
+
return (0, exports.BetaApiFp)(this.configuration).getProjectsBoard(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Returns all active project boards.
|
|
1687
|
+
* @summary Get all project boards
|
|
1688
|
+
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
* @memberof BetaApi
|
|
1691
|
+
*/
|
|
1692
|
+
getProjectsBoards() {
|
|
1693
|
+
return (0, exports.BetaApiFp)(this.configuration).getProjectsBoards().then((request) => request(this.axios, this.basePath));
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Returns the details of a specific project phase.
|
|
1697
|
+
* @summary Get details of a project phase
|
|
1698
|
+
* @param {BetaApiGetProjectsPhaseRequest} requestParameters Request parameters.
|
|
1699
|
+
|
|
1700
|
+
* @throws {RequiredError}
|
|
1701
|
+
* @memberof BetaApi
|
|
1702
|
+
*/
|
|
1703
|
+
getProjectsPhase(requestParameters) {
|
|
1704
|
+
return (0, exports.BetaApiFp)(this.configuration).getProjectsPhase(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Returns all active project phases under a specific board.
|
|
1708
|
+
* @summary Get project phases
|
|
1709
|
+
* @param {BetaApiGetProjectsPhasesRequest} requestParameters Request parameters.
|
|
1710
|
+
|
|
1711
|
+
* @throws {RequiredError}
|
|
1712
|
+
* @memberof BetaApi
|
|
1713
|
+
*/
|
|
1714
|
+
getProjectsPhases(requestParameters) {
|
|
1715
|
+
return (0, exports.BetaApiFp)(this.configuration).getProjectsPhases(requestParameters.board_id).then((request) => request(this.axios, this.basePath));
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Returns the details of a specific task.
|
|
1719
|
+
* @summary Get details of a task
|
|
1720
|
+
* @param {BetaApiGetTaskRequest} requestParameters Request parameters.
|
|
1721
|
+
|
|
1722
|
+
* @throws {RequiredError}
|
|
1723
|
+
* @memberof BetaApi
|
|
1724
|
+
*/
|
|
1725
|
+
getTask(requestParameters) {
|
|
1726
|
+
return (0, exports.BetaApiFp)(this.configuration).getTask(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* Returns all tasks.
|
|
1730
|
+
* @summary Get all tasks
|
|
1731
|
+
* @param {BetaApiGetTasksRequest} requestParameters Request parameters.
|
|
1732
|
+
|
|
1733
|
+
* @throws {RequiredError}
|
|
1734
|
+
* @memberof BetaApi
|
|
1735
|
+
*/
|
|
1736
|
+
getTasks(requestParameters = {}) {
|
|
1737
|
+
return (0, exports.BetaApiFp)(this.configuration).getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.is_done, requestParameters.is_milestone, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id).then((request) => request(this.axios, this.basePath));
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Searches all projects by title, description, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found projects can be filtered by person ID or organization ID.
|
|
1741
|
+
* @summary Search projects
|
|
1742
|
+
* @param {BetaApiSearchProjectsRequest} requestParameters Request parameters.
|
|
1743
|
+
|
|
1744
|
+
* @throws {RequiredError}
|
|
1745
|
+
* @memberof BetaApi
|
|
1746
|
+
*/
|
|
1747
|
+
searchProjects(requestParameters) {
|
|
1748
|
+
return (0, exports.BetaApiFp)(this.configuration).searchProjects(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
* Updates the properties of a project board.
|
|
1752
|
+
* @summary Update a project board
|
|
1753
|
+
* @param {BetaApiUpdateProjectBoardRequest} requestParameters Request parameters.
|
|
1754
|
+
|
|
1755
|
+
* @throws {RequiredError}
|
|
1756
|
+
* @memberof BetaApi
|
|
1757
|
+
*/
|
|
1758
|
+
updateProjectBoard(requestParameters) {
|
|
1759
|
+
return (0, exports.BetaApiFp)(this.configuration).updateProjectBoard(requestParameters.id, requestParameters.UpdateProjectBoardRequest).then((request) => request(this.axios, this.basePath));
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Updates a project custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
|
|
1763
|
+
* @summary Update one project field
|
|
1764
|
+
* @param {BetaApiUpdateProjectFieldRequest} requestParameters Request parameters.
|
|
1765
|
+
|
|
1766
|
+
* @throws {RequiredError}
|
|
1767
|
+
* @memberof BetaApi
|
|
1768
|
+
*/
|
|
1769
|
+
updateProjectField(requestParameters) {
|
|
1770
|
+
return (0, exports.BetaApiFp)(this.configuration).updateProjectField(requestParameters.field_code, requestParameters.UpdateProjectFieldRequest).then((request) => request(this.axios, this.basePath));
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* Updates existing options for a project custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
|
|
1774
|
+
* @summary Update project field options in bulk
|
|
1775
|
+
* @param {BetaApiUpdateProjectFieldOptionsRequest} requestParameters Request parameters.
|
|
1776
|
+
|
|
1777
|
+
* @throws {RequiredError}
|
|
1778
|
+
* @memberof BetaApi
|
|
1779
|
+
*/
|
|
1780
|
+
updateProjectFieldOptions(requestParameters) {
|
|
1781
|
+
return (0, exports.BetaApiFp)(this.configuration).updateProjectFieldOptions(requestParameters.field_code, requestParameters.UpdateDealFieldOptionsRequestInner).then((request) => request(this.axios, this.basePath));
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* Updates the properties of a project phase.
|
|
1785
|
+
* @summary Update a project phase
|
|
1786
|
+
* @param {BetaApiUpdateProjectPhaseRequest} requestParameters Request parameters.
|
|
1787
|
+
|
|
1788
|
+
* @throws {RequiredError}
|
|
1789
|
+
* @memberof BetaApi
|
|
1790
|
+
*/
|
|
1791
|
+
updateProjectPhase(requestParameters) {
|
|
1792
|
+
return (0, exports.BetaApiFp)(this.configuration).updateProjectPhase(requestParameters.id, requestParameters.UpdateProjectPhaseRequest).then((request) => request(this.axios, this.basePath));
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* Updates a task.
|
|
1796
|
+
* @summary Update a task
|
|
1797
|
+
* @param {BetaApiUpdateTaskRequest} requestParameters Request parameters.
|
|
1798
|
+
|
|
1799
|
+
* @throws {RequiredError}
|
|
1800
|
+
* @memberof BetaApi
|
|
1801
|
+
*/
|
|
1802
|
+
updateTask(requestParameters) {
|
|
1803
|
+
return (0, exports.BetaApiFp)(this.configuration).updateTask(requestParameters.id, requestParameters.UpdateTaskRequest).then((request) => request(this.axios, this.basePath));
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
exports.BetaApi = BetaApi;
|