@easyedu/js-lsm-api 1.57.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -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 +38 -1
- package/dist/apis/UserApi.js +115 -10
- 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 +38 -1
- package/dist/esm/apis/UserApi.js +108 -3
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/GetUser.d.ts +6 -0
- package/dist/esm/models/GetUser.js +2 -0
- package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/esm/models/GetUserAvatarUpload.js +43 -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 +3 -0
- package/dist/esm/models/index.js +3 -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/GetUser.d.ts +6 -0
- package/dist/models/GetUser.js +2 -0
- package/dist/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/models/GetUserAvatarUpload.js +50 -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 +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/GetUser.md +2 -0
- package/docs/GetUserAvatarUpload.md +34 -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/docs/UserApi.md +138 -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 +150 -12
- package/src/models/GetPortal.ts +16 -0
- package/src/models/GetUser.ts +8 -0
- package/src/models/GetUserAvatarUpload.ts +66 -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 +3 -0
- package/src/runtime.ts +1 -2
|
@@ -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'],
|
package/dist/models/GetUser.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export interface GetUser {
|
|
|
39
39
|
* @memberof GetUser
|
|
40
40
|
*/
|
|
41
41
|
email: string;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned URL for the user's profile photo, or null if none set
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetUser
|
|
46
|
+
*/
|
|
47
|
+
avatarUrl?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Unix timestamp in seconds
|
|
44
50
|
* @type {number}
|
package/dist/models/GetUser.js
CHANGED
|
@@ -46,6 +46,7 @@ function GetUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'firstName': json['first_name'],
|
|
47
47
|
'lastName': json['last_name'],
|
|
48
48
|
'email': json['email'],
|
|
49
|
+
'avatarUrl': json['avatar_url'] == null ? undefined : json['avatar_url'],
|
|
49
50
|
'lastUpdated': json['last_updated'],
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -60,6 +61,7 @@ function GetUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
'first_name': value['firstName'],
|
|
61
62
|
'last_name': value['lastName'],
|
|
62
63
|
'email': value['email'],
|
|
64
|
+
'avatar_url': value['avatarUrl'],
|
|
63
65
|
'last_updated': value['lastUpdated'],
|
|
64
66
|
};
|
|
65
67
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserAvatarUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserAvatarUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Presigned URL for the uploaded avatar image
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserAvatarUpload
|
|
22
|
+
*/
|
|
23
|
+
avatarUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetUserAvatarUpload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetUserAvatarUpload(value: object): value is GetUserAvatarUpload;
|
|
29
|
+
export declare function GetUserAvatarUploadFromJSON(json: any): GetUserAvatarUpload;
|
|
30
|
+
export declare function GetUserAvatarUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserAvatarUpload;
|
|
31
|
+
export declare function GetUserAvatarUploadToJSON(json: any): GetUserAvatarUpload;
|
|
32
|
+
export declare function GetUserAvatarUploadToJSONTyped(value?: GetUserAvatarUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetUserAvatarUpload = instanceOfGetUserAvatarUpload;
|
|
17
|
+
exports.GetUserAvatarUploadFromJSON = GetUserAvatarUploadFromJSON;
|
|
18
|
+
exports.GetUserAvatarUploadFromJSONTyped = GetUserAvatarUploadFromJSONTyped;
|
|
19
|
+
exports.GetUserAvatarUploadToJSON = GetUserAvatarUploadToJSON;
|
|
20
|
+
exports.GetUserAvatarUploadToJSONTyped = GetUserAvatarUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetUserAvatarUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetUserAvatarUpload(value) {
|
|
25
|
+
if (!('avatarUrl' in value) || value['avatarUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetUserAvatarUploadFromJSON(json) {
|
|
30
|
+
return GetUserAvatarUploadFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetUserAvatarUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'avatarUrl': json['avatar_url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetUserAvatarUploadToJSON(json) {
|
|
41
|
+
return GetUserAvatarUploadToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetUserAvatarUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'avatar_url': value['avatarUrl'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateSelectedPortalResponse = instanceOfUpdateSelectedPortalResponse;
|
|
17
|
+
exports.UpdateSelectedPortalResponseFromJSON = UpdateSelectedPortalResponseFromJSON;
|
|
18
|
+
exports.UpdateSelectedPortalResponseFromJSONTyped = UpdateSelectedPortalResponseFromJSONTyped;
|
|
19
|
+
exports.UpdateSelectedPortalResponseToJSON = UpdateSelectedPortalResponseToJSON;
|
|
20
|
+
exports.UpdateSelectedPortalResponseToJSONTyped = UpdateSelectedPortalResponseToJSONTyped;
|
|
21
|
+
const UpdateSelectedPortalResponseSelectedPortal_1 = require("./UpdateSelectedPortalResponseSelectedPortal");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateSelectedPortalResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateSelectedPortalResponse(value) {
|
|
26
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('expiration' in value) || value['expiration'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('selectedPortal' in value) || value['selectedPortal'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function UpdateSelectedPortalResponseFromJSON(json) {
|
|
35
|
+
return UpdateSelectedPortalResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function UpdateSelectedPortalResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'token': json['token'],
|
|
43
|
+
'expiration': json['expiration'],
|
|
44
|
+
'selectedPortal': (0, UpdateSelectedPortalResponseSelectedPortal_1.UpdateSelectedPortalResponseSelectedPortalFromJSON)(json['selected_portal']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UpdateSelectedPortalResponseToJSON(json) {
|
|
48
|
+
return UpdateSelectedPortalResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdateSelectedPortalResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'token': value['token'],
|
|
56
|
+
'expiration': value['expiration'],
|
|
57
|
+
'selected_portal': (0, UpdateSelectedPortalResponseSelectedPortal_1.UpdateSelectedPortalResponseSelectedPortalToJSON)(value['selectedPortal']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateSelectedPortalResponseSelectedPortal = instanceOfUpdateSelectedPortalResponseSelectedPortal;
|
|
17
|
+
exports.UpdateSelectedPortalResponseSelectedPortalFromJSON = UpdateSelectedPortalResponseSelectedPortalFromJSON;
|
|
18
|
+
exports.UpdateSelectedPortalResponseSelectedPortalFromJSONTyped = UpdateSelectedPortalResponseSelectedPortalFromJSONTyped;
|
|
19
|
+
exports.UpdateSelectedPortalResponseSelectedPortalToJSON = UpdateSelectedPortalResponseSelectedPortalToJSON;
|
|
20
|
+
exports.UpdateSelectedPortalResponseSelectedPortalToJSONTyped = UpdateSelectedPortalResponseSelectedPortalToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateSelectedPortalResponseSelectedPortal interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateSelectedPortalResponseSelectedPortal(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UpdateSelectedPortalResponseSelectedPortalFromJSON(json) {
|
|
34
|
+
return UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UpdateSelectedPortalResponseSelectedPortalToJSON(json) {
|
|
47
|
+
return UpdateSelectedPortalResponseSelectedPortalToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UpdateSelectedPortalResponseSelectedPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'slug': value['slug'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ export * from './GetSupportTicketAttachment';
|
|
|
140
140
|
export * from './GetSupportTicketComment';
|
|
141
141
|
export * from './GetSupportTicketList';
|
|
142
142
|
export * from './GetUser';
|
|
143
|
+
export * from './GetUserAvatarUpload';
|
|
143
144
|
export * from './GetUserQuizAttempts';
|
|
144
145
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
145
146
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
@@ -252,3 +253,5 @@ export * from './ShortAnswer';
|
|
|
252
253
|
export * from './ShortAnswer1';
|
|
253
254
|
export * from './SingleAnswer';
|
|
254
255
|
export * from './SupportTicketUser';
|
|
256
|
+
export * from './UpdateSelectedPortalResponse';
|
|
257
|
+
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
package/dist/models/index.js
CHANGED
|
@@ -158,6 +158,7 @@ __exportStar(require("./GetSupportTicketAttachment"), exports);
|
|
|
158
158
|
__exportStar(require("./GetSupportTicketComment"), exports);
|
|
159
159
|
__exportStar(require("./GetSupportTicketList"), exports);
|
|
160
160
|
__exportStar(require("./GetUser"), exports);
|
|
161
|
+
__exportStar(require("./GetUserAvatarUpload"), exports);
|
|
161
162
|
__exportStar(require("./GetUserQuizAttempts"), exports);
|
|
162
163
|
__exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
|
|
163
164
|
__exportStar(require("./GetUserQuizAttemptsAllOfFilters"), exports);
|
|
@@ -270,3 +271,5 @@ __exportStar(require("./ShortAnswer"), exports);
|
|
|
270
271
|
__exportStar(require("./ShortAnswer1"), exports);
|
|
271
272
|
__exportStar(require("./SingleAnswer"), exports);
|
|
272
273
|
__exportStar(require("./SupportTicketUser"), exports);
|
|
274
|
+
__exportStar(require("./UpdateSelectedPortalResponse"), exports);
|
|
275
|
+
__exportStar(require("./UpdateSelectedPortalResponseSelectedPortal"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -219,7 +219,7 @@ class BaseAPI {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
exports.BaseAPI = BaseAPI;
|
|
222
|
-
BaseAPI.jsonRegex =
|
|
222
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
223
223
|
;
|
|
224
224
|
function isBlob(value) {
|
|
225
225
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
package/docs/GetPortal.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`id` | string
|
|
10
10
|
`name` | string
|
|
11
11
|
`parentPortalId` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`clientDomain` | string
|
|
12
14
|
`logoUrl` | string
|
|
13
15
|
`faviconUrl` | string
|
|
14
16
|
`headerBackgroundColor` | string
|
|
@@ -25,6 +27,8 @@ const example = {
|
|
|
25
27
|
"id": null,
|
|
26
28
|
"name": null,
|
|
27
29
|
"parentPortalId": null,
|
|
30
|
+
"slug": null,
|
|
31
|
+
"clientDomain": null,
|
|
28
32
|
"logoUrl": null,
|
|
29
33
|
"faviconUrl": null,
|
|
30
34
|
"headerBackgroundColor": null,
|
package/docs/GetUser.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`firstName` | string
|
|
11
11
|
`lastName` | string
|
|
12
12
|
`email` | string
|
|
13
|
+
`avatarUrl` | string
|
|
13
14
|
`lastUpdated` | number
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"firstName": null,
|
|
24
25
|
"lastName": null,
|
|
25
26
|
"email": null,
|
|
27
|
+
"avatarUrl": null,
|
|
26
28
|
"lastUpdated": null,
|
|
27
29
|
} satisfies GetUser
|
|
28
30
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserAvatarUpload
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`avatarUrl` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { GetUserAvatarUpload } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"avatarUrl": null,
|
|
19
|
+
} satisfies GetUserAvatarUpload
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserAvatarUpload
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/docs/PortalApi.md
CHANGED
|
@@ -701,7 +701,7 @@ No authorization required
|
|
|
701
701
|
|
|
702
702
|
## updateSelectedPortal
|
|
703
703
|
|
|
704
|
-
> updateSelectedPortal(portalId)
|
|
704
|
+
> UpdateSelectedPortalResponse updateSelectedPortal(portalId)
|
|
705
705
|
|
|
706
706
|
Update the users current selected portal. Returns new JWT with updated roles.
|
|
707
707
|
|
|
@@ -744,7 +744,7 @@ example().catch(console.error);
|
|
|
744
744
|
|
|
745
745
|
### Return type
|
|
746
746
|
|
|
747
|
-
|
|
747
|
+
[**UpdateSelectedPortalResponse**](UpdateSelectedPortalResponse.md)
|
|
748
748
|
|
|
749
749
|
### Authorization
|
|
750
750
|
|
|
@@ -753,7 +753,7 @@ No authorization required
|
|
|
753
753
|
### HTTP request headers
|
|
754
754
|
|
|
755
755
|
- **Content-Type**: Not defined
|
|
756
|
-
- **Accept**:
|
|
756
|
+
- **Accept**: `application/json`
|
|
757
757
|
|
|
758
758
|
|
|
759
759
|
### HTTP response details
|
package/docs/PostPortal.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`headerBackgroundColor` | string
|
|
11
11
|
`headerTextColor` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`clientDomain` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"name": null,
|
|
21
23
|
"headerBackgroundColor": null,
|
|
22
24
|
"headerTextColor": null,
|
|
25
|
+
"slug": null,
|
|
26
|
+
"clientDomain": null,
|
|
23
27
|
} satisfies PostPortal
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`headerBackgroundColor` | string
|
|
11
11
|
`headerTextColor` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`clientDomain` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"name": null,
|
|
21
23
|
"headerBackgroundColor": null,
|
|
22
24
|
"headerTextColor": null,
|
|
25
|
+
"slug": null,
|
|
26
|
+
"clientDomain": null,
|
|
23
27
|
} satisfies PutPortalBranding
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateSelectedPortalResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`token` | string
|
|
10
|
+
`expiration` | number
|
|
11
|
+
`selectedPortal` | [UpdateSelectedPortalResponseSelectedPortal](UpdateSelectedPortalResponseSelectedPortal.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { UpdateSelectedPortalResponse } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"token": null,
|
|
21
|
+
"expiration": null,
|
|
22
|
+
"selectedPortal": null,
|
|
23
|
+
} satisfies UpdateSelectedPortalResponse
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateSelectedPortalResponse
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|