@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,45 @@
|
|
|
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 PutCourseVersionSection
|
|
17
|
+
*/
|
|
18
|
+
export interface PutCourseVersionSection {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PutCourseVersionSection
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PutCourseVersionSection
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof PutCourseVersionSection
|
|
35
|
+
*/
|
|
36
|
+
descriptionRich?: RichTextDocument;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PutCourseVersionSection interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfPutCourseVersionSection(value: object): value is PutCourseVersionSection;
|
|
42
|
+
export declare function PutCourseVersionSectionFromJSON(json: any): PutCourseVersionSection;
|
|
43
|
+
export declare function PutCourseVersionSectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionSection;
|
|
44
|
+
export declare function PutCourseVersionSectionToJSON(json: any): PutCourseVersionSection;
|
|
45
|
+
export declare function PutCourseVersionSectionToJSONTyped(value?: PutCourseVersionSection | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the PutCourseVersionSection interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfPutCourseVersionSection(value) {
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
|
-
export function
|
|
22
|
-
return
|
|
21
|
+
export function PutCourseVersionSectionFromJSON(json) {
|
|
22
|
+
return PutCourseVersionSectionFromJSONTyped(json, false);
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
24
|
+
export function PutCourseVersionSectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
25
|
if (json == null) {
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
@@ -29,13 +29,12 @@ export function PutCourseVersionModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'name': json['name'] == null ? undefined : json['name'],
|
|
30
30
|
'description': json['description'] == null ? undefined : json['description'],
|
|
31
31
|
'descriptionRich': json['description_rich'] == null ? undefined : RichTextDocumentFromJSON(json['description_rich']),
|
|
32
|
-
'position': json['position'] == null ? undefined : json['position'],
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
|
-
export function
|
|
36
|
-
return
|
|
34
|
+
export function PutCourseVersionSectionToJSON(json) {
|
|
35
|
+
return PutCourseVersionSectionToJSONTyped(json, false);
|
|
37
36
|
}
|
|
38
|
-
export function
|
|
37
|
+
export function PutCourseVersionSectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
38
|
if (value == null) {
|
|
40
39
|
return value;
|
|
41
40
|
}
|
|
@@ -43,6 +42,5 @@ export function PutCourseVersionModuleToJSONTyped(value, ignoreDiscriminator = f
|
|
|
43
42
|
'name': value['name'],
|
|
44
43
|
'description': value['description'],
|
|
45
44
|
'description_rich': RichTextDocumentToJSON(value['descriptionRich']),
|
|
46
|
-
'position': value['position'],
|
|
47
45
|
};
|
|
48
46
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface PutRolePermissions {
|
|
18
18
|
/**
|
|
19
|
-
* List of permission keys to assign (e.g. ["course:create", "
|
|
19
|
+
* List of permission keys to assign (e.g. ["course:create", "section:update"])
|
|
20
20
|
* @type {Array<string>}
|
|
21
21
|
* @memberof PutRolePermissions
|
|
22
22
|
*/
|
|
@@ -52,9 +52,10 @@ export * from './GetCourseVersionItemLaunch';
|
|
|
52
52
|
export * from './GetCourseVersionItemReporting';
|
|
53
53
|
export * from './GetCourseVersionItemSession';
|
|
54
54
|
export * from './GetCourseVersionList';
|
|
55
|
-
export * from './GetCourseVersionModule';
|
|
56
|
-
export * from './GetCourseVersionModuleReporting';
|
|
57
55
|
export * from './GetCourseVersionReporting';
|
|
56
|
+
export * from './GetCourseVersionSection';
|
|
57
|
+
export * from './GetCourseVersionSectionChild';
|
|
58
|
+
export * from './GetCourseVersionSectionReporting';
|
|
58
59
|
export * from './GetEmailAssetUpload';
|
|
59
60
|
export * from './GetEmailDelivery';
|
|
60
61
|
export * from './GetEmailDeliveryList';
|
|
@@ -159,9 +160,9 @@ export * from './PostCourseLibraryQuizSession';
|
|
|
159
160
|
export * from './PostCourseResume';
|
|
160
161
|
export * from './PostCourseVersionItem';
|
|
161
162
|
export * from './PostCourseVersionItemSession';
|
|
162
|
-
export * from './PostCourseVersionModule';
|
|
163
|
-
export * from './PostCourseVersionModuleDuplicate';
|
|
164
163
|
export * from './PostCourseVersionPublish';
|
|
164
|
+
export * from './PostCourseVersionSection';
|
|
165
|
+
export * from './PostCourseVersionSectionDuplicate';
|
|
165
166
|
export * from './PostDuplicate';
|
|
166
167
|
export * from './PostEmailAssetComplete';
|
|
167
168
|
export * from './PostEmailAssetUpload';
|
|
@@ -204,9 +205,8 @@ export * from './PutCourse';
|
|
|
204
205
|
export * from './PutCourseCatalog';
|
|
205
206
|
export * from './PutCourseEnrollment';
|
|
206
207
|
export * from './PutCourseVersionItem';
|
|
207
|
-
export * from './
|
|
208
|
-
export * from './
|
|
209
|
-
export * from './PutCourseVersionModuleReorder';
|
|
208
|
+
export * from './PutCourseVersionOutlineEntryMove';
|
|
209
|
+
export * from './PutCourseVersionSection';
|
|
210
210
|
export * from './PutEmailTemplateDraft';
|
|
211
211
|
export * from './PutLibraryQuiz';
|
|
212
212
|
export * from './PutLibraryQuizCriteria';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -54,9 +54,10 @@ export * from './GetCourseVersionItemLaunch';
|
|
|
54
54
|
export * from './GetCourseVersionItemReporting';
|
|
55
55
|
export * from './GetCourseVersionItemSession';
|
|
56
56
|
export * from './GetCourseVersionList';
|
|
57
|
-
export * from './GetCourseVersionModule';
|
|
58
|
-
export * from './GetCourseVersionModuleReporting';
|
|
59
57
|
export * from './GetCourseVersionReporting';
|
|
58
|
+
export * from './GetCourseVersionSection';
|
|
59
|
+
export * from './GetCourseVersionSectionChild';
|
|
60
|
+
export * from './GetCourseVersionSectionReporting';
|
|
60
61
|
export * from './GetEmailAssetUpload';
|
|
61
62
|
export * from './GetEmailDelivery';
|
|
62
63
|
export * from './GetEmailDeliveryList';
|
|
@@ -161,9 +162,9 @@ export * from './PostCourseLibraryQuizSession';
|
|
|
161
162
|
export * from './PostCourseResume';
|
|
162
163
|
export * from './PostCourseVersionItem';
|
|
163
164
|
export * from './PostCourseVersionItemSession';
|
|
164
|
-
export * from './PostCourseVersionModule';
|
|
165
|
-
export * from './PostCourseVersionModuleDuplicate';
|
|
166
165
|
export * from './PostCourseVersionPublish';
|
|
166
|
+
export * from './PostCourseVersionSection';
|
|
167
|
+
export * from './PostCourseVersionSectionDuplicate';
|
|
167
168
|
export * from './PostDuplicate';
|
|
168
169
|
export * from './PostEmailAssetComplete';
|
|
169
170
|
export * from './PostEmailAssetUpload';
|
|
@@ -206,9 +207,8 @@ export * from './PutCourse';
|
|
|
206
207
|
export * from './PutCourseCatalog';
|
|
207
208
|
export * from './PutCourseEnrollment';
|
|
208
209
|
export * from './PutCourseVersionItem';
|
|
209
|
-
export * from './
|
|
210
|
-
export * from './
|
|
211
|
-
export * from './PutCourseVersionModuleReorder';
|
|
210
|
+
export * from './PutCourseVersionOutlineEntryMove';
|
|
211
|
+
export * from './PutCourseVersionSection';
|
|
212
212
|
export * from './PutEmailTemplateDraft';
|
|
213
213
|
export * from './PutLibraryQuiz';
|
|
214
214
|
export * from './PutLibraryQuizCriteria';
|
|
@@ -20,7 +20,7 @@ exports.ContentLaunchModeFromJSONTyped = ContentLaunchModeFromJSONTyped;
|
|
|
20
20
|
exports.ContentLaunchModeToJSON = ContentLaunchModeToJSON;
|
|
21
21
|
exports.ContentLaunchModeToJSONTyped = ContentLaunchModeToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
* How the learner player should present the launched
|
|
23
|
+
* How the learner player should present the launched item.
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.ContentLaunchMode = {
|
|
@@ -40,11 +40,11 @@ export interface GetCourseExport {
|
|
|
40
40
|
*/
|
|
41
41
|
exportType: GetCourseExportExportTypeEnum;
|
|
42
42
|
/**
|
|
43
|
-
* IDs of the
|
|
43
|
+
* IDs of the root sections included in the export
|
|
44
44
|
* @type {Array<string>}
|
|
45
45
|
* @memberof GetCourseExport
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
sectionIds: Array<string>;
|
|
48
48
|
/**
|
|
49
49
|
* ID of the user who requested the export
|
|
50
50
|
* @type {number}
|
|
@@ -46,7 +46,7 @@ function instanceOfGetCourseExport(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
if (!('exportType' in value) || value['exportType'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
-
if (!('
|
|
49
|
+
if (!('sectionIds' in value) || value['sectionIds'] === undefined)
|
|
50
50
|
return false;
|
|
51
51
|
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
52
52
|
return false;
|
|
@@ -68,7 +68,7 @@ function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
68
|
'courseId': json['course_id'],
|
|
69
69
|
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
70
70
|
'exportType': json['export_type'],
|
|
71
|
-
'
|
|
71
|
+
'sectionIds': json['section_ids'],
|
|
72
72
|
'createdBy': json['created_by'],
|
|
73
73
|
'status': json['status'],
|
|
74
74
|
'downloadUrl': json['download_url'] == null ? undefined : json['download_url'],
|
|
@@ -89,7 +89,7 @@ function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
89
|
'course_id': value['courseId'],
|
|
90
90
|
'course_version_id': value['courseVersionId'],
|
|
91
91
|
'export_type': value['exportType'],
|
|
92
|
-
'
|
|
92
|
+
'section_ids': value['sectionIds'],
|
|
93
93
|
'created_by': value['createdBy'],
|
|
94
94
|
'status': value['status'],
|
|
95
95
|
'download_url': value['downloadUrl'],
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { GetCourseVersionModule } from './GetCourseVersionModule';
|
|
13
12
|
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
14
13
|
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
import type { GetCourseVersionSection } from './GetCourseVersionSection';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -68,10 +68,10 @@ export interface GetCourseVersion {
|
|
|
68
68
|
changeNotes?: string | null;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
|
-
* @type {Array<
|
|
71
|
+
* @type {Array<GetCourseVersionSection>}
|
|
72
72
|
* @memberof GetCourseVersion
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
sections: Array<GetCourseVersionSection>;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
77
|
* @type {number}
|
|
@@ -18,9 +18,9 @@ exports.GetCourseVersionFromJSON = GetCourseVersionFromJSON;
|
|
|
18
18
|
exports.GetCourseVersionFromJSONTyped = GetCourseVersionFromJSONTyped;
|
|
19
19
|
exports.GetCourseVersionToJSON = GetCourseVersionToJSON;
|
|
20
20
|
exports.GetCourseVersionToJSONTyped = GetCourseVersionToJSONTyped;
|
|
21
|
-
const GetCourseVersionModule_1 = require("./GetCourseVersionModule");
|
|
22
21
|
const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
23
22
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
const GetCourseVersionSection_1 = require("./GetCourseVersionSection");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the GetCourseVersion interface.
|
|
26
26
|
*/
|
|
@@ -39,7 +39,7 @@ function instanceOfGetCourseVersion(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('sections' in value) || value['sections'] === undefined)
|
|
43
43
|
return false;
|
|
44
44
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
45
|
return false;
|
|
@@ -63,7 +63,7 @@ function GetCourseVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'description': json['description'],
|
|
64
64
|
'descriptionRich': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
65
65
|
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
66
|
-
'
|
|
66
|
+
'sections': (json['sections'].map(GetCourseVersionSection_1.GetCourseVersionSectionFromJSON)),
|
|
67
67
|
'createdAt': json['created_at'],
|
|
68
68
|
'updatedAt': json['updated_at'],
|
|
69
69
|
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
@@ -85,7 +85,7 @@ function GetCourseVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
85
|
'description': value['description'],
|
|
86
86
|
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
87
87
|
'change_notes': value['changeNotes'],
|
|
88
|
-
'
|
|
88
|
+
'sections': (value['sections'].map(GetCourseVersionSection_1.GetCourseVersionSectionToJSON)),
|
|
89
89
|
'created_at': value['createdAt'],
|
|
90
90
|
'updated_at': value['updatedAt'],
|
|
91
91
|
'published_at': value['publishedAt'],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { GetCourseVersionSectionReporting } from './GetCourseVersionSectionReporting';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -78,10 +78,10 @@ export interface GetCourseVersionReporting {
|
|
|
78
78
|
totalDurationSeconds: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<GetCourseVersionSectionReporting>}
|
|
82
82
|
* @memberof GetCourseVersionReporting
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
sections: Array<GetCourseVersionSectionReporting>;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* Check if a given object implements the GetCourseVersionReporting interface.
|
|
@@ -18,7 +18,7 @@ exports.GetCourseVersionReportingFromJSON = GetCourseVersionReportingFromJSON;
|
|
|
18
18
|
exports.GetCourseVersionReportingFromJSONTyped = GetCourseVersionReportingFromJSONTyped;
|
|
19
19
|
exports.GetCourseVersionReportingToJSON = GetCourseVersionReportingToJSON;
|
|
20
20
|
exports.GetCourseVersionReportingToJSONTyped = GetCourseVersionReportingToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const GetCourseVersionSectionReporting_1 = require("./GetCourseVersionSectionReporting");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the GetCourseVersionReporting interface.
|
|
24
24
|
*/
|
|
@@ -43,7 +43,7 @@ function instanceOfGetCourseVersionReporting(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('totalDurationSeconds' in value) || value['totalDurationSeconds'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('sections' in value) || value['sections'] === undefined)
|
|
47
47
|
return false;
|
|
48
48
|
return true;
|
|
49
49
|
}
|
|
@@ -65,7 +65,7 @@ function GetCourseVersionReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'completionRatePercentage': json['completion_rate_percentage'],
|
|
66
66
|
'avgScorePercentage': json['avg_score_percentage'],
|
|
67
67
|
'totalDurationSeconds': json['total_duration_seconds'],
|
|
68
|
-
'
|
|
68
|
+
'sections': (json['sections'].map(GetCourseVersionSectionReporting_1.GetCourseVersionSectionReportingFromJSON)),
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
function GetCourseVersionReportingToJSON(json) {
|
|
@@ -86,6 +86,6 @@ function GetCourseVersionReportingToJSONTyped(value, ignoreDiscriminator = false
|
|
|
86
86
|
'completion_rate_percentage': value['completionRatePercentage'],
|
|
87
87
|
'avg_score_percentage': value['avgScorePercentage'],
|
|
88
88
|
'total_duration_seconds': value['totalDurationSeconds'],
|
|
89
|
-
'
|
|
89
|
+
'sections': (value['sections'].map(GetCourseVersionSectionReporting_1.GetCourseVersionSectionReportingToJSON)),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import type { GetCourseVersionSectionChild } from './GetCourseVersionSectionChild';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetCourseVersionSection
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCourseVersionSection {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetCourseVersionSection
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetCourseVersionSection
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetCourseVersionSection
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RichTextDocument}
|
|
41
|
+
* @memberof GetCourseVersionSection
|
|
42
|
+
*/
|
|
43
|
+
descriptionRich: RichTextDocument;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof GetCourseVersionSection
|
|
48
|
+
*/
|
|
49
|
+
displayOrder: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<GetCourseVersionSectionChild>}
|
|
53
|
+
* @memberof GetCourseVersionSection
|
|
54
|
+
*/
|
|
55
|
+
children: Array<GetCourseVersionSectionChild>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the GetCourseVersionSection interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfGetCourseVersionSection(value: object): value is GetCourseVersionSection;
|
|
61
|
+
export declare function GetCourseVersionSectionFromJSON(json: any): GetCourseVersionSection;
|
|
62
|
+
export declare function GetCourseVersionSectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionSection;
|
|
63
|
+
export declare function GetCourseVersionSectionToJSON(json: any): GetCourseVersionSection;
|
|
64
|
+
export declare function GetCourseVersionSectionToJSONTyped(value?: GetCourseVersionSection | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.
|
|
21
|
-
const GetCourseVersionItem_1 = require("./GetCourseVersionItem");
|
|
16
|
+
exports.instanceOfGetCourseVersionSection = instanceOfGetCourseVersionSection;
|
|
17
|
+
exports.GetCourseVersionSectionFromJSON = GetCourseVersionSectionFromJSON;
|
|
18
|
+
exports.GetCourseVersionSectionFromJSONTyped = GetCourseVersionSectionFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionSectionToJSON = GetCourseVersionSectionToJSON;
|
|
20
|
+
exports.GetCourseVersionSectionToJSONTyped = GetCourseVersionSectionToJSONTyped;
|
|
22
21
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
22
|
+
const GetCourseVersionSectionChild_1 = require("./GetCourseVersionSectionChild");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the GetCourseVersionSection interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfGetCourseVersionSection(value) {
|
|
27
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -34,14 +34,14 @@ function instanceOfGetCourseVersionModule(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('children' in value) || value['children'] === undefined)
|
|
38
38
|
return false;
|
|
39
39
|
return true;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function GetCourseVersionSectionFromJSON(json) {
|
|
42
|
+
return GetCourseVersionSectionFromJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function GetCourseVersionSectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
45
|
if (json == null) {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
@@ -51,13 +51,13 @@ function GetCourseVersionModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'description': json['description'],
|
|
52
52
|
'descriptionRich': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
53
53
|
'displayOrder': json['display_order'],
|
|
54
|
-
'
|
|
54
|
+
'children': (json['children'].map(GetCourseVersionSectionChild_1.GetCourseVersionSectionChildFromJSON)),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function GetCourseVersionSectionToJSON(json) {
|
|
58
|
+
return GetCourseVersionSectionToJSONTyped(json, false);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function GetCourseVersionSectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
61
|
if (value == null) {
|
|
62
62
|
return value;
|
|
63
63
|
}
|
|
@@ -67,6 +67,6 @@ function GetCourseVersionModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
67
|
'description': value['description'],
|
|
68
68
|
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
69
69
|
'display_order': value['displayOrder'],
|
|
70
|
-
'
|
|
70
|
+
'children': (value['children'].map(GetCourseVersionSectionChild_1.GetCourseVersionSectionChildToJSON)),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetCourseVersionItem } from './GetCourseVersionItem';
|
|
13
|
+
import type { GetCourseVersionSection } from './GetCourseVersionSection';
|
|
14
|
+
/**
|
|
15
|
+
* An ordered child entry containing exactly one section or course item.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetCourseVersionSectionChild
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCourseVersionSectionChild {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {GetCourseVersionSectionChildKindEnum}
|
|
23
|
+
* @memberof GetCourseVersionSectionChild
|
|
24
|
+
*/
|
|
25
|
+
kind: GetCourseVersionSectionChildKindEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetCourseVersionSection}
|
|
29
|
+
* @memberof GetCourseVersionSectionChild
|
|
30
|
+
*/
|
|
31
|
+
section?: GetCourseVersionSection | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {GetCourseVersionItem}
|
|
35
|
+
* @memberof GetCourseVersionSectionChild
|
|
36
|
+
*/
|
|
37
|
+
item?: GetCourseVersionItem | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export declare const GetCourseVersionSectionChildKindEnum: {
|
|
43
|
+
readonly Section: "section";
|
|
44
|
+
readonly Item: "item";
|
|
45
|
+
};
|
|
46
|
+
export type GetCourseVersionSectionChildKindEnum = typeof GetCourseVersionSectionChildKindEnum[keyof typeof GetCourseVersionSectionChildKindEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the GetCourseVersionSectionChild interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfGetCourseVersionSectionChild(value: object): value is GetCourseVersionSectionChild;
|
|
51
|
+
export declare function GetCourseVersionSectionChildFromJSON(json: any): GetCourseVersionSectionChild;
|
|
52
|
+
export declare function GetCourseVersionSectionChildFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionSectionChild;
|
|
53
|
+
export declare function GetCourseVersionSectionChildToJSON(json: any): GetCourseVersionSectionChild;
|
|
54
|
+
export declare function GetCourseVersionSectionChildToJSONTyped(value?: GetCourseVersionSectionChild | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetCourseVersionSectionChildKindEnum = void 0;
|
|
17
|
+
exports.instanceOfGetCourseVersionSectionChild = instanceOfGetCourseVersionSectionChild;
|
|
18
|
+
exports.GetCourseVersionSectionChildFromJSON = GetCourseVersionSectionChildFromJSON;
|
|
19
|
+
exports.GetCourseVersionSectionChildFromJSONTyped = GetCourseVersionSectionChildFromJSONTyped;
|
|
20
|
+
exports.GetCourseVersionSectionChildToJSON = GetCourseVersionSectionChildToJSON;
|
|
21
|
+
exports.GetCourseVersionSectionChildToJSONTyped = GetCourseVersionSectionChildToJSONTyped;
|
|
22
|
+
const GetCourseVersionItem_1 = require("./GetCourseVersionItem");
|
|
23
|
+
const GetCourseVersionSection_1 = require("./GetCourseVersionSection");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.GetCourseVersionSectionChildKindEnum = {
|
|
28
|
+
Section: 'section',
|
|
29
|
+
Item: 'item'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetCourseVersionSectionChild interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfGetCourseVersionSectionChild(value) {
|
|
35
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function GetCourseVersionSectionChildFromJSON(json) {
|
|
40
|
+
return GetCourseVersionSectionChildFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GetCourseVersionSectionChildFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'kind': json['kind'],
|
|
48
|
+
'section': json['section'] == null ? undefined : (0, GetCourseVersionSection_1.GetCourseVersionSectionFromJSON)(json['section']),
|
|
49
|
+
'item': json['item'] == null ? undefined : (0, GetCourseVersionItem_1.GetCourseVersionItemFromJSON)(json['item']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function GetCourseVersionSectionChildToJSON(json) {
|
|
53
|
+
return GetCourseVersionSectionChildToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetCourseVersionSectionChildToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'kind': value['kind'],
|
|
61
|
+
'section': (0, GetCourseVersionSection_1.GetCourseVersionSectionToJSON)(value['section']),
|
|
62
|
+
'item': (0, GetCourseVersionItem_1.GetCourseVersionItemToJSON)(value['item']),
|
|
63
|
+
};
|
|
64
|
+
}
|