@easyedu/js-lsm-api 1.105.0 → 1.107.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 +9 -5
- package/dist/apis/CourseApi.d.ts +30 -2
- package/dist/apis/CourseApi.js +59 -3
- package/dist/apis/CourseShareApi.d.ts +21 -7
- package/dist/apis/CourseShareApi.js +24 -11
- package/dist/apis/PortalApi.d.ts +2 -2
- package/dist/apis/PortalApi.js +2 -2
- package/dist/esm/apis/CourseApi.d.ts +30 -2
- package/dist/esm/apis/CourseApi.js +58 -2
- package/dist/esm/apis/CourseShareApi.d.ts +21 -7
- package/dist/esm/apis/CourseShareApi.js +23 -10
- package/dist/esm/apis/PortalApi.d.ts +2 -2
- package/dist/esm/apis/PortalApi.js +2 -2
- package/dist/esm/models/CourseShare.d.ts +57 -9
- package/dist/esm/models/CourseShare.js +32 -0
- package/dist/esm/models/GetCourseExport.d.ts +6 -0
- package/dist/esm/models/GetCourseExport.js +4 -0
- 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/PostOfferCatalog.d.ts +1 -1
- package/dist/esm/models/PostOfferCourse.d.ts +1 -1
- 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/CourseShare.d.ts +57 -9
- package/dist/models/CourseShare.js +32 -0
- package/dist/models/GetCourseExport.d.ts +6 -0
- package/dist/models/GetCourseExport.js +4 -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/PostOfferCatalog.d.ts +1 -1
- package/dist/models/PostOfferCourse.d.ts +1 -1
- 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/CourseApi.md +79 -1
- package/docs/CourseShare.md +19 -3
- package/docs/CourseShareApi.md +20 -9
- package/docs/GetCourseExport.md +2 -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/CourseApi.ts +72 -2
- package/src/apis/CourseShareApi.ts +28 -9
- package/src/apis/PortalApi.ts +2 -2
- package/src/models/CourseShare.ts +81 -9
- package/src/models/GetCourseExport.ts +9 -0
- 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/PostOfferCatalog.ts +1 -1
- package/src/models/PostOfferCourse.ts +1 -1
- package/src/models/PostPortal.ts +18 -0
- package/src/models/PutPortalBranding.ts +18 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,194 @@
|
|
|
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
|
+
* Semantic colors for a portal-owned light application theme. Every value is an opaque hexadecimal color.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PortalBrandColorsV1
|
|
16
|
+
*/
|
|
17
|
+
export interface PortalBrandColorsV1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PortalBrandColorsV1
|
|
22
|
+
*/
|
|
23
|
+
headerBackground: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PortalBrandColorsV1
|
|
28
|
+
*/
|
|
29
|
+
headerForeground: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PortalBrandColorsV1
|
|
34
|
+
*/
|
|
35
|
+
navigationBackground: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PortalBrandColorsV1
|
|
40
|
+
*/
|
|
41
|
+
navigationForeground: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PortalBrandColorsV1
|
|
46
|
+
*/
|
|
47
|
+
primaryAction: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PortalBrandColorsV1
|
|
52
|
+
*/
|
|
53
|
+
onPrimaryAction: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PortalBrandColorsV1
|
|
58
|
+
*/
|
|
59
|
+
secondaryAction: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PortalBrandColorsV1
|
|
64
|
+
*/
|
|
65
|
+
onSecondaryAction: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PortalBrandColorsV1
|
|
70
|
+
*/
|
|
71
|
+
pageBackground: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PortalBrandColorsV1
|
|
76
|
+
*/
|
|
77
|
+
surfaceBackground: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PortalBrandColorsV1
|
|
82
|
+
*/
|
|
83
|
+
textPrimary: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PortalBrandColorsV1
|
|
88
|
+
*/
|
|
89
|
+
textSecondary: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof PortalBrandColorsV1
|
|
94
|
+
*/
|
|
95
|
+
divider: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof PortalBrandColorsV1
|
|
100
|
+
*/
|
|
101
|
+
link: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof PortalBrandColorsV1
|
|
106
|
+
*/
|
|
107
|
+
linkHover: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof PortalBrandColorsV1
|
|
112
|
+
*/
|
|
113
|
+
active: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PortalBrandColorsV1
|
|
118
|
+
*/
|
|
119
|
+
onActive: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PortalBrandColorsV1
|
|
124
|
+
*/
|
|
125
|
+
focusRing: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof PortalBrandColorsV1
|
|
130
|
+
*/
|
|
131
|
+
progress: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof PortalBrandColorsV1
|
|
136
|
+
*/
|
|
137
|
+
progressTrack: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof PortalBrandColorsV1
|
|
142
|
+
*/
|
|
143
|
+
success: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof PortalBrandColorsV1
|
|
148
|
+
*/
|
|
149
|
+
onSuccess: string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof PortalBrandColorsV1
|
|
154
|
+
*/
|
|
155
|
+
warning: string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof PortalBrandColorsV1
|
|
160
|
+
*/
|
|
161
|
+
onWarning: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof PortalBrandColorsV1
|
|
166
|
+
*/
|
|
167
|
+
error: string;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof PortalBrandColorsV1
|
|
172
|
+
*/
|
|
173
|
+
onError: string;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof PortalBrandColorsV1
|
|
178
|
+
*/
|
|
179
|
+
info: string;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof PortalBrandColorsV1
|
|
184
|
+
*/
|
|
185
|
+
onInfo: string;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Check if a given object implements the PortalBrandColorsV1 interface.
|
|
189
|
+
*/
|
|
190
|
+
export declare function instanceOfPortalBrandColorsV1(value: object): value is PortalBrandColorsV1;
|
|
191
|
+
export declare function PortalBrandColorsV1FromJSON(json: any): PortalBrandColorsV1;
|
|
192
|
+
export declare function PortalBrandColorsV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalBrandColorsV1;
|
|
193
|
+
export declare function PortalBrandColorsV1ToJSON(json: any): PortalBrandColorsV1;
|
|
194
|
+
export declare function PortalBrandColorsV1ToJSONTyped(value?: PortalBrandColorsV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,151 @@
|
|
|
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 PortalBrandColorsV1 interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPortalBrandColorsV1(value) {
|
|
18
|
+
if (!('headerBackground' in value) || value['headerBackground'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('headerForeground' in value) || value['headerForeground'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('navigationBackground' in value) || value['navigationBackground'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('navigationForeground' in value) || value['navigationForeground'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('primaryAction' in value) || value['primaryAction'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('onPrimaryAction' in value) || value['onPrimaryAction'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('secondaryAction' in value) || value['secondaryAction'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('onSecondaryAction' in value) || value['onSecondaryAction'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('pageBackground' in value) || value['pageBackground'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('surfaceBackground' in value) || value['surfaceBackground'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('textPrimary' in value) || value['textPrimary'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('textSecondary' in value) || value['textSecondary'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('divider' in value) || value['divider'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('link' in value) || value['link'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('linkHover' in value) || value['linkHover'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('onActive' in value) || value['onActive'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('focusRing' in value) || value['focusRing'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('progressTrack' in value) || value['progressTrack'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('onSuccess' in value) || value['onSuccess'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('onWarning' in value) || value['onWarning'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('onError' in value) || value['onError'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('info' in value) || value['info'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('onInfo' in value) || value['onInfo'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
export function PortalBrandColorsV1FromJSON(json) {
|
|
77
|
+
return PortalBrandColorsV1FromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
export function PortalBrandColorsV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
80
|
+
if (json == null) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'headerBackground': json['header_background'],
|
|
85
|
+
'headerForeground': json['header_foreground'],
|
|
86
|
+
'navigationBackground': json['navigation_background'],
|
|
87
|
+
'navigationForeground': json['navigation_foreground'],
|
|
88
|
+
'primaryAction': json['primary_action'],
|
|
89
|
+
'onPrimaryAction': json['on_primary_action'],
|
|
90
|
+
'secondaryAction': json['secondary_action'],
|
|
91
|
+
'onSecondaryAction': json['on_secondary_action'],
|
|
92
|
+
'pageBackground': json['page_background'],
|
|
93
|
+
'surfaceBackground': json['surface_background'],
|
|
94
|
+
'textPrimary': json['text_primary'],
|
|
95
|
+
'textSecondary': json['text_secondary'],
|
|
96
|
+
'divider': json['divider'],
|
|
97
|
+
'link': json['link'],
|
|
98
|
+
'linkHover': json['link_hover'],
|
|
99
|
+
'active': json['active'],
|
|
100
|
+
'onActive': json['on_active'],
|
|
101
|
+
'focusRing': json['focus_ring'],
|
|
102
|
+
'progress': json['progress'],
|
|
103
|
+
'progressTrack': json['progress_track'],
|
|
104
|
+
'success': json['success'],
|
|
105
|
+
'onSuccess': json['on_success'],
|
|
106
|
+
'warning': json['warning'],
|
|
107
|
+
'onWarning': json['on_warning'],
|
|
108
|
+
'error': json['error'],
|
|
109
|
+
'onError': json['on_error'],
|
|
110
|
+
'info': json['info'],
|
|
111
|
+
'onInfo': json['on_info'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export function PortalBrandColorsV1ToJSON(json) {
|
|
115
|
+
return PortalBrandColorsV1ToJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
export function PortalBrandColorsV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
'header_background': value['headerBackground'],
|
|
123
|
+
'header_foreground': value['headerForeground'],
|
|
124
|
+
'navigation_background': value['navigationBackground'],
|
|
125
|
+
'navigation_foreground': value['navigationForeground'],
|
|
126
|
+
'primary_action': value['primaryAction'],
|
|
127
|
+
'on_primary_action': value['onPrimaryAction'],
|
|
128
|
+
'secondary_action': value['secondaryAction'],
|
|
129
|
+
'on_secondary_action': value['onSecondaryAction'],
|
|
130
|
+
'page_background': value['pageBackground'],
|
|
131
|
+
'surface_background': value['surfaceBackground'],
|
|
132
|
+
'text_primary': value['textPrimary'],
|
|
133
|
+
'text_secondary': value['textSecondary'],
|
|
134
|
+
'divider': value['divider'],
|
|
135
|
+
'link': value['link'],
|
|
136
|
+
'link_hover': value['linkHover'],
|
|
137
|
+
'active': value['active'],
|
|
138
|
+
'on_active': value['onActive'],
|
|
139
|
+
'focus_ring': value['focusRing'],
|
|
140
|
+
'progress': value['progress'],
|
|
141
|
+
'progress_track': value['progressTrack'],
|
|
142
|
+
'success': value['success'],
|
|
143
|
+
'on_success': value['onSuccess'],
|
|
144
|
+
'warning': value['warning'],
|
|
145
|
+
'on_warning': value['onWarning'],
|
|
146
|
+
'error': value['error'],
|
|
147
|
+
'on_error': value['onError'],
|
|
148
|
+
'info': value['info'],
|
|
149
|
+
'on_info': value['onInfo'],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { PortalBrandColorsV1 } from './PortalBrandColorsV1';
|
|
13
|
+
import type { PortalBrandTypographyV1 } from './PortalBrandTypographyV1';
|
|
14
|
+
/**
|
|
15
|
+
* Complete version 1 portal application theme. Updates replace this object as a whole.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PortalBrandThemeV1
|
|
18
|
+
*/
|
|
19
|
+
export interface PortalBrandThemeV1 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PortalBrandThemeV1SchemaVersionEnum}
|
|
23
|
+
* @memberof PortalBrandThemeV1
|
|
24
|
+
*/
|
|
25
|
+
schemaVersion: PortalBrandThemeV1SchemaVersionEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PortalBrandTypographyV1}
|
|
29
|
+
* @memberof PortalBrandThemeV1
|
|
30
|
+
*/
|
|
31
|
+
typography: PortalBrandTypographyV1;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {PortalBrandColorsV1}
|
|
35
|
+
* @memberof PortalBrandThemeV1
|
|
36
|
+
*/
|
|
37
|
+
colors: PortalBrandColorsV1;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export declare const PortalBrandThemeV1SchemaVersionEnum: {
|
|
43
|
+
readonly V1: "v1";
|
|
44
|
+
};
|
|
45
|
+
export type PortalBrandThemeV1SchemaVersionEnum = typeof PortalBrandThemeV1SchemaVersionEnum[keyof typeof PortalBrandThemeV1SchemaVersionEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PortalBrandThemeV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfPortalBrandThemeV1(value: object): value is PortalBrandThemeV1;
|
|
50
|
+
export declare function PortalBrandThemeV1FromJSON(json: any): PortalBrandThemeV1;
|
|
51
|
+
export declare function PortalBrandThemeV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalBrandThemeV1;
|
|
52
|
+
export declare function PortalBrandThemeV1ToJSON(json: any): PortalBrandThemeV1;
|
|
53
|
+
export declare function PortalBrandThemeV1ToJSONTyped(value?: PortalBrandThemeV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { PortalBrandColorsV1FromJSON, PortalBrandColorsV1ToJSON, } from './PortalBrandColorsV1';
|
|
15
|
+
import { PortalBrandTypographyV1FromJSON, PortalBrandTypographyV1ToJSON, } from './PortalBrandTypographyV1';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const PortalBrandThemeV1SchemaVersionEnum = {
|
|
20
|
+
V1: 'v1'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PortalBrandThemeV1 interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPortalBrandThemeV1(value) {
|
|
26
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('typography' in value) || value['typography'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('colors' in value) || value['colors'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function PortalBrandThemeV1FromJSON(json) {
|
|
35
|
+
return PortalBrandThemeV1FromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PortalBrandThemeV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'schemaVersion': json['schema_version'],
|
|
43
|
+
'typography': PortalBrandTypographyV1FromJSON(json['typography']),
|
|
44
|
+
'colors': PortalBrandColorsV1FromJSON(json['colors']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function PortalBrandThemeV1ToJSON(json) {
|
|
48
|
+
return PortalBrandThemeV1ToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function PortalBrandThemeV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'schema_version': value['schemaVersion'],
|
|
56
|
+
'typography': PortalBrandTypographyV1ToJSON(value['typography']),
|
|
57
|
+
'colors': PortalBrandColorsV1ToJSON(value['colors']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
* Typography settings for a portal-owned light application theme.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PortalBrandTypographyV1
|
|
16
|
+
*/
|
|
17
|
+
export interface PortalBrandTypographyV1 {
|
|
18
|
+
/**
|
|
19
|
+
* Curated application font family. Values map to bundled frontend fonts.
|
|
20
|
+
* @type {PortalBrandTypographyV1FontFamilyEnum}
|
|
21
|
+
* @memberof PortalBrandTypographyV1
|
|
22
|
+
*/
|
|
23
|
+
fontFamily: PortalBrandTypographyV1FontFamilyEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Base application font size in CSS pixels.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PortalBrandTypographyV1
|
|
28
|
+
*/
|
|
29
|
+
baseFontSizePx: number;
|
|
30
|
+
/**
|
|
31
|
+
* Regular text weight. Supported values are 300 through 800 in increments of 100.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PortalBrandTypographyV1
|
|
34
|
+
*/
|
|
35
|
+
fontWeightRegular: number;
|
|
36
|
+
/**
|
|
37
|
+
* Emphasized text weight. Supported values are 300 through 800 in increments of 100.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PortalBrandTypographyV1
|
|
40
|
+
*/
|
|
41
|
+
fontWeightMedium: number;
|
|
42
|
+
/**
|
|
43
|
+
* Heading and bold text weight. Supported values are 300 through 800 in increments of 100.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PortalBrandTypographyV1
|
|
46
|
+
*/
|
|
47
|
+
fontWeightBold: number;
|
|
48
|
+
/**
|
|
49
|
+
* Unitless line-height multiplier for normal application text.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PortalBrandTypographyV1
|
|
52
|
+
*/
|
|
53
|
+
lineHeight: number;
|
|
54
|
+
/**
|
|
55
|
+
* Letter spacing for normal application text, in em units.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PortalBrandTypographyV1
|
|
58
|
+
*/
|
|
59
|
+
letterSpacingEm: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const PortalBrandTypographyV1FontFamilyEnum: {
|
|
65
|
+
readonly Inter: "Inter";
|
|
66
|
+
readonly Roboto: "Roboto";
|
|
67
|
+
readonly OpenSans: "Open Sans";
|
|
68
|
+
readonly Montserrat: "Montserrat";
|
|
69
|
+
readonly SourceSans3: "Source Sans 3";
|
|
70
|
+
readonly NunitoSans: "Nunito Sans";
|
|
71
|
+
};
|
|
72
|
+
export type PortalBrandTypographyV1FontFamilyEnum = typeof PortalBrandTypographyV1FontFamilyEnum[keyof typeof PortalBrandTypographyV1FontFamilyEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the PortalBrandTypographyV1 interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfPortalBrandTypographyV1(value: object): value is PortalBrandTypographyV1;
|
|
77
|
+
export declare function PortalBrandTypographyV1FromJSON(json: any): PortalBrandTypographyV1;
|
|
78
|
+
export declare function PortalBrandTypographyV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalBrandTypographyV1;
|
|
79
|
+
export declare function PortalBrandTypographyV1ToJSON(json: any): PortalBrandTypographyV1;
|
|
80
|
+
export declare function PortalBrandTypographyV1ToJSONTyped(value?: PortalBrandTypographyV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PortalBrandTypographyV1FontFamilyEnum = {
|
|
18
|
+
Inter: 'Inter',
|
|
19
|
+
Roboto: 'Roboto',
|
|
20
|
+
OpenSans: 'Open Sans',
|
|
21
|
+
Montserrat: 'Montserrat',
|
|
22
|
+
SourceSans3: 'Source Sans 3',
|
|
23
|
+
NunitoSans: 'Nunito Sans'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PortalBrandTypographyV1 interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfPortalBrandTypographyV1(value) {
|
|
29
|
+
if (!('fontFamily' in value) || value['fontFamily'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('baseFontSizePx' in value) || value['baseFontSizePx'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('fontWeightRegular' in value) || value['fontWeightRegular'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('fontWeightMedium' in value) || value['fontWeightMedium'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('fontWeightBold' in value) || value['fontWeightBold'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('lineHeight' in value) || value['lineHeight'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('letterSpacingEm' in value) || value['letterSpacingEm'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
export function PortalBrandTypographyV1FromJSON(json) {
|
|
46
|
+
return PortalBrandTypographyV1FromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PortalBrandTypographyV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'fontFamily': json['font_family'],
|
|
54
|
+
'baseFontSizePx': json['base_font_size_px'],
|
|
55
|
+
'fontWeightRegular': json['font_weight_regular'],
|
|
56
|
+
'fontWeightMedium': json['font_weight_medium'],
|
|
57
|
+
'fontWeightBold': json['font_weight_bold'],
|
|
58
|
+
'lineHeight': json['line_height'],
|
|
59
|
+
'letterSpacingEm': json['letter_spacing_em'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function PortalBrandTypographyV1ToJSON(json) {
|
|
63
|
+
return PortalBrandTypographyV1ToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function PortalBrandTypographyV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'font_family': value['fontFamily'],
|
|
71
|
+
'base_font_size_px': value['baseFontSizePx'],
|
|
72
|
+
'font_weight_regular': value['fontWeightRegular'],
|
|
73
|
+
'font_weight_medium': value['fontWeightMedium'],
|
|
74
|
+
'font_weight_bold': value['fontWeightBold'],
|
|
75
|
+
'line_height': value['lineHeight'],
|
|
76
|
+
'letter_spacing_em': value['letterSpacingEm'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PortalBrandThemeV1 } from './PortalBrandThemeV1';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -25,14 +26,22 @@ export interface PostPortal {
|
|
|
25
26
|
* Hex color value for portal background (e.g.,
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof PostPortal
|
|
29
|
+
* @deprecated
|
|
28
30
|
*/
|
|
29
31
|
headerBackgroundColor?: string;
|
|
30
32
|
/**
|
|
31
33
|
* Hex color value for portal text (e.g.,
|
|
32
34
|
* @type {string}
|
|
33
35
|
* @memberof PostPortal
|
|
36
|
+
* @deprecated
|
|
34
37
|
*/
|
|
35
38
|
headerTextColor?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {PortalBrandThemeV1}
|
|
42
|
+
* @memberof PostPortal
|
|
43
|
+
*/
|
|
44
|
+
brandingTheme?: PortalBrandThemeV1;
|
|
36
45
|
/**
|
|
37
46
|
* Platform subdomain slug used for '{slug}.edaxu.com'
|
|
38
47
|
* @type {string}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { PortalBrandThemeV1FromJSON, PortalBrandThemeV1ToJSON, } from './PortalBrandThemeV1';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PostPortal interface.
|
|
16
17
|
*/
|
|
@@ -30,6 +31,7 @@ export function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
31
|
'name': json['name'],
|
|
31
32
|
'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
|
|
32
33
|
'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
|
|
34
|
+
'brandingTheme': json['branding_theme'] == null ? undefined : PortalBrandThemeV1FromJSON(json['branding_theme']),
|
|
33
35
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
34
36
|
'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
|
|
35
37
|
};
|
|
@@ -45,6 +47,7 @@ export function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
47
|
'name': value['name'],
|
|
46
48
|
'header_background_color': value['headerBackgroundColor'],
|
|
47
49
|
'header_text_color': value['headerTextColor'],
|
|
50
|
+
'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
|
|
48
51
|
'slug': value['slug'],
|
|
49
52
|
'client_domain': value['clientDomain'],
|
|
50
53
|
};
|