@easyedu/js-lsm-api 1.130.0 → 1.132.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.
Files changed (158) hide show
  1. package/.openapi-generator/FILES +46 -0
  2. package/README.md +29 -2
  3. package/dist/apis/ReportingApi.d.ts +52 -0
  4. package/dist/apis/ReportingApi.js +131 -0
  5. package/dist/apis/SystemApi.d.ts +16 -0
  6. package/dist/apis/SystemApi.js +40 -0
  7. package/dist/esm/apis/ReportingApi.d.ts +52 -0
  8. package/dist/esm/apis/ReportingApi.js +131 -0
  9. package/dist/esm/apis/SystemApi.d.ts +16 -0
  10. package/dist/esm/apis/SystemApi.js +40 -0
  11. package/dist/esm/models/GetReportCatalog.d.ts +40 -0
  12. package/dist/esm/models/GetReportCatalog.js +49 -0
  13. package/dist/esm/models/GetReportQueryResult.d.ts +84 -0
  14. package/dist/esm/models/GetReportQueryResult.js +77 -0
  15. package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
  16. package/dist/esm/models/GetSystemPortalOverview.js +106 -0
  17. package/dist/esm/models/PostReportExport.d.ts +54 -0
  18. package/dist/esm/models/PostReportExport.js +56 -0
  19. package/dist/esm/models/PostReportQuery.d.ts +52 -0
  20. package/dist/esm/models/PostReportQuery.js +49 -0
  21. package/dist/esm/models/ReportCategory.d.ts +50 -0
  22. package/dist/esm/models/ReportCategory.js +58 -0
  23. package/dist/esm/models/ReportColumn.d.ts +59 -0
  24. package/dist/esm/models/ReportColumn.js +64 -0
  25. package/dist/esm/models/ReportDefinition.d.ts +89 -0
  26. package/dist/esm/models/ReportDefinition.js +85 -0
  27. package/dist/esm/models/ReportFilterDefinition.d.ts +94 -0
  28. package/dist/esm/models/ReportFilterDefinition.js +91 -0
  29. package/dist/esm/models/ReportFilterOption.d.ts +38 -0
  30. package/dist/esm/models/ReportFilterOption.js +47 -0
  31. package/dist/esm/models/ReportFilters.d.ts +105 -0
  32. package/dist/esm/models/ReportFilters.js +65 -0
  33. package/dist/esm/models/ReportSort.d.ts +46 -0
  34. package/dist/esm/models/ReportSort.js +54 -0
  35. package/dist/esm/models/SystemPortalActivityStats.d.ts +56 -0
  36. package/dist/esm/models/SystemPortalActivityStats.js +57 -0
  37. package/dist/esm/models/SystemPortalCertificateStats.d.ts +50 -0
  38. package/dist/esm/models/SystemPortalCertificateStats.js +55 -0
  39. package/dist/esm/models/SystemPortalContentStats.d.ts +56 -0
  40. package/dist/esm/models/SystemPortalContentStats.js +59 -0
  41. package/dist/esm/models/SystemPortalCourseStats.d.ts +62 -0
  42. package/dist/esm/models/SystemPortalCourseStats.js +63 -0
  43. package/dist/esm/models/SystemPortalEnrollmentStats.d.ts +56 -0
  44. package/dist/esm/models/SystemPortalEnrollmentStats.js +59 -0
  45. package/dist/esm/models/SystemPortalHierarchy.d.ts +44 -0
  46. package/dist/esm/models/SystemPortalHierarchy.js +47 -0
  47. package/dist/esm/models/SystemPortalLicense.d.ts +65 -0
  48. package/dist/esm/models/SystemPortalLicense.js +61 -0
  49. package/dist/esm/models/SystemPortalRoleCount.d.ts +51 -0
  50. package/dist/esm/models/SystemPortalRoleCount.js +59 -0
  51. package/dist/esm/models/SystemPortalStorageUsage.d.ts +74 -0
  52. package/dist/esm/models/SystemPortalStorageUsage.js +71 -0
  53. package/dist/esm/models/SystemPortalSupportStats.d.ts +50 -0
  54. package/dist/esm/models/SystemPortalSupportStats.js +55 -0
  55. package/dist/esm/models/SystemPortalUserStats.d.ts +81 -0
  56. package/dist/esm/models/SystemPortalUserStats.js +74 -0
  57. package/dist/esm/models/index.d.ts +23 -0
  58. package/dist/esm/models/index.js +23 -0
  59. package/dist/models/GetReportCatalog.d.ts +40 -0
  60. package/dist/models/GetReportCatalog.js +56 -0
  61. package/dist/models/GetReportQueryResult.d.ts +84 -0
  62. package/dist/models/GetReportQueryResult.js +84 -0
  63. package/dist/models/GetSystemPortalOverview.d.ts +121 -0
  64. package/dist/models/GetSystemPortalOverview.js +113 -0
  65. package/dist/models/PostReportExport.d.ts +54 -0
  66. package/dist/models/PostReportExport.js +64 -0
  67. package/dist/models/PostReportQuery.d.ts +52 -0
  68. package/dist/models/PostReportQuery.js +56 -0
  69. package/dist/models/ReportCategory.d.ts +50 -0
  70. package/dist/models/ReportCategory.js +66 -0
  71. package/dist/models/ReportColumn.d.ts +59 -0
  72. package/dist/models/ReportColumn.js +72 -0
  73. package/dist/models/ReportDefinition.d.ts +89 -0
  74. package/dist/models/ReportDefinition.js +93 -0
  75. package/dist/models/ReportFilterDefinition.d.ts +94 -0
  76. package/dist/models/ReportFilterDefinition.js +99 -0
  77. package/dist/models/ReportFilterOption.d.ts +38 -0
  78. package/dist/models/ReportFilterOption.js +54 -0
  79. package/dist/models/ReportFilters.d.ts +105 -0
  80. package/dist/models/ReportFilters.js +72 -0
  81. package/dist/models/ReportSort.d.ts +46 -0
  82. package/dist/models/ReportSort.js +62 -0
  83. package/dist/models/SystemPortalActivityStats.d.ts +56 -0
  84. package/dist/models/SystemPortalActivityStats.js +64 -0
  85. package/dist/models/SystemPortalCertificateStats.d.ts +50 -0
  86. package/dist/models/SystemPortalCertificateStats.js +62 -0
  87. package/dist/models/SystemPortalContentStats.d.ts +56 -0
  88. package/dist/models/SystemPortalContentStats.js +66 -0
  89. package/dist/models/SystemPortalCourseStats.d.ts +62 -0
  90. package/dist/models/SystemPortalCourseStats.js +70 -0
  91. package/dist/models/SystemPortalEnrollmentStats.d.ts +56 -0
  92. package/dist/models/SystemPortalEnrollmentStats.js +66 -0
  93. package/dist/models/SystemPortalHierarchy.d.ts +44 -0
  94. package/dist/models/SystemPortalHierarchy.js +54 -0
  95. package/dist/models/SystemPortalLicense.d.ts +65 -0
  96. package/dist/models/SystemPortalLicense.js +69 -0
  97. package/dist/models/SystemPortalRoleCount.d.ts +51 -0
  98. package/dist/models/SystemPortalRoleCount.js +67 -0
  99. package/dist/models/SystemPortalStorageUsage.d.ts +74 -0
  100. package/dist/models/SystemPortalStorageUsage.js +78 -0
  101. package/dist/models/SystemPortalSupportStats.d.ts +50 -0
  102. package/dist/models/SystemPortalSupportStats.js +62 -0
  103. package/dist/models/SystemPortalUserStats.d.ts +81 -0
  104. package/dist/models/SystemPortalUserStats.js +81 -0
  105. package/dist/models/index.d.ts +23 -0
  106. package/dist/models/index.js +23 -0
  107. package/docs/GetReportCatalog.md +37 -0
  108. package/docs/GetReportQueryResult.md +50 -0
  109. package/docs/GetSystemPortalOverview.md +61 -0
  110. package/docs/PostReportExport.md +38 -0
  111. package/docs/PostReportQuery.md +40 -0
  112. package/docs/ReportCategory.md +36 -0
  113. package/docs/ReportColumn.md +39 -0
  114. package/docs/ReportDefinition.md +48 -0
  115. package/docs/ReportFilterDefinition.md +45 -0
  116. package/docs/ReportFilterOption.md +36 -0
  117. package/docs/ReportFilters.md +59 -0
  118. package/docs/ReportSort.md +36 -0
  119. package/docs/ReportingApi.md +207 -0
  120. package/docs/SystemApi.md +68 -0
  121. package/docs/SystemPortalActivityStats.md +42 -0
  122. package/docs/SystemPortalCertificateStats.md +40 -0
  123. package/docs/SystemPortalContentStats.md +43 -0
  124. package/docs/SystemPortalCourseStats.md +44 -0
  125. package/docs/SystemPortalEnrollmentStats.md +43 -0
  126. package/docs/SystemPortalHierarchy.md +38 -0
  127. package/docs/SystemPortalLicense.md +42 -0
  128. package/docs/SystemPortalRoleCount.md +36 -0
  129. package/docs/SystemPortalStorageUsage.md +49 -0
  130. package/docs/SystemPortalSupportStats.md +40 -0
  131. package/docs/SystemPortalUserStats.md +50 -0
  132. package/package.json +1 -1
  133. package/src/apis/ReportingApi.ts +181 -0
  134. package/src/apis/SystemApi.ts +54 -0
  135. package/src/models/GetReportCatalog.ts +90 -0
  136. package/src/models/GetReportQueryResult.ts +153 -0
  137. package/src/models/GetSystemPortalOverview.ts +261 -0
  138. package/src/models/PostReportExport.ts +108 -0
  139. package/src/models/PostReportQuery.ts +104 -0
  140. package/src/models/ReportCategory.ts +90 -0
  141. package/src/models/ReportColumn.ts +102 -0
  142. package/src/models/ReportDefinition.ts +166 -0
  143. package/src/models/ReportFilterDefinition.ts +154 -0
  144. package/src/models/ReportFilterOption.ts +75 -0
  145. package/src/models/ReportFilters.ts +162 -0
  146. package/src/models/ReportSort.ts +86 -0
  147. package/src/models/SystemPortalActivityStats.ts +101 -0
  148. package/src/models/SystemPortalCertificateStats.ts +93 -0
  149. package/src/models/SystemPortalContentStats.ts +102 -0
  150. package/src/models/SystemPortalCourseStats.ts +111 -0
  151. package/src/models/SystemPortalEnrollmentStats.ts +102 -0
  152. package/src/models/SystemPortalHierarchy.ts +82 -0
  153. package/src/models/SystemPortalLicense.ts +111 -0
  154. package/src/models/SystemPortalRoleCount.ts +91 -0
  155. package/src/models/SystemPortalStorageUsage.ts +129 -0
  156. package/src/models/SystemPortalSupportStats.ts +93 -0
  157. package/src/models/SystemPortalUserStats.ts +145 -0
  158. package/src/models/index.ts +23 -0
