@easyedu/js-lsm-api 1.104.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 (80) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +8 -3
  3. package/dist/apis/EmailTemplateApi.d.ts +32 -0
  4. package/dist/apis/EmailTemplateApi.js +64 -1
  5. package/dist/apis/PortalApi.d.ts +2 -2
  6. package/dist/apis/PortalApi.js +2 -2
  7. package/dist/esm/apis/EmailTemplateApi.d.ts +32 -0
  8. package/dist/esm/apis/EmailTemplateApi.js +63 -0
  9. package/dist/esm/apis/PortalApi.d.ts +2 -2
  10. package/dist/esm/apis/PortalApi.js +2 -2
  11. package/dist/esm/models/GetEmailDelivery.d.ts +31 -0
  12. package/dist/esm/models/GetEmailDelivery.js +13 -0
  13. package/dist/esm/models/GetPortal.d.ts +11 -2
  14. package/dist/esm/models/GetPortal.js +5 -0
  15. package/dist/esm/models/GetPortalInvitationSummary.d.ts +102 -0
  16. package/dist/esm/models/GetPortalInvitationSummary.js +87 -0
  17. package/dist/esm/models/GetPortalUser.d.ts +7 -0
  18. package/dist/esm/models/GetPortalUser.js +3 -0
  19. package/dist/esm/models/GetPublicPortalBranding.d.ts +11 -2
  20. package/dist/esm/models/GetPublicPortalBranding.js +5 -0
  21. package/dist/esm/models/PortalBrandColorsV1.d.ts +194 -0
  22. package/dist/esm/models/PortalBrandColorsV1.js +151 -0
  23. package/dist/esm/models/PortalBrandThemeV1.d.ts +53 -0
  24. package/dist/esm/models/PortalBrandThemeV1.js +59 -0
  25. package/dist/esm/models/PortalBrandTypographyV1.d.ts +80 -0
  26. package/dist/esm/models/PortalBrandTypographyV1.js +78 -0
  27. package/dist/esm/models/PostPortal.d.ts +9 -0
  28. package/dist/esm/models/PostPortal.js +3 -0
  29. package/dist/esm/models/PutPortalBranding.d.ts +9 -0
  30. package/dist/esm/models/PutPortalBranding.js +3 -0
  31. package/dist/esm/models/index.d.ts +4 -0
  32. package/dist/esm/models/index.js +4 -0
  33. package/dist/models/GetEmailDelivery.d.ts +31 -0
  34. package/dist/models/GetEmailDelivery.js +13 -0
  35. package/dist/models/GetPortal.d.ts +11 -2
  36. package/dist/models/GetPortal.js +5 -0
  37. package/dist/models/GetPortalInvitationSummary.d.ts +102 -0
  38. package/dist/models/GetPortalInvitationSummary.js +95 -0
  39. package/dist/models/GetPortalUser.d.ts +7 -0
  40. package/dist/models/GetPortalUser.js +3 -0
  41. package/dist/models/GetPublicPortalBranding.d.ts +11 -2
  42. package/dist/models/GetPublicPortalBranding.js +5 -0
  43. package/dist/models/PortalBrandColorsV1.d.ts +194 -0
  44. package/dist/models/PortalBrandColorsV1.js +158 -0
  45. package/dist/models/PortalBrandThemeV1.d.ts +53 -0
  46. package/dist/models/PortalBrandThemeV1.js +67 -0
  47. package/dist/models/PortalBrandTypographyV1.d.ts +80 -0
  48. package/dist/models/PortalBrandTypographyV1.js +86 -0
  49. package/dist/models/PostPortal.d.ts +9 -0
  50. package/dist/models/PostPortal.js +3 -0
  51. package/dist/models/PutPortalBranding.d.ts +9 -0
  52. package/dist/models/PutPortalBranding.js +3 -0
  53. package/dist/models/index.d.ts +4 -0
  54. package/dist/models/index.js +4 -0
  55. package/docs/EmailTemplateApi.md +82 -1
  56. package/docs/GetEmailDelivery.md +10 -0
  57. package/docs/GetPortal.md +2 -0
  58. package/docs/GetPortalInvitationSummary.md +51 -0
  59. package/docs/GetPortalUser.md +2 -0
  60. package/docs/GetPublicPortalBranding.md +2 -0
  61. package/docs/PortalApi.md +2 -2
  62. package/docs/PortalBrandColorsV1.md +89 -0
  63. package/docs/PortalBrandThemeV1.md +39 -0
  64. package/docs/PortalBrandTypographyV1.md +47 -0
  65. package/docs/PostPortal.md +2 -0
  66. package/docs/PutPortalBranding.md +2 -0
  67. package/package.json +1 -1
  68. package/src/apis/EmailTemplateApi.ts +83 -0
  69. package/src/apis/PortalApi.ts +2 -2
  70. package/src/models/GetEmailDelivery.ts +49 -0
  71. package/src/models/GetPortal.ts +21 -2
  72. package/src/models/GetPortalInvitationSummary.ts +160 -0
  73. package/src/models/GetPortalUser.ts +16 -0
  74. package/src/models/GetPublicPortalBranding.ts +21 -2
  75. package/src/models/PortalBrandColorsV1.ts +309 -0
  76. package/src/models/PortalBrandThemeV1.ts +109 -0
  77. package/src/models/PortalBrandTypographyV1.ts +135 -0
  78. package/src/models/PostPortal.ts +18 -0
  79. package/src/models/PutPortalBranding.ts +18 -0
  80. package/src/models/index.ts +4 -0
