@easyedu/js-lsm-api 1.101.0 → 1.103.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 +14 -0
- package/README.md +12 -3
- package/dist/apis/ContentLibraryQuizApi.d.ts +3 -2
- package/dist/apis/ContentLibraryQuizApi.js +5 -2
- package/dist/apis/CourseApi.d.ts +38 -0
- package/dist/apis/CourseApi.js +101 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +3 -2
- package/dist/esm/apis/ContentLibraryQuizApi.js +5 -2
- package/dist/esm/apis/CourseApi.d.ts +38 -0
- package/dist/esm/apis/CourseApi.js +101 -0
- package/dist/esm/models/CourseProgressionMode.d.ts +25 -0
- package/dist/esm/models/CourseProgressionMode.js +43 -0
- package/dist/esm/models/GetCourseVersion.d.ts +7 -0
- package/dist/esm/models/GetCourseVersion.js +5 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +6 -0
- package/dist/esm/models/GetCourseVersionItem.js +4 -0
- package/dist/esm/models/GetCourseVersionItemProgression.d.ts +105 -0
- package/dist/esm/models/GetCourseVersionItemProgression.js +92 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +37 -1
- package/dist/esm/models/GetCourseVersionItemSession.js +24 -0
- package/dist/esm/models/GetCourseVersionProgression.d.ts +59 -0
- package/dist/esm/models/GetCourseVersionProgression.js +62 -0
- package/dist/esm/models/GetCourseVersionSectionProgression.d.ts +75 -0
- package/dist/esm/models/GetCourseVersionSectionProgression.js +72 -0
- package/dist/esm/models/GetResourceSession.d.ts +36 -0
- package/dist/esm/models/GetResourceSession.js +24 -0
- package/dist/esm/models/PostCourseVersionItem.d.ts +6 -0
- package/dist/esm/models/PostCourseVersionItem.js +2 -0
- package/dist/esm/models/PostCourseVersionItemSession.d.ts +1 -1
- package/dist/esm/models/ProgressionGateError.d.ts +76 -0
- package/dist/esm/models/ProgressionGateError.js +74 -0
- package/dist/esm/models/ProgressionLockReason.d.ts +24 -0
- package/dist/esm/models/ProgressionLockReason.js +42 -0
- package/dist/esm/models/PutCourseVersionDraft.d.ts +33 -0
- package/dist/esm/models/PutCourseVersionDraft.js +44 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +6 -0
- package/dist/esm/models/PutCourseVersionItem.js +2 -0
- package/dist/esm/models/PutResourceSessionOverride.d.ts +6 -0
- package/dist/esm/models/PutResourceSessionOverride.js +2 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/CourseProgressionMode.d.ts +25 -0
- package/dist/models/CourseProgressionMode.js +51 -0
- package/dist/models/GetCourseVersion.d.ts +7 -0
- package/dist/models/GetCourseVersion.js +5 -0
- package/dist/models/GetCourseVersionItem.d.ts +6 -0
- package/dist/models/GetCourseVersionItem.js +4 -0
- package/dist/models/GetCourseVersionItemProgression.d.ts +105 -0
- package/dist/models/GetCourseVersionItemProgression.js +99 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +37 -1
- package/dist/models/GetCourseVersionItemSession.js +24 -0
- package/dist/models/GetCourseVersionProgression.d.ts +59 -0
- package/dist/models/GetCourseVersionProgression.js +69 -0
- package/dist/models/GetCourseVersionSectionProgression.d.ts +75 -0
- package/dist/models/GetCourseVersionSectionProgression.js +79 -0
- package/dist/models/GetResourceSession.d.ts +36 -0
- package/dist/models/GetResourceSession.js +24 -0
- package/dist/models/PostCourseVersionItem.d.ts +6 -0
- package/dist/models/PostCourseVersionItem.js +2 -0
- package/dist/models/PostCourseVersionItemSession.d.ts +1 -1
- package/dist/models/ProgressionGateError.d.ts +76 -0
- package/dist/models/ProgressionGateError.js +82 -0
- package/dist/models/ProgressionLockReason.d.ts +24 -0
- package/dist/models/ProgressionLockReason.js +50 -0
- package/dist/models/PutCourseVersionDraft.d.ts +33 -0
- package/dist/models/PutCourseVersionDraft.js +51 -0
- package/dist/models/PutCourseVersionItem.d.ts +6 -0
- package/dist/models/PutCourseVersionItem.js +2 -0
- package/dist/models/PutResourceSessionOverride.d.ts +6 -0
- package/dist/models/PutResourceSessionOverride.js +2 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/ContentLibraryQuizApi.md +7 -4
- package/docs/CourseApi.md +158 -4
- package/docs/CourseProgressionMode.md +33 -0
- package/docs/GetCourseVersion.md +2 -0
- package/docs/GetCourseVersionItem.md +2 -0
- package/docs/GetCourseVersionItemProgression.md +58 -0
- package/docs/GetCourseVersionItemSession.md +12 -0
- package/docs/GetCourseVersionProgression.md +43 -0
- package/docs/GetCourseVersionSectionProgression.md +48 -0
- package/docs/GetResourceSession.md +12 -0
- package/docs/PlayerApi.md +1 -0
- package/docs/PostCourseVersionItem.md +2 -0
- package/docs/PostCourseVersionItemSession.md +1 -1
- package/docs/ProgressionGateError.md +47 -0
- package/docs/ProgressionLockReason.md +32 -0
- package/docs/PutCourseVersionDraft.md +34 -0
- package/docs/PutCourseVersionItem.md +2 -0
- package/docs/PutResourceSessionOverride.md +2 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +7 -2
- package/src/apis/CourseApi.ts +153 -0
- package/src/apis/PlayerApi.ts +5 -0
- package/src/models/CourseProgressionMode.ts +53 -0
- package/src/models/GetCourseVersion.ts +16 -0
- package/src/models/GetCourseVersionItem.ts +9 -0
- package/src/models/GetCourseVersionItemProgression.ts +184 -0
- package/src/models/GetCourseVersionItemSession.ts +55 -1
- package/src/models/GetCourseVersionProgression.ts +126 -0
- package/src/models/GetCourseVersionSectionProgression.ts +139 -0
- package/src/models/GetResourceSession.ts +54 -0
- package/src/models/PostCourseVersionItem.ts +8 -0
- package/src/models/PostCourseVersionItemSession.ts +1 -1
- package/src/models/ProgressionGateError.ts +131 -0
- package/src/models/ProgressionLockReason.ts +52 -0
- package/src/models/PutCourseVersionDraft.ts +76 -0
- package/src/models/PutCourseVersionItem.ts +8 -0
- package/src/models/PutResourceSessionOverride.ts +8 -0
- package/src/models/index.ts +7 -0
|
@@ -33,6 +33,12 @@ export interface PutResourceSessionOverride {
|
|
|
33
33
|
* @memberof PutResourceSessionOverride
|
|
34
34
|
*/
|
|
35
35
|
scoreRaw?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Permanently waive the placement's minimum active-time requirement for this learner.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PutResourceSessionOverride
|
|
40
|
+
*/
|
|
41
|
+
waiveMinimumActiveTime?: boolean;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {string}
|
|
@@ -47,6 +47,7 @@ export function PutResourceSessionOverrideFromJSONTyped(json, ignoreDiscriminato
|
|
|
47
47
|
'completionStatus': json['completion_status'] == null ? undefined : json['completion_status'],
|
|
48
48
|
'gradeStatus': json['grade_status'] == null ? undefined : json['grade_status'],
|
|
49
49
|
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
50
|
+
'waiveMinimumActiveTime': json['waive_minimum_active_time'] == null ? undefined : json['waive_minimum_active_time'],
|
|
50
51
|
'reason': json['reason'],
|
|
51
52
|
};
|
|
52
53
|
}
|
|
@@ -61,6 +62,7 @@ export function PutResourceSessionOverrideToJSONTyped(value, ignoreDiscriminator
|
|
|
61
62
|
'completion_status': value['completionStatus'],
|
|
62
63
|
'grade_status': value['gradeStatus'],
|
|
63
64
|
'score_raw': value['scoreRaw'],
|
|
65
|
+
'waive_minimum_active_time': value['waiveMinimumActiveTime'],
|
|
64
66
|
'reason': value['reason'],
|
|
65
67
|
};
|
|
66
68
|
}
|
|
@@ -23,6 +23,7 @@ export * from './CertificateTemplateVersion';
|
|
|
23
23
|
export * from './ContentLaunchMode';
|
|
24
24
|
export * from './ContentLibraryVersionStatus';
|
|
25
25
|
export * from './CourseCatalog';
|
|
26
|
+
export * from './CourseProgressionMode';
|
|
26
27
|
export * from './CourseShare';
|
|
27
28
|
export * from './EffectiveCertificateConfig';
|
|
28
29
|
export * from './EmailTemplateDefinition';
|
|
@@ -52,12 +53,15 @@ export * from './GetCourseList';
|
|
|
52
53
|
export * from './GetCourseVersion';
|
|
53
54
|
export * from './GetCourseVersionItem';
|
|
54
55
|
export * from './GetCourseVersionItemLaunch';
|
|
56
|
+
export * from './GetCourseVersionItemProgression';
|
|
55
57
|
export * from './GetCourseVersionItemReporting';
|
|
56
58
|
export * from './GetCourseVersionItemSession';
|
|
57
59
|
export * from './GetCourseVersionList';
|
|
60
|
+
export * from './GetCourseVersionProgression';
|
|
58
61
|
export * from './GetCourseVersionReporting';
|
|
59
62
|
export * from './GetCourseVersionSection';
|
|
60
63
|
export * from './GetCourseVersionSectionChild';
|
|
64
|
+
export * from './GetCourseVersionSectionProgression';
|
|
61
65
|
export * from './GetCourseVersionSectionReporting';
|
|
62
66
|
export * from './GetEmailAssetUpload';
|
|
63
67
|
export * from './GetEmailDelivery';
|
|
@@ -207,6 +211,8 @@ export * from './PostSignupRequest';
|
|
|
207
211
|
export * from './PostSignupRequestResponse';
|
|
208
212
|
export * from './PostSupportTicket';
|
|
209
213
|
export * from './PostSupportTicketComment';
|
|
214
|
+
export * from './ProgressionGateError';
|
|
215
|
+
export * from './ProgressionLockReason';
|
|
210
216
|
export * from './PutAttemptAllowance';
|
|
211
217
|
export * from './PutBadgeIssuer';
|
|
212
218
|
export * from './PutCertificateConfig';
|
|
@@ -215,6 +221,7 @@ export * from './PutCertificateTemplateDraft';
|
|
|
215
221
|
export * from './PutCourse';
|
|
216
222
|
export * from './PutCourseCatalog';
|
|
217
223
|
export * from './PutCourseEnrollment';
|
|
224
|
+
export * from './PutCourseVersionDraft';
|
|
218
225
|
export * from './PutCourseVersionItem';
|
|
219
226
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
220
227
|
export * from './PutCourseVersionSection';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from './CertificateTemplateVersion';
|
|
|
25
25
|
export * from './ContentLaunchMode';
|
|
26
26
|
export * from './ContentLibraryVersionStatus';
|
|
27
27
|
export * from './CourseCatalog';
|
|
28
|
+
export * from './CourseProgressionMode';
|
|
28
29
|
export * from './CourseShare';
|
|
29
30
|
export * from './EffectiveCertificateConfig';
|
|
30
31
|
export * from './EmailTemplateDefinition';
|
|
@@ -54,12 +55,15 @@ export * from './GetCourseList';
|
|
|
54
55
|
export * from './GetCourseVersion';
|
|
55
56
|
export * from './GetCourseVersionItem';
|
|
56
57
|
export * from './GetCourseVersionItemLaunch';
|
|
58
|
+
export * from './GetCourseVersionItemProgression';
|
|
57
59
|
export * from './GetCourseVersionItemReporting';
|
|
58
60
|
export * from './GetCourseVersionItemSession';
|
|
59
61
|
export * from './GetCourseVersionList';
|
|
62
|
+
export * from './GetCourseVersionProgression';
|
|
60
63
|
export * from './GetCourseVersionReporting';
|
|
61
64
|
export * from './GetCourseVersionSection';
|
|
62
65
|
export * from './GetCourseVersionSectionChild';
|
|
66
|
+
export * from './GetCourseVersionSectionProgression';
|
|
63
67
|
export * from './GetCourseVersionSectionReporting';
|
|
64
68
|
export * from './GetEmailAssetUpload';
|
|
65
69
|
export * from './GetEmailDelivery';
|
|
@@ -209,6 +213,8 @@ export * from './PostSignupRequest';
|
|
|
209
213
|
export * from './PostSignupRequestResponse';
|
|
210
214
|
export * from './PostSupportTicket';
|
|
211
215
|
export * from './PostSupportTicketComment';
|
|
216
|
+
export * from './ProgressionGateError';
|
|
217
|
+
export * from './ProgressionLockReason';
|
|
212
218
|
export * from './PutAttemptAllowance';
|
|
213
219
|
export * from './PutBadgeIssuer';
|
|
214
220
|
export * from './PutCertificateConfig';
|
|
@@ -217,6 +223,7 @@ export * from './PutCertificateTemplateDraft';
|
|
|
217
223
|
export * from './PutCourse';
|
|
218
224
|
export * from './PutCourseCatalog';
|
|
219
225
|
export * from './PutCourseEnrollment';
|
|
226
|
+
export * from './PutCourseVersionDraft';
|
|
220
227
|
export * from './PutCourseVersionItem';
|
|
221
228
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
222
229
|
export * from './PutCourseVersionSection';
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Controls whether top-level course sections unlock freely or in completion order.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const CourseProgressionMode: {
|
|
17
|
+
readonly Free: "free";
|
|
18
|
+
readonly SequentialSections: "sequential_sections";
|
|
19
|
+
};
|
|
20
|
+
export type CourseProgressionMode = typeof CourseProgressionMode[keyof typeof CourseProgressionMode];
|
|
21
|
+
export declare function instanceOfCourseProgressionMode(value: any): boolean;
|
|
22
|
+
export declare function CourseProgressionModeFromJSON(json: any): CourseProgressionMode;
|
|
23
|
+
export declare function CourseProgressionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourseProgressionMode;
|
|
24
|
+
export declare function CourseProgressionModeToJSON(value?: CourseProgressionMode | null): any;
|
|
25
|
+
export declare function CourseProgressionModeToJSONTyped(value: any, ignoreDiscriminator: boolean): CourseProgressionMode;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CourseProgressionMode = void 0;
|
|
17
|
+
exports.instanceOfCourseProgressionMode = instanceOfCourseProgressionMode;
|
|
18
|
+
exports.CourseProgressionModeFromJSON = CourseProgressionModeFromJSON;
|
|
19
|
+
exports.CourseProgressionModeFromJSONTyped = CourseProgressionModeFromJSONTyped;
|
|
20
|
+
exports.CourseProgressionModeToJSON = CourseProgressionModeToJSON;
|
|
21
|
+
exports.CourseProgressionModeToJSONTyped = CourseProgressionModeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Controls whether top-level course sections unlock freely or in completion order.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CourseProgressionMode = {
|
|
27
|
+
Free: 'free',
|
|
28
|
+
SequentialSections: 'sequential_sections'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfCourseProgressionMode(value) {
|
|
31
|
+
for (const key in exports.CourseProgressionMode) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.CourseProgressionMode, key)) {
|
|
33
|
+
if (exports.CourseProgressionMode[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function CourseProgressionModeFromJSON(json) {
|
|
41
|
+
return CourseProgressionModeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CourseProgressionModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function CourseProgressionModeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function CourseProgressionModeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
13
13
|
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
import type { CourseProgressionMode } from './CourseProgressionMode';
|
|
14
15
|
import type { GetCourseVersionSection } from './GetCourseVersionSection';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -66,6 +67,12 @@ export interface GetCourseVersion {
|
|
|
66
67
|
* @memberof GetCourseVersion
|
|
67
68
|
*/
|
|
68
69
|
changeNotes?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {CourseProgressionMode}
|
|
73
|
+
* @memberof GetCourseVersion
|
|
74
|
+
*/
|
|
75
|
+
progressionMode: CourseProgressionMode;
|
|
69
76
|
/**
|
|
70
77
|
*
|
|
71
78
|
* @type {Array<GetCourseVersionSection>}
|
|
@@ -20,6 +20,7 @@ exports.GetCourseVersionToJSON = GetCourseVersionToJSON;
|
|
|
20
20
|
exports.GetCourseVersionToJSONTyped = GetCourseVersionToJSONTyped;
|
|
21
21
|
const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
22
22
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
const CourseProgressionMode_1 = require("./CourseProgressionMode");
|
|
23
24
|
const GetCourseVersionSection_1 = require("./GetCourseVersionSection");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the GetCourseVersion interface.
|
|
@@ -39,6 +40,8 @@ function instanceOfGetCourseVersion(value) {
|
|
|
39
40
|
return false;
|
|
40
41
|
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined)
|
|
41
42
|
return false;
|
|
43
|
+
if (!('progressionMode' in value) || value['progressionMode'] === undefined)
|
|
44
|
+
return false;
|
|
42
45
|
if (!('sections' in value) || value['sections'] === undefined)
|
|
43
46
|
return false;
|
|
44
47
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -63,6 +66,7 @@ function GetCourseVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
66
|
'description': json['description'],
|
|
64
67
|
'descriptionRich': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
65
68
|
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
69
|
+
'progressionMode': (0, CourseProgressionMode_1.CourseProgressionModeFromJSON)(json['progression_mode']),
|
|
66
70
|
'sections': (json['sections'].map(GetCourseVersionSection_1.GetCourseVersionSectionFromJSON)),
|
|
67
71
|
'createdAt': json['created_at'],
|
|
68
72
|
'updatedAt': json['updated_at'],
|
|
@@ -85,6 +89,7 @@ function GetCourseVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
89
|
'description': value['description'],
|
|
86
90
|
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
87
91
|
'change_notes': value['changeNotes'],
|
|
92
|
+
'progression_mode': (0, CourseProgressionMode_1.CourseProgressionModeToJSON)(value['progressionMode']),
|
|
88
93
|
'sections': (value['sections'].map(GetCourseVersionSection_1.GetCourseVersionSectionToJSON)),
|
|
89
94
|
'created_at': value['createdAt'],
|
|
90
95
|
'updated_at': value['updatedAt'],
|
|
@@ -88,6 +88,12 @@ export interface GetCourseVersionItem {
|
|
|
88
88
|
* @memberof GetCourseVersionItem
|
|
89
89
|
*/
|
|
90
90
|
isRequired: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Minimum cumulative active time required for this resource placement. Null disables the timer.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof GetCourseVersionItem
|
|
95
|
+
*/
|
|
96
|
+
minimumActiveSeconds: number | null;
|
|
91
97
|
/**
|
|
92
98
|
*
|
|
93
99
|
* @type {ContentLaunchMode}
|
|
@@ -58,6 +58,8 @@ function instanceOfGetCourseVersionItem(value) {
|
|
|
58
58
|
return false;
|
|
59
59
|
if (!('isRequired' in value) || value['isRequired'] === undefined)
|
|
60
60
|
return false;
|
|
61
|
+
if (!('minimumActiveSeconds' in value) || value['minimumActiveSeconds'] === undefined)
|
|
62
|
+
return false;
|
|
61
63
|
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
62
64
|
return false;
|
|
63
65
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -88,6 +90,7 @@ function GetCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
90
|
'displayOrder': json['display_order'],
|
|
89
91
|
'isVisible': json['is_visible'],
|
|
90
92
|
'isRequired': json['is_required'],
|
|
93
|
+
'minimumActiveSeconds': json['minimum_active_seconds'],
|
|
91
94
|
'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
92
95
|
'maxAttempts': json['max_attempts'],
|
|
93
96
|
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
@@ -114,6 +117,7 @@ function GetCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
114
117
|
'display_order': value['displayOrder'],
|
|
115
118
|
'is_visible': value['isVisible'],
|
|
116
119
|
'is_required': value['isRequired'],
|
|
120
|
+
'minimum_active_seconds': value['minimumActiveSeconds'],
|
|
117
121
|
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
118
122
|
'max_attempts': value['maxAttempts'],
|
|
119
123
|
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { ProgressionLockReason } from './ProgressionLockReason';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseVersionItemProgression
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseVersionItemProgression {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetCourseVersionItemProgression
|
|
23
|
+
*/
|
|
24
|
+
itemId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetCourseVersionItemProgression
|
|
29
|
+
*/
|
|
30
|
+
rootSectionId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof GetCourseVersionItemProgression
|
|
35
|
+
*/
|
|
36
|
+
isRequired: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof GetCourseVersionItemProgression
|
|
41
|
+
*/
|
|
42
|
+
isLocked: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ProgressionLockReason}
|
|
46
|
+
* @memberof GetCourseVersionItemProgression
|
|
47
|
+
*/
|
|
48
|
+
lockReason: ProgressionLockReason | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetCourseVersionItemProgression
|
|
53
|
+
*/
|
|
54
|
+
blockingSectionId: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof GetCourseVersionItemProgression
|
|
59
|
+
*/
|
|
60
|
+
nativeCompleted: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof GetCourseVersionItemProgression
|
|
65
|
+
*/
|
|
66
|
+
effectiveCompleted: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof GetCourseVersionItemProgression
|
|
71
|
+
*/
|
|
72
|
+
activeSeconds: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GetCourseVersionItemProgression
|
|
77
|
+
*/
|
|
78
|
+
minimumActiveSeconds: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetCourseVersionItemProgression
|
|
83
|
+
*/
|
|
84
|
+
remainingActiveSeconds: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof GetCourseVersionItemProgression
|
|
89
|
+
*/
|
|
90
|
+
timeRequirementMet: boolean;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof GetCourseVersionItemProgression
|
|
95
|
+
*/
|
|
96
|
+
timeRequirementWaived: boolean;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the GetCourseVersionItemProgression interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfGetCourseVersionItemProgression(value: object): value is GetCourseVersionItemProgression;
|
|
102
|
+
export declare function GetCourseVersionItemProgressionFromJSON(json: any): GetCourseVersionItemProgression;
|
|
103
|
+
export declare function GetCourseVersionItemProgressionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionItemProgression;
|
|
104
|
+
export declare function GetCourseVersionItemProgressionToJSON(json: any): GetCourseVersionItemProgression;
|
|
105
|
+
export declare function GetCourseVersionItemProgressionToJSONTyped(value?: GetCourseVersionItemProgression | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.instanceOfGetCourseVersionItemProgression = instanceOfGetCourseVersionItemProgression;
|
|
17
|
+
exports.GetCourseVersionItemProgressionFromJSON = GetCourseVersionItemProgressionFromJSON;
|
|
18
|
+
exports.GetCourseVersionItemProgressionFromJSONTyped = GetCourseVersionItemProgressionFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionItemProgressionToJSON = GetCourseVersionItemProgressionToJSON;
|
|
20
|
+
exports.GetCourseVersionItemProgressionToJSONTyped = GetCourseVersionItemProgressionToJSONTyped;
|
|
21
|
+
const ProgressionLockReason_1 = require("./ProgressionLockReason");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseVersionItemProgression interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseVersionItemProgression(value) {
|
|
26
|
+
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('rootSectionId' in value) || value['rootSectionId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('isRequired' in value) || value['isRequired'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('lockReason' in value) || value['lockReason'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('blockingSectionId' in value) || value['blockingSectionId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('nativeCompleted' in value) || value['nativeCompleted'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('effectiveCompleted' in value) || value['effectiveCompleted'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('activeSeconds' in value) || value['activeSeconds'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('minimumActiveSeconds' in value) || value['minimumActiveSeconds'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('remainingActiveSeconds' in value) || value['remainingActiveSeconds'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('timeRequirementMet' in value) || value['timeRequirementMet'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('timeRequirementWaived' in value) || value['timeRequirementWaived'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
function GetCourseVersionItemProgressionFromJSON(json) {
|
|
55
|
+
return GetCourseVersionItemProgressionFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function GetCourseVersionItemProgressionFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'itemId': json['item_id'],
|
|
63
|
+
'rootSectionId': json['root_section_id'],
|
|
64
|
+
'isRequired': json['is_required'],
|
|
65
|
+
'isLocked': json['is_locked'],
|
|
66
|
+
'lockReason': (0, ProgressionLockReason_1.ProgressionLockReasonFromJSON)(json['lock_reason']),
|
|
67
|
+
'blockingSectionId': json['blocking_section_id'],
|
|
68
|
+
'nativeCompleted': json['native_completed'],
|
|
69
|
+
'effectiveCompleted': json['effective_completed'],
|
|
70
|
+
'activeSeconds': json['active_seconds'],
|
|
71
|
+
'minimumActiveSeconds': json['minimum_active_seconds'],
|
|
72
|
+
'remainingActiveSeconds': json['remaining_active_seconds'],
|
|
73
|
+
'timeRequirementMet': json['time_requirement_met'],
|
|
74
|
+
'timeRequirementWaived': json['time_requirement_waived'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function GetCourseVersionItemProgressionToJSON(json) {
|
|
78
|
+
return GetCourseVersionItemProgressionToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function GetCourseVersionItemProgressionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'item_id': value['itemId'],
|
|
86
|
+
'root_section_id': value['rootSectionId'],
|
|
87
|
+
'is_required': value['isRequired'],
|
|
88
|
+
'is_locked': value['isLocked'],
|
|
89
|
+
'lock_reason': (0, ProgressionLockReason_1.ProgressionLockReasonToJSON)(value['lockReason']),
|
|
90
|
+
'blocking_section_id': value['blockingSectionId'],
|
|
91
|
+
'native_completed': value['nativeCompleted'],
|
|
92
|
+
'effective_completed': value['effectiveCompleted'],
|
|
93
|
+
'active_seconds': value['activeSeconds'],
|
|
94
|
+
'minimum_active_seconds': value['minimumActiveSeconds'],
|
|
95
|
+
'remaining_active_seconds': value['remainingActiveSeconds'],
|
|
96
|
+
'time_requirement_met': value['timeRequirementMet'],
|
|
97
|
+
'time_requirement_waived': value['timeRequirementWaived'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -103,11 +103,47 @@ export interface GetCourseVersionItemSession {
|
|
|
103
103
|
*/
|
|
104
104
|
scoreRaw?: number | null;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
*
|
|
107
107
|
* @type {number}
|
|
108
108
|
* @memberof GetCourseVersionItemSession
|
|
109
109
|
*/
|
|
110
110
|
durationSeconds: number;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof GetCourseVersionItemSession
|
|
115
|
+
*/
|
|
116
|
+
minimumActiveSeconds: number | null;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof GetCourseVersionItemSession
|
|
121
|
+
*/
|
|
122
|
+
accumulatedActiveSeconds: number;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof GetCourseVersionItemSession
|
|
127
|
+
*/
|
|
128
|
+
remainingActiveSeconds: number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {boolean}
|
|
132
|
+
* @memberof GetCourseVersionItemSession
|
|
133
|
+
*/
|
|
134
|
+
timeRequirementMet: boolean;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {boolean}
|
|
138
|
+
* @memberof GetCourseVersionItemSession
|
|
139
|
+
*/
|
|
140
|
+
timeRequirementWaived: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* True when native completion and the placement's active-time requirement are both satisfied.
|
|
143
|
+
* @type {boolean}
|
|
144
|
+
* @memberof GetCourseVersionItemSession
|
|
145
|
+
*/
|
|
146
|
+
effectiveCompletionMet: boolean;
|
|
111
147
|
/**
|
|
112
148
|
*
|
|
113
149
|
* @type {number}
|
|
@@ -53,6 +53,18 @@ function instanceOfGetCourseVersionItemSession(value) {
|
|
|
53
53
|
return false;
|
|
54
54
|
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
|
|
55
55
|
return false;
|
|
56
|
+
if (!('minimumActiveSeconds' in value) || value['minimumActiveSeconds'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('accumulatedActiveSeconds' in value) || value['accumulatedActiveSeconds'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('remainingActiveSeconds' in value) || value['remainingActiveSeconds'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('timeRequirementMet' in value) || value['timeRequirementMet'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('timeRequirementWaived' in value) || value['timeRequirementWaived'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('effectiveCompletionMet' in value) || value['effectiveCompletionMet'] === undefined)
|
|
67
|
+
return false;
|
|
56
68
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
69
|
return false;
|
|
58
70
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -82,6 +94,12 @@ function GetCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
94
|
'gradeStatus': json['grade_status'],
|
|
83
95
|
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
84
96
|
'durationSeconds': json['duration_seconds'],
|
|
97
|
+
'minimumActiveSeconds': json['minimum_active_seconds'],
|
|
98
|
+
'accumulatedActiveSeconds': json['accumulated_active_seconds'],
|
|
99
|
+
'remainingActiveSeconds': json['remaining_active_seconds'],
|
|
100
|
+
'timeRequirementMet': json['time_requirement_met'],
|
|
101
|
+
'timeRequirementWaived': json['time_requirement_waived'],
|
|
102
|
+
'effectiveCompletionMet': json['effective_completion_met'],
|
|
85
103
|
'createdAt': json['created_at'],
|
|
86
104
|
'updatedAt': json['updated_at'],
|
|
87
105
|
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
@@ -110,6 +128,12 @@ function GetCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
110
128
|
'grade_status': value['gradeStatus'],
|
|
111
129
|
'score_raw': value['scoreRaw'],
|
|
112
130
|
'duration_seconds': value['durationSeconds'],
|
|
131
|
+
'minimum_active_seconds': value['minimumActiveSeconds'],
|
|
132
|
+
'accumulated_active_seconds': value['accumulatedActiveSeconds'],
|
|
133
|
+
'remaining_active_seconds': value['remainingActiveSeconds'],
|
|
134
|
+
'time_requirement_met': value['timeRequirementMet'],
|
|
135
|
+
'time_requirement_waived': value['timeRequirementWaived'],
|
|
136
|
+
'effective_completion_met': value['effectiveCompletionMet'],
|
|
113
137
|
'created_at': value['createdAt'],
|
|
114
138
|
'updated_at': value['updatedAt'],
|
|
115
139
|
'completed_at': value['completedAt'],
|
|
@@ -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
|
+
import type { GetCourseVersionItemProgression } from './GetCourseVersionItemProgression';
|
|
13
|
+
import type { CourseProgressionMode } from './CourseProgressionMode';
|
|
14
|
+
import type { GetCourseVersionSectionProgression } from './GetCourseVersionSectionProgression';
|
|
15
|
+
/**
|
|
16
|
+
* Learner-specific live completion state, or isolated sandbox completion state during an authorized course preview.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetCourseVersionProgression
|
|
19
|
+
*/
|
|
20
|
+
export interface GetCourseVersionProgression {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof GetCourseVersionProgression
|
|
25
|
+
*/
|
|
26
|
+
courseId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof GetCourseVersionProgression
|
|
31
|
+
*/
|
|
32
|
+
courseVersionId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {CourseProgressionMode}
|
|
36
|
+
* @memberof GetCourseVersionProgression
|
|
37
|
+
*/
|
|
38
|
+
progressionMode: CourseProgressionMode;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<GetCourseVersionSectionProgression>}
|
|
42
|
+
* @memberof GetCourseVersionProgression
|
|
43
|
+
*/
|
|
44
|
+
sections: Array<GetCourseVersionSectionProgression>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<GetCourseVersionItemProgression>}
|
|
48
|
+
* @memberof GetCourseVersionProgression
|
|
49
|
+
*/
|
|
50
|
+
items: Array<GetCourseVersionItemProgression>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the GetCourseVersionProgression interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfGetCourseVersionProgression(value: object): value is GetCourseVersionProgression;
|
|
56
|
+
export declare function GetCourseVersionProgressionFromJSON(json: any): GetCourseVersionProgression;
|
|
57
|
+
export declare function GetCourseVersionProgressionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionProgression;
|
|
58
|
+
export declare function GetCourseVersionProgressionToJSON(json: any): GetCourseVersionProgression;
|
|
59
|
+
export declare function GetCourseVersionProgressionToJSONTyped(value?: GetCourseVersionProgression | null, ignoreDiscriminator?: boolean): any;
|