@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,57 @@
|
|
|
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 { GetResource } from './GetResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetResourceList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetResourceList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetResourceList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetResourceList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetResource>}
|
|
46
|
+
* @memberof GetResourceList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetResource>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetResourceList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetResourceList(value: object): value is GetResourceList;
|
|
54
|
+
export declare function GetResourceListFromJSON(json: any): GetResourceList;
|
|
55
|
+
export declare function GetResourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceList;
|
|
56
|
+
export declare function GetResourceListToJSON(json: any): GetResourceList;
|
|
57
|
+
export declare function GetResourceListToJSONTyped(value?: GetResourceList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
import { GetResourceFromJSON, GetResourceToJSON, } from './GetResource';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetResourceListFromJSON(json) {
|
|
32
|
+
return GetResourceListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetResourceListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(GetResourceFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetResourceListToJSON(json) {
|
|
47
|
+
return GetResourceListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetResourceToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { GetResourceUsageCoursesInner } from './GetResourceUsageCoursesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceUsage
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceUsage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetResourceUsage
|
|
23
|
+
*/
|
|
24
|
+
resourceId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetResourceUsage
|
|
29
|
+
*/
|
|
30
|
+
publishedCourseCount: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetResourceUsage
|
|
35
|
+
*/
|
|
36
|
+
draftCourseCount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetResourceUsage
|
|
41
|
+
*/
|
|
42
|
+
historicalCourseCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetResourceUsage
|
|
47
|
+
*/
|
|
48
|
+
activeLearnerCount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<GetResourceUsageCoursesInner>}
|
|
52
|
+
* @memberof GetResourceUsage
|
|
53
|
+
*/
|
|
54
|
+
courses: Array<GetResourceUsageCoursesInner>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetResourceUsage interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetResourceUsage(value: object): value is GetResourceUsage;
|
|
60
|
+
export declare function GetResourceUsageFromJSON(json: any): GetResourceUsage;
|
|
61
|
+
export declare function GetResourceUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceUsage;
|
|
62
|
+
export declare function GetResourceUsageToJSON(json: any): GetResourceUsage;
|
|
63
|
+
export declare function GetResourceUsageToJSONTyped(value?: GetResourceUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { GetResourceUsageCoursesInnerFromJSON, GetResourceUsageCoursesInnerToJSON, } from './GetResourceUsageCoursesInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceUsage interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceUsage(value) {
|
|
19
|
+
if (!('resourceId' in value) || value['resourceId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('historicalCourseCount' in value) || value['historicalCourseCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('courses' in value) || value['courses'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function GetResourceUsageFromJSON(json) {
|
|
34
|
+
return GetResourceUsageFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetResourceUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'resourceId': json['resource_id'],
|
|
42
|
+
'publishedCourseCount': json['published_course_count'],
|
|
43
|
+
'draftCourseCount': json['draft_course_count'],
|
|
44
|
+
'historicalCourseCount': json['historical_course_count'],
|
|
45
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
46
|
+
'courses': (json['courses'].map(GetResourceUsageCoursesInnerFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceUsageToJSON(json) {
|
|
50
|
+
return GetResourceUsageToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function GetResourceUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'resource_id': value['resourceId'],
|
|
58
|
+
'published_course_count': value['publishedCourseCount'],
|
|
59
|
+
'draft_course_count': value['draftCourseCount'],
|
|
60
|
+
'historical_course_count': value['historicalCourseCount'],
|
|
61
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
62
|
+
'courses': (value['courses'].map(GetResourceUsageCoursesInnerToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceUsageCoursesInner
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceUsageCoursesInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetResourceUsageCoursesInner
|
|
23
|
+
*/
|
|
24
|
+
courseId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetResourceUsageCoursesInner
|
|
29
|
+
*/
|
|
30
|
+
courseVersionId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetResourceUsageCoursesInner
|
|
35
|
+
*/
|
|
36
|
+
courseVersionNumber: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ContentLibraryVersionStatus}
|
|
40
|
+
* @memberof GetResourceUsageCoursesInner
|
|
41
|
+
*/
|
|
42
|
+
courseStatus: ContentLibraryVersionStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetResourceUsageCoursesInner
|
|
47
|
+
*/
|
|
48
|
+
resourceVersionId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GetResourceUsageCoursesInner
|
|
53
|
+
*/
|
|
54
|
+
resourceVersionNumber: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetResourceUsageCoursesInner interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetResourceUsageCoursesInner(value: object): value is GetResourceUsageCoursesInner;
|
|
60
|
+
export declare function GetResourceUsageCoursesInnerFromJSON(json: any): GetResourceUsageCoursesInner;
|
|
61
|
+
export declare function GetResourceUsageCoursesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceUsageCoursesInner;
|
|
62
|
+
export declare function GetResourceUsageCoursesInnerToJSON(json: any): GetResourceUsageCoursesInner;
|
|
63
|
+
export declare function GetResourceUsageCoursesInnerToJSONTyped(value?: GetResourceUsageCoursesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { ContentLibraryVersionStatusFromJSON, ContentLibraryVersionStatusToJSON, } from './ContentLibraryVersionStatus';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceUsageCoursesInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceUsageCoursesInner(value) {
|
|
19
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('courseStatus' in value) || value['courseStatus'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('resourceVersionId' in value) || value['resourceVersionId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('resourceVersionNumber' in value) || value['resourceVersionNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function GetResourceUsageCoursesInnerFromJSON(json) {
|
|
34
|
+
return GetResourceUsageCoursesInnerFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetResourceUsageCoursesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'courseId': json['course_id'],
|
|
42
|
+
'courseVersionId': json['course_version_id'],
|
|
43
|
+
'courseVersionNumber': json['course_version_number'],
|
|
44
|
+
'courseStatus': ContentLibraryVersionStatusFromJSON(json['course_status']),
|
|
45
|
+
'resourceVersionId': json['resource_version_id'],
|
|
46
|
+
'resourceVersionNumber': json['resource_version_number'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceUsageCoursesInnerToJSON(json) {
|
|
50
|
+
return GetResourceUsageCoursesInnerToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function GetResourceUsageCoursesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'course_id': value['courseId'],
|
|
58
|
+
'course_version_id': value['courseVersionId'],
|
|
59
|
+
'course_version_number': value['courseVersionNumber'],
|
|
60
|
+
'course_status': ContentLibraryVersionStatusToJSON(value['courseStatus']),
|
|
61
|
+
'resource_version_id': value['resourceVersionId'],
|
|
62
|
+
'resource_version_number': value['resourceVersionNumber'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetResourceVersionUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetResourceVersionUpload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetResourceVersionUpload
|
|
22
|
+
*/
|
|
23
|
+
uploadUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetResourceVersionUpload
|
|
28
|
+
*/
|
|
29
|
+
versionId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetResourceVersionUpload interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetResourceVersionUpload(value: object): value is GetResourceVersionUpload;
|
|
35
|
+
export declare function GetResourceVersionUploadFromJSON(json: any): GetResourceVersionUpload;
|
|
36
|
+
export declare function GetResourceVersionUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceVersionUpload;
|
|
37
|
+
export declare function GetResourceVersionUploadToJSON(json: any): GetResourceVersionUpload;
|
|
38
|
+
export declare function GetResourceVersionUploadToJSONTyped(value?: GetResourceVersionUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the GetResourceVersionUpload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetResourceVersionUpload(value) {
|
|
18
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('versionId' in value) || value['versionId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function GetResourceVersionUploadFromJSON(json) {
|
|
25
|
+
return GetResourceVersionUploadFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function GetResourceVersionUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'uploadUrl': json['upload_url'],
|
|
33
|
+
'versionId': json['version_id'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetResourceVersionUploadToJSON(json) {
|
|
37
|
+
return GetResourceVersionUploadToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetResourceVersionUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'upload_url': value['uploadUrl'],
|
|
45
|
+
'version_id': value['versionId'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostCourseDraft
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourseDraft {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCourseDraft
|
|
22
|
+
*/
|
|
23
|
+
changeNotes?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostCourseDraft interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostCourseDraft(value: object): value is PostCourseDraft;
|
|
29
|
+
export declare function PostCourseDraftFromJSON(json: any): PostCourseDraft;
|
|
30
|
+
export declare function PostCourseDraftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseDraft;
|
|
31
|
+
export declare function PostCourseDraftToJSON(json: any): PostCourseDraft;
|
|
32
|
+
export declare function PostCourseDraftToJSONTyped(value?: PostCourseDraft | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* Check if a given object implements the PostCourseDraft interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostCourseDraft(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PostCourseDraftFromJSON(json) {
|
|
21
|
+
return PostCourseDraftFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PostCourseDraftFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function PostCourseDraftToJSON(json) {
|
|
32
|
+
return PostCourseDraftToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PostCourseDraftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'change_notes': value['changeNotes'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostCourseVersionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface PostCourseVersionItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostCourseVersionItem
|
|
23
|
+
*/
|
|
24
|
+
contentLibraryItemId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostCourseVersionItem
|
|
29
|
+
*/
|
|
30
|
+
contentLibraryVersionId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PostCourseVersionItem
|
|
35
|
+
*/
|
|
36
|
+
moduleId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PostCourseVersionItem
|
|
41
|
+
*/
|
|
42
|
+
displayName?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PostCourseVersionItem
|
|
47
|
+
*/
|
|
48
|
+
displayOrder?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof PostCourseVersionItem
|
|
53
|
+
*/
|
|
54
|
+
isVisible?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ContentLaunchMode}
|
|
58
|
+
* @memberof PostCourseVersionItem
|
|
59
|
+
*/
|
|
60
|
+
launchMode?: ContentLaunchMode;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof PostCourseVersionItem
|
|
65
|
+
*/
|
|
66
|
+
maxAttempts?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {PostCourseVersionItemScoreRollupStrategyEnum}
|
|
70
|
+
* @memberof PostCourseVersionItem
|
|
71
|
+
*/
|
|
72
|
+
scoreRollupStrategy?: PostCourseVersionItemScoreRollupStrategyEnum;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {{ [key: string]: any; }}
|
|
76
|
+
* @memberof PostCourseVersionItem
|
|
77
|
+
*/
|
|
78
|
+
settings?: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const PostCourseVersionItemScoreRollupStrategyEnum: {
|
|
86
|
+
readonly Latest: "Latest";
|
|
87
|
+
readonly Best: "Best";
|
|
88
|
+
};
|
|
89
|
+
export type PostCourseVersionItemScoreRollupStrategyEnum = typeof PostCourseVersionItemScoreRollupStrategyEnum[keyof typeof PostCourseVersionItemScoreRollupStrategyEnum];
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the PostCourseVersionItem interface.
|
|
92
|
+
*/
|
|
93
|
+
export declare function instanceOfPostCourseVersionItem(value: object): value is PostCourseVersionItem;
|
|
94
|
+
export declare function PostCourseVersionItemFromJSON(json: any): PostCourseVersionItem;
|
|
95
|
+
export declare function PostCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItem;
|
|
96
|
+
export declare function PostCourseVersionItemToJSON(json: any): PostCourseVersionItem;
|
|
97
|
+
export declare function PostCourseVersionItemToJSONTyped(value?: PostCourseVersionItem | null, ignoreDiscriminator?: boolean): any;
|