@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
|
@@ -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,
|
|
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(
|
|
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(
|
|
82
|
-
urlPath = urlPath.replace(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
}
|
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -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,
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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,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
|
+
}
|
package/dist/esm/models/index.js
CHANGED
package/dist/esm/runtime.js
CHANGED
|
@@ -210,7 +210,7 @@ export class BaseAPI {
|
|
|
210
210
|
return next;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
BaseAPI.jsonRegex =
|
|
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}
|
package/dist/models/GetPortal.js
CHANGED
|
@@ -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.
|
|
@@ -37,6 +37,8 @@ function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'name': json['name'],
|
|
38
38
|
'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
|
|
39
39
|
'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
|
|
40
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
41
|
+
'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function PostPortalToJSON(json) {
|
|
@@ -50,5 +52,7 @@ function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
'name': value['name'],
|
|
51
53
|
'header_background_color': value['headerBackgroundColor'],
|
|
52
54
|
'header_text_color': value['headerTextColor'],
|
|
55
|
+
'slug': value['slug'],
|
|
56
|
+
'client_domain': value['clientDomain'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -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.
|
|
@@ -35,6 +35,8 @@ function PutPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
|
|
37
37
|
'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
|
|
38
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
39
|
+
'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function PutPortalBrandingToJSON(json) {
|
|
@@ -48,5 +50,7 @@ function PutPortalBrandingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
'name': value['name'],
|
|
49
51
|
'header_background_color': value['headerBackgroundColor'],
|
|
50
52
|
'header_text_color': value['headerTextColor'],
|
|
53
|
+
'slug': value['slug'],
|
|
54
|
+
'client_domain': value['clientDomain'],
|
|
51
55
|
};
|
|
52
56
|
}
|
|
@@ -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;
|