@easyedu/js-lsm-api 1.83.0 → 1.84.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 +52 -0
- package/README.md +60 -2
- package/dist/apis/ContentLibraryApi.d.ts +290 -0
- package/dist/apis/ContentLibraryApi.js +744 -0
- package/dist/apis/CourseApi.d.ts +172 -0
- package/dist/apis/CourseApi.js +443 -0
- package/dist/apis/PlayerApi.d.ts +112 -0
- package/dist/apis/PlayerApi.js +297 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryApi.d.ts +290 -0
- package/dist/esm/apis/ContentLibraryApi.js +740 -0
- package/dist/esm/apis/CourseApi.d.ts +172 -0
- package/dist/esm/apis/CourseApi.js +443 -0
- package/dist/esm/apis/PlayerApi.d.ts +112 -0
- package/dist/esm/apis/PlayerApi.js +297 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ContentLibraryVersionStatus.d.ts +26 -0
- package/dist/esm/models/ContentLibraryVersionStatus.js +44 -0
- package/dist/esm/models/GetContentLibraryVersion.d.ts +126 -0
- package/dist/esm/models/GetContentLibraryVersion.js +87 -0
- package/dist/esm/models/GetCourseVersion.d.ts +101 -0
- package/dist/esm/models/GetCourseVersion.js +86 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +135 -0
- package/dist/esm/models/GetCourseVersionItem.js +104 -0
- package/dist/esm/models/GetCourseVersionItemLaunch.d.ts +103 -0
- package/dist/esm/models/GetCourseVersionItemLaunch.js +82 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +124 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +101 -0
- package/dist/esm/models/GetCourseVersionList.d.ts +33 -0
- package/dist/esm/models/GetCourseVersionList.js +44 -0
- package/dist/esm/models/GetCourseVersionModule.d.ts +64 -0
- package/dist/esm/models/GetCourseVersionModule.js +65 -0
- package/dist/esm/models/GetResource.d.ts +118 -0
- package/dist/esm/models/GetResource.js +95 -0
- package/dist/esm/models/GetResourceList.d.ts +57 -0
- package/dist/esm/models/GetResourceList.js +60 -0
- package/dist/esm/models/GetResourceUsage.d.ts +63 -0
- package/dist/esm/models/GetResourceUsage.js +64 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +63 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.js +64 -0
- package/dist/esm/models/GetResourceVersionUpload.d.ts +38 -0
- package/dist/esm/models/GetResourceVersionUpload.js +47 -0
- package/dist/esm/models/PostCourseDraft.d.ts +32 -0
- package/dist/esm/models/PostCourseDraft.js +41 -0
- package/dist/esm/models/PostCourseVersionItem.d.ts +97 -0
- package/dist/esm/models/PostCourseVersionItem.js +71 -0
- package/dist/esm/models/PostCourseVersionItemSession.d.ts +32 -0
- package/dist/esm/models/PostCourseVersionItemSession.js +41 -0
- package/dist/esm/models/PostCourseVersionPublish.d.ts +32 -0
- package/dist/esm/models/PostCourseVersionPublish.js +41 -0
- package/dist/esm/models/PostResource.d.ts +58 -0
- package/dist/esm/models/PostResource.js +55 -0
- package/dist/esm/models/PostResourceVersion.d.ts +45 -0
- package/dist/esm/models/PostResourceVersion.js +46 -0
- package/dist/esm/models/PostResourceVersionComplete.d.ts +32 -0
- package/dist/esm/models/PostResourceVersionComplete.js +43 -0
- package/dist/esm/models/PostResourceVersionUpload.d.ts +50 -0
- package/dist/esm/models/PostResourceVersionUpload.js +55 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +85 -0
- package/dist/esm/models/PutCourseVersionItem.js +63 -0
- package/dist/esm/models/PutResource.d.ts +38 -0
- package/dist/esm/models/PutResource.js +43 -0
- package/dist/esm/models/PutResourceVersion.d.ts +53 -0
- package/dist/esm/models/PutResourceVersion.js +48 -0
- package/dist/esm/models/ResourceType.d.ts +32 -0
- package/dist/esm/models/ResourceType.js +50 -0
- package/dist/esm/models/index.d.ts +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/models/ContentLibraryVersionStatus.d.ts +26 -0
- package/dist/models/ContentLibraryVersionStatus.js +52 -0
- package/dist/models/GetContentLibraryVersion.d.ts +126 -0
- package/dist/models/GetContentLibraryVersion.js +94 -0
- package/dist/models/GetCourseVersion.d.ts +101 -0
- package/dist/models/GetCourseVersion.js +93 -0
- package/dist/models/GetCourseVersionItem.d.ts +135 -0
- package/dist/models/GetCourseVersionItem.js +112 -0
- package/dist/models/GetCourseVersionItemLaunch.d.ts +103 -0
- package/dist/models/GetCourseVersionItemLaunch.js +89 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +124 -0
- package/dist/models/GetCourseVersionItemSession.js +108 -0
- package/dist/models/GetCourseVersionList.d.ts +33 -0
- package/dist/models/GetCourseVersionList.js +51 -0
- package/dist/models/GetCourseVersionModule.d.ts +64 -0
- package/dist/models/GetCourseVersionModule.js +72 -0
- package/dist/models/GetResource.d.ts +118 -0
- package/dist/models/GetResource.js +102 -0
- package/dist/models/GetResourceList.d.ts +57 -0
- package/dist/models/GetResourceList.js +67 -0
- package/dist/models/GetResourceUsage.d.ts +63 -0
- package/dist/models/GetResourceUsage.js +71 -0
- package/dist/models/GetResourceUsageCoursesInner.d.ts +63 -0
- package/dist/models/GetResourceUsageCoursesInner.js +71 -0
- package/dist/models/GetResourceVersionUpload.d.ts +38 -0
- package/dist/models/GetResourceVersionUpload.js +54 -0
- package/dist/models/PostCourseDraft.d.ts +32 -0
- package/dist/models/PostCourseDraft.js +48 -0
- package/dist/models/PostCourseVersionItem.d.ts +97 -0
- package/dist/models/PostCourseVersionItem.js +79 -0
- package/dist/models/PostCourseVersionItemSession.d.ts +32 -0
- package/dist/models/PostCourseVersionItemSession.js +48 -0
- package/dist/models/PostCourseVersionPublish.d.ts +32 -0
- package/dist/models/PostCourseVersionPublish.js +48 -0
- package/dist/models/PostResource.d.ts +58 -0
- package/dist/models/PostResource.js +62 -0
- package/dist/models/PostResourceVersion.d.ts +45 -0
- package/dist/models/PostResourceVersion.js +53 -0
- package/dist/models/PostResourceVersionComplete.d.ts +32 -0
- package/dist/models/PostResourceVersionComplete.js +50 -0
- package/dist/models/PostResourceVersionUpload.d.ts +50 -0
- package/dist/models/PostResourceVersionUpload.js +62 -0
- package/dist/models/PutCourseVersionItem.d.ts +85 -0
- package/dist/models/PutCourseVersionItem.js +71 -0
- package/dist/models/PutResource.d.ts +38 -0
- package/dist/models/PutResource.js +50 -0
- package/dist/models/PutResourceVersion.d.ts +53 -0
- package/dist/models/PutResourceVersion.js +55 -0
- package/dist/models/ResourceType.d.ts +32 -0
- package/dist/models/ResourceType.js +58 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +25 -0
- package/docs/ContentLibraryApi.md +1132 -0
- package/docs/ContentLibraryVersionStatus.md +33 -0
- package/docs/CourseApi.md +797 -96
- package/docs/GetContentLibraryVersion.md +64 -0
- package/docs/GetCourseVersion.md +56 -0
- package/docs/GetCourseVersionItem.md +62 -0
- package/docs/GetCourseVersionItemLaunch.md +56 -0
- package/docs/GetCourseVersionItemSession.md +65 -0
- package/docs/GetCourseVersionList.md +34 -0
- package/docs/GetCourseVersionModule.md +44 -0
- package/docs/GetResource.md +62 -0
- package/docs/GetResourceList.md +42 -0
- package/docs/GetResourceUsage.md +44 -0
- package/docs/GetResourceUsageCoursesInner.md +44 -0
- package/docs/GetResourceVersionUpload.md +36 -0
- package/docs/PlayerApi.md +480 -0
- package/docs/PostCourseDraft.md +34 -0
- package/docs/PostCourseVersionItem.md +52 -0
- package/docs/PostCourseVersionItemSession.md +35 -0
- package/docs/PostCourseVersionPublish.md +34 -0
- package/docs/PostResource.md +42 -0
- package/docs/PostResourceVersion.md +38 -0
- package/docs/PostResourceVersionComplete.md +34 -0
- package/docs/PostResourceVersionUpload.md +40 -0
- package/docs/PutCourseVersionItem.md +48 -0
- package/docs/PutResource.md +36 -0
- package/docs/PutResourceVersion.md +40 -0
- package/docs/ResourceType.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +1024 -0
- package/src/apis/CourseApi.ts +636 -0
- package/src/apis/PlayerApi.ts +400 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ContentLibraryVersionStatus.ts +54 -0
- package/src/models/GetContentLibraryVersion.ts +209 -0
- package/src/models/GetCourseVersion.ts +187 -0
- package/src/models/GetCourseVersionItem.ts +215 -0
- package/src/models/GetCourseVersionItemLaunch.ts +185 -0
- package/src/models/GetCourseVersionItemSession.ts +216 -0
- package/src/models/GetCourseVersionList.ts +74 -0
- package/src/models/GetCourseVersionModule.ts +126 -0
- package/src/models/GetResource.ts +206 -0
- package/src/models/GetResourceList.ts +110 -0
- package/src/models/GetResourceUsage.ts +119 -0
- package/src/models/GetResourceUsageCoursesInner.ts +121 -0
- package/src/models/GetResourceVersionUpload.ts +75 -0
- package/src/models/PostCourseDraft.ts +65 -0
- package/src/models/PostCourseVersionItem.ts +158 -0
- package/src/models/PostCourseVersionItemSession.ts +65 -0
- package/src/models/PostCourseVersionPublish.ts +65 -0
- package/src/models/PostResource.ts +116 -0
- package/src/models/PostResourceVersion.ts +89 -0
- package/src/models/PostResourceVersionComplete.ts +66 -0
- package/src/models/PostResourceVersionUpload.ts +93 -0
- package/src/models/PutCourseVersionItem.ts +140 -0
- package/src/models/PutResource.ts +73 -0
- package/src/models/PutResourceVersion.ts +97 -0
- package/src/models/ResourceType.ts +60 -0
- package/src/models/index.ts +25 -0
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfPostResourceVersion = instanceOfPostResourceVersion;
|
|
17
|
+
exports.PostResourceVersionFromJSON = PostResourceVersionFromJSON;
|
|
18
|
+
exports.PostResourceVersionFromJSONTyped = PostResourceVersionFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionToJSON = PostResourceVersionToJSON;
|
|
20
|
+
exports.PostResourceVersionToJSONTyped = PostResourceVersionToJSONTyped;
|
|
21
|
+
const RichTextInput_1 = require("./RichTextInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostResourceVersion interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPostResourceVersion(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function PostResourceVersionFromJSON(json) {
|
|
29
|
+
return PostResourceVersionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function PostResourceVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
37
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
38
|
+
'richText': json['rich_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['rich_text']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PostResourceVersionToJSON(json) {
|
|
42
|
+
return PostResourceVersionToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PostResourceVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'change_notes': value['changeNotes'],
|
|
50
|
+
'link_url': value['linkUrl'],
|
|
51
|
+
'rich_text': (0, RichTextInput_1.RichTextInputToJSON)(value['richText']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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 PostResourceVersionComplete
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceVersionComplete {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostResourceVersionComplete
|
|
22
|
+
*/
|
|
23
|
+
checksumSha256: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostResourceVersionComplete interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostResourceVersionComplete(value: object): value is PostResourceVersionComplete;
|
|
29
|
+
export declare function PostResourceVersionCompleteFromJSON(json: any): PostResourceVersionComplete;
|
|
30
|
+
export declare function PostResourceVersionCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionComplete;
|
|
31
|
+
export declare function PostResourceVersionCompleteToJSON(json: any): PostResourceVersionComplete;
|
|
32
|
+
export declare function PostResourceVersionCompleteToJSONTyped(value?: PostResourceVersionComplete | 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.instanceOfPostResourceVersionComplete = instanceOfPostResourceVersionComplete;
|
|
17
|
+
exports.PostResourceVersionCompleteFromJSON = PostResourceVersionCompleteFromJSON;
|
|
18
|
+
exports.PostResourceVersionCompleteFromJSONTyped = PostResourceVersionCompleteFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionCompleteToJSON = PostResourceVersionCompleteToJSON;
|
|
20
|
+
exports.PostResourceVersionCompleteToJSONTyped = PostResourceVersionCompleteToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostResourceVersionComplete interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostResourceVersionComplete(value) {
|
|
25
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostResourceVersionCompleteFromJSON(json) {
|
|
30
|
+
return PostResourceVersionCompleteFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostResourceVersionCompleteFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'checksumSha256': json['checksum_sha256'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostResourceVersionCompleteToJSON(json) {
|
|
41
|
+
return PostResourceVersionCompleteToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostResourceVersionCompleteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'checksum_sha256': value['checksumSha256'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PostResourceVersionUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceVersionUpload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostResourceVersionUpload
|
|
22
|
+
*/
|
|
23
|
+
filename: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostResourceVersionUpload
|
|
28
|
+
*/
|
|
29
|
+
mimeType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostResourceVersionUpload
|
|
34
|
+
*/
|
|
35
|
+
fileSizeBytes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostResourceVersionUpload
|
|
40
|
+
*/
|
|
41
|
+
checksumSha256: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PostResourceVersionUpload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPostResourceVersionUpload(value: object): value is PostResourceVersionUpload;
|
|
47
|
+
export declare function PostResourceVersionUploadFromJSON(json: any): PostResourceVersionUpload;
|
|
48
|
+
export declare function PostResourceVersionUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionUpload;
|
|
49
|
+
export declare function PostResourceVersionUploadToJSON(json: any): PostResourceVersionUpload;
|
|
50
|
+
export declare function PostResourceVersionUploadToJSONTyped(value?: PostResourceVersionUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfPostResourceVersionUpload = instanceOfPostResourceVersionUpload;
|
|
17
|
+
exports.PostResourceVersionUploadFromJSON = PostResourceVersionUploadFromJSON;
|
|
18
|
+
exports.PostResourceVersionUploadFromJSONTyped = PostResourceVersionUploadFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionUploadToJSON = PostResourceVersionUploadToJSON;
|
|
20
|
+
exports.PostResourceVersionUploadToJSONTyped = PostResourceVersionUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostResourceVersionUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostResourceVersionUpload(value) {
|
|
25
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('fileSizeBytes' in value) || value['fileSizeBytes'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PostResourceVersionUploadFromJSON(json) {
|
|
36
|
+
return PostResourceVersionUploadFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PostResourceVersionUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'filename': json['filename'],
|
|
44
|
+
'mimeType': json['mime_type'],
|
|
45
|
+
'fileSizeBytes': json['file_size_bytes'],
|
|
46
|
+
'checksumSha256': json['checksum_sha256'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PostResourceVersionUploadToJSON(json) {
|
|
50
|
+
return PostResourceVersionUploadToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PostResourceVersionUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'filename': value['filename'],
|
|
58
|
+
'mime_type': value['mimeType'],
|
|
59
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
60
|
+
'checksum_sha256': value['checksumSha256'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutCourseVersionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface PutCourseVersionItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PutCourseVersionItem
|
|
23
|
+
*/
|
|
24
|
+
contentLibraryVersionId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PutCourseVersionItem
|
|
29
|
+
*/
|
|
30
|
+
displayName?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PutCourseVersionItem
|
|
35
|
+
*/
|
|
36
|
+
displayOrder?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof PutCourseVersionItem
|
|
41
|
+
*/
|
|
42
|
+
isVisible?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ContentLaunchMode}
|
|
46
|
+
* @memberof PutCourseVersionItem
|
|
47
|
+
*/
|
|
48
|
+
launchMode?: ContentLaunchMode;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PutCourseVersionItem
|
|
53
|
+
*/
|
|
54
|
+
maxAttempts?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {PutCourseVersionItemScoreRollupStrategyEnum}
|
|
58
|
+
* @memberof PutCourseVersionItem
|
|
59
|
+
*/
|
|
60
|
+
scoreRollupStrategy?: PutCourseVersionItemScoreRollupStrategyEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
64
|
+
* @memberof PutCourseVersionItem
|
|
65
|
+
*/
|
|
66
|
+
settings?: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const PutCourseVersionItemScoreRollupStrategyEnum: {
|
|
74
|
+
readonly Latest: "Latest";
|
|
75
|
+
readonly Best: "Best";
|
|
76
|
+
};
|
|
77
|
+
export type PutCourseVersionItemScoreRollupStrategyEnum = typeof PutCourseVersionItemScoreRollupStrategyEnum[keyof typeof PutCourseVersionItemScoreRollupStrategyEnum];
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the PutCourseVersionItem interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfPutCourseVersionItem(value: object): value is PutCourseVersionItem;
|
|
82
|
+
export declare function PutCourseVersionItemFromJSON(json: any): PutCourseVersionItem;
|
|
83
|
+
export declare function PutCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionItem;
|
|
84
|
+
export declare function PutCourseVersionItemToJSON(json: any): PutCourseVersionItem;
|
|
85
|
+
export declare function PutCourseVersionItemToJSONTyped(value?: PutCourseVersionItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.PutCourseVersionItemScoreRollupStrategyEnum = void 0;
|
|
17
|
+
exports.instanceOfPutCourseVersionItem = instanceOfPutCourseVersionItem;
|
|
18
|
+
exports.PutCourseVersionItemFromJSON = PutCourseVersionItemFromJSON;
|
|
19
|
+
exports.PutCourseVersionItemFromJSONTyped = PutCourseVersionItemFromJSONTyped;
|
|
20
|
+
exports.PutCourseVersionItemToJSON = PutCourseVersionItemToJSON;
|
|
21
|
+
exports.PutCourseVersionItemToJSONTyped = PutCourseVersionItemToJSONTyped;
|
|
22
|
+
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PutCourseVersionItemScoreRollupStrategyEnum = {
|
|
27
|
+
Latest: 'Latest',
|
|
28
|
+
Best: 'Best'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutCourseVersionItem interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPutCourseVersionItem(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PutCourseVersionItemFromJSON(json) {
|
|
37
|
+
return PutCourseVersionItemFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PutCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
45
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
46
|
+
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
47
|
+
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
48
|
+
'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
49
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
50
|
+
'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
|
|
51
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function PutCourseVersionItemToJSON(json) {
|
|
55
|
+
return PutCourseVersionItemToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function PutCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
63
|
+
'display_name': value['displayName'],
|
|
64
|
+
'display_order': value['displayOrder'],
|
|
65
|
+
'is_visible': value['isVisible'],
|
|
66
|
+
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
67
|
+
'max_attempts': value['maxAttempts'],
|
|
68
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
69
|
+
'settings': value['settings'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PutResource
|
|
16
|
+
*/
|
|
17
|
+
export interface PutResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutResource
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutResource
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutResource(value: object): value is PutResource;
|
|
35
|
+
export declare function PutResourceFromJSON(json: any): PutResource;
|
|
36
|
+
export declare function PutResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResource;
|
|
37
|
+
export declare function PutResourceToJSON(json: any): PutResource;
|
|
38
|
+
export declare function PutResourceToJSONTyped(value?: PutResource | 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.instanceOfPutResource = instanceOfPutResource;
|
|
17
|
+
exports.PutResourceFromJSON = PutResourceFromJSON;
|
|
18
|
+
exports.PutResourceFromJSONTyped = PutResourceFromJSONTyped;
|
|
19
|
+
exports.PutResourceToJSON = PutResourceToJSON;
|
|
20
|
+
exports.PutResourceToJSONTyped = PutResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutResource(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutResourceFromJSON(json) {
|
|
28
|
+
return PutResourceFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function PutResourceToJSON(json) {
|
|
40
|
+
return PutResourceToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PutResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'description': value['description'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { RichTextInput } from './RichTextInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutResourceVersion
|
|
17
|
+
*/
|
|
18
|
+
export interface PutResourceVersion {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PutResourceVersion
|
|
23
|
+
*/
|
|
24
|
+
changeNotes?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
|
+
* @memberof PutResourceVersion
|
|
29
|
+
*/
|
|
30
|
+
metadata?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PutResourceVersion
|
|
37
|
+
*/
|
|
38
|
+
linkUrl?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {RichTextInput}
|
|
42
|
+
* @memberof PutResourceVersion
|
|
43
|
+
*/
|
|
44
|
+
richText?: RichTextInput | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PutResourceVersion interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfPutResourceVersion(value: object): value is PutResourceVersion;
|
|
50
|
+
export declare function PutResourceVersionFromJSON(json: any): PutResourceVersion;
|
|
51
|
+
export declare function PutResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResourceVersion;
|
|
52
|
+
export declare function PutResourceVersionToJSON(json: any): PutResourceVersion;
|
|
53
|
+
export declare function PutResourceVersionToJSONTyped(value?: PutResourceVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfPutResourceVersion = instanceOfPutResourceVersion;
|
|
17
|
+
exports.PutResourceVersionFromJSON = PutResourceVersionFromJSON;
|
|
18
|
+
exports.PutResourceVersionFromJSONTyped = PutResourceVersionFromJSONTyped;
|
|
19
|
+
exports.PutResourceVersionToJSON = PutResourceVersionToJSON;
|
|
20
|
+
exports.PutResourceVersionToJSONTyped = PutResourceVersionToJSONTyped;
|
|
21
|
+
const RichTextInput_1 = require("./RichTextInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PutResourceVersion interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPutResourceVersion(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function PutResourceVersionFromJSON(json) {
|
|
29
|
+
return PutResourceVersionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function PutResourceVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
37
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
38
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
39
|
+
'richText': json['rich_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['rich_text']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function PutResourceVersionToJSON(json) {
|
|
43
|
+
return PutResourceVersionToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PutResourceVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'change_notes': value['changeNotes'],
|
|
51
|
+
'metadata': value['metadata'],
|
|
52
|
+
'link_url': value['linkUrl'],
|
|
53
|
+
'rich_text': (0, RichTextInput_1.RichTextInputToJSON)(value['richText']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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
|
+
* Resource payload type.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ResourceType: {
|
|
17
|
+
readonly Scorm: "scorm";
|
|
18
|
+
readonly Video: "video";
|
|
19
|
+
readonly Audio: "audio";
|
|
20
|
+
readonly Image: "image";
|
|
21
|
+
readonly Pdf: "pdf";
|
|
22
|
+
readonly Powerpoint: "powerpoint";
|
|
23
|
+
readonly File: "file";
|
|
24
|
+
readonly Link: "link";
|
|
25
|
+
readonly RichText: "rich_text";
|
|
26
|
+
};
|
|
27
|
+
export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
|
|
28
|
+
export declare function instanceOfResourceType(value: any): boolean;
|
|
29
|
+
export declare function ResourceTypeFromJSON(json: any): ResourceType;
|
|
30
|
+
export declare function ResourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceType;
|
|
31
|
+
export declare function ResourceTypeToJSON(value?: ResourceType | null): any;
|
|
32
|
+
export declare function ResourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceType;
|