@easyedu/js-lsm-api 1.131.0 → 1.133.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 +28 -0
- package/README.md +18 -2
- package/dist/apis/PortalApi.d.ts +9 -0
- package/dist/apis/PortalApi.js +11 -1
- package/dist/apis/QuestionApi.d.ts +19 -0
- package/dist/apis/QuestionApi.js +44 -0
- package/dist/apis/SystemApi.d.ts +16 -0
- package/dist/apis/SystemApi.js +40 -0
- package/dist/esm/apis/PortalApi.d.ts +9 -0
- package/dist/esm/apis/PortalApi.js +10 -0
- package/dist/esm/apis/QuestionApi.d.ts +19 -0
- package/dist/esm/apis/QuestionApi.js +44 -0
- package/dist/esm/apis/SystemApi.d.ts +16 -0
- package/dist/esm/apis/SystemApi.js +40 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +6 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.js +2 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +6 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.js +4 -0
- package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
- package/dist/esm/models/GetSystemPortalOverview.js +106 -0
- package/dist/esm/models/PostQuestionTags.d.ts +38 -0
- package/dist/esm/models/PostQuestionTags.js +47 -0
- package/dist/esm/models/PostQuestionTagsResponse.d.ts +32 -0
- package/dist/esm/models/PostQuestionTagsResponse.js +43 -0
- package/dist/esm/models/SystemPortalActivityStats.d.ts +56 -0
- package/dist/esm/models/SystemPortalActivityStats.js +57 -0
- package/dist/esm/models/SystemPortalCertificateStats.d.ts +50 -0
- package/dist/esm/models/SystemPortalCertificateStats.js +55 -0
- package/dist/esm/models/SystemPortalContentStats.d.ts +56 -0
- package/dist/esm/models/SystemPortalContentStats.js +59 -0
- package/dist/esm/models/SystemPortalCourseStats.d.ts +62 -0
- package/dist/esm/models/SystemPortalCourseStats.js +63 -0
- package/dist/esm/models/SystemPortalEnrollmentStats.d.ts +56 -0
- package/dist/esm/models/SystemPortalEnrollmentStats.js +59 -0
- package/dist/esm/models/SystemPortalHierarchy.d.ts +44 -0
- package/dist/esm/models/SystemPortalHierarchy.js +47 -0
- package/dist/esm/models/SystemPortalLicense.d.ts +65 -0
- package/dist/esm/models/SystemPortalLicense.js +61 -0
- package/dist/esm/models/SystemPortalRoleCount.d.ts +51 -0
- package/dist/esm/models/SystemPortalRoleCount.js +59 -0
- package/dist/esm/models/SystemPortalStorageUsage.d.ts +74 -0
- package/dist/esm/models/SystemPortalStorageUsage.js +71 -0
- package/dist/esm/models/SystemPortalSupportStats.d.ts +50 -0
- package/dist/esm/models/SystemPortalSupportStats.js +55 -0
- package/dist/esm/models/SystemPortalUserStats.d.ts +81 -0
- package/dist/esm/models/SystemPortalUserStats.js +74 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/GetCourseEnrollmentListItem.d.ts +6 -0
- package/dist/models/GetCourseEnrollmentListItem.js +2 -0
- package/dist/models/GetResourceUsageCoursesInner.d.ts +6 -0
- package/dist/models/GetResourceUsageCoursesInner.js +4 -0
- package/dist/models/GetSystemPortalOverview.d.ts +121 -0
- package/dist/models/GetSystemPortalOverview.js +113 -0
- package/dist/models/PostQuestionTags.d.ts +38 -0
- package/dist/models/PostQuestionTags.js +54 -0
- package/dist/models/PostQuestionTagsResponse.d.ts +32 -0
- package/dist/models/PostQuestionTagsResponse.js +50 -0
- package/dist/models/SystemPortalActivityStats.d.ts +56 -0
- package/dist/models/SystemPortalActivityStats.js +64 -0
- package/dist/models/SystemPortalCertificateStats.d.ts +50 -0
- package/dist/models/SystemPortalCertificateStats.js +62 -0
- package/dist/models/SystemPortalContentStats.d.ts +56 -0
- package/dist/models/SystemPortalContentStats.js +66 -0
- package/dist/models/SystemPortalCourseStats.d.ts +62 -0
- package/dist/models/SystemPortalCourseStats.js +70 -0
- package/dist/models/SystemPortalEnrollmentStats.d.ts +56 -0
- package/dist/models/SystemPortalEnrollmentStats.js +66 -0
- package/dist/models/SystemPortalHierarchy.d.ts +44 -0
- package/dist/models/SystemPortalHierarchy.js +54 -0
- package/dist/models/SystemPortalLicense.d.ts +65 -0
- package/dist/models/SystemPortalLicense.js +69 -0
- package/dist/models/SystemPortalRoleCount.d.ts +51 -0
- package/dist/models/SystemPortalRoleCount.js +67 -0
- package/dist/models/SystemPortalStorageUsage.d.ts +74 -0
- package/dist/models/SystemPortalStorageUsage.js +78 -0
- package/dist/models/SystemPortalSupportStats.d.ts +50 -0
- package/dist/models/SystemPortalSupportStats.js +62 -0
- package/dist/models/SystemPortalUserStats.d.ts +81 -0
- package/dist/models/SystemPortalUserStats.js +81 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/GetCourseEnrollmentListItem.md +2 -0
- package/docs/GetResourceUsageCoursesInner.md +2 -0
- package/docs/GetSystemPortalOverview.md +61 -0
- package/docs/PortalApi.md +4 -1
- package/docs/PostQuestionTags.md +37 -0
- package/docs/PostQuestionTagsResponse.md +34 -0
- package/docs/QuestionApi.md +71 -0
- package/docs/SystemApi.md +68 -0
- package/docs/SystemPortalActivityStats.md +42 -0
- package/docs/SystemPortalCertificateStats.md +40 -0
- package/docs/SystemPortalContentStats.md +43 -0
- package/docs/SystemPortalCourseStats.md +44 -0
- package/docs/SystemPortalEnrollmentStats.md +43 -0
- package/docs/SystemPortalHierarchy.md +38 -0
- package/docs/SystemPortalLicense.md +42 -0
- package/docs/SystemPortalRoleCount.md +36 -0
- package/docs/SystemPortalStorageUsage.md +49 -0
- package/docs/SystemPortalSupportStats.md +40 -0
- package/docs/SystemPortalUserStats.md +50 -0
- package/package.json +1 -1
- package/src/apis/PortalApi.ts +13 -0
- package/src/apis/QuestionApi.ts +63 -0
- package/src/apis/SystemApi.ts +54 -0
- package/src/models/GetCourseEnrollmentListItem.ts +8 -0
- package/src/models/GetResourceUsageCoursesInner.ts +9 -0
- package/src/models/GetSystemPortalOverview.ts +261 -0
- package/src/models/PostQuestionTags.ts +75 -0
- package/src/models/PostQuestionTagsResponse.ts +66 -0
- package/src/models/SystemPortalActivityStats.ts +101 -0
- package/src/models/SystemPortalCertificateStats.ts +93 -0
- package/src/models/SystemPortalContentStats.ts +102 -0
- package/src/models/SystemPortalCourseStats.ts +111 -0
- package/src/models/SystemPortalEnrollmentStats.ts +102 -0
- package/src/models/SystemPortalHierarchy.ts +82 -0
- package/src/models/SystemPortalLicense.ts +111 -0
- package/src/models/SystemPortalRoleCount.ts +91 -0
- package/src/models/SystemPortalStorageUsage.ts +129 -0
- package/src/models/SystemPortalSupportStats.ts +93 -0
- package/src/models/SystemPortalUserStats.ts +145 -0
- package/src/models/index.ts +14 -0
package/docs/QuestionApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
9
9
|
| [**getQuestionList**](QuestionApi.md#getquestionlist) | **GET** /questions | Get list of questions with filtering and pagination |
|
|
10
10
|
| [**getQuestionVersions**](QuestionApi.md#getquestionversions) | **GET** /questions/{questionId}/versions | Get all versions of a question |
|
|
11
11
|
| [**postQuestion**](QuestionApi.md#postquestion) | **POST** /questions | Create a new question |
|
|
12
|
+
| [**postQuestionTags**](QuestionApi.md#postquestiontags) | **POST** /questions/tags | Add tags to several questions |
|
|
12
13
|
| [**putQuestion**](QuestionApi.md#putquestion) | **PUT** /questions/{questionId} | Create the next version of a question |
|
|
13
14
|
|
|
14
15
|
|
|
@@ -355,6 +356,76 @@ No authorization required
|
|
|
355
356
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
356
357
|
|
|
357
358
|
|
|
359
|
+
## postQuestionTags
|
|
360
|
+
|
|
361
|
+
> PostQuestionTagsResponse postQuestionTags(postQuestionTags)
|
|
362
|
+
|
|
363
|
+
Add tags to several questions
|
|
364
|
+
|
|
365
|
+
Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
|
|
366
|
+
|
|
367
|
+
### Example
|
|
368
|
+
|
|
369
|
+
```ts
|
|
370
|
+
import {
|
|
371
|
+
Configuration,
|
|
372
|
+
QuestionApi,
|
|
373
|
+
} from '@easyedu/js-lsm-api';
|
|
374
|
+
import type { PostQuestionTagsRequest } from '@easyedu/js-lsm-api';
|
|
375
|
+
|
|
376
|
+
async function example() {
|
|
377
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
378
|
+
const api = new QuestionApi();
|
|
379
|
+
|
|
380
|
+
const body = {
|
|
381
|
+
// PostQuestionTags
|
|
382
|
+
postQuestionTags: ...,
|
|
383
|
+
} satisfies PostQuestionTagsRequest;
|
|
384
|
+
|
|
385
|
+
try {
|
|
386
|
+
const data = await api.postQuestionTags(body);
|
|
387
|
+
console.log(data);
|
|
388
|
+
} catch (error) {
|
|
389
|
+
console.error(error);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// Run the test
|
|
394
|
+
example().catch(console.error);
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### Parameters
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
| Name | Type | Description | Notes |
|
|
401
|
+
|------------- | ------------- | ------------- | -------------|
|
|
402
|
+
| **postQuestionTags** | [PostQuestionTags](PostQuestionTags.md) | | |
|
|
403
|
+
|
|
404
|
+
### Return type
|
|
405
|
+
|
|
406
|
+
[**PostQuestionTagsResponse**](PostQuestionTagsResponse.md)
|
|
407
|
+
|
|
408
|
+
### Authorization
|
|
409
|
+
|
|
410
|
+
No authorization required
|
|
411
|
+
|
|
412
|
+
### HTTP request headers
|
|
413
|
+
|
|
414
|
+
- **Content-Type**: `application/json`
|
|
415
|
+
- **Accept**: `application/json`
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
### HTTP response details
|
|
419
|
+
| Status code | Description | Response headers |
|
|
420
|
+
|-------------|-------------|------------------|
|
|
421
|
+
| **200** | Tags added | - |
|
|
422
|
+
| **400** | Invalid question IDs or tags | - |
|
|
423
|
+
| **403** | Missing permission | - |
|
|
424
|
+
| **409** | A tag is archived | - |
|
|
425
|
+
|
|
426
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
427
|
+
|
|
428
|
+
|
|
358
429
|
## putQuestion
|
|
359
430
|
|
|
360
431
|
> GetQuestion putQuestion(questionId, putQuestion)
|
package/docs/SystemApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
7
7
|
| [**getSystemBilling**](SystemApi.md#getsystembilling) | **GET** /system/billing | List mock platform billing information |
|
|
8
8
|
| [**getSystemMetrics**](SystemApi.md#getsystemmetrics) | **GET** /system/metrics | Get platform-wide metrics |
|
|
9
9
|
| [**getSystemPortal**](SystemApi.md#getsystemportal) | **GET** /system/portals/{portalId} | Get platform portal detail |
|
|
10
|
+
| [**getSystemPortalOverview**](SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics |
|
|
10
11
|
| [**getSystemPortals**](SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals |
|
|
11
12
|
| [**getSystemSupportTickets**](SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform |
|
|
12
13
|
|
|
@@ -206,6 +207,73 @@ No authorization required
|
|
|
206
207
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
207
208
|
|
|
208
209
|
|
|
210
|
+
## getSystemPortalOverview
|
|
211
|
+
|
|
212
|
+
> GetSystemPortalOverview getSystemPortalOverview(portalId)
|
|
213
|
+
|
|
214
|
+
Get detailed platform portal overview and usage statistics
|
|
215
|
+
|
|
216
|
+
### Example
|
|
217
|
+
|
|
218
|
+
```ts
|
|
219
|
+
import {
|
|
220
|
+
Configuration,
|
|
221
|
+
SystemApi,
|
|
222
|
+
} from '@easyedu/js-lsm-api';
|
|
223
|
+
import type { GetSystemPortalOverviewRequest } from '@easyedu/js-lsm-api';
|
|
224
|
+
|
|
225
|
+
async function example() {
|
|
226
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
227
|
+
const api = new SystemApi();
|
|
228
|
+
|
|
229
|
+
const body = {
|
|
230
|
+
// string
|
|
231
|
+
portalId: portalId_example,
|
|
232
|
+
} satisfies GetSystemPortalOverviewRequest;
|
|
233
|
+
|
|
234
|
+
try {
|
|
235
|
+
const data = await api.getSystemPortalOverview(body);
|
|
236
|
+
console.log(data);
|
|
237
|
+
} catch (error) {
|
|
238
|
+
console.error(error);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Run the test
|
|
243
|
+
example().catch(console.error);
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
| Name | Type | Description | Notes |
|
|
250
|
+
|------------- | ------------- | ------------- | -------------|
|
|
251
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
252
|
+
|
|
253
|
+
### Return type
|
|
254
|
+
|
|
255
|
+
[**GetSystemPortalOverview**](GetSystemPortalOverview.md)
|
|
256
|
+
|
|
257
|
+
### Authorization
|
|
258
|
+
|
|
259
|
+
No authorization required
|
|
260
|
+
|
|
261
|
+
### HTTP request headers
|
|
262
|
+
|
|
263
|
+
- **Content-Type**: Not defined
|
|
264
|
+
- **Accept**: `application/json`
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### HTTP response details
|
|
268
|
+
| Status code | Description | Response headers |
|
|
269
|
+
|-------------|-------------|------------------|
|
|
270
|
+
| **200** | Portal overview with user, course, enrollment, content, certificate, storage, activity, and support statistics | - |
|
|
271
|
+
| **403** | Forbidden | - |
|
|
272
|
+
| **404** | Portal not found | - |
|
|
273
|
+
|
|
274
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
275
|
+
|
|
276
|
+
|
|
209
277
|
## getSystemPortals
|
|
210
278
|
|
|
211
279
|
> GetPortalList getSystemPortals(page, pageSize)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalActivityStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`loginsLast30Days` | number
|
|
10
|
+
`learningSecondsLast30Days` | number
|
|
11
|
+
`chatRequestsLast30Days` | number
|
|
12
|
+
`chatTokensLast30Days` | number
|
|
13
|
+
`lastLearningActivityAt` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { SystemPortalActivityStats } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"loginsLast30Days": null,
|
|
23
|
+
"learningSecondsLast30Days": null,
|
|
24
|
+
"chatRequestsLast30Days": null,
|
|
25
|
+
"chatTokensLast30Days": null,
|
|
26
|
+
"lastLearningActivityAt": null,
|
|
27
|
+
} satisfies SystemPortalActivityStats
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalActivityStats
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalCertificateStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`active` | number
|
|
10
|
+
`revoked` | number
|
|
11
|
+
`issuedLast30Days` | number
|
|
12
|
+
`expiringNext30Days` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { SystemPortalCertificateStats } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"active": null,
|
|
22
|
+
"revoked": null,
|
|
23
|
+
"issuedLast30Days": null,
|
|
24
|
+
"expiringNext30Days": null,
|
|
25
|
+
} satisfies SystemPortalCertificateStats
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalCertificateStats
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalContentStats
|
|
3
|
+
|
|
4
|
+
Non-archived Content Library items and active question bank entries owned by the portal.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`libraryItems` | number
|
|
11
|
+
`resources` | number
|
|
12
|
+
`quizzes` | number
|
|
13
|
+
`certificateTemplates` | number
|
|
14
|
+
`questions` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { SystemPortalContentStats } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"libraryItems": null,
|
|
24
|
+
"resources": null,
|
|
25
|
+
"quizzes": null,
|
|
26
|
+
"certificateTemplates": null,
|
|
27
|
+
"questions": null,
|
|
28
|
+
} satisfies SystemPortalContentStats
|
|
29
|
+
|
|
30
|
+
console.log(example)
|
|
31
|
+
|
|
32
|
+
// Convert the instance to a JSON string
|
|
33
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
34
|
+
console.log(exampleJSON)
|
|
35
|
+
|
|
36
|
+
// Parse the JSON string back to an object
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalContentStats
|
|
38
|
+
console.log(exampleParsed)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalCourseStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`total` | number
|
|
10
|
+
`published` | number
|
|
11
|
+
`unpublished` | number
|
|
12
|
+
`createdLast30Days` | number
|
|
13
|
+
`sharedIn` | number
|
|
14
|
+
`sharedOut` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { SystemPortalCourseStats } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"total": null,
|
|
24
|
+
"published": null,
|
|
25
|
+
"unpublished": null,
|
|
26
|
+
"createdLast30Days": null,
|
|
27
|
+
"sharedIn": null,
|
|
28
|
+
"sharedOut": null,
|
|
29
|
+
} satisfies SystemPortalCourseStats
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalCourseStats
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalEnrollmentStats
|
|
3
|
+
|
|
4
|
+
Learner (Student) enrollments in the portal.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`total` | number
|
|
11
|
+
`active` | number
|
|
12
|
+
`completed` | number
|
|
13
|
+
`createdLast30Days` | number
|
|
14
|
+
`completedLast30Days` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { SystemPortalEnrollmentStats } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"total": null,
|
|
24
|
+
"active": null,
|
|
25
|
+
"completed": null,
|
|
26
|
+
"createdLast30Days": null,
|
|
27
|
+
"completedLast30Days": null,
|
|
28
|
+
} satisfies SystemPortalEnrollmentStats
|
|
29
|
+
|
|
30
|
+
console.log(example)
|
|
31
|
+
|
|
32
|
+
// Convert the instance to a JSON string
|
|
33
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
34
|
+
console.log(exampleJSON)
|
|
35
|
+
|
|
36
|
+
// Parse the JSON string back to an object
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalEnrollmentStats
|
|
38
|
+
console.log(exampleParsed)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalHierarchy
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`parentPortalId` | string
|
|
10
|
+
`parentPortalName` | string
|
|
11
|
+
`childPortalCount` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SystemPortalHierarchy } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"parentPortalId": null,
|
|
21
|
+
"parentPortalName": null,
|
|
22
|
+
"childPortalCount": null,
|
|
23
|
+
} satisfies SystemPortalHierarchy
|
|
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 SystemPortalHierarchy
|
|
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,42 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalLicense
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`state` | string
|
|
10
|
+
`seatLimit` | number
|
|
11
|
+
`seatsUsed` | number
|
|
12
|
+
`licenseStartAt` | number
|
|
13
|
+
`licenseEndAt` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { SystemPortalLicense } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"state": null,
|
|
23
|
+
"seatLimit": null,
|
|
24
|
+
"seatsUsed": null,
|
|
25
|
+
"licenseStartAt": null,
|
|
26
|
+
"licenseEndAt": null,
|
|
27
|
+
} satisfies SystemPortalLicense
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalLicense
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalRoleCount
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`baseType` | string
|
|
10
|
+
`userCount` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { SystemPortalRoleCount } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"baseType": null,
|
|
20
|
+
"userCount": null,
|
|
21
|
+
} satisfies SystemPortalRoleCount
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalRoleCount
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalStorageUsage
|
|
3
|
+
|
|
4
|
+
Stored object sizes attributed to the portal, in bytes, as recorded in the database at upload time. Pending and deleted uploads are excluded.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`totalBytes` | number
|
|
11
|
+
`contentLibraryBytes` | number
|
|
12
|
+
`richTextAssetBytes` | number
|
|
13
|
+
`emailAssetBytes` | number
|
|
14
|
+
`certificateAssetBytes` | number
|
|
15
|
+
`certificateArtifactBytes` | number
|
|
16
|
+
`supportAttachmentBytes` | number
|
|
17
|
+
`courseExportBytes` | number
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { SystemPortalStorageUsage } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"totalBytes": null,
|
|
27
|
+
"contentLibraryBytes": null,
|
|
28
|
+
"richTextAssetBytes": null,
|
|
29
|
+
"emailAssetBytes": null,
|
|
30
|
+
"certificateAssetBytes": null,
|
|
31
|
+
"certificateArtifactBytes": null,
|
|
32
|
+
"supportAttachmentBytes": null,
|
|
33
|
+
"courseExportBytes": null,
|
|
34
|
+
} satisfies SystemPortalStorageUsage
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalStorageUsage
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalSupportStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`open` | number
|
|
10
|
+
`inProgress` | number
|
|
11
|
+
`closed` | number
|
|
12
|
+
`total` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { SystemPortalSupportStats } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"open": null,
|
|
22
|
+
"inProgress": null,
|
|
23
|
+
"closed": null,
|
|
24
|
+
"total": null,
|
|
25
|
+
} satisfies SystemPortalSupportStats
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalSupportStats
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemPortalUserStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`total` | number
|
|
10
|
+
`enabled` | number
|
|
11
|
+
`disabled` | number
|
|
12
|
+
`newLast30Days` | number
|
|
13
|
+
`activeLast7Days` | number
|
|
14
|
+
`activeLast30Days` | number
|
|
15
|
+
`pendingInvitations` | number
|
|
16
|
+
`lastLoginAt` | number
|
|
17
|
+
`byRole` | [Array<SystemPortalRoleCount>](SystemPortalRoleCount.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { SystemPortalUserStats } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"total": null,
|
|
27
|
+
"enabled": null,
|
|
28
|
+
"disabled": null,
|
|
29
|
+
"newLast30Days": null,
|
|
30
|
+
"activeLast7Days": null,
|
|
31
|
+
"activeLast30Days": null,
|
|
32
|
+
"pendingInvitations": null,
|
|
33
|
+
"lastLoginAt": null,
|
|
34
|
+
"byRole": null,
|
|
35
|
+
} satisfies SystemPortalUserStats
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as SystemPortalUserStats
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
package/package.json
CHANGED
package/src/apis/PortalApi.ts
CHANGED
|
@@ -113,6 +113,7 @@ export interface GetPortalUsersRequest {
|
|
|
113
113
|
type?: GetPortalUsersTypeEnum;
|
|
114
114
|
roles?: Array<GetPortalUsersRolesEnum>;
|
|
115
115
|
search?: string;
|
|
116
|
+
status?: GetPortalUsersStatusEnum;
|
|
116
117
|
page?: number;
|
|
117
118
|
pageSize?: number;
|
|
118
119
|
}
|
|
@@ -549,6 +550,10 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
549
550
|
queryParameters['search'] = requestParameters['search'];
|
|
550
551
|
}
|
|
551
552
|
|
|
553
|
+
if (requestParameters['status'] != null) {
|
|
554
|
+
queryParameters['status'] = requestParameters['status'];
|
|
555
|
+
}
|
|
556
|
+
|
|
552
557
|
if (requestParameters['page'] != null) {
|
|
553
558
|
queryParameters['page'] = requestParameters['page'];
|
|
554
559
|
}
|
|
@@ -1242,3 +1247,11 @@ export const GetPortalUsersRolesEnum = {
|
|
|
1242
1247
|
Learner: 'Learner'
|
|
1243
1248
|
} as const;
|
|
1244
1249
|
export type GetPortalUsersRolesEnum = typeof GetPortalUsersRolesEnum[keyof typeof GetPortalUsersRolesEnum];
|
|
1250
|
+
/**
|
|
1251
|
+
* @export
|
|
1252
|
+
*/
|
|
1253
|
+
export const GetPortalUsersStatusEnum = {
|
|
1254
|
+
Active: 'active',
|
|
1255
|
+
Removed: 'removed'
|
|
1256
|
+
} as const;
|
|
1257
|
+
export type GetPortalUsersStatusEnum = typeof GetPortalUsersStatusEnum[keyof typeof GetPortalUsersStatusEnum];
|