@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/Api.ts +93 -98
- package/dist/Api.d.ts +102 -102
- package/dist/Api.js +736 -568
- package/dist/Api.js.map +1 -1
- package/package.json +2 -2
- package/tsconfig.json +4 -2
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
|
|
13
|
-
|
|
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.
|
|
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
|
|
132
|
-
(function (
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})(
|
|
137
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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 =
|
|
152
|
-
|
|
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.
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
return
|
|
192
|
-
|
|
193
|
-
|
|
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
|
|
95
|
+
return `${formItem}`;
|
|
199
96
|
}
|
|
200
|
-
}
|
|
201
|
-
|
|
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(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
-
|
|
228
|
-
}());
|
|
111
|
+
}
|
|
112
|
+
}
|
|
229
113
|
exports.HttpClient = HttpClient;
|
|
230
114
|
/**
|
|
231
115
|
* @title BCCSA Program API
|
|
232
|
-
* @version 3.0.
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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:
|
|
251
|
-
|
|
252
|
-
|
|
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
|
-
|
|
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:
|
|
266
|
-
|
|
267
|
-
|
|
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:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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
|
-
|
|
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:
|
|
309
|
-
|
|
310
|
-
|
|
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:
|
|
322
|
-
|
|
323
|
-
|
|
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:
|
|
335
|
-
|
|
336
|
-
|
|
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:
|
|
348
|
-
|
|
349
|
-
|
|
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:
|
|
361
|
-
|
|
362
|
-
|
|
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:
|
|
374
|
-
|
|
375
|
-
|
|
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:
|
|
387
|
-
|
|
388
|
-
|
|
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:
|
|
400
|
-
|
|
401
|
-
|
|
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:
|
|
413
|
-
|
|
414
|
-
|
|
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:
|
|
426
|
-
|
|
427
|
-
|
|
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:
|
|
439
|
-
|
|
440
|
-
|
|
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:
|
|
452
|
-
|
|
453
|
-
|
|
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:
|
|
465
|
-
|
|
466
|
-
|
|
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:
|
|
478
|
-
|
|
479
|
-
|
|
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:
|
|
491
|
-
|
|
492
|
-
|
|
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:
|
|
504
|
-
|
|
505
|
-
|
|
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:
|
|
517
|
-
|
|
518
|
-
|
|
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:
|
|
530
|
-
|
|
531
|
-
|
|
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:
|
|
543
|
-
|
|
544
|
-
|
|
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:
|
|
556
|
-
|
|
557
|
-
|
|
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:
|
|
569
|
-
|
|
570
|
-
|
|
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:
|
|
582
|
-
|
|
583
|
-
|
|
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
|
-
|
|
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:
|
|
597
|
-
|
|
598
|
-
|
|
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:
|
|
610
|
-
|
|
611
|
-
|
|
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:
|
|
623
|
-
|
|
624
|
-
|
|
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:
|
|
636
|
-
|
|
637
|
-
|
|
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:
|
|
649
|
-
|
|
650
|
-
|
|
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:
|
|
662
|
-
|
|
663
|
-
|
|
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:
|
|
675
|
-
|
|
676
|
-
|
|
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:
|
|
688
|
-
|
|
689
|
-
|
|
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:
|
|
701
|
-
|
|
702
|
-
|
|
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:
|
|
714
|
-
|
|
715
|
-
|
|
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:
|
|
727
|
-
|
|
728
|
-
|
|
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:
|
|
740
|
-
|
|
741
|
-
|
|
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:
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
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:
|
|
767
|
-
|
|
768
|
-
|
|
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:
|
|
780
|
-
|
|
781
|
-
|
|
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:
|
|
793
|
-
|
|
794
|
-
|
|
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:
|
|
806
|
-
|
|
807
|
-
|
|
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:
|
|
819
|
-
|
|
820
|
-
|
|
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:
|
|
832
|
-
|
|
833
|
-
|
|
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:
|
|
845
|
-
|
|
846
|
-
|
|
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:
|
|
858
|
-
|
|
859
|
-
|
|
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:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
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:
|
|
885
|
-
|
|
886
|
-
|
|
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:
|
|
898
|
-
|
|
899
|
-
|
|
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:
|
|
911
|
-
|
|
912
|
-
|
|
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:
|
|
924
|
-
|
|
925
|
-
|
|
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:
|
|
937
|
-
|
|
938
|
-
|
|
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:
|
|
950
|
-
|
|
951
|
-
|
|
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:
|
|
963
|
-
|
|
964
|
-
|
|
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:
|
|
976
|
-
|
|
977
|
-
|
|
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:
|
|
989
|
-
|
|
990
|
-
|
|
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:
|
|
1002
|
-
|
|
1003
|
-
|
|
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:
|
|
1015
|
-
|
|
1016
|
-
|
|
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:
|
|
1028
|
-
|
|
1029
|
-
|
|
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:
|
|
1041
|
-
|
|
1042
|
-
|
|
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:
|
|
1054
|
-
|
|
1055
|
-
|
|
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:
|
|
1067
|
-
|
|
1068
|
-
|
|
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:
|
|
1080
|
-
|
|
1081
|
-
|
|
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:
|
|
1093
|
-
|
|
1094
|
-
|
|
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:
|
|
1106
|
-
|
|
1107
|
-
|
|
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:
|
|
1119
|
-
|
|
1120
|
-
|
|
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:
|
|
1132
|
-
|
|
1133
|
-
|
|
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:
|
|
1145
|
-
|
|
1146
|
-
|
|
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:
|
|
1158
|
-
|
|
1159
|
-
|
|
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:
|
|
1171
|
-
|
|
1172
|
-
|
|
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:
|
|
1184
|
-
|
|
1185
|
-
|
|
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:
|
|
1197
|
-
|
|
1198
|
-
|
|
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:
|
|
1210
|
-
|
|
1211
|
-
|
|
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:
|
|
1223
|
-
|
|
1224
|
-
|
|
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:
|
|
1236
|
-
|
|
1237
|
-
|
|
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:
|
|
1249
|
-
|
|
1250
|
-
|
|
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:
|
|
1262
|
-
|
|
1263
|
-
|
|
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:
|
|
1275
|
-
|
|
1276
|
-
|
|
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:
|
|
1288
|
-
|
|
1289
|
-
|
|
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:
|
|
1301
|
-
|
|
1302
|
-
|
|
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:
|
|
1314
|
-
|
|
1315
|
-
|
|
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:
|
|
1327
|
-
|
|
1328
|
-
|
|
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:
|
|
1340
|
-
|
|
1341
|
-
|
|
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:
|
|
1353
|
-
|
|
1354
|
-
|
|
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:
|
|
1366
|
-
|
|
1367
|
-
|
|
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:
|
|
1379
|
-
|
|
1380
|
-
|
|
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:
|
|
1392
|
-
|
|
1393
|
-
|
|
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:
|
|
1405
|
-
|
|
1406
|
-
|
|
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:
|
|
1418
|
-
|
|
1419
|
-
|
|
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
|
-
|
|
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:
|
|
1433
|
-
|
|
1434
|
-
|
|
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:
|
|
1446
|
-
|
|
1447
|
-
|
|
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
|
-
|
|
1453
|
-
}(HttpClient));
|
|
1621
|
+
}
|
|
1454
1622
|
exports.Api = Api;
|
|
1455
1623
|
//# sourceMappingURL=Api.js.map
|