@easyedu/js-lsm-api 1.57.0 → 1.59.0
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/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +38 -1
- package/dist/apis/UserApi.js +115 -10
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +38 -1
- package/dist/esm/apis/UserApi.js +108 -3
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/GetUser.d.ts +6 -0
- package/dist/esm/models/GetUser.js +2 -0
- package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/esm/models/GetUserAvatarUpload.js +43 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/GetUser.d.ts +6 -0
- package/dist/models/GetUser.js +2 -0
- package/dist/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/models/GetUserAvatarUpload.js +50 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/models/UpdateSelectedPortalResponse.js +59 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/GetUser.md +2 -0
- package/docs/GetUserAvatarUpload.md +34 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +38 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/docs/UserApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +150 -12
- package/src/models/GetPortal.ts +16 -0
- package/src/models/GetUser.ts +8 -0
- package/src/models/GetUserAvatarUpload.ts +66 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +92 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -2
package/dist/apis/ContentApi.js
CHANGED
|
@@ -24,7 +24,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.PostContentSessionEnvironmentEnum = exports.ListContentSessionsEnvironmentEnum = exports.ContentApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetContent_1 = require("../models/GetContent");
|
|
28
|
+
const GetContentList_1 = require("../models/GetContentList");
|
|
29
|
+
const GetContentSession_1 = require("../models/GetContentSession");
|
|
30
|
+
const GetContentSessionDetail_1 = require("../models/GetContentSessionDetail");
|
|
31
|
+
const GetContentSessionList_1 = require("../models/GetContentSessionList");
|
|
32
|
+
const GetContentUpload_1 = require("../models/GetContentUpload");
|
|
33
|
+
const GetContentVersion_1 = require("../models/GetContentVersion");
|
|
34
|
+
const GetContentVersionList_1 = require("../models/GetContentVersionList");
|
|
35
|
+
const GetScormApiLogs_1 = require("../models/GetScormApiLogs");
|
|
36
|
+
const GetScormPackage_1 = require("../models/GetScormPackage");
|
|
37
|
+
const GetScormSessionData_1 = require("../models/GetScormSessionData");
|
|
38
|
+
const PostContentQuiz_1 = require("../models/PostContentQuiz");
|
|
39
|
+
const PostContentSession_1 = require("../models/PostContentSession");
|
|
40
|
+
const PostContentUpload_1 = require("../models/PostContentUpload");
|
|
41
|
+
const PostDuplicate2_1 = require("../models/PostDuplicate2");
|
|
42
|
+
const PostVerifyManifest_1 = require("../models/PostVerifyManifest");
|
|
43
|
+
const PutContent_1 = require("../models/PutContent");
|
|
44
|
+
const PutContentReorder_1 = require("../models/PutContentReorder");
|
|
45
|
+
const PutContentVersion_1 = require("../models/PutContentVersion");
|
|
46
|
+
const ScormGetValueResponse_1 = require("../models/ScormGetValueResponse");
|
|
47
|
+
const ScormSetValueRequest_1 = require("../models/ScormSetValueRequest");
|
|
48
|
+
const ScormSetValueResponse_1 = require("../models/ScormSetValueResponse");
|
|
28
49
|
/**
|
|
29
50
|
*
|
|
30
51
|
*/
|
|
@@ -40,7 +61,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
40
61
|
const queryParameters = {};
|
|
41
62
|
const headerParameters = {};
|
|
42
63
|
let urlPath = `/scorm/sessions/{scormSessionId}/commit`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
64
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
44
65
|
return {
|
|
45
66
|
path: urlPath,
|
|
46
67
|
method: 'POST',
|
|
@@ -86,9 +107,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
86
107
|
const queryParameters = {};
|
|
87
108
|
const headerParameters = {};
|
|
88
109
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
89
|
-
urlPath = urlPath.replace(
|
|
90
|
-
urlPath = urlPath.replace(
|
|
91
|
-
urlPath = urlPath.replace(
|
|
110
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
111
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
112
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
92
113
|
return {
|
|
93
114
|
path: urlPath,
|
|
94
115
|
method: 'GET',
|
|
@@ -104,7 +125,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
104
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
126
|
const requestOptions = yield this.getContentRequestOpts(requestParameters);
|
|
106
127
|
const response = yield this.request(requestOptions, initOverrides);
|
|
107
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContent_1.GetContentFromJSON)(jsonValue));
|
|
108
129
|
});
|
|
109
130
|
}
|
|
110
131
|
/**
|
|
@@ -130,8 +151,8 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
130
151
|
const queryParameters = {};
|
|
131
152
|
const headerParameters = {};
|
|
132
153
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents`;
|
|
133
|
-
urlPath = urlPath.replace(
|
|
134
|
-
urlPath = urlPath.replace(
|
|
154
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
155
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
135
156
|
return {
|
|
136
157
|
path: urlPath,
|
|
137
158
|
method: 'GET',
|
|
@@ -147,7 +168,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
147
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
169
|
const requestOptions = yield this.getContentListRequestOpts(requestParameters);
|
|
149
170
|
const response = yield this.request(requestOptions, initOverrides);
|
|
150
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentList_1.GetContentListFromJSON)(jsonValue));
|
|
151
172
|
});
|
|
152
173
|
}
|
|
153
174
|
/**
|
|
@@ -176,9 +197,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
176
197
|
const queryParameters = {};
|
|
177
198
|
const headerParameters = {};
|
|
178
199
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
179
|
-
urlPath = urlPath.replace(
|
|
180
|
-
urlPath = urlPath.replace(
|
|
181
|
-
urlPath = urlPath.replace(
|
|
200
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
201
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
202
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
182
203
|
return {
|
|
183
204
|
path: urlPath,
|
|
184
205
|
method: 'GET',
|
|
@@ -194,7 +215,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
194
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
216
|
const requestOptions = yield this.getContentSessionRequestOpts(requestParameters);
|
|
196
217
|
const response = yield this.request(requestOptions, initOverrides);
|
|
197
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentSession_1.GetContentSessionFromJSON)(jsonValue));
|
|
198
219
|
});
|
|
199
220
|
}
|
|
200
221
|
/**
|
|
@@ -226,10 +247,10 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
226
247
|
const queryParameters = {};
|
|
227
248
|
const headerParameters = {};
|
|
228
249
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId}`;
|
|
229
|
-
urlPath = urlPath.replace(
|
|
230
|
-
urlPath = urlPath.replace(
|
|
231
|
-
urlPath = urlPath.replace(
|
|
232
|
-
urlPath = urlPath.replace(
|
|
250
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
251
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
252
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
253
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
233
254
|
return {
|
|
234
255
|
path: urlPath,
|
|
235
256
|
method: 'GET',
|
|
@@ -246,7 +267,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
246
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
247
268
|
const requestOptions = yield this.getContentSessionDetailRequestOpts(requestParameters);
|
|
248
269
|
const response = yield this.request(requestOptions, initOverrides);
|
|
249
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
270
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentSessionDetail_1.GetContentSessionDetailFromJSON)(jsonValue));
|
|
250
271
|
});
|
|
251
272
|
}
|
|
252
273
|
/**
|
|
@@ -279,10 +300,10 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
279
300
|
const queryParameters = {};
|
|
280
301
|
const headerParameters = {};
|
|
281
302
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
282
|
-
urlPath = urlPath.replace(
|
|
283
|
-
urlPath = urlPath.replace(
|
|
284
|
-
urlPath = urlPath.replace(
|
|
285
|
-
urlPath = urlPath.replace(
|
|
303
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
304
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
305
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
306
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
286
307
|
return {
|
|
287
308
|
path: urlPath,
|
|
288
309
|
method: 'GET',
|
|
@@ -299,7 +320,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
299
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
300
321
|
const requestOptions = yield this.getContentVersionRequestOpts(requestParameters);
|
|
301
322
|
const response = yield this.request(requestOptions, initOverrides);
|
|
302
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentVersion_1.GetContentVersionFromJSON)(jsonValue));
|
|
303
324
|
});
|
|
304
325
|
}
|
|
305
326
|
/**
|
|
@@ -335,9 +356,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
335
356
|
}
|
|
336
357
|
const headerParameters = {};
|
|
337
358
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions`;
|
|
338
|
-
urlPath = urlPath.replace(
|
|
339
|
-
urlPath = urlPath.replace(
|
|
340
|
-
urlPath = urlPath.replace(
|
|
359
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
360
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
361
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
341
362
|
return {
|
|
342
363
|
path: urlPath,
|
|
343
364
|
method: 'GET',
|
|
@@ -354,7 +375,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
354
375
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
376
|
const requestOptions = yield this.getContentVersionListRequestOpts(requestParameters);
|
|
356
377
|
const response = yield this.request(requestOptions, initOverrides);
|
|
357
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
378
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentVersionList_1.GetContentVersionListFromJSON)(jsonValue));
|
|
358
379
|
});
|
|
359
380
|
}
|
|
360
381
|
/**
|
|
@@ -384,7 +405,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
384
405
|
}
|
|
385
406
|
const headerParameters = {};
|
|
386
407
|
let urlPath = `/scorm/sessions/{sessionId}/api-logs`;
|
|
387
|
-
urlPath = urlPath.replace(
|
|
408
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
388
409
|
return {
|
|
389
410
|
path: urlPath,
|
|
390
411
|
method: 'GET',
|
|
@@ -401,7 +422,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
401
422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
402
423
|
const requestOptions = yield this.getScormApiLogsRequestOpts(requestParameters);
|
|
403
424
|
const response = yield this.request(requestOptions, initOverrides);
|
|
404
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
425
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetScormApiLogs_1.GetScormApiLogsFromJSON)(jsonValue));
|
|
405
426
|
});
|
|
406
427
|
}
|
|
407
428
|
/**
|
|
@@ -425,7 +446,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
425
446
|
const queryParameters = {};
|
|
426
447
|
const headerParameters = {};
|
|
427
448
|
let urlPath = `/scorm/packages/{packageId}`;
|
|
428
|
-
urlPath = urlPath.replace(
|
|
449
|
+
urlPath = urlPath.replace('{packageId}', encodeURIComponent(String(requestParameters['packageId'])));
|
|
429
450
|
return {
|
|
430
451
|
path: urlPath,
|
|
431
452
|
method: 'GET',
|
|
@@ -442,7 +463,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
442
463
|
return __awaiter(this, void 0, void 0, function* () {
|
|
443
464
|
const requestOptions = yield this.getScormPackageRequestOpts(requestParameters);
|
|
444
465
|
const response = yield this.request(requestOptions, initOverrides);
|
|
445
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
466
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetScormPackage_1.GetScormPackageFromJSON)(jsonValue));
|
|
446
467
|
});
|
|
447
468
|
}
|
|
448
469
|
/**
|
|
@@ -466,7 +487,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
466
487
|
const queryParameters = {};
|
|
467
488
|
const headerParameters = {};
|
|
468
489
|
let urlPath = `/scorm/sessions/{scormSessionId}/session-data`;
|
|
469
|
-
urlPath = urlPath.replace(
|
|
490
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
470
491
|
return {
|
|
471
492
|
path: urlPath,
|
|
472
493
|
method: 'GET',
|
|
@@ -483,7 +504,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
483
504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
484
505
|
const requestOptions = yield this.getScormSessionDataRequestOpts(requestParameters);
|
|
485
506
|
const response = yield this.request(requestOptions, initOverrides);
|
|
486
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
507
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetScormSessionData_1.GetScormSessionDataFromJSON)(jsonValue));
|
|
487
508
|
});
|
|
488
509
|
}
|
|
489
510
|
/**
|
|
@@ -513,7 +534,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
513
534
|
}
|
|
514
535
|
const headerParameters = {};
|
|
515
536
|
let urlPath = `/scorm/sessions/{scormSessionId}/get-value`;
|
|
516
|
-
urlPath = urlPath.replace(
|
|
537
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
517
538
|
return {
|
|
518
539
|
path: urlPath,
|
|
519
540
|
method: 'GET',
|
|
@@ -530,7 +551,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
530
551
|
return __awaiter(this, void 0, void 0, function* () {
|
|
531
552
|
const requestOptions = yield this.getScormValueRequestOpts(requestParameters);
|
|
532
553
|
const response = yield this.request(requestOptions, initOverrides);
|
|
533
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
554
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ScormGetValueResponse_1.ScormGetValueResponseFromJSON)(jsonValue));
|
|
534
555
|
});
|
|
535
556
|
}
|
|
536
557
|
/**
|
|
@@ -554,7 +575,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
554
575
|
const queryParameters = {};
|
|
555
576
|
const headerParameters = {};
|
|
556
577
|
let urlPath = `/scorm/sessions/{scormSessionId}/initialize`;
|
|
557
|
-
urlPath = urlPath.replace(
|
|
578
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
558
579
|
return {
|
|
559
580
|
path: urlPath,
|
|
560
581
|
method: 'POST',
|
|
@@ -612,9 +633,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
612
633
|
}
|
|
613
634
|
const headerParameters = {};
|
|
614
635
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions`;
|
|
615
|
-
urlPath = urlPath.replace(
|
|
616
|
-
urlPath = urlPath.replace(
|
|
617
|
-
urlPath = urlPath.replace(
|
|
636
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
637
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
638
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
618
639
|
return {
|
|
619
640
|
path: urlPath,
|
|
620
641
|
method: 'GET',
|
|
@@ -631,7 +652,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
631
652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
632
653
|
const requestOptions = yield this.listContentSessionsRequestOpts(requestParameters);
|
|
633
654
|
const response = yield this.request(requestOptions, initOverrides);
|
|
634
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
655
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentSessionList_1.GetContentSessionListFromJSON)(jsonValue));
|
|
635
656
|
});
|
|
636
657
|
}
|
|
637
658
|
/**
|
|
@@ -662,15 +683,15 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
662
683
|
const headerParameters = {};
|
|
663
684
|
headerParameters['Content-Type'] = 'application/json';
|
|
664
685
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/duplicate`;
|
|
665
|
-
urlPath = urlPath.replace(
|
|
666
|
-
urlPath = urlPath.replace(
|
|
667
|
-
urlPath = urlPath.replace(
|
|
686
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
687
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
688
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
668
689
|
return {
|
|
669
690
|
path: urlPath,
|
|
670
691
|
method: 'POST',
|
|
671
692
|
headers: headerParameters,
|
|
672
693
|
query: queryParameters,
|
|
673
|
-
body: (0,
|
|
694
|
+
body: (0, PostDuplicate2_1.PostDuplicate2ToJSON)(requestParameters['postDuplicate2']),
|
|
674
695
|
};
|
|
675
696
|
});
|
|
676
697
|
}
|
|
@@ -682,7 +703,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
682
703
|
return __awaiter(this, void 0, void 0, function* () {
|
|
683
704
|
const requestOptions = yield this.postContentDuplicateRequestOpts(requestParameters);
|
|
684
705
|
const response = yield this.request(requestOptions, initOverrides);
|
|
685
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
706
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContent_1.GetContentFromJSON)(jsonValue));
|
|
686
707
|
});
|
|
687
708
|
}
|
|
688
709
|
/**
|
|
@@ -712,9 +733,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
712
733
|
const queryParameters = {};
|
|
713
734
|
const headerParameters = {};
|
|
714
735
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/process`;
|
|
715
|
-
urlPath = urlPath.replace(
|
|
716
|
-
urlPath = urlPath.replace(
|
|
717
|
-
urlPath = urlPath.replace(
|
|
736
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
737
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
738
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
718
739
|
return {
|
|
719
740
|
path: urlPath,
|
|
720
741
|
method: 'POST',
|
|
@@ -730,7 +751,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
730
751
|
return __awaiter(this, void 0, void 0, function* () {
|
|
731
752
|
const requestOptions = yield this.postContentProcessRequestOpts(requestParameters);
|
|
732
753
|
const response = yield this.request(requestOptions, initOverrides);
|
|
733
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
754
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContent_1.GetContentFromJSON)(jsonValue));
|
|
734
755
|
});
|
|
735
756
|
}
|
|
736
757
|
/**
|
|
@@ -761,14 +782,14 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
761
782
|
const headerParameters = {};
|
|
762
783
|
headerParameters['Content-Type'] = 'application/json';
|
|
763
784
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/quiz`;
|
|
764
|
-
urlPath = urlPath.replace(
|
|
765
|
-
urlPath = urlPath.replace(
|
|
785
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
786
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
766
787
|
return {
|
|
767
788
|
path: urlPath,
|
|
768
789
|
method: 'POST',
|
|
769
790
|
headers: headerParameters,
|
|
770
791
|
query: queryParameters,
|
|
771
|
-
body: (0,
|
|
792
|
+
body: (0, PostContentQuiz_1.PostContentQuizToJSON)(requestParameters['postContentQuiz']),
|
|
772
793
|
};
|
|
773
794
|
});
|
|
774
795
|
}
|
|
@@ -780,7 +801,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
780
801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
781
802
|
const requestOptions = yield this.postContentQuizRequestOpts(requestParameters);
|
|
782
803
|
const response = yield this.request(requestOptions, initOverrides);
|
|
783
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
804
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContent_1.GetContentFromJSON)(jsonValue));
|
|
784
805
|
});
|
|
785
806
|
}
|
|
786
807
|
/**
|
|
@@ -813,9 +834,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
813
834
|
}
|
|
814
835
|
const headerParameters = {};
|
|
815
836
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
816
|
-
urlPath = urlPath.replace(
|
|
817
|
-
urlPath = urlPath.replace(
|
|
818
|
-
urlPath = urlPath.replace(
|
|
837
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
838
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
839
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
819
840
|
return {
|
|
820
841
|
path: urlPath,
|
|
821
842
|
method: 'POST',
|
|
@@ -831,7 +852,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
831
852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
832
853
|
const requestOptions = yield this.postContentSessionRequestOpts(requestParameters);
|
|
833
854
|
const response = yield this.request(requestOptions, initOverrides);
|
|
834
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
855
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostContentSession_1.PostContentSessionFromJSON)(jsonValue));
|
|
835
856
|
});
|
|
836
857
|
}
|
|
837
858
|
/**
|
|
@@ -861,14 +882,14 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
861
882
|
const headerParameters = {};
|
|
862
883
|
headerParameters['Content-Type'] = 'application/json';
|
|
863
884
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/upload`;
|
|
864
|
-
urlPath = urlPath.replace(
|
|
865
|
-
urlPath = urlPath.replace(
|
|
885
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
886
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
866
887
|
return {
|
|
867
888
|
path: urlPath,
|
|
868
889
|
method: 'POST',
|
|
869
890
|
headers: headerParameters,
|
|
870
891
|
query: queryParameters,
|
|
871
|
-
body: (0,
|
|
892
|
+
body: (0, PostContentUpload_1.PostContentUploadToJSON)(requestParameters['postContentUpload']),
|
|
872
893
|
};
|
|
873
894
|
});
|
|
874
895
|
}
|
|
@@ -879,7 +900,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
879
900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
880
901
|
const requestOptions = yield this.postContentUploadRequestOpts(requestParameters);
|
|
881
902
|
const response = yield this.request(requestOptions, initOverrides);
|
|
882
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
903
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentUpload_1.GetContentUploadFromJSON)(jsonValue));
|
|
883
904
|
});
|
|
884
905
|
}
|
|
885
906
|
/**
|
|
@@ -912,15 +933,15 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
912
933
|
const headerParameters = {};
|
|
913
934
|
headerParameters['Content-Type'] = 'application/json';
|
|
914
935
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
915
|
-
urlPath = urlPath.replace(
|
|
916
|
-
urlPath = urlPath.replace(
|
|
917
|
-
urlPath = urlPath.replace(
|
|
936
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
937
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
938
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
918
939
|
return {
|
|
919
940
|
path: urlPath,
|
|
920
941
|
method: 'PUT',
|
|
921
942
|
headers: headerParameters,
|
|
922
943
|
query: queryParameters,
|
|
923
|
-
body: (0,
|
|
944
|
+
body: (0, PutContent_1.PutContentToJSON)(requestParameters['putContent']),
|
|
924
945
|
};
|
|
925
946
|
});
|
|
926
947
|
}
|
|
@@ -931,7 +952,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
931
952
|
return __awaiter(this, void 0, void 0, function* () {
|
|
932
953
|
const requestOptions = yield this.putContentRequestOpts(requestParameters);
|
|
933
954
|
const response = yield this.request(requestOptions, initOverrides);
|
|
934
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
955
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContent_1.GetContentFromJSON)(jsonValue));
|
|
935
956
|
});
|
|
936
957
|
}
|
|
937
958
|
/**
|
|
@@ -961,14 +982,14 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
961
982
|
const headerParameters = {};
|
|
962
983
|
headerParameters['Content-Type'] = 'application/json';
|
|
963
984
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/reorder`;
|
|
964
|
-
urlPath = urlPath.replace(
|
|
965
|
-
urlPath = urlPath.replace(
|
|
985
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
986
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
966
987
|
return {
|
|
967
988
|
path: urlPath,
|
|
968
989
|
method: 'PUT',
|
|
969
990
|
headers: headerParameters,
|
|
970
991
|
query: queryParameters,
|
|
971
|
-
body: (0,
|
|
992
|
+
body: (0, PutContentReorder_1.PutContentReorderToJSON)(requestParameters['putContentReorder']),
|
|
972
993
|
};
|
|
973
994
|
});
|
|
974
995
|
}
|
|
@@ -1014,16 +1035,16 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1014
1035
|
const headerParameters = {};
|
|
1015
1036
|
headerParameters['Content-Type'] = 'application/json';
|
|
1016
1037
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
1017
|
-
urlPath = urlPath.replace(
|
|
1018
|
-
urlPath = urlPath.replace(
|
|
1019
|
-
urlPath = urlPath.replace(
|
|
1020
|
-
urlPath = urlPath.replace(
|
|
1038
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1039
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1040
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1041
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
1021
1042
|
return {
|
|
1022
1043
|
path: urlPath,
|
|
1023
1044
|
method: 'PUT',
|
|
1024
1045
|
headers: headerParameters,
|
|
1025
1046
|
query: queryParameters,
|
|
1026
|
-
body: (0,
|
|
1047
|
+
body: (0, PutContentVersion_1.PutContentVersionToJSON)(requestParameters['putContentVersion']),
|
|
1027
1048
|
};
|
|
1028
1049
|
});
|
|
1029
1050
|
}
|
|
@@ -1035,7 +1056,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1035
1056
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1036
1057
|
const requestOptions = yield this.putContentVersionRequestOpts(requestParameters);
|
|
1037
1058
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1038
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1059
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentVersion_1.GetContentVersionFromJSON)(jsonValue));
|
|
1039
1060
|
});
|
|
1040
1061
|
}
|
|
1041
1062
|
/**
|
|
@@ -1063,13 +1084,13 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1063
1084
|
const headerParameters = {};
|
|
1064
1085
|
headerParameters['Content-Type'] = 'application/json';
|
|
1065
1086
|
let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
|
|
1066
|
-
urlPath = urlPath.replace(
|
|
1087
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1067
1088
|
return {
|
|
1068
1089
|
path: urlPath,
|
|
1069
1090
|
method: 'POST',
|
|
1070
1091
|
headers: headerParameters,
|
|
1071
1092
|
query: queryParameters,
|
|
1072
|
-
body: (0,
|
|
1093
|
+
body: (0, ScormSetValueRequest_1.ScormSetValueRequestToJSON)(requestParameters['scormSetValueRequest']),
|
|
1073
1094
|
};
|
|
1074
1095
|
});
|
|
1075
1096
|
}
|
|
@@ -1081,7 +1102,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1081
1102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1082
1103
|
const requestOptions = yield this.setScormValueRequestOpts(requestParameters);
|
|
1083
1104
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1084
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1105
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ScormSetValueResponse_1.ScormSetValueResponseFromJSON)(jsonValue));
|
|
1085
1106
|
});
|
|
1086
1107
|
}
|
|
1087
1108
|
/**
|
|
@@ -1105,7 +1126,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1105
1126
|
const queryParameters = {};
|
|
1106
1127
|
const headerParameters = {};
|
|
1107
1128
|
let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
|
|
1108
|
-
urlPath = urlPath.replace(
|
|
1129
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1109
1130
|
return {
|
|
1110
1131
|
path: urlPath,
|
|
1111
1132
|
method: 'POST',
|
|
@@ -1163,7 +1184,7 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1163
1184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1164
1185
|
const requestOptions = yield this.verifyScormManifestRequestOpts(requestParameters);
|
|
1165
1186
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1166
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1187
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostVerifyManifest_1.PostVerifyManifestFromJSON)(jsonValue));
|
|
1167
1188
|
});
|
|
1168
1189
|
}
|
|
1169
1190
|
/**
|
package/dist/apis/CourseApi.d.ts
CHANGED
|
@@ -10,7 +10,20 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetCourse } from '../models/GetCourse';
|
|
14
|
+
import { type GetCourseEnrollment } from '../models/GetCourseEnrollment';
|
|
15
|
+
import { type GetCourseEnrollmentList } from '../models/GetCourseEnrollmentList';
|
|
16
|
+
import { type GetCourseExport } from '../models/GetCourseExport';
|
|
17
|
+
import { type GetCourseExportList } from '../models/GetCourseExportList';
|
|
18
|
+
import { type GetCourseImageUpload } from '../models/GetCourseImageUpload';
|
|
19
|
+
import { type GetCourseList } from '../models/GetCourseList';
|
|
20
|
+
import { type GetCourseReportingBasic } from '../models/GetCourseReportingBasic';
|
|
21
|
+
import { type PostCourse } from '../models/PostCourse';
|
|
22
|
+
import { type PostCourseEnrollment } from '../models/PostCourseEnrollment';
|
|
23
|
+
import { type PostCourseExport } from '../models/PostCourseExport';
|
|
24
|
+
import { type PostDuplicate } from '../models/PostDuplicate';
|
|
25
|
+
import { type PutCourse } from '../models/PutCourse';
|
|
26
|
+
import { type PutCourseEnrollment } from '../models/PutCourseEnrollment';
|
|
14
27
|
export interface DeleteCourseImageRequest {
|
|
15
28
|
courseId: string;
|
|
16
29
|
}
|