@easyedu/js-lsm-api 1.58.0 → 1.60.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 (125) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -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 +52 -0
  71. package/dist/esm/models/UpdateSelectedPortalResponse.js +57 -0
  72. package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
  73. package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.js +51 -0
  74. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  75. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
  76. package/dist/esm/models/index.d.ts +3 -0
  77. package/dist/esm/models/index.js +3 -0
  78. package/dist/esm/runtime.js +1 -1
  79. package/dist/models/GetPortal.d.ts +12 -0
  80. package/dist/models/GetPortal.js +4 -0
  81. package/dist/models/PostPortal.d.ts +12 -0
  82. package/dist/models/PostPortal.js +4 -0
  83. package/dist/models/PutPortalBranding.d.ts +12 -0
  84. package/dist/models/PutPortalBranding.js +4 -0
  85. package/dist/models/UpdateSelectedPortalResponse.d.ts +52 -0
  86. package/dist/models/UpdateSelectedPortalResponse.js +64 -0
  87. package/dist/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
  88. package/dist/models/UpdateSelectedPortalResponseHostPortal.js +58 -0
  89. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  90. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
  91. package/dist/models/index.d.ts +3 -0
  92. package/dist/models/index.js +3 -0
  93. package/dist/runtime.js +1 -1
  94. package/docs/GetPortal.md +4 -0
  95. package/docs/PortalApi.md +3 -3
  96. package/docs/PostPortal.md +4 -0
  97. package/docs/PutPortalBranding.md +4 -0
  98. package/docs/UpdateSelectedPortalResponse.md +40 -0
  99. package/docs/UpdateSelectedPortalResponseHostPortal.md +39 -0
  100. package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
  101. package/package.json +1 -1
  102. package/src/apis/CertificateApi.ts +38 -23
  103. package/src/apis/ChatApi.ts +20 -13
  104. package/src/apis/ContentApi.ts +117 -78
  105. package/src/apis/CourseApi.ts +57 -34
  106. package/src/apis/CourseCatalogApi.ts +19 -16
  107. package/src/apis/CourseShareApi.ts +21 -16
  108. package/src/apis/ModuleApi.ts +26 -19
  109. package/src/apis/OtherApi.ts +0 -1
  110. package/src/apis/PortalApi.ts +42 -25
  111. package/src/apis/PortalSublicenseApi.ts +6 -7
  112. package/src/apis/QuestionApi.ts +14 -11
  113. package/src/apis/QuizApi.ts +96 -57
  114. package/src/apis/ReportingApi.ts +47 -34
  115. package/src/apis/RoleApi.ts +29 -22
  116. package/src/apis/SupportTicketApi.ts +31 -20
  117. package/src/apis/UserApi.ts +24 -15
  118. package/src/models/GetPortal.ts +16 -0
  119. package/src/models/PostPortal.ts +16 -0
  120. package/src/models/PutPortalBranding.ts +16 -0
  121. package/src/models/UpdateSelectedPortalResponse.ts +108 -0
  122. package/src/models/UpdateSelectedPortalResponseHostPortal.ts +84 -0
  123. package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
  124. package/src/models/index.ts +3 -0
  125. package/src/runtime.ts +1 -2
@@ -21,7 +21,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { DownloadSupportTicketAttachment200ResponseFromJSON, GetSupportTicketFromJSON, GetSupportTicketAttachmentFromJSON, GetSupportTicketCommentFromJSON, GetSupportTicketListFromJSON, PostSupportTicketToJSON, PostSupportTicketCommentToJSON, PutSupportTicketToJSON, } from '../models/index';
24
+ import { DownloadSupportTicketAttachment200ResponseFromJSON, } from '../models/DownloadSupportTicketAttachment200Response';
25
+ import { GetSupportTicketFromJSON, } from '../models/GetSupportTicket';
26
+ import { GetSupportTicketAttachmentFromJSON, } from '../models/GetSupportTicketAttachment';
27
+ import { GetSupportTicketCommentFromJSON, } from '../models/GetSupportTicketComment';
28
+ import { GetSupportTicketListFromJSON, } from '../models/GetSupportTicketList';
29
+ import { PostSupportTicketToJSON, } from '../models/PostSupportTicket';
30
+ import { PostSupportTicketCommentToJSON, } from '../models/PostSupportTicketComment';
31
+ import { PutSupportTicketToJSON, } from '../models/PutSupportTicket';
25
32
  /**
26
33
  *
27
34
  */
