@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
@@ -10,13 +10,26 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetUser, LoginRes, PostLogin, PostResetPassword, PostSendResetPassword, PutUser } from '../models/index';
13
+ import { type GetUser } from '../models/GetUser';
14
+ import { type GetUserAvatarUpload } from '../models/GetUserAvatarUpload';
15
+ import { type LoginRes } from '../models/LoginRes';
16
+ import { type PostLogin } from '../models/PostLogin';
17
+ import { type PostResetPassword } from '../models/PostResetPassword';
18
+ import { type PostSendResetPassword } from '../models/PostSendResetPassword';
19
+ import { type PutUser } from '../models/PutUser';
20
+ export interface DeleteUserAvatarRequest {
21
+ userId: string;
22
+ }
14
23
  export interface GetUserRequest {
15
24
  userId: string;
16
25
  }
17
26
  export interface PostLoginRequest {
18
27
  postLogin: PostLogin;
19
28
  }
29
+ export interface PostUserAvatarUploadRequest {
30
+ userId: string;
31
+ file: Blob;
32
+ }
20
33
  export interface PutUserRequest {
21
34
  userId: string;
22
35
  putUser: Omit<PutUser, 'id' | 'last_updated'>;
@@ -31,6 +44,18 @@ export interface SendResetPasswordRequest {
31
44
  *
32
45
  */
33
46
  export declare class UserApi extends runtime.BaseAPI {
47
+ /**
48
+ * Creates request options for deleteUserAvatar without sending the request
49
+ */
50
+ deleteUserAvatarRequestOpts(requestParameters: DeleteUserAvatarRequest): Promise<runtime.RequestOpts>;
51
+ /**
52
+ * Remove the current user\'s profile photo
53
+ */
54
+ deleteUserAvatarRaw(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
55
+ /**
56
+ * Remove the current user\'s profile photo
57
+ */
58
+ deleteUserAvatar(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
59
  /**
35
60
  * Creates request options for getAuthCheck without sending the request
36
61
  */
@@ -93,6 +118,18 @@ export declare class UserApi extends runtime.BaseAPI {
93
118
  * Logout a user
94
119
  */
95
120
  postLogout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
121
+ /**
122
+ * Creates request options for postUserAvatarUpload without sending the request
123
+ */
124
+ postUserAvatarUploadRequestOpts(requestParameters: PostUserAvatarUploadRequest): Promise<runtime.RequestOpts>;
125
+ /**
126
+ * Upload a profile photo for the current user
127
+ */
128
+ postUserAvatarUploadRaw(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAvatarUpload>>;
129
+ /**
130
+ * Upload a profile photo for the current user
131
+ */
132
+ postUserAvatarUpload(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAvatarUpload>;
96
133
  /**
97
134
  * Creates request options for putUser without sending the request
98
135
  */
@@ -21,11 +21,55 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GetUserFromJSON, LoginResFromJSON, PostLoginToJSON, PostResetPasswordToJSON, PostSendResetPasswordToJSON, PutUserToJSON, } from '../models/index';
24
+ import { GetUserFromJSON, } from '../models/GetUser';
25
+ import { GetUserAvatarUploadFromJSON, } from '../models/GetUserAvatarUpload';
26
+ import { LoginResFromJSON, } from '../models/LoginRes';
27
+ import { PostLoginToJSON, } from '../models/PostLogin';
28
+ import { PostResetPasswordToJSON, } from '../models/PostResetPassword';
29
+ import { PostSendResetPasswordToJSON, } from '../models/PostSendResetPassword';
30
+ import { PutUserToJSON, } from '../models/PutUser';
25
31
  /**
26
32
  *
27
33
  */
28
34
  export class UserApi extends runtime.BaseAPI {
35
+ /**
36
+ * Creates request options for deleteUserAvatar without sending the request
37
+ */
38
+ deleteUserAvatarRequestOpts(requestParameters) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (requestParameters['userId'] == null) {
41
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUserAvatar().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ let urlPath = `/users/{userId}/avatar`;
46
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
47
+ return {
48
+ path: urlPath,
49
+ method: 'DELETE',
50
+ headers: headerParameters,
51
+ query: queryParameters,
52
+ };
53
+ });
54
+ }
55
+ /**
56
+ * Remove the current user\'s profile photo
57
+ */
58
+ deleteUserAvatarRaw(requestParameters, initOverrides) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const requestOptions = yield this.deleteUserAvatarRequestOpts(requestParameters);
61
+ const response = yield this.request(requestOptions, initOverrides);
62
+ return new runtime.VoidApiResponse(response);
63
+ });
64
+ }
65
+ /**
66
+ * Remove the current user\'s profile photo
67
+ */
68
+ deleteUserAvatar(requestParameters, initOverrides) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ yield this.deleteUserAvatarRaw(requestParameters, initOverrides);
71
+ });
72
+ }
29
73
  /**
30
74
  * Creates request options for getAuthCheck without sending the request
31
75
  */
