@easyedu/js-lsm-api 1.58.0 → 1.59.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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +7 -1
- package/dist/apis/UserApi.js +19 -13
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +7 -1
- package/dist/esm/apis/UserApi.js +11 -5
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/models/UpdateSelectedPortalResponse.js +59 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +38 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +24 -15
- package/src/models/GetPortal.ts +16 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +92 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +1 -2
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfUpdateSelectedPortalResponse = instanceOfUpdateSelectedPortalResponse;
|
|
17
|
+
exports.UpdateSelectedPortalResponseFromJSON = UpdateSelectedPortalResponseFromJSON;
|
|
18
|
+
exports.UpdateSelectedPortalResponseFromJSONTyped = UpdateSelectedPortalResponseFromJSONTyped;
|
|
19
|
+
exports.UpdateSelectedPortalResponseToJSON = UpdateSelectedPortalResponseToJSON;
|
|
20
|
+
exports.UpdateSelectedPortalResponseToJSONTyped = UpdateSelectedPortalResponseToJSONTyped;
|
|
21
|
+
const UpdateSelectedPortalResponseSelectedPortal_1 = require("./UpdateSelectedPortalResponseSelectedPortal");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateSelectedPortalResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateSelectedPortalResponse(value) {
|
|
26
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('expiration' in value) || value['expiration'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('selectedPortal' in value) || value['selectedPortal'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function UpdateSelectedPortalResponseFromJSON(json) {
|
|
35
|
+
return UpdateSelectedPortalResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function UpdateSelectedPortalResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'token': json['token'],
|
|
43
|
+
'expiration': json['expiration'],
|
|
44
|
+
'selectedPortal': (0, UpdateSelectedPortalResponseSelectedPortal_1.UpdateSelectedPortalResponseSelectedPortalFromJSON)(json['selected_portal']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UpdateSelectedPortalResponseToJSON(json) {
|
|
48
|
+
return UpdateSelectedPortalResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdateSelectedPortalResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'token': value['token'],
|
|
56
|
+
'expiration': value['expiration'],
|
|
57
|
+
'selected_portal': (0, UpdateSelectedPortalResponseSelectedPortal_1.UpdateSelectedPortalResponseSelectedPortalToJSON)(value['selectedPortal']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateSelectedPortalResponseSelectedPortal
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateSelectedPortalResponseSelectedPortal {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateSelectedPortalResponseSelectedPortal
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateSelectedPortalResponseSelectedPortal
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Platform subdomain slug for redirecting to the selected portal host.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateSelectedPortalResponseSelectedPortal
|
|
34
|
+
*/
|
|
35
|
+
slug: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UpdateSelectedPortalResponseSelectedPortal interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUpdateSelectedPortalResponseSelectedPortal(value: object): value is UpdateSelectedPortalResponseSelectedPortal;
|
|
41
|
+
export declare function UpdateSelectedPortalResponseSelectedPortalFromJSON(json: any): UpdateSelectedPortalResponseSelectedPortal;
|
|
42
|
+
export declare function UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelectedPortalResponseSelectedPortal;
|
|
43
|
+
export declare function UpdateSelectedPortalResponseSelectedPortalToJSON(json: any): UpdateSelectedPortalResponseSelectedPortal;
|
|
44
|
+
export declare function UpdateSelectedPortalResponseSelectedPortalToJSONTyped(value?: UpdateSelectedPortalResponseSelectedPortal | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfUpdateSelectedPortalResponseSelectedPortal = instanceOfUpdateSelectedPortalResponseSelectedPortal;
|
|
17
|
+
exports.UpdateSelectedPortalResponseSelectedPortalFromJSON = UpdateSelectedPortalResponseSelectedPortalFromJSON;
|
|
18
|
+
exports.UpdateSelectedPortalResponseSelectedPortalFromJSONTyped = UpdateSelectedPortalResponseSelectedPortalFromJSONTyped;
|
|
19
|
+
exports.UpdateSelectedPortalResponseSelectedPortalToJSON = UpdateSelectedPortalResponseSelectedPortalToJSON;
|
|
20
|
+
exports.UpdateSelectedPortalResponseSelectedPortalToJSONTyped = UpdateSelectedPortalResponseSelectedPortalToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateSelectedPortalResponseSelectedPortal interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateSelectedPortalResponseSelectedPortal(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
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UpdateSelectedPortalResponseSelectedPortalFromJSON(json) {
|
|
34
|
+
return UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UpdateSelectedPortalResponseSelectedPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UpdateSelectedPortalResponseSelectedPortalToJSON(json) {
|
|
47
|
+
return UpdateSelectedPortalResponseSelectedPortalToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UpdateSelectedPortalResponseSelectedPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'slug': value['slug'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -271,3 +271,5 @@ __exportStar(require("./ShortAnswer"), exports);
|
|
|
271
271
|
__exportStar(require("./ShortAnswer1"), exports);
|
|
272
272
|
__exportStar(require("./SingleAnswer"), exports);
|
|
273
273
|
__exportStar(require("./SupportTicketUser"), exports);
|
|
274
|
+
__exportStar(require("./UpdateSelectedPortalResponse"), exports);
|
|
275
|
+
__exportStar(require("./UpdateSelectedPortalResponseSelectedPortal"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -219,7 +219,7 @@ class BaseAPI {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
exports.BaseAPI = BaseAPI;
|
|
222
|
-
BaseAPI.jsonRegex =
|
|
222
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
223
223
|
;
|
|
224
224
|
function isBlob(value) {
|
|
225
225
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
package/docs/GetPortal.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`id` | string
|
|
10
10
|
`name` | string
|
|
11
11
|
`parentPortalId` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`clientDomain` | string
|
|
12
14
|
`logoUrl` | string
|
|
13
15
|
`faviconUrl` | string
|
|
14
16
|
`headerBackgroundColor` | string
|
|
@@ -25,6 +27,8 @@ const example = {
|
|
|
25
27
|
"id": null,
|
|
26
28
|
"name": null,
|
|
27
29
|
"parentPortalId": null,
|
|
30
|
+
"slug": null,
|
|
31
|
+
"clientDomain": null,
|
|
28
32
|
"logoUrl": null,
|
|
29
33
|
"faviconUrl": null,
|
|
30
34
|
"headerBackgroundColor": null,
|
package/docs/PortalApi.md
CHANGED
|
@@ -701,7 +701,7 @@ No authorization required
|
|
|
701
701
|
|
|
702
702
|
## updateSelectedPortal
|
|
703
703
|
|
|
704
|
-
> updateSelectedPortal(portalId)
|
|
704
|
+
> UpdateSelectedPortalResponse updateSelectedPortal(portalId)
|
|
705
705
|
|
|
706
706
|
Update the users current selected portal. Returns new JWT with updated roles.
|
|
707
707
|
|
|
@@ -744,7 +744,7 @@ example().catch(console.error);
|
|
|
744
744
|
|
|
745
745
|
### Return type
|
|
746
746
|
|
|
747
|
-
|
|
747
|
+
[**UpdateSelectedPortalResponse**](UpdateSelectedPortalResponse.md)
|
|
748
748
|
|
|
749
749
|
### Authorization
|
|
750
750
|
|
|
@@ -753,7 +753,7 @@ No authorization required
|
|
|
753
753
|
### HTTP request headers
|
|
754
754
|
|
|
755
755
|
- **Content-Type**: Not defined
|
|
756
|
-
- **Accept**:
|
|
756
|
+
- **Accept**: `application/json`
|
|
757
757
|
|
|
758
758
|
|
|
759
759
|
### HTTP response details
|
package/docs/PostPortal.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`headerBackgroundColor` | string
|
|
11
11
|
`headerTextColor` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`clientDomain` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"name": null,
|
|
21
23
|
"headerBackgroundColor": null,
|
|
22
24
|
"headerTextColor": null,
|
|
25
|
+
"slug": null,
|
|
26
|
+
"clientDomain": null,
|
|
23
27
|
} satisfies PostPortal
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`headerBackgroundColor` | string
|
|
11
11
|
`headerTextColor` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`clientDomain` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"name": null,
|
|
21
23
|
"headerBackgroundColor": null,
|
|
22
24
|
"headerTextColor": null,
|
|
25
|
+
"slug": null,
|
|
26
|
+
"clientDomain": null,
|
|
23
27
|
} satisfies PutPortalBranding
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateSelectedPortalResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`token` | string
|
|
10
|
+
`expiration` | number
|
|
11
|
+
`selectedPortal` | [UpdateSelectedPortalResponseSelectedPortal](UpdateSelectedPortalResponseSelectedPortal.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { UpdateSelectedPortalResponse } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"token": null,
|
|
21
|
+
"expiration": null,
|
|
22
|
+
"selectedPortal": null,
|
|
23
|
+
} satisfies UpdateSelectedPortalResponse
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateSelectedPortalResponse
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateSelectedPortalResponseSelectedPortal
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { UpdateSelectedPortalResponseSelectedPortal } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
"slug": null,
|
|
23
|
+
} satisfies UpdateSelectedPortalResponseSelectedPortal
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateSelectedPortalResponseSelectedPortal
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/package.json
CHANGED
|
@@ -12,42 +12,57 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
Certificate,
|
|
19
|
-
CertificateConfig,
|
|
20
|
-
CertificatePublic,
|
|
21
|
-
EffectiveCertificateConfig,
|
|
22
|
-
GetCertificateConfigList,
|
|
23
|
-
GetCertificateList,
|
|
24
|
-
PostCertificate,
|
|
25
|
-
PostCertificateConfig,
|
|
26
|
-
PostRevokeCertificate,
|
|
27
|
-
PutCertificateConfig,
|
|
28
|
-
} from '../models/index';
|
|
29
16
|
import {
|
|
17
|
+
type Certificate,
|
|
30
18
|
CertificateFromJSON,
|
|
31
19
|
CertificateToJSON,
|
|
20
|
+
} from '../models/Certificate';
|
|
21
|
+
import {
|
|
22
|
+
type CertificateConfig,
|
|
32
23
|
CertificateConfigFromJSON,
|
|
33
24
|
CertificateConfigToJSON,
|
|
25
|
+
} from '../models/CertificateConfig';
|
|
26
|
+
import {
|
|
27
|
+
type CertificatePublic,
|
|
34
28
|
CertificatePublicFromJSON,
|
|
35
29
|
CertificatePublicToJSON,
|
|
30
|
+
} from '../models/CertificatePublic';
|
|
31
|
+
import {
|
|
32
|
+
type EffectiveCertificateConfig,
|
|
36
33
|
EffectiveCertificateConfigFromJSON,
|
|
37
34
|
EffectiveCertificateConfigToJSON,
|
|
35
|
+
} from '../models/EffectiveCertificateConfig';
|
|
36
|
+
import {
|
|
37
|
+
type GetCertificateConfigList,
|
|
38
38
|
GetCertificateConfigListFromJSON,
|
|
39
39
|
GetCertificateConfigListToJSON,
|
|
40
|
+
} from '../models/GetCertificateConfigList';
|
|
41
|
+
import {
|
|
42
|
+
type GetCertificateList,
|
|
40
43
|
GetCertificateListFromJSON,
|
|
41
44
|
GetCertificateListToJSON,
|
|
45
|
+
} from '../models/GetCertificateList';
|
|
46
|
+
import {
|
|
47
|
+
type PostCertificate,
|
|
42
48
|
PostCertificateFromJSON,
|
|
43
49
|
PostCertificateToJSON,
|
|
50
|
+
} from '../models/PostCertificate';
|
|
51
|
+
import {
|
|
52
|
+
type PostCertificateConfig,
|
|
44
53
|
PostCertificateConfigFromJSON,
|
|
45
54
|
PostCertificateConfigToJSON,
|
|
55
|
+
} from '../models/PostCertificateConfig';
|
|
56
|
+
import {
|
|
57
|
+
type PostRevokeCertificate,
|
|
46
58
|
PostRevokeCertificateFromJSON,
|
|
47
59
|
PostRevokeCertificateToJSON,
|
|
60
|
+
} from '../models/PostRevokeCertificate';
|
|
61
|
+
import {
|
|
62
|
+
type PutCertificateConfig,
|
|
48
63
|
PutCertificateConfigFromJSON,
|
|
49
64
|
PutCertificateConfigToJSON,
|
|
50
|
-
} from '../models/
|
|
65
|
+
} from '../models/PutCertificateConfig';
|
|
51
66
|
|
|
52
67
|
export interface DeleteCertificateConfigRequest {
|
|
53
68
|
configId: string;
|
|
@@ -130,7 +145,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
130
145
|
|
|
131
146
|
|
|
132
147
|
let urlPath = `/certificate-configs/{configId}`;
|
|
133
|
-
urlPath = urlPath.replace(
|
|
148
|
+
urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
|
|
134
149
|
|
|
135
150
|
return {
|
|
136
151
|
path: urlPath,
|
|
@@ -174,7 +189,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
174
189
|
|
|
175
190
|
|
|
176
191
|
let urlPath = `/certificates/{certificateId}`;
|
|
177
|
-
urlPath = urlPath.replace(
|
|
192
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
178
193
|
|
|
179
194
|
return {
|
|
180
195
|
path: urlPath,
|
|
@@ -219,7 +234,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
219
234
|
|
|
220
235
|
|
|
221
236
|
let urlPath = `/certificate-configs/{configId}`;
|
|
222
|
-
urlPath = urlPath.replace(
|
|
237
|
+
urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
|
|
223
238
|
|
|
224
239
|
return {
|
|
225
240
|
path: urlPath,
|
|
@@ -309,7 +324,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
309
324
|
|
|
310
325
|
|
|
311
326
|
let urlPath = `/certificates/{certificateId}/pdf`;
|
|
312
|
-
urlPath = urlPath.replace(
|
|
327
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
313
328
|
|
|
314
329
|
return {
|
|
315
330
|
path: urlPath,
|
|
@@ -460,7 +475,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
460
475
|
|
|
461
476
|
|
|
462
477
|
let urlPath = `/courses/{courseId}/certificate-config/effective`;
|
|
463
|
-
urlPath = urlPath.replace(
|
|
478
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
464
479
|
|
|
465
480
|
return {
|
|
466
481
|
path: urlPath,
|
|
@@ -561,7 +576,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
561
576
|
|
|
562
577
|
|
|
563
578
|
let urlPath = `/courses/{courseId}/certificates`;
|
|
564
|
-
urlPath = urlPath.replace(
|
|
579
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
565
580
|
|
|
566
581
|
return {
|
|
567
582
|
path: urlPath,
|
|
@@ -616,7 +631,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
616
631
|
|
|
617
632
|
|
|
618
633
|
let urlPath = `/certificates/{certificateId}/revoke`;
|
|
619
|
-
urlPath = urlPath.replace(
|
|
634
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
620
635
|
|
|
621
636
|
return {
|
|
622
637
|
path: urlPath,
|
|
@@ -671,7 +686,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
671
686
|
|
|
672
687
|
|
|
673
688
|
let urlPath = `/certificate-configs/{configId}`;
|
|
674
|
-
urlPath = urlPath.replace(
|
|
689
|
+
urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
|
|
675
690
|
|
|
676
691
|
return {
|
|
677
692
|
path: urlPath,
|
|
@@ -717,7 +732,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
717
732
|
|
|
718
733
|
|
|
719
734
|
let urlPath = `/public/certificates/{certificateId}/verify`;
|
|
720
|
-
urlPath = urlPath.replace(
|
|
735
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
721
736
|
|
|
722
737
|
return {
|
|
723
738
|
path: urlPath,
|
package/src/apis/ChatApi.ts
CHANGED
|
@@ -12,30 +12,37 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GetChatMessage,
|
|
19
|
-
GetConversationList,
|
|
20
|
-
PostConversation,
|
|
21
|
-
PostConversationResponse,
|
|
22
|
-
PostMessage,
|
|
23
|
-
PostMessageResponse,
|
|
24
|
-
} from '../models/index';
|
|
25
16
|
import {
|
|
17
|
+
type GetChatMessage,
|
|
26
18
|
GetChatMessageFromJSON,
|
|
27
19
|
GetChatMessageToJSON,
|
|
20
|
+
} from '../models/GetChatMessage';
|
|
21
|
+
import {
|
|
22
|
+
type GetConversationList,
|
|
28
23
|
GetConversationListFromJSON,
|
|
29
24
|
GetConversationListToJSON,
|
|
25
|
+
} from '../models/GetConversationList';
|
|
26
|
+
import {
|
|
27
|
+
type PostConversation,
|
|
30
28
|
PostConversationFromJSON,
|
|
31
29
|
PostConversationToJSON,
|
|
30
|
+
} from '../models/PostConversation';
|
|
31
|
+
import {
|
|
32
|
+
type PostConversationResponse,
|
|
32
33
|
PostConversationResponseFromJSON,
|
|
33
34
|
PostConversationResponseToJSON,
|
|
35
|
+
} from '../models/PostConversationResponse';
|
|
36
|
+
import {
|
|
37
|
+
type PostMessage,
|
|
34
38
|
PostMessageFromJSON,
|
|
35
39
|
PostMessageToJSON,
|
|
40
|
+
} from '../models/PostMessage';
|
|
41
|
+
import {
|
|
42
|
+
type PostMessageResponse,
|
|
36
43
|
PostMessageResponseFromJSON,
|
|
37
44
|
PostMessageResponseToJSON,
|
|
38
|
-
} from '../models/
|
|
45
|
+
} from '../models/PostMessageResponse';
|
|
39
46
|
|
|
40
47
|
export interface DeleteConversationRequest {
|
|
41
48
|
conversationId: string;
|
|
@@ -81,7 +88,7 @@ export class ChatApi extends runtime.BaseAPI {
|
|
|
81
88
|
|
|
82
89
|
|
|
83
90
|
let urlPath = `/chat/conversations/{conversationId}`;
|
|
84
|
-
urlPath = urlPath.replace(
|
|
91
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
85
92
|
|
|
86
93
|
return {
|
|
87
94
|
path: urlPath,
|
|
@@ -125,7 +132,7 @@ export class ChatApi extends runtime.BaseAPI {
|
|
|
125
132
|
|
|
126
133
|
|
|
127
134
|
let urlPath = `/chat/conversations/{conversationId}/messages`;
|
|
128
|
-
urlPath = urlPath.replace(
|
|
135
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
129
136
|
|
|
130
137
|
return {
|
|
131
138
|
path: urlPath,
|
|
@@ -271,7 +278,7 @@ export class ChatApi extends runtime.BaseAPI {
|
|
|
271
278
|
|
|
272
279
|
|
|
273
280
|
let urlPath = `/chat/conversations/{conversationId}/messages`;
|
|
274
|
-
urlPath = urlPath.replace(
|
|
281
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
275
282
|
|
|
276
283
|
return {
|
|
277
284
|
path: urlPath,
|