@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.
- package/.openapi-generator/FILES +24 -0
- package/README.md +15 -2
- package/dist/apis/SystemApi.d.ts +16 -0
- package/dist/apis/SystemApi.js +40 -0
- package/dist/esm/apis/SystemApi.d.ts +16 -0
- package/dist/esm/apis/SystemApi.js +40 -0
- package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
- package/dist/esm/models/GetSystemPortalOverview.js +106 -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 +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/GetSystemPortalOverview.d.ts +121 -0
- package/dist/models/GetSystemPortalOverview.js +113 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/docs/GetSystemPortalOverview.md +61 -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/SystemApi.ts +54 -0
- package/src/models/GetSystemPortalOverview.ts +261 -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 +12 -0
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalCertificateStats
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalCertificateStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SystemPortalCertificateStats
|
|
26
|
+
*/
|
|
27
|
+
active: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SystemPortalCertificateStats
|
|
32
|
+
*/
|
|
33
|
+
revoked: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SystemPortalCertificateStats
|
|
38
|
+
*/
|
|
39
|
+
issuedLast30Days: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SystemPortalCertificateStats
|
|
44
|
+
*/
|
|
45
|
+
expiringNext30Days: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the SystemPortalCertificateStats interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfSystemPortalCertificateStats(value: object): value is SystemPortalCertificateStats {
|
|
52
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
53
|
+
if (!('revoked' in value) || value['revoked'] === undefined) return false;
|
|
54
|
+
if (!('issuedLast30Days' in value) || value['issuedLast30Days'] === undefined) return false;
|
|
55
|
+
if (!('expiringNext30Days' in value) || value['expiringNext30Days'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SystemPortalCertificateStatsFromJSON(json: any): SystemPortalCertificateStats {
|
|
60
|
+
return SystemPortalCertificateStatsFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SystemPortalCertificateStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalCertificateStats {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'active': json['active'],
|
|
70
|
+
'revoked': json['revoked'],
|
|
71
|
+
'issuedLast30Days': json['issued_last_30_days'],
|
|
72
|
+
'expiringNext30Days': json['expiring_next_30_days'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SystemPortalCertificateStatsToJSON(json: any): SystemPortalCertificateStats {
|
|
77
|
+
return SystemPortalCertificateStatsToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function SystemPortalCertificateStatsToJSONTyped(value?: SystemPortalCertificateStats | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'active': value['active'],
|
|
88
|
+
'revoked': value['revoked'],
|
|
89
|
+
'issued_last_30_days': value['issuedLast30Days'],
|
|
90
|
+
'expiring_next_30_days': value['expiringNext30Days'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Non-archived Content Library items and active question bank entries owned by the portal.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalContentStats
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalContentStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SystemPortalContentStats
|
|
26
|
+
*/
|
|
27
|
+
libraryItems: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SystemPortalContentStats
|
|
32
|
+
*/
|
|
33
|
+
resources: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SystemPortalContentStats
|
|
38
|
+
*/
|
|
39
|
+
quizzes: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SystemPortalContentStats
|
|
44
|
+
*/
|
|
45
|
+
certificateTemplates: number;
|
|
46
|
+
/**
|
|
47
|
+
* Active, latest-version questions.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SystemPortalContentStats
|
|
50
|
+
*/
|
|
51
|
+
questions: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SystemPortalContentStats interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSystemPortalContentStats(value: object): value is SystemPortalContentStats {
|
|
58
|
+
if (!('libraryItems' in value) || value['libraryItems'] === undefined) return false;
|
|
59
|
+
if (!('resources' in value) || value['resources'] === undefined) return false;
|
|
60
|
+
if (!('quizzes' in value) || value['quizzes'] === undefined) return false;
|
|
61
|
+
if (!('certificateTemplates' in value) || value['certificateTemplates'] === undefined) return false;
|
|
62
|
+
if (!('questions' in value) || value['questions'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SystemPortalContentStatsFromJSON(json: any): SystemPortalContentStats {
|
|
67
|
+
return SystemPortalContentStatsFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SystemPortalContentStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalContentStats {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'libraryItems': json['library_items'],
|
|
77
|
+
'resources': json['resources'],
|
|
78
|
+
'quizzes': json['quizzes'],
|
|
79
|
+
'certificateTemplates': json['certificate_templates'],
|
|
80
|
+
'questions': json['questions'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function SystemPortalContentStatsToJSON(json: any): SystemPortalContentStats {
|
|
85
|
+
return SystemPortalContentStatsToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function SystemPortalContentStatsToJSONTyped(value?: SystemPortalContentStats | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'library_items': value['libraryItems'],
|
|
96
|
+
'resources': value['resources'],
|
|
97
|
+
'quizzes': value['quizzes'],
|
|
98
|
+
'certificate_templates': value['certificateTemplates'],
|
|
99
|
+
'questions': value['questions'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalCourseStats
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalCourseStats {
|
|
22
|
+
/**
|
|
23
|
+
* Non-deleted courses owned by the portal.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SystemPortalCourseStats
|
|
26
|
+
*/
|
|
27
|
+
total: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SystemPortalCourseStats
|
|
32
|
+
*/
|
|
33
|
+
published: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SystemPortalCourseStats
|
|
38
|
+
*/
|
|
39
|
+
unpublished: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SystemPortalCourseStats
|
|
44
|
+
*/
|
|
45
|
+
createdLast30Days: number;
|
|
46
|
+
/**
|
|
47
|
+
* Accepted course shares (mirror or clone) received by the portal.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SystemPortalCourseStats
|
|
50
|
+
*/
|
|
51
|
+
sharedIn: number;
|
|
52
|
+
/**
|
|
53
|
+
* Accepted course shares the portal has granted to other portals.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof SystemPortalCourseStats
|
|
56
|
+
*/
|
|
57
|
+
sharedOut: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the SystemPortalCourseStats interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfSystemPortalCourseStats(value: object): value is SystemPortalCourseStats {
|
|
64
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
65
|
+
if (!('published' in value) || value['published'] === undefined) return false;
|
|
66
|
+
if (!('unpublished' in value) || value['unpublished'] === undefined) return false;
|
|
67
|
+
if (!('createdLast30Days' in value) || value['createdLast30Days'] === undefined) return false;
|
|
68
|
+
if (!('sharedIn' in value) || value['sharedIn'] === undefined) return false;
|
|
69
|
+
if (!('sharedOut' in value) || value['sharedOut'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function SystemPortalCourseStatsFromJSON(json: any): SystemPortalCourseStats {
|
|
74
|
+
return SystemPortalCourseStatsFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function SystemPortalCourseStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalCourseStats {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'total': json['total'],
|
|
84
|
+
'published': json['published'],
|
|
85
|
+
'unpublished': json['unpublished'],
|
|
86
|
+
'createdLast30Days': json['created_last_30_days'],
|
|
87
|
+
'sharedIn': json['shared_in'],
|
|
88
|
+
'sharedOut': json['shared_out'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function SystemPortalCourseStatsToJSON(json: any): SystemPortalCourseStats {
|
|
93
|
+
return SystemPortalCourseStatsToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function SystemPortalCourseStatsToJSONTyped(value?: SystemPortalCourseStats | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'total': value['total'],
|
|
104
|
+
'published': value['published'],
|
|
105
|
+
'unpublished': value['unpublished'],
|
|
106
|
+
'created_last_30_days': value['createdLast30Days'],
|
|
107
|
+
'shared_in': value['sharedIn'],
|
|
108
|
+
'shared_out': value['sharedOut'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Learner (Student) enrollments in the portal.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalEnrollmentStats
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalEnrollmentStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SystemPortalEnrollmentStats
|
|
26
|
+
*/
|
|
27
|
+
total: number;
|
|
28
|
+
/**
|
|
29
|
+
* Enrolled, InProgress, or Suspended.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SystemPortalEnrollmentStats
|
|
32
|
+
*/
|
|
33
|
+
active: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SystemPortalEnrollmentStats
|
|
38
|
+
*/
|
|
39
|
+
completed: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SystemPortalEnrollmentStats
|
|
44
|
+
*/
|
|
45
|
+
createdLast30Days: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SystemPortalEnrollmentStats
|
|
50
|
+
*/
|
|
51
|
+
completedLast30Days: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SystemPortalEnrollmentStats interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSystemPortalEnrollmentStats(value: object): value is SystemPortalEnrollmentStats {
|
|
58
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
59
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
60
|
+
if (!('completed' in value) || value['completed'] === undefined) return false;
|
|
61
|
+
if (!('createdLast30Days' in value) || value['createdLast30Days'] === undefined) return false;
|
|
62
|
+
if (!('completedLast30Days' in value) || value['completedLast30Days'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SystemPortalEnrollmentStatsFromJSON(json: any): SystemPortalEnrollmentStats {
|
|
67
|
+
return SystemPortalEnrollmentStatsFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SystemPortalEnrollmentStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalEnrollmentStats {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'total': json['total'],
|
|
77
|
+
'active': json['active'],
|
|
78
|
+
'completed': json['completed'],
|
|
79
|
+
'createdLast30Days': json['created_last_30_days'],
|
|
80
|
+
'completedLast30Days': json['completed_last_30_days'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function SystemPortalEnrollmentStatsToJSON(json: any): SystemPortalEnrollmentStats {
|
|
85
|
+
return SystemPortalEnrollmentStatsToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function SystemPortalEnrollmentStatsToJSONTyped(value?: SystemPortalEnrollmentStats | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'total': value['total'],
|
|
96
|
+
'active': value['active'],
|
|
97
|
+
'completed': value['completed'],
|
|
98
|
+
'created_last_30_days': value['createdLast30Days'],
|
|
99
|
+
'completed_last_30_days': value['completedLast30Days'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalHierarchy
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalHierarchy {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SystemPortalHierarchy
|
|
26
|
+
*/
|
|
27
|
+
parentPortalId?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SystemPortalHierarchy
|
|
32
|
+
*/
|
|
33
|
+
parentPortalName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SystemPortalHierarchy
|
|
38
|
+
*/
|
|
39
|
+
childPortalCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SystemPortalHierarchy interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSystemPortalHierarchy(value: object): value is SystemPortalHierarchy {
|
|
46
|
+
if (!('childPortalCount' in value) || value['childPortalCount'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SystemPortalHierarchyFromJSON(json: any): SystemPortalHierarchy {
|
|
51
|
+
return SystemPortalHierarchyFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SystemPortalHierarchyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalHierarchy {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
|
|
61
|
+
'parentPortalName': json['parent_portal_name'] == null ? undefined : json['parent_portal_name'],
|
|
62
|
+
'childPortalCount': json['child_portal_count'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SystemPortalHierarchyToJSON(json: any): SystemPortalHierarchy {
|
|
67
|
+
return SystemPortalHierarchyToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SystemPortalHierarchyToJSONTyped(value?: SystemPortalHierarchy | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'parent_portal_id': value['parentPortalId'],
|
|
78
|
+
'parent_portal_name': value['parentPortalName'],
|
|
79
|
+
'child_portal_count': value['childPortalCount'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalLicense
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalLicense {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {SystemPortalLicenseStateEnum}
|
|
25
|
+
* @memberof SystemPortalLicense
|
|
26
|
+
*/
|
|
27
|
+
state: SystemPortalLicenseStateEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum active learner seats. Null means unlimited.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SystemPortalLicense
|
|
32
|
+
*/
|
|
33
|
+
seatLimit?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Active learner enrollments (Enrolled, InProgress, Suspended) counted against the seat limit.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SystemPortalLicense
|
|
38
|
+
*/
|
|
39
|
+
seatsUsed: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SystemPortalLicense
|
|
44
|
+
*/
|
|
45
|
+
licenseStartAt?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SystemPortalLicense
|
|
50
|
+
*/
|
|
51
|
+
licenseEndAt?: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const SystemPortalLicenseStateEnum = {
|
|
59
|
+
Active: 'active',
|
|
60
|
+
Suspended: 'suspended',
|
|
61
|
+
Expired: 'expired'
|
|
62
|
+
} as const;
|
|
63
|
+
export type SystemPortalLicenseStateEnum = typeof SystemPortalLicenseStateEnum[keyof typeof SystemPortalLicenseStateEnum];
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the SystemPortalLicense interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfSystemPortalLicense(value: object): value is SystemPortalLicense {
|
|
70
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
71
|
+
if (!('seatsUsed' in value) || value['seatsUsed'] === undefined) return false;
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function SystemPortalLicenseFromJSON(json: any): SystemPortalLicense {
|
|
76
|
+
return SystemPortalLicenseFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SystemPortalLicenseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalLicense {
|
|
80
|
+
if (json == null) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'state': json['state'],
|
|
86
|
+
'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
|
|
87
|
+
'seatsUsed': json['seats_used'],
|
|
88
|
+
'licenseStartAt': json['license_start_at'] == null ? undefined : json['license_start_at'],
|
|
89
|
+
'licenseEndAt': json['license_end_at'] == null ? undefined : json['license_end_at'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function SystemPortalLicenseToJSON(json: any): SystemPortalLicense {
|
|
94
|
+
return SystemPortalLicenseToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function SystemPortalLicenseToJSONTyped(value?: SystemPortalLicense | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'state': value['state'],
|
|
105
|
+
'seat_limit': value['seatLimit'],
|
|
106
|
+
'seats_used': value['seatsUsed'],
|
|
107
|
+
'license_start_at': value['licenseStartAt'],
|
|
108
|
+
'license_end_at': value['licenseEndAt'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SystemPortalRoleCount
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemPortalRoleCount {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {SystemPortalRoleCountBaseTypeEnum}
|
|
25
|
+
* @memberof SystemPortalRoleCount
|
|
26
|
+
*/
|
|
27
|
+
baseType: SystemPortalRoleCountBaseTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SystemPortalRoleCount
|
|
32
|
+
*/
|
|
33
|
+
userCount: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const SystemPortalRoleCountBaseTypeEnum = {
|
|
41
|
+
Owner: 'Owner',
|
|
42
|
+
Admin: 'Admin',
|
|
43
|
+
Instructor: 'Instructor',
|
|
44
|
+
Learner: 'Learner',
|
|
45
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
46
|
+
ClientManager: 'ClientManager',
|
|
47
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
48
|
+
} as const;
|
|
49
|
+
export type SystemPortalRoleCountBaseTypeEnum = typeof SystemPortalRoleCountBaseTypeEnum[keyof typeof SystemPortalRoleCountBaseTypeEnum];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SystemPortalRoleCount interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfSystemPortalRoleCount(value: object): value is SystemPortalRoleCount {
|
|
56
|
+
if (!('baseType' in value) || value['baseType'] === undefined) return false;
|
|
57
|
+
if (!('userCount' in value) || value['userCount'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SystemPortalRoleCountFromJSON(json: any): SystemPortalRoleCount {
|
|
62
|
+
return SystemPortalRoleCountFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SystemPortalRoleCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalRoleCount {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'baseType': json['base_type'],
|
|
72
|
+
'userCount': json['user_count'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SystemPortalRoleCountToJSON(json: any): SystemPortalRoleCount {
|
|
77
|
+
return SystemPortalRoleCountToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function SystemPortalRoleCountToJSONTyped(value?: SystemPortalRoleCount | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'base_type': value['baseType'],
|
|
88
|
+
'user_count': value['userCount'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|