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
|
@@ -500,6 +500,20 @@ const RolesApiFp = function (configuration) {
|
|
|
500
500
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
501
501
|
});
|
|
502
502
|
},
|
|
503
|
+
/**
|
|
504
|
+
* Same as `addOrUpdateRoleSetting`, but resolves with the response body together with the HTTP status and headers.
|
|
505
|
+
* @summary Add or update role setting
|
|
506
|
+
* @param {number} id The ID of the role
|
|
507
|
+
* @param {AddOrUpdateRoleSettingRequest} [AddOrUpdateRoleSettingRequest]
|
|
508
|
+
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
addOrUpdateRoleSettingWithHttpInfo(id, AddOrUpdateRoleSettingRequest) {
|
|
512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addOrUpdateRoleSetting(id, AddOrUpdateRoleSettingRequest);
|
|
514
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
515
|
+
});
|
|
516
|
+
},
|
|
503
517
|
/**
|
|
504
518
|
* Adds a new role.
|
|
505
519
|
* @summary Add a role
|
|
@@ -513,6 +527,19 @@ const RolesApiFp = function (configuration) {
|
|
|
513
527
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
514
528
|
});
|
|
515
529
|
},
|
|
530
|
+
/**
|
|
531
|
+
* Same as `addRole`, but resolves with the response body together with the HTTP status and headers.
|
|
532
|
+
* @summary Add a role
|
|
533
|
+
* @param {AddRoleRequest} [AddRoleRequest]
|
|
534
|
+
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
addRoleWithHttpInfo(AddRoleRequest) {
|
|
538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
539
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addRole(AddRoleRequest);
|
|
540
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
541
|
+
});
|
|
542
|
+
},
|
|
516
543
|
/**
|
|
517
544
|
* Assigns a user to a role.
|
|
518
545
|
* @summary Add role assignment
|
|
@@ -527,6 +554,20 @@ const RolesApiFp = function (configuration) {
|
|
|
527
554
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
528
555
|
});
|
|
529
556
|
},
|
|
557
|
+
/**
|
|
558
|
+
* Same as `addRoleAssignment`, but resolves with the response body together with the HTTP status and headers.
|
|
559
|
+
* @summary Add role assignment
|
|
560
|
+
* @param {number} id The ID of the role
|
|
561
|
+
* @param {AddRoleAssignmentRequest} [AddRoleAssignmentRequest]
|
|
562
|
+
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
addRoleAssignmentWithHttpInfo(id, AddRoleAssignmentRequest) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addRoleAssignment(id, AddRoleAssignmentRequest);
|
|
568
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
569
|
+
});
|
|
570
|
+
},
|
|
530
571
|
/**
|
|
531
572
|
* Marks a role as deleted.
|
|
532
573
|
* @summary Delete a role
|
|
@@ -540,6 +581,19 @@ const RolesApiFp = function (configuration) {
|
|
|
540
581
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
541
582
|
});
|
|
542
583
|
},
|
|
584
|
+
/**
|
|
585
|
+
* Same as `deleteRole`, but resolves with the response body together with the HTTP status and headers.
|
|
586
|
+
* @summary Delete a role
|
|
587
|
+
* @param {number} id The ID of the role
|
|
588
|
+
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
deleteRoleWithHttpInfo(id) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRole(id);
|
|
594
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
595
|
+
});
|
|
596
|
+
},
|
|
543
597
|
/**
|
|
544
598
|
* Removes the assigned user from a role and adds to the default role.
|
|
545
599
|
* @summary Delete a role assignment
|
|
@@ -554,6 +608,20 @@ const RolesApiFp = function (configuration) {
|
|
|
554
608
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
555
609
|
});
|
|
556
610
|
},
|
|
611
|
+
/**
|
|
612
|
+
* Same as `deleteRoleAssignment`, but resolves with the response body together with the HTTP status and headers.
|
|
613
|
+
* @summary Delete a role assignment
|
|
614
|
+
* @param {number} id The ID of the role
|
|
615
|
+
* @param {DeleteRoleAssignmentRequest} [DeleteRoleAssignmentRequest]
|
|
616
|
+
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
deleteRoleAssignmentWithHttpInfo(id, DeleteRoleAssignmentRequest) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRoleAssignment(id, DeleteRoleAssignmentRequest);
|
|
622
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
623
|
+
});
|
|
624
|
+
},
|
|
557
625
|
/**
|
|
558
626
|
* Returns the details of a specific role.
|
|
559
627
|
* @summary Get one role
|
|
@@ -567,6 +635,19 @@ const RolesApiFp = function (configuration) {
|
|
|
567
635
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
568
636
|
});
|
|
569
637
|
},
|
|
638
|
+
/**
|
|
639
|
+
* Same as `getRole`, but resolves with the response body together with the HTTP status and headers.
|
|
640
|
+
* @summary Get one role
|
|
641
|
+
* @param {number} id The ID of the role
|
|
642
|
+
|
|
643
|
+
* @throws {RequiredError}
|
|
644
|
+
*/
|
|
645
|
+
getRoleWithHttpInfo(id) {
|
|
646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRole(id);
|
|
648
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
649
|
+
});
|
|
650
|
+
},
|
|
570
651
|
/**
|
|
571
652
|
* Returns all users assigned to a role.
|
|
572
653
|
* @summary List role assignments
|
|
@@ -582,6 +663,21 @@ const RolesApiFp = function (configuration) {
|
|
|
582
663
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
583
664
|
});
|
|
584
665
|
},
|
|
666
|
+
/**
|
|
667
|
+
* Same as `getRoleAssignments`, but resolves with the response body together with the HTTP status and headers.
|
|
668
|
+
* @summary List role assignments
|
|
669
|
+
* @param {number} id The ID of the role
|
|
670
|
+
* @param {number} [start] Pagination start
|
|
671
|
+
* @param {number} [limit] Items shown per page
|
|
672
|
+
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
getRoleAssignmentsWithHttpInfo(id, start, limit) {
|
|
676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
677
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRoleAssignments(id, start, limit);
|
|
678
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
679
|
+
});
|
|
680
|
+
},
|
|
585
681
|
/**
|
|
586
682
|
* Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>.
|
|
587
683
|
* @summary List pipeline visibility for a role
|
|
@@ -596,6 +692,20 @@ const RolesApiFp = function (configuration) {
|
|
|
596
692
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
597
693
|
});
|
|
598
694
|
},
|
|
695
|
+
/**
|
|
696
|
+
* Same as `getRolePipelines`, but resolves with the response body together with the HTTP status and headers.
|
|
697
|
+
* @summary List pipeline visibility for a role
|
|
698
|
+
* @param {number} id The ID of the role
|
|
699
|
+
* @param {boolean} [visible] Whether to return the visible or hidden pipelines for the role
|
|
700
|
+
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
*/
|
|
703
|
+
getRolePipelinesWithHttpInfo(id, visible) {
|
|
704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRolePipelines(id, visible);
|
|
706
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
707
|
+
});
|
|
708
|
+
},
|
|
599
709
|
/**
|
|
600
710
|
* Returns the visibility settings of a specific role.
|
|
601
711
|
* @summary List role settings
|
|
@@ -609,6 +719,19 @@ const RolesApiFp = function (configuration) {
|
|
|
609
719
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
610
720
|
});
|
|
611
721
|
},
|
|
722
|
+
/**
|
|
723
|
+
* Same as `getRoleSettings`, but resolves with the response body together with the HTTP status and headers.
|
|
724
|
+
* @summary List role settings
|
|
725
|
+
* @param {number} id The ID of the role
|
|
726
|
+
|
|
727
|
+
* @throws {RequiredError}
|
|
728
|
+
*/
|
|
729
|
+
getRoleSettingsWithHttpInfo(id) {
|
|
730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
731
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRoleSettings(id);
|
|
732
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
733
|
+
});
|
|
734
|
+
},
|
|
612
735
|
/**
|
|
613
736
|
* Returns all the roles within the company.
|
|
614
737
|
* @summary Get all roles
|
|
@@ -623,6 +746,20 @@ const RolesApiFp = function (configuration) {
|
|
|
623
746
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
624
747
|
});
|
|
625
748
|
},
|
|
749
|
+
/**
|
|
750
|
+
* Same as `getRoles`, but resolves with the response body together with the HTTP status and headers.
|
|
751
|
+
* @summary Get all roles
|
|
752
|
+
* @param {number} [start] Pagination start
|
|
753
|
+
* @param {number} [limit] Items shown per page
|
|
754
|
+
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
getRolesWithHttpInfo(start, limit) {
|
|
758
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
759
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRoles(start, limit);
|
|
760
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
761
|
+
});
|
|
762
|
+
},
|
|
626
763
|
/**
|
|
627
764
|
* Updates the parent role and/or the name of a specific role.
|
|
628
765
|
* @summary Update role details
|
|
@@ -637,6 +774,20 @@ const RolesApiFp = function (configuration) {
|
|
|
637
774
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
638
775
|
});
|
|
639
776
|
},
|
|
777
|
+
/**
|
|
778
|
+
* Same as `updateRole`, but resolves with the response body together with the HTTP status and headers.
|
|
779
|
+
* @summary Update role details
|
|
780
|
+
* @param {number} id The ID of the role
|
|
781
|
+
* @param {BaseRoleRequest} [BaseRoleRequest]
|
|
782
|
+
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
updateRoleWithHttpInfo(id, BaseRoleRequest) {
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRole(id, BaseRoleRequest);
|
|
788
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
789
|
+
});
|
|
790
|
+
},
|
|
640
791
|
/**
|
|
641
792
|
* Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>.
|
|
642
793
|
* @summary Update pipeline visibility for a role
|
|
@@ -651,6 +802,20 @@ const RolesApiFp = function (configuration) {
|
|
|
651
802
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
652
803
|
});
|
|
653
804
|
},
|
|
805
|
+
/**
|
|
806
|
+
* Same as `updateRolePipelines`, but resolves with the response body together with the HTTP status and headers.
|
|
807
|
+
* @summary Update pipeline visibility for a role
|
|
808
|
+
* @param {number} id The ID of the role
|
|
809
|
+
* @param {PutRolePipelinesBody} [PutRolePipelinesBody]
|
|
810
|
+
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
*/
|
|
813
|
+
updateRolePipelinesWithHttpInfo(id, PutRolePipelinesBody) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRolePipelines(id, PutRolePipelinesBody);
|
|
816
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration, true);
|
|
817
|
+
});
|
|
818
|
+
},
|
|
654
819
|
};
|
|
655
820
|
};
|
|
656
821
|
exports.RolesApiFp = RolesApiFp;
|
|
@@ -671,6 +836,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
671
836
|
addOrUpdateRoleSetting(requestParameters) {
|
|
672
837
|
return localVarFp.addOrUpdateRoleSetting(requestParameters.id, requestParameters.AddOrUpdateRoleSettingRequest).then((request) => request(axios, basePath));
|
|
673
838
|
},
|
|
839
|
+
addOrUpdateRoleSettingWithHttpInfo(requestParameters) {
|
|
840
|
+
return localVarFp.addOrUpdateRoleSettingWithHttpInfo(requestParameters.id, requestParameters.AddOrUpdateRoleSettingRequest).then((request) => request(axios, basePath));
|
|
841
|
+
},
|
|
674
842
|
/**
|
|
675
843
|
* Adds a new role.
|
|
676
844
|
* @summary Add a role
|
|
@@ -681,6 +849,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
681
849
|
addRole(requestParameters = {}) {
|
|
682
850
|
return localVarFp.addRole(requestParameters.AddRoleRequest).then((request) => request(axios, basePath));
|
|
683
851
|
},
|
|
852
|
+
addRoleWithHttpInfo(requestParameters = {}) {
|
|
853
|
+
return localVarFp.addRoleWithHttpInfo(requestParameters.AddRoleRequest).then((request) => request(axios, basePath));
|
|
854
|
+
},
|
|
684
855
|
/**
|
|
685
856
|
* Assigns a user to a role.
|
|
686
857
|
* @summary Add role assignment
|
|
@@ -691,6 +862,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
691
862
|
addRoleAssignment(requestParameters) {
|
|
692
863
|
return localVarFp.addRoleAssignment(requestParameters.id, requestParameters.AddRoleAssignmentRequest).then((request) => request(axios, basePath));
|
|
693
864
|
},
|
|
865
|
+
addRoleAssignmentWithHttpInfo(requestParameters) {
|
|
866
|
+
return localVarFp.addRoleAssignmentWithHttpInfo(requestParameters.id, requestParameters.AddRoleAssignmentRequest).then((request) => request(axios, basePath));
|
|
867
|
+
},
|
|
694
868
|
/**
|
|
695
869
|
* Marks a role as deleted.
|
|
696
870
|
* @summary Delete a role
|
|
@@ -701,6 +875,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
701
875
|
deleteRole(requestParameters) {
|
|
702
876
|
return localVarFp.deleteRole(requestParameters.id).then((request) => request(axios, basePath));
|
|
703
877
|
},
|
|
878
|
+
deleteRoleWithHttpInfo(requestParameters) {
|
|
879
|
+
return localVarFp.deleteRoleWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
880
|
+
},
|
|
704
881
|
/**
|
|
705
882
|
* Removes the assigned user from a role and adds to the default role.
|
|
706
883
|
* @summary Delete a role assignment
|
|
@@ -711,6 +888,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
711
888
|
deleteRoleAssignment(requestParameters) {
|
|
712
889
|
return localVarFp.deleteRoleAssignment(requestParameters.id, requestParameters.DeleteRoleAssignmentRequest).then((request) => request(axios, basePath));
|
|
713
890
|
},
|
|
891
|
+
deleteRoleAssignmentWithHttpInfo(requestParameters) {
|
|
892
|
+
return localVarFp.deleteRoleAssignmentWithHttpInfo(requestParameters.id, requestParameters.DeleteRoleAssignmentRequest).then((request) => request(axios, basePath));
|
|
893
|
+
},
|
|
714
894
|
/**
|
|
715
895
|
* Returns the details of a specific role.
|
|
716
896
|
* @summary Get one role
|
|
@@ -721,6 +901,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
721
901
|
getRole(requestParameters) {
|
|
722
902
|
return localVarFp.getRole(requestParameters.id).then((request) => request(axios, basePath));
|
|
723
903
|
},
|
|
904
|
+
getRoleWithHttpInfo(requestParameters) {
|
|
905
|
+
return localVarFp.getRoleWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
906
|
+
},
|
|
724
907
|
/**
|
|
725
908
|
* Returns all users assigned to a role.
|
|
726
909
|
* @summary List role assignments
|
|
@@ -731,6 +914,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
731
914
|
getRoleAssignments(requestParameters) {
|
|
732
915
|
return localVarFp.getRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
|
|
733
916
|
},
|
|
917
|
+
getRoleAssignmentsWithHttpInfo(requestParameters) {
|
|
918
|
+
return localVarFp.getRoleAssignmentsWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
|
|
919
|
+
},
|
|
734
920
|
/**
|
|
735
921
|
* Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>.
|
|
736
922
|
* @summary List pipeline visibility for a role
|
|
@@ -741,6 +927,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
741
927
|
getRolePipelines(requestParameters) {
|
|
742
928
|
return localVarFp.getRolePipelines(requestParameters.id, requestParameters.visible).then((request) => request(axios, basePath));
|
|
743
929
|
},
|
|
930
|
+
getRolePipelinesWithHttpInfo(requestParameters) {
|
|
931
|
+
return localVarFp.getRolePipelinesWithHttpInfo(requestParameters.id, requestParameters.visible).then((request) => request(axios, basePath));
|
|
932
|
+
},
|
|
744
933
|
/**
|
|
745
934
|
* Returns the visibility settings of a specific role.
|
|
746
935
|
* @summary List role settings
|
|
@@ -751,6 +940,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
751
940
|
getRoleSettings(requestParameters) {
|
|
752
941
|
return localVarFp.getRoleSettings(requestParameters.id).then((request) => request(axios, basePath));
|
|
753
942
|
},
|
|
943
|
+
getRoleSettingsWithHttpInfo(requestParameters) {
|
|
944
|
+
return localVarFp.getRoleSettingsWithHttpInfo(requestParameters.id).then((request) => request(axios, basePath));
|
|
945
|
+
},
|
|
754
946
|
/**
|
|
755
947
|
* Returns all the roles within the company.
|
|
756
948
|
* @summary Get all roles
|
|
@@ -761,6 +953,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
761
953
|
getRoles(requestParameters = {}) {
|
|
762
954
|
return localVarFp.getRoles(requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
|
|
763
955
|
},
|
|
956
|
+
getRolesWithHttpInfo(requestParameters = {}) {
|
|
957
|
+
return localVarFp.getRolesWithHttpInfo(requestParameters.start, requestParameters.limit).then((request) => request(axios, basePath));
|
|
958
|
+
},
|
|
764
959
|
/**
|
|
765
960
|
* Updates the parent role and/or the name of a specific role.
|
|
766
961
|
* @summary Update role details
|
|
@@ -771,6 +966,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
771
966
|
updateRole(requestParameters) {
|
|
772
967
|
return localVarFp.updateRole(requestParameters.id, requestParameters.BaseRoleRequest).then((request) => request(axios, basePath));
|
|
773
968
|
},
|
|
969
|
+
updateRoleWithHttpInfo(requestParameters) {
|
|
970
|
+
return localVarFp.updateRoleWithHttpInfo(requestParameters.id, requestParameters.BaseRoleRequest).then((request) => request(axios, basePath));
|
|
971
|
+
},
|
|
774
972
|
/**
|
|
775
973
|
* Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>.
|
|
776
974
|
* @summary Update pipeline visibility for a role
|
|
@@ -781,6 +979,9 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
781
979
|
updateRolePipelines(requestParameters) {
|
|
782
980
|
return localVarFp.updateRolePipelines(requestParameters.id, requestParameters.PutRolePipelinesBody).then((request) => request(axios, basePath));
|
|
783
981
|
},
|
|
982
|
+
updateRolePipelinesWithHttpInfo(requestParameters) {
|
|
983
|
+
return localVarFp.updateRolePipelinesWithHttpInfo(requestParameters.id, requestParameters.PutRolePipelinesBody).then((request) => request(axios, basePath));
|
|
984
|
+
},
|
|
784
985
|
};
|
|
785
986
|
};
|
|
786
987
|
exports.RolesApiFactory = RolesApiFactory;
|
|
@@ -802,6 +1003,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
802
1003
|
addOrUpdateRoleSetting(requestParameters) {
|
|
803
1004
|
return (0, exports.RolesApiFp)(this.configuration).addOrUpdateRoleSetting(requestParameters.id, requestParameters.AddOrUpdateRoleSettingRequest).then((request) => request(this.axios, this.basePath));
|
|
804
1005
|
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Same as `addOrUpdateRoleSetting`, but resolves with the response body together with the HTTP status and headers.
|
|
1008
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1009
|
+
* @param {RolesApiAddOrUpdateRoleSettingRequest} requestParameters Request parameters.
|
|
1010
|
+
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
* @memberof RolesApi
|
|
1013
|
+
*/
|
|
1014
|
+
addOrUpdateRoleSettingWithHttpInfo(requestParameters) {
|
|
1015
|
+
return (0, exports.RolesApiFp)(this.configuration).addOrUpdateRoleSettingWithHttpInfo(requestParameters.id, requestParameters.AddOrUpdateRoleSettingRequest).then((request) => request(this.axios, this.basePath));
|
|
1016
|
+
}
|
|
805
1017
|
/**
|
|
806
1018
|
* Adds a new role.
|
|
807
1019
|
* @summary Add a role
|
|
@@ -813,6 +1025,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
813
1025
|
addRole(requestParameters = {}) {
|
|
814
1026
|
return (0, exports.RolesApiFp)(this.configuration).addRole(requestParameters.AddRoleRequest).then((request) => request(this.axios, this.basePath));
|
|
815
1027
|
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Same as `addRole`, but resolves with the response body together with the HTTP status and headers.
|
|
1030
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1031
|
+
* @param {RolesApiAddRoleRequest} requestParameters Request parameters.
|
|
1032
|
+
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
* @memberof RolesApi
|
|
1035
|
+
*/
|
|
1036
|
+
addRoleWithHttpInfo(requestParameters = {}) {
|
|
1037
|
+
return (0, exports.RolesApiFp)(this.configuration).addRoleWithHttpInfo(requestParameters.AddRoleRequest).then((request) => request(this.axios, this.basePath));
|
|
1038
|
+
}
|
|
816
1039
|
/**
|
|
817
1040
|
* Assigns a user to a role.
|
|
818
1041
|
* @summary Add role assignment
|
|
@@ -824,6 +1047,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
824
1047
|
addRoleAssignment(requestParameters) {
|
|
825
1048
|
return (0, exports.RolesApiFp)(this.configuration).addRoleAssignment(requestParameters.id, requestParameters.AddRoleAssignmentRequest).then((request) => request(this.axios, this.basePath));
|
|
826
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Same as `addRoleAssignment`, but resolves with the response body together with the HTTP status and headers.
|
|
1052
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1053
|
+
* @param {RolesApiAddRoleAssignmentRequest} requestParameters Request parameters.
|
|
1054
|
+
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
* @memberof RolesApi
|
|
1057
|
+
*/
|
|
1058
|
+
addRoleAssignmentWithHttpInfo(requestParameters) {
|
|
1059
|
+
return (0, exports.RolesApiFp)(this.configuration).addRoleAssignmentWithHttpInfo(requestParameters.id, requestParameters.AddRoleAssignmentRequest).then((request) => request(this.axios, this.basePath));
|
|
1060
|
+
}
|
|
827
1061
|
/**
|
|
828
1062
|
* Marks a role as deleted.
|
|
829
1063
|
* @summary Delete a role
|
|
@@ -835,6 +1069,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
835
1069
|
deleteRole(requestParameters) {
|
|
836
1070
|
return (0, exports.RolesApiFp)(this.configuration).deleteRole(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
837
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Same as `deleteRole`, but resolves with the response body together with the HTTP status and headers.
|
|
1074
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1075
|
+
* @param {RolesApiDeleteRoleRequest} requestParameters Request parameters.
|
|
1076
|
+
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
* @memberof RolesApi
|
|
1079
|
+
*/
|
|
1080
|
+
deleteRoleWithHttpInfo(requestParameters) {
|
|
1081
|
+
return (0, exports.RolesApiFp)(this.configuration).deleteRoleWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1082
|
+
}
|
|
838
1083
|
/**
|
|
839
1084
|
* Removes the assigned user from a role and adds to the default role.
|
|
840
1085
|
* @summary Delete a role assignment
|
|
@@ -846,6 +1091,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
846
1091
|
deleteRoleAssignment(requestParameters) {
|
|
847
1092
|
return (0, exports.RolesApiFp)(this.configuration).deleteRoleAssignment(requestParameters.id, requestParameters.DeleteRoleAssignmentRequest).then((request) => request(this.axios, this.basePath));
|
|
848
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Same as `deleteRoleAssignment`, but resolves with the response body together with the HTTP status and headers.
|
|
1096
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1097
|
+
* @param {RolesApiDeleteRoleAssignmentRequest} requestParameters Request parameters.
|
|
1098
|
+
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
* @memberof RolesApi
|
|
1101
|
+
*/
|
|
1102
|
+
deleteRoleAssignmentWithHttpInfo(requestParameters) {
|
|
1103
|
+
return (0, exports.RolesApiFp)(this.configuration).deleteRoleAssignmentWithHttpInfo(requestParameters.id, requestParameters.DeleteRoleAssignmentRequest).then((request) => request(this.axios, this.basePath));
|
|
1104
|
+
}
|
|
849
1105
|
/**
|
|
850
1106
|
* Returns the details of a specific role.
|
|
851
1107
|
* @summary Get one role
|
|
@@ -857,6 +1113,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
857
1113
|
getRole(requestParameters) {
|
|
858
1114
|
return (0, exports.RolesApiFp)(this.configuration).getRole(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
859
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Same as `getRole`, but resolves with the response body together with the HTTP status and headers.
|
|
1118
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1119
|
+
* @param {RolesApiGetRoleRequest} requestParameters Request parameters.
|
|
1120
|
+
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof RolesApi
|
|
1123
|
+
*/
|
|
1124
|
+
getRoleWithHttpInfo(requestParameters) {
|
|
1125
|
+
return (0, exports.RolesApiFp)(this.configuration).getRoleWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
860
1127
|
/**
|
|
861
1128
|
* Returns all users assigned to a role.
|
|
862
1129
|
* @summary List role assignments
|
|
@@ -868,6 +1135,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
868
1135
|
getRoleAssignments(requestParameters) {
|
|
869
1136
|
return (0, exports.RolesApiFp)(this.configuration).getRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
870
1137
|
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Same as `getRoleAssignments`, but resolves with the response body together with the HTTP status and headers.
|
|
1140
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1141
|
+
* @param {RolesApiGetRoleAssignmentsRequest} requestParameters Request parameters.
|
|
1142
|
+
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
* @memberof RolesApi
|
|
1145
|
+
*/
|
|
1146
|
+
getRoleAssignmentsWithHttpInfo(requestParameters) {
|
|
1147
|
+
return (0, exports.RolesApiFp)(this.configuration).getRoleAssignmentsWithHttpInfo(requestParameters.id, requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
1148
|
+
}
|
|
871
1149
|
/**
|
|
872
1150
|
* Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>.
|
|
873
1151
|
* @summary List pipeline visibility for a role
|
|
@@ -879,6 +1157,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
879
1157
|
getRolePipelines(requestParameters) {
|
|
880
1158
|
return (0, exports.RolesApiFp)(this.configuration).getRolePipelines(requestParameters.id, requestParameters.visible).then((request) => request(this.axios, this.basePath));
|
|
881
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Same as `getRolePipelines`, but resolves with the response body together with the HTTP status and headers.
|
|
1162
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1163
|
+
* @param {RolesApiGetRolePipelinesRequest} requestParameters Request parameters.
|
|
1164
|
+
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
* @memberof RolesApi
|
|
1167
|
+
*/
|
|
1168
|
+
getRolePipelinesWithHttpInfo(requestParameters) {
|
|
1169
|
+
return (0, exports.RolesApiFp)(this.configuration).getRolePipelinesWithHttpInfo(requestParameters.id, requestParameters.visible).then((request) => request(this.axios, this.basePath));
|
|
1170
|
+
}
|
|
882
1171
|
/**
|
|
883
1172
|
* Returns the visibility settings of a specific role.
|
|
884
1173
|
* @summary List role settings
|
|
@@ -890,6 +1179,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
890
1179
|
getRoleSettings(requestParameters) {
|
|
891
1180
|
return (0, exports.RolesApiFp)(this.configuration).getRoleSettings(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
892
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Same as `getRoleSettings`, but resolves with the response body together with the HTTP status and headers.
|
|
1184
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1185
|
+
* @param {RolesApiGetRoleSettingsRequest} requestParameters Request parameters.
|
|
1186
|
+
|
|
1187
|
+
* @throws {RequiredError}
|
|
1188
|
+
* @memberof RolesApi
|
|
1189
|
+
*/
|
|
1190
|
+
getRoleSettingsWithHttpInfo(requestParameters) {
|
|
1191
|
+
return (0, exports.RolesApiFp)(this.configuration).getRoleSettingsWithHttpInfo(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
|
1192
|
+
}
|
|
893
1193
|
/**
|
|
894
1194
|
* Returns all the roles within the company.
|
|
895
1195
|
* @summary Get all roles
|
|
@@ -901,6 +1201,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
901
1201
|
getRoles(requestParameters = {}) {
|
|
902
1202
|
return (0, exports.RolesApiFp)(this.configuration).getRoles(requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
903
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Same as `getRoles`, but resolves with the response body together with the HTTP status and headers.
|
|
1206
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1207
|
+
* @param {RolesApiGetRolesRequest} requestParameters Request parameters.
|
|
1208
|
+
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
* @memberof RolesApi
|
|
1211
|
+
*/
|
|
1212
|
+
getRolesWithHttpInfo(requestParameters = {}) {
|
|
1213
|
+
return (0, exports.RolesApiFp)(this.configuration).getRolesWithHttpInfo(requestParameters.start, requestParameters.limit).then((request) => request(this.axios, this.basePath));
|
|
1214
|
+
}
|
|
904
1215
|
/**
|
|
905
1216
|
* Updates the parent role and/or the name of a specific role.
|
|
906
1217
|
* @summary Update role details
|
|
@@ -912,6 +1223,17 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
912
1223
|
updateRole(requestParameters) {
|
|
913
1224
|
return (0, exports.RolesApiFp)(this.configuration).updateRole(requestParameters.id, requestParameters.BaseRoleRequest).then((request) => request(this.axios, this.basePath));
|
|
914
1225
|
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Same as `updateRole`, but resolves with the response body together with the HTTP status and headers.
|
|
1228
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1229
|
+
* @param {RolesApiUpdateRoleRequest} requestParameters Request parameters.
|
|
1230
|
+
|
|
1231
|
+
* @throws {RequiredError}
|
|
1232
|
+
* @memberof RolesApi
|
|
1233
|
+
*/
|
|
1234
|
+
updateRoleWithHttpInfo(requestParameters) {
|
|
1235
|
+
return (0, exports.RolesApiFp)(this.configuration).updateRoleWithHttpInfo(requestParameters.id, requestParameters.BaseRoleRequest).then((request) => request(this.axios, this.basePath));
|
|
1236
|
+
}
|
|
915
1237
|
/**
|
|
916
1238
|
* Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>.
|
|
917
1239
|
* @summary Update pipeline visibility for a role
|
|
@@ -923,5 +1245,16 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
923
1245
|
updateRolePipelines(requestParameters) {
|
|
924
1246
|
return (0, exports.RolesApiFp)(this.configuration).updateRolePipelines(requestParameters.id, requestParameters.PutRolePipelinesBody).then((request) => request(this.axios, this.basePath));
|
|
925
1247
|
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Same as `updateRolePipelines`, but resolves with the response body together with the HTTP status and headers.
|
|
1250
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
1251
|
+
* @param {RolesApiUpdateRolePipelinesRequest} requestParameters Request parameters.
|
|
1252
|
+
|
|
1253
|
+
* @throws {RequiredError}
|
|
1254
|
+
* @memberof RolesApi
|
|
1255
|
+
*/
|
|
1256
|
+
updateRolePipelinesWithHttpInfo(requestParameters) {
|
|
1257
|
+
return (0, exports.RolesApiFp)(this.configuration).updateRolePipelinesWithHttpInfo(requestParameters.id, requestParameters.PutRolePipelinesBody).then((request) => request(this.axios, this.basePath));
|
|
1258
|
+
}
|
|
926
1259
|
}
|
|
927
1260
|
exports.RolesApi = RolesApi;
|
|
@@ -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 { GetStageDealsResponse } from '../models';
|
|
16
16
|
/**
|
|
17
17
|
* StagesApi - axios parameter creator
|
|
@@ -50,6 +50,19 @@ export declare const StagesApiFp: (configuration?: Configuration) => {
|
|
|
50
50
|
* @throws {RequiredError}
|
|
51
51
|
*/
|
|
52
52
|
getStageDeals(id: number, filter_id?: number, user_id?: number, everyone?: 0 | 1, start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetStageDealsResponse>>;
|
|
53
|
+
/**
|
|
54
|
+
* Same as `getStageDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
55
|
+
* @summary Get deals in a stage
|
|
56
|
+
* @param {number} id The ID of the stage
|
|
57
|
+
* @param {number} [filter_id] If supplied, only deals matching the given filter will be returned
|
|
58
|
+
* @param {number} [user_id] If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned.
|
|
59
|
+
* @param {0 | 1} [everyone] If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned
|
|
60
|
+
* @param {number} [start] Pagination start
|
|
61
|
+
* @param {number} [limit] Items shown per page
|
|
62
|
+
* @deprecated
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
getStageDealsWithHttpInfo(id: number, filter_id?: number, user_id?: number, everyone?: 0 | 1, start?: number, limit?: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<ApiResponse<GetStageDealsResponse>>>;
|
|
53
66
|
};
|
|
54
67
|
/**
|
|
55
68
|
* StagesApi - factory interface
|
|
@@ -64,6 +77,7 @@ export declare const StagesApiFactory: (configuration?: Configuration, basePath?
|
|
|
64
77
|
* @throws {RequiredError}
|
|
65
78
|
*/
|
|
66
79
|
getStageDeals(requestParameters: StagesApiGetStageDealsRequest): Promise<GetStageDealsResponse>;
|
|
80
|
+
getStageDealsWithHttpInfo(requestParameters: StagesApiGetStageDealsRequest): Promise<ApiResponse<GetStageDealsResponse>>;
|
|
67
81
|
};
|
|
68
82
|
/**
|
|
69
83
|
* Request parameters for getStageDeals operation in StagesApi.
|
|
@@ -124,4 +138,13 @@ export declare class StagesApi extends BaseAPI {
|
|
|
124
138
|
* @memberof StagesApi
|
|
125
139
|
*/
|
|
126
140
|
getStageDeals(requestParameters: StagesApiGetStageDealsRequest): Promise<GetStageDealsResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* Same as `getStageDeals`, but resolves with the response body together with the HTTP status and headers.
|
|
143
|
+
* Error rejections keep their usual shape and additionally carry `$response: { status, headers }`.
|
|
144
|
+
* @param {StagesApiGetStageDealsRequest} requestParameters Request parameters.
|
|
145
|
+
* @deprecated
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
* @memberof StagesApi
|
|
148
|
+
*/
|
|
149
|
+
getStageDealsWithHttpInfo(requestParameters: StagesApiGetStageDealsRequest): Promise<ApiResponse<GetStageDealsResponse>>;
|
|
127
150
|
}
|