@easyedu/js-lsm-api 1.131.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 (86) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +15 -2
  3. package/dist/apis/SystemApi.d.ts +16 -0
  4. package/dist/apis/SystemApi.js +40 -0
  5. package/dist/esm/apis/SystemApi.d.ts +16 -0
  6. package/dist/esm/apis/SystemApi.js +40 -0
  7. package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
  8. package/dist/esm/models/GetSystemPortalOverview.js +106 -0
  9. package/dist/esm/models/SystemPortalActivityStats.d.ts +56 -0
  10. package/dist/esm/models/SystemPortalActivityStats.js +57 -0
  11. package/dist/esm/models/SystemPortalCertificateStats.d.ts +50 -0
  12. package/dist/esm/models/SystemPortalCertificateStats.js +55 -0
  13. package/dist/esm/models/SystemPortalContentStats.d.ts +56 -0
  14. package/dist/esm/models/SystemPortalContentStats.js +59 -0
  15. package/dist/esm/models/SystemPortalCourseStats.d.ts +62 -0
  16. package/dist/esm/models/SystemPortalCourseStats.js +63 -0
  17. package/dist/esm/models/SystemPortalEnrollmentStats.d.ts +56 -0
  18. package/dist/esm/models/SystemPortalEnrollmentStats.js +59 -0
  19. package/dist/esm/models/SystemPortalHierarchy.d.ts +44 -0
  20. package/dist/esm/models/SystemPortalHierarchy.js +47 -0
  21. package/dist/esm/models/SystemPortalLicense.d.ts +65 -0
  22. package/dist/esm/models/SystemPortalLicense.js +61 -0
  23. package/dist/esm/models/SystemPortalRoleCount.d.ts +51 -0
  24. package/dist/esm/models/SystemPortalRoleCount.js +59 -0
  25. package/dist/esm/models/SystemPortalStorageUsage.d.ts +74 -0
  26. package/dist/esm/models/SystemPortalStorageUsage.js +71 -0
  27. package/dist/esm/models/SystemPortalSupportStats.d.ts +50 -0
  28. package/dist/esm/models/SystemPortalSupportStats.js +55 -0
  29. package/dist/esm/models/SystemPortalUserStats.d.ts +81 -0
  30. package/dist/esm/models/SystemPortalUserStats.js +74 -0
  31. package/dist/esm/models/index.d.ts +12 -0
  32. package/dist/esm/models/index.js +12 -0
  33. package/dist/models/GetSystemPortalOverview.d.ts +121 -0
  34. package/dist/models/GetSystemPortalOverview.js +113 -0
  35. package/dist/models/SystemPortalActivityStats.d.ts +56 -0
  36. package/dist/models/SystemPortalActivityStats.js +64 -0
  37. package/dist/models/SystemPortalCertificateStats.d.ts +50 -0
  38. package/dist/models/SystemPortalCertificateStats.js +62 -0
  39. package/dist/models/SystemPortalContentStats.d.ts +56 -0
  40. package/dist/models/SystemPortalContentStats.js +66 -0
  41. package/dist/models/SystemPortalCourseStats.d.ts +62 -0
  42. package/dist/models/SystemPortalCourseStats.js +70 -0
  43. package/dist/models/SystemPortalEnrollmentStats.d.ts +56 -0
  44. package/dist/models/SystemPortalEnrollmentStats.js +66 -0
  45. package/dist/models/SystemPortalHierarchy.d.ts +44 -0
  46. package/dist/models/SystemPortalHierarchy.js +54 -0
  47. package/dist/models/SystemPortalLicense.d.ts +65 -0
  48. package/dist/models/SystemPortalLicense.js +69 -0
  49. package/dist/models/SystemPortalRoleCount.d.ts +51 -0
  50. package/dist/models/SystemPortalRoleCount.js +67 -0
  51. package/dist/models/SystemPortalStorageUsage.d.ts +74 -0
  52. package/dist/models/SystemPortalStorageUsage.js +78 -0
  53. package/dist/models/SystemPortalSupportStats.d.ts +50 -0
  54. package/dist/models/SystemPortalSupportStats.js +62 -0
  55. package/dist/models/SystemPortalUserStats.d.ts +81 -0
  56. package/dist/models/SystemPortalUserStats.js +81 -0
  57. package/dist/models/index.d.ts +12 -0
  58. package/dist/models/index.js +12 -0
  59. package/docs/GetSystemPortalOverview.md +61 -0
  60. package/docs/SystemApi.md +68 -0
  61. package/docs/SystemPortalActivityStats.md +42 -0
  62. package/docs/SystemPortalCertificateStats.md +40 -0
  63. package/docs/SystemPortalContentStats.md +43 -0
  64. package/docs/SystemPortalCourseStats.md +44 -0
  65. package/docs/SystemPortalEnrollmentStats.md +43 -0
  66. package/docs/SystemPortalHierarchy.md +38 -0
  67. package/docs/SystemPortalLicense.md +42 -0
  68. package/docs/SystemPortalRoleCount.md +36 -0
  69. package/docs/SystemPortalStorageUsage.md +49 -0
  70. package/docs/SystemPortalSupportStats.md +40 -0
  71. package/docs/SystemPortalUserStats.md +50 -0
  72. package/package.json +1 -1
  73. package/src/apis/SystemApi.ts +54 -0
  74. package/src/models/GetSystemPortalOverview.ts +261 -0
  75. package/src/models/SystemPortalActivityStats.ts +101 -0
  76. package/src/models/SystemPortalCertificateStats.ts +93 -0
  77. package/src/models/SystemPortalContentStats.ts +102 -0
  78. package/src/models/SystemPortalCourseStats.ts +111 -0
  79. package/src/models/SystemPortalEnrollmentStats.ts +102 -0
  80. package/src/models/SystemPortalHierarchy.ts +82 -0
  81. package/src/models/SystemPortalLicense.ts +111 -0
  82. package/src/models/SystemPortalRoleCount.ts +91 -0
  83. package/src/models/SystemPortalStorageUsage.ts +129 -0
  84. package/src/models/SystemPortalSupportStats.ts +93 -0
  85. package/src/models/SystemPortalUserStats.ts +145 -0
  86. package/src/models/index.ts +12 -0