@@ -0,0 +1,160 @@
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
+ * Invitation lifecycle and latest email delivery state for a portal user.
18
+ * @export
19
+ * @interface GetPortalInvitationSummary
20
+ */
21
+ export interface GetPortalInvitationSummary {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetPortalInvitationSummary
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {GetPortalInvitationSummaryStatusEnum}
31
+ * @memberof GetPortalInvitationSummary
32
+ */
33
+ status: GetPortalInvitationSummaryStatusEnum;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof GetPortalInvitationSummary
38
+ */
39
+ invitedAt: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GetPortalInvitationSummary
44
+ */
45
+ expiresAt: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof GetPortalInvitationSummary
50
+ */
51
+ acceptedAt?: number | null;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GetPortalInvitationSummary
56
+ */
57
+ lastSentAt?: number | null;
58
+ /**
59
+ *
60
+ * @type {GetPortalInvitationSummaryLatestDeliveryStatusEnum}
61
+ * @memberof GetPortalInvitationSummary
62
+ */
63
+ latestDeliveryStatus?: GetPortalInvitationSummaryLatestDeliveryStatusEnum | null;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof GetPortalInvitationSummary
68
+ */
69
+ canResend: boolean;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof GetPortalInvitationSummary
74
+ */
75
+ resendBlockedReason?: string | null;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const GetPortalInvitationSummaryStatusEnum = {
83
+ Pending: 'pending',
84
+ Expired: 'expired',
85
+ Accepted: 'accepted'
86
+ } as const;
87
+ export type GetPortalInvitationSummaryStatusEnum = typeof GetPortalInvitationSummaryStatusEnum[keyof typeof GetPortalInvitationSummaryStatusEnum];
88
+
89
+ /**
90
+ * @export
91
+ */
92
+ export const GetPortalInvitationSummaryLatestDeliveryStatusEnum = {
93
+ Queued: 'queued',
94
+ Processing: 'processing',
95
+ Accepted: 'accepted',
96
+ Delivered: 'delivered',
97
+ Deferred: 'deferred',
98
+ Failed: 'failed',
99
+ Complained: 'complained'
100
+ } as const;
101
+ export type GetPortalInvitationSummaryLatestDeliveryStatusEnum = typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum[keyof typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum];
102
+
103
+
104
+ /**
105
+ * Check if a given object implements the GetPortalInvitationSummary interface.
106
+ */
107
+ export function instanceOfGetPortalInvitationSummary(value: object): value is GetPortalInvitationSummary {
108
+ if (!('id' in value) || value['id'] === undefined) return false;
109
+ if (!('status' in value) || value['status'] === undefined) return false;
110
+ if (!('invitedAt' in value) || value['invitedAt'] === undefined) return false;
111
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
112
+ if (!('canResend' in value) || value['canResend'] === undefined) return false;
113
+ return true;
114
+ }
115
+
116
+ export function GetPortalInvitationSummaryFromJSON(json: any): GetPortalInvitationSummary {
117
+ return GetPortalInvitationSummaryFromJSONTyped(json, false);
118
+ }
119
+
120
+ export function GetPortalInvitationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalInvitationSummary {
121
+ if (json == null) {
122
+ return json;
123
+ }
124
+ return {
125
+
126
+ 'id': json['id'],
127
+ 'status': json['status'],
128
+ 'invitedAt': json['invited_at'],
129
+ 'expiresAt': json['expires_at'],
130
+ 'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
131
+ 'lastSentAt': json['last_sent_at'] == null ? undefined : json['last_sent_at'],
132
+ 'latestDeliveryStatus': json['latest_delivery_status'] == null ? undefined : json['latest_delivery_status'],
133
+ 'canResend': json['can_resend'],
134
+ 'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
135
+ };
136
+ }
137
+
138
+ export function GetPortalInvitationSummaryToJSON(json: any): GetPortalInvitationSummary {
139
+ return GetPortalInvitationSummaryToJSONTyped(json, false);
140
+ }
141
+
142
+ export function GetPortalInvitationSummaryToJSONTyped(value?: GetPortalInvitationSummary | null, ignoreDiscriminator: boolean = false): any {
143
+ if (value == null) {
144
+ return value;
145
+ }
146
+
147
+ return {
148
+
149
+ 'id': value['id'],
150
+ 'status': value['status'],
151
+ 'invited_at': value['invitedAt'],
152
+ 'expires_at': value['expiresAt'],
153
+ 'accepted_at': value['acceptedAt'],
154
+ 'last_sent_at': value['lastSentAt'],
155
+ 'latest_delivery_status': value['latestDeliveryStatus'],
156
+ 'can_resend': value['canResend'],
157
+ 'resend_blocked_reason': value['resendBlockedReason'],
158
+ };
159
+ }
160
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
17
+ import {
18
+ GetPortalInvitationSummaryFromJSON,
19
+ GetPortalInvitationSummaryFromJSONTyped,
20
+ GetPortalInvitationSummaryToJSON,
21
+ GetPortalInvitationSummaryToJSONTyped,
22
+ } from './GetPortalInvitationSummary';
23
+
16
24
  /**
17
25
  * A user with their portal access information
18
26
  * @export
@@ -55,6 +63,12 @@ export interface GetPortalUser {
55
63
  * @memberof GetPortalUser
56
64
  */
57
65
  isActive: boolean;
66
+ /**
67
+ *
68
+ * @type {GetPortalInvitationSummary}
69
+ * @memberof GetPortalUser
70
+ */
71
+ invitation?: GetPortalInvitationSummary | null;
58
72
  }
