@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,158 @@
|
|
|
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 PostCourseVersionItem
|
|
28
|
+
*/
|
|
29
|
+
export interface PostCourseVersionItem {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostCourseVersionItem
|
|
34
|
+
*/
|
|
35
|
+
contentLibraryItemId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostCourseVersionItem
|
|
40
|
+
*/
|
|
41
|
+
contentLibraryVersionId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostCourseVersionItem
|
|
46
|
+
*/
|
|
47
|
+
moduleId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PostCourseVersionItem
|
|
52
|
+
*/
|
|
53
|
+
displayName?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PostCourseVersionItem
|
|
58
|
+
*/
|
|
59
|
+
displayOrder?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof PostCourseVersionItem
|
|
64
|
+
*/
|
|
65
|
+
isVisible?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {ContentLaunchMode}
|
|
69
|
+
* @memberof PostCourseVersionItem
|
|
70
|
+
*/
|
|
71
|
+
launchMode?: ContentLaunchMode;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof PostCourseVersionItem
|
|
76
|
+
*/
|
|
77
|
+
maxAttempts?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {PostCourseVersionItemScoreRollupStrategyEnum}
|
|
81
|
+
* @memberof PostCourseVersionItem
|
|
82
|
+
*/
|
|
83
|
+
scoreRollupStrategy?: PostCourseVersionItemScoreRollupStrategyEnum;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {{ [key: string]: any; }}
|
|
87
|
+
* @memberof PostCourseVersionItem
|
|
88
|
+
*/
|
|
89
|
+
settings?: { [key: string]: any; };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const PostCourseVersionItemScoreRollupStrategyEnum = {
|
|
97
|
+
Latest: 'Latest',
|
|
98
|
+
Best: 'Best'
|
|
99
|
+
} as const;
|
|
100
|
+
export type PostCourseVersionItemScoreRollupStrategyEnum = typeof PostCourseVersionItemScoreRollupStrategyEnum[keyof typeof PostCourseVersionItemScoreRollupStrategyEnum];
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the PostCourseVersionItem interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfPostCourseVersionItem(value: object): value is PostCourseVersionItem {
|
|
107
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined) return false;
|
|
108
|
+
if (!('moduleId' in value) || value['moduleId'] === undefined) return false;
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function PostCourseVersionItemFromJSON(json: any): PostCourseVersionItem {
|
|
113
|
+
return PostCourseVersionItemFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function PostCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItem {
|
|
117
|
+
if (json == null) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
123
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
124
|
+
'moduleId': json['module_id'],
|
|
125
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
126
|
+
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
127
|
+
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
128
|
+
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
129
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
130
|
+
'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
|
|
131
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function PostCourseVersionItemToJSON(json: any): PostCourseVersionItem {
|
|
136
|
+
return PostCourseVersionItemToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function PostCourseVersionItemToJSONTyped(value?: PostCourseVersionItem | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
147
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
148
|
+
'module_id': value['moduleId'],
|
|
149
|
+
'display_name': value['displayName'],
|
|
150
|
+
'display_order': value['displayOrder'],
|
|
151
|
+
'is_visible': value['isVisible'],
|
|
152
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
153
|
+
'max_attempts': value['maxAttempts'],
|
|
154
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
155
|
+
'settings': value['settings'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Start or resume a learner attempt for an exact course resource version.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostCourseVersionItemSession
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCourseVersionItemSession {
|
|
22
|
+
/**
|
|
23
|
+
* Create a new attempt instead of returning the current attempt.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PostCourseVersionItemSession
|
|
26
|
+
*/
|
|
27
|
+
retake?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostCourseVersionItemSession interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostCourseVersionItemSession(value: object): value is PostCourseVersionItemSession {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostCourseVersionItemSessionFromJSON(json: any): PostCourseVersionItemSession {
|
|
38
|
+
return PostCourseVersionItemSessionFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostCourseVersionItemSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItemSession {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'retake': json['retake'] == null ? undefined : json['retake'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostCourseVersionItemSessionToJSON(json: any): PostCourseVersionItemSession {
|
|
52
|
+
return PostCourseVersionItemSessionToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostCourseVersionItemSessionToJSONTyped(value?: PostCourseVersionItemSession | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'retake': value['retake'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostCourseVersionPublish
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCourseVersionPublish {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCourseVersionPublish
|
|
26
|
+
*/
|
|
27
|
+
changeNotes?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostCourseVersionPublish interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostCourseVersionPublish(value: object): value is PostCourseVersionPublish {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostCourseVersionPublishFromJSON(json: any): PostCourseVersionPublish {
|
|
38
|
+
return PostCourseVersionPublishFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostCourseVersionPublishFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionPublish {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostCourseVersionPublishToJSON(json: any): PostCourseVersionPublish {
|
|
52
|
+
return PostCourseVersionPublishToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostCourseVersionPublishToJSONTyped(value?: PostCourseVersionPublish | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'change_notes': value['changeNotes'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { ResourceType } from './ResourceType';
|
|
17
|
+
import {
|
|
18
|
+
ResourceTypeFromJSON,
|
|
19
|
+
ResourceTypeFromJSONTyped,
|
|
20
|
+
ResourceTypeToJSON,
|
|
21
|
+
ResourceTypeToJSONTyped,
|
|
22
|
+
} from './ResourceType';
|
|
23
|
+
import type { RichTextInput } from './RichTextInput';
|
|
24
|
+
import {
|
|
25
|
+
RichTextInputFromJSON,
|
|
26
|
+
RichTextInputFromJSONTyped,
|
|
27
|
+
RichTextInputToJSON,
|
|
28
|
+
RichTextInputToJSONTyped,
|
|
29
|
+
} from './RichTextInput';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PostResource
|
|
35
|
+
*/
|
|
36
|
+
export interface PostResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PostResource
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PostResource
|
|
47
|
+
*/
|
|
48
|
+
description?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ResourceType}
|
|
52
|
+
* @memberof PostResource
|
|
53
|
+
*/
|
|
54
|
+
resourceType: ResourceType;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PostResource
|
|
59
|
+
*/
|
|
60
|
+
linkUrl?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {RichTextInput}
|
|
64
|
+
* @memberof PostResource
|
|
65
|
+
*/
|
|
66
|
+
richText?: RichTextInput | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the PostResource interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfPostResource(value: object): value is PostResource {
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PostResourceFromJSON(json: any): PostResource {
|
|
81
|
+
return PostResourceFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PostResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResource {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
92
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
93
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
94
|
+
'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function PostResourceToJSON(json: any): PostResource {
|
|
99
|
+
return PostResourceToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function PostResourceToJSONTyped(value?: PostResource | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'name': value['name'],
|
|
110
|
+
'description': value['description'],
|
|
111
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
112
|
+
'link_url': value['linkUrl'],
|
|
113
|
+
'rich_text': RichTextInputToJSON(value['richText']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { RichTextInput } from './RichTextInput';
|
|
17
|
+
import {
|
|
18
|
+
RichTextInputFromJSON,
|
|
19
|
+
RichTextInputFromJSONTyped,
|
|
20
|
+
RichTextInputToJSON,
|
|
21
|
+
RichTextInputToJSONTyped,
|
|
22
|
+
} from './RichTextInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PostResourceVersion
|
|
28
|
+
*/
|
|
29
|
+
export interface PostResourceVersion {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostResourceVersion
|
|
34
|
+
*/
|
|
35
|
+
changeNotes?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostResourceVersion
|
|
40
|
+
*/
|
|
41
|
+
linkUrl?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {RichTextInput}
|
|
45
|
+
* @memberof PostResourceVersion
|
|
46
|
+
*/
|
|
47
|
+
richText?: RichTextInput | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostResourceVersion interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfPostResourceVersion(value: object): value is PostResourceVersion {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function PostResourceVersionFromJSON(json: any): PostResourceVersion {
|
|
58
|
+
return PostResourceVersionFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function PostResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersion {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
68
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
69
|
+
'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PostResourceVersionToJSON(json: any): PostResourceVersion {
|
|
74
|
+
return PostResourceVersionToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostResourceVersionToJSONTyped(value?: PostResourceVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'change_notes': value['changeNotes'],
|
|
85
|
+
'link_url': value['linkUrl'],
|
|
86
|
+
'rich_text': RichTextInputToJSON(value['richText']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostResourceVersionComplete
|
|
20
|
+
*/
|
|
21
|
+
export interface PostResourceVersionComplete {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostResourceVersionComplete
|
|
26
|
+
*/
|
|
27
|
+
checksumSha256: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostResourceVersionComplete interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostResourceVersionComplete(value: object): value is PostResourceVersionComplete {
|
|
34
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostResourceVersionCompleteFromJSON(json: any): PostResourceVersionComplete {
|
|
39
|
+
return PostResourceVersionCompleteFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostResourceVersionCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionComplete {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'checksumSha256': json['checksum_sha256'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostResourceVersionCompleteToJSON(json: any): PostResourceVersionComplete {
|
|
53
|
+
return PostResourceVersionCompleteToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostResourceVersionCompleteToJSONTyped(value?: PostResourceVersionComplete | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'checksum_sha256': value['checksumSha256'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostResourceVersionUpload
|
|
20
|
+
*/
|
|
21
|
+
export interface PostResourceVersionUpload {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostResourceVersionUpload
|
|
26
|
+
*/
|
|
27
|
+
filename: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostResourceVersionUpload
|
|
32
|
+
*/
|
|
33
|
+
mimeType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostResourceVersionUpload
|
|
38
|
+
*/
|
|
39
|
+
fileSizeBytes: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostResourceVersionUpload
|
|
44
|
+
*/
|
|
45
|
+
checksumSha256: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PostResourceVersionUpload interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPostResourceVersionUpload(value: object): value is PostResourceVersionUpload {
|
|
52
|
+
if (!('filename' in value) || value['filename'] === undefined) return false;
|
|
53
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
54
|
+
if (!('fileSizeBytes' in value) || value['fileSizeBytes'] === undefined) return false;
|
|
55
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PostResourceVersionUploadFromJSON(json: any): PostResourceVersionUpload {
|
|
60
|
+
return PostResourceVersionUploadFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PostResourceVersionUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionUpload {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'filename': json['filename'],
|
|
70
|
+
'mimeType': json['mime_type'],
|
|
71
|
+
'fileSizeBytes': json['file_size_bytes'],
|
|
72
|
+
'checksumSha256': json['checksum_sha256'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PostResourceVersionUploadToJSON(json: any): PostResourceVersionUpload {
|
|
77
|
+
return PostResourceVersionUploadToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PostResourceVersionUploadToJSONTyped(value?: PostResourceVersionUpload | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'filename': value['filename'],
|
|
88
|
+
'mime_type': value['mimeType'],
|
|
89
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
90
|
+
'checksum_sha256': value['checksumSha256'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|