@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/src/apis/QuizApi.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
|
-
GetManualQuestionSelectionItem,
|
|
19
|
-
GetManualQuestionSelectionList,
|
|
20
|
-
GetQuiz,
|
|
21
|
-
GetQuizAttempt,
|
|
22
|
-
GetQuizAttemptAnalytics,
|
|
23
|
-
GetQuizAttemptList,
|
|
24
|
-
GetQuizCriteria,
|
|
25
|
-
GetQuizCriteriaItem,
|
|
26
|
-
GetQuizCriteriaList,
|
|
27
|
-
GetQuizList,
|
|
28
|
-
GetQuizQuestions,
|
|
29
|
-
GetQuizResults,
|
|
30
|
-
GetUserQuizAttempts,
|
|
31
|
-
PostManualQuestionSelection,
|
|
32
|
-
PostQuiz,
|
|
33
|
-
PostQuizAttempt,
|
|
34
|
-
PostQuizAttemptSubmit,
|
|
35
|
-
PostQuizCriteria,
|
|
36
|
-
PostQuizQuestions,
|
|
37
|
-
PutQuiz,
|
|
38
|
-
PutQuizAnswer,
|
|
39
|
-
PutQuizAnswerGrade,
|
|
40
|
-
} from '../models/index';
|
|
41
16
|
import {
|
|
17
|
+
type GetManualQuestionSelectionItem,
|
|
42
18
|
GetManualQuestionSelectionItemFromJSON,
|
|
43
19
|
GetManualQuestionSelectionItemToJSON,
|
|
20
|
+
} from '../models/GetManualQuestionSelectionItem';
|
|
21
|
+
import {
|
|
22
|
+
type GetManualQuestionSelectionList,
|
|
44
23
|
GetManualQuestionSelectionListFromJSON,
|
|
45
24
|
GetManualQuestionSelectionListToJSON,
|
|
25
|
+
} from '../models/GetManualQuestionSelectionList';
|
|
26
|
+
import {
|
|
27
|
+
type GetQuiz,
|
|
46
28
|
GetQuizFromJSON,
|
|
47
29
|
GetQuizToJSON,
|
|
30
|
+
} from '../models/GetQuiz';
|
|
31
|
+
import {
|
|
32
|
+
type GetQuizAttempt,
|
|
48
33
|
GetQuizAttemptFromJSON,
|
|
49
34
|
GetQuizAttemptToJSON,
|
|
35
|
+
} from '../models/GetQuizAttempt';
|
|
36
|
+
import {
|
|
37
|
+
type GetQuizAttemptAnalytics,
|
|
50
38
|
GetQuizAttemptAnalyticsFromJSON,
|
|
51
39
|
GetQuizAttemptAnalyticsToJSON,
|
|
40
|
+
} from '../models/GetQuizAttemptAnalytics';
|
|
41
|
+
import {
|
|
42
|
+
type GetQuizAttemptList,
|
|
52
43
|
GetQuizAttemptListFromJSON,
|
|
53
44
|
GetQuizAttemptListToJSON,
|
|
45
|
+
} from '../models/GetQuizAttemptList';
|
|
46
|
+
import {
|
|
47
|
+
type GetQuizCriteria,
|
|
54
48
|
GetQuizCriteriaFromJSON,
|
|
55
49
|
GetQuizCriteriaToJSON,
|
|
50
|
+
} from '../models/GetQuizCriteria';
|
|
51
|
+
import {
|
|
52
|
+
type GetQuizCriteriaItem,
|
|
56
53
|
GetQuizCriteriaItemFromJSON,
|
|
57
54
|
GetQuizCriteriaItemToJSON,
|
|
55
|
+
} from '../models/GetQuizCriteriaItem';
|
|
56
|
+
import {
|
|
57
|
+
type GetQuizCriteriaList,
|
|
58
58
|
GetQuizCriteriaListFromJSON,
|
|
59
59
|
GetQuizCriteriaListToJSON,
|
|
60
|
+
} from '../models/GetQuizCriteriaList';
|
|
61
|
+
import {
|
|
62
|
+
type GetQuizList,
|
|
60
63
|
GetQuizListFromJSON,
|
|
61
64
|
GetQuizListToJSON,
|
|
65
|
+
} from '../models/GetQuizList';
|
|
66
|
+
import {
|
|
67
|
+
type GetQuizQuestions,
|
|
62
68
|
GetQuizQuestionsFromJSON,
|
|
63
69
|
GetQuizQuestionsToJSON,
|
|
70
|
+
} from '../models/GetQuizQuestions';
|
|
71
|
+
import {
|
|
72
|
+
type GetQuizResults,
|
|
64
73
|
GetQuizResultsFromJSON,
|
|
65
74
|
GetQuizResultsToJSON,
|
|
75
|
+
} from '../models/GetQuizResults';
|
|
76
|
+
import {
|
|
77
|
+
type GetUserQuizAttempts,
|
|
66
78
|
GetUserQuizAttemptsFromJSON,
|
|
67
79
|
GetUserQuizAttemptsToJSON,
|
|
80
|
+
} from '../models/GetUserQuizAttempts';
|
|
81
|
+
import {
|
|
82
|
+
type PostManualQuestionSelection,
|
|
68
83
|
PostManualQuestionSelectionFromJSON,
|
|
69
84
|
PostManualQuestionSelectionToJSON,
|
|
85
|
+
} from '../models/PostManualQuestionSelection';
|
|
86
|
+
import {
|
|
87
|
+
type PostQuiz,
|
|
70
88
|
PostQuizFromJSON,
|
|
71
89
|
PostQuizToJSON,
|
|
90
|
+
} from '../models/PostQuiz';
|
|
91
|
+
import {
|
|
92
|
+
type PostQuizAttempt,
|
|
72
93
|
PostQuizAttemptFromJSON,
|
|
73
94
|
PostQuizAttemptToJSON,
|
|
95
|
+
} from '../models/PostQuizAttempt';
|
|
96
|
+
import {
|
|
97
|
+
type PostQuizAttemptSubmit,
|
|
74
98
|
PostQuizAttemptSubmitFromJSON,
|
|
75
99
|
PostQuizAttemptSubmitToJSON,
|
|
100
|
+
} from '../models/PostQuizAttemptSubmit';
|
|
101
|
+
import {
|
|
102
|
+
type PostQuizCriteria,
|
|
76
103
|
PostQuizCriteriaFromJSON,
|
|
77
104
|
PostQuizCriteriaToJSON,
|
|
105
|
+
} from '../models/PostQuizCriteria';
|
|
106
|
+
import {
|
|
107
|
+
type PostQuizQuestions,
|
|
78
108
|
PostQuizQuestionsFromJSON,
|
|
79
109
|
PostQuizQuestionsToJSON,
|
|
110
|
+
} from '../models/PostQuizQuestions';
|
|
111
|
+
import {
|
|
112
|
+
type PutQuiz,
|
|
80
113
|
PutQuizFromJSON,
|
|
81
114
|
PutQuizToJSON,
|
|
115
|
+
} from '../models/PutQuiz';
|
|
116
|
+
import {
|
|
117
|
+
type PutQuizAnswer,
|
|
82
118
|
PutQuizAnswerFromJSON,
|
|
83
119
|
PutQuizAnswerToJSON,
|
|
120
|
+
} from '../models/PutQuizAnswer';
|
|
121
|
+
import {
|
|
122
|
+
type PutQuizAnswerGrade,
|
|
84
123
|
PutQuizAnswerGradeFromJSON,
|
|
85
124
|
PutQuizAnswerGradeToJSON,
|
|
86
|
-
} from '../models/
|
|
125
|
+
} from '../models/PutQuizAnswerGrade';
|
|
87
126
|
|
|
88
127
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
89
128
|
quizId: string;
|
|
@@ -253,7 +292,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
253
292
|
|
|
254
293
|
|
|
255
294
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection`;
|
|
256
|
-
urlPath = urlPath.replace(
|
|
295
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
257
296
|
|
|
258
297
|
return {
|
|
259
298
|
path: urlPath,
|
|
@@ -308,7 +347,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
308
347
|
|
|
309
348
|
|
|
310
349
|
let urlPath = `/quizzes/{quizId}/manual-question-selection`;
|
|
311
|
-
urlPath = urlPath.replace(
|
|
350
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
312
351
|
|
|
313
352
|
return {
|
|
314
353
|
path: urlPath,
|
|
@@ -363,7 +402,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
363
402
|
|
|
364
403
|
|
|
365
404
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
366
|
-
urlPath = urlPath.replace(
|
|
405
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
367
406
|
|
|
368
407
|
return {
|
|
369
408
|
path: urlPath,
|
|
@@ -456,7 +495,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
456
495
|
|
|
457
496
|
|
|
458
497
|
let urlPath = `/quizzes/{quizId}`;
|
|
459
|
-
urlPath = urlPath.replace(
|
|
498
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
460
499
|
|
|
461
500
|
return {
|
|
462
501
|
path: urlPath,
|
|
@@ -507,8 +546,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
507
546
|
|
|
508
547
|
|
|
509
548
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`;
|
|
510
|
-
urlPath = urlPath.replace(
|
|
511
|
-
urlPath = urlPath.replace(
|
|
549
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
550
|
+
urlPath = urlPath.replace('{criteriaId}', encodeURIComponent(String(requestParameters['criteriaId'])));
|
|
512
551
|
|
|
513
552
|
return {
|
|
514
553
|
path: urlPath,
|
|
@@ -559,8 +598,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
559
598
|
|
|
560
599
|
|
|
561
600
|
let urlPath = `/quizzes/{quizId}/manual-question-selection/{questionId}`;
|
|
562
|
-
urlPath = urlPath.replace(
|
|
563
|
-
urlPath = urlPath.replace(
|
|
601
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
602
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
564
603
|
|
|
565
604
|
return {
|
|
566
605
|
path: urlPath,
|
|
@@ -604,7 +643,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
604
643
|
|
|
605
644
|
|
|
606
645
|
let urlPath = `/quizzes/{quizId}`;
|
|
607
|
-
urlPath = urlPath.replace(
|
|
646
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
608
647
|
|
|
609
648
|
return {
|
|
610
649
|
path: urlPath,
|
|
@@ -649,7 +688,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
649
688
|
|
|
650
689
|
|
|
651
690
|
let urlPath = `/quiz-attempts/{attemptId}`;
|
|
652
|
-
urlPath = urlPath.replace(
|
|
691
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
653
692
|
|
|
654
693
|
return {
|
|
655
694
|
path: urlPath,
|
|
@@ -694,7 +733,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
694
733
|
|
|
695
734
|
|
|
696
735
|
let urlPath = `/quiz-attempts/{attemptId}/analytics`;
|
|
697
|
-
urlPath = urlPath.replace(
|
|
736
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
698
737
|
|
|
699
738
|
return {
|
|
700
739
|
path: urlPath,
|
|
@@ -739,7 +778,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
739
778
|
|
|
740
779
|
|
|
741
780
|
let urlPath = `/quiz-attempts/{attemptId}/results`;
|
|
742
|
-
urlPath = urlPath.replace(
|
|
781
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
743
782
|
|
|
744
783
|
return {
|
|
745
784
|
path: urlPath,
|
|
@@ -800,7 +839,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
800
839
|
|
|
801
840
|
|
|
802
841
|
let urlPath = `/quizzes/{quizId}/attempts`;
|
|
803
|
-
urlPath = urlPath.replace(
|
|
842
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
804
843
|
|
|
805
844
|
return {
|
|
806
845
|
path: urlPath,
|
|
@@ -852,8 +891,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
852
891
|
|
|
853
892
|
|
|
854
893
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`;
|
|
855
|
-
urlPath = urlPath.replace(
|
|
856
|
-
urlPath = urlPath.replace(
|
|
894
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
895
|
+
urlPath = urlPath.replace('{criteriaId}', encodeURIComponent(String(requestParameters['criteriaId'])));
|
|
857
896
|
|
|
858
897
|
return {
|
|
859
898
|
path: urlPath,
|
|
@@ -906,7 +945,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
906
945
|
|
|
907
946
|
|
|
908
947
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection`;
|
|
909
|
-
urlPath = urlPath.replace(
|
|
948
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
910
949
|
|
|
911
950
|
return {
|
|
912
951
|
path: urlPath,
|
|
@@ -1015,8 +1054,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1015
1054
|
|
|
1016
1055
|
|
|
1017
1056
|
let urlPath = `/quizzes/{quizId}/manual-question-selection/{questionId}`;
|
|
1018
|
-
urlPath = urlPath.replace(
|
|
1019
|
-
urlPath = urlPath.replace(
|
|
1057
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1058
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
1020
1059
|
|
|
1021
1060
|
return {
|
|
1022
1061
|
path: urlPath,
|
|
@@ -1069,7 +1108,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1069
1108
|
|
|
1070
1109
|
|
|
1071
1110
|
let urlPath = `/quizzes/{quizId}/manual-question-selection`;
|
|
1072
|
-
urlPath = urlPath.replace(
|
|
1111
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1073
1112
|
|
|
1074
1113
|
return {
|
|
1075
1114
|
path: urlPath,
|
|
@@ -1122,7 +1161,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1122
1161
|
|
|
1123
1162
|
|
|
1124
1163
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
1125
|
-
urlPath = urlPath.replace(
|
|
1164
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1126
1165
|
|
|
1127
1166
|
return {
|
|
1128
1167
|
path: urlPath,
|
|
@@ -1183,7 +1222,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1183
1222
|
|
|
1184
1223
|
|
|
1185
1224
|
let urlPath = `/users/{userId}/quiz-attempts`;
|
|
1186
|
-
urlPath = urlPath.replace(
|
|
1225
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
1187
1226
|
|
|
1188
1227
|
return {
|
|
1189
1228
|
path: urlPath,
|
|
@@ -1244,8 +1283,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1244
1283
|
|
|
1245
1284
|
|
|
1246
1285
|
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}/grade`;
|
|
1247
|
-
urlPath = urlPath.replace(
|
|
1248
|
-
urlPath = urlPath.replace(
|
|
1286
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
1287
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
1249
1288
|
|
|
1250
1289
|
return {
|
|
1251
1290
|
path: urlPath,
|
|
@@ -1299,8 +1338,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1299
1338
|
|
|
1300
1339
|
|
|
1301
1340
|
let urlPath = `/quizzes/{quizId}/questions/{questionId}`;
|
|
1302
|
-
urlPath = urlPath.replace(
|
|
1303
|
-
urlPath = urlPath.replace(
|
|
1341
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1342
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
1304
1343
|
|
|
1305
1344
|
return {
|
|
1306
1345
|
path: urlPath,
|
|
@@ -1360,8 +1399,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1360
1399
|
|
|
1361
1400
|
|
|
1362
1401
|
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}`;
|
|
1363
|
-
urlPath = urlPath.replace(
|
|
1364
|
-
urlPath = urlPath.replace(
|
|
1402
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
1403
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
1365
1404
|
|
|
1366
1405
|
return {
|
|
1367
1406
|
path: urlPath,
|
|
@@ -1406,7 +1445,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1406
1445
|
|
|
1407
1446
|
|
|
1408
1447
|
let urlPath = `/quizzes/{quizId}/attempts`;
|
|
1409
|
-
urlPath = urlPath.replace(
|
|
1448
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1410
1449
|
|
|
1411
1450
|
return {
|
|
1412
1451
|
path: urlPath,
|
|
@@ -1460,7 +1499,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1460
1499
|
|
|
1461
1500
|
|
|
1462
1501
|
let urlPath = `/quiz-attempts/{attemptId}/submit`;
|
|
1463
|
-
urlPath = urlPath.replace(
|
|
1502
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
1464
1503
|
|
|
1465
1504
|
return {
|
|
1466
1505
|
path: urlPath,
|
|
@@ -1515,7 +1554,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1515
1554
|
|
|
1516
1555
|
|
|
1517
1556
|
let urlPath = `/quizzes/{quizId}`;
|
|
1518
|
-
urlPath = urlPath.replace(
|
|
1557
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1519
1558
|
|
|
1520
1559
|
return {
|
|
1521
1560
|
path: urlPath,
|
|
@@ -1570,7 +1609,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1570
1609
|
|
|
1571
1610
|
|
|
1572
1611
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
1573
|
-
urlPath = urlPath.replace(
|
|
1612
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1574
1613
|
|
|
1575
1614
|
return {
|
|
1576
1615
|
path: urlPath,
|
package/src/apis/ReportingApi.ts
CHANGED
|
@@ -12,39 +12,52 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GetContentGradeDetail,
|
|
19
|
-
GetContentGrades,
|
|
20
|
-
GetContentInstructorBasicReporting,
|
|
21
|
-
GetCourseReportingBasic,
|
|
22
|
-
GetCourseStudentReporting,
|
|
23
|
-
GetModuleInstructorBasicReporting,
|
|
24
|
-
GetModuleStudentReporting,
|
|
25
|
-
GetPortalBasicReporting,
|
|
26
|
-
GetPortalStudentReporting,
|
|
27
|
-
} from '../models/index';
|
|
28
16
|
import {
|
|
17
|
+
type GetContentGradeDetail,
|
|
29
18
|
GetContentGradeDetailFromJSON,
|
|
30
19
|
GetContentGradeDetailToJSON,
|
|
20
|
+
} from '../models/GetContentGradeDetail';
|
|
21
|
+
import {
|
|
22
|
+
type GetContentGrades,
|
|
31
23
|
GetContentGradesFromJSON,
|
|
32
24
|
GetContentGradesToJSON,
|
|
25
|
+
} from '../models/GetContentGrades';
|
|
26
|
+
import {
|
|
27
|
+
type GetContentInstructorBasicReporting,
|
|
33
28
|
GetContentInstructorBasicReportingFromJSON,
|
|
34
29
|
GetContentInstructorBasicReportingToJSON,
|
|
30
|
+
} from '../models/GetContentInstructorBasicReporting';
|
|
31
|
+
import {
|
|
32
|
+
type GetCourseReportingBasic,
|
|
35
33
|
GetCourseReportingBasicFromJSON,
|
|
36
34
|
GetCourseReportingBasicToJSON,
|
|
35
|
+
} from '../models/GetCourseReportingBasic';
|
|
36
|
+
import {
|
|
37
|
+
type GetCourseStudentReporting,
|
|
37
38
|
GetCourseStudentReportingFromJSON,
|
|
38
39
|
GetCourseStudentReportingToJSON,
|
|
40
|
+
} from '../models/GetCourseStudentReporting';
|
|
41
|
+
import {
|
|
42
|
+
type GetModuleInstructorBasicReporting,
|
|
39
43
|
GetModuleInstructorBasicReportingFromJSON,
|
|
40
44
|
GetModuleInstructorBasicReportingToJSON,
|
|
45
|
+
} from '../models/GetModuleInstructorBasicReporting';
|
|
46
|
+
import {
|
|
47
|
+
type GetModuleStudentReporting,
|
|
41
48
|
GetModuleStudentReportingFromJSON,
|
|
42
49
|
GetModuleStudentReportingToJSON,
|
|
50
|
+
} from '../models/GetModuleStudentReporting';
|
|
51
|
+
import {
|
|
52
|
+
type GetPortalBasicReporting,
|
|
43
53
|
GetPortalBasicReportingFromJSON,
|
|
44
54
|
GetPortalBasicReportingToJSON,
|
|
55
|
+
} from '../models/GetPortalBasicReporting';
|
|
56
|
+
import {
|
|
57
|
+
type GetPortalStudentReporting,
|
|
45
58
|
GetPortalStudentReportingFromJSON,
|
|
46
59
|
GetPortalStudentReportingToJSON,
|
|
47
|
-
} from '../models/
|
|
60
|
+
} from '../models/GetPortalStudentReporting';
|
|
48
61
|
|
|
49
62
|
export interface GetContentGradeDetailRequest {
|
|
50
63
|
courseId: string;
|
|
@@ -140,10 +153,10 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
140
153
|
|
|
141
154
|
|
|
142
155
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades/{studentId}`;
|
|
143
|
-
urlPath = urlPath.replace(
|
|
144
|
-
urlPath = urlPath.replace(
|
|
145
|
-
urlPath = urlPath.replace(
|
|
146
|
-
urlPath = urlPath.replace(
|
|
156
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
157
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
158
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
159
|
+
urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
|
|
147
160
|
|
|
148
161
|
return {
|
|
149
162
|
path: urlPath,
|
|
@@ -214,9 +227,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
214
227
|
|
|
215
228
|
|
|
216
229
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades`;
|
|
217
|
-
urlPath = urlPath.replace(
|
|
218
|
-
urlPath = urlPath.replace(
|
|
219
|
-
urlPath = urlPath.replace(
|
|
230
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
231
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
232
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
220
233
|
|
|
221
234
|
return {
|
|
222
235
|
path: urlPath,
|
|
@@ -275,9 +288,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
275
288
|
|
|
276
289
|
|
|
277
290
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/instructor/basic`;
|
|
278
|
-
urlPath = urlPath.replace(
|
|
279
|
-
urlPath = urlPath.replace(
|
|
280
|
-
urlPath = urlPath.replace(
|
|
291
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
292
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
293
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
281
294
|
|
|
282
295
|
return {
|
|
283
296
|
path: urlPath,
|
|
@@ -322,7 +335,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
322
335
|
|
|
323
336
|
|
|
324
337
|
let urlPath = `/courses/{courseId}/reporting/instructor/basic`;
|
|
325
|
-
urlPath = urlPath.replace(
|
|
338
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
326
339
|
|
|
327
340
|
return {
|
|
328
341
|
path: urlPath,
|
|
@@ -374,8 +387,8 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
374
387
|
|
|
375
388
|
|
|
376
389
|
let urlPath = `/courses/{courseId}/reporting/students/{studentId}`;
|
|
377
|
-
urlPath = urlPath.replace(
|
|
378
|
-
urlPath = urlPath.replace(
|
|
390
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
391
|
+
urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
|
|
379
392
|
|
|
380
393
|
return {
|
|
381
394
|
path: urlPath,
|
|
@@ -427,8 +440,8 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
427
440
|
|
|
428
441
|
|
|
429
442
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/reporting/instructor/basic`;
|
|
430
|
-
urlPath = urlPath.replace(
|
|
431
|
-
urlPath = urlPath.replace(
|
|
443
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
444
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
432
445
|
|
|
433
446
|
return {
|
|
434
447
|
path: urlPath,
|
|
@@ -487,9 +500,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
487
500
|
|
|
488
501
|
|
|
489
502
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/reporting/students/{studentId}`;
|
|
490
|
-
urlPath = urlPath.replace(
|
|
491
|
-
urlPath = urlPath.replace(
|
|
492
|
-
urlPath = urlPath.replace(
|
|
503
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
504
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
505
|
+
urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
|
|
493
506
|
|
|
494
507
|
return {
|
|
495
508
|
path: urlPath,
|
|
@@ -534,7 +547,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
534
547
|
|
|
535
548
|
|
|
536
549
|
let urlPath = `/portals/{portalId}/reporting/basic`;
|
|
537
|
-
urlPath = urlPath.replace(
|
|
550
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
538
551
|
|
|
539
552
|
return {
|
|
540
553
|
path: urlPath,
|
|
@@ -586,8 +599,8 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
586
599
|
|
|
587
600
|
|
|
588
601
|
let urlPath = `/portals/{portalId}/reporting/students/{studentId}`;
|
|
589
|
-
urlPath = urlPath.replace(
|
|
590
|
-
urlPath = urlPath.replace(
|
|
602
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
603
|
+
urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
|
|
591
604
|
|
|
592
605
|
return {
|
|
593
606
|
path: urlPath,
|
package/src/apis/RoleApi.ts
CHANGED
|
@@ -12,30 +12,37 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GetPermission,
|
|
19
|
-
GetRole,
|
|
20
|
-
GetUserRole,
|
|
21
|
-
PostRole,
|
|
22
|
-
PutRole,
|
|
23
|
-
PutRolePermissions,
|
|
24
|
-
} from '../models/index';
|
|
25
16
|
import {
|
|
17
|
+
type GetPermission,
|
|
26
18
|
GetPermissionFromJSON,
|
|
27
19
|
GetPermissionToJSON,
|
|
20
|
+
} from '../models/GetPermission';
|
|
21
|
+
import {
|
|
22
|
+
type GetRole,
|
|
28
23
|
GetRoleFromJSON,
|
|
29
24
|
GetRoleToJSON,
|
|
25
|
+
} from '../models/GetRole';
|
|
26
|
+
import {
|
|
27
|
+
type GetUserRole,
|
|
30
28
|
GetUserRoleFromJSON,
|
|
31
29
|
GetUserRoleToJSON,
|
|
30
|
+
} from '../models/GetUserRole';
|
|
31
|
+
import {
|
|
32
|
+
type PostRole,
|
|
32
33
|
PostRoleFromJSON,
|
|
33
34
|
PostRoleToJSON,
|
|
35
|
+
} from '../models/PostRole';
|
|
36
|
+
import {
|
|
37
|
+
type PutRole,
|
|
34
38
|
PutRoleFromJSON,
|
|
35
39
|
PutRoleToJSON,
|
|
40
|
+
} from '../models/PutRole';
|
|
41
|
+
import {
|
|
42
|
+
type PutRolePermissions,
|
|
36
43
|
PutRolePermissionsFromJSON,
|
|
37
44
|
PutRolePermissionsToJSON,
|
|
38
|
-
} from '../models/
|
|
45
|
+
} from '../models/PutRolePermissions';
|
|
39
46
|
|
|
40
47
|
export interface AssignUserRoleRequest {
|
|
41
48
|
userId: string;
|
|
@@ -112,9 +119,9 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
112
119
|
|
|
113
120
|
|
|
114
121
|
let urlPath = `/roles/users/{userId}/portals/{portalId}/roles/{roleId}`;
|
|
115
|
-
urlPath = urlPath.replace(
|
|
116
|
-
urlPath = urlPath.replace(
|
|
117
|
-
urlPath = urlPath.replace(
|
|
122
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
123
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
124
|
+
urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
|
|
118
125
|
|
|
119
126
|
return {
|
|
120
127
|
path: urlPath,
|
|
@@ -205,7 +212,7 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
205
212
|
|
|
206
213
|
|
|
207
214
|
let urlPath = `/roles/{roleId}`;
|
|
208
|
-
urlPath = urlPath.replace(
|
|
215
|
+
urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
|
|
209
216
|
|
|
210
217
|
return {
|
|
211
218
|
path: urlPath,
|
|
@@ -286,7 +293,7 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
286
293
|
|
|
287
294
|
|
|
288
295
|
let urlPath = `/roles/{roleId}`;
|
|
289
|
-
urlPath = urlPath.replace(
|
|
296
|
+
urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
|
|
290
297
|
|
|
291
298
|
return {
|
|
292
299
|
path: urlPath,
|
|
@@ -375,8 +382,8 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
375
382
|
|
|
376
383
|
|
|
377
384
|
let urlPath = `/roles/users/{userId}/portals/{portalId}`;
|
|
378
|
-
urlPath = urlPath.replace(
|
|
379
|
-
urlPath = urlPath.replace(
|
|
385
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
386
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
380
387
|
|
|
381
388
|
return {
|
|
382
389
|
path: urlPath,
|
|
@@ -435,9 +442,9 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
435
442
|
|
|
436
443
|
|
|
437
444
|
let urlPath = `/roles/users/{userId}/portals/{portalId}/roles/{roleId}`;
|
|
438
|
-
urlPath = urlPath.replace(
|
|
439
|
-
urlPath = urlPath.replace(
|
|
440
|
-
urlPath = urlPath.replace(
|
|
445
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
446
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
447
|
+
urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
|
|
441
448
|
|
|
442
449
|
return {
|
|
443
450
|
path: urlPath,
|
|
@@ -490,7 +497,7 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
490
497
|
|
|
491
498
|
|
|
492
499
|
let urlPath = `/roles/{roleId}`;
|
|
493
|
-
urlPath = urlPath.replace(
|
|
500
|
+
urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
|
|
494
501
|
|
|
495
502
|
return {
|
|
496
503
|
path: urlPath,
|
|
@@ -545,7 +552,7 @@ export class RoleApi extends runtime.BaseAPI {
|
|
|
545
552
|
|
|
546
553
|
|
|
547
554
|
let urlPath = `/roles/{roleId}/permissions`;
|
|
548
|
-
urlPath = urlPath.replace(
|
|
555
|
+
urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
|
|
549
556
|
|
|
550
557
|
return {
|
|
551
558
|
path: urlPath,
|