@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,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
+
@@ -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
  };
@@ -96,6 +96,7 @@ export * from './GetLibraryQuizVersion';
96
96
  export * from './GetPermission';
97
97
  export * from './GetPortal';
98
98
  export * from './GetPortalFaviconUpload';
99
+ export * from './GetPortalInvitationSummary';
99
100
  export * from './GetPortalList';
100
101
  export * from './GetPortalLogoUpload';
101
102
  export * from './GetPortalUser';
@@ -158,6 +159,9 @@ export * from './LoginResAuthData';
158
159
  export * from './LoginResUserData';
159
160
  export * from './LoginResUserDataSelectedPortal';
160
161
  export * from './Paginated';
162
+ export * from './PortalBrandColorsV1';
163
+ export * from './PortalBrandThemeV1';
164
+ export * from './PortalBrandTypographyV1';
161
165
  export * from './PortalSublicense';
162
166
  export * from './PortalUserFieldConfig';
163
167
  export * from './PortalUserFieldDefinition';