@easyedu/js-lsm-api 1.57.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +38 -1
- package/dist/apis/UserApi.js +115 -10
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +38 -1
- package/dist/esm/apis/UserApi.js +108 -3
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/GetUser.d.ts +6 -0
- package/dist/esm/models/GetUser.js +2 -0
- package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/esm/models/GetUserAvatarUpload.js +43 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/GetUser.d.ts +6 -0
- package/dist/models/GetUser.js +2 -0
- package/dist/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/models/GetUserAvatarUpload.js +50 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/models/UpdateSelectedPortalResponse.js +59 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/GetUser.md +2 -0
- package/docs/GetUserAvatarUpload.md +34 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +38 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/docs/UserApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +150 -12
- package/src/models/GetPortal.ts +16 -0
- package/src/models/GetUser.ts +8 -0
- package/src/models/GetUserAvatarUpload.ts +66 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +92 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -2
|
@@ -21,7 +21,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CourseShareFromJSON,
|
|
24
|
+
import { CourseShareFromJSON, } from '../models/CourseShare';
|
|
25
|
+
import { PostOfferCatalogToJSON, } from '../models/PostOfferCatalog';
|
|
26
|
+
import { PostOfferCatalogResponseFromJSON, } from '../models/PostOfferCatalogResponse';
|
|
27
|
+
import { PostOfferCourseToJSON, } from '../models/PostOfferCourse';
|
|
28
|
+
import { PostOfferCourseResponseFromJSON, } from '../models/PostOfferCourseResponse';
|
|
25
29
|
/**
|
|
26
30
|
*
|
|
27
31
|
*/
|
|
@@ -37,7 +41,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
37
41
|
const queryParameters = {};
|
|
38
42
|
const headerParameters = {};
|
|
39
43
|
let urlPath = `/course-shares/{shareId}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
44
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
41
45
|
return {
|
|
42
46
|
path: urlPath,
|
|
43
47
|
method: 'DELETE',
|
|
@@ -156,7 +160,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
156
160
|
const headerParameters = {};
|
|
157
161
|
headerParameters['Content-Type'] = 'application/json';
|
|
158
162
|
let urlPath = `/catalogs/{catalogId}/shares`;
|
|
159
|
-
urlPath = urlPath.replace(
|
|
163
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
160
164
|
return {
|
|
161
165
|
path: urlPath,
|
|
162
166
|
method: 'POST',
|
|
@@ -202,7 +206,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
202
206
|
const headerParameters = {};
|
|
203
207
|
headerParameters['Content-Type'] = 'application/json';
|
|
204
208
|
let urlPath = `/courses/{courseId}/shares`;
|
|
205
|
-
urlPath = urlPath.replace(
|
|
209
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
206
210
|
return {
|
|
207
211
|
path: urlPath,
|
|
208
212
|
method: 'POST',
|
|
@@ -242,7 +246,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
242
246
|
const queryParameters = {};
|
|
243
247
|
const headerParameters = {};
|
|
244
248
|
let urlPath = `/course-shares/{shareId}/unrevoke`;
|
|
245
|
-
urlPath = urlPath.replace(
|
|
249
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
246
250
|
return {
|
|
247
251
|
path: urlPath,
|
|
248
252
|
method: 'POST',
|
|
@@ -280,7 +284,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
280
284
|
const queryParameters = {};
|
|
281
285
|
const headerParameters = {};
|
|
282
286
|
let urlPath = `/course-shares/{shareId}/accept-clone`;
|
|
283
|
-
urlPath = urlPath.replace(
|
|
287
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
284
288
|
return {
|
|
285
289
|
path: urlPath,
|
|
286
290
|
method: 'PUT',
|
|
@@ -318,7 +322,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
318
322
|
const queryParameters = {};
|
|
319
323
|
const headerParameters = {};
|
|
320
324
|
let urlPath = `/course-shares/{shareId}/accept-mirror`;
|
|
321
|
-
urlPath = urlPath.replace(
|
|
325
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
322
326
|
return {
|
|
323
327
|
path: urlPath,
|
|
324
328
|
method: 'PUT',
|
|
@@ -356,7 +360,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
356
360
|
const queryParameters = {};
|
|
357
361
|
const headerParameters = {};
|
|
358
362
|
let urlPath = `/course-shares/{shareId}/decline`;
|
|
359
|
-
urlPath = urlPath.replace(
|
|
363
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
360
364
|
return {
|
|
361
365
|
path: urlPath,
|
|
362
366
|
method: 'PUT',
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetModule } from '../models/GetModule';
|
|
14
|
+
import { type GetModuleList } from '../models/GetModuleList';
|
|
15
|
+
import { type PostDuplicate1 } from '../models/PostDuplicate1';
|
|
16
|
+
import { type PostModule } from '../models/PostModule';
|
|
17
|
+
import { type PutModule } from '../models/PutModule';
|
|
18
|
+
import { type PutModuleReorder } from '../models/PutModuleReorder';
|
|
14
19
|
export interface GetModuleRequest {
|
|
15
20
|
moduleId: string;
|
|
16
21
|
courseId: string;
|
|
@@ -21,7 +21,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetModuleFromJSON,
|
|
24
|
+
import { GetModuleFromJSON, } from '../models/GetModule';
|
|
25
|
+
import { GetModuleListFromJSON, } from '../models/GetModuleList';
|
|
26
|
+
import { PostDuplicate1ToJSON, } from '../models/PostDuplicate1';
|
|
27
|
+
import { PostModuleToJSON, } from '../models/PostModule';
|
|
28
|
+
import { PutModuleToJSON, } from '../models/PutModule';
|
|
29
|
+
import { PutModuleReorderToJSON, } from '../models/PutModuleReorder';
|
|
25
30
|
/**
|
|
26
31
|
*
|
|
27
32
|
*/
|
|
@@ -40,8 +45,8 @@ export class ModuleApi extends runtime.BaseAPI {
|
|
|
40
45
|
const queryParameters = {};
|
|
41
46
|
const headerParameters = {};
|
|
42
47
|
let urlPath = `/courses/{courseId}/modules/{moduleId}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
44
|
-
urlPath = urlPath.replace(
|
|
48
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
49
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
45
50
|
return {
|
|
46
51
|
path: urlPath,
|
|
47
52
|
method: 'GET',
|
|
@@ -80,7 +85,7 @@ export class ModuleApi extends runtime.BaseAPI {
|
|
|
80
85
|
const queryParameters = {};
|
|
81
86
|
const headerParameters = {};
|
|
82
87
|
let urlPath = `/courses/{courseId}/modules`;
|
|
83
|
-
urlPath = urlPath.replace(
|
|
88
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
84
89
|
return {
|
|
85
90
|
path: urlPath,
|
|
86
91
|
method: 'GET',
|
|
@@ -123,7 +128,7 @@ export class ModuleApi extends runtime.BaseAPI {
|
|
|
123
128
|
const headerParameters = {};
|
|
124
129
|
headerParameters['Content-Type'] = 'application/json';
|
|
125
130
|
let urlPath = `/courses/{courseId}/modules`;
|
|
126
|
-
urlPath = urlPath.replace(
|
|
131
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
127
132
|
return {
|
|
128
133
|
path: urlPath,
|
|
129
134
|
method: 'POST',
|
|
@@ -167,8 +172,8 @@ export class ModuleApi extends runtime.BaseAPI {
|
|
|
167
172
|
const headerParameters = {};
|
|
168
173
|
headerParameters['Content-Type'] = 'application/json';
|
|
169
174
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/duplicate`;
|
|
170
|
-
urlPath = urlPath.replace(
|
|
171
|
-
urlPath = urlPath.replace(
|
|
175
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
176
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
172
177
|
return {
|
|
173
178
|
path: urlPath,
|
|
174
179
|
method: 'POST',
|
|
@@ -217,8 +222,8 @@ export class ModuleApi extends runtime.BaseAPI {
|
|
|
217
222
|
const headerParameters = {};
|
|
218
223
|
headerParameters['Content-Type'] = 'application/json';
|
|
219
224
|
let urlPath = `/courses/{courseId}/modules/{moduleId}`;
|
|
220
|
-
urlPath = urlPath.replace(
|
|
221
|
-
urlPath = urlPath.replace(
|
|
225
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
226
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
222
227
|
return {
|
|
223
228
|
path: urlPath,
|
|
224
229
|
method: 'PUT',
|
|
@@ -262,7 +267,7 @@ export class ModuleApi extends runtime.BaseAPI {
|
|
|
262
267
|
const headerParameters = {};
|
|
263
268
|
headerParameters['Content-Type'] = 'application/json';
|
|
264
269
|
let urlPath = `/courses/{courseId}/modules/reorder`;
|
|
265
|
-
urlPath = urlPath.replace(
|
|
270
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
266
271
|
return {
|
|
267
272
|
path: urlPath,
|
|
268
273
|
method: 'PUT',
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetPortal } from '../models/GetPortal';
|
|
14
|
+
import { type GetPortalFaviconUpload } from '../models/GetPortalFaviconUpload';
|
|
15
|
+
import { type GetPortalList } from '../models/GetPortalList';
|
|
16
|
+
import { type GetPortalLogoUpload } from '../models/GetPortalLogoUpload';
|
|
17
|
+
import { type GetPortalUserList } from '../models/GetPortalUserList';
|
|
18
|
+
import { type PostPortal } from '../models/PostPortal';
|
|
19
|
+
import { type PostPortalInvite } from '../models/PostPortalInvite';
|
|
20
|
+
import { type PutPortalBranding } from '../models/PutPortalBranding';
|
|
21
|
+
import { type UpdateSelectedPortalResponse } from '../models/UpdateSelectedPortalResponse';
|
|
14
22
|
export interface DeletePortalFaviconRequest {
|
|
15
23
|
portalId: string;
|
|
16
24
|
}
|
|
@@ -181,11 +189,11 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
181
189
|
/**
|
|
182
190
|
* Update the users current selected portal. Returns new JWT with updated roles.
|
|
183
191
|
*/
|
|
184
|
-
updateSelectedPortalRaw(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
192
|
+
updateSelectedPortalRaw(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSelectedPortalResponse>>;
|
|
185
193
|
/**
|
|
186
194
|
* Update the users current selected portal. Returns new JWT with updated roles.
|
|
187
195
|
*/
|
|
188
|
-
updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
196
|
+
updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSelectedPortalResponse>;
|
|
189
197
|
}
|
|
190
198
|
/**
|
|
191
199
|
* @export
|
|
@@ -21,7 +21,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetPortalFromJSON,
|
|
24
|
+
import { GetPortalFromJSON, } from '../models/GetPortal';
|
|
25
|
+
import { GetPortalFaviconUploadFromJSON, } from '../models/GetPortalFaviconUpload';
|
|
26
|
+
import { GetPortalListFromJSON, } from '../models/GetPortalList';
|
|
27
|
+
import { GetPortalLogoUploadFromJSON, } from '../models/GetPortalLogoUpload';
|
|
28
|
+
import { GetPortalUserListFromJSON, } from '../models/GetPortalUserList';
|
|
29
|
+
import { PostPortalToJSON, } from '../models/PostPortal';
|
|
30
|
+
import { PostPortalInviteToJSON, } from '../models/PostPortalInvite';
|
|
31
|
+
import { PutPortalBrandingToJSON, } from '../models/PutPortalBranding';
|
|
32
|
+
import { UpdateSelectedPortalResponseFromJSON, } from '../models/UpdateSelectedPortalResponse';
|
|
25
33
|
/**
|
|
26
34
|
*
|
|
27
35
|
*/
|
|
@@ -37,7 +45,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
37
45
|
const queryParameters = {};
|
|
38
46
|
const headerParameters = {};
|
|
39
47
|
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
48
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
41
49
|
return {
|
|
42
50
|
path: urlPath,
|
|
43
51
|
method: 'DELETE',
|
|
@@ -75,7 +83,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
75
83
|
const queryParameters = {};
|
|
76
84
|
const headerParameters = {};
|
|
77
85
|
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
78
|
-
urlPath = urlPath.replace(
|
|
86
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
79
87
|
return {
|
|
80
88
|
path: urlPath,
|
|
81
89
|
method: 'DELETE',
|
|
@@ -113,7 +121,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
113
121
|
const queryParameters = {};
|
|
114
122
|
const headerParameters = {};
|
|
115
123
|
let urlPath = `/portals/{portalId}`;
|
|
116
|
-
urlPath = urlPath.replace(
|
|
124
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
117
125
|
return {
|
|
118
126
|
path: urlPath,
|
|
119
127
|
method: 'GET',
|
|
@@ -202,7 +210,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
202
210
|
}
|
|
203
211
|
const headerParameters = {};
|
|
204
212
|
let urlPath = `/portals/{portalId}/users`;
|
|
205
|
-
urlPath = urlPath.replace(
|
|
213
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
206
214
|
return {
|
|
207
215
|
path: urlPath,
|
|
208
216
|
method: 'GET',
|
|
@@ -245,7 +253,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
245
253
|
const headerParameters = {};
|
|
246
254
|
headerParameters['Content-Type'] = 'application/json';
|
|
247
255
|
let urlPath = `/portals/{portalId}/invite`;
|
|
248
|
-
urlPath = urlPath.replace(
|
|
256
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
249
257
|
return {
|
|
250
258
|
path: urlPath,
|
|
251
259
|
method: 'POST',
|
|
@@ -345,7 +353,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
345
353
|
formParams.append('file', requestParameters['file']);
|
|
346
354
|
}
|
|
347
355
|
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
348
|
-
urlPath = urlPath.replace(
|
|
356
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
349
357
|
return {
|
|
350
358
|
path: urlPath,
|
|
351
359
|
method: 'POST',
|
|
@@ -406,7 +414,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
406
414
|
formParams.append('file', requestParameters['file']);
|
|
407
415
|
}
|
|
408
416
|
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
409
|
-
urlPath = urlPath.replace(
|
|
417
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
410
418
|
return {
|
|
411
419
|
path: urlPath,
|
|
412
420
|
method: 'POST',
|
|
@@ -450,7 +458,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
450
458
|
const headerParameters = {};
|
|
451
459
|
headerParameters['Content-Type'] = 'application/json';
|
|
452
460
|
let urlPath = `/portals/{portalId}`;
|
|
453
|
-
urlPath = urlPath.replace(
|
|
461
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
454
462
|
return {
|
|
455
463
|
path: urlPath,
|
|
456
464
|
method: 'PUT',
|
|
@@ -490,7 +498,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
490
498
|
const queryParameters = {};
|
|
491
499
|
const headerParameters = {};
|
|
492
500
|
let urlPath = `/portals/{portalId}/selected`;
|
|
493
|
-
urlPath = urlPath.replace(
|
|
501
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
494
502
|
return {
|
|
495
503
|
path: urlPath,
|
|
496
504
|
method: 'PUT',
|
|
@@ -506,7 +514,7 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
506
514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
507
515
|
const requestOptions = yield this.updateSelectedPortalRequestOpts(requestParameters);
|
|
508
516
|
const response = yield this.request(requestOptions, initOverrides);
|
|
509
|
-
return new runtime.
|
|
517
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSelectedPortalResponseFromJSON(jsonValue));
|
|
510
518
|
});
|
|
511
519
|
}
|
|
512
520
|
/**
|
|
@@ -514,7 +522,8 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
514
522
|
*/
|
|
515
523
|
updateSelectedPortal(requestParameters, initOverrides) {
|
|
516
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
-
yield this.updateSelectedPortalRaw(requestParameters, initOverrides);
|
|
525
|
+
const response = yield this.updateSelectedPortalRaw(requestParameters, initOverrides);
|
|
526
|
+
return yield response.value();
|
|
518
527
|
});
|
|
519
528
|
}
|
|
520
529
|
}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type PortalSublicense } from '../models/PortalSublicense';
|
|
14
|
+
import { type PutPortalSublicense } from '../models/PutPortalSublicense';
|
|
14
15
|
export interface PutPortalSublicenseRequest {
|
|
15
16
|
portalId: string;
|
|
16
17
|
putPortalSublicense: PutPortalSublicense;
|
|
@@ -21,7 +21,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { PortalSublicenseFromJSON,
|
|
24
|
+
import { PortalSublicenseFromJSON, } from '../models/PortalSublicense';
|
|
25
|
+
import { PutPortalSublicenseToJSON, } from '../models/PutPortalSublicense';
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
@@ -41,7 +42,7 @@ export class PortalSublicenseApi extends runtime.BaseAPI {
|
|
|
41
42
|
const headerParameters = {};
|
|
42
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
44
|
let urlPath = `/portals/{portalId}/sublicense`;
|
|
44
|
-
urlPath = urlPath.replace(
|
|
45
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
45
46
|
return {
|
|
46
47
|
path: urlPath,
|
|
47
48
|
method: 'PUT',
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetQuestion } from '../models/GetQuestion';
|
|
14
|
+
import { type GetQuestionList } from '../models/GetQuestionList';
|
|
15
|
+
import { type PostQuestion } from '../models/PostQuestion';
|
|
16
|
+
import { type PutQuestion } from '../models/PutQuestion';
|
|
14
17
|
export interface DeleteQuestionRequest {
|
|
15
18
|
questionId: string;
|
|
16
19
|
}
|
|
@@ -21,7 +21,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetQuestionFromJSON,
|
|
24
|
+
import { GetQuestionFromJSON, } from '../models/GetQuestion';
|
|
25
|
+
import { GetQuestionListFromJSON, } from '../models/GetQuestionList';
|
|
26
|
+
import { PostQuestionToJSON, } from '../models/PostQuestion';
|
|
27
|
+
import { PutQuestionToJSON, } from '../models/PutQuestion';
|
|
25
28
|
/**
|
|
26
29
|
*
|
|
27
30
|
*/
|
|
@@ -37,7 +40,7 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
37
40
|
const queryParameters = {};
|
|
38
41
|
const headerParameters = {};
|
|
39
42
|
let urlPath = `/questions/{questionId}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
43
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
41
44
|
return {
|
|
42
45
|
path: urlPath,
|
|
43
46
|
method: 'DELETE',
|
|
@@ -75,7 +78,7 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
75
78
|
const queryParameters = {};
|
|
76
79
|
const headerParameters = {};
|
|
77
80
|
let urlPath = `/questions/{questionId}`;
|
|
78
|
-
urlPath = urlPath.replace(
|
|
81
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
79
82
|
return {
|
|
80
83
|
path: urlPath,
|
|
81
84
|
method: 'GET',
|
|
@@ -214,7 +217,7 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
214
217
|
const headerParameters = {};
|
|
215
218
|
headerParameters['Content-Type'] = 'application/json';
|
|
216
219
|
let urlPath = `/questions/{questionId}`;
|
|
217
|
-
urlPath = urlPath.replace(
|
|
220
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
218
221
|
return {
|
|
219
222
|
path: urlPath,
|
|
220
223
|
method: 'PUT',
|
|
@@ -10,7 +10,28 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetManualQuestionSelectionItem } from '../models/GetManualQuestionSelectionItem';
|
|
14
|
+
import { type GetManualQuestionSelectionList } from '../models/GetManualQuestionSelectionList';
|
|
15
|
+
import { type GetQuiz } from '../models/GetQuiz';
|
|
16
|
+
import { type GetQuizAttempt } from '../models/GetQuizAttempt';
|
|
17
|
+
import { type GetQuizAttemptAnalytics } from '../models/GetQuizAttemptAnalytics';
|
|
18
|
+
import { type GetQuizAttemptList } from '../models/GetQuizAttemptList';
|
|
19
|
+
import { type GetQuizCriteria } from '../models/GetQuizCriteria';
|
|
20
|
+
import { type GetQuizCriteriaItem } from '../models/GetQuizCriteriaItem';
|
|
21
|
+
import { type GetQuizCriteriaList } from '../models/GetQuizCriteriaList';
|
|
22
|
+
import { type GetQuizList } from '../models/GetQuizList';
|
|
23
|
+
import { type GetQuizQuestions } from '../models/GetQuizQuestions';
|
|
24
|
+
import { type GetQuizResults } from '../models/GetQuizResults';
|
|
25
|
+
import { type GetUserQuizAttempts } from '../models/GetUserQuizAttempts';
|
|
26
|
+
import { type PostManualQuestionSelection } from '../models/PostManualQuestionSelection';
|
|
27
|
+
import { type PostQuiz } from '../models/PostQuiz';
|
|
28
|
+
import { type PostQuizAttempt } from '../models/PostQuizAttempt';
|
|
29
|
+
import { type PostQuizAttemptSubmit } from '../models/PostQuizAttemptSubmit';
|
|
30
|
+
import { type PostQuizCriteria } from '../models/PostQuizCriteria';
|
|
31
|
+
import { type PostQuizQuestions } from '../models/PostQuizQuestions';
|
|
32
|
+
import { type PutQuiz } from '../models/PutQuiz';
|
|
33
|
+
import { type PutQuizAnswer } from '../models/PutQuizAnswer';
|
|
34
|
+
import { type PutQuizAnswerGrade } from '../models/PutQuizAnswerGrade';
|
|
14
35
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
15
36
|
quizId: string;
|
|
16
37
|
postQuizCriteria: PostQuizCriteria;
|