@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,124 @@
|
|
|
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 { ResourceType } from './ResourceType';
|
|
13
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
14
|
+
/**
|
|
15
|
+
* A learner resource attempt pinned to an immutable course and Content Library version.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetCourseVersionItemSession
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCourseVersionItemSession {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetCourseVersionItemSession
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetCourseVersionItemSession
|
|
30
|
+
*/
|
|
31
|
+
courseVersionId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetCourseVersionItemSession
|
|
36
|
+
*/
|
|
37
|
+
itemId: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetCourseVersionItemSession
|
|
42
|
+
*/
|
|
43
|
+
contentLibraryItemId: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetCourseVersionItemSession
|
|
48
|
+
*/
|
|
49
|
+
contentLibraryVersionId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ResourceType}
|
|
53
|
+
* @memberof GetCourseVersionItemSession
|
|
54
|
+
*/
|
|
55
|
+
resourceType: ResourceType;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ContentLaunchMode}
|
|
59
|
+
* @memberof GetCourseVersionItemSession
|
|
60
|
+
*/
|
|
61
|
+
launchMode: ContentLaunchMode;
|
|
62
|
+
/**
|
|
63
|
+
* Session-aware player URL, direct asset URL, or external link.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof GetCourseVersionItemSession
|
|
66
|
+
*/
|
|
67
|
+
launchUrl: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof GetCourseVersionItemSession
|
|
72
|
+
*/
|
|
73
|
+
attemptNumber: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {boolean}
|
|
77
|
+
* @memberof GetCourseVersionItemSession
|
|
78
|
+
*/
|
|
79
|
+
isCurrent: boolean;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof GetCourseVersionItemSession
|
|
84
|
+
*/
|
|
85
|
+
completionStatus: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof GetCourseVersionItemSession
|
|
90
|
+
*/
|
|
91
|
+
gradeStatus: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof GetCourseVersionItemSession
|
|
96
|
+
*/
|
|
97
|
+
scoreRaw?: number | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GetCourseVersionItemSession
|
|
102
|
+
*/
|
|
103
|
+
createdAt: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof GetCourseVersionItemSession
|
|
108
|
+
*/
|
|
109
|
+
updatedAt: number;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @memberof GetCourseVersionItemSession
|
|
114
|
+
*/
|
|
115
|
+
completedAt?: number | null;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the GetCourseVersionItemSession interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfGetCourseVersionItemSession(value: object): value is GetCourseVersionItemSession;
|
|
121
|
+
export declare function GetCourseVersionItemSessionFromJSON(json: any): GetCourseVersionItemSession;
|
|
122
|
+
export declare function GetCourseVersionItemSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionItemSession;
|
|
123
|
+
export declare function GetCourseVersionItemSessionToJSON(json: any): GetCourseVersionItemSession;
|
|
124
|
+
export declare function GetCourseVersionItemSessionToJSONTyped(value?: GetCourseVersionItemSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
15
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetCourseVersionItemSession interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetCourseVersionItemSession(value) {
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === 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
|
+
export function GetCourseVersionItemSessionFromJSON(json) {
|
|
51
|
+
return GetCourseVersionItemSessionFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function GetCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'courseVersionId': json['course_version_id'],
|
|
60
|
+
'itemId': json['item_id'],
|
|
61
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
62
|
+
'contentLibraryVersionId': json['content_library_version_id'],
|
|
63
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
64
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
65
|
+
'launchUrl': json['launch_url'],
|
|
66
|
+
'attemptNumber': json['attempt_number'],
|
|
67
|
+
'isCurrent': json['is_current'],
|
|
68
|
+
'completionStatus': json['completion_status'],
|
|
69
|
+
'gradeStatus': json['grade_status'],
|
|
70
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
71
|
+
'createdAt': json['created_at'],
|
|
72
|
+
'updatedAt': json['updated_at'],
|
|
73
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export function GetCourseVersionItemSessionToJSON(json) {
|
|
77
|
+
return GetCourseVersionItemSessionToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
export function GetCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'course_version_id': value['courseVersionId'],
|
|
86
|
+
'item_id': value['itemId'],
|
|
87
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
88
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
89
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
90
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
91
|
+
'launch_url': value['launchUrl'],
|
|
92
|
+
'attempt_number': value['attemptNumber'],
|
|
93
|
+
'is_current': value['isCurrent'],
|
|
94
|
+
'completion_status': value['completionStatus'],
|
|
95
|
+
'grade_status': value['gradeStatus'],
|
|
96
|
+
'score_raw': value['scoreRaw'],
|
|
97
|
+
'created_at': value['createdAt'],
|
|
98
|
+
'updated_at': value['updatedAt'],
|
|
99
|
+
'completed_at': value['completedAt'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { GetCourseVersion } from './GetCourseVersion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseVersionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseVersionList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GetCourseVersion>}
|
|
22
|
+
* @memberof GetCourseVersionList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GetCourseVersion>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetCourseVersionList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetCourseVersionList(value: object): value is GetCourseVersionList;
|
|
30
|
+
export declare function GetCourseVersionListFromJSON(json: any): GetCourseVersionList;
|
|
31
|
+
export declare function GetCourseVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionList;
|
|
32
|
+
export declare function GetCourseVersionListToJSON(json: any): GetCourseVersionList;
|
|
33
|
+
export declare function GetCourseVersionListToJSONTyped(value?: GetCourseVersionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { GetCourseVersionFromJSON, GetCourseVersionToJSON, } from './GetCourseVersion';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCourseVersionList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCourseVersionList(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function GetCourseVersionListFromJSON(json) {
|
|
24
|
+
return GetCourseVersionListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetCourseVersionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(GetCourseVersionFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseVersionListToJSON(json) {
|
|
35
|
+
return GetCourseVersionListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetCourseVersionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(GetCourseVersionToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetCourseVersionItem } from './GetCourseVersionItem';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetCourseVersionModule
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCourseVersionModule {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetCourseVersionModule
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetCourseVersionModule
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetCourseVersionModule
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RichTextDocument}
|
|
41
|
+
* @memberof GetCourseVersionModule
|
|
42
|
+
*/
|
|
43
|
+
descriptionRich: RichTextDocument;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof GetCourseVersionModule
|
|
48
|
+
*/
|
|
49
|
+
displayOrder: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<GetCourseVersionItem>}
|
|
53
|
+
* @memberof GetCourseVersionModule
|
|
54
|
+
*/
|
|
55
|
+
items: Array<GetCourseVersionItem>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the GetCourseVersionModule interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfGetCourseVersionModule(value: object): value is GetCourseVersionModule;
|
|
61
|
+
export declare function GetCourseVersionModuleFromJSON(json: any): GetCourseVersionModule;
|
|
62
|
+
export declare function GetCourseVersionModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionModule;
|
|
63
|
+
export declare function GetCourseVersionModuleToJSON(json: any): GetCourseVersionModule;
|
|
64
|
+
export declare function GetCourseVersionModuleToJSONTyped(value?: GetCourseVersionModule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import { GetCourseVersionItemFromJSON, GetCourseVersionItemToJSON, } from './GetCourseVersionItem';
|
|
15
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetCourseVersionModule interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetCourseVersionModule(value) {
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseVersionModuleFromJSON(json) {
|
|
35
|
+
return GetCourseVersionModuleFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetCourseVersionModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'description': json['description'],
|
|
45
|
+
'descriptionRich': RichTextDocumentFromJSON(json['description_rich']),
|
|
46
|
+
'displayOrder': json['display_order'],
|
|
47
|
+
'items': (json['items'].map(GetCourseVersionItemFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function GetCourseVersionModuleToJSON(json) {
|
|
51
|
+
return GetCourseVersionModuleToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function GetCourseVersionModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'description_rich': RichTextDocumentToJSON(value['descriptionRich']),
|
|
62
|
+
'display_order': value['displayOrder'],
|
|
63
|
+
'items': (value['items'].map(GetCourseVersionItemToJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { GetContentLibraryVersion } from './GetContentLibraryVersion';
|
|
13
|
+
import type { ResourceType } from './ResourceType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetResource
|
|
18
|
+
*/
|
|
19
|
+
export interface GetResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetResource
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetResource
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetResource
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ResourceType}
|
|
41
|
+
* @memberof GetResource
|
|
42
|
+
*/
|
|
43
|
+
resourceType: ResourceType;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetResource
|
|
48
|
+
*/
|
|
49
|
+
ownerId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {GetContentLibraryVersion}
|
|
53
|
+
* @memberof GetResource
|
|
54
|
+
*/
|
|
55
|
+
latestPublishedVersion?: GetContentLibraryVersion | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {GetContentLibraryVersion}
|
|
59
|
+
* @memberof GetResource
|
|
60
|
+
*/
|
|
61
|
+
draftVersion?: GetContentLibraryVersion | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<GetContentLibraryVersion>}
|
|
65
|
+
* @memberof GetResource
|
|
66
|
+
*/
|
|
67
|
+
versions: Array<GetContentLibraryVersion>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof GetResource
|
|
72
|
+
*/
|
|
73
|
+
publishedCourseCount: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof GetResource
|
|
78
|
+
*/
|
|
79
|
+
draftCourseCount: number;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof GetResource
|
|
84
|
+
*/
|
|
85
|
+
historicalCourseCount: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof GetResource
|
|
90
|
+
*/
|
|
91
|
+
activeLearnerCount: number;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof GetResource
|
|
96
|
+
*/
|
|
97
|
+
createdAt: number;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GetResource
|
|
102
|
+
*/
|
|
103
|
+
updatedAt: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof GetResource
|
|
108
|
+
*/
|
|
109
|
+
archivedAt?: number | null;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the GetResource interface.
|
|
113
|
+
*/
|
|
114
|
+
export declare function instanceOfGetResource(value: object): value is GetResource;
|
|
115
|
+
export declare function GetResourceFromJSON(json: any): GetResource;
|
|
116
|
+
export declare function GetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResource;
|
|
117
|
+
export declare function GetResourceToJSON(json: any): GetResource;
|
|
118
|
+
export declare function GetResourceToJSONTyped(value?: GetResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
import { GetContentLibraryVersionFromJSON, GetContentLibraryVersionToJSON, } from './GetContentLibraryVersion';
|
|
15
|
+
import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetResource interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetResource(value) {
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('versions' in value) || value['versions'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('historicalCourseCount' in value) || value['historicalCourseCount'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function GetResourceFromJSON(json) {
|
|
47
|
+
return GetResourceFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'description': json['description'],
|
|
57
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
58
|
+
'ownerId': json['owner_id'],
|
|
59
|
+
'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['latest_published_version']),
|
|
60
|
+
'draftVersion': json['draft_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['draft_version']),
|
|
61
|
+
'versions': (json['versions'].map(GetContentLibraryVersionFromJSON)),
|
|
62
|
+
'publishedCourseCount': json['published_course_count'],
|
|
63
|
+
'draftCourseCount': json['draft_course_count'],
|
|
64
|
+
'historicalCourseCount': json['historical_course_count'],
|
|
65
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
66
|
+
'createdAt': json['created_at'],
|
|
67
|
+
'updatedAt': json['updated_at'],
|
|
68
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function GetResourceToJSON(json) {
|
|
72
|
+
return GetResourceToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'description': value['description'],
|
|
82
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
83
|
+
'owner_id': value['ownerId'],
|
|
84
|
+
'latest_published_version': GetContentLibraryVersionToJSON(value['latestPublishedVersion']),
|
|
85
|
+
'draft_version': GetContentLibraryVersionToJSON(value['draftVersion']),
|
|
86
|
+
'versions': (value['versions'].map(GetContentLibraryVersionToJSON)),
|
|
87
|
+
'published_course_count': value['publishedCourseCount'],
|
|
88
|
+
'draft_course_count': value['draftCourseCount'],
|
|
89
|
+
'historical_course_count': value['historicalCourseCount'],
|
|
90
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
91
|
+
'created_at': value['createdAt'],
|
|
92
|
+
'updated_at': value['updatedAt'],
|
|
93
|
+
'archived_at': value['archivedAt'],
|
|
94
|
+
};
|
|
95
|
+
}
|