sailpoint-api-client 1.0.1

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.
Files changed (123) hide show
  1. package/beta/.openapi-generator/FILES +11 -0
  2. package/beta/.openapi-generator/VERSION +1 -0
  3. package/beta/.openapi-generator-ignore +23 -0
  4. package/beta/README.md +45 -0
  5. package/beta/api.ts +63833 -0
  6. package/beta/base.ts +71 -0
  7. package/beta/common.ts +141 -0
  8. package/beta/configuration.ts +101 -0
  9. package/beta/git_push.sh +57 -0
  10. package/beta/index.ts +17 -0
  11. package/beta/package.json +35 -0
  12. package/beta/tsconfig.json +21 -0
  13. package/cc/.openapi-generator/FILES +11 -0
  14. package/cc/.openapi-generator/VERSION +1 -0
  15. package/cc/.openapi-generator-ignore +23 -0
  16. package/cc/README.md +45 -0
  17. package/cc/api.ts +2028 -0
  18. package/cc/base.ts +71 -0
  19. package/cc/common.ts +141 -0
  20. package/cc/configuration.ts +101 -0
  21. package/cc/git_push.sh +57 -0
  22. package/cc/index.ts +17 -0
  23. package/cc/package.json +35 -0
  24. package/cc/tsconfig.json +21 -0
  25. package/configuration.ts +217 -0
  26. package/dist/beta/api.d.ts +44076 -0
  27. package/dist/beta/api.js +42294 -0
  28. package/dist/beta/api.js.map +1 -0
  29. package/dist/beta/base.d.ts +55 -0
  30. package/dist/beta/base.js +83 -0
  31. package/dist/beta/base.js.map +1 -0
  32. package/dist/beta/common.d.ts +65 -0
  33. package/dist/beta/common.js +247 -0
  34. package/dist/beta/common.js.map +1 -0
  35. package/dist/beta/configuration.d.ts +83 -0
  36. package/dist/beta/configuration.js +45 -0
  37. package/dist/beta/configuration.js.map +1 -0
  38. package/dist/beta/index.d.ts +12 -0
  39. package/dist/beta/index.js +31 -0
  40. package/dist/beta/index.js.map +1 -0
  41. package/dist/cc/api.d.ts +1163 -0
  42. package/dist/cc/api.js +2047 -0
  43. package/dist/cc/api.js.map +1 -0
  44. package/dist/cc/base.d.ts +55 -0
  45. package/dist/cc/base.js +83 -0
  46. package/dist/cc/base.js.map +1 -0
  47. package/dist/cc/common.d.ts +65 -0
  48. package/dist/cc/common.js +247 -0
  49. package/dist/cc/common.js.map +1 -0
  50. package/dist/cc/configuration.d.ts +83 -0
  51. package/dist/cc/configuration.js +45 -0
  52. package/dist/cc/configuration.js.map +1 -0
  53. package/dist/cc/index.d.ts +12 -0
  54. package/dist/cc/index.js +31 -0
  55. package/dist/cc/index.js.map +1 -0
  56. package/dist/configuration.d.ts +147 -0
  57. package/dist/configuration.js +126 -0
  58. package/dist/configuration.js.map +1 -0
  59. package/dist/index.d.ts +22 -0
  60. package/dist/index.js +47 -0
  61. package/dist/index.js.map +1 -0
  62. package/dist/paginator.d.ts +41 -0
  63. package/dist/paginator.js +126 -0
  64. package/dist/paginator.js.map +1 -0
  65. package/dist/v2/api.d.ts +1359 -0
  66. package/dist/v2/api.js +1239 -0
  67. package/dist/v2/api.js.map +1 -0
  68. package/dist/v2/base.d.ts +55 -0
  69. package/dist/v2/base.js +83 -0
  70. package/dist/v2/base.js.map +1 -0
  71. package/dist/v2/common.d.ts +65 -0
  72. package/dist/v2/common.js +247 -0
  73. package/dist/v2/common.js.map +1 -0
  74. package/dist/v2/configuration.d.ts +83 -0
  75. package/dist/v2/configuration.js +45 -0
  76. package/dist/v2/configuration.js.map +1 -0
  77. package/dist/v2/index.d.ts +12 -0
  78. package/dist/v2/index.js +31 -0
  79. package/dist/v2/index.js.map +1 -0
  80. package/dist/v3/api.d.ts +23657 -0
  81. package/dist/v3/api.js +18302 -0
  82. package/dist/v3/api.js.map +1 -0
  83. package/dist/v3/base.d.ts +55 -0
  84. package/dist/v3/base.js +83 -0
  85. package/dist/v3/base.js.map +1 -0
  86. package/dist/v3/common.d.ts +65 -0
  87. package/dist/v3/common.js +247 -0
  88. package/dist/v3/common.js.map +1 -0
  89. package/dist/v3/configuration.d.ts +83 -0
  90. package/dist/v3/configuration.js +45 -0
  91. package/dist/v3/configuration.js.map +1 -0
  92. package/dist/v3/index.d.ts +12 -0
  93. package/dist/v3/index.js +31 -0
  94. package/dist/v3/index.js.map +1 -0
  95. package/index.ts +33 -0
  96. package/package.json +39 -0
  97. package/paginator.ts +99 -0
  98. package/readme.md +53 -0
  99. package/tsconfig.json +22 -0
  100. package/v2/.openapi-generator/FILES +11 -0
  101. package/v2/.openapi-generator/VERSION +1 -0
  102. package/v2/.openapi-generator-ignore +23 -0
  103. package/v2/README.md +45 -0
  104. package/v2/api.ts +1900 -0
  105. package/v2/base.ts +71 -0
  106. package/v2/common.ts +141 -0
  107. package/v2/configuration.ts +101 -0
  108. package/v2/git_push.sh +57 -0
  109. package/v2/index.ts +17 -0
  110. package/v2/package.json +35 -0
  111. package/v2/tsconfig.json +21 -0
  112. package/v3/.openapi-generator/FILES +11 -0
  113. package/v3/.openapi-generator/VERSION +1 -0
  114. package/v3/.openapi-generator-ignore +23 -0
  115. package/v3/README.md +45 -0
  116. package/v3/api.ts +32081 -0
  117. package/v3/base.ts +71 -0
  118. package/v3/common.ts +141 -0
  119. package/v3/configuration.ts +101 -0
  120. package/v3/git_push.sh +57 -0
  121. package/v3/index.ts +17 -0
  122. package/v3/package.json +35 -0
  123. package/v3/tsconfig.json +21 -0
