@easyedu/js-lsm-api 1.68.0 → 1.70.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 +8 -0
- package/README.md +6 -2
- package/dist/esm/models/ContentAttemptSettings.d.ts +46 -0
- package/dist/esm/models/ContentAttemptSettings.js +54 -0
- package/dist/esm/models/GetContent.d.ts +7 -0
- package/dist/esm/models/GetContent.js +5 -0
- package/dist/esm/models/GetCourseStudentReporting.d.ts +7 -0
- package/dist/esm/models/GetCourseStudentReporting.js +5 -0
- package/dist/esm/models/GetCourseStudentReportingModulesInner.d.ts +71 -0
- package/dist/esm/models/GetCourseStudentReportingModulesInner.js +71 -0
- package/dist/esm/models/GetModuleStudentReporting.d.ts +7 -0
- package/dist/esm/models/GetModuleStudentReporting.js +5 -0
- package/dist/esm/models/GetModuleStudentReportingContentsInner.d.ts +101 -0
- package/dist/esm/models/GetModuleStudentReportingContentsInner.js +91 -0
- package/dist/esm/models/PutContent.d.ts +7 -0
- package/dist/esm/models/PutContent.js +3 -0
- package/dist/esm/models/PutContentAttemptSettings.d.ts +46 -0
- package/dist/esm/models/PutContentAttemptSettings.js +50 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ContentAttemptSettings.d.ts +46 -0
- package/dist/models/ContentAttemptSettings.js +62 -0
- package/dist/models/GetContent.d.ts +7 -0
- package/dist/models/GetContent.js +5 -0
- package/dist/models/GetCourseStudentReporting.d.ts +7 -0
- package/dist/models/GetCourseStudentReporting.js +5 -0
- package/dist/models/GetCourseStudentReportingModulesInner.d.ts +71 -0
- package/dist/models/GetCourseStudentReportingModulesInner.js +79 -0
- package/dist/models/GetModuleStudentReporting.d.ts +7 -0
- package/dist/models/GetModuleStudentReporting.js +5 -0
- package/dist/models/GetModuleStudentReportingContentsInner.d.ts +101 -0
- package/dist/models/GetModuleStudentReportingContentsInner.js +99 -0
- package/dist/models/PutContent.d.ts +7 -0
- package/dist/models/PutContent.js +3 -0
- package/dist/models/PutContentAttemptSettings.d.ts +46 -0
- package/dist/models/PutContentAttemptSettings.js +58 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ContentAttemptSettings.md +36 -0
- package/docs/GetContent.md +2 -0
- package/docs/GetCourseStudentReporting.md +2 -0
- package/docs/GetCourseStudentReportingModulesInner.md +44 -0
- package/docs/GetModuleStudentReporting.md +2 -0
- package/docs/GetModuleStudentReportingContentsInner.md +54 -0
- package/docs/PutContent.md +2 -0
- package/docs/PutContentAttemptSettings.md +36 -0
- package/package.json +1 -1
- package/src/models/ContentAttemptSettings.ts +86 -0
- package/src/models/GetContent.ts +16 -0
- package/src/models/GetCourseStudentReporting.ts +16 -0
- package/src/models/GetCourseStudentReportingModulesInner.ts +123 -0
- package/src/models/GetModuleStudentReporting.ts +16 -0
- package/src/models/GetModuleStudentReportingContentsInner.ts +168 -0
- package/src/models/PutContent.ts +15 -0
- package/src/models/PutContentAttemptSettings.ts +84 -0
- package/src/models/index.ts +4 -0
|
@@ -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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetModuleStudentReportingContentsInnerCompletionStatusEnum = {
|
|
18
|
+
NotAttempted: 'NotAttempted',
|
|
19
|
+
InProgress: 'InProgress',
|
|
20
|
+
Completed: 'Completed'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetModuleStudentReportingContentsInner interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetModuleStudentReportingContentsInner(value) {
|
|
26
|
+
if (!('moduleId' in value) || value['moduleId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('order' in value) || value['order'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('contentSessionId' in value) || value['contentSessionId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('lastAccessedAt' in value) || value['lastAccessedAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
export function GetModuleStudentReportingContentsInnerFromJSON(json) {
|
|
51
|
+
return GetModuleStudentReportingContentsInnerFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function GetModuleStudentReportingContentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'moduleId': json['module_id'],
|
|
59
|
+
'contentId': json['content_id'],
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'contentType': json['content_type'],
|
|
62
|
+
'order': json['order'],
|
|
63
|
+
'completionStatus': json['completion_status'],
|
|
64
|
+
'gradeStatus': json['grade_status'],
|
|
65
|
+
'contentSessionId': json['content_session_id'],
|
|
66
|
+
'attemptNumber': json['attempt_number'],
|
|
67
|
+
'lastAccessedAt': json['last_accessed_at'],
|
|
68
|
+
'durationInSeconds': json['duration_in_seconds'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function GetModuleStudentReportingContentsInnerToJSON(json) {
|
|
72
|
+
return GetModuleStudentReportingContentsInnerToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function GetModuleStudentReportingContentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'module_id': value['moduleId'],
|
|
80
|
+
'content_id': value['contentId'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'content_type': value['contentType'],
|
|
83
|
+
'order': value['order'],
|
|
84
|
+
'completion_status': value['completionStatus'],
|
|
85
|
+
'grade_status': value['gradeStatus'],
|
|
86
|
+
'content_session_id': value['contentSessionId'],
|
|
87
|
+
'attempt_number': value['attemptNumber'],
|
|
88
|
+
'last_accessed_at': value['lastAccessedAt'],
|
|
89
|
+
'duration_in_seconds': value['durationInSeconds'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
|
+
import type { PutContentAttemptSettings } from './PutContentAttemptSettings';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface PutContent {
|
|
|
34
35
|
* @memberof PutContent
|
|
35
36
|
*/
|
|
36
37
|
launchMode?: ContentLaunchMode;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PutContentAttemptSettings}
|
|
41
|
+
* @memberof PutContent
|
|
42
|
+
*/
|
|
43
|
+
attemptSettings?: PutContentAttemptSettings;
|
|
37
44
|
}
|
|
38
45
|
/**
|
|
39
46
|
* Check if a given object implements the PutContent interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
15
|
+
import { PutContentAttemptSettingsFromJSON, PutContentAttemptSettingsToJSON, } from './PutContentAttemptSettings';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the PutContent interface.
|
|
17
18
|
*/
|
|
@@ -29,6 +30,7 @@ export function PutContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
30
|
'name': json['name'] == null ? undefined : json['name'],
|
|
30
31
|
'published': json['published'] == null ? undefined : json['published'],
|
|
31
32
|
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
33
|
+
'attemptSettings': json['attempt_settings'] == null ? undefined : PutContentAttemptSettingsFromJSON(json['attempt_settings']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export function PutContentToJSON(json) {
|
|
@@ -42,5 +44,6 @@ export function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
42
44
|
'name': value['name'],
|
|
43
45
|
'published': value['published'],
|
|
44
46
|
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
47
|
+
'attempt_settings': PutContentAttemptSettingsToJSON(value['attemptSettings']),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 PutContentAttemptSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface PutContentAttemptSettings {
|
|
18
|
+
/**
|
|
19
|
+
* Maximum allowed attempts for this content
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PutContentAttemptSettings
|
|
22
|
+
*/
|
|
23
|
+
maxAttempts?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Strategy used to calculate the content rollup score
|
|
26
|
+
* @type {PutContentAttemptSettingsScoreRollupStrategyEnum}
|
|
27
|
+
* @memberof PutContentAttemptSettings
|
|
28
|
+
*/
|
|
29
|
+
scoreRollupStrategy?: PutContentAttemptSettingsScoreRollupStrategyEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const PutContentAttemptSettingsScoreRollupStrategyEnum: {
|
|
35
|
+
readonly Latest: "Latest";
|
|
36
|
+
readonly Best: "Best";
|
|
37
|
+
};
|
|
38
|
+
export type PutContentAttemptSettingsScoreRollupStrategyEnum = typeof PutContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof PutContentAttemptSettingsScoreRollupStrategyEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PutContentAttemptSettings interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPutContentAttemptSettings(value: object): value is PutContentAttemptSettings;
|
|
43
|
+
export declare function PutContentAttemptSettingsFromJSON(json: any): PutContentAttemptSettings;
|
|
44
|
+
export declare function PutContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentAttemptSettings;
|
|
45
|
+
export declare function PutContentAttemptSettingsToJSON(json: any): PutContentAttemptSettings;
|
|
46
|
+
export declare function PutContentAttemptSettingsToJSONTyped(value?: PutContentAttemptSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PutContentAttemptSettingsScoreRollupStrategyEnum = {
|
|
18
|
+
Latest: 'Latest',
|
|
19
|
+
Best: 'Best'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutContentAttemptSettings interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfPutContentAttemptSettings(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function PutContentAttemptSettingsFromJSON(json) {
|
|
28
|
+
return PutContentAttemptSettingsFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function PutContentAttemptSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
36
|
+
'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function PutContentAttemptSettingsToJSON(json) {
|
|
40
|
+
return PutContentAttemptSettingsToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PutContentAttemptSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'max_attempts': value['maxAttempts'],
|
|
48
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from './CertificatePublic';
|
|
|
4
4
|
export * from './ContentAttemptItem';
|
|
5
5
|
export * from './ContentAttemptRollupScore';
|
|
6
6
|
export * from './ContentAttemptScore';
|
|
7
|
+
export * from './ContentAttemptSettings';
|
|
7
8
|
export * from './ContentLaunchMode';
|
|
8
9
|
export * from './CourseCatalog';
|
|
9
10
|
export * from './CourseShare';
|
|
@@ -57,6 +58,7 @@ export * from './GetCourseReportingBasic';
|
|
|
57
58
|
export * from './GetCourseStudentReporting';
|
|
58
59
|
export * from './GetCourseStudentReportingCourseInfo';
|
|
59
60
|
export * from './GetCourseStudentReportingEngagement';
|
|
61
|
+
export * from './GetCourseStudentReportingModulesInner';
|
|
60
62
|
export * from './GetCourseStudentReportingPerformance';
|
|
61
63
|
export * from './GetManualQuestionSelectionItem';
|
|
62
64
|
export * from './GetManualQuestionSelectionList';
|
|
@@ -68,6 +70,7 @@ export * from './GetModuleInstructorBasicReportingPerformance';
|
|
|
68
70
|
export * from './GetModuleList';
|
|
69
71
|
export * from './GetModuleStudentReporting';
|
|
70
72
|
export * from './GetModuleStudentReportingAccess';
|
|
73
|
+
export * from './GetModuleStudentReportingContentsInner';
|
|
71
74
|
export * from './GetModuleStudentReportingProgress';
|
|
72
75
|
export * from './GetPermission';
|
|
73
76
|
export * from './GetPortal';
|
|
@@ -223,6 +226,7 @@ export * from './PostVerifyManifestItemsInner';
|
|
|
223
226
|
export * from './PostVerifyManifestResourcesInner';
|
|
224
227
|
export * from './PutCertificateConfig';
|
|
225
228
|
export * from './PutContent';
|
|
229
|
+
export * from './PutContentAttemptSettings';
|
|
226
230
|
export * from './PutContentReorder';
|
|
227
231
|
export * from './PutContentVersion';
|
|
228
232
|
export * from './PutCourse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './CertificatePublic';
|
|
|
6
6
|
export * from './ContentAttemptItem';
|
|
7
7
|
export * from './ContentAttemptRollupScore';
|
|
8
8
|
export * from './ContentAttemptScore';
|
|
9
|
+
export * from './ContentAttemptSettings';
|
|
9
10
|
export * from './ContentLaunchMode';
|
|
10
11
|
export * from './CourseCatalog';
|
|
11
12
|
export * from './CourseShare';
|
|
@@ -59,6 +60,7 @@ export * from './GetCourseReportingBasic';
|
|
|
59
60
|
export * from './GetCourseStudentReporting';
|
|
60
61
|
export * from './GetCourseStudentReportingCourseInfo';
|
|
61
62
|
export * from './GetCourseStudentReportingEngagement';
|
|
63
|
+
export * from './GetCourseStudentReportingModulesInner';
|
|
62
64
|
export * from './GetCourseStudentReportingPerformance';
|
|
63
65
|
export * from './GetManualQuestionSelectionItem';
|
|
64
66
|
export * from './GetManualQuestionSelectionList';
|
|
@@ -70,6 +72,7 @@ export * from './GetModuleInstructorBasicReportingPerformance';
|
|
|
70
72
|
export * from './GetModuleList';
|
|
71
73
|
export * from './GetModuleStudentReporting';
|
|
72
74
|
export * from './GetModuleStudentReportingAccess';
|
|
75
|
+
export * from './GetModuleStudentReportingContentsInner';
|
|
73
76
|
export * from './GetModuleStudentReportingProgress';
|
|
74
77
|
export * from './GetPermission';
|
|
75
78
|
export * from './GetPortal';
|
|
@@ -225,6 +228,7 @@ export * from './PostVerifyManifestItemsInner';
|
|
|
225
228
|
export * from './PostVerifyManifestResourcesInner';
|
|
226
229
|
export * from './PutCertificateConfig';
|
|
227
230
|
export * from './PutContent';
|
|
231
|
+
export * from './PutContentAttemptSettings';
|
|
228
232
|
export * from './PutContentReorder';
|
|
229
233
|
export * from './PutContentVersion';
|
|
230
234
|
export * from './PutCourse';
|
|
@@ -0,0 +1,46 @@
|
|
|
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 ContentAttemptSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentAttemptSettings {
|
|
18
|
+
/**
|
|
19
|
+
* Maximum allowed attempts for this content
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ContentAttemptSettings
|
|
22
|
+
*/
|
|
23
|
+
maxAttempts: number;
|
|
24
|
+
/**
|
|
25
|
+
* Strategy used to calculate the content rollup score
|
|
26
|
+
* @type {ContentAttemptSettingsScoreRollupStrategyEnum}
|
|
27
|
+
* @memberof ContentAttemptSettings
|
|
28
|
+
*/
|
|
29
|
+
scoreRollupStrategy: ContentAttemptSettingsScoreRollupStrategyEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ContentAttemptSettingsScoreRollupStrategyEnum: {
|
|
35
|
+
readonly Latest: "Latest";
|
|
36
|
+
readonly Best: "Best";
|
|
37
|
+
};
|
|
38
|
+
export type ContentAttemptSettingsScoreRollupStrategyEnum = typeof ContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof ContentAttemptSettingsScoreRollupStrategyEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ContentAttemptSettings interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfContentAttemptSettings(value: object): value is ContentAttemptSettings;
|
|
43
|
+
export declare function ContentAttemptSettingsFromJSON(json: any): ContentAttemptSettings;
|
|
44
|
+
export declare function ContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptSettings;
|
|
45
|
+
export declare function ContentAttemptSettingsToJSON(json: any): ContentAttemptSettings;
|
|
46
|
+
export declare function ContentAttemptSettingsToJSONTyped(value?: ContentAttemptSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContentAttemptSettingsScoreRollupStrategyEnum = void 0;
|
|
17
|
+
exports.instanceOfContentAttemptSettings = instanceOfContentAttemptSettings;
|
|
18
|
+
exports.ContentAttemptSettingsFromJSON = ContentAttemptSettingsFromJSON;
|
|
19
|
+
exports.ContentAttemptSettingsFromJSONTyped = ContentAttemptSettingsFromJSONTyped;
|
|
20
|
+
exports.ContentAttemptSettingsToJSON = ContentAttemptSettingsToJSON;
|
|
21
|
+
exports.ContentAttemptSettingsToJSONTyped = ContentAttemptSettingsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ContentAttemptSettingsScoreRollupStrategyEnum = {
|
|
26
|
+
Latest: 'Latest',
|
|
27
|
+
Best: 'Best'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ContentAttemptSettings interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfContentAttemptSettings(value) {
|
|
33
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ContentAttemptSettingsFromJSON(json) {
|
|
40
|
+
return ContentAttemptSettingsFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ContentAttemptSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'maxAttempts': json['max_attempts'],
|
|
48
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ContentAttemptSettingsToJSON(json) {
|
|
52
|
+
return ContentAttemptSettingsToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ContentAttemptSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'max_attempts': value['maxAttempts'],
|
|
60
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetContentContentData } from './GetContentContentData';
|
|
13
|
+
import type { ContentAttemptSettings } from './ContentAttemptSettings';
|
|
13
14
|
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -53,6 +54,12 @@ export interface GetContent {
|
|
|
53
54
|
* @memberof GetContent
|
|
54
55
|
*/
|
|
55
56
|
launchMode: ContentLaunchMode;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {ContentAttemptSettings}
|
|
60
|
+
* @memberof GetContent
|
|
61
|
+
*/
|
|
62
|
+
attemptSettings: ContentAttemptSettings;
|
|
56
63
|
/**
|
|
57
64
|
*
|
|
58
65
|
* @type {GetContentContentData}
|
|
@@ -20,6 +20,7 @@ exports.GetContentFromJSONTyped = GetContentFromJSONTyped;
|
|
|
20
20
|
exports.GetContentToJSON = GetContentToJSON;
|
|
21
21
|
exports.GetContentToJSONTyped = GetContentToJSONTyped;
|
|
22
22
|
const GetContentContentData_1 = require("./GetContentContentData");
|
|
23
|
+
const ContentAttemptSettings_1 = require("./ContentAttemptSettings");
|
|
23
24
|
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
@@ -47,6 +48,8 @@ function instanceOfGetContent(value) {
|
|
|
47
48
|
return false;
|
|
48
49
|
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
49
50
|
return false;
|
|
51
|
+
if (!('attemptSettings' in value) || value['attemptSettings'] === undefined)
|
|
52
|
+
return false;
|
|
50
53
|
if (!('contentData' in value) || value['contentData'] === undefined)
|
|
51
54
|
return false;
|
|
52
55
|
if (!('published' in value) || value['published'] === undefined)
|
|
@@ -67,6 +70,7 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
70
|
'description': json['description'] == null ? undefined : json['description'],
|
|
68
71
|
'contentType': json['content_type'],
|
|
69
72
|
'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
73
|
+
'attemptSettings': (0, ContentAttemptSettings_1.ContentAttemptSettingsFromJSON)(json['attempt_settings']),
|
|
70
74
|
'contentData': (0, GetContentContentData_1.GetContentContentDataFromJSON)(json['content_data']),
|
|
71
75
|
'order': json['order'] == null ? undefined : json['order'],
|
|
72
76
|
'published': json['published'],
|
|
@@ -90,6 +94,7 @@ function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
94
|
'description': value['description'],
|
|
91
95
|
'content_type': value['contentType'],
|
|
92
96
|
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
97
|
+
'attempt_settings': (0, ContentAttemptSettings_1.ContentAttemptSettingsToJSON)(value['attemptSettings']),
|
|
93
98
|
'content_data': (0, GetContentContentData_1.GetContentContentDataToJSON)(value['contentData']),
|
|
94
99
|
'order': value['order'],
|
|
95
100
|
'published': value['published'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetCourseStudentReportingEngagement } from './GetCourseStudentReportingEngagement';
|
|
13
|
+
import type { GetCourseStudentReportingModulesInner } from './GetCourseStudentReportingModulesInner';
|
|
13
14
|
import type { GetCourseStudentReportingCourseInfo } from './GetCourseStudentReportingCourseInfo';
|
|
14
15
|
import type { GetCourseStudentReportingPerformance } from './GetCourseStudentReportingPerformance';
|
|
15
16
|
/**
|
|
@@ -36,6 +37,12 @@ export interface GetCourseStudentReporting {
|
|
|
36
37
|
* @memberof GetCourseStudentReporting
|
|
37
38
|
*/
|
|
38
39
|
performance: GetCourseStudentReportingPerformance;
|
|
40
|
+
/**
|
|
41
|
+
* Module-level progress for the student within this course.
|
|
42
|
+
* @type {Array<GetCourseStudentReportingModulesInner>}
|
|
43
|
+
* @memberof GetCourseStudentReporting
|
|
44
|
+
*/
|
|
45
|
+
modules: Array<GetCourseStudentReportingModulesInner>;
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
48
|
* Check if a given object implements the GetCourseStudentReporting interface.
|
|
@@ -19,6 +19,7 @@ exports.GetCourseStudentReportingFromJSONTyped = GetCourseStudentReportingFromJS
|
|
|
19
19
|
exports.GetCourseStudentReportingToJSON = GetCourseStudentReportingToJSON;
|
|
20
20
|
exports.GetCourseStudentReportingToJSONTyped = GetCourseStudentReportingToJSONTyped;
|
|
21
21
|
const GetCourseStudentReportingEngagement_1 = require("./GetCourseStudentReportingEngagement");
|
|
22
|
+
const GetCourseStudentReportingModulesInner_1 = require("./GetCourseStudentReportingModulesInner");
|
|
22
23
|
const GetCourseStudentReportingCourseInfo_1 = require("./GetCourseStudentReportingCourseInfo");
|
|
23
24
|
const GetCourseStudentReportingPerformance_1 = require("./GetCourseStudentReportingPerformance");
|
|
24
25
|
/**
|
|
@@ -31,6 +32,8 @@ function instanceOfGetCourseStudentReporting(value) {
|
|
|
31
32
|
return false;
|
|
32
33
|
if (!('performance' in value) || value['performance'] === undefined)
|
|
33
34
|
return false;
|
|
35
|
+
if (!('modules' in value) || value['modules'] === undefined)
|
|
36
|
+
return false;
|
|
34
37
|
return true;
|
|
35
38
|
}
|
|
36
39
|
function GetCourseStudentReportingFromJSON(json) {
|
|
@@ -44,6 +47,7 @@ function GetCourseStudentReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
47
|
'courseInfo': (0, GetCourseStudentReportingCourseInfo_1.GetCourseStudentReportingCourseInfoFromJSON)(json['course_info']),
|
|
45
48
|
'engagement': (0, GetCourseStudentReportingEngagement_1.GetCourseStudentReportingEngagementFromJSON)(json['engagement']),
|
|
46
49
|
'performance': (0, GetCourseStudentReportingPerformance_1.GetCourseStudentReportingPerformanceFromJSON)(json['performance']),
|
|
50
|
+
'modules': (json['modules'].map(GetCourseStudentReportingModulesInner_1.GetCourseStudentReportingModulesInnerFromJSON)),
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
function GetCourseStudentReportingToJSON(json) {
|
|
@@ -57,5 +61,6 @@ function GetCourseStudentReportingToJSONTyped(value, ignoreDiscriminator = false
|
|
|
57
61
|
'course_info': (0, GetCourseStudentReportingCourseInfo_1.GetCourseStudentReportingCourseInfoToJSON)(value['courseInfo']),
|
|
58
62
|
'engagement': (0, GetCourseStudentReportingEngagement_1.GetCourseStudentReportingEngagementToJSON)(value['engagement']),
|
|
59
63
|
'performance': (0, GetCourseStudentReportingPerformance_1.GetCourseStudentReportingPerformanceToJSON)(value['performance']),
|
|
64
|
+
'modules': (value['modules'].map(GetCourseStudentReportingModulesInner_1.GetCourseStudentReportingModulesInnerToJSON)),
|
|
60
65
|
};
|
|
61
66
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 GetCourseStudentReportingModulesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetCourseStudentReportingModulesInner {
|
|
18
|
+
/**
|
|
19
|
+
* The module external ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetCourseStudentReportingModulesInner
|
|
22
|
+
*/
|
|
23
|
+
moduleId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Module name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetCourseStudentReportingModulesInner
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Order of the module within the course.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetCourseStudentReportingModulesInner
|
|
34
|
+
*/
|
|
35
|
+
order: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of visible content items in the module.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetCourseStudentReportingModulesInner
|
|
40
|
+
*/
|
|
41
|
+
contentCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of visible content items completed by the student.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetCourseStudentReportingModulesInner
|
|
46
|
+
*/
|
|
47
|
+
contentCompletedCount: number;
|
|
48
|
+
/**
|
|
49
|
+
* Derived module completion status for this student.
|
|
50
|
+
* @type {GetCourseStudentReportingModulesInnerCompletionStatusEnum}
|
|
51
|
+
* @memberof GetCourseStudentReportingModulesInner
|
|
52
|
+
*/
|
|
53
|
+
completionStatus: GetCourseStudentReportingModulesInnerCompletionStatusEnum;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetCourseStudentReportingModulesInnerCompletionStatusEnum: {
|
|
59
|
+
readonly NotAttempted: "NotAttempted";
|
|
60
|
+
readonly InProgress: "InProgress";
|
|
61
|
+
readonly Completed: "Completed";
|
|
62
|
+
};
|
|
63
|
+
export type GetCourseStudentReportingModulesInnerCompletionStatusEnum = typeof GetCourseStudentReportingModulesInnerCompletionStatusEnum[keyof typeof GetCourseStudentReportingModulesInnerCompletionStatusEnum];
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetCourseStudentReportingModulesInner interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfGetCourseStudentReportingModulesInner(value: object): value is GetCourseStudentReportingModulesInner;
|
|
68
|
+
export declare function GetCourseStudentReportingModulesInnerFromJSON(json: any): GetCourseStudentReportingModulesInner;
|
|
69
|
+
export declare function GetCourseStudentReportingModulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseStudentReportingModulesInner;
|
|
70
|
+
export declare function GetCourseStudentReportingModulesInnerToJSON(json: any): GetCourseStudentReportingModulesInner;
|
|
71
|
+
export declare function GetCourseStudentReportingModulesInnerToJSONTyped(value?: GetCourseStudentReportingModulesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetCourseStudentReportingModulesInnerCompletionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGetCourseStudentReportingModulesInner = instanceOfGetCourseStudentReportingModulesInner;
|
|
18
|
+
exports.GetCourseStudentReportingModulesInnerFromJSON = GetCourseStudentReportingModulesInnerFromJSON;
|
|
19
|
+
exports.GetCourseStudentReportingModulesInnerFromJSONTyped = GetCourseStudentReportingModulesInnerFromJSONTyped;
|
|
20
|
+
exports.GetCourseStudentReportingModulesInnerToJSON = GetCourseStudentReportingModulesInnerToJSON;
|
|
21
|
+
exports.GetCourseStudentReportingModulesInnerToJSONTyped = GetCourseStudentReportingModulesInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetCourseStudentReportingModulesInnerCompletionStatusEnum = {
|
|
26
|
+
NotAttempted: 'NotAttempted',
|
|
27
|
+
InProgress: 'InProgress',
|
|
28
|
+
Completed: 'Completed'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetCourseStudentReportingModulesInner interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfGetCourseStudentReportingModulesInner(value) {
|
|
34
|
+
if (!('moduleId' in value) || value['moduleId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('order' in value) || value['order'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('contentCount' in value) || value['contentCount'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('contentCompletedCount' in value) || value['contentCompletedCount'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function GetCourseStudentReportingModulesInnerFromJSON(json) {
|
|
49
|
+
return GetCourseStudentReportingModulesInnerFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function GetCourseStudentReportingModulesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'moduleId': json['module_id'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
'order': json['order'],
|
|
59
|
+
'contentCount': json['content_count'],
|
|
60
|
+
'contentCompletedCount': json['content_completed_count'],
|
|
61
|
+
'completionStatus': json['completion_status'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function GetCourseStudentReportingModulesInnerToJSON(json) {
|
|
65
|
+
return GetCourseStudentReportingModulesInnerToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function GetCourseStudentReportingModulesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'module_id': value['moduleId'],
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'order': value['order'],
|
|
75
|
+
'content_count': value['contentCount'],
|
|
76
|
+
'content_completed_count': value['contentCompletedCount'],
|
|
77
|
+
'completion_status': value['completionStatus'],
|
|
78
|
+
};
|
|
79
|
+
}
|