@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
package/src/apis/ReportingApi.ts
CHANGED
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
GetCourseVersionSectionReportingFromJSON,
|
|
24
24
|
GetCourseVersionSectionReportingToJSON,
|
|
25
25
|
} from '../models/GetCourseVersionSectionReporting';
|
|
26
|
+
import {
|
|
27
|
+
type GetPortalManagementDashboard,
|
|
28
|
+
GetPortalManagementDashboardFromJSON,
|
|
29
|
+
GetPortalManagementDashboardToJSON,
|
|
30
|
+
} from '../models/GetPortalManagementDashboard';
|
|
26
31
|
|
|
27
32
|
export interface GetCourseVersionReportingRequest {
|
|
28
33
|
courseId: string;
|
|
@@ -35,6 +40,10 @@ export interface GetCourseVersionSectionReportingRequest {
|
|
|
35
40
|
sectionId: string;
|
|
36
41
|
}
|
|
37
42
|
|
|
43
|
+
export interface GetPortalManagementDashboardRequest {
|
|
44
|
+
days?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
38
47
|
/**
|
|
39
48
|
*
|
|
40
49
|
*/
|
|
@@ -154,4 +163,45 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
154
163
|
return await response.value();
|
|
155
164
|
}
|
|
156
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Creates request options for getPortalManagementDashboard without sending the request
|
|
168
|
+
*/
|
|
169
|
+
async getPortalManagementDashboardRequestOpts(requestParameters: GetPortalManagementDashboardRequest): Promise<runtime.RequestOpts> {
|
|
170
|
+
const queryParameters: any = {};
|
|
171
|
+
|
|
172
|
+
if (requestParameters['days'] != null) {
|
|
173
|
+
queryParameters['days'] = requestParameters['days'];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
let urlPath = `/reporting/portal/dashboard`;
|
|
180
|
+
|
|
181
|
+
return {
|
|
182
|
+
path: urlPath,
|
|
183
|
+
method: 'GET',
|
|
184
|
+
headers: headerParameters,
|
|
185
|
+
query: queryParameters,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Get the selected portal\'s management dashboard reporting
|
|
191
|
+
*/
|
|
192
|
+
async getPortalManagementDashboardRaw(requestParameters: GetPortalManagementDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalManagementDashboard>> {
|
|
193
|
+
const requestOptions = await this.getPortalManagementDashboardRequestOpts(requestParameters);
|
|
194
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
195
|
+
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalManagementDashboardFromJSON(jsonValue));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Get the selected portal\'s management dashboard reporting
|
|
201
|
+
*/
|
|
202
|
+
async getPortalManagementDashboard(requestParameters: GetPortalManagementDashboardRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalManagementDashboard> {
|
|
203
|
+
const response = await this.getPortalManagementDashboardRaw(requestParameters, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
|
|
157
207
|
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
import type { GetPortalManagementDashboardTopCourse } from './GetPortalManagementDashboardTopCourse';
|
|
17
|
+
import {
|
|
18
|
+
GetPortalManagementDashboardTopCourseFromJSON,
|
|
19
|
+
GetPortalManagementDashboardTopCourseFromJSONTyped,
|
|
20
|
+
GetPortalManagementDashboardTopCourseToJSON,
|
|
21
|
+
GetPortalManagementDashboardTopCourseToJSONTyped,
|
|
22
|
+
} from './GetPortalManagementDashboardTopCourse';
|
|
23
|
+
import type { GetPortalManagementDashboardEnrollmentStatus } from './GetPortalManagementDashboardEnrollmentStatus';
|
|
24
|
+
import {
|
|
25
|
+
GetPortalManagementDashboardEnrollmentStatusFromJSON,
|
|
26
|
+
GetPortalManagementDashboardEnrollmentStatusFromJSONTyped,
|
|
27
|
+
GetPortalManagementDashboardEnrollmentStatusToJSON,
|
|
28
|
+
GetPortalManagementDashboardEnrollmentStatusToJSONTyped,
|
|
29
|
+
} from './GetPortalManagementDashboardEnrollmentStatus';
|
|
30
|
+
import type { GetPortalManagementDashboardSummary } from './GetPortalManagementDashboardSummary';
|
|
31
|
+
import {
|
|
32
|
+
GetPortalManagementDashboardSummaryFromJSON,
|
|
33
|
+
GetPortalManagementDashboardSummaryFromJSONTyped,
|
|
34
|
+
GetPortalManagementDashboardSummaryToJSON,
|
|
35
|
+
GetPortalManagementDashboardSummaryToJSONTyped,
|
|
36
|
+
} from './GetPortalManagementDashboardSummary';
|
|
37
|
+
import type { GetPortalManagementDashboardActivityDay } from './GetPortalManagementDashboardActivityDay';
|
|
38
|
+
import {
|
|
39
|
+
GetPortalManagementDashboardActivityDayFromJSON,
|
|
40
|
+
GetPortalManagementDashboardActivityDayFromJSONTyped,
|
|
41
|
+
GetPortalManagementDashboardActivityDayToJSON,
|
|
42
|
+
GetPortalManagementDashboardActivityDayToJSONTyped,
|
|
43
|
+
} from './GetPortalManagementDashboardActivityDay';
|
|
44
|
+
import type { GetPortalManagementDashboardAttention } from './GetPortalManagementDashboardAttention';
|
|
45
|
+
import {
|
|
46
|
+
GetPortalManagementDashboardAttentionFromJSON,
|
|
47
|
+
GetPortalManagementDashboardAttentionFromJSONTyped,
|
|
48
|
+
GetPortalManagementDashboardAttentionToJSON,
|
|
49
|
+
GetPortalManagementDashboardAttentionToJSONTyped,
|
|
50
|
+
} from './GetPortalManagementDashboardAttention';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface GetPortalManagementDashboard
|
|
56
|
+
*/
|
|
57
|
+
export interface GetPortalManagementDashboard {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetPortalManagementDashboard
|
|
62
|
+
*/
|
|
63
|
+
rangeDays: number;
|
|
64
|
+
/**
|
|
65
|
+
* Unix timestamp in seconds.
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetPortalManagementDashboard
|
|
68
|
+
*/
|
|
69
|
+
generatedAt: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {GetPortalManagementDashboardSummary}
|
|
73
|
+
* @memberof GetPortalManagementDashboard
|
|
74
|
+
*/
|
|
75
|
+
summary: GetPortalManagementDashboardSummary;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {GetPortalManagementDashboardEnrollmentStatus}
|
|
79
|
+
* @memberof GetPortalManagementDashboard
|
|
80
|
+
*/
|
|
81
|
+
enrollmentStatus: GetPortalManagementDashboardEnrollmentStatus;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<GetPortalManagementDashboardActivityDay>}
|
|
85
|
+
* @memberof GetPortalManagementDashboard
|
|
86
|
+
*/
|
|
87
|
+
activity: Array<GetPortalManagementDashboardActivityDay>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Array<GetPortalManagementDashboardTopCourse>}
|
|
91
|
+
* @memberof GetPortalManagementDashboard
|
|
92
|
+
*/
|
|
93
|
+
topCourses: Array<GetPortalManagementDashboardTopCourse>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {GetPortalManagementDashboardAttention}
|
|
97
|
+
* @memberof GetPortalManagementDashboard
|
|
98
|
+
*/
|
|
99
|
+
attention: GetPortalManagementDashboardAttention;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the GetPortalManagementDashboard interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfGetPortalManagementDashboard(value: object): value is GetPortalManagementDashboard {
|
|
106
|
+
if (!('rangeDays' in value) || value['rangeDays'] === undefined) return false;
|
|
107
|
+
if (!('generatedAt' in value) || value['generatedAt'] === undefined) return false;
|
|
108
|
+
if (!('summary' in value) || value['summary'] === undefined) return false;
|
|
109
|
+
if (!('enrollmentStatus' in value) || value['enrollmentStatus'] === undefined) return false;
|
|
110
|
+
if (!('activity' in value) || value['activity'] === undefined) return false;
|
|
111
|
+
if (!('topCourses' in value) || value['topCourses'] === undefined) return false;
|
|
112
|
+
if (!('attention' in value) || value['attention'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function GetPortalManagementDashboardFromJSON(json: any): GetPortalManagementDashboard {
|
|
117
|
+
return GetPortalManagementDashboardFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function GetPortalManagementDashboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalManagementDashboard {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'rangeDays': json['range_days'],
|
|
127
|
+
'generatedAt': json['generated_at'],
|
|
128
|
+
'summary': GetPortalManagementDashboardSummaryFromJSON(json['summary']),
|
|
129
|
+
'enrollmentStatus': GetPortalManagementDashboardEnrollmentStatusFromJSON(json['enrollment_status']),
|
|
130
|
+
'activity': ((json['activity'] as Array<any>).map(GetPortalManagementDashboardActivityDayFromJSON)),
|
|
131
|
+
'topCourses': ((json['top_courses'] as Array<any>).map(GetPortalManagementDashboardTopCourseFromJSON)),
|
|
132
|
+
'attention': GetPortalManagementDashboardAttentionFromJSON(json['attention']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function GetPortalManagementDashboardToJSON(json: any): GetPortalManagementDashboard {
|
|
137
|
+
return GetPortalManagementDashboardToJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function GetPortalManagementDashboardToJSONTyped(value?: GetPortalManagementDashboard | null, ignoreDiscriminator: boolean = false): any {
|
|
141
|
+
if (value == null) {
|
|
142
|
+
return value;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'range_days': value['rangeDays'],
|
|
148
|
+
'generated_at': value['generatedAt'],
|
|
149
|
+
'summary': GetPortalManagementDashboardSummaryToJSON(value['summary']),
|
|
150
|
+
'enrollment_status': GetPortalManagementDashboardEnrollmentStatusToJSON(value['enrollmentStatus']),
|
|
151
|
+
'activity': ((value['activity'] as Array<any>).map(GetPortalManagementDashboardActivityDayToJSON)),
|
|
152
|
+
'top_courses': ((value['topCourses'] as Array<any>).map(GetPortalManagementDashboardTopCourseToJSON)),
|
|
153
|
+
'attention': GetPortalManagementDashboardAttentionToJSON(value['attention']),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
@@ -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 GetPortalManagementDashboardActivityDay
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalManagementDashboardActivityDay {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof GetPortalManagementDashboardActivityDay
|
|
26
|
+
*/
|
|
27
|
+
date: Date;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetPortalManagementDashboardActivityDay
|
|
32
|
+
*/
|
|
33
|
+
activeLearnerCount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalManagementDashboardActivityDay
|
|
38
|
+
*/
|
|
39
|
+
loginCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetPortalManagementDashboardActivityDay
|
|
44
|
+
*/
|
|
45
|
+
completionCount: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GetPortalManagementDashboardActivityDay interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGetPortalManagementDashboardActivityDay(value: object): value is GetPortalManagementDashboardActivityDay {
|
|
52
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
53
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined) return false;
|
|
54
|
+
if (!('loginCount' in value) || value['loginCount'] === undefined) return false;
|
|
55
|
+
if (!('completionCount' in value) || value['completionCount'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetPortalManagementDashboardActivityDayFromJSON(json: any): GetPortalManagementDashboardActivityDay {
|
|
60
|
+
return GetPortalManagementDashboardActivityDayFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetPortalManagementDashboardActivityDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalManagementDashboardActivityDay {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'date': (new Date(json['date'])),
|
|
70
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
71
|
+
'loginCount': json['login_count'],
|
|
72
|
+
'completionCount': json['completion_count'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function GetPortalManagementDashboardActivityDayToJSON(json: any): GetPortalManagementDashboardActivityDay {
|
|
77
|
+
return GetPortalManagementDashboardActivityDayToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function GetPortalManagementDashboardActivityDayToJSONTyped(value?: GetPortalManagementDashboardActivityDay | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'date': value['date'].toISOString().substring(0,10),
|
|
88
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
89
|
+
'login_count': value['loginCount'],
|
|
90
|
+
'completion_count': value['completionCount'],
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPortalManagementDashboardAttention
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalManagementDashboardAttention {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetPortalManagementDashboardAttention
|
|
26
|
+
*/
|
|
27
|
+
notStartedEnrollmentCount: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetPortalManagementDashboardAttention
|
|
32
|
+
*/
|
|
33
|
+
inactiveLearnerCount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalManagementDashboardAttention
|
|
38
|
+
*/
|
|
39
|
+
expiringEnrollmentCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetPortalManagementDashboardAttention
|
|
44
|
+
*/
|
|
45
|
+
expiringCertificateCount: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetPortalManagementDashboardAttention
|
|
50
|
+
*/
|
|
51
|
+
draftCourseCount: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the GetPortalManagementDashboardAttention interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfGetPortalManagementDashboardAttention(value: object): value is GetPortalManagementDashboardAttention {
|
|
58
|
+
if (!('notStartedEnrollmentCount' in value) || value['notStartedEnrollmentCount'] === undefined) return false;
|
|
59
|
+
if (!('inactiveLearnerCount' in value) || value['inactiveLearnerCount'] === undefined) return false;
|
|
60
|
+
if (!('expiringEnrollmentCount' in value) || value['expiringEnrollmentCount'] === undefined) return false;
|
|
61
|
+
if (!('expiringCertificateCount' in value) || value['expiringCertificateCount'] === undefined) return false;
|
|
62
|
+
if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GetPortalManagementDashboardAttentionFromJSON(json: any): GetPortalManagementDashboardAttention {
|
|
67
|
+
return GetPortalManagementDashboardAttentionFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GetPortalManagementDashboardAttentionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalManagementDashboardAttention {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'notStartedEnrollmentCount': json['not_started_enrollment_count'],
|
|
77
|
+
'inactiveLearnerCount': json['inactive_learner_count'],
|
|
78
|
+
'expiringEnrollmentCount': json['expiring_enrollment_count'],
|
|
79
|
+
'expiringCertificateCount': json['expiring_certificate_count'],
|
|
80
|
+
'draftCourseCount': json['draft_course_count'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GetPortalManagementDashboardAttentionToJSON(json: any): GetPortalManagementDashboardAttention {
|
|
85
|
+
return GetPortalManagementDashboardAttentionToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetPortalManagementDashboardAttentionToJSONTyped(value?: GetPortalManagementDashboardAttention | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'not_started_enrollment_count': value['notStartedEnrollmentCount'],
|
|
96
|
+
'inactive_learner_count': value['inactiveLearnerCount'],
|
|
97
|
+
'expiring_enrollment_count': value['expiringEnrollmentCount'],
|
|
98
|
+
'expiring_certificate_count': value['expiringCertificateCount'],
|
|
99
|
+
'draft_course_count': value['draftCourseCount'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 GetPortalManagementDashboardEnrollmentStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalManagementDashboardEnrollmentStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetPortalManagementDashboardEnrollmentStatus
|
|
26
|
+
*/
|
|
27
|
+
notStartedCount: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetPortalManagementDashboardEnrollmentStatus
|
|
32
|
+
*/
|
|
33
|
+
inProgressCount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalManagementDashboardEnrollmentStatus
|
|
38
|
+
*/
|
|
39
|
+
completedCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GetPortalManagementDashboardEnrollmentStatus interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGetPortalManagementDashboardEnrollmentStatus(value: object): value is GetPortalManagementDashboardEnrollmentStatus {
|
|
46
|
+
if (!('notStartedCount' in value) || value['notStartedCount'] === undefined) return false;
|
|
47
|
+
if (!('inProgressCount' in value) || value['inProgressCount'] === undefined) return false;
|
|
48
|
+
if (!('completedCount' in value) || value['completedCount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetPortalManagementDashboardEnrollmentStatusFromJSON(json: any): GetPortalManagementDashboardEnrollmentStatus {
|
|
53
|
+
return GetPortalManagementDashboardEnrollmentStatusFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetPortalManagementDashboardEnrollmentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalManagementDashboardEnrollmentStatus {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'notStartedCount': json['not_started_count'],
|
|
63
|
+
'inProgressCount': json['in_progress_count'],
|
|
64
|
+
'completedCount': json['completed_count'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GetPortalManagementDashboardEnrollmentStatusToJSON(json: any): GetPortalManagementDashboardEnrollmentStatus {
|
|
69
|
+
return GetPortalManagementDashboardEnrollmentStatusToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GetPortalManagementDashboardEnrollmentStatusToJSONTyped(value?: GetPortalManagementDashboardEnrollmentStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'not_started_count': value['notStartedCount'],
|
|
80
|
+
'in_progress_count': value['inProgressCount'],
|
|
81
|
+
'completed_count': value['completedCount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
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 GetPortalManagementDashboardSummary
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalManagementDashboardSummary {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
26
|
+
*/
|
|
27
|
+
learnerCount: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
32
|
+
*/
|
|
33
|
+
activeLearnerCount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
38
|
+
*/
|
|
39
|
+
activeEnrollmentCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
44
|
+
*/
|
|
45
|
+
completionRatePercentage: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
50
|
+
*/
|
|
51
|
+
courseCount: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
56
|
+
*/
|
|
57
|
+
publishedCourseCount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
62
|
+
*/
|
|
63
|
+
draftCourseCount: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetPortalManagementDashboardSummary
|
|
68
|
+
*/
|
|
69
|
+
loginsToday: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the GetPortalManagementDashboardSummary interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfGetPortalManagementDashboardSummary(value: object): value is GetPortalManagementDashboardSummary {
|
|
76
|
+
if (!('learnerCount' in value) || value['learnerCount'] === undefined) return false;
|
|
77
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined) return false;
|
|
78
|
+
if (!('activeEnrollmentCount' in value) || value['activeEnrollmentCount'] === undefined) return false;
|
|
79
|
+
if (!('completionRatePercentage' in value) || value['completionRatePercentage'] === undefined) return false;
|
|
80
|
+
if (!('courseCount' in value) || value['courseCount'] === undefined) return false;
|
|
81
|
+
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined) return false;
|
|
82
|
+
if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined) return false;
|
|
83
|
+
if (!('loginsToday' in value) || value['loginsToday'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetPortalManagementDashboardSummaryFromJSON(json: any): GetPortalManagementDashboardSummary {
|
|
88
|
+
return GetPortalManagementDashboardSummaryFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function GetPortalManagementDashboardSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalManagementDashboardSummary {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'learnerCount': json['learner_count'],
|
|
98
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
99
|
+
'activeEnrollmentCount': json['active_enrollment_count'],
|
|
100
|
+
'completionRatePercentage': json['completion_rate_percentage'],
|
|
101
|
+
'courseCount': json['course_count'],
|
|
102
|
+
'publishedCourseCount': json['published_course_count'],
|
|
103
|
+
'draftCourseCount': json['draft_course_count'],
|
|
104
|
+
'loginsToday': json['logins_today'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function GetPortalManagementDashboardSummaryToJSON(json: any): GetPortalManagementDashboardSummary {
|
|
109
|
+
return GetPortalManagementDashboardSummaryToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function GetPortalManagementDashboardSummaryToJSONTyped(value?: GetPortalManagementDashboardSummary | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'learner_count': value['learnerCount'],
|
|
120
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
121
|
+
'active_enrollment_count': value['activeEnrollmentCount'],
|
|
122
|
+
'completion_rate_percentage': value['completionRatePercentage'],
|
|
123
|
+
'course_count': value['courseCount'],
|
|
124
|
+
'published_course_count': value['publishedCourseCount'],
|
|
125
|
+
'draft_course_count': value['draftCourseCount'],
|
|
126
|
+
'logins_today': value['loginsToday'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|