@ikonintegration/module-config-api 2.0.8 → 2.0.9
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 +5 -5
- package/dist/Api.d.ts +5443 -0
- package/dist/Api.js +1145 -0
- package/dist/Api.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.json +4 -2
package/dist/Api.js
ADDED
|
@@ -0,0 +1,1145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Api = exports.HttpClient = exports.ContentType = void 0;
|
|
17
|
+
const axios_1 = __importDefault(require("axios"));
|
|
18
|
+
var ContentType;
|
|
19
|
+
(function (ContentType) {
|
|
20
|
+
ContentType["Json"] = "application/json";
|
|
21
|
+
ContentType["FormData"] = "multipart/form-data";
|
|
22
|
+
ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
23
|
+
ContentType["Text"] = "text/plain";
|
|
24
|
+
})(ContentType || (exports.ContentType = ContentType = {}));
|
|
25
|
+
class HttpClient {
|
|
26
|
+
constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
|
|
27
|
+
this.securityData = null;
|
|
28
|
+
this.setSecurityData = (data) => {
|
|
29
|
+
this.securityData = data;
|
|
30
|
+
};
|
|
31
|
+
this.request = async ({ secure, path, type, query, format, body, ...params }) => {
|
|
32
|
+
const secureParams = ((typeof secure === 'boolean' ? secure : this.secure) &&
|
|
33
|
+
this.securityWorker &&
|
|
34
|
+
(await this.securityWorker(this.securityData))) ||
|
|
35
|
+
{};
|
|
36
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
37
|
+
const responseFormat = format || this.format || undefined;
|
|
38
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === 'object') {
|
|
39
|
+
body = this.createFormData(body);
|
|
40
|
+
}
|
|
41
|
+
if (type === ContentType.Text && body && body !== null && typeof body !== 'string') {
|
|
42
|
+
body = JSON.stringify(body);
|
|
43
|
+
}
|
|
44
|
+
return this.instance
|
|
45
|
+
.request({
|
|
46
|
+
...requestParams,
|
|
47
|
+
headers: {
|
|
48
|
+
...(requestParams.headers || {}),
|
|
49
|
+
...(type ? { 'Content-Type': type } : {}),
|
|
50
|
+
},
|
|
51
|
+
params: query,
|
|
52
|
+
responseType: responseFormat,
|
|
53
|
+
data: body,
|
|
54
|
+
url: path,
|
|
55
|
+
})
|
|
56
|
+
.then(response => response.data);
|
|
57
|
+
};
|
|
58
|
+
this.instance = axios_1.default.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || 'http://localhost:8080' });
|
|
59
|
+
this.secure = secure;
|
|
60
|
+
this.format = format;
|
|
61
|
+
this.securityWorker = securityWorker;
|
|
62
|
+
}
|
|
63
|
+
mergeRequestParams(params1, params2) {
|
|
64
|
+
const method = params1.method || (params2 && params2.method);
|
|
65
|
+
return {
|
|
66
|
+
...this.instance.defaults,
|
|
67
|
+
...params1,
|
|
68
|
+
...(params2 || {}),
|
|
69
|
+
headers: {
|
|
70
|
+
...((method && this.instance.defaults.headers[method.toLowerCase()]) || {}),
|
|
71
|
+
...(params1.headers || {}),
|
|
72
|
+
...((params2 && params2.headers) || {}),
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
stringifyFormItem(formItem) {
|
|
77
|
+
if (typeof formItem === 'object' && formItem !== null) {
|
|
78
|
+
return JSON.stringify(formItem);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return `${formItem}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
createFormData(input) {
|
|
85
|
+
if (input instanceof FormData) {
|
|
86
|
+
return input;
|
|
87
|
+
}
|
|
88
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
89
|
+
const property = input[key];
|
|
90
|
+
const propertyContent = property instanceof Array ? property : [property];
|
|
91
|
+
for (const formItem of propertyContent) {
|
|
92
|
+
const isFileType = formItem instanceof Blob || formItem instanceof File;
|
|
93
|
+
formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
|
|
94
|
+
}
|
|
95
|
+
return formData;
|
|
96
|
+
}, new FormData());
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.HttpClient = HttpClient;
|
|
100
|
+
/**
|
|
101
|
+
* @title No title
|
|
102
|
+
* @version 2.0.9
|
|
103
|
+
* @baseUrl http://localhost:8080
|
|
104
|
+
* @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
|
|
105
|
+
*/
|
|
106
|
+
class Api extends HttpClient {
|
|
107
|
+
constructor() {
|
|
108
|
+
super(...arguments);
|
|
109
|
+
this.customer = {
|
|
110
|
+
/**
|
|
111
|
+
* @description Retrieve customer configuration by ID.
|
|
112
|
+
*
|
|
113
|
+
* @tags Customer
|
|
114
|
+
* @name GetCustomer
|
|
115
|
+
* @summary Get Customer
|
|
116
|
+
* @request GET:/customer/{customerID}
|
|
117
|
+
* @secure
|
|
118
|
+
*/
|
|
119
|
+
getCustomer: (customerId, params = {}) => this.request({
|
|
120
|
+
path: `/customer/${customerId}`,
|
|
121
|
+
method: 'GET',
|
|
122
|
+
secure: true,
|
|
123
|
+
format: 'json',
|
|
124
|
+
...params,
|
|
125
|
+
}),
|
|
126
|
+
/**
|
|
127
|
+
* @description Create a new customer configuration.
|
|
128
|
+
*
|
|
129
|
+
* @tags Customer
|
|
130
|
+
* @name CreateCustomer
|
|
131
|
+
* @summary Create Customer
|
|
132
|
+
* @request POST:/customer/{customerID}
|
|
133
|
+
* @secure
|
|
134
|
+
*/
|
|
135
|
+
createCustomer: (customerId, data, params = {}) => this.request({
|
|
136
|
+
path: `/customer/${customerId}`,
|
|
137
|
+
method: 'POST',
|
|
138
|
+
body: data,
|
|
139
|
+
secure: true,
|
|
140
|
+
type: ContentType.Json,
|
|
141
|
+
...params,
|
|
142
|
+
}),
|
|
143
|
+
/**
|
|
144
|
+
* @description Update an existing customer configuration.
|
|
145
|
+
*
|
|
146
|
+
* @tags Customer
|
|
147
|
+
* @name UpdateCustomer
|
|
148
|
+
* @summary Update Customer
|
|
149
|
+
* @request PUT:/customer/{customerID}
|
|
150
|
+
* @secure
|
|
151
|
+
*/
|
|
152
|
+
updateCustomer: (customerId, data, params = {}) => this.request({
|
|
153
|
+
path: `/customer/${customerId}`,
|
|
154
|
+
method: 'PUT',
|
|
155
|
+
body: data,
|
|
156
|
+
secure: true,
|
|
157
|
+
type: ContentType.Json,
|
|
158
|
+
...params,
|
|
159
|
+
}),
|
|
160
|
+
/**
|
|
161
|
+
* @description Delete a customer configuration.
|
|
162
|
+
*
|
|
163
|
+
* @tags Customer
|
|
164
|
+
* @name DeleteCustomer
|
|
165
|
+
* @summary Delete Customer
|
|
166
|
+
* @request DELETE:/customer/{customerID}
|
|
167
|
+
* @secure
|
|
168
|
+
*/
|
|
169
|
+
deleteCustomer: (customerId, params = {}) => this.request({
|
|
170
|
+
path: `/customer/${customerId}`,
|
|
171
|
+
method: 'DELETE',
|
|
172
|
+
secure: true,
|
|
173
|
+
...params,
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
* @description Retrieve tenant configuration by ID.
|
|
177
|
+
*
|
|
178
|
+
* @tags Tenant
|
|
179
|
+
* @name GetTenant
|
|
180
|
+
* @summary Get Tenant
|
|
181
|
+
* @request GET:/customer/{customerID}/tenant/{tenantID}
|
|
182
|
+
* @secure
|
|
183
|
+
*/
|
|
184
|
+
getTenant: (customerId, tenantId, params = {}) => this.request({
|
|
185
|
+
path: `/customer/${customerId}/tenant/${tenantId}`,
|
|
186
|
+
method: 'GET',
|
|
187
|
+
secure: true,
|
|
188
|
+
format: 'json',
|
|
189
|
+
...params,
|
|
190
|
+
}),
|
|
191
|
+
/**
|
|
192
|
+
* @description Create a new tenant configuration.
|
|
193
|
+
*
|
|
194
|
+
* @tags Tenant
|
|
195
|
+
* @name CreateTenant
|
|
196
|
+
* @summary Create Tenant
|
|
197
|
+
* @request POST:/customer/{customerID}/tenant/{tenantID}
|
|
198
|
+
* @secure
|
|
199
|
+
*/
|
|
200
|
+
createTenant: (customerId, tenantId, data, params = {}) => this.request({
|
|
201
|
+
path: `/customer/${customerId}/tenant/${tenantId}`,
|
|
202
|
+
method: 'POST',
|
|
203
|
+
body: data,
|
|
204
|
+
secure: true,
|
|
205
|
+
type: ContentType.Json,
|
|
206
|
+
...params,
|
|
207
|
+
}),
|
|
208
|
+
/**
|
|
209
|
+
* @description Update an existing tenant configuration.
|
|
210
|
+
*
|
|
211
|
+
* @tags Tenant
|
|
212
|
+
* @name UpdateTenant
|
|
213
|
+
* @summary Update Tenant
|
|
214
|
+
* @request PUT:/customer/{customerID}/tenant/{tenantID}
|
|
215
|
+
* @secure
|
|
216
|
+
*/
|
|
217
|
+
updateTenant: (customerId, tenantId, data, params = {}) => this.request({
|
|
218
|
+
path: `/customer/${customerId}/tenant/${tenantId}`,
|
|
219
|
+
method: 'PUT',
|
|
220
|
+
body: data,
|
|
221
|
+
secure: true,
|
|
222
|
+
type: ContentType.Json,
|
|
223
|
+
...params,
|
|
224
|
+
}),
|
|
225
|
+
/**
|
|
226
|
+
* @description Delete a tenant configuration.
|
|
227
|
+
*
|
|
228
|
+
* @tags Tenant
|
|
229
|
+
* @name DeleteTenant
|
|
230
|
+
* @summary Delete Tenant
|
|
231
|
+
* @request DELETE:/customer/{customerID}/tenant/{tenantID}
|
|
232
|
+
* @secure
|
|
233
|
+
*/
|
|
234
|
+
deleteTenant: (customerId, tenantId, params = {}) => this.request({
|
|
235
|
+
path: `/customer/${customerId}/tenant/${tenantId}`,
|
|
236
|
+
method: 'DELETE',
|
|
237
|
+
secure: true,
|
|
238
|
+
...params,
|
|
239
|
+
}),
|
|
240
|
+
/**
|
|
241
|
+
* @description Retrieve all tenant configurations for a customer.
|
|
242
|
+
*
|
|
243
|
+
* @tags Tenant
|
|
244
|
+
* @name GetTenants
|
|
245
|
+
* @summary Get All Tenants
|
|
246
|
+
* @request GET:/customer/{customerID}/tenants
|
|
247
|
+
* @secure
|
|
248
|
+
*/
|
|
249
|
+
getTenants: (customerId, params = {}) => this.request({
|
|
250
|
+
path: `/customer/${customerId}/tenants`,
|
|
251
|
+
method: 'GET',
|
|
252
|
+
secure: true,
|
|
253
|
+
format: 'json',
|
|
254
|
+
...params,
|
|
255
|
+
}),
|
|
256
|
+
/**
|
|
257
|
+
* @description Retrieve training provider configuration by ID.
|
|
258
|
+
*
|
|
259
|
+
* @tags Training Provider
|
|
260
|
+
* @name GetTrainingProvider
|
|
261
|
+
* @summary Get Training Provider
|
|
262
|
+
* @request GET:/customer/{customerID}/trainingProvider/{trainingProviderID}
|
|
263
|
+
* @secure
|
|
264
|
+
*/
|
|
265
|
+
getTrainingProvider: (customerId, trainingProviderId, params = {}) => this.request({
|
|
266
|
+
path: `/customer/${customerId}/trainingProvider/${trainingProviderId}`,
|
|
267
|
+
method: 'GET',
|
|
268
|
+
secure: true,
|
|
269
|
+
format: 'json',
|
|
270
|
+
...params,
|
|
271
|
+
}),
|
|
272
|
+
/**
|
|
273
|
+
* @description Create a new training provider configuration.
|
|
274
|
+
*
|
|
275
|
+
* @tags Training Provider
|
|
276
|
+
* @name CreateTrainingProvider
|
|
277
|
+
* @summary Create Training Provider
|
|
278
|
+
* @request POST:/customer/{customerID}/trainingProvider/{trainingProviderID}
|
|
279
|
+
* @secure
|
|
280
|
+
*/
|
|
281
|
+
createTrainingProvider: (customerId, trainingProviderId, data, params = {}) => this.request({
|
|
282
|
+
path: `/customer/${customerId}/trainingProvider/${trainingProviderId}`,
|
|
283
|
+
method: 'POST',
|
|
284
|
+
body: data,
|
|
285
|
+
secure: true,
|
|
286
|
+
type: ContentType.Json,
|
|
287
|
+
...params,
|
|
288
|
+
}),
|
|
289
|
+
/**
|
|
290
|
+
* @description Update an existing training provider configuration.
|
|
291
|
+
*
|
|
292
|
+
* @tags Training Provider
|
|
293
|
+
* @name UpdateTrainingProvider
|
|
294
|
+
* @summary Update Training Provider
|
|
295
|
+
* @request PUT:/customer/{customerID}/trainingProvider/{trainingProviderID}
|
|
296
|
+
* @secure
|
|
297
|
+
*/
|
|
298
|
+
updateTrainingProvider: (customerId, trainingProviderId, data, params = {}) => this.request({
|
|
299
|
+
path: `/customer/${customerId}/trainingProvider/${trainingProviderId}`,
|
|
300
|
+
method: 'PUT',
|
|
301
|
+
body: data,
|
|
302
|
+
secure: true,
|
|
303
|
+
type: ContentType.Json,
|
|
304
|
+
...params,
|
|
305
|
+
}),
|
|
306
|
+
/**
|
|
307
|
+
* @description Delete a training provider configuration.
|
|
308
|
+
*
|
|
309
|
+
* @tags Training Provider
|
|
310
|
+
* @name DeleteTrainingProvider
|
|
311
|
+
* @summary Delete Training Provider
|
|
312
|
+
* @request DELETE:/customer/{customerID}/trainingProvider/{trainingProviderID}
|
|
313
|
+
* @secure
|
|
314
|
+
*/
|
|
315
|
+
deleteTrainingProvider: (customerId, trainingProviderId, params = {}) => this.request({
|
|
316
|
+
path: `/customer/${customerId}/trainingProvider/${trainingProviderId}`,
|
|
317
|
+
method: 'DELETE',
|
|
318
|
+
secure: true,
|
|
319
|
+
...params,
|
|
320
|
+
}),
|
|
321
|
+
/**
|
|
322
|
+
* @description Retrieve all training provider configurations for a customer.
|
|
323
|
+
*
|
|
324
|
+
* @tags Training Provider
|
|
325
|
+
* @name GetTrainingProviders
|
|
326
|
+
* @summary Get All Training Providers
|
|
327
|
+
* @request GET:/customer/{customerID}/trainingProviders
|
|
328
|
+
* @secure
|
|
329
|
+
*/
|
|
330
|
+
getTrainingProviders: (customerId, params = {}) => this.request({
|
|
331
|
+
path: `/customer/${customerId}/trainingProviders`,
|
|
332
|
+
method: 'GET',
|
|
333
|
+
secure: true,
|
|
334
|
+
format: 'json',
|
|
335
|
+
...params,
|
|
336
|
+
}),
|
|
337
|
+
/**
|
|
338
|
+
* @description Retrieve portal tile permissions configuration for a customer.
|
|
339
|
+
*
|
|
340
|
+
* @tags Tile Permissions
|
|
341
|
+
* @name GetTilePermissions
|
|
342
|
+
* @summary Get Tile Permissions
|
|
343
|
+
* @request GET:/customer/{customerID}/tilePermissions
|
|
344
|
+
* @secure
|
|
345
|
+
*/
|
|
346
|
+
getTilePermissions: (customerId, params = {}) => this.request({
|
|
347
|
+
path: `/customer/${customerId}/tilePermissions`,
|
|
348
|
+
method: 'GET',
|
|
349
|
+
secure: true,
|
|
350
|
+
format: 'json',
|
|
351
|
+
...params,
|
|
352
|
+
}),
|
|
353
|
+
/**
|
|
354
|
+
* @description Create or update portal tile permissions configuration for a customer.
|
|
355
|
+
*
|
|
356
|
+
* @tags Tile Permissions
|
|
357
|
+
* @name ListTilePermissions
|
|
358
|
+
* @summary Create/Update Tile Permissions
|
|
359
|
+
* @request POST:/customer/{customerID}/tilePermissions
|
|
360
|
+
* @secure
|
|
361
|
+
*/
|
|
362
|
+
listTilePermissions: (customerId, data, params = {}) => this.request({
|
|
363
|
+
path: `/customer/${customerId}/tilePermissions`,
|
|
364
|
+
method: 'POST',
|
|
365
|
+
body: data,
|
|
366
|
+
secure: true,
|
|
367
|
+
type: ContentType.Json,
|
|
368
|
+
...params,
|
|
369
|
+
}),
|
|
370
|
+
/**
|
|
371
|
+
* @description Retrieve requirement configuration by ID.
|
|
372
|
+
*
|
|
373
|
+
* @tags Requirement
|
|
374
|
+
* @name GetRequirement
|
|
375
|
+
* @summary Get Requirement
|
|
376
|
+
* @request GET:/customer/{customerID}/requirement/{requirementID}
|
|
377
|
+
* @secure
|
|
378
|
+
*/
|
|
379
|
+
getRequirement: (customerId, requirementId, params = {}) => this.request({
|
|
380
|
+
path: `/customer/${customerId}/requirement/${requirementId}`,
|
|
381
|
+
method: 'GET',
|
|
382
|
+
secure: true,
|
|
383
|
+
format: 'json',
|
|
384
|
+
...params,
|
|
385
|
+
}),
|
|
386
|
+
/**
|
|
387
|
+
* @description Create a new requirement configuration.
|
|
388
|
+
*
|
|
389
|
+
* @tags Requirement
|
|
390
|
+
* @name CreateRequirement
|
|
391
|
+
* @summary Create Requirement
|
|
392
|
+
* @request POST:/customer/{customerID}/requirement/{requirementID}
|
|
393
|
+
* @secure
|
|
394
|
+
*/
|
|
395
|
+
createRequirement: (customerId, requirementId, data, params = {}) => this.request({
|
|
396
|
+
path: `/customer/${customerId}/requirement/${requirementId}`,
|
|
397
|
+
method: 'POST',
|
|
398
|
+
body: data,
|
|
399
|
+
secure: true,
|
|
400
|
+
type: ContentType.Json,
|
|
401
|
+
...params,
|
|
402
|
+
}),
|
|
403
|
+
/**
|
|
404
|
+
* @description Update an existing requirement configuration.
|
|
405
|
+
*
|
|
406
|
+
* @tags Requirement
|
|
407
|
+
* @name UpdateRequirement
|
|
408
|
+
* @summary Update Requirement
|
|
409
|
+
* @request PUT:/customer/{customerID}/requirement/{requirementID}
|
|
410
|
+
* @secure
|
|
411
|
+
*/
|
|
412
|
+
updateRequirement: (customerId, requirementId, data, params = {}) => this.request({
|
|
413
|
+
path: `/customer/${customerId}/requirement/${requirementId}`,
|
|
414
|
+
method: 'PUT',
|
|
415
|
+
body: data,
|
|
416
|
+
secure: true,
|
|
417
|
+
type: ContentType.Json,
|
|
418
|
+
...params,
|
|
419
|
+
}),
|
|
420
|
+
/**
|
|
421
|
+
* @description Delete a requirement configuration.
|
|
422
|
+
*
|
|
423
|
+
* @tags Requirement
|
|
424
|
+
* @name DeleteRequirement
|
|
425
|
+
* @summary Delete Requirement
|
|
426
|
+
* @request DELETE:/customer/{customerID}/requirement/{requirementID}
|
|
427
|
+
* @secure
|
|
428
|
+
*/
|
|
429
|
+
deleteRequirement: (customerId, requirementId, params = {}) => this.request({
|
|
430
|
+
path: `/customer/${customerId}/requirement/${requirementId}`,
|
|
431
|
+
method: 'DELETE',
|
|
432
|
+
secure: true,
|
|
433
|
+
...params,
|
|
434
|
+
}),
|
|
435
|
+
/**
|
|
436
|
+
* @description Retrieve all requirement configurations for a customer.
|
|
437
|
+
*
|
|
438
|
+
* @tags Requirement
|
|
439
|
+
* @name GetRequirements
|
|
440
|
+
* @summary Get All Requirements
|
|
441
|
+
* @request GET:/customer/{customerID}/requirements
|
|
442
|
+
* @secure
|
|
443
|
+
*/
|
|
444
|
+
getRequirements: (customerId, params = {}) => this.request({
|
|
445
|
+
path: `/customer/${customerId}/requirements`,
|
|
446
|
+
method: 'GET',
|
|
447
|
+
secure: true,
|
|
448
|
+
format: 'json',
|
|
449
|
+
...params,
|
|
450
|
+
}),
|
|
451
|
+
/**
|
|
452
|
+
* @description Retrieve equivalence configuration by ID.
|
|
453
|
+
*
|
|
454
|
+
* @tags Equivalence
|
|
455
|
+
* @name GetEquivalence
|
|
456
|
+
* @summary Get Equivalence
|
|
457
|
+
* @request GET:/customer/{customerID}/equivalence/{equivalenceID}
|
|
458
|
+
* @secure
|
|
459
|
+
*/
|
|
460
|
+
getEquivalence: (customerId, equivalenceId, params = {}) => this.request({
|
|
461
|
+
path: `/customer/${customerId}/equivalence/${equivalenceId}`,
|
|
462
|
+
method: 'GET',
|
|
463
|
+
secure: true,
|
|
464
|
+
format: 'json',
|
|
465
|
+
...params,
|
|
466
|
+
}),
|
|
467
|
+
/**
|
|
468
|
+
* @description Create a new equivalence configuration.
|
|
469
|
+
*
|
|
470
|
+
* @tags Equivalence
|
|
471
|
+
* @name CreateEquivalence
|
|
472
|
+
* @summary Create Equivalence
|
|
473
|
+
* @request POST:/customer/{customerID}/equivalence/{equivalenceID}
|
|
474
|
+
* @secure
|
|
475
|
+
*/
|
|
476
|
+
createEquivalence: (customerId, equivalenceId, data, params = {}) => this.request({
|
|
477
|
+
path: `/customer/${customerId}/equivalence/${equivalenceId}`,
|
|
478
|
+
method: 'POST',
|
|
479
|
+
body: data,
|
|
480
|
+
secure: true,
|
|
481
|
+
type: ContentType.Json,
|
|
482
|
+
...params,
|
|
483
|
+
}),
|
|
484
|
+
/**
|
|
485
|
+
* @description Update an existing equivalence configuration.
|
|
486
|
+
*
|
|
487
|
+
* @tags Equivalence
|
|
488
|
+
* @name UpdateEquivalence
|
|
489
|
+
* @summary Update Equivalence
|
|
490
|
+
* @request PUT:/customer/{customerID}/equivalence/{equivalenceID}
|
|
491
|
+
* @secure
|
|
492
|
+
*/
|
|
493
|
+
updateEquivalence: (customerId, equivalenceId, data, params = {}) => this.request({
|
|
494
|
+
path: `/customer/${customerId}/equivalence/${equivalenceId}`,
|
|
495
|
+
method: 'PUT',
|
|
496
|
+
body: data,
|
|
497
|
+
secure: true,
|
|
498
|
+
type: ContentType.Json,
|
|
499
|
+
...params,
|
|
500
|
+
}),
|
|
501
|
+
/**
|
|
502
|
+
* @description Delete an equivalence configuration.
|
|
503
|
+
*
|
|
504
|
+
* @tags Equivalence
|
|
505
|
+
* @name DeleteEquivalence
|
|
506
|
+
* @summary Delete Equivalence
|
|
507
|
+
* @request DELETE:/customer/{customerID}/equivalence/{equivalenceID}
|
|
508
|
+
* @secure
|
|
509
|
+
*/
|
|
510
|
+
deleteEquivalence: (customerId, equivalenceId, params = {}) => this.request({
|
|
511
|
+
path: `/customer/${customerId}/equivalence/${equivalenceId}`,
|
|
512
|
+
method: 'DELETE',
|
|
513
|
+
secure: true,
|
|
514
|
+
...params,
|
|
515
|
+
}),
|
|
516
|
+
/**
|
|
517
|
+
* @description Retrieve all equivalence configurations for a customer.
|
|
518
|
+
*
|
|
519
|
+
* @tags Equivalence
|
|
520
|
+
* @name GetEquivalences
|
|
521
|
+
* @summary Get All Equivalences
|
|
522
|
+
* @request GET:/customer/{customerID}/equivalences
|
|
523
|
+
* @secure
|
|
524
|
+
*/
|
|
525
|
+
getEquivalences: (customerId, params = {}) => this.request({
|
|
526
|
+
path: `/customer/${customerId}/equivalences`,
|
|
527
|
+
method: 'GET',
|
|
528
|
+
secure: true,
|
|
529
|
+
format: 'json',
|
|
530
|
+
...params,
|
|
531
|
+
}),
|
|
532
|
+
};
|
|
533
|
+
this.customers = {
|
|
534
|
+
/**
|
|
535
|
+
* @description Retrieve all customer configurations.
|
|
536
|
+
*
|
|
537
|
+
* @tags Customer
|
|
538
|
+
* @name ListCustomers
|
|
539
|
+
* @summary Get All Customers
|
|
540
|
+
* @request GET:/customers
|
|
541
|
+
* @secure
|
|
542
|
+
*/
|
|
543
|
+
listCustomers: (params = {}) => this.request({
|
|
544
|
+
path: `/customers`,
|
|
545
|
+
method: 'GET',
|
|
546
|
+
secure: true,
|
|
547
|
+
...params,
|
|
548
|
+
}),
|
|
549
|
+
};
|
|
550
|
+
this.healthCheck = {
|
|
551
|
+
/**
|
|
552
|
+
* @description Check API health status.
|
|
553
|
+
*
|
|
554
|
+
* @tags Health
|
|
555
|
+
* @name GetHealthCheck
|
|
556
|
+
* @summary Health Check
|
|
557
|
+
* @request GET:/healthCheck/{requestID}
|
|
558
|
+
*/
|
|
559
|
+
getHealthCheck: (requestId, params = {}) => this.request({
|
|
560
|
+
path: `/healthCheck/${requestId}`,
|
|
561
|
+
method: 'GET',
|
|
562
|
+
...params,
|
|
563
|
+
}),
|
|
564
|
+
};
|
|
565
|
+
this.courseProvider = {
|
|
566
|
+
/**
|
|
567
|
+
* @description Retrieve course provider configuration by ID.
|
|
568
|
+
*
|
|
569
|
+
* @tags Course Provider
|
|
570
|
+
* @name GetCourseProvider
|
|
571
|
+
* @summary Get Course Provider
|
|
572
|
+
* @request GET:/courseProvider/{courseProviderID}
|
|
573
|
+
* @secure
|
|
574
|
+
*/
|
|
575
|
+
getCourseProvider: (courseProviderId, params = {}) => this.request({
|
|
576
|
+
path: `/courseProvider/${courseProviderId}`,
|
|
577
|
+
method: 'GET',
|
|
578
|
+
secure: true,
|
|
579
|
+
format: 'json',
|
|
580
|
+
...params,
|
|
581
|
+
}),
|
|
582
|
+
/**
|
|
583
|
+
* @description Create a new course provider configuration.
|
|
584
|
+
*
|
|
585
|
+
* @tags Course Provider
|
|
586
|
+
* @name CreateCourseProvider
|
|
587
|
+
* @summary Create Course Provider
|
|
588
|
+
* @request POST:/courseProvider/{courseProviderID}
|
|
589
|
+
* @secure
|
|
590
|
+
*/
|
|
591
|
+
createCourseProvider: (courseProviderId, data, params = {}) => this.request({
|
|
592
|
+
path: `/courseProvider/${courseProviderId}`,
|
|
593
|
+
method: 'POST',
|
|
594
|
+
body: data,
|
|
595
|
+
secure: true,
|
|
596
|
+
type: ContentType.Json,
|
|
597
|
+
...params,
|
|
598
|
+
}),
|
|
599
|
+
/**
|
|
600
|
+
* @description Update an existing course provider configuration.
|
|
601
|
+
*
|
|
602
|
+
* @tags Course Provider
|
|
603
|
+
* @name UpdateCourseProvider
|
|
604
|
+
* @summary Update Course Provider
|
|
605
|
+
* @request PUT:/courseProvider/{courseProviderID}
|
|
606
|
+
* @secure
|
|
607
|
+
*/
|
|
608
|
+
updateCourseProvider: (courseProviderId, data, params = {}) => this.request({
|
|
609
|
+
path: `/courseProvider/${courseProviderId}`,
|
|
610
|
+
method: 'PUT',
|
|
611
|
+
body: data,
|
|
612
|
+
secure: true,
|
|
613
|
+
type: ContentType.Json,
|
|
614
|
+
...params,
|
|
615
|
+
}),
|
|
616
|
+
/**
|
|
617
|
+
* @description Delete a course provider configuration.
|
|
618
|
+
*
|
|
619
|
+
* @tags Course Provider
|
|
620
|
+
* @name DeleteCourseProvider
|
|
621
|
+
* @summary Delete Course Provider
|
|
622
|
+
* @request DELETE:/courseProvider/{courseProviderID}
|
|
623
|
+
* @secure
|
|
624
|
+
*/
|
|
625
|
+
deleteCourseProvider: (courseProviderId, params = {}) => this.request({
|
|
626
|
+
path: `/courseProvider/${courseProviderId}`,
|
|
627
|
+
method: 'DELETE',
|
|
628
|
+
secure: true,
|
|
629
|
+
...params,
|
|
630
|
+
}),
|
|
631
|
+
};
|
|
632
|
+
this.courseProviders = {
|
|
633
|
+
/**
|
|
634
|
+
* @description Retrieve all course provider configurations.
|
|
635
|
+
*
|
|
636
|
+
* @tags Course Provider
|
|
637
|
+
* @name ListCourseProviders
|
|
638
|
+
* @summary Get All Course Providers
|
|
639
|
+
* @request GET:/courseProviders
|
|
640
|
+
* @secure
|
|
641
|
+
*/
|
|
642
|
+
listCourseProviders: (params = {}) => this.request({
|
|
643
|
+
path: `/courseProviders`,
|
|
644
|
+
method: 'GET',
|
|
645
|
+
secure: true,
|
|
646
|
+
format: 'json',
|
|
647
|
+
...params,
|
|
648
|
+
}),
|
|
649
|
+
};
|
|
650
|
+
this.tenant = {
|
|
651
|
+
/**
|
|
652
|
+
* @description Retrieve FAQ by ID.
|
|
653
|
+
*
|
|
654
|
+
* @tags FAQ
|
|
655
|
+
* @name GetFaq
|
|
656
|
+
* @summary Get FAQ
|
|
657
|
+
* @request GET:/tenant/{tenantID}/faq/{faqID}
|
|
658
|
+
* @secure
|
|
659
|
+
*/
|
|
660
|
+
getFaq: (tenantId, faqId, params = {}) => this.request({
|
|
661
|
+
path: `/tenant/${tenantId}/faq/${faqId}`,
|
|
662
|
+
method: 'GET',
|
|
663
|
+
secure: true,
|
|
664
|
+
format: 'json',
|
|
665
|
+
...params,
|
|
666
|
+
}),
|
|
667
|
+
/**
|
|
668
|
+
* @description Create a new FAQ.
|
|
669
|
+
*
|
|
670
|
+
* @tags FAQ
|
|
671
|
+
* @name CreateFaq
|
|
672
|
+
* @summary Create FAQ
|
|
673
|
+
* @request POST:/tenant/{tenantID}/faq/{faqID}
|
|
674
|
+
* @secure
|
|
675
|
+
*/
|
|
676
|
+
createFaq: (tenantId, faqId, data, params = {}) => this.request({
|
|
677
|
+
path: `/tenant/${tenantId}/faq/${faqId}`,
|
|
678
|
+
method: 'POST',
|
|
679
|
+
body: data,
|
|
680
|
+
secure: true,
|
|
681
|
+
type: ContentType.Json,
|
|
682
|
+
...params,
|
|
683
|
+
}),
|
|
684
|
+
/**
|
|
685
|
+
* @description Update an existing FAQ.
|
|
686
|
+
*
|
|
687
|
+
* @tags FAQ
|
|
688
|
+
* @name UpdateFaq
|
|
689
|
+
* @summary Update FAQ
|
|
690
|
+
* @request PUT:/tenant/{tenantID}/faq/{faqID}
|
|
691
|
+
* @secure
|
|
692
|
+
*/
|
|
693
|
+
updateFaq: (tenantId, faqId, data, params = {}) => this.request({
|
|
694
|
+
path: `/tenant/${tenantId}/faq/${faqId}`,
|
|
695
|
+
method: 'PUT',
|
|
696
|
+
body: data,
|
|
697
|
+
secure: true,
|
|
698
|
+
type: ContentType.Json,
|
|
699
|
+
...params,
|
|
700
|
+
}),
|
|
701
|
+
/**
|
|
702
|
+
* @description Delete a FAQ.
|
|
703
|
+
*
|
|
704
|
+
* @tags FAQ
|
|
705
|
+
* @name DeleteFaq
|
|
706
|
+
* @summary Delete FAQ
|
|
707
|
+
* @request DELETE:/tenant/{tenantID}/faq/{faqID}
|
|
708
|
+
* @secure
|
|
709
|
+
*/
|
|
710
|
+
deleteFaq: (tenantId, faqId, params = {}) => this.request({
|
|
711
|
+
path: `/tenant/${tenantId}/faq/${faqId}`,
|
|
712
|
+
method: 'DELETE',
|
|
713
|
+
secure: true,
|
|
714
|
+
...params,
|
|
715
|
+
}),
|
|
716
|
+
/**
|
|
717
|
+
* @description Retrieve all FAQs for a tenant.
|
|
718
|
+
*
|
|
719
|
+
* @tags FAQ
|
|
720
|
+
* @name GetFaqs
|
|
721
|
+
* @summary Get FAQs
|
|
722
|
+
* @request GET:/tenant/{tenantID}/faqs
|
|
723
|
+
* @secure
|
|
724
|
+
*/
|
|
725
|
+
getFaqs: (tenantId, params = {}) => this.request({
|
|
726
|
+
path: `/tenant/${tenantId}/faqs`,
|
|
727
|
+
method: 'GET',
|
|
728
|
+
secure: true,
|
|
729
|
+
format: 'json',
|
|
730
|
+
...params,
|
|
731
|
+
}),
|
|
732
|
+
/**
|
|
733
|
+
* @description Retrieve certification by ID.
|
|
734
|
+
*
|
|
735
|
+
* @tags Certification
|
|
736
|
+
* @name GetCertification
|
|
737
|
+
* @summary Get Certification
|
|
738
|
+
* @request GET:/tenant/{tenantID}/certification/{certificationID}
|
|
739
|
+
* @secure
|
|
740
|
+
*/
|
|
741
|
+
getCertification: (tenantId, certificationId, params = {}) => this.request({
|
|
742
|
+
path: `/tenant/${tenantId}/certification/${certificationId}`,
|
|
743
|
+
method: 'GET',
|
|
744
|
+
secure: true,
|
|
745
|
+
format: 'json',
|
|
746
|
+
...params,
|
|
747
|
+
}),
|
|
748
|
+
/**
|
|
749
|
+
* @description Create a new certification.
|
|
750
|
+
*
|
|
751
|
+
* @tags Certification
|
|
752
|
+
* @name CreateCertification
|
|
753
|
+
* @summary Create Certification
|
|
754
|
+
* @request POST:/tenant/{tenantID}/certification/{certificationID}
|
|
755
|
+
* @secure
|
|
756
|
+
*/
|
|
757
|
+
createCertification: (tenantId, certificationId, data, params = {}) => this.request({
|
|
758
|
+
path: `/tenant/${tenantId}/certification/${certificationId}`,
|
|
759
|
+
method: 'POST',
|
|
760
|
+
body: data,
|
|
761
|
+
secure: true,
|
|
762
|
+
type: ContentType.Json,
|
|
763
|
+
...params,
|
|
764
|
+
}),
|
|
765
|
+
/**
|
|
766
|
+
* @description Update an existing certification.
|
|
767
|
+
*
|
|
768
|
+
* @tags Certification
|
|
769
|
+
* @name UpdateCertification
|
|
770
|
+
* @summary Update Certification
|
|
771
|
+
* @request PUT:/tenant/{tenantID}/certification/{certificationID}
|
|
772
|
+
* @secure
|
|
773
|
+
*/
|
|
774
|
+
updateCertification: (tenantId, certificationId, data, params = {}) => this.request({
|
|
775
|
+
path: `/tenant/${tenantId}/certification/${certificationId}`,
|
|
776
|
+
method: 'PUT',
|
|
777
|
+
body: data,
|
|
778
|
+
secure: true,
|
|
779
|
+
type: ContentType.Json,
|
|
780
|
+
...params,
|
|
781
|
+
}),
|
|
782
|
+
/**
|
|
783
|
+
* @description Delete a certification.
|
|
784
|
+
*
|
|
785
|
+
* @tags Certification
|
|
786
|
+
* @name DeleteCertification
|
|
787
|
+
* @summary Delete Certification
|
|
788
|
+
* @request DELETE:/tenant/{tenantID}/certification/{certificationID}
|
|
789
|
+
* @secure
|
|
790
|
+
*/
|
|
791
|
+
deleteCertification: (tenantId, certificationId, params = {}) => this.request({
|
|
792
|
+
path: `/tenant/${tenantId}/certification/${certificationId}`,
|
|
793
|
+
method: 'DELETE',
|
|
794
|
+
secure: true,
|
|
795
|
+
...params,
|
|
796
|
+
}),
|
|
797
|
+
/**
|
|
798
|
+
* @description Retrieve all certifications for a tenant.
|
|
799
|
+
*
|
|
800
|
+
* @tags Certification
|
|
801
|
+
* @name GetCertifications
|
|
802
|
+
* @summary Get Certifications
|
|
803
|
+
* @request GET:/tenant/{tenantID}/certifications
|
|
804
|
+
* @secure
|
|
805
|
+
*/
|
|
806
|
+
getCertifications: (tenantId, params = {}) => this.request({
|
|
807
|
+
path: `/tenant/${tenantId}/certifications`,
|
|
808
|
+
method: 'GET',
|
|
809
|
+
secure: true,
|
|
810
|
+
format: 'json',
|
|
811
|
+
...params,
|
|
812
|
+
}),
|
|
813
|
+
};
|
|
814
|
+
this.certification = {
|
|
815
|
+
/**
|
|
816
|
+
* @description Retrieve course by ID.
|
|
817
|
+
*
|
|
818
|
+
* @tags Course
|
|
819
|
+
* @name GetCourse
|
|
820
|
+
* @summary Get Course
|
|
821
|
+
* @request GET:/certification/{certificationID}/course/{courseID}
|
|
822
|
+
* @secure
|
|
823
|
+
*/
|
|
824
|
+
getCourse: (certificationId, courseId, params = {}) => this.request({
|
|
825
|
+
path: `/certification/${certificationId}/course/${courseId}`,
|
|
826
|
+
method: 'GET',
|
|
827
|
+
secure: true,
|
|
828
|
+
format: 'json',
|
|
829
|
+
...params,
|
|
830
|
+
}),
|
|
831
|
+
/**
|
|
832
|
+
* @description Create a new course.
|
|
833
|
+
*
|
|
834
|
+
* @tags Course
|
|
835
|
+
* @name CreateCourse
|
|
836
|
+
* @summary Create Course
|
|
837
|
+
* @request POST:/certification/{certificationID}/course/{courseID}
|
|
838
|
+
* @secure
|
|
839
|
+
*/
|
|
840
|
+
createCourse: (certificationId, courseId, data, params = {}) => this.request({
|
|
841
|
+
path: `/certification/${certificationId}/course/${courseId}`,
|
|
842
|
+
method: 'POST',
|
|
843
|
+
body: data,
|
|
844
|
+
secure: true,
|
|
845
|
+
type: ContentType.Json,
|
|
846
|
+
...params,
|
|
847
|
+
}),
|
|
848
|
+
/**
|
|
849
|
+
* @description Update an existing course.
|
|
850
|
+
*
|
|
851
|
+
* @tags Course
|
|
852
|
+
* @name UpdateCourse
|
|
853
|
+
* @summary Update Course
|
|
854
|
+
* @request PUT:/certification/{certificationID}/course/{courseID}
|
|
855
|
+
* @secure
|
|
856
|
+
*/
|
|
857
|
+
updateCourse: (certificationId, courseId, data, params = {}) => this.request({
|
|
858
|
+
path: `/certification/${certificationId}/course/${courseId}`,
|
|
859
|
+
method: 'PUT',
|
|
860
|
+
body: data,
|
|
861
|
+
secure: true,
|
|
862
|
+
type: ContentType.Json,
|
|
863
|
+
...params,
|
|
864
|
+
}),
|
|
865
|
+
/**
|
|
866
|
+
* @description Delete a course.
|
|
867
|
+
*
|
|
868
|
+
* @tags Course
|
|
869
|
+
* @name DeleteCourse
|
|
870
|
+
* @summary Delete Course
|
|
871
|
+
* @request DELETE:/certification/{certificationID}/course/{courseID}
|
|
872
|
+
* @secure
|
|
873
|
+
*/
|
|
874
|
+
deleteCourse: (certificationId, courseId, params = {}) => this.request({
|
|
875
|
+
path: `/certification/${certificationId}/course/${courseId}`,
|
|
876
|
+
method: 'DELETE',
|
|
877
|
+
secure: true,
|
|
878
|
+
...params,
|
|
879
|
+
}),
|
|
880
|
+
/**
|
|
881
|
+
* @description Add a coursebook file to a course.
|
|
882
|
+
*
|
|
883
|
+
* @tags CourseBook
|
|
884
|
+
* @name CreateCourseCourseBook
|
|
885
|
+
* @summary Add CourseBook
|
|
886
|
+
* @request POST:/certification/{certificationID}/course/{courseID}/courseBook
|
|
887
|
+
* @secure
|
|
888
|
+
*/
|
|
889
|
+
createCourseCourseBook: (certificationId, courseId, data, params = {}) => this.request({
|
|
890
|
+
path: `/certification/${certificationId}/course/${courseId}/courseBook`,
|
|
891
|
+
method: 'POST',
|
|
892
|
+
body: data,
|
|
893
|
+
secure: true,
|
|
894
|
+
type: ContentType.Json,
|
|
895
|
+
format: 'json',
|
|
896
|
+
...params,
|
|
897
|
+
}),
|
|
898
|
+
/**
|
|
899
|
+
* @description Get a signed URL for downloading a coursebook file.
|
|
900
|
+
*
|
|
901
|
+
* @tags CourseBook
|
|
902
|
+
* @name GetCourseCourseBookFileSign
|
|
903
|
+
* @summary Get CourseBook File Signed URL
|
|
904
|
+
* @request GET:/certification/{certificationID}/course/{courseID}/courseBook/fileSign/{fileID}
|
|
905
|
+
* @secure
|
|
906
|
+
*/
|
|
907
|
+
getCourseCourseBookFileSign: (certificationId, courseId, fileId, params = {}) => this.request({
|
|
908
|
+
path: `/certification/${certificationId}/course/${courseId}/courseBook/fileSign/${fileId}`,
|
|
909
|
+
method: 'GET',
|
|
910
|
+
secure: true,
|
|
911
|
+
format: 'json',
|
|
912
|
+
...params,
|
|
913
|
+
}),
|
|
914
|
+
/**
|
|
915
|
+
* @description Create a signed URL for uploading a coursebook file.
|
|
916
|
+
*
|
|
917
|
+
* @tags CourseBook
|
|
918
|
+
* @name CreateCourseCourseBookFileSign
|
|
919
|
+
* @summary Create CourseBook File Upload Signed URL
|
|
920
|
+
* @request POST:/certification/{certificationID}/course/{courseID}/courseBook/fileSign/{fileID}
|
|
921
|
+
* @secure
|
|
922
|
+
*/
|
|
923
|
+
createCourseCourseBookFileSign: ({ certificationId, courseId, fileId, ...query }, params = {}) => this.request({
|
|
924
|
+
path: `/certification/${certificationId}/course/${courseId}/courseBook/fileSign/${fileId}`,
|
|
925
|
+
method: 'POST',
|
|
926
|
+
query: query,
|
|
927
|
+
secure: true,
|
|
928
|
+
format: 'json',
|
|
929
|
+
...params,
|
|
930
|
+
}),
|
|
931
|
+
/**
|
|
932
|
+
* @description Create a signed URL for deleting a coursebook file.
|
|
933
|
+
*
|
|
934
|
+
* @tags CourseBook
|
|
935
|
+
* @name DeleteCourseCourseBookFileSign
|
|
936
|
+
* @summary Create CourseBook File Delete Signed URL
|
|
937
|
+
* @request DELETE:/certification/{certificationID}/course/{courseID}/courseBook/fileSign/{fileID}
|
|
938
|
+
* @secure
|
|
939
|
+
*/
|
|
940
|
+
deleteCourseCourseBookFileSign: (certificationId, courseId, fileId, params = {}) => this.request({
|
|
941
|
+
path: `/certification/${certificationId}/course/${courseId}/courseBook/fileSign/${fileId}`,
|
|
942
|
+
method: 'DELETE',
|
|
943
|
+
secure: true,
|
|
944
|
+
format: 'json',
|
|
945
|
+
...params,
|
|
946
|
+
}),
|
|
947
|
+
/**
|
|
948
|
+
* @description Delete a coursebook file from a course.
|
|
949
|
+
*
|
|
950
|
+
* @tags CourseBook
|
|
951
|
+
* @name DeleteCourseCourseBook
|
|
952
|
+
* @summary Delete CourseBook
|
|
953
|
+
* @request DELETE:/certification/{certificationID}/course/{courseID}/courseBook/{fileID}
|
|
954
|
+
* @secure
|
|
955
|
+
*/
|
|
956
|
+
deleteCourseCourseBook: (certificationId, courseId, fileId, params = {}) => this.request({
|
|
957
|
+
path: `/certification/${certificationId}/course/${courseId}/courseBook/${fileId}`,
|
|
958
|
+
method: 'DELETE',
|
|
959
|
+
secure: true,
|
|
960
|
+
format: 'json',
|
|
961
|
+
...params,
|
|
962
|
+
}),
|
|
963
|
+
/**
|
|
964
|
+
* @description Retrieve all courses for a certification.
|
|
965
|
+
*
|
|
966
|
+
* @tags Course
|
|
967
|
+
* @name GetCourses
|
|
968
|
+
* @summary Get Courses
|
|
969
|
+
* @request GET:/certification/{certificationID}/courses
|
|
970
|
+
* @secure
|
|
971
|
+
*/
|
|
972
|
+
getCourses: (certificationId, params = {}) => this.request({
|
|
973
|
+
path: `/certification/${certificationId}/courses`,
|
|
974
|
+
method: 'GET',
|
|
975
|
+
secure: true,
|
|
976
|
+
format: 'json',
|
|
977
|
+
...params,
|
|
978
|
+
}),
|
|
979
|
+
/**
|
|
980
|
+
* @description Retrieve cert equivalence by ID and type.
|
|
981
|
+
*
|
|
982
|
+
* @tags CertEquivalence
|
|
983
|
+
* @name GetEquivalenceType
|
|
984
|
+
* @summary Get Cert Equivalence
|
|
985
|
+
* @request GET:/certification/{certificationID}/equivalence/{equivalenceID}/type/{type}
|
|
986
|
+
* @secure
|
|
987
|
+
*/
|
|
988
|
+
getEquivalenceType: (certificationId, equivalenceId, type, params = {}) => this.request({
|
|
989
|
+
path: `/certification/${certificationId}/equivalence/${equivalenceId}/type/${type}`,
|
|
990
|
+
method: 'GET',
|
|
991
|
+
secure: true,
|
|
992
|
+
format: 'json',
|
|
993
|
+
...params,
|
|
994
|
+
}),
|
|
995
|
+
/**
|
|
996
|
+
* @description Create a new cert equivalence.
|
|
997
|
+
*
|
|
998
|
+
* @tags CertEquivalence
|
|
999
|
+
* @name CreateEquivalenceType
|
|
1000
|
+
* @summary Create Cert Equivalence
|
|
1001
|
+
* @request POST:/certification/{certificationID}/equivalence/{equivalenceID}/type/{type}
|
|
1002
|
+
* @secure
|
|
1003
|
+
*/
|
|
1004
|
+
createEquivalenceType: (certificationId, equivalenceId, type, data, params = {}) => this.request({
|
|
1005
|
+
path: `/certification/${certificationId}/equivalence/${equivalenceId}/type/${type}`,
|
|
1006
|
+
method: 'POST',
|
|
1007
|
+
body: data,
|
|
1008
|
+
secure: true,
|
|
1009
|
+
type: ContentType.Json,
|
|
1010
|
+
...params,
|
|
1011
|
+
}),
|
|
1012
|
+
/**
|
|
1013
|
+
* @description Update an existing cert equivalence.
|
|
1014
|
+
*
|
|
1015
|
+
* @tags CertEquivalence
|
|
1016
|
+
* @name UpdateEquivalenceType
|
|
1017
|
+
* @summary Update Cert Equivalence
|
|
1018
|
+
* @request PUT:/certification/{certificationID}/equivalence/{equivalenceID}/type/{type}
|
|
1019
|
+
* @secure
|
|
1020
|
+
*/
|
|
1021
|
+
updateEquivalenceType: (certificationId, equivalenceId, type, data, params = {}) => this.request({
|
|
1022
|
+
path: `/certification/${certificationId}/equivalence/${equivalenceId}/type/${type}`,
|
|
1023
|
+
method: 'PUT',
|
|
1024
|
+
body: data,
|
|
1025
|
+
secure: true,
|
|
1026
|
+
type: ContentType.Json,
|
|
1027
|
+
...params,
|
|
1028
|
+
}),
|
|
1029
|
+
/**
|
|
1030
|
+
* @description Delete a cert equivalence.
|
|
1031
|
+
*
|
|
1032
|
+
* @tags CertEquivalence
|
|
1033
|
+
* @name DeleteEquivalenceType
|
|
1034
|
+
* @summary Delete Cert Equivalence
|
|
1035
|
+
* @request DELETE:/certification/{certificationID}/equivalence/{equivalenceID}/type/{type}
|
|
1036
|
+
* @secure
|
|
1037
|
+
*/
|
|
1038
|
+
deleteEquivalenceType: (certificationId, equivalenceId, type, params = {}) => this.request({
|
|
1039
|
+
path: `/certification/${certificationId}/equivalence/${equivalenceId}/type/${type}`,
|
|
1040
|
+
method: 'DELETE',
|
|
1041
|
+
secure: true,
|
|
1042
|
+
...params,
|
|
1043
|
+
}),
|
|
1044
|
+
/**
|
|
1045
|
+
* @description Retrieve all cert equivalences for a certification.
|
|
1046
|
+
*
|
|
1047
|
+
* @tags CertEquivalence
|
|
1048
|
+
* @name GetEquivalences
|
|
1049
|
+
* @summary Get Cert Equivalences
|
|
1050
|
+
* @request GET:/certification/{certificationID}/equivalences
|
|
1051
|
+
* @secure
|
|
1052
|
+
*/
|
|
1053
|
+
getEquivalences: (certificationId, params = {}) => this.request({
|
|
1054
|
+
path: `/certification/${certificationId}/equivalences`,
|
|
1055
|
+
method: 'GET',
|
|
1056
|
+
secure: true,
|
|
1057
|
+
format: 'json',
|
|
1058
|
+
...params,
|
|
1059
|
+
}),
|
|
1060
|
+
/**
|
|
1061
|
+
* @description Retrieve cert requirement by ID and type.
|
|
1062
|
+
*
|
|
1063
|
+
* @tags CertRequirement
|
|
1064
|
+
* @name GetRequirementType
|
|
1065
|
+
* @summary Get Cert Requirement
|
|
1066
|
+
* @request GET:/certification/{certificationID}/requirement/{requirementID}/type/{type}
|
|
1067
|
+
* @secure
|
|
1068
|
+
*/
|
|
1069
|
+
getRequirementType: (certificationId, requirementId, type, params = {}) => this.request({
|
|
1070
|
+
path: `/certification/${certificationId}/requirement/${requirementId}/type/${type}`,
|
|
1071
|
+
method: 'GET',
|
|
1072
|
+
secure: true,
|
|
1073
|
+
format: 'json',
|
|
1074
|
+
...params,
|
|
1075
|
+
}),
|
|
1076
|
+
/**
|
|
1077
|
+
* @description Create a new cert requirement.
|
|
1078
|
+
*
|
|
1079
|
+
* @tags CertRequirement
|
|
1080
|
+
* @name CreateRequirementType
|
|
1081
|
+
* @summary Create Cert Requirement
|
|
1082
|
+
* @request POST:/certification/{certificationID}/requirement/{requirementID}/type/{type}
|
|
1083
|
+
* @secure
|
|
1084
|
+
*/
|
|
1085
|
+
createRequirementType: (certificationId, requirementId, type, data, params = {}) => this.request({
|
|
1086
|
+
path: `/certification/${certificationId}/requirement/${requirementId}/type/${type}`,
|
|
1087
|
+
method: 'POST',
|
|
1088
|
+
body: data,
|
|
1089
|
+
secure: true,
|
|
1090
|
+
type: ContentType.Json,
|
|
1091
|
+
...params,
|
|
1092
|
+
}),
|
|
1093
|
+
/**
|
|
1094
|
+
* @description Update an existing cert requirement.
|
|
1095
|
+
*
|
|
1096
|
+
* @tags CertRequirement
|
|
1097
|
+
* @name UpdateRequirementType
|
|
1098
|
+
* @summary Update Cert Requirement
|
|
1099
|
+
* @request PUT:/certification/{certificationID}/requirement/{requirementID}/type/{type}
|
|
1100
|
+
* @secure
|
|
1101
|
+
*/
|
|
1102
|
+
updateRequirementType: (certificationId, requirementId, type, data, params = {}) => this.request({
|
|
1103
|
+
path: `/certification/${certificationId}/requirement/${requirementId}/type/${type}`,
|
|
1104
|
+
method: 'PUT',
|
|
1105
|
+
body: data,
|
|
1106
|
+
secure: true,
|
|
1107
|
+
type: ContentType.Json,
|
|
1108
|
+
...params,
|
|
1109
|
+
}),
|
|
1110
|
+
/**
|
|
1111
|
+
* @description Delete a cert requirement.
|
|
1112
|
+
*
|
|
1113
|
+
* @tags CertRequirement
|
|
1114
|
+
* @name DeleteRequirementType
|
|
1115
|
+
* @summary Delete Cert Requirement
|
|
1116
|
+
* @request DELETE:/certification/{certificationID}/requirement/{requirementID}/type/{type}
|
|
1117
|
+
* @secure
|
|
1118
|
+
*/
|
|
1119
|
+
deleteRequirementType: (certificationId, requirementId, type, params = {}) => this.request({
|
|
1120
|
+
path: `/certification/${certificationId}/requirement/${requirementId}/type/${type}`,
|
|
1121
|
+
method: 'DELETE',
|
|
1122
|
+
secure: true,
|
|
1123
|
+
...params,
|
|
1124
|
+
}),
|
|
1125
|
+
/**
|
|
1126
|
+
* @description Retrieve all cert requirements for a certification.
|
|
1127
|
+
*
|
|
1128
|
+
* @tags CertRequirement
|
|
1129
|
+
* @name GetRequirements
|
|
1130
|
+
* @summary Get Cert Requirements
|
|
1131
|
+
* @request GET:/certification/{certificationID}/requirements
|
|
1132
|
+
* @secure
|
|
1133
|
+
*/
|
|
1134
|
+
getRequirements: (certificationId, params = {}) => this.request({
|
|
1135
|
+
path: `/certification/${certificationId}/requirements`,
|
|
1136
|
+
method: 'GET',
|
|
1137
|
+
secure: true,
|
|
1138
|
+
format: 'json',
|
|
1139
|
+
...params,
|
|
1140
|
+
}),
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
exports.Api = Api;
|
|
1145
|
+
//# sourceMappingURL=Api.js.map
|