@easyedu/js-lsm-api 1.95.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/ContentLaunchMode.d.ts +1 -1
- package/dist/esm/models/ContentLaunchMode.js +1 -1
- 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/GetQuestionQuizzesInner.d.ts +0 -12
- package/dist/esm/models/GetQuestionQuizzesInner.js +0 -8
- 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/ContentLaunchMode.d.ts +1 -1
- package/dist/models/ContentLaunchMode.js +1 -1
- 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/GetQuestionQuizzesInner.d.ts +0 -12
- package/dist/models/GetQuestionQuizzesInner.js +0 -8
- 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/ContentLaunchMode.md +1 -1
- package/docs/ContentLibraryQuizApi.md +2 -2
- 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/GetQuestionQuizzesInner.md +0 -4
- package/docs/PlayerApi.md +2 -2
- 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/ContentLaunchMode.ts +1 -1
- 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/GetQuestionQuizzesInner.ts +0 -18
- 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
|
@@ -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'],
|
|
@@ -27,18 +27,6 @@ export interface GetQuestionQuizzesInner {
|
|
|
27
27
|
* @memberof GetQuestionQuizzesInner
|
|
28
28
|
*/
|
|
29
29
|
quizName: string;
|
|
30
|
-
/**
|
|
31
|
-
* Module external identifier
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof GetQuestionQuizzesInner
|
|
34
|
-
*/
|
|
35
|
-
moduleId: string;
|
|
36
|
-
/**
|
|
37
|
-
* Course external identifier
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof GetQuestionQuizzesInner
|
|
40
|
-
*/
|
|
41
|
-
courseId: string;
|
|
42
30
|
}
|
|
43
31
|
/**
|
|
44
32
|
* Check if a given object implements the GetQuestionQuizzesInner interface.
|
|
@@ -26,10 +26,6 @@ function instanceOfGetQuestionQuizzesInner(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('quizName' in value) || value['quizName'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('moduleId' in value) || value['moduleId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
return true;
|
|
34
30
|
}
|
|
35
31
|
function GetQuestionQuizzesInnerFromJSON(json) {
|
|
@@ -42,8 +38,6 @@ function GetQuestionQuizzesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
38
|
return {
|
|
43
39
|
'quizId': json['quiz_id'],
|
|
44
40
|
'quizName': json['quiz_name'],
|
|
45
|
-
'moduleId': json['module_id'],
|
|
46
|
-
'courseId': json['course_id'],
|
|
47
41
|
};
|
|
48
42
|
}
|
|
49
43
|
function GetQuestionQuizzesInnerToJSON(json) {
|
|
@@ -56,7 +50,5 @@ function GetQuestionQuizzesInnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
56
50
|
return {
|
|
57
51
|
'quiz_id': value['quizId'],
|
|
58
52
|
'quiz_name': value['quizName'],
|
|
59
|
-
'module_id': value['moduleId'],
|
|
60
|
-
'course_id': value['courseId'],
|
|
61
53
|
};
|
|
62
54
|
}
|
|
@@ -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'],
|
|
@@ -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
|
+
}
|
|
@@ -42,7 +42,7 @@ function PutCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'libraryVersionId': json['library_version_id'] == null ? undefined : json['library_version_id'],
|
|
45
|
-
'
|
|
45
|
+
'targetSectionId': json['target_section_id'] == null ? undefined : json['target_section_id'],
|
|
46
46
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
47
47
|
'position': json['position'] == null ? undefined : json['position'],
|
|
48
48
|
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
@@ -62,7 +62,7 @@ function PutCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
64
|
'library_version_id': value['libraryVersionId'],
|
|
65
|
-
'
|
|
65
|
+
'target_section_id': value['targetSectionId'],
|
|
66
66
|
'display_name': value['displayName'],
|
|
67
67
|
'position': value['position'],
|
|
68
68
|
'is_visible': value['isVisible'],
|
|
@@ -0,0 +1,58 @@
|
|
|
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 PutCourseVersionOutlineEntryMove
|
|
16
|
+
*/
|
|
17
|
+
export interface PutCourseVersionOutlineEntryMove {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PutCourseVersionOutlineEntryMoveEntryKindEnum}
|
|
21
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
22
|
+
*/
|
|
23
|
+
entryKind: PutCourseVersionOutlineEntryMoveEntryKindEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
28
|
+
*/
|
|
29
|
+
entryId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Destination parent. Null is allowed only for sections and moves them to the course root.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
34
|
+
*/
|
|
35
|
+
targetSectionId: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PutCourseVersionOutlineEntryMove
|
|
40
|
+
*/
|
|
41
|
+
position?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PutCourseVersionOutlineEntryMoveEntryKindEnum: {
|
|
47
|
+
readonly Section: "section";
|
|
48
|
+
readonly Item: "item";
|
|
49
|
+
};
|
|
50
|
+
export type PutCourseVersionOutlineEntryMoveEntryKindEnum = typeof PutCourseVersionOutlineEntryMoveEntryKindEnum[keyof typeof PutCourseVersionOutlineEntryMoveEntryKindEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PutCourseVersionOutlineEntryMove interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfPutCourseVersionOutlineEntryMove(value: object): value is PutCourseVersionOutlineEntryMove;
|
|
55
|
+
export declare function PutCourseVersionOutlineEntryMoveFromJSON(json: any): PutCourseVersionOutlineEntryMove;
|
|
56
|
+
export declare function PutCourseVersionOutlineEntryMoveFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionOutlineEntryMove;
|
|
57
|
+
export declare function PutCourseVersionOutlineEntryMoveToJSON(json: any): PutCourseVersionOutlineEntryMove;
|
|
58
|
+
export declare function PutCourseVersionOutlineEntryMoveToJSONTyped(value?: PutCourseVersionOutlineEntryMove | null, ignoreDiscriminator?: boolean): any;
|