@easyedu/js-lsm-api 1.15.0 → 1.16.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 +29 -0
- package/README.md +2 -2
- package/dist/apis/ReportingApi.d.ts +120 -0
- package/dist/apis/ReportingApi.js +299 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ReportingApi.d.ts +120 -0
- package/dist/esm/apis/ReportingApi.js +295 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetContentGradeDetail.d.ts +118 -0
- package/dist/esm/models/GetContentGradeDetail.js +104 -0
- package/dist/esm/models/GetContentGrades.d.ts +57 -0
- package/dist/esm/models/GetContentGrades.js +60 -0
- package/dist/esm/models/GetContentGradesItemsInner.d.ts +72 -0
- package/dist/esm/models/GetContentGradesItemsInner.js +73 -0
- package/dist/esm/models/GetContentGradesItemsInnerUser.d.ts +44 -0
- package/dist/esm/models/GetContentGradesItemsInnerUser.js +51 -0
- package/dist/esm/models/GetContentInstructorBasicReporting.d.ts +47 -0
- package/dist/esm/models/GetContentInstructorBasicReporting.js +54 -0
- package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.d.ts +59 -0
- package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.js +63 -0
- package/dist/esm/models/GetContentInstructorBasicReportingEngagement.d.ts +56 -0
- package/dist/esm/models/GetContentInstructorBasicReportingEngagement.js +59 -0
- package/dist/esm/models/GetContentInstructorBasicReportingPerformance.d.ts +38 -0
- package/dist/esm/models/GetContentInstructorBasicReportingPerformance.js +47 -0
- package/dist/esm/models/GetCourseStudentReporting.d.ts +47 -0
- package/dist/esm/models/GetCourseStudentReporting.js +54 -0
- package/dist/esm/models/GetCourseStudentReportingCourseInfo.d.ts +32 -0
- package/dist/esm/models/GetCourseStudentReportingCourseInfo.js +43 -0
- package/dist/esm/models/GetCourseStudentReportingEngagement.d.ts +38 -0
- package/dist/esm/models/GetCourseStudentReportingEngagement.js +47 -0
- package/dist/esm/models/GetCourseStudentReportingPerformance.d.ts +32 -0
- package/dist/esm/models/GetCourseStudentReportingPerformance.js +43 -0
- package/dist/esm/models/GetModuleInstructorBasicReporting.d.ts +47 -0
- package/dist/esm/models/GetModuleInstructorBasicReporting.js +54 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.d.ts +32 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.js +43 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingModuleInfo.d.ts +32 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingModuleInfo.js +43 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingPerformance.d.ts +32 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingPerformance.js +43 -0
- package/dist/esm/models/GetModuleStudentReporting.d.ts +47 -0
- package/dist/esm/models/GetModuleStudentReporting.js +54 -0
- package/dist/esm/models/GetModuleStudentReportingAccess.d.ts +38 -0
- package/dist/esm/models/GetModuleStudentReportingAccess.js +47 -0
- package/dist/esm/models/GetModuleStudentReportingProgress.d.ts +38 -0
- package/dist/esm/models/GetModuleStudentReportingProgress.js +47 -0
- package/dist/esm/models/GetPortalBasicReporting.d.ts +40 -0
- package/dist/esm/models/GetPortalBasicReporting.js +49 -0
- package/dist/esm/models/GetPortalBasicReportingCertificates.d.ts +32 -0
- package/dist/esm/models/GetPortalBasicReportingCertificates.js +43 -0
- package/dist/esm/models/GetPortalBasicReportingPortalInfo.d.ts +44 -0
- package/dist/esm/models/GetPortalBasicReportingPortalInfo.js +51 -0
- package/dist/esm/models/ScormSessionData.d.ts +61 -0
- package/dist/esm/models/ScormSessionData.js +54 -0
- package/dist/esm/models/ScormSessionDataProgress.d.ts +38 -0
- package/dist/esm/models/ScormSessionDataProgress.js +43 -0
- package/dist/esm/models/ScormSessionDataScore.d.ts +50 -0
- package/dist/esm/models/ScormSessionDataScore.js +47 -0
- package/dist/esm/models/ScormSessionDataSession.d.ts +32 -0
- package/dist/esm/models/ScormSessionDataSession.js +41 -0
- package/dist/esm/models/ScormSessionDataStatus.d.ts +50 -0
- package/dist/esm/models/ScormSessionDataStatus.js +47 -0
- package/dist/esm/models/ScormSessionDataTime.d.ts +50 -0
- package/dist/esm/models/ScormSessionDataTime.js +47 -0
- package/dist/esm/models/index.d.ts +28 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/models/GetContentGradeDetail.d.ts +118 -0
- package/dist/models/GetContentGradeDetail.js +112 -0
- package/dist/models/GetContentGrades.d.ts +57 -0
- package/dist/models/GetContentGrades.js +67 -0
- package/dist/models/GetContentGradesItemsInner.d.ts +72 -0
- package/dist/models/GetContentGradesItemsInner.js +81 -0
- package/dist/models/GetContentGradesItemsInnerUser.d.ts +44 -0
- package/dist/models/GetContentGradesItemsInnerUser.js +58 -0
- package/dist/models/GetContentInstructorBasicReporting.d.ts +47 -0
- package/dist/models/GetContentInstructorBasicReporting.js +61 -0
- package/dist/models/GetContentInstructorBasicReportingContentInfo.d.ts +59 -0
- package/dist/models/GetContentInstructorBasicReportingContentInfo.js +71 -0
- package/dist/models/GetContentInstructorBasicReportingEngagement.d.ts +56 -0
- package/dist/models/GetContentInstructorBasicReportingEngagement.js +66 -0
- package/dist/models/GetContentInstructorBasicReportingPerformance.d.ts +38 -0
- package/dist/models/GetContentInstructorBasicReportingPerformance.js +54 -0
- package/dist/models/GetCourseStudentReporting.d.ts +47 -0
- package/dist/models/GetCourseStudentReporting.js +61 -0
- package/dist/models/GetCourseStudentReportingCourseInfo.d.ts +32 -0
- package/dist/models/GetCourseStudentReportingCourseInfo.js +50 -0
- package/dist/models/GetCourseStudentReportingEngagement.d.ts +38 -0
- package/dist/models/GetCourseStudentReportingEngagement.js +54 -0
- package/dist/models/GetCourseStudentReportingPerformance.d.ts +32 -0
- package/dist/models/GetCourseStudentReportingPerformance.js +50 -0
- package/dist/models/GetModuleInstructorBasicReporting.d.ts +47 -0
- package/dist/models/GetModuleInstructorBasicReporting.js +61 -0
- package/dist/models/GetModuleInstructorBasicReportingEngagement.d.ts +32 -0
- package/dist/models/GetModuleInstructorBasicReportingEngagement.js +50 -0
- package/dist/models/GetModuleInstructorBasicReportingModuleInfo.d.ts +32 -0
- package/dist/models/GetModuleInstructorBasicReportingModuleInfo.js +50 -0
- package/dist/models/GetModuleInstructorBasicReportingPerformance.d.ts +32 -0
- package/dist/models/GetModuleInstructorBasicReportingPerformance.js +50 -0
- package/dist/models/GetModuleStudentReporting.d.ts +47 -0
- package/dist/models/GetModuleStudentReporting.js +61 -0
- package/dist/models/GetModuleStudentReportingAccess.d.ts +38 -0
- package/dist/models/GetModuleStudentReportingAccess.js +54 -0
- package/dist/models/GetModuleStudentReportingProgress.d.ts +38 -0
- package/dist/models/GetModuleStudentReportingProgress.js +54 -0
- package/dist/models/GetPortalBasicReporting.d.ts +40 -0
- package/dist/models/GetPortalBasicReporting.js +56 -0
- package/dist/models/GetPortalBasicReportingCertificates.d.ts +32 -0
- package/dist/models/GetPortalBasicReportingCertificates.js +50 -0
- package/dist/models/GetPortalBasicReportingPortalInfo.d.ts +44 -0
- package/dist/models/GetPortalBasicReportingPortalInfo.js +58 -0
- package/dist/models/ScormSessionData.d.ts +61 -0
- package/dist/models/ScormSessionData.js +61 -0
- package/dist/models/ScormSessionDataProgress.d.ts +38 -0
- package/dist/models/ScormSessionDataProgress.js +50 -0
- package/dist/models/ScormSessionDataScore.d.ts +50 -0
- package/dist/models/ScormSessionDataScore.js +54 -0
- package/dist/models/ScormSessionDataSession.d.ts +32 -0
- package/dist/models/ScormSessionDataSession.js +48 -0
- package/dist/models/ScormSessionDataStatus.d.ts +50 -0
- package/dist/models/ScormSessionDataStatus.js +54 -0
- package/dist/models/ScormSessionDataTime.d.ts +50 -0
- package/dist/models/ScormSessionDataTime.js +54 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +28 -0
- package/package.json +1 -1
- package/src/apis/ReportingApi.ts +450 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetContentGradeDetail.ts +191 -0
- package/src/models/GetContentGrades.ts +110 -0
- package/src/models/GetContentGradesItemsInner.ts +125 -0
- package/src/models/GetContentGradesItemsInnerUser.ts +84 -0
- package/src/models/GetContentInstructorBasicReporting.ts +106 -0
- package/src/models/GetContentInstructorBasicReportingContentInfo.ts +101 -0
- package/src/models/GetContentInstructorBasicReportingEngagement.ts +102 -0
- package/src/models/GetContentInstructorBasicReportingPerformance.ts +75 -0
- package/src/models/GetCourseStudentReporting.ts +106 -0
- package/src/models/GetCourseStudentReportingCourseInfo.ts +66 -0
- package/src/models/GetCourseStudentReportingEngagement.ts +75 -0
- package/src/models/GetCourseStudentReportingPerformance.ts +66 -0
- package/src/models/GetModuleInstructorBasicReporting.ts +106 -0
- package/src/models/GetModuleInstructorBasicReportingEngagement.ts +66 -0
- package/src/models/GetModuleInstructorBasicReportingModuleInfo.ts +66 -0
- package/src/models/GetModuleInstructorBasicReportingPerformance.ts +66 -0
- package/src/models/GetModuleStudentReporting.ts +106 -0
- package/src/models/GetModuleStudentReportingAccess.ts +75 -0
- package/src/models/GetModuleStudentReportingProgress.ts +75 -0
- package/src/models/GetPortalBasicReporting.ts +90 -0
- package/src/models/GetPortalBasicReportingCertificates.ts +66 -0
- package/src/models/GetPortalBasicReportingPortalInfo.ts +84 -0
- package/src/models/ScormSessionData.ts +133 -0
- package/src/models/ScormSessionDataProgress.ts +73 -0
- package/src/models/ScormSessionDataScore.ts +89 -0
- package/src/models/ScormSessionDataSession.ts +65 -0
- package/src/models/ScormSessionDataStatus.ts +89 -0
- package/src/models/ScormSessionDataTime.ts +89 -0
- package/src/models/index.ts +28 -0
|
@@ -0,0 +1,72 @@
|
|
|
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 { GetContentGradesItemsInnerUser } from './GetContentGradesItemsInnerUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentGradesItemsInner
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentGradesItemsInner {
|
|
19
|
+
/**
|
|
20
|
+
* Content session external ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetContentGradesItemsInner
|
|
23
|
+
*/
|
|
24
|
+
id?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {GetContentGradesItemsInnerUser}
|
|
28
|
+
* @memberof GetContentGradesItemsInner
|
|
29
|
+
*/
|
|
30
|
+
user: GetContentGradesItemsInnerUser;
|
|
31
|
+
/**
|
|
32
|
+
* Content completion status
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetContentGradesItemsInner
|
|
35
|
+
*/
|
|
36
|
+
completion: GetContentGradesItemsInnerCompletionEnum;
|
|
37
|
+
/**
|
|
38
|
+
* Content grade status
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetContentGradesItemsInner
|
|
41
|
+
*/
|
|
42
|
+
gradeStatus: GetContentGradesItemsInnerGradeStatusEnum;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const GetContentGradesItemsInnerCompletionEnum: {
|
|
48
|
+
readonly NotAttempted: "NotAttempted";
|
|
49
|
+
readonly InProgress: "InProgress";
|
|
50
|
+
readonly Completed: "Completed";
|
|
51
|
+
};
|
|
52
|
+
export type GetContentGradesItemsInnerCompletionEnum = typeof GetContentGradesItemsInnerCompletionEnum[keyof typeof GetContentGradesItemsInnerCompletionEnum];
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export declare const GetContentGradesItemsInnerGradeStatusEnum: {
|
|
57
|
+
readonly Ungraded: "Ungraded";
|
|
58
|
+
readonly Passed: "Passed";
|
|
59
|
+
readonly Failed: "Failed";
|
|
60
|
+
readonly PointsEarned: "PointsEarned";
|
|
61
|
+
readonly PercentageEarned: "PercentageEarned";
|
|
62
|
+
readonly NotApplicable: "NotApplicable";
|
|
63
|
+
};
|
|
64
|
+
export type GetContentGradesItemsInnerGradeStatusEnum = typeof GetContentGradesItemsInnerGradeStatusEnum[keyof typeof GetContentGradesItemsInnerGradeStatusEnum];
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the GetContentGradesItemsInner interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfGetContentGradesItemsInner(value: object): value is GetContentGradesItemsInner;
|
|
69
|
+
export declare function GetContentGradesItemsInnerFromJSON(json: any): GetContentGradesItemsInner;
|
|
70
|
+
export declare function GetContentGradesItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentGradesItemsInner;
|
|
71
|
+
export declare function GetContentGradesItemsInnerToJSON(json: any): GetContentGradesItemsInner;
|
|
72
|
+
export declare function GetContentGradesItemsInnerToJSONTyped(value?: GetContentGradesItemsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { GetContentGradesItemsInnerUserFromJSON, GetContentGradesItemsInnerUserToJSON, } from './GetContentGradesItemsInnerUser';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetContentGradesItemsInnerCompletionEnum = {
|
|
19
|
+
NotAttempted: 'NotAttempted',
|
|
20
|
+
InProgress: 'InProgress',
|
|
21
|
+
Completed: 'Completed'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const GetContentGradesItemsInnerGradeStatusEnum = {
|
|
27
|
+
Ungraded: 'Ungraded',
|
|
28
|
+
Passed: 'Passed',
|
|
29
|
+
Failed: 'Failed',
|
|
30
|
+
PointsEarned: 'PointsEarned',
|
|
31
|
+
PercentageEarned: 'PercentageEarned',
|
|
32
|
+
NotApplicable: 'NotApplicable'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the GetContentGradesItemsInner interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfGetContentGradesItemsInner(value) {
|
|
38
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('completion' in value) || value['completion'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function GetContentGradesItemsInnerFromJSON(json) {
|
|
47
|
+
return GetContentGradesItemsInnerFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetContentGradesItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
'user': GetContentGradesItemsInnerUserFromJSON(json['user']),
|
|
56
|
+
'completion': json['completion'],
|
|
57
|
+
'gradeStatus': json['grade_status'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export function GetContentGradesItemsInnerToJSON(json) {
|
|
61
|
+
return GetContentGradesItemsInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function GetContentGradesItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'user': GetContentGradesItemsInnerUserToJSON(value['user']),
|
|
70
|
+
'completion': value['completion'],
|
|
71
|
+
'grade_status': value['gradeStatus'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 GetContentGradesItemsInnerUser
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentGradesItemsInnerUser {
|
|
18
|
+
/**
|
|
19
|
+
* User's first name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentGradesItemsInnerUser
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
* User's last name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentGradesItemsInnerUser
|
|
28
|
+
*/
|
|
29
|
+
lastName: string;
|
|
30
|
+
/**
|
|
31
|
+
* User's external ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetContentGradesItemsInnerUser
|
|
34
|
+
*/
|
|
35
|
+
userId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetContentGradesItemsInnerUser interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetContentGradesItemsInnerUser(value: object): value is GetContentGradesItemsInnerUser;
|
|
41
|
+
export declare function GetContentGradesItemsInnerUserFromJSON(json: any): GetContentGradesItemsInnerUser;
|
|
42
|
+
export declare function GetContentGradesItemsInnerUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentGradesItemsInnerUser;
|
|
43
|
+
export declare function GetContentGradesItemsInnerUserToJSON(json: any): GetContentGradesItemsInnerUser;
|
|
44
|
+
export declare function GetContentGradesItemsInnerUserToJSONTyped(value?: GetContentGradesItemsInnerUser | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GetContentGradesItemsInnerUser interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentGradesItemsInnerUser(value) {
|
|
18
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetContentGradesItemsInnerUserFromJSON(json) {
|
|
27
|
+
return GetContentGradesItemsInnerUserFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetContentGradesItemsInnerUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'firstName': json['first_name'],
|
|
35
|
+
'lastName': json['last_name'],
|
|
36
|
+
'userId': json['user_id'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetContentGradesItemsInnerUserToJSON(json) {
|
|
40
|
+
return GetContentGradesItemsInnerUserToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetContentGradesItemsInnerUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'first_name': value['firstName'],
|
|
48
|
+
'last_name': value['lastName'],
|
|
49
|
+
'user_id': value['userId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { GetContentInstructorBasicReportingContentInfo } from './GetContentInstructorBasicReportingContentInfo';
|
|
13
|
+
import type { GetContentInstructorBasicReportingEngagement } from './GetContentInstructorBasicReportingEngagement';
|
|
14
|
+
import type { GetContentInstructorBasicReportingPerformance } from './GetContentInstructorBasicReportingPerformance';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetContentInstructorBasicReporting
|
|
19
|
+
*/
|
|
20
|
+
export interface GetContentInstructorBasicReporting {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {GetContentInstructorBasicReportingContentInfo}
|
|
24
|
+
* @memberof GetContentInstructorBasicReporting
|
|
25
|
+
*/
|
|
26
|
+
contentInfo: GetContentInstructorBasicReportingContentInfo;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {GetContentInstructorBasicReportingEngagement}
|
|
30
|
+
* @memberof GetContentInstructorBasicReporting
|
|
31
|
+
*/
|
|
32
|
+
engagement: GetContentInstructorBasicReportingEngagement;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {GetContentInstructorBasicReportingPerformance}
|
|
36
|
+
* @memberof GetContentInstructorBasicReporting
|
|
37
|
+
*/
|
|
38
|
+
performance: GetContentInstructorBasicReportingPerformance;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetContentInstructorBasicReporting interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetContentInstructorBasicReporting(value: object): value is GetContentInstructorBasicReporting;
|
|
44
|
+
export declare function GetContentInstructorBasicReportingFromJSON(json: any): GetContentInstructorBasicReporting;
|
|
45
|
+
export declare function GetContentInstructorBasicReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReporting;
|
|
46
|
+
export declare function GetContentInstructorBasicReportingToJSON(json: any): GetContentInstructorBasicReporting;
|
|
47
|
+
export declare function GetContentInstructorBasicReportingToJSONTyped(value?: GetContentInstructorBasicReporting | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { GetContentInstructorBasicReportingContentInfoFromJSON, GetContentInstructorBasicReportingContentInfoToJSON, } from './GetContentInstructorBasicReportingContentInfo';
|
|
15
|
+
import { GetContentInstructorBasicReportingEngagementFromJSON, GetContentInstructorBasicReportingEngagementToJSON, } from './GetContentInstructorBasicReportingEngagement';
|
|
16
|
+
import { GetContentInstructorBasicReportingPerformanceFromJSON, GetContentInstructorBasicReportingPerformanceToJSON, } from './GetContentInstructorBasicReportingPerformance';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the GetContentInstructorBasicReporting interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfGetContentInstructorBasicReporting(value) {
|
|
21
|
+
if (!('contentInfo' in value) || value['contentInfo'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('engagement' in value) || value['engagement'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('performance' in value) || value['performance'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function GetContentInstructorBasicReportingFromJSON(json) {
|
|
30
|
+
return GetContentInstructorBasicReportingFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function GetContentInstructorBasicReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'contentInfo': GetContentInstructorBasicReportingContentInfoFromJSON(json['content_info']),
|
|
38
|
+
'engagement': GetContentInstructorBasicReportingEngagementFromJSON(json['engagement']),
|
|
39
|
+
'performance': GetContentInstructorBasicReportingPerformanceFromJSON(json['performance']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function GetContentInstructorBasicReportingToJSON(json) {
|
|
43
|
+
return GetContentInstructorBasicReportingToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function GetContentInstructorBasicReportingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'content_info': GetContentInstructorBasicReportingContentInfoToJSON(value['contentInfo']),
|
|
51
|
+
'engagement': GetContentInstructorBasicReportingEngagementToJSON(value['engagement']),
|
|
52
|
+
'performance': GetContentInstructorBasicReportingPerformanceToJSON(value['performance']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 GetContentInstructorBasicReportingContentInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentInstructorBasicReportingContentInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Content external ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentInstructorBasicReportingContentInfo
|
|
22
|
+
*/
|
|
23
|
+
contentId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Type of content
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentInstructorBasicReportingContentInfo
|
|
28
|
+
*/
|
|
29
|
+
contentType: GetContentInstructorBasicReportingContentInfoContentTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Content title
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetContentInstructorBasicReportingContentInfo
|
|
34
|
+
*/
|
|
35
|
+
title?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const GetContentInstructorBasicReportingContentInfoContentTypeEnum: {
|
|
41
|
+
readonly Scorm: "Scorm";
|
|
42
|
+
readonly Video: "Video";
|
|
43
|
+
readonly Audio: "Audio";
|
|
44
|
+
readonly Image: "Image";
|
|
45
|
+
readonly Text: "Text";
|
|
46
|
+
readonly Link: "Link";
|
|
47
|
+
readonly File: "File";
|
|
48
|
+
readonly Pdf: "Pdf";
|
|
49
|
+
readonly Quiz: "Quiz";
|
|
50
|
+
};
|
|
51
|
+
export type GetContentInstructorBasicReportingContentInfoContentTypeEnum = typeof GetContentInstructorBasicReportingContentInfoContentTypeEnum[keyof typeof GetContentInstructorBasicReportingContentInfoContentTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the GetContentInstructorBasicReportingContentInfo interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfGetContentInstructorBasicReportingContentInfo(value: object): value is GetContentInstructorBasicReportingContentInfo;
|
|
56
|
+
export declare function GetContentInstructorBasicReportingContentInfoFromJSON(json: any): GetContentInstructorBasicReportingContentInfo;
|
|
57
|
+
export declare function GetContentInstructorBasicReportingContentInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReportingContentInfo;
|
|
58
|
+
export declare function GetContentInstructorBasicReportingContentInfoToJSON(json: any): GetContentInstructorBasicReportingContentInfo;
|
|
59
|
+
export declare function GetContentInstructorBasicReportingContentInfoToJSONTyped(value?: GetContentInstructorBasicReportingContentInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetContentInstructorBasicReportingContentInfoContentTypeEnum = {
|
|
18
|
+
Scorm: 'Scorm',
|
|
19
|
+
Video: 'Video',
|
|
20
|
+
Audio: 'Audio',
|
|
21
|
+
Image: 'Image',
|
|
22
|
+
Text: 'Text',
|
|
23
|
+
Link: 'Link',
|
|
24
|
+
File: 'File',
|
|
25
|
+
Pdf: 'Pdf',
|
|
26
|
+
Quiz: 'Quiz'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the GetContentInstructorBasicReportingContentInfo interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfGetContentInstructorBasicReportingContentInfo(value) {
|
|
32
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function GetContentInstructorBasicReportingContentInfoFromJSON(json) {
|
|
39
|
+
return GetContentInstructorBasicReportingContentInfoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function GetContentInstructorBasicReportingContentInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'contentId': json['content_id'],
|
|
47
|
+
'contentType': json['content_type'],
|
|
48
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function GetContentInstructorBasicReportingContentInfoToJSON(json) {
|
|
52
|
+
return GetContentInstructorBasicReportingContentInfoToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function GetContentInstructorBasicReportingContentInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'content_id': value['contentId'],
|
|
60
|
+
'content_type': value['contentType'],
|
|
61
|
+
'title': value['title'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentInstructorBasicReportingEngagement
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentInstructorBasicReportingEngagement {
|
|
18
|
+
/**
|
|
19
|
+
* Average time spent by students on this content in hours
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetContentInstructorBasicReportingEngagement
|
|
22
|
+
*/
|
|
23
|
+
avgTimeSpentHours: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Number of students who completed the content
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetContentInstructorBasicReportingEngagement
|
|
28
|
+
*/
|
|
29
|
+
studentsCompletedCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of students currently in progress
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetContentInstructorBasicReportingEngagement
|
|
34
|
+
*/
|
|
35
|
+
studentsInProgressCount: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of students who have not started
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetContentInstructorBasicReportingEngagement
|
|
40
|
+
*/
|
|
41
|
+
studentsNotStartedCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Total number of enrolled students
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetContentInstructorBasicReportingEngagement
|
|
46
|
+
*/
|
|
47
|
+
totalStudentsCount: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetContentInstructorBasicReportingEngagement interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGetContentInstructorBasicReportingEngagement(value: object): value is GetContentInstructorBasicReportingEngagement;
|
|
53
|
+
export declare function GetContentInstructorBasicReportingEngagementFromJSON(json: any): GetContentInstructorBasicReportingEngagement;
|
|
54
|
+
export declare function GetContentInstructorBasicReportingEngagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReportingEngagement;
|
|
55
|
+
export declare function GetContentInstructorBasicReportingEngagementToJSON(json: any): GetContentInstructorBasicReportingEngagement;
|
|
56
|
+
export declare function GetContentInstructorBasicReportingEngagementToJSONTyped(value?: GetContentInstructorBasicReportingEngagement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 GetContentInstructorBasicReportingEngagement interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentInstructorBasicReportingEngagement(value) {
|
|
18
|
+
if (!('avgTimeSpentHours' in value) || value['avgTimeSpentHours'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('studentsCompletedCount' in value) || value['studentsCompletedCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('studentsInProgressCount' in value) || value['studentsInProgressCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('studentsNotStartedCount' in value) || value['studentsNotStartedCount'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('totalStudentsCount' in value) || value['totalStudentsCount'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function GetContentInstructorBasicReportingEngagementFromJSON(json) {
|
|
31
|
+
return GetContentInstructorBasicReportingEngagementFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function GetContentInstructorBasicReportingEngagementFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'avgTimeSpentHours': json['avg_time_spent_hours'],
|
|
39
|
+
'studentsCompletedCount': json['students_completed_count'],
|
|
40
|
+
'studentsInProgressCount': json['students_in_progress_count'],
|
|
41
|
+
'studentsNotStartedCount': json['students_not_started_count'],
|
|
42
|
+
'totalStudentsCount': json['total_students_count'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function GetContentInstructorBasicReportingEngagementToJSON(json) {
|
|
46
|
+
return GetContentInstructorBasicReportingEngagementToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GetContentInstructorBasicReportingEngagementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'avg_time_spent_hours': value['avgTimeSpentHours'],
|
|
54
|
+
'students_completed_count': value['studentsCompletedCount'],
|
|
55
|
+
'students_in_progress_count': value['studentsInProgressCount'],
|
|
56
|
+
'students_not_started_count': value['studentsNotStartedCount'],
|
|
57
|
+
'total_students_count': value['totalStudentsCount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 GetContentInstructorBasicReportingPerformance
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentInstructorBasicReportingPerformance {
|
|
18
|
+
/**
|
|
19
|
+
* Average score percentage across all students
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetContentInstructorBasicReportingPerformance
|
|
22
|
+
*/
|
|
23
|
+
avgScorePercentage: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Average number of attempts per student
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetContentInstructorBasicReportingPerformance
|
|
28
|
+
*/
|
|
29
|
+
avgAttemptCount: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetContentInstructorBasicReportingPerformance interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetContentInstructorBasicReportingPerformance(value: object): value is GetContentInstructorBasicReportingPerformance;
|
|
35
|
+
export declare function GetContentInstructorBasicReportingPerformanceFromJSON(json: any): GetContentInstructorBasicReportingPerformance;
|
|
36
|
+
export declare function GetContentInstructorBasicReportingPerformanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReportingPerformance;
|
|
37
|
+
export declare function GetContentInstructorBasicReportingPerformanceToJSON(json: any): GetContentInstructorBasicReportingPerformance;
|
|
38
|
+
export declare function GetContentInstructorBasicReportingPerformanceToJSONTyped(value?: GetContentInstructorBasicReportingPerformance | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 GetContentInstructorBasicReportingPerformance interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentInstructorBasicReportingPerformance(value) {
|
|
18
|
+
if (!('avgScorePercentage' in value) || value['avgScorePercentage'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('avgAttemptCount' in value) || value['avgAttemptCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function GetContentInstructorBasicReportingPerformanceFromJSON(json) {
|
|
25
|
+
return GetContentInstructorBasicReportingPerformanceFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function GetContentInstructorBasicReportingPerformanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'avgScorePercentage': json['avg_score_percentage'],
|
|
33
|
+
'avgAttemptCount': json['avg_attempt_count'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetContentInstructorBasicReportingPerformanceToJSON(json) {
|
|
37
|
+
return GetContentInstructorBasicReportingPerformanceToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetContentInstructorBasicReportingPerformanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'avg_score_percentage': value['avgScorePercentage'],
|
|
45
|
+
'avg_attempt_count': value['avgAttemptCount'],
|
|
46
|
+
};
|
|
47
|
+
}
|