@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
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* Stored object sizes attributed to the portal, in bytes, as recorded in the database at upload time. Pending and deleted uploads are excluded.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SystemPortalStorageUsage
|
|
16
|
+
*/
|
|
17
|
+
export interface SystemPortalStorageUsage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SystemPortalStorageUsage
|
|
22
|
+
*/
|
|
23
|
+
totalBytes: number;
|
|
24
|
+
/**
|
|
25
|
+
* Uploaded Content Library resource files across all versions.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SystemPortalStorageUsage
|
|
28
|
+
*/
|
|
29
|
+
contentLibraryBytes: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SystemPortalStorageUsage
|
|
34
|
+
*/
|
|
35
|
+
richTextAssetBytes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SystemPortalStorageUsage
|
|
40
|
+
*/
|
|
41
|
+
emailAssetBytes: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SystemPortalStorageUsage
|
|
46
|
+
*/
|
|
47
|
+
certificateAssetBytes: number;
|
|
48
|
+
/**
|
|
49
|
+
* Generated certificate PDFs.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SystemPortalStorageUsage
|
|
52
|
+
*/
|
|
53
|
+
certificateArtifactBytes: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SystemPortalStorageUsage
|
|
58
|
+
*/
|
|
59
|
+
supportAttachmentBytes: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof SystemPortalStorageUsage
|
|
64
|
+
*/
|
|
65
|
+
courseExportBytes: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SystemPortalStorageUsage interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSystemPortalStorageUsage(value: object): value is SystemPortalStorageUsage;
|
|
71
|
+
export declare function SystemPortalStorageUsageFromJSON(json: any): SystemPortalStorageUsage;
|
|
72
|
+
export declare function SystemPortalStorageUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalStorageUsage;
|
|
73
|
+
export declare function SystemPortalStorageUsageToJSON(json: any): SystemPortalStorageUsage;
|
|
74
|
+
export declare function SystemPortalStorageUsageToJSONTyped(value?: SystemPortalStorageUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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 SystemPortalStorageUsage interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSystemPortalStorageUsage(value) {
|
|
18
|
+
if (!('totalBytes' in value) || value['totalBytes'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('contentLibraryBytes' in value) || value['contentLibraryBytes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('richTextAssetBytes' in value) || value['richTextAssetBytes'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('emailAssetBytes' in value) || value['emailAssetBytes'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('certificateAssetBytes' in value) || value['certificateAssetBytes'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('certificateArtifactBytes' in value) || value['certificateArtifactBytes'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('supportAttachmentBytes' in value) || value['supportAttachmentBytes'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('courseExportBytes' in value) || value['courseExportBytes'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function SystemPortalStorageUsageFromJSON(json) {
|
|
37
|
+
return SystemPortalStorageUsageFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function SystemPortalStorageUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'totalBytes': json['total_bytes'],
|
|
45
|
+
'contentLibraryBytes': json['content_library_bytes'],
|
|
46
|
+
'richTextAssetBytes': json['rich_text_asset_bytes'],
|
|
47
|
+
'emailAssetBytes': json['email_asset_bytes'],
|
|
48
|
+
'certificateAssetBytes': json['certificate_asset_bytes'],
|
|
49
|
+
'certificateArtifactBytes': json['certificate_artifact_bytes'],
|
|
50
|
+
'supportAttachmentBytes': json['support_attachment_bytes'],
|
|
51
|
+
'courseExportBytes': json['course_export_bytes'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function SystemPortalStorageUsageToJSON(json) {
|
|
55
|
+
return SystemPortalStorageUsageToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function SystemPortalStorageUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'total_bytes': value['totalBytes'],
|
|
63
|
+
'content_library_bytes': value['contentLibraryBytes'],
|
|
64
|
+
'rich_text_asset_bytes': value['richTextAssetBytes'],
|
|
65
|
+
'email_asset_bytes': value['emailAssetBytes'],
|
|
66
|
+
'certificate_asset_bytes': value['certificateAssetBytes'],
|
|
67
|
+
'certificate_artifact_bytes': value['certificateArtifactBytes'],
|
|
68
|
+
'support_attachment_bytes': value['supportAttachmentBytes'],
|
|
69
|
+
'course_export_bytes': value['courseExportBytes'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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 SystemPortalSupportStats
|
|
16
|
+
*/
|
|
17
|
+
export interface SystemPortalSupportStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SystemPortalSupportStats
|
|
22
|
+
*/
|
|
23
|
+
open: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SystemPortalSupportStats
|
|
28
|
+
*/
|
|
29
|
+
inProgress: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SystemPortalSupportStats
|
|
34
|
+
*/
|
|
35
|
+
closed: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SystemPortalSupportStats
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SystemPortalSupportStats interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSystemPortalSupportStats(value: object): value is SystemPortalSupportStats;
|
|
47
|
+
export declare function SystemPortalSupportStatsFromJSON(json: any): SystemPortalSupportStats;
|
|
48
|
+
export declare function SystemPortalSupportStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalSupportStats;
|
|
49
|
+
export declare function SystemPortalSupportStatsToJSON(json: any): SystemPortalSupportStats;
|
|
50
|
+
export declare function SystemPortalSupportStatsToJSONTyped(value?: SystemPortalSupportStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 SystemPortalSupportStats interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSystemPortalSupportStats(value) {
|
|
18
|
+
if (!('open' in value) || value['open'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('inProgress' in value) || value['inProgress'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('closed' in value) || value['closed'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function SystemPortalSupportStatsFromJSON(json) {
|
|
29
|
+
return SystemPortalSupportStatsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function SystemPortalSupportStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'open': json['open'],
|
|
37
|
+
'inProgress': json['in_progress'],
|
|
38
|
+
'closed': json['closed'],
|
|
39
|
+
'total': json['total'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function SystemPortalSupportStatsToJSON(json) {
|
|
43
|
+
return SystemPortalSupportStatsToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function SystemPortalSupportStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'open': value['open'],
|
|
51
|
+
'in_progress': value['inProgress'],
|
|
52
|
+
'closed': value['closed'],
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { SystemPortalRoleCount } from './SystemPortalRoleCount';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SystemPortalUserStats
|
|
17
|
+
*/
|
|
18
|
+
export interface SystemPortalUserStats {
|
|
19
|
+
/**
|
|
20
|
+
* Distinct users holding at least one active role in the portal.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof SystemPortalUserStats
|
|
23
|
+
*/
|
|
24
|
+
total: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof SystemPortalUserStats
|
|
29
|
+
*/
|
|
30
|
+
enabled: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof SystemPortalUserStats
|
|
35
|
+
*/
|
|
36
|
+
disabled: number;
|
|
37
|
+
/**
|
|
38
|
+
* Users whose earliest active role in the portal was assigned in the last 30 days.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof SystemPortalUserStats
|
|
41
|
+
*/
|
|
42
|
+
newLast30Days: number;
|
|
43
|
+
/**
|
|
44
|
+
* Distinct users who logged in to the portal in the last 7 days.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof SystemPortalUserStats
|
|
47
|
+
*/
|
|
48
|
+
activeLast7Days: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof SystemPortalUserStats
|
|
53
|
+
*/
|
|
54
|
+
activeLast30Days: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof SystemPortalUserStats
|
|
59
|
+
*/
|
|
60
|
+
pendingInvitations: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof SystemPortalUserStats
|
|
65
|
+
*/
|
|
66
|
+
lastLoginAt?: number | null;
|
|
67
|
+
/**
|
|
68
|
+
* Distinct users per role base type. A user with several roles is counted once per base type.
|
|
69
|
+
* @type {Array<SystemPortalRoleCount>}
|
|
70
|
+
* @memberof SystemPortalUserStats
|
|
71
|
+
*/
|
|
72
|
+
byRole: Array<SystemPortalRoleCount>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the SystemPortalUserStats interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfSystemPortalUserStats(value: object): value is SystemPortalUserStats;
|
|
78
|
+
export declare function SystemPortalUserStatsFromJSON(json: any): SystemPortalUserStats;
|
|
79
|
+
export declare function SystemPortalUserStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalUserStats;
|
|
80
|
+
export declare function SystemPortalUserStatsToJSON(json: any): SystemPortalUserStats;
|
|
81
|
+
export declare function SystemPortalUserStatsToJSONTyped(value?: SystemPortalUserStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { SystemPortalRoleCountFromJSON, SystemPortalRoleCountToJSON, } from './SystemPortalRoleCount';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SystemPortalUserStats interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSystemPortalUserStats(value) {
|
|
19
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('disabled' in value) || value['disabled'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('newLast30Days' in value) || value['newLast30Days'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('activeLast7Days' in value) || value['activeLast7Days'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('activeLast30Days' in value) || value['activeLast30Days'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('pendingInvitations' in value) || value['pendingInvitations'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('byRole' in value) || value['byRole'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function SystemPortalUserStatsFromJSON(json) {
|
|
38
|
+
return SystemPortalUserStatsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function SystemPortalUserStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'total': json['total'],
|
|
46
|
+
'enabled': json['enabled'],
|
|
47
|
+
'disabled': json['disabled'],
|
|
48
|
+
'newLast30Days': json['new_last_30_days'],
|
|
49
|
+
'activeLast7Days': json['active_last_7_days'],
|
|
50
|
+
'activeLast30Days': json['active_last_30_days'],
|
|
51
|
+
'pendingInvitations': json['pending_invitations'],
|
|
52
|
+
'lastLoginAt': json['last_login_at'] == null ? undefined : json['last_login_at'],
|
|
53
|
+
'byRole': (json['by_role'].map(SystemPortalRoleCountFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function SystemPortalUserStatsToJSON(json) {
|
|
57
|
+
return SystemPortalUserStatsToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function SystemPortalUserStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'total': value['total'],
|
|
65
|
+
'enabled': value['enabled'],
|
|
66
|
+
'disabled': value['disabled'],
|
|
67
|
+
'new_last_30_days': value['newLast30Days'],
|
|
68
|
+
'active_last_7_days': value['activeLast7Days'],
|
|
69
|
+
'active_last_30_days': value['activeLast30Days'],
|
|
70
|
+
'pending_invitations': value['pendingInvitations'],
|
|
71
|
+
'last_login_at': value['lastLoginAt'],
|
|
72
|
+
'by_role': (value['byRole'].map(SystemPortalRoleCountToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -165,6 +165,7 @@ export * from './GetSupportTicketList';
|
|
|
165
165
|
export * from './GetSystemBillingItem';
|
|
166
166
|
export * from './GetSystemBillingList';
|
|
167
167
|
export * from './GetSystemMetrics';
|
|
168
|
+
export * from './GetSystemPortalOverview';
|
|
168
169
|
export * from './GetUser';
|
|
169
170
|
export * from './GetUserAvatarUpload';
|
|
170
171
|
export * from './GetUserCourseList';
|
|
@@ -276,6 +277,8 @@ export * from './PostQuestionImportCommit';
|
|
|
276
277
|
export * from './PostQuestionImportCommitItem';
|
|
277
278
|
export * from './PostQuestionImportCommitResponse';
|
|
278
279
|
export * from './PostQuestionImportParseResponse';
|
|
280
|
+
export * from './PostQuestionTags';
|
|
281
|
+
export * from './PostQuestionTagsResponse';
|
|
279
282
|
export * from './PostReportExport';
|
|
280
283
|
export * from './PostReportQuery';
|
|
281
284
|
export * from './PostResetPassword';
|
|
@@ -376,6 +379,17 @@ export * from './ScormSetValueRequest';
|
|
|
376
379
|
export * from './ScormSetValueResponse';
|
|
377
380
|
export * from './ScormTerminateResponse';
|
|
378
381
|
export * from './SupportTicketUser';
|
|
382
|
+
export * from './SystemPortalActivityStats';
|
|
383
|
+
export * from './SystemPortalCertificateStats';
|
|
384
|
+
export * from './SystemPortalContentStats';
|
|
385
|
+
export * from './SystemPortalCourseStats';
|
|
386
|
+
export * from './SystemPortalEnrollmentStats';
|
|
387
|
+
export * from './SystemPortalHierarchy';
|
|
388
|
+
export * from './SystemPortalLicense';
|
|
389
|
+
export * from './SystemPortalRoleCount';
|
|
390
|
+
export * from './SystemPortalStorageUsage';
|
|
391
|
+
export * from './SystemPortalSupportStats';
|
|
392
|
+
export * from './SystemPortalUserStats';
|
|
379
393
|
export * from './UpdateSelectedPortalResponse';
|
|
380
394
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
381
395
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -167,6 +167,7 @@ export * from './GetSupportTicketList';
|
|
|
167
167
|
export * from './GetSystemBillingItem';
|
|
168
168
|
export * from './GetSystemBillingList';
|
|
169
169
|
export * from './GetSystemMetrics';
|
|
170
|
+
export * from './GetSystemPortalOverview';
|
|
170
171
|
export * from './GetUser';
|
|
171
172
|
export * from './GetUserAvatarUpload';
|
|
172
173
|
export * from './GetUserCourseList';
|
|
@@ -278,6 +279,8 @@ export * from './PostQuestionImportCommit';
|
|
|
278
279
|
export * from './PostQuestionImportCommitItem';
|
|
279
280
|
export * from './PostQuestionImportCommitResponse';
|
|
280
281
|
export * from './PostQuestionImportParseResponse';
|
|
282
|
+
export * from './PostQuestionTags';
|
|
283
|
+
export * from './PostQuestionTagsResponse';
|
|
281
284
|
export * from './PostReportExport';
|
|
282
285
|
export * from './PostReportQuery';
|
|
283
286
|
export * from './PostResetPassword';
|
|
@@ -378,6 +381,17 @@ export * from './ScormSetValueRequest';
|
|
|
378
381
|
export * from './ScormSetValueResponse';
|
|
379
382
|
export * from './ScormTerminateResponse';
|
|
380
383
|
export * from './SupportTicketUser';
|
|
384
|
+
export * from './SystemPortalActivityStats';
|
|
385
|
+
export * from './SystemPortalCertificateStats';
|
|
386
|
+
export * from './SystemPortalContentStats';
|
|
387
|
+
export * from './SystemPortalCourseStats';
|
|
388
|
+
export * from './SystemPortalEnrollmentStats';
|
|
389
|
+
export * from './SystemPortalHierarchy';
|
|
390
|
+
export * from './SystemPortalLicense';
|
|
391
|
+
export * from './SystemPortalRoleCount';
|
|
392
|
+
export * from './SystemPortalStorageUsage';
|
|
393
|
+
export * from './SystemPortalSupportStats';
|
|
394
|
+
export * from './SystemPortalUserStats';
|
|
381
395
|
export * from './UpdateSelectedPortalResponse';
|
|
382
396
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
383
397
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
@@ -57,6 +57,12 @@ export interface GetCourseEnrollmentListItem {
|
|
|
57
57
|
* @memberof GetCourseEnrollmentListItem
|
|
58
58
|
*/
|
|
59
59
|
lastName: string;
|
|
60
|
+
/**
|
|
61
|
+
* Contact email of the enrolled user. Only populated for Instructor enrollments so learners can contact course instructors; null for Student enrollments.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetCourseEnrollmentListItem
|
|
64
|
+
*/
|
|
65
|
+
email?: string | null;
|
|
60
66
|
/**
|
|
61
67
|
* Start date of the enrollment (Unix timestamp)
|
|
62
68
|
* @type {number}
|
|
@@ -102,6 +102,7 @@ function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
102
|
'courseVersionNumber': json['course_version_number'],
|
|
103
103
|
'firstName': json['first_name'],
|
|
104
104
|
'lastName': json['last_name'],
|
|
105
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
106
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
106
107
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
107
108
|
'status': json['status'],
|
|
@@ -126,6 +127,7 @@ function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
126
127
|
'course_version_number': value['courseVersionNumber'],
|
|
127
128
|
'first_name': value['firstName'],
|
|
128
129
|
'last_name': value['lastName'],
|
|
130
|
+
'email': value['email'],
|
|
129
131
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
130
132
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
131
133
|
'status': value['status'],
|
|
@@ -22,6 +22,12 @@ export interface GetResourceUsageCoursesInner {
|
|
|
22
22
|
* @memberof GetResourceUsageCoursesInner
|
|
23
23
|
*/
|
|
24
24
|
courseId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Display name of the course
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetResourceUsageCoursesInner
|
|
29
|
+
*/
|
|
30
|
+
courseName: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -25,6 +25,8 @@ const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
|
25
25
|
function instanceOfGetResourceUsageCoursesInner(value) {
|
|
26
26
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
|
|
@@ -46,6 +48,7 @@ function GetResourceUsageCoursesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'courseId': json['course_id'],
|
|
51
|
+
'courseName': json['course_name'],
|
|
49
52
|
'courseVersionId': json['course_version_id'],
|
|
50
53
|
'courseVersionNumber': json['course_version_number'],
|
|
51
54
|
'courseStatus': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusFromJSON)(json['course_status']),
|
|
@@ -62,6 +65,7 @@ function GetResourceUsageCoursesInnerToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
62
65
|
}
|
|
63
66
|
return {
|
|
64
67
|
'course_id': value['courseId'],
|
|
68
|
+
'course_name': value['courseName'],
|
|
65
69
|
'course_version_id': value['courseVersionId'],
|
|
66
70
|
'course_version_number': value['courseVersionNumber'],
|
|
67
71
|
'course_status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusToJSON)(value['courseStatus']),
|
|
@@ -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;
|