@easyedu/js-lsm-api 1.58.0 → 1.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -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 +7 -1
  33. package/dist/apis/UserApi.js +19 -13
  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 +7 -1
  63. package/dist/esm/apis/UserApi.js +11 -5
  64. package/dist/esm/models/GetPortal.d.ts +12 -0
  65. package/dist/esm/models/GetPortal.js +4 -0
  66. package/dist/esm/models/PostPortal.d.ts +12 -0
  67. package/dist/esm/models/PostPortal.js +4 -0
  68. package/dist/esm/models/PutPortalBranding.d.ts +12 -0
  69. package/dist/esm/models/PutPortalBranding.js +4 -0
  70. package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
  71. package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
  72. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  73. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
  74. package/dist/esm/models/index.d.ts +2 -0
  75. package/dist/esm/models/index.js +2 -0
  76. package/dist/esm/runtime.js +1 -1
  77. package/dist/models/GetPortal.d.ts +12 -0
  78. package/dist/models/GetPortal.js +4 -0
  79. package/dist/models/PostPortal.d.ts +12 -0
  80. package/dist/models/PostPortal.js +4 -0
  81. package/dist/models/PutPortalBranding.d.ts +12 -0
  82. package/dist/models/PutPortalBranding.js +4 -0
  83. package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
  84. package/dist/models/UpdateSelectedPortalResponse.js +59 -0
  85. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  86. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
  87. package/dist/models/index.d.ts +2 -0
  88. package/dist/models/index.js +2 -0
  89. package/dist/runtime.js +1 -1
  90. package/docs/GetPortal.md +4 -0
  91. package/docs/PortalApi.md +3 -3
  92. package/docs/PostPortal.md +4 -0
  93. package/docs/PutPortalBranding.md +4 -0
  94. package/docs/UpdateSelectedPortalResponse.md +38 -0
  95. package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
  96. package/package.json +1 -1
  97. package/src/apis/CertificateApi.ts +38 -23
  98. package/src/apis/ChatApi.ts +20 -13
  99. package/src/apis/ContentApi.ts +117 -78
  100. package/src/apis/CourseApi.ts +57 -34
  101. package/src/apis/CourseCatalogApi.ts +19 -16
  102. package/src/apis/CourseShareApi.ts +21 -16
  103. package/src/apis/ModuleApi.ts +26 -19
  104. package/src/apis/OtherApi.ts +0 -1
  105. package/src/apis/PortalApi.ts +42 -25
  106. package/src/apis/PortalSublicenseApi.ts +6 -7
  107. package/src/apis/QuestionApi.ts +14 -11
  108. package/src/apis/QuizApi.ts +96 -57
  109. package/src/apis/ReportingApi.ts +47 -34
  110. package/src/apis/RoleApi.ts +29 -22
  111. package/src/apis/SupportTicketApi.ts +31 -20
  112. package/src/apis/UserApi.ts +24 -15
  113. package/src/models/GetPortal.ts +16 -0
  114. package/src/models/PostPortal.ts +16 -0
  115. package/src/models/PutPortalBranding.ts +16 -0
  116. package/src/models/UpdateSelectedPortalResponse.ts +92 -0
  117. package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
  118. package/src/models/index.ts +2 -0
  119. package/src/runtime.ts +1 -2
@@ -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
- CourseCatalog,
19
- GetCourse,
20
- PostCourseCatalog,
21
- PutCourseCatalog,
22
- } from '../models/index';
23
16
  import {
17
+ type CourseCatalog,
24
18
  CourseCatalogFromJSON,
25
19
  CourseCatalogToJSON,
20
+ } from '../models/CourseCatalog';
21
+ import {
22
+ type GetCourse,
26
23
  GetCourseFromJSON,
27
24
  GetCourseToJSON,
25
+ } from '../models/GetCourse';
26
+ import {
27
+ type PostCourseCatalog,
28
28
  PostCourseCatalogFromJSON,
29
29
  PostCourseCatalogToJSON,
30
+ } from '../models/PostCourseCatalog';
31
+ import {
32
+ type PutCourseCatalog,
30
33
  PutCourseCatalogFromJSON,
31
34
  PutCourseCatalogToJSON,
32
- } from '../models/index';
35
+ } from '../models/PutCourseCatalog';
33
36
 
34
37
  export interface AddCourseToCatalogRequest {
35
38
  catalogId: string;
@@ -91,8 +94,8 @@ export class CourseCatalogApi extends runtime.BaseAPI {
91
94
 
92
95
 
93
96
  let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
94
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
95
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
97
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
98
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
96
99
 
97
100
  return {
98
101
  path: urlPath,
@@ -136,7 +139,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
136
139
 
137
140
 
138
141
  let urlPath = `/catalogs/{catalogId}`;
139
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
142
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
140
143
 
141
144
  return {
142
145
  path: urlPath,
@@ -180,7 +183,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
180
183
 
181
184
 
182
185
  let urlPath = `/catalogs/{catalogId}/courses`;
183
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
186
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
184
187
 
185
188
  return {
186
189
  path: urlPath,
@@ -225,7 +228,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
225
228
 
226
229
 
227
230
  let urlPath = `/catalogs/{catalogId}`;
228
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
231
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
229
232
 
230
233
  return {
231
234
  path: urlPath,
@@ -363,7 +366,7 @@ export class CourseCatalogApi extends runtime.BaseAPI {
363
366
 
364
367
 
365
368
  let urlPath = `/catalogs/{catalogId}`;
366
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
369
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
367
370
 
368
371
  return {
369
372
  path: urlPath,
@@ -416,8 +419,8 @@ export class CourseCatalogApi extends runtime.BaseAPI {
416
419
 
417
420
 
418
421
  let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
419
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
420
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
422
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
423
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
421
424
 
422
425
  return {
423
426
  path: urlPath,
@@ -12,27 +12,32 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- CourseShare,
19
- PostOfferCatalog,
20
- PostOfferCatalogResponse,
21
- PostOfferCourse,
22
- PostOfferCourseResponse,
23
- } from '../models/index';
24
16
  import {
17
+ type CourseShare,
25
18
  CourseShareFromJSON,
26
19
  CourseShareToJSON,
20
+ } from '../models/CourseShare';
21
+ import {
22
+ type PostOfferCatalog,
27
23
  PostOfferCatalogFromJSON,
28
24
  PostOfferCatalogToJSON,
25
+ } from '../models/PostOfferCatalog';
26
+ import {
27
+ type PostOfferCatalogResponse,
29
28
  PostOfferCatalogResponseFromJSON,
30
29
  PostOfferCatalogResponseToJSON,
30
+ } from '../models/PostOfferCatalogResponse';
31
+ import {
32
+ type PostOfferCourse,
31
33
  PostOfferCourseFromJSON,
32
34
  PostOfferCourseToJSON,
35
+ } from '../models/PostOfferCourse';
36
+ import {
37
+ type PostOfferCourseResponse,
33
38
  PostOfferCourseResponseFromJSON,
34
39
  PostOfferCourseResponseToJSON,
35
- } from '../models/index';
40
+ } from '../models/PostOfferCourseResponse';
36
41
 
37
42
  export interface DeleteCourseShareRequest {
38
43
  shareId: string;
@@ -90,7 +95,7 @@ export class CourseShareApi extends runtime.BaseAPI {
90
95
 
91
96
 
92
97
  let urlPath = `/course-shares/{shareId}`;
93
- urlPath = urlPath.replace(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
98
+ urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
94
99
 
95
100
  return {
96
101
  path: urlPath,
@@ -225,7 +230,7 @@ export class CourseShareApi extends runtime.BaseAPI {
225
230
 
226
231
 
227
232
  let urlPath = `/catalogs/{catalogId}/shares`;
228
- urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
233
+ urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
229
234
 
230
235
  return {
231
236
  path: urlPath,
@@ -282,7 +287,7 @@ export class CourseShareApi extends runtime.BaseAPI {
282
287
 
283
288
 
284
289
  let urlPath = `/courses/{courseId}/shares`;
285
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
290
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
286
291
 
287
292
  return {
288
293
  path: urlPath,
@@ -328,7 +333,7 @@ export class CourseShareApi extends runtime.BaseAPI {
328
333
 
329
334
 
330
335
  let urlPath = `/course-shares/{shareId}/unrevoke`;
331
- urlPath = urlPath.replace(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
336
+ urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
332
337
 
333
338
  return {
334
339
  path: urlPath,
@@ -372,7 +377,7 @@ export class CourseShareApi extends runtime.BaseAPI {
372
377
 
373
378
 
374
379
  let urlPath = `/course-shares/{shareId}/accept-clone`;
375
- urlPath = urlPath.replace(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
380
+ urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
376
381
 
377
382
  return {
378
383
  path: urlPath,
@@ -416,7 +421,7 @@ export class CourseShareApi extends runtime.BaseAPI {
416
421
 
417
422
 
418
423
  let urlPath = `/course-shares/{shareId}/accept-mirror`;
419
- urlPath = urlPath.replace(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
424
+ urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
420
425
 
421
426
  return {
422
427
  path: urlPath,
@@ -460,7 +465,7 @@ export class CourseShareApi extends runtime.BaseAPI {
460
465
 
461
466
 
462
467
  let urlPath = `/course-shares/{shareId}/decline`;
463
- urlPath = urlPath.replace(`{${"shareId"}}`, encodeURIComponent(String(requestParameters['shareId'])));
468
+ urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
464
469
 
465
470
  return {
466
471
  path: urlPath,
@@ -12,30 +12,37 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- GetModule,
19
- GetModuleList,
20
- PostDuplicate1,
21
- PostModule,
22
- PutModule,
23
- PutModuleReorder,
24
- } from '../models/index';
25
16
  import {
17
+ type GetModule,
26
18
  GetModuleFromJSON,
27
19
  GetModuleToJSON,
20
+ } from '../models/GetModule';
21
+ import {
22
+ type GetModuleList,
28
23
  GetModuleListFromJSON,
29
24
  GetModuleListToJSON,
25
+ } from '../models/GetModuleList';
26
+ import {
27
+ type PostDuplicate1,
30
28
  PostDuplicate1FromJSON,
31
29
  PostDuplicate1ToJSON,
30
+ } from '../models/PostDuplicate1';
31
+ import {
32
+ type PostModule,
32
33
  PostModuleFromJSON,
33
34
  PostModuleToJSON,
35
+ } from '../models/PostModule';
36
+ import {
37
+ type PutModule,
34
38
  PutModuleFromJSON,
35
39
  PutModuleToJSON,
40
+ } from '../models/PutModule';
41
+ import {
42
+ type PutModuleReorder,
36
43
  PutModuleReorderFromJSON,
37
44
  PutModuleReorderToJSON,
38
- } from '../models/index';
45
+ } from '../models/PutModuleReorder';
39
46
 
40
47
  export interface GetModuleRequest {
41
48
  moduleId: string;
@@ -97,8 +104,8 @@ export class ModuleApi extends runtime.BaseAPI {
97
104
 
98
105
 
99
106
  let urlPath = `/courses/{courseId}/modules/{moduleId}`;
100
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
101
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
107
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
108
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
102
109
 
103
110
  return {
104
111
  path: urlPath,
@@ -143,7 +150,7 @@ export class ModuleApi extends runtime.BaseAPI {
143
150
 
144
151
 
145
152
  let urlPath = `/courses/{courseId}/modules`;
146
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
153
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
147
154
 
148
155
  return {
149
156
  path: urlPath,
@@ -197,7 +204,7 @@ export class ModuleApi extends runtime.BaseAPI {
197
204
 
198
205
 
199
206
  let urlPath = `/courses/{courseId}/modules`;
200
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
207
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
201
208
 
202
209
  return {
203
210
  path: urlPath,
@@ -252,8 +259,8 @@ export class ModuleApi extends runtime.BaseAPI {
252
259
 
253
260
 
254
261
  let urlPath = `/courses/{courseId}/modules/{moduleId}/duplicate`;
255
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
256
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
262
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
263
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
257
264
 
258
265
  return {
259
266
  path: urlPath,
@@ -317,8 +324,8 @@ export class ModuleApi extends runtime.BaseAPI {
317
324
 
318
325
 
319
326
  let urlPath = `/courses/{courseId}/modules/{moduleId}`;
320
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
321
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
327
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
328
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
322
329
 
323
330
  return {
324
331
  path: urlPath,
@@ -373,7 +380,7 @@ export class ModuleApi extends runtime.BaseAPI {
373
380
 
374
381
 
375
382
  let urlPath = `/courses/{courseId}/modules/reorder`;
376
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
383
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
377
384
 
378
385
  return {
379
386
  path: urlPath,
@@ -12,7 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
16
 
18
17
  /**
@@ -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/index';
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
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<void>> {
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.VoidApiResponse(response);
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<void> {
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/index';
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(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
63
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
65
64
 
66
65
  return {
67
66
  path: urlPath,
@@ -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/index';
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(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
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(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
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(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
296
+ urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
294
297
 
295
298
  return {
296
299
  path: urlPath,