@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.
Files changed (86) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +9 -5
  3. package/dist/apis/CourseApi.d.ts +30 -2
  4. package/dist/apis/CourseApi.js +59 -3
  5. package/dist/apis/CourseShareApi.d.ts +21 -7
  6. package/dist/apis/CourseShareApi.js +24 -11
  7. package/dist/apis/PortalApi.d.ts +2 -2
  8. package/dist/apis/PortalApi.js +2 -2
  9. package/dist/esm/apis/CourseApi.d.ts +30 -2
  10. package/dist/esm/apis/CourseApi.js +58 -2
  11. package/dist/esm/apis/CourseShareApi.d.ts +21 -7
  12. package/dist/esm/apis/CourseShareApi.js +23 -10
  13. package/dist/esm/apis/PortalApi.d.ts +2 -2
  14. package/dist/esm/apis/PortalApi.js +2 -2
  15. package/dist/esm/models/CourseShare.d.ts +57 -9
  16. package/dist/esm/models/CourseShare.js +32 -0
  17. package/dist/esm/models/GetCourseExport.d.ts +6 -0
  18. package/dist/esm/models/GetCourseExport.js +4 -0
  19. package/dist/esm/models/GetPortal.d.ts +11 -2
  20. package/dist/esm/models/GetPortal.js +5 -0
  21. package/dist/esm/models/GetPublicPortalBranding.d.ts +11 -2
  22. package/dist/esm/models/GetPublicPortalBranding.js +5 -0
  23. package/dist/esm/models/PortalBrandColorsV1.d.ts +194 -0
  24. package/dist/esm/models/PortalBrandColorsV1.js +151 -0
  25. package/dist/esm/models/PortalBrandThemeV1.d.ts +53 -0
  26. package/dist/esm/models/PortalBrandThemeV1.js +59 -0
  27. package/dist/esm/models/PortalBrandTypographyV1.d.ts +80 -0
  28. package/dist/esm/models/PortalBrandTypographyV1.js +78 -0
  29. package/dist/esm/models/PostOfferCatalog.d.ts +1 -1
  30. package/dist/esm/models/PostOfferCourse.d.ts +1 -1
  31. package/dist/esm/models/PostPortal.d.ts +9 -0
  32. package/dist/esm/models/PostPortal.js +3 -0
  33. package/dist/esm/models/PutPortalBranding.d.ts +9 -0
  34. package/dist/esm/models/PutPortalBranding.js +3 -0
  35. package/dist/esm/models/index.d.ts +3 -0
  36. package/dist/esm/models/index.js +3 -0
  37. package/dist/models/CourseShare.d.ts +57 -9
  38. package/dist/models/CourseShare.js +32 -0
  39. package/dist/models/GetCourseExport.d.ts +6 -0
  40. package/dist/models/GetCourseExport.js +4 -0
  41. package/dist/models/GetPortal.d.ts +11 -2
  42. package/dist/models/GetPortal.js +5 -0
  43. package/dist/models/GetPublicPortalBranding.d.ts +11 -2
  44. package/dist/models/GetPublicPortalBranding.js +5 -0
  45. package/dist/models/PortalBrandColorsV1.d.ts +194 -0
  46. package/dist/models/PortalBrandColorsV1.js +158 -0
  47. package/dist/models/PortalBrandThemeV1.d.ts +53 -0
  48. package/dist/models/PortalBrandThemeV1.js +67 -0
  49. package/dist/models/PortalBrandTypographyV1.d.ts +80 -0
  50. package/dist/models/PortalBrandTypographyV1.js +86 -0
  51. package/dist/models/PostOfferCatalog.d.ts +1 -1
  52. package/dist/models/PostOfferCourse.d.ts +1 -1
  53. package/dist/models/PostPortal.d.ts +9 -0
  54. package/dist/models/PostPortal.js +3 -0
  55. package/dist/models/PutPortalBranding.d.ts +9 -0
  56. package/dist/models/PutPortalBranding.js +3 -0
  57. package/dist/models/index.d.ts +3 -0
  58. package/dist/models/index.js +3 -0
  59. package/docs/CourseApi.md +79 -1
  60. package/docs/CourseShare.md +19 -3
  61. package/docs/CourseShareApi.md +20 -9
  62. package/docs/GetCourseExport.md +2 -0
  63. package/docs/GetPortal.md +2 -0
  64. package/docs/GetPublicPortalBranding.md +2 -0
  65. package/docs/PortalApi.md +2 -2
  66. package/docs/PortalBrandColorsV1.md +89 -0
  67. package/docs/PortalBrandThemeV1.md +39 -0
  68. package/docs/PortalBrandTypographyV1.md +47 -0
  69. package/docs/PostPortal.md +2 -0
  70. package/docs/PutPortalBranding.md +2 -0
  71. package/package.json +1 -1
  72. package/src/apis/CourseApi.ts +72 -2
  73. package/src/apis/CourseShareApi.ts +28 -9
  74. package/src/apis/PortalApi.ts +2 -2
  75. package/src/models/CourseShare.ts +81 -9
  76. package/src/models/GetCourseExport.ts +9 -0
  77. package/src/models/GetPortal.ts +21 -2
  78. package/src/models/GetPublicPortalBranding.ts +21 -2
  79. package/src/models/PortalBrandColorsV1.ts +309 -0
  80. package/src/models/PortalBrandThemeV1.ts +109 -0
  81. package/src/models/PortalBrandTypographyV1.ts +135 -0
  82. package/src/models/PostOfferCatalog.ts +1 -1
  83. package/src/models/PostOfferCourse.ts +1 -1
  84. package/src/models/PostPortal.ts +18 -0
  85. package/src/models/PutPortalBranding.ts +18 -0
  86. package/src/models/index.ts +3 -0