package/dist/v2/api.js ADDED
@@ -0,0 +1,1239 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SailPoint SaaS API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (_) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ Object.defineProperty(exports, "__esModule", { value: true });
78
+ exports.OrgV2Api = exports.OrgV2ApiFactory = exports.OrgV2ApiFp = exports.OrgV2ApiAxiosParamCreator = exports.GovernanceGroupsV2Api = exports.GovernanceGroupsV2ApiFactory = exports.GovernanceGroupsV2ApiFp = exports.GovernanceGroupsV2ApiAxiosParamCreator = exports.UpdateOrgSettingsRequestV2PasswordReplayStateEnum = exports.GetOrgSettings200ResponseV2PasswordReplayStateEnum = exports.GetOrgSettings200ResponseV2StatusEnum = exports.GetOrgSettings200ResponseSystemNotificationConfigV2RecipientTypeEnum = void 0;
79
+ var axios_1 = require("axios");
80
+ // Some imports not used depending on template conditions
81
+ // @ts-ignore
82
+ var common_1 = require("./common");
83
+ // @ts-ignore
84
+ var base_1 = require("./base");
85
+ exports.GetOrgSettings200ResponseSystemNotificationConfigV2RecipientTypeEnum = {
86
+ AllAdmins: 'allAdmins',
87
+ SpecificIdentities: 'specificIdentities'
88
+ };
89
+ exports.GetOrgSettings200ResponseV2StatusEnum = {
90
+ Inactive: 'inactive',
91
+ Active: 'active',
92
+ Demo: 'demo',
93
+ Test: 'test'
94
+ };
95
+ exports.GetOrgSettings200ResponseV2PasswordReplayStateEnum = {
96
+ Enabled: 'enabled',
97
+ Passive: 'passive',
98
+ Disabled: 'disabled'
99
+ };
100
+ exports.UpdateOrgSettingsRequestV2PasswordReplayStateEnum = {
101
+ Enabled: 'enabled',
102
+ Passive: 'passive',
103
+ Disabled: 'disabled'
104
+ };
105
+ /**
106
+ * GovernanceGroupsV2Api - axios parameter creator
107
+ * @export
108
+ */
109
+ var GovernanceGroupsV2ApiAxiosParamCreator = function (configuration) {
110
+ var _this = this;
111
+ return {
112
+ /**
113
+ * This API allows you to bulk-delete work groups
114
+ * @summary Bulk delete work groups
115
+ * @param {BulkDeleteWorkGroupsRequestV2} bulkDeleteWorkGroupsRequestV2 Work group ids to delete
116
+ * @param {*} [axiosOptions] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ bulkDeleteWorkGroups: function (bulkDeleteWorkGroupsRequestV2, axiosOptions) {
120
+ if (axiosOptions === void 0) { axiosOptions = {}; }
121
+ return __awaiter(_this, void 0, void 0, function () {
122
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
123
+ return __generator(this, function (_a) {
124
+ switch (_a.label) {
125
+ case 0:
126
+ // verify required parameter 'bulkDeleteWorkGroupsRequestV2' is not null or undefined
127
+ (0, common_1.assertParamExists)('bulkDeleteWorkGroups', 'bulkDeleteWorkGroupsRequestV2', bulkDeleteWorkGroupsRequestV2);
128
+ localVarPath = "/workgroups/bulk-delete";
129
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
+ if (configuration) {
131
+ baseOptions = configuration.baseOptions;
132
+ }
133
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
134
+ localVarHeaderParameter = {};
135
+ localVarQueryParameter = {};
136
+ // authentication oauth2 required
137
+ // oauth required
138
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
139
+ // authentication oauth2 required
140
+ // oauth required
141
+ ];
142
+ case 1:
143
+ // authentication oauth2 required
144
+ // oauth required
145
+ _a.sent();
146
+ // authentication oauth2 required
147
+ // oauth required
148
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
149
+ case 2:
150
+ // authentication oauth2 required
151
+ // oauth required
152
+ _a.sent();
153
+ localVarHeaderParameter['Content-Type'] = 'application/json';
154
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
155
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
157
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkDeleteWorkGroupsRequestV2, localVarRequestOptions, configuration);
158
+ return [2 /*return*/, {
159
+ url: (0, common_1.toPathString)(localVarUrlObj),
160
+ axiosOptions: localVarRequestOptions,
161
+ }];
162
+ }
163
+ });
164
+ });
165
+ },
166
+ /**
167
+ * This API allows you to create a work group
168
+ * @summary Create Work Group
169
+ * @param {CreateWorkgroupRequestV2} createWorkgroupRequestV2 Work group to create.
170
+ * @param {*} [axiosOptions] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ createWorkgroup: function (createWorkgroupRequestV2, axiosOptions) {
174
+ if (axiosOptions === void 0) { axiosOptions = {}; }
175
+ return __awaiter(_this, void 0, void 0, function () {
176
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
177
+ return __generator(this, function (_a) {
178
+ switch (_a.label) {
179
+ case 0:
180
+ // verify required parameter 'createWorkgroupRequestV2' is not null or undefined
181
+ (0, common_1.assertParamExists)('createWorkgroup', 'createWorkgroupRequestV2', createWorkgroupRequestV2);
182
+ localVarPath = "/workgroups";
183
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
184
+ if (configuration) {
185
+ baseOptions = configuration.baseOptions;
186
+ }
187
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
188
+ localVarHeaderParameter = {};
189
+ localVarQueryParameter = {};
190
+ // authentication oauth2 required
191
+ // oauth required
192
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
193
+ // authentication oauth2 required
194
+ // oauth required
195
+ ];
196
+ case 1:
197
+ // authentication oauth2 required
198
+ // oauth required
199
+ _a.sent();
200
+ // authentication oauth2 required
201
+ // oauth required
202
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
203
+ case 2:
204
+ // authentication oauth2 required
205
+ // oauth required
206
+ _a.sent();
207
+ localVarHeaderParameter['Content-Type'] = 'application/json';
208
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
209
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
210
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
211
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkgroupRequestV2, localVarRequestOptions, configuration);
212
+ return [2 /*return*/, {
213
+ url: (0, common_1.toPathString)(localVarUrlObj),
214
+ axiosOptions: localVarRequestOptions,
215
+ }];
216
+ }
217
+ });
218
+ });
219
+ },
220
+ /**
221
+ * This API deletes a single workgroup based on the ID
222
+ * @summary Delete Work Group By Id
223
+ * @param {string} workgroupId The workgroup ID
224
+ * @param {*} [axiosOptions] Override http request option.
225
+ * @throws {RequiredError}
226
+ */
227
+ deleteWorkgroup: function (workgroupId, axiosOptions) {
228
+ if (axiosOptions === void 0) { axiosOptions = {}; }
229
+ return __awaiter(_this, void 0, void 0, function () {
230
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
231
+ return __generator(this, function (_a) {
232
+ switch (_a.label) {
233
+ case 0:
234
+ // verify required parameter 'workgroupId' is not null or undefined
235
+ (0, common_1.assertParamExists)('deleteWorkgroup', 'workgroupId', workgroupId);
236
+ localVarPath = "/workgroups/{workgroupId}"
237
+ .replace("{".concat("workgroupId", "}"), encodeURIComponent(String(workgroupId)));
238
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
239
+ if (configuration) {
240
+ baseOptions = configuration.baseOptions;
241
+ }
242
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
243
+ localVarHeaderParameter = {};
244
+ localVarQueryParameter = {};
245
+ // authentication oauth2 required
246
+ // oauth required
247
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
248
+ // authentication oauth2 required
249
+ // oauth required
250
+ ];
251
+ case 1:
252
+ // authentication oauth2 required
253
+ // oauth required
254
+ _a.sent();
255
+ // authentication oauth2 required
256
+ // oauth required
257
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
258
+ case 2:
259
+ // authentication oauth2 required
260
+ // oauth required
261
+ _a.sent();
262
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
263
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
265
+ return [2 /*return*/, {
266
+ url: (0, common_1.toPathString)(localVarUrlObj),
267
+ axiosOptions: localVarRequestOptions,
268
+ }];
269
+ }
270
+ });
271
+ });
272
+ },
273
+ /**
274
+ * This API returns the details for a single workgroup based on the ID
275
+ * @summary Get Work Group By Id
276
+ * @param {string} workgroupId The workgroup ID
277
+ * @param {*} [axiosOptions] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ getWorkgroup: function (workgroupId, axiosOptions) {
281
+ if (axiosOptions === void 0) { axiosOptions = {}; }
282
+ return __awaiter(_this, void 0, void 0, function () {
283
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
284
+ return __generator(this, function (_a) {
285
+ switch (_a.label) {
286
+ case 0:
287
+ // verify required parameter 'workgroupId' is not null or undefined
288
+ (0, common_1.assertParamExists)('getWorkgroup', 'workgroupId', workgroupId);
289
+ localVarPath = "/workgroups/{workgroupId}"
290
+ .replace("{".concat("workgroupId", "}"), encodeURIComponent(String(workgroupId)));
291
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
292
+ if (configuration) {
293
+ baseOptions = configuration.baseOptions;
294
+ }
295
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
296
+ localVarHeaderParameter = {};
297
+ localVarQueryParameter = {};
298
+ // authentication oauth2 required
299
+ // oauth required
300
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
301
+ // authentication oauth2 required
302
+ // oauth required
303
+ ];
304
+ case 1:
305
+ // authentication oauth2 required
306
+ // oauth required
307
+ _a.sent();
308
+ // authentication oauth2 required
309
+ // oauth required
310
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
311
+ case 2:
312
+ // authentication oauth2 required
313
+ // oauth required
314
+ _a.sent();
315
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
316
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
318
+ return [2 /*return*/, {
319
+ url: (0, common_1.toPathString)(localVarUrlObj),
320
+ axiosOptions: localVarRequestOptions,
321
+ }];
322
+ }
323
+ });
324
+ });
325
+ },
326
+ /**
327
+ * This API returns the connections of a work group
328
+ * @summary List Work Group Connections
329
+ * @param {string} workgroupId The workgroup ID
330
+ * @param {*} [axiosOptions] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ listWorkgroupConnections: function (workgroupId, axiosOptions) {
334
+ if (axiosOptions === void 0) { axiosOptions = {}; }
335
+ return __awaiter(_this, void 0, void 0, function () {
336
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
+ return __generator(this, function (_a) {
338
+ switch (_a.label) {
339
+ case 0:
340
+ // verify required parameter 'workgroupId' is not null or undefined
341
+ (0, common_1.assertParamExists)('listWorkgroupConnections', 'workgroupId', workgroupId);
342
+ localVarPath = "/workgroups/{workgroupId}/connections"
343
+ .replace("{".concat("workgroupId", "}"), encodeURIComponent(String(workgroupId)));
344
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
345
+ if (configuration) {
346
+ baseOptions = configuration.baseOptions;
347
+ }
348
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
349
+ localVarHeaderParameter = {};
350
+ localVarQueryParameter = {};
351
+ // authentication oauth2 required
352
+ // oauth required
353
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
354
+ // authentication oauth2 required
355
+ // oauth required
356
+ ];
357
+ case 1:
358
+ // authentication oauth2 required
359
+ // oauth required
360
+ _a.sent();
361
+ // authentication oauth2 required
362
+ // oauth required
363
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
364
+ case 2:
365
+ // authentication oauth2 required
366
+ // oauth required
367
+ _a.sent();
368
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
369
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
371
+ return [2 /*return*/, {
372
+ url: (0, common_1.toPathString)(localVarUrlObj),
373
+ axiosOptions: localVarRequestOptions,
374
+ }];
375
+ }
376
+ });
377
+ });
378
+ },
379
+ /**
380
+ * This API returns the members of a work group
381
+ * @summary List Work Group Members
382
+ * @param {string} workgroupId The workgroup ID
383
+ * @param {number} [limit] Max number of results to return
384
+ * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
385
+ * @param {string} [filters] Filter results using the following syntax. [{property:name, value: \&quot;Tyler\&quot;, operation: EQ}]
386
+ * @param {*} [axiosOptions] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ listWorkgroupMembers: function (workgroupId, limit, offset, filters, axiosOptions) {
390
+ if (axiosOptions === void 0) { axiosOptions = {}; }
391
+ return __awaiter(_this, void 0, void 0, function () {
392
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
393
+ return __generator(this, function (_a) {
394
+ switch (_a.label) {
395
+ case 0:
396
+ // verify required parameter 'workgroupId' is not null or undefined
397
+ (0, common_1.assertParamExists)('listWorkgroupMembers', 'workgroupId', workgroupId);
398
+ localVarPath = "/workgroups/{workgroupId}/members"
399
+ .replace("{".concat("workgroupId", "}"), encodeURIComponent(String(workgroupId)));
400
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
401
+ if (configuration) {
402
+ baseOptions = configuration.baseOptions;
403
+ }
404
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
405
+ localVarHeaderParameter = {};
406
+ localVarQueryParameter = {};
407
+ // authentication oauth2 required
408
+ // oauth required
409
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
410
+ // authentication oauth2 required
411
+ // oauth required
412
+ ];
413
+ case 1:
414
+ // authentication oauth2 required
415
+ // oauth required
416
+ _a.sent();
417
+ // authentication oauth2 required
418
+ // oauth required
419
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
420
+ case 2:
421
+ // authentication oauth2 required
422
+ // oauth required
423
+ _a.sent();
424
+ if (limit !== undefined) {
425
+ localVarQueryParameter['limit'] = limit;
426
+ }
427
+ if (offset !== undefined) {
428
+ localVarQueryParameter['offset'] = offset;
429
+ }
430
+ if (filters !== undefined) {
431
+ localVarQueryParameter['filters'] = filters;
432
+ }
433
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
434
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
436
+ return [2 /*return*/, {
437
+ url: (0, common_1.toPathString)(localVarUrlObj),
438
+ axiosOptions: localVarRequestOptions,
439
+ }];
440
+ }
441
+ });
442
+ });
443
+ },
444
+ /**
445
+ * This API returns a list of work groups
446
+ * @summary List Work Groups
447
+ * @param {number} [limit] Max number of results to return
448
+ * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
449
+ * @param {string} [filters] Filter results using the following syntax. [{property:name, value: \&quot;Tyler\&quot;, operation: EQ}]
450
+ * @param {*} [axiosOptions] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ listWorkgroups: function (limit, offset, filters, axiosOptions) {
454
+ if (axiosOptions === void 0) { axiosOptions = {}; }
455
+ return __awaiter(_this, void 0, void 0, function () {
456
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
457
+ return __generator(this, function (_a) {
458
+ switch (_a.label) {
459
+ case 0:
460
+ localVarPath = "/workgroups";
461
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
462
+ if (configuration) {
463
+ baseOptions = configuration.baseOptions;
464
+ }
465
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
466
+ localVarHeaderParameter = {};
467
+ localVarQueryParameter = {};
468
+ // authentication oauth2 required
469
+ // oauth required
470
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
471
+ // authentication oauth2 required
472
+ // oauth required
473
+ ];
474
+ case 1:
475
+ // authentication oauth2 required
476
+ // oauth required
477
+ _a.sent();
478
+ // authentication oauth2 required
479
+ // oauth required
480
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
481
+ case 2:
482
+ // authentication oauth2 required
483
+ // oauth required
484
+ _a.sent();
485
+ if (limit !== undefined) {
486
+ localVarQueryParameter['limit'] = limit;
487
+ }
488
+ if (offset !== undefined) {
489
+ localVarQueryParameter['offset'] = offset;
490
+ }
491
+ if (filters !== undefined) {
492
+ localVarQueryParameter['filters'] = filters;
493
+ }
494
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
495
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
497
+ return [2 /*return*/, {
498
+ url: (0, common_1.toPathString)(localVarUrlObj),
499
+ axiosOptions: localVarRequestOptions,
500
+ }];
501
+ }
502
+ });
503
+ });
504
+ },
505
+ /**
506
+ * This API allows you to modify the members of a work group
507
+ * @summary Modify Work Group Members
508
+ * @param {string} workgroupId The workgroup ID
509
+ * @param {ModifyWorkgroupMembersRequestV2} modifyWorkgroupMembersRequestV2 Add/Remove workgroup member ids.
510
+ * @param {*} [axiosOptions] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ modifyWorkgroupMembers: function (workgroupId, modifyWorkgroupMembersRequestV2, axiosOptions) {
514
+ if (axiosOptions === void 0) { axiosOptions = {}; }
515
+ return __awaiter(_this, void 0, void 0, function () {
516
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
517
+ return __generator(this, function (_a) {
518
+ switch (_a.label) {
519
+ case 0:
520
+ // verify required parameter 'workgroupId' is not null or undefined
521
+ (0, common_1.assertParamExists)('modifyWorkgroupMembers', 'workgroupId', workgroupId);
522
+ // verify required parameter 'modifyWorkgroupMembersRequestV2' is not null or undefined
523
+ (0, common_1.assertParamExists)('modifyWorkgroupMembers', 'modifyWorkgroupMembersRequestV2', modifyWorkgroupMembersRequestV2);
524
+ localVarPath = "/workgroups/{workgroupId}/members"
525
+ .replace("{".concat("workgroupId", "}"), encodeURIComponent(String(workgroupId)));
526
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
527
+ if (configuration) {
528
+ baseOptions = configuration.baseOptions;
529
+ }
530
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
531
+ localVarHeaderParameter = {};
532
+ localVarQueryParameter = {};
533
+ // authentication oauth2 required
534
+ // oauth required
535
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
536
+ // authentication oauth2 required
537
+ // oauth required
538
+ ];
539
+ case 1:
540
+ // authentication oauth2 required
541
+ // oauth required
542
+ _a.sent();
543
+ // authentication oauth2 required
544
+ // oauth required
545
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
546
+ case 2:
547
+ // authentication oauth2 required
548
+ // oauth required
549
+ _a.sent();
550
+ localVarHeaderParameter['Content-Type'] = 'application/json';
551
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
552
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
553
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
554
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(modifyWorkgroupMembersRequestV2, localVarRequestOptions, configuration);
555
+ return [2 /*return*/, {
556
+ url: (0, common_1.toPathString)(localVarUrlObj),
557
+ axiosOptions: localVarRequestOptions,
558
+ }];
559
+ }
560
+ });
561
+ });
562
+ },
563
+ /**
564
+ * This API updates and returns the details for a single workgroup based on the ID
565
+ * @summary Update Work Group By Id
566
+ * @param {string} workgroupId The workgroup ID
567
+ * @param {CreateWorkgroupRequestV2} createWorkgroupRequestV2 Work group to modify.
568
+ * @param {*} [axiosOptions] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ updateWorkgroup: function (workgroupId, createWorkgroupRequestV2, axiosOptions) {
572
+ if (axiosOptions === void 0) { axiosOptions = {}; }
573
+ return __awaiter(_this, void 0, void 0, function () {
574
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
575
+ return __generator(this, function (_a) {
576
+ switch (_a.label) {
577
+ case 0:
578
+ // verify required parameter 'workgroupId' is not null or undefined
579
+ (0, common_1.assertParamExists)('updateWorkgroup', 'workgroupId', workgroupId);
580
+ // verify required parameter 'createWorkgroupRequestV2' is not null or undefined
581
+ (0, common_1.assertParamExists)('updateWorkgroup', 'createWorkgroupRequestV2', createWorkgroupRequestV2);
582
+ localVarPath = "/workgroups/{workgroupId}"
583
+ .replace("{".concat("workgroupId", "}"), encodeURIComponent(String(workgroupId)));
584
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
585
+ if (configuration) {
586
+ baseOptions = configuration.baseOptions;
587
+ }
588
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
589
+ localVarHeaderParameter = {};
590
+ localVarQueryParameter = {};
591
+ // authentication oauth2 required
592
+ // oauth required
593
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)
594
+ // authentication oauth2 required
595
+ // oauth required
596
+ ];
597
+ case 1:
598
+ // authentication oauth2 required
599
+ // oauth required
600
+ _a.sent();
601
+ // authentication oauth2 required
602
+ // oauth required
603
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", [], configuration)];
604
+ case 2:
605
+ // authentication oauth2 required
606
+ // oauth required
607
+ _a.sent();
608
+ localVarHeaderParameter['Content-Type'] = 'application/json';
609
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
610
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
611
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
612
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkgroupRequestV2, localVarRequestOptions, configuration);
613
+ return [2 /*return*/, {
614
+ url: (0, common_1.toPathString)(localVarUrlObj),
615
+ axiosOptions: localVarRequestOptions,
616
+ }];
617
+ }
618
+ });
619
+ });
620
+ },
621
+ };
622
+ };
623
+ exports.GovernanceGroupsV2ApiAxiosParamCreator = GovernanceGroupsV2ApiAxiosParamCreator;
624
+ /**
625
+ * GovernanceGroupsV2Api - functional programming interface
626
+ * @export
627
+ */
628
+ var GovernanceGroupsV2ApiFp = function (configuration) {
629
+ var localVarAxiosParamCreator = (0, exports.GovernanceGroupsV2ApiAxiosParamCreator)(configuration);
630
+ return {
631
+ /**
632
+ * This API allows you to bulk-delete work groups
633
+ * @summary Bulk delete work groups
634
+ * @param {BulkDeleteWorkGroupsRequestV2} bulkDeleteWorkGroupsRequestV2 Work group ids to delete
635
+ * @param {*} [axiosOptions] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ bulkDeleteWorkGroups: function (bulkDeleteWorkGroupsRequestV2, axiosOptions) {
639
+ return __awaiter(this, void 0, void 0, function () {
640
+ var localVarAxiosArgs;
641
+ return __generator(this, function (_a) {
642
+ switch (_a.label) {
643
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.bulkDeleteWorkGroups(bulkDeleteWorkGroupsRequestV2, axiosOptions)];
644
+ case 1:
645
+ localVarAxiosArgs = _a.sent();
646
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
647
+ }
648
+ });
649
+ });
650
+ },
651
+ /**
652
+ * This API allows you to create a work group
653
+ * @summary Create Work Group
654
+ * @param {CreateWorkgroupRequestV2} createWorkgroupRequestV2 Work group to create.
655
+ * @param {*} [axiosOptions] Override http request option.
656
+ * @throws {RequiredError}
657
+ */
658
+ createWorkgroup: function (createWorkgroupRequestV2, axiosOptions) {
659
+ return __awaiter(this, void 0, void 0, function () {
660
+ var localVarAxiosArgs;
661
+ return __generator(this, function (_a) {
662
+ switch (_a.label) {
663
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWorkgroup(createWorkgroupRequestV2, axiosOptions)];
664
+ case 1:
665
+ localVarAxiosArgs = _a.sent();
666
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
667
+ }
668
+ });
669
+ });
670
+ },
671
+ /**
672
+ * This API deletes a single workgroup based on the ID
673
+ * @summary Delete Work Group By Id
674
+ * @param {string} workgroupId The workgroup ID
675
+ * @param {*} [axiosOptions] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ deleteWorkgroup: function (workgroupId, axiosOptions) {
679
+ return __awaiter(this, void 0, void 0, function () {
680
+ var localVarAxiosArgs;
681
+ return __generator(this, function (_a) {
682
+ switch (_a.label) {
683
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteWorkgroup(workgroupId, axiosOptions)];
684
+ case 1:
685
+ localVarAxiosArgs = _a.sent();
686
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
687
+ }
688
+ });
689
+ });
690
+ },
691
+ /**
692
+ * This API returns the details for a single workgroup based on the ID
693
+ * @summary Get Work Group By Id
694
+ * @param {string} workgroupId The workgroup ID
695
+ * @param {*} [axiosOptions] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ getWorkgroup: function (workgroupId, axiosOptions) {
699
+ return __awaiter(this, void 0, void 0, function () {
700
+ var localVarAxiosArgs;
701
+ return __generator(this, function (_a) {
702
+ switch (_a.label) {
703
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkgroup(workgroupId, axiosOptions)];
704
+ case 1:
705
+ localVarAxiosArgs = _a.sent();
706
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
707
+ }
708
+ });
709
+ });
710
+ },
711
+ /**
712
+ * This API returns the connections of a work group
713
+ * @summary List Work Group Connections
714
+ * @param {string} workgroupId The workgroup ID
715
+ * @param {*} [axiosOptions] Override http request option.
716
+ * @throws {RequiredError}
717
+ */
718
+ listWorkgroupConnections: function (workgroupId, axiosOptions) {
719
+ return __awaiter(this, void 0, void 0, function () {
720
+ var localVarAxiosArgs;
721
+ return __generator(this, function (_a) {
722
+ switch (_a.label) {
723
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkgroupConnections(workgroupId, axiosOptions)];
724
+ case 1:
725
+ localVarAxiosArgs = _a.sent();
726
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
727
+ }
728
+ });
729
+ });
730
+ },
731
+ /**
732
+ * This API returns the members of a work group
733
+ * @summary List Work Group Members
734
+ * @param {string} workgroupId The workgroup ID
735
+ * @param {number} [limit] Max number of results to return
736
+ * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
737
+ * @param {string} [filters] Filter results using the following syntax. [{property:name, value: \&quot;Tyler\&quot;, operation: EQ}]
738
+ * @param {*} [axiosOptions] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ listWorkgroupMembers: function (workgroupId, limit, offset, filters, axiosOptions) {
742
+ return __awaiter(this, void 0, void 0, function () {
743
+ var localVarAxiosArgs;
744
+ return __generator(this, function (_a) {
745
+ switch (_a.label) {
746
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkgroupMembers(workgroupId, limit, offset, filters, axiosOptions)];
747
+ case 1:
748
+ localVarAxiosArgs = _a.sent();
749
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
750
+ }
751
+ });
752
+ });
753
+ },
754
+ /**
755
+ * This API returns a list of work groups
756
+ * @summary List Work Groups
757
+ * @param {number} [limit] Max number of results to return
758
+ * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
759
+ * @param {string} [filters] Filter results using the following syntax. [{property:name, value: \&quot;Tyler\&quot;, operation: EQ}]
760
+ * @param {*} [axiosOptions] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ listWorkgroups: function (limit, offset, filters, axiosOptions) {
764
+ return __awaiter(this, void 0, void 0, function () {
765
+ var localVarAxiosArgs;
766
+ return __generator(this, function (_a) {
767
+ switch (_a.label) {
768
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkgroups(limit, offset, filters, axiosOptions)];
769
+ case 1:
770
+ localVarAxiosArgs = _a.sent();
771
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
772
+ }
773
+ });
774
+ });
775
+ },
776
+ /**
777
+ * This API allows you to modify the members of a work group
778
+ * @summary Modify Work Group Members
779
+ * @param {string} workgroupId The workgroup ID
780
+ * @param {ModifyWorkgroupMembersRequestV2} modifyWorkgroupMembersRequestV2 Add/Remove workgroup member ids.
781
+ * @param {*} [axiosOptions] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ modifyWorkgroupMembers: function (workgroupId, modifyWorkgroupMembersRequestV2, axiosOptions) {
785
+ return __awaiter(this, void 0, void 0, function () {
786
+ var localVarAxiosArgs;
787
+ return __generator(this, function (_a) {
788
+ switch (_a.label) {
789
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.modifyWorkgroupMembers(workgroupId, modifyWorkgroupMembersRequestV2, axiosOptions)];
790
+ case 1:
791
+ localVarAxiosArgs = _a.sent();
792
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
793
+ }
794
+ });
795
+ });
796
+ },
797
+ /**
798
+ * This API updates and returns the details for a single workgroup based on the ID
799
+ * @summary Update Work Group By Id
800
+ * @param {string} workgroupId The workgroup ID
801
+ * @param {CreateWorkgroupRequestV2} createWorkgroupRequestV2 Work group to modify.
802
+ * @param {*} [axiosOptions] Override http request option.
803
+ * @throws {RequiredError}
804
+ */
805
+ updateWorkgroup: function (workgroupId, createWorkgroupRequestV2, axiosOptions) {
806
+ return __awaiter(this, void 0, void 0, function () {
807
+ var localVarAxiosArgs;
808
+ return __generator(this, function (_a) {
809
+ switch (_a.label) {
810
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateWorkgroup(workgroupId, createWorkgroupRequestV2, axiosOptions)];
811
+ case 1:
812
+ localVarAxiosArgs = _a.sent();
813
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
814
+ }
815
+ });
816
+ });
817
+ },
818
+ };
819
+ };
820
+ exports.GovernanceGroupsV2ApiFp = GovernanceGroupsV2ApiFp;
821
+ /**
822
+ * GovernanceGroupsV2Api - factory interface
823
+ * @export
824
+ */
825
+ var GovernanceGroupsV2ApiFactory = function (configuration, basePath, axios) {
826
+ var localVarFp = (0, exports.GovernanceGroupsV2ApiFp)(configuration);
827
+ return {
828
+ /**
829
+ * This API allows you to bulk-delete work groups
830
+ * @summary Bulk delete work groups
831
+ * @param {BulkDeleteWorkGroupsRequestV2} bulkDeleteWorkGroupsRequestV2 Work group ids to delete
832
+ * @param {*} [axiosOptions] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ bulkDeleteWorkGroups: function (bulkDeleteWorkGroupsRequestV2, axiosOptions) {
836
+ return localVarFp.bulkDeleteWorkGroups(bulkDeleteWorkGroupsRequestV2, axiosOptions).then(function (request) { return request(axios, basePath); });
837
+ },
838
+ /**
839
+ * This API allows you to create a work group
840
+ * @summary Create Work Group
841
+ * @param {CreateWorkgroupRequestV2} createWorkgroupRequestV2 Work group to create.
842
+ * @param {*} [axiosOptions] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ createWorkgroup: function (createWorkgroupRequestV2, axiosOptions) {
846
+ return localVarFp.createWorkgroup(createWorkgroupRequestV2, axiosOptions).then(function (request) { return request(axios, basePath); });
847
+ },
848
+ /**
849
+ * This API deletes a single workgroup based on the ID
850
+ * @summary Delete Work Group By Id
851
+ * @param {string} workgroupId The workgroup ID
852
+ * @param {*} [axiosOptions] Override http request option.
853
+ * @throws {RequiredError}
854
+ */
855
+ deleteWorkgroup: function (workgroupId, axiosOptions) {
856
+ return localVarFp.deleteWorkgroup(workgroupId, axiosOptions).then(function (request) { return request(axios, basePath); });
857
+ },
858
+ /**
859
+ * This API returns the details for a single workgroup based on the ID
860
+ * @summary Get Work Group By Id
861
+ * @param {string} workgroupId The workgroup ID
862
+ * @param {*} [axiosOptions] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ getWorkgroup: function (workgroupId, axiosOptions) {
866
+ return localVarFp.getWorkgroup(workgroupId, axiosOptions).then(function (request) { return request(axios, basePath); });
867
+ },
868
+ /**
869
+ * This API returns the connections of a work group
870
+ * @summary List Work Group Connections
871
+ * @param {string} workgroupId The workgroup ID
872
+ * @param {*} [axiosOptions] Override http request option.
873
+ * @throws {RequiredError}
874
+ */
875
+ listWorkgroupConnections: function (workgroupId, axiosOptions) {
876
+ return localVarFp.listWorkgroupConnections(workgroupId, axiosOptions).then(function (request) { return request(axios, basePath); });
877
+ },
878
+ /**
879
+ * This API returns the members of a work group
880
+ * @summary List Work Group Members
881
+ * @param {string} workgroupId The workgroup ID
882
+ * @param {number} [limit] Max number of results to return
883
+ * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
884
+ * @param {string} [filters] Filter results using the following syntax. [{property:name, value: \&quot;Tyler\&quot;, operation: EQ}]
885
+ * @param {*} [axiosOptions] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ listWorkgroupMembers: function (workgroupId, limit, offset, filters, axiosOptions) {
889
+ return localVarFp.listWorkgroupMembers(workgroupId, limit, offset, filters, axiosOptions).then(function (request) { return request(axios, basePath); });
890
+ },
891
+ /**
892
+ * This API returns a list of work groups
893
+ * @summary List Work Groups
894
+ * @param {number} [limit] Max number of results to return
895
+ * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
896
+ * @param {string} [filters] Filter results using the following syntax. [{property:name, value: \&quot;Tyler\&quot;, operation: EQ}]
897
+ * @param {*} [axiosOptions] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ listWorkgroups: function (limit, offset, filters, axiosOptions) {
901
+ return localVarFp.listWorkgroups(limit, offset, filters, axiosOptions).then(function (request) { return request(axios, basePath); });
902
+ },
903
+ /**
904
+ * This API allows you to modify the members of a work group
905
+ * @summary Modify Work Group Members
906
+ * @param {string} workgroupId The workgroup ID
907
+ * @param {ModifyWorkgroupMembersRequestV2} modifyWorkgroupMembersRequestV2 Add/Remove workgroup member ids.
908
+ * @param {*} [axiosOptions] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ modifyWorkgroupMembers: function (workgroupId, modifyWorkgroupMembersRequestV2, axiosOptions) {
912
+ return localVarFp.modifyWorkgroupMembers(workgroupId, modifyWorkgroupMembersRequestV2, axiosOptions).then(function (request) { return request(axios, basePath); });
913
+ },
914
+ /**
915
+ * This API updates and returns the details for a single workgroup based on the ID
916
+ * @summary Update Work Group By Id
917
+ * @param {string} workgroupId The workgroup ID
918
+ * @param {CreateWorkgroupRequestV2} createWorkgroupRequestV2 Work group to modify.
919
+ * @param {*} [axiosOptions] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ updateWorkgroup: function (workgroupId, createWorkgroupRequestV2, axiosOptions) {
923
+ return localVarFp.updateWorkgroup(workgroupId, createWorkgroupRequestV2, axiosOptions).then(function (request) { return request(axios, basePath); });
924
+ },
925
+ };
926
+ };
927
+ exports.GovernanceGroupsV2ApiFactory = GovernanceGroupsV2ApiFactory;
928
+ /**
929
+ * GovernanceGroupsV2Api - object-oriented interface
930
+ * @export
931
+ * @class GovernanceGroupsV2Api
932
+ * @extends {BaseAPI}
933
+ */
934
+ var GovernanceGroupsV2Api = /** @class */ (function (_super) {
935
+ __extends(GovernanceGroupsV2Api, _super);
936
+ function GovernanceGroupsV2Api() {
937
+ return _super !== null && _super.apply(this, arguments) || this;
938
+ }
939
+ /**
940
+ * This API allows you to bulk-delete work groups
941
+ * @summary Bulk delete work groups
942
+ * @param {GovernanceGroupsV2ApiBulkDeleteWorkGroupsRequest} requestParameters Request parameters.
943
+ * @param {*} [axiosOptions] Override http request option.
944
+ * @throws {RequiredError}
945
+ * @memberof GovernanceGroupsV2Api
946
+ */
947
+ GovernanceGroupsV2Api.prototype.bulkDeleteWorkGroups = function (requestParameters, axiosOptions) {
948
+ var _this = this;
949
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).bulkDeleteWorkGroups(requestParameters.bulkDeleteWorkGroupsRequestV2, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
950
+ };
951
+ /**
952
+ * This API allows you to create a work group
953
+ * @summary Create Work Group
954
+ * @param {GovernanceGroupsV2ApiCreateWorkgroupRequest} requestParameters Request parameters.
955
+ * @param {*} [axiosOptions] Override http request option.
956
+ * @throws {RequiredError}
957
+ * @memberof GovernanceGroupsV2Api
958
+ */
959
+ GovernanceGroupsV2Api.prototype.createWorkgroup = function (requestParameters, axiosOptions) {
960
+ var _this = this;
961
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).createWorkgroup(requestParameters.createWorkgroupRequestV2, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
962
+ };
963
+ /**
964
+ * This API deletes a single workgroup based on the ID
965
+ * @summary Delete Work Group By Id
966
+ * @param {GovernanceGroupsV2ApiDeleteWorkgroupRequest} requestParameters Request parameters.
967
+ * @param {*} [axiosOptions] Override http request option.
968
+ * @throws {RequiredError}
969
+ * @memberof GovernanceGroupsV2Api
970
+ */
971
+ GovernanceGroupsV2Api.prototype.deleteWorkgroup = function (requestParameters, axiosOptions) {
972
+ var _this = this;
973
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).deleteWorkgroup(requestParameters.workgroupId, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
974
+ };
975
+ /**
976
+ * This API returns the details for a single workgroup based on the ID
977
+ * @summary Get Work Group By Id
978
+ * @param {GovernanceGroupsV2ApiGetWorkgroupRequest} requestParameters Request parameters.
979
+ * @param {*} [axiosOptions] Override http request option.
980
+ * @throws {RequiredError}
981
+ * @memberof GovernanceGroupsV2Api
982
+ */
983
+ GovernanceGroupsV2Api.prototype.getWorkgroup = function (requestParameters, axiosOptions) {
984
+ var _this = this;
985
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).getWorkgroup(requestParameters.workgroupId, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
986
+ };
987
+ /**
988
+ * This API returns the connections of a work group
989
+ * @summary List Work Group Connections
990
+ * @param {GovernanceGroupsV2ApiListWorkgroupConnectionsRequest} requestParameters Request parameters.
991
+ * @param {*} [axiosOptions] Override http request option.
992
+ * @throws {RequiredError}
993
+ * @memberof GovernanceGroupsV2Api
994
+ */
995
+ GovernanceGroupsV2Api.prototype.listWorkgroupConnections = function (requestParameters, axiosOptions) {
996
+ var _this = this;
997
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).listWorkgroupConnections(requestParameters.workgroupId, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
998
+ };
999
+ /**
1000
+ * This API returns the members of a work group
1001
+ * @summary List Work Group Members
1002
+ * @param {GovernanceGroupsV2ApiListWorkgroupMembersRequest} requestParameters Request parameters.
1003
+ * @param {*} [axiosOptions] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ * @memberof GovernanceGroupsV2Api
1006
+ */
1007
+ GovernanceGroupsV2Api.prototype.listWorkgroupMembers = function (requestParameters, axiosOptions) {
1008
+ var _this = this;
1009
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).listWorkgroupMembers(requestParameters.workgroupId, requestParameters.limit, requestParameters.offset, requestParameters.filters, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1010
+ };
1011
+ /**
1012
+ * This API returns a list of work groups
1013
+ * @summary List Work Groups
1014
+ * @param {GovernanceGroupsV2ApiListWorkgroupsRequest} requestParameters Request parameters.
1015
+ * @param {*} [axiosOptions] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ * @memberof GovernanceGroupsV2Api
1018
+ */
1019
+ GovernanceGroupsV2Api.prototype.listWorkgroups = function (requestParameters, axiosOptions) {
1020
+ var _this = this;
1021
+ if (requestParameters === void 0) { requestParameters = {}; }
1022
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).listWorkgroups(requestParameters.limit, requestParameters.offset, requestParameters.filters, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1023
+ };
1024
+ /**
1025
+ * This API allows you to modify the members of a work group
1026
+ * @summary Modify Work Group Members
1027
+ * @param {GovernanceGroupsV2ApiModifyWorkgroupMembersRequest} requestParameters Request parameters.
1028
+ * @param {*} [axiosOptions] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ * @memberof GovernanceGroupsV2Api
1031
+ */
1032
+ GovernanceGroupsV2Api.prototype.modifyWorkgroupMembers = function (requestParameters, axiosOptions) {
1033
+ var _this = this;
1034
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).modifyWorkgroupMembers(requestParameters.workgroupId, requestParameters.modifyWorkgroupMembersRequestV2, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1035
+ };
1036
+ /**
1037
+ * This API updates and returns the details for a single workgroup based on the ID
1038
+ * @summary Update Work Group By Id
1039
+ * @param {GovernanceGroupsV2ApiUpdateWorkgroupRequest} requestParameters Request parameters.
1040
+ * @param {*} [axiosOptions] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ * @memberof GovernanceGroupsV2Api
1043
+ */
1044
+ GovernanceGroupsV2Api.prototype.updateWorkgroup = function (requestParameters, axiosOptions) {
1045
+ var _this = this;
1046
+ return (0, exports.GovernanceGroupsV2ApiFp)(this.configuration).updateWorkgroup(requestParameters.workgroupId, requestParameters.createWorkgroupRequestV2, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1047
+ };
1048
+ return GovernanceGroupsV2Api;
1049
+ }(base_1.BaseAPI));
1050
+ exports.GovernanceGroupsV2Api = GovernanceGroupsV2Api;
1051
+ /**
1052
+ * OrgV2Api - axios parameter creator
1053
+ * @export
1054
+ */
1055
+ var OrgV2ApiAxiosParamCreator = function (configuration) {
1056
+ var _this = this;
1057
+ return {
1058
+ /**
1059
+ * Retrieves information and operational settings for your org (as determined by the URL domain).
1060
+ * @summary Retrieves your org settings.
1061
+ * @param {*} [axiosOptions] Override http request option.
1062
+ * @throws {RequiredError}
1063
+ */
1064
+ getOrgSettings: function (axiosOptions) {
1065
+ if (axiosOptions === void 0) { axiosOptions = {}; }
1066
+ return __awaiter(_this, void 0, void 0, function () {
1067
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1068
+ return __generator(this, function (_a) {
1069
+ localVarPath = "/org";
1070
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1071
+ if (configuration) {
1072
+ baseOptions = configuration.baseOptions;
1073
+ }
1074
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
1075
+ localVarHeaderParameter = {};
1076
+ localVarQueryParameter = {};
1077
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1078
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1079
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1080
+ return [2 /*return*/, {
1081
+ url: (0, common_1.toPathString)(localVarUrlObj),
1082
+ axiosOptions: localVarRequestOptions,
1083
+ }];
1084
+ });
1085
+ });
1086
+ },
1087
+ /**
1088
+ * Updates one or more attributes for your org.
1089
+ * @summary Updates one or more org attributes.
1090
+ * @param {UpdateOrgSettingsRequestV2} updateOrgSettingsRequestV2 Org settings to update.
1091
+ * @param {*} [axiosOptions] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ updateOrgSettings: function (updateOrgSettingsRequestV2, axiosOptions) {
1095
+ if (axiosOptions === void 0) { axiosOptions = {}; }
1096
+ return __awaiter(_this, void 0, void 0, function () {
1097
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1098
+ return __generator(this, function (_a) {
1099
+ // verify required parameter 'updateOrgSettingsRequestV2' is not null or undefined
1100
+ (0, common_1.assertParamExists)('updateOrgSettings', 'updateOrgSettingsRequestV2', updateOrgSettingsRequestV2);
1101
+ localVarPath = "/org";
1102
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1103
+ if (configuration) {
1104
+ baseOptions = configuration.baseOptions;
1105
+ }
1106
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
1107
+ localVarHeaderParameter = {};
1108
+ localVarQueryParameter = {};
1109
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1111
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1112
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1113
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOrgSettingsRequestV2, localVarRequestOptions, configuration);
1114
+ return [2 /*return*/, {
1115
+ url: (0, common_1.toPathString)(localVarUrlObj),
1116
+ axiosOptions: localVarRequestOptions,
1117
+ }];
1118
+ });
1119
+ });
1120
+ },
1121
+ };
1122
+ };
1123
+ exports.OrgV2ApiAxiosParamCreator = OrgV2ApiAxiosParamCreator;
1124
+ /**
1125
+ * OrgV2Api - functional programming interface
1126
+ * @export
1127
+ */
1128
+ var OrgV2ApiFp = function (configuration) {
1129
+ var localVarAxiosParamCreator = (0, exports.OrgV2ApiAxiosParamCreator)(configuration);
1130
+ return {
1131
+ /**
1132
+ * Retrieves information and operational settings for your org (as determined by the URL domain).
1133
+ * @summary Retrieves your org settings.
1134
+ * @param {*} [axiosOptions] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ getOrgSettings: function (axiosOptions) {
1138
+ return __awaiter(this, void 0, void 0, function () {
1139
+ var localVarAxiosArgs;
1140
+ return __generator(this, function (_a) {
1141
+ switch (_a.label) {
1142
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrgSettings(axiosOptions)];
1143
+ case 1:
1144
+ localVarAxiosArgs = _a.sent();
1145
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1146
+ }
1147
+ });
1148
+ });
1149
+ },
1150
+ /**
1151
+ * Updates one or more attributes for your org.
1152
+ * @summary Updates one or more org attributes.
1153
+ * @param {UpdateOrgSettingsRequestV2} updateOrgSettingsRequestV2 Org settings to update.
1154
+ * @param {*} [axiosOptions] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ updateOrgSettings: function (updateOrgSettingsRequestV2, axiosOptions) {
1158
+ return __awaiter(this, void 0, void 0, function () {
1159
+ var localVarAxiosArgs;
1160
+ return __generator(this, function (_a) {
1161
+ switch (_a.label) {
1162
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrgSettings(updateOrgSettingsRequestV2, axiosOptions)];
1163
+ case 1:
1164
+ localVarAxiosArgs = _a.sent();
1165
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1166
+ }
1167
+ });
1168
+ });
1169
+ },
1170
+ };
1171
+ };
1172
+ exports.OrgV2ApiFp = OrgV2ApiFp;
1173
+ /**
1174
+ * OrgV2Api - factory interface
1175
+ * @export
1176
+ */
1177
+ var OrgV2ApiFactory = function (configuration, basePath, axios) {
1178
+ var localVarFp = (0, exports.OrgV2ApiFp)(configuration);
1179
+ return {
1180
+ /**
1181
+ * Retrieves information and operational settings for your org (as determined by the URL domain).
1182
+ * @summary Retrieves your org settings.
1183
+ * @param {*} [axiosOptions] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ getOrgSettings: function (axiosOptions) {
1187
+ return localVarFp.getOrgSettings(axiosOptions).then(function (request) { return request(axios, basePath); });
1188
+ },
1189
+ /**
1190
+ * Updates one or more attributes for your org.
1191
+ * @summary Updates one or more org attributes.
1192
+ * @param {UpdateOrgSettingsRequestV2} updateOrgSettingsRequestV2 Org settings to update.
1193
+ * @param {*} [axiosOptions] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ updateOrgSettings: function (updateOrgSettingsRequestV2, axiosOptions) {
1197
+ return localVarFp.updateOrgSettings(updateOrgSettingsRequestV2, axiosOptions).then(function (request) { return request(axios, basePath); });
1198
+ },
1199
+ };
1200
+ };
1201
+ exports.OrgV2ApiFactory = OrgV2ApiFactory;
1202
+ /**
1203
+ * OrgV2Api - object-oriented interface
1204
+ * @export
1205
+ * @class OrgV2Api
1206
+ * @extends {BaseAPI}
1207
+ */
1208
+ var OrgV2Api = /** @class */ (function (_super) {
1209
+ __extends(OrgV2Api, _super);
1210
+ function OrgV2Api() {
1211
+ return _super !== null && _super.apply(this, arguments) || this;
1212
+ }
1213
+ /**
1214
+ * Retrieves information and operational settings for your org (as determined by the URL domain).
1215
+ * @summary Retrieves your org settings.
1216
+ * @param {*} [axiosOptions] Override http request option.
1217
+ * @throws {RequiredError}
1218
+ * @memberof OrgV2Api
1219
+ */
1220
+ OrgV2Api.prototype.getOrgSettings = function (axiosOptions) {
1221
+ var _this = this;
1222
+ return (0, exports.OrgV2ApiFp)(this.configuration).getOrgSettings(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1223
+ };
1224
+ /**
1225
+ * Updates one or more attributes for your org.
1226
+ * @summary Updates one or more org attributes.
1227
+ * @param {OrgV2ApiUpdateOrgSettingsRequest} requestParameters Request parameters.
1228
+ * @param {*} [axiosOptions] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ * @memberof OrgV2Api
1231
+ */
1232
+ OrgV2Api.prototype.updateOrgSettings = function (requestParameters, axiosOptions) {
1233
+ var _this = this;
1234
+ return (0, exports.OrgV2ApiFp)(this.configuration).updateOrgSettings(requestParameters.updateOrgSettingsRequestV2, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1235
+ };
1236
+ return OrgV2Api;
1237
+ }(base_1.BaseAPI));
1238
+ exports.OrgV2Api = OrgV2Api;
1239
+ //# sourceMappingURL=api.js.map