@easyedu/js-lsm-api 1.60.0 → 1.61.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 +2 -0
- package/README.md +4 -2
- package/dist/apis/PortalApi.d.ts +15 -0
- package/dist/apis/PortalApi.js +38 -0
- package/dist/esm/apis/PortalApi.d.ts +15 -0
- package/dist/esm/apis/PortalApi.js +38 -0
- package/dist/esm/models/GetPublicPortalBranding.d.ts +68 -0
- package/dist/esm/models/GetPublicPortalBranding.js +67 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/GetPublicPortalBranding.d.ts +68 -0
- package/dist/models/GetPublicPortalBranding.js +74 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/GetPublicPortalBranding.md +47 -0
- package/docs/PortalApi.md +62 -0
- package/package.json +1 -1
- package/src/apis/PortalApi.ts +44 -0
- package/src/models/GetPublicPortalBranding.ts +120 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -88,6 +88,7 @@ docs/GetPortalStudentReportingCertificates.md
|
|
|
88
88
|
docs/GetPortalStudentReportingPortalInfo.md
|
|
89
89
|
docs/GetPortalUser.md
|
|
90
90
|
docs/GetPortalUserList.md
|
|
91
|
+
docs/GetPublicPortalBranding.md
|
|
91
92
|
docs/GetQuestion.md
|
|
92
93
|
docs/GetQuestionAnswerChoicesInner.md
|
|
93
94
|
docs/GetQuestionList.md
|
|
@@ -375,6 +376,7 @@ src/models/GetPortalStudentReportingCertificates.ts
|
|
|
375
376
|
src/models/GetPortalStudentReportingPortalInfo.ts
|
|
376
377
|
src/models/GetPortalUser.ts
|
|
377
378
|
src/models/GetPortalUserList.ts
|
|
379
|
+
src/models/GetPublicPortalBranding.ts
|
|
378
380
|
src/models/GetQuestion.ts
|
|
379
381
|
src/models/GetQuestionAnswerChoicesInner.ts
|
|
380
382
|
src/models/GetQuestionList.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.61.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -136,6 +136,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
136
136
|
*PortalApi* | [**getPortalById**](docs/PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal)
|
|
137
137
|
*PortalApi* | [**getPortalList**](docs/PortalApi.md#getportallist) | **GET** /portals | Get all portals a user has access to
|
|
138
138
|
*PortalApi* | [**getPortalUsers**](docs/PortalApi.md#getportalusers) | **GET** /portals/{portalId}/users | Get all users for a portal with optional role filtering
|
|
139
|
+
*PortalApi* | [**getPublicPortalBranding**](docs/PortalApi.md#getpublicportalbranding) | **GET** /public/portal/branding | Public portal branding resolved from the request host
|
|
139
140
|
*PortalApi* | [**inviteUserToPortal**](docs/PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal
|
|
140
141
|
*PortalApi* | [**postPortal**](docs/PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal
|
|
141
142
|
*PortalApi* | [**postPortalFaviconUpload**](docs/PortalApi.md#postportalfaviconupload) | **POST** /portals/{portalId}/branding/favicon | Upload a favicon image for portal branding
|
|
@@ -296,6 +297,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
296
297
|
- [GetPortalStudentReportingPortalInfo](docs/GetPortalStudentReportingPortalInfo.md)
|
|
297
298
|
- [GetPortalUser](docs/GetPortalUser.md)
|
|
298
299
|
- [GetPortalUserList](docs/GetPortalUserList.md)
|
|
300
|
+
- [GetPublicPortalBranding](docs/GetPublicPortalBranding.md)
|
|
299
301
|
- [GetQuestion](docs/GetQuestion.md)
|
|
300
302
|
- [GetQuestionAnswerChoicesInner](docs/GetQuestionAnswerChoicesInner.md)
|
|
301
303
|
- [GetQuestionList](docs/GetQuestionList.md)
|
|
@@ -487,7 +489,7 @@ and is automatically generated by the
|
|
|
487
489
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
488
490
|
|
|
489
491
|
- API version: `1.0.0`
|
|
490
|
-
- Package version: `1.
|
|
492
|
+
- Package version: `1.61.0`
|
|
491
493
|
- Generator version: `7.22.0`
|
|
492
494
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
493
495
|
|
package/dist/apis/PortalApi.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { type GetPortalFaviconUpload } from '../models/GetPortalFaviconUpload';
|
|
|
15
15
|
import { type GetPortalList } from '../models/GetPortalList';
|
|
16
16
|
import { type GetPortalLogoUpload } from '../models/GetPortalLogoUpload';
|
|
17
17
|
import { type GetPortalUserList } from '../models/GetPortalUserList';
|
|
18
|
+
import { type GetPublicPortalBranding } from '../models/GetPublicPortalBranding';
|
|
18
19
|
import { type PostPortal } from '../models/PostPortal';
|
|
19
20
|
import { type PostPortalInvite } from '../models/PostPortalInvite';
|
|
20
21
|
import { type PutPortalBranding } from '../models/PutPortalBranding';
|
|
@@ -122,6 +123,20 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
122
123
|
* Get all users for a portal with optional role filtering
|
|
123
124
|
*/
|
|
124
125
|
getPortalUsers(requestParameters: GetPortalUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalUserList>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for getPublicPortalBranding without sending the request
|
|
128
|
+
*/
|
|
129
|
+
getPublicPortalBrandingRequestOpts(): Promise<runtime.RequestOpts>;
|
|
130
|
+
/**
|
|
131
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
132
|
+
* Public portal branding resolved from the request host
|
|
133
|
+
*/
|
|
134
|
+
getPublicPortalBrandingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicPortalBranding>>;
|
|
135
|
+
/**
|
|
136
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
137
|
+
* Public portal branding resolved from the request host
|
|
138
|
+
*/
|
|
139
|
+
getPublicPortalBranding(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicPortalBranding>;
|
|
125
140
|
/**
|
|
126
141
|
* Creates request options for inviteUserToPortal without sending the request
|
|
127
142
|
*/
|
package/dist/apis/PortalApi.js
CHANGED
|
@@ -29,6 +29,7 @@ const GetPortalFaviconUpload_1 = require("../models/GetPortalFaviconUpload");
|
|
|
29
29
|
const GetPortalList_1 = require("../models/GetPortalList");
|
|
30
30
|
const GetPortalLogoUpload_1 = require("../models/GetPortalLogoUpload");
|
|
31
31
|
const GetPortalUserList_1 = require("../models/GetPortalUserList");
|
|
32
|
+
const GetPublicPortalBranding_1 = require("../models/GetPublicPortalBranding");
|
|
32
33
|
const PostPortal_1 = require("../models/PostPortal");
|
|
33
34
|
const PostPortalInvite_1 = require("../models/PostPortalInvite");
|
|
34
35
|
const PutPortalBranding_1 = require("../models/PutPortalBranding");
|
|
@@ -241,6 +242,43 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
241
242
|
return yield response.value();
|
|
242
243
|
});
|
|
243
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Creates request options for getPublicPortalBranding without sending the request
|
|
247
|
+
*/
|
|
248
|
+
getPublicPortalBrandingRequestOpts() {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
const queryParameters = {};
|
|
251
|
+
const headerParameters = {};
|
|
252
|
+
let urlPath = `/public/portal/branding`;
|
|
253
|
+
return {
|
|
254
|
+
path: urlPath,
|
|
255
|
+
method: 'GET',
|
|
256
|
+
headers: headerParameters,
|
|
257
|
+
query: queryParameters,
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
263
|
+
* Public portal branding resolved from the request host
|
|
264
|
+
*/
|
|
265
|
+
getPublicPortalBrandingRaw(initOverrides) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
const requestOptions = yield this.getPublicPortalBrandingRequestOpts();
|
|
268
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPublicPortalBranding_1.GetPublicPortalBrandingFromJSON)(jsonValue));
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
274
|
+
* Public portal branding resolved from the request host
|
|
275
|
+
*/
|
|
276
|
+
getPublicPortalBranding(initOverrides) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
const response = yield this.getPublicPortalBrandingRaw(initOverrides);
|
|
279
|
+
return yield response.value();
|
|
280
|
+
});
|
|
281
|
+
}
|
|
244
282
|
/**
|
|
245
283
|
* Creates request options for inviteUserToPortal without sending the request
|
|
246
284
|
*/
|
|
@@ -15,6 +15,7 @@ import { type GetPortalFaviconUpload } from '../models/GetPortalFaviconUpload';
|
|
|
15
15
|
import { type GetPortalList } from '../models/GetPortalList';
|
|
16
16
|
import { type GetPortalLogoUpload } from '../models/GetPortalLogoUpload';
|
|
17
17
|
import { type GetPortalUserList } from '../models/GetPortalUserList';
|
|
18
|
+
import { type GetPublicPortalBranding } from '../models/GetPublicPortalBranding';
|
|
18
19
|
import { type PostPortal } from '../models/PostPortal';
|
|
19
20
|
import { type PostPortalInvite } from '../models/PostPortalInvite';
|
|
20
21
|
import { type PutPortalBranding } from '../models/PutPortalBranding';
|
|
@@ -122,6 +123,20 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
122
123
|
* Get all users for a portal with optional role filtering
|
|
123
124
|
*/
|
|
124
125
|
getPortalUsers(requestParameters: GetPortalUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalUserList>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for getPublicPortalBranding without sending the request
|
|
128
|
+
*/
|
|
129
|
+
getPublicPortalBrandingRequestOpts(): Promise<runtime.RequestOpts>;
|
|
130
|
+
/**
|
|
131
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
132
|
+
* Public portal branding resolved from the request host
|
|
133
|
+
*/
|
|
134
|
+
getPublicPortalBrandingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicPortalBranding>>;
|
|
135
|
+
/**
|
|
136
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
137
|
+
* Public portal branding resolved from the request host
|
|
138
|
+
*/
|
|
139
|
+
getPublicPortalBranding(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicPortalBranding>;
|
|
125
140
|
/**
|
|
126
141
|
* Creates request options for inviteUserToPortal without sending the request
|
|
127
142
|
*/
|
|
@@ -26,6 +26,7 @@ import { GetPortalFaviconUploadFromJSON, } from '../models/GetPortalFaviconUploa
|
|
|
26
26
|
import { GetPortalListFromJSON, } from '../models/GetPortalList';
|
|
27
27
|
import { GetPortalLogoUploadFromJSON, } from '../models/GetPortalLogoUpload';
|
|
28
28
|
import { GetPortalUserListFromJSON, } from '../models/GetPortalUserList';
|
|
29
|
+
import { GetPublicPortalBrandingFromJSON, } from '../models/GetPublicPortalBranding';
|
|
29
30
|
import { PostPortalToJSON, } from '../models/PostPortal';
|
|
30
31
|
import { PostPortalInviteToJSON, } from '../models/PostPortalInvite';
|
|
31
32
|
import { PutPortalBrandingToJSON, } from '../models/PutPortalBranding';
|
|
@@ -238,6 +239,43 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
238
239
|
return yield response.value();
|
|
239
240
|
});
|
|
240
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Creates request options for getPublicPortalBranding without sending the request
|
|
244
|
+
*/
|
|
245
|
+
getPublicPortalBrandingRequestOpts() {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const queryParameters = {};
|
|
248
|
+
const headerParameters = {};
|
|
249
|
+
let urlPath = `/public/portal/branding`;
|
|
250
|
+
return {
|
|
251
|
+
path: urlPath,
|
|
252
|
+
method: 'GET',
|
|
253
|
+
headers: headerParameters,
|
|
254
|
+
query: queryParameters,
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
260
|
+
* Public portal branding resolved from the request host
|
|
261
|
+
*/
|
|
262
|
+
getPublicPortalBrandingRaw(initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const requestOptions = yield this.getPublicPortalBrandingRequestOpts();
|
|
265
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
266
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPublicPortalBrandingFromJSON(jsonValue));
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
271
|
+
* Public portal branding resolved from the request host
|
|
272
|
+
*/
|
|
273
|
+
getPublicPortalBranding(initOverrides) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const response = yield this.getPublicPortalBrandingRaw(initOverrides);
|
|
276
|
+
return yield response.value();
|
|
277
|
+
});
|
|
278
|
+
}
|
|
241
279
|
/**
|
|
242
280
|
* Creates request options for inviteUserToPortal without sending the request
|
|
243
281
|
*/
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Public portal branding resolved from the browser host.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPublicPortalBranding
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPublicPortalBranding {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPublicPortalBranding
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetPublicPortalBranding
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetPublicPortalBranding
|
|
34
|
+
*/
|
|
35
|
+
slug: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Presigned portal logo URL when a logo is configured.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetPublicPortalBranding
|
|
40
|
+
*/
|
|
41
|
+
logoUrl: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned portal favicon URL when a favicon is configured.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetPublicPortalBranding
|
|
46
|
+
*/
|
|
47
|
+
faviconUrl: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetPublicPortalBranding
|
|
52
|
+
*/
|
|
53
|
+
headerBackgroundColor: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetPublicPortalBranding
|
|
58
|
+
*/
|
|
59
|
+
headerTextColor: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GetPublicPortalBranding interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfGetPublicPortalBranding(value: object): value is GetPublicPortalBranding;
|
|
65
|
+
export declare function GetPublicPortalBrandingFromJSON(json: any): GetPublicPortalBranding;
|
|
66
|
+
export declare function GetPublicPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicPortalBranding;
|
|
67
|
+
export declare function GetPublicPortalBrandingToJSON(json: any): GetPublicPortalBranding;
|
|
68
|
+
export declare function GetPublicPortalBrandingToJSONTyped(value?: GetPublicPortalBranding | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
* Check if a given object implements the GetPublicPortalBranding interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPublicPortalBranding(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('faviconUrl' in value) || value['faviconUrl'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('headerTextColor' in value) || value['headerTextColor'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function GetPublicPortalBrandingFromJSON(json) {
|
|
35
|
+
return GetPublicPortalBrandingFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetPublicPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'slug': json['slug'],
|
|
45
|
+
'logoUrl': json['logo_url'],
|
|
46
|
+
'faviconUrl': json['favicon_url'],
|
|
47
|
+
'headerBackgroundColor': json['header_background_color'],
|
|
48
|
+
'headerTextColor': json['header_text_color'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function GetPublicPortalBrandingToJSON(json) {
|
|
52
|
+
return GetPublicPortalBrandingToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function GetPublicPortalBrandingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'slug': value['slug'],
|
|
62
|
+
'logo_url': value['logoUrl'],
|
|
63
|
+
'favicon_url': value['faviconUrl'],
|
|
64
|
+
'header_background_color': value['headerBackgroundColor'],
|
|
65
|
+
'header_text_color': value['headerTextColor'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -78,6 +78,7 @@ export * from './GetPortalStudentReportingCertificates';
|
|
|
78
78
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
79
79
|
export * from './GetPortalUser';
|
|
80
80
|
export * from './GetPortalUserList';
|
|
81
|
+
export * from './GetPublicPortalBranding';
|
|
81
82
|
export * from './GetQuestion';
|
|
82
83
|
export * from './GetQuestionAnswerChoicesInner';
|
|
83
84
|
export * from './GetQuestionList';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -80,6 +80,7 @@ export * from './GetPortalStudentReportingCertificates';
|
|
|
80
80
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
81
81
|
export * from './GetPortalUser';
|
|
82
82
|
export * from './GetPortalUserList';
|
|
83
|
+
export * from './GetPublicPortalBranding';
|
|
83
84
|
export * from './GetQuestion';
|
|
84
85
|
export * from './GetQuestionAnswerChoicesInner';
|
|
85
86
|
export * from './GetQuestionList';
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Public portal branding resolved from the browser host.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPublicPortalBranding
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPublicPortalBranding {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPublicPortalBranding
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetPublicPortalBranding
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetPublicPortalBranding
|
|
34
|
+
*/
|
|
35
|
+
slug: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Presigned portal logo URL when a logo is configured.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetPublicPortalBranding
|
|
40
|
+
*/
|
|
41
|
+
logoUrl: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned portal favicon URL when a favicon is configured.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetPublicPortalBranding
|
|
46
|
+
*/
|
|
47
|
+
faviconUrl: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetPublicPortalBranding
|
|
52
|
+
*/
|
|
53
|
+
headerBackgroundColor: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetPublicPortalBranding
|
|
58
|
+
*/
|
|
59
|
+
headerTextColor: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GetPublicPortalBranding interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfGetPublicPortalBranding(value: object): value is GetPublicPortalBranding;
|
|
65
|
+
export declare function GetPublicPortalBrandingFromJSON(json: any): GetPublicPortalBranding;
|
|
66
|
+
export declare function GetPublicPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicPortalBranding;
|
|
67
|
+
export declare function GetPublicPortalBrandingToJSON(json: any): GetPublicPortalBranding;
|
|
68
|
+
export declare function GetPublicPortalBrandingToJSONTyped(value?: GetPublicPortalBranding | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfGetPublicPortalBranding = instanceOfGetPublicPortalBranding;
|
|
17
|
+
exports.GetPublicPortalBrandingFromJSON = GetPublicPortalBrandingFromJSON;
|
|
18
|
+
exports.GetPublicPortalBrandingFromJSONTyped = GetPublicPortalBrandingFromJSONTyped;
|
|
19
|
+
exports.GetPublicPortalBrandingToJSON = GetPublicPortalBrandingToJSON;
|
|
20
|
+
exports.GetPublicPortalBrandingToJSONTyped = GetPublicPortalBrandingToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetPublicPortalBranding interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetPublicPortalBranding(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('faviconUrl' in value) || value['faviconUrl'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('headerTextColor' in value) || value['headerTextColor'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function GetPublicPortalBrandingFromJSON(json) {
|
|
42
|
+
return GetPublicPortalBrandingFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetPublicPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'slug': json['slug'],
|
|
52
|
+
'logoUrl': json['logo_url'],
|
|
53
|
+
'faviconUrl': json['favicon_url'],
|
|
54
|
+
'headerBackgroundColor': json['header_background_color'],
|
|
55
|
+
'headerTextColor': json['header_text_color'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function GetPublicPortalBrandingToJSON(json) {
|
|
59
|
+
return GetPublicPortalBrandingToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function GetPublicPortalBrandingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'slug': value['slug'],
|
|
69
|
+
'logo_url': value['logoUrl'],
|
|
70
|
+
'favicon_url': value['faviconUrl'],
|
|
71
|
+
'header_background_color': value['headerBackgroundColor'],
|
|
72
|
+
'header_text_color': value['headerTextColor'],
|
|
73
|
+
};
|
|
74
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export * from './GetPortalStudentReportingCertificates';
|
|
|
78
78
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
79
79
|
export * from './GetPortalUser';
|
|
80
80
|
export * from './GetPortalUserList';
|
|
81
|
+
export * from './GetPublicPortalBranding';
|
|
81
82
|
export * from './GetQuestion';
|
|
82
83
|
export * from './GetQuestionAnswerChoicesInner';
|
|
83
84
|
export * from './GetQuestionList';
|
package/dist/models/index.js
CHANGED
|
@@ -96,6 +96,7 @@ __exportStar(require("./GetPortalStudentReportingCertificates"), exports);
|
|
|
96
96
|
__exportStar(require("./GetPortalStudentReportingPortalInfo"), exports);
|
|
97
97
|
__exportStar(require("./GetPortalUser"), exports);
|
|
98
98
|
__exportStar(require("./GetPortalUserList"), exports);
|
|
99
|
+
__exportStar(require("./GetPublicPortalBranding"), exports);
|
|
99
100
|
__exportStar(require("./GetQuestion"), exports);
|
|
100
101
|
__exportStar(require("./GetQuestionAnswerChoicesInner"), exports);
|
|
101
102
|
__exportStar(require("./GetQuestionList"), exports);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
# GetPublicPortalBranding
|
|
3
|
+
|
|
4
|
+
Public portal branding resolved from the browser host.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`logoUrl` | string
|
|
14
|
+
`faviconUrl` | string
|
|
15
|
+
`headerBackgroundColor` | string
|
|
16
|
+
`headerTextColor` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetPublicPortalBranding } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"id": null,
|
|
26
|
+
"name": null,
|
|
27
|
+
"slug": null,
|
|
28
|
+
"logoUrl": null,
|
|
29
|
+
"faviconUrl": null,
|
|
30
|
+
"headerBackgroundColor": null,
|
|
31
|
+
"headerTextColor": null,
|
|
32
|
+
} satisfies GetPublicPortalBranding
|
|
33
|
+
|
|
34
|
+
console.log(example)
|
|
35
|
+
|
|
36
|
+
// Convert the instance to a JSON string
|
|
37
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
38
|
+
console.log(exampleJSON)
|
|
39
|
+
|
|
40
|
+
// Parse the JSON string back to an object
|
|
41
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetPublicPortalBranding
|
|
42
|
+
console.log(exampleParsed)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
46
|
+
|
|
47
|
+
|
package/docs/PortalApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
9
9
|
| [**getPortalById**](PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal) |
|
|
10
10
|
| [**getPortalList**](PortalApi.md#getportallist) | **GET** /portals | Get all portals a user has access to |
|
|
11
11
|
| [**getPortalUsers**](PortalApi.md#getportalusers) | **GET** /portals/{portalId}/users | Get all users for a portal with optional role filtering |
|
|
12
|
+
| [**getPublicPortalBranding**](PortalApi.md#getpublicportalbranding) | **GET** /public/portal/branding | Public portal branding resolved from the request host |
|
|
12
13
|
| [**inviteUserToPortal**](PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal |
|
|
13
14
|
| [**postPortal**](PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal |
|
|
14
15
|
| [**postPortalFaviconUpload**](PortalApi.md#postportalfaviconupload) | **POST** /portals/{portalId}/branding/favicon | Upload a favicon image for portal branding |
|
|
@@ -354,6 +355,67 @@ No authorization required
|
|
|
354
355
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
355
356
|
|
|
356
357
|
|
|
358
|
+
## getPublicPortalBranding
|
|
359
|
+
|
|
360
|
+
> GetPublicPortalBranding getPublicPortalBranding()
|
|
361
|
+
|
|
362
|
+
Public portal branding resolved from the request host
|
|
363
|
+
|
|
364
|
+
Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
365
|
+
|
|
366
|
+
### Example
|
|
367
|
+
|
|
368
|
+
```ts
|
|
369
|
+
import {
|
|
370
|
+
Configuration,
|
|
371
|
+
PortalApi,
|
|
372
|
+
} from '@easyedu/js-lsm-api';
|
|
373
|
+
import type { GetPublicPortalBrandingRequest } from '@easyedu/js-lsm-api';
|
|
374
|
+
|
|
375
|
+
async function example() {
|
|
376
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
377
|
+
const api = new PortalApi();
|
|
378
|
+
|
|
379
|
+
try {
|
|
380
|
+
const data = await api.getPublicPortalBranding();
|
|
381
|
+
console.log(data);
|
|
382
|
+
} catch (error) {
|
|
383
|
+
console.error(error);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// Run the test
|
|
388
|
+
example().catch(console.error);
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Parameters
|
|
392
|
+
|
|
393
|
+
This endpoint does not need any parameter.
|
|
394
|
+
|
|
395
|
+
### Return type
|
|
396
|
+
|
|
397
|
+
[**GetPublicPortalBranding**](GetPublicPortalBranding.md)
|
|
398
|
+
|
|
399
|
+
### Authorization
|
|
400
|
+
|
|
401
|
+
No authorization required
|
|
402
|
+
|
|
403
|
+
### HTTP request headers
|
|
404
|
+
|
|
405
|
+
- **Content-Type**: Not defined
|
|
406
|
+
- **Accept**: `application/json`
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
### HTTP response details
|
|
410
|
+
| Status code | Description | Response headers |
|
|
411
|
+
|-------------|-------------|------------------|
|
|
412
|
+
| **200** | Public portal branding | - |
|
|
413
|
+
| **400** | Invalid portal host | - |
|
|
414
|
+
| **404** | Portal host not found | - |
|
|
415
|
+
|
|
416
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
417
|
+
|
|
418
|
+
|
|
357
419
|
## inviteUserToPortal
|
|
358
420
|
|
|
359
421
|
> inviteUserToPortal(portalId, postPortalInvite)
|
package/package.json
CHANGED
package/src/apis/PortalApi.ts
CHANGED
|
@@ -38,6 +38,11 @@ import {
|
|
|
38
38
|
GetPortalUserListFromJSON,
|
|
39
39
|
GetPortalUserListToJSON,
|
|
40
40
|
} from '../models/GetPortalUserList';
|
|
41
|
+
import {
|
|
42
|
+
type GetPublicPortalBranding,
|
|
43
|
+
GetPublicPortalBrandingFromJSON,
|
|
44
|
+
GetPublicPortalBrandingToJSON,
|
|
45
|
+
} from '../models/GetPublicPortalBranding';
|
|
41
46
|
import {
|
|
42
47
|
type PostPortal,
|
|
43
48
|
PostPortalFromJSON,
|
|
@@ -348,6 +353,45 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
348
353
|
return await response.value();
|
|
349
354
|
}
|
|
350
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Creates request options for getPublicPortalBranding without sending the request
|
|
358
|
+
*/
|
|
359
|
+
async getPublicPortalBrandingRequestOpts(): Promise<runtime.RequestOpts> {
|
|
360
|
+
const queryParameters: any = {};
|
|
361
|
+
|
|
362
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
let urlPath = `/public/portal/branding`;
|
|
366
|
+
|
|
367
|
+
return {
|
|
368
|
+
path: urlPath,
|
|
369
|
+
method: 'GET',
|
|
370
|
+
headers: headerParameters,
|
|
371
|
+
query: queryParameters,
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
377
|
+
* Public portal branding resolved from the request host
|
|
378
|
+
*/
|
|
379
|
+
async getPublicPortalBrandingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicPortalBranding>> {
|
|
380
|
+
const requestOptions = await this.getPublicPortalBrandingRequestOpts();
|
|
381
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
382
|
+
|
|
383
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPublicPortalBrandingFromJSON(jsonValue));
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Resolves the browser Origin/Referer/Host to a platform portal and returns branding for unauthenticated pages.
|
|
388
|
+
* Public portal branding resolved from the request host
|
|
389
|
+
*/
|
|
390
|
+
async getPublicPortalBranding(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicPortalBranding> {
|
|
391
|
+
const response = await this.getPublicPortalBrandingRaw(initOverrides);
|
|
392
|
+
return await response.value();
|
|
393
|
+
}
|
|
394
|
+
|
|
351
395
|
/**
|
|
352
396
|
* Creates request options for inviteUserToPortal without sending the request
|
|
353
397
|
*/
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
* Public portal branding resolved from the browser host.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPublicPortalBranding
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPublicPortalBranding {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetPublicPortalBranding
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetPublicPortalBranding
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetPublicPortalBranding
|
|
38
|
+
*/
|
|
39
|
+
slug: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Presigned portal logo URL when a logo is configured.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetPublicPortalBranding
|
|
44
|
+
*/
|
|
45
|
+
logoUrl: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Presigned portal favicon URL when a favicon is configured.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetPublicPortalBranding
|
|
50
|
+
*/
|
|
51
|
+
faviconUrl: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GetPublicPortalBranding
|
|
56
|
+
*/
|
|
57
|
+
headerBackgroundColor: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof GetPublicPortalBranding
|
|
62
|
+
*/
|
|
63
|
+
headerTextColor: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the GetPublicPortalBranding interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfGetPublicPortalBranding(value: object): value is GetPublicPortalBranding {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
73
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
74
|
+
if (!('faviconUrl' in value) || value['faviconUrl'] === undefined) return false;
|
|
75
|
+
if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined) return false;
|
|
76
|
+
if (!('headerTextColor' in value) || value['headerTextColor'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function GetPublicPortalBrandingFromJSON(json: any): GetPublicPortalBranding {
|
|
81
|
+
return GetPublicPortalBrandingFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GetPublicPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicPortalBranding {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'name': json['name'],
|
|
92
|
+
'slug': json['slug'],
|
|
93
|
+
'logoUrl': json['logo_url'],
|
|
94
|
+
'faviconUrl': json['favicon_url'],
|
|
95
|
+
'headerBackgroundColor': json['header_background_color'],
|
|
96
|
+
'headerTextColor': json['header_text_color'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function GetPublicPortalBrandingToJSON(json: any): GetPublicPortalBranding {
|
|
101
|
+
return GetPublicPortalBrandingToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function GetPublicPortalBrandingToJSONTyped(value?: GetPublicPortalBranding | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'name': value['name'],
|
|
113
|
+
'slug': value['slug'],
|
|
114
|
+
'logo_url': value['logoUrl'],
|
|
115
|
+
'favicon_url': value['faviconUrl'],
|
|
116
|
+
'header_background_color': value['headerBackgroundColor'],
|
|
117
|
+
'header_text_color': value['headerTextColor'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -80,6 +80,7 @@ export * from './GetPortalStudentReportingCertificates';
|
|
|
80
80
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
81
81
|
export * from './GetPortalUser';
|
|
82
82
|
export * from './GetPortalUserList';
|
|
83
|
+
export * from './GetPublicPortalBranding';
|
|
83
84
|
export * from './GetQuestion';
|
|
84
85
|
export * from './GetQuestionAnswerChoicesInner';
|
|
85
86
|
export * from './GetQuestionList';
|