@@ -108,7 +152,7 @@ export class UserApi extends runtime.BaseAPI {
108
152
  const queryParameters = {};
109
153
  const headerParameters = {};
110
154
  let urlPath = `/users/{userId}`;
111
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
155
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
112
156
  return {
113
157
  path: urlPath,
114
158
  method: 'GET',
@@ -210,6 +254,67 @@ export class UserApi extends runtime.BaseAPI {
210
254
  yield this.postLogoutRaw(initOverrides);
211
255
  });
212
256
  }
257
+ /**
258
+ * Creates request options for postUserAvatarUpload without sending the request
259
+ */
260
+ postUserAvatarUploadRequestOpts(requestParameters) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ if (requestParameters['userId'] == null) {
263
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling postUserAvatarUpload().');
264
+ }
265
+ if (requestParameters['file'] == null) {
266
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postUserAvatarUpload().');
267
+ }
268
+ const queryParameters = {};
269
+ const headerParameters = {};
270
+ const consumes = [
271
+ { contentType: 'multipart/form-data' },
272
+ ];
273
+ // @ts-ignore: canConsumeForm may be unused
274
+ const canConsumeForm = runtime.canConsumeForm(consumes);
275
+ let formParams;
276
+ let useForm = false;
277
+ // use FormData to transmit files using content-type "multipart/form-data"
278
+ useForm = canConsumeForm;
279
+ if (useForm) {
280
+ formParams = new FormData();
281
+ }
282
+ else {
283
+ formParams = new URLSearchParams();
284
+ }
285
+ if (requestParameters['file'] != null) {
286
+ formParams.append('file', requestParameters['file']);
287
+ }
288
+ let urlPath = `/users/{userId}/avatar`;
289
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
290
+ return {
291
+ path: urlPath,
292
+ method: 'POST',
293
+ headers: headerParameters,
294
+ query: queryParameters,
295
+ body: formParams,
296
+ };
297
+ });
298
+ }
299
+ /**
300
+ * Upload a profile photo for the current user
301
+ */
302
+ postUserAvatarUploadRaw(requestParameters, initOverrides) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ const requestOptions = yield this.postUserAvatarUploadRequestOpts(requestParameters);
305
+ const response = yield this.request(requestOptions, initOverrides);
306
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetUserAvatarUploadFromJSON(jsonValue));
307
+ });
308
+ }
309
+ /**
310
+ * Upload a profile photo for the current user
311
+ */
312
+ postUserAvatarUpload(requestParameters, initOverrides) {
313
+ return __awaiter(this, void 0, void 0, function* () {
314
+ const response = yield this.postUserAvatarUploadRaw(requestParameters, initOverrides);
315
+ return yield response.value();
316
+ });
317
+ }
213
318
  /**
214
319
  * Creates request options for putUser without sending the request
215
320
  */
@@ -225,7 +330,7 @@ export class UserApi extends runtime.BaseAPI {
225
330
  const headerParameters = {};
226
331
  headerParameters['Content-Type'] = 'application/json';
227
332
  let urlPath = `/users/{userId}`;
228
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
333
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
229
334
  return {
230
335
  path: urlPath,
231
336
  method: 'PUT',
@@ -33,6 +33,18 @@ export interface GetPortal {
33
33
  * @memberof GetPortal
34
34
  */
35
35
  parentPortalId?: string;
36
+ /**
37
+ * Platform subdomain slug used for '{slug}.edaxu.com'
38
+ * @type {string}
39
+ * @memberof GetPortal
40
+ */
41
+ slug?: string | null;
42
+ /**
43
+ * Customer-owned hostname for this portal
44
+ * @type {string}
45
+ * @memberof GetPortal
46
+ */
47
+ clientDomain?: string | null;
36
48
  /**
37
49
  *
38
50
  * @type {string}
@@ -48,6 +48,8 @@ export function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'id': json['id'],
49
49
  'name': json['name'],
50
50
  'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
51
+ 'slug': json['slug'] == null ? undefined : json['slug'],
52
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
51
53
  'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
52
54
  'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
53
55
  'headerBackgroundColor': json['header_background_color'],
@@ -66,6 +68,8 @@ export function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
66
68
  'id': value['id'],
67
69
  'name': value['name'],
68
70
  'parent_portal_id': value['parentPortalId'],
71
+ 'slug': value['slug'],
72
+ 'client_domain': value['clientDomain'],
69
73
  'logo_url': value['logoUrl'],
70
74
  'favicon_url': value['faviconUrl'],
71
75
  'header_background_color': value['headerBackgroundColor'],
@@ -39,6 +39,12 @@ export interface GetUser {
39
39
  * @memberof GetUser
40
40
  */
41
41
  email: string;
42
+ /**
43
+ * Presigned URL for the user's profile photo, or null if none set
44
+ * @type {string}
45
+ * @memberof GetUser
46
+ */
47
+ avatarUrl?: string | null;
42
48
  /**
43
49
  * Unix timestamp in seconds
44
50
  * @type {number}
@@ -39,6 +39,7 @@ export function GetUserFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'firstName': json['first_name'],
40
40
  'lastName': json['last_name'],
41
41
  'email': json['email'],
42
+ 'avatarUrl': json['avatar_url'] == null ? undefined : json['avatar_url'],
42
43
  'lastUpdated': json['last_updated'],
43
44
  };
44
45
  }
@@ -53,6 +54,7 @@ export function GetUserToJSONTyped(value, ignoreDiscriminator = false) {
53
54
  'first_name': value['firstName'],
54
55
  'last_name': value['lastName'],
55
56
  'email': value['email'],
57
+ 'avatar_url': value['avatarUrl'],
56
58
  'last_updated': value['lastUpdated'],
57
59
  };
58
60
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetUserAvatarUpload
16
+ */
17
+ export interface GetUserAvatarUpload {
18
+ /**
19
+ * Presigned URL for the uploaded avatar image
20
+ * @type {string}
21
+ * @memberof GetUserAvatarUpload
22
+ */
23
+ avatarUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetUserAvatarUpload interface.
27
+ */
28
+ export declare function instanceOfGetUserAvatarUpload(value: object): value is GetUserAvatarUpload;
29
+ export declare function GetUserAvatarUploadFromJSON(json: any): GetUserAvatarUpload;
30
+ export declare function GetUserAvatarUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserAvatarUpload;
31
+ export declare function GetUserAvatarUploadToJSON(json: any): GetUserAvatarUpload;
32
+ export declare function GetUserAvatarUploadToJSONTyped(value?: GetUserAvatarUpload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the GetUserAvatarUpload interface.
16
+ */
17
+ export function instanceOfGetUserAvatarUpload(value) {
18
+ if (!('avatarUrl' in value) || value['avatarUrl'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function GetUserAvatarUploadFromJSON(json) {
23
+ return GetUserAvatarUploadFromJSONTyped(json, false);
24
+ }
25
+ export function GetUserAvatarUploadFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'avatarUrl': json['avatar_url'],
31
+ };
32
+ }
33
+ export function GetUserAvatarUploadToJSON(json) {
34
+ return GetUserAvatarUploadToJSONTyped(json, false);
35
+ }
36
+ export function GetUserAvatarUploadToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'avatar_url': value['avatarUrl'],
42
+ };
43
+ }
@@ -33,6 +33,18 @@ export interface PostPortal {
33
33
  * @memberof PostPortal
34
34
  */
35
35
  headerTextColor?: string;
36
+ /**
37
+ * Platform subdomain slug used for '{slug}.edaxu.com'
38
+ * @type {string}
39
+ * @memberof PostPortal
40
+ */
41
+ slug?: string | null;
42
+ /**
43
+ * Customer-owned hostname for this portal
44
+ * @type {string}
45
+ * @memberof PostPortal
46
+ */
47
+ clientDomain?: string | null;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the PostPortal interface.
@@ -30,6 +30,8 @@ export function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'name': json['name'],
31
31
  'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
32
32
  'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
33
+ 'slug': json['slug'] == null ? undefined : json['slug'],
34
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
33
35
  };
34
36
  }
35
37
  export function PostPortalToJSON(json) {
@@ -43,5 +45,7 @@ export function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
43
45
  'name': value['name'],
44
46
  'header_background_color': value['headerBackgroundColor'],
45
47
  'header_text_color': value['headerTextColor'],
48
+ 'slug': value['slug'],
49
+ 'client_domain': value['clientDomain'],
46
50
  };
47
51
  }
@@ -33,6 +33,18 @@ export interface PutPortalBranding {
33
33
  * @memberof PutPortalBranding
34
34
  */
35
35
  headerTextColor?: string;
36
+ /**
37
+ * Platform subdomain slug used for '{slug}.edaxu.com'. Set null to inherit from an ancestor.
38
+ * @type {string}
39
+ * @memberof PutPortalBranding
40
+ */
41
+ slug?: string | null;
42
+ /**
43
+ * Customer-owned hostname for this portal. Set null to inherit from an ancestor.
44
+ * @type {string}
45
+ * @memberof PutPortalBranding
46
+ */
47
+ clientDomain?: string | null;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the PutPortalBranding interface.
@@ -28,6 +28,8 @@ export function PutPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'name': json['name'] == null ? undefined : json['name'],
29
29
  'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
30
30
  'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
31
+ 'slug': json['slug'] == null ? undefined : json['slug'],
32
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
31
33
  };
32
34
  }
33
35
  export function PutPortalBrandingToJSON(json) {
@@ -41,5 +43,7 @@ export function PutPortalBrandingToJSONTyped(value, ignoreDiscriminator = false)
41
43
  'name': value['name'],
42
44
  'header_background_color': value['headerBackgroundColor'],
43
45
  'header_text_color': value['headerTextColor'],
46
+ 'slug': value['slug'],
47
+ 'client_domain': value['clientDomain'],
44
48
  };
45
49
  }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UpdateSelectedPortalResponseSelectedPortal } from './UpdateSelectedPortalResponseSelectedPortal';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateSelectedPortalResponse
17
+ */
18
+ export interface UpdateSelectedPortalResponse {
19
+ /**
20
+ * JWT for API clients. Browser clients should rely on the auth cookie.
21
+ * @type {string}
22
+ * @memberof UpdateSelectedPortalResponse
23
+ */
24
+ token: string;
25
+ /**
26
+ * JWT expiration as a Unix timestamp in seconds.
27
+ * @type {number}
28
+ * @memberof UpdateSelectedPortalResponse
29
+ */
30
+ expiration: number;
31
+ /**
32
+ *
33
+ * @type {UpdateSelectedPortalResponseSelectedPortal}
34
+ * @memberof UpdateSelectedPortalResponse
35
+ */
36
+ selectedPortal: UpdateSelectedPortalResponseSelectedPortal;
37
+ }
38
+ /**
39
+ * Check if a given object implements the UpdateSelectedPortalResponse interface.
40
+ */
41
+ export declare function instanceOfUpdateSelectedPortalResponse(value: object): value is UpdateSelectedPortalResponse;
42
+ export declare function UpdateSelectedPortalResponseFromJSON(json: any): UpdateSelectedPortalResponse;
43
+ export declare function UpdateSelectedPortalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponse;
44
+ export declare function UpdateSelectedPortalResponseToJSON(json: any): UpdateSelectedPortalResponse;
45
+ export declare function UpdateSelectedPortalResponseToJSONTyped(value?: UpdateSelectedPortalResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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
+ import { UpdateSelectedPortalResponseSelectedPortalFromJSON, UpdateSelectedPortalResponseSelectedPortalToJSON, } from './UpdateSelectedPortalResponseSelectedPortal';
15
+ /**
16
+ * Check if a given object implements the UpdateSelectedPortalResponse interface.
17
+ */
18
+ export function instanceOfUpdateSelectedPortalResponse(value) {
19
+ if (!('token' in value) || value['token'] === undefined)
20
+ return false;
21
+ if (!('expiration' in value) || value['expiration'] === undefined)
22
+ return false;
23
+ if (!('selectedPortal' in value) || value['selectedPortal'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function UpdateSelectedPortalResponseFromJSON(json) {
28
+ return UpdateSelectedPortalResponseFromJSONTyped(json, false);
29
+ }
30
+ export function UpdateSelectedPortalResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'token': json['token'],
36
+ 'expiration': json['expiration'],
37
+ 'selectedPortal': UpdateSelectedPortalResponseSelectedPortalFromJSON(json['selected_portal']),
38
+ };
39
+ }
40
+ export function UpdateSelectedPortalResponseToJSON(json) {
41
+ return UpdateSelectedPortalResponseToJSONTyped(json, false);
42
+ }
43
+ export function UpdateSelectedPortalResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'token': value['token'],
49
+ 'expiration': value['expiration'],
50
+ 'selected_portal': UpdateSelectedPortalResponseSelectedPortalToJSON(value['selectedPortal']),
51
+ };
52
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateSelectedPortalResponseSelectedPortal
16
+ */
17
+ export interface UpdateSelectedPortalResponseSelectedPortal {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateSelectedPortalResponseSelectedPortal
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateSelectedPortalResponseSelectedPortal
28
+ */
29
+ name: string;
30
+ /**
31
+ * Platform subdomain slug for redirecting to the selected portal host.
32
+ * @type {string}
33
+ * @memberof UpdateSelectedPortalResponseSelectedPortal
34
+ */
35
+ slug: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UpdateSelectedPortalResponseSelectedPortal interface.
39
+ */
40
+ export declare function instanceOfUpdateSelectedPortalResponseSelectedPortal(value: object): value is UpdateSelectedPortalResponseSelectedPortal;
41
+ export declare function UpdateSelectedPortalResponseSelectedPortalFromJSON(json: any): UpdateSelectedPortalResponseSelectedPortal;
42
+ export declare function UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponseSelectedPortal;
43
+ export declare function UpdateSelectedPortalResponseSelectedPortalToJSON(json: any): UpdateSelectedPortalResponseSelectedPortal;
44
+ export declare function UpdateSelectedPortalResponseSelectedPortalToJSONTyped(value?: UpdateSelectedPortalResponseSelectedPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ * Check if a given object implements the UpdateSelectedPortalResponseSelectedPortal interface.
16
+ */
17
+ export function instanceOfUpdateSelectedPortalResponseSelectedPortal(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('slug' in value) || value['slug'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function UpdateSelectedPortalResponseSelectedPortalFromJSON(json) {
27
+ return UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, false);
28
+ }
29
+ export function UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'name': json['name'],
36
+ 'slug': json['slug'],
37
+ };
38
+ }
39
+ export function UpdateSelectedPortalResponseSelectedPortalToJSON(json) {
40
+ return UpdateSelectedPortalResponseSelectedPortalToJSONTyped(json, false);
41
+ }
42
+ export function UpdateSelectedPortalResponseSelectedPortalToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ 'slug': value['slug'],
50
+ };
51
+ }
@@ -140,6 +140,7 @@ export * from './GetSupportTicketAttachment';
140
140
  export * from './GetSupportTicketComment';
141
141
  export * from './GetSupportTicketList';
142
142
  export * from './GetUser';
143
+ export * from './GetUserAvatarUpload';
143
144
  export * from './GetUserQuizAttempts';
144
145
  export * from './GetUserQuizAttemptsAllOfAttempts';
145
146
  export * from './GetUserQuizAttemptsAllOfFilters';
@@ -252,3 +253,5 @@ export * from './ShortAnswer';
252
253
  export * from './ShortAnswer1';
253
254
  export * from './SingleAnswer';
254
255
  export * from './SupportTicketUser';
256
+ export * from './UpdateSelectedPortalResponse';
257
+ export * from './UpdateSelectedPortalResponseSelectedPortal';
@@ -142,6 +142,7 @@ export * from './GetSupportTicketAttachment';
142
142
  export * from './GetSupportTicketComment';
143
143
  export * from './GetSupportTicketList';
144
144
  export * from './GetUser';
145
+ export * from './GetUserAvatarUpload';
145
146
  export * from './GetUserQuizAttempts';
146
147
  export * from './GetUserQuizAttemptsAllOfAttempts';
147
148
  export * from './GetUserQuizAttemptsAllOfFilters';
@@ -254,3 +255,5 @@ export * from './ShortAnswer';
254
255
  export * from './ShortAnswer1';
255
256
  export * from './SingleAnswer';
256
257
  export * from './SupportTicketUser';
258
+ export * from './UpdateSelectedPortalResponse';
259
+ export * from './UpdateSelectedPortalResponseSelectedPortal';
@@ -210,7 +210,7 @@ export class BaseAPI {
210
210
  return next;
211
211
  }
212
212
  }
213
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
213
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
214
214
  ;
215
215
  function isBlob(value) {
216
216
  return typeof Blob !== 'undefined' && value instanceof Blob;