@easyedu/js-lsm-api 1.123.0 → 1.125.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 +12 -0
- package/README.md +11 -4
- package/dist/apis/CourseApi.d.ts +4 -4
- package/dist/apis/CourseApi.js +4 -4
- package/dist/apis/ReportingApi.d.ts +16 -0
- package/dist/apis/ReportingApi.js +39 -0
- package/dist/esm/apis/CourseApi.d.ts +4 -4
- package/dist/esm/apis/CourseApi.js +4 -4
- package/dist/esm/apis/ReportingApi.d.ts +16 -0
- package/dist/esm/apis/ReportingApi.js +39 -0
- package/dist/esm/models/GetPortalManagementDashboard.d.ts +73 -0
- package/dist/esm/models/GetPortalManagementDashboard.js +72 -0
- package/dist/esm/models/GetPortalManagementDashboardActivityDay.d.ts +50 -0
- package/dist/esm/models/GetPortalManagementDashboardActivityDay.js +55 -0
- package/dist/esm/models/GetPortalManagementDashboardAttention.d.ts +56 -0
- package/dist/esm/models/GetPortalManagementDashboardAttention.js +59 -0
- package/dist/esm/models/GetPortalManagementDashboardEnrollmentStatus.d.ts +44 -0
- package/dist/esm/models/GetPortalManagementDashboardEnrollmentStatus.js +51 -0
- package/dist/esm/models/GetPortalManagementDashboardSummary.d.ts +74 -0
- package/dist/esm/models/GetPortalManagementDashboardSummary.js +71 -0
- package/dist/esm/models/GetPortalManagementDashboardTopCourse.d.ts +56 -0
- package/dist/esm/models/GetPortalManagementDashboardTopCourse.js +59 -0
- package/dist/esm/models/PostCourseEnrollment.d.ts +8 -4
- package/dist/esm/models/PutCourseEnrollment.d.ts +0 -14
- package/dist/esm/models/PutCourseEnrollment.js +0 -9
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/GetPortalManagementDashboard.d.ts +73 -0
- package/dist/models/GetPortalManagementDashboard.js +79 -0
- package/dist/models/GetPortalManagementDashboardActivityDay.d.ts +50 -0
- package/dist/models/GetPortalManagementDashboardActivityDay.js +62 -0
- package/dist/models/GetPortalManagementDashboardAttention.d.ts +56 -0
- package/dist/models/GetPortalManagementDashboardAttention.js +66 -0
- package/dist/models/GetPortalManagementDashboardEnrollmentStatus.d.ts +44 -0
- package/dist/models/GetPortalManagementDashboardEnrollmentStatus.js +58 -0
- package/dist/models/GetPortalManagementDashboardSummary.d.ts +74 -0
- package/dist/models/GetPortalManagementDashboardSummary.js +78 -0
- package/dist/models/GetPortalManagementDashboardTopCourse.d.ts +56 -0
- package/dist/models/GetPortalManagementDashboardTopCourse.js +66 -0
- package/dist/models/PostCourseEnrollment.d.ts +8 -4
- package/dist/models/PutCourseEnrollment.d.ts +0 -14
- package/dist/models/PutCourseEnrollment.js +1 -10
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/CourseApi.md +7 -5
- package/docs/GetPortalManagementDashboard.md +46 -0
- package/docs/GetPortalManagementDashboardActivityDay.md +40 -0
- package/docs/GetPortalManagementDashboardAttention.md +42 -0
- package/docs/GetPortalManagementDashboardEnrollmentStatus.md +38 -0
- package/docs/GetPortalManagementDashboardSummary.md +48 -0
- package/docs/GetPortalManagementDashboardTopCourse.md +42 -0
- package/docs/PutCourseEnrollment.md +0 -2
- package/docs/ReportingApi.md +67 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +4 -4
- package/src/apis/ReportingApi.ts +50 -0
- package/src/models/GetPortalManagementDashboard.ts +156 -0
- package/src/models/GetPortalManagementDashboardActivityDay.ts +93 -0
- package/src/models/GetPortalManagementDashboardAttention.ts +102 -0
- package/src/models/GetPortalManagementDashboardEnrollmentStatus.ts +84 -0
- package/src/models/GetPortalManagementDashboardSummary.ts +129 -0
- package/src/models/GetPortalManagementDashboardTopCourse.ts +102 -0
- package/src/models/PostCourseEnrollment.ts +8 -4
- package/src/models/PutCourseEnrollment.ts +0 -17
- package/src/models/index.ts +6 -0
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPortalManagementDashboardTopCourse
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalManagementDashboardTopCourse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetPortalManagementDashboardTopCourse
|
|
26
|
+
*/
|
|
27
|
+
courseId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetPortalManagementDashboardTopCourse
|
|
32
|
+
*/
|
|
33
|
+
courseName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalManagementDashboardTopCourse
|
|
38
|
+
*/
|
|
39
|
+
enrollmentCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetPortalManagementDashboardTopCourse
|
|
44
|
+
*/
|
|
45
|
+
activeLearnerCount: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetPortalManagementDashboardTopCourse
|
|
50
|
+
*/
|
|
51
|
+
completionRatePercentage: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the GetPortalManagementDashboardTopCourse interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfGetPortalManagementDashboardTopCourse(value: object): value is GetPortalManagementDashboardTopCourse {
|
|
58
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
59
|
+
if (!('courseName' in value) || value['courseName'] === undefined) return false;
|
|
60
|
+
if (!('enrollmentCount' in value) || value['enrollmentCount'] === undefined) return false;
|
|
61
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined) return false;
|
|
62
|
+
if (!('completionRatePercentage' in value) || value['completionRatePercentage'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GetPortalManagementDashboardTopCourseFromJSON(json: any): GetPortalManagementDashboardTopCourse {
|
|
67
|
+
return GetPortalManagementDashboardTopCourseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GetPortalManagementDashboardTopCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalManagementDashboardTopCourse {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'courseId': json['course_id'],
|
|
77
|
+
'courseName': json['course_name'],
|
|
78
|
+
'enrollmentCount': json['enrollment_count'],
|
|
79
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
80
|
+
'completionRatePercentage': json['completion_rate_percentage'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GetPortalManagementDashboardTopCourseToJSON(json: any): GetPortalManagementDashboardTopCourse {
|
|
85
|
+
return GetPortalManagementDashboardTopCourseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetPortalManagementDashboardTopCourseToJSONTyped(value?: GetPortalManagementDashboardTopCourse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'course_id': value['courseId'],
|
|
96
|
+
'course_name': value['courseName'],
|
|
97
|
+
'enrollment_count': value['enrollmentCount'],
|
|
98
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
99
|
+
'completion_rate_percentage': value['completionRatePercentage'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -44,15 +44,19 @@ export interface PostCourseEnrollment {
|
|
|
44
44
|
*/
|
|
45
45
|
notes?: string | null;
|
|
46
46
|
/**
|
|
47
|
-
* The role/type of
|
|
47
|
+
* The role/type of this enrollment. A user may have one current Student and
|
|
48
|
+
* one current Instructor enrollment for the same course. Assign both roles
|
|
49
|
+
* with two requests, one for each user_type.
|
|
50
|
+
*
|
|
48
51
|
* @type {PostCourseEnrollmentUserTypeEnum}
|
|
49
52
|
* @memberof PostCourseEnrollment
|
|
50
53
|
*/
|
|
51
54
|
userType?: PostCourseEnrollmentUserTypeEnum | null;
|
|
52
55
|
/**
|
|
53
|
-
* How to handle a
|
|
54
|
-
* restart creates a new enrollment period; resume
|
|
55
|
-
* enrollment.
|
|
56
|
+
* How to handle a user with a prior terminal enrollment of the requested
|
|
57
|
+
* user_type for this course. restart creates a new enrollment period; resume
|
|
58
|
+
* reopens the latest terminal enrollment of that type. A current enrollment
|
|
59
|
+
* of the same type always conflicts.
|
|
56
60
|
*
|
|
57
61
|
* @type {PostCourseEnrollmentReEnrollmentModeEnum}
|
|
58
62
|
* @memberof PostCourseEnrollment
|
|
@@ -28,12 +28,6 @@ export interface PutCourseEnrollment {
|
|
|
28
28
|
* @memberof PutCourseEnrollment
|
|
29
29
|
*/
|
|
30
30
|
status?: PutCourseEnrollmentStatusEnum;
|
|
31
|
-
/**
|
|
32
|
-
* The role/type of the user in this enrollment
|
|
33
|
-
* @type {PutCourseEnrollmentUserTypeEnum}
|
|
34
|
-
* @memberof PutCourseEnrollment
|
|
35
|
-
*/
|
|
36
|
-
userType?: PutCourseEnrollmentUserTypeEnum;
|
|
37
31
|
/**
|
|
38
32
|
* End date of the enrollment (Unix timestamp)
|
|
39
33
|
* @type {number}
|
|
@@ -78,15 +72,6 @@ export const PutCourseEnrollmentStatusEnum = {
|
|
|
78
72
|
} as const;
|
|
79
73
|
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
80
74
|
|
|
81
|
-
/**
|
|
82
|
-
* @export
|
|
83
|
-
*/
|
|
84
|
-
export const PutCourseEnrollmentUserTypeEnum = {
|
|
85
|
-
Student: 'Student',
|
|
86
|
-
Instructor: 'Instructor'
|
|
87
|
-
} as const;
|
|
88
|
-
export type PutCourseEnrollmentUserTypeEnum = typeof PutCourseEnrollmentUserTypeEnum[keyof typeof PutCourseEnrollmentUserTypeEnum];
|
|
89
|
-
|
|
90
75
|
|
|
91
76
|
/**
|
|
92
77
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
@@ -106,7 +91,6 @@ export function PutCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
106
91
|
return {
|
|
107
92
|
|
|
108
93
|
'status': json['status'] == null ? undefined : json['status'],
|
|
109
|
-
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
110
94
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
111
95
|
'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
|
|
112
96
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
@@ -126,7 +110,6 @@ export function PutCourseEnrollmentToJSONTyped(value?: PutCourseEnrollment | nul
|
|
|
126
110
|
return {
|
|
127
111
|
|
|
128
112
|
'status': value['status'],
|
|
129
|
-
'user_type': value['userType'],
|
|
130
113
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
131
114
|
'extension_days': value['extensionDays'],
|
|
132
115
|
'notes': value['notes'],
|
package/src/models/index.ts
CHANGED
|
@@ -119,6 +119,12 @@ export * from './GetPortalFaviconUpload';
|
|
|
119
119
|
export * from './GetPortalInvitationSummary';
|
|
120
120
|
export * from './GetPortalList';
|
|
121
121
|
export * from './GetPortalLogoUpload';
|
|
122
|
+
export * from './GetPortalManagementDashboard';
|
|
123
|
+
export * from './GetPortalManagementDashboardActivityDay';
|
|
124
|
+
export * from './GetPortalManagementDashboardAttention';
|
|
125
|
+
export * from './GetPortalManagementDashboardEnrollmentStatus';
|
|
126
|
+
export * from './GetPortalManagementDashboardSummary';
|
|
127
|
+
export * from './GetPortalManagementDashboardTopCourse';
|
|
122
128
|
export * from './GetPortalUser';
|
|
123
129
|
export * from './GetPortalUserFieldValues';
|
|
124
130
|
export * from './GetPortalUserList';
|