@easyedu/js-lsm-api 1.105.0 → 1.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -0
- package/README.md +9 -5
- package/dist/apis/CourseApi.d.ts +30 -2
- package/dist/apis/CourseApi.js +59 -3
- package/dist/apis/CourseShareApi.d.ts +21 -7
- package/dist/apis/CourseShareApi.js +24 -11
- package/dist/apis/PortalApi.d.ts +2 -2
- package/dist/apis/PortalApi.js +2 -2
- package/dist/esm/apis/CourseApi.d.ts +30 -2
- package/dist/esm/apis/CourseApi.js +58 -2
- package/dist/esm/apis/CourseShareApi.d.ts +21 -7
- package/dist/esm/apis/CourseShareApi.js +23 -10
- package/dist/esm/apis/PortalApi.d.ts +2 -2
- package/dist/esm/apis/PortalApi.js +2 -2
- package/dist/esm/models/CourseShare.d.ts +57 -9
- package/dist/esm/models/CourseShare.js +32 -0
- package/dist/esm/models/GetCourseExport.d.ts +6 -0
- package/dist/esm/models/GetCourseExport.js +4 -0
- package/dist/esm/models/GetPortal.d.ts +11 -2
- package/dist/esm/models/GetPortal.js +5 -0
- package/dist/esm/models/GetPublicPortalBranding.d.ts +11 -2
- package/dist/esm/models/GetPublicPortalBranding.js +5 -0
- package/dist/esm/models/PortalBrandColorsV1.d.ts +194 -0
- package/dist/esm/models/PortalBrandColorsV1.js +151 -0
- package/dist/esm/models/PortalBrandThemeV1.d.ts +53 -0
- package/dist/esm/models/PortalBrandThemeV1.js +59 -0
- package/dist/esm/models/PortalBrandTypographyV1.d.ts +80 -0
- package/dist/esm/models/PortalBrandTypographyV1.js +78 -0
- package/dist/esm/models/PostOfferCatalog.d.ts +1 -1
- package/dist/esm/models/PostOfferCourse.d.ts +1 -1
- package/dist/esm/models/PostPortal.d.ts +9 -0
- package/dist/esm/models/PostPortal.js +3 -0
- package/dist/esm/models/PutPortalBranding.d.ts +9 -0
- package/dist/esm/models/PutPortalBranding.js +3 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/CourseShare.d.ts +57 -9
- package/dist/models/CourseShare.js +32 -0
- package/dist/models/GetCourseExport.d.ts +6 -0
- package/dist/models/GetCourseExport.js +4 -0
- package/dist/models/GetPortal.d.ts +11 -2
- package/dist/models/GetPortal.js +5 -0
- package/dist/models/GetPublicPortalBranding.d.ts +11 -2
- package/dist/models/GetPublicPortalBranding.js +5 -0
- package/dist/models/PortalBrandColorsV1.d.ts +194 -0
- package/dist/models/PortalBrandColorsV1.js +158 -0
- package/dist/models/PortalBrandThemeV1.d.ts +53 -0
- package/dist/models/PortalBrandThemeV1.js +67 -0
- package/dist/models/PortalBrandTypographyV1.d.ts +80 -0
- package/dist/models/PortalBrandTypographyV1.js +86 -0
- package/dist/models/PostOfferCatalog.d.ts +1 -1
- package/dist/models/PostOfferCourse.d.ts +1 -1
- package/dist/models/PostPortal.d.ts +9 -0
- package/dist/models/PostPortal.js +3 -0
- package/dist/models/PutPortalBranding.d.ts +9 -0
- package/dist/models/PutPortalBranding.js +3 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/CourseApi.md +79 -1
- package/docs/CourseShare.md +19 -3
- package/docs/CourseShareApi.md +20 -9
- package/docs/GetCourseExport.md +2 -0
- package/docs/GetPortal.md +2 -0
- package/docs/GetPublicPortalBranding.md +2 -0
- package/docs/PortalApi.md +2 -2
- package/docs/PortalBrandColorsV1.md +89 -0
- package/docs/PortalBrandThemeV1.md +39 -0
- package/docs/PortalBrandTypographyV1.md +47 -0
- package/docs/PostPortal.md +2 -0
- package/docs/PutPortalBranding.md +2 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +72 -2
- package/src/apis/CourseShareApi.ts +28 -9
- package/src/apis/PortalApi.ts +2 -2
- package/src/models/CourseShare.ts +81 -9
- package/src/models/GetCourseExport.ts +9 -0
- package/src/models/GetPortal.ts +21 -2
- package/src/models/GetPublicPortalBranding.ts +21 -2
- package/src/models/PortalBrandColorsV1.ts +309 -0
- package/src/models/PortalBrandThemeV1.ts +109 -0
- package/src/models/PortalBrandTypographyV1.ts +135 -0
- package/src/models/PostOfferCatalog.ts +1 -1
- package/src/models/PostOfferCourse.ts +1 -1
- package/src/models/PostPortal.ts +18 -0
- package/src/models/PutPortalBranding.ts +18 -0
- package/src/models/index.ts +3 -0
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Shared shape returned by the incoming and outgoing course-share lists. All
|
|
14
|
+
* resource identifiers are public external IDs so clients can link to the
|
|
15
|
+
* related course, portal, and catalog without exposing database keys.
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
18
|
* @interface CourseShare
|
|
@@ -25,11 +25,11 @@ export interface CourseShare {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {
|
|
28
|
+
* External ID of the offering portal
|
|
29
|
+
* @type {string}
|
|
30
30
|
* @memberof CourseShare
|
|
31
31
|
*/
|
|
32
|
-
sourcePortalId:
|
|
32
|
+
sourcePortalId: string;
|
|
33
33
|
/**
|
|
34
34
|
* Display name of the offering portal
|
|
35
35
|
* @type {string}
|
|
@@ -37,11 +37,23 @@ export interface CourseShare {
|
|
|
37
37
|
*/
|
|
38
38
|
sourcePortalName: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {
|
|
40
|
+
* External ID of the receiving portal
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof CourseShare
|
|
43
|
+
*/
|
|
44
|
+
targetPortalId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Display name of the receiving portal
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof CourseShare
|
|
49
|
+
*/
|
|
50
|
+
targetPortalName: string;
|
|
51
|
+
/**
|
|
52
|
+
* External ID of the offered course
|
|
53
|
+
* @type {string}
|
|
42
54
|
* @memberof CourseShare
|
|
43
55
|
*/
|
|
44
|
-
courseId:
|
|
56
|
+
courseId: string;
|
|
45
57
|
/**
|
|
46
58
|
* Display name of the offered course
|
|
47
59
|
* @type {string}
|
|
@@ -66,6 +78,42 @@ export interface CourseShare {
|
|
|
66
78
|
* @memberof CourseShare
|
|
67
79
|
*/
|
|
68
80
|
allowResharing: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Per-share seat cap; null means unlimited
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof CourseShare
|
|
85
|
+
*/
|
|
86
|
+
seatLimit: number | null;
|
|
87
|
+
/**
|
|
88
|
+
* External ID of the catalog that produced the offer, when applicable
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CourseShare
|
|
91
|
+
*/
|
|
92
|
+
originCatalogId: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Display name of the catalog that produced the offer, when applicable
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CourseShare
|
|
97
|
+
*/
|
|
98
|
+
originCatalogName: string | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof CourseShare
|
|
103
|
+
*/
|
|
104
|
+
offeredAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof CourseShare
|
|
109
|
+
*/
|
|
110
|
+
respondedAt: Date | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Date}
|
|
114
|
+
* @memberof CourseShare
|
|
115
|
+
*/
|
|
116
|
+
revokedAt: Date | null;
|
|
69
117
|
}
|
|
70
118
|
/**
|
|
71
119
|
* @export
|
|
@@ -47,6 +47,10 @@ function instanceOfCourseShare(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('sourcePortalName' in value) || value['sourcePortalName'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
+
if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('targetPortalName' in value) || value['targetPortalName'] === undefined)
|
|
53
|
+
return false;
|
|
50
54
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
51
55
|
return false;
|
|
52
56
|
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
@@ -57,6 +61,18 @@ function instanceOfCourseShare(value) {
|
|
|
57
61
|
return false;
|
|
58
62
|
if (!('allowResharing' in value) || value['allowResharing'] === undefined)
|
|
59
63
|
return false;
|
|
64
|
+
if (!('seatLimit' in value) || value['seatLimit'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('originCatalogId' in value) || value['originCatalogId'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('originCatalogName' in value) || value['originCatalogName'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('offeredAt' in value) || value['offeredAt'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('respondedAt' in value) || value['respondedAt'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('revokedAt' in value) || value['revokedAt'] === undefined)
|
|
75
|
+
return false;
|
|
60
76
|
return true;
|
|
61
77
|
}
|
|
62
78
|
function CourseShareFromJSON(json) {
|
|
@@ -70,11 +86,19 @@ function CourseShareFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
86
|
'id': json['id'],
|
|
71
87
|
'sourcePortalId': json['source_portal_id'],
|
|
72
88
|
'sourcePortalName': json['source_portal_name'],
|
|
89
|
+
'targetPortalId': json['target_portal_id'],
|
|
90
|
+
'targetPortalName': json['target_portal_name'],
|
|
73
91
|
'courseId': json['course_id'],
|
|
74
92
|
'courseName': json['course_name'],
|
|
75
93
|
'allowedMode': json['allowed_mode'],
|
|
76
94
|
'state': json['state'],
|
|
77
95
|
'allowResharing': json['allow_resharing'],
|
|
96
|
+
'seatLimit': json['seat_limit'],
|
|
97
|
+
'originCatalogId': json['origin_catalog_id'],
|
|
98
|
+
'originCatalogName': json['origin_catalog_name'],
|
|
99
|
+
'offeredAt': (new Date(json['offered_at'])),
|
|
100
|
+
'respondedAt': (json['responded_at'] == null ? null : new Date(json['responded_at'])),
|
|
101
|
+
'revokedAt': (json['revoked_at'] == null ? null : new Date(json['revoked_at'])),
|
|
78
102
|
};
|
|
79
103
|
}
|
|
80
104
|
function CourseShareToJSON(json) {
|
|
@@ -88,10 +112,18 @@ function CourseShareToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
112
|
'id': value['id'],
|
|
89
113
|
'source_portal_id': value['sourcePortalId'],
|
|
90
114
|
'source_portal_name': value['sourcePortalName'],
|
|
115
|
+
'target_portal_id': value['targetPortalId'],
|
|
116
|
+
'target_portal_name': value['targetPortalName'],
|
|
91
117
|
'course_id': value['courseId'],
|
|
92
118
|
'course_name': value['courseName'],
|
|
93
119
|
'allowed_mode': value['allowedMode'],
|
|
94
120
|
'state': value['state'],
|
|
95
121
|
'allow_resharing': value['allowResharing'],
|
|
122
|
+
'seat_limit': value['seatLimit'],
|
|
123
|
+
'origin_catalog_id': value['originCatalogId'],
|
|
124
|
+
'origin_catalog_name': value['originCatalogName'],
|
|
125
|
+
'offered_at': value['offeredAt'].toISOString(),
|
|
126
|
+
'responded_at': value['respondedAt'] == null ? value['respondedAt'] : value['respondedAt'].toISOString(),
|
|
127
|
+
'revoked_at': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
|
|
96
128
|
};
|
|
97
129
|
}
|
|
@@ -27,6 +27,12 @@ export interface GetCourseExport {
|
|
|
27
27
|
* @memberof GetCourseExport
|
|
28
28
|
*/
|
|
29
29
|
courseId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Display name of the course being exported
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetCourseExport
|
|
34
|
+
*/
|
|
35
|
+
courseName: string;
|
|
30
36
|
/**
|
|
31
37
|
* Immutable version used by the export; null only for historical records.
|
|
32
38
|
* @type {string}
|
|
@@ -44,6 +44,8 @@ function instanceOfGetCourseExport(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
48
|
+
return false;
|
|
47
49
|
if (!('exportType' in value) || value['exportType'] === undefined)
|
|
48
50
|
return false;
|
|
49
51
|
if (!('sectionIds' in value) || value['sectionIds'] === undefined)
|
|
@@ -66,6 +68,7 @@ function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
return {
|
|
67
69
|
'id': json['id'],
|
|
68
70
|
'courseId': json['course_id'],
|
|
71
|
+
'courseName': json['course_name'],
|
|
69
72
|
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
70
73
|
'exportType': json['export_type'],
|
|
71
74
|
'sectionIds': json['section_ids'],
|
|
@@ -87,6 +90,7 @@ function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
90
|
return {
|
|
88
91
|
'id': value['id'],
|
|
89
92
|
'course_id': value['courseId'],
|
|
93
|
+
'course_name': value['courseName'],
|
|
90
94
|
'course_version_id': value['courseVersionId'],
|
|
91
95
|
'export_type': value['exportType'],
|
|
92
96
|
'section_ids': value['sectionIds'],
|
|
@@ -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}
|
package/dist/models/GetPortal.js
CHANGED
|
@@ -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;
|