@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.
Files changed (56) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +6 -3
  3. package/dist/apis/PortalApi.d.ts +2 -2
  4. package/dist/apis/PortalApi.js +2 -2
  5. package/dist/esm/apis/PortalApi.d.ts +2 -2
  6. package/dist/esm/apis/PortalApi.js +2 -2
  7. package/dist/esm/models/GetPortal.d.ts +11 -2
  8. package/dist/esm/models/GetPortal.js +5 -0
  9. package/dist/esm/models/GetPublicPortalBranding.d.ts +11 -2
  10. package/dist/esm/models/GetPublicPortalBranding.js +5 -0
  11. package/dist/esm/models/PortalBrandColorsV1.d.ts +194 -0
  12. package/dist/esm/models/PortalBrandColorsV1.js +151 -0
  13. package/dist/esm/models/PortalBrandThemeV1.d.ts +53 -0
  14. package/dist/esm/models/PortalBrandThemeV1.js +59 -0
  15. package/dist/esm/models/PortalBrandTypographyV1.d.ts +80 -0
  16. package/dist/esm/models/PortalBrandTypographyV1.js +78 -0
  17. package/dist/esm/models/PostPortal.d.ts +9 -0
  18. package/dist/esm/models/PostPortal.js +3 -0
  19. package/dist/esm/models/PutPortalBranding.d.ts +9 -0
  20. package/dist/esm/models/PutPortalBranding.js +3 -0
  21. package/dist/esm/models/index.d.ts +3 -0
  22. package/dist/esm/models/index.js +3 -0
  23. package/dist/models/GetPortal.d.ts +11 -2
  24. package/dist/models/GetPortal.js +5 -0
  25. package/dist/models/GetPublicPortalBranding.d.ts +11 -2
  26. package/dist/models/GetPublicPortalBranding.js +5 -0
  27. package/dist/models/PortalBrandColorsV1.d.ts +194 -0
  28. package/dist/models/PortalBrandColorsV1.js +158 -0
  29. package/dist/models/PortalBrandThemeV1.d.ts +53 -0
  30. package/dist/models/PortalBrandThemeV1.js +67 -0
  31. package/dist/models/PortalBrandTypographyV1.d.ts +80 -0
  32. package/dist/models/PortalBrandTypographyV1.js +86 -0
  33. package/dist/models/PostPortal.d.ts +9 -0
  34. package/dist/models/PostPortal.js +3 -0
  35. package/dist/models/PutPortalBranding.d.ts +9 -0
  36. package/dist/models/PutPortalBranding.js +3 -0
  37. package/dist/models/index.d.ts +3 -0
  38. package/dist/models/index.js +3 -0
  39. package/docs/GetPortal.md +2 -0
  40. package/docs/GetPublicPortalBranding.md +2 -0
  41. package/docs/PortalApi.md +2 -2
  42. package/docs/PortalBrandColorsV1.md +89 -0
  43. package/docs/PortalBrandThemeV1.md +39 -0
  44. package/docs/PortalBrandTypographyV1.md +47 -0
  45. package/docs/PostPortal.md +2 -0
  46. package/docs/PutPortalBranding.md +2 -0
  47. package/package.json +1 -1
  48. package/src/apis/PortalApi.ts +2 -2
  49. package/src/models/GetPortal.ts +21 -2
  50. package/src/models/GetPublicPortalBranding.ts +21 -2
  51. package/src/models/PortalBrandColorsV1.ts +309 -0
  52. package/src/models/PortalBrandThemeV1.ts +109 -0
  53. package/src/models/PortalBrandTypographyV1.ts +135 -0
  54. package/src/models/PostPortal.ts +18 -0
  55. package/src/models/PutPortalBranding.ts +18 -0
  56. package/src/models/index.ts +3 -0
@@ -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
  };
