sailpoint-api-client 1.3.0 → 1.3.2

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 (90) hide show
  1. package/beta/README.md +2 -2
  2. package/beta/api.ts +4381 -1280
  3. package/beta/base.ts +1 -1
  4. package/beta/common.ts +3 -3
  5. package/beta/package.json +1 -1
  6. package/configuration.ts +12 -32
  7. package/dist/beta/api.d.ts +3253 -1116
  8. package/dist/beta/api.js +3215 -1070
  9. package/dist/beta/api.js.map +1 -1
  10. package/dist/beta/base.js +1 -1
  11. package/dist/beta/base.js.map +1 -1
  12. package/dist/beta/common.js +3 -3
  13. package/dist/beta/common.js.map +1 -1
  14. package/dist/configuration.d.ts +1 -22
  15. package/dist/configuration.js +10 -8
  16. package/dist/configuration.js.map +1 -1
  17. package/dist/index.d.ts +0 -4
  18. package/dist/index.js +3 -9
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.spec.js +0 -35
  21. package/dist/index.spec.js.map +1 -1
  22. package/dist/v3/api.d.ts +5603 -1228
  23. package/dist/v3/api.js +15109 -10777
  24. package/dist/v3/api.js.map +1 -1
  25. package/dist/v3/base.js +1 -1
  26. package/dist/v3/base.js.map +1 -1
  27. package/dist/v3/common.js +3 -3
  28. package/dist/v3/common.js.map +1 -1
  29. package/index.spec.ts +1 -24
  30. package/index.ts +0 -6
  31. package/package.json +1 -1
  32. package/v3/README.md +2 -2
  33. package/v3/api.ts +9193 -2785
  34. package/v3/base.ts +1 -1
  35. package/v3/common.ts +3 -3
  36. package/v3/package.json +1 -1
  37. package/cc/.openapi-generator/FILES +0 -12
  38. package/cc/.openapi-generator/VERSION +0 -1
  39. package/cc/.openapi-generator-ignore +0 -23
  40. package/cc/README.md +0 -45
  41. package/cc/api.ts +0 -3877
  42. package/cc/base.ts +0 -71
  43. package/cc/common.ts +0 -142
  44. package/cc/configuration.ts +0 -101
  45. package/cc/git_push.sh +0 -57
  46. package/cc/index.ts +0 -17
  47. package/cc/package.json +0 -35
  48. package/cc/tsconfig.json +0 -21
  49. package/dist/cc/api.d.ts +0 -2946
  50. package/dist/cc/api.js +0 -2260
  51. package/dist/cc/api.js.map +0 -1
  52. package/dist/cc/base.d.ts +0 -55
  53. package/dist/cc/base.js +0 -86
  54. package/dist/cc/base.js.map +0 -1
  55. package/dist/cc/common.d.ts +0 -65
  56. package/dist/cc/common.js +0 -251
  57. package/dist/cc/common.js.map +0 -1
  58. package/dist/cc/configuration.d.ts +0 -83
  59. package/dist/cc/configuration.js +0 -45
  60. package/dist/cc/configuration.js.map +0 -1
  61. package/dist/cc/index.d.ts +0 -12
  62. package/dist/cc/index.js +0 -31
  63. package/dist/cc/index.js.map +0 -1
  64. package/dist/v2/api.d.ts +0 -1359
  65. package/dist/v2/api.js +0 -1242
  66. package/dist/v2/api.js.map +0 -1
  67. package/dist/v2/base.d.ts +0 -55
  68. package/dist/v2/base.js +0 -86
  69. package/dist/v2/base.js.map +0 -1
  70. package/dist/v2/common.d.ts +0 -65
  71. package/dist/v2/common.js +0 -251
  72. package/dist/v2/common.js.map +0 -1
  73. package/dist/v2/configuration.d.ts +0 -83
  74. package/dist/v2/configuration.js +0 -45
  75. package/dist/v2/configuration.js.map +0 -1
  76. package/dist/v2/index.d.ts +0 -12
  77. package/dist/v2/index.js +0 -31
  78. package/dist/v2/index.js.map +0 -1
  79. package/v2/.openapi-generator/FILES +0 -12
  80. package/v2/.openapi-generator/VERSION +0 -1
  81. package/v2/.openapi-generator-ignore +0 -23
  82. package/v2/README.md +0 -45
  83. package/v2/api.ts +0 -1900
  84. package/v2/base.ts +0 -71
  85. package/v2/common.ts +0 -142
  86. package/v2/configuration.ts +0 -101
  87. package/v2/git_push.sh +0 -57
  88. package/v2/index.ts +0 -17
  89. package/v2/package.json +0 -35
  90. package/v2/tsconfig.json +0 -21
