@ikonintegration/bccsa-program-api 3.0.18 → 3.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Api.js CHANGED
@@ -9,117 +9,11 @@
9
9
  * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
10
  * ---------------------------------------------------------------
11
11
  */
12
- var __extends = (this && this.__extends) || (function () {
13
- var extendStatics = function (d, b) {
14
- extendStatics = Object.setPrototypeOf ||
15
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
17
- return extendStatics(d, b);
18
- };
19
- return function (d, b) {
20
- if (typeof b !== "function" && b !== null)
21
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
22
- extendStatics(d, b);
23
- function __() { this.constructor = d; }
24
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25
- };
26
- })();
27
- var __assign = (this && this.__assign) || function () {
28
- __assign = Object.assign || function(t) {
29
- for (var s, i = 1, n = arguments.length; i < n; i++) {
30
- s = arguments[i];
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
32
- t[p] = s[p];
33
- }
34
- return t;
35
- };
36
- return __assign.apply(this, arguments);
37
- };
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __generator = (this && this.__generator) || function (thisArg, body) {
48
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
49
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
50
- function verb(n) { return function (v) { return step([n, v]); }; }
51
- function step(op) {
52
- if (f) throw new TypeError("Generator is already executing.");
53
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
54
- 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;
55
- if (y = 0, t) op = [op[0] & 2, t.value];
56
- switch (op[0]) {
57
- case 0: case 1: t = op; break;
58
- case 4: _.label++; return { value: op[1], done: false };
59
- case 5: _.label++; y = op[1]; op = [0]; continue;
60
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
61
- default:
62
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
63
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
64
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
65
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
66
- if (t[2]) _.ops.pop();
67
- _.trys.pop(); continue;
68
- }
69
- op = body.call(thisArg, _);
70
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
71
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
72
- }
73
- };
74
- var __rest = (this && this.__rest) || function (s, e) {
75
- var t = {};
76
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
77
- t[p] = s[p];
78
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
79
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
80
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
81
- t[p[i]] = s[p[i]];
82
- }
83
- return t;
84
- };
85
- var __values = (this && this.__values) || function(o) {
86
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
87
- if (m) return m.call(o);
88
- if (o && typeof o.length === "number") return {
89
- next: function () {
90
- if (o && i >= o.length) o = void 0;
91
- return { value: o && o[i++], done: !o };
92
- }
93
- };
94
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
95
- };
96
- var __read = (this && this.__read) || function (o, n) {
97
- var m = typeof Symbol === "function" && o[Symbol.iterator];
98
- if (!m) return o;
99
- var i = m.call(o), r, ar = [], e;
100
- try {
101
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
102
- }
103
- catch (error) { e = { error: error }; }
104
- finally {
105
- try {
106
- if (r && !r.done && (m = i["return"])) m.call(i);
107
- }
108
- finally { if (e) throw e.error; }
109
- }
110
- return ar;
111
- };
112
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
113
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
114
- if (ar || !(i in from)) {
115
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
116
- ar[i] = from[i];
117
- }
118
- }
119
- return to.concat(ar || Array.prototype.slice.call(from));
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
120
14
  };
121
15
  Object.defineProperty(exports, "__esModule", { value: true });
122
- exports.Api = exports.HttpClient = exports.ContentType = exports.InputPqhsrmybpxgValueEnum = exports.ReportXlsxSchemaContentTypeEnum = void 0;
16
+ exports.Api = exports.HttpClient = exports.ContentType = exports.Input5Rbt3210WaValueEnum = exports.ReportXlsxSchemaContentTypeEnum = void 0;
123
17
  var ReportXlsxSchemaContentTypeEnum;