@@ -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 PutPortalBranding {
25
26
  * Hex color value for portal background (e.g.,
26
27
  * @type {string}
27
28
  * @memberof PutPortalBranding
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 PutPortalBranding
36
+ * @deprecated
34
37
  */
35
38
  headerTextColor?: string;
39
+ /**
40
+ *
41
+ * @type {PortalBrandThemeV1}
42
+ * @memberof PutPortalBranding
43
+ */
44
+ brandingTheme?: PortalBrandThemeV1;
36
45
  /**
37
46
  * Platform subdomain slug used for '{slug}.edaxu.com'. Set null to inherit from an ancestor.
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 PutPortalBranding interface.
16
17
  */
@@ -28,6 +29,7 @@ export function PutPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'name': json['name'] == null ? undefined : json['name'],
29
30
  'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
30
31
  'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
32
+ 'brandingTheme': json['branding_theme'] == null ? undefined : PortalBrandThemeV1FromJSON(json['branding_theme']),
31
33
  'slug': json['slug'] == null ? undefined : json['slug'],
32
34
  'clientDomain': json['client_domain'] == null ? undefined : json['client_domain'],
33
35
  };
@@ -43,6 +45,7 @@ export function PutPortalBrandingToJSONTyped(value, ignoreDiscriminator = false)
43
45
  'name': value['name'],
44
46
  'header_background_color': value['headerBackgroundColor'],
45
47
  'header_text_color': value['headerTextColor'],
48
+ 'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
46
49
  'slug': value['slug'],
47
50
  'client_domain': value['clientDomain'],
48
51
  };
@@ -157,6 +157,9 @@ export * from './LoginResAuthData';
157
157
  export * from './LoginResUserData';
158
158
  export * from './LoginResUserDataSelectedPortal';
159
159
  export * from './Paginated';
160
+ export * from './PortalBrandColorsV1';
161
+ export * from './PortalBrandThemeV1';
162
+ export * from './PortalBrandTypographyV1';
160
163
  export * from './PortalSublicense';
161
164
  export * from './PortalUserFieldConfig';
162
165
  export * from './PortalUserFieldDefinition';
@@ -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';
@@ -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
@@ -58,17 +59,25 @@ export interface GetPortal {
58
59
  */
59
60
  faviconUrl?: string | null;
60
61
  /**
61
- *
62
+ * Deprecated compatibility alias for branding_theme.colors.header_background.
62
63
  * @type {string}
63
64
  * @memberof GetPortal
65
+ * @deprecated
64
66
  */
65
67
  headerBackgroundColor: string;
66
68
  /**
67
- *
69
+ * Deprecated compatibility alias for branding_theme.colors.header_foreground.
68
70
  * @type {string}
69
71
  * @memberof GetPortal
72
+ * @deprecated
70
73
  */
71
74
  headerTextColor: string;
75
+ /**
76
+ *
77
+ * @type {PortalBrandThemeV1}
78
+ * @memberof GetPortal
79
+ */
80
+ brandingTheme: PortalBrandThemeV1;
72
81
  /**
73
82
  * The user's highest-privilege role base type for this portal
74
83
  * @type {GetPortalBaseTypeEnum}
@@ -19,6 +19,7 @@ exports.GetPortalFromJSON = GetPortalFromJSON;
19
19
  exports.GetPortalFromJSONTyped = GetPortalFromJSONTyped;
20
20
  exports.GetPortalToJSON = GetPortalToJSON;
21
21
  exports.GetPortalToJSONTyped = GetPortalToJSONTyped;
22
+ const PortalBrandThemeV1_1 = require("./PortalBrandThemeV1");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -43,6 +44,8 @@ function instanceOfGetPortal(value) {
43
44
  return false;
44
45
  if (!('headerTextColor' in value) || value['headerTextColor'] === undefined)
45
46
  return false;
47
+ if (!('brandingTheme' in value) || value['brandingTheme'] === undefined)
48
+ return false;
46
49
  return true;
47
50
  }
48
51
  function GetPortalFromJSON(json) {
@@ -62,6 +65,7 @@ function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
62
65
  'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
63
66
  'headerBackgroundColor': json['header_background_color'],
64
67
  'headerTextColor': json['header_text_color'],
68
+ 'brandingTheme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1FromJSON)(json['branding_theme']),
65
69
  'baseType': json['base_type'] == null ? undefined : json['base_type'],
66
70
  };
67
71
  }
@@ -82,6 +86,7 @@ function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
82
86
  'favicon_url': value['faviconUrl'],
83
87
  'header_background_color': value['headerBackgroundColor'],
84
88
  'header_text_color': value['headerTextColor'],
89
+ 'branding_theme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1ToJSON)(value['brandingTheme']),
85
90
  'base_type': value['baseType'],
86
91
  };
87
92
  }
@@ -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
  * Public portal branding resolved from the browser host.
14
15
  * @export
@@ -46,17 +47,25 @@ export interface GetPublicPortalBranding {
46
47
  */
47
48
  faviconUrl: string | null;
48
49
  /**
49
- *
50
+ * Deprecated compatibility alias for branding_theme.colors.header_background.
50
51
  * @type {string}
51
52
  * @memberof GetPublicPortalBranding
53
+ * @deprecated
52
54
  */
53
55
  headerBackgroundColor: string;
54
56
  /**
55
- *
57
+ * Deprecated compatibility alias for branding_theme.colors.header_foreground.
56
58
  * @type {string}
57
59
  * @memberof GetPublicPortalBranding
60
+ * @deprecated
58
61
  */
59
62
  headerTextColor: string;
63
+ /**
64
+ *
65
+ * @type {PortalBrandThemeV1}
66
+ * @memberof GetPublicPortalBranding
67
+ */
68
+ brandingTheme: PortalBrandThemeV1;
60
69
  }
