@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
|
@@ -21,7 +21,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetContentFromJSON,
|
|
24
|
+
import { GetContentFromJSON, } from '../models/GetContent';
|
|
25
|
+
import { GetContentListFromJSON, } from '../models/GetContentList';
|
|
26
|
+
import { GetContentSessionFromJSON, } from '../models/GetContentSession';
|
|
27
|
+
import { GetContentSessionDetailFromJSON, } from '../models/GetContentSessionDetail';
|
|
28
|
+
import { GetContentSessionListFromJSON, } from '../models/GetContentSessionList';
|
|
29
|
+
import { GetContentUploadFromJSON, } from '../models/GetContentUpload';
|
|
30
|
+
import { GetContentVersionFromJSON, } from '../models/GetContentVersion';
|
|
31
|
+
import { GetContentVersionListFromJSON, } from '../models/GetContentVersionList';
|
|
32
|
+
import { GetScormApiLogsFromJSON, } from '../models/GetScormApiLogs';
|
|
33
|
+
import { GetScormPackageFromJSON, } from '../models/GetScormPackage';
|
|
34
|
+
import { GetScormSessionDataFromJSON, } from '../models/GetScormSessionData';
|
|
35
|
+
import { PostContentQuizToJSON, } from '../models/PostContentQuiz';
|
|
36
|
+
import { PostContentSessionFromJSON, } from '../models/PostContentSession';
|
|
37
|
+
import { PostContentUploadToJSON, } from '../models/PostContentUpload';
|
|
38
|
+
import { PostDuplicate2ToJSON, } from '../models/PostDuplicate2';
|
|
39
|
+
import { PostVerifyManifestFromJSON, } from '../models/PostVerifyManifest';
|
|
40
|
+
import { PutContentToJSON, } from '../models/PutContent';
|
|
41
|
+
import { PutContentReorderToJSON, } from '../models/PutContentReorder';
|
|
42
|
+
import { PutContentVersionToJSON, } from '../models/PutContentVersion';
|
|
43
|
+
import { ScormGetValueResponseFromJSON, } from '../models/ScormGetValueResponse';
|
|
44
|
+
import { ScormSetValueRequestToJSON, } from '../models/ScormSetValueRequest';
|
|
45
|
+
import { ScormSetValueResponseFromJSON, } from '../models/ScormSetValueResponse';
|
|
25
46
|
/**
|
|
26
47
|
*
|
|
27
48
|
*/
|
|
@@ -37,7 +58,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
37
58
|
const queryParameters = {};
|
|
38
59
|
const headerParameters = {};
|
|
39
60
|
let urlPath = `/scorm/sessions/{scormSessionId}/commit`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
61
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
41
62
|
return {
|
|
42
63
|
path: urlPath,
|
|
43
64
|
method: 'POST',
|
|
@@ -83,9 +104,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
83
104
|
const queryParameters = {};
|
|
84
105
|
const headerParameters = {};
|
|
85
106
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
86
|
-
urlPath = urlPath.replace(
|
|
87
|
-
urlPath = urlPath.replace(
|
|
88
|
-
urlPath = urlPath.replace(
|
|
107
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
108
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
109
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
89
110
|
return {
|
|
90
111
|
path: urlPath,
|
|
91
112
|
method: 'GET',
|
|
@@ -127,8 +148,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
127
148
|
const queryParameters = {};
|
|
128
149
|
const headerParameters = {};
|
|
129
150
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents`;
|
|
130
|
-
urlPath = urlPath.replace(
|
|
131
|
-
urlPath = urlPath.replace(
|
|
151
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
152
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
132
153
|
return {
|
|
133
154
|
path: urlPath,
|
|
134
155
|
method: 'GET',
|
|
@@ -173,9 +194,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
173
194
|
const queryParameters = {};
|
|
174
195
|
const headerParameters = {};
|
|
175
196
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
176
|
-
urlPath = urlPath.replace(
|
|
177
|
-
urlPath = urlPath.replace(
|
|
178
|
-
urlPath = urlPath.replace(
|
|
197
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
198
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
199
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
179
200
|
return {
|
|
180
201
|
path: urlPath,
|
|
181
202
|
method: 'GET',
|
|
@@ -223,10 +244,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
223
244
|
const queryParameters = {};
|
|
224
245
|
const headerParameters = {};
|
|
225
246
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId}`;
|
|
226
|
-
urlPath = urlPath.replace(
|
|
227
|
-
urlPath = urlPath.replace(
|
|
228
|
-
urlPath = urlPath.replace(
|
|
229
|
-
urlPath = urlPath.replace(
|
|
247
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
248
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
249
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
250
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
230
251
|
return {
|
|
231
252
|
path: urlPath,
|
|
232
253
|
method: 'GET',
|
|
@@ -276,10 +297,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
276
297
|
const queryParameters = {};
|
|
277
298
|
const headerParameters = {};
|
|
278
299
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
279
|
-
urlPath = urlPath.replace(
|
|
280
|
-
urlPath = urlPath.replace(
|
|
281
|
-
urlPath = urlPath.replace(
|
|
282
|
-
urlPath = urlPath.replace(
|
|
300
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
301
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
302
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
303
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
283
304
|
return {
|
|
284
305
|
path: urlPath,
|
|
285
306
|
method: 'GET',
|
|
@@ -332,9 +353,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
332
353
|
}
|
|
333
354
|
const headerParameters = {};
|
|
334
355
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions`;
|
|
335
|
-
urlPath = urlPath.replace(
|
|
336
|
-
urlPath = urlPath.replace(
|
|
337
|
-
urlPath = urlPath.replace(
|
|
356
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
357
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
358
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
338
359
|
return {
|
|
339
360
|
path: urlPath,
|
|
340
361
|
method: 'GET',
|
|
@@ -381,7 +402,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
381
402
|
}
|
|
382
403
|
const headerParameters = {};
|
|
383
404
|
let urlPath = `/scorm/sessions/{sessionId}/api-logs`;
|
|
384
|
-
urlPath = urlPath.replace(
|
|
405
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
385
406
|
return {
|
|
386
407
|
path: urlPath,
|
|
387
408
|
method: 'GET',
|
|
@@ -422,7 +443,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
422
443
|
const queryParameters = {};
|
|
423
444
|
const headerParameters = {};
|
|
424
445
|
let urlPath = `/scorm/packages/{packageId}`;
|
|
425
|
-
urlPath = urlPath.replace(
|
|
446
|
+
urlPath = urlPath.replace('{packageId}', encodeURIComponent(String(requestParameters['packageId'])));
|
|
426
447
|
return {
|
|
427
448
|
path: urlPath,
|
|
428
449
|
method: 'GET',
|
|
@@ -463,7 +484,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
463
484
|
const queryParameters = {};
|
|
464
485
|
const headerParameters = {};
|
|
465
486
|
let urlPath = `/scorm/sessions/{scormSessionId}/session-data`;
|
|
466
|
-
urlPath = urlPath.replace(
|
|
487
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
467
488
|
return {
|
|
468
489
|
path: urlPath,
|
|
469
490
|
method: 'GET',
|
|
@@ -510,7 +531,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
510
531
|
}
|
|
511
532
|
const headerParameters = {};
|
|
512
533
|
let urlPath = `/scorm/sessions/{scormSessionId}/get-value`;
|
|
513
|
-
urlPath = urlPath.replace(
|
|
534
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
514
535
|
return {
|
|
515
536
|
path: urlPath,
|
|
516
537
|
method: 'GET',
|
|
@@ -551,7 +572,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
551
572
|
const queryParameters = {};
|
|
552
573
|
const headerParameters = {};
|
|
553
574
|
let urlPath = `/scorm/sessions/{scormSessionId}/initialize`;
|
|
554
|
-
urlPath = urlPath.replace(
|
|
575
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
555
576
|
return {
|
|
556
577
|
path: urlPath,
|
|
557
578
|
method: 'POST',
|
|
@@ -609,9 +630,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
609
630
|
}
|
|
610
631
|
const headerParameters = {};
|
|
611
632
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions`;
|
|
612
|
-
urlPath = urlPath.replace(
|
|
613
|
-
urlPath = urlPath.replace(
|
|
614
|
-
urlPath = urlPath.replace(
|
|
633
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
634
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
635
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
615
636
|
return {
|
|
616
637
|
path: urlPath,
|
|
617
638
|
method: 'GET',
|
|
@@ -659,9 +680,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
659
680
|
const headerParameters = {};
|
|
660
681
|
headerParameters['Content-Type'] = 'application/json';
|
|
661
682
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/duplicate`;
|
|
662
|
-
urlPath = urlPath.replace(
|
|
663
|
-
urlPath = urlPath.replace(
|
|
664
|
-
urlPath = urlPath.replace(
|
|
683
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
684
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
685
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
665
686
|
return {
|
|
666
687
|
path: urlPath,
|
|
667
688
|
method: 'POST',
|
|
@@ -709,9 +730,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
709
730
|
const queryParameters = {};
|
|
710
731
|
const headerParameters = {};
|
|
711
732
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/process`;
|
|
712
|
-
urlPath = urlPath.replace(
|
|
713
|
-
urlPath = urlPath.replace(
|
|
714
|
-
urlPath = urlPath.replace(
|
|
733
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
734
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
735
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
715
736
|
return {
|
|
716
737
|
path: urlPath,
|
|
717
738
|
method: 'POST',
|
|
@@ -758,8 +779,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
758
779
|
const headerParameters = {};
|
|
759
780
|
headerParameters['Content-Type'] = 'application/json';
|
|
760
781
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/quiz`;
|
|
761
|
-
urlPath = urlPath.replace(
|
|
762
|
-
urlPath = urlPath.replace(
|
|
782
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
783
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
763
784
|
return {
|
|
764
785
|
path: urlPath,
|
|
765
786
|
method: 'POST',
|
|
@@ -810,9 +831,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
810
831
|
}
|
|
811
832
|
const headerParameters = {};
|
|
812
833
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
813
|
-
urlPath = urlPath.replace(
|
|
814
|
-
urlPath = urlPath.replace(
|
|
815
|
-
urlPath = urlPath.replace(
|
|
834
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
835
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
836
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
816
837
|
return {
|
|
817
838
|
path: urlPath,
|
|
818
839
|
method: 'POST',
|
|
@@ -858,8 +879,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
858
879
|
const headerParameters = {};
|
|
859
880
|
headerParameters['Content-Type'] = 'application/json';
|
|
860
881
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/upload`;
|
|
861
|
-
urlPath = urlPath.replace(
|
|
862
|
-
urlPath = urlPath.replace(
|
|
882
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
883
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
863
884
|
return {
|
|
864
885
|
path: urlPath,
|
|
865
886
|
method: 'POST',
|
|
@@ -909,9 +930,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
909
930
|
const headerParameters = {};
|
|
910
931
|
headerParameters['Content-Type'] = 'application/json';
|
|
911
932
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
912
|
-
urlPath = urlPath.replace(
|
|
913
|
-
urlPath = urlPath.replace(
|
|
914
|
-
urlPath = urlPath.replace(
|
|
933
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
934
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
935
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
915
936
|
return {
|
|
916
937
|
path: urlPath,
|
|
917
938
|
method: 'PUT',
|
|
@@ -958,8 +979,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
958
979
|
const headerParameters = {};
|
|
959
980
|
headerParameters['Content-Type'] = 'application/json';
|
|
960
981
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/reorder`;
|
|
961
|
-
urlPath = urlPath.replace(
|
|
962
|
-
urlPath = urlPath.replace(
|
|
982
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
983
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
963
984
|
return {
|
|
964
985
|
path: urlPath,
|
|
965
986
|
method: 'PUT',
|
|
@@ -1011,10 +1032,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1011
1032
|
const headerParameters = {};
|
|
1012
1033
|
headerParameters['Content-Type'] = 'application/json';
|
|
1013
1034
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
1014
|
-
urlPath = urlPath.replace(
|
|
1015
|
-
urlPath = urlPath.replace(
|
|
1016
|
-
urlPath = urlPath.replace(
|
|
1017
|
-
urlPath = urlPath.replace(
|
|
1035
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1036
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1037
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1038
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
1018
1039
|
return {
|
|
1019
1040
|
path: urlPath,
|
|
1020
1041
|
method: 'PUT',
|
|
@@ -1060,7 +1081,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1060
1081
|
const headerParameters = {};
|
|
1061
1082
|
headerParameters['Content-Type'] = 'application/json';
|
|
1062
1083
|
let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
|
|
1063
|
-
urlPath = urlPath.replace(
|
|
1084
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1064
1085
|
return {
|
|
1065
1086
|
path: urlPath,
|
|
1066
1087
|
method: 'POST',
|
|
@@ -1102,7 +1123,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1102
1123
|
const queryParameters = {};
|
|
1103
1124
|
const headerParameters = {};
|
|
1104
1125
|
let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
|
|
1105
|
-
urlPath = urlPath.replace(
|
|
1126
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1106
1127
|
return {
|
|
1107
1128
|
path: urlPath,
|
|
1108
1129
|
method: 'POST',
|
|
@@ -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
|
}
|
|
@@ -21,7 +21,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetCourseFromJSON,
|
|
24
|
+
import { GetCourseFromJSON, } from '../models/GetCourse';
|
|
25
|
+
import { GetCourseEnrollmentFromJSON, } from '../models/GetCourseEnrollment';
|
|
26
|
+
import { GetCourseEnrollmentListFromJSON, } from '../models/GetCourseEnrollmentList';
|
|
27
|
+
import { GetCourseExportFromJSON, } from '../models/GetCourseExport';
|
|
28
|
+
import { GetCourseExportListFromJSON, } from '../models/GetCourseExportList';
|
|
29
|
+
import { GetCourseImageUploadFromJSON, } from '../models/GetCourseImageUpload';
|
|
30
|
+
import { GetCourseListFromJSON, } from '../models/GetCourseList';
|
|
31
|
+
import { GetCourseReportingBasicFromJSON, } from '../models/GetCourseReportingBasic';
|
|
32
|
+
import { PostCourseToJSON, } from '../models/PostCourse';
|
|
33
|
+
import { PostCourseEnrollmentToJSON, } from '../models/PostCourseEnrollment';
|
|
34
|
+
import { PostCourseExportToJSON, } from '../models/PostCourseExport';
|
|
35
|
+
import { PostDuplicateToJSON, } from '../models/PostDuplicate';
|
|
36
|
+
import { PutCourseToJSON, } from '../models/PutCourse';
|
|
37
|
+
import { PutCourseEnrollmentToJSON, } from '../models/PutCourseEnrollment';
|
|
25
38
|
/**
|
|
26
39
|
*
|
|
27
40
|
*/
|
|
@@ -37,7 +50,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
37
50
|
const queryParameters = {};
|
|
38
51
|
const headerParameters = {};
|
|
39
52
|
let urlPath = `/courses/{courseId}/image`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
53
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
41
54
|
return {
|
|
42
55
|
path: urlPath,
|
|
43
56
|
method: 'DELETE',
|
|
@@ -75,7 +88,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
75
88
|
const queryParameters = {};
|
|
76
89
|
const headerParameters = {};
|
|
77
90
|
let urlPath = `/courses/{courseId}`;
|
|
78
|
-
urlPath = urlPath.replace(
|
|
91
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
79
92
|
return {
|
|
80
93
|
path: urlPath,
|
|
81
94
|
method: 'GET',
|
|
@@ -117,8 +130,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
117
130
|
const queryParameters = {};
|
|
118
131
|
const headerParameters = {};
|
|
119
132
|
let urlPath = `/courses/{courseId}/enrollments/{enrollmentId}`;
|
|
120
|
-
urlPath = urlPath.replace(
|
|
121
|
-
urlPath = urlPath.replace(
|
|
133
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
134
|
+
urlPath = urlPath.replace('{enrollmentId}', encodeURIComponent(String(requestParameters['enrollmentId'])));
|
|
122
135
|
return {
|
|
123
136
|
path: urlPath,
|
|
124
137
|
method: 'GET',
|
|
@@ -169,7 +182,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
169
182
|
}
|
|
170
183
|
const headerParameters = {};
|
|
171
184
|
let urlPath = `/courses/{courseId}/enrollments`;
|
|
172
|
-
urlPath = urlPath.replace(
|
|
185
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
173
186
|
return {
|
|
174
187
|
path: urlPath,
|
|
175
188
|
method: 'GET',
|
|
@@ -211,8 +224,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
211
224
|
const queryParameters = {};
|
|
212
225
|
const headerParameters = {};
|
|
213
226
|
let urlPath = `/courses/{courseId}/exports/{exportId}`;
|
|
214
|
-
urlPath = urlPath.replace(
|
|
215
|
-
urlPath = urlPath.replace(
|
|
227
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
228
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
216
229
|
return {
|
|
217
230
|
path: urlPath,
|
|
218
231
|
method: 'GET',
|
|
@@ -257,7 +270,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
257
270
|
}
|
|
258
271
|
const headerParameters = {};
|
|
259
272
|
let urlPath = `/courses/{courseId}/exports`;
|
|
260
|
-
urlPath = urlPath.replace(
|
|
273
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
261
274
|
return {
|
|
262
275
|
path: urlPath,
|
|
263
276
|
method: 'GET',
|
|
@@ -343,7 +356,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
343
356
|
const queryParameters = {};
|
|
344
357
|
const headerParameters = {};
|
|
345
358
|
let urlPath = `/courses/{courseId}/reporting/basic`;
|
|
346
|
-
urlPath = urlPath.replace(
|
|
359
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
347
360
|
return {
|
|
348
361
|
path: urlPath,
|
|
349
362
|
method: 'GET',
|
|
@@ -423,7 +436,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
423
436
|
const headerParameters = {};
|
|
424
437
|
headerParameters['Content-Type'] = 'application/json';
|
|
425
438
|
let urlPath = `/courses/{courseId}/duplicate`;
|
|
426
|
-
urlPath = urlPath.replace(
|
|
439
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
427
440
|
return {
|
|
428
441
|
path: urlPath,
|
|
429
442
|
method: 'POST',
|
|
@@ -469,7 +482,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
469
482
|
const headerParameters = {};
|
|
470
483
|
headerParameters['Content-Type'] = 'application/json';
|
|
471
484
|
let urlPath = `/courses/{courseId}/enrollments`;
|
|
472
|
-
urlPath = urlPath.replace(
|
|
485
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
473
486
|
return {
|
|
474
487
|
path: urlPath,
|
|
475
488
|
method: 'POST',
|
|
@@ -513,7 +526,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
513
526
|
const headerParameters = {};
|
|
514
527
|
headerParameters['Content-Type'] = 'application/json';
|
|
515
528
|
let urlPath = `/courses/{courseId}/exports`;
|
|
516
|
-
urlPath = urlPath.replace(
|
|
529
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
517
530
|
return {
|
|
518
531
|
path: urlPath,
|
|
519
532
|
method: 'POST',
|
|
@@ -576,7 +589,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
576
589
|
formParams.append('file', requestParameters['file']);
|
|
577
590
|
}
|
|
578
591
|
let urlPath = `/courses/{courseId}/image`;
|
|
579
|
-
urlPath = urlPath.replace(
|
|
592
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
580
593
|
return {
|
|
581
594
|
path: urlPath,
|
|
582
595
|
method: 'POST',
|
|
@@ -620,7 +633,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
620
633
|
const headerParameters = {};
|
|
621
634
|
headerParameters['Content-Type'] = 'application/json';
|
|
622
635
|
let urlPath = `/courses/{courseId}`;
|
|
623
|
-
urlPath = urlPath.replace(
|
|
636
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
624
637
|
return {
|
|
625
638
|
path: urlPath,
|
|
626
639
|
method: 'PUT',
|
|
@@ -667,8 +680,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
667
680
|
const headerParameters = {};
|
|
668
681
|
headerParameters['Content-Type'] = 'application/json';
|
|
669
682
|
let urlPath = `/courses/{courseId}/enrollments/{enrollmentId}`;
|
|
670
|
-
urlPath = urlPath.replace(
|
|
671
|
-
urlPath = urlPath.replace(
|
|
683
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
684
|
+
urlPath = urlPath.replace('{enrollmentId}', encodeURIComponent(String(requestParameters['enrollmentId'])));
|
|
672
685
|
return {
|
|
673
686
|
path: urlPath,
|
|
674
687
|
method: 'PUT',
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CourseCatalog } from '../models/CourseCatalog';
|
|
14
|
+
import { type GetCourse } from '../models/GetCourse';
|
|
15
|
+
import { type PostCourseCatalog } from '../models/PostCourseCatalog';
|
|
16
|
+
import { type PutCourseCatalog } from '../models/PutCourseCatalog';
|
|
14
17
|
export interface AddCourseToCatalogRequest {
|
|
15
18
|
catalogId: string;
|
|
16
19
|
courseId: string;
|
|
@@ -21,7 +21,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CourseCatalogFromJSON,
|
|
24
|
+
import { CourseCatalogFromJSON, } from '../models/CourseCatalog';
|
|
25
|
+
import { GetCourseFromJSON, } from '../models/GetCourse';
|
|
26
|
+
import { PostCourseCatalogToJSON, } from '../models/PostCourseCatalog';
|
|
27
|
+
import { PutCourseCatalogToJSON, } from '../models/PutCourseCatalog';
|
|
25
28
|
/**
|
|
26
29
|
*
|
|
27
30
|
*/
|
|
@@ -40,8 +43,8 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
40
43
|
const queryParameters = {};
|
|
41
44
|
const headerParameters = {};
|
|
42
45
|
let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
44
|
-
urlPath = urlPath.replace(
|
|
46
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
47
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
45
48
|
return {
|
|
46
49
|
path: urlPath,
|
|
47
50
|
method: 'POST',
|
|
@@ -79,7 +82,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
79
82
|
const queryParameters = {};
|
|
80
83
|
const headerParameters = {};
|
|
81
84
|
let urlPath = `/catalogs/{catalogId}`;
|
|
82
|
-
urlPath = urlPath.replace(
|
|
85
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
83
86
|
return {
|
|
84
87
|
path: urlPath,
|
|
85
88
|
method: 'DELETE',
|
|
@@ -117,7 +120,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
117
120
|
const queryParameters = {};
|
|
118
121
|
const headerParameters = {};
|
|
119
122
|
let urlPath = `/catalogs/{catalogId}/courses`;
|
|
120
|
-
urlPath = urlPath.replace(
|
|
123
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
121
124
|
return {
|
|
122
125
|
path: urlPath,
|
|
123
126
|
method: 'GET',
|
|
@@ -156,7 +159,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
156
159
|
const queryParameters = {};
|
|
157
160
|
const headerParameters = {};
|
|
158
161
|
let urlPath = `/catalogs/{catalogId}`;
|
|
159
|
-
urlPath = urlPath.replace(
|
|
162
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
160
163
|
return {
|
|
161
164
|
path: urlPath,
|
|
162
165
|
method: 'GET',
|
|
@@ -274,7 +277,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
274
277
|
const headerParameters = {};
|
|
275
278
|
headerParameters['Content-Type'] = 'application/json';
|
|
276
279
|
let urlPath = `/catalogs/{catalogId}`;
|
|
277
|
-
urlPath = urlPath.replace(
|
|
280
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
278
281
|
return {
|
|
279
282
|
path: urlPath,
|
|
280
283
|
method: 'PUT',
|
|
@@ -317,8 +320,8 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
317
320
|
const queryParameters = {};
|
|
318
321
|
const headerParameters = {};
|
|
319
322
|
let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
|
|
320
|
-
urlPath = urlPath.replace(
|
|
321
|
-
urlPath = urlPath.replace(
|
|
323
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
324
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
322
325
|
return {
|
|
323
326
|
path: urlPath,
|
|
324
327
|
method: 'DELETE',
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CourseShare } from '../models/CourseShare';
|
|
14
|
+
import { type PostOfferCatalog } from '../models/PostOfferCatalog';
|
|
15
|
+
import { type PostOfferCatalogResponse } from '../models/PostOfferCatalogResponse';
|
|
16
|
+
import { type PostOfferCourse } from '../models/PostOfferCourse';
|
|
17
|
+
import { type PostOfferCourseResponse } from '../models/PostOfferCourseResponse';
|
|
14
18
|
export interface DeleteCourseShareRequest {
|
|
15
19
|
shareId: string;
|
|
16
20
|
}
|