@@ -180,6 +180,7 @@ docs/GetSupportTicketList.md
180
180
  docs/GetSystemBillingItem.md
181
181
  docs/GetSystemBillingList.md
182
182
  docs/GetSystemMetrics.md
183
+ docs/GetSystemPortalOverview.md
183
184
  docs/GetUser.md
184
185
  docs/GetUserAvatarUpload.md
185
186
  docs/GetUserCourseList.md
@@ -406,6 +407,17 @@ docs/ScormToolsApi.md
406
407
  docs/SupportTicketApi.md
407
408
  docs/SupportTicketUser.md
408
409
  docs/SystemApi.md
410
+ docs/SystemPortalActivityStats.md
411
+ docs/SystemPortalCertificateStats.md
412
+ docs/SystemPortalContentStats.md
413
+ docs/SystemPortalCourseStats.md
414
+ docs/SystemPortalEnrollmentStats.md
415
+ docs/SystemPortalHierarchy.md
416
+ docs/SystemPortalLicense.md
417
+ docs/SystemPortalRoleCount.md
418
+ docs/SystemPortalStorageUsage.md
419
+ docs/SystemPortalSupportStats.md
420
+ docs/SystemPortalUserStats.md
409
421
  docs/UpdateSelectedPortalResponse.md
410
422
  docs/UpdateSelectedPortalResponseHostPortal.md
411
423
  docs/UpdateSelectedPortalResponseSelectedPortal.md
@@ -613,6 +625,7 @@ src/models/GetSupportTicketList.ts
613
625
  src/models/GetSystemBillingItem.ts
614
626
  src/models/GetSystemBillingList.ts
615
627
  src/models/GetSystemMetrics.ts
628
+ src/models/GetSystemPortalOverview.ts
616
629
  src/models/GetUser.ts
617
630
  src/models/GetUserAvatarUpload.ts
618
631
  src/models/GetUserCourseList.ts
@@ -824,6 +837,17 @@ src/models/ScormSetValueRequest.ts
824
837
  src/models/ScormSetValueResponse.ts
825
838
  src/models/ScormTerminateResponse.ts
826
839
  src/models/SupportTicketUser.ts