@@ -0,0 +1,309 @@
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
+ * Semantic colors for a portal-owned light application theme. Every value is an opaque hexadecimal color.
18
+ * @export
19
+ * @interface PortalBrandColorsV1
20
+ */
21
+ export interface PortalBrandColorsV1 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PortalBrandColorsV1
26
+ */
27
+ headerBackground: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PortalBrandColorsV1
32
+ */
33
+ headerForeground: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PortalBrandColorsV1
38
+ */
39
+ navigationBackground: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PortalBrandColorsV1
44
+ */
45
+ navigationForeground: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof PortalBrandColorsV1
50
+ */
51
+ primaryAction: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof PortalBrandColorsV1
56
+ */
57
+ onPrimaryAction: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof PortalBrandColorsV1
62
+ */
63
+ secondaryAction: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof PortalBrandColorsV1
68
+ */
69
+ onSecondaryAction: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof PortalBrandColorsV1
74
+ */
75
+ pageBackground: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof PortalBrandColorsV1
80
+ */
81
+ surfaceBackground: string;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof PortalBrandColorsV1
86
+ */
87
+ textPrimary: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof PortalBrandColorsV1
92
+ */
93
+ textSecondary: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof PortalBrandColorsV1
98
+ */
99
+ divider: string;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof PortalBrandColorsV1
104
+ */
105
+ link: string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof PortalBrandColorsV1
110
+ */
111
+ linkHover: string;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof PortalBrandColorsV1
116
+ */
117
+ active: string;
118
+ /**
119
+ *
120
+ * @type {string}
121
+ * @memberof PortalBrandColorsV1
122
+ */
123
+ onActive: string;
124
+ /**
125
+ *
126
+ * @type {string}
127
+ * @memberof PortalBrandColorsV1
128
+ */
129
+ focusRing: string;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof PortalBrandColorsV1
134
+ */
135
+ progress: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof PortalBrandColorsV1
140
+ */
141
+ progressTrack: string;
142
+ /**
143
+ *
144
+ * @type {string}
145
+ * @memberof PortalBrandColorsV1
146
+ */
147
+ success: string;
148
+ /**
149
+ *
150
+ * @type {string}
151
+ * @memberof PortalBrandColorsV1
152
+ */
153
+ onSuccess: string;
154
+ /**
155
+ *
156
+ * @type {string}
157
+ * @memberof PortalBrandColorsV1
158
+ */
159
+ warning: string;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof PortalBrandColorsV1
164
+ */
165
+ onWarning: string;
166
+ /**
167
+ *
168
+ * @type {string}
169
+ * @memberof PortalBrandColorsV1
170
+ */
171
+ error: string;
172
+ /**
173
+ *
174
+ * @type {string}
175
+ * @memberof PortalBrandColorsV1
176
+ */
177
+ onError: string;
178
+ /**
179
+ *
180
+ * @type {string}
181
+ * @memberof PortalBrandColorsV1
182
+ */
183
+ info: string;
184
+ /**
185
+ *
186
+ * @type {string}
187
+ * @memberof PortalBrandColorsV1
188
+ */
189
+ onInfo: string;
190
+ }
191
+
192
+ /**
193
+ * Check if a given object implements the PortalBrandColorsV1 interface.
194
+ */
195
+ export function instanceOfPortalBrandColorsV1(value: object): value is PortalBrandColorsV1 {
196
+ if (!('headerBackground' in value) || value['headerBackground'] === undefined) return false;
197
+ if (!('headerForeground' in value) || value['headerForeground'] === undefined) return false;
198
+ if (!('navigationBackground' in value) || value['navigationBackground'] === undefined) return false;
199
+ if (!('navigationForeground' in value) || value['navigationForeground'] === undefined) return false;
200
+ if (!('primaryAction' in value) || value['primaryAction'] === undefined) return false;
201
+ if (!('onPrimaryAction' in value) || value['onPrimaryAction'] === undefined) return false;
202
+ if (!('secondaryAction' in value) || value['secondaryAction'] === undefined) return false;
203
+ if (!('onSecondaryAction' in value) || value['onSecondaryAction'] === undefined) return false;
204
+ if (!('pageBackground' in value) || value['pageBackground'] === undefined) return false;
205
+ if (!('surfaceBackground' in value) || value['surfaceBackground'] === undefined) return false;
206
+ if (!('textPrimary' in value) || value['textPrimary'] === undefined) return false;
207
+ if (!('textSecondary' in value) || value['textSecondary'] === undefined) return false;
208
+ if (!('divider' in value) || value['divider'] === undefined) return false;
209
+ if (!('link' in value) || value['link'] === undefined) return false;
210
+ if (!('linkHover' in value) || value['linkHover'] === undefined) return false;
211
+ if (!('active' in value) || value['active'] === undefined) return false;
212
+ if (!('onActive' in value) || value['onActive'] === undefined) return false;
213
+ if (!('focusRing' in value) || value['focusRing'] === undefined) return false;
214
+ if (!('progress' in value) || value['progress'] === undefined) return false;
215
+ if (!('progressTrack' in value) || value['progressTrack'] === undefined) return false;
216
+ if (!('success' in value) || value['success'] === undefined) return false;
217
+ if (!('onSuccess' in value) || value['onSuccess'] === undefined) return false;
218
+ if (!('warning' in value) || value['warning'] === undefined) return false;
219
+ if (!('onWarning' in value) || value['onWarning'] === undefined) return false;
220
+ if (!('error' in value) || value['error'] === undefined) return false;
221
+ if (!('onError' in value) || value['onError'] === undefined) return false;
222
+ if (!('info' in value) || value['info'] === undefined) return false;
223
+ if (!('onInfo' in value) || value['onInfo'] === undefined) return false;
224
+ return true;
225
+ }
226
+
227
+ export function PortalBrandColorsV1FromJSON(json: any): PortalBrandColorsV1 {
228
+ return PortalBrandColorsV1FromJSONTyped(json, false);
229
+ }
230
+
231
+ export function PortalBrandColorsV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalBrandColorsV1 {
232
+ if (json == null) {
233
+ return json;
234
+ }
235
+ return {
236
+
237
+ 'headerBackground': json['header_background'],
238
+ 'headerForeground': json['header_foreground'],
239
+ 'navigationBackground': json['navigation_background'],
240
+ 'navigationForeground': json['navigation_foreground'],
241
+ 'primaryAction': json['primary_action'],
242
+ 'onPrimaryAction': json['on_primary_action'],
243
+ 'secondaryAction': json['secondary_action'],
244
+ 'onSecondaryAction': json['on_secondary_action'],
245
+ 'pageBackground': json['page_background'],
246
+ 'surfaceBackground': json['surface_background'],
247
+ 'textPrimary': json['text_primary'],
248
+ 'textSecondary': json['text_secondary'],
249
+ 'divider': json['divider'],
250
+ 'link': json['link'],
251
+ 'linkHover': json['link_hover'],
252
+ 'active': json['active'],
253
+ 'onActive': json['on_active'],
254
+ 'focusRing': json['focus_ring'],
255
+ 'progress': json['progress'],
256
+ 'progressTrack': json['progress_track'],
257
+ 'success': json['success'],
258
+ 'onSuccess': json['on_success'],
259
+ 'warning': json['warning'],
260
+ 'onWarning': json['on_warning'],
261
+ 'error': json['error'],
262
+ 'onError': json['on_error'],
263
+ 'info': json['info'],
264
+ 'onInfo': json['on_info'],
265
+ };
266
+ }
267
+
268
+ export function PortalBrandColorsV1ToJSON(json: any): PortalBrandColorsV1 {
269
+ return PortalBrandColorsV1ToJSONTyped(json, false);
270
+ }
271
+
272
+ export function PortalBrandColorsV1ToJSONTyped(value?: PortalBrandColorsV1 | null, ignoreDiscriminator: boolean = false): any {
273
+ if (value == null) {
274
+ return value;
275
+ }
276
+
277
+ return {
278
+
279
+ 'header_background': value['headerBackground'],
280
+ 'header_foreground': value['headerForeground'],
281
+ 'navigation_background': value['navigationBackground'],
282
+ 'navigation_foreground': value['navigationForeground'],
283
+ 'primary_action': value['primaryAction'],
284
+ 'on_primary_action': value['onPrimaryAction'],
285
+ 'secondary_action': value['secondaryAction'],
286
+ 'on_secondary_action': value['onSecondaryAction'],
287
+ 'page_background': value['pageBackground'],
288
+ 'surface_background': value['surfaceBackground'],
289
+ 'text_primary': value['textPrimary'],
290
+ 'text_secondary': value['textSecondary'],
291
+ 'divider': value['divider'],
292
+ 'link': value['link'],
293
+ 'link_hover': value['linkHover'],
294
+ 'active': value['active'],
295
+ 'on_active': value['onActive'],
296
+ 'focus_ring': value['focusRing'],
297
+ 'progress': value['progress'],
298
+ 'progress_track': value['progressTrack'],
299
+ 'success': value['success'],
300
+ 'on_success': value['onSuccess'],
301
+ 'warning': value['warning'],
302
+ 'on_warning': value['onWarning'],
303
+ 'error': value['error'],
304
+ 'on_error': value['onError'],
305
+ 'info': value['info'],
306
+ 'on_info': value['onInfo'],
307
+ };
308
+ }
309
+
@@ -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
+
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface PostOfferCatalog {
22
22
  /**
23
- * External ID of the target (descendant) portal
23
+ * External ID of the target portal
24
24
  * @type {string}
25
25
  * @memberof PostOfferCatalog
26
26
  */
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface PostOfferCourse {
22
22
  /**
23
- * External ID of the target (descendant) portal
23
+ * External ID of the target portal
24
24
  * @type {string}
25
25
  * @memberof PostOfferCourse
26
26
  */
@@ -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
  };
@@ -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';