@easyedu/js-lsm-api 1.105.0 → 1.106.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/README.md +6 -3
- package/dist/apis/PortalApi.d.ts +2 -2
- package/dist/apis/PortalApi.js +2 -2
- package/dist/esm/apis/PortalApi.d.ts +2 -2
- package/dist/esm/apis/PortalApi.js +2 -2
- package/dist/esm/models/GetPortal.d.ts +11 -2
- package/dist/esm/models/GetPortal.js +5 -0
- package/dist/esm/models/GetPublicPortalBranding.d.ts +11 -2
- package/dist/esm/models/GetPublicPortalBranding.js +5 -0
- package/dist/esm/models/PortalBrandColorsV1.d.ts +194 -0
- package/dist/esm/models/PortalBrandColorsV1.js +151 -0
- package/dist/esm/models/PortalBrandThemeV1.d.ts +53 -0
- package/dist/esm/models/PortalBrandThemeV1.js +59 -0
- package/dist/esm/models/PortalBrandTypographyV1.d.ts +80 -0
- package/dist/esm/models/PortalBrandTypographyV1.js +78 -0
- package/dist/esm/models/PostPortal.d.ts +9 -0
- package/dist/esm/models/PostPortal.js +3 -0
- package/dist/esm/models/PutPortalBranding.d.ts +9 -0
- package/dist/esm/models/PutPortalBranding.js +3 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/GetPortal.d.ts +11 -2
- package/dist/models/GetPortal.js +5 -0
- package/dist/models/GetPublicPortalBranding.d.ts +11 -2
- package/dist/models/GetPublicPortalBranding.js +5 -0
- package/dist/models/PortalBrandColorsV1.d.ts +194 -0
- package/dist/models/PortalBrandColorsV1.js +158 -0
- package/dist/models/PortalBrandThemeV1.d.ts +53 -0
- package/dist/models/PortalBrandThemeV1.js +67 -0
- package/dist/models/PortalBrandTypographyV1.d.ts +80 -0
- package/dist/models/PortalBrandTypographyV1.js +86 -0
- package/dist/models/PostPortal.d.ts +9 -0
- package/dist/models/PostPortal.js +3 -0
- package/dist/models/PutPortalBranding.d.ts +9 -0
- package/dist/models/PutPortalBranding.js +3 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/GetPortal.md +2 -0
- package/docs/GetPublicPortalBranding.md +2 -0
- package/docs/PortalApi.md +2 -2
- package/docs/PortalBrandColorsV1.md +89 -0
- package/docs/PortalBrandThemeV1.md +39 -0
- package/docs/PortalBrandTypographyV1.md +47 -0
- package/docs/PostPortal.md +2 -0
- package/docs/PutPortalBranding.md +2 -0
- package/package.json +1 -1
- package/src/apis/PortalApi.ts +2 -2
- package/src/models/GetPortal.ts +21 -2
- package/src/models/GetPublicPortalBranding.ts +21 -2
- package/src/models/PortalBrandColorsV1.ts +309 -0
- package/src/models/PortalBrandThemeV1.ts +109 -0
- package/src/models/PortalBrandTypographyV1.ts +135 -0
- package/src/models/PostPortal.ts +18 -0
- package/src/models/PutPortalBranding.ts +18 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,109 @@
|
|
|
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 { PortalBrandColorsV1 } from './PortalBrandColorsV1';
|
|
17
|
+
import {
|
|
18
|
+
PortalBrandColorsV1FromJSON,
|
|
19
|
+
PortalBrandColorsV1FromJSONTyped,
|
|
20
|
+
PortalBrandColorsV1ToJSON,
|
|
21
|
+
PortalBrandColorsV1ToJSONTyped,
|
|
22
|
+
} from './PortalBrandColorsV1';
|
|
23
|
+
import type { PortalBrandTypographyV1 } from './PortalBrandTypographyV1';
|
|
24
|
+
import {
|
|
25
|
+
PortalBrandTypographyV1FromJSON,
|
|
26
|
+
PortalBrandTypographyV1FromJSONTyped,
|
|
27
|
+
PortalBrandTypographyV1ToJSON,
|
|
28
|
+
PortalBrandTypographyV1ToJSONTyped,
|
|
29
|
+
} from './PortalBrandTypographyV1';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Complete version 1 portal application theme. Updates replace this object as a whole.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PortalBrandThemeV1
|
|
35
|
+
*/
|
|
36
|
+
export interface PortalBrandThemeV1 {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PortalBrandThemeV1SchemaVersionEnum}
|
|
40
|
+
* @memberof PortalBrandThemeV1
|
|
41
|
+
*/
|
|
42
|
+
schemaVersion: PortalBrandThemeV1SchemaVersionEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PortalBrandTypographyV1}
|
|
46
|
+
* @memberof PortalBrandThemeV1
|
|
47
|
+
*/
|
|
48
|
+
typography: PortalBrandTypographyV1;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {PortalBrandColorsV1}
|
|
52
|
+
* @memberof PortalBrandThemeV1
|
|
53
|
+
*/
|
|
54
|
+
colors: PortalBrandColorsV1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const PortalBrandThemeV1SchemaVersionEnum = {
|
|
62
|
+
V1: 'v1'
|
|
63
|
+
} as const;
|
|
64
|
+
export type PortalBrandThemeV1SchemaVersionEnum = typeof PortalBrandThemeV1SchemaVersionEnum[keyof typeof PortalBrandThemeV1SchemaVersionEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the PortalBrandThemeV1 interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfPortalBrandThemeV1(value: object): value is PortalBrandThemeV1 {
|
|
71
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined) return false;
|
|
72
|
+
if (!('typography' in value) || value['typography'] === undefined) return false;
|
|
73
|
+
if (!('colors' in value) || value['colors'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PortalBrandThemeV1FromJSON(json: any): PortalBrandThemeV1 {
|
|
78
|
+
return PortalBrandThemeV1FromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function PortalBrandThemeV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalBrandThemeV1 {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'schemaVersion': json['schema_version'],
|
|
88
|
+
'typography': PortalBrandTypographyV1FromJSON(json['typography']),
|
|
89
|
+
'colors': PortalBrandColorsV1FromJSON(json['colors']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function PortalBrandThemeV1ToJSON(json: any): PortalBrandThemeV1 {
|
|
94
|
+
return PortalBrandThemeV1ToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function PortalBrandThemeV1ToJSONTyped(value?: PortalBrandThemeV1 | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'schema_version': value['schemaVersion'],
|
|
105
|
+
'typography': PortalBrandTypographyV1ToJSON(value['typography']),
|
|
106
|
+
'colors': PortalBrandColorsV1ToJSON(value['colors']),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
* Typography settings for a portal-owned light application theme.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PortalBrandTypographyV1
|
|
20
|
+
*/
|
|
21
|
+
export interface PortalBrandTypographyV1 {
|
|
22
|
+
/**
|
|
23
|
+
* Curated application font family. Values map to bundled frontend fonts.
|
|
24
|
+
* @type {PortalBrandTypographyV1FontFamilyEnum}
|
|
25
|
+
* @memberof PortalBrandTypographyV1
|
|
26
|
+
*/
|
|
27
|
+
fontFamily: PortalBrandTypographyV1FontFamilyEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Base application font size in CSS pixels.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PortalBrandTypographyV1
|
|
32
|
+
*/
|
|
33
|
+
baseFontSizePx: number;
|
|
34
|
+
/**
|
|
35
|
+
* Regular text weight. Supported values are 300 through 800 in increments of 100.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PortalBrandTypographyV1
|
|
38
|
+
*/
|
|
39
|
+
fontWeightRegular: number;
|
|
40
|
+
/**
|
|
41
|
+
* Emphasized text weight. Supported values are 300 through 800 in increments of 100.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PortalBrandTypographyV1
|
|
44
|
+
*/
|
|
45
|
+
fontWeightMedium: number;
|
|
46
|
+
/**
|
|
47
|
+
* Heading and bold text weight. Supported values are 300 through 800 in increments of 100.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PortalBrandTypographyV1
|
|
50
|
+
*/
|
|
51
|
+
fontWeightBold: number;
|
|
52
|
+
/**
|
|
53
|
+
* Unitless line-height multiplier for normal application text.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PortalBrandTypographyV1
|
|
56
|
+
*/
|
|
57
|
+
lineHeight: number;
|
|
58
|
+
/**
|
|
59
|
+
* Letter spacing for normal application text, in em units.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof PortalBrandTypographyV1
|
|
62
|
+
*/
|
|
63
|
+
letterSpacingEm: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const PortalBrandTypographyV1FontFamilyEnum = {
|
|
71
|
+
Inter: 'Inter',
|
|
72
|
+
Roboto: 'Roboto',
|
|
73
|
+
OpenSans: 'Open Sans',
|
|
74
|
+
Montserrat: 'Montserrat',
|
|
75
|
+
SourceSans3: 'Source Sans 3',
|
|
76
|
+
NunitoSans: 'Nunito Sans'
|
|
77
|
+
} as const;
|
|
78
|
+
export type PortalBrandTypographyV1FontFamilyEnum = typeof PortalBrandTypographyV1FontFamilyEnum[keyof typeof PortalBrandTypographyV1FontFamilyEnum];
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the PortalBrandTypographyV1 interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfPortalBrandTypographyV1(value: object): value is PortalBrandTypographyV1 {
|
|
85
|
+
if (!('fontFamily' in value) || value['fontFamily'] === undefined) return false;
|
|
86
|
+
if (!('baseFontSizePx' in value) || value['baseFontSizePx'] === undefined) return false;
|
|
87
|
+
if (!('fontWeightRegular' in value) || value['fontWeightRegular'] === undefined) return false;
|
|
88
|
+
if (!('fontWeightMedium' in value) || value['fontWeightMedium'] === undefined) return false;
|
|
89
|
+
if (!('fontWeightBold' in value) || value['fontWeightBold'] === undefined) return false;
|
|
90
|
+
if (!('lineHeight' in value) || value['lineHeight'] === undefined) return false;
|
|
91
|
+
if (!('letterSpacingEm' in value) || value['letterSpacingEm'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function PortalBrandTypographyV1FromJSON(json: any): PortalBrandTypographyV1 {
|
|
96
|
+
return PortalBrandTypographyV1FromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function PortalBrandTypographyV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalBrandTypographyV1 {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'fontFamily': json['font_family'],
|
|
106
|
+
'baseFontSizePx': json['base_font_size_px'],
|
|
107
|
+
'fontWeightRegular': json['font_weight_regular'],
|
|
108
|
+
'fontWeightMedium': json['font_weight_medium'],
|
|
109
|
+
'fontWeightBold': json['font_weight_bold'],
|
|
110
|
+
'lineHeight': json['line_height'],
|
|
111
|
+
'letterSpacingEm': json['letter_spacing_em'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function PortalBrandTypographyV1ToJSON(json: any): PortalBrandTypographyV1 {
|
|
116
|
+
return PortalBrandTypographyV1ToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function PortalBrandTypographyV1ToJSONTyped(value?: PortalBrandTypographyV1 | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'font_family': value['fontFamily'],
|
|
127
|
+
'base_font_size_px': value['baseFontSizePx'],
|
|
128
|
+
'font_weight_regular': value['fontWeightRegular'],
|
|
129
|
+
'font_weight_medium': value['fontWeightMedium'],
|
|
130
|
+
'font_weight_bold': value['fontWeightBold'],
|
|
131
|
+
'line_height': value['lineHeight'],
|
|
132
|
+
'letter_spacing_em': value['letterSpacingEm'],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
package/src/models/PostPortal.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PortalBrandThemeV1 } from './PortalBrandThemeV1';
|
|
17
|
+
import {
|
|
18
|
+
PortalBrandThemeV1FromJSON,
|
|
19
|
+
PortalBrandThemeV1FromJSONTyped,
|
|
20
|
+
PortalBrandThemeV1ToJSON,
|
|
21
|
+
PortalBrandThemeV1ToJSONTyped,
|
|
22
|
+
} from './PortalBrandThemeV1';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -29,14 +37,22 @@ export interface PostPortal {
|
|
|
29
37
|
* Hex color value for portal background (e.g.,
|
|
30
38
|
* @type {string}
|
|
31
39
|
* @memberof PostPortal
|
|
40
|
+
* @deprecated
|
|
32
41
|
*/
|
|
33
42
|
headerBackgroundColor?: string;
|
|
34
43
|
/**
|
|
35
44
|
* Hex color value for portal text (e.g.,
|
|
36
45
|
* @type {string}
|
|
37
46
|
* @memberof PostPortal
|
|
47
|
+
* @deprecated
|
|
38
48
|
*/
|
|
39
49
|
headerTextColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PortalBrandThemeV1}
|
|
53
|
+
* @memberof PostPortal
|
|
54
|
+
*/
|
|
55
|
+
brandingTheme?: PortalBrandThemeV1;
|
|
40
56
|
/**
|
|
41
57
|
* Platform subdomain slug used for '{slug}.edaxu.com'
|
|
42
58
|
* @type {string}
|
|
@@ -72,6 +88,7 @@ export function PostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
72
88
|
'name': json['name'],
|
|
73
89
|
'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
|
|
74
90
|
'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
|
|
91
|
+
'brandingTheme': json['branding_theme'] == null ? undefined : PortalBrandThemeV1FromJSON(json['branding_theme']),
|
|
75
92
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
76
93
|
'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
|
|
77
94
|
};
|
|
@@ -91,6 +108,7 @@ export function PostPortalToJSONTyped(value?: PostPortal | null, ignoreDiscrimin
|
|
|
91
108
|
'name': value['name'],
|
|
92
109
|
'header_background_color': value['headerBackgroundColor'],
|
|
93
110
|
'header_text_color': value['headerTextColor'],
|
|
111
|
+
'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
|
|
94
112
|
'slug': value['slug'],
|
|
95
113
|
'client_domain': value['clientDomain'],
|
|
96
114
|
};
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PortalBrandThemeV1 } from './PortalBrandThemeV1';
|
|
17
|
+
import {
|
|
18
|
+
PortalBrandThemeV1FromJSON,
|
|
19
|
+
PortalBrandThemeV1FromJSONTyped,
|
|
20
|
+
PortalBrandThemeV1ToJSON,
|
|
21
|
+
PortalBrandThemeV1ToJSONTyped,
|
|
22
|
+
} from './PortalBrandThemeV1';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -29,14 +37,22 @@ export interface PutPortalBranding {
|
|
|
29
37
|
* Hex color value for portal background (e.g.,
|
|
30
38
|
* @type {string}
|
|
31
39
|
* @memberof PutPortalBranding
|
|
40
|
+
* @deprecated
|
|
32
41
|
*/
|
|
33
42
|
headerBackgroundColor?: string;
|
|
34
43
|
/**
|
|
35
44
|
* Hex color value for portal text (e.g.,
|
|
36
45
|
* @type {string}
|
|
37
46
|
* @memberof PutPortalBranding
|
|
47
|
+
* @deprecated
|
|
38
48
|
*/
|
|
39
49
|
headerTextColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PortalBrandThemeV1}
|
|
53
|
+
* @memberof PutPortalBranding
|
|
54
|
+
*/
|
|
55
|
+
brandingTheme?: PortalBrandThemeV1;
|
|
40
56
|
/**
|
|
41
57
|
* Platform subdomain slug used for '{slug}.edaxu.com'. Set null to inherit from an ancestor.
|
|
42
58
|
* @type {string}
|
|
@@ -71,6 +87,7 @@ export function PutPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
71
87
|
'name': json['name'] == null ? undefined : json['name'],
|
|
72
88
|
'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
|
|
73
89
|
'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
|
|
90
|
+
'brandingTheme': json['branding_theme'] == null ? undefined : PortalBrandThemeV1FromJSON(json['branding_theme']),
|
|
74
91
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
75
92
|
'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
|
|
76
93
|
};
|
|
@@ -90,6 +107,7 @@ export function PutPortalBrandingToJSONTyped(value?: PutPortalBranding | null, i
|
|
|
90
107
|
'name': value['name'],
|
|
91
108
|
'header_background_color': value['headerBackgroundColor'],
|
|
92
109
|
'header_text_color': value['headerTextColor'],
|
|
110
|
+
'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
|
|
93
111
|
'slug': value['slug'],
|
|
94
112
|
'client_domain': value['clientDomain'],
|
|
95
113
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -159,6 +159,9 @@ export * from './LoginResAuthData';
|
|
|
159
159
|
export * from './LoginResUserData';
|
|
160
160
|
export * from './LoginResUserDataSelectedPortal';
|
|
161
161
|
export * from './Paginated';
|
|
162
|
+
export * from './PortalBrandColorsV1';
|
|
163
|
+
export * from './PortalBrandThemeV1';
|
|
164
|
+
export * from './PortalBrandTypographyV1';
|
|
162
165
|
export * from './PortalSublicense';
|
|
163
166
|
export * from './PortalUserFieldConfig';
|
|
164
167
|
export * from './PortalUserFieldDefinition';
|