@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,209 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
17
|
+
import {
|
|
18
|
+
ContentLibraryVersionStatusFromJSON,
|
|
19
|
+
ContentLibraryVersionStatusFromJSONTyped,
|
|
20
|
+
ContentLibraryVersionStatusToJSON,
|
|
21
|
+
ContentLibraryVersionStatusToJSONTyped,
|
|
22
|
+
} from './ContentLibraryVersionStatus';
|
|
23
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
24
|
+
import {
|
|
25
|
+
RichTextDocumentFromJSON,
|
|
26
|
+
RichTextDocumentFromJSONTyped,
|
|
27
|
+
RichTextDocumentToJSON,
|
|
28
|
+
RichTextDocumentToJSONTyped,
|
|
29
|
+
} from './RichTextDocument';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetContentLibraryVersion
|
|
35
|
+
*/
|
|
36
|
+
export interface GetContentLibraryVersion {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetContentLibraryVersion
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetContentLibraryVersion
|
|
47
|
+
*/
|
|
48
|
+
versionNumber: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ContentLibraryVersionStatus}
|
|
52
|
+
* @memberof GetContentLibraryVersion
|
|
53
|
+
*/
|
|
54
|
+
status: ContentLibraryVersionStatus;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetContentLibraryVersion
|
|
59
|
+
*/
|
|
60
|
+
changeNotes?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
64
|
+
* @memberof GetContentLibraryVersion
|
|
65
|
+
*/
|
|
66
|
+
metadata: { [key: string]: any; };
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof GetContentLibraryVersion
|
|
71
|
+
*/
|
|
72
|
+
filename?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof GetContentLibraryVersion
|
|
77
|
+
*/
|
|
78
|
+
mimeType?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetContentLibraryVersion
|
|
83
|
+
*/
|
|
84
|
+
fileSizeBytes?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof GetContentLibraryVersion
|
|
89
|
+
*/
|
|
90
|
+
checksumSha256?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof GetContentLibraryVersion
|
|
95
|
+
*/
|
|
96
|
+
linkUrl?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {RichTextDocument}
|
|
100
|
+
* @memberof GetContentLibraryVersion
|
|
101
|
+
*/
|
|
102
|
+
richText?: RichTextDocument | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof GetContentLibraryVersion
|
|
107
|
+
*/
|
|
108
|
+
createdBy: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof GetContentLibraryVersion
|
|
113
|
+
*/
|
|
114
|
+
createdAt: number;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof GetContentLibraryVersion
|
|
119
|
+
*/
|
|
120
|
+
updatedAt: number;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof GetContentLibraryVersion
|
|
125
|
+
*/
|
|
126
|
+
publishedAt?: number | null;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof GetContentLibraryVersion
|
|
131
|
+
*/
|
|
132
|
+
archivedAt?: number | null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Check if a given object implements the GetContentLibraryVersion interface.
|
|
139
|
+
*/
|
|
140
|
+
export function instanceOfGetContentLibraryVersion(value: object): value is GetContentLibraryVersion {
|
|
141
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
142
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
|
|
143
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
144
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
145
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
146
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
147
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function GetContentLibraryVersionFromJSON(json: any): GetContentLibraryVersion {
|
|
152
|
+
return GetContentLibraryVersionFromJSONTyped(json, false);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function GetContentLibraryVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryVersion {
|
|
156
|
+
if (json == null) {
|
|
157
|
+
return json;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': json['id'],
|
|
162
|
+
'versionNumber': json['version_number'],
|
|
163
|
+
'status': ContentLibraryVersionStatusFromJSON(json['status']),
|
|
164
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
165
|
+
'metadata': json['metadata'],
|
|
166
|
+
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
167
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
168
|
+
'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
|
|
169
|
+
'checksumSha256': json['checksum_sha256'] == null ? undefined : json['checksum_sha256'],
|
|
170
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
171
|
+
'richText': json['rich_text'] == null ? undefined : RichTextDocumentFromJSON(json['rich_text']),
|
|
172
|
+
'createdBy': json['created_by'],
|
|
173
|
+
'createdAt': json['created_at'],
|
|
174
|
+
'updatedAt': json['updated_at'],
|
|
175
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
176
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function GetContentLibraryVersionToJSON(json: any): GetContentLibraryVersion {
|
|
181
|
+
return GetContentLibraryVersionToJSONTyped(json, false);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function GetContentLibraryVersionToJSONTyped(value?: GetContentLibraryVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
185
|
+
if (value == null) {
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return {
|
|
190
|
+
|
|
191
|
+
'id': value['id'],
|
|
192
|
+
'version_number': value['versionNumber'],
|
|
193
|
+
'status': ContentLibraryVersionStatusToJSON(value['status']),
|
|
194
|
+
'change_notes': value['changeNotes'],
|
|
195
|
+
'metadata': value['metadata'],
|
|
196
|
+
'filename': value['filename'],
|
|
197
|
+
'mime_type': value['mimeType'],
|
|
198
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
199
|
+
'checksum_sha256': value['checksumSha256'],
|
|
200
|
+
'link_url': value['linkUrl'],
|
|
201
|
+
'rich_text': RichTextDocumentToJSON(value['richText']),
|
|
202
|
+
'created_by': value['createdBy'],
|
|
203
|
+
'created_at': value['createdAt'],
|
|
204
|
+
'updated_at': value['updatedAt'],
|
|
205
|
+
'published_at': value['publishedAt'],
|
|
206
|
+
'archived_at': value['archivedAt'],
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetCourseVersionModule } from './GetCourseVersionModule';
|
|
17
|
+
import {
|
|
18
|
+
GetCourseVersionModuleFromJSON,
|
|
19
|
+
GetCourseVersionModuleFromJSONTyped,
|
|
20
|
+
GetCourseVersionModuleToJSON,
|
|
21
|
+
GetCourseVersionModuleToJSONTyped,
|
|
22
|
+
} from './GetCourseVersionModule';
|
|
23
|
+
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
24
|
+
import {
|
|
25
|
+
ContentLibraryVersionStatusFromJSON,
|
|
26
|
+
ContentLibraryVersionStatusFromJSONTyped,
|
|
27
|
+
ContentLibraryVersionStatusToJSON,
|
|
28
|
+
ContentLibraryVersionStatusToJSONTyped,
|
|
29
|
+
} from './ContentLibraryVersionStatus';
|
|
30
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
31
|
+
import {
|
|
32
|
+
RichTextDocumentFromJSON,
|
|
33
|
+
RichTextDocumentFromJSONTyped,
|
|
34
|
+
RichTextDocumentToJSON,
|
|
35
|
+
RichTextDocumentToJSONTyped,
|
|
36
|
+
} from './RichTextDocument';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetCourseVersion
|
|
42
|
+
*/
|
|
43
|
+
export interface GetCourseVersion {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetCourseVersion
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetCourseVersion
|
|
54
|
+
*/
|
|
55
|
+
courseId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof GetCourseVersion
|
|
60
|
+
*/
|
|
61
|
+
versionNumber: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ContentLibraryVersionStatus}
|
|
65
|
+
* @memberof GetCourseVersion
|
|
66
|
+
*/
|
|
67
|
+
status: ContentLibraryVersionStatus;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof GetCourseVersion
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof GetCourseVersion
|
|
78
|
+
*/
|
|
79
|
+
description: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {RichTextDocument}
|
|
83
|
+
* @memberof GetCourseVersion
|
|
84
|
+
*/
|
|
85
|
+
descriptionRich: RichTextDocument;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof GetCourseVersion
|
|
90
|
+
*/
|
|
91
|
+
changeNotes?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Array<GetCourseVersionModule>}
|
|
95
|
+
* @memberof GetCourseVersion
|
|
96
|
+
*/
|
|
97
|
+
modules: Array<GetCourseVersionModule>;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GetCourseVersion
|
|
102
|
+
*/
|
|
103
|
+
createdAt: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof GetCourseVersion
|
|
108
|
+
*/
|
|
109
|
+
updatedAt: number;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @memberof GetCourseVersion
|
|
114
|
+
*/
|
|
115
|
+
publishedAt?: number | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the GetCourseVersion interface.
|
|
122
|
+
*/
|
|
123
|
+
export function instanceOfGetCourseVersion(value: object): value is GetCourseVersion {
|
|
124
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
125
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
126
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
|
|
127
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
128
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
129
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
130
|
+
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined) return false;
|
|
131
|
+
if (!('modules' in value) || value['modules'] === undefined) return false;
|
|
132
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
133
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function GetCourseVersionFromJSON(json: any): GetCourseVersion {
|
|
138
|
+
return GetCourseVersionFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function GetCourseVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersion {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'id': json['id'],
|
|
148
|
+
'courseId': json['course_id'],
|
|
149
|
+
'versionNumber': json['version_number'],
|
|
150
|
+
'status': ContentLibraryVersionStatusFromJSON(json['status']),
|
|
151
|
+
'name': json['name'],
|
|
152
|
+
'description': json['description'],
|
|
153
|
+
'descriptionRich': RichTextDocumentFromJSON(json['description_rich']),
|
|
154
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
155
|
+
'modules': ((json['modules'] as Array<any>).map(GetCourseVersionModuleFromJSON)),
|
|
156
|
+
'createdAt': json['created_at'],
|
|
157
|
+
'updatedAt': json['updated_at'],
|
|
158
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function GetCourseVersionToJSON(json: any): GetCourseVersion {
|
|
163
|
+
return GetCourseVersionToJSONTyped(json, false);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function GetCourseVersionToJSONTyped(value?: GetCourseVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
167
|
+
if (value == null) {
|
|
168
|
+
return value;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
|
|
173
|
+
'id': value['id'],
|
|
174
|
+
'course_id': value['courseId'],
|
|
175
|
+
'version_number': value['versionNumber'],
|
|
176
|
+
'status': ContentLibraryVersionStatusToJSON(value['status']),
|
|
177
|
+
'name': value['name'],
|
|
178
|
+
'description': value['description'],
|
|
179
|
+
'description_rich': RichTextDocumentToJSON(value['descriptionRich']),
|
|
180
|
+
'change_notes': value['changeNotes'],
|
|
181
|
+
'modules': ((value['modules'] as Array<any>).map(GetCourseVersionModuleToJSON)),
|
|
182
|
+
'created_at': value['createdAt'],
|
|
183
|
+
'updated_at': value['updatedAt'],
|
|
184
|
+
'published_at': value['publishedAt'],
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
17
|
+
import {
|
|
18
|
+
ContentLaunchModeFromJSON,
|
|
19
|
+
ContentLaunchModeFromJSONTyped,
|
|
20
|
+
ContentLaunchModeToJSON,
|
|
21
|
+
ContentLaunchModeToJSONTyped,
|
|
22
|
+
} from './ContentLaunchMode';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetCourseVersionItem
|
|
28
|
+
*/
|
|
29
|
+
export interface GetCourseVersionItem {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetCourseVersionItem
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {GetCourseVersionItemSourceKindEnum}
|
|
39
|
+
* @memberof GetCourseVersionItem
|
|
40
|
+
*/
|
|
41
|
+
sourceKind: GetCourseVersionItemSourceKindEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetCourseVersionItem
|
|
46
|
+
*/
|
|
47
|
+
contentLibraryItemId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetCourseVersionItem
|
|
52
|
+
*/
|
|
53
|
+
contentLibraryVersionId?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetCourseVersionItem
|
|
58
|
+
*/
|
|
59
|
+
resourceVersionNumber?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetCourseVersionItem
|
|
64
|
+
*/
|
|
65
|
+
latestPublishedVersionId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetCourseVersionItem
|
|
70
|
+
*/
|
|
71
|
+
latestPublishedVersionNumber?: number | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof GetCourseVersionItem
|
|
76
|
+
*/
|
|
77
|
+
updateAvailable: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof GetCourseVersionItem
|
|
82
|
+
*/
|
|
83
|
+
displayName: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof GetCourseVersionItem
|
|
88
|
+
*/
|
|
89
|
+
displayOrder: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof GetCourseVersionItem
|
|
94
|
+
*/
|
|
95
|
+
isVisible: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {ContentLaunchMode}
|
|
99
|
+
* @memberof GetCourseVersionItem
|
|
100
|
+
*/
|
|
101
|
+
launchMode: ContentLaunchMode;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof GetCourseVersionItem
|
|
106
|
+
*/
|
|
107
|
+
maxAttempts: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {GetCourseVersionItemScoreRollupStrategyEnum}
|
|
111
|
+
* @memberof GetCourseVersionItem
|
|
112
|
+
*/
|
|
113
|
+
scoreRollupStrategy: GetCourseVersionItemScoreRollupStrategyEnum;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {{ [key: string]: any; }}
|
|
117
|
+
* @memberof GetCourseVersionItem
|
|
118
|
+
*/
|
|
119
|
+
settings: { [key: string]: any; };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const GetCourseVersionItemSourceKindEnum = {
|
|
127
|
+
Library: 'library',
|
|
128
|
+
QuizSnapshot: 'quiz_snapshot'
|
|
129
|
+
} as const;
|
|
130
|
+
export type GetCourseVersionItemSourceKindEnum = typeof GetCourseVersionItemSourceKindEnum[keyof typeof GetCourseVersionItemSourceKindEnum];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export const GetCourseVersionItemScoreRollupStrategyEnum = {
|
|
136
|
+
Latest: 'Latest',
|
|
137
|
+
Best: 'Best'
|
|
138
|
+
} as const;
|
|
139
|
+
export type GetCourseVersionItemScoreRollupStrategyEnum = typeof GetCourseVersionItemScoreRollupStrategyEnum[keyof typeof GetCourseVersionItemScoreRollupStrategyEnum];
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Check if a given object implements the GetCourseVersionItem interface.
|
|
144
|
+
*/
|
|
145
|
+
export function instanceOfGetCourseVersionItem(value: object): value is GetCourseVersionItem {
|
|
146
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
147
|
+
if (!('sourceKind' in value) || value['sourceKind'] === undefined) return false;
|
|
148
|
+
if (!('updateAvailable' in value) || value['updateAvailable'] === undefined) return false;
|
|
149
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
150
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined) return false;
|
|
151
|
+
if (!('isVisible' in value) || value['isVisible'] === undefined) return false;
|
|
152
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
|
|
153
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
|
|
154
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined) return false;
|
|
155
|
+
if (!('settings' in value) || value['settings'] === undefined) return false;
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function GetCourseVersionItemFromJSON(json: any): GetCourseVersionItem {
|
|
160
|
+
return GetCourseVersionItemFromJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function GetCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionItem {
|
|
164
|
+
if (json == null) {
|
|
165
|
+
return json;
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
|
|
169
|
+
'id': json['id'],
|
|
170
|
+
'sourceKind': json['source_kind'],
|
|
171
|
+
'contentLibraryItemId': json['content_library_item_id'] == null ? undefined : json['content_library_item_id'],
|
|
172
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
173
|
+
'resourceVersionNumber': json['resource_version_number'] == null ? undefined : json['resource_version_number'],
|
|
174
|
+
'latestPublishedVersionId': json['latest_published_version_id'] == null ? undefined : json['latest_published_version_id'],
|
|
175
|
+
'latestPublishedVersionNumber': json['latest_published_version_number'] == null ? undefined : json['latest_published_version_number'],
|
|
176
|
+
'updateAvailable': json['update_available'],
|
|
177
|
+
'displayName': json['display_name'],
|
|
178
|
+
'displayOrder': json['display_order'],
|
|
179
|
+
'isVisible': json['is_visible'],
|
|
180
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
181
|
+
'maxAttempts': json['max_attempts'],
|
|
182
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
183
|
+
'settings': json['settings'],
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function GetCourseVersionItemToJSON(json: any): GetCourseVersionItem {
|
|
188
|
+
return GetCourseVersionItemToJSONTyped(json, false);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function GetCourseVersionItemToJSONTyped(value?: GetCourseVersionItem | null, ignoreDiscriminator: boolean = false): any {
|
|
192
|
+
if (value == null) {
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return {
|
|
197
|
+
|
|
198
|
+
'id': value['id'],
|
|
199
|
+
'source_kind': value['sourceKind'],
|
|
200
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
201
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
202
|
+
'resource_version_number': value['resourceVersionNumber'],
|
|
203
|
+
'latest_published_version_id': value['latestPublishedVersionId'],
|
|
204
|
+
'latest_published_version_number': value['latestPublishedVersionNumber'],
|
|
205
|
+
'update_available': value['updateAvailable'],
|
|
206
|
+
'display_name': value['displayName'],
|
|
207
|
+
'display_order': value['displayOrder'],
|
|
208
|
+
'is_visible': value['isVisible'],
|
|
209
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
210
|
+
'max_attempts': value['maxAttempts'],
|
|
211
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
212
|
+
'settings': value['settings'],
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|