@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,102 @@
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
+ * Invitation lifecycle and latest email delivery state for a portal user.
14
+ * @export
15
+ * @interface GetPortalInvitationSummary
16
+ */
17
+ export interface GetPortalInvitationSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetPortalInvitationSummary
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {GetPortalInvitationSummaryStatusEnum}
27
+ * @memberof GetPortalInvitationSummary
28
+ */
29
+ status: GetPortalInvitationSummaryStatusEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetPortalInvitationSummary
34
+ */
35
+ invitedAt: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetPortalInvitationSummary
40
+ */
41
+ expiresAt: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetPortalInvitationSummary
46
+ */
47
+ acceptedAt?: number | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetPortalInvitationSummary
52
+ */
53
+ lastSentAt?: number | null;
54
+ /**
55
+ *
56
+ * @type {GetPortalInvitationSummaryLatestDeliveryStatusEnum}
57
+ * @memberof GetPortalInvitationSummary
58
+ */
59
+ latestDeliveryStatus?: GetPortalInvitationSummaryLatestDeliveryStatusEnum | null;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof GetPortalInvitationSummary
64
+ */
65
+ canResend: boolean;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof GetPortalInvitationSummary
70
+ */
71
+ resendBlockedReason?: string | null;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const GetPortalInvitationSummaryStatusEnum: {
77
+ readonly Pending: "pending";
78
+ readonly Expired: "expired";
79
+ readonly Accepted: "accepted";
80
+ };
81
+ export type GetPortalInvitationSummaryStatusEnum = typeof GetPortalInvitationSummaryStatusEnum[keyof typeof GetPortalInvitationSummaryStatusEnum];
82
+ /**
83
+ * @export
84
+ */
85
+ export declare const GetPortalInvitationSummaryLatestDeliveryStatusEnum: {
86
+ readonly Queued: "queued";
87
+ readonly Processing: "processing";
88
+ readonly Accepted: "accepted";
89
+ readonly Delivered: "delivered";
90
+ readonly Deferred: "deferred";
91
+ readonly Failed: "failed";
92
+ readonly Complained: "complained";
93
+ };
94
+ export type GetPortalInvitationSummaryLatestDeliveryStatusEnum = typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum[keyof typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum];
95
+ /**
96
+ * Check if a given object implements the GetPortalInvitationSummary interface.
97
+ */
98
+ export declare function instanceOfGetPortalInvitationSummary(value: object): value is GetPortalInvitationSummary;
99
+ export declare function GetPortalInvitationSummaryFromJSON(json: any): GetPortalInvitationSummary;
100
+ export declare function GetPortalInvitationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalInvitationSummary;
101
+ export declare function GetPortalInvitationSummaryToJSON(json: any): GetPortalInvitationSummary;
102
+ export declare function GetPortalInvitationSummaryToJSONTyped(value?: GetPortalInvitationSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetPortalInvitationSummaryLatestDeliveryStatusEnum = exports.GetPortalInvitationSummaryStatusEnum = void 0;
17
+ exports.instanceOfGetPortalInvitationSummary = instanceOfGetPortalInvitationSummary;
18
+ exports.GetPortalInvitationSummaryFromJSON = GetPortalInvitationSummaryFromJSON;
19
+ exports.GetPortalInvitationSummaryFromJSONTyped = GetPortalInvitationSummaryFromJSONTyped;
20
+ exports.GetPortalInvitationSummaryToJSON = GetPortalInvitationSummaryToJSON;
21
+ exports.GetPortalInvitationSummaryToJSONTyped = GetPortalInvitationSummaryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetPortalInvitationSummaryStatusEnum = {
26
+ Pending: 'pending',
27
+ Expired: 'expired',
28
+ Accepted: 'accepted'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.GetPortalInvitationSummaryLatestDeliveryStatusEnum = {
34
+ Queued: 'queued',
35
+ Processing: 'processing',
36
+ Accepted: 'accepted',
37
+ Delivered: 'delivered',
38
+ Deferred: 'deferred',
39
+ Failed: 'failed',
40
+ Complained: 'complained'
41
+ };
42
+ /**
43
+ * Check if a given object implements the GetPortalInvitationSummary interface.
44
+ */
45
+ function instanceOfGetPortalInvitationSummary(value) {
46
+ if (!('id' in value) || value['id'] === undefined)
47
+ return false;
48
+ if (!('status' in value) || value['status'] === undefined)
49
+ return false;
50
+ if (!('invitedAt' in value) || value['invitedAt'] === undefined)
51
+ return false;
52
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
53
+ return false;
54
+ if (!('canResend' in value) || value['canResend'] === undefined)
55
+ return false;
56
+ return true;
57
+ }
58
+ function GetPortalInvitationSummaryFromJSON(json) {
59
+ return GetPortalInvitationSummaryFromJSONTyped(json, false);
60
+ }
61
+ function GetPortalInvitationSummaryFromJSONTyped(json, ignoreDiscriminator) {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+ 'id': json['id'],
67
+ 'status': json['status'],
68
+ 'invitedAt': json['invited_at'],
69
+ 'expiresAt': json['expires_at'],
70
+ 'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
71
+ 'lastSentAt': json['last_sent_at'] == null ? undefined : json['last_sent_at'],
72
+ 'latestDeliveryStatus': json['latest_delivery_status'] == null ? undefined : json['latest_delivery_status'],
73
+ 'canResend': json['can_resend'],
74
+ 'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
75
+ };
76
+ }
77
+ function GetPortalInvitationSummaryToJSON(json) {
78
+ return GetPortalInvitationSummaryToJSONTyped(json, false);
79
+ }
80
+ function GetPortalInvitationSummaryToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'status': value['status'],
87
+ 'invited_at': value['invitedAt'],
88
+ 'expires_at': value['expiresAt'],
89
+ 'accepted_at': value['acceptedAt'],
90
+ 'last_sent_at': value['lastSentAt'],
91
+ 'latest_delivery_status': value['latestDeliveryStatus'],
92
+ 'can_resend': value['canResend'],
93
+ 'resend_blocked_reason': value['resendBlockedReason'],
94
+ };
95
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
12
13
  /**
13
14
  * A user with their portal access information
14
15
  * @export
@@ -51,6 +52,12 @@ export interface GetPortalUser {
51
52
  * @memberof GetPortalUser
52
53
  */
