@easyedu/js-lsm-api 1.58.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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -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 +7 -1
- package/dist/apis/UserApi.js +19 -13
- 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 +7 -1
- package/dist/esm/apis/UserApi.js +11 -5
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -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 +2 -0
- package/dist/esm/models/index.js +2 -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/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 +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -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/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 +24 -15
- package/src/models/GetPortal.ts +16 -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 +2 -0
- package/src/runtime.ts +1 -2
package/src/apis/ContentApi.ts
CHANGED
|
@@ -12,78 +12,117 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GetContent,
|
|
19
|
-
GetContentList,
|
|
20
|
-
GetContentSession,
|
|
21
|
-
GetContentSessionDetail,
|
|
22
|
-
GetContentSessionList,
|
|
23
|
-
GetContentUpload,
|
|
24
|
-
GetContentVersion,
|
|
25
|
-
GetContentVersionList,
|
|
26
|
-
GetScormApiLogs,
|
|
27
|
-
GetScormPackage,
|
|
28
|
-
GetScormSessionData,
|
|
29
|
-
PostContentQuiz,
|
|
30
|
-
PostContentSession,
|
|
31
|
-
PostContentUpload,
|
|
32
|
-
PostDuplicate2,
|
|
33
|
-
PostVerifyManifest,
|
|
34
|
-
PutContent,
|
|
35
|
-
PutContentReorder,
|
|
36
|
-
PutContentVersion,
|
|
37
|
-
ScormGetValueResponse,
|
|
38
|
-
ScormSetValueRequest,
|
|
39
|
-
ScormSetValueResponse,
|
|
40
|
-
} from '../models/index';
|
|
41
16
|
import {
|
|
17
|
+
type GetContent,
|
|
42
18
|
GetContentFromJSON,
|
|
43
19
|
GetContentToJSON,
|
|
20
|
+
} from '../models/GetContent';
|
|
21
|
+
import {
|
|
22
|
+
type GetContentList,
|
|
44
23
|
GetContentListFromJSON,
|
|
45
24
|
GetContentListToJSON,
|
|
25
|
+
} from '../models/GetContentList';
|
|
26
|
+
import {
|
|
27
|
+
type GetContentSession,
|
|
46
28
|
GetContentSessionFromJSON,
|
|
47
29
|
GetContentSessionToJSON,
|
|
30
|
+
} from '../models/GetContentSession';
|
|
31
|
+
import {
|
|
32
|
+
type GetContentSessionDetail,
|
|
48
33
|
GetContentSessionDetailFromJSON,
|
|
49
34
|
GetContentSessionDetailToJSON,
|
|
35
|
+
} from '../models/GetContentSessionDetail';
|
|
36
|
+
import {
|
|
37
|
+
type GetContentSessionList,
|
|
50
38
|
GetContentSessionListFromJSON,
|
|
51
39
|
GetContentSessionListToJSON,
|
|
40
|
+
} from '../models/GetContentSessionList';
|
|
41
|
+
import {
|
|
42
|
+
type GetContentUpload,
|
|
52
43
|
GetContentUploadFromJSON,
|
|
53
44
|
GetContentUploadToJSON,
|
|
45
|
+
} from '../models/GetContentUpload';
|
|
46
|
+
import {
|
|
47
|
+
type GetContentVersion,
|
|
54
48
|
GetContentVersionFromJSON,
|
|
55
49
|
GetContentVersionToJSON,
|
|
50
|
+
} from '../models/GetContentVersion';
|
|
51
|
+
import {
|
|
52
|
+
type GetContentVersionList,
|
|
56
53
|
GetContentVersionListFromJSON,
|
|
57
54
|
GetContentVersionListToJSON,
|
|
55
|
+
} from '../models/GetContentVersionList';
|
|
56
|
+
import {
|
|
57
|
+
type GetScormApiLogs,
|
|
58
58
|
GetScormApiLogsFromJSON,
|
|
59
59
|
GetScormApiLogsToJSON,
|
|
60
|
+
} from '../models/GetScormApiLogs';
|
|
61
|
+
import {
|
|
62
|
+
type GetScormPackage,
|
|
60
63
|
GetScormPackageFromJSON,
|
|
61
64
|
GetScormPackageToJSON,
|
|
65
|
+
} from '../models/GetScormPackage';
|
|
66
|
+
import {
|
|
67
|
+
type GetScormSessionData,
|
|
62
68
|
GetScormSessionDataFromJSON,
|
|
63
69
|
GetScormSessionDataToJSON,
|
|
70
|
+
} from '../models/GetScormSessionData';
|
|
71
|
+
import {
|
|
72
|
+
type PostContentQuiz,
|
|
64
73
|
PostContentQuizFromJSON,
|
|
65
74
|
PostContentQuizToJSON,
|
|
75
|
+
} from '../models/PostContentQuiz';
|
|
76
|
+
import {
|
|
77
|
+
type PostContentSession,
|
|
66
78
|
PostContentSessionFromJSON,
|
|
67
79
|
PostContentSessionToJSON,
|
|
80
|
+
} from '../models/PostContentSession';
|
|
81
|
+
import {
|
|
82
|
+
type PostContentUpload,
|
|
68
83
|
PostContentUploadFromJSON,
|
|
69
84
|
PostContentUploadToJSON,
|
|
85
|
+
} from '../models/PostContentUpload';
|
|
86
|
+
import {
|
|
87
|
+
type PostDuplicate2,
|
|
70
88
|
PostDuplicate2FromJSON,
|
|
71
89
|
PostDuplicate2ToJSON,
|
|
90
|
+
} from '../models/PostDuplicate2';
|
|
91
|
+
import {
|
|
92
|
+
type PostVerifyManifest,
|
|
72
93
|
PostVerifyManifestFromJSON,
|
|
73
94
|
PostVerifyManifestToJSON,
|
|
95
|
+
} from '../models/PostVerifyManifest';
|
|
96
|
+
import {
|
|
97
|
+
type PutContent,
|
|
74
98
|
PutContentFromJSON,
|
|
75
99
|
PutContentToJSON,
|
|
100
|
+
} from '../models/PutContent';
|
|
101
|
+
import {
|
|
102
|
+
type PutContentReorder,
|
|
76
103
|
PutContentReorderFromJSON,
|
|
77
104
|
PutContentReorderToJSON,
|
|
105
|
+
} from '../models/PutContentReorder';
|
|
106
|
+
import {
|
|
107
|
+
type PutContentVersion,
|
|
78
108
|
PutContentVersionFromJSON,
|
|
79
109
|
PutContentVersionToJSON,
|
|
110
|
+
} from '../models/PutContentVersion';
|
|
111
|
+
import {
|
|
112
|
+
type ScormGetValueResponse,
|
|
80
113
|
ScormGetValueResponseFromJSON,
|
|
81
114
|
ScormGetValueResponseToJSON,
|
|
115
|
+
} from '../models/ScormGetValueResponse';
|
|
116
|
+
import {
|
|
117
|
+
type ScormSetValueRequest,
|
|
82
118
|
ScormSetValueRequestFromJSON,
|
|
83
119
|
ScormSetValueRequestToJSON,
|
|
120
|
+
} from '../models/ScormSetValueRequest';
|
|
121
|
+
import {
|
|
122
|
+
type ScormSetValueResponse,
|
|
84
123
|
ScormSetValueResponseFromJSON,
|
|
85
124
|
ScormSetValueResponseToJSON,
|
|
86
|
-
} from '../models/
|
|
125
|
+
} from '../models/ScormSetValueResponse';
|
|
87
126
|
|
|
88
127
|
export interface CommitScormSessionRequest {
|
|
89
128
|
scormSessionId: string;
|
|
@@ -249,7 +288,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
249
288
|
|
|
250
289
|
|
|
251
290
|
let urlPath = `/scorm/sessions/{scormSessionId}/commit`;
|
|
252
|
-
urlPath = urlPath.replace(
|
|
291
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
253
292
|
|
|
254
293
|
return {
|
|
255
294
|
path: urlPath,
|
|
@@ -309,9 +348,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
309
348
|
|
|
310
349
|
|
|
311
350
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
312
|
-
urlPath = urlPath.replace(
|
|
313
|
-
urlPath = urlPath.replace(
|
|
314
|
-
urlPath = urlPath.replace(
|
|
351
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
352
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
353
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
315
354
|
|
|
316
355
|
return {
|
|
317
356
|
path: urlPath,
|
|
@@ -363,8 +402,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
363
402
|
|
|
364
403
|
|
|
365
404
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents`;
|
|
366
|
-
urlPath = urlPath.replace(
|
|
367
|
-
urlPath = urlPath.replace(
|
|
405
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
406
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
368
407
|
|
|
369
408
|
return {
|
|
370
409
|
path: urlPath,
|
|
@@ -423,9 +462,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
423
462
|
|
|
424
463
|
|
|
425
464
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
426
|
-
urlPath = urlPath.replace(
|
|
427
|
-
urlPath = urlPath.replace(
|
|
428
|
-
urlPath = urlPath.replace(
|
|
465
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
466
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
467
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
429
468
|
|
|
430
469
|
return {
|
|
431
470
|
path: urlPath,
|
|
@@ -491,10 +530,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
491
530
|
|
|
492
531
|
|
|
493
532
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId}`;
|
|
494
|
-
urlPath = urlPath.replace(
|
|
495
|
-
urlPath = urlPath.replace(
|
|
496
|
-
urlPath = urlPath.replace(
|
|
497
|
-
urlPath = urlPath.replace(
|
|
533
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
534
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
535
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
536
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
498
537
|
|
|
499
538
|
return {
|
|
500
539
|
path: urlPath,
|
|
@@ -562,10 +601,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
562
601
|
|
|
563
602
|
|
|
564
603
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
565
|
-
urlPath = urlPath.replace(
|
|
566
|
-
urlPath = urlPath.replace(
|
|
567
|
-
urlPath = urlPath.replace(
|
|
568
|
-
urlPath = urlPath.replace(
|
|
604
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
605
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
606
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
607
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
569
608
|
|
|
570
609
|
return {
|
|
571
610
|
path: urlPath,
|
|
@@ -634,9 +673,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
634
673
|
|
|
635
674
|
|
|
636
675
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions`;
|
|
637
|
-
urlPath = urlPath.replace(
|
|
638
|
-
urlPath = urlPath.replace(
|
|
639
|
-
urlPath = urlPath.replace(
|
|
676
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
677
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
678
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
640
679
|
|
|
641
680
|
return {
|
|
642
681
|
path: urlPath,
|
|
@@ -691,7 +730,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
691
730
|
|
|
692
731
|
|
|
693
732
|
let urlPath = `/scorm/sessions/{sessionId}/api-logs`;
|
|
694
|
-
urlPath = urlPath.replace(
|
|
733
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
695
734
|
|
|
696
735
|
return {
|
|
697
736
|
path: urlPath,
|
|
@@ -738,7 +777,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
738
777
|
|
|
739
778
|
|
|
740
779
|
let urlPath = `/scorm/packages/{packageId}`;
|
|
741
|
-
urlPath = urlPath.replace(
|
|
780
|
+
urlPath = urlPath.replace('{packageId}', encodeURIComponent(String(requestParameters['packageId'])));
|
|
742
781
|
|
|
743
782
|
return {
|
|
744
783
|
path: urlPath,
|
|
@@ -785,7 +824,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
785
824
|
|
|
786
825
|
|
|
787
826
|
let urlPath = `/scorm/sessions/{scormSessionId}/session-data`;
|
|
788
|
-
urlPath = urlPath.replace(
|
|
827
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
789
828
|
|
|
790
829
|
return {
|
|
791
830
|
path: urlPath,
|
|
@@ -843,7 +882,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
843
882
|
|
|
844
883
|
|
|
845
884
|
let urlPath = `/scorm/sessions/{scormSessionId}/get-value`;
|
|
846
|
-
urlPath = urlPath.replace(
|
|
885
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
847
886
|
|
|
848
887
|
return {
|
|
849
888
|
path: urlPath,
|
|
@@ -890,7 +929,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
890
929
|
|
|
891
930
|
|
|
892
931
|
let urlPath = `/scorm/sessions/{scormSessionId}/initialize`;
|
|
893
|
-
urlPath = urlPath.replace(
|
|
932
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
894
933
|
|
|
895
934
|
return {
|
|
896
935
|
path: urlPath,
|
|
@@ -966,9 +1005,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
966
1005
|
|
|
967
1006
|
|
|
968
1007
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions`;
|
|
969
|
-
urlPath = urlPath.replace(
|
|
970
|
-
urlPath = urlPath.replace(
|
|
971
|
-
urlPath = urlPath.replace(
|
|
1008
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1009
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1010
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
972
1011
|
|
|
973
1012
|
return {
|
|
974
1013
|
path: urlPath,
|
|
@@ -1031,9 +1070,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1031
1070
|
|
|
1032
1071
|
|
|
1033
1072
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/duplicate`;
|
|
1034
|
-
urlPath = urlPath.replace(
|
|
1035
|
-
urlPath = urlPath.replace(
|
|
1036
|
-
urlPath = urlPath.replace(
|
|
1073
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1074
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1075
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1037
1076
|
|
|
1038
1077
|
return {
|
|
1039
1078
|
path: urlPath,
|
|
@@ -1095,9 +1134,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1095
1134
|
|
|
1096
1135
|
|
|
1097
1136
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/process`;
|
|
1098
|
-
urlPath = urlPath.replace(
|
|
1099
|
-
urlPath = urlPath.replace(
|
|
1100
|
-
urlPath = urlPath.replace(
|
|
1137
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1138
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1139
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1101
1140
|
|
|
1102
1141
|
return {
|
|
1103
1142
|
path: urlPath,
|
|
@@ -1159,8 +1198,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1159
1198
|
|
|
1160
1199
|
|
|
1161
1200
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/quiz`;
|
|
1162
|
-
urlPath = urlPath.replace(
|
|
1163
|
-
urlPath = urlPath.replace(
|
|
1201
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1202
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1164
1203
|
|
|
1165
1204
|
return {
|
|
1166
1205
|
path: urlPath,
|
|
@@ -1226,9 +1265,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1226
1265
|
|
|
1227
1266
|
|
|
1228
1267
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
1229
|
-
urlPath = urlPath.replace(
|
|
1230
|
-
urlPath = urlPath.replace(
|
|
1231
|
-
urlPath = urlPath.replace(
|
|
1268
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1269
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1270
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1232
1271
|
|
|
1233
1272
|
return {
|
|
1234
1273
|
path: urlPath,
|
|
@@ -1289,8 +1328,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1289
1328
|
|
|
1290
1329
|
|
|
1291
1330
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/upload`;
|
|
1292
|
-
urlPath = urlPath.replace(
|
|
1293
|
-
urlPath = urlPath.replace(
|
|
1331
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1332
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1294
1333
|
|
|
1295
1334
|
return {
|
|
1296
1335
|
path: urlPath,
|
|
@@ -1359,9 +1398,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1359
1398
|
|
|
1360
1399
|
|
|
1361
1400
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
1362
|
-
urlPath = urlPath.replace(
|
|
1363
|
-
urlPath = urlPath.replace(
|
|
1364
|
-
urlPath = urlPath.replace(
|
|
1401
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1402
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1403
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1365
1404
|
|
|
1366
1405
|
return {
|
|
1367
1406
|
path: urlPath,
|
|
@@ -1423,8 +1462,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1423
1462
|
|
|
1424
1463
|
|
|
1425
1464
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/reorder`;
|
|
1426
|
-
urlPath = urlPath.replace(
|
|
1427
|
-
urlPath = urlPath.replace(
|
|
1465
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1466
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1428
1467
|
|
|
1429
1468
|
return {
|
|
1430
1469
|
path: urlPath,
|
|
@@ -1499,10 +1538,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1499
1538
|
|
|
1500
1539
|
|
|
1501
1540
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
1502
|
-
urlPath = urlPath.replace(
|
|
1503
|
-
urlPath = urlPath.replace(
|
|
1504
|
-
urlPath = urlPath.replace(
|
|
1505
|
-
urlPath = urlPath.replace(
|
|
1541
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1542
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1543
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1544
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
1506
1545
|
|
|
1507
1546
|
return {
|
|
1508
1547
|
path: urlPath,
|
|
@@ -1559,7 +1598,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1559
1598
|
|
|
1560
1599
|
|
|
1561
1600
|
let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
|
|
1562
|
-
urlPath = urlPath.replace(
|
|
1601
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1563
1602
|
|
|
1564
1603
|
return {
|
|
1565
1604
|
path: urlPath,
|
|
@@ -1607,7 +1646,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1607
1646
|
|
|
1608
1647
|
|
|
1609
1648
|
let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
|
|
1610
|
-
urlPath = urlPath.replace(
|
|
1649
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1611
1650
|
|
|
1612
1651
|
return {
|
|
1613
1652
|
path: urlPath,
|
package/src/apis/CourseApi.ts
CHANGED
|
@@ -12,54 +12,77 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GetCourse,
|
|
19
|
-
GetCourseEnrollment,
|
|
20
|
-
GetCourseEnrollmentList,
|
|
21
|
-
GetCourseExport,
|
|
22
|
-
GetCourseExportList,
|
|
23
|
-
GetCourseImageUpload,
|
|
24
|
-
GetCourseList,
|
|
25
|
-
GetCourseReportingBasic,
|
|
26
|
-
PostCourse,
|
|
27
|
-
PostCourseEnrollment,
|
|
28
|
-
PostCourseExport,
|
|
29
|
-
PostDuplicate,
|
|
30
|
-
PutCourse,
|
|
31
|
-
PutCourseEnrollment,
|
|
32
|
-
} from '../models/index';
|
|
33
16
|
import {
|
|
17
|
+
type GetCourse,
|
|
34
18
|
GetCourseFromJSON,
|
|
35
19
|
GetCourseToJSON,
|
|
20
|
+
} from '../models/GetCourse';
|
|
21
|
+
import {
|
|
22
|
+
type GetCourseEnrollment,
|
|
36
23
|
GetCourseEnrollmentFromJSON,
|
|
37
24
|
GetCourseEnrollmentToJSON,
|
|
25
|
+
} from '../models/GetCourseEnrollment';
|
|
26
|
+
import {
|
|
27
|
+
type GetCourseEnrollmentList,
|
|
38
28
|
GetCourseEnrollmentListFromJSON,
|
|
39
29
|
GetCourseEnrollmentListToJSON,
|
|
30
|
+
} from '../models/GetCourseEnrollmentList';
|
|
31
|
+
import {
|
|
32
|
+
type GetCourseExport,
|
|
40
33
|
GetCourseExportFromJSON,
|
|
41
34
|
GetCourseExportToJSON,
|
|
35
|
+
} from '../models/GetCourseExport';
|
|
36
|
+
import {
|
|
37
|
+
type GetCourseExportList,
|
|
42
38
|
GetCourseExportListFromJSON,
|
|
43
39
|
GetCourseExportListToJSON,
|
|
40
|
+
} from '../models/GetCourseExportList';
|
|
41
|
+
import {
|
|
42
|
+
type GetCourseImageUpload,
|
|
44
43
|
GetCourseImageUploadFromJSON,
|
|
45
44
|
GetCourseImageUploadToJSON,
|
|
45
|
+
} from '../models/GetCourseImageUpload';
|
|
46
|
+
import {
|
|
47
|
+
type GetCourseList,
|
|
46
48
|
GetCourseListFromJSON,
|
|
47
49
|
GetCourseListToJSON,
|
|
50
|
+
} from '../models/GetCourseList';
|
|
51
|
+
import {
|
|
52
|
+
type GetCourseReportingBasic,
|
|
48
53
|
GetCourseReportingBasicFromJSON,
|
|
49
54
|
GetCourseReportingBasicToJSON,
|
|
55
|
+
} from '../models/GetCourseReportingBasic';
|
|
56
|
+
import {
|
|
57
|
+
type PostCourse,
|
|
50
58
|
PostCourseFromJSON,
|
|
51
59
|
PostCourseToJSON,
|
|
60
|
+
} from '../models/PostCourse';
|
|
61
|
+
import {
|
|
62
|
+
type PostCourseEnrollment,
|
|
52
63
|
PostCourseEnrollmentFromJSON,
|
|
53
64
|
PostCourseEnrollmentToJSON,
|
|
65
|
+
} from '../models/PostCourseEnrollment';
|
|
66
|
+
import {
|
|
67
|
+
type PostCourseExport,
|
|
54
68
|
PostCourseExportFromJSON,
|
|
55
69
|
PostCourseExportToJSON,
|
|
70
|
+
} from '../models/PostCourseExport';
|
|
71
|
+
import {
|
|
72
|
+
type PostDuplicate,
|
|
56
73
|
PostDuplicateFromJSON,
|
|
57
74
|
PostDuplicateToJSON,
|
|
75
|
+
} from '../models/PostDuplicate';
|
|
76
|
+
import {
|
|
77
|
+
type PutCourse,
|
|
58
78
|
PutCourseFromJSON,
|
|
59
79
|
PutCourseToJSON,
|
|
80
|
+
} from '../models/PutCourse';
|
|
81
|
+
import {
|
|
82
|
+
type PutCourseEnrollment,
|
|
60
83
|
PutCourseEnrollmentFromJSON,
|
|
61
84
|
PutCourseEnrollmentToJSON,
|
|
62
|
-
} from '../models/
|
|
85
|
+
} from '../models/PutCourseEnrollment';
|
|
63
86
|
|
|
64
87
|
export interface DeleteCourseImageRequest {
|
|
65
88
|
courseId: string;
|
|
@@ -161,7 +184,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
161
184
|
|
|
162
185
|
|
|
163
186
|
let urlPath = `/courses/{courseId}/image`;
|
|
164
|
-
urlPath = urlPath.replace(
|
|
187
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
165
188
|
|
|
166
189
|
return {
|
|
167
190
|
path: urlPath,
|
|
@@ -205,7 +228,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
205
228
|
|
|
206
229
|
|
|
207
230
|
let urlPath = `/courses/{courseId}`;
|
|
208
|
-
urlPath = urlPath.replace(
|
|
231
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
209
232
|
|
|
210
233
|
return {
|
|
211
234
|
path: urlPath,
|
|
@@ -257,8 +280,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
257
280
|
|
|
258
281
|
|
|
259
282
|
let urlPath = `/courses/{courseId}/enrollments/{enrollmentId}`;
|
|
260
|
-
urlPath = urlPath.replace(
|
|
261
|
-
urlPath = urlPath.replace(
|
|
283
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
284
|
+
urlPath = urlPath.replace('{enrollmentId}', encodeURIComponent(String(requestParameters['enrollmentId'])));
|
|
262
285
|
|
|
263
286
|
return {
|
|
264
287
|
path: urlPath,
|
|
@@ -319,7 +342,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
319
342
|
|
|
320
343
|
|
|
321
344
|
let urlPath = `/courses/{courseId}/enrollments`;
|
|
322
|
-
urlPath = urlPath.replace(
|
|
345
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
323
346
|
|
|
324
347
|
return {
|
|
325
348
|
path: urlPath,
|
|
@@ -371,8 +394,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
371
394
|
|
|
372
395
|
|
|
373
396
|
let urlPath = `/courses/{courseId}/exports/{exportId}`;
|
|
374
|
-
urlPath = urlPath.replace(
|
|
375
|
-
urlPath = urlPath.replace(
|
|
397
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
398
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
376
399
|
|
|
377
400
|
return {
|
|
378
401
|
path: urlPath,
|
|
@@ -425,7 +448,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
425
448
|
|
|
426
449
|
|
|
427
450
|
let urlPath = `/courses/{courseId}/exports`;
|
|
428
|
-
urlPath = urlPath.replace(
|
|
451
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
429
452
|
|
|
430
453
|
return {
|
|
431
454
|
path: urlPath,
|
|
@@ -523,7 +546,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
523
546
|
|
|
524
547
|
|
|
525
548
|
let urlPath = `/courses/{courseId}/reporting/basic`;
|
|
526
|
-
urlPath = urlPath.replace(
|
|
549
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
527
550
|
|
|
528
551
|
return {
|
|
529
552
|
path: urlPath,
|
|
@@ -617,7 +640,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
617
640
|
|
|
618
641
|
|
|
619
642
|
let urlPath = `/courses/{courseId}/duplicate`;
|
|
620
|
-
urlPath = urlPath.replace(
|
|
643
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
621
644
|
|
|
622
645
|
return {
|
|
623
646
|
path: urlPath,
|
|
@@ -674,7 +697,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
674
697
|
|
|
675
698
|
|
|
676
699
|
let urlPath = `/courses/{courseId}/enrollments`;
|
|
677
|
-
urlPath = urlPath.replace(
|
|
700
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
678
701
|
|
|
679
702
|
return {
|
|
680
703
|
path: urlPath,
|
|
@@ -729,7 +752,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
729
752
|
|
|
730
753
|
|
|
731
754
|
let urlPath = `/courses/{courseId}/exports`;
|
|
732
|
-
urlPath = urlPath.replace(
|
|
755
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
733
756
|
|
|
734
757
|
return {
|
|
735
758
|
path: urlPath,
|
|
@@ -804,7 +827,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
804
827
|
|
|
805
828
|
|
|
806
829
|
let urlPath = `/courses/{courseId}/image`;
|
|
807
|
-
urlPath = urlPath.replace(
|
|
830
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
808
831
|
|
|
809
832
|
return {
|
|
810
833
|
path: urlPath,
|
|
@@ -859,7 +882,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
859
882
|
|
|
860
883
|
|
|
861
884
|
let urlPath = `/courses/{courseId}`;
|
|
862
|
-
urlPath = urlPath.replace(
|
|
885
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
863
886
|
|
|
864
887
|
return {
|
|
865
888
|
path: urlPath,
|
|
@@ -921,8 +944,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
921
944
|
|
|
922
945
|
|
|
923
946
|
let urlPath = `/courses/{courseId}/enrollments/{enrollmentId}`;
|
|
924
|
-
urlPath = urlPath.replace(
|
|
925
|
-
urlPath = urlPath.replace(
|
|
947
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
948
|
+
urlPath = urlPath.replace('{enrollmentId}', encodeURIComponent(String(requestParameters['enrollmentId'])));
|
|
926
949
|
|
|
927
950
|
return {
|
|
928
951
|
path: urlPath,
|