@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,108 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetCourseVersionItem } from './GetCourseVersionItem';
|
|
17
|
+
import {
|
|
18
|
+
GetCourseVersionItemFromJSON,
|
|
19
|
+
GetCourseVersionItemFromJSONTyped,
|
|
20
|
+
GetCourseVersionItemToJSON,
|
|
21
|
+
GetCourseVersionItemToJSONTyped,
|
|
22
|
+
} from './GetCourseVersionItem';
|
|
23
|
+
import type { GetCourseVersionSection } from './GetCourseVersionSection';
|
|
24
|
+
import {
|
|
25
|
+
GetCourseVersionSectionFromJSON,
|
|
26
|
+
GetCourseVersionSectionFromJSONTyped,
|
|
27
|
+
GetCourseVersionSectionToJSON,
|
|
28
|
+
GetCourseVersionSectionToJSONTyped,
|
|
29
|
+
} from './GetCourseVersionSection';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* An ordered child entry containing exactly one section or course item.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetCourseVersionSectionChild
|
|
35
|
+
*/
|
|
36
|
+
export interface GetCourseVersionSectionChild {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {GetCourseVersionSectionChildKindEnum}
|
|
40
|
+
* @memberof GetCourseVersionSectionChild
|
|
41
|
+
*/
|
|
42
|
+
kind: GetCourseVersionSectionChildKindEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {GetCourseVersionSection}
|
|
46
|
+
* @memberof GetCourseVersionSectionChild
|
|
47
|
+
*/
|
|
48
|
+
section?: GetCourseVersionSection | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {GetCourseVersionItem}
|
|
52
|
+
* @memberof GetCourseVersionSectionChild
|
|
53
|
+
*/
|
|
54
|
+
item?: GetCourseVersionItem | null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const GetCourseVersionSectionChildKindEnum = {
|
|
62
|
+
Section: 'section',
|
|
63
|
+
Item: 'item'
|
|
64
|
+
} as const;
|
|
65
|
+
export type GetCourseVersionSectionChildKindEnum = typeof GetCourseVersionSectionChildKindEnum[keyof typeof GetCourseVersionSectionChildKindEnum];
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GetCourseVersionSectionChild interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfGetCourseVersionSectionChild(value: object): value is GetCourseVersionSectionChild {
|
|
72
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function GetCourseVersionSectionChildFromJSON(json: any): GetCourseVersionSectionChild {
|
|
77
|
+
return GetCourseVersionSectionChildFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function GetCourseVersionSectionChildFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionSectionChild {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'kind': json['kind'],
|
|
87
|
+
'section': json['section'] == null ? undefined : GetCourseVersionSectionFromJSON(json['section']),
|
|
88
|
+
'item': json['item'] == null ? undefined : GetCourseVersionItemFromJSON(json['item']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetCourseVersionSectionChildToJSON(json: any): GetCourseVersionSectionChild {
|
|
93
|
+
return GetCourseVersionSectionChildToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetCourseVersionSectionChildToJSONTyped(value?: GetCourseVersionSectionChild | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'kind': value['kind'],
|
|
104
|
+
'section': GetCourseVersionSectionToJSON(value['section']),
|
|
105
|
+
'item': GetCourseVersionItemToJSON(value['item']),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
package/src/models/{GetCourseVersionModuleReporting.ts → GetCourseVersionSectionReporting.ts}
RENAMED
|
@@ -24,88 +24,88 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface GetCourseVersionSectionReporting
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface GetCourseVersionSectionReporting {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof GetCourseVersionSectionReporting
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
sectionId: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof GetCourseVersionSectionReporting
|
|
40
40
|
*/
|
|
41
41
|
name: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof GetCourseVersionSectionReporting
|
|
46
46
|
*/
|
|
47
47
|
itemCount: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof GetCourseVersionSectionReporting
|
|
52
52
|
*/
|
|
53
53
|
requiredItemCount: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof GetCourseVersionSectionReporting
|
|
58
58
|
*/
|
|
59
59
|
enrollmentCount: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof GetCourseVersionSectionReporting
|
|
64
64
|
*/
|
|
65
65
|
completedCount: number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {number}
|
|
69
|
-
* @memberof
|
|
69
|
+
* @memberof GetCourseVersionSectionReporting
|
|
70
70
|
*/
|
|
71
71
|
inProgressCount: number;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {number}
|
|
75
|
-
* @memberof
|
|
75
|
+
* @memberof GetCourseVersionSectionReporting
|
|
76
76
|
*/
|
|
77
77
|
notStartedCount: number;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {number}
|
|
81
|
-
* @memberof
|
|
81
|
+
* @memberof GetCourseVersionSectionReporting
|
|
82
82
|
*/
|
|
83
83
|
completionRatePercentage: number | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
87
|
-
* @memberof
|
|
87
|
+
* @memberof GetCourseVersionSectionReporting
|
|
88
88
|
*/
|
|
89
89
|
avgScorePercentage: number | null;
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
92
|
* @type {number}
|
|
93
|
-
* @memberof
|
|
93
|
+
* @memberof GetCourseVersionSectionReporting
|
|
94
94
|
*/
|
|
95
95
|
totalDurationSeconds: number;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
98
|
* @type {Array<GetCourseVersionItemReporting>}
|
|
99
|
-
* @memberof
|
|
99
|
+
* @memberof GetCourseVersionSectionReporting
|
|
100
100
|
*/
|
|
101
101
|
items: Array<GetCourseVersionItemReporting>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Check if a given object implements the
|
|
105
|
+
* Check if a given object implements the GetCourseVersionSectionReporting interface.
|
|
106
106
|
*/
|
|
107
|
-
export function
|
|
108
|
-
if (!('
|
|
107
|
+
export function instanceOfGetCourseVersionSectionReporting(value: object): value is GetCourseVersionSectionReporting {
|
|
108
|
+
if (!('sectionId' in value) || value['sectionId'] === undefined) return false;
|
|
109
109
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
110
|
if (!('itemCount' in value) || value['itemCount'] === undefined) return false;
|
|
111
111
|
if (!('requiredItemCount' in value) || value['requiredItemCount'] === undefined) return false;
|
|
@@ -120,17 +120,17 @@ export function instanceOfGetCourseVersionModuleReporting(value: object): value
|
|
|
120
120
|
return true;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export function
|
|
124
|
-
return
|
|
123
|
+
export function GetCourseVersionSectionReportingFromJSON(json: any): GetCourseVersionSectionReporting {
|
|
124
|
+
return GetCourseVersionSectionReportingFromJSONTyped(json, false);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
export function
|
|
127
|
+
export function GetCourseVersionSectionReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionSectionReporting {
|
|
128
128
|
if (json == null) {
|
|
129
129
|
return json;
|
|
130
130
|
}
|
|
131
131
|
return {
|
|
132
132
|
|
|
133
|
-
'
|
|
133
|
+
'sectionId': json['section_id'],
|
|
134
134
|
'name': json['name'],
|
|
135
135
|
'itemCount': json['item_count'],
|
|
136
136
|
'requiredItemCount': json['required_item_count'],
|
|
@@ -145,18 +145,18 @@ export function GetCourseVersionModuleReportingFromJSONTyped(json: any, ignoreDi
|
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export function
|
|
149
|
-
return
|
|
148
|
+
export function GetCourseVersionSectionReportingToJSON(json: any): GetCourseVersionSectionReporting {
|
|
149
|
+
return GetCourseVersionSectionReportingToJSONTyped(json, false);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
export function
|
|
152
|
+
export function GetCourseVersionSectionReportingToJSONTyped(value?: GetCourseVersionSectionReporting | null, ignoreDiscriminator: boolean = false): any {
|
|
153
153
|
if (value == null) {
|
|
154
154
|
return value;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
return {
|
|
158
158
|
|
|
159
|
-
'
|
|
159
|
+
'section_id': value['sectionId'],
|
|
160
160
|
'name': value['name'],
|
|
161
161
|
'item_count': value['itemCount'],
|
|
162
162
|
'required_item_count': value['requiredItemCount'],
|
|
@@ -32,11 +32,11 @@ export interface PostCourseExport {
|
|
|
32
32
|
*/
|
|
33
33
|
exportType: PostCourseExportExportTypeEnum;
|
|
34
34
|
/**
|
|
35
|
-
* IDs of the
|
|
35
|
+
* IDs of the root sections to include in the export. Descendant sections are included automatically.
|
|
36
36
|
* @type {Array<string>}
|
|
37
37
|
* @memberof PostCourseExport
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sectionIds: Array<string>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
|
@@ -57,7 +57,7 @@ export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEn
|
|
|
57
57
|
export function instanceOfPostCourseExport(value: object): value is PostCourseExport {
|
|
58
58
|
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
59
59
|
if (!('exportType' in value) || value['exportType'] === undefined) return false;
|
|
60
|
-
if (!('
|
|
60
|
+
if (!('sectionIds' in value) || value['sectionIds'] === undefined) return false;
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -73,7 +73,7 @@ export function PostCourseExportFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
73
73
|
|
|
74
74
|
'courseVersionId': json['course_version_id'],
|
|
75
75
|
'exportType': json['export_type'],
|
|
76
|
-
'
|
|
76
|
+
'sectionIds': json['section_ids'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -90,7 +90,7 @@ export function PostCourseExportToJSONTyped(value?: PostCourseExport | null, ign
|
|
|
90
90
|
|
|
91
91
|
'course_version_id': value['courseVersionId'],
|
|
92
92
|
'export_type': value['exportType'],
|
|
93
|
-
'
|
|
93
|
+
'section_ids': value['sectionIds'],
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -36,7 +36,7 @@ export interface PostCourseResume {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof PostCourseResume
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sectionId: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -107,7 +107,7 @@ export type PostCourseResumeActionEnum = typeof PostCourseResumeActionEnum[keyof
|
|
|
107
107
|
export function instanceOfPostCourseResume(value: object): value is PostCourseResume {
|
|
108
108
|
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
109
109
|
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
110
|
-
if (!('
|
|
110
|
+
if (!('sectionId' in value) || value['sectionId'] === undefined) return false;
|
|
111
111
|
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
112
112
|
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
113
113
|
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
@@ -130,7 +130,7 @@ export function PostCourseResumeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
130
130
|
|
|
131
131
|
'courseId': json['course_id'],
|
|
132
132
|
'courseVersionId': json['course_version_id'],
|
|
133
|
-
'
|
|
133
|
+
'sectionId': json['section_id'],
|
|
134
134
|
'itemId': json['item_id'],
|
|
135
135
|
'kind': json['kind'],
|
|
136
136
|
'sessionId': json['session_id'],
|
|
@@ -154,7 +154,7 @@ export function PostCourseResumeToJSONTyped(value?: PostCourseResume | null, ign
|
|
|
154
154
|
|
|
155
155
|
'course_id': value['courseId'],
|
|
156
156
|
'course_version_id': value['courseVersionId'],
|
|
157
|
-
'
|
|
157
|
+
'section_id': value['sectionId'],
|
|
158
158
|
'item_id': value['itemId'],
|
|
159
159
|
'kind': value['kind'],
|
|
160
160
|
'session_id': value['sessionId'],
|
|
@@ -25,6 +25,16 @@ export interface PostCourseVersionPublish {
|
|
|
25
25
|
* @memberof PostCourseVersionPublish
|
|
26
26
|
*/
|
|
27
27
|
changeNotes?: string;
|
|
28
|
+
/**
|
|
29
|
+
* When true, assign all Enrolled, InProgress, and Suspended Student enrollments
|
|
30
|
+
* for this course to the newly published version. Completed and other historical
|
|
31
|
+
* enrollments remain pinned to their original version. Existing progress and
|
|
32
|
+
* session history remain stored against the previous version and are not transferred.
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof PostCourseVersionPublish
|
|
36
|
+
*/
|
|
37
|
+
promoteActiveEnrollments?: boolean;
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
/**
|
|
@@ -45,6 +55,7 @@ export function PostCourseVersionPublishFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
45
55
|
return {
|
|
46
56
|
|
|
47
57
|
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
58
|
+
'promoteActiveEnrollments': json['promote_active_enrollments'] == null ? undefined : json['promote_active_enrollments'],
|
|
48
59
|
};
|
|
49
60
|
}
|
|
50
61
|
|
|
@@ -60,6 +71,7 @@ export function PostCourseVersionPublishToJSONTyped(value?: PostCourseVersionPub
|
|
|
60
71
|
return {
|
|
61
72
|
|
|
62
73
|
'change_notes': value['changeNotes'],
|
|
74
|
+
'promote_active_enrollments': value['promoteActiveEnrollments'],
|
|
63
75
|
};
|
|
64
76
|
}
|
|
65
77
|
|
|
@@ -24,48 +24,54 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface PostCourseVersionSection
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface PostCourseVersionSection {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof PostCourseVersionSection
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof PostCourseVersionSection
|
|
40
40
|
*/
|
|
41
41
|
description?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {RichTextDocument}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof PostCourseVersionSection
|
|
46
46
|
*/
|
|
47
47
|
descriptionRich?: RichTextDocument;
|
|
48
|
+
/**
|
|
49
|
+
* Parent section. Omit to create a root section.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PostCourseVersionSection
|
|
52
|
+
*/
|
|
53
|
+
parentSectionId?: string;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
57
|
+
* @memberof PostCourseVersionSection
|
|
52
58
|
*/
|
|
53
59
|
position?: number;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
/**
|
|
57
|
-
* Check if a given object implements the
|
|
63
|
+
* Check if a given object implements the PostCourseVersionSection interface.
|
|
58
64
|
*/
|
|
59
|
-
export function
|
|
65
|
+
export function instanceOfPostCourseVersionSection(value: object): value is PostCourseVersionSection {
|
|
60
66
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
67
|
return true;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
|
-
export function
|
|
65
|
-
return
|
|
70
|
+
export function PostCourseVersionSectionFromJSON(json: any): PostCourseVersionSection {
|
|
71
|
+
return PostCourseVersionSectionFromJSONTyped(json, false);
|
|
66
72
|
}
|
|
67
73
|
|
|
68
|
-
export function
|
|
74
|
+
export function PostCourseVersionSectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionSection {
|
|
69
75
|
if (json == null) {
|
|
70
76
|
return json;
|
|
71
77
|
}
|
|
@@ -74,15 +80,16 @@ export function PostCourseVersionModuleFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
74
80
|
'name': json['name'],
|
|
75
81
|
'description': json['description'] == null ? undefined : json['description'],
|
|
76
82
|
'descriptionRich': json['description_rich'] == null ? undefined : RichTextDocumentFromJSON(json['description_rich']),
|
|
83
|
+
'parentSectionId': json['parent_section_id'] == null ? undefined : json['parent_section_id'],
|
|
77
84
|
'position': json['position'] == null ? undefined : json['position'],
|
|
78
85
|
};
|
|
79
86
|
}
|
|
80
87
|
|
|
81
|
-
export function
|
|
82
|
-
return
|
|
88
|
+
export function PostCourseVersionSectionToJSON(json: any): PostCourseVersionSection {
|
|
89
|
+
return PostCourseVersionSectionToJSONTyped(json, false);
|
|
83
90
|
}
|
|
84
91
|
|
|
85
|
-
export function
|
|
92
|
+
export function PostCourseVersionSectionToJSONTyped(value?: PostCourseVersionSection | null, ignoreDiscriminator: boolean = false): any {
|
|
86
93
|
if (value == null) {
|
|
87
94
|
return value;
|
|
88
95
|
}
|
|
@@ -92,6 +99,7 @@ export function PostCourseVersionModuleToJSONTyped(value?: PostCourseVersionModu
|
|
|
92
99
|
'name': value['name'],
|
|
93
100
|
'description': value['description'],
|
|
94
101
|
'description_rich': RichTextDocumentToJSON(value['descriptionRich']),
|
|
102
|
+
'parent_section_id': value['parentSectionId'],
|
|
95
103
|
'position': value['position'],
|
|
96
104
|
};
|
|
97
105
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostCourseVersionSectionDuplicate
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCourseVersionSectionDuplicate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCourseVersionSectionDuplicate
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* New parent section. Omit to duplicate at the root.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostCourseVersionSectionDuplicate
|
|
32
|
+
*/
|
|
33
|
+
targetSectionId?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostCourseVersionSectionDuplicate
|
|
38
|
+
*/
|
|
39
|
+
position?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PostCourseVersionSectionDuplicate interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPostCourseVersionSectionDuplicate(value: object): value is PostCourseVersionSectionDuplicate {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PostCourseVersionSectionDuplicateFromJSON(json: any): PostCourseVersionSectionDuplicate {
|
|
50
|
+
return PostCourseVersionSectionDuplicateFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PostCourseVersionSectionDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionSectionDuplicate {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
+
'targetSectionId': json['target_section_id'] == null ? undefined : json['target_section_id'],
|
|
61
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PostCourseVersionSectionDuplicateToJSON(json: any): PostCourseVersionSectionDuplicate {
|
|
66
|
+
return PostCourseVersionSectionDuplicateToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PostCourseVersionSectionDuplicateToJSONTyped(value?: PostCourseVersionSectionDuplicate | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'target_section_id': value['targetSectionId'],
|
|
78
|
+
'position': value['position'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -52,6 +52,15 @@ export interface PutCourseEnrollment {
|
|
|
52
52
|
* @memberof PutCourseEnrollment
|
|
53
53
|
*/
|
|
54
54
|
notes?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Reassign this learner enrollment to a published version of the same course.
|
|
57
|
+
* Only active or suspended Student enrollments can be reassigned. Progress and
|
|
58
|
+
* session history for the previous version are retained but are not transferred.
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PutCourseEnrollment
|
|
62
|
+
*/
|
|
63
|
+
courseVersionId?: string;
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
|
|
@@ -101,6 +110,7 @@ export function PutCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
101
110
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
102
111
|
'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
|
|
103
112
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
113
|
+
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
104
114
|
};
|
|
105
115
|
}
|
|
106
116
|
|
|
@@ -120,6 +130,7 @@ export function PutCourseEnrollmentToJSONTyped(value?: PutCourseEnrollment | nul
|
|
|
120
130
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
121
131
|
'extension_days': value['extensionDays'],
|
|
122
132
|
'notes': value['notes'],
|
|
133
|
+
'course_version_id': value['courseVersionId'],
|
|
123
134
|
};
|
|
124
135
|
}
|
|
125
136
|
|
|
@@ -38,7 +38,7 @@ export interface PutCourseVersionItem {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof PutCourseVersionItem
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
targetSectionId?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -118,7 +118,7 @@ export function PutCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
118
118
|
return {
|
|
119
119
|
|
|
120
120
|
'libraryVersionId': json['library_version_id'] == null ? undefined : json['library_version_id'],
|
|
121
|
-
'
|
|
121
|
+
'targetSectionId': json['target_section_id'] == null ? undefined : json['target_section_id'],
|
|
122
122
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
123
123
|
'position': json['position'] == null ? undefined : json['position'],
|
|
124
124
|
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
@@ -142,7 +142,7 @@ export function PutCourseVersionItemToJSONTyped(value?: PutCourseVersionItem | n
|
|
|
142
142
|
return {
|
|
143
143
|
|
|
144
144
|
'library_version_id': value['libraryVersionId'],
|
|
145
|
-
'
|
|
145
|
+
'target_section_id': value['targetSectionId'],
|
|
146
146
|
'display_name': value['displayName'],
|
|
147
147
|
'position': value['position'],
|
|
148
148
|
'is_visible': value['isVisible'],
|