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