53
54
  isActive: boolean;
55
+ /**
56
+ *
57
+ * @type {GetPortalInvitationSummary}
58
+ * @memberof GetPortalUser
59
+ */
60
+ invitation?: GetPortalInvitationSummary | null;
54
61
  }
55
62
  /**
56
63
  * Check if a given object implements the GetPortalUser interface.
@@ -18,6 +18,7 @@ exports.GetPortalUserFromJSON = GetPortalUserFromJSON;
18
18
  exports.GetPortalUserFromJSONTyped = GetPortalUserFromJSONTyped;
19
19
  exports.GetPortalUserToJSON = GetPortalUserToJSON;
20
20
  exports.GetPortalUserToJSONTyped = GetPortalUserToJSONTyped;
21
+ const GetPortalInvitationSummary_1 = require("./GetPortalInvitationSummary");
21
22
  /**
22
23
  * Check if a given object implements the GetPortalUser interface.
23
24
  */
@@ -50,6 +51,7 @@ function GetPortalUserFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'lastName': json['last_name'],
51
52
  'role': json['role'],
52
53
  'isActive': json['is_active'],
54
+ 'invitation': json['invitation'] == null ? undefined : (0, GetPortalInvitationSummary_1.GetPortalInvitationSummaryFromJSON)(json['invitation']),
53
55
  };
54
56
  }
55
57
  function GetPortalUserToJSON(json) {
@@ -66,5 +68,6 @@ function GetPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
66
68
  'last_name': value['lastName'],
67
69
  'role': value['role'],
68
70
  'is_active': value['isActive'],
71
+ 'invitation': (0, GetPortalInvitationSummary_1.GetPortalInvitationSummaryToJSON)(value['invitation']),
69
72
  };
70
73
  }
