@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,140 @@
|
|
|
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 PutCourseVersionItem
|
|
28
|
+
*/
|
|
29
|
+
export interface PutCourseVersionItem {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutCourseVersionItem
|
|
34
|
+
*/
|
|
35
|
+
contentLibraryVersionId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PutCourseVersionItem
|
|
40
|
+
*/
|
|
41
|
+
displayName?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PutCourseVersionItem
|
|
46
|
+
*/
|
|
47
|
+
displayOrder?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof PutCourseVersionItem
|
|
52
|
+
*/
|
|
53
|
+
isVisible?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {ContentLaunchMode}
|
|
57
|
+
* @memberof PutCourseVersionItem
|
|
58
|
+
*/
|
|
59
|
+
launchMode?: ContentLaunchMode;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof PutCourseVersionItem
|
|
64
|
+
*/
|
|
65
|
+
maxAttempts?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {PutCourseVersionItemScoreRollupStrategyEnum}
|
|
69
|
+
* @memberof PutCourseVersionItem
|
|
70
|
+
*/
|
|
71
|
+
scoreRollupStrategy?: PutCourseVersionItemScoreRollupStrategyEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {{ [key: string]: any; }}
|
|
75
|
+
* @memberof PutCourseVersionItem
|
|
76
|
+
*/
|
|
77
|
+
settings?: { [key: string]: any; };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const PutCourseVersionItemScoreRollupStrategyEnum = {
|
|
85
|
+
Latest: 'Latest',
|
|
86
|
+
Best: 'Best'
|
|
87
|
+
} as const;
|
|
88
|
+
export type PutCourseVersionItemScoreRollupStrategyEnum = typeof PutCourseVersionItemScoreRollupStrategyEnum[keyof typeof PutCourseVersionItemScoreRollupStrategyEnum];
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the PutCourseVersionItem interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfPutCourseVersionItem(value: object): value is PutCourseVersionItem {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function PutCourseVersionItemFromJSON(json: any): PutCourseVersionItem {
|
|
99
|
+
return PutCourseVersionItemFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function PutCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionItem {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
109
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
110
|
+
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
111
|
+
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
112
|
+
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
113
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
114
|
+
'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
|
|
115
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function PutCourseVersionItemToJSON(json: any): PutCourseVersionItem {
|
|
120
|
+
return PutCourseVersionItemToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function PutCourseVersionItemToJSONTyped(value?: PutCourseVersionItem | null, ignoreDiscriminator: boolean = false): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
131
|
+
'display_name': value['displayName'],
|
|
132
|
+
'display_order': value['displayOrder'],
|
|
133
|
+
'is_visible': value['isVisible'],
|
|
134
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
135
|
+
'max_attempts': value['maxAttempts'],
|
|
136
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
137
|
+
'settings': value['settings'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 PutResource
|
|
20
|
+
*/
|
|
21
|
+
export interface PutResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutResource
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutResource
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutResource(value: object): value is PutResource {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PutResourceFromJSON(json: any): PutResource {
|
|
44
|
+
return PutResourceFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResource {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PutResourceToJSON(json: any): PutResource {
|
|
59
|
+
return PutResourceToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PutResourceToJSONTyped(value?: PutResource | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'description': value['description'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 PutResourceVersion
|
|
28
|
+
*/
|
|
29
|
+
export interface PutResourceVersion {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutResourceVersion
|
|
34
|
+
*/
|
|
35
|
+
changeNotes?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof PutResourceVersion
|
|
40
|
+
*/
|
|
41
|
+
metadata?: { [key: string]: any; };
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PutResourceVersion
|
|
46
|
+
*/
|
|
47
|
+
linkUrl?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {RichTextInput}
|
|
51
|
+
* @memberof PutResourceVersion
|
|
52
|
+
*/
|
|
53
|
+
richText?: RichTextInput | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PutResourceVersion interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPutResourceVersion(value: object): value is PutResourceVersion {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PutResourceVersionFromJSON(json: any): PutResourceVersion {
|
|
64
|
+
return PutResourceVersionFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PutResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResourceVersion {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
74
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
75
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
76
|
+
'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PutResourceVersionToJSON(json: any): PutResourceVersion {
|
|
81
|
+
return PutResourceVersionToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PutResourceVersionToJSONTyped(value?: PutResourceVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'change_notes': value['changeNotes'],
|
|
92
|
+
'metadata': value['metadata'],
|
|
93
|
+
'link_url': value['linkUrl'],
|
|
94
|
+
'rich_text': RichTextInputToJSON(value['richText']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Resource payload type.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ResourceType = {
|
|
21
|
+
Scorm: 'scorm',
|
|
22
|
+
Video: 'video',
|
|
23
|
+
Audio: 'audio',
|
|
24
|
+
Image: 'image',
|
|
25
|
+
Pdf: 'pdf',
|
|
26
|
+
Powerpoint: 'powerpoint',
|
|
27
|
+
File: 'file',
|
|
28
|
+
Link: 'link',
|
|
29
|
+
RichText: 'rich_text'
|
|
30
|
+
} as const;
|
|
31
|
+
export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function instanceOfResourceType(value: any): boolean {
|
|
35
|
+
for (const key in ResourceType) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(ResourceType, key)) {
|
|
37
|
+
if (ResourceType[key as keyof typeof ResourceType] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ResourceTypeFromJSON(json: any): ResourceType {
|
|
46
|
+
return ResourceTypeFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ResourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceType {
|
|
50
|
+
return json as ResourceType;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ResourceTypeToJSON(value?: ResourceType | null): any {
|
|
54
|
+
return value as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ResourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceType {
|
|
58
|
+
return value as ResourceType;
|
|
59
|
+
}
|
|
60
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './ContentAttemptRollupScore';
|
|
|
8
8
|
export * from './ContentAttemptScore';
|
|
9
9
|
export * from './ContentAttemptSettings';
|
|
10
10
|
export * from './ContentLaunchMode';
|
|
11
|
+
export * from './ContentLibraryVersionStatus';
|
|
11
12
|
export * from './CourseCatalog';
|
|
12
13
|
export * from './CourseShare';
|
|
13
14
|
export * from './CriteriaBasedSelection';
|
|
@@ -32,6 +33,7 @@ export * from './GetContentInstructorBasicReporting';
|
|
|
32
33
|
export * from './GetContentInstructorBasicReportingContentInfo';
|
|
33
34
|
export * from './GetContentInstructorBasicReportingEngagement';
|
|
34
35
|
export * from './GetContentInstructorBasicReportingPerformance';
|
|
36
|
+
export * from './GetContentLibraryVersion';
|
|
35
37
|
export * from './GetContentList';
|
|
36
38
|
export * from './GetContentSession';
|
|
37
39
|
export * from './GetContentSessionDetail';
|
|
@@ -62,6 +64,12 @@ export * from './GetCourseStudentReportingCourseInfo';
|
|
|
62
64
|
export * from './GetCourseStudentReportingEngagement';
|
|
63
65
|
export * from './GetCourseStudentReportingModulesInner';
|
|
64
66
|
export * from './GetCourseStudentReportingPerformance';
|
|
67
|
+
export * from './GetCourseVersion';
|
|
68
|
+
export * from './GetCourseVersionItem';
|
|
69
|
+
export * from './GetCourseVersionItemLaunch';
|
|
70
|
+
export * from './GetCourseVersionItemSession';
|
|
71
|
+
export * from './GetCourseVersionList';
|
|
72
|
+
export * from './GetCourseVersionModule';
|
|
65
73
|
export * from './GetManualQuestionSelectionItem';
|
|
66
74
|
export * from './GetManualQuestionSelectionList';
|
|
67
75
|
export * from './GetModule';
|
|
@@ -139,6 +147,11 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
139
147
|
export * from './GetQuizResultsScore';
|
|
140
148
|
export * from './GetQuizResultsTiming';
|
|
141
149
|
export * from './GetQuizStatistics';
|
|
150
|
+
export * from './GetResource';
|
|
151
|
+
export * from './GetResourceList';
|
|
152
|
+
export * from './GetResourceUsage';
|
|
153
|
+
export * from './GetResourceUsageCoursesInner';
|
|
154
|
+
export * from './GetResourceVersionUpload';
|
|
142
155
|
export * from './GetRichTextAssetUpload';
|
|
143
156
|
export * from './GetRole';
|
|
144
157
|
export * from './GetScormApiLogItem';
|
|
@@ -202,9 +215,13 @@ export * from './PostConversation';
|
|
|
202
215
|
export * from './PostConversationResponse';
|
|
203
216
|
export * from './PostCourse';
|
|
204
217
|
export * from './PostCourseCatalog';
|
|
218
|
+
export * from './PostCourseDraft';
|
|
205
219
|
export * from './PostCourseEnrollment';
|
|
206
220
|
export * from './PostCourseExport';
|
|
207
221
|
export * from './PostCourseResume';
|
|
222
|
+
export * from './PostCourseVersionItem';
|
|
223
|
+
export * from './PostCourseVersionItemSession';
|
|
224
|
+
export * from './PostCourseVersionPublish';
|
|
208
225
|
export * from './PostDuplicate';
|
|
209
226
|
export * from './PostDuplicate1';
|
|
210
227
|
export * from './PostDuplicate2';
|
|
@@ -236,6 +253,10 @@ export * from './PostQuizQuestions';
|
|
|
236
253
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
237
254
|
export * from './PostQuizSettings';
|
|
238
255
|
export * from './PostResetPassword';
|
|
256
|
+
export * from './PostResource';
|
|
257
|
+
export * from './PostResourceVersion';
|
|
258
|
+
export * from './PostResourceVersionComplete';
|
|
259
|
+
export * from './PostResourceVersionUpload';
|
|
239
260
|
export * from './PostRevokeCertificate';
|
|
240
261
|
export * from './PostRichTextAssetComplete';
|
|
241
262
|
export * from './PostRichTextAssetUpload';
|
|
@@ -256,6 +277,7 @@ export * from './PutContentVersion';
|
|
|
256
277
|
export * from './PutCourse';
|
|
257
278
|
export * from './PutCourseCatalog';
|
|
258
279
|
export * from './PutCourseEnrollment';
|
|
280
|
+
export * from './PutCourseVersionItem';
|
|
259
281
|
export * from './PutModule';
|
|
260
282
|
export * from './PutModuleReorder';
|
|
261
283
|
export * from './PutPortalBranding';
|
|
@@ -272,6 +294,8 @@ export * from './PutQuizAnswerResponseNextQuestion';
|
|
|
272
294
|
export * from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
|
|
273
295
|
export * from './PutQuizAnswerResponseProgress';
|
|
274
296
|
export * from './PutQuizSettings';
|
|
297
|
+
export * from './PutResource';
|
|
298
|
+
export * from './PutResourceVersion';
|
|
275
299
|
export * from './PutRole';
|
|
276
300
|
export * from './PutRolePermissions';
|
|
277
301
|
export * from './PutSupportTicket';
|
|
@@ -279,6 +303,7 @@ export * from './PutUser';
|
|
|
279
303
|
export * from './QuizContent';
|
|
280
304
|
export * from './QuizContentAssignment';
|
|
281
305
|
export * from './QuizContentSettings';
|
|
306
|
+
export * from './ResourceType';
|
|
282
307
|
export * from './RichTextAsset';
|
|
283
308
|
export * from './RichTextDocument';
|
|
284
309
|
export * from './RichTextInput';
|