61
70
  /**
62
71
  * Check if a given object implements the GetPublicPortalBranding interface.
@@ -18,6 +18,7 @@ exports.GetPublicPortalBrandingFromJSON = GetPublicPortalBrandingFromJSON;
18
18
  exports.GetPublicPortalBrandingFromJSONTyped = GetPublicPortalBrandingFromJSONTyped;
19
19
  exports.GetPublicPortalBrandingToJSON = GetPublicPortalBrandingToJSON;
20
20
  exports.GetPublicPortalBrandingToJSONTyped = GetPublicPortalBrandingToJSONTyped;
21
+ const PortalBrandThemeV1_1 = require("./PortalBrandThemeV1");
21
22
  /**
22
23
  * Check if a given object implements the GetPublicPortalBranding interface.
23
24
  */
@@ -36,6 +37,8 @@ function instanceOfGetPublicPortalBranding(value) {
36
37
  return false;
37
38
  if (!('headerTextColor' in value) || value['headerTextColor'] === undefined)
38
39
  return false;
40
+ if (!('brandingTheme' in value) || value['brandingTheme'] === undefined)
41
+ return false;
39
42
  return true;
40
43
  }
41
44
  function GetPublicPortalBrandingFromJSON(json) {
@@ -53,6 +56,7 @@ function GetPublicPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
53
56
  'faviconUrl': json['favicon_url'],
54
57
  'headerBackgroundColor': json['header_background_color'],
55
58
  'headerTextColor': json['header_text_color'],
59
+ 'brandingTheme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1FromJSON)(json['branding_theme']),
56
60
  };
57
61
  }
58
62
  function GetPublicPortalBrandingToJSON(json) {
@@ -70,5 +74,6 @@ function GetPublicPortalBrandingToJSONTyped(value, ignoreDiscriminator = false)
70
74
  'favicon_url': value['faviconUrl'],
71
75
  'header_background_color': value['headerBackgroundColor'],
72
76
  'header_text_color': value['headerTextColor'],
77
+ 'branding_theme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1ToJSON)(value['brandingTheme']),
73
78
  };
74
79
  }
@@ -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;