@@ -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;
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPortalBrandColorsV1 = instanceOfPortalBrandColorsV1;
17
+ exports.PortalBrandColorsV1FromJSON = PortalBrandColorsV1FromJSON;
18
+ exports.PortalBrandColorsV1FromJSONTyped = PortalBrandColorsV1FromJSONTyped;
19
+ exports.PortalBrandColorsV1ToJSON = PortalBrandColorsV1ToJSON;
20
+ exports.PortalBrandColorsV1ToJSONTyped = PortalBrandColorsV1ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PortalBrandColorsV1 interface.
23
+ */
24
+ function instanceOfPortalBrandColorsV1(value) {
25
+ if (!('headerBackground' in value) || value['headerBackground'] === undefined)
26
+ return false;
27
+ if (!('headerForeground' in value) || value['headerForeground'] === undefined)
28
+ return false;
29
+ if (!('navigationBackground' in value) || value['navigationBackground'] === undefined)
30
+ return false;
31
+ if (!('navigationForeground' in value) || value['navigationForeground'] === undefined)
32
+ return false;
33
+ if (!('primaryAction' in value) || value['primaryAction'] === undefined)
34
+ return false;
35
+ if (!('onPrimaryAction' in value) || value['onPrimaryAction'] === undefined)
36
+ return false;
37
+ if (!('secondaryAction' in value) || value['secondaryAction'] === undefined)
38
+ return false;
39
+ if (!('onSecondaryAction' in value) || value['onSecondaryAction'] === undefined)
40
+ return false;
41
+ if (!('pageBackground' in value) || value['pageBackground'] === undefined)
42
+ return false;
43
+ if (!('surfaceBackground' in value) || value['surfaceBackground'] === undefined)
44
+ return false;
45
+ if (!('textPrimary' in value) || value['textPrimary'] === undefined)
46
+ return false;
47
+ if (!('textSecondary' in value) || value['textSecondary'] === undefined)
48
+ return false;
49
+ if (!('divider' in value) || value['divider'] === undefined)
50
+ return false;
51
+ if (!('link' in value) || value['link'] === undefined)
52
+ return false;
53
+ if (!('linkHover' in value) || value['linkHover'] === undefined)
54
+ return false;
55
+ if (!('active' in value) || value['active'] === undefined)
56
+ return false;
57
+ if (!('onActive' in value) || value['onActive'] === undefined)
58
+ return false;
59
+ if (!('focusRing' in value) || value['focusRing'] === undefined)
60
+ return false;
61
+ if (!('progress' in value) || value['progress'] === undefined)
62
+ return false;
63
+ if (!('progressTrack' in value) || value['progressTrack'] === undefined)
64
+ return false;
65
+ if (!('success' in value) || value['success'] === undefined)
66
+ return false;
67
+ if (!('onSuccess' in value) || value['onSuccess'] === undefined)
68
+ return false;
69
+ if (!('warning' in value) || value['warning'] === undefined)
70
+ return false;
71
+ if (!('onWarning' in value) || value['onWarning'] === undefined)
72
+ return false;
73
+ if (!('error' in value) || value['error'] === undefined)
74
+ return false;
75
+ if (!('onError' in value) || value['onError'] === undefined)
76
+ return false;
77
+ if (!('info' in value) || value['info'] === undefined)
78
+ return false;
79
+ if (!('onInfo' in value) || value['onInfo'] === undefined)
80
+ return false;
81
+ return true;
82
+ }
83
+ function PortalBrandColorsV1FromJSON(json) {
84
+ return PortalBrandColorsV1FromJSONTyped(json, false);
85
+ }
86
+ function PortalBrandColorsV1FromJSONTyped(json, ignoreDiscriminator) {
87
+ if (json == null) {
88
+ return json;
89
+ }
90
+ return {
91
+ 'headerBackground': json['header_background'],
92
+ 'headerForeground': json['header_foreground'],
93
+ 'navigationBackground': json['navigation_background'],
94
+ 'navigationForeground': json['navigation_foreground'],
95
+ 'primaryAction': json['primary_action'],
96
+ 'onPrimaryAction': json['on_primary_action'],
97
+ 'secondaryAction': json['secondary_action'],
98
+ 'onSecondaryAction': json['on_secondary_action'],
99
+ 'pageBackground': json['page_background'],
100
+ 'surfaceBackground': json['surface_background'],
101
+ 'textPrimary': json['text_primary'],
102
+ 'textSecondary': json['text_secondary'],
103
+ 'divider': json['divider'],
104
+ 'link': json['link'],
105
+ 'linkHover': json['link_hover'],
106
+ 'active': json['active'],
107
+ 'onActive': json['on_active'],
108
+ 'focusRing': json['focus_ring'],
109
+ 'progress': json['progress'],
110
+ 'progressTrack': json['progress_track'],
111
+ 'success': json['success'],
112
+ 'onSuccess': json['on_success'],
113
+ 'warning': json['warning'],
114
+ 'onWarning': json['on_warning'],
115
+ 'error': json['error'],
116
+ 'onError': json['on_error'],
117
+ 'info': json['info'],
118
+ 'onInfo': json['on_info'],
119
+ };
120
+ }
121
+ function PortalBrandColorsV1ToJSON(json) {
122
+ return PortalBrandColorsV1ToJSONTyped(json, false);
123
+ }
124
+ function PortalBrandColorsV1ToJSONTyped(value, ignoreDiscriminator = false) {
125
+ if (value == null) {
126
+ return value;
127
+ }
128
+ return {
129
+ 'header_background': value['headerBackground'],
130
+ 'header_foreground': value['headerForeground'],
131
+ 'navigation_background': value['navigationBackground'],
132
+ 'navigation_foreground': value['navigationForeground'],
133
+ 'primary_action': value['primaryAction'],
134
+ 'on_primary_action': value['onPrimaryAction'],
135
+ 'secondary_action': value['secondaryAction'],
136
+ 'on_secondary_action': value['onSecondaryAction'],
137
+ 'page_background': value['pageBackground'],
138
+ 'surface_background': value['surfaceBackground'],
139
+ 'text_primary': value['textPrimary'],
140
+ 'text_secondary': value['textSecondary'],
141
+ 'divider': value['divider'],
142
+ 'link': value['link'],
143
+ 'link_hover': value['linkHover'],
144
+ 'active': value['active'],
145
+ 'on_active': value['onActive'],
146
+ 'focus_ring': value['focusRing'],
147
+ 'progress': value['progress'],
148
+ 'progress_track': value['progressTrack'],
149
+ 'success': value['success'],
150
+ 'on_success': value['onSuccess'],
151
+ 'warning': value['warning'],
152
+ 'on_warning': value['onWarning'],
153
+ 'error': value['error'],
154
+ 'on_error': value['onError'],
155
+ 'info': value['info'],
156
+ 'on_info': value['onInfo'],
157
+ };
158
+ }