@easyedu/js-lsm-api 1.96.0 → 1.98.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 -14
- package/README.md +18 -19
- package/dist/apis/CourseApi.d.ts +69 -87
- package/dist/apis/CourseApi.js +115 -164
- package/dist/apis/ReportingApi.d.ts +16 -16
- package/dist/apis/ReportingApi.js +29 -29
- package/dist/esm/apis/CourseApi.d.ts +69 -87
- package/dist/esm/apis/CourseApi.js +115 -164
- package/dist/esm/apis/ReportingApi.d.ts +16 -16
- package/dist/esm/apis/ReportingApi.js +29 -29
- package/dist/esm/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollment.js +8 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.js +8 -0
- package/dist/esm/models/GetCourseExport.d.ts +2 -2
- package/dist/esm/models/GetCourseExport.js +3 -3
- package/dist/esm/models/GetCourseVersion.d.ts +3 -3
- package/dist/esm/models/GetCourseVersion.js +4 -4
- package/dist/esm/models/GetCourseVersionReporting.d.ts +3 -3
- package/dist/esm/models/GetCourseVersionReporting.js +4 -4
- package/dist/esm/models/GetCourseVersionSection.d.ts +64 -0
- package/dist/esm/models/{GetCourseVersionModule.js → GetCourseVersionSection.js} +12 -12
- package/dist/esm/models/GetCourseVersionSectionChild.d.ts +54 -0
- package/dist/esm/models/GetCourseVersionSectionChild.js +56 -0
- package/dist/esm/models/GetCourseVersionSectionReporting.d.ts +99 -0
- package/dist/esm/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js} +11 -11
- package/dist/esm/models/GetPermission.d.ts +1 -1
- package/dist/esm/models/PostCourseExport.d.ts +2 -2
- package/dist/esm/models/PostCourseExport.js +3 -3
- package/dist/esm/models/PostCourseResume.d.ts +1 -1
- package/dist/esm/models/PostCourseResume.js +3 -3
- package/dist/esm/models/PostCourseVersionPublish.d.ts +10 -0
- package/dist/esm/models/PostCourseVersionPublish.js +2 -0
- package/dist/esm/models/PostCourseVersionSection.d.ts +57 -0
- package/dist/esm/models/{PostCourseVersionModule.js → PostCourseVersionSection.js} +10 -8
- package/dist/esm/models/PostCourseVersionSectionDuplicate.d.ts +44 -0
- package/dist/esm/models/PostCourseVersionSectionDuplicate.js +45 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/esm/models/PutCourseEnrollment.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutCourseVersionItem.js +2 -2
- package/dist/esm/models/PutCourseVersionOutlineEntryMove.d.ts +58 -0
- package/dist/esm/models/PutCourseVersionOutlineEntryMove.js +60 -0
- package/dist/esm/models/PutCourseVersionSection.d.ts +45 -0
- package/dist/esm/models/{PutCourseVersionModule.js → PutCourseVersionSection.js} +8 -10
- package/dist/esm/models/PutRolePermissions.d.ts +1 -1
- package/dist/esm/models/index.d.ts +7 -7
- package/dist/esm/models/index.js +7 -7
- package/dist/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/models/GetCourseEnrollment.js +8 -0
- package/dist/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/models/GetCourseEnrollmentListItem.js +8 -0
- package/dist/models/GetCourseExport.d.ts +2 -2
- package/dist/models/GetCourseExport.js +3 -3
- package/dist/models/GetCourseVersion.d.ts +3 -3
- package/dist/models/GetCourseVersion.js +4 -4
- package/dist/models/GetCourseVersionReporting.d.ts +3 -3
- package/dist/models/GetCourseVersionReporting.js +4 -4
- package/dist/models/GetCourseVersionSection.d.ts +64 -0
- package/dist/models/{GetCourseVersionModule.js → GetCourseVersionSection.js} +17 -17
- package/dist/models/GetCourseVersionSectionChild.d.ts +54 -0
- package/dist/models/GetCourseVersionSectionChild.js +64 -0
- package/dist/models/GetCourseVersionSectionReporting.d.ts +99 -0
- package/dist/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js} +16 -16
- package/dist/models/GetPermission.d.ts +1 -1
- package/dist/models/PostCourseExport.d.ts +2 -2
- package/dist/models/PostCourseExport.js +3 -3
- package/dist/models/PostCourseResume.d.ts +1 -1
- package/dist/models/PostCourseResume.js +3 -3
- package/dist/models/PostCourseVersionPublish.d.ts +10 -0
- package/dist/models/PostCourseVersionPublish.js +2 -0
- package/dist/models/PostCourseVersionSection.d.ts +57 -0
- package/dist/models/{PostCourseVersionModule.js → PostCourseVersionSection.js} +15 -13
- package/dist/models/PostCourseVersionSectionDuplicate.d.ts +44 -0
- package/dist/models/PostCourseVersionSectionDuplicate.js +52 -0
- package/dist/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/models/PutCourseEnrollment.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutCourseVersionItem.js +2 -2
- package/dist/models/PutCourseVersionOutlineEntryMove.d.ts +58 -0
- package/dist/models/PutCourseVersionOutlineEntryMove.js +68 -0
- package/dist/models/PutCourseVersionSection.d.ts +45 -0
- package/dist/models/{PutCourseVersionModule.js → PutCourseVersionSection.js} +13 -15
- package/dist/models/PutRolePermissions.d.ts +1 -1
- package/dist/models/index.d.ts +7 -7
- package/dist/models/index.js +7 -7
- package/docs/CourseApi.md +94 -166
- package/docs/GetCourseEnrollment.md +4 -0
- package/docs/GetCourseEnrollmentListItem.md +4 -0
- package/docs/GetCourseExport.md +2 -2
- package/docs/GetCourseVersion.md +2 -2
- package/docs/GetCourseVersionReporting.md +2 -2
- package/docs/{GetCourseVersionModule.md → GetCourseVersionSection.md} +6 -6
- package/docs/{PutCourseVersionItemReorder.md → GetCourseVersionSectionChild.md} +11 -6
- package/docs/{GetCourseVersionModuleReporting.md → GetCourseVersionSectionReporting.md} +6 -6
- package/docs/PostCourseExport.md +2 -2
- package/docs/PostCourseResume.md +2 -2
- package/docs/PostCourseVersionPublish.md +2 -0
- package/docs/{PostCourseVersionModule.md → PostCourseVersionSection.md} +6 -4
- package/docs/{PostCourseVersionModuleDuplicate.md → PostCourseVersionSectionDuplicate.md} +6 -4
- package/docs/PutCourseEnrollment.md +2 -0
- package/docs/PutCourseVersionItem.md +2 -2
- package/docs/{PutCourseVersionModuleReorder.md → PutCourseVersionOutlineEntryMove.md} +12 -6
- package/docs/{PutCourseVersionModule.md → PutCourseVersionSection.md} +4 -6
- package/docs/ReportingApi.md +22 -22
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +160 -234
- package/src/apis/ReportingApi.ts +40 -40
- package/src/models/GetCourseEnrollment.ts +18 -0
- package/src/models/GetCourseEnrollmentListItem.ts +18 -0
- package/src/models/GetCourseExport.ts +5 -5
- package/src/models/GetCourseVersion.ts +12 -12
- package/src/models/GetCourseVersionReporting.ts +11 -11
- package/src/models/{GetCourseVersionModule.ts → GetCourseVersionSection.ts} +28 -28
- package/src/models/GetCourseVersionSectionChild.ts +108 -0
- package/src/models/{GetCourseVersionModuleReporting.ts → GetCourseVersionSectionReporting.ts} +26 -26
- package/src/models/GetPermission.ts +1 -1
- package/src/models/PostCourseExport.ts +5 -5
- package/src/models/PostCourseResume.ts +4 -4
- package/src/models/PostCourseVersionPublish.ts +12 -0
- package/src/models/{PostCourseVersionModule.ts → PostCourseVersionSection.ts} +22 -14
- package/src/models/PostCourseVersionSectionDuplicate.ts +81 -0
- package/src/models/PutCourseEnrollment.ts +11 -0
- package/src/models/PutCourseVersionItem.ts +3 -3
- package/src/models/PutCourseVersionOutlineEntryMove.ts +103 -0
- package/src/models/{PutCourseVersionModule.ts → PutCourseVersionSection.ts} +13 -21
- package/src/models/PutRolePermissions.ts +1 -1
- package/src/models/index.ts +7 -7
- package/dist/esm/models/GetCourseVersionModule.d.ts +0 -64
- package/dist/esm/models/GetCourseVersionModuleReporting.d.ts +0 -99
- package/dist/esm/models/PostCourseVersionModule.d.ts +0 -51
- package/dist/esm/models/PostCourseVersionModuleDuplicate.d.ts +0 -38
- package/dist/esm/models/PostCourseVersionModuleDuplicate.js +0 -43
- package/dist/esm/models/PutCourseVersionItemReorder.d.ts +0 -32
- package/dist/esm/models/PutCourseVersionItemReorder.js +0 -43
- package/dist/esm/models/PutCourseVersionModule.d.ts +0 -51
- package/dist/esm/models/PutCourseVersionModuleReorder.d.ts +0 -32
- package/dist/esm/models/PutCourseVersionModuleReorder.js +0 -43
- package/dist/models/GetCourseVersionModule.d.ts +0 -64
- package/dist/models/GetCourseVersionModuleReporting.d.ts +0 -99
- package/dist/models/PostCourseVersionModule.d.ts +0 -51
- package/dist/models/PostCourseVersionModuleDuplicate.d.ts +0 -38
- package/dist/models/PostCourseVersionModuleDuplicate.js +0 -50
- package/dist/models/PutCourseVersionItemReorder.d.ts +0 -32
- package/dist/models/PutCourseVersionItemReorder.js +0 -50
- package/dist/models/PutCourseVersionModule.d.ts +0 -51
- package/dist/models/PutCourseVersionModuleReorder.d.ts +0 -32
- package/dist/models/PutCourseVersionModuleReorder.js +0 -50
- package/src/models/PostCourseVersionModuleDuplicate.ts +0 -73
- package/src/models/PutCourseVersionItemReorder.ts +0 -66
- package/src/models/PutCourseVersionModuleReorder.ts +0 -66
|
@@ -0,0 +1,54 @@
|
|
|
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 { GetCourseVersionItem } from './GetCourseVersionItem';
|
|
13
|
+
import type { GetCourseVersionSection } from './GetCourseVersionSection';
|
|
14
|
+
/**
|
|
15
|
+
* An ordered child entry containing exactly one section or course item.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetCourseVersionSectionChild
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCourseVersionSectionChild {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {GetCourseVersionSectionChildKindEnum}
|
|
23
|
+
* @memberof GetCourseVersionSectionChild
|
|
24
|
+
*/
|
|
25
|
+
kind: GetCourseVersionSectionChildKindEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetCourseVersionSection}
|
|
29
|
+
* @memberof GetCourseVersionSectionChild
|
|
30
|
+
*/
|
|
31
|
+
section?: GetCourseVersionSection | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {GetCourseVersionItem}
|
|
35
|
+
* @memberof GetCourseVersionSectionChild
|
|
36
|
+
*/
|
|
37
|
+
item?: GetCourseVersionItem | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export declare const GetCourseVersionSectionChildKindEnum: {
|
|
43
|
+
readonly Section: "section";
|
|
44
|
+
readonly Item: "item";
|
|
45
|
+
};
|
|
46
|
+
export type GetCourseVersionSectionChildKindEnum = typeof GetCourseVersionSectionChildKindEnum[keyof typeof GetCourseVersionSectionChildKindEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the GetCourseVersionSectionChild interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfGetCourseVersionSectionChild(value: object): value is GetCourseVersionSectionChild;
|
|
51
|
+
export declare function GetCourseVersionSectionChildFromJSON(json: any): GetCourseVersionSectionChild;
|
|
52
|
+
export declare function GetCourseVersionSectionChildFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionSectionChild;
|
|
53
|
+
export declare function GetCourseVersionSectionChildToJSON(json: any): GetCourseVersionSectionChild;
|
|
54
|
+
export declare function GetCourseVersionSectionChildToJSONTyped(value?: GetCourseVersionSectionChild | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.GetCourseVersionSectionChildKindEnum = void 0;
|
|
17
|
+
exports.instanceOfGetCourseVersionSectionChild = instanceOfGetCourseVersionSectionChild;
|
|
18
|
+
exports.GetCourseVersionSectionChildFromJSON = GetCourseVersionSectionChildFromJSON;
|
|
19
|
+
exports.GetCourseVersionSectionChildFromJSONTyped = GetCourseVersionSectionChildFromJSONTyped;
|
|
20
|
+
exports.GetCourseVersionSectionChildToJSON = GetCourseVersionSectionChildToJSON;
|
|
21
|
+
exports.GetCourseVersionSectionChildToJSONTyped = GetCourseVersionSectionChildToJSONTyped;
|
|
22
|
+
const GetCourseVersionItem_1 = require("./GetCourseVersionItem");
|
|
23
|
+
const GetCourseVersionSection_1 = require("./GetCourseVersionSection");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.GetCourseVersionSectionChildKindEnum = {
|
|
28
|
+
Section: 'section',
|
|
29
|
+
Item: 'item'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetCourseVersionSectionChild interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfGetCourseVersionSectionChild(value) {
|
|
35
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function GetCourseVersionSectionChildFromJSON(json) {
|
|
40
|
+
return GetCourseVersionSectionChildFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GetCourseVersionSectionChildFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'kind': json['kind'],
|
|
48
|
+
'section': json['section'] == null ? undefined : (0, GetCourseVersionSection_1.GetCourseVersionSectionFromJSON)(json['section']),
|
|
49
|
+
'item': json['item'] == null ? undefined : (0, GetCourseVersionItem_1.GetCourseVersionItemFromJSON)(json['item']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function GetCourseVersionSectionChildToJSON(json) {
|
|
53
|
+
return GetCourseVersionSectionChildToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetCourseVersionSectionChildToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'kind': value['kind'],
|
|
61
|
+
'section': (0, GetCourseVersionSection_1.GetCourseVersionSectionToJSON)(value['section']),
|
|
62
|
+
'item': (0, GetCourseVersionItem_1.GetCourseVersionItemToJSON)(value['item']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { GetCourseVersionItemReporting } from './GetCourseVersionItemReporting';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseVersionSectionReporting
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseVersionSectionReporting {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetCourseVersionSectionReporting
|
|
23
|
+
*/
|
|
24
|
+
sectionId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetCourseVersionSectionReporting
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseVersionSectionReporting
|
|
35
|
+
*/
|
|
36
|
+
itemCount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseVersionSectionReporting
|
|
41
|
+
*/
|
|
42
|
+
requiredItemCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetCourseVersionSectionReporting
|
|
47
|
+
*/
|
|
48
|
+
enrollmentCount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GetCourseVersionSectionReporting
|
|
53
|
+
*/
|
|
54
|
+
completedCount: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof GetCourseVersionSectionReporting
|
|
59
|
+
*/
|
|
60
|
+
inProgressCount: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GetCourseVersionSectionReporting
|
|
65
|
+
*/
|
|
66
|
+
notStartedCount: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof GetCourseVersionSectionReporting
|
|
71
|
+
*/
|
|
72
|
+
completionRatePercentage: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GetCourseVersionSectionReporting
|
|
77
|
+
*/
|
|
78
|
+
avgScorePercentage: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetCourseVersionSectionReporting
|
|
83
|
+
*/
|
|
84
|
+
totalDurationSeconds: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<GetCourseVersionItemReporting>}
|
|
88
|
+
* @memberof GetCourseVersionSectionReporting
|
|
89
|
+
*/
|
|
90
|
+
items: Array<GetCourseVersionItemReporting>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the GetCourseVersionSectionReporting interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfGetCourseVersionSectionReporting(value: object): value is GetCourseVersionSectionReporting;
|
|
96
|
+
export declare function GetCourseVersionSectionReportingFromJSON(json: any): GetCourseVersionSectionReporting;
|
|
97
|
+
export declare function GetCourseVersionSectionReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionSectionReporting;
|
|
98
|
+
export declare function GetCourseVersionSectionReportingToJSON(json: any): GetCourseVersionSectionReporting;
|
|
99
|
+
export declare function GetCourseVersionSectionReportingToJSONTyped(value?: GetCourseVersionSectionReporting | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js}
RENAMED
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfGetCourseVersionSectionReporting = instanceOfGetCourseVersionSectionReporting;
|
|
17
|
+
exports.GetCourseVersionSectionReportingFromJSON = GetCourseVersionSectionReportingFromJSON;
|
|
18
|
+
exports.GetCourseVersionSectionReportingFromJSONTyped = GetCourseVersionSectionReportingFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionSectionReportingToJSON = GetCourseVersionSectionReportingToJSON;
|
|
20
|
+
exports.GetCourseVersionSectionReportingToJSONTyped = GetCourseVersionSectionReportingToJSONTyped;
|
|
21
21
|
const GetCourseVersionItemReporting_1 = require("./GetCourseVersionItemReporting");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the GetCourseVersionSectionReporting interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
26
|
-
if (!('
|
|
25
|
+
function instanceOfGetCourseVersionSectionReporting(value) {
|
|
26
|
+
if (!('sectionId' in value) || value['sectionId'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
@@ -49,15 +49,15 @@ function instanceOfGetCourseVersionModuleReporting(value) {
|
|
|
49
49
|
return false;
|
|
50
50
|
return true;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function GetCourseVersionSectionReportingFromJSON(json) {
|
|
53
|
+
return GetCourseVersionSectionReportingFromJSONTyped(json, false);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function GetCourseVersionSectionReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
56
|
if (json == null) {
|
|
57
57
|
return json;
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
|
-
'
|
|
60
|
+
'sectionId': json['section_id'],
|
|
61
61
|
'name': json['name'],
|
|
62
62
|
'itemCount': json['item_count'],
|
|
63
63
|
'requiredItemCount': json['required_item_count'],
|
|
@@ -71,15 +71,15 @@ function GetCourseVersionModuleReportingFromJSONTyped(json, ignoreDiscriminator)
|
|
|
71
71
|
'items': (json['items'].map(GetCourseVersionItemReporting_1.GetCourseVersionItemReportingFromJSON)),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function GetCourseVersionSectionReportingToJSON(json) {
|
|
75
|
+
return GetCourseVersionSectionReportingToJSONTyped(json, false);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function GetCourseVersionSectionReportingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
78
|
if (value == null) {
|
|
79
79
|
return value;
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
|
-
'
|
|
82
|
+
'section_id': value['sectionId'],
|
|
83
83
|
'name': value['name'],
|
|
84
84
|
'item_count': value['itemCount'],
|
|
85
85
|
'required_item_count': value['requiredItemCount'],
|
|
@@ -28,11 +28,11 @@ export interface PostCourseExport {
|
|
|
28
28
|
*/
|
|
29
29
|
exportType: PostCourseExportExportTypeEnum;
|
|
30
30
|
/**
|
|
31
|
-
* IDs of the
|
|
31
|
+
* IDs of the root sections to include in the export. Descendant sections are included automatically.
|
|
32
32
|
* @type {Array<string>}
|
|
33
33
|
* @memberof PostCourseExport
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
sectionIds: Array<string>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @export
|
|
@@ -35,7 +35,7 @@ function instanceOfPostCourseExport(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('exportType' in value) || value['exportType'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('
|
|
38
|
+
if (!('sectionIds' in value) || value['sectionIds'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
@@ -49,7 +49,7 @@ function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
return {
|
|
50
50
|
'courseVersionId': json['course_version_id'],
|
|
51
51
|
'exportType': json['export_type'],
|
|
52
|
-
'
|
|
52
|
+
'sectionIds': json['section_ids'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function PostCourseExportToJSON(json) {
|
|
@@ -62,6 +62,6 @@ function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
return {
|
|
63
63
|
'course_version_id': value['courseVersionId'],
|
|
64
64
|
'export_type': value['exportType'],
|
|
65
|
-
'
|
|
65
|
+
'section_ids': value['sectionIds'],
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -41,7 +41,7 @@ function instanceOfPostCourseResume(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
43
43
|
return false;
|
|
44
|
-
if (!('
|
|
44
|
+
if (!('sectionId' in value) || value['sectionId'] === undefined)
|
|
45
45
|
return false;
|
|
46
46
|
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
47
47
|
return false;
|
|
@@ -69,7 +69,7 @@ function PostCourseResumeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
return {
|
|
70
70
|
'courseId': json['course_id'],
|
|
71
71
|
'courseVersionId': json['course_version_id'],
|
|
72
|
-
'
|
|
72
|
+
'sectionId': json['section_id'],
|
|
73
73
|
'itemId': json['item_id'],
|
|
74
74
|
'kind': json['kind'],
|
|
75
75
|
'sessionId': json['session_id'],
|
|
@@ -89,7 +89,7 @@ function PostCourseResumeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
89
|
return {
|
|
90
90
|
'course_id': value['courseId'],
|
|
91
91
|
'course_version_id': value['courseVersionId'],
|
|
92
|
-
'
|
|
92
|
+
'section_id': value['sectionId'],
|
|
93
93
|
'item_id': value['itemId'],
|
|
94
94
|
'kind': value['kind'],
|
|
95
95
|
'session_id': value['sessionId'],
|
|
@@ -21,6 +21,16 @@ export interface PostCourseVersionPublish {
|
|
|
21
21
|
* @memberof PostCourseVersionPublish
|
|
22
22
|
*/
|
|
23
23
|
changeNotes?: string;
|
|
24
|
+
/**
|
|
25
|
+
* When true, assign all Enrolled, InProgress, and Suspended Student enrollments
|
|
26
|
+
* for this course to the newly published version. Completed and other historical
|
|
27
|
+
* enrollments remain pinned to their original version. Existing progress and
|
|
28
|
+
* session history remain stored against the previous version and are not transferred.
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof PostCourseVersionPublish
|
|
32
|
+
*/
|
|
33
|
+
promoteActiveEnrollments?: boolean;
|
|
24
34
|
}
|
|
25
35
|
/**
|
|
26
36
|
* Check if a given object implements the PostCourseVersionPublish interface.
|
|
@@ -33,6 +33,7 @@ function PostCourseVersionPublishFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
36
|
+
'promoteActiveEnrollments': json['promote_active_enrollments'] == null ? undefined : json['promote_active_enrollments'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function PostCourseVersionPublishToJSON(json) {
|
|
@@ -44,5 +45,6 @@ function PostCourseVersionPublishToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
'change_notes': value['changeNotes'],
|
|
48
|
+
'promote_active_enrollments': value['promoteActiveEnrollments'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { RichTextDocument } from './RichTextDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostCourseVersionSection
|
|
17
|
+
*/
|
|
18
|
+
export interface PostCourseVersionSection {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostCourseVersionSection
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostCourseVersionSection
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof PostCourseVersionSection
|
|
35
|
+
*/
|
|
36
|
+
descriptionRich?: RichTextDocument;
|
|
37
|
+
/**
|
|
38
|
+
* Parent section. Omit to create a root section.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PostCourseVersionSection
|
|
41
|
+
*/
|
|
42
|
+
parentSectionId?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PostCourseVersionSection
|
|
47
|
+
*/
|
|
48
|
+
position?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostCourseVersionSection interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPostCourseVersionSection(value: object): value is PostCourseVersionSection;
|
|
54
|
+
export declare function PostCourseVersionSectionFromJSON(json: any): PostCourseVersionSection;
|
|
55
|
+
export declare function PostCourseVersionSectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionSection;
|
|
56
|
+
export declare function PostCourseVersionSectionToJSON(json: any): PostCourseVersionSection;
|
|
57
|
+
export declare function PostCourseVersionSectionToJSONTyped(value?: PostCourseVersionSection | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfPostCourseVersionSection = instanceOfPostCourseVersionSection;
|
|
17
|
+
exports.PostCourseVersionSectionFromJSON = PostCourseVersionSectionFromJSON;
|
|
18
|
+
exports.PostCourseVersionSectionFromJSONTyped = PostCourseVersionSectionFromJSONTyped;
|
|
19
|
+
exports.PostCourseVersionSectionToJSON = PostCourseVersionSectionToJSON;
|
|
20
|
+
exports.PostCourseVersionSectionToJSONTyped = PostCourseVersionSectionToJSONTyped;
|
|
21
21
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the PostCourseVersionSection interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function instanceOfPostCourseVersionSection(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function PostCourseVersionSectionFromJSON(json) {
|
|
31
|
+
return PostCourseVersionSectionFromJSONTyped(json, false);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function PostCourseVersionSectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
34
|
if (json == null) {
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
@@ -38,13 +38,14 @@ function PostCourseVersionModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'name': json['name'],
|
|
39
39
|
'description': json['description'] == null ? undefined : json['description'],
|
|
40
40
|
'descriptionRich': json['description_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
41
|
+
'parentSectionId': json['parent_section_id'] == null ? undefined : json['parent_section_id'],
|
|
41
42
|
'position': json['position'] == null ? undefined : json['position'],
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
45
|
+
function PostCourseVersionSectionToJSON(json) {
|
|
46
|
+
return PostCourseVersionSectionToJSONTyped(json, false);
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function PostCourseVersionSectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
49
|
if (value == null) {
|
|
49
50
|
return value;
|
|
50
51
|
}
|
|
@@ -52,6 +53,7 @@ function PostCourseVersionModuleToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
52
53
|
'name': value['name'],
|
|
53
54
|
'description': value['description'],
|
|
54
55
|
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
56
|
+
'parent_section_id': value['parentSectionId'],
|
|
55
57
|
'position': value['position'],
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -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 PostCourseVersionSectionDuplicate
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourseVersionSectionDuplicate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCourseVersionSectionDuplicate
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* New parent section. Omit to duplicate at the root.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostCourseVersionSectionDuplicate
|
|
28
|
+
*/
|
|
29
|
+
targetSectionId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostCourseVersionSectionDuplicate
|
|
34
|
+
*/
|
|
35
|
+
position?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PostCourseVersionSectionDuplicate interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPostCourseVersionSectionDuplicate(value: object): value is PostCourseVersionSectionDuplicate;
|
|
41
|
+
export declare function PostCourseVersionSectionDuplicateFromJSON(json: any): PostCourseVersionSectionDuplicate;
|
|
42
|
+
export declare function PostCourseVersionSectionDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionSectionDuplicate;
|
|
43
|
+
export declare function PostCourseVersionSectionDuplicateToJSON(json: any): PostCourseVersionSectionDuplicate;
|
|
44
|
+
export declare function PostCourseVersionSectionDuplicateToJSONTyped(value?: PostCourseVersionSectionDuplicate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPostCourseVersionSectionDuplicate = instanceOfPostCourseVersionSectionDuplicate;
|
|
17
|
+
exports.PostCourseVersionSectionDuplicateFromJSON = PostCourseVersionSectionDuplicateFromJSON;
|
|
18
|
+
exports.PostCourseVersionSectionDuplicateFromJSONTyped = PostCourseVersionSectionDuplicateFromJSONTyped;
|
|
19
|
+
exports.PostCourseVersionSectionDuplicateToJSON = PostCourseVersionSectionDuplicateToJSON;
|
|
20
|
+
exports.PostCourseVersionSectionDuplicateToJSONTyped = PostCourseVersionSectionDuplicateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostCourseVersionSectionDuplicate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostCourseVersionSectionDuplicate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PostCourseVersionSectionDuplicateFromJSON(json) {
|
|
28
|
+
return PostCourseVersionSectionDuplicateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PostCourseVersionSectionDuplicateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'targetSectionId': json['target_section_id'] == null ? undefined : json['target_section_id'],
|
|
37
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostCourseVersionSectionDuplicateToJSON(json) {
|
|
41
|
+
return PostCourseVersionSectionDuplicateToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostCourseVersionSectionDuplicateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'target_section_id': value['targetSectionId'],
|
|
50
|
+
'position': value['position'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -48,6 +48,15 @@ export interface PutCourseEnrollment {
|
|
|
48
48
|
* @memberof PutCourseEnrollment
|
|
49
49
|
*/
|
|
50
50
|
notes?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Reassign this learner enrollment to a published version of the same course.
|
|
53
|
+
* Only active or suspended Student enrollments can be reassigned. Progress and
|
|
54
|
+
* session history for the previous version are retained but are not transferred.
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PutCourseEnrollment
|
|
58
|
+
*/
|
|
59
|
+
courseVersionId?: string;
|
|
51
60
|
}
|
|
52
61
|
/**
|
|
53
62
|
* @export
|
|
@@ -57,6 +57,7 @@ function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
58
58
|
'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
|
|
59
59
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
60
|
+
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
function PutCourseEnrollmentToJSON(json) {
|
|
@@ -72,5 +73,6 @@ function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
73
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
73
74
|
'extension_days': value['extensionDays'],
|
|
74
75
|
'notes': value['notes'],
|
|
76
|
+
'course_version_id': value['courseVersionId'],
|
|
75
77
|
};
|
|
76
78
|
}
|