package/dist/cc/api.js DELETED
@@ -1,2260 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * IdentityNow cc (private) APIs
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 1.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 (g && (g = 0, op[0] && (_ = 0)), _) 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
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.UserCCApi = exports.UserCCApiFactory = exports.UserCCApiFp = exports.UserCCApiAxiosParamCreator = exports.SystemCCApi = exports.SystemCCApiFactory = exports.SystemCCApiFp = exports.SystemCCApiAxiosParamCreator = exports.SourcesAggregationCCApi = exports.SourcesAggregationCCApiFactory = exports.SourcesAggregationCCApiFp = exports.SourcesAggregationCCApiAxiosParamCreator = exports.SourcesAccountsCCApi = exports.SourcesAccountsCCApiFactory = exports.SourcesAccountsCCApiFp = exports.SourcesAccountsCCApiAxiosParamCreator = exports.ConnectorsCCApi = exports.ConnectorsCCApiFactory = exports.ConnectorsCCApiFp = exports.ConnectorsCCApiAxiosParamCreator = exports.ApplicationsCCApi = exports.ApplicationsCCApiFactory = exports.ApplicationsCCApiFp = exports.ApplicationsCCApiAxiosParamCreator = exports.AccountsCCApi = exports.AccountsCCApiFactory = exports.AccountsCCApiFp = exports.AccountsCCApiAxiosParamCreator = exports.UpdateUserPermissionsRequestCCAdminTypeEnum = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("./common");
86
- // @ts-ignore
87
- var base_1 = require("./base");
88
- exports.UpdateUserPermissionsRequestCCAdminTypeEnum = {
89
- Admin: 'ADMIN',
90
- CertAdmin: 'CERT_ADMIN',
91
- Helpdesk: 'HELPDESK',
92
- ReportAdmin: 'REPORT_ADMIN',
93
- RoleAdmin: 'ROLE_ADMIN',
94
- RoleSubadmin: 'ROLE_SUBADMIN',
95
- SourceAdmin: 'SOURCE_ADMIN',
96
- SourceSubadmin: 'SOURCE_SUBADMIN'
97
- };
98
- /**
99
- * AccountsCCApi - axios parameter creator
100
- * @export
101
- */
102
- var AccountsCCApiAxiosParamCreator = function (configuration) {
103
- var _this = this;
104
- return {
105
- /**
106
- *
107
- * @summary List Accounts
108
- * @param {*} [axiosOptions] Override http request option.
109
- * @throws {RequiredError}
110
- */
111
- listAccounts: function (axiosOptions) {
112
- if (axiosOptions === void 0) { axiosOptions = {}; }
113
- return __awaiter(_this, void 0, void 0, function () {
114
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
115
- return __generator(this, function (_a) {
116
- switch (_a.label) {
117
- case 0:
118
- localVarPath = "/cc/api/account/list";
119
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
120
- if (configuration) {
121
- baseOptions = configuration.baseOptions;
122
- }
123
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
124
- localVarHeaderParameter = {};
125
- localVarQueryParameter = {};
126
- // authentication UserContextAuth required
127
- // oauth required
128
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
129
- // authentication UserContextAuth required
130
- // oauth required
131
- ];
132
- case 1:
133
- // authentication UserContextAuth required
134
- // oauth required
135
- _a.sent();
136
- // authentication UserContextAuth required
137
- // oauth required
138
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
139
- case 2:
140
- // authentication UserContextAuth required
141
- // oauth required
142
- _a.sent();
143
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
146
- return [2 /*return*/, {
147
- url: (0, common_1.toPathString)(localVarUrlObj),
148
- axiosOptions: localVarRequestOptions,
149
- }];
150
- }
151
- });
152
- });
153
- },
154
- /**
155
- *
156
- * @summary Remove Account
157
- * @param {string} id
158
- * @param {*} [axiosOptions] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- removeAccount: function (id, axiosOptions) {
162
- if (axiosOptions === void 0) { axiosOptions = {}; }
163
- return __awaiter(_this, void 0, void 0, function () {
164
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
- return __generator(this, function (_a) {
166
- switch (_a.label) {
167
- case 0:
168
- // verify required parameter 'id' is not null or undefined
169
- (0, common_1.assertParamExists)('removeAccount', 'id', id);
170
- localVarPath = "/cc/api/account/remove/{id}"
171
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
172
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
173
- if (configuration) {
174
- baseOptions = configuration.baseOptions;
175
- }
176
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
177
- localVarHeaderParameter = {};
178
- localVarQueryParameter = {};
179
- // authentication UserContextAuth required
180
- // oauth required
181
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
182
- // authentication UserContextAuth required
183
- // oauth required
184
- ];
185
- case 1:
186
- // authentication UserContextAuth required
187
- // oauth required
188
- _a.sent();
189
- // authentication UserContextAuth required
190
- // oauth required
191
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
192
- case 2:
193
- // authentication UserContextAuth required
194
- // oauth required
195
- _a.sent();
196
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
197
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
198
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
199
- return [2 /*return*/, {
200
- url: (0, common_1.toPathString)(localVarUrlObj),
201
- axiosOptions: localVarRequestOptions,
202
- }];
203
- }
204
- });
205
- });
206
- },
207
- };
208
- };
209
- exports.AccountsCCApiAxiosParamCreator = AccountsCCApiAxiosParamCreator;
210
- /**
211
- * AccountsCCApi - functional programming interface
212
- * @export
213
- */
214
- var AccountsCCApiFp = function (configuration) {
215
- var localVarAxiosParamCreator = (0, exports.AccountsCCApiAxiosParamCreator)(configuration);
216
- return {
217
- /**
218
- *
219
- * @summary List Accounts
220
- * @param {*} [axiosOptions] Override http request option.
221
- * @throws {RequiredError}
222
- */
223
- listAccounts: function (axiosOptions) {
224
- return __awaiter(this, void 0, void 0, function () {
225
- var localVarAxiosArgs;
226
- return __generator(this, function (_a) {
227
- switch (_a.label) {
228
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccounts(axiosOptions)];
229
- case 1:
230
- localVarAxiosArgs = _a.sent();
231
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
232
- }
233
- });
234
- });
235
- },
236
- /**
237
- *
238
- * @summary Remove Account
239
- * @param {string} id
240
- * @param {*} [axiosOptions] Override http request option.
241
- * @throws {RequiredError}
242
- */
243
- removeAccount: function (id, axiosOptions) {
244
- return __awaiter(this, void 0, void 0, function () {
245
- var localVarAxiosArgs;
246
- return __generator(this, function (_a) {
247
- switch (_a.label) {
248
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeAccount(id, axiosOptions)];
249
- case 1:
250
- localVarAxiosArgs = _a.sent();
251
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
252
- }
253
- });
254
- });
255
- },
256
- };
257
- };
258
- exports.AccountsCCApiFp = AccountsCCApiFp;
259
- /**
260
- * AccountsCCApi - factory interface
261
- * @export
262
- */
263
- var AccountsCCApiFactory = function (configuration, basePath, axios) {
264
- var localVarFp = (0, exports.AccountsCCApiFp)(configuration);
265
- return {
266
- /**
267
- *
268
- * @summary List Accounts
269
- * @param {*} [axiosOptions] Override http request option.
270
- * @throws {RequiredError}
271
- */
272
- listAccounts: function (axiosOptions) {
273
- return localVarFp.listAccounts(axiosOptions).then(function (request) { return request(axios, basePath); });
274
- },
275
- /**
276
- *
277
- * @summary Remove Account
278
- * @param {string} id
279
- * @param {*} [axiosOptions] Override http request option.
280
- * @throws {RequiredError}
281
- */
282
- removeAccount: function (id, axiosOptions) {
283
- return localVarFp.removeAccount(id, axiosOptions).then(function (request) { return request(axios, basePath); });
284
- },
285
- };
286
- };
287
- exports.AccountsCCApiFactory = AccountsCCApiFactory;
288
- /**
289
- * AccountsCCApi - object-oriented interface
290
- * @export
291
- * @class AccountsCCApi
292
- * @extends {BaseAPI}
293
- */
294
- var AccountsCCApi = /** @class */ (function (_super) {
295
- __extends(AccountsCCApi, _super);
296
- function AccountsCCApi() {
297
- return _super !== null && _super.apply(this, arguments) || this;
298
- }
299
- /**
300
- *
301
- * @summary List Accounts
302
- * @param {*} [axiosOptions] Override http request option.
303
- * @throws {RequiredError}
304
- * @memberof AccountsCCApi
305
- */
306
- AccountsCCApi.prototype.listAccounts = function (axiosOptions) {
307
- var _this = this;
308
- return (0, exports.AccountsCCApiFp)(this.configuration).listAccounts(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
309
- };
310
- /**
311
- *
312
- * @summary Remove Account
313
- * @param {AccountsCCApiRemoveAccountRequest} requestParameters Request parameters.
314
- * @param {*} [axiosOptions] Override http request option.
315
- * @throws {RequiredError}
316
- * @memberof AccountsCCApi
317
- */
318
- AccountsCCApi.prototype.removeAccount = function (requestParameters, axiosOptions) {
319
- var _this = this;
320
- return (0, exports.AccountsCCApiFp)(this.configuration).removeAccount(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
321
- };
322
- return AccountsCCApi;
323
- }(base_1.BaseAPI));
324
- exports.AccountsCCApi = AccountsCCApi;
325
- /**
326
- * ApplicationsCCApi - axios parameter creator
327
- * @export
328
- */
329
- var ApplicationsCCApiAxiosParamCreator = function (configuration) {
330
- var _this = this;
331
- return {
332
- /**
333
- *
334
- * @summary Create Application
335
- * @param {CreateApplicationRequestCC} [createApplicationRequestCC]
336
- * @param {*} [axiosOptions] Override http request option.
337
- * @throws {RequiredError}
338
- */
339
- createApplication: function (createApplicationRequestCC, axiosOptions) {
340
- if (axiosOptions === void 0) { axiosOptions = {}; }
341
- return __awaiter(_this, void 0, void 0, function () {
342
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
- return __generator(this, function (_a) {
344
- switch (_a.label) {
345
- case 0:
346
- localVarPath = "/cc/api/app/create";
347
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
- if (configuration) {
349
- baseOptions = configuration.baseOptions;
350
- }
351
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
352
- localVarHeaderParameter = {};
353
- localVarQueryParameter = {};
354
- // authentication UserContextAuth required
355
- // oauth required
356
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
357
- // authentication UserContextAuth required
358
- // oauth required
359
- ];
360
- case 1:
361
- // authentication UserContextAuth required
362
- // oauth required
363
- _a.sent();
364
- // authentication UserContextAuth required
365
- // oauth required
366
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
367
- case 2:
368
- // authentication UserContextAuth required
369
- // oauth required
370
- _a.sent();
371
- localVarHeaderParameter['Content-Type'] = 'application/json';
372
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
373
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
375
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApplicationRequestCC, localVarRequestOptions, configuration);
376
- return [2 /*return*/, {
377
- url: (0, common_1.toPathString)(localVarUrlObj),
378
- axiosOptions: localVarRequestOptions,
379
- }];
380
- }
381
- });
382
- });
383
- },
384
- /**
385
- *
386
- * @summary Delete Application
387
- * @param {string} id
388
- * @param {*} [axiosOptions] Override http request option.
389
- * @throws {RequiredError}
390
- */
391
- deleteApplication: function (id, axiosOptions) {
392
- if (axiosOptions === void 0) { axiosOptions = {}; }
393
- return __awaiter(_this, void 0, void 0, function () {
394
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
395
- return __generator(this, function (_a) {
396
- switch (_a.label) {
397
- case 0:
398
- // verify required parameter 'id' is not null or undefined
399
- (0, common_1.assertParamExists)('deleteApplication', 'id', id);
400
- localVarPath = "/cc/api/app/delete/{id}"
401
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
402
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
403
- if (configuration) {
404
- baseOptions = configuration.baseOptions;
405
- }
406
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
407
- localVarHeaderParameter = {};
408
- localVarQueryParameter = {};
409
- // authentication UserContextAuth required
410
- // oauth required
411
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
412
- // authentication UserContextAuth required
413
- // oauth required
414
- ];
415
- case 1:
416
- // authentication UserContextAuth required
417
- // oauth required
418
- _a.sent();
419
- // authentication UserContextAuth required
420
- // oauth required
421
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
422
- case 2:
423
- // authentication UserContextAuth required
424
- // oauth required
425
- _a.sent();
426
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
427
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
429
- return [2 /*return*/, {
430
- url: (0, common_1.toPathString)(localVarUrlObj),
431
- axiosOptions: localVarRequestOptions,
432
- }];
433
- }
434
- });
435
- });
436
- },
437
- /**
438
- *
439
- * @summary Get Single Application
440
- * @param {string} id
441
- * @param {*} [axiosOptions] Override http request option.
442
- * @throws {RequiredError}
443
- */
444
- getApplication: function (id, axiosOptions) {
445
- if (axiosOptions === void 0) { axiosOptions = {}; }
446
- return __awaiter(_this, void 0, void 0, function () {
447
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
448
- return __generator(this, function (_a) {
449
- switch (_a.label) {
450
- case 0:
451
- // verify required parameter 'id' is not null or undefined
452
- (0, common_1.assertParamExists)('getApplication', 'id', id);
453
- localVarPath = "/cc/api/app/get/{id}"
454
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
455
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
- if (configuration) {
457
- baseOptions = configuration.baseOptions;
458
- }
459
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
460
- localVarHeaderParameter = {};
461
- localVarQueryParameter = {};
462
- // authentication UserContextAuth required
463
- // oauth required
464
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
465
- // authentication UserContextAuth required
466
- // oauth required
467
- ];
468
- case 1:
469
- // authentication UserContextAuth required
470
- // oauth required
471
- _a.sent();
472
- // authentication UserContextAuth required
473
- // oauth required
474
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
475
- case 2:
476
- // authentication UserContextAuth required
477
- // oauth required
478
- _a.sent();
479
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
480
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
482
- return [2 /*return*/, {
483
- url: (0, common_1.toPathString)(localVarUrlObj),
484
- axiosOptions: localVarRequestOptions,
485
- }];
486
- }
487
- });
488
- });
489
- },
490
- /**
491
- *
492
- * @summary Get Access Profiles for Application
493
- * @param {string} id
494
- * @param {*} [axiosOptions] Override http request option.
495
- * @throws {RequiredError}
496
- */
497
- getApplicationAccessProfiles: function (id, axiosOptions) {
498
- if (axiosOptions === void 0) { axiosOptions = {}; }
499
- return __awaiter(_this, void 0, void 0, function () {
500
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
501
- return __generator(this, function (_a) {
502
- // verify required parameter 'id' is not null or undefined
503
- (0, common_1.assertParamExists)('getApplicationAccessProfiles', 'id', id);
504
- localVarPath = "/cc/api/app/getAccessProfiles/{id}"
505
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
506
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
507
- if (configuration) {
508
- baseOptions = configuration.baseOptions;
509
- }
510
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
511
- localVarHeaderParameter = {};
512
- localVarQueryParameter = {};
513
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
514
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
516
- return [2 /*return*/, {
517
- url: (0, common_1.toPathString)(localVarUrlObj),
518
- axiosOptions: localVarRequestOptions,
519
- }];
520
- });
521
- });
522
- },
523
- /**
524
- *
525
- * @summary List Applications
526
- * @param {*} [axiosOptions] Override http request option.
527
- * @throws {RequiredError}
528
- */
529
- listApplications: function (axiosOptions) {
530
- if (axiosOptions === void 0) { axiosOptions = {}; }
531
- return __awaiter(_this, void 0, void 0, function () {
532
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
533
- return __generator(this, function (_a) {
534
- switch (_a.label) {
535
- case 0:
536
- localVarPath = "/cc/api/app/list";
537
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
538
- if (configuration) {
539
- baseOptions = configuration.baseOptions;
540
- }
541
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
542
- localVarHeaderParameter = {};
543
- localVarQueryParameter = {};
544
- // authentication UserContextAuth required
545
- // oauth required
546
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
547
- // authentication UserContextAuth required
548
- // oauth required
549
- ];
550
- case 1:
551
- // authentication UserContextAuth required
552
- // oauth required
553
- _a.sent();
554
- // authentication UserContextAuth required
555
- // oauth required
556
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
557
- case 2:
558
- // authentication UserContextAuth required
559
- // oauth required
560
- _a.sent();
561
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
562
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
563
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
564
- return [2 /*return*/, {
565
- url: (0, common_1.toPathString)(localVarUrlObj),
566
- axiosOptions: localVarRequestOptions,
567
- }];
568
- }
569
- });
570
- });
571
- },
572
- /**
573
- *
574
- * @summary Update Application
575
- * @param {string} id
576
- * @param {{ [key: string]: any; }} [requestBody]
577
- * @param {*} [axiosOptions] Override http request option.
578
- * @throws {RequiredError}
579
- */
580
- updateApplication: function (id, requestBody, axiosOptions) {
581
- if (axiosOptions === void 0) { axiosOptions = {}; }
582
- return __awaiter(_this, void 0, void 0, function () {
583
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
584
- return __generator(this, function (_a) {
585
- switch (_a.label) {
586
- case 0:
587
- // verify required parameter 'id' is not null or undefined
588
- (0, common_1.assertParamExists)('updateApplication', 'id', id);
589
- localVarPath = "/cc/api/app/update/{id}"
590
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
591
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
592
- if (configuration) {
593
- baseOptions = configuration.baseOptions;
594
- }
595
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
596
- localVarHeaderParameter = {};
597
- localVarQueryParameter = {};
598
- // authentication UserContextAuth required
599
- // oauth required
600
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
601
- // authentication UserContextAuth required
602
- // oauth required
603
- ];
604
- case 1:
605
- // authentication UserContextAuth required
606
- // oauth required
607
- _a.sent();
608
- // authentication UserContextAuth required
609
- // oauth required
610
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
611
- case 2:
612
- // authentication UserContextAuth required
613
- // oauth required
614
- _a.sent();
615
- localVarHeaderParameter['Content-Type'] = 'application/json';
616
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
617
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
618
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
619
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
620
- return [2 /*return*/, {
621
- url: (0, common_1.toPathString)(localVarUrlObj),
622
- axiosOptions: localVarRequestOptions,
623
- }];
624
- }
625
- });
626
- });
627
- },
628
- };
629
- };
630
- exports.ApplicationsCCApiAxiosParamCreator = ApplicationsCCApiAxiosParamCreator;
631
- /**
632
- * ApplicationsCCApi - functional programming interface
633
- * @export
634
- */
635
- var ApplicationsCCApiFp = function (configuration) {
636
- var localVarAxiosParamCreator = (0, exports.ApplicationsCCApiAxiosParamCreator)(configuration);
637
- return {
638
- /**
639
- *
640
- * @summary Create Application
641
- * @param {CreateApplicationRequestCC} [createApplicationRequestCC]
642
- * @param {*} [axiosOptions] Override http request option.
643
- * @throws {RequiredError}
644
- */
645
- createApplication: function (createApplicationRequestCC, axiosOptions) {
646
- return __awaiter(this, void 0, void 0, function () {
647
- var localVarAxiosArgs;
648
- return __generator(this, function (_a) {
649
- switch (_a.label) {
650
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createApplication(createApplicationRequestCC, axiosOptions)];
651
- case 1:
652
- localVarAxiosArgs = _a.sent();
653
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
654
- }
655
- });
656
- });
657
- },
658
- /**
659
- *
660
- * @summary Delete Application
661
- * @param {string} id
662
- * @param {*} [axiosOptions] Override http request option.
663
- * @throws {RequiredError}
664
- */
665
- deleteApplication: function (id, axiosOptions) {
666
- return __awaiter(this, void 0, void 0, function () {
667
- var localVarAxiosArgs;
668
- return __generator(this, function (_a) {
669
- switch (_a.label) {
670
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteApplication(id, axiosOptions)];
671
- case 1:
672
- localVarAxiosArgs = _a.sent();
673
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
674
- }
675
- });
676
- });
677
- },
678
- /**
679
- *
680
- * @summary Get Single Application
681
- * @param {string} id
682
- * @param {*} [axiosOptions] Override http request option.
683
- * @throws {RequiredError}
684
- */
685
- getApplication: function (id, axiosOptions) {
686
- return __awaiter(this, void 0, void 0, function () {
687
- var localVarAxiosArgs;
688
- return __generator(this, function (_a) {
689
- switch (_a.label) {
690
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getApplication(id, axiosOptions)];
691
- case 1:
692
- localVarAxiosArgs = _a.sent();
693
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
694
- }
695
- });
696
- });
697
- },
698
- /**
699
- *
700
- * @summary Get Access Profiles for Application
701
- * @param {string} id
702
- * @param {*} [axiosOptions] Override http request option.
703
- * @throws {RequiredError}
704
- */
705
- getApplicationAccessProfiles: function (id, axiosOptions) {
706
- return __awaiter(this, void 0, void 0, function () {
707
- var localVarAxiosArgs;
708
- return __generator(this, function (_a) {
709
- switch (_a.label) {
710
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getApplicationAccessProfiles(id, axiosOptions)];
711
- case 1:
712
- localVarAxiosArgs = _a.sent();
713
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
714
- }
715
- });
716
- });
717
- },
718
- /**
719
- *
720
- * @summary List Applications
721
- * @param {*} [axiosOptions] Override http request option.
722
- * @throws {RequiredError}
723
- */
724
- listApplications: function (axiosOptions) {
725
- return __awaiter(this, void 0, void 0, function () {
726
- var localVarAxiosArgs;
727
- return __generator(this, function (_a) {
728
- switch (_a.label) {
729
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listApplications(axiosOptions)];
730
- case 1:
731
- localVarAxiosArgs = _a.sent();
732
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
733
- }
734
- });
735
- });
736
- },
737
- /**
738
- *
739
- * @summary Update Application
740
- * @param {string} id
741
- * @param {{ [key: string]: any; }} [requestBody]
742
- * @param {*} [axiosOptions] Override http request option.
743
- * @throws {RequiredError}
744
- */
745
- updateApplication: function (id, requestBody, axiosOptions) {
746
- return __awaiter(this, void 0, void 0, function () {
747
- var localVarAxiosArgs;
748
- return __generator(this, function (_a) {
749
- switch (_a.label) {
750
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateApplication(id, requestBody, axiosOptions)];
751
- case 1:
752
- localVarAxiosArgs = _a.sent();
753
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
754
- }
755
- });
756
- });
757
- },
758
- };
759
- };
760
- exports.ApplicationsCCApiFp = ApplicationsCCApiFp;
761
- /**
762
- * ApplicationsCCApi - factory interface
763
- * @export
764
- */
765
- var ApplicationsCCApiFactory = function (configuration, basePath, axios) {
766
- var localVarFp = (0, exports.ApplicationsCCApiFp)(configuration);
767
- return {
768
- /**
769
- *
770
- * @summary Create Application
771
- * @param {CreateApplicationRequestCC} [createApplicationRequestCC]
772
- * @param {*} [axiosOptions] Override http request option.
773
- * @throws {RequiredError}
774
- */
775
- createApplication: function (createApplicationRequestCC, axiosOptions) {
776
- return localVarFp.createApplication(createApplicationRequestCC, axiosOptions).then(function (request) { return request(axios, basePath); });
777
- },
778
- /**
779
- *
780
- * @summary Delete Application
781
- * @param {string} id
782
- * @param {*} [axiosOptions] Override http request option.
783
- * @throws {RequiredError}
784
- */
785
- deleteApplication: function (id, axiosOptions) {
786
- return localVarFp.deleteApplication(id, axiosOptions).then(function (request) { return request(axios, basePath); });
787
- },
788
- /**
789
- *
790
- * @summary Get Single Application
791
- * @param {string} id
792
- * @param {*} [axiosOptions] Override http request option.
793
- * @throws {RequiredError}
794
- */
795
- getApplication: function (id, axiosOptions) {
796
- return localVarFp.getApplication(id, axiosOptions).then(function (request) { return request(axios, basePath); });
797
- },
798
- /**
799
- *
800
- * @summary Get Access Profiles for Application
801
- * @param {string} id
802
- * @param {*} [axiosOptions] Override http request option.
803
- * @throws {RequiredError}
804
- */
805
- getApplicationAccessProfiles: function (id, axiosOptions) {
806
- return localVarFp.getApplicationAccessProfiles(id, axiosOptions).then(function (request) { return request(axios, basePath); });
807
- },
808
- /**
809
- *
810
- * @summary List Applications
811
- * @param {*} [axiosOptions] Override http request option.
812
- * @throws {RequiredError}
813
- */
814
- listApplications: function (axiosOptions) {
815
- return localVarFp.listApplications(axiosOptions).then(function (request) { return request(axios, basePath); });
816
- },
817
- /**
818
- *
819
- * @summary Update Application
820
- * @param {string} id
821
- * @param {{ [key: string]: any; }} [requestBody]
822
- * @param {*} [axiosOptions] Override http request option.
823
- * @throws {RequiredError}
824
- */
825
- updateApplication: function (id, requestBody, axiosOptions) {
826
- return localVarFp.updateApplication(id, requestBody, axiosOptions).then(function (request) { return request(axios, basePath); });
827
- },
828
- };
829
- };
830
- exports.ApplicationsCCApiFactory = ApplicationsCCApiFactory;
831
- /**
832
- * ApplicationsCCApi - object-oriented interface
833
- * @export
834
- * @class ApplicationsCCApi
835
- * @extends {BaseAPI}
836
- */
837
- var ApplicationsCCApi = /** @class */ (function (_super) {
838
- __extends(ApplicationsCCApi, _super);
839
- function ApplicationsCCApi() {
840
- return _super !== null && _super.apply(this, arguments) || this;
841
- }
842
- /**
843
- *
844
- * @summary Create Application
845
- * @param {ApplicationsCCApiCreateApplicationRequest} requestParameters Request parameters.
846
- * @param {*} [axiosOptions] Override http request option.
847
- * @throws {RequiredError}
848
- * @memberof ApplicationsCCApi
849
- */
850
- ApplicationsCCApi.prototype.createApplication = function (requestParameters, axiosOptions) {
851
- var _this = this;
852
- if (requestParameters === void 0) { requestParameters = {}; }
853
- return (0, exports.ApplicationsCCApiFp)(this.configuration).createApplication(requestParameters.createApplicationRequestCC, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
854
- };
855
- /**
856
- *
857
- * @summary Delete Application
858
- * @param {ApplicationsCCApiDeleteApplicationRequest} requestParameters Request parameters.
859
- * @param {*} [axiosOptions] Override http request option.
860
- * @throws {RequiredError}
861
- * @memberof ApplicationsCCApi
862
- */
863
- ApplicationsCCApi.prototype.deleteApplication = function (requestParameters, axiosOptions) {
864
- var _this = this;
865
- return (0, exports.ApplicationsCCApiFp)(this.configuration).deleteApplication(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
866
- };
867
- /**
868
- *
869
- * @summary Get Single Application
870
- * @param {ApplicationsCCApiGetApplicationRequest} requestParameters Request parameters.
871
- * @param {*} [axiosOptions] Override http request option.
872
- * @throws {RequiredError}
873
- * @memberof ApplicationsCCApi
874
- */
875
- ApplicationsCCApi.prototype.getApplication = function (requestParameters, axiosOptions) {
876
- var _this = this;
877
- return (0, exports.ApplicationsCCApiFp)(this.configuration).getApplication(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
878
- };
879
- /**
880
- *
881
- * @summary Get Access Profiles for Application
882
- * @param {ApplicationsCCApiGetApplicationAccessProfilesRequest} requestParameters Request parameters.
883
- * @param {*} [axiosOptions] Override http request option.
884
- * @throws {RequiredError}
885
- * @memberof ApplicationsCCApi
886
- */
887
- ApplicationsCCApi.prototype.getApplicationAccessProfiles = function (requestParameters, axiosOptions) {
888
- var _this = this;
889
- return (0, exports.ApplicationsCCApiFp)(this.configuration).getApplicationAccessProfiles(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
890
- };
891
- /**
892
- *
893
- * @summary List Applications
894
- * @param {*} [axiosOptions] Override http request option.
895
- * @throws {RequiredError}
896
- * @memberof ApplicationsCCApi
897
- */
898
- ApplicationsCCApi.prototype.listApplications = function (axiosOptions) {
899
- var _this = this;
900
- return (0, exports.ApplicationsCCApiFp)(this.configuration).listApplications(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
901
- };
902
- /**
903
- *
904
- * @summary Update Application
905
- * @param {ApplicationsCCApiUpdateApplicationRequest} requestParameters Request parameters.
906
- * @param {*} [axiosOptions] Override http request option.
907
- * @throws {RequiredError}
908
- * @memberof ApplicationsCCApi
909
- */
910
- ApplicationsCCApi.prototype.updateApplication = function (requestParameters, axiosOptions) {
911
- var _this = this;
912
- return (0, exports.ApplicationsCCApiFp)(this.configuration).updateApplication(requestParameters.id, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
913
- };
914
- return ApplicationsCCApi;
915
- }(base_1.BaseAPI));
916
- exports.ApplicationsCCApi = ApplicationsCCApi;
917
- /**
918
- * ConnectorsCCApi - axios parameter creator
919
- * @export
920
- */
921
- var ConnectorsCCApiAxiosParamCreator = function (configuration) {
922
- var _this = this;
923
- return {
924
- /**
925
- *
926
- * @summary Create Connector
927
- * @param {string} [contentType]
928
- * @param {string} [name]
929
- * @param {string} [description]
930
- * @param {string} [className]
931
- * @param {boolean} [directConnect]
932
- * @param {string} [status]
933
- * @param {*} [axiosOptions] Override http request option.
934
- * @throws {RequiredError}
935
- */
936
- createConnector: function (contentType, name, description, className, directConnect, status, axiosOptions) {
937
- if (axiosOptions === void 0) { axiosOptions = {}; }
938
- return __awaiter(_this, void 0, void 0, function () {
939
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
940
- return __generator(this, function (_a) {
941
- switch (_a.label) {
942
- case 0:
943
- localVarPath = "/cc/api/connector/create";
944
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
945
- if (configuration) {
946
- baseOptions = configuration.baseOptions;
947
- }
948
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
949
- localVarHeaderParameter = {};
950
- localVarQueryParameter = {};
951
- localVarFormParams = new URLSearchParams();
952
- // authentication UserContextAuth required
953
- // oauth required
954
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
955
- // authentication UserContextAuth required
956
- // oauth required
957
- ];
958
- case 1:
959
- // authentication UserContextAuth required
960
- // oauth required
961
- _a.sent();
962
- // authentication UserContextAuth required
963
- // oauth required
964
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
965
- case 2:
966
- // authentication UserContextAuth required
967
- // oauth required
968
- _a.sent();
969
- if (contentType !== undefined && contentType !== null) {
970
- localVarHeaderParameter['Content-Type'] = String(contentType);
971
- }
972
- if (name !== undefined) {
973
- localVarFormParams.set('name', name);
974
- }
975
- if (description !== undefined) {
976
- localVarFormParams.set('description', description);
977
- }
978
- if (className !== undefined) {
979
- localVarFormParams.set('className', className);
980
- }
981
- if (directConnect !== undefined) {
982
- localVarFormParams.set('directConnect', directConnect);
983
- }
984
- if (status !== undefined) {
985
- localVarFormParams.set('status', status);
986
- }
987
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
988
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
989
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
990
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
991
- localVarRequestOptions.data = localVarFormParams.toString();
992
- return [2 /*return*/, {
993
- url: (0, common_1.toPathString)(localVarUrlObj),
994
- axiosOptions: localVarRequestOptions,
995
- }];
996
- }
997
- });
998
- });
999
- },
1000
- /**
1001
- *
1002
- * @summary Delete Connector
1003
- * @param {string} id
1004
- * @param {*} [axiosOptions] Override http request option.
1005
- * @throws {RequiredError}
1006
- */
1007
- deleteConnector: function (id, axiosOptions) {
1008
- if (axiosOptions === void 0) { axiosOptions = {}; }
1009
- return __awaiter(_this, void 0, void 0, function () {
1010
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1011
- return __generator(this, function (_a) {
1012
- switch (_a.label) {
1013
- case 0:
1014
- // verify required parameter 'id' is not null or undefined
1015
- (0, common_1.assertParamExists)('deleteConnector', 'id', id);
1016
- localVarPath = "/cc/api/connector/delete/{id}"
1017
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1018
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1019
- if (configuration) {
1020
- baseOptions = configuration.baseOptions;
1021
- }
1022
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
1023
- localVarHeaderParameter = {};
1024
- localVarQueryParameter = {};
1025
- // authentication UserContextAuth required
1026
- // oauth required
1027
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1028
- // authentication UserContextAuth required
1029
- // oauth required
1030
- ];
1031
- case 1:
1032
- // authentication UserContextAuth required
1033
- // oauth required
1034
- _a.sent();
1035
- // authentication UserContextAuth required
1036
- // oauth required
1037
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1038
- case 2:
1039
- // authentication UserContextAuth required
1040
- // oauth required
1041
- _a.sent();
1042
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1043
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1044
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1045
- return [2 /*return*/, {
1046
- url: (0, common_1.toPathString)(localVarUrlObj),
1047
- axiosOptions: localVarRequestOptions,
1048
- }];
1049
- }
1050
- });
1051
- });
1052
- },
1053
- /**
1054
- *
1055
- * @summary Export Connector Config
1056
- * @param {string} id
1057
- * @param {*} [axiosOptions] Override http request option.
1058
- * @throws {RequiredError}
1059
- */
1060
- exportConnectorConfig: function (id, axiosOptions) {
1061
- if (axiosOptions === void 0) { axiosOptions = {}; }
1062
- return __awaiter(_this, void 0, void 0, function () {
1063
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1064
- return __generator(this, function (_a) {
1065
- switch (_a.label) {
1066
- case 0:
1067
- // verify required parameter 'id' is not null or undefined
1068
- (0, common_1.assertParamExists)('exportConnectorConfig', 'id', id);
1069
- localVarPath = "/cc/api/connector/export/{id}"
1070
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1071
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1072
- if (configuration) {
1073
- baseOptions = configuration.baseOptions;
1074
- }
1075
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
1076
- localVarHeaderParameter = {};
1077
- localVarQueryParameter = {};
1078
- // authentication UserContextAuth required
1079
- // oauth required
1080
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1081
- // authentication UserContextAuth required
1082
- // oauth required
1083
- ];
1084
- case 1:
1085
- // authentication UserContextAuth required
1086
- // oauth required
1087
- _a.sent();
1088
- // authentication UserContextAuth required
1089
- // oauth required
1090
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1091
- case 2:
1092
- // authentication UserContextAuth required
1093
- // oauth required
1094
- _a.sent();
1095
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1096
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1097
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1098
- return [2 /*return*/, {
1099
- url: (0, common_1.toPathString)(localVarUrlObj),
1100
- axiosOptions: localVarRequestOptions,
1101
- }];
1102
- }
1103
- });
1104
- });
1105
- },
1106
- /**
1107
- *
1108
- * @summary Import Connector Config
1109
- * @param {string} id
1110
- * @param {any} [file] This is the connector config zip bundle which gets uploaded.
1111
- * @param {*} [axiosOptions] Override http request option.
1112
- * @throws {RequiredError}
1113
- */
1114
- importConnectorConfig: function (id, file, axiosOptions) {
1115
- if (axiosOptions === void 0) { axiosOptions = {}; }
1116
- return __awaiter(_this, void 0, void 0, function () {
1117
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
1118
- return __generator(this, function (_a) {
1119
- switch (_a.label) {
1120
- case 0:
1121
- // verify required parameter 'id' is not null or undefined
1122
- (0, common_1.assertParamExists)('importConnectorConfig', 'id', id);
1123
- localVarPath = "/cc/api/connector/import/{id}"
1124
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1125
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1126
- if (configuration) {
1127
- baseOptions = configuration.baseOptions;
1128
- }
1129
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
1130
- localVarHeaderParameter = {};
1131
- localVarQueryParameter = {};
1132
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1133
- // authentication UserContextAuth required
1134
- // oauth required
1135
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1136
- // authentication UserContextAuth required
1137
- // oauth required
1138
- ];
1139
- case 1:
1140
- // authentication UserContextAuth required
1141
- // oauth required
1142
- _a.sent();
1143
- // authentication UserContextAuth required
1144
- // oauth required
1145
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1146
- case 2:
1147
- // authentication UserContextAuth required
1148
- // oauth required
1149
- _a.sent();
1150
- if (file !== undefined) {
1151
- localVarFormParams.append('file', file);
1152
- }
1153
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1154
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1155
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1156
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1157
- localVarRequestOptions.data = localVarFormParams;
1158
- return [2 /*return*/, {
1159
- url: (0, common_1.toPathString)(localVarUrlObj),
1160
- axiosOptions: localVarRequestOptions,
1161
- }];
1162
- }
1163
- });
1164
- });
1165
- },
1166
- /**
1167
- *
1168
- * @summary List Connectors
1169
- * @param {*} [axiosOptions] Override http request option.
1170
- * @throws {RequiredError}
1171
- */
1172
- listConnectors: function (axiosOptions) {
1173
- if (axiosOptions === void 0) { axiosOptions = {}; }
1174
- return __awaiter(_this, void 0, void 0, function () {
1175
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1176
- return __generator(this, function (_a) {
1177
- switch (_a.label) {
1178
- case 0:
1179
- localVarPath = "/cc/api/connector/list";
1180
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1181
- if (configuration) {
1182
- baseOptions = configuration.baseOptions;
1183
- }
1184
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
1185
- localVarHeaderParameter = {};
1186
- localVarQueryParameter = {};
1187
- // authentication UserContextAuth required
1188
- // oauth required
1189
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1190
- // authentication UserContextAuth required
1191
- // oauth required
1192
- ];
1193
- case 1:
1194
- // authentication UserContextAuth required
1195
- // oauth required
1196
- _a.sent();
1197
- // authentication UserContextAuth required
1198
- // oauth required
1199
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1200
- case 2:
1201
- // authentication UserContextAuth required
1202
- // oauth required
1203
- _a.sent();
1204
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1205
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1206
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1207
- return [2 /*return*/, {
1208
- url: (0, common_1.toPathString)(localVarUrlObj),
1209
- axiosOptions: localVarRequestOptions,
1210
- }];
1211
- }
1212
- });
1213
- });
1214
- },
1215
- };
1216
- };
1217
- exports.ConnectorsCCApiAxiosParamCreator = ConnectorsCCApiAxiosParamCreator;
1218
- /**
1219
- * ConnectorsCCApi - functional programming interface
1220
- * @export
1221
- */
1222
- var ConnectorsCCApiFp = function (configuration) {
1223
- var localVarAxiosParamCreator = (0, exports.ConnectorsCCApiAxiosParamCreator)(configuration);
1224
- return {
1225
- /**
1226
- *
1227
- * @summary Create Connector
1228
- * @param {string} [contentType]
1229
- * @param {string} [name]
1230
- * @param {string} [description]
1231
- * @param {string} [className]
1232
- * @param {boolean} [directConnect]
1233
- * @param {string} [status]
1234
- * @param {*} [axiosOptions] Override http request option.
1235
- * @throws {RequiredError}
1236
- */
1237
- createConnector: function (contentType, name, description, className, directConnect, status, axiosOptions) {
1238
- return __awaiter(this, void 0, void 0, function () {
1239
- var localVarAxiosArgs;
1240
- return __generator(this, function (_a) {
1241
- switch (_a.label) {
1242
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createConnector(contentType, name, description, className, directConnect, status, axiosOptions)];
1243
- case 1:
1244
- localVarAxiosArgs = _a.sent();
1245
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1246
- }
1247
- });
1248
- });
1249
- },
1250
- /**
1251
- *
1252
- * @summary Delete Connector
1253
- * @param {string} id
1254
- * @param {*} [axiosOptions] Override http request option.
1255
- * @throws {RequiredError}
1256
- */
1257
- deleteConnector: function (id, axiosOptions) {
1258
- return __awaiter(this, void 0, void 0, function () {
1259
- var localVarAxiosArgs;
1260
- return __generator(this, function (_a) {
1261
- switch (_a.label) {
1262
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteConnector(id, axiosOptions)];
1263
- case 1:
1264
- localVarAxiosArgs = _a.sent();
1265
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1266
- }
1267
- });
1268
- });
1269
- },
1270
- /**
1271
- *
1272
- * @summary Export Connector Config
1273
- * @param {string} id
1274
- * @param {*} [axiosOptions] Override http request option.
1275
- * @throws {RequiredError}
1276
- */
1277
- exportConnectorConfig: function (id, axiosOptions) {
1278
- return __awaiter(this, void 0, void 0, function () {
1279
- var localVarAxiosArgs;
1280
- return __generator(this, function (_a) {
1281
- switch (_a.label) {
1282
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportConnectorConfig(id, axiosOptions)];
1283
- case 1:
1284
- localVarAxiosArgs = _a.sent();
1285
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1286
- }
1287
- });
1288
- });
1289
- },
1290
- /**
1291
- *
1292
- * @summary Import Connector Config
1293
- * @param {string} id
1294
- * @param {any} [file] This is the connector config zip bundle which gets uploaded.
1295
- * @param {*} [axiosOptions] Override http request option.
1296
- * @throws {RequiredError}
1297
- */
1298
- importConnectorConfig: function (id, file, axiosOptions) {
1299
- return __awaiter(this, void 0, void 0, function () {
1300
- var localVarAxiosArgs;
1301
- return __generator(this, function (_a) {
1302
- switch (_a.label) {
1303
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importConnectorConfig(id, file, axiosOptions)];
1304
- case 1:
1305
- localVarAxiosArgs = _a.sent();
1306
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1307
- }
1308
- });
1309
- });
1310
- },
1311
- /**
1312
- *
1313
- * @summary List Connectors
1314
- * @param {*} [axiosOptions] Override http request option.
1315
- * @throws {RequiredError}
1316
- */
1317
- listConnectors: function (axiosOptions) {
1318
- return __awaiter(this, void 0, void 0, function () {
1319
- var localVarAxiosArgs;
1320
- return __generator(this, function (_a) {
1321
- switch (_a.label) {
1322
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listConnectors(axiosOptions)];
1323
- case 1:
1324
- localVarAxiosArgs = _a.sent();
1325
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1326
- }
1327
- });
1328
- });
1329
- },
1330
- };
1331
- };
1332
- exports.ConnectorsCCApiFp = ConnectorsCCApiFp;
1333
- /**
1334
- * ConnectorsCCApi - factory interface
1335
- * @export
1336
- */
1337
- var ConnectorsCCApiFactory = function (configuration, basePath, axios) {
1338
- var localVarFp = (0, exports.ConnectorsCCApiFp)(configuration);
1339
- return {
1340
- /**
1341
- *
1342
- * @summary Create Connector
1343
- * @param {string} [contentType]
1344
- * @param {string} [name]
1345
- * @param {string} [description]
1346
- * @param {string} [className]
1347
- * @param {boolean} [directConnect]
1348
- * @param {string} [status]
1349
- * @param {*} [axiosOptions] Override http request option.
1350
- * @throws {RequiredError}
1351
- */
1352
- createConnector: function (contentType, name, description, className, directConnect, status, axiosOptions) {
1353
- return localVarFp.createConnector(contentType, name, description, className, directConnect, status, axiosOptions).then(function (request) { return request(axios, basePath); });
1354
- },
1355
- /**
1356
- *
1357
- * @summary Delete Connector
1358
- * @param {string} id
1359
- * @param {*} [axiosOptions] Override http request option.
1360
- * @throws {RequiredError}
1361
- */
1362
- deleteConnector: function (id, axiosOptions) {
1363
- return localVarFp.deleteConnector(id, axiosOptions).then(function (request) { return request(axios, basePath); });
1364
- },
1365
- /**
1366
- *
1367
- * @summary Export Connector Config
1368
- * @param {string} id
1369
- * @param {*} [axiosOptions] Override http request option.
1370
- * @throws {RequiredError}
1371
- */
1372
- exportConnectorConfig: function (id, axiosOptions) {
1373
- return localVarFp.exportConnectorConfig(id, axiosOptions).then(function (request) { return request(axios, basePath); });
1374
- },
1375
- /**
1376
- *
1377
- * @summary Import Connector Config
1378
- * @param {string} id
1379
- * @param {any} [file] This is the connector config zip bundle which gets uploaded.
1380
- * @param {*} [axiosOptions] Override http request option.
1381
- * @throws {RequiredError}
1382
- */
1383
- importConnectorConfig: function (id, file, axiosOptions) {
1384
- return localVarFp.importConnectorConfig(id, file, axiosOptions).then(function (request) { return request(axios, basePath); });
1385
- },
1386
- /**
1387
- *
1388
- * @summary List Connectors
1389
- * @param {*} [axiosOptions] Override http request option.
1390
- * @throws {RequiredError}
1391
- */
1392
- listConnectors: function (axiosOptions) {
1393
- return localVarFp.listConnectors(axiosOptions).then(function (request) { return request(axios, basePath); });
1394
- },
1395
- };
1396
- };
1397
- exports.ConnectorsCCApiFactory = ConnectorsCCApiFactory;
1398
- /**
1399
- * ConnectorsCCApi - object-oriented interface
1400
- * @export
1401
- * @class ConnectorsCCApi
1402
- * @extends {BaseAPI}
1403
- */
1404
- var ConnectorsCCApi = /** @class */ (function (_super) {
1405
- __extends(ConnectorsCCApi, _super);
1406
- function ConnectorsCCApi() {
1407
- return _super !== null && _super.apply(this, arguments) || this;
1408
- }
1409
- /**
1410
- *
1411
- * @summary Create Connector
1412
- * @param {ConnectorsCCApiCreateConnectorRequest} requestParameters Request parameters.
1413
- * @param {*} [axiosOptions] Override http request option.
1414
- * @throws {RequiredError}
1415
- * @memberof ConnectorsCCApi
1416
- */
1417
- ConnectorsCCApi.prototype.createConnector = function (requestParameters, axiosOptions) {
1418
- var _this = this;
1419
- if (requestParameters === void 0) { requestParameters = {}; }
1420
- return (0, exports.ConnectorsCCApiFp)(this.configuration).createConnector(requestParameters.contentType, requestParameters.name, requestParameters.description, requestParameters.className, requestParameters.directConnect, requestParameters.status, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1421
- };
1422
- /**
1423
- *
1424
- * @summary Delete Connector
1425
- * @param {ConnectorsCCApiDeleteConnectorRequest} requestParameters Request parameters.
1426
- * @param {*} [axiosOptions] Override http request option.
1427
- * @throws {RequiredError}
1428
- * @memberof ConnectorsCCApi
1429
- */
1430
- ConnectorsCCApi.prototype.deleteConnector = function (requestParameters, axiosOptions) {
1431
- var _this = this;
1432
- return (0, exports.ConnectorsCCApiFp)(this.configuration).deleteConnector(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1433
- };
1434
- /**
1435
- *
1436
- * @summary Export Connector Config
1437
- * @param {ConnectorsCCApiExportConnectorConfigRequest} requestParameters Request parameters.
1438
- * @param {*} [axiosOptions] Override http request option.
1439
- * @throws {RequiredError}
1440
- * @memberof ConnectorsCCApi
1441
- */
1442
- ConnectorsCCApi.prototype.exportConnectorConfig = function (requestParameters, axiosOptions) {
1443
- var _this = this;
1444
- return (0, exports.ConnectorsCCApiFp)(this.configuration).exportConnectorConfig(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1445
- };
1446
- /**
1447
- *
1448
- * @summary Import Connector Config
1449
- * @param {ConnectorsCCApiImportConnectorConfigRequest} requestParameters Request parameters.
1450
- * @param {*} [axiosOptions] Override http request option.
1451
- * @throws {RequiredError}
1452
- * @memberof ConnectorsCCApi
1453
- */
1454
- ConnectorsCCApi.prototype.importConnectorConfig = function (requestParameters, axiosOptions) {
1455
- var _this = this;
1456
- return (0, exports.ConnectorsCCApiFp)(this.configuration).importConnectorConfig(requestParameters.id, requestParameters.file, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1457
- };
1458
- /**
1459
- *
1460
- * @summary List Connectors
1461
- * @param {*} [axiosOptions] Override http request option.
1462
- * @throws {RequiredError}
1463
- * @memberof ConnectorsCCApi
1464
- */
1465
- ConnectorsCCApi.prototype.listConnectors = function (axiosOptions) {
1466
- var _this = this;
1467
- return (0, exports.ConnectorsCCApiFp)(this.configuration).listConnectors(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1468
- };
1469
- return ConnectorsCCApi;
1470
- }(base_1.BaseAPI));
1471
- exports.ConnectorsCCApi = ConnectorsCCApi;
1472
- /**
1473
- * SourcesAccountsCCApi - axios parameter creator
1474
- * @export
1475
- */
1476
- var SourcesAccountsCCApiAxiosParamCreator = function (configuration) {
1477
- var _this = this;
1478
- return {
1479
- /**
1480
- * Exports a CSV of the accounts for a particular source.
1481
- * @summary Export Account Feed
1482
- * @param {string} id
1483
- * @param {*} [axiosOptions] Override http request option.
1484
- * @throws {RequiredError}
1485
- */
1486
- exportAccountFeed: function (id, axiosOptions) {
1487
- if (axiosOptions === void 0) { axiosOptions = {}; }
1488
- return __awaiter(_this, void 0, void 0, function () {
1489
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1490
- return __generator(this, function (_a) {
1491
- switch (_a.label) {
1492
- case 0:
1493
- // verify required parameter 'id' is not null or undefined
1494
- (0, common_1.assertParamExists)('exportAccountFeed', 'id', id);
1495
- localVarPath = "/cc/api/source/exportAccountFeed/{id}"
1496
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1497
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1498
- if (configuration) {
1499
- baseOptions = configuration.baseOptions;
1500
- }
1501
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
1502
- localVarHeaderParameter = {};
1503
- localVarQueryParameter = {};
1504
- // authentication UserContextAuth required
1505
- // oauth required
1506
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1507
- // authentication UserContextAuth required
1508
- // oauth required
1509
- ];
1510
- case 1:
1511
- // authentication UserContextAuth required
1512
- // oauth required
1513
- _a.sent();
1514
- // authentication UserContextAuth required
1515
- // oauth required
1516
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1517
- case 2:
1518
- // authentication UserContextAuth required
1519
- // oauth required
1520
- _a.sent();
1521
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1522
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1523
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1524
- return [2 /*return*/, {
1525
- url: (0, common_1.toPathString)(localVarUrlObj),
1526
- axiosOptions: localVarRequestOptions,
1527
- }];
1528
- }
1529
- });
1530
- });
1531
- },
1532
- };
1533
- };
1534
- exports.SourcesAccountsCCApiAxiosParamCreator = SourcesAccountsCCApiAxiosParamCreator;
1535
- /**
1536
- * SourcesAccountsCCApi - functional programming interface
1537
- * @export
1538
- */
1539
- var SourcesAccountsCCApiFp = function (configuration) {
1540
- var localVarAxiosParamCreator = (0, exports.SourcesAccountsCCApiAxiosParamCreator)(configuration);
1541
- return {
1542
- /**
1543
- * Exports a CSV of the accounts for a particular source.
1544
- * @summary Export Account Feed
1545
- * @param {string} id
1546
- * @param {*} [axiosOptions] Override http request option.
1547
- * @throws {RequiredError}
1548
- */
1549
- exportAccountFeed: function (id, axiosOptions) {
1550
- return __awaiter(this, void 0, void 0, function () {
1551
- var localVarAxiosArgs;
1552
- return __generator(this, function (_a) {
1553
- switch (_a.label) {
1554
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportAccountFeed(id, axiosOptions)];
1555
- case 1:
1556
- localVarAxiosArgs = _a.sent();
1557
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1558
- }
1559
- });
1560
- });
1561
- },
1562
- };
1563
- };
1564
- exports.SourcesAccountsCCApiFp = SourcesAccountsCCApiFp;
1565
- /**
1566
- * SourcesAccountsCCApi - factory interface
1567
- * @export
1568
- */
1569
- var SourcesAccountsCCApiFactory = function (configuration, basePath, axios) {
1570
- var localVarFp = (0, exports.SourcesAccountsCCApiFp)(configuration);
1571
- return {
1572
- /**
1573
- * Exports a CSV of the accounts for a particular source.
1574
- * @summary Export Account Feed
1575
- * @param {string} id
1576
- * @param {*} [axiosOptions] Override http request option.
1577
- * @throws {RequiredError}
1578
- */
1579
- exportAccountFeed: function (id, axiosOptions) {
1580
- return localVarFp.exportAccountFeed(id, axiosOptions).then(function (request) { return request(axios, basePath); });
1581
- },
1582
- };
1583
- };
1584
- exports.SourcesAccountsCCApiFactory = SourcesAccountsCCApiFactory;
1585
- /**
1586
- * SourcesAccountsCCApi - object-oriented interface
1587
- * @export
1588
- * @class SourcesAccountsCCApi
1589
- * @extends {BaseAPI}
1590
- */
1591
- var SourcesAccountsCCApi = /** @class */ (function (_super) {
1592
- __extends(SourcesAccountsCCApi, _super);
1593
- function SourcesAccountsCCApi() {
1594
- return _super !== null && _super.apply(this, arguments) || this;
1595
- }
1596
- /**
1597
- * Exports a CSV of the accounts for a particular source.
1598
- * @summary Export Account Feed
1599
- * @param {SourcesAccountsCCApiExportAccountFeedRequest} requestParameters Request parameters.
1600
- * @param {*} [axiosOptions] Override http request option.
1601
- * @throws {RequiredError}
1602
- * @memberof SourcesAccountsCCApi
1603
- */
1604
- SourcesAccountsCCApi.prototype.exportAccountFeed = function (requestParameters, axiosOptions) {
1605
- var _this = this;
1606
- return (0, exports.SourcesAccountsCCApiFp)(this.configuration).exportAccountFeed(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1607
- };
1608
- return SourcesAccountsCCApi;
1609
- }(base_1.BaseAPI));
1610
- exports.SourcesAccountsCCApi = SourcesAccountsCCApi;
1611
- /**
1612
- * SourcesAggregationCCApi - axios parameter creator
1613
- * @export
1614
- */
1615
- var SourcesAggregationCCApiAxiosParamCreator = function (configuration) {
1616
- var _this = this;
1617
- return {
1618
- /**
1619
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1620
- * @summary Account Aggregation (File)
1621
- * @param {string} id
1622
- * @param {string} [contentType]
1623
- * @param {boolean} [disableOptimization]
1624
- * @param {any} [file]
1625
- * @param {*} [axiosOptions] Override http request option.
1626
- * @throws {RequiredError}
1627
- */
1628
- loadAccounts: function (id, contentType, disableOptimization, file, axiosOptions) {
1629
- if (axiosOptions === void 0) { axiosOptions = {}; }
1630
- return __awaiter(_this, void 0, void 0, function () {
1631
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
1632
- return __generator(this, function (_a) {
1633
- switch (_a.label) {
1634
- case 0:
1635
- // verify required parameter 'id' is not null or undefined
1636
- (0, common_1.assertParamExists)('loadAccounts', 'id', id);
1637
- localVarPath = "/cc/api/source/loadAccounts/{id}"
1638
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1639
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1640
- if (configuration) {
1641
- baseOptions = configuration.baseOptions;
1642
- }
1643
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
1644
- localVarHeaderParameter = {};
1645
- localVarQueryParameter = {};
1646
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1647
- // authentication UserContextAuth required
1648
- // oauth required
1649
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1650
- // authentication UserContextAuth required
1651
- // oauth required
1652
- ];
1653
- case 1:
1654
- // authentication UserContextAuth required
1655
- // oauth required
1656
- _a.sent();
1657
- // authentication UserContextAuth required
1658
- // oauth required
1659
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1660
- case 2:
1661
- // authentication UserContextAuth required
1662
- // oauth required
1663
- _a.sent();
1664
- if (contentType !== undefined && contentType !== null) {
1665
- localVarHeaderParameter['Content-Type'] = String(contentType);
1666
- }
1667
- if (disableOptimization !== undefined) {
1668
- localVarFormParams.append('disableOptimization', disableOptimization);
1669
- }
1670
- if (file !== undefined) {
1671
- localVarFormParams.append('file', file);
1672
- }
1673
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1674
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1675
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1676
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1677
- localVarRequestOptions.data = localVarFormParams;
1678
- return [2 /*return*/, {
1679
- url: (0, common_1.toPathString)(localVarUrlObj),
1680
- axiosOptions: localVarRequestOptions,
1681
- }];
1682
- }
1683
- });
1684
- });
1685
- },
1686
- /**
1687
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1688
- * @summary Account Aggregation (File)
1689
- * @param {string} id
1690
- * @param {string} [contentType]
1691
- * @param {any} [file]
1692
- * @param {*} [axiosOptions] Override http request option.
1693
- * @throws {RequiredError}
1694
- */
1695
- loadEntitlements: function (id, contentType, file, axiosOptions) {
1696
- if (axiosOptions === void 0) { axiosOptions = {}; }
1697
- return __awaiter(_this, void 0, void 0, function () {
1698
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
1699
- return __generator(this, function (_a) {
1700
- switch (_a.label) {
1701
- case 0:
1702
- // verify required parameter 'id' is not null or undefined
1703
- (0, common_1.assertParamExists)('loadEntitlements', 'id', id);
1704
- localVarPath = "/cc/api/source/loadEntitlements/{id}"
1705
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1706
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1707
- if (configuration) {
1708
- baseOptions = configuration.baseOptions;
1709
- }
1710
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
1711
- localVarHeaderParameter = {};
1712
- localVarQueryParameter = {};
1713
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1714
- // authentication UserContextAuth required
1715
- // oauth required
1716
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1717
- // authentication UserContextAuth required
1718
- // oauth required
1719
- ];
1720
- case 1:
1721
- // authentication UserContextAuth required
1722
- // oauth required
1723
- _a.sent();
1724
- // authentication UserContextAuth required
1725
- // oauth required
1726
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1727
- case 2:
1728
- // authentication UserContextAuth required
1729
- // oauth required
1730
- _a.sent();
1731
- if (contentType !== undefined && contentType !== null) {
1732
- localVarHeaderParameter['Content-Type'] = String(contentType);
1733
- }
1734
- if (file !== undefined) {
1735
- localVarFormParams.append('file', file);
1736
- }
1737
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1738
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1739
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1740
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1741
- localVarRequestOptions.data = localVarFormParams;
1742
- return [2 /*return*/, {
1743
- url: (0, common_1.toPathString)(localVarUrlObj),
1744
- axiosOptions: localVarRequestOptions,
1745
- }];
1746
- }
1747
- });
1748
- });
1749
- },
1750
- };
1751
- };
1752
- exports.SourcesAggregationCCApiAxiosParamCreator = SourcesAggregationCCApiAxiosParamCreator;
1753
- /**
1754
- * SourcesAggregationCCApi - functional programming interface
1755
- * @export
1756
- */
1757
- var SourcesAggregationCCApiFp = function (configuration) {
1758
- var localVarAxiosParamCreator = (0, exports.SourcesAggregationCCApiAxiosParamCreator)(configuration);
1759
- return {
1760
- /**
1761
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1762
- * @summary Account Aggregation (File)
1763
- * @param {string} id
1764
- * @param {string} [contentType]
1765
- * @param {boolean} [disableOptimization]
1766
- * @param {any} [file]
1767
- * @param {*} [axiosOptions] Override http request option.
1768
- * @throws {RequiredError}
1769
- */
1770
- loadAccounts: function (id, contentType, disableOptimization, file, axiosOptions) {
1771
- return __awaiter(this, void 0, void 0, function () {
1772
- var localVarAxiosArgs;
1773
- return __generator(this, function (_a) {
1774
- switch (_a.label) {
1775
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.loadAccounts(id, contentType, disableOptimization, file, axiosOptions)];
1776
- case 1:
1777
- localVarAxiosArgs = _a.sent();
1778
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1779
- }
1780
- });
1781
- });
1782
- },
1783
- /**
1784
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1785
- * @summary Account Aggregation (File)
1786
- * @param {string} id
1787
- * @param {string} [contentType]
1788
- * @param {any} [file]
1789
- * @param {*} [axiosOptions] Override http request option.
1790
- * @throws {RequiredError}
1791
- */
1792
- loadEntitlements: function (id, contentType, file, axiosOptions) {
1793
- return __awaiter(this, void 0, void 0, function () {
1794
- var localVarAxiosArgs;
1795
- return __generator(this, function (_a) {
1796
- switch (_a.label) {
1797
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.loadEntitlements(id, contentType, file, axiosOptions)];
1798
- case 1:
1799
- localVarAxiosArgs = _a.sent();
1800
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1801
- }
1802
- });
1803
- });
1804
- },
1805
- };
1806
- };
1807
- exports.SourcesAggregationCCApiFp = SourcesAggregationCCApiFp;
1808
- /**
1809
- * SourcesAggregationCCApi - factory interface
1810
- * @export
1811
- */
1812
- var SourcesAggregationCCApiFactory = function (configuration, basePath, axios) {
1813
- var localVarFp = (0, exports.SourcesAggregationCCApiFp)(configuration);
1814
- return {
1815
- /**
1816
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1817
- * @summary Account Aggregation (File)
1818
- * @param {string} id
1819
- * @param {string} [contentType]
1820
- * @param {boolean} [disableOptimization]
1821
- * @param {any} [file]
1822
- * @param {*} [axiosOptions] Override http request option.
1823
- * @throws {RequiredError}
1824
- */
1825
- loadAccounts: function (id, contentType, disableOptimization, file, axiosOptions) {
1826
- return localVarFp.loadAccounts(id, contentType, disableOptimization, file, axiosOptions).then(function (request) { return request(axios, basePath); });
1827
- },
1828
- /**
1829
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1830
- * @summary Account Aggregation (File)
1831
- * @param {string} id
1832
- * @param {string} [contentType]
1833
- * @param {any} [file]
1834
- * @param {*} [axiosOptions] Override http request option.
1835
- * @throws {RequiredError}
1836
- */
1837
- loadEntitlements: function (id, contentType, file, axiosOptions) {
1838
- return localVarFp.loadEntitlements(id, contentType, file, axiosOptions).then(function (request) { return request(axios, basePath); });
1839
- },
1840
- };
1841
- };
1842
- exports.SourcesAggregationCCApiFactory = SourcesAggregationCCApiFactory;
1843
- /**
1844
- * SourcesAggregationCCApi - object-oriented interface
1845
- * @export
1846
- * @class SourcesAggregationCCApi
1847
- * @extends {BaseAPI}
1848
- */
1849
- var SourcesAggregationCCApi = /** @class */ (function (_super) {
1850
- __extends(SourcesAggregationCCApi, _super);
1851
- function SourcesAggregationCCApi() {
1852
- return _super !== null && _super.apply(this, arguments) || this;
1853
- }
1854
- /**
1855
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1856
- * @summary Account Aggregation (File)
1857
- * @param {SourcesAggregationCCApiLoadAccountsRequest} requestParameters Request parameters.
1858
- * @param {*} [axiosOptions] Override http request option.
1859
- * @throws {RequiredError}
1860
- * @memberof SourcesAggregationCCApi
1861
- */
1862
- SourcesAggregationCCApi.prototype.loadAccounts = function (requestParameters, axiosOptions) {
1863
- var _this = this;
1864
- return (0, exports.SourcesAggregationCCApiFp)(this.configuration).loadAccounts(requestParameters.id, requestParameters.contentType, requestParameters.disableOptimization, requestParameters.file, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1865
- };
1866
- /**
1867
- * Aggregates a delimited file for the given source. This only works for file-based sources.
1868
- * @summary Account Aggregation (File)
1869
- * @param {SourcesAggregationCCApiLoadEntitlementsRequest} requestParameters Request parameters.
1870
- * @param {*} [axiosOptions] Override http request option.
1871
- * @throws {RequiredError}
1872
- * @memberof SourcesAggregationCCApi
1873
- */
1874
- SourcesAggregationCCApi.prototype.loadEntitlements = function (requestParameters, axiosOptions) {
1875
- var _this = this;
1876
- return (0, exports.SourcesAggregationCCApiFp)(this.configuration).loadEntitlements(requestParameters.id, requestParameters.contentType, requestParameters.file, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
1877
- };
1878
- return SourcesAggregationCCApi;
1879
- }(base_1.BaseAPI));
1880
- exports.SourcesAggregationCCApi = SourcesAggregationCCApi;
1881
- /**
1882
- * SystemCCApi - axios parameter creator
1883
- * @export
1884
- */
1885
- var SystemCCApiAxiosParamCreator = function (configuration) {
1886
- var _this = this;
1887
- return {
1888
- /**
1889
- * This kicks off an identity refresh for a specified set of identity attributes. This can be a long running process. IdentityNow has pre-scheduled versions of this task at set intervals and events already, so only run this when directed by SailPoint. _Note: If the identities specified by the filter do not exist, a full identity refresh will be run. Use with caution._ Refresh Arguments: | Key | Description | |-----------------------|----------------------------------------------------| | correlateEntitlements | Analyzes entitlements, access profiles, and roles. | | promoteAttributes | Calculates identity attributes. | | refreshManagerStatus | Calculates manager correlation and manager status. | | synchronizeAttributes | Performs attribute sync provisioning. | | pruneIdentities | Removes any identities which don\'t have accounts. | | provision | Provisions any assigned roles or access profiles. |
1890
- * @summary Refresh Identities
1891
- * @param {string} [contentType]
1892
- * @param {RefreshIdentitiesRequestCC} [refreshIdentitiesRequestCC]
1893
- * @param {*} [axiosOptions] Override http request option.
1894
- * @throws {RequiredError}
1895
- */
1896
- refreshIdentities: function (contentType, refreshIdentitiesRequestCC, axiosOptions) {
1897
- if (axiosOptions === void 0) { axiosOptions = {}; }
1898
- return __awaiter(_this, void 0, void 0, function () {
1899
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1900
- return __generator(this, function (_a) {
1901
- switch (_a.label) {
1902
- case 0:
1903
- localVarPath = "/cc/api/system/refreshIdentities";
1904
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1905
- if (configuration) {
1906
- baseOptions = configuration.baseOptions;
1907
- }
1908
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
1909
- localVarHeaderParameter = {};
1910
- localVarQueryParameter = {};
1911
- // authentication UserContextAuth required
1912
- // oauth required
1913
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
1914
- // authentication UserContextAuth required
1915
- // oauth required
1916
- ];
1917
- case 1:
1918
- // authentication UserContextAuth required
1919
- // oauth required
1920
- _a.sent();
1921
- // authentication UserContextAuth required
1922
- // oauth required
1923
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
1924
- case 2:
1925
- // authentication UserContextAuth required
1926
- // oauth required
1927
- _a.sent();
1928
- if (contentType !== undefined && contentType !== null) {
1929
- localVarHeaderParameter['Content-Type'] = String(contentType);
1930
- }
1931
- localVarHeaderParameter['Content-Type'] = 'application/json';
1932
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1933
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1934
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
1935
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refreshIdentitiesRequestCC, localVarRequestOptions, configuration);
1936
- return [2 /*return*/, {
1937
- url: (0, common_1.toPathString)(localVarUrlObj),
1938
- axiosOptions: localVarRequestOptions,
1939
- }];
1940
- }
1941
- });
1942
- });
1943
- },
1944
- };
1945
- };
1946
- exports.SystemCCApiAxiosParamCreator = SystemCCApiAxiosParamCreator;
1947
- /**
1948
- * SystemCCApi - functional programming interface
1949
- * @export
1950
- */
1951
- var SystemCCApiFp = function (configuration) {
1952
- var localVarAxiosParamCreator = (0, exports.SystemCCApiAxiosParamCreator)(configuration);
1953
- return {
1954
- /**
1955
- * This kicks off an identity refresh for a specified set of identity attributes. This can be a long running process. IdentityNow has pre-scheduled versions of this task at set intervals and events already, so only run this when directed by SailPoint. _Note: If the identities specified by the filter do not exist, a full identity refresh will be run. Use with caution._ Refresh Arguments: | Key | Description | |-----------------------|----------------------------------------------------| | correlateEntitlements | Analyzes entitlements, access profiles, and roles. | | promoteAttributes | Calculates identity attributes. | | refreshManagerStatus | Calculates manager correlation and manager status. | | synchronizeAttributes | Performs attribute sync provisioning. | | pruneIdentities | Removes any identities which don\'t have accounts. | | provision | Provisions any assigned roles or access profiles. |
1956
- * @summary Refresh Identities
1957
- * @param {string} [contentType]
1958
- * @param {RefreshIdentitiesRequestCC} [refreshIdentitiesRequestCC]
1959
- * @param {*} [axiosOptions] Override http request option.
1960
- * @throws {RequiredError}
1961
- */
1962
- refreshIdentities: function (contentType, refreshIdentitiesRequestCC, axiosOptions) {
1963
- return __awaiter(this, void 0, void 0, function () {
1964
- var localVarAxiosArgs;
1965
- return __generator(this, function (_a) {
1966
- switch (_a.label) {
1967
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.refreshIdentities(contentType, refreshIdentitiesRequestCC, axiosOptions)];
1968
- case 1:
1969
- localVarAxiosArgs = _a.sent();
1970
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1971
- }
1972
- });
1973
- });
1974
- },
1975
- };
1976
- };
1977
- exports.SystemCCApiFp = SystemCCApiFp;
1978
- /**
1979
- * SystemCCApi - factory interface
1980
- * @export
1981
- */
1982
- var SystemCCApiFactory = function (configuration, basePath, axios) {
1983
- var localVarFp = (0, exports.SystemCCApiFp)(configuration);
1984
- return {
1985
- /**
1986
- * This kicks off an identity refresh for a specified set of identity attributes. This can be a long running process. IdentityNow has pre-scheduled versions of this task at set intervals and events already, so only run this when directed by SailPoint. _Note: If the identities specified by the filter do not exist, a full identity refresh will be run. Use with caution._ Refresh Arguments: | Key | Description | |-----------------------|----------------------------------------------------| | correlateEntitlements | Analyzes entitlements, access profiles, and roles. | | promoteAttributes | Calculates identity attributes. | | refreshManagerStatus | Calculates manager correlation and manager status. | | synchronizeAttributes | Performs attribute sync provisioning. | | pruneIdentities | Removes any identities which don\'t have accounts. | | provision | Provisions any assigned roles or access profiles. |
1987
- * @summary Refresh Identities
1988
- * @param {string} [contentType]
1989
- * @param {RefreshIdentitiesRequestCC} [refreshIdentitiesRequestCC]
1990
- * @param {*} [axiosOptions] Override http request option.
1991
- * @throws {RequiredError}
1992
- */
1993
- refreshIdentities: function (contentType, refreshIdentitiesRequestCC, axiosOptions) {
1994
- return localVarFp.refreshIdentities(contentType, refreshIdentitiesRequestCC, axiosOptions).then(function (request) { return request(axios, basePath); });
1995
- },
1996
- };
1997
- };
1998
- exports.SystemCCApiFactory = SystemCCApiFactory;
1999
- /**
2000
- * SystemCCApi - object-oriented interface
2001
- * @export
2002
- * @class SystemCCApi
2003
- * @extends {BaseAPI}
2004
- */
2005
- var SystemCCApi = /** @class */ (function (_super) {
2006
- __extends(SystemCCApi, _super);
2007
- function SystemCCApi() {
2008
- return _super !== null && _super.apply(this, arguments) || this;
2009
- }
2010
- /**
2011
- * This kicks off an identity refresh for a specified set of identity attributes. This can be a long running process. IdentityNow has pre-scheduled versions of this task at set intervals and events already, so only run this when directed by SailPoint. _Note: If the identities specified by the filter do not exist, a full identity refresh will be run. Use with caution._ Refresh Arguments: | Key | Description | |-----------------------|----------------------------------------------------| | correlateEntitlements | Analyzes entitlements, access profiles, and roles. | | promoteAttributes | Calculates identity attributes. | | refreshManagerStatus | Calculates manager correlation and manager status. | | synchronizeAttributes | Performs attribute sync provisioning. | | pruneIdentities | Removes any identities which don\'t have accounts. | | provision | Provisions any assigned roles or access profiles. |
2012
- * @summary Refresh Identities
2013
- * @param {SystemCCApiRefreshIdentitiesRequest} requestParameters Request parameters.
2014
- * @param {*} [axiosOptions] Override http request option.
2015
- * @throws {RequiredError}
2016
- * @memberof SystemCCApi
2017
- */
2018
- SystemCCApi.prototype.refreshIdentities = function (requestParameters, axiosOptions) {
2019
- var _this = this;
2020
- if (requestParameters === void 0) { requestParameters = {}; }
2021
- return (0, exports.SystemCCApiFp)(this.configuration).refreshIdentities(requestParameters.contentType, requestParameters.refreshIdentitiesRequestCC, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
2022
- };
2023
- return SystemCCApi;
2024
- }(base_1.BaseAPI));
2025
- exports.SystemCCApi = SystemCCApi;
2026
- /**
2027
- * UserCCApi - axios parameter creator
2028
- * @export
2029
- */
2030
- var UserCCApiAxiosParamCreator = function (configuration) {
2031
- var _this = this;
2032
- return {
2033
- /**
2034
- *
2035
- * @summary Get Single Identity
2036
- * @param {string} id
2037
- * @param {*} [axiosOptions] Override http request option.
2038
- * @throws {RequiredError}
2039
- */
2040
- getIdentity: function (id, axiosOptions) {
2041
- if (axiosOptions === void 0) { axiosOptions = {}; }
2042
- return __awaiter(_this, void 0, void 0, function () {
2043
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2044
- return __generator(this, function (_a) {
2045
- switch (_a.label) {
2046
- case 0:
2047
- // verify required parameter 'id' is not null or undefined
2048
- (0, common_1.assertParamExists)('getIdentity', 'id', id);
2049
- localVarPath = "/cc/api/user/get/{id}"
2050
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2051
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2052
- if (configuration) {
2053
- baseOptions = configuration.baseOptions;
2054
- }
2055
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
2056
- localVarHeaderParameter = {};
2057
- localVarQueryParameter = {};
2058
- // authentication UserContextAuth required
2059
- // oauth required
2060
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
2061
- // authentication UserContextAuth required
2062
- // oauth required
2063
- ];
2064
- case 1:
2065
- // authentication UserContextAuth required
2066
- // oauth required
2067
- _a.sent();
2068
- // authentication UserContextAuth required
2069
- // oauth required
2070
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
2071
- case 2:
2072
- // authentication UserContextAuth required
2073
- // oauth required
2074
- _a.sent();
2075
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2076
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2077
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
2078
- return [2 /*return*/, {
2079
- url: (0, common_1.toPathString)(localVarUrlObj),
2080
- axiosOptions: localVarRequestOptions,
2081
- }];
2082
- }
2083
- });
2084
- });
2085
- },
2086
- /**
2087
- *
2088
- * @summary Update User Permissions
2089
- * @param {UpdateUserPermissionsRequestCC} [updateUserPermissionsRequestCC]
2090
- * @param {*} [axiosOptions] Override http request option.
2091
- * @throws {RequiredError}
2092
- */
2093
- updateUserPermissions: function (updateUserPermissionsRequestCC, axiosOptions) {
2094
- if (axiosOptions === void 0) { axiosOptions = {}; }
2095
- return __awaiter(_this, void 0, void 0, function () {
2096
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2097
- return __generator(this, function (_a) {
2098
- switch (_a.label) {
2099
- case 0:
2100
- localVarPath = "/cc/api/user/updatePermissions";
2101
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2102
- if (configuration) {
2103
- baseOptions = configuration.baseOptions;
2104
- }
2105
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
2106
- localVarHeaderParameter = {};
2107
- localVarQueryParameter = {};
2108
- // authentication UserContextAuth required
2109
- // oauth required
2110
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)
2111
- // authentication UserContextAuth required
2112
- // oauth required
2113
- ];
2114
- case 1:
2115
- // authentication UserContextAuth required
2116
- // oauth required
2117
- _a.sent();
2118
- // authentication UserContextAuth required
2119
- // oauth required
2120
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "UserContextAuth", [], configuration)];
2121
- case 2:
2122
- // authentication UserContextAuth required
2123
- // oauth required
2124
- _a.sent();
2125
- localVarHeaderParameter['Content-Type'] = 'application/json';
2126
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2127
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2128
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
2129
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserPermissionsRequestCC, localVarRequestOptions, configuration);
2130
- return [2 /*return*/, {
2131
- url: (0, common_1.toPathString)(localVarUrlObj),
2132
- axiosOptions: localVarRequestOptions,
2133
- }];
2134
- }
2135
- });
2136
- });
2137
- },
2138
- };
2139
- };
2140
- exports.UserCCApiAxiosParamCreator = UserCCApiAxiosParamCreator;
2141
- /**
2142
- * UserCCApi - functional programming interface
2143
- * @export
2144
- */
2145
- var UserCCApiFp = function (configuration) {
2146
- var localVarAxiosParamCreator = (0, exports.UserCCApiAxiosParamCreator)(configuration);
2147
- return {
2148
- /**
2149
- *
2150
- * @summary Get Single Identity
2151
- * @param {string} id
2152
- * @param {*} [axiosOptions] Override http request option.
2153
- * @throws {RequiredError}
2154
- */
2155
- getIdentity: function (id, axiosOptions) {
2156
- return __awaiter(this, void 0, void 0, function () {
2157
- var localVarAxiosArgs;
2158
- return __generator(this, function (_a) {
2159
- switch (_a.label) {
2160
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIdentity(id, axiosOptions)];
2161
- case 1:
2162
- localVarAxiosArgs = _a.sent();
2163
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2164
- }
2165
- });
2166
- });
2167
- },
2168
- /**
2169
- *
2170
- * @summary Update User Permissions
2171
- * @param {UpdateUserPermissionsRequestCC} [updateUserPermissionsRequestCC]
2172
- * @param {*} [axiosOptions] Override http request option.
2173
- * @throws {RequiredError}
2174
- */
2175
- updateUserPermissions: function (updateUserPermissionsRequestCC, axiosOptions) {
2176
- return __awaiter(this, void 0, void 0, function () {
2177
- var localVarAxiosArgs;
2178
- return __generator(this, function (_a) {
2179
- switch (_a.label) {
2180
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateUserPermissions(updateUserPermissionsRequestCC, axiosOptions)];
2181
- case 1:
2182
- localVarAxiosArgs = _a.sent();
2183
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2184
- }
2185
- });
2186
- });
2187
- },
2188
- };
2189
- };
2190
- exports.UserCCApiFp = UserCCApiFp;
2191
- /**
2192
- * UserCCApi - factory interface
2193
- * @export
2194
- */
2195
- var UserCCApiFactory = function (configuration, basePath, axios) {
2196
- var localVarFp = (0, exports.UserCCApiFp)(configuration);
2197
- return {
2198
- /**
2199
- *
2200
- * @summary Get Single Identity
2201
- * @param {string} id
2202
- * @param {*} [axiosOptions] Override http request option.
2203
- * @throws {RequiredError}
2204
- */
2205
- getIdentity: function (id, axiosOptions) {
2206
- return localVarFp.getIdentity(id, axiosOptions).then(function (request) { return request(axios, basePath); });
2207
- },
2208
- /**
2209
- *
2210
- * @summary Update User Permissions
2211
- * @param {UpdateUserPermissionsRequestCC} [updateUserPermissionsRequestCC]
2212
- * @param {*} [axiosOptions] Override http request option.
2213
- * @throws {RequiredError}
2214
- */
2215
- updateUserPermissions: function (updateUserPermissionsRequestCC, axiosOptions) {
2216
- return localVarFp.updateUserPermissions(updateUserPermissionsRequestCC, axiosOptions).then(function (request) { return request(axios, basePath); });
2217
- },
2218
- };
2219
- };
2220
- exports.UserCCApiFactory = UserCCApiFactory;
2221
- /**
2222
- * UserCCApi - object-oriented interface
2223
- * @export
2224
- * @class UserCCApi
2225
- * @extends {BaseAPI}
2226
- */
2227
- var UserCCApi = /** @class */ (function (_super) {
2228
- __extends(UserCCApi, _super);
2229
- function UserCCApi() {
2230
- return _super !== null && _super.apply(this, arguments) || this;
2231
- }
2232
- /**
2233
- *
2234
- * @summary Get Single Identity
2235
- * @param {UserCCApiGetIdentityRequest} requestParameters Request parameters.
2236
- * @param {*} [axiosOptions] Override http request option.
2237
- * @throws {RequiredError}
2238
- * @memberof UserCCApi
2239
- */
2240
- UserCCApi.prototype.getIdentity = function (requestParameters, axiosOptions) {
2241
- var _this = this;
2242
- return (0, exports.UserCCApiFp)(this.configuration).getIdentity(requestParameters.id, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
2243
- };
2244
- /**
2245
- *
2246
- * @summary Update User Permissions
2247
- * @param {UserCCApiUpdateUserPermissionsRequest} requestParameters Request parameters.
2248
- * @param {*} [axiosOptions] Override http request option.
2249
- * @throws {RequiredError}
2250
- * @memberof UserCCApi
2251
- */
2252
- UserCCApi.prototype.updateUserPermissions = function (requestParameters, axiosOptions) {
2253
- var _this = this;
2254
- if (requestParameters === void 0) { requestParameters = {}; }
2255
- return (0, exports.UserCCApiFp)(this.configuration).updateUserPermissions(requestParameters.updateUserPermissionsRequestCC, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
2256
- };
2257
- return UserCCApi;
2258
- }(base_1.BaseAPI));
2259
- exports.UserCCApi = UserCCApi;
2260
- //# sourceMappingURL=api.js.map