@@ -4,12 +4,87 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**exportReport**](ReportingApi.md#exportreport) | **POST** /reporting/reports/{reportKey}/export | Export all rows of a report as CSV or XLSX |
7
8
  | [**getCourseVersionReporting**](ReportingApi.md#getcourseversionreporting) | **GET** /courses/{courseId}/versions/{courseVersionId}/reporting | Get instructor reporting for one explicit course version |
8
9
  | [**getCourseVersionSectionReporting**](ReportingApi.md#getcourseversionsectionreporting) | **GET** /courses/{courseId}/versions/{courseVersionId}/sections/{sectionId}/reporting | Get instructor reporting for one section and its descendants in an explicit course version |
9
10
  | [**getPortalManagementDashboard**](ReportingApi.md#getportalmanagementdashboard) | **GET** /reporting/portal/dashboard | Get the selected portal\'s management dashboard reporting |
11
+ | [**getReportCatalog**](ReportingApi.md#getreportcatalog) | **GET** /reporting/reports | List the reports the caller can run in the selected portal |
12
+ | [**queryReport**](ReportingApi.md#queryreport) | **POST** /reporting/reports/{reportKey}/query | Run a report and return one page of rows |
10
13
 
11
14
 
12
15
 
16
+ ## exportReport
17
+
18
+ > Blob exportReport(reportKey, postReportExport)
19
+
20
+ Export all rows of a report as CSV or XLSX
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ ReportingApi,
28
+ } from '@easyedu/js-lsm-api';
29
+ import type { ExportReportRequest } from '@easyedu/js-lsm-api';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
33
+ const api = new ReportingApi();
34
+
35
+ const body = {
36
+ // string
37
+ reportKey: reportKey_example,
38
+ // PostReportExport
39
+ postReportExport: ...,
40
+ } satisfies ExportReportRequest;
41
+
42
+ try {
43
+ const data = await api.exportReport(body);
44
+ console.log(data);
45
+ } catch (error) {
46
+ console.error(error);
47
+ }
48
+ }
49
+
50
+ // Run the test
51
+ example().catch(console.error);
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+
57
+ | Name | Type | Description | Notes |
58
+ |------------- | ------------- | ------------- | -------------|
59
+ | **reportKey** | `string` | | [Defaults to `undefined`] |
60
+ | **postReportExport** | [PostReportExport](PostReportExport.md) | | |
61
+
62
+ ### Return type
63
+
64
+ **Blob**
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: `application/json`
73
+ - **Accept**: `text/csv`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **200** | Report file | - |
80
+ | **400** | Unsupported filter, invalid filter value, or unknown sort column | - |
81
+ | **403** | Missing the report\'s permission | - |
82
+ | **404** | Unknown report | - |
83
+ | **422** | The export exceeds the maximum row count; narrow the filters | - |
84
+
85
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
86
+
87
+
13
88
  ## getCourseVersionReporting
14
89
 
15
90
  > GetCourseVersionReporting getCourseVersionReporting(courseId, courseVersionId)
@@ -216,3 +291,135 @@ No authorization required
216
291
 
217
292
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
218
293
 
294
+
295
+ ## getReportCatalog
296
+
297
+ > GetReportCatalog getReportCatalog()
298
+
299
+ List the reports the caller can run in the selected portal
300
+
301
+ Returns report definitions with columns, supported filters, select options resolved for the selected portal, and default sort. Reports whose permission the caller lacks are omitted.
302
+
303
+ ### Example
304
+
305
+ ```ts
306
+ import {
307
+ Configuration,
308
+ ReportingApi,
309
+ } from '@easyedu/js-lsm-api';
310
+ import type { GetReportCatalogRequest } from '@easyedu/js-lsm-api';
311
+
312
+ async function example() {
313
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
314
+ const api = new ReportingApi();
315
+
316
+ try {
317
+ const data = await api.getReportCatalog();
318
+ console.log(data);
319
+ } catch (error) {
320
+ console.error(error);
321
+ }
322
+ }
323
+
324
+ // Run the test
325
+ example().catch(console.error);
326
+ ```
327
+
328
+ ### Parameters
329
+
330
+ This endpoint does not need any parameter.
331
+
332
+ ### Return type
333
+
334
+ [**GetReportCatalog**](GetReportCatalog.md)
335
+
336
+ ### Authorization
337
+
338
+ No authorization required
339
+
340
+ ### HTTP request headers
341
+
342
+ - **Content-Type**: Not defined
343
+ - **Accept**: `application/json`
344
+
345
+
346
+ ### HTTP response details
347
+ | Status code | Description | Response headers |
348
+ |-------------|-------------|------------------|
349
+ | **200** | Report catalog | - |
350
+
351
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
352
+
353
+
354
+ ## queryReport
355
+
356
+ > GetReportQueryResult queryReport(reportKey, postReportQuery)
357
+
358
+ Run a report and return one page of rows
359
+
360
+ Read-only. POST is used because filters vary per report. Results are scoped to the selected portal and its team portals.
361
+
362
+ ### Example
363
+
364
+ ```ts
365
+ import {
366
+ Configuration,
367
+ ReportingApi,
368
+ } from '@easyedu/js-lsm-api';
369
+ import type { QueryReportRequest } from '@easyedu/js-lsm-api';
370
+
371
+ async function example() {
372
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
373
+ const api = new ReportingApi();
374
+
375
+ const body = {
376
+ // string
377
+ reportKey: reportKey_example,
378
+ // PostReportQuery
379
+ postReportQuery: ...,
380
+ } satisfies QueryReportRequest;
381
+
382
+ try {
383
+ const data = await api.queryReport(body);
384
+ console.log(data);
385
+ } catch (error) {
386
+ console.error(error);
387
+ }
388
+ }
389
+
390
+ // Run the test
391
+ example().catch(console.error);
392
+ ```
393
+
394
+ ### Parameters
395
+
396
+
397
+ | Name | Type | Description | Notes |
398
+ |------------- | ------------- | ------------- | -------------|
399
+ | **reportKey** | `string` | | [Defaults to `undefined`] |
400
+ | **postReportQuery** | [PostReportQuery](PostReportQuery.md) | | |
401
+
402
+ ### Return type
403
+
404
+ [**GetReportQueryResult**](GetReportQueryResult.md)
405
+
406
+ ### Authorization
407
+
408
+ No authorization required
409
+
410
+ ### HTTP request headers
411
+
412
+ - **Content-Type**: `application/json`
413
+ - **Accept**: `application/json`
414
+
415
+
416
+ ### HTTP response details
417
+ | Status code | Description | Response headers |
418
+ |-------------|-------------|------------------|
419
+ | **200** | One page of report rows | - |
420
+ | **400** | Unsupported filter, invalid filter value, or unknown sort column | - |
421
+ | **403** | Missing the report\'s permission | - |
422
+ | **404** | Unknown report | - |
423
+
424
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
425
+
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
+