@easyedu/js-lsm-api 1.96.0 → 1.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -14
- package/README.md +18 -19
- package/dist/apis/CourseApi.d.ts +69 -87
- package/dist/apis/CourseApi.js +115 -164
- package/dist/apis/ReportingApi.d.ts +16 -16
- package/dist/apis/ReportingApi.js +29 -29
- package/dist/esm/apis/CourseApi.d.ts +69 -87
- package/dist/esm/apis/CourseApi.js +115 -164
- package/dist/esm/apis/ReportingApi.d.ts +16 -16
- package/dist/esm/apis/ReportingApi.js +29 -29
- package/dist/esm/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollment.js +8 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.js +8 -0
- package/dist/esm/models/GetCourseExport.d.ts +2 -2
- package/dist/esm/models/GetCourseExport.js +3 -3
- package/dist/esm/models/GetCourseVersion.d.ts +3 -3
- package/dist/esm/models/GetCourseVersion.js +4 -4
- package/dist/esm/models/GetCourseVersionReporting.d.ts +3 -3
- package/dist/esm/models/GetCourseVersionReporting.js +4 -4
- package/dist/esm/models/GetCourseVersionSection.d.ts +64 -0
- package/dist/esm/models/{GetCourseVersionModule.js → GetCourseVersionSection.js} +12 -12
- package/dist/esm/models/GetCourseVersionSectionChild.d.ts +54 -0
- package/dist/esm/models/GetCourseVersionSectionChild.js +56 -0
- package/dist/esm/models/GetCourseVersionSectionReporting.d.ts +99 -0
- package/dist/esm/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js} +11 -11
- package/dist/esm/models/GetPermission.d.ts +1 -1
- package/dist/esm/models/PostCourseExport.d.ts +2 -2
- package/dist/esm/models/PostCourseExport.js +3 -3
- package/dist/esm/models/PostCourseResume.d.ts +1 -1
- package/dist/esm/models/PostCourseResume.js +3 -3
- package/dist/esm/models/PostCourseVersionPublish.d.ts +10 -0
- package/dist/esm/models/PostCourseVersionPublish.js +2 -0
- package/dist/esm/models/PostCourseVersionSection.d.ts +57 -0
- package/dist/esm/models/{PostCourseVersionModule.js → PostCourseVersionSection.js} +10 -8
- package/dist/esm/models/PostCourseVersionSectionDuplicate.d.ts +44 -0
- package/dist/esm/models/PostCourseVersionSectionDuplicate.js +45 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/esm/models/PutCourseEnrollment.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutCourseVersionItem.js +2 -2
- package/dist/esm/models/PutCourseVersionOutlineEntryMove.d.ts +58 -0
- package/dist/esm/models/PutCourseVersionOutlineEntryMove.js +60 -0
- package/dist/esm/models/PutCourseVersionSection.d.ts +45 -0
- package/dist/esm/models/{PutCourseVersionModule.js → PutCourseVersionSection.js} +8 -10
- package/dist/esm/models/PutRolePermissions.d.ts +1 -1
- package/dist/esm/models/index.d.ts +7 -7
- package/dist/esm/models/index.js +7 -7
- package/dist/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/models/GetCourseEnrollment.js +8 -0
- package/dist/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/models/GetCourseEnrollmentListItem.js +8 -0
- package/dist/models/GetCourseExport.d.ts +2 -2
- package/dist/models/GetCourseExport.js +3 -3
- package/dist/models/GetCourseVersion.d.ts +3 -3
- package/dist/models/GetCourseVersion.js +4 -4
- package/dist/models/GetCourseVersionReporting.d.ts +3 -3
- package/dist/models/GetCourseVersionReporting.js +4 -4
- package/dist/models/GetCourseVersionSection.d.ts +64 -0
- package/dist/models/{GetCourseVersionModule.js → GetCourseVersionSection.js} +17 -17
- package/dist/models/GetCourseVersionSectionChild.d.ts +54 -0
- package/dist/models/GetCourseVersionSectionChild.js +64 -0
- package/dist/models/GetCourseVersionSectionReporting.d.ts +99 -0
- package/dist/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js} +16 -16
- package/dist/models/GetPermission.d.ts +1 -1
- package/dist/models/PostCourseExport.d.ts +2 -2
- package/dist/models/PostCourseExport.js +3 -3
- package/dist/models/PostCourseResume.d.ts +1 -1
- package/dist/models/PostCourseResume.js +3 -3
- package/dist/models/PostCourseVersionPublish.d.ts +10 -0
- package/dist/models/PostCourseVersionPublish.js +2 -0
- package/dist/models/PostCourseVersionSection.d.ts +57 -0
- package/dist/models/{PostCourseVersionModule.js → PostCourseVersionSection.js} +15 -13
- package/dist/models/PostCourseVersionSectionDuplicate.d.ts +44 -0
- package/dist/models/PostCourseVersionSectionDuplicate.js +52 -0
- package/dist/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/models/PutCourseEnrollment.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutCourseVersionItem.js +2 -2
- package/dist/models/PutCourseVersionOutlineEntryMove.d.ts +58 -0
- package/dist/models/PutCourseVersionOutlineEntryMove.js +68 -0
- package/dist/models/PutCourseVersionSection.d.ts +45 -0
- package/dist/models/{PutCourseVersionModule.js → PutCourseVersionSection.js} +13 -15
- package/dist/models/PutRolePermissions.d.ts +1 -1
- package/dist/models/index.d.ts +7 -7
- package/dist/models/index.js +7 -7
- package/docs/CourseApi.md +94 -166
- package/docs/GetCourseEnrollment.md +4 -0
- package/docs/GetCourseEnrollmentListItem.md +4 -0
- package/docs/GetCourseExport.md +2 -2
- package/docs/GetCourseVersion.md +2 -2
- package/docs/GetCourseVersionReporting.md +2 -2
- package/docs/{GetCourseVersionModule.md → GetCourseVersionSection.md} +6 -6
- package/docs/{PutCourseVersionItemReorder.md → GetCourseVersionSectionChild.md} +11 -6
- package/docs/{GetCourseVersionModuleReporting.md → GetCourseVersionSectionReporting.md} +6 -6
- package/docs/PostCourseExport.md +2 -2
- package/docs/PostCourseResume.md +2 -2
- package/docs/PostCourseVersionPublish.md +2 -0
- package/docs/{PostCourseVersionModule.md → PostCourseVersionSection.md} +6 -4
- package/docs/{PostCourseVersionModuleDuplicate.md → PostCourseVersionSectionDuplicate.md} +6 -4
- package/docs/PutCourseEnrollment.md +2 -0
- package/docs/PutCourseVersionItem.md +2 -2
- package/docs/{PutCourseVersionModuleReorder.md → PutCourseVersionOutlineEntryMove.md} +12 -6
- package/docs/{PutCourseVersionModule.md → PutCourseVersionSection.md} +4 -6
- package/docs/ReportingApi.md +22 -22
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +160 -234
- package/src/apis/ReportingApi.ts +40 -40
- package/src/models/GetCourseEnrollment.ts +18 -0
- package/src/models/GetCourseEnrollmentListItem.ts +18 -0
- package/src/models/GetCourseExport.ts +5 -5
- package/src/models/GetCourseVersion.ts +12 -12
- package/src/models/GetCourseVersionReporting.ts +11 -11
- package/src/models/{GetCourseVersionModule.ts → GetCourseVersionSection.ts} +28 -28
- package/src/models/GetCourseVersionSectionChild.ts +108 -0
- package/src/models/{GetCourseVersionModuleReporting.ts → GetCourseVersionSectionReporting.ts} +26 -26
- package/src/models/GetPermission.ts +1 -1
- package/src/models/PostCourseExport.ts +5 -5
- package/src/models/PostCourseResume.ts +4 -4
- package/src/models/PostCourseVersionPublish.ts +12 -0
- package/src/models/{PostCourseVersionModule.ts → PostCourseVersionSection.ts} +22 -14
- package/src/models/PostCourseVersionSectionDuplicate.ts +81 -0
- package/src/models/PutCourseEnrollment.ts +11 -0
- package/src/models/PutCourseVersionItem.ts +3 -3
- package/src/models/PutCourseVersionOutlineEntryMove.ts +103 -0
- package/src/models/{PutCourseVersionModule.ts → PutCourseVersionSection.ts} +13 -21
- package/src/models/PutRolePermissions.ts +1 -1
- package/src/models/index.ts +7 -7
- package/dist/esm/models/GetCourseVersionModule.d.ts +0 -64
- package/dist/esm/models/GetCourseVersionModuleReporting.d.ts +0 -99
- package/dist/esm/models/PostCourseVersionModule.d.ts +0 -51
- package/dist/esm/models/PostCourseVersionModuleDuplicate.d.ts +0 -38
- package/dist/esm/models/PostCourseVersionModuleDuplicate.js +0 -43
- package/dist/esm/models/PutCourseVersionItemReorder.d.ts +0 -32
- package/dist/esm/models/PutCourseVersionItemReorder.js +0 -43
- package/dist/esm/models/PutCourseVersionModule.d.ts +0 -51
- package/dist/esm/models/PutCourseVersionModuleReorder.d.ts +0 -32
- package/dist/esm/models/PutCourseVersionModuleReorder.js +0 -43
- package/dist/models/GetCourseVersionModule.d.ts +0 -64
- package/dist/models/GetCourseVersionModuleReporting.d.ts +0 -99
- package/dist/models/PostCourseVersionModule.d.ts +0 -51
- package/dist/models/PostCourseVersionModuleDuplicate.d.ts +0 -38
- package/dist/models/PostCourseVersionModuleDuplicate.js +0 -50
- package/dist/models/PutCourseVersionItemReorder.d.ts +0 -32
- package/dist/models/PutCourseVersionItemReorder.js +0 -50
- package/dist/models/PutCourseVersionModule.d.ts +0 -51
- package/dist/models/PutCourseVersionModuleReorder.d.ts +0 -32
- package/dist/models/PutCourseVersionModuleReorder.js +0 -50
- package/src/models/PostCourseVersionModuleDuplicate.ts +0 -73
- package/src/models/PutCourseVersionItemReorder.ts +0 -66
- package/src/models/PutCourseVersionModuleReorder.ts +0 -66
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PutCourseVersionOutlineEntryMoveEntryKindEnum = {
|
|
18
|
+
Section: 'section',
|
|
19
|
+
Item: 'item'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutCourseVersionOutlineEntryMove interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfPutCourseVersionOutlineEntryMove(value) {
|
|
25
|
+
if (!('entryKind' in value) || value['entryKind'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('entryId' in value) || value['entryId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('targetSectionId' in value) || value['targetSectionId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function PutCourseVersionOutlineEntryMoveFromJSON(json) {
|
|
34
|
+
return PutCourseVersionOutlineEntryMoveFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutCourseVersionOutlineEntryMoveFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'entryKind': json['entry_kind'],
|
|
42
|
+
'entryId': json['entry_id'],
|
|
43
|
+
'targetSectionId': json['target_section_id'],
|
|
44
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function PutCourseVersionOutlineEntryMoveToJSON(json) {
|
|
48
|
+
return PutCourseVersionOutlineEntryMoveToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function PutCourseVersionOutlineEntryMoveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'entry_kind': value['entryKind'],
|
|
56
|
+
'entry_id': value['entryId'],
|
|
57
|
+
'target_section_id': value['targetSectionId'],
|
|
58
|
+
'position': value['position'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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';
|
|
@@ -33,6 +33,18 @@ export interface GetCourseEnrollment {
|
|
|
33
33
|
* @memberof GetCourseEnrollment
|
|
34
34
|
*/
|
|
35
35
|
userId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The published course version assigned to this enrollment. Null for unpinned instructor enrollments.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetCourseEnrollment
|
|
40
|
+
*/
|
|
41
|
+
courseVersionId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The display number of the assigned course version. Null for unpinned instructor enrollments.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetCourseEnrollment
|
|
46
|
+
*/
|
|
47
|
+
courseVersionNumber: number | null;
|
|
36
48
|
/**
|
|
37
49
|
* Start date of the enrollment (Unix timestamp)
|
|
38
50
|
* @type {number}
|
|
@@ -63,6 +63,10 @@ function instanceOfGetCourseEnrollment(value) {
|
|
|
63
63
|
return false;
|
|
64
64
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
65
65
|
return false;
|
|
66
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
|
|
69
|
+
return false;
|
|
66
70
|
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
67
71
|
return false;
|
|
68
72
|
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
@@ -92,6 +96,8 @@ function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
96
|
'id': json['id'],
|
|
93
97
|
'courseId': json['course_id'],
|
|
94
98
|
'userId': json['user_id'],
|
|
99
|
+
'courseVersionId': json['course_version_id'],
|
|
100
|
+
'courseVersionNumber': json['course_version_number'],
|
|
95
101
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
96
102
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
97
103
|
'notes': json['notes'],
|
|
@@ -113,6 +119,8 @@ function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
113
119
|
'id': value['id'],
|
|
114
120
|
'course_id': value['courseId'],
|
|
115
121
|
'user_id': value['userId'],
|
|
122
|
+
'course_version_id': value['courseVersionId'],
|
|
123
|
+
'course_version_number': value['courseVersionNumber'],
|
|
116
124
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
117
125
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
118
126
|
'notes': value['notes'],
|
|
@@ -33,6 +33,18 @@ export interface GetCourseEnrollmentListItem {
|
|
|
33
33
|
* @memberof GetCourseEnrollmentListItem
|
|
34
34
|
*/
|
|
35
35
|
userId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The published course version assigned to this enrollment. Null for unpinned instructor enrollments.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetCourseEnrollmentListItem
|
|
40
|
+
*/
|
|
41
|
+
courseVersionId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The display number of the assigned course version. Null for unpinned instructor enrollments.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetCourseEnrollmentListItem
|
|
46
|
+
*/
|
|
47
|
+
courseVersionNumber: number | null;
|
|
36
48
|
/**
|
|
37
49
|
* The first name of the enrolled user
|
|
38
50
|
* @type {string}
|
|
@@ -63,6 +63,10 @@ function instanceOfGetCourseEnrollmentListItem(value) {
|
|
|
63
63
|
return false;
|
|
64
64
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
65
65
|
return false;
|
|
66
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
|
|
69
|
+
return false;
|
|
66
70
|
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
67
71
|
return false;
|
|
68
72
|
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
@@ -94,6 +98,8 @@ function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
98
|
'id': json['id'],
|
|
95
99
|
'courseId': json['course_id'],
|
|
96
100
|
'userId': json['user_id'],
|
|
101
|
+
'courseVersionId': json['course_version_id'],
|
|
102
|
+
'courseVersionNumber': json['course_version_number'],
|
|
97
103
|
'firstName': json['first_name'],
|
|
98
104
|
'lastName': json['last_name'],
|
|
99
105
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
@@ -116,6 +122,8 @@ function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
116
122
|
'id': value['id'],
|
|
117
123
|
'course_id': value['courseId'],
|
|
118
124
|
'user_id': value['userId'],
|
|
125
|
+
'course_version_id': value['courseVersionId'],
|
|
126
|
+
'course_version_number': value['courseVersionNumber'],
|
|
119
127
|
'first_name': value['firstName'],
|
|
120
128
|
'last_name': value['lastName'],
|
|
121
129
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
@@ -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
|
}
|