840
+ src/models/SystemPortalActivityStats.ts
841
+ src/models/SystemPortalCertificateStats.ts
842
+ src/models/SystemPortalContentStats.ts
843
+ src/models/SystemPortalCourseStats.ts
844
+ src/models/SystemPortalEnrollmentStats.ts
845
+ src/models/SystemPortalHierarchy.ts
846
+ src/models/SystemPortalLicense.ts
847
+ src/models/SystemPortalRoleCount.ts
848
+ src/models/SystemPortalStorageUsage.ts
849
+ src/models/SystemPortalSupportStats.ts
850
+ src/models/SystemPortalUserStats.ts
827
851
  src/models/UpdateSelectedPortalResponse.ts
828
852
  src/models/UpdateSelectedPortalResponseHostPortal.ts
829
853
  src/models/UpdateSelectedPortalResponseSelectedPortal.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.131.0
1
+ # @easyedu/js-lsm-api@1.132.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -397,6 +397,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
397
397
  *SystemApi* | [**getSystemBilling**](docs/SystemApi.md#getsystembilling) | **GET** /system/billing | List mock platform billing information
398
398
  *SystemApi* | [**getSystemMetrics**](docs/SystemApi.md#getsystemmetrics) | **GET** /system/metrics | Get platform-wide metrics
399
399
  *SystemApi* | [**getSystemPortal**](docs/SystemApi.md#getsystemportal) | **GET** /system/portals/{portalId} | Get platform portal detail
400
+ *SystemApi* | [**getSystemPortalOverview**](docs/SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics
400
401
  *SystemApi* | [**getSystemPortals**](docs/SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals
401
402
  *SystemApi* | [**getSystemSupportTickets**](docs/SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform
402
403
  *UserApi* | [**deleteUserAvatar**](docs/UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo
@@ -585,6 +586,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
585
586
  - [GetSystemBillingItem](docs/GetSystemBillingItem.md)
586
587
  - [GetSystemBillingList](docs/GetSystemBillingList.md)
587
588
  - [GetSystemMetrics](docs/GetSystemMetrics.md)
589
+ - [GetSystemPortalOverview](docs/GetSystemPortalOverview.md)
588
590
  - [GetUser](docs/GetUser.md)
589
591
  - [GetUserAvatarUpload](docs/GetUserAvatarUpload.md)
590
592
  - [GetUserCourseList](docs/GetUserCourseList.md)
@@ -796,6 +798,17 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
796
798
  - [ScormSetValueResponse](docs/ScormSetValueResponse.md)
797
799
  - [ScormTerminateResponse](docs/ScormTerminateResponse.md)
798
800
  - [SupportTicketUser](docs/SupportTicketUser.md)
801
+ - [SystemPortalActivityStats](docs/SystemPortalActivityStats.md)
802
+ - [SystemPortalCertificateStats](docs/SystemPortalCertificateStats.md)
803
+ - [SystemPortalContentStats](docs/SystemPortalContentStats.md)
804
+ - [SystemPortalCourseStats](docs/SystemPortalCourseStats.md)
805
+ - [SystemPortalEnrollmentStats](docs/SystemPortalEnrollmentStats.md)
806
+ - [SystemPortalHierarchy](docs/SystemPortalHierarchy.md)
807
+ - [SystemPortalLicense](docs/SystemPortalLicense.md)
808
+ - [SystemPortalRoleCount](docs/SystemPortalRoleCount.md)
809
+ - [SystemPortalStorageUsage](docs/SystemPortalStorageUsage.md)
810
+ - [SystemPortalSupportStats](docs/SystemPortalSupportStats.md)
811
+ - [SystemPortalUserStats](docs/SystemPortalUserStats.md)
799
812
  - [UpdateSelectedPortalResponse](docs/UpdateSelectedPortalResponse.md)
800
813
  - [UpdateSelectedPortalResponseHostPortal](docs/UpdateSelectedPortalResponseHostPortal.md)
801
814
  - [UpdateSelectedPortalResponseSelectedPortal](docs/UpdateSelectedPortalResponseSelectedPortal.md)
@@ -818,7 +831,7 @@ and is automatically generated by the
818
831
  [OpenAPI Generator](https://openapi-generator.tech) project:
819
832
 
820
833
  - API version: `1.0.0`
821
- - Package version: `1.131.0`
834
+ - Package version: `1.132.0`
822
835
  - Generator version: `7.22.0`
823
836
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
824
837
 
@@ -15,6 +15,7 @@ import { type GetPortalList } from '../models/GetPortalList';
15
15
  import { type GetSupportTicketList } from '../models/GetSupportTicketList';
16
16
  import { type GetSystemBillingList } from '../models/GetSystemBillingList';
17
17
  import { type GetSystemMetrics } from '../models/GetSystemMetrics';
18
+ import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
18
19
  export interface GetSystemBillingRequest {
19
20
  page?: number;
20
21
  pageSize?: number;
@@ -22,6 +23,9 @@ export interface GetSystemBillingRequest {
22
23
  export interface GetSystemPortalRequest {
23
24
  portalId: string;
24
25
  }
26
+ export interface GetSystemPortalOverviewRequest {
27
+ portalId: string;
28
+ }
25
29
  export interface GetSystemPortalsRequest {
26
30
  page?: number;
27
31
  pageSize?: number;
@@ -70,6 +74,18 @@ export declare class SystemApi extends runtime.BaseAPI {
70
74
  * Get platform portal detail
71
75
  */
72
76
  getSystemPortal(requestParameters: GetSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
77
+ /**
78
+ * Creates request options for getSystemPortalOverview without sending the request
79
+ */
80
+ getSystemPortalOverviewRequestOpts(requestParameters: GetSystemPortalOverviewRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ * Get detailed platform portal overview and usage statistics
83
+ */
84
+ getSystemPortalOverviewRaw(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSystemPortalOverview>>;
85
+ /**
86
+ * Get detailed platform portal overview and usage statistics
87
+ */
88
+ getSystemPortalOverview(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSystemPortalOverview>;
73
89
  /**
74
90
  * Creates request options for getSystemPortals without sending the request
75
91
  */
@@ -29,6 +29,7 @@ const GetPortalList_1 = require("../models/GetPortalList");
29
29
  const GetSupportTicketList_1 = require("../models/GetSupportTicketList");
30
30
  const GetSystemBillingList_1 = require("../models/GetSystemBillingList");
31
31
  const GetSystemMetrics_1 = require("../models/GetSystemMetrics");
32
+ const GetSystemPortalOverview_1 = require("../models/GetSystemPortalOverview");
32
33
  /**
33
34
  *
34
35
  */
@@ -148,6 +149,45 @@ class SystemApi extends runtime.BaseAPI {
148
149
  return yield response.value();
149
150
  });
150
151
  }
152
+ /**
153
+ * Creates request options for getSystemPortalOverview without sending the request
154
+ */
155
+ getSystemPortalOverviewRequestOpts(requestParameters) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ if (requestParameters['portalId'] == null) {
158
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getSystemPortalOverview().');
159
+ }
160
+ const queryParameters = {};
161
+ const headerParameters = {};
162
+ let urlPath = `/system/portals/{portalId}/overview`;
163
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
164
+ return {
165
+ path: urlPath,
166
+ method: 'GET',
167
+ headers: headerParameters,
168
+ query: queryParameters,
169
+ };
170
+ });
171
+ }
172
+ /**
173
+ * Get detailed platform portal overview and usage statistics
174
+ */
175
+ getSystemPortalOverviewRaw(requestParameters, initOverrides) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ const requestOptions = yield this.getSystemPortalOverviewRequestOpts(requestParameters);
178
+ const response = yield this.request(requestOptions, initOverrides);
179
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSystemPortalOverview_1.GetSystemPortalOverviewFromJSON)(jsonValue));
180
+ });
181
+ }
182
+ /**
183
+ * Get detailed platform portal overview and usage statistics
184
+ */
185
+ getSystemPortalOverview(requestParameters, initOverrides) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const response = yield this.getSystemPortalOverviewRaw(requestParameters, initOverrides);
188
+ return yield response.value();
189
+ });
190
+ }
151
191
  /**
152
192
  * Creates request options for getSystemPortals without sending the request
153
193
  */
@@ -15,6 +15,7 @@ import { type GetPortalList } from '../models/GetPortalList';
15
15
  import { type GetSupportTicketList } from '../models/GetSupportTicketList';
16
16
  import { type GetSystemBillingList } from '../models/GetSystemBillingList';
17
17
  import { type GetSystemMetrics } from '../models/GetSystemMetrics';
18
+ import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
18
19
  export interface GetSystemBillingRequest {
19
20
  page?: number;
20
21
  pageSize?: number;
@@ -22,6 +23,9 @@ export interface GetSystemBillingRequest {
22
23
  export interface GetSystemPortalRequest {
23
24
  portalId: string;
24
25
  }
26
+ export interface GetSystemPortalOverviewRequest {
27
+ portalId: string;
28
+ }
25
29
  export interface GetSystemPortalsRequest {
26
30
  page?: number;
27
31
  pageSize?: number;
@@ -70,6 +74,18 @@ export declare class SystemApi extends runtime.BaseAPI {
70
74
  * Get platform portal detail
71
75
  */
72
76
  getSystemPortal(requestParameters: GetSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
77
+ /**
78
+ * Creates request options for getSystemPortalOverview without sending the request
79
+ */
80
+ getSystemPortalOverviewRequestOpts(requestParameters: GetSystemPortalOverviewRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ * Get detailed platform portal overview and usage statistics
83
+ */
84
+ getSystemPortalOverviewRaw(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSystemPortalOverview>>;
85
+ /**
86
+ * Get detailed platform portal overview and usage statistics
87
+ */
88
+ getSystemPortalOverview(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSystemPortalOverview>;
73
89
  /**
74
90
  * Creates request options for getSystemPortals without sending the request
75
91
  */
@@ -26,6 +26,7 @@ import { GetPortalListFromJSON, } from '../models/GetPortalList';
26
26
  import { GetSupportTicketListFromJSON, } from '../models/GetSupportTicketList';
27
27
  import { GetSystemBillingListFromJSON, } from '../models/GetSystemBillingList';
28
28
  import { GetSystemMetricsFromJSON, } from '../models/GetSystemMetrics';
29
+ import { GetSystemPortalOverviewFromJSON, } from '../models/GetSystemPortalOverview';
29
30
  /**
30
31
  *
31
32
  */
@@ -145,6 +146,45 @@ export class SystemApi extends runtime.BaseAPI {
145
146
  return yield response.value();
146
147
  });
147
148
  }
149
+ /**
150
+ * Creates request options for getSystemPortalOverview without sending the request
151
+ */
152
+ getSystemPortalOverviewRequestOpts(requestParameters) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ if (requestParameters['portalId'] == null) {
155
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getSystemPortalOverview().');
156
+ }
157
+ const queryParameters = {};
158
+ const headerParameters = {};
159
+ let urlPath = `/system/portals/{portalId}/overview`;
160
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
161
+ return {
162
+ path: urlPath,
163
+ method: 'GET',
164
+ headers: headerParameters,
165
+ query: queryParameters,
166
+ };
167
+ });
168
+ }
169
+ /**
170
+ * Get detailed platform portal overview and usage statistics
171
+ */
172
+ getSystemPortalOverviewRaw(requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const requestOptions = yield this.getSystemPortalOverviewRequestOpts(requestParameters);
175
+ const response = yield this.request(requestOptions, initOverrides);
176
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSystemPortalOverviewFromJSON(jsonValue));
177
+ });
178
+ }
179
+ /**
180
+ * Get detailed platform portal overview and usage statistics
181
+ */
182
+ getSystemPortalOverview(requestParameters, initOverrides) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const response = yield this.getSystemPortalOverviewRaw(requestParameters, initOverrides);
185
+ return yield response.value();
186
+ });
187
+ }
148
188
  /**
149
189
  * Creates request options for getSystemPortals without sending the request
150
190
  */
