pipedrive 36.0.1 → 36.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/versions/v1/api/activity-fields-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/activity-fields-api.js +25 -0
- package/dist/esm/versions/v1/api/activity-types-api.d.ts +72 -1
- package/dist/esm/versions/v1/api/activity-types-api.js +107 -0
- package/dist/esm/versions/v1/api/billing-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/billing-api.js +25 -0
- package/dist/esm/versions/v1/api/call-logs-api.d.ts +93 -1
- package/dist/esm/versions/v1/api/call-logs-api.js +137 -0
- package/dist/esm/versions/v1/api/channels-api.d.ts +74 -1
- package/dist/esm/versions/v1/api/channels-api.js +109 -0
- package/dist/esm/versions/v1/api/currencies-api.d.ts +19 -1
- package/dist/esm/versions/v1/api/currencies-api.js +27 -0
- package/dist/esm/versions/v1/api/deal-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/deal-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/deals-api.d.ts +399 -1
- package/dist/esm/versions/v1/api/deals-api.js +569 -0
- package/dist/esm/versions/v1/api/files-api.d.ts +163 -1
- package/dist/esm/versions/v1/api/files-api.js +234 -0
- package/dist/esm/versions/v1/api/filters-api.d.ts +129 -1
- package/dist/esm/versions/v1/api/filters-api.js +191 -0
- package/dist/esm/versions/v1/api/goals-api.d.ts +106 -1
- package/dist/esm/versions/v1/api/goals-api.js +150 -0
- package/dist/esm/versions/v1/api/lead-fields-api.d.ts +20 -1
- package/dist/esm/versions/v1/api/lead-fields-api.js +28 -0
- package/dist/esm/versions/v1/api/lead-labels-api.d.ts +72 -1
- package/dist/esm/versions/v1/api/lead-labels-api.js +107 -0
- package/dist/esm/versions/v1/api/lead-sources-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/lead-sources-api.js +25 -0
- package/dist/esm/versions/v1/api/leads-api.d.ts +166 -1
- package/dist/esm/versions/v1/api/leads-api.js +237 -0
- package/dist/esm/versions/v1/api/legacy-teams-api.d.ts +152 -1
- package/dist/esm/versions/v1/api/legacy-teams-api.js +223 -0
- package/dist/esm/versions/v1/api/mailbox-api.d.ts +117 -1
- package/dist/esm/versions/v1/api/mailbox-api.js +170 -0
- package/dist/esm/versions/v1/api/meetings-api.d.ts +37 -1
- package/dist/esm/versions/v1/api/meetings-api.js +54 -0
- package/dist/esm/versions/v1/api/note-fields-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/note-fields-api.js +25 -0
- package/dist/esm/versions/v1/api/notes-api.d.ts +207 -1
- package/dist/esm/versions/v1/api/notes-api.js +296 -0
- package/dist/esm/versions/v1/api/organization-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/organization-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/organization-relationships-api.d.ts +93 -1
- package/dist/esm/versions/v1/api/organization-relationships-api.js +137 -0
- package/dist/esm/versions/v1/api/organizations-api.d.ts +178 -1
- package/dist/esm/versions/v1/api/organizations-api.js +258 -0
- package/dist/esm/versions/v1/api/permission-sets-api.d.ts +57 -1
- package/dist/esm/versions/v1/api/permission-sets-api.js +83 -0
- package/dist/esm/versions/v1/api/person-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/person-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/persons-api.d.ts +275 -37
- package/dist/esm/versions/v1/api/persons-api.js +370 -24
- package/dist/esm/versions/v1/api/pipelines-api.d.ts +69 -1
- package/dist/esm/versions/v1/api/pipelines-api.js +95 -0
- package/dist/esm/versions/v1/api/product-fields-api.d.ts +111 -1
- package/dist/esm/versions/v1/api/product-fields-api.js +164 -0
- package/dist/esm/versions/v1/api/products-api.d.ts +119 -1
- package/dist/esm/versions/v1/api/products-api.js +172 -0
- package/dist/esm/versions/v1/api/project-boards-api.d.ts +35 -1
- package/dist/esm/versions/v1/api/project-boards-api.js +52 -0
- package/dist/esm/versions/v1/api/project-phases-api.d.ts +37 -1
- package/dist/esm/versions/v1/api/project-phases-api.js +54 -0
- package/dist/esm/versions/v1/api/project-templates-api.d.ts +38 -1
- package/dist/esm/versions/v1/api/project-templates-api.js +55 -0
- package/dist/esm/versions/v1/api/projects-api.d.ts +227 -1
- package/dist/esm/versions/v1/api/projects-api.js +334 -0
- package/dist/esm/versions/v1/api/recents-api.d.ts +22 -1
- package/dist/esm/versions/v1/api/recents-api.js +30 -0
- package/dist/esm/versions/v1/api/roles-api.d.ts +226 -1
- package/dist/esm/versions/v1/api/roles-api.js +333 -0
- package/dist/esm/versions/v1/api/stages-api.d.ts +24 -1
- package/dist/esm/versions/v1/api/stages-api.js +32 -0
- package/dist/esm/versions/v1/api/tasks-api.d.ts +97 -1
- package/dist/esm/versions/v1/api/tasks-api.js +141 -0
- package/dist/esm/versions/v1/api/user-connections-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/user-connections-api.js +25 -0
- package/dist/esm/versions/v1/api/user-settings-api.d.ts +17 -1
- package/dist/esm/versions/v1/api/user-settings-api.js +25 -0
- package/dist/esm/versions/v1/api/users-api.d.ts +181 -1
- package/dist/esm/versions/v1/api/users-api.js +270 -0
- package/dist/esm/versions/v1/api/webhooks-api.d.ts +53 -1
- package/dist/esm/versions/v1/api/webhooks-api.js +79 -0
- package/dist/esm/versions/v1/base.d.ts +17 -0
- package/dist/esm/versions/v1/base.js +22 -0
- package/dist/esm/versions/v1/common.d.ts +1 -1
- package/dist/esm/versions/v1/common.js +7 -4
- package/dist/esm/versions/v2/api/activities-api.d.ts +107 -1
- package/dist/esm/versions/v2/api/activities-api.js +151 -0
- package/dist/esm/versions/v2/api/activity-fields-api.d.ts +40 -1
- package/dist/esm/versions/v2/api/activity-fields-api.js +57 -0
- package/dist/esm/versions/v2/api/beta-api.d.ts +451 -1
- package/dist/esm/versions/v2/api/beta-api.js +666 -0
- package/dist/esm/versions/v2/api/deal-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/deal-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/deal-installments-api.d.ts +81 -1
- package/dist/esm/versions/v2/api/deal-installments-api.js +116 -0
- package/dist/esm/versions/v2/api/deal-products-api.d.ts +141 -1
- package/dist/esm/versions/v2/api/deal-products-api.js +203 -0
- package/dist/esm/versions/v2/api/deals-api.d.ts +363 -1
- package/dist/esm/versions/v2/api/deals-api.js +516 -1
- package/dist/esm/versions/v2/api/item-search-api.d.ts +49 -1
- package/dist/esm/versions/v2/api/item-search-api.js +66 -0
- package/dist/esm/versions/v2/api/leads-api.d.ts +64 -1
- package/dist/esm/versions/v2/api/leads-api.js +90 -0
- package/dist/esm/versions/v2/api/organization-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/organization-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/organizations-api.d.ts +208 -1
- package/dist/esm/versions/v2/api/organizations-api.js +297 -0
- package/dist/esm/versions/v2/api/person-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/person-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +230 -1
- package/dist/esm/versions/v2/api/persons-api.js +328 -0
- package/dist/esm/versions/v2/api/pipelines-api.d.ts +95 -1
- package/dist/esm/versions/v2/api/pipelines-api.js +139 -0
- package/dist/esm/versions/v2/api/product-fields-api.d.ts +152 -1
- package/dist/esm/versions/v2/api/product-fields-api.js +223 -0
- package/dist/esm/versions/v2/api/products-api.d.ts +371 -1
- package/dist/esm/versions/v2/api/products-api.js +541 -0
- package/dist/esm/versions/v2/api/project-boards-api.d.ts +90 -1
- package/dist/esm/versions/v2/api/project-boards-api.js +134 -0
- package/dist/esm/versions/v2/api/project-fields-api.d.ts +150 -1
- package/dist/esm/versions/v2/api/project-fields-api.js +221 -0
- package/dist/esm/versions/v2/api/project-phases-api.d.ts +92 -1
- package/dist/esm/versions/v2/api/project-phases-api.js +136 -0
- package/dist/esm/versions/v2/api/project-templates-api.d.ts +38 -1
- package/dist/esm/versions/v2/api/project-templates-api.js +55 -0
- package/dist/esm/versions/v2/api/projects-api.d.ts +201 -1
- package/dist/esm/versions/v2/api/projects-api.js +290 -0
- package/dist/esm/versions/v2/api/stages-api.d.ts +96 -1
- package/dist/esm/versions/v2/api/stages-api.js +140 -0
- package/dist/esm/versions/v2/api/tasks-api.d.ts +98 -1
- package/dist/esm/versions/v2/api/tasks-api.js +142 -0
- package/dist/esm/versions/v2/api/users-api.d.ts +21 -1
- package/dist/esm/versions/v2/api/users-api.js +29 -0
- package/dist/esm/versions/v2/base.d.ts +17 -0
- package/dist/esm/versions/v2/base.js +22 -0
- package/dist/esm/versions/v2/common.d.ts +1 -1
- package/dist/esm/versions/v2/common.js +7 -4
- package/dist/versions/v1/api/activity-fields-api.d.ts +17 -1
- package/dist/versions/v1/api/activity-fields-api.js +25 -0
- package/dist/versions/v1/api/activity-types-api.d.ts +72 -1
- package/dist/versions/v1/api/activity-types-api.js +107 -0
- package/dist/versions/v1/api/billing-api.d.ts +17 -1
- package/dist/versions/v1/api/billing-api.js +25 -0
- package/dist/versions/v1/api/call-logs-api.d.ts +93 -1
- package/dist/versions/v1/api/call-logs-api.js +137 -0
- package/dist/versions/v1/api/channels-api.d.ts +74 -1
- package/dist/versions/v1/api/channels-api.js +109 -0
- package/dist/versions/v1/api/currencies-api.d.ts +19 -1
- package/dist/versions/v1/api/currencies-api.js +27 -0
- package/dist/versions/v1/api/deal-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/deal-fields-api.js +164 -0
- package/dist/versions/v1/api/deals-api.d.ts +399 -1
- package/dist/versions/v1/api/deals-api.js +569 -0
- package/dist/versions/v1/api/files-api.d.ts +163 -1
- package/dist/versions/v1/api/files-api.js +234 -0
- package/dist/versions/v1/api/filters-api.d.ts +129 -1
- package/dist/versions/v1/api/filters-api.js +191 -0
- package/dist/versions/v1/api/goals-api.d.ts +106 -1
- package/dist/versions/v1/api/goals-api.js +150 -0
- package/dist/versions/v1/api/lead-fields-api.d.ts +20 -1
- package/dist/versions/v1/api/lead-fields-api.js +28 -0
- package/dist/versions/v1/api/lead-labels-api.d.ts +72 -1
- package/dist/versions/v1/api/lead-labels-api.js +107 -0
- package/dist/versions/v1/api/lead-sources-api.d.ts +17 -1
- package/dist/versions/v1/api/lead-sources-api.js +25 -0
- package/dist/versions/v1/api/leads-api.d.ts +166 -1
- package/dist/versions/v1/api/leads-api.js +237 -0
- package/dist/versions/v1/api/legacy-teams-api.d.ts +152 -1
- package/dist/versions/v1/api/legacy-teams-api.js +223 -0
- package/dist/versions/v1/api/mailbox-api.d.ts +117 -1
- package/dist/versions/v1/api/mailbox-api.js +170 -0
- package/dist/versions/v1/api/meetings-api.d.ts +37 -1
- package/dist/versions/v1/api/meetings-api.js +54 -0
- package/dist/versions/v1/api/note-fields-api.d.ts +17 -1
- package/dist/versions/v1/api/note-fields-api.js +25 -0
- package/dist/versions/v1/api/notes-api.d.ts +207 -1
- package/dist/versions/v1/api/notes-api.js +296 -0
- package/dist/versions/v1/api/organization-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/organization-fields-api.js +164 -0
- package/dist/versions/v1/api/organization-relationships-api.d.ts +93 -1
- package/dist/versions/v1/api/organization-relationships-api.js +137 -0
- package/dist/versions/v1/api/organizations-api.d.ts +178 -1
- package/dist/versions/v1/api/organizations-api.js +258 -0
- package/dist/versions/v1/api/permission-sets-api.d.ts +57 -1
- package/dist/versions/v1/api/permission-sets-api.js +83 -0
- package/dist/versions/v1/api/person-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/person-fields-api.js +164 -0
- package/dist/versions/v1/api/persons-api.d.ts +275 -37
- package/dist/versions/v1/api/persons-api.js +370 -24
- package/dist/versions/v1/api/pipelines-api.d.ts +69 -1
- package/dist/versions/v1/api/pipelines-api.js +95 -0
- package/dist/versions/v1/api/product-fields-api.d.ts +111 -1
- package/dist/versions/v1/api/product-fields-api.js +164 -0
- package/dist/versions/v1/api/products-api.d.ts +119 -1
- package/dist/versions/v1/api/products-api.js +172 -0
- package/dist/versions/v1/api/project-boards-api.d.ts +35 -1
- package/dist/versions/v1/api/project-boards-api.js +52 -0
- package/dist/versions/v1/api/project-phases-api.d.ts +37 -1
- package/dist/versions/v1/api/project-phases-api.js +54 -0
- package/dist/versions/v1/api/project-templates-api.d.ts +38 -1
- package/dist/versions/v1/api/project-templates-api.js +55 -0
- package/dist/versions/v1/api/projects-api.d.ts +227 -1
- package/dist/versions/v1/api/projects-api.js +334 -0
- package/dist/versions/v1/api/recents-api.d.ts +22 -1
- package/dist/versions/v1/api/recents-api.js +30 -0
- package/dist/versions/v1/api/roles-api.d.ts +226 -1
- package/dist/versions/v1/api/roles-api.js +333 -0
- package/dist/versions/v1/api/stages-api.d.ts +24 -1
- package/dist/versions/v1/api/stages-api.js +32 -0
- package/dist/versions/v1/api/tasks-api.d.ts +97 -1
- package/dist/versions/v1/api/tasks-api.js +141 -0
- package/dist/versions/v1/api/user-connections-api.d.ts +17 -1
- package/dist/versions/v1/api/user-connections-api.js +25 -0
- package/dist/versions/v1/api/user-settings-api.d.ts +17 -1
- package/dist/versions/v1/api/user-settings-api.js +25 -0
- package/dist/versions/v1/api/users-api.d.ts +181 -1
- package/dist/versions/v1/api/users-api.js +270 -0
- package/dist/versions/v1/api/webhooks-api.d.ts +53 -1
- package/dist/versions/v1/api/webhooks-api.js +79 -0
- package/dist/versions/v1/base.d.ts +17 -0
- package/dist/versions/v1/base.js +24 -1
- package/dist/versions/v1/common.d.ts +1 -1
- package/dist/versions/v1/common.js +6 -3
- package/dist/versions/v2/api/activities-api.d.ts +107 -1
- package/dist/versions/v2/api/activities-api.js +151 -0
- package/dist/versions/v2/api/activity-fields-api.d.ts +40 -1
- package/dist/versions/v2/api/activity-fields-api.js +57 -0
- package/dist/versions/v2/api/beta-api.d.ts +451 -1
- package/dist/versions/v2/api/beta-api.js +666 -0
- package/dist/versions/v2/api/deal-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/deal-fields-api.js +223 -0
- package/dist/versions/v2/api/deal-installments-api.d.ts +81 -1
- package/dist/versions/v2/api/deal-installments-api.js +116 -0
- package/dist/versions/v2/api/deal-products-api.d.ts +141 -1
- package/dist/versions/v2/api/deal-products-api.js +203 -0
- package/dist/versions/v2/api/deals-api.d.ts +363 -1
- package/dist/versions/v2/api/deals-api.js +516 -1
- package/dist/versions/v2/api/item-search-api.d.ts +49 -1
- package/dist/versions/v2/api/item-search-api.js +66 -0
- package/dist/versions/v2/api/leads-api.d.ts +64 -1
- package/dist/versions/v2/api/leads-api.js +90 -0
- package/dist/versions/v2/api/organization-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/organization-fields-api.js +223 -0
- package/dist/versions/v2/api/organizations-api.d.ts +208 -1
- package/dist/versions/v2/api/organizations-api.js +297 -0
- package/dist/versions/v2/api/person-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/person-fields-api.js +223 -0
- package/dist/versions/v2/api/persons-api.d.ts +230 -1
- package/dist/versions/v2/api/persons-api.js +328 -0
- package/dist/versions/v2/api/pipelines-api.d.ts +95 -1
- package/dist/versions/v2/api/pipelines-api.js +139 -0
- package/dist/versions/v2/api/product-fields-api.d.ts +152 -1
- package/dist/versions/v2/api/product-fields-api.js +223 -0
- package/dist/versions/v2/api/products-api.d.ts +371 -1
- package/dist/versions/v2/api/products-api.js +541 -0
- package/dist/versions/v2/api/project-boards-api.d.ts +90 -1
- package/dist/versions/v2/api/project-boards-api.js +134 -0
- package/dist/versions/v2/api/project-fields-api.d.ts +150 -1
- package/dist/versions/v2/api/project-fields-api.js +221 -0
- package/dist/versions/v2/api/project-phases-api.d.ts +92 -1
- package/dist/versions/v2/api/project-phases-api.js +136 -0
- package/dist/versions/v2/api/project-templates-api.d.ts +38 -1
- package/dist/versions/v2/api/project-templates-api.js +55 -0
- package/dist/versions/v2/api/projects-api.d.ts +201 -1
- package/dist/versions/v2/api/projects-api.js +290 -0
- package/dist/versions/v2/api/stages-api.d.ts +96 -1
- package/dist/versions/v2/api/stages-api.js +140 -0
- package/dist/versions/v2/api/tasks-api.d.ts +98 -1
- package/dist/versions/v2/api/tasks-api.js +142 -0
- package/dist/versions/v2/api/users-api.d.ts +21 -1
- package/dist/versions/v2/api/users-api.js +29 -0
- package/dist/versions/v2/base.d.ts +17 -0
- package/dist/versions/v2/base.js +24 -1
- package/dist/versions/v2/common.d.ts +1 -1
- package/dist/versions/v2/common.js +6 -3
- package/package.json +1 -1
|
@@ -505,6 +505,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
505
505
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
506
506
|
});
|
|
507
507
|
},
|
|
508
|
+
/**
|
|
509
|
+
* Same as `addProject`, but resolves with the response body together with the HTTP status and headers.
|
|
510
|
+
* @summary Add a project
|
|
511
|
+
* @param {AddProjectRequest} [AddProjectRequest]
|
|
512
|
+
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
addProjectWithHttpInfo(AddProjectRequest) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addProject(AddProjectRequest);
|
|
518
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
519
|
+
});
|
|
520
|
+
},
|
|
508
521
|
/**
|
|
509
522
|
* Archives a project.
|
|
510
523
|
* @summary Archive a project
|
|
@@ -518,6 +531,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
518
531
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
519
532
|
});
|
|
520
533
|
},
|
|
534
|
+
/**
|
|
535
|
+
* Same as `archiveProject`, but resolves with the response body together with the HTTP status and headers.
|
|
536
|
+
* @summary Archive a project
|
|
537
|
+
* @param {number} id The ID of the project
|
|
538
|
+
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
*/
|
|
541
|
+
archiveProjectWithHttpInfo(id) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveProject(id);
|
|
544
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
545
|
+
});
|
|
546
|
+
},
|
|
521
547
|
/**
|
|
522
548
|
* Marks a project as deleted.
|
|
523
549
|
* @summary Delete a project
|
|
@@ -531,6 +557,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
531
557
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
532
558
|
});
|
|
533
559
|
},
|
|
560
|
+
/**
|
|
561
|
+
* Same as `deleteProject`, but resolves with the response body together with the HTTP status and headers.
|
|
562
|
+
* @summary Delete a project
|
|
563
|
+
* @param {number} id The ID of the project
|
|
564
|
+
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
deleteProjectWithHttpInfo(id) {
|
|
568
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProject(id);
|
|
570
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
571
|
+
});
|
|
572
|
+
},
|
|
534
573
|
/**
|
|
535
574
|
* Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields.
|
|
536
575
|
* @summary Get details of a project
|
|
@@ -544,6 +583,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
544
583
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
545
584
|
});
|
|
546
585
|
},
|
|
586
|
+
/**
|
|
587
|
+
* Same as `getProject`, but resolves with the response body together with the HTTP status and headers.
|
|
588
|
+
* @summary Get details of a project
|
|
589
|
+
* @param {number} id The ID of the project
|
|
590
|
+
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
getProjectWithHttpInfo(id) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProject(id);
|
|
596
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
597
|
+
});
|
|
598
|
+
},
|
|
547
599
|
/**
|
|
548
600
|
* Returns activities linked to a specific project.
|
|
549
601
|
* @summary Returns project activities
|
|
@@ -557,6 +609,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
557
609
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
558
610
|
});
|
|
559
611
|
},
|
|
612
|
+
/**
|
|
613
|
+
* Same as `getProjectActivities`, but resolves with the response body together with the HTTP status and headers.
|
|
614
|
+
* @summary Returns project activities
|
|
615
|
+
* @param {number} id The ID of the project
|
|
616
|
+
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
getProjectActivitiesWithHttpInfo(id) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectActivities(id);
|
|
622
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
623
|
+
});
|
|
624
|
+
},
|
|
560
625
|
/**
|
|
561
626
|
* Returns all active groups under a specific project.
|
|
562
627
|
* @summary Returns project groups
|
|
@@ -570,6 +635,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
570
635
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
571
636
|
});
|
|
572
637
|
},
|
|
638
|
+
/**
|
|
639
|
+
* Same as `getProjectGroups`, but resolves with the response body together with the HTTP status and headers.
|
|
640
|
+
* @summary Returns project groups
|
|
641
|
+
* @param {number} id The ID of the project
|
|
642
|
+
|
|
643
|
+
* @throws {RequiredError}
|
|
644
|
+
*/
|
|
645
|
+
getProjectGroupsWithHttpInfo(id) {
|
|
646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectGroups(id);
|
|
648
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
649
|
+
});
|
|
650
|
+
},
|
|
573
651
|
/**
|
|
574
652
|
* Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group.
|
|
575
653
|
* @summary Returns project plan
|
|
@@ -583,6 +661,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
583
661
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
584
662
|
});
|
|
585
663
|
},
|
|
664
|
+
/**
|
|
665
|
+
* Same as `getProjectPlan`, but resolves with the response body together with the HTTP status and headers.
|
|
666
|
+
* @summary Returns project plan
|
|
667
|
+
* @param {number} id The ID of the project
|
|
668
|
+
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
getProjectPlanWithHttpInfo(id) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectPlan(id);
|
|
674
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
675
|
+
});
|
|
676
|
+
},
|
|
586
677
|
/**
|
|
587
678
|
* Returns tasks linked to a specific project.
|
|
588
679
|
* @summary Returns project tasks
|
|
@@ -596,6 +687,19 @@ const ProjectsApiFp = function (configuration) {
|
|
|
596
687
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
597
688
|
});
|
|
598
689
|
},
|
|
690
|
+
/**
|
|
691
|
+
* Same as `getProjectTasks`, but resolves with the response body together with the HTTP status and headers.
|
|
692
|
+
* @summary Returns project tasks
|
|
693
|
+
* @param {number} id The ID of the project
|
|
694
|
+
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
getProjectTasksWithHttpInfo(id) {
|
|
698
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
699
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectTasks(id);
|
|
700
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
701
|
+
});
|
|
702
|
+
},
|
|
599
703
|
/**
|
|
600
704
|
* Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>.
|
|
601
705
|
* @summary Get all projects
|
|
@@ -614,6 +718,24 @@ const ProjectsApiFp = function (configuration) {
|
|
|
614
718
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
615
719
|
});
|
|
616
720
|
},
|
|
721
|
+
/**
|
|
722
|
+
* Same as `getProjects`, but resolves with the response body together with the HTTP status and headers.
|
|
723
|
+
* @summary Get all projects
|
|
724
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
|
725
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
|
|
726
|
+
* @param {number} [filter_id] The ID of the filter to use
|
|
727
|
+
* @param {string} [status] If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned.
|
|
728
|
+
* @param {number} [phase_id] If supplied, only projects in specified phase are returned
|
|
729
|
+
* @param {boolean} [include_archived] If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned.
|
|
730
|
+
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
getProjectsWithHttpInfo(cursor, limit, filter_id, status, phase_id, include_archived) {
|
|
734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
735
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjects(cursor, limit, filter_id, status, phase_id, include_archived);
|
|
736
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
737
|
+
});
|
|
738
|
+
},
|
|
617
739
|
/**
|
|
618
740
|
* Updates an activity phase or group in a project.
|
|
619
741
|
* @summary Update activity in project plan
|
|
@@ -629,6 +751,21 @@ const ProjectsApiFp = function (configuration) {
|
|
|
629
751
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
630
752
|
});
|
|
631
753
|
},
|
|
754
|
+
/**
|
|
755
|
+
* Same as `putProjectPlanActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
756
|
+
* @summary Update activity in project plan
|
|
757
|
+
* @param {number} id The ID of the project
|
|
758
|
+
* @param {number} activityId The ID of the activity
|
|
759
|
+
* @param {ProjectPutPlanItemBodyObject} [ProjectPutPlanItemBodyObject]
|
|
760
|
+
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
putProjectPlanActivityWithHttpInfo(id, activityId, ProjectPutPlanItemBodyObject) {
|
|
764
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
765
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.putProjectPlanActivity(id, activityId, ProjectPutPlanItemBodyObject);
|
|
766
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
767
|
+
});
|
|
768
|
+
},
|
|
632
769
|
/**
|
|
633
770
|
* Updates a task phase or group in a project.
|
|
634
771
|
* @summary Update task in project plan
|
|
@@ -644,6 +781,21 @@ const ProjectsApiFp = function (configuration) {
|
|
|
644
781
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
645
782
|
});
|
|
646
783
|
},
|
|
784
|
+
/**
|
|
785
|
+
* Same as `putProjectPlanTask`, but resolves with the response body together with the HTTP status and headers.
|
|
786
|
+
* @summary Update task in project plan
|
|
787
|
+
* @param {number} id The ID of the project
|
|
788
|
+
* @param {number} taskId The ID of the task
|
|
789
|
+
* @param {ProjectPutPlanItemBodyObject} [ProjectPutPlanItemBodyObject]
|
|
790
|
+
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
putProjectPlanTaskWithHttpInfo(id, taskId, ProjectPutPlanItemBodyObject) {
|
|
794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
795
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.putProjectPlanTask(id, taskId, ProjectPutPlanItemBodyObject);
|
|
796
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
797
|
+
});
|
|
798
|
+
},
|
|
647
799
|
/**
|
|
648
800
|
* Updates a project.
|
|
649
801
|
* @summary Update a project
|
|
@@ -658,6 +810,20 @@ const ProjectsApiFp = function (configuration) {
|
|
|
658
810
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
659
811
|
});
|
|
660
812
|
},
|
|
813
|
+
/**
|
|
814
|
+
* Same as `updateProject`, but resolves with the response body together with the HTTP status and headers.
|
|
815
|
+
* @summary Update a project
|
|
816
|
+
* @param {number} id The ID of the project
|
|
817
|
+
* @param {UpdateProjectRequest} [UpdateProjectRequest]
|
|
818
|
+
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
*/
|
|
821
|
+
updateProjectWithHttpInfo(id, UpdateProjectRequest) {
|
|
822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
823
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProject(id, UpdateProjectRequest);
|
|
824
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
825
|
+
});
|
|
826
|
+
},
|
|
661
827
|
};
|
|
662
828
|
};
|
|
663
829
|
exports.ProjectsApiFp = ProjectsApiFp;
|
|
@@ -678,6 +844,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
678
844
|
addProject(requestParameters = {}) {
|
|
679
845
|
return localVarFp.addProject(requestParameters.AddProjectRequest).then((request) => request(axios, basePath));
|
|
680
846
|
},
|
|
847
|
+
addProjectWithHttpInfo(requestParameters = {}) {
|
|
848
|
+
return localVarFp.addProjectWithHttpInfo(requestParameters.AddProjectRequest).then((request) => request(axios, basePath));
|
|
849
|
+
},
|
|
681
850
|
/**
|
|
682
851
|
* Archives a project.
|
|
683
852
|
* @summary Archive a project
|
|
@@ -688,6 +857,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
688
857
|
archiveProject(requestParameters) {
|
|
689
858
|
return localVarFp.archiveProject(requestParameters.id).then((request) => request(axios, basePath));
|
|
690
859
|
},
|
|
860
|
+
archiveProjectWithHttpInfo(requestParameters) {
|
|
861
|
+
return localVarFp.archiveProjectWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
862
|
+
},
|
|
691
863
|
/**
|
|
692
864
|
* Marks a project as deleted.
|
|
693
865
|
* @summary Delete a project
|
|
@@ -698,6 +870,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
698
870
|
deleteProject(requestParameters) {
|
|
699
871
|
return localVarFp.deleteProject(requestParameters.id).then((request) => request(axios, basePath));
|
|
700
872
|
},
|
|
873
|
+
deleteProjectWithHttpInfo(requestParameters) {
|
|
874
|
+
return localVarFp.deleteProjectWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
875
|
+
},
|
|
701
876
|
/**
|
|
702
877
|
* Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields.
|
|
703
878
|
* @summary Get details of a project
|
|
@@ -708,6 +883,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
708
883
|
getProject(requestParameters) {
|
|
709
884
|
return localVarFp.getProject(requestParameters.id).then((request) => request(axios, basePath));
|
|
710
885
|
},
|
|
886
|
+
getProjectWithHttpInfo(requestParameters) {
|
|
887
|
+
return localVarFp.getProjectWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
888
|
+
},
|
|
711
889
|
/**
|
|
712
890
|
* Returns activities linked to a specific project.
|
|
713
891
|
* @summary Returns project activities
|
|
@@ -718,6 +896,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
718
896
|
getProjectActivities(requestParameters) {
|
|
719
897
|
return localVarFp.getProjectActivities(requestParameters.id).then((request) => request(axios, basePath));
|
|
720
898
|
},
|
|
899
|
+
getProjectActivitiesWithHttpInfo(requestParameters) {
|
|
900
|
+
return localVarFp.getProjectActivitiesWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
901
|
+
},
|
|
721
902
|
/**
|
|
722
903
|
* Returns all active groups under a specific project.
|
|
723
904
|
* @summary Returns project groups
|
|
@@ -728,6 +909,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
728
909
|
getProjectGroups(requestParameters) {
|
|
729
910
|
return localVarFp.getProjectGroups(requestParameters.id).then((request) => request(axios, basePath));
|
|
730
911
|
},
|
|
912
|
+
getProjectGroupsWithHttpInfo(requestParameters) {
|
|
913
|
+
return localVarFp.getProjectGroupsWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
914
|
+
},
|
|
731
915
|
/**
|
|
732
916
|
* Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group.
|
|
733
917
|
* @summary Returns project plan
|
|
@@ -738,6 +922,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
738
922
|
getProjectPlan(requestParameters) {
|
|
739
923
|
return localVarFp.getProjectPlan(requestParameters.id).then((request) => request(axios, basePath));
|
|
740
924
|
},
|
|
925
|
+
getProjectPlanWithHttpInfo(requestParameters) {
|
|
926
|
+
return localVarFp.getProjectPlanWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
927
|
+
},
|
|
741
928
|
/**
|
|
742
929
|
* Returns tasks linked to a specific project.
|
|
743
930
|
* @summary Returns project tasks
|
|
@@ -748,6 +935,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
748
935
|
getProjectTasks(requestParameters) {
|
|
749
936
|
return localVarFp.getProjectTasks(requestParameters.id).then((request) => request(axios, basePath));
|
|
750
937
|
},
|
|
938
|
+
getProjectTasksWithHttpInfo(requestParameters) {
|
|
939
|
+
return localVarFp.getProjectTasksWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
940
|
+
},
|
|
751
941
|
/**
|
|
752
942
|
* Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>.
|
|
753
943
|
* @summary Get all projects
|
|
@@ -758,6 +948,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
758
948
|
getProjects(requestParameters = {}) {
|
|
759
949
|
return localVarFp.getProjects(requestParameters.cursor, requestParameters.limit, requestParameters.filter_id, requestParameters.status, requestParameters.phase_id, requestParameters.include_archived).then((request) => request(axios, basePath));
|
|
760
950
|
},
|
|
951
|
+
getProjectsWithHttpInfo(requestParameters = {}) {
|
|
952
|
+
return localVarFp.getProjectsWithHttpInfo(requestParameters.cursor, requestParameters.limit, requestParameters.filter_id, requestParameters.status, requestParameters.phase_id, requestParameters.include_archived).then((request) => request(axios, basePath));
|
|
953
|
+
},
|
|
761
954
|
/**
|
|
762
955
|
* Updates an activity phase or group in a project.
|
|
763
956
|
* @summary Update activity in project plan
|
|
@@ -768,6 +961,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
768
961
|
putProjectPlanActivity(requestParameters) {
|
|
769
962
|
return localVarFp.putProjectPlanActivity(requestParameters.id, requestParameters.activityId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(axios, basePath));
|
|
770
963
|
},
|
|
964
|
+
putProjectPlanActivityWithHttpInfo(requestParameters) {
|
|
965
|
+
return localVarFp.putProjectPlanActivityWithHttpInfo(requestParameters.id, requestParameters.activityId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(axios, basePath));
|
|
966
|
+
},
|
|
771
967
|
/**
|
|
772
968
|
* Updates a task phase or group in a project.
|
|
773
969
|
* @summary Update task in project plan
|
|
@@ -778,6 +974,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
778
974
|
putProjectPlanTask(requestParameters) {
|
|
779
975
|
return localVarFp.putProjectPlanTask(requestParameters.id, requestParameters.taskId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(axios, basePath));
|
|
780
976
|
},
|
|
977
|
+
putProjectPlanTaskWithHttpInfo(requestParameters) {
|
|
978
|
+
return localVarFp.putProjectPlanTaskWithHttpInfo(requestParameters.id, requestParameters.taskId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(axios, basePath));
|
|
979
|
+
},
|
|
781
980
|
/**
|
|
782
981
|
* Updates a project.
|
|
783
982
|
* @summary Update a project
|
|
@@ -788,6 +987,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
788
987
|
updateProject(requestParameters) {
|
|
789
988
|
return localVarFp.updateProject(requestParameters.id, requestParameters.UpdateProjectRequest).then((request) => request(axios, basePath));
|
|
790
989
|
},
|
|
990
|
+
updateProjectWithHttpInfo(requestParameters) {
|
|
991
|
+
return localVarFp.updateProjectWithHttpInfo(requestParameters.id, requestParameters.UpdateProjectRequest).then((request) => request(axios, basePath));
|
|
992
|
+
},
|
|
791
993
|
};
|
|
792
994
|
};
|
|
793
995
|
exports.ProjectsApiFactory = ProjectsApiFactory;
|
|
@@ -809,6 +1011,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
809
1011
|
addProject(requestParameters = {}) {
|
|
810
1012
|
return (0, exports.ProjectsApiFp)(this.configuration).addProject(requestParameters.AddProjectRequest).then((request) => request(this.axios, this.basePath));
|
|
811
1013
|
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Same as `addProject`, but resolves with the response body together with the HTTP status and headers.
|
|
1016
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1017
|
+
* @param {ProjectsApiAddProjectRequest} requestParameters Request parameters.
|
|
1018
|
+
|
|
1019
|
+
* @throws {RequiredError}
|
|
1020
|
+
* @memberof ProjectsApi
|
|
1021
|
+
*/
|
|
1022
|
+
addProjectWithHttpInfo(requestParameters = {}) {
|
|
1023
|
+
return (0, exports.ProjectsApiFp)(this.configuration).addProjectWithHttpInfo(requestParameters.AddProjectRequest).then((request) => request(this.axios, this.basePath));
|
|
1024
|
+
}
|
|
812
1025
|
/**
|
|
813
1026
|
* Archives a project.
|
|
814
1027
|
* @summary Archive a project
|
|
@@ -820,6 +1033,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
820
1033
|
archiveProject(requestParameters) {
|
|
821
1034
|
return (0, exports.ProjectsApiFp)(this.configuration).archiveProject(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
822
1035
|
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Same as `archiveProject`, but resolves with the response body together with the HTTP status and headers.
|
|
1038
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1039
|
+
* @param {ProjectsApiArchiveProjectRequest} requestParameters Request parameters.
|
|
1040
|
+
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
* @memberof ProjectsApi
|
|
1043
|
+
*/
|
|
1044
|
+
archiveProjectWithHttpInfo(requestParameters) {
|
|
1045
|
+
return (0, exports.ProjectsApiFp)(this.configuration).archiveProjectWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1046
|
+
}
|
|
823
1047
|
/**
|
|
824
1048
|
* Marks a project as deleted.
|
|
825
1049
|
* @summary Delete a project
|
|
@@ -831,6 +1055,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
831
1055
|
deleteProject(requestParameters) {
|
|
832
1056
|
return (0, exports.ProjectsApiFp)(this.configuration).deleteProject(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
833
1057
|
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Same as `deleteProject`, but resolves with the response body together with the HTTP status and headers.
|
|
1060
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1061
|
+
* @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters.
|
|
1062
|
+
|
|
1063
|
+
* @throws {RequiredError}
|
|
1064
|
+
* @memberof ProjectsApi
|
|
1065
|
+
*/
|
|
1066
|
+
deleteProjectWithHttpInfo(requestParameters) {
|
|
1067
|
+
return (0, exports.ProjectsApiFp)(this.configuration).deleteProjectWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1068
|
+
}
|
|
834
1069
|
/**
|
|
835
1070
|
* Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields.
|
|
836
1071
|
* @summary Get details of a project
|
|
@@ -842,6 +1077,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
842
1077
|
getProject(requestParameters) {
|
|
843
1078
|
return (0, exports.ProjectsApiFp)(this.configuration).getProject(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
844
1079
|
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Same as `getProject`, but resolves with the response body together with the HTTP status and headers.
|
|
1082
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1083
|
+
* @param {ProjectsApiGetProjectRequest} requestParameters Request parameters.
|
|
1084
|
+
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
* @memberof ProjectsApi
|
|
1087
|
+
*/
|
|
1088
|
+
getProjectWithHttpInfo(requestParameters) {
|
|
1089
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getProjectWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1090
|
+
}
|
|
845
1091
|
/**
|
|
846
1092
|
* Returns activities linked to a specific project.
|
|
847
1093
|
* @summary Returns project activities
|
|
@@ -853,6 +1099,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
853
1099
|
getProjectActivities(requestParameters) {
|
|
854
1100
|
return (0, exports.ProjectsApiFp)(this.configuration).getProjectActivities(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
855
1101
|
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Same as `getProjectActivities`, but resolves with the response body together with the HTTP status and headers.
|
|
1104
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1105
|
+
* @param {ProjectsApiGetProjectActivitiesRequest} requestParameters Request parameters.
|
|
1106
|
+
|
|
1107
|
+
* @throws {RequiredError}
|
|
1108
|
+
* @memberof ProjectsApi
|
|
1109
|
+
*/
|
|
1110
|
+
getProjectActivitiesWithHttpInfo(requestParameters) {
|
|
1111
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getProjectActivitiesWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1112
|
+
}
|
|
856
1113
|
/**
|
|
857
1114
|
* Returns all active groups under a specific project.
|
|
858
1115
|
* @summary Returns project groups
|
|
@@ -864,6 +1121,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
864
1121
|
getProjectGroups(requestParameters) {
|
|
865
1122
|
return (0, exports.ProjectsApiFp)(this.configuration).getProjectGroups(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
866
1123
|
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Same as `getProjectGroups`, but resolves with the response body together with the HTTP status and headers.
|
|
1126
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1127
|
+
* @param {ProjectsApiGetProjectGroupsRequest} requestParameters Request parameters.
|
|
1128
|
+
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
* @memberof ProjectsApi
|
|
1131
|
+
*/
|
|
1132
|
+
getProjectGroupsWithHttpInfo(requestParameters) {
|
|
1133
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getProjectGroupsWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1134
|
+
}
|
|
867
1135
|
/**
|
|
868
1136
|
* Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group.
|
|
869
1137
|
* @summary Returns project plan
|
|
@@ -875,6 +1143,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
875
1143
|
getProjectPlan(requestParameters) {
|
|
876
1144
|
return (0, exports.ProjectsApiFp)(this.configuration).getProjectPlan(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
877
1145
|
}
|
|
1146
|
+
/**
|
|
1147
|
+
* Same as `getProjectPlan`, but resolves with the response body together with the HTTP status and headers.
|
|
1148
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1149
|
+
* @param {ProjectsApiGetProjectPlanRequest} requestParameters Request parameters.
|
|
1150
|
+
|
|
1151
|
+
* @throws {RequiredError}
|
|
1152
|
+
* @memberof ProjectsApi
|
|
1153
|
+
*/
|
|
1154
|
+
getProjectPlanWithHttpInfo(requestParameters) {
|
|
1155
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getProjectPlanWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1156
|
+
}
|
|
878
1157
|
/**
|
|
879
1158
|
* Returns tasks linked to a specific project.
|
|
880
1159
|
* @summary Returns project tasks
|
|
@@ -886,6 +1165,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
886
1165
|
getProjectTasks(requestParameters) {
|
|
887
1166
|
return (0, exports.ProjectsApiFp)(this.configuration).getProjectTasks(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
888
1167
|
}
|
|
1168
|
+
/**
|
|
1169
|
+
* Same as `getProjectTasks`, but resolves with the response body together with the HTTP status and headers.
|
|
1170
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1171
|
+
* @param {ProjectsApiGetProjectTasksRequest} requestParameters Request parameters.
|
|
1172
|
+
|
|
1173
|
+
* @throws {RequiredError}
|
|
1174
|
+
* @memberof ProjectsApi
|
|
1175
|
+
*/
|
|
1176
|
+
getProjectTasksWithHttpInfo(requestParameters) {
|
|
1177
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getProjectTasksWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1178
|
+
}
|
|
889
1179
|
/**
|
|
890
1180
|
* Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>.
|
|
891
1181
|
* @summary Get all projects
|
|
@@ -897,6 +1187,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
897
1187
|
getProjects(requestParameters = {}) {
|
|
898
1188
|
return (0, exports.ProjectsApiFp)(this.configuration).getProjects(requestParameters.cursor, requestParameters.limit, requestParameters.filter_id, requestParameters.status, requestParameters.phase_id, requestParameters.include_archived).then((request) => request(this.axios, this.basePath));
|
|
899
1189
|
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Same as `getProjects`, but resolves with the response body together with the HTTP status and headers.
|
|
1192
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1193
|
+
* @param {ProjectsApiGetProjectsRequest} requestParameters Request parameters.
|
|
1194
|
+
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
* @memberof ProjectsApi
|
|
1197
|
+
*/
|
|
1198
|
+
getProjectsWithHttpInfo(requestParameters = {}) {
|
|
1199
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getProjectsWithHttpInfo(requestParameters.cursor, requestParameters.limit, requestParameters.filter_id, requestParameters.status, requestParameters.phase_id, requestParameters.include_archived).then((request) => request(this.axios, this.basePath));
|
|
1200
|
+
}
|
|
900
1201
|
/**
|
|
901
1202
|
* Updates an activity phase or group in a project.
|
|
902
1203
|
* @summary Update activity in project plan
|
|
@@ -908,6 +1209,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
908
1209
|
putProjectPlanActivity(requestParameters) {
|
|
909
1210
|
return (0, exports.ProjectsApiFp)(this.configuration).putProjectPlanActivity(requestParameters.id, requestParameters.activityId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(this.axios, this.basePath));
|
|
910
1211
|
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Same as `putProjectPlanActivity`, but resolves with the response body together with the HTTP status and headers.
|
|
1214
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1215
|
+
* @param {ProjectsApiPutProjectPlanActivityRequest} requestParameters Request parameters.
|
|
1216
|
+
|
|
1217
|
+
* @throws {RequiredError}
|
|
1218
|
+
* @memberof ProjectsApi
|
|
1219
|
+
*/
|
|
1220
|
+
putProjectPlanActivityWithHttpInfo(requestParameters) {
|
|
1221
|
+
return (0, exports.ProjectsApiFp)(this.configuration).putProjectPlanActivityWithHttpInfo(requestParameters.id, requestParameters.activityId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(this.axios, this.basePath));
|
|
1222
|
+
}
|
|
911
1223
|
/**
|
|
912
1224
|
* Updates a task phase or group in a project.
|
|
913
1225
|
* @summary Update task in project plan
|
|
@@ -919,6 +1231,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
919
1231
|
putProjectPlanTask(requestParameters) {
|
|
920
1232
|
return (0, exports.ProjectsApiFp)(this.configuration).putProjectPlanTask(requestParameters.id, requestParameters.taskId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(this.axios, this.basePath));
|
|
921
1233
|
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Same as `putProjectPlanTask`, but resolves with the response body together with the HTTP status and headers.
|
|
1236
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1237
|
+
* @param {ProjectsApiPutProjectPlanTaskRequest} requestParameters Request parameters.
|
|
1238
|
+
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
* @memberof ProjectsApi
|
|
1241
|
+
*/
|
|
1242
|
+
putProjectPlanTaskWithHttpInfo(requestParameters) {
|
|
1243
|
+
return (0, exports.ProjectsApiFp)(this.configuration).putProjectPlanTaskWithHttpInfo(requestParameters.id, requestParameters.taskId, requestParameters.ProjectPutPlanItemBodyObject).then((request) => request(this.axios, this.basePath));
|
|
1244
|
+
}
|
|
922
1245
|
/**
|
|
923
1246
|
* Updates a project.
|
|
924
1247
|
* @summary Update a project
|
|
@@ -930,5 +1253,16 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
930
1253
|
updateProject(requestParameters) {
|
|
931
1254
|
return (0, exports.ProjectsApiFp)(this.configuration).updateProject(requestParameters.id, requestParameters.UpdateProjectRequest).then((request) => request(this.axios, this.basePath));
|
|
932
1255
|
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Same as `updateProject`, but resolves with the response body together with the HTTP status and headers.
|
|
1258
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1259
|
+
* @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters.
|
|
1260
|
+
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
* @memberof ProjectsApi
|
|
1263
|
+
*/
|
|
1264
|
+
updateProjectWithHttpInfo(requestParameters) {
|
|
1265
|
+
return (0, exports.ProjectsApiFp)(this.configuration).updateProjectWithHttpInfo(requestParameters.id, requestParameters.UpdateProjectRequest).then((request) => request(this.axios, this.basePath));
|
|
1266
|
+
}
|
|
933
1267
|
}
|
|
934
1268
|
exports.ProjectsApi = ProjectsApi;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosInstance } from 'axios';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import { RequestArgs, BaseAPI, ApiResponse } from '../base';
|
|
15
15
|
import { GetRecentsResponse } from '../models';
|
|
16
16
|
/**
|
|
17
17
|
* RecentsApi - axios parameter creator
|
|
@@ -46,6 +46,17 @@ export declare const RecentsApiFp: (configuration?: Configuration) => {
|
|
|
46
46
|
* @throws {RequiredError}
|
|
47
47
|
*/
|
|
48
48
|
getRecents(since_timestamp: string, items?: 'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user', start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetRecentsResponse>>;
|
|
49
|
+
/**
|
|
50
|
+
* Same as `getRecents`, but resolves with the response body together with the HTTP status and headers.
|
|
51
|
+
* @summary Get recents
|
|
52
|
+
* @param {string} since_timestamp The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS.
|
|
53
|
+
* @param {'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user'} [items] Multiple selection of item types to include in the query (optional)
|
|
54
|
+
* @param {number} [start] Pagination start
|
|
55
|
+
* @param {number} [limit] Items shown per page
|
|
56
|
+
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getRecentsWithHttpInfo(since_timestamp: string, items?: 'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user', start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetRecentsResponse>>>;
|
|
49
60
|
};
|
|
50
61
|
/**
|
|
51
62
|
* RecentsApi - factory interface
|
|
@@ -60,6 +71,7 @@ export declare const RecentsApiFactory: (configuration?: Configuration, basePath
|
|
|
60
71
|
* @throws {RequiredError}
|
|
61
72
|
*/
|
|
62
73
|
getRecents(requestParameters: RecentsApiGetRecentsRequest): Promise<GetRecentsResponse>;
|
|
74
|
+
getRecentsWithHttpInfo(requestParameters: RecentsApiGetRecentsRequest): Promise<ApiResponse<GetRecentsResponse>>;
|
|
63
75
|
};
|
|
64
76
|
/**
|
|
65
77
|
* Request parameters for getRecents operation in RecentsApi.
|
|
@@ -108,4 +120,13 @@ export declare class RecentsApi extends BaseAPI {
|
|
|
108
120
|
* @memberof RecentsApi
|
|
109
121
|
*/
|
|
110
122
|
getRecents(requestParameters: RecentsApiGetRecentsRequest): Promise<GetRecentsResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Same as `getRecents`, but resolves with the response body together with the HTTP status and headers.
|
|
125
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
126
|
+
* @param {RecentsApiGetRecentsRequest} requestParameters Request parameters.
|
|
127
|
+
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof RecentsApi
|
|
130
|
+
*/
|
|
131
|
+
getRecentsWithHttpInfo(requestParameters: RecentsApiGetRecentsRequest): Promise<ApiResponse<GetRecentsResponse>>;
|
|
111
132
|
}
|