@easyedu/js-lsm-api 1.58.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +7 -1
- package/dist/apis/UserApi.js +19 -13
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +7 -1
- package/dist/esm/apis/UserApi.js +11 -5
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/models/UpdateSelectedPortalResponse.js +59 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +38 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +24 -15
- package/src/models/GetPortal.ts +16 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +92 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +2 -0
- 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/
|
|
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(
|
|
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(
|
|
164
|
-
urlPath = urlPath.replace(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
551
|
+
urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
|
|
541
552
|
|
|
542
553
|
return {
|
|
543
554
|
path: urlPath,
|
package/src/apis/UserApi.ts
CHANGED
|
@@ -12,33 +12,42 @@
|
|
|
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
|
-
GetUserAvatarUpload,
|
|
20
|
-
LoginRes,
|
|
21
|
-
PostLogin,
|
|
22
|
-
PostResetPassword,
|
|
23
|
-
PostSendResetPassword,
|
|
24
|
-
PutUser,
|
|
25
|
-
} from '../models/index';
|
|
26
16
|
import {
|
|
17
|
+
type GetUser,
|
|
27
18
|
GetUserFromJSON,
|
|
28
19
|
GetUserToJSON,
|
|
20
|
+
} from '../models/GetUser';
|
|
21
|
+
import {
|
|
22
|
+
type GetUserAvatarUpload,
|
|
29
23
|
GetUserAvatarUploadFromJSON,
|
|
30
24
|
GetUserAvatarUploadToJSON,
|
|
25
|
+
} from '../models/GetUserAvatarUpload';
|
|
26
|
+
import {
|
|
27
|
+
type LoginRes,
|
|
31
28
|
LoginResFromJSON,
|
|
32
29
|
LoginResToJSON,
|
|
30
|
+
} from '../models/LoginRes';
|
|
31
|
+
import {
|
|
32
|
+
type PostLogin,
|
|
33
33
|
PostLoginFromJSON,
|
|
34
34
|
PostLoginToJSON,
|
|
35
|
+
} from '../models/PostLogin';
|
|
36
|
+
import {
|
|
37
|
+
type PostResetPassword,
|
|
35
38
|
PostResetPasswordFromJSON,
|
|
36
39
|
PostResetPasswordToJSON,
|
|
40
|
+
} from '../models/PostResetPassword';
|
|
41
|
+
import {
|
|
42
|
+
type PostSendResetPassword,
|
|
37
43
|
PostSendResetPasswordFromJSON,
|
|
38
44
|
PostSendResetPasswordToJSON,
|
|
45
|
+
} from '../models/PostSendResetPassword';
|
|
46
|
+
import {
|
|
47
|
+
type PutUser,
|
|
39
48
|
PutUserFromJSON,
|
|
40
49
|
PutUserToJSON,
|
|
41
|
-
} from '../models/
|
|
50
|
+
} from '../models/PutUser';
|
|
42
51
|
|
|
43
52
|
export interface DeleteUserAvatarRequest {
|
|
44
53
|
userId: string;
|
|
@@ -92,7 +101,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
92
101
|
|
|
93
102
|
|
|
94
103
|
let urlPath = `/users/{userId}/avatar`;
|
|
95
|
-
urlPath = urlPath.replace(
|
|
104
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
96
105
|
|
|
97
106
|
return {
|
|
98
107
|
path: urlPath,
|
|
@@ -211,7 +220,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
211
220
|
|
|
212
221
|
|
|
213
222
|
let urlPath = `/users/{userId}`;
|
|
214
|
-
urlPath = urlPath.replace(
|
|
223
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
215
224
|
|
|
216
225
|
return {
|
|
217
226
|
path: urlPath,
|
|
@@ -366,7 +375,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
366
375
|
|
|
367
376
|
|
|
368
377
|
let urlPath = `/users/{userId}/avatar`;
|
|
369
|
-
urlPath = urlPath.replace(
|
|
378
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
370
379
|
|
|
371
380
|
return {
|
|
372
381
|
path: urlPath,
|
|
@@ -421,7 +430,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
421
430
|
|
|
422
431
|
|
|
423
432
|
let urlPath = `/users/{userId}`;
|
|
424
|
-
urlPath = urlPath.replace(
|
|
433
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
425
434
|
|
|
426
435
|
return {
|
|
427
436
|
path: urlPath,
|
package/src/models/GetPortal.ts
CHANGED
|
@@ -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'],
|
package/src/models/PostPortal.ts
CHANGED
|
@@ -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
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 UpdateSelectedPortalResponseSelectedPortal
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateSelectedPortalResponseSelectedPortal {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateSelectedPortalResponseSelectedPortal
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateSelectedPortalResponseSelectedPortal
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Platform subdomain slug for redirecting to the selected portal host.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateSelectedPortalResponseSelectedPortal
|
|
38
|
+
*/
|
|
39
|
+
slug: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateSelectedPortalResponseSelectedPortal interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateSelectedPortalResponseSelectedPortal(value: object): value is UpdateSelectedPortalResponseSelectedPortal {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateSelectedPortalResponseSelectedPortalFromJSON(json: any): UpdateSelectedPortalResponseSelectedPortal {
|
|
53
|
+
return UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponseSelectedPortal {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'slug': json['slug'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UpdateSelectedPortalResponseSelectedPortalToJSON(json: any): UpdateSelectedPortalResponseSelectedPortal {
|
|
69
|
+
return UpdateSelectedPortalResponseSelectedPortalToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdateSelectedPortalResponseSelectedPortalToJSONTyped(value?: UpdateSelectedPortalResponseSelectedPortal | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'slug': value['slug'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
package/src/runtime.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
export const BASE_PATH = "https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1".replace(/\/+$/, "");
|
|
17
16
|
|
|
18
17
|
export interface ConfigurationParameters {
|
|
@@ -91,7 +90,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
90
|
*/
|
|
92
91
|
export class BaseAPI {
|
|
93
92
|
|
|
94
|
-
private static readonly jsonRegex =
|
|
93
|
+
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
95
94
|
private middleware: Middleware[];
|
|
96
95
|
|
|
97
96
|
constructor(protected configuration = DefaultConfig) {
|