@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,126 @@
|
|
|
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 { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentLibraryVersion
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentLibraryVersion {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentLibraryVersion
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof GetContentLibraryVersion
|
|
30
|
+
*/
|
|
31
|
+
versionNumber: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ContentLibraryVersionStatus}
|
|
35
|
+
* @memberof GetContentLibraryVersion
|
|
36
|
+
*/
|
|
37
|
+
status: ContentLibraryVersionStatus;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetContentLibraryVersion
|
|
42
|
+
*/
|
|
43
|
+
changeNotes?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: any; }}
|
|
47
|
+
* @memberof GetContentLibraryVersion
|
|
48
|
+
*/
|
|
49
|
+
metadata: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GetContentLibraryVersion
|
|
56
|
+
*/
|
|
57
|
+
filename?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof GetContentLibraryVersion
|
|
62
|
+
*/
|
|
63
|
+
mimeType?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetContentLibraryVersion
|
|
68
|
+
*/
|
|
69
|
+
fileSizeBytes?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof GetContentLibraryVersion
|
|
74
|
+
*/
|
|
75
|
+
checksumSha256?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof GetContentLibraryVersion
|
|
80
|
+
*/
|
|
81
|
+
linkUrl?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {RichTextDocument}
|
|
85
|
+
* @memberof GetContentLibraryVersion
|
|
86
|
+
*/
|
|
87
|
+
richText?: RichTextDocument | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof GetContentLibraryVersion
|
|
92
|
+
*/
|
|
93
|
+
createdBy: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof GetContentLibraryVersion
|
|
98
|
+
*/
|
|
99
|
+
createdAt: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof GetContentLibraryVersion
|
|
104
|
+
*/
|
|
105
|
+
updatedAt: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof GetContentLibraryVersion
|
|
110
|
+
*/
|
|
111
|
+
publishedAt?: number | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof GetContentLibraryVersion
|
|
116
|
+
*/
|
|
117
|
+
archivedAt?: number | null;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Check if a given object implements the GetContentLibraryVersion interface.
|
|
121
|
+
*/
|
|
122
|
+
export declare function instanceOfGetContentLibraryVersion(value: object): value is GetContentLibraryVersion;
|
|
123
|
+
export declare function GetContentLibraryVersionFromJSON(json: any): GetContentLibraryVersion;
|
|
124
|
+
export declare function GetContentLibraryVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryVersion;
|
|
125
|
+
export declare function GetContentLibraryVersionToJSON(json: any): GetContentLibraryVersion;
|
|
126
|
+
export declare function GetContentLibraryVersionToJSONTyped(value?: GetContentLibraryVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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.instanceOfGetContentLibraryVersion = instanceOfGetContentLibraryVersion;
|
|
17
|
+
exports.GetContentLibraryVersionFromJSON = GetContentLibraryVersionFromJSON;
|
|
18
|
+
exports.GetContentLibraryVersionFromJSONTyped = GetContentLibraryVersionFromJSONTyped;
|
|
19
|
+
exports.GetContentLibraryVersionToJSON = GetContentLibraryVersionToJSON;
|
|
20
|
+
exports.GetContentLibraryVersionToJSONTyped = GetContentLibraryVersionToJSONTyped;
|
|
21
|
+
const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetContentLibraryVersion interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetContentLibraryVersion(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function GetContentLibraryVersionFromJSON(json) {
|
|
44
|
+
return GetContentLibraryVersionFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetContentLibraryVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'versionNumber': json['version_number'],
|
|
53
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusFromJSON)(json['status']),
|
|
54
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
55
|
+
'metadata': json['metadata'],
|
|
56
|
+
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
57
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
58
|
+
'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
|
|
59
|
+
'checksumSha256': json['checksum_sha256'] == null ? undefined : json['checksum_sha256'],
|
|
60
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
61
|
+
'richText': json['rich_text'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['rich_text']),
|
|
62
|
+
'createdBy': json['created_by'],
|
|
63
|
+
'createdAt': json['created_at'],
|
|
64
|
+
'updatedAt': json['updated_at'],
|
|
65
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
66
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function GetContentLibraryVersionToJSON(json) {
|
|
70
|
+
return GetContentLibraryVersionToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function GetContentLibraryVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'version_number': value['versionNumber'],
|
|
79
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusToJSON)(value['status']),
|
|
80
|
+
'change_notes': value['changeNotes'],
|
|
81
|
+
'metadata': value['metadata'],
|
|
82
|
+
'filename': value['filename'],
|
|
83
|
+
'mime_type': value['mimeType'],
|
|
84
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
85
|
+
'checksum_sha256': value['checksumSha256'],
|
|
86
|
+
'link_url': value['linkUrl'],
|
|
87
|
+
'rich_text': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['richText']),
|
|
88
|
+
'created_by': value['createdBy'],
|
|
89
|
+
'created_at': value['createdAt'],
|
|
90
|
+
'updated_at': value['updatedAt'],
|
|
91
|
+
'published_at': value['publishedAt'],
|
|
92
|
+
'archived_at': value['archivedAt'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { GetCourseVersionModule } from './GetCourseVersionModule';
|
|
13
|
+
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
14
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetCourseVersion
|
|
19
|
+
*/
|
|
20
|
+
export interface GetCourseVersion {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof GetCourseVersion
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof GetCourseVersion
|
|
31
|
+
*/
|
|
32
|
+
courseId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof GetCourseVersion
|
|
37
|
+
*/
|
|
38
|
+
versionNumber: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ContentLibraryVersionStatus}
|
|
42
|
+
* @memberof GetCourseVersion
|
|
43
|
+
*/
|
|
44
|
+
status: ContentLibraryVersionStatus;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof GetCourseVersion
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GetCourseVersion
|
|
55
|
+
*/
|
|
56
|
+
description: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {RichTextDocument}
|
|
60
|
+
* @memberof GetCourseVersion
|
|
61
|
+
*/
|
|
62
|
+
descriptionRich: RichTextDocument;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof GetCourseVersion
|
|
67
|
+
*/
|
|
68
|
+
changeNotes?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<GetCourseVersionModule>}
|
|
72
|
+
* @memberof GetCourseVersion
|
|
73
|
+
*/
|
|
74
|
+
modules: Array<GetCourseVersionModule>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof GetCourseVersion
|
|
79
|
+
*/
|
|
80
|
+
createdAt: number;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof GetCourseVersion
|
|
85
|
+
*/
|
|
86
|
+
updatedAt: number;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof GetCourseVersion
|
|
91
|
+
*/
|
|
92
|
+
publishedAt?: number | null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the GetCourseVersion interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfGetCourseVersion(value: object): value is GetCourseVersion;
|
|
98
|
+
export declare function GetCourseVersionFromJSON(json: any): GetCourseVersion;
|
|
99
|
+
export declare function GetCourseVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersion;
|
|
100
|
+
export declare function GetCourseVersionToJSON(json: any): GetCourseVersion;
|
|
101
|
+
export declare function GetCourseVersionToJSONTyped(value?: GetCourseVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.instanceOfGetCourseVersion = instanceOfGetCourseVersion;
|
|
17
|
+
exports.GetCourseVersionFromJSON = GetCourseVersionFromJSON;
|
|
18
|
+
exports.GetCourseVersionFromJSONTyped = GetCourseVersionFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionToJSON = GetCourseVersionToJSON;
|
|
20
|
+
exports.GetCourseVersionToJSONTyped = GetCourseVersionToJSONTyped;
|
|
21
|
+
const GetCourseVersionModule_1 = require("./GetCourseVersionModule");
|
|
22
|
+
const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
23
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetCourseVersion interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetCourseVersion(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('modules' in value) || value['modules'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function GetCourseVersionFromJSON(json) {
|
|
51
|
+
return GetCourseVersionFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function GetCourseVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'courseId': json['course_id'],
|
|
60
|
+
'versionNumber': json['version_number'],
|
|
61
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusFromJSON)(json['status']),
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'description': json['description'],
|
|
64
|
+
'descriptionRich': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
65
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
66
|
+
'modules': (json['modules'].map(GetCourseVersionModule_1.GetCourseVersionModuleFromJSON)),
|
|
67
|
+
'createdAt': json['created_at'],
|
|
68
|
+
'updatedAt': json['updated_at'],
|
|
69
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function GetCourseVersionToJSON(json) {
|
|
73
|
+
return GetCourseVersionToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function GetCourseVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'course_id': value['courseId'],
|
|
82
|
+
'version_number': value['versionNumber'],
|
|
83
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusToJSON)(value['status']),
|
|
84
|
+
'name': value['name'],
|
|
85
|
+
'description': value['description'],
|
|
86
|
+
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
87
|
+
'change_notes': value['changeNotes'],
|
|
88
|
+
'modules': (value['modules'].map(GetCourseVersionModule_1.GetCourseVersionModuleToJSON)),
|
|
89
|
+
'created_at': value['createdAt'],
|
|
90
|
+
'updated_at': value['updatedAt'],
|
|
91
|
+
'published_at': value['publishedAt'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
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 GetCourseVersionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseVersionItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetCourseVersionItem
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {GetCourseVersionItemSourceKindEnum}
|
|
28
|
+
* @memberof GetCourseVersionItem
|
|
29
|
+
*/
|
|
30
|
+
sourceKind: GetCourseVersionItemSourceKindEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetCourseVersionItem
|
|
35
|
+
*/
|
|
36
|
+
contentLibraryItemId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetCourseVersionItem
|
|
41
|
+
*/
|
|
42
|
+
contentLibraryVersionId?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetCourseVersionItem
|
|
47
|
+
*/
|
|
48
|
+
resourceVersionNumber?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetCourseVersionItem
|
|
53
|
+
*/
|
|
54
|
+
latestPublishedVersionId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof GetCourseVersionItem
|
|
59
|
+
*/
|
|
60
|
+
latestPublishedVersionNumber?: number | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof GetCourseVersionItem
|
|
65
|
+
*/
|
|
66
|
+
updateAvailable: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof GetCourseVersionItem
|
|
71
|
+
*/
|
|
72
|
+
displayName: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GetCourseVersionItem
|
|
77
|
+
*/
|
|
78
|
+
displayOrder: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof GetCourseVersionItem
|
|
83
|
+
*/
|
|
84
|
+
isVisible: boolean;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {ContentLaunchMode}
|
|
88
|
+
* @memberof GetCourseVersionItem
|
|
89
|
+
*/
|
|
90
|
+
launchMode: ContentLaunchMode;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof GetCourseVersionItem
|
|
95
|
+
*/
|
|
96
|
+
maxAttempts: number;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {GetCourseVersionItemScoreRollupStrategyEnum}
|
|
100
|
+
* @memberof GetCourseVersionItem
|
|
101
|
+
*/
|
|
102
|
+
scoreRollupStrategy: GetCourseVersionItemScoreRollupStrategyEnum;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {{ [key: string]: any; }}
|
|
106
|
+
* @memberof GetCourseVersionItem
|
|
107
|
+
*/
|
|
108
|
+
settings: {
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export declare const GetCourseVersionItemSourceKindEnum: {
|
|
116
|
+
readonly Library: "library";
|
|
117
|
+
readonly QuizSnapshot: "quiz_snapshot";
|
|
118
|
+
};
|
|
119
|
+
export type GetCourseVersionItemSourceKindEnum = typeof GetCourseVersionItemSourceKindEnum[keyof typeof GetCourseVersionItemSourceKindEnum];
|
|
120
|
+
/**
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export declare const GetCourseVersionItemScoreRollupStrategyEnum: {
|
|
124
|
+
readonly Latest: "Latest";
|
|
125
|
+
readonly Best: "Best";
|
|
126
|
+
};
|
|
127
|
+
export type GetCourseVersionItemScoreRollupStrategyEnum = typeof GetCourseVersionItemScoreRollupStrategyEnum[keyof typeof GetCourseVersionItemScoreRollupStrategyEnum];
|
|
128
|
+
/**
|
|
129
|
+
* Check if a given object implements the GetCourseVersionItem interface.
|
|
130
|
+
*/
|
|
131
|
+
export declare function instanceOfGetCourseVersionItem(value: object): value is GetCourseVersionItem;
|
|
132
|
+
export declare function GetCourseVersionItemFromJSON(json: any): GetCourseVersionItem;
|
|
133
|
+
export declare function GetCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionItem;
|
|
134
|
+
export declare function GetCourseVersionItemToJSON(json: any): GetCourseVersionItem;
|
|
135
|
+
export declare function GetCourseVersionItemToJSONTyped(value?: GetCourseVersionItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,112 @@
|
|
|
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.GetCourseVersionItemScoreRollupStrategyEnum = exports.GetCourseVersionItemSourceKindEnum = void 0;
|
|
17
|
+
exports.instanceOfGetCourseVersionItem = instanceOfGetCourseVersionItem;
|
|
18
|
+
exports.GetCourseVersionItemFromJSON = GetCourseVersionItemFromJSON;
|
|
19
|
+
exports.GetCourseVersionItemFromJSONTyped = GetCourseVersionItemFromJSONTyped;
|
|
20
|
+
exports.GetCourseVersionItemToJSON = GetCourseVersionItemToJSON;
|
|
21
|
+
exports.GetCourseVersionItemToJSONTyped = GetCourseVersionItemToJSONTyped;
|
|
22
|
+
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GetCourseVersionItemSourceKindEnum = {
|
|
27
|
+
Library: 'library',
|
|
28
|
+
QuizSnapshot: 'quiz_snapshot'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.GetCourseVersionItemScoreRollupStrategyEnum = {
|
|
34
|
+
Latest: 'Latest',
|
|
35
|
+
Best: 'Best'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetCourseVersionItem interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfGetCourseVersionItem(value) {
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('sourceKind' in value) || value['sourceKind'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updateAvailable' in value) || value['updateAvailable'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('isVisible' in value) || value['isVisible'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('settings' in value) || value['settings'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
function GetCourseVersionItemFromJSON(json) {
|
|
64
|
+
return GetCourseVersionItemFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function GetCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': json['id'],
|
|
72
|
+
'sourceKind': json['source_kind'],
|
|
73
|
+
'contentLibraryItemId': json['content_library_item_id'] == null ? undefined : json['content_library_item_id'],
|
|
74
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
75
|
+
'resourceVersionNumber': json['resource_version_number'] == null ? undefined : json['resource_version_number'],
|
|
76
|
+
'latestPublishedVersionId': json['latest_published_version_id'] == null ? undefined : json['latest_published_version_id'],
|
|
77
|
+
'latestPublishedVersionNumber': json['latest_published_version_number'] == null ? undefined : json['latest_published_version_number'],
|
|
78
|
+
'updateAvailable': json['update_available'],
|
|
79
|
+
'displayName': json['display_name'],
|
|
80
|
+
'displayOrder': json['display_order'],
|
|
81
|
+
'isVisible': json['is_visible'],
|
|
82
|
+
'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
83
|
+
'maxAttempts': json['max_attempts'],
|
|
84
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
85
|
+
'settings': json['settings'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function GetCourseVersionItemToJSON(json) {
|
|
89
|
+
return GetCourseVersionItemToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
function GetCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
'id': value['id'],
|
|
97
|
+
'source_kind': value['sourceKind'],
|
|
98
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
99
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
100
|
+
'resource_version_number': value['resourceVersionNumber'],
|
|
101
|
+
'latest_published_version_id': value['latestPublishedVersionId'],
|
|
102
|
+
'latest_published_version_number': value['latestPublishedVersionNumber'],
|
|
103
|
+
'update_available': value['updateAvailable'],
|
|
104
|
+
'display_name': value['displayName'],
|
|
105
|
+
'display_order': value['displayOrder'],
|
|
106
|
+
'is_visible': value['isVisible'],
|
|
107
|
+
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
108
|
+
'max_attempts': value['maxAttempts'],
|
|
109
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
110
|
+
'settings': value['settings'],
|
|
111
|
+
};
|
|
112
|
+
}
|