@easyedu/js-lsm-api 1.58.0 → 1.60.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 +6 -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 +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +57 -0
- package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.js +51 -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/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 +52 -0
- package/dist/models/UpdateSelectedPortalResponse.js +64 -0
- package/dist/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseHostPortal.js +58 -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/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +40 -0
- package/docs/UpdateSelectedPortalResponseHostPortal.md +39 -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 +108 -0
- package/src/models/UpdateSelectedPortalResponseHostPortal.ts +84 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -2
package/src/apis/PortalApi.ts
CHANGED
|
@@ -12,36 +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
|
-
GetPortal,
|
|
19
|
-
GetPortalFaviconUpload,
|
|
20
|
-
GetPortalList,
|
|
21
|
-
GetPortalLogoUpload,
|
|
22
|
-
GetPortalUserList,
|
|
23
|
-
PostPortal,
|
|
24
|
-
PostPortalInvite,
|
|
25
|
-
PutPortalBranding,
|
|
26
|
-
} from '../models/index';
|
|
27
16
|
import {
|
|
17
|
+
type GetPortal,
|
|
28
18
|
GetPortalFromJSON,
|
|
29
19
|
GetPortalToJSON,
|
|
20
|
+
} from '../models/GetPortal';
|
|
21
|
+
import {
|
|
22
|
+
type GetPortalFaviconUpload,
|
|
30
23
|
GetPortalFaviconUploadFromJSON,
|
|
31
24
|
GetPortalFaviconUploadToJSON,
|
|
25
|
+
} from '../models/GetPortalFaviconUpload';
|
|
26
|
+
import {
|
|
27
|
+
type GetPortalList,
|
|
32
28
|
GetPortalListFromJSON,
|
|
33
29
|
GetPortalListToJSON,
|
|
30
|
+
} from '../models/GetPortalList';
|
|
31
|
+
import {
|
|
32
|
+
type GetPortalLogoUpload,
|
|
34
33
|
GetPortalLogoUploadFromJSON,
|
|
35
34
|
GetPortalLogoUploadToJSON,
|
|
35
|
+
} from '../models/GetPortalLogoUpload';
|
|
36
|
+
import {
|
|
37
|
+
type GetPortalUserList,
|
|
36
38
|
GetPortalUserListFromJSON,
|
|
37
39
|
GetPortalUserListToJSON,
|
|
40
|
+
} from '../models/GetPortalUserList';
|
|
41
|
+
import {
|
|
42
|
+
type PostPortal,
|
|
38
43
|
PostPortalFromJSON,
|
|
39
44
|
PostPortalToJSON,
|
|
45
|
+
} from '../models/PostPortal';
|
|
46
|
+
import {
|
|
47
|
+
type PostPortalInvite,
|
|
40
48
|
PostPortalInviteFromJSON,
|
|
41
49
|
PostPortalInviteToJSON,
|
|
50
|
+
} from '../models/PostPortalInvite';
|
|
51
|
+
import {
|
|
52
|
+
type PutPortalBranding,
|
|
42
53
|
PutPortalBrandingFromJSON,
|
|
43
54
|
PutPortalBrandingToJSON,
|
|
44
|
-
} from '../models/
|
|
55
|
+
} from '../models/PutPortalBranding';
|
|
56
|
+
import {
|
|
57
|
+
type UpdateSelectedPortalResponse,
|
|
58
|
+
UpdateSelectedPortalResponseFromJSON,
|
|
59
|
+
UpdateSelectedPortalResponseToJSON,
|
|
60
|
+
} from '../models/UpdateSelectedPortalResponse';
|
|
45
61
|
|
|
46
62
|
export interface DeletePortalFaviconRequest {
|
|
47
63
|
portalId: string;
|
|
@@ -114,7 +130,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
114
130
|
|
|
115
131
|
|
|
116
132
|
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
117
|
-
urlPath = urlPath.replace(
|
|
133
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
118
134
|
|
|
119
135
|
return {
|
|
120
136
|
path: urlPath,
|
|
@@ -158,7 +174,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
158
174
|
|
|
159
175
|
|
|
160
176
|
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
161
|
-
urlPath = urlPath.replace(
|
|
177
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
162
178
|
|
|
163
179
|
return {
|
|
164
180
|
path: urlPath,
|
|
@@ -202,7 +218,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
202
218
|
|
|
203
219
|
|
|
204
220
|
let urlPath = `/portals/{portalId}`;
|
|
205
|
-
urlPath = urlPath.replace(
|
|
221
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
206
222
|
|
|
207
223
|
return {
|
|
208
224
|
path: urlPath,
|
|
@@ -304,7 +320,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
304
320
|
|
|
305
321
|
|
|
306
322
|
let urlPath = `/portals/{portalId}/users`;
|
|
307
|
-
urlPath = urlPath.replace(
|
|
323
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
308
324
|
|
|
309
325
|
return {
|
|
310
326
|
path: urlPath,
|
|
@@ -358,7 +374,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
358
374
|
|
|
359
375
|
|
|
360
376
|
let urlPath = `/portals/{portalId}/invite`;
|
|
361
|
-
urlPath = urlPath.replace(
|
|
377
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
362
378
|
|
|
363
379
|
return {
|
|
364
380
|
path: urlPath,
|
|
@@ -477,7 +493,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
477
493
|
|
|
478
494
|
|
|
479
495
|
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
480
|
-
urlPath = urlPath.replace(
|
|
496
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
481
497
|
|
|
482
498
|
return {
|
|
483
499
|
path: urlPath,
|
|
@@ -550,7 +566,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
550
566
|
|
|
551
567
|
|
|
552
568
|
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
553
|
-
urlPath = urlPath.replace(
|
|
569
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
554
570
|
|
|
555
571
|
return {
|
|
556
572
|
path: urlPath,
|
|
@@ -605,7 +621,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
605
621
|
|
|
606
622
|
|
|
607
623
|
let urlPath = `/portals/{portalId}`;
|
|
608
|
-
urlPath = urlPath.replace(
|
|
624
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
609
625
|
|
|
610
626
|
return {
|
|
611
627
|
path: urlPath,
|
|
@@ -651,7 +667,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
651
667
|
|
|
652
668
|
|
|
653
669
|
let urlPath = `/portals/{portalId}/selected`;
|
|
654
|
-
urlPath = urlPath.replace(
|
|
670
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
655
671
|
|
|
656
672
|
return {
|
|
657
673
|
path: urlPath,
|
|
@@ -664,18 +680,19 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
664
680
|
/**
|
|
665
681
|
* Update the users current selected portal. Returns new JWT with updated roles.
|
|
666
682
|
*/
|
|
667
|
-
async updateSelectedPortalRaw(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
683
|
+
async updateSelectedPortalRaw(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSelectedPortalResponse>> {
|
|
668
684
|
const requestOptions = await this.updateSelectedPortalRequestOpts(requestParameters);
|
|
669
685
|
const response = await this.request(requestOptions, initOverrides);
|
|
670
686
|
|
|
671
|
-
return new runtime.
|
|
687
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSelectedPortalResponseFromJSON(jsonValue));
|
|
672
688
|
}
|
|
673
689
|
|
|
674
690
|
/**
|
|
675
691
|
* Update the users current selected portal. Returns new JWT with updated roles.
|
|
676
692
|
*/
|
|
677
|
-
async updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
678
|
-
await this.updateSelectedPortalRaw(requestParameters, initOverrides);
|
|
693
|
+
async updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSelectedPortalResponse> {
|
|
694
|
+
const response = await this.updateSelectedPortalRaw(requestParameters, initOverrides);
|
|
695
|
+
return await response.value();
|
|
679
696
|
}
|
|
680
697
|
|
|
681
698
|
}
|
|
@@ -12,18 +12,17 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
PortalSublicense,
|
|
19
|
-
PutPortalSublicense,
|
|
20
|
-
} from '../models/index';
|
|
21
16
|
import {
|
|
17
|
+
type PortalSublicense,
|
|
22
18
|
PortalSublicenseFromJSON,
|
|
23
19
|
PortalSublicenseToJSON,
|
|
20
|
+
} from '../models/PortalSublicense';
|
|
21
|
+
import {
|
|
22
|
+
type PutPortalSublicense,
|
|
24
23
|
PutPortalSublicenseFromJSON,
|
|
25
24
|
PutPortalSublicenseToJSON,
|
|
26
|
-
} from '../models/
|
|
25
|
+
} from '../models/PutPortalSublicense';
|
|
27
26
|
|
|
28
27
|
export interface PutPortalSublicenseRequest {
|
|
29
28
|
portalId: string;
|
|
@@ -61,7 +60,7 @@ export class PortalSublicenseApi extends runtime.BaseAPI {
|
|
|
61
60
|
|
|
62
61
|
|
|
63
62
|
let urlPath = `/portals/{portalId}/sublicense`;
|
|
64
|
-
urlPath = urlPath.replace(
|
|
63
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
65
64
|
|
|
66
65
|
return {
|
|
67
66
|
path: urlPath,
|
package/src/apis/QuestionApi.ts
CHANGED
|
@@ -12,24 +12,27 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GetQuestion,
|
|
19
|
-
GetQuestionList,
|
|
20
|
-
PostQuestion,
|
|
21
|
-
PutQuestion,
|
|
22
|
-
} from '../models/index';
|
|
23
16
|
import {
|
|
17
|
+
type GetQuestion,
|
|
24
18
|
GetQuestionFromJSON,
|
|
25
19
|
GetQuestionToJSON,
|
|
20
|
+
} from '../models/GetQuestion';
|
|
21
|
+
import {
|
|
22
|
+
type GetQuestionList,
|
|
26
23
|
GetQuestionListFromJSON,
|
|
27
24
|
GetQuestionListToJSON,
|
|
25
|
+
} from '../models/GetQuestionList';
|
|
26
|
+
import {
|
|
27
|
+
type PostQuestion,
|
|
28
28
|
PostQuestionFromJSON,
|
|
29
29
|
PostQuestionToJSON,
|
|
30
|
+
} from '../models/PostQuestion';
|
|
31
|
+
import {
|
|
32
|
+
type PutQuestion,
|
|
30
33
|
PutQuestionFromJSON,
|
|
31
34
|
PutQuestionToJSON,
|
|
32
|
-
} from '../models/
|
|
35
|
+
} from '../models/PutQuestion';
|
|
33
36
|
|
|
34
37
|
export interface DeleteQuestionRequest {
|
|
35
38
|
questionId: string;
|
|
@@ -80,7 +83,7 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
80
83
|
|
|
81
84
|
|
|
82
85
|
let urlPath = `/questions/{questionId}`;
|
|
83
|
-
urlPath = urlPath.replace(
|
|
86
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
84
87
|
|
|
85
88
|
return {
|
|
86
89
|
path: urlPath,
|
|
@@ -124,7 +127,7 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
124
127
|
|
|
125
128
|
|
|
126
129
|
let urlPath = `/questions/{questionId}`;
|
|
127
|
-
urlPath = urlPath.replace(
|
|
130
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
128
131
|
|
|
129
132
|
return {
|
|
130
133
|
path: urlPath,
|
|
@@ -290,7 +293,7 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
290
293
|
|
|
291
294
|
|
|
292
295
|
let urlPath = `/questions/{questionId}`;
|
|
293
|
-
urlPath = urlPath.replace(
|
|
296
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
294
297
|
|
|
295
298
|
return {
|
|
296
299
|
path: urlPath,
|
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,
|