124
18
  (function (ReportXlsxSchemaContentTypeEnum) {
125
19
  ReportXlsxSchemaContentTypeEnum["ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
@@ -128,13 +22,13 @@ var ReportXlsxSchemaContentTypeEnum;
128
22
  * The value of the trigger check, [CHECKED, UNCHECKED, NOVALUE]
129
23
  * @example "CHECKED"
130
24
  */
131
- var InputPqhsrmybpxgValueEnum;
132
- (function (InputPqhsrmybpxgValueEnum) {
133
- InputPqhsrmybpxgValueEnum["CHECKED"] = "CHECKED";
134
- InputPqhsrmybpxgValueEnum["UNCHECKED"] = "UNCHECKED";
135
- InputPqhsrmybpxgValueEnum["NOVALUE"] = "NOVALUE";
136
- })(InputPqhsrmybpxgValueEnum || (exports.InputPqhsrmybpxgValueEnum = InputPqhsrmybpxgValueEnum = {}));
137
- var axios_1 = require("axios");
25
+ var Input5Rbt3210WaValueEnum;
26
+ (function (Input5Rbt3210WaValueEnum) {
27
+ Input5Rbt3210WaValueEnum["CHECKED"] = "CHECKED";
28
+ Input5Rbt3210WaValueEnum["UNCHECKED"] = "UNCHECKED";
29
+ Input5Rbt3210WaValueEnum["NOVALUE"] = "NOVALUE";
30
+ })(Input5Rbt3210WaValueEnum || (exports.Input5Rbt3210WaValueEnum = Input5Rbt3210WaValueEnum = {}));
31
+ const axios_1 = __importDefault(require("axios"));
138
32
  var ContentType;
139
33
  (function (ContentType) {
140
34
  ContentType["Json"] = "application/json";
@@ -142,102 +36,91 @@ var ContentType;
142
36
  ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
143
37
  ContentType["Text"] = "text/plain";
144
38
  })(ContentType || (exports.ContentType = ContentType = {}));
145
- var HttpClient = /** @class */ (function () {
146
- function HttpClient(_a) {
147
- if (_a === void 0) { _a = {}; }
148
- var _this = this;
149
- var securityWorker = _a.securityWorker, secure = _a.secure, format = _a.format, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
39
+ class HttpClient {
40
+ constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
150
41
  this.securityData = null;
151
- this.setSecurityData = function (data) {
152
- _this.securityData = data;
42
+ this.setSecurityData = (data) => {
43
+ this.securityData = data;
44
+ };
45
+ this.request = async ({ secure, path, type, query, format, body, ...params }) => {
46
+ const secureParams = ((typeof secure === 'boolean' ? secure : this.secure) &&
47
+ this.securityWorker &&
48
+ (await this.securityWorker(this.securityData))) ||
49
+ {};
50
+ const requestParams = this.mergeRequestParams(params, secureParams);
51
+ const responseFormat = format || this.format || undefined;
52
+ if (type === ContentType.FormData && body && body !== null && typeof body === 'object') {
53
+ body = this.createFormData(body);
54
+ }
55
+ if (type === ContentType.Text && body && body !== null && typeof body !== 'string') {
56
+ body = JSON.stringify(body);
57
+ }
58
+ return this.instance
59
+ .request({
60
+ ...requestParams,
61
+ headers: {
62
+ ...(requestParams.headers || {}),
63
+ ...(type ? { 'Content-Type': type } : {}),
64
+ },
65
+ params: query,
66
+ responseType: responseFormat,
67
+ data: body,
68
+ url: path,
69
+ })
70
+ .then(response => response.data);
153
71
  };
154
- this.request = function (_a) { return __awaiter(_this, void 0, void 0, function () {
155
- var secureParams, _b, requestParams, responseFormat;
156
- var secure = _a.secure, path = _a.path, type = _a.type, query = _a.query, format = _a.format, body = _a.body, params = __rest(_a, ["secure", "path", "type", "query", "format", "body"]);
157
- return __generator(this, function (_c) {
158
- switch (_c.label) {
159
- case 0:
160
- _b = (typeof secure === 'boolean' ? secure : this.secure) &&
161
- this.securityWorker;
162
- if (!_b) return [3 /*break*/, 2];
163
- return [4 /*yield*/, this.securityWorker(this.securityData)];
164
- case 1:
165
- _b = (_c.sent());
166
- _c.label = 2;
167
- case 2:
168
- secureParams = (_b) ||
169
- {};
170
- requestParams = this.mergeRequestParams(params, secureParams);
171
- responseFormat = format || this.format || undefined;
172
- if (type === ContentType.FormData && body && body !== null && typeof body === 'object') {
173
- body = this.createFormData(body);
174
- }
175
- if (type === ContentType.Text && body && body !== null && typeof body !== 'string') {
176
- body = JSON.stringify(body);
177
- }
178
- return [2 /*return*/, this.instance
179
- .request(__assign(__assign({}, requestParams), { headers: __assign(__assign({}, (requestParams.headers || {})), (type ? { 'Content-Type': type } : {})), params: query, responseType: responseFormat, data: body, url: path }))
180
- .then(function (response) { return response.data; })];
181
- }
182
- });
183
- }); };
184
- this.instance = axios_1.default.create(__assign(__assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || 'http://localhost:8080' }));
72
+ this.instance = axios_1.default.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || 'http://localhost:8080' });
185
73
  this.secure = secure;
186
74
  this.format = format;
187
75
  this.securityWorker = securityWorker;
188
76
  }
189
- HttpClient.prototype.mergeRequestParams = function (params1, params2) {
190
- var method = params1.method || (params2 && params2.method);
191
- return __assign(__assign(__assign(__assign({}, this.instance.defaults), params1), (params2 || {})), { headers: __assign(__assign(__assign({}, ((method && this.instance.defaults.headers[method.toLowerCase()]) || {})), (params1.headers || {})), ((params2 && params2.headers) || {})) });
192
- };
193
- HttpClient.prototype.stringifyFormItem = function (formItem) {
77
+ mergeRequestParams(params1, params2) {
78
+ const method = params1.method || (params2 && params2.method);
79
+ return {
80
+ ...this.instance.defaults,
81
+ ...params1,
82
+ ...(params2 || {}),
83
+ headers: {
84
+ ...((method && this.instance.defaults.headers[method.toLowerCase()]) || {}),
85
+ ...(params1.headers || {}),
86
+ ...((params2 && params2.headers) || {}),
87
+ },
88
+ };
89
+ }
90
+ stringifyFormItem(formItem) {
194
91
  if (typeof formItem === 'object' && formItem !== null) {
195
92
  return JSON.stringify(formItem);
196
93
  }
197
94
  else {
198
- return "".concat(formItem);
95
+ return `${formItem}`;
199
96
  }
200
- };
201
- HttpClient.prototype.createFormData = function (input) {
202
- var _this = this;
97
+ }
98
+ createFormData(input) {
203
99
  if (input instanceof FormData) {
204
100
  return input;
205
101
  }
206
- return Object.keys(input || {}).reduce(function (formData, key) {
207
- var e_1, _a;
208
- var property = input[key];
209
- var propertyContent = property instanceof Array ? property : [property];
210
- try {
211
- for (var propertyContent_1 = __values(propertyContent), propertyContent_1_1 = propertyContent_1.next(); !propertyContent_1_1.done; propertyContent_1_1 = propertyContent_1.next()) {
212
- var formItem = propertyContent_1_1.value;
213
- var isFileType = formItem instanceof Blob || formItem instanceof File;
214
- formData.append(key, isFileType ? formItem : _this.stringifyFormItem(formItem));
215
- }
216
- }
217
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
218
- finally {
219
- try {
220
- if (propertyContent_1_1 && !propertyContent_1_1.done && (_a = propertyContent_1.return)) _a.call(propertyContent_1);
221
- }
222
- finally { if (e_1) throw e_1.error; }
102
+ return Object.keys(input || {}).reduce((formData, key) => {
103
+ const property = input[key];
104
+ const propertyContent = property instanceof Array ? property : [property];
105
+ for (const formItem of propertyContent) {
106
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
107
+ formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
223
108
  }
224
109
  return formData;
225
110
  }, new FormData());
226
- };
227
- return HttpClient;
228
- }());
111
+ }
112
+ }
229
113
  exports.HttpClient = HttpClient;
230
114
  /**
231
115
  * @title BCCSA Program API
232
- * @version 3.0.18
116
+ * @version 3.0.20
233
117
  * @baseUrl http://localhost:8080
234
118
  * @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
235
119
  */
236
- var Api = /** @class */ (function (_super) {
237
- __extends(Api, _super);
238
- function Api() {
239
- var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
240
- _this.contactUs = {
120
+ class Api extends HttpClient {
121
+ constructor() {
122
+ super(...arguments);
123
+ this.contactUs = {
241
124
  /**
242
125
  * @description This endpoint allows users to submit a contact form with their name, email, and comments. The form submission is processed and an email is sent to the admin recipient specified in the tenant configuration.
243
126
  *
@@ -247,12 +130,16 @@ var Api = /** @class */ (function (_super) {
247
130
  * @request POST:/contactUs
248
131
  * @secure
249
132
  */
250
- listContactUs: function (data, params) {
251
- if (params === void 0) { params = {}; }
252
- return _this.request(__assign({ path: "/contactUs", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
253
- },
133
+ listContactUs: (data, params = {}) => this.request({
134
+ path: `/contactUs`,
135
+ method: 'POST',
136
+ body: data,
137
+ secure: true,
138
+ type: ContentType.Json,
139
+ ...params,
140
+ }),
254
141
  };
255
- _this.customer = {
142
+ this.customer = {
256
143
  /**
257
144
  * @description Retrieve config from customer.
258
145
  *
@@ -262,10 +149,12 @@ var Api = /** @class */ (function (_super) {
262
149
  * @request GET:/customer/config
263
150
  * @secure
264
151
  */
265
- listConfig: function (params) {
266
- if (params === void 0) { params = {}; }
267
- return _this.request(__assign({ path: "/customer/config", method: 'GET', secure: true }, params));
268
- },
152
+ listConfig: (params = {}) => this.request({
153
+ path: `/customer/config`,
154
+ method: 'GET',
155
+ secure: true,
156
+ ...params,
157
+ }),
269
158
  /**
270
159
  * @description Retrieve user from customer.
271
160
  *
@@ -275,11 +164,14 @@ var Api = /** @class */ (function (_super) {
275
164
  * @request GET:/customer/user/{userID}
276
165
  * @secure
277
166
  */
278
- getUser: function (_a, params) {
279
- var userId = _a.userId, query = __rest(_a, ["userId"]);
280
- if (params === void 0) { params = {}; }
281
- return _this.request(__assign({ path: "/customer/user/".concat(userId), method: 'GET', query: query, secure: true, format: 'json' }, params));
282
- },
167
+ getUser: ({ userId, ...query }, params = {}) => this.request({
168
+ path: `/customer/user/${userId}`,
169
+ method: 'GET',
170
+ query: query,
171
+ secure: true,
172
+ format: 'json',
173
+ ...params,
174
+ }),
283
175
  /**
284
176
  * @description Retrieve user events from customer within a specified time range.
285
177
  *
@@ -289,13 +181,15 @@ var Api = /** @class */ (function (_super) {
289
181
  * @request GET:/customer/events/{startTime}/{endTime}
290
182
  * @secure
291
183
  */
292
- getEvents: function (_a, params) {
293
- var startTime = _a.startTime, endTime = _a.endTime, query = __rest(_a, ["startTime", "endTime"]);
294
- if (params === void 0) { params = {}; }
295
- return _this.request(__assign({ path: "/customer/events/".concat(startTime, "/").concat(endTime), method: 'GET', query: query, secure: true }, params));
296
- },
184
+ getEvents: ({ startTime, endTime, ...query }, params = {}) => this.request({
185
+ path: `/customer/events/${startTime}/${endTime}`,
186
+ method: 'GET',
187
+ query: query,
188
+ secure: true,
189
+ ...params,
190
+ }),
297
191
  };
298
- _this.tenant = {
192
+ this.tenant = {
299
193
  /**
300
194
  * @description Delete bridge
301
195
  *
@@ -305,10 +199,12 @@ var Api = /** @class */ (function (_super) {
305
199
  * @request DELETE:/tenant/org/{orgID}
306
200
  * @secure
307
201
  */
308
- deleteOrg: function (orgId, params) {
309
- if (params === void 0) { params = {}; }
310
- return _this.request(__assign({ path: "/tenant/org/".concat(orgId), method: 'DELETE', secure: true }, params));
311
- },
202
+ deleteOrg: (orgId, params = {}) => this.request({
203
+ path: `/tenant/org/${orgId}`,
204
+ method: 'DELETE',
205
+ secure: true,
206
+ ...params,
207
+ }),
312
208
  /**
313
209
  * @description Retrieve Affiliate Payments for the tenant.
314
210
  *
@@ -318,10 +214,13 @@ var Api = /** @class */ (function (_super) {
318
214
  * @request GET:/tenant/report/affiliate
319
215
  * @secure
320
216
  */
321
- listReportAffiliate: function (query, params) {
322
- if (params === void 0) { params = {}; }
323
- return _this.request(__assign({ path: "/tenant/report/affiliate", method: 'GET', query: query, secure: true }, params));
324
- },
217
+ listReportAffiliate: (query, params = {}) => this.request({
218
+ path: `/tenant/report/affiliate`,
219
+ method: 'GET',
220
+ query: query,
221
+ secure: true,
222
+ ...params,
223
+ }),
325
224
  /**
326
225
  * @description List users that achieved their designation and allow their data to be published.
327
226
  *
@@ -331,10 +230,12 @@ var Api = /** @class */ (function (_super) {
331
230
  * @request GET:/tenant/report/completedWithConsent
332
231
  * @secure
333
232
  */
334
- listReportCompletedWithConsent: function (params) {
335
- if (params === void 0) { params = {}; }
336
- return _this.request(__assign({ path: "/tenant/report/completedWithConsent", method: 'GET', secure: true }, params));
337
- },
233
+ listReportCompletedWithConsent: (params = {}) => this.request({
234
+ path: `/tenant/report/completedWithConsent`,
235
+ method: 'GET',
236
+ secure: true,
237
+ ...params,
238
+ }),
338
239
  /**
339
240
  * @description Retrieve pending applications for the tenant.
340
241
  *
@@ -344,10 +245,13 @@ var Api = /** @class */ (function (_super) {
344
245
  * @request GET:/tenant/pendingApplications
345
246
  * @secure
346
247
  */
347
- listPendingApplications: function (params) {
348
- if (params === void 0) { params = {}; }
349
- return _this.request(__assign({ path: "/tenant/pendingApplications", method: 'GET', secure: true, format: 'json' }, params));
350
- },
248
+ listPendingApplications: (params = {}) => this.request({
249
+ path: `/tenant/pendingApplications`,
250
+ method: 'GET',
251
+ secure: true,
252
+ format: 'json',
253
+ ...params,
254
+ }),
351
255
  /**
352
256
  * @description Retrieve pending approvals for the tenant.
353
257
  *
@@ -357,10 +261,13 @@ var Api = /** @class */ (function (_super) {
357
261
  * @request GET:/tenant/pendingApprovals
358
262
  * @secure
359
263
  */
360
- listPendingApprovals: function (params) {
361
- if (params === void 0) { params = {}; }
362
- return _this.request(__assign({ path: "/tenant/pendingApprovals", method: 'GET', secure: true, format: 'json' }, params));
363
- },
264
+ listPendingApprovals: (params = {}) => this.request({
265
+ path: `/tenant/pendingApprovals`,
266
+ method: 'GET',
267
+ secure: true,
268
+ format: 'json',
269
+ ...params,
270
+ }),
364
271
  /**
365
272
  * @description Retrieve config for the tenant.
366
273
  *
@@ -370,10 +277,12 @@ var Api = /** @class */ (function (_super) {
370
277
  * @request GET:/tenant/config
371
278
  * @secure
372
279
  */
373
- listConfig: function (params) {
374
- if (params === void 0) { params = {}; }
375
- return _this.request(__assign({ path: "/tenant/config", method: 'GET', secure: true }, params));
376
- },
280
+ listConfig: (params = {}) => this.request({
281
+ path: `/tenant/config`,
282
+ method: 'GET',
283
+ secure: true,
284
+ ...params,
285
+ }),
377
286
  /**
378
287
  * @description Export a report of applications based on the provided filters.
379
288
  *
@@ -383,10 +292,14 @@ var Api = /** @class */ (function (_super) {
383
292
  * @request POST:/tenant/report/applicationExport
384
293
  * @secure
385
294
  */
386
- createReportApplicationExport: function (data, params) {
387
- if (params === void 0) { params = {}; }
388
- return _this.request(__assign({ path: "/tenant/report/applicationExport", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
389
- },
295
+ createReportApplicationExport: (data, params = {}) => this.request({
296
+ path: `/tenant/report/applicationExport`,
297
+ method: 'POST',
298
+ body: data,
299
+ secure: true,
300
+ type: ContentType.Json,
301
+ ...params,
302
+ }),
390
303
  /**
391
304
  * @description Export a report of applications based on the provided filters.
392
305
  *
@@ -396,10 +309,14 @@ var Api = /** @class */ (function (_super) {
396
309
  * @request POST:/tenant/report/applicationStatus
397
310
  * @secure
398
311
  */
399
- listReportApplicationStatus: function (data, params) {
400
- if (params === void 0) { params = {}; }
401
- return _this.request(__assign({ path: "/tenant/report/applicationStatus", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
402
- },
312
+ listReportApplicationStatus: (data, params = {}) => this.request({
313
+ path: `/tenant/report/applicationStatus`,
314
+ method: 'POST',
315
+ body: data,
316
+ secure: true,
317
+ type: ContentType.Json,
318
+ ...params,
319
+ }),
403
320
  /**
404
321
  * @description Export a report of applications based on the provided filters.
405
322
  *
@@ -409,10 +326,14 @@ var Api = /** @class */ (function (_super) {
409
326
  * @request POST:/tenant/report/applicationsReport
410
327
  * @secure
411
328
  */
412
- createReportApplicationsReport: function (data, params) {
413
- if (params === void 0) { params = {}; }
414
- return _this.request(__assign({ path: "/tenant/report/applicationsReport", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
415
- },
329
+ createReportApplicationsReport: (data, params = {}) => this.request({
330
+ path: `/tenant/report/applicationsReport`,
331
+ method: 'POST',
332
+ body: data,
333
+ secure: true,
334
+ type: ContentType.Json,
335
+ ...params,
336
+ }),
416
337
  /**
417
338
  * @description This route allows you to post certificates email for the tenant.
418
339
  *
@@ -422,10 +343,14 @@ var Api = /** @class */ (function (_super) {
422
343
  * @request POST:/tenant/certificates/email
423
344
  * @secure
424
345
  */
425
- createCertificatesEmail: function (data, params) {
426
- if (params === void 0) { params = {}; }
427
- return _this.request(__assign({ path: "/tenant/certificates/email", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
428
- },
346
+ createCertificatesEmail: (data, params = {}) => this.request({
347
+ path: `/tenant/certificates/email`,
348
+ method: 'POST',
349
+ body: data,
350
+ secure: true,
351
+ type: ContentType.Json,
352
+ ...params,
353
+ }),
429
354
  /**
430
355
  * @description Generate a preview of the completed certifications report.
431
356
  *
@@ -435,10 +360,13 @@ var Api = /** @class */ (function (_super) {
435
360
  * @request POST:/tenant/report/completedCertifications/preview
436
361
  * @secure
437
362
  */
438
- createReportCompletedCertificationsPreview: function (query, params) {
439
- if (params === void 0) { params = {}; }
440
- return _this.request(__assign({ path: "/tenant/report/completedCertifications/preview", method: 'POST', query: query, secure: true }, params));
441
- },
363
+ createReportCompletedCertificationsPreview: (query, params = {}) => this.request({
364
+ path: `/tenant/report/completedCertifications/preview`,
365
+ method: 'POST',
366
+ query: query,
367
+ secure: true,
368
+ ...params,
369
+ }),
442
370
  /**
443
371
  * @description Generates the completed certifications report.
444
372
  *
@@ -448,10 +376,13 @@ var Api = /** @class */ (function (_super) {
448
376
  * @request POST:/tenant/report/completedCertifications
449
377
  * @secure
450
378
  */
451
- listReportCompletedCertifications: function (query, params) {
452
- if (params === void 0) { params = {}; }
453
- return _this.request(__assign({ path: "/tenant/report/completedCertifications", method: 'POST', query: query, secure: true }, params));
454
- },
379
+ listReportCompletedCertifications: (query, params = {}) => this.request({
380
+ path: `/tenant/report/completedCertifications`,
381
+ method: 'POST',
382
+ query: query,
383
+ secure: true,
384
+ ...params,
385
+ }),
455
386
  /**
456
387
  * @description Redeems a license for a user by product ID.
457
388
  *
@@ -461,10 +392,14 @@ var Api = /** @class */ (function (_super) {
461
392
  * @request POST:/tenant/license/redeem/{userID}
462
393
  * @secure
463
394
  */
464
- createLicenseRedeem: function (userId, data, params) {
465
- if (params === void 0) { params = {}; }
466
- return _this.request(__assign({ path: "/tenant/license/redeem/".concat(userId), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
467
- },
395
+ createLicenseRedeem: (userId, data, params = {}) => this.request({
396
+ path: `/tenant/license/redeem/${userId}`,
397
+ method: 'POST',
398
+ body: data,
399
+ secure: true,
400
+ type: ContentType.Json,
401
+ ...params,
402
+ }),
468
403
  /**
469
404
  * @description Generate a of the organization licenses report based on search filters.
470
405
  *
@@ -474,10 +409,14 @@ var Api = /** @class */ (function (_super) {
474
409
  * @request POST:/tenant/report/orglicenses/
475
410
  * @secure
476
411
  */
477
- listReportOrglicenses: function (data, params) {
478
- if (params === void 0) { params = {}; }
479
- return _this.request(__assign({ path: "/tenant/report/orglicenses/", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
480
- },
412
+ listReportOrglicenses: (data, params = {}) => this.request({
413
+ path: `/tenant/report/orglicenses/`,
414
+ method: 'POST',
415
+ body: data,
416
+ secure: true,
417
+ type: ContentType.Json,
418
+ ...params,
419
+ }),
481
420
  /**
482
421
  * @description Generate a preview of the organization licenses report based on search filters.
483
422
  *
@@ -487,10 +426,14 @@ var Api = /** @class */ (function (_super) {
487
426
  * @request POST:/tenant/report/orglicenses/preview
488
427
  * @secure
489
428
  */
490
- createReportOrglicensesPreview: function (data, params) {
491
- if (params === void 0) { params = {}; }
492
- return _this.request(__assign({ path: "/tenant/report/orglicenses/preview", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
493
- },
429
+ createReportOrglicensesPreview: (data, params = {}) => this.request({
430
+ path: `/tenant/report/orglicenses/preview`,
431
+ method: 'POST',
432
+ body: data,
433
+ secure: true,
434
+ type: ContentType.Json,
435
+ ...params,
436
+ }),
494
437
  /**
495
438
  * @description Custom NCSO specific export containing certification information for NCSO users.
496
439
  *
@@ -500,10 +443,15 @@ var Api = /** @class */ (function (_super) {
500
443
  * @request POST:/tenant/report/ncsoReport/export
501
444
  * @secure
502
445
  */
503
- createReportNcsoReportExport: function (data, params) {
504
- if (params === void 0) { params = {}; }
505
- return _this.request(__assign({ path: "/tenant/report/ncsoReport/export", method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
506
- },
446
+ createReportNcsoReportExport: (data, params = {}) => this.request({
447
+ path: `/tenant/report/ncsoReport/export`,
448
+ method: 'POST',
449
+ body: data,
450
+ secure: true,
451
+ type: ContentType.Json,
452
+ format: 'json',
453
+ ...params,
454
+ }),
507
455
  /**
508
456
  * @description Custom NCSO specific export containing certification information for NCSO users.
509
457
  *
@@ -513,10 +461,15 @@ var Api = /** @class */ (function (_super) {
513
461
  * @request POST:/tenant/report/ncsoReport
514
462
  * @secure
515
463
  */
516
- createReportNcsoReport: function (data, params) {
517
- if (params === void 0) { params = {}; }
518
- return _this.request(__assign({ path: "/tenant/report/ncsoReport", method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
519
- },
464
+ createReportNcsoReport: (data, params = {}) => this.request({
465
+ path: `/tenant/report/ncsoReport`,
466
+ method: 'POST',
467
+ body: data,
468
+ secure: true,
469
+ type: ContentType.Json,
470
+ format: 'json',
471
+ ...params,
472
+ }),
520
473
  /**
521
474
  * @description Advanced search for users in the tenant by filters, with report generation.
522
475
  *
@@ -526,10 +479,14 @@ var Api = /** @class */ (function (_super) {
526
479
  * @request POST:/tenant/report/users/advanced
527
480
  * @secure
528
481
  */
529
- createReportUsersAdvanced: function (data, params) {
530
- if (params === void 0) { params = {}; }
531
- return _this.request(__assign({ path: "/tenant/report/users/advanced", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
532
- },
482
+ createReportUsersAdvanced: (data, params = {}) => this.request({
483
+ path: `/tenant/report/users/advanced`,
484
+ method: 'POST',
485
+ body: data,
486
+ secure: true,
487
+ type: ContentType.Json,
488
+ ...params,
489
+ }),
533
490
  /**
534
491
  * @description Searches for users in the tenant by their IDs.
535
492
  *
@@ -539,10 +496,14 @@ var Api = /** @class */ (function (_super) {
539
496
  * @request POST:/tenant/search/users/ids
540
497
  * @secure
541
498
  */
542
- listSearchUsersIds: function (data, params) {
543
- if (params === void 0) { params = {}; }
544
- return _this.request(__assign({ path: "/tenant/search/users/ids", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
545
- },
499
+ listSearchUsersIds: (data, params = {}) => this.request({
500
+ path: `/tenant/search/users/ids`,
501
+ method: 'POST',
502
+ body: data,
503
+ secure: true,
504
+ type: ContentType.Json,
505
+ ...params,
506
+ }),
546
507
  /**
547
508
  * @description Searches for users in the tenant by term and filters.
548
509
  *
@@ -552,10 +513,14 @@ var Api = /** @class */ (function (_super) {
552
513
  * @request POST:/tenant/search/users/term
553
514
  * @secure
554
515
  */
555
- createSearchUsersTerm: function (data, params) {
556
- if (params === void 0) { params = {}; }
557
- return _this.request(__assign({ path: "/tenant/search/users/term", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
558
- },
516
+ createSearchUsersTerm: (data, params = {}) => this.request({
517
+ path: `/tenant/search/users/term`,
518
+ method: 'POST',
519
+ body: data,
520
+ secure: true,
521
+ type: ContentType.Json,
522
+ ...params,
523
+ }),
559
524
  /**
560
525
  * @description Simple search for users in the tenant by term and filters, with report generation.
561
526
  *
@@ -565,10 +530,14 @@ var Api = /** @class */ (function (_super) {
565
530
  * @request POST:/tenant/report/users/simple
566
531
  * @secure
567
532
  */
568
- createReportUsersSimple: function (data, params) {
569
- if (params === void 0) { params = {}; }
570
- return _this.request(__assign({ path: "/tenant/report/users/simple", method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
571
- },
533
+ createReportUsersSimple: (data, params = {}) => this.request({
534
+ path: `/tenant/report/users/simple`,
535
+ method: 'POST',
536
+ body: data,
537
+ secure: true,
538
+ type: ContentType.Json,
539
+ ...params,
540
+ }),
572
541
  /**
573
542
  * @description Retrieve user by ID.
574
543
  *
@@ -578,12 +547,15 @@ var Api = /** @class */ (function (_super) {
578
547
  * @request POST:/tenant/search/users/count
579
548
  * @secure
580
549
  */
581
- createSearchUsersCount: function (params) {
582
- if (params === void 0) { params = {}; }
583
- return _this.request(__assign({ path: "/tenant/search/users/count", method: 'POST', secure: true, format: 'json' }, params));
584
- },
550
+ createSearchUsersCount: (params = {}) => this.request({
551
+ path: `/tenant/search/users/count`,
552
+ method: 'POST',
553
+ secure: true,
554
+ format: 'json',
555
+ ...params,
556
+ }),
585
557
  };
586
- _this.user = {
558
+ this.user = {
587
559
  /**
588
560
  * @description This route allows you to acknowledge a pre approval review for a certification application for a user. This is used to acknowledge the decision made during the pre approval review.
589
561
  *
@@ -593,10 +565,12 @@ var Api = /** @class */ (function (_super) {
593
565
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/acknowledge
594
566
  * @secure
595
567
  */
596
- createCertificationApplicationAcknowledge: function (userId, certProcId, applicationType, params) {
597
- if (params === void 0) { params = {}; }
598
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/acknowledge"), method: 'POST', secure: true }, params));
599
- },
568
+ createCertificationApplicationAcknowledge: (userId, certProcId, applicationType, params = {}) => this.request({
569
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/acknowledge`,
570
+ method: 'POST',
571
+ secure: true,
572
+ ...params,
573
+ }),
600
574
  /**
601
575
  * @description Delete application item by type.
602
576
  *
@@ -606,10 +580,12 @@ var Api = /** @class */ (function (_super) {
606
580
  * @request DELETE:/user/{userID}/certification/{certProcID}/application/{applicationType}/item/{sourceID}
607
581
  * @secure
608
582
  */
609
- deleteCertificationApplicationItem: function (userId, certProcId, applicationType, sourceId, params) {
610
- if (params === void 0) { params = {}; }
611
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/item/").concat(sourceId), method: 'DELETE', secure: true }, params));
612
- },
583
+ deleteCertificationApplicationItem: (userId, certProcId, applicationType, sourceId, params = {}) => this.request({
584
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/item/${sourceId}`,
585
+ method: 'DELETE',
586
+ secure: true,
587
+ ...params,
588
+ }),
613
589
  /**
614
590
  * @description This route allows you to add an item to a certification application for a user.
615
591
  *
@@ -619,10 +595,14 @@ var Api = /** @class */ (function (_super) {
619
595
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/item/{sourceID}
620
596
  * @secure
621
597
  */
622
- createCertificationApplicationItem: function (userId, certProcId, applicationType, sourceId, data, params) {
623
- if (params === void 0) { params = {}; }
624
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/item/").concat(sourceId), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
625
- },
598
+ createCertificationApplicationItem: (userId, certProcId, applicationType, sourceId, data, params = {}) => this.request({
599
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/item/${sourceId}`,
600
+ method: 'POST',
601
+ body: data,
602
+ secure: true,
603
+ type: ContentType.Json,
604
+ ...params,
605
+ }),
626
606
  /**
627
607
  * @description Delete a certification process application by type.
628
608
  *
@@ -632,10 +612,12 @@ var Api = /** @class */ (function (_super) {
632
612
  * @request DELETE:/user/{userID}/certification/{certProcID}/application/{applicationType}/blacklist/{sourceID}
633
613
  * @secure
634
614
  */
635
- deleteCertificationApplicationBlacklist: function (userId, certProcId, applicationType, sourceId, params) {
636
- if (params === void 0) { params = {}; }
637
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/blacklist/").concat(sourceId), method: 'DELETE', secure: true }, params));
638
- },
615
+ deleteCertificationApplicationBlacklist: (userId, certProcId, applicationType, sourceId, params = {}) => this.request({
616
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/blacklist/${sourceId}`,
617
+ method: 'DELETE',
618
+ secure: true,
619
+ ...params,
620
+ }),
639
621
  /**
640
622
  * @description Delete certification process by user and certproc IDs.
641
623
  *
@@ -645,10 +627,12 @@ var Api = /** @class */ (function (_super) {
645
627
  * @request DELETE:/user/{userID}/certification/{certProcID}
646
628
  * @secure
647
629
  */
648
- deleteCertification: function (userId, certProcId, params) {
649
- if (params === void 0) { params = {}; }
650
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId), method: 'DELETE', secure: true }, params));
651
- },
630
+ deleteCertification: (userId, certProcId, params = {}) => this.request({
631
+ path: `/user/${userId}/certification/${certProcId}`,
632
+ method: 'DELETE',
633
+ secure: true,
634
+ ...params,
635
+ }),
652
636
  /**
653
637
  * @description Retrieve course for a user by their user ID.
654
638
  *
@@ -658,10 +642,13 @@ var Api = /** @class */ (function (_super) {
658
642
  * @request GET:/user/{userID}/certification/{certProcID}
659
643
  * @secure
660
644
  */
661
- getCertification: function (userId, certProcId, params) {
662
- if (params === void 0) { params = {}; }
663
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId), method: 'GET', secure: true, format: 'json' }, params));
664
- },
645
+ getCertification: (userId, certProcId, params = {}) => this.request({
646
+ path: `/user/${userId}/certification/${certProcId}`,
647
+ method: 'GET',
648
+ secure: true,
649
+ format: 'json',
650
+ ...params,
651
+ }),
665
652
  /**
666
653
  * @description This route allows you to start a certification process for a user.
667
654
  *
@@ -671,10 +658,12 @@ var Api = /** @class */ (function (_super) {
671
658
  * @request POST:/user/{userID}/certification/{certProcID}
672
659
  * @secure
673
660
  */
674
- createCertification: function (userId, certProcId, params) {
675
- if (params === void 0) { params = {}; }
676
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId), method: 'POST', secure: true }, params));
677
- },
661
+ createCertification: (userId, certProcId, params = {}) => this.request({
662
+ path: `/user/${userId}/certification/${certProcId}`,
663
+ method: 'POST',
664
+ secure: true,
665
+ ...params,
666
+ }),
678
667
  /**
679
668
  * @description Delete a certification process application by type.
680
669
  *
@@ -684,10 +673,12 @@ var Api = /** @class */ (function (_super) {
684
673
  * @request DELETE:/user/{userID}/certification/{certProcID}/application/{applicationType}
685
674
  * @secure
686
675
  */
687
- deleteCertificationApplication: function (userId, certProcId, applicationType, params) {
688
- if (params === void 0) { params = {}; }
689
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType), method: 'DELETE', secure: true }, params));
690
- },
676
+ deleteCertificationApplication: (userId, certProcId, applicationType, params = {}) => this.request({
677
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}`,
678
+ method: 'DELETE',
679
+ secure: true,
680
+ ...params,
681
+ }),
691
682
  /**
692
683
  * @description Get certification process application by type.
693
684
  *
@@ -697,10 +688,13 @@ var Api = /** @class */ (function (_super) {
697
688
  * @request GET:/user/{userID}/certification/{certProcID}/application/{applicationType}
698
689
  * @secure
699
690
  */
700
- getCertificationApplication: function (userId, certProcId, applicationType, params) {
701
- if (params === void 0) { params = {}; }
702
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType), method: 'GET', secure: true, format: 'json' }, params));
703
- },
691
+ getCertificationApplication: (userId, certProcId, applicationType, params = {}) => this.request({
692
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}`,
693
+ method: 'GET',
694
+ secure: true,
695
+ format: 'json',
696
+ ...params,
697
+ }),
704
698
  /**
705
699
  * @description Start certification process application by type.
706
700
  *
@@ -710,10 +704,12 @@ var Api = /** @class */ (function (_super) {
710
704
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}
711
705
  * @secure
712
706
  */
713
- createCertificationApplication: function (userId, certProcId, applicationType, params) {
714
- if (params === void 0) { params = {}; }
715
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType), method: 'POST', secure: true }, params));
716
- },
707
+ createCertificationApplication: (userId, certProcId, applicationType, params = {}) => this.request({
708
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}`,
709
+ method: 'POST',
710
+ secure: true,
711
+ ...params,
712
+ }),
717
713
  /**
718
714
  * @description Delete course file for a user by IDs.
719
715
  *
@@ -723,10 +719,12 @@ var Api = /** @class */ (function (_super) {
723
719
  * @request DELETE:/user/{userID}/certification/{certProcID}/course/{courseID}/fileSign/{fileID}
724
720
  * @secure
725
721
  */
726
- deleteCertificationCourseFileSign: function (userId, certProcId, courseId, fileId, params) {
727
- if (params === void 0) { params = {}; }
728
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/fileSign/").concat(fileId), method: 'DELETE', secure: true }, params));
729
- },
722
+ deleteCertificationCourseFileSign: (userId, certProcId, courseId, fileId, params = {}) => this.request({
723
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/fileSign/${fileId}`,
724
+ method: 'DELETE',
725
+ secure: true,
726
+ ...params,
727
+ }),
730
728
  /**
731
729
  * @description Retrieve course file for a user by IDs.
732
730
  *
@@ -736,10 +734,13 @@ var Api = /** @class */ (function (_super) {
736
734
  * @request GET:/user/{userID}/certification/{certProcID}/course/{courseID}/fileSign/{fileID}
737
735
  * @secure
738
736
  */
739
- getCertificationCourseFileSign: function (userId, certProcId, courseId, fileId, params) {
740
- if (params === void 0) { params = {}; }
741
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/fileSign/").concat(fileId), method: 'GET', secure: true, format: 'json' }, params));
742
- },
737
+ getCertificationCourseFileSign: (userId, certProcId, courseId, fileId, params = {}) => this.request({
738
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/fileSign/${fileId}`,
739
+ method: 'GET',
740
+ secure: true,
741
+ format: 'json',
742
+ ...params,
743
+ }),
743
744
  /**
744
745
  * @description This route allows you to create a signed URL for a course file for a user in a specific course.
745
746
  *
@@ -749,11 +750,14 @@ var Api = /** @class */ (function (_super) {
749
750
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/fileSign/{fileID}
750
751
  * @secure
751
752
  */
752
- createCertificationCourseFileSign: function (_a, params) {
753
- var userId = _a.userId, certProcId = _a.certProcId, courseId = _a.courseId, fileId = _a.fileId, query = __rest(_a, ["userId", "certProcId", "courseId", "fileId"]);
754
- if (params === void 0) { params = {}; }
755
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/fileSign/").concat(fileId), method: 'POST', query: query, secure: true, format: 'json' }, params));
756
- },
753
+ createCertificationCourseFileSign: ({ userId, certProcId, courseId, fileId, ...query }, params = {}) => this.request({
754
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/fileSign/${fileId}`,
755
+ method: 'POST',
756
+ query: query,
757
+ secure: true,
758
+ format: 'json',
759
+ ...params,
760
+ }),
757
761
  /**
758
762
  * @description Delete submission item (file) for a user in a course by IDs.
759
763
  *
@@ -763,10 +767,12 @@ var Api = /** @class */ (function (_super) {
763
767
  * @request DELETE:/user/{userID}/certification/{certProcID}/course/{courseID}/document/{fileID}
764
768
  * @secure
765
769
  */
766
- deleteCertificationCourseDocument: function (userId, certProcId, courseId, fileId, params) {
767
- if (params === void 0) { params = {}; }
768
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/document/").concat(fileId), method: 'DELETE', secure: true }, params));
769
- },
770
+ deleteCertificationCourseDocument: (userId, certProcId, courseId, fileId, params = {}) => this.request({
771
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/document/${fileId}`,
772
+ method: 'DELETE',
773
+ secure: true,
774
+ ...params,
775
+ }),
770
776
  /**
771
777
  * @description This route allows you to set or override a course submission item (file) for a user in a specific course.
772
778
  *
@@ -776,10 +782,15 @@ var Api = /** @class */ (function (_super) {
776
782
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/document/{fileID}
777
783
  * @secure
778
784
  */
779
- createCertificationCourseDocument: function (userId, certProcId, courseId, fileId, data, params) {
780
- if (params === void 0) { params = {}; }
781
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/document/").concat(fileId), method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
782
- },
785
+ createCertificationCourseDocument: (userId, certProcId, courseId, fileId, data, params = {}) => this.request({
786
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/document/${fileId}`,
787
+ method: 'POST',
788
+ body: data,
789
+ secure: true,
790
+ type: ContentType.Json,
791
+ format: 'json',
792
+ ...params,
793
+ }),
783
794
  /**
784
795
  * @description Delete user by ID.
785
796
  *
@@ -789,10 +800,12 @@ var Api = /** @class */ (function (_super) {
789
800
  * @request DELETE:/user/{userID}
790
801
  * @secure
791
802
  */
792
- deleteUser: function (userId, params) {
793
- if (params === void 0) { params = {}; }
794
- return _this.request(__assign({ path: "/user/".concat(userId), method: 'DELETE', secure: true }, params));
795
- },
803
+ deleteUser: (userId, params = {}) => this.request({
804
+ path: `/user/${userId}`,
805
+ method: 'DELETE',
806
+ secure: true,
807
+ ...params,
808
+ }),
796
809
  /**
797
810
  * @description Retrieve user by ID.
798
811
  *
@@ -802,10 +815,13 @@ var Api = /** @class */ (function (_super) {
802
815
  * @request GET:/user/{userID}
803
816
  * @secure
804
817
  */
805
- getUser: function (userId, params) {
806
- if (params === void 0) { params = {}; }
807
- return _this.request(__assign({ path: "/user/".concat(userId), method: 'GET', secure: true, format: 'json' }, params));
808
- },
818
+ getUser: (userId, params = {}) => this.request({
819
+ path: `/user/${userId}`,
820
+ method: 'GET',
821
+ secure: true,
822
+ format: 'json',
823
+ ...params,
824
+ }),
809
825
  /**
810
826
  * @description Create a new user in the system. This endpoint allows you to create a user with the provided details. The user will be added to the database and an email notification will be sent to the user.
811
827
  *
@@ -815,10 +831,14 @@ var Api = /** @class */ (function (_super) {
815
831
  * @request POST:/user/{userID}
816
832
  * @secure
817
833
  */
818
- createUser: function (userId, data, params) {
819
- if (params === void 0) { params = {}; }
820
- return _this.request(__assign({ path: "/user/".concat(userId), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
821
- },
834
+ createUser: (userId, data, params = {}) => this.request({
835
+ path: `/user/${userId}`,
836
+ method: 'POST',
837
+ body: data,
838
+ secure: true,
839
+ type: ContentType.Json,
840
+ ...params,
841
+ }),
822
842
  /**
823
843
  * @description Update user in the system. This endpoint allows you to update a user with the provided details. The user will be updated to the database and an email notification will be sent to the user.
824
844
  *
@@ -828,10 +848,14 @@ var Api = /** @class */ (function (_super) {
828
848
  * @request PUT:/user/{userID}
829
849
  * @secure
830
850
  */
831
- updateUser: function (userId, data, params) {
832
- if (params === void 0) { params = {}; }
833
- return _this.request(__assign({ path: "/user/".concat(userId), method: 'PUT', body: data, secure: true, type: ContentType.Json }, params));
834
- },
851
+ updateUser: (userId, data, params = {}) => this.request({
852
+ path: `/user/${userId}`,
853
+ method: 'PUT',
854
+ body: data,
855
+ secure: true,
856
+ type: ContentType.Json,
857
+ ...params,
858
+ }),
835
859
  /**
836
860
  * @description Delete course from user
837
861
  *
@@ -841,10 +865,12 @@ var Api = /** @class */ (function (_super) {
841
865
  * @request DELETE:/user/{userID}/certification/{certProcID}/course/{courseID}
842
866
  * @secure
843
867
  */
844
- deleteCertificationCourse: function (userId, certProcId, courseId, params) {
845
- if (params === void 0) { params = {}; }
846
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId), method: 'DELETE', secure: true }, params));
847
- },
868
+ deleteCertificationCourse: (userId, certProcId, courseId, params = {}) => this.request({
869
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}`,
870
+ method: 'DELETE',
871
+ secure: true,
872
+ ...params,
873
+ }),
848
874
  /**
849
875
  * @description Generate a signed url to download a specific file version of an application item for a user in a certification process.
850
876
  *
@@ -854,10 +880,13 @@ var Api = /** @class */ (function (_super) {
854
880
  * @request GET:/user/{userID}/certification/{certProcID}/applicationItem/{sourceID}/file/{fileVersion}
855
881
  * @secure
856
882
  */
857
- getCertificationApplicationItemFile: function (userId, certProcId, sourceId, fileVersion, params) {
858
- if (params === void 0) { params = {}; }
859
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/applicationItem/").concat(sourceId, "/file/").concat(fileVersion), method: 'GET', secure: true, format: 'json' }, params));
860
- },
883
+ getCertificationApplicationItemFile: (userId, certProcId, sourceId, fileVersion, params = {}) => this.request({
884
+ path: `/user/${userId}/certification/${certProcId}/applicationItem/${sourceId}/file/${fileVersion}`,
885
+ method: 'GET',
886
+ secure: true,
887
+ format: 'json',
888
+ ...params,
889
+ }),
861
890
  /**
862
891
  * @description Generate a signed URL for uploading a specific file version of an application item for a user in a certification process.
863
892
  *
@@ -867,11 +896,14 @@ var Api = /** @class */ (function (_super) {
867
896
  * @request POST:/user/{userID}/certification/{certProcID}/applicationItem/{sourceID}/file/{fileVersion}
868
897
  * @secure
869
898
  */
870
- createCertificationApplicationItemFile: function (_a, params) {
871
- var userId = _a.userId, certProcId = _a.certProcId, sourceId = _a.sourceId, fileVersion = _a.fileVersion, query = __rest(_a, ["userId", "certProcId", "sourceId", "fileVersion"]);
872
- if (params === void 0) { params = {}; }
873
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/applicationItem/").concat(sourceId, "/file/").concat(fileVersion), method: 'POST', query: query, secure: true, format: 'json' }, params));
874
- },
899
+ createCertificationApplicationItemFile: ({ userId, certProcId, sourceId, fileVersion, ...query }, params = {}) => this.request({
900
+ path: `/user/${userId}/certification/${certProcId}/applicationItem/${sourceId}/file/${fileVersion}`,
901
+ method: 'POST',
902
+ query: query,
903
+ secure: true,
904
+ format: 'json',
905
+ ...params,
906
+ }),
875
907
  /**
876
908
  * @description Retrieve the cancelation charges for a course based on the user, session, and course details.
877
909
  *
@@ -881,10 +913,13 @@ var Api = /** @class */ (function (_super) {
881
913
  * @request GET:/user/{userID}/certification/{certProcID}/course/{courseID}/session/{sessionID}/calcCancelationCharges
882
914
  * @secure
883
915
  */
884
- getCertificationCourseSessionCalcCancelationCharges: function (userId, certProcId, courseId, sessionId, params) {
885
- if (params === void 0) { params = {}; }
886
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/session/").concat(sessionId, "/calcCancelationCharges"), method: 'GET', secure: true, format: 'json' }, params));
887
- },
916
+ getCertificationCourseSessionCalcCancelationCharges: (userId, certProcId, courseId, sessionId, params = {}) => this.request({
917
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/session/${sessionId}/calcCancelationCharges`,
918
+ method: 'GET',
919
+ secure: true,
920
+ format: 'json',
921
+ ...params,
922
+ }),
888
923
  /**
889
924
  * @description Retrieves the certification processes for a user by their user ID.
890
925
  *
@@ -894,10 +929,13 @@ var Api = /** @class */ (function (_super) {
894
929
  * @request GET:/user/{userID}/certifications
895
930
  * @secure
896
931
  */
897
- getCertifications: function (userId, params) {
898
- if (params === void 0) { params = {}; }
899
- return _this.request(__assign({ path: "/user/".concat(userId, "/certifications"), method: 'GET', secure: true, format: 'json' }, params));
900
- },
932
+ getCertifications: (userId, params = {}) => this.request({
933
+ path: `/user/${userId}/certifications`,
934
+ method: 'GET',
935
+ secure: true,
936
+ format: 'json',
937
+ ...params,
938
+ }),
901
939
  /**
902
940
  * @description Retrieve course for a user by their user ID and courseID (cpID::examID).
903
941
  *
@@ -907,10 +945,13 @@ var Api = /** @class */ (function (_super) {
907
945
  * @request GET:/user/{userID}/course/{courseID}
908
946
  * @secure
909
947
  */
910
- getCourse: function (userId, courseId, params) {
911
- if (params === void 0) { params = {}; }
912
- return _this.request(__assign({ path: "/user/".concat(userId, "/course/").concat(courseId), method: 'GET', secure: true, format: 'json' }, params));
913
- },
948
+ getCourse: (userId, courseId, params = {}) => this.request({
949
+ path: `/user/${userId}/course/${courseId}`,
950
+ method: 'GET',
951
+ secure: true,
952
+ format: 'json',
953
+ ...params,
954
+ }),
914
955
  /**
915
956
  * @description Retrieves the certification processes expanded for a user by their user ID.
916
957
  *
@@ -920,10 +961,13 @@ var Api = /** @class */ (function (_super) {
920
961
  * @request GET:/user/{userID}/certifications/expanded
921
962
  * @secure
922
963
  */
923
- getCertificationsExpanded: function (userId, params) {
924
- if (params === void 0) { params = {}; }
925
- return _this.request(__assign({ path: "/user/".concat(userId, "/certifications/expanded"), method: 'GET', secure: true, format: 'json' }, params));
926
- },
964
+ getCertificationsExpanded: (userId, params = {}) => this.request({
965
+ path: `/user/${userId}/certifications/expanded`,
966
+ method: 'GET',
967
+ secure: true,
968
+ format: 'json',
969
+ ...params,
970
+ }),
927
971
  /**
928
972
  * @description Get certification process application by type.
929
973
  *
@@ -933,10 +977,13 @@ var Api = /** @class */ (function (_super) {
933
977
  * @request GET:/user/{userID}/certification/{certProcID}/application/{applicationType}/foreignFill
934
978
  * @secure
935
979
  */
936
- getCertificationApplicationForeignFill: function (userId, certProcId, applicationType, params) {
937
- if (params === void 0) { params = {}; }
938
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/foreignFill"), method: 'GET', secure: true, format: 'json' }, params));
939
- },
980
+ getCertificationApplicationForeignFill: (userId, certProcId, applicationType, params = {}) => this.request({
981
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/foreignFill`,
982
+ method: 'GET',
983
+ secure: true,
984
+ format: 'json',
985
+ ...params,
986
+ }),
940
987
  /**
941
988
  * @description This endpoint will print certificate
942
989
  *
@@ -946,10 +993,12 @@ var Api = /** @class */ (function (_super) {
946
993
  * @request GET:/user/{userID}/certification/{certProcID}/print
947
994
  * @secure
948
995
  */
949
- getCertificationPrint: function (userId, certProcId, params) {
950
- if (params === void 0) { params = {}; }
951
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/print"), method: 'GET', secure: true }, params));
952
- },
996
+ getCertificationPrint: (userId, certProcId, params = {}) => this.request({
997
+ path: `/user/${userId}/certification/${certProcId}/print`,
998
+ method: 'GET',
999
+ secure: true,
1000
+ ...params,
1001
+ }),
953
1002
  /**
954
1003
  * @description This endpoint will print course
955
1004
  *
@@ -959,10 +1008,12 @@ var Api = /** @class */ (function (_super) {
959
1008
  * @request GET:/user/{userID}/certification/{certProcID}/course/{courseID}/print
960
1009
  * @secure
961
1010
  */
962
- getCertificationCoursePrint: function (userId, certProcId, courseId, params) {
963
- if (params === void 0) { params = {}; }
964
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/print"), method: 'GET', secure: true }, params));
965
- },
1011
+ getCertificationCoursePrint: (userId, certProcId, courseId, params = {}) => this.request({
1012
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/print`,
1013
+ method: 'GET',
1014
+ secure: true,
1015
+ ...params,
1016
+ }),
966
1017
  /**
967
1018
  * @description Returns the requirement status (e.g. student history) for a given user and source (e.g. course)
968
1019
  *
@@ -972,10 +1023,13 @@ var Api = /** @class */ (function (_super) {
972
1023
  * @request GET:/user/{userID}/requirement/{sourceID}
973
1024
  * @secure
974
1025
  */
975
- getRequirement: function (userId, sourceId, params) {
976
- if (params === void 0) { params = {}; }
977
- return _this.request(__assign({ path: "/user/".concat(userId, "/requirement/").concat(sourceId), method: 'GET', secure: true, format: 'json' }, params));
978
- },
1026
+ getRequirement: (userId, sourceId, params = {}) => this.request({
1027
+ path: `/user/${userId}/requirement/${sourceId}`,
1028
+ method: 'GET',
1029
+ secure: true,
1030
+ format: 'json',
1031
+ ...params,
1032
+ }),
979
1033
  /**
980
1034
  * @description Retrieves the upcoming courses for a user by their user ID.
981
1035
  *
@@ -985,10 +1039,13 @@ var Api = /** @class */ (function (_super) {
985
1039
  * @request GET:/user/{userID}/certifications/upcomingCourses
986
1040
  * @secure
987
1041
  */
988
- getCertificationsUpcomingCourses: function (userId, params) {
989
- if (params === void 0) { params = {}; }
990
- return _this.request(__assign({ path: "/user/".concat(userId, "/certifications/upcomingCourses"), method: 'GET', secure: true, format: 'json' }, params));
991
- },
1042
+ getCertificationsUpcomingCourses: (userId, params = {}) => this.request({
1043
+ path: `/user/${userId}/certifications/upcomingCourses`,
1044
+ method: 'GET',
1045
+ secure: true,
1046
+ format: 'json',
1047
+ ...params,
1048
+ }),
992
1049
  /**
993
1050
  * @description Retrieve user data from IDM including user profile and partition data. Uses API credentials for full read access.
994
1051
  *
@@ -998,10 +1055,13 @@ var Api = /** @class */ (function (_super) {
998
1055
  * @request GET:/user/{userID}/userData
999
1056
  * @secure
1000
1057
  */
1001
- getUserData: function (userId, params) {
1002
- if (params === void 0) { params = {}; }
1003
- return _this.request(__assign({ path: "/user/".concat(userId, "/userData"), method: 'GET', secure: true, format: 'json' }, params));
1004
- },
1058
+ getUserData: (userId, params = {}) => this.request({
1059
+ path: `/user/${userId}/userData`,
1060
+ method: 'GET',
1061
+ secure: true,
1062
+ format: 'json',
1063
+ ...params,
1064
+ }),
1005
1065
  /**
1006
1066
  * @description This route indicates users should not be able to advance or make changes to applications in this certification.
1007
1067
  *
@@ -1011,10 +1071,14 @@ var Api = /** @class */ (function (_super) {
1011
1071
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/lock
1012
1072
  * @secure
1013
1073
  */
1014
- createCertificationApplicationLock: function (userId, certProcId, applicationType, data, params) {
1015
- if (params === void 0) { params = {}; }
1016
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/lock"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1017
- },
1074
+ createCertificationApplicationLock: (userId, certProcId, applicationType, data, params = {}) => this.request({
1075
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/lock`,
1076
+ method: 'POST',
1077
+ body: data,
1078
+ secure: true,
1079
+ type: ContentType.Json,
1080
+ ...params,
1081
+ }),
1018
1082
  /**
1019
1083
  * @description This endpoint allows you to add a user to a session in a certification process. It requires the user ID, certification process ID, secondary user ID, course ID, and session ID as path parameters.
1020
1084
  *
@@ -1024,10 +1088,12 @@ var Api = /** @class */ (function (_super) {
1024
1088
  * @request POST:/user/{userID}/session/{sessionID}/add
1025
1089
  * @secure
1026
1090
  */
1027
- createSessionAdd: function (userId, sessionId, params) {
1028
- if (params === void 0) { params = {}; }
1029
- return _this.request(__assign({ path: "/user/".concat(userId, "/session/").concat(sessionId, "/add"), method: 'POST', secure: true }, params));
1030
- },
1091
+ createSessionAdd: (userId, sessionId, params = {}) => this.request({
1092
+ path: `/user/${userId}/session/${sessionId}/add`,
1093
+ method: 'POST',
1094
+ secure: true,
1095
+ ...params,
1096
+ }),
1031
1097
  /**
1032
1098
  * @description This route allows a user to request pre-approval for an application type in a certification process.
1033
1099
  *
@@ -1037,10 +1103,12 @@ var Api = /** @class */ (function (_super) {
1037
1103
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/preApproval
1038
1104
  * @secure
1039
1105
  */
1040
- createCertificationApplicationPreApproval: function (userId, certProcId, applicationType, params) {
1041
- if (params === void 0) { params = {}; }
1042
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/preApproval"), method: 'POST', secure: true }, params));
1043
- },
1106
+ createCertificationApplicationPreApproval: (userId, certProcId, applicationType, params = {}) => this.request({
1107
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/preApproval`,
1108
+ method: 'POST',
1109
+ secure: true,
1110
+ ...params,
1111
+ }),
1044
1112
  /**
1045
1113
  * @description This route allows you to review a certification application for a user.
1046
1114
  *
@@ -1050,10 +1118,14 @@ var Api = /** @class */ (function (_super) {
1050
1118
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/review
1051
1119
  * @secure
1052
1120
  */
1053
- createCertificationApplicationReview: function (userId, certProcId, applicationType, data, params) {
1054
- if (params === void 0) { params = {}; }
1055
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/review"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1056
- },
1121
+ createCertificationApplicationReview: (userId, certProcId, applicationType, data, params = {}) => this.request({
1122
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/review`,
1123
+ method: 'POST',
1124
+ body: data,
1125
+ secure: true,
1126
+ type: ContentType.Json,
1127
+ ...params,
1128
+ }),
1057
1129
  /**
1058
1130
  * @description This route allows you to pre approval review a certification application for a user. This is used to review applications before they are submitted for final approval.
1059
1131
  *
@@ -1063,10 +1135,14 @@ var Api = /** @class */ (function (_super) {
1063
1135
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/preApprovalReview
1064
1136
  * @secure
1065
1137
  */
1066
- createCertificationApplicationPreApprovalReview: function (userId, certProcId, applicationType, data, params) {
1067
- if (params === void 0) { params = {}; }
1068
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/preApprovalReview"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1069
- },
1138
+ createCertificationApplicationPreApprovalReview: (userId, certProcId, applicationType, data, params = {}) => this.request({
1139
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/preApprovalReview`,
1140
+ method: 'POST',
1141
+ body: data,
1142
+ secure: true,
1143
+ type: ContentType.Json,
1144
+ ...params,
1145
+ }),
1070
1146
  /**
1071
1147
  * @description This endpoint allows the redemption of a batch course for a user in a certification process. It requires the user ID and certification process ID as path parameters, and the course redemption details in the request body.
1072
1148
  *
@@ -1076,10 +1152,14 @@ var Api = /** @class */ (function (_super) {
1076
1152
  * @request POST:/user/certification/{certSpecID}/course/batchRedeem
1077
1153
  * @secure
1078
1154
  */
1079
- createCertificationCourseBatchRedeem: function (certSpecId, data, params) {
1080
- if (params === void 0) { params = {}; }
1081
- return _this.request(__assign({ path: "/user/certification/".concat(certSpecId, "/course/batchRedeem"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1082
- },
1155
+ createCertificationCourseBatchRedeem: (certSpecId, data, params = {}) => this.request({
1156
+ path: `/user/certification/${certSpecId}/course/batchRedeem`,
1157
+ method: 'POST',
1158
+ body: data,
1159
+ secure: true,
1160
+ type: ContentType.Json,
1161
+ ...params,
1162
+ }),
1083
1163
  /**
1084
1164
  * @description This endpoint allows for batch redeeming of course invites for a certification specification.
1085
1165
  *
@@ -1089,10 +1169,14 @@ var Api = /** @class */ (function (_super) {
1089
1169
  * @request POST:/user/certification/{certSpecID}/course/batchInvite
1090
1170
  * @secure
1091
1171
  */
1092
- createCertificationCourseBatchInvite: function (certSpecId, data, params) {
1093
- if (params === void 0) { params = {}; }
1094
- return _this.request(__assign({ path: "/user/certification/".concat(certSpecId, "/course/batchInvite"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1095
- },
1172
+ createCertificationCourseBatchInvite: (certSpecId, data, params = {}) => this.request({
1173
+ path: `/user/certification/${certSpecId}/course/batchInvite`,
1174
+ method: 'POST',
1175
+ body: data,
1176
+ secure: true,
1177
+ type: ContentType.Json,
1178
+ ...params,
1179
+ }),
1096
1180
  /**
1097
1181
  * @description This endpoint allows you to cancel a certification enrolment for a user in a specific course session. It requires the user ID, certification process ID, course ID, and session ID as path parameters.
1098
1182
  *
@@ -1102,10 +1186,12 @@ var Api = /** @class */ (function (_super) {
1102
1186
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/session/{sessionID}/cancelEnrol
1103
1187
  * @secure
1104
1188
  */
1105
- createCertificationCourseSessionCancelEnrol: function (userId, certProcId, courseId, sessionId, params) {
1106
- if (params === void 0) { params = {}; }
1107
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/session/").concat(sessionId, "/cancelEnrol"), method: 'POST', secure: true }, params));
1108
- },
1189
+ createCertificationCourseSessionCancelEnrol: (userId, certProcId, courseId, sessionId, params = {}) => this.request({
1190
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/session/${sessionId}/cancelEnrol`,
1191
+ method: 'POST',
1192
+ secure: true,
1193
+ ...params,
1194
+ }),
1109
1195
  /**
1110
1196
  * @description This route allows you to renew a certification process for a user. It will change the state of the certification process to "in progress" and reset the expiration date.
1111
1197
  *
@@ -1115,10 +1201,12 @@ var Api = /** @class */ (function (_super) {
1115
1201
  * @request POST:/user/{userID}/certification/{certProcID}/renew
1116
1202
  * @secure
1117
1203
  */
1118
- createCertificationRenew: function (userId, certProcId, params) {
1119
- if (params === void 0) { params = {}; }
1120
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/renew"), method: 'POST', secure: true }, params));
1121
- },
1204
+ createCertificationRenew: (userId, certProcId, params = {}) => this.request({
1205
+ path: `/user/${userId}/certification/${certProcId}/renew`,
1206
+ method: 'POST',
1207
+ secure: true,
1208
+ ...params,
1209
+ }),
1122
1210
  /**
1123
1211
  * @description This route allows you to restart a certification process for a user.
1124
1212
  *
@@ -1128,10 +1216,12 @@ var Api = /** @class */ (function (_super) {
1128
1216
  * @request POST:/user/{userID}/certification/{certProcID}/restart
1129
1217
  * @secure
1130
1218
  */
1131
- createCertificationRestart: function (userId, certProcId, params) {
1132
- if (params === void 0) { params = {}; }
1133
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/restart"), method: 'POST', secure: true }, params));
1134
- },
1219
+ createCertificationRestart: (userId, certProcId, params = {}) => this.request({
1220
+ path: `/user/${userId}/certification/${certProcId}/restart`,
1221
+ method: 'POST',
1222
+ secure: true,
1223
+ ...params,
1224
+ }),
1135
1225
  /**
1136
1226
  * @description This route allows you to waive a certification process for a user.
1137
1227
  *
@@ -1141,10 +1231,14 @@ var Api = /** @class */ (function (_super) {
1141
1231
  * @request POST:/user/{userID}/certification/{certProcID}/waive
1142
1232
  * @secure
1143
1233
  */
1144
- createCertificationWaive: function (userId, certProcId, data, params) {
1145
- if (params === void 0) { params = {}; }
1146
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/waive"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1147
- },
1234
+ createCertificationWaive: (userId, certProcId, data, params = {}) => this.request({
1235
+ path: `/user/${userId}/certification/${certProcId}/waive`,
1236
+ method: 'POST',
1237
+ body: data,
1238
+ secure: true,
1239
+ type: ContentType.Json,
1240
+ ...params,
1241
+ }),
1148
1242
  /**
1149
1243
  * @description This endpoint moves a user in a certification process to another user by checking the requirements for the specified user and certification process.
1150
1244
  *
@@ -1154,10 +1248,13 @@ var Api = /** @class */ (function (_super) {
1154
1248
  * @request POST:/user/{userID}/certification/{certProcID}/move/{secUserID}
1155
1249
  * @secure
1156
1250
  */
1157
- createCertificationMove: function (userId, certProcId, secUserId, params) {
1158
- if (params === void 0) { params = {}; }
1159
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/move/").concat(secUserId), method: 'POST', secure: true, format: 'json' }, params));
1160
- },
1251
+ createCertificationMove: (userId, certProcId, secUserId, params = {}) => this.request({
1252
+ path: `/user/${userId}/certification/${certProcId}/move/${secUserId}`,
1253
+ method: 'POST',
1254
+ secure: true,
1255
+ format: 'json',
1256
+ ...params,
1257
+ }),
1161
1258
  /**
1162
1259
  * @description This endpoint allows you to replace a certification enrolment for a user in a specific course session. It requires the user ID, certification process ID, secondary user ID, course ID, and session ID as path parameters.
1163
1260
  *
@@ -1167,10 +1264,12 @@ var Api = /** @class */ (function (_super) {
1167
1264
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/session/{sessionID}/replace/{secUserID}
1168
1265
  * @secure
1169
1266
  */
1170
- createCertificationCourseSessionReplace: function (userId, certProcId, courseId, sessionId, secUserId, params) {
1171
- if (params === void 0) { params = {}; }
1172
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/session/").concat(sessionId, "/replace/").concat(secUserId), method: 'POST', secure: true }, params));
1173
- },
1267
+ createCertificationCourseSessionReplace: (userId, certProcId, courseId, sessionId, secUserId, params = {}) => this.request({
1268
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/session/${sessionId}/replace/${secUserId}`,
1269
+ method: 'POST',
1270
+ secure: true,
1271
+ ...params,
1272
+ }),
1174
1273
  /**
1175
1274
  * @description This route allows you to set a trigger check for a certification process, such as blocking courses.
1176
1275
  *
@@ -1180,10 +1279,12 @@ var Api = /** @class */ (function (_super) {
1180
1279
  * @request POST:/user/{userID}/certification/{certProcID}/trigger/check
1181
1280
  * @secure
1182
1281
  */
1183
- createCertificationTriggerCheck: function (userId, certProcId, params) {
1184
- if (params === void 0) { params = {}; }
1185
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/trigger/check"), method: 'POST', secure: true }, params));
1186
- },
1282
+ createCertificationTriggerCheck: (userId, certProcId, params = {}) => this.request({
1283
+ path: `/user/${userId}/certification/${certProcId}/trigger/check`,
1284
+ method: 'POST',
1285
+ secure: true,
1286
+ ...params,
1287
+ }),
1187
1288
  /**
1188
1289
  * @description This route allows you to set a trigger for a certification process, such as blocking courses.
1189
1290
  *
@@ -1193,10 +1294,14 @@ var Api = /** @class */ (function (_super) {
1193
1294
  * @request POST:/user/{userID}/certification/{certProcID}/trigger/set
1194
1295
  * @secure
1195
1296
  */
1196
- createCertificationTriggerSet: function (userId, certProcId, data, params) {
1197
- if (params === void 0) { params = {}; }
1198
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/trigger/set"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1199
- },
1297
+ createCertificationTriggerSet: (userId, certProcId, data, params = {}) => this.request({
1298
+ path: `/user/${userId}/certification/${certProcId}/trigger/set`,
1299
+ method: 'POST',
1300
+ body: data,
1301
+ secure: true,
1302
+ type: ContentType.Json,
1303
+ ...params,
1304
+ }),
1200
1305
  /**
1201
1306
  * @description This endpoint allows you to refresh the organization membership for a user by providing the user ID and the requirements to be checked.
1202
1307
  *
@@ -1206,10 +1311,12 @@ var Api = /** @class */ (function (_super) {
1206
1311
  * @request POST:/user/{userID}/refreshOrgMembership
1207
1312
  * @secure
1208
1313
  */
1209
- createRefreshOrgMembership: function (userId, params) {
1210
- if (params === void 0) { params = {}; }
1211
- return _this.request(__assign({ path: "/user/".concat(userId, "/refreshOrgMembership"), method: 'POST', secure: true }, params));
1212
- },
1314
+ createRefreshOrgMembership: (userId, params = {}) => this.request({
1315
+ path: `/user/${userId}/refreshOrgMembership`,
1316
+ method: 'POST',
1317
+ secure: true,
1318
+ ...params,
1319
+ }),
1213
1320
  /**
1214
1321
  * @description This route allows you to retake a course for a certification process for a user in a specific course.
1215
1322
  *
@@ -1219,10 +1326,12 @@ var Api = /** @class */ (function (_super) {
1219
1326
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/retake
1220
1327
  * @secure
1221
1328
  */
1222
- createCertificationCourseRetake: function (userId, certProcId, courseId, params) {
1223
- if (params === void 0) { params = {}; }
1224
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/retake"), method: 'POST', secure: true }, params));
1225
- },
1329
+ createCertificationCourseRetake: (userId, certProcId, courseId, params = {}) => this.request({
1330
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/retake`,
1331
+ method: 'POST',
1332
+ secure: true,
1333
+ ...params,
1334
+ }),
1226
1335
  /**
1227
1336
  * @description This route allows you to revoke a course for a certification process for a user in a specific course.
1228
1337
  *
@@ -1232,10 +1341,12 @@ var Api = /** @class */ (function (_super) {
1232
1341
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/revoke
1233
1342
  * @secure
1234
1343
  */
1235
- createCertificationCourseRevoke: function (userId, certProcId, courseId, params) {
1236
- if (params === void 0) { params = {}; }
1237
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/revoke"), method: 'POST', secure: true }, params));
1238
- },
1344
+ createCertificationCourseRevoke: (userId, certProcId, courseId, params = {}) => this.request({
1345
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/revoke`,
1346
+ method: 'POST',
1347
+ secure: true,
1348
+ ...params,
1349
+ }),
1239
1350
  /**
1240
1351
  * @description Remove a specific version of an application item for a user in a certification process.
1241
1352
  *
@@ -1245,10 +1356,12 @@ var Api = /** @class */ (function (_super) {
1245
1356
  * @request POST:/user/{userID}/certification/{certProcID}/applicationItem/{sourceID}/remove/{itemVersion}
1246
1357
  * @secure
1247
1358
  */
1248
- createCertificationApplicationItemRemove: function (userId, certProcId, sourceId, itemVersion, params) {
1249
- if (params === void 0) { params = {}; }
1250
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/applicationItem/").concat(sourceId, "/remove/").concat(itemVersion), method: 'POST', secure: true }, params));
1251
- },
1359
+ createCertificationApplicationItemRemove: (userId, certProcId, sourceId, itemVersion, params = {}) => this.request({
1360
+ path: `/user/${userId}/certification/${certProcId}/applicationItem/${sourceId}/remove/${itemVersion}`,
1361
+ method: 'POST',
1362
+ secure: true,
1363
+ ...params,
1364
+ }),
1252
1365
  /**
1253
1366
  * @description Remove a specific version of an application item for a user in a certification process.
1254
1367
  *
@@ -1258,10 +1371,14 @@ var Api = /** @class */ (function (_super) {
1258
1371
  * @request POST:/user/{userID}/certification/{certProcID}/applicationItem/{sourceID}/review/{itemVersion}
1259
1372
  * @secure
1260
1373
  */
1261
- createCertificationApplicationItemReview: function (userId, certProcId, sourceId, itemVersion, data, params) {
1262
- if (params === void 0) { params = {}; }
1263
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/applicationItem/").concat(sourceId, "/review/").concat(itemVersion), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1264
- },
1374
+ createCertificationApplicationItemReview: (userId, certProcId, sourceId, itemVersion, data, params = {}) => this.request({
1375
+ path: `/user/${userId}/certification/${certProcId}/applicationItem/${sourceId}/review/${itemVersion}`,
1376
+ method: 'POST',
1377
+ body: data,
1378
+ secure: true,
1379
+ type: ContentType.Json,
1380
+ ...params,
1381
+ }),
1265
1382
  /**
1266
1383
  * @description Returns the status of multiple requirements (e.g. student history) for a given user
1267
1384
  *
@@ -1271,10 +1388,15 @@ var Api = /** @class */ (function (_super) {
1271
1388
  * @request POST:/user/{userID}/requirements
1272
1389
  * @secure
1273
1390
  */
1274
- listRequirements: function (userId, data, params) {
1275
- if (params === void 0) { params = {}; }
1276
- return _this.request(__assign({ path: "/user/".concat(userId, "/requirements"), method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1277
- },
1391
+ listRequirements: (userId, data, params = {}) => this.request({
1392
+ path: `/user/${userId}/requirements`,
1393
+ method: 'POST',
1394
+ body: data,
1395
+ secure: true,
1396
+ type: ContentType.Json,
1397
+ format: 'json',
1398
+ ...params,
1399
+ }),
1278
1400
  /**
1279
1401
  * @description Request certification process application submission approval
1280
1402
  *
@@ -1284,10 +1406,14 @@ var Api = /** @class */ (function (_super) {
1284
1406
  * @request POST:/user/{userID}/certification/{certProcID}/application/{applicationType}/submit
1285
1407
  * @secure
1286
1408
  */
1287
- createCertificationApplicationSubmit: function (userId, certProcId, applicationType, data, params) {
1288
- if (params === void 0) { params = {}; }
1289
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/application/").concat(applicationType, "/submit"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1290
- },
1409
+ createCertificationApplicationSubmit: (userId, certProcId, applicationType, data, params = {}) => this.request({
1410
+ path: `/user/${userId}/certification/${certProcId}/application/${applicationType}/submit`,
1411
+ method: 'POST',
1412
+ body: data,
1413
+ secure: true,
1414
+ type: ContentType.Json,
1415
+ ...params,
1416
+ }),
1291
1417
  /**
1292
1418
  * @description This route allows you to submit a pending approval.
1293
1419
  *
@@ -1297,10 +1423,14 @@ var Api = /** @class */ (function (_super) {
1297
1423
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/pendingApproval/{paID}
1298
1424
  * @secure
1299
1425
  */
1300
- createCertificationCoursePendingApproval: function (userId, certProcId, courseId, paId, data, params) {
1301
- if (params === void 0) { params = {}; }
1302
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/pendingApproval/").concat(paId), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1303
- },
1426
+ createCertificationCoursePendingApproval: (userId, certProcId, courseId, paId, data, params = {}) => this.request({
1427
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/pendingApproval/${paId}`,
1428
+ method: 'POST',
1429
+ body: data,
1430
+ secure: true,
1431
+ type: ContentType.Json,
1432
+ ...params,
1433
+ }),
1304
1434
  /**
1305
1435
  * @description This route allows you to review a pending approval.
1306
1436
  *
@@ -1310,10 +1440,14 @@ var Api = /** @class */ (function (_super) {
1310
1440
  * @request PUT:/user/{userID}/certification/{certProcID}/course/{courseID}/pendingApproval/{paID}
1311
1441
  * @secure
1312
1442
  */
1313
- updateCertificationCoursePendingApproval: function (userId, certProcId, courseId, paId, data, params) {
1314
- if (params === void 0) { params = {}; }
1315
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/pendingApproval/").concat(paId), method: 'PUT', body: data, secure: true, type: ContentType.Json }, params));
1316
- },
1443
+ updateCertificationCoursePendingApproval: (userId, certProcId, courseId, paId, data, params = {}) => this.request({
1444
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/pendingApproval/${paId}`,
1445
+ method: 'PUT',
1446
+ body: data,
1447
+ secure: true,
1448
+ type: ContentType.Json,
1449
+ ...params,
1450
+ }),
1317
1451
  /**
1318
1452
  * @description Redeems a license for a user by product ID.
1319
1453
  *
@@ -1323,10 +1457,14 @@ var Api = /** @class */ (function (_super) {
1323
1457
  * @request POST:/user/{userID}/certification/{certProcID}/course/redeem
1324
1458
  * @secure
1325
1459
  */
1326
- createCertificationCourseRedeem: function (userId, certProcId, data, params) {
1327
- if (params === void 0) { params = {}; }
1328
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/redeem"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1329
- },
1460
+ createCertificationCourseRedeem: (userId, certProcId, data, params = {}) => this.request({
1461
+ path: `/user/${userId}/certification/${certProcId}/course/redeem`,
1462
+ method: 'POST',
1463
+ body: data,
1464
+ secure: true,
1465
+ type: ContentType.Json,
1466
+ ...params,
1467
+ }),
1330
1468
  /**
1331
1469
  * @description This endpoint validates the move of a user in a certification process by checking the requirements for the specified user and certification process.
1332
1470
  *
@@ -1336,10 +1474,13 @@ var Api = /** @class */ (function (_super) {
1336
1474
  * @request POST:/user/{userID}/certification/{certProcID}/move/{secUserID}/validate
1337
1475
  * @secure
1338
1476
  */
1339
- createCertificationMoveValidate: function (userId, certProcId, secUserId, params) {
1340
- if (params === void 0) { params = {}; }
1341
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/move/").concat(secUserId, "/validate"), method: 'POST', secure: true, format: 'json' }, params));
1342
- },
1477
+ createCertificationMoveValidate: (userId, certProcId, secUserId, params = {}) => this.request({
1478
+ path: `/user/${userId}/certification/${certProcId}/move/${secUserId}/validate`,
1479
+ method: 'POST',
1480
+ secure: true,
1481
+ format: 'json',
1482
+ ...params,
1483
+ }),
1343
1484
  /**
1344
1485
  * @description This route allows you to end the course period for a certification process for a user in a specific course.
1345
1486
  *
@@ -1349,10 +1490,14 @@ var Api = /** @class */ (function (_super) {
1349
1490
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/endCooldown
1350
1491
  * @secure
1351
1492
  */
1352
- createCertificationCourseEndCooldown: function (userId, certProcId, courseId, data, params) {
1353
- if (params === void 0) { params = {}; }
1354
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/endCooldown"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1355
- },
1493
+ createCertificationCourseEndCooldown: (userId, certProcId, courseId, data, params = {}) => this.request({
1494
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/endCooldown`,
1495
+ method: 'POST',
1496
+ body: data,
1497
+ secure: true,
1498
+ type: ContentType.Json,
1499
+ ...params,
1500
+ }),
1356
1501
  /**
1357
1502
  * @description This route allows you to unlock a course for a certification process for a user in a specific course.
1358
1503
  *
@@ -1362,10 +1507,14 @@ var Api = /** @class */ (function (_super) {
1362
1507
  * @request POST:/user/{userID}/certification/{certProcID}/course/{courseID}/unlockCourse
1363
1508
  * @secure
1364
1509
  */
1365
- createCertificationCourseUnlockCourse: function (userId, certProcId, courseId, data, params) {
1366
- if (params === void 0) { params = {}; }
1367
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/unlockCourse"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1368
- },
1510
+ createCertificationCourseUnlockCourse: (userId, certProcId, courseId, data, params = {}) => this.request({
1511
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/unlockCourse`,
1512
+ method: 'POST',
1513
+ body: data,
1514
+ secure: true,
1515
+ type: ContentType.Json,
1516
+ ...params,
1517
+ }),
1369
1518
  /**
1370
1519
  * @description This endpoint allows updating the ITA number for a user. It requires the user ID as a path parameter and the new ITA number in the request body.
1371
1520
  *
@@ -1375,10 +1524,14 @@ var Api = /** @class */ (function (_super) {
1375
1524
  * @request POST:/user/{userID}/updateITA
1376
1525
  * @secure
1377
1526
  */
1378
- createUpdateIta: function (userId, data, params) {
1379
- if (params === void 0) { params = {}; }
1380
- return _this.request(__assign({ path: "/user/".concat(userId, "/updateITA"), method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1381
- },
1527
+ createUpdateIta: (userId, data, params = {}) => this.request({
1528
+ path: `/user/${userId}/updateITA`,
1529
+ method: 'POST',
1530
+ body: data,
1531
+ secure: true,
1532
+ type: ContentType.Json,
1533
+ ...params,
1534
+ }),
1382
1535
  /**
1383
1536
  * @description This route allows you to override the result of a course for a user in a certification process.
1384
1537
  *
@@ -1388,10 +1541,14 @@ var Api = /** @class */ (function (_super) {
1388
1541
  * @request PUT:/user/{userID}/certification/{certProcID}/course/{courseID}/overrideResult
1389
1542
  * @secure
1390
1543
  */
1391
- updateCertificationCourseOverrideResult: function (userId, certProcId, courseId, data, params) {
1392
- if (params === void 0) { params = {}; }
1393
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/course/").concat(courseId, "/overrideResult"), method: 'PUT', body: data, secure: true, type: ContentType.Json }, params));
1394
- },
1544
+ updateCertificationCourseOverrideResult: (userId, certProcId, courseId, data, params = {}) => this.request({
1545
+ path: `/user/${userId}/certification/${certProcId}/course/${courseId}/overrideResult`,
1546
+ method: 'PUT',
1547
+ body: data,
1548
+ secure: true,
1549
+ type: ContentType.Json,
1550
+ ...params,
1551
+ }),
1395
1552
  /**
1396
1553
  * @description This route allows you to set or override the dates for a certification process for a user.
1397
1554
  *
@@ -1401,10 +1558,14 @@ var Api = /** @class */ (function (_super) {
1401
1558
  * @request PUT:/user/{userID}/certification/{certProcID}/setDates
1402
1559
  * @secure
1403
1560
  */
1404
- updateCertificationSetDates: function (userId, certProcId, data, params) {
1405
- if (params === void 0) { params = {}; }
1406
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/setDates"), method: 'PUT', body: data, secure: true, type: ContentType.Json }, params));
1407
- },
1561
+ updateCertificationSetDates: (userId, certProcId, data, params = {}) => this.request({
1562
+ path: `/user/${userId}/certification/${certProcId}/setDates`,
1563
+ method: 'PUT',
1564
+ body: data,
1565
+ secure: true,
1566
+ type: ContentType.Json,
1567
+ ...params,
1568
+ }),
1408
1569
  /**
1409
1570
  * @description This route allows you to publish certification information to a LMS event bus.
1410
1571
  *
@@ -1414,12 +1575,14 @@ var Api = /** @class */ (function (_super) {
1414
1575
  * @request POST:/user/{userID}/certification/{certProcID}/publishInfo
1415
1576
  * @secure
1416
1577
  */
1417
- createCertificationPublishInfo: function (userId, certProcId, params) {
1418
- if (params === void 0) { params = {}; }
1419
- return _this.request(__assign({ path: "/user/".concat(userId, "/certification/").concat(certProcId, "/publishInfo"), method: 'POST', secure: true }, params));
1420
- },
1578
+ createCertificationPublishInfo: (userId, certProcId, params = {}) => this.request({
1579
+ path: `/user/${userId}/certification/${certProcId}/publishInfo`,
1580
+ method: 'POST',
1581
+ secure: true,
1582
+ ...params,
1583
+ }),
1421
1584
  };
1422
- _this.users = {
1585
+ this.users = {
1423
1586
  /**
1424
1587
  * @description Searches for users by their certification specifications.
1425
1588
  *
@@ -1429,10 +1592,15 @@ var Api = /** @class */ (function (_super) {
1429
1592
  * @request POST:/users/certification/{certSpecID}
1430
1593
  * @secure
1431
1594
  */
1432
- createCertification: function (certSpecId, data, params) {
1433
- if (params === void 0) { params = {}; }
1434
- return _this.request(__assign({ path: "/users/certification/".concat(certSpecId), method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1435
- },
1595
+ createCertification: (certSpecId, data, params = {}) => this.request({
1596
+ path: `/users/certification/${certSpecId}`,
1597
+ method: 'POST',
1598
+ body: data,
1599
+ secure: true,
1600
+ type: ContentType.Json,
1601
+ format: 'json',
1602
+ ...params,
1603
+ }),
1436
1604
  /**
1437
1605
  * @description Publishes all certification information for the specified certification specification (certSpecID). Triggers a bulk publish event for this certification.
1438
1606
  *
@@ -1442,14 +1610,14 @@ var Api = /** @class */ (function (_super) {
1442
1610
  * @request POST:/users/certification/{certSpecID}/publishInfo
1443
1611
  * @secure
1444
1612
  */
1445
- createCertificationPublishInfo: function (certSpecId, params) {
1446
- if (params === void 0) { params = {}; }
1447
- return _this.request(__assign({ path: "/users/certification/".concat(certSpecId, "/publishInfo"), method: 'POST', secure: true }, params));
1448
- },
1613
+ createCertificationPublishInfo: (certSpecId, params = {}) => this.request({
1614
+ path: `/users/certification/${certSpecId}/publishInfo`,
1615
+ method: 'POST',
1616
+ secure: true,
1617
+ ...params,
1618
+ }),
1449
1619
  };
1450
- return _this;
1451
1620
  }
1452
- return Api;
1453
- }(HttpClient));
1621
+ }
1454
1622
  exports.Api = Api;
1455
1623
  //# sourceMappingURL=Api.js.map