59
73
 
60
74
  /**
@@ -86,6 +100,7 @@ export function GetPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boole
86
100
  'lastName': json['last_name'],
87
101
  'role': json['role'],
88
102
  'isActive': json['is_active'],
103
+ 'invitation': json['invitation'] == null ? undefined : GetPortalInvitationSummaryFromJSON(json['invitation']),
89
104
  };
90
105
  }
91
106
 
@@ -106,6 +121,7 @@ export function GetPortalUserToJSONTyped(value?: GetPortalUser | null, ignoreDis
106
121
  'last_name': value['lastName'],
107
122
  'role': value['role'],
108
123
  'is_active': value['isActive'],
124
+ 'invitation': GetPortalInvitationSummaryToJSON(value['invitation']),
109
125
  };
110
126
  }
111
127
 
@@ -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
  * Public portal branding resolved from the browser host.
18
26
  * @export
@@ -50,17 +58,25 @@ export interface GetPublicPortalBranding {
50
58
  */
51
59
  faviconUrl: string | null;
52
60
  /**
53
- *
61
+ * Deprecated compatibility alias for branding_theme.colors.header_background.
54
62
  * @type {string}
55
63
  * @memberof GetPublicPortalBranding
64
+ * @deprecated
56
65
  */
57
66
  headerBackgroundColor: string;
58
67
  /**
59
- *
68
+ * Deprecated compatibility alias for branding_theme.colors.header_foreground.
60
69
  * @type {string}
61
70
  * @memberof GetPublicPortalBranding
71
+ * @deprecated
62
72
  */
63
73
  headerTextColor: string;
74
+ /**
75
+ *
76
+ * @type {PortalBrandThemeV1}
77
+ * @memberof GetPublicPortalBranding
78
+ */
79
+ brandingTheme: PortalBrandThemeV1;
64
80
  }
65
81
 
66
82
  /**
@@ -74,6 +90,7 @@ export function instanceOfGetPublicPortalBranding(value: object): value is GetPu
74
90
  if (!('faviconUrl' in value) || value['faviconUrl'] === undefined) return false;
75
91
  if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined) return false;
76
92
  if (!('headerTextColor' in value) || value['headerTextColor'] === undefined) return false;
93
+ if (!('brandingTheme' in value) || value['brandingTheme'] === undefined) return false;
77
94
  return true;
78
95
  }
79
96
 
@@ -94,6 +111,7 @@ export function GetPublicPortalBrandingFromJSONTyped(json: any, ignoreDiscrimina
94
111
  'faviconUrl': json['favicon_url'],
95
112
  'headerBackgroundColor': json['header_background_color'],
96
113
  'headerTextColor': json['header_text_color'],
114
+ 'brandingTheme': PortalBrandThemeV1FromJSON(json['branding_theme']),
97
115
  };
98
116
  }
99
117
 
@@ -115,6 +133,7 @@ export function GetPublicPortalBrandingToJSONTyped(value?: GetPublicPortalBrandi
115
133
  'favicon_url': value['faviconUrl'],
116
134
  'header_background_color': value['headerBackgroundColor'],
117
135
  'header_text_color': value['headerTextColor'],
136
+ 'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
118
137
  };
119
138
  }
120
139
 
@@ -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
+