@@ -0,0 +1,121 @@
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
+ import type { SystemPortalCourseStats } from './SystemPortalCourseStats';
13
+ import type { SystemPortalLicense } from './SystemPortalLicense';
14
+ import type { SystemPortalCertificateStats } from './SystemPortalCertificateStats';
15
+ import type { SystemPortalStorageUsage } from './SystemPortalStorageUsage';
16
+ import type { SystemPortalSupportStats } from './SystemPortalSupportStats';
17
+ import type { GetPortal } from './GetPortal';
18
+ import type { SystemPortalEnrollmentStats } from './SystemPortalEnrollmentStats';
19
+ import type { SystemPortalActivityStats } from './SystemPortalActivityStats';
20
+ import type { SystemPortalContentStats } from './SystemPortalContentStats';
21
+ import type { SystemPortalHierarchy } from './SystemPortalHierarchy';
22
+ import type { SystemPortalUserStats } from './SystemPortalUserStats';
23
+ /**
24
+ * Detailed read-only overview of a single portal for platform administrators. All counts are scoped to the portal itself and exclude child portals. Timestamps are Unix epoch seconds (UTC).
25
+ * @export
26
+ * @interface GetSystemPortalOverview
27
+ */
28
+ export interface GetSystemPortalOverview {
29
+ /**
30
+ *
31
+ * @type {GetPortal}
32
+ * @memberof GetSystemPortalOverview
33
+ */
34
+ portal: GetPortal;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof GetSystemPortalOverview
39
+ */
40
+ createdAt: number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof GetSystemPortalOverview
45
+ */
46
+ updatedAt: number;
47
+ /**
48
+ * When these statistics were computed.
49
+ * @type {number}
50
+ * @memberof GetSystemPortalOverview
51
+ */
52
+ generatedAt: number;
53
+ /**
54
+ *
55
+ * @type {SystemPortalHierarchy}
56
+ * @memberof GetSystemPortalOverview
57
+ */
58
+ hierarchy: SystemPortalHierarchy;
59
+ /**
60
+ *
61
+ * @type {SystemPortalLicense}
62
+ * @memberof GetSystemPortalOverview
63
+ */
64
+ license: SystemPortalLicense;
65
+ /**
66
+ *
67
+ * @type {SystemPortalUserStats}
68
+ * @memberof GetSystemPortalOverview
69
+ */
70
+ users: SystemPortalUserStats;
71
+ /**
72
+ *
73
+ * @type {SystemPortalCourseStats}
74
+ * @memberof GetSystemPortalOverview
75
+ */
76
+ courses: SystemPortalCourseStats;
77
+ /**
78
+ *
79
+ * @type {SystemPortalEnrollmentStats}
80
+ * @memberof GetSystemPortalOverview
81
+ */
82
+ enrollments: SystemPortalEnrollmentStats;
83
+ /**
84
+ *
85
+ * @type {SystemPortalContentStats}
86
+ * @memberof GetSystemPortalOverview
87
+ */
88
+ content: SystemPortalContentStats;
89
+ /**
90
+ *
91
+ * @type {SystemPortalCertificateStats}
92
+ * @memberof GetSystemPortalOverview
93
+ */
94
+ certificates: SystemPortalCertificateStats;
95
+ /**
96
+ *
97
+ * @type {SystemPortalStorageUsage}
98
+ * @memberof GetSystemPortalOverview
99
+ */
100
+ storage: SystemPortalStorageUsage;
101
+ /**
102
+ *
103
+ * @type {SystemPortalActivityStats}
104
+ * @memberof GetSystemPortalOverview
105
+ */
106
+ activity: SystemPortalActivityStats;
107
+ /**
108
+ *
109
+ * @type {SystemPortalSupportStats}
110
+ * @memberof GetSystemPortalOverview
111
+ */
112
+ support: SystemPortalSupportStats;
113
+ }
114
+ /**
115
+ * Check if a given object implements the GetSystemPortalOverview interface.
116
+ */
117
+ export declare function instanceOfGetSystemPortalOverview(value: object): value is GetSystemPortalOverview;
118
+ export declare function GetSystemPortalOverviewFromJSON(json: any): GetSystemPortalOverview;
119
+ export declare function GetSystemPortalOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSystemPortalOverview;
120
+ export declare function GetSystemPortalOverviewToJSON(json: any): GetSystemPortalOverview;
121
+ export declare function GetSystemPortalOverviewToJSONTyped(value?: GetSystemPortalOverview | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,106 @@
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
+ import { SystemPortalCourseStatsFromJSON, SystemPortalCourseStatsToJSON, } from './SystemPortalCourseStats';
15
+ import { SystemPortalLicenseFromJSON, SystemPortalLicenseToJSON, } from './SystemPortalLicense';
16
+ import { SystemPortalCertificateStatsFromJSON, SystemPortalCertificateStatsToJSON, } from './SystemPortalCertificateStats';
17
+ import { SystemPortalStorageUsageFromJSON, SystemPortalStorageUsageToJSON, } from './SystemPortalStorageUsage';
18
+ import { SystemPortalSupportStatsFromJSON, SystemPortalSupportStatsToJSON, } from './SystemPortalSupportStats';
19
+ import { GetPortalFromJSON, GetPortalToJSON, } from './GetPortal';
20
+ import { SystemPortalEnrollmentStatsFromJSON, SystemPortalEnrollmentStatsToJSON, } from './SystemPortalEnrollmentStats';
21
+ import { SystemPortalActivityStatsFromJSON, SystemPortalActivityStatsToJSON, } from './SystemPortalActivityStats';
22
+ import { SystemPortalContentStatsFromJSON, SystemPortalContentStatsToJSON, } from './SystemPortalContentStats';
23
+ import { SystemPortalHierarchyFromJSON, SystemPortalHierarchyToJSON, } from './SystemPortalHierarchy';
24
+ import { SystemPortalUserStatsFromJSON, SystemPortalUserStatsToJSON, } from './SystemPortalUserStats';
25
+ /**
26
+ * Check if a given object implements the GetSystemPortalOverview interface.
27
+ */
28
+ export function instanceOfGetSystemPortalOverview(value) {
29
+ if (!('portal' in value) || value['portal'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
34
+ return false;
35
+ if (!('generatedAt' in value) || value['generatedAt'] === undefined)
36
+ return false;
37
+ if (!('hierarchy' in value) || value['hierarchy'] === undefined)
38
+ return false;
39
+ if (!('license' in value) || value['license'] === undefined)
40
+ return false;
41
+ if (!('users' in value) || value['users'] === undefined)
42
+ return false;
43
+ if (!('courses' in value) || value['courses'] === undefined)
44
+ return false;
45
+ if (!('enrollments' in value) || value['enrollments'] === undefined)
46
+ return false;
47
+ if (!('content' in value) || value['content'] === undefined)
48
+ return false;
49
+ if (!('certificates' in value) || value['certificates'] === undefined)
50
+ return false;
51
+ if (!('storage' in value) || value['storage'] === undefined)
52
+ return false;
53
+ if (!('activity' in value) || value['activity'] === undefined)
54
+ return false;
55
+ if (!('support' in value) || value['support'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ export function GetSystemPortalOverviewFromJSON(json) {
60
+ return GetSystemPortalOverviewFromJSONTyped(json, false);
61
+ }
62
+ export function GetSystemPortalOverviewFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'portal': GetPortalFromJSON(json['portal']),
68
+ 'createdAt': json['created_at'],
69
+ 'updatedAt': json['updated_at'],
70
+ 'generatedAt': json['generated_at'],
71
+ 'hierarchy': SystemPortalHierarchyFromJSON(json['hierarchy']),
72
+ 'license': SystemPortalLicenseFromJSON(json['license']),
73
+ 'users': SystemPortalUserStatsFromJSON(json['users']),
74
+ 'courses': SystemPortalCourseStatsFromJSON(json['courses']),
75
+ 'enrollments': SystemPortalEnrollmentStatsFromJSON(json['enrollments']),
76
+ 'content': SystemPortalContentStatsFromJSON(json['content']),
77
+ 'certificates': SystemPortalCertificateStatsFromJSON(json['certificates']),
78
+ 'storage': SystemPortalStorageUsageFromJSON(json['storage']),
79
+ 'activity': SystemPortalActivityStatsFromJSON(json['activity']),
80
+ 'support': SystemPortalSupportStatsFromJSON(json['support']),
81
+ };
82
+ }
83
+ export function GetSystemPortalOverviewToJSON(json) {
84
+ return GetSystemPortalOverviewToJSONTyped(json, false);
85
+ }
86
+ export function GetSystemPortalOverviewToJSONTyped(value, ignoreDiscriminator = false) {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'portal': GetPortalToJSON(value['portal']),
92
+ 'created_at': value['createdAt'],
93
+ 'updated_at': value['updatedAt'],
94
+ 'generated_at': value['generatedAt'],
95
+ 'hierarchy': SystemPortalHierarchyToJSON(value['hierarchy']),
96
+ 'license': SystemPortalLicenseToJSON(value['license']),
97
+ 'users': SystemPortalUserStatsToJSON(value['users']),
98
+ 'courses': SystemPortalCourseStatsToJSON(value['courses']),
99
+ 'enrollments': SystemPortalEnrollmentStatsToJSON(value['enrollments']),
100
+ 'content': SystemPortalContentStatsToJSON(value['content']),
101
+ 'certificates': SystemPortalCertificateStatsToJSON(value['certificates']),
102
+ 'storage': SystemPortalStorageUsageToJSON(value['storage']),
103
+ 'activity': SystemPortalActivityStatsToJSON(value['activity']),
104
+ 'support': SystemPortalSupportStatsToJSON(value['support']),
105
+ };
106
+ }
@@ -0,0 +1,56 @@
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 SystemPortalActivityStats
16
+ */
17
+ export interface SystemPortalActivityStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SystemPortalActivityStats
22
+ */
23
+ loginsLast30Days: number;
24
+ /**
25
+ * Active learning time recorded in the portal over the last 30 days.
26
+ * @type {number}
27
+ * @memberof SystemPortalActivityStats
28
+ */
29
+ learningSecondsLast30Days: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalActivityStats
34
+ */
35
+ chatRequestsLast30Days: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalActivityStats
40
+ */
41
+ chatTokensLast30Days: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SystemPortalActivityStats
46
+ */
47
+ lastLearningActivityAt?: number | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SystemPortalActivityStats interface.
51
+ */
52
+ export declare function instanceOfSystemPortalActivityStats(value: object): value is SystemPortalActivityStats;
53
+ export declare function SystemPortalActivityStatsFromJSON(json: any): SystemPortalActivityStats;
54
+ export declare function SystemPortalActivityStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalActivityStats;
55
+ export declare function SystemPortalActivityStatsToJSON(json: any): SystemPortalActivityStats;
56
+ export declare function SystemPortalActivityStatsToJSONTyped(value?: SystemPortalActivityStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 SystemPortalActivityStats interface.
16
+ */
17
+ export function instanceOfSystemPortalActivityStats(value) {
18
+ if (!('loginsLast30Days' in value) || value['loginsLast30Days'] === undefined)
19
+ return false;
20
+ if (!('learningSecondsLast30Days' in value) || value['learningSecondsLast30Days'] === undefined)
21
+ return false;
22
+ if (!('chatRequestsLast30Days' in value) || value['chatRequestsLast30Days'] === undefined)
23
+ return false;
24
+ if (!('chatTokensLast30Days' in value) || value['chatTokensLast30Days'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function SystemPortalActivityStatsFromJSON(json) {
29
+ return SystemPortalActivityStatsFromJSONTyped(json, false);
30
+ }
31
+ export function SystemPortalActivityStatsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'loginsLast30Days': json['logins_last_30_days'],
37
+ 'learningSecondsLast30Days': json['learning_seconds_last_30_days'],
38
+ 'chatRequestsLast30Days': json['chat_requests_last_30_days'],
39
+ 'chatTokensLast30Days': json['chat_tokens_last_30_days'],
40
+ 'lastLearningActivityAt': json['last_learning_activity_at'] == null ? undefined : json['last_learning_activity_at'],
41
+ };
42
+ }
43
+ export function SystemPortalActivityStatsToJSON(json) {
44
+ return SystemPortalActivityStatsToJSONTyped(json, false);
45
+ }
46
+ export function SystemPortalActivityStatsToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'logins_last_30_days': value['loginsLast30Days'],
52
+ 'learning_seconds_last_30_days': value['learningSecondsLast30Days'],
53
+ 'chat_requests_last_30_days': value['chatRequestsLast30Days'],
54
+ 'chat_tokens_last_30_days': value['chatTokensLast30Days'],
55
+ 'last_learning_activity_at': value['lastLearningActivityAt'],
56
+ };
57
+ }
@@ -0,0 +1,50 @@
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 SystemPortalCertificateStats
16
+ */
17
+ export interface SystemPortalCertificateStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SystemPortalCertificateStats
22
+ */
23
+ active: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SystemPortalCertificateStats
28
+ */
29
+ revoked: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalCertificateStats
34
+ */
35
+ issuedLast30Days: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalCertificateStats
40
+ */
41
+ expiringNext30Days: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SystemPortalCertificateStats interface.
45
+ */
46
+ export declare function instanceOfSystemPortalCertificateStats(value: object): value is SystemPortalCertificateStats;
47
+ export declare function SystemPortalCertificateStatsFromJSON(json: any): SystemPortalCertificateStats;
48
+ export declare function SystemPortalCertificateStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalCertificateStats;
49
+ export declare function SystemPortalCertificateStatsToJSON(json: any): SystemPortalCertificateStats;
50
+ export declare function SystemPortalCertificateStatsToJSONTyped(value?: SystemPortalCertificateStats | null, ignoreDiscriminator?: boolean): any;