@@ -37,7 +44,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
37
44
  const queryParameters = {};
38
45
  const headerParameters = {};
39
46
  let urlPath = `/support/tickets/{ticketId}/close`;
40
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
47
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
41
48
  return {
42
49
  path: urlPath,
43
50
  method: 'POST',
@@ -78,8 +85,8 @@ export class SupportTicketApi extends runtime.BaseAPI {
78
85
  const queryParameters = {};
79
86
  const headerParameters = {};
80
87
  let urlPath = `/support/tickets/{ticketId}/attachments/{attachmentId}/download`;
81
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
82
- urlPath = urlPath.replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters['attachmentId'])));
88
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
89
+ urlPath = urlPath.replace('{attachmentId}', encodeURIComponent(String(requestParameters['attachmentId'])));
83
90
  return {
84
91
  path: urlPath,
85
92
  method: 'GET',
@@ -118,7 +125,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
118
125
  const queryParameters = {};
119
126
  const headerParameters = {};
120
127
  let urlPath = `/support/tickets/{ticketId}`;
121
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
128
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
122
129
  return {
123
130
  path: urlPath,
124
131
  method: 'GET',
@@ -157,7 +164,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
157
164
  const queryParameters = {};
158
165
  const headerParameters = {};
159
166
  let urlPath = `/support/tickets/{ticketId}/comments`;
160
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
167
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
161
168
  return {
162
169
  path: urlPath,
163
170
  method: 'GET',
@@ -307,7 +314,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
307
314
  formParams.append('file', requestParameters['file']);
308
315
  }
309
316
  let urlPath = `/support/tickets/{ticketId}/attachments`;
310
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
317
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
311
318
  return {
312
319
  path: urlPath,
313
320
  method: 'POST',
@@ -351,7 +358,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
351
358
  const headerParameters = {};
352
359
  headerParameters['Content-Type'] = 'application/json';
353
360
  let urlPath = `/support/tickets/{ticketId}/comments`;
354
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
361
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
355
362
  return {
356
363
  path: urlPath,
357
364
  method: 'POST',
@@ -395,7 +402,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
395
402
  const headerParameters = {};
396
403
  headerParameters['Content-Type'] = 'application/json';
397
404
  let urlPath = `/support/tickets/{ticketId}`;
398
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
405
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
399
406
  return {
400
407
  path: urlPath,
401
408
  method: 'PUT',
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetUser, GetUserAvatarUpload, 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';
14
20
  export interface DeleteUserAvatarRequest {
15
21
  userId: string;
16
22
  }
@@ -21,7 +21,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GetUserFromJSON, GetUserAvatarUploadFromJSON, 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
  */
@@ -37,7 +43,7 @@ export class UserApi extends runtime.BaseAPI {
37
43
  const queryParameters = {};
38
44
  const headerParameters = {};
39
45
  let urlPath = `/users/{userId}/avatar`;
40
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
46
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
41
47
  return {
42
48
  path: urlPath,
43
49
  method: 'DELETE',
@@ -146,7 +152,7 @@ export class UserApi extends runtime.BaseAPI {
146
152
  const queryParameters = {};
147
153
  const headerParameters = {};
148
154
  let urlPath = `/users/{userId}`;
149
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
155
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
150
156
  return {
151
157
  path: urlPath,
152
158
  method: 'GET',
@@ -280,7 +286,7 @@ export class UserApi extends runtime.BaseAPI {
280
286
  formParams.append('file', requestParameters['file']);
281
287
  }
282
288
  let urlPath = `/users/{userId}/avatar`;
283
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
289
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
284
290
  return {
285
291
  path: urlPath,
286
292
  method: 'POST',
@@ -324,7 +330,7 @@ export class UserApi extends runtime.BaseAPI {
324
330
  const headerParameters = {};
325
331
  headerParameters['Content-Type'] = 'application/json';
326
332
  let urlPath = `/users/{userId}`;
327
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
333
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
328
334
  return {
329
335
  path: urlPath,
330
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'],
@@ -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,52 @@
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
+ import type { UpdateSelectedPortalResponseHostPortal } from './UpdateSelectedPortalResponseHostPortal';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UpdateSelectedPortalResponse
18
+ */
19
+ export interface UpdateSelectedPortalResponse {
20
+ /**
21
+ * JWT for API clients. Browser clients should rely on the auth cookie.
22
+ * @type {string}
23
+ * @memberof UpdateSelectedPortalResponse
24
+ */
25
+ token: string;
26
+ /**
27
+ * JWT expiration as a Unix timestamp in seconds.
28
+ * @type {number}
29
+ * @memberof UpdateSelectedPortalResponse
30
+ */
31
+ expiration: number;
32
+ /**
33
+ *
34
+ * @type {UpdateSelectedPortalResponseSelectedPortal}
35
+ * @memberof UpdateSelectedPortalResponse
36
+ */
37
+ selectedPortal: UpdateSelectedPortalResponseSelectedPortal;
38
+ /**
39
+ *
40
+ * @type {UpdateSelectedPortalResponseHostPortal}
41
+ * @memberof UpdateSelectedPortalResponse
42
+ */
43
+ hostPortal: UpdateSelectedPortalResponseHostPortal;
44
+ }
45
+ /**
46
+ * Check if a given object implements the UpdateSelectedPortalResponse interface.
47
+ */
48
+ export declare function instanceOfUpdateSelectedPortalResponse(value: object): value is UpdateSelectedPortalResponse;
49
+ export declare function UpdateSelectedPortalResponseFromJSON(json: any): UpdateSelectedPortalResponse;
50
+ export declare function UpdateSelectedPortalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponse;
51
+ export declare function UpdateSelectedPortalResponseToJSON(json: any): UpdateSelectedPortalResponse;
52
+ export declare function UpdateSelectedPortalResponseToJSONTyped(value?: UpdateSelectedPortalResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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
+ import { UpdateSelectedPortalResponseHostPortalFromJSON, UpdateSelectedPortalResponseHostPortalToJSON, } from './UpdateSelectedPortalResponseHostPortal';
16
+ /**
17
+ * Check if a given object implements the UpdateSelectedPortalResponse interface.
18
+ */
19
+ export function instanceOfUpdateSelectedPortalResponse(value) {
20
+ if (!('token' in value) || value['token'] === undefined)
21
+ return false;
22
+ if (!('expiration' in value) || value['expiration'] === undefined)
23
+ return false;
24
+ if (!('selectedPortal' in value) || value['selectedPortal'] === undefined)
25
+ return false;
26
+ if (!('hostPortal' in value) || value['hostPortal'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function UpdateSelectedPortalResponseFromJSON(json) {
31
+ return UpdateSelectedPortalResponseFromJSONTyped(json, false);
32
+ }
33
+ export function UpdateSelectedPortalResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'token': json['token'],
39
+ 'expiration': json['expiration'],
40
+ 'selectedPortal': UpdateSelectedPortalResponseSelectedPortalFromJSON(json['selected_portal']),
41
+ 'hostPortal': UpdateSelectedPortalResponseHostPortalFromJSON(json['host_portal']),
42
+ };
43
+ }
44
+ export function UpdateSelectedPortalResponseToJSON(json) {
45
+ return UpdateSelectedPortalResponseToJSONTyped(json, false);
46
+ }
47
+ export function UpdateSelectedPortalResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'token': value['token'],
53
+ 'expiration': value['expiration'],
54
+ 'selected_portal': UpdateSelectedPortalResponseSelectedPortalToJSON(value['selectedPortal']),
55
+ 'host_portal': UpdateSelectedPortalResponseHostPortalToJSON(value['hostPortal']),
56
+ };
57
+ }
@@ -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
+ * Nearest selected-portal ancestor that owns the platform subdomain.
14
+ * @export
15
+ * @interface UpdateSelectedPortalResponseHostPortal
16
+ */
17
+ export interface UpdateSelectedPortalResponseHostPortal {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateSelectedPortalResponseHostPortal
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateSelectedPortalResponseHostPortal
28
+ */
29
+ name: string;
30
+ /**
31
+ * Platform subdomain slug used for redirecting after portal switch.
32
+ * @type {string}
33
+ * @memberof UpdateSelectedPortalResponseHostPortal
34
+ */
35
+ slug: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UpdateSelectedPortalResponseHostPortal interface.
39
+ */
40
+ export declare function instanceOfUpdateSelectedPortalResponseHostPortal(value: object): value is UpdateSelectedPortalResponseHostPortal;
41
+ export declare function UpdateSelectedPortalResponseHostPortalFromJSON(json: any): UpdateSelectedPortalResponseHostPortal;
42
+ export declare function UpdateSelectedPortalResponseHostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponseHostPortal;
43
+ export declare function UpdateSelectedPortalResponseHostPortalToJSON(json: any): UpdateSelectedPortalResponseHostPortal;
44
+ export declare function UpdateSelectedPortalResponseHostPortalToJSONTyped(value?: UpdateSelectedPortalResponseHostPortal | 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 UpdateSelectedPortalResponseHostPortal interface.
16
+ */
17
+ export function instanceOfUpdateSelectedPortalResponseHostPortal(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 UpdateSelectedPortalResponseHostPortalFromJSON(json) {
27
+ return UpdateSelectedPortalResponseHostPortalFromJSONTyped(json, false);
28
+ }
29
+ export function UpdateSelectedPortalResponseHostPortalFromJSONTyped(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 UpdateSelectedPortalResponseHostPortalToJSON(json) {
40
+ return UpdateSelectedPortalResponseHostPortalToJSONTyped(json, false);
41
+ }
42
+ export function UpdateSelectedPortalResponseHostPortalToJSONTyped(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
+ }
@@ -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
+ }
@@ -253,3 +253,6 @@ export * from './ShortAnswer';
253
253
  export * from './ShortAnswer1';
254
254
  export * from './SingleAnswer';
255
255
  export * from './SupportTicketUser';
256
+ export * from './UpdateSelectedPortalResponse';
257
+ export * from './UpdateSelectedPortalResponseHostPortal';
258
+ export * from './UpdateSelectedPortalResponseSelectedPortal';
@@ -255,3 +255,6 @@ export * from './ShortAnswer';
255
255
  export * from './ShortAnswer1';
256
256
  export * from './SingleAnswer';
257
257
  export * from './SupportTicketUser';
258
+ export * from './UpdateSelectedPortalResponse';
259
+ export * from './UpdateSelectedPortalResponseHostPortal';
260
+ 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;
@@ -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}
@@ -56,6 +56,8 @@ function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'id': json['id'],
57
57
  'name': json['name'],
58
58
  'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
59
+ 'slug': json['slug'] == null ? undefined : json['slug'],
60
+ 'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
59
61
  'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
60
62
  'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
61
63
  'headerBackgroundColor': json['header_background_color'],
@@ -74,6 +76,8 @@ function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
74
76
  'id': value['id'],
75
77
  'name': value['name'],
76
78
  'parent_portal_id': value['parentPortalId'],
79
+ 'slug': value['slug'],
80
+ 'client_domain': value['clientDomain'],
77
81
  'logo_url': value['logoUrl'],
78
82
  'favicon_url': value['faviconUrl'],
79
83
  'header_background_color': value['headerBackgroundColor'],
@@ -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.