@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.
Files changed (132) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +8 -3
  4. package/dist/apis/CertificateApi.d.ts +10 -1
  5. package/dist/apis/CertificateApi.js +34 -25
  6. package/dist/apis/ChatApi.d.ts +6 -1
  7. package/dist/apis/ChatApi.js +15 -10
  8. package/dist/apis/ContentApi.d.ts +22 -1
  9. package/dist/apis/ContentApi.js +101 -80
  10. package/dist/apis/CourseApi.d.ts +14 -1
  11. package/dist/apis/CourseApi.js +50 -37
  12. package/dist/apis/CourseCatalogApi.d.ts +4 -1
  13. package/dist/apis/CourseCatalogApi.js +19 -16
  14. package/dist/apis/CourseShareApi.d.ts +5 -1
  15. package/dist/apis/CourseShareApi.js +18 -14
  16. package/dist/apis/ModuleApi.d.ts +6 -1
  17. package/dist/apis/ModuleApi.js +24 -19
  18. package/dist/apis/PortalApi.d.ts +11 -3
  19. package/dist/apis/PortalApi.js +31 -22
  20. package/dist/apis/PortalSublicenseApi.d.ts +2 -1
  21. package/dist/apis/PortalSublicenseApi.js +5 -4
  22. package/dist/apis/QuestionApi.d.ts +4 -1
  23. package/dist/apis/QuestionApi.js +13 -10
  24. package/dist/apis/QuizApi.d.ts +22 -1
  25. package/dist/apis/QuizApi.js +82 -61
  26. package/dist/apis/ReportingApi.d.ts +9 -1
  27. package/dist/apis/ReportingApi.js +39 -31
  28. package/dist/apis/RoleApi.d.ts +6 -1
  29. package/dist/apis/RoleApi.js +27 -22
  30. package/dist/apis/SupportTicketApi.d.ts +8 -1
  31. package/dist/apis/SupportTicketApi.js +26 -19
  32. package/dist/apis/UserApi.d.ts +38 -1
  33. package/dist/apis/UserApi.js +115 -10
  34. package/dist/esm/apis/CertificateApi.d.ts +10 -1
  35. package/dist/esm/apis/CertificateApi.js +19 -10
  36. package/dist/esm/apis/ChatApi.d.ts +6 -1
  37. package/dist/esm/apis/ChatApi.js +9 -4
  38. package/dist/esm/apis/ContentApi.d.ts +22 -1
  39. package/dist/esm/apis/ContentApi.js +74 -53
  40. package/dist/esm/apis/CourseApi.d.ts +14 -1
  41. package/dist/esm/apis/CourseApi.js +30 -17
  42. package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
  43. package/dist/esm/apis/CourseCatalogApi.js +12 -9
  44. package/dist/esm/apis/CourseShareApi.d.ts +5 -1
  45. package/dist/esm/apis/CourseShareApi.js +12 -8
  46. package/dist/esm/apis/ModuleApi.d.ts +6 -1
  47. package/dist/esm/apis/ModuleApi.js +15 -10
  48. package/dist/esm/apis/PortalApi.d.ts +11 -3
  49. package/dist/esm/apis/PortalApi.js +21 -12
  50. package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
  51. package/dist/esm/apis/PortalSublicenseApi.js +3 -2
  52. package/dist/esm/apis/QuestionApi.d.ts +4 -1
  53. package/dist/esm/apis/QuestionApi.js +7 -4
  54. package/dist/esm/apis/QuizApi.d.ts +22 -1
  55. package/dist/esm/apis/QuizApi.js +53 -32
  56. package/dist/esm/apis/ReportingApi.d.ts +9 -1
  57. package/dist/esm/apis/ReportingApi.js +30 -22
  58. package/dist/esm/apis/RoleApi.d.ts +6 -1
  59. package/dist/esm/apis/RoleApi.js +18 -13
  60. package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
  61. package/dist/esm/apis/SupportTicketApi.js +16 -9
  62. package/dist/esm/apis/UserApi.d.ts +38 -1
  63. package/dist/esm/apis/UserApi.js +108 -3
  64. package/dist/esm/models/GetPortal.d.ts +12 -0
  65. package/dist/esm/models/GetPortal.js +4 -0
  66. package/dist/esm/models/GetUser.d.ts +6 -0
  67. package/dist/esm/models/GetUser.js +2 -0
  68. package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
  69. package/dist/esm/models/GetUserAvatarUpload.js +43 -0
  70. package/dist/esm/models/PostPortal.d.ts +12 -0
  71. package/dist/esm/models/PostPortal.js +4 -0
  72. package/dist/esm/models/PutPortalBranding.d.ts +12 -0
  73. package/dist/esm/models/PutPortalBranding.js +4 -0
  74. package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
  75. package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
  76. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  77. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
  78. package/dist/esm/models/index.d.ts +3 -0
  79. package/dist/esm/models/index.js +3 -0
  80. package/dist/esm/runtime.js +1 -1
  81. package/dist/models/GetPortal.d.ts +12 -0
  82. package/dist/models/GetPortal.js +4 -0
  83. package/dist/models/GetUser.d.ts +6 -0
  84. package/dist/models/GetUser.js +2 -0
  85. package/dist/models/GetUserAvatarUpload.d.ts +32 -0
  86. package/dist/models/GetUserAvatarUpload.js +50 -0
  87. package/dist/models/PostPortal.d.ts +12 -0
  88. package/dist/models/PostPortal.js +4 -0
  89. package/dist/models/PutPortalBranding.d.ts +12 -0
  90. package/dist/models/PutPortalBranding.js +4 -0
  91. package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
  92. package/dist/models/UpdateSelectedPortalResponse.js +59 -0
  93. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  94. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
  95. package/dist/models/index.d.ts +3 -0
  96. package/dist/models/index.js +3 -0
  97. package/dist/runtime.js +1 -1
  98. package/docs/GetPortal.md +4 -0
  99. package/docs/GetUser.md +2 -0
  100. package/docs/GetUserAvatarUpload.md +34 -0
  101. package/docs/PortalApi.md +3 -3
  102. package/docs/PostPortal.md +4 -0
  103. package/docs/PutPortalBranding.md +4 -0
  104. package/docs/UpdateSelectedPortalResponse.md +38 -0
  105. package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
  106. package/docs/UserApi.md +138 -0
  107. package/package.json +1 -1
  108. package/src/apis/CertificateApi.ts +38 -23
  109. package/src/apis/ChatApi.ts +20 -13
  110. package/src/apis/ContentApi.ts +117 -78
  111. package/src/apis/CourseApi.ts +57 -34
  112. package/src/apis/CourseCatalogApi.ts +19 -16
  113. package/src/apis/CourseShareApi.ts +21 -16
  114. package/src/apis/ModuleApi.ts +26 -19
  115. package/src/apis/OtherApi.ts +0 -1
  116. package/src/apis/PortalApi.ts +42 -25
  117. package/src/apis/PortalSublicenseApi.ts +6 -7
  118. package/src/apis/QuestionApi.ts +14 -11
  119. package/src/apis/QuizApi.ts +96 -57
  120. package/src/apis/ReportingApi.ts +47 -34
  121. package/src/apis/RoleApi.ts +29 -22
  122. package/src/apis/SupportTicketApi.ts +31 -20
  123. package/src/apis/UserApi.ts +150 -12
  124. package/src/models/GetPortal.ts +16 -0
  125. package/src/models/GetUser.ts +8 -0
  126. package/src/models/GetUserAvatarUpload.ts +66 -0
  127. package/src/models/PostPortal.ts +16 -0
  128. package/src/models/PutPortalBranding.ts +16 -0
  129. package/src/models/UpdateSelectedPortalResponse.ts +92 -0
  130. package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
  131. package/src/models/index.ts +3 -0
  132. 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, PostOfferCatalogToJSON, PostOfferCatalogResponseFromJSON, PostOfferCourseToJSON, PostOfferCourseResponseFromJSON, } from '../models/index';
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(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
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(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
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(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
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(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
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(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
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(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
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(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
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 { GetModule, GetModuleList, PostDuplicate1, PostModule, PutModule, PutModuleReorder } from '../models/index';
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, GetModuleListFromJSON, PostDuplicate1ToJSON, PostModuleToJSON, PutModuleToJSON, PutModuleReorderToJSON, } from '../models/index';
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(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
44
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
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(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
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(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
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(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
171
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
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(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
221
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
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(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
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 { GetPortal, GetPortalFaviconUpload, GetPortalList, GetPortalLogoUpload, GetPortalUserList, PostPortal, PostPortalInvite, PutPortalBranding } from '../models/index';
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<void>>;
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<void>;
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, GetPortalFaviconUploadFromJSON, GetPortalListFromJSON, GetPortalLogoUploadFromJSON, GetPortalUserListFromJSON, PostPortalToJSON, PostPortalInviteToJSON, PutPortalBrandingToJSON, } from '../models/index';
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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.VoidApiResponse(response);
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 { PortalSublicense, PutPortalSublicense } from '../models/index';
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, PutPortalSublicenseToJSON, } from '../models/index';
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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 { GetQuestion, GetQuestionList, PostQuestion, PutQuestion } from '../models/index';
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, GetQuestionListFromJSON, PostQuestionToJSON, PutQuestionToJSON, } from '../models/index';
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(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
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(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
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(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
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 { GetManualQuestionSelectionItem, GetManualQuestionSelectionList, GetQuiz, GetQuizAttempt, GetQuizAttemptAnalytics, GetQuizAttemptList, GetQuizCriteria, GetQuizCriteriaItem, GetQuizCriteriaList, GetQuizList, GetQuizQuestions, GetQuizResults, GetUserQuizAttempts, PostManualQuestionSelection, PostQuiz, PostQuizAttempt, PostQuizAttemptSubmit, PostQuizCriteria, PostQuizQuestions, PutQuiz, PutQuizAnswer, PutQuizAnswerGrade } from '../models/index';
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;