@easyedu/js-lsm-api 1.136.0 → 1.137.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/SystemApi.d.ts +17 -0
- package/dist/apis/SystemApi.js +45 -0
- package/dist/esm/apis/SystemApi.d.ts +17 -0
- package/dist/esm/apis/SystemApi.js +45 -0
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +6 -0
- package/dist/esm/models/PutSystemPortal.d.ts +32 -0
- package/dist/esm/models/PutSystemPortal.js +41 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +6 -0
- package/dist/models/PutSystemPortal.d.ts +32 -0
- package/dist/models/PutSystemPortal.js +48 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/GetPortal.md +4 -0
- package/docs/PutSystemPortal.md +35 -0
- package/docs/SystemApi.md +71 -0
- package/package.json +1 -1
- package/src/apis/SystemApi.ts +65 -0
- package/src/models/GetPortal.ts +17 -0
- package/src/models/PutSystemPortal.ts +65 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -372,6 +372,7 @@ docs/PutResourceVersion.md
|
|
|
372
372
|
docs/PutRole.md
|
|
373
373
|
docs/PutRolePermissions.md
|
|
374
374
|
docs/PutSupportTicket.md
|
|
375
|
+
docs/PutSystemPortal.md
|
|
375
376
|
docs/PutUser.md
|
|
376
377
|
docs/PutZapierSetup.md
|
|
377
378
|
docs/QuestionApi.md
|
|
@@ -815,6 +816,7 @@ src/models/PutResourceVersion.ts
|
|
|
815
816
|
src/models/PutRole.ts
|
|
816
817
|
src/models/PutRolePermissions.ts
|
|
817
818
|
src/models/PutSupportTicket.ts
|
|
819
|
+
src/models/PutSystemPortal.ts
|
|
818
820
|
src/models/PutUser.ts
|
|
819
821
|
src/models/PutZapierSetup.ts
|
|
820
822
|
src/models/QuestionImportCommitResult.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.137.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -404,6 +404,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
404
404
|
*SystemApi* | [**getSystemPortalOverview**](docs/SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics
|
|
405
405
|
*SystemApi* | [**getSystemPortals**](docs/SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals
|
|
406
406
|
*SystemApi* | [**getSystemSupportTickets**](docs/SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform
|
|
407
|
+
*SystemApi* | [**putSystemPortal**](docs/SystemApi.md#putsystemportal) | **PUT** /system/portals/{portalId} | Update platform-managed portal settings
|
|
407
408
|
*UserApi* | [**deleteUserAvatar**](docs/UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo
|
|
408
409
|
*UserApi* | [**getAuthCheck**](docs/UserApi.md#getauthcheck) | **GET** /auth/check | Check if a user is logged in
|
|
409
410
|
*UserApi* | [**getCurrentUserPermissions**](docs/UserApi.md#getcurrentuserpermissions) | **GET** /users/current/permissions | Get the current user\'s permissions
|
|
@@ -775,6 +776,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
775
776
|
- [PutRole](docs/PutRole.md)
|
|
776
777
|
- [PutRolePermissions](docs/PutRolePermissions.md)
|
|
777
778
|
- [PutSupportTicket](docs/PutSupportTicket.md)
|
|
779
|
+
- [PutSystemPortal](docs/PutSystemPortal.md)
|
|
778
780
|
- [PutUser](docs/PutUser.md)
|
|
779
781
|
- [PutZapierSetup](docs/PutZapierSetup.md)
|
|
780
782
|
- [QuestionImportCommitResult](docs/QuestionImportCommitResult.md)
|
|
@@ -840,7 +842,7 @@ and is automatically generated by the
|
|
|
840
842
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
841
843
|
|
|
842
844
|
- API version: `1.0.0`
|
|
843
|
-
- Package version: `1.
|
|
845
|
+
- Package version: `1.137.0`
|
|
844
846
|
- Generator version: `7.22.0`
|
|
845
847
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
846
848
|
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
|
|
|
16
16
|
import { type GetSystemBillingList } from '../models/GetSystemBillingList';
|
|
17
17
|
import { type GetSystemMetrics } from '../models/GetSystemMetrics';
|
|
18
18
|
import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
|
|
19
|
+
import { type PutSystemPortal } from '../models/PutSystemPortal';
|
|
19
20
|
export interface GetSystemBillingRequest {
|
|
20
21
|
page?: number;
|
|
21
22
|
pageSize?: number;
|
|
@@ -34,6 +35,10 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
34
35
|
page?: number;
|
|
35
36
|
pageSize?: number;
|
|
36
37
|
}
|
|
38
|
+
export interface PutSystemPortalRequest {
|
|
39
|
+
portalId: string;
|
|
40
|
+
putSystemPortal: PutSystemPortal;
|
|
41
|
+
}
|
|
37
42
|
/**
|
|
38
43
|
*
|
|
39
44
|
*/
|
|
@@ -110,4 +115,16 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
110
115
|
* List open support tickets across the platform
|
|
111
116
|
*/
|
|
112
117
|
getSystemSupportTickets(requestParameters?: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for putSystemPortal without sending the request
|
|
120
|
+
*/
|
|
121
|
+
putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Update platform-managed portal settings
|
|
124
|
+
*/
|
|
125
|
+
putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
|
|
126
|
+
/**
|
|
127
|
+
* Update platform-managed portal settings
|
|
128
|
+
*/
|
|
129
|
+
putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
113
130
|
}
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -30,6 +30,7 @@ const GetSupportTicketList_1 = require("../models/GetSupportTicketList");
|
|
|
30
30
|
const GetSystemBillingList_1 = require("../models/GetSystemBillingList");
|
|
31
31
|
const GetSystemMetrics_1 = require("../models/GetSystemMetrics");
|
|
32
32
|
const GetSystemPortalOverview_1 = require("../models/GetSystemPortalOverview");
|
|
33
|
+
const PutSystemPortal_1 = require("../models/PutSystemPortal");
|
|
33
34
|
/**
|
|
34
35
|
*
|
|
35
36
|
*/
|
|
@@ -270,5 +271,49 @@ class SystemApi extends runtime.BaseAPI {
|
|
|
270
271
|
return yield response.value();
|
|
271
272
|
});
|
|
272
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Creates request options for putSystemPortal without sending the request
|
|
276
|
+
*/
|
|
277
|
+
putSystemPortalRequestOpts(requestParameters) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
if (requestParameters['portalId'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putSystemPortal().');
|
|
281
|
+
}
|
|
282
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
283
|
+
throw new runtime.RequiredError('putSystemPortal', 'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().');
|
|
284
|
+
}
|
|
285
|
+
const queryParameters = {};
|
|
286
|
+
const headerParameters = {};
|
|
287
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
288
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
289
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
290
|
+
return {
|
|
291
|
+
path: urlPath,
|
|
292
|
+
method: 'PUT',
|
|
293
|
+
headers: headerParameters,
|
|
294
|
+
query: queryParameters,
|
|
295
|
+
body: (0, PutSystemPortal_1.PutSystemPortalToJSON)(requestParameters['putSystemPortal']),
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Update platform-managed portal settings
|
|
301
|
+
*/
|
|
302
|
+
putSystemPortalRaw(requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const requestOptions = yield this.putSystemPortalRequestOpts(requestParameters);
|
|
305
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortal_1.GetPortalFromJSON)(jsonValue));
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Update platform-managed portal settings
|
|
311
|
+
*/
|
|
312
|
+
putSystemPortal(requestParameters, initOverrides) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const response = yield this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
315
|
+
return yield response.value();
|
|
316
|
+
});
|
|
317
|
+
}
|
|
273
318
|
}
|
|
274
319
|
exports.SystemApi = SystemApi;
|
|
@@ -16,6 +16,7 @@ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
|
|
|
16
16
|
import { type GetSystemBillingList } from '../models/GetSystemBillingList';
|
|
17
17
|
import { type GetSystemMetrics } from '../models/GetSystemMetrics';
|
|
18
18
|
import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
|
|
19
|
+
import { type PutSystemPortal } from '../models/PutSystemPortal';
|
|
19
20
|
export interface GetSystemBillingRequest {
|
|
20
21
|
page?: number;
|
|
21
22
|
pageSize?: number;
|
|
@@ -34,6 +35,10 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
34
35
|
page?: number;
|
|
35
36
|
pageSize?: number;
|
|
36
37
|
}
|
|
38
|
+
export interface PutSystemPortalRequest {
|
|
39
|
+
portalId: string;
|
|
40
|
+
putSystemPortal: PutSystemPortal;
|
|
41
|
+
}
|
|
37
42
|
/**
|
|
38
43
|
*
|
|
39
44
|
*/
|
|
@@ -110,4 +115,16 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
110
115
|
* List open support tickets across the platform
|
|
111
116
|
*/
|
|
112
117
|
getSystemSupportTickets(requestParameters?: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for putSystemPortal without sending the request
|
|
120
|
+
*/
|
|
121
|
+
putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Update platform-managed portal settings
|
|
124
|
+
*/
|
|
125
|
+
putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
|
|
126
|
+
/**
|
|
127
|
+
* Update platform-managed portal settings
|
|
128
|
+
*/
|
|
129
|
+
putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
113
130
|
}
|
|
@@ -27,6 +27,7 @@ import { GetSupportTicketListFromJSON, } from '../models/GetSupportTicketList';
|
|
|
27
27
|
import { GetSystemBillingListFromJSON, } from '../models/GetSystemBillingList';
|
|
28
28
|
import { GetSystemMetricsFromJSON, } from '../models/GetSystemMetrics';
|
|
29
29
|
import { GetSystemPortalOverviewFromJSON, } from '../models/GetSystemPortalOverview';
|
|
30
|
+
import { PutSystemPortalToJSON, } from '../models/PutSystemPortal';
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
*/
|
|
@@ -267,4 +268,48 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
267
268
|
return yield response.value();
|
|
268
269
|
});
|
|
269
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Creates request options for putSystemPortal without sending the request
|
|
273
|
+
*/
|
|
274
|
+
putSystemPortalRequestOpts(requestParameters) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
if (requestParameters['portalId'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putSystemPortal().');
|
|
278
|
+
}
|
|
279
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('putSystemPortal', 'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().');
|
|
281
|
+
}
|
|
282
|
+
const queryParameters = {};
|
|
283
|
+
const headerParameters = {};
|
|
284
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
285
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
286
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
287
|
+
return {
|
|
288
|
+
path: urlPath,
|
|
289
|
+
method: 'PUT',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
body: PutSystemPortalToJSON(requestParameters['putSystemPortal']),
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Update platform-managed portal settings
|
|
298
|
+
*/
|
|
299
|
+
putSystemPortalRaw(requestParameters, initOverrides) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const requestOptions = yield this.putSystemPortalRequestOpts(requestParameters);
|
|
302
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
303
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Update platform-managed portal settings
|
|
308
|
+
*/
|
|
309
|
+
putSystemPortal(requestParameters, initOverrides) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
const response = yield this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
312
|
+
return yield response.value();
|
|
313
|
+
});
|
|
314
|
+
}
|
|
270
315
|
}
|
|
@@ -78,6 +78,18 @@ export interface GetPortal {
|
|
|
78
78
|
* @memberof GetPortal
|
|
79
79
|
*/
|
|
80
80
|
brandingTheme: PortalBrandThemeV1;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the platform has verified this portal. Email templates can only be changed on verified portals.
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof GetPortal
|
|
85
|
+
*/
|
|
86
|
+
verified: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* When the portal was verified, as Unix seconds.
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof GetPortal
|
|
91
|
+
*/
|
|
92
|
+
verifiedAt?: number | null;
|
|
81
93
|
/**
|
|
82
94
|
* The user's highest-privilege role base type for this portal
|
|
83
95
|
* @type {GetPortalBaseTypeEnum}
|
|
@@ -38,6 +38,8 @@ export function instanceOfGetPortal(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('brandingTheme' in value) || value['brandingTheme'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
export function GetPortalFromJSON(json) {
|
|
@@ -58,6 +60,8 @@ export function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'headerBackgroundColor': json['header_background_color'],
|
|
59
61
|
'headerTextColor': json['header_text_color'],
|
|
60
62
|
'brandingTheme': PortalBrandThemeV1FromJSON(json['branding_theme']),
|
|
63
|
+
'verified': json['verified'],
|
|
64
|
+
'verifiedAt': json['verified_at'] == null ? undefined : json['verified_at'],
|
|
61
65
|
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
62
66
|
};
|
|
63
67
|
}
|
|
@@ -79,6 +83,8 @@ export function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
83
|
'header_background_color': value['headerBackgroundColor'],
|
|
80
84
|
'header_text_color': value['headerTextColor'],
|
|
81
85
|
'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
|
|
86
|
+
'verified': value['verified'],
|
|
87
|
+
'verified_at': value['verifiedAt'],
|
|
82
88
|
'base_type': value['baseType'],
|
|
83
89
|
};
|
|
84
90
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Platform-managed portal settings. Omitted fields are left unchanged.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutSystemPortal
|
|
16
|
+
*/
|
|
17
|
+
export interface PutSystemPortal {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the platform has verified this portal. Unverified portals cannot change their email templates.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PutSystemPortal
|
|
22
|
+
*/
|
|
23
|
+
verified?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutSystemPortal interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutSystemPortal(value: object): value is PutSystemPortal;
|
|
29
|
+
export declare function PutSystemPortalFromJSON(json: any): PutSystemPortal;
|
|
30
|
+
export declare function PutSystemPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutSystemPortal;
|
|
31
|
+
export declare function PutSystemPortalToJSON(json: any): PutSystemPortal;
|
|
32
|
+
export declare function PutSystemPortalToJSONTyped(value?: PutSystemPortal | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 PutSystemPortal interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutSystemPortal(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PutSystemPortalFromJSON(json) {
|
|
21
|
+
return PutSystemPortalFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PutSystemPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'verified': json['verified'] == null ? undefined : json['verified'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function PutSystemPortalToJSON(json) {
|
|
32
|
+
return PutSystemPortalToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PutSystemPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'verified': value['verified'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -350,6 +350,7 @@ export * from './PutResourceVersion';
|
|
|
350
350
|
export * from './PutRole';
|
|
351
351
|
export * from './PutRolePermissions';
|
|
352
352
|
export * from './PutSupportTicket';
|
|
353
|
+
export * from './PutSystemPortal';
|
|
353
354
|
export * from './PutUser';
|
|
354
355
|
export * from './PutZapierSetup';
|
|
355
356
|
export * from './QuestionImportCommitResult';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -352,6 +352,7 @@ export * from './PutResourceVersion';
|
|
|
352
352
|
export * from './PutRole';
|
|
353
353
|
export * from './PutRolePermissions';
|
|
354
354
|
export * from './PutSupportTicket';
|
|
355
|
+
export * from './PutSystemPortal';
|
|
355
356
|
export * from './PutUser';
|
|
356
357
|
export * from './PutZapierSetup';
|
|
357
358
|
export * from './QuestionImportCommitResult';
|
|
@@ -78,6 +78,18 @@ export interface GetPortal {
|
|
|
78
78
|
* @memberof GetPortal
|
|
79
79
|
*/
|
|
80
80
|
brandingTheme: PortalBrandThemeV1;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the platform has verified this portal. Email templates can only be changed on verified portals.
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof GetPortal
|
|
85
|
+
*/
|
|
86
|
+
verified: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* When the portal was verified, as Unix seconds.
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof GetPortal
|
|
91
|
+
*/
|
|
92
|
+
verifiedAt?: number | null;
|
|
81
93
|
/**
|
|
82
94
|
* The user's highest-privilege role base type for this portal
|
|
83
95
|
* @type {GetPortalBaseTypeEnum}
|
package/dist/models/GetPortal.js
CHANGED
|
@@ -46,6 +46,8 @@ function instanceOfGetPortal(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
if (!('brandingTheme' in value) || value['brandingTheme'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
50
|
+
return false;
|
|
49
51
|
return true;
|
|
50
52
|
}
|
|
51
53
|
function GetPortalFromJSON(json) {
|
|
@@ -66,6 +68,8 @@ function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'headerBackgroundColor': json['header_background_color'],
|
|
67
69
|
'headerTextColor': json['header_text_color'],
|
|
68
70
|
'brandingTheme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1FromJSON)(json['branding_theme']),
|
|
71
|
+
'verified': json['verified'],
|
|
72
|
+
'verifiedAt': json['verified_at'] == null ? undefined : json['verified_at'],
|
|
69
73
|
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
70
74
|
};
|
|
71
75
|
}
|
|
@@ -87,6 +91,8 @@ function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
91
|
'header_background_color': value['headerBackgroundColor'],
|
|
88
92
|
'header_text_color': value['headerTextColor'],
|
|
89
93
|
'branding_theme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1ToJSON)(value['brandingTheme']),
|
|
94
|
+
'verified': value['verified'],
|
|
95
|
+
'verified_at': value['verifiedAt'],
|
|
90
96
|
'base_type': value['baseType'],
|
|
91
97
|
};
|
|
92
98
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Platform-managed portal settings. Omitted fields are left unchanged.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutSystemPortal
|
|
16
|
+
*/
|
|
17
|
+
export interface PutSystemPortal {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the platform has verified this portal. Unverified portals cannot change their email templates.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PutSystemPortal
|
|
22
|
+
*/
|
|
23
|
+
verified?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutSystemPortal interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutSystemPortal(value: object): value is PutSystemPortal;
|
|
29
|
+
export declare function PutSystemPortalFromJSON(json: any): PutSystemPortal;
|
|
30
|
+
export declare function PutSystemPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutSystemPortal;
|
|
31
|
+
export declare function PutSystemPortalToJSON(json: any): PutSystemPortal;
|
|
32
|
+
export declare function PutSystemPortalToJSONTyped(value?: PutSystemPortal | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfPutSystemPortal = instanceOfPutSystemPortal;
|
|
17
|
+
exports.PutSystemPortalFromJSON = PutSystemPortalFromJSON;
|
|
18
|
+
exports.PutSystemPortalFromJSONTyped = PutSystemPortalFromJSONTyped;
|
|
19
|
+
exports.PutSystemPortalToJSON = PutSystemPortalToJSON;
|
|
20
|
+
exports.PutSystemPortalToJSONTyped = PutSystemPortalToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutSystemPortal interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutSystemPortal(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutSystemPortalFromJSON(json) {
|
|
28
|
+
return PutSystemPortalFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutSystemPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'verified': json['verified'] == null ? undefined : json['verified'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PutSystemPortalToJSON(json) {
|
|
39
|
+
return PutSystemPortalToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PutSystemPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'verified': value['verified'],
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -350,6 +350,7 @@ export * from './PutResourceVersion';
|
|
|
350
350
|
export * from './PutRole';
|
|
351
351
|
export * from './PutRolePermissions';
|
|
352
352
|
export * from './PutSupportTicket';
|
|
353
|
+
export * from './PutSystemPortal';
|
|
353
354
|
export * from './PutUser';
|
|
354
355
|
export * from './PutZapierSetup';
|
|
355
356
|
export * from './QuestionImportCommitResult';
|
package/dist/models/index.js
CHANGED
|
@@ -368,6 +368,7 @@ __exportStar(require("./PutResourceVersion"), exports);
|
|
|
368
368
|
__exportStar(require("./PutRole"), exports);
|
|
369
369
|
__exportStar(require("./PutRolePermissions"), exports);
|
|
370
370
|
__exportStar(require("./PutSupportTicket"), exports);
|
|
371
|
+
__exportStar(require("./PutSystemPortal"), exports);
|
|
371
372
|
__exportStar(require("./PutUser"), exports);
|
|
372
373
|
__exportStar(require("./PutZapierSetup"), exports);
|
|
373
374
|
__exportStar(require("./QuestionImportCommitResult"), exports);
|
package/docs/GetPortal.md
CHANGED
|
@@ -16,6 +16,8 @@ Name | Type
|
|
|
16
16
|
`headerBackgroundColor` | string
|
|
17
17
|
`headerTextColor` | string
|
|
18
18
|
`brandingTheme` | [PortalBrandThemeV1](PortalBrandThemeV1.md)
|
|
19
|
+
`verified` | boolean
|
|
20
|
+
`verifiedAt` | number
|
|
19
21
|
`baseType` | string
|
|
20
22
|
|
|
21
23
|
## Example
|
|
@@ -35,6 +37,8 @@ const example = {
|
|
|
35
37
|
"headerBackgroundColor": null,
|
|
36
38
|
"headerTextColor": null,
|
|
37
39
|
"brandingTheme": null,
|
|
40
|
+
"verified": null,
|
|
41
|
+
"verifiedAt": null,
|
|
38
42
|
"baseType": null,
|
|
39
43
|
} satisfies GetPortal
|
|
40
44
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# PutSystemPortal
|
|
3
|
+
|
|
4
|
+
Platform-managed portal settings. Omitted fields are left unchanged.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`verified` | boolean
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PutSystemPortal } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"verified": null,
|
|
20
|
+
} satisfies PutSystemPortal
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutSystemPortal
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
package/docs/SystemApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
10
10
|
| [**getSystemPortalOverview**](SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics |
|
|
11
11
|
| [**getSystemPortals**](SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals |
|
|
12
12
|
| [**getSystemSupportTickets**](SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform |
|
|
13
|
+
| [**putSystemPortal**](SystemApi.md#putsystemportal) | **PUT** /system/portals/{portalId} | Update platform-managed portal settings |
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
@@ -411,3 +412,73 @@ No authorization required
|
|
|
411
412
|
|
|
412
413
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
413
414
|
|
|
415
|
+
|
|
416
|
+
## putSystemPortal
|
|
417
|
+
|
|
418
|
+
> GetPortal putSystemPortal(portalId, putSystemPortal)
|
|
419
|
+
|
|
420
|
+
Update platform-managed portal settings
|
|
421
|
+
|
|
422
|
+
### Example
|
|
423
|
+
|
|
424
|
+
```ts
|
|
425
|
+
import {
|
|
426
|
+
Configuration,
|
|
427
|
+
SystemApi,
|
|
428
|
+
} from '@easyedu/js-lsm-api';
|
|
429
|
+
import type { PutSystemPortalRequest } from '@easyedu/js-lsm-api';
|
|
430
|
+
|
|
431
|
+
async function example() {
|
|
432
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
433
|
+
const api = new SystemApi();
|
|
434
|
+
|
|
435
|
+
const body = {
|
|
436
|
+
// string
|
|
437
|
+
portalId: portalId_example,
|
|
438
|
+
// PutSystemPortal
|
|
439
|
+
putSystemPortal: ...,
|
|
440
|
+
} satisfies PutSystemPortalRequest;
|
|
441
|
+
|
|
442
|
+
try {
|
|
443
|
+
const data = await api.putSystemPortal(body);
|
|
444
|
+
console.log(data);
|
|
445
|
+
} catch (error) {
|
|
446
|
+
console.error(error);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// Run the test
|
|
451
|
+
example().catch(console.error);
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### Parameters
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
| Name | Type | Description | Notes |
|
|
458
|
+
|------------- | ------------- | ------------- | -------------|
|
|
459
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
460
|
+
| **putSystemPortal** | [PutSystemPortal](PutSystemPortal.md) | | |
|
|
461
|
+
|
|
462
|
+
### Return type
|
|
463
|
+
|
|
464
|
+
[**GetPortal**](GetPortal.md)
|
|
465
|
+
|
|
466
|
+
### Authorization
|
|
467
|
+
|
|
468
|
+
No authorization required
|
|
469
|
+
|
|
470
|
+
### HTTP request headers
|
|
471
|
+
|
|
472
|
+
- **Content-Type**: `application/json`
|
|
473
|
+
- **Accept**: `application/json`
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
### HTTP response details
|
|
477
|
+
| Status code | Description | Response headers |
|
|
478
|
+
|-------------|-------------|------------------|
|
|
479
|
+
| **200** | Updated portal | - |
|
|
480
|
+
| **403** | Forbidden | - |
|
|
481
|
+
| **404** | Portal not found | - |
|
|
482
|
+
|
|
483
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
484
|
+
|
package/package.json
CHANGED
package/src/apis/SystemApi.ts
CHANGED
|
@@ -43,6 +43,11 @@ import {
|
|
|
43
43
|
GetSystemPortalOverviewFromJSON,
|
|
44
44
|
GetSystemPortalOverviewToJSON,
|
|
45
45
|
} from '../models/GetSystemPortalOverview';
|
|
46
|
+
import {
|
|
47
|
+
type PutSystemPortal,
|
|
48
|
+
PutSystemPortalFromJSON,
|
|
49
|
+
PutSystemPortalToJSON,
|
|
50
|
+
} from '../models/PutSystemPortal';
|
|
46
51
|
|
|
47
52
|
export interface GetSystemBillingRequest {
|
|
48
53
|
page?: number;
|
|
@@ -67,6 +72,11 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
67
72
|
pageSize?: number;
|
|
68
73
|
}
|
|
69
74
|
|
|
75
|
+
export interface PutSystemPortalRequest {
|
|
76
|
+
portalId: string;
|
|
77
|
+
putSystemPortal: PutSystemPortal;
|
|
78
|
+
}
|
|
79
|
+
|
|
70
80
|
/**
|
|
71
81
|
*
|
|
72
82
|
*/
|
|
@@ -334,4 +344,59 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
334
344
|
return await response.value();
|
|
335
345
|
}
|
|
336
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Creates request options for putSystemPortal without sending the request
|
|
349
|
+
*/
|
|
350
|
+
async putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts> {
|
|
351
|
+
if (requestParameters['portalId'] == null) {
|
|
352
|
+
throw new runtime.RequiredError(
|
|
353
|
+
'portalId',
|
|
354
|
+
'Required parameter "portalId" was null or undefined when calling putSystemPortal().'
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
359
|
+
throw new runtime.RequiredError(
|
|
360
|
+
'putSystemPortal',
|
|
361
|
+
'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().'
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const queryParameters: any = {};
|
|
366
|
+
|
|
367
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
368
|
+
|
|
369
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
373
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
374
|
+
|
|
375
|
+
return {
|
|
376
|
+
path: urlPath,
|
|
377
|
+
method: 'PUT',
|
|
378
|
+
headers: headerParameters,
|
|
379
|
+
query: queryParameters,
|
|
380
|
+
body: PutSystemPortalToJSON(requestParameters['putSystemPortal']),
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Update platform-managed portal settings
|
|
386
|
+
*/
|
|
387
|
+
async putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>> {
|
|
388
|
+
const requestOptions = await this.putSystemPortalRequestOpts(requestParameters);
|
|
389
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
390
|
+
|
|
391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Update platform-managed portal settings
|
|
396
|
+
*/
|
|
397
|
+
async putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal> {
|
|
398
|
+
const response = await this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
399
|
+
return await response.value();
|
|
400
|
+
}
|
|
401
|
+
|
|
337
402
|
}
|
package/src/models/GetPortal.ts
CHANGED
|
@@ -89,6 +89,18 @@ export interface GetPortal {
|
|
|
89
89
|
* @memberof GetPortal
|
|
90
90
|
*/
|
|
91
91
|
brandingTheme: PortalBrandThemeV1;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the platform has verified this portal. Email templates can only be changed on verified portals.
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
* @memberof GetPortal
|
|
96
|
+
*/
|
|
97
|
+
verified: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* When the portal was verified, as Unix seconds.
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GetPortal
|
|
102
|
+
*/
|
|
103
|
+
verifiedAt?: number | null;
|
|
92
104
|
/**
|
|
93
105
|
* The user's highest-privilege role base type for this portal
|
|
94
106
|
* @type {GetPortalBaseTypeEnum}
|
|
@@ -122,6 +134,7 @@ export function instanceOfGetPortal(value: object): value is GetPortal {
|
|
|
122
134
|
if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined) return false;
|
|
123
135
|
if (!('headerTextColor' in value) || value['headerTextColor'] === undefined) return false;
|
|
124
136
|
if (!('brandingTheme' in value) || value['brandingTheme'] === undefined) return false;
|
|
137
|
+
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
125
138
|
return true;
|
|
126
139
|
}
|
|
127
140
|
|
|
@@ -145,6 +158,8 @@ export function GetPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
145
158
|
'headerBackgroundColor': json['header_background_color'],
|
|
146
159
|
'headerTextColor': json['header_text_color'],
|
|
147
160
|
'brandingTheme': PortalBrandThemeV1FromJSON(json['branding_theme']),
|
|
161
|
+
'verified': json['verified'],
|
|
162
|
+
'verifiedAt': json['verified_at'] == null ? undefined : json['verified_at'],
|
|
148
163
|
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
149
164
|
};
|
|
150
165
|
}
|
|
@@ -170,6 +185,8 @@ export function GetPortalToJSONTyped(value?: GetPortal | null, ignoreDiscriminat
|
|
|
170
185
|
'header_background_color': value['headerBackgroundColor'],
|
|
171
186
|
'header_text_color': value['headerTextColor'],
|
|
172
187
|
'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
|
|
188
|
+
'verified': value['verified'],
|
|
189
|
+
'verified_at': value['verifiedAt'],
|
|
173
190
|
'base_type': value['baseType'],
|
|
174
191
|
};
|
|
175
192
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* Platform-managed portal settings. Omitted fields are left unchanged.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutSystemPortal
|
|
20
|
+
*/
|
|
21
|
+
export interface PutSystemPortal {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the platform has verified this portal. Unverified portals cannot change their email templates.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PutSystemPortal
|
|
26
|
+
*/
|
|
27
|
+
verified?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutSystemPortal interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutSystemPortal(value: object): value is PutSystemPortal {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PutSystemPortalFromJSON(json: any): PutSystemPortal {
|
|
38
|
+
return PutSystemPortalFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PutSystemPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutSystemPortal {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'verified': json['verified'] == null ? undefined : json['verified'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PutSystemPortalToJSON(json: any): PutSystemPortal {
|
|
52
|
+
return PutSystemPortalToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PutSystemPortalToJSONTyped(value?: PutSystemPortal | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'verified': value['verified'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -352,6 +352,7 @@ export * from './PutResourceVersion';
|
|
|
352
352
|
export * from './PutRole';
|
|
353
353
|
export * from './PutRolePermissions';
|
|
354
354
|
export * from './PutSupportTicket';
|
|
355
|
+
export * from './PutSystemPortal';
|
|
355
356
|
export * from './PutUser';
|
|
356
357
|
export * from './PutZapierSetup';
|
|
357
358
|
export * from './QuestionImportCommitResult';
|