sailpoint-api-client 1.0.1

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