@easyedu/js-lsm-api 1.96.0 → 1.97.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/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/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/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/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/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/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/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/{PostCourseVersionModule.md → PostCourseVersionSection.md} +6 -4
- package/docs/{PostCourseVersionModuleDuplicate.md → PostCourseVersionSectionDuplicate.md} +6 -4
- 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/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/{PostCourseVersionModule.ts → PostCourseVersionSection.ts} +22 -14
- package/src/models/PostCourseVersionSectionDuplicate.ts +81 -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
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'],
|
|
@@ -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
|
+
|
|
@@ -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'],
|
|
@@ -0,0 +1,103 @@
|
|
|
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 PutCourseVersionOutlineEntryMove
|
|
20
|
+
*/
|
|
21
|
+
export interface PutCourseVersionOutlineEntryMove {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {PutCourseVersionOutlineEntryMoveEntryKindEnum}
|
|
25
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
26
|
+
*/
|
|
27
|
+
entryKind: PutCourseVersionOutlineEntryMoveEntryKindEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
32
|
+
*/
|
|
33
|
+
entryId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Destination parent. Null is allowed only for sections and moves them to the course root.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
38
|
+
*/
|
|
39
|
+
targetSectionId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
44
|
+
*/
|
|
45
|
+
position?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const PutCourseVersionOutlineEntryMoveEntryKindEnum = {
|
|
53
|
+
Section: 'section',
|
|
54
|
+
Item: 'item'
|
|
55
|
+
} as const;
|
|
56
|
+
export type PutCourseVersionOutlineEntryMoveEntryKindEnum = typeof PutCourseVersionOutlineEntryMoveEntryKindEnum[keyof typeof PutCourseVersionOutlineEntryMoveEntryKindEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the PutCourseVersionOutlineEntryMove interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfPutCourseVersionOutlineEntryMove(value: object): value is PutCourseVersionOutlineEntryMove {
|
|
63
|
+
if (!('entryKind' in value) || value['entryKind'] === undefined) return false;
|
|
64
|
+
if (!('entryId' in value) || value['entryId'] === undefined) return false;
|
|
65
|
+
if (!('targetSectionId' in value) || value['targetSectionId'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PutCourseVersionOutlineEntryMoveFromJSON(json: any): PutCourseVersionOutlineEntryMove {
|
|
70
|
+
return PutCourseVersionOutlineEntryMoveFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PutCourseVersionOutlineEntryMoveFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionOutlineEntryMove {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'entryKind': json['entry_kind'],
|
|
80
|
+
'entryId': json['entry_id'],
|
|
81
|
+
'targetSectionId': json['target_section_id'],
|
|
82
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PutCourseVersionOutlineEntryMoveToJSON(json: any): PutCourseVersionOutlineEntryMove {
|
|
87
|
+
return PutCourseVersionOutlineEntryMoveToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function PutCourseVersionOutlineEntryMoveToJSONTyped(value?: PutCourseVersionOutlineEntryMove | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'entry_kind': value['entryKind'],
|
|
98
|
+
'entry_id': value['entryId'],
|
|
99
|
+
'target_section_id': value['targetSectionId'],
|
|
100
|
+
'position': value['position'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -24,47 +24,41 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface PutCourseVersionSection
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface PutCourseVersionSection {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof PutCourseVersionSection
|
|
34
34
|
*/
|
|
35
35
|
name?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof PutCourseVersionSection
|
|
40
40
|
*/
|
|
41
41
|
description?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {RichTextDocument}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof PutCourseVersionSection
|
|
46
46
|
*/
|
|
47
47
|
descriptionRich?: RichTextDocument;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof PutCourseVersionModule
|
|
52
|
-
*/
|
|
53
|
-
position?: number;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
/**
|
|
57
|
-
* Check if a given object implements the
|
|
51
|
+
* Check if a given object implements the PutCourseVersionSection interface.
|
|
58
52
|
*/
|
|
59
|
-
export function
|
|
53
|
+
export function instanceOfPutCourseVersionSection(value: object): value is PutCourseVersionSection {
|
|
60
54
|
return true;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
export function
|
|
64
|
-
return
|
|
57
|
+
export function PutCourseVersionSectionFromJSON(json: any): PutCourseVersionSection {
|
|
58
|
+
return PutCourseVersionSectionFromJSONTyped(json, false);
|
|
65
59
|
}
|
|
66
60
|
|
|
67
|
-
export function
|
|
61
|
+
export function PutCourseVersionSectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionSection {
|
|
68
62
|
if (json == null) {
|
|
69
63
|
return json;
|
|
70
64
|
}
|
|
@@ -73,15 +67,14 @@ export function PutCourseVersionModuleFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
73
67
|
'name': json['name'] == null ? undefined : json['name'],
|
|
74
68
|
'description': json['description'] == null ? undefined : json['description'],
|
|
75
69
|
'descriptionRich': json['description_rich'] == null ? undefined : RichTextDocumentFromJSON(json['description_rich']),
|
|
76
|
-
'position': json['position'] == null ? undefined : json['position'],
|
|
77
70
|
};
|
|
78
71
|
}
|
|
79
72
|
|
|
80
|
-
export function
|
|
81
|
-
return
|
|
73
|
+
export function PutCourseVersionSectionToJSON(json: any): PutCourseVersionSection {
|
|
74
|
+
return PutCourseVersionSectionToJSONTyped(json, false);
|
|
82
75
|
}
|
|
83
76
|
|
|
84
|
-
export function
|
|
77
|
+
export function PutCourseVersionSectionToJSONTyped(value?: PutCourseVersionSection | null, ignoreDiscriminator: boolean = false): any {
|
|
85
78
|
if (value == null) {
|
|
86
79
|
return value;
|
|
87
80
|
}
|
|
@@ -91,7 +84,6 @@ export function PutCourseVersionModuleToJSONTyped(value?: PutCourseVersionModule
|
|
|
91
84
|
'name': value['name'],
|
|
92
85
|
'description': value['description'],
|
|
93
86
|
'description_rich': RichTextDocumentToJSON(value['descriptionRich']),
|
|
94
|
-
'position': value['position'],
|
|
95
87
|
};
|
|
96
88
|
}
|
|
97
89
|
|
|
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface PutRolePermissions {
|
|
22
22
|
/**
|
|
23
|
-
* List of permission keys to assign (e.g. ["course:create", "
|
|
23
|
+
* List of permission keys to assign (e.g. ["course:create", "section:update"])
|
|
24
24
|
* @type {Array<string>}
|
|
25
25
|
* @memberof PutRolePermissions
|
|
26
26
|
*/
|