@easyedu/js-lsm-api 1.46.0 → 1.47.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 +4 -0
- package/README.md +6 -2
- package/dist/apis/ContentApi.d.ts +18 -1
- package/dist/apis/ContentApi.js +47 -0
- package/dist/apis/ModuleApi.d.ts +17 -1
- package/dist/apis/ModuleApi.js +43 -0
- package/dist/esm/apis/ContentApi.d.ts +18 -1
- package/dist/esm/apis/ContentApi.js +48 -1
- package/dist/esm/apis/ModuleApi.d.ts +17 -1
- package/dist/esm/apis/ModuleApi.js +44 -1
- package/dist/esm/models/PostContentQuiz.d.ts +6 -0
- package/dist/esm/models/PostContentQuiz.js +2 -0
- package/dist/esm/models/PostContentUpload.d.ts +6 -0
- package/dist/esm/models/PostContentUpload.js +2 -0
- package/dist/esm/models/PostModule.d.ts +1 -1
- package/dist/esm/models/PostModule.js +1 -3
- package/dist/esm/models/PutContentReorder.d.ts +32 -0
- package/dist/esm/models/PutContentReorder.js +43 -0
- package/dist/esm/models/PutCourse.d.ts +0 -6
- package/dist/esm/models/PutCourse.js +0 -2
- package/dist/esm/models/PutModule.d.ts +0 -6
- package/dist/esm/models/PutModule.js +0 -2
- package/dist/esm/models/PutModuleReorder.d.ts +32 -0
- package/dist/esm/models/PutModuleReorder.js +43 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/PostContentQuiz.d.ts +6 -0
- package/dist/models/PostContentQuiz.js +2 -0
- package/dist/models/PostContentUpload.d.ts +6 -0
- package/dist/models/PostContentUpload.js +2 -0
- package/dist/models/PostModule.d.ts +1 -1
- package/dist/models/PostModule.js +1 -3
- package/dist/models/PutContentReorder.d.ts +32 -0
- package/dist/models/PutContentReorder.js +50 -0
- package/dist/models/PutCourse.d.ts +0 -6
- package/dist/models/PutCourse.js +0 -2
- package/dist/models/PutModule.d.ts +0 -6
- package/dist/models/PutModule.js +0 -2
- package/dist/models/PutModuleReorder.d.ts +32 -0
- package/dist/models/PutModuleReorder.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/ContentApi.md +72 -0
- package/docs/ModuleApi.md +69 -0
- package/docs/PostContentQuiz.md +2 -0
- package/docs/PostContentUpload.md +2 -0
- package/docs/PutContentReorder.md +34 -0
- package/docs/PutCourse.md +0 -2
- package/docs/PutModule.md +0 -2
- package/docs/PutModuleReorder.md +34 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +71 -0
- package/src/apis/ModuleApi.ts +62 -0
- package/src/models/PostContentQuiz.ts +8 -0
- package/src/models/PostContentUpload.ts +8 -0
- package/src/models/PostModule.ts +2 -3
- package/src/models/PutContentReorder.ts +66 -0
- package/src/models/PutCourse.ts +0 -8
- package/src/models/PutModule.ts +0 -8
- package/src/models/PutModuleReorder.ts +66 -0
- package/src/models/index.ts +2 -0
|
@@ -27,7 +27,6 @@ export function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
29
|
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
-
'order': json['order'] == null ? undefined : json['order'],
|
|
31
30
|
'published': json['published'] == null ? undefined : json['published'],
|
|
32
31
|
};
|
|
33
32
|
}
|
|
@@ -41,7 +40,6 @@ export function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
40
|
return {
|
|
42
41
|
'name': value['name'],
|
|
43
42
|
'description': value['description'],
|
|
44
|
-
'order': value['order'],
|
|
45
43
|
'published': value['published'],
|
|
46
44
|
};
|
|
47
45
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PutModuleReorder
|
|
16
|
+
*/
|
|
17
|
+
export interface PutModuleReorder {
|
|
18
|
+
/**
|
|
19
|
+
* Ordered list of module IDs
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof PutModuleReorder
|
|
22
|
+
*/
|
|
23
|
+
ids: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutModuleReorder(value: object): value is PutModuleReorder;
|
|
29
|
+
export declare function PutModuleReorderFromJSON(json: any): PutModuleReorder;
|
|
30
|
+
export declare function PutModuleReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutModuleReorder;
|
|
31
|
+
export declare function PutModuleReorderToJSON(json: any): PutModuleReorder;
|
|
32
|
+
export declare function PutModuleReorderToJSONTyped(value?: PutModuleReorder | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutModuleReorder(value) {
|
|
18
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PutModuleReorderFromJSON(json) {
|
|
23
|
+
return PutModuleReorderFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PutModuleReorderFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'ids': json['ids'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PutModuleReorderToJSON(json) {
|
|
34
|
+
return PutModuleReorderToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutModuleReorderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'ids': value['ids'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -193,10 +193,12 @@ export * from './PostVerifyManifest';
|
|
|
193
193
|
export * from './PostVerifyManifestItemsInner';
|
|
194
194
|
export * from './PostVerifyManifestResourcesInner';
|
|
195
195
|
export * from './PutContent';
|
|
196
|
+
export * from './PutContentReorder';
|
|
196
197
|
export * from './PutContentVersion';
|
|
197
198
|
export * from './PutCourse';
|
|
198
199
|
export * from './PutCourseEnrollment';
|
|
199
200
|
export * from './PutModule';
|
|
201
|
+
export * from './PutModuleReorder';
|
|
200
202
|
export * from './PutPortalBranding';
|
|
201
203
|
export * from './PutQuestion';
|
|
202
204
|
export * from './PutQuestionAnswerChoicesInner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -195,10 +195,12 @@ export * from './PostVerifyManifest';
|
|
|
195
195
|
export * from './PostVerifyManifestItemsInner';
|
|
196
196
|
export * from './PostVerifyManifestResourcesInner';
|
|
197
197
|
export * from './PutContent';
|
|
198
|
+
export * from './PutContentReorder';
|
|
198
199
|
export * from './PutContentVersion';
|
|
199
200
|
export * from './PutCourse';
|
|
200
201
|
export * from './PutCourseEnrollment';
|
|
201
202
|
export * from './PutModule';
|
|
203
|
+
export * from './PutModuleReorder';
|
|
202
204
|
export * from './PutPortalBranding';
|
|
203
205
|
export * from './PutQuestion';
|
|
204
206
|
export * from './PutQuestionAnswerChoicesInner';
|
|
@@ -42,6 +42,12 @@ export interface PostContentQuiz {
|
|
|
42
42
|
* @memberof PostContentQuiz
|
|
43
43
|
*/
|
|
44
44
|
settings: PostContentQuizSettings;
|
|
45
|
+
/**
|
|
46
|
+
* Display order within the module. Auto-assigned if not provided.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof PostContentQuiz
|
|
49
|
+
*/
|
|
50
|
+
order?: number;
|
|
45
51
|
/**
|
|
46
52
|
*
|
|
47
53
|
* @type {PostContentQuizAssignment}
|
|
@@ -45,6 +45,7 @@ function PostContentQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'description': json['description'] == null ? undefined : json['description'],
|
|
46
46
|
'questionSelection': (0, PostContentQuizQuestionSelection_1.PostContentQuizQuestionSelectionFromJSON)(json['question_selection']),
|
|
47
47
|
'settings': (0, PostContentQuizSettings_1.PostContentQuizSettingsFromJSON)(json['settings']),
|
|
48
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
48
49
|
'assignment': json['assignment'] == null ? undefined : (0, PostContentQuizAssignment_1.PostContentQuizAssignmentFromJSON)(json['assignment']),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -60,6 +61,7 @@ function PostContentQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
'description': value['description'],
|
|
61
62
|
'question_selection': (0, PostContentQuizQuestionSelection_1.PostContentQuizQuestionSelectionToJSON)(value['questionSelection']),
|
|
62
63
|
'settings': (0, PostContentQuizSettings_1.PostContentQuizSettingsToJSON)(value['settings']),
|
|
64
|
+
'order': value['order'],
|
|
63
65
|
'assignment': (0, PostContentQuizAssignment_1.PostContentQuizAssignmentToJSON)(value['assignment']),
|
|
64
66
|
};
|
|
65
67
|
}
|
|
@@ -27,6 +27,12 @@ export interface PostContentUpload {
|
|
|
27
27
|
* @memberof PostContentUpload
|
|
28
28
|
*/
|
|
29
29
|
contentType: PostContentUploadContentTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Display order within the module. Auto-assigned if not provided.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostContentUpload
|
|
34
|
+
*/
|
|
35
|
+
order?: number;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* @export
|
|
@@ -55,6 +55,7 @@ function PostContentUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
return {
|
|
56
56
|
'name': json['name'],
|
|
57
57
|
'contentType': json['content_type'],
|
|
58
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function PostContentUploadToJSON(json) {
|
|
@@ -67,5 +68,6 @@ function PostContentUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
68
|
return {
|
|
68
69
|
'name': value['name'],
|
|
69
70
|
'content_type': value['contentType'],
|
|
71
|
+
'order': value['order'],
|
|
70
72
|
};
|
|
71
73
|
}
|
|
@@ -26,8 +26,6 @@ function instanceOfPostModule(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('description' in value) || value['description'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('order' in value) || value['order'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
function PostModuleFromJSON(json) {
|
|
@@ -40,7 +38,7 @@ function PostModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
38
|
return {
|
|
41
39
|
'name': json['name'],
|
|
42
40
|
'description': json['description'],
|
|
43
|
-
'order': json['order'],
|
|
41
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
function PostModuleToJSON(json) {
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PutContentReorder
|
|
16
|
+
*/
|
|
17
|
+
export interface PutContentReorder {
|
|
18
|
+
/**
|
|
19
|
+
* Ordered list of content IDs
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof PutContentReorder
|
|
22
|
+
*/
|
|
23
|
+
ids: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutContentReorder interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutContentReorder(value: object): value is PutContentReorder;
|
|
29
|
+
export declare function PutContentReorderFromJSON(json: any): PutContentReorder;
|
|
30
|
+
export declare function PutContentReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentReorder;
|
|
31
|
+
export declare function PutContentReorderToJSON(json: any): PutContentReorder;
|
|
32
|
+
export declare function PutContentReorderToJSONTyped(value?: PutContentReorder | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutContentReorder = instanceOfPutContentReorder;
|
|
17
|
+
exports.PutContentReorderFromJSON = PutContentReorderFromJSON;
|
|
18
|
+
exports.PutContentReorderFromJSONTyped = PutContentReorderFromJSONTyped;
|
|
19
|
+
exports.PutContentReorderToJSON = PutContentReorderToJSON;
|
|
20
|
+
exports.PutContentReorderToJSONTyped = PutContentReorderToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutContentReorder interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutContentReorder(value) {
|
|
25
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutContentReorderFromJSON(json) {
|
|
30
|
+
return PutContentReorderFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutContentReorderFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ids': json['ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutContentReorderToJSON(json) {
|
|
41
|
+
return PutContentReorderToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutContentReorderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ids': value['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface PutCourse {
|
|
|
33
33
|
* @memberof PutCourse
|
|
34
34
|
*/
|
|
35
35
|
description?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof PutCourse
|
|
40
|
-
*/
|
|
41
|
-
instructor?: string;
|
|
42
36
|
/**
|
|
43
37
|
* Whether the course is published and visible to students
|
|
44
38
|
* @type {boolean}
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -35,7 +35,6 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'id': json['id'] == null ? undefined : json['id'],
|
|
36
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
37
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
-
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
39
38
|
'published': json['published'] == null ? undefined : json['published'],
|
|
40
39
|
};
|
|
41
40
|
}
|
|
@@ -49,7 +48,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
48
|
return {
|
|
50
49
|
'name': value['name'],
|
|
51
50
|
'description': value['description'],
|
|
52
|
-
'instructor': value['instructor'],
|
|
53
51
|
'published': value['published'],
|
|
54
52
|
};
|
|
55
53
|
}
|
|
@@ -27,12 +27,6 @@ export interface PutModule {
|
|
|
27
27
|
* @memberof PutModule
|
|
28
28
|
*/
|
|
29
29
|
description?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof PutModule
|
|
34
|
-
*/
|
|
35
|
-
order?: number;
|
|
36
30
|
/**
|
|
37
31
|
* Whether the module is published and visible to students
|
|
38
32
|
* @type {boolean}
|
package/dist/models/PutModule.js
CHANGED
|
@@ -34,7 +34,6 @@ function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
-
'order': json['order'] == null ? undefined : json['order'],
|
|
38
37
|
'published': json['published'] == null ? undefined : json['published'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
@@ -48,7 +47,6 @@ function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
47
|
return {
|
|
49
48
|
'name': value['name'],
|
|
50
49
|
'description': value['description'],
|
|
51
|
-
'order': value['order'],
|
|
52
50
|
'published': value['published'],
|
|
53
51
|
};
|
|
54
52
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PutModuleReorder
|
|
16
|
+
*/
|
|
17
|
+
export interface PutModuleReorder {
|
|
18
|
+
/**
|
|
19
|
+
* Ordered list of module IDs
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof PutModuleReorder
|
|
22
|
+
*/
|
|
23
|
+
ids: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutModuleReorder(value: object): value is PutModuleReorder;
|
|
29
|
+
export declare function PutModuleReorderFromJSON(json: any): PutModuleReorder;
|
|
30
|
+
export declare function PutModuleReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutModuleReorder;
|
|
31
|
+
export declare function PutModuleReorderToJSON(json: any): PutModuleReorder;
|
|
32
|
+
export declare function PutModuleReorderToJSONTyped(value?: PutModuleReorder | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutModuleReorder = instanceOfPutModuleReorder;
|
|
17
|
+
exports.PutModuleReorderFromJSON = PutModuleReorderFromJSON;
|
|
18
|
+
exports.PutModuleReorderFromJSONTyped = PutModuleReorderFromJSONTyped;
|
|
19
|
+
exports.PutModuleReorderToJSON = PutModuleReorderToJSON;
|
|
20
|
+
exports.PutModuleReorderToJSONTyped = PutModuleReorderToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutModuleReorder(value) {
|
|
25
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutModuleReorderFromJSON(json) {
|
|
30
|
+
return PutModuleReorderFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutModuleReorderFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ids': json['ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutModuleReorderToJSON(json) {
|
|
41
|
+
return PutModuleReorderToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutModuleReorderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ids': value['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -193,10 +193,12 @@ export * from './PostVerifyManifest';
|
|
|
193
193
|
export * from './PostVerifyManifestItemsInner';
|
|
194
194
|
export * from './PostVerifyManifestResourcesInner';
|
|
195
195
|
export * from './PutContent';
|
|
196
|
+
export * from './PutContentReorder';
|
|
196
197
|
export * from './PutContentVersion';
|
|
197
198
|
export * from './PutCourse';
|
|
198
199
|
export * from './PutCourseEnrollment';
|
|
199
200
|
export * from './PutModule';
|
|
201
|
+
export * from './PutModuleReorder';
|
|
200
202
|
export * from './PutPortalBranding';
|
|
201
203
|
export * from './PutQuestion';
|
|
202
204
|
export * from './PutQuestionAnswerChoicesInner';
|
package/dist/models/index.js
CHANGED
|
@@ -211,10 +211,12 @@ __exportStar(require("./PostVerifyManifest"), exports);
|
|
|
211
211
|
__exportStar(require("./PostVerifyManifestItemsInner"), exports);
|
|
212
212
|
__exportStar(require("./PostVerifyManifestResourcesInner"), exports);
|
|
213
213
|
__exportStar(require("./PutContent"), exports);
|
|
214
|
+
__exportStar(require("./PutContentReorder"), exports);
|
|
214
215
|
__exportStar(require("./PutContentVersion"), exports);
|
|
215
216
|
__exportStar(require("./PutCourse"), exports);
|
|
216
217
|
__exportStar(require("./PutCourseEnrollment"), exports);
|
|
217
218
|
__exportStar(require("./PutModule"), exports);
|
|
219
|
+
__exportStar(require("./PutModuleReorder"), exports);
|
|
218
220
|
__exportStar(require("./PutPortalBranding"), exports);
|
|
219
221
|
__exportStar(require("./PutQuestion"), exports);
|
|
220
222
|
__exportStar(require("./PutQuestionAnswerChoicesInner"), exports);
|
package/docs/ContentApi.md
CHANGED
|
@@ -22,6 +22,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
22
22
|
| [**postContentSession**](ContentApi.md#postcontentsession) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | Post a new content session |
|
|
23
23
|
| [**postContentUpload**](ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload |
|
|
24
24
|
| [**putContent**](ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id |
|
|
25
|
+
| [**putContentReorder**](ContentApi.md#putcontentreorder) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/reorder | Reorder content in a module |
|
|
25
26
|
| [**putContentVersion**](ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version |
|
|
26
27
|
| [**setScormValue**](ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value |
|
|
27
28
|
| [**terminateScormSession**](ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session |
|
|
@@ -1352,6 +1353,77 @@ No authorization required
|
|
|
1352
1353
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1353
1354
|
|
|
1354
1355
|
|
|
1356
|
+
## putContentReorder
|
|
1357
|
+
|
|
1358
|
+
> putContentReorder(moduleId, courseId, putContentReorder)
|
|
1359
|
+
|
|
1360
|
+
Reorder content in a module
|
|
1361
|
+
|
|
1362
|
+
### Example
|
|
1363
|
+
|
|
1364
|
+
```ts
|
|
1365
|
+
import {
|
|
1366
|
+
Configuration,
|
|
1367
|
+
ContentApi,
|
|
1368
|
+
} from '@easyedu/js-lsm-api';
|
|
1369
|
+
import type { PutContentReorderRequest } from '@easyedu/js-lsm-api';
|
|
1370
|
+
|
|
1371
|
+
async function example() {
|
|
1372
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1373
|
+
const api = new ContentApi();
|
|
1374
|
+
|
|
1375
|
+
const body = {
|
|
1376
|
+
// string
|
|
1377
|
+
moduleId: moduleId_example,
|
|
1378
|
+
// string
|
|
1379
|
+
courseId: courseId_example,
|
|
1380
|
+
// PutContentReorder | Ordered list of content IDs
|
|
1381
|
+
putContentReorder: ...,
|
|
1382
|
+
} satisfies PutContentReorderRequest;
|
|
1383
|
+
|
|
1384
|
+
try {
|
|
1385
|
+
const data = await api.putContentReorder(body);
|
|
1386
|
+
console.log(data);
|
|
1387
|
+
} catch (error) {
|
|
1388
|
+
console.error(error);
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
// Run the test
|
|
1393
|
+
example().catch(console.error);
|
|
1394
|
+
```
|
|
1395
|
+
|
|
1396
|
+
### Parameters
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
| Name | Type | Description | Notes |
|
|
1400
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1401
|
+
| **moduleId** | `string` | | [Defaults to `undefined`] |
|
|
1402
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
1403
|
+
| **putContentReorder** | [PutContentReorder](PutContentReorder.md) | Ordered list of content IDs | |
|
|
1404
|
+
|
|
1405
|
+
### Return type
|
|
1406
|
+
|
|
1407
|
+
`void` (Empty response body)
|
|
1408
|
+
|
|
1409
|
+
### Authorization
|
|
1410
|
+
|
|
1411
|
+
No authorization required
|
|
1412
|
+
|
|
1413
|
+
### HTTP request headers
|
|
1414
|
+
|
|
1415
|
+
- **Content-Type**: `application/json`
|
|
1416
|
+
- **Accept**: Not defined
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
### HTTP response details
|
|
1420
|
+
| Status code | Description | Response headers |
|
|
1421
|
+
|-------------|-------------|------------------|
|
|
1422
|
+
| **200** | Content reordered successfully | - |
|
|
1423
|
+
|
|
1424
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1425
|
+
|
|
1426
|
+
|
|
1355
1427
|
## putContentVersion
|
|
1356
1428
|
|
|
1357
1429
|
> GetContentVersion putContentVersion(contentId, moduleId, courseId, versionId, putContentVersion)
|
package/docs/ModuleApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
8
8
|
| [**getModuleList**](ModuleApi.md#getmodulelist) | **GET** /courses/{courseId}/modules | get module list |
|
|
9
9
|
| [**postModule**](ModuleApi.md#postmodule) | **POST** /courses/{courseId}/modules | Post a new module |
|
|
10
10
|
| [**putModule**](ModuleApi.md#putmodule) | **PUT** /courses/{courseId}/modules/{moduleId} | Update a module by id |
|
|
11
|
+
| [**putModuleReorder**](ModuleApi.md#putmodulereorder) | **PUT** /courses/{courseId}/modules/reorder | Reorder modules in a course |
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -282,3 +283,71 @@ No authorization required
|
|
|
282
283
|
|
|
283
284
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
284
285
|
|
|
286
|
+
|
|
287
|
+
## putModuleReorder
|
|
288
|
+
|
|
289
|
+
> putModuleReorder(courseId, putModuleReorder)
|
|
290
|
+
|
|
291
|
+
Reorder modules in a course
|
|
292
|
+
|
|
293
|
+
### Example
|
|
294
|
+
|
|
295
|
+
```ts
|
|
296
|
+
import {
|
|
297
|
+
Configuration,
|
|
298
|
+
ModuleApi,
|
|
299
|
+
} from '@easyedu/js-lsm-api';
|
|
300
|
+
import type { PutModuleReorderRequest } from '@easyedu/js-lsm-api';
|
|
301
|
+
|
|
302
|
+
async function example() {
|
|
303
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
304
|
+
const api = new ModuleApi();
|
|
305
|
+
|
|
306
|
+
const body = {
|
|
307
|
+
// string
|
|
308
|
+
courseId: courseId_example,
|
|
309
|
+
// PutModuleReorder | Ordered list of module IDs
|
|
310
|
+
putModuleReorder: ...,
|
|
311
|
+
} satisfies PutModuleReorderRequest;
|
|
312
|
+
|
|
313
|
+
try {
|
|
314
|
+
const data = await api.putModuleReorder(body);
|
|
315
|
+
console.log(data);
|
|
316
|
+
} catch (error) {
|
|
317
|
+
console.error(error);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// Run the test
|
|
322
|
+
example().catch(console.error);
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Parameters
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
| Name | Type | Description | Notes |
|
|
329
|
+
|------------- | ------------- | ------------- | -------------|
|
|
330
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
331
|
+
| **putModuleReorder** | [PutModuleReorder](PutModuleReorder.md) | Ordered list of module IDs | |
|
|
332
|
+
|
|
333
|
+
### Return type
|
|
334
|
+
|
|
335
|
+
`void` (Empty response body)
|
|
336
|
+
|
|
337
|
+
### Authorization
|
|
338
|
+
|
|
339
|
+
No authorization required
|
|
340
|
+
|
|
341
|
+
### HTTP request headers
|
|
342
|
+
|
|
343
|
+
- **Content-Type**: `application/json`
|
|
344
|
+
- **Accept**: Not defined
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### HTTP response details
|
|
348
|
+
| Status code | Description | Response headers |
|
|
349
|
+
|-------------|-------------|------------------|
|
|
350
|
+
| **200** | Modules reordered successfully | - |
|
|
351
|
+
|
|
352
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
353
|
+
|
package/docs/PostContentQuiz.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`description` | string
|
|
11
11
|
`questionSelection` | [PostContentQuizQuestionSelection](PostContentQuizQuestionSelection.md)
|
|
12
12
|
`settings` | [PostContentQuizSettings](PostContentQuizSettings.md)
|
|
13
|
+
`order` | number
|
|
13
14
|
`assignment` | [PostContentQuizAssignment](PostContentQuizAssignment.md)
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"description": null,
|
|
24
25
|
"questionSelection": null,
|
|
25
26
|
"settings": null,
|
|
27
|
+
"order": null,
|
|
26
28
|
"assignment": null,
|
|
27
29
|
} satisfies PostContentQuiz
|
|
28
30
|
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`contentType` | string
|
|
11
|
+
`order` | number
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { PostContentUpload } from '@easyedu/js-lsm-api'
|
|
|
18
19
|
const example = {
|
|
19
20
|
"name": null,
|
|
20
21
|
"contentType": null,
|
|
22
|
+
"order": null,
|
|
21
23
|
} satisfies PostContentUpload
|
|
22
24
|
|
|
23
25
|
console.log(example)
|