@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
@@ -12,36 +12,47 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- DownloadSupportTicketAttachment200Response,
19
- GetSupportTicket,
20
- GetSupportTicketAttachment,
21
- GetSupportTicketComment,
22
- GetSupportTicketList,
23
- PostSupportTicket,
24
- PostSupportTicketComment,
25
- PutSupportTicket,
26
- } from '../models/index';
27
16
  import {
17
+ type DownloadSupportTicketAttachment200Response,
28
18
  DownloadSupportTicketAttachment200ResponseFromJSON,
29
19
  DownloadSupportTicketAttachment200ResponseToJSON,
20
+ } from '../models/DownloadSupportTicketAttachment200Response';
21
+ import {
22
+ type GetSupportTicket,
30
23
  GetSupportTicketFromJSON,
31
24
  GetSupportTicketToJSON,
25
+ } from '../models/GetSupportTicket';
26
+ import {
27
+ type GetSupportTicketAttachment,
32
28
  GetSupportTicketAttachmentFromJSON,
33
29
  GetSupportTicketAttachmentToJSON,
30
+ } from '../models/GetSupportTicketAttachment';
31
+ import {
32
+ type GetSupportTicketComment,
34
33
  GetSupportTicketCommentFromJSON,
35
34
  GetSupportTicketCommentToJSON,
35
+ } from '../models/GetSupportTicketComment';
36
+ import {
37
+ type GetSupportTicketList,
36
38
  GetSupportTicketListFromJSON,
37
39
  GetSupportTicketListToJSON,
40
+ } from '../models/GetSupportTicketList';
41
+ import {
42
+ type PostSupportTicket,
38
43
  PostSupportTicketFromJSON,
39
44
  PostSupportTicketToJSON,
45
+ } from '../models/PostSupportTicket';
46
+ import {
47
+ type PostSupportTicketComment,
40
48
  PostSupportTicketCommentFromJSON,
41
49
  PostSupportTicketCommentToJSON,
50
+ } from '../models/PostSupportTicketComment';
51
+ import {
52
+ type PutSupportTicket,
42
53
  PutSupportTicketFromJSON,
43
54
  PutSupportTicketToJSON,
44
- } from '../models/index';
55
+ } from '../models/PutSupportTicket';
45
56
 
46
57
  export interface CloseSupportTicketRequest {
47
58
  ticketId: string;
@@ -109,7 +120,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
109
120
 
110
121
 
111
122
  let urlPath = `/support/tickets/{ticketId}/close`;
112
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
123
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
113
124
 
114
125
  return {
115
126
  path: urlPath,
@@ -160,8 +171,8 @@ export class SupportTicketApi extends runtime.BaseAPI {
160
171
 
161
172
 
162
173
  let urlPath = `/support/tickets/{ticketId}/attachments/{attachmentId}/download`;
163
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
164
- urlPath = urlPath.replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters['attachmentId'])));
174
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
175
+ urlPath = urlPath.replace('{attachmentId}', encodeURIComponent(String(requestParameters['attachmentId'])));
165
176
 
166
177
  return {
167
178
  path: urlPath,
@@ -206,7 +217,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
206
217
 
207
218
 
208
219
  let urlPath = `/support/tickets/{ticketId}`;
209
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
220
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
210
221
 
211
222
  return {
212
223
  path: urlPath,
@@ -251,7 +262,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
251
262
 
252
263
 
253
264
  let urlPath = `/support/tickets/{ticketId}/comments`;
254
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
265
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
255
266
 
256
267
  return {
257
268
  path: urlPath,
@@ -427,7 +438,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
427
438
 
428
439
 
429
440
  let urlPath = `/support/tickets/{ticketId}/attachments`;
430
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
441
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
431
442
 
432
443
  return {
433
444
  path: urlPath,
@@ -482,7 +493,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
482
493
 
483
494
 
484
495
  let urlPath = `/support/tickets/{ticketId}/comments`;
485
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
496
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
486
497
 
487
498
  return {
488
499
  path: urlPath,
@@ -537,7 +548,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
537
548
 
538
549
 
539
550
  let urlPath = `/support/tickets/{ticketId}`;
540
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
551
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
541
552
 
542
553
  return {
543
554
  path: urlPath,
@@ -12,30 +12,46 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- GetUser,
19
- LoginRes,
20
- PostLogin,
21
- PostResetPassword,
22
- PostSendResetPassword,
23
- PutUser,
24
- } from '../models/index';
25
16
  import {
17
+ type GetUser,
26
18
  GetUserFromJSON,
27
19
  GetUserToJSON,
20
+ } from '../models/GetUser';
21
+ import {
22
+ type GetUserAvatarUpload,
23
+ GetUserAvatarUploadFromJSON,
24
+ GetUserAvatarUploadToJSON,
25
+ } from '../models/GetUserAvatarUpload';
26
+ import {
27
+ type LoginRes,
28
28
  LoginResFromJSON,
29
29
  LoginResToJSON,
30
+ } from '../models/LoginRes';
31
+ import {
32
+ type PostLogin,
30
33
  PostLoginFromJSON,
31
34
  PostLoginToJSON,
35
+ } from '../models/PostLogin';
36
+ import {
37
+ type PostResetPassword,
32
38
  PostResetPasswordFromJSON,
33
39
  PostResetPasswordToJSON,
40
+ } from '../models/PostResetPassword';
41
+ import {
42
+ type PostSendResetPassword,
34
43
  PostSendResetPasswordFromJSON,
35
44
  PostSendResetPasswordToJSON,
45
+ } from '../models/PostSendResetPassword';
46
+ import {
47
+ type PutUser,
36
48
  PutUserFromJSON,
37
49
  PutUserToJSON,
38
- } from '../models/index';
50
+ } from '../models/PutUser';
51
+
52
+ export interface DeleteUserAvatarRequest {
53
+ userId: string;
54
+ }
39
55
 
40
56
  export interface GetUserRequest {
41
57
  userId: string;
@@ -45,6 +61,11 @@ export interface PostLoginRequest {
45
61
  postLogin: PostLogin;
46
62
  }
47
63
 
64
+ export interface PostUserAvatarUploadRequest {
65
+ userId: string;
66
+ file: Blob;
67
+ }
68
+
48
69
  export interface PutUserRequest {
49
70
  userId: string;
50
71
  putUser: Omit<PutUser, 'id'|'last_updated'>;
@@ -63,6 +84,50 @@ export interface SendResetPasswordRequest {
63
84
  */
64
85
  export class UserApi extends runtime.BaseAPI {
65
86
 
87
+ /**
88
+ * Creates request options for deleteUserAvatar without sending the request
89
+ */
90
+ async deleteUserAvatarRequestOpts(requestParameters: DeleteUserAvatarRequest): Promise<runtime.RequestOpts> {
91
+ if (requestParameters['userId'] == null) {
92
+ throw new runtime.RequiredError(
93
+ 'userId',
94
+ 'Required parameter "userId" was null or undefined when calling deleteUserAvatar().'
95
+ );
96
+ }
97
+
98
+ const queryParameters: any = {};
99
+
100
+ const headerParameters: runtime.HTTPHeaders = {};
101
+
102
+
103
+ let urlPath = `/users/{userId}/avatar`;
104
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
105
+
106
+ return {
107
+ path: urlPath,
108
+ method: 'DELETE',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ };
112
+ }
113
+
114
+ /**
115
+ * Remove the current user\'s profile photo
116
+ */
117
+ async deleteUserAvatarRaw(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
118
+ const requestOptions = await this.deleteUserAvatarRequestOpts(requestParameters);
119
+ const response = await this.request(requestOptions, initOverrides);
120
+
121
+ return new runtime.VoidApiResponse(response);
122
+ }
123
+
124
+ /**
125
+ * Remove the current user\'s profile photo
126
+ */
127
+ async deleteUserAvatar(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
128
+ await this.deleteUserAvatarRaw(requestParameters, initOverrides);
129
+ }
130
+
66
131
  /**
67
132
  * Creates request options for getAuthCheck without sending the request
68
133
  */
@@ -155,7 +220,7 @@ export class UserApi extends runtime.BaseAPI {
155
220
 
156
221
 
157
222
  let urlPath = `/users/{userId}`;
158
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
223
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
159
224
 
160
225
  return {
161
226
  path: urlPath,
@@ -266,6 +331,79 @@ export class UserApi extends runtime.BaseAPI {
266
331
  await this.postLogoutRaw(initOverrides);
267
332
  }
268
333
 
334
+ /**
335
+ * Creates request options for postUserAvatarUpload without sending the request
336
+ */
337
+ async postUserAvatarUploadRequestOpts(requestParameters: PostUserAvatarUploadRequest): Promise<runtime.RequestOpts> {
338
+ if (requestParameters['userId'] == null) {
339
+ throw new runtime.RequiredError(
340
+ 'userId',
341
+ 'Required parameter "userId" was null or undefined when calling postUserAvatarUpload().'
342
+ );
343
+ }
344
+
345
+ if (requestParameters['file'] == null) {
346
+ throw new runtime.RequiredError(
347
+ 'file',
348
+ 'Required parameter "file" was null or undefined when calling postUserAvatarUpload().'
349
+ );
350
+ }
351
+
352
+ const queryParameters: any = {};
353
+
354
+ const headerParameters: runtime.HTTPHeaders = {};
355
+
356
+ const consumes: runtime.Consume[] = [
357
+ { contentType: 'multipart/form-data' },
358
+ ];
359
+ // @ts-ignore: canConsumeForm may be unused
360
+ const canConsumeForm = runtime.canConsumeForm(consumes);
361
+
362
+ let formParams: { append(param: string, value: any): any };
363
+ let useForm = false;
364
+ // use FormData to transmit files using content-type "multipart/form-data"
365
+ useForm = canConsumeForm;
366
+ if (useForm) {
367
+ formParams = new FormData();
368
+ } else {
369
+ formParams = new URLSearchParams();
370
+ }
371
+
372
+ if (requestParameters['file'] != null) {
373
+ formParams.append('file', requestParameters['file'] as any);
374
+ }
375
+
376
+
377
+ let urlPath = `/users/{userId}/avatar`;
378
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
379
+
380
+ return {
381
+ path: urlPath,
382
+ method: 'POST',
383
+ headers: headerParameters,
384
+ query: queryParameters,
385
+ body: formParams,
386
+ };
387
+ }
388
+
389
+ /**
390
+ * Upload a profile photo for the current user
391
+ */
392
+ async postUserAvatarUploadRaw(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAvatarUpload>> {
393
+ const requestOptions = await this.postUserAvatarUploadRequestOpts(requestParameters);
394
+ const response = await this.request(requestOptions, initOverrides);
395
+
396
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetUserAvatarUploadFromJSON(jsonValue));
397
+ }
398
+
399
+ /**
400
+ * Upload a profile photo for the current user
401
+ */
402
+ async postUserAvatarUpload(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAvatarUpload> {
403
+ const response = await this.postUserAvatarUploadRaw(requestParameters, initOverrides);
404
+ return await response.value();
405
+ }
406
+
269
407
  /**
270
408
  * Creates request options for putUser without sending the request
271
409
  */
@@ -292,7 +430,7 @@ export class UserApi extends runtime.BaseAPI {
292
430
 
293
431
 
294
432
  let urlPath = `/users/{userId}`;
295
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
433
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
296
434
 
297
435
  return {
298
436
  path: urlPath,
@@ -37,6 +37,18 @@ export interface GetPortal {
37
37
  * @memberof GetPortal
38
38
  */
39
39
  parentPortalId?: string;
40
+ /**
41
+ * Platform subdomain slug used for '{slug}.edaxu.com'
42
+ * @type {string}
43
+ * @memberof GetPortal
44
+ */
45
+ slug?: string | null;
46
+ /**
47
+ * Customer-owned hostname for this portal
48
+ * @type {string}
49
+ * @memberof GetPortal
50
+ */
51
+ clientDomain?: string | null;
40
52
  /**
41
53
  *
42
54
  * @type {string}
@@ -109,6 +121,8 @@ export function GetPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean):
109
121
  'id': json['id'],
110
122
  'name': json['name'],
111
123
  'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
124
+ 'slug': json['slug'] == null ? undefined : json['slug'],
125
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
112
126
  'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
113
127
  'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
114
128
  'headerBackgroundColor': json['header_background_color'],
@@ -131,6 +145,8 @@ export function GetPortalToJSONTyped(value?: GetPortal | null, ignoreDiscriminat
131
145
  'id': value['id'],
132
146
  'name': value['name'],
133
147
  'parent_portal_id': value['parentPortalId'],
148
+ 'slug': value['slug'],
149
+ 'client_domain': value['clientDomain'],
134
150
  'logo_url': value['logoUrl'],
135
151
  'favicon_url': value['faviconUrl'],
136
152
  'header_background_color': value['headerBackgroundColor'],
@@ -43,6 +43,12 @@ export interface GetUser {
43
43
  * @memberof GetUser
44
44
  */
45
45
  email: string;
46
+ /**
47
+ * Presigned URL for the user's profile photo, or null if none set
48
+ * @type {string}
49
+ * @memberof GetUser
50
+ */
51
+ avatarUrl?: string | null;
46
52
  /**
47
53
  * Unix timestamp in seconds
48
54
  * @type {number}
@@ -77,6 +83,7 @@ export function GetUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): G
77
83
  'firstName': json['first_name'],
78
84
  'lastName': json['last_name'],
79
85
  'email': json['email'],
86
+ 'avatarUrl': json['avatar_url'] == null ? undefined : json['avatar_url'],
80
87
  'lastUpdated': json['last_updated'],
81
88
  };
82
89
  }
@@ -95,6 +102,7 @@ export function GetUserToJSONTyped(value?: Omit<GetUser, 'id'> | null, ignoreDis
95
102
  'first_name': value['firstName'],
96
103
  'last_name': value['lastName'],
97
104
  'email': value['email'],
105
+ 'avatar_url': value['avatarUrl'],
98
106
  'last_updated': value['lastUpdated'],
99
107
  };
100
108
  }
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetUserAvatarUpload
20
+ */
21
+ export interface GetUserAvatarUpload {
22
+ /**
23
+ * Presigned URL for the uploaded avatar image
24
+ * @type {string}
25
+ * @memberof GetUserAvatarUpload
26
+ */
27
+ avatarUrl: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetUserAvatarUpload interface.
32
+ */
33
+ export function instanceOfGetUserAvatarUpload(value: object): value is GetUserAvatarUpload {
34
+ if (!('avatarUrl' in value) || value['avatarUrl'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function GetUserAvatarUploadFromJSON(json: any): GetUserAvatarUpload {
39
+ return GetUserAvatarUploadFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function GetUserAvatarUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserAvatarUpload {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'avatarUrl': json['avatar_url'],
49
+ };
50
+ }
51
+
52
+ export function GetUserAvatarUploadToJSON(json: any): GetUserAvatarUpload {
53
+ return GetUserAvatarUploadToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetUserAvatarUploadToJSONTyped(value?: GetUserAvatarUpload | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'avatar_url': value['avatarUrl'],
64
+ };
65
+ }
66
+
@@ -37,6 +37,18 @@ export interface PostPortal {
37
37
  * @memberof PostPortal
38
38
  */
39
39
  headerTextColor?: string;
40
+ /**
41
+ * Platform subdomain slug used for '{slug}.edaxu.com'
42
+ * @type {string}
43
+ * @memberof PostPortal
44
+ */
45
+ slug?: string | null;
46
+ /**
47
+ * Customer-owned hostname for this portal
48
+ * @type {string}
49
+ * @memberof PostPortal
50
+ */
51
+ clientDomain?: string | null;
40
52
  }
41
53
 
42
54
  /**
@@ -60,6 +72,8 @@ export function PostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean)
60
72
  'name': json['name'],
61
73
  'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
62
74
  'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
75
+ 'slug': json['slug'] == null ? undefined : json['slug'],
76
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
63
77
  };
64
78
  }
65
79
 
@@ -77,6 +91,8 @@ export function PostPortalToJSONTyped(value?: PostPortal | null, ignoreDiscrimin
77
91
  'name': value['name'],
78
92
  'header_background_color': value['headerBackgroundColor'],
79
93
  'header_text_color': value['headerTextColor'],
94
+ 'slug': value['slug'],
95
+ 'client_domain': value['clientDomain'],
80
96
  };
81
97
  }
82
98
 
@@ -37,6 +37,18 @@ export interface PutPortalBranding {
37
37
  * @memberof PutPortalBranding
38
38
  */
39
39
  headerTextColor?: string;
40
+ /**
41
+ * Platform subdomain slug used for '{slug}.edaxu.com'. Set null to inherit from an ancestor.
42
+ * @type {string}
43
+ * @memberof PutPortalBranding
44
+ */
45
+ slug?: string | null;
46
+ /**
47
+ * Customer-owned hostname for this portal. Set null to inherit from an ancestor.
48
+ * @type {string}
49
+ * @memberof PutPortalBranding
50
+ */
51
+ clientDomain?: string | null;
40
52
  }
41
53
 
42
54
  /**
@@ -59,6 +71,8 @@ export function PutPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: b
59
71
  'name': json['name'] == null ? undefined : json['name'],
60
72
  'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
61
73
  'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
74
+ 'slug': json['slug'] == null ? undefined : json['slug'],
75
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
62
76
  };
63
77
  }
64
78
 
@@ -76,6 +90,8 @@ export function PutPortalBrandingToJSONTyped(value?: PutPortalBranding | null, i
76
90
  'name': value['name'],
77
91
  'header_background_color': value['headerBackgroundColor'],
78
92
  'header_text_color': value['headerTextColor'],
93
+ 'slug': value['slug'],
94
+ 'client_domain': value['clientDomain'],
79
95
  };
80
96
  }
81
97
 
@@ -0,0 +1,92 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { UpdateSelectedPortalResponseSelectedPortal } from './UpdateSelectedPortalResponseSelectedPortal';
17
+ import {
18
+ UpdateSelectedPortalResponseSelectedPortalFromJSON,
19
+ UpdateSelectedPortalResponseSelectedPortalFromJSONTyped,
20
+ UpdateSelectedPortalResponseSelectedPortalToJSON,
21
+ UpdateSelectedPortalResponseSelectedPortalToJSONTyped,
22
+ } from './UpdateSelectedPortalResponseSelectedPortal';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateSelectedPortalResponse
28
+ */
29
+ export interface UpdateSelectedPortalResponse {
30
+ /**
31
+ * JWT for API clients. Browser clients should rely on the auth cookie.
32
+ * @type {string}
33
+ * @memberof UpdateSelectedPortalResponse
34
+ */
35
+ token: string;
36
+ /**
37
+ * JWT expiration as a Unix timestamp in seconds.
38
+ * @type {number}
39
+ * @memberof UpdateSelectedPortalResponse
40
+ */
41
+ expiration: number;
42
+ /**
43
+ *
44
+ * @type {UpdateSelectedPortalResponseSelectedPortal}
45
+ * @memberof UpdateSelectedPortalResponse
46
+ */
47
+ selectedPortal: UpdateSelectedPortalResponseSelectedPortal;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the UpdateSelectedPortalResponse interface.
52
+ */
53
+ export function instanceOfUpdateSelectedPortalResponse(value: object): value is UpdateSelectedPortalResponse {
54
+ if (!('token' in value) || value['token'] === undefined) return false;
55
+ if (!('expiration' in value) || value['expiration'] === undefined) return false;
56
+ if (!('selectedPortal' in value) || value['selectedPortal'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function UpdateSelectedPortalResponseFromJSON(json: any): UpdateSelectedPortalResponse {
61
+ return UpdateSelectedPortalResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function UpdateSelectedPortalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'token': json['token'],
71
+ 'expiration': json['expiration'],
72
+ 'selectedPortal': UpdateSelectedPortalResponseSelectedPortalFromJSON(json['selected_portal']),
73
+ };
74
+ }
75
+
76
+ export function UpdateSelectedPortalResponseToJSON(json: any): UpdateSelectedPortalResponse {
77
+ return UpdateSelectedPortalResponseToJSONTyped(json, false);
78
+ }
79
+
80
+ export function UpdateSelectedPortalResponseToJSONTyped(value?: UpdateSelectedPortalResponse | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'token': value['token'],
88
+ 'expiration': value['expiration'],
89
+ 'selected_portal': UpdateSelectedPortalResponseSelectedPortalToJSON(value['selectedPortal']),
90
+ };
91
+ }
92
+