@easyedu/js-lsm-api 1.25.0 → 1.27.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 +11 -0
- package/README.md +2 -2
- package/dist/apis/ContentApi.d.ts +64 -1
- package/dist/apis/ContentApi.js +155 -0
- package/dist/apis/CourseApi.d.ts +40 -1
- package/dist/apis/CourseApi.js +100 -0
- package/dist/esm/apis/ContentApi.d.ts +64 -1
- package/dist/esm/apis/ContentApi.js +156 -1
- package/dist/esm/apis/CourseApi.d.ts +40 -1
- package/dist/esm/apis/CourseApi.js +101 -1
- package/dist/esm/models/GetContentVersion.d.ts +76 -0
- package/dist/esm/models/GetContentVersion.js +71 -0
- package/dist/esm/models/GetContentVersionList.d.ts +57 -0
- package/dist/esm/models/GetContentVersionList.js +60 -0
- package/dist/esm/models/GetContentVersionListItemsInner.d.ts +56 -0
- package/dist/esm/models/GetContentVersionListItemsInner.js +59 -0
- package/dist/esm/models/GetContentVersionSandbox.d.ts +32 -0
- package/dist/esm/models/GetContentVersionSandbox.js +43 -0
- package/dist/esm/models/GetContentVersionScormData.d.ts +32 -0
- package/dist/esm/models/GetContentVersionScormData.js +43 -0
- package/dist/esm/models/GetCourseExport.d.ts +93 -0
- package/dist/esm/models/GetCourseExport.js +82 -0
- package/dist/esm/models/GetCourseExportList.d.ts +57 -0
- package/dist/esm/models/GetCourseExportList.js +60 -0
- package/dist/esm/models/GetScormPackage.d.ts +39 -0
- package/dist/esm/models/GetScormPackage.js +48 -0
- package/dist/esm/models/GetScormPackagePackageInfo.d.ts +104 -0
- package/dist/esm/models/GetScormPackagePackageInfo.js +81 -0
- package/dist/esm/models/PostCourseExport.d.ts +41 -0
- package/dist/esm/models/PostCourseExport.js +51 -0
- package/dist/esm/models/PutContentVersion.d.ts +32 -0
- package/dist/esm/models/PutContentVersion.js +43 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/GetContentVersion.d.ts +76 -0
- package/dist/models/GetContentVersion.js +78 -0
- package/dist/models/GetContentVersionList.d.ts +57 -0
- package/dist/models/GetContentVersionList.js +67 -0
- package/dist/models/GetContentVersionListItemsInner.d.ts +56 -0
- package/dist/models/GetContentVersionListItemsInner.js +66 -0
- package/dist/models/GetContentVersionSandbox.d.ts +32 -0
- package/dist/models/GetContentVersionSandbox.js +50 -0
- package/dist/models/GetContentVersionScormData.d.ts +32 -0
- package/dist/models/GetContentVersionScormData.js +50 -0
- package/dist/models/GetCourseExport.d.ts +93 -0
- package/dist/models/GetCourseExport.js +90 -0
- package/dist/models/GetCourseExportList.d.ts +57 -0
- package/dist/models/GetCourseExportList.js +67 -0
- package/dist/models/GetScormPackage.d.ts +39 -0
- package/dist/models/GetScormPackage.js +55 -0
- package/dist/models/GetScormPackagePackageInfo.d.ts +104 -0
- package/dist/models/GetScormPackagePackageInfo.js +88 -0
- package/dist/models/PostCourseExport.d.ts +41 -0
- package/dist/models/PostCourseExport.js +59 -0
- package/dist/models/PutContentVersion.d.ts +32 -0
- package/dist/models/PutContentVersion.js +50 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +253 -0
- package/src/apis/CourseApi.ts +151 -0
- package/src/models/GetContentVersion.ts +143 -0
- package/src/models/GetContentVersionList.ts +110 -0
- package/src/models/GetContentVersionListItemsInner.ts +102 -0
- package/src/models/GetContentVersionSandbox.ts +66 -0
- package/src/models/GetContentVersionScormData.ts +66 -0
- package/src/models/GetCourseExport.ts +149 -0
- package/src/models/GetCourseExportList.ts +110 -0
- package/src/models/GetScormPackage.ts +83 -0
- package/src/models/GetScormPackagePackageInfo.ts +169 -0
- package/src/models/PostCourseExport.ts +78 -0
- package/src/models/PutContentVersion.ts +66 -0
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,110 @@
|
|
|
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 { GetContentVersionListItemsInner } from './GetContentVersionListItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
GetContentVersionListItemsInnerFromJSON,
|
|
19
|
+
GetContentVersionListItemsInnerFromJSONTyped,
|
|
20
|
+
GetContentVersionListItemsInnerToJSON,
|
|
21
|
+
GetContentVersionListItemsInnerToJSONTyped,
|
|
22
|
+
} from './GetContentVersionListItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A paginated list of content versions
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetContentVersionList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetContentVersionList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetContentVersionList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetContentVersionList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetContentVersionList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of versions
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetContentVersionList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
* List of content versions
|
|
56
|
+
* @type {Array<GetContentVersionListItemsInner>}
|
|
57
|
+
* @memberof GetContentVersionList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<GetContentVersionListItemsInner>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetContentVersionList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetContentVersionList(value: object): value is GetContentVersionList {
|
|
66
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
67
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
68
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetContentVersionListFromJSON(json: any): GetContentVersionList {
|
|
75
|
+
return GetContentVersionListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetContentVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionList {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'page': json['page'],
|
|
85
|
+
'pageSize': json['page_size'],
|
|
86
|
+
'totalPages': json['total_pages'],
|
|
87
|
+
'totalItems': json['total_items'],
|
|
88
|
+
'items': ((json['items'] as Array<any>).map(GetContentVersionListItemsInnerFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetContentVersionListToJSON(json: any): GetContentVersionList {
|
|
93
|
+
return GetContentVersionListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetContentVersionListToJSONTyped(value?: GetContentVersionList | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'page': value['page'],
|
|
104
|
+
'page_size': value['pageSize'],
|
|
105
|
+
'total_pages': value['totalPages'],
|
|
106
|
+
'total_items': value['totalItems'],
|
|
107
|
+
'items': ((value['items'] as Array<any>).map(GetContentVersionListItemsInnerToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 GetContentVersionListItemsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface GetContentVersionListItemsInner {
|
|
22
|
+
/**
|
|
23
|
+
* The external_id (UUID) for this version
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetContentVersionListItemsInner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version number
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetContentVersionListItemsInner
|
|
32
|
+
*/
|
|
33
|
+
version: number;
|
|
34
|
+
/**
|
|
35
|
+
* Whether this is the currently active version
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof GetContentVersionListItemsInner
|
|
38
|
+
*/
|
|
39
|
+
isActive: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* When this version was created
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof GetContentVersionListItemsInner
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
* When this version was last updated
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof GetContentVersionListItemsInner
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the GetContentVersionListItemsInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfGetContentVersionListItemsInner(value: object): value is GetContentVersionListItemsInner {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
60
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
61
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
62
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GetContentVersionListItemsInnerFromJSON(json: any): GetContentVersionListItemsInner {
|
|
67
|
+
return GetContentVersionListItemsInnerFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GetContentVersionListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionListItemsInner {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'version': json['version'],
|
|
78
|
+
'isActive': json['is_active'],
|
|
79
|
+
'createdAt': (new Date(json['created_at'])),
|
|
80
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GetContentVersionListItemsInnerToJSON(json: any): GetContentVersionListItemsInner {
|
|
85
|
+
return GetContentVersionListItemsInnerToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetContentVersionListItemsInnerToJSONTyped(value?: GetContentVersionListItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'version': value['version'],
|
|
97
|
+
'is_active': value['isActive'],
|
|
98
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
99
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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
|
+
* Sandbox data for this version
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetContentVersionSandbox
|
|
20
|
+
*/
|
|
21
|
+
export interface GetContentVersionSandbox {
|
|
22
|
+
/**
|
|
23
|
+
* URL to launch the content in sandbox mode
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetContentVersionSandbox
|
|
26
|
+
*/
|
|
27
|
+
launchUrl: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetContentVersionSandbox interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetContentVersionSandbox(value: object): value is GetContentVersionSandbox {
|
|
34
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GetContentVersionSandboxFromJSON(json: any): GetContentVersionSandbox {
|
|
39
|
+
return GetContentVersionSandboxFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GetContentVersionSandboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionSandbox {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'launchUrl': json['launch_url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetContentVersionSandboxToJSON(json: any): GetContentVersionSandbox {
|
|
53
|
+
return GetContentVersionSandboxToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetContentVersionSandboxToJSONTyped(value?: GetContentVersionSandbox | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'launch_url': value['launchUrl'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
+
* SCORM-specific data (only present for SCORM content type)
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetContentVersionScormData
|
|
20
|
+
*/
|
|
21
|
+
export interface GetContentVersionScormData {
|
|
22
|
+
/**
|
|
23
|
+
* The external_id (UUID) of the scorm_content record
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetContentVersionScormData
|
|
26
|
+
*/
|
|
27
|
+
scormPackageId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetContentVersionScormData interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetContentVersionScormData(value: object): value is GetContentVersionScormData {
|
|
34
|
+
if (!('scormPackageId' in value) || value['scormPackageId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GetContentVersionScormDataFromJSON(json: any): GetContentVersionScormData {
|
|
39
|
+
return GetContentVersionScormDataFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GetContentVersionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionScormData {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'scormPackageId': json['scorm_package_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetContentVersionScormDataToJSON(json: any): GetContentVersionScormData {
|
|
53
|
+
return GetContentVersionScormDataToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetContentVersionScormDataToJSONTyped(value?: GetContentVersionScormData | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'scorm_package_id': value['scormPackageId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
* Details of a course SCORM export
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetCourseExport
|
|
20
|
+
*/
|
|
21
|
+
export interface GetCourseExport {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the export
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetCourseExport
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the course being exported
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetCourseExport
|
|
32
|
+
*/
|
|
33
|
+
courseId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The SCORM version to export
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetCourseExport
|
|
38
|
+
*/
|
|
39
|
+
scormVersion: GetCourseExportScormVersionEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Current status of the export generation
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetCourseExport
|
|
44
|
+
*/
|
|
45
|
+
status: GetCourseExportStatusEnum;
|
|
46
|
+
/**
|
|
47
|
+
* URL to download the export zip file (null if not yet completed)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetCourseExport
|
|
50
|
+
*/
|
|
51
|
+
downloadUrl?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Size of the export file in bytes (null if not yet completed)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetCourseExport
|
|
56
|
+
*/
|
|
57
|
+
fileSize?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
* Error message if status is FAILED
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof GetCourseExport
|
|
62
|
+
*/
|
|
63
|
+
errorMessage?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Unix epoch timestamp when the export was created
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetCourseExport
|
|
68
|
+
*/
|
|
69
|
+
createdAt: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const GetCourseExportScormVersionEnum = {
|
|
77
|
+
Scorm12: 'SCORM_1_2',
|
|
78
|
+
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
79
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
80
|
+
} as const;
|
|
81
|
+
export type GetCourseExportScormVersionEnum = typeof GetCourseExportScormVersionEnum[keyof typeof GetCourseExportScormVersionEnum];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export const GetCourseExportStatusEnum = {
|
|
87
|
+
Pending: 'PENDING',
|
|
88
|
+
Processing: 'PROCESSING',
|
|
89
|
+
Completed: 'COMPLETED',
|
|
90
|
+
Failed: 'FAILED'
|
|
91
|
+
} as const;
|
|
92
|
+
export type GetCourseExportStatusEnum = typeof GetCourseExportStatusEnum[keyof typeof GetCourseExportStatusEnum];
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the GetCourseExport interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfGetCourseExport(value: object): value is GetCourseExport {
|
|
99
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
100
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
101
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined) return false;
|
|
102
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
103
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function GetCourseExportFromJSON(json: any): GetCourseExport {
|
|
108
|
+
return GetCourseExportFromJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function GetCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseExport {
|
|
112
|
+
if (json == null) {
|
|
113
|
+
return json;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'id': json['id'],
|
|
118
|
+
'courseId': json['course_id'],
|
|
119
|
+
'scormVersion': json['scorm_version'],
|
|
120
|
+
'status': json['status'],
|
|
121
|
+
'downloadUrl': json['download_url'] == null ? undefined : json['download_url'],
|
|
122
|
+
'fileSize': json['file_size'] == null ? undefined : json['file_size'],
|
|
123
|
+
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
124
|
+
'createdAt': json['created_at'],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function GetCourseExportToJSON(json: any): GetCourseExport {
|
|
129
|
+
return GetCourseExportToJSONTyped(json, false);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function GetCourseExportToJSONTyped(value?: GetCourseExport | null, ignoreDiscriminator: boolean = false): any {
|
|
133
|
+
if (value == null) {
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return {
|
|
138
|
+
|
|
139
|
+
'id': value['id'],
|
|
140
|
+
'course_id': value['courseId'],
|
|
141
|
+
'scorm_version': value['scormVersion'],
|
|
142
|
+
'status': value['status'],
|
|
143
|
+
'download_url': value['downloadUrl'],
|
|
144
|
+
'file_size': value['fileSize'],
|
|
145
|
+
'error_message': value['errorMessage'],
|
|
146
|
+
'created_at': value['createdAt'],
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { GetCourseExport } from './GetCourseExport';
|
|
17
|
+
import {
|
|
18
|
+
GetCourseExportFromJSON,
|
|
19
|
+
GetCourseExportFromJSONTyped,
|
|
20
|
+
GetCourseExportToJSON,
|
|
21
|
+
GetCourseExportToJSONTyped,
|
|
22
|
+
} from './GetCourseExport';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A list of course exports with pagination information
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetCourseExportList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetCourseExportList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetCourseExportList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetCourseExportList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetCourseExportList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of items
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetCourseExportList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<GetCourseExport>}
|
|
57
|
+
* @memberof GetCourseExportList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<GetCourseExport>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetCourseExportList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetCourseExportList(value: object): value is GetCourseExportList {
|
|
66
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
67
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
68
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetCourseExportListFromJSON(json: any): GetCourseExportList {
|
|
75
|
+
return GetCourseExportListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetCourseExportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseExportList {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'page': json['page'],
|
|
85
|
+
'pageSize': json['page_size'],
|
|
86
|
+
'totalPages': json['total_pages'],
|
|
87
|
+
'totalItems': json['total_items'],
|
|
88
|
+
'items': ((json['items'] as Array<any>).map(GetCourseExportFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetCourseExportListToJSON(json: any): GetCourseExportList {
|
|
93
|
+
return GetCourseExportListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetCourseExportListToJSONTyped(value?: GetCourseExportList | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'page': value['page'],
|
|
104
|
+
'page_size': value['pageSize'],
|
|
105
|
+
'total_pages': value['totalPages'],
|
|
106
|
+
'total_items': value['totalItems'],
|
|
107
|
+
'items': ((value['items'] as Array<any>).map(GetCourseExportToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { GetScormPackagePackageInfo } from './GetScormPackagePackageInfo';
|
|
17
|
+
import {
|
|
18
|
+
GetScormPackagePackageInfoFromJSON,
|
|
19
|
+
GetScormPackagePackageInfoFromJSONTyped,
|
|
20
|
+
GetScormPackagePackageInfoToJSON,
|
|
21
|
+
GetScormPackagePackageInfoToJSONTyped,
|
|
22
|
+
} from './GetScormPackagePackageInfo';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Details of a SCORM package
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetScormPackage
|
|
28
|
+
*/
|
|
29
|
+
export interface GetScormPackage {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetScormPackagePackageInfo}
|
|
33
|
+
* @memberof GetScormPackage
|
|
34
|
+
*/
|
|
35
|
+
packageInfo: GetScormPackagePackageInfo;
|
|
36
|
+
/**
|
|
37
|
+
* Hierarchical table of contents from the SCORM manifest (flexible JSON structure)
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof GetScormPackage
|
|
40
|
+
*/
|
|
41
|
+
tableOfContents: object;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the GetScormPackage interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfGetScormPackage(value: object): value is GetScormPackage {
|
|
48
|
+
if (!('packageInfo' in value) || value['packageInfo'] === undefined) return false;
|
|
49
|
+
if (!('tableOfContents' in value) || value['tableOfContents'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function GetScormPackageFromJSON(json: any): GetScormPackage {
|
|
54
|
+
return GetScormPackageFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function GetScormPackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormPackage {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'packageInfo': GetScormPackagePackageInfoFromJSON(json['package_info']),
|
|
64
|
+
'tableOfContents': json['table_of_contents'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GetScormPackageToJSON(json: any): GetScormPackage {
|
|
69
|
+
return GetScormPackageToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GetScormPackageToJSONTyped(value?: GetScormPackage | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'package_info': GetScormPackagePackageInfoToJSON(value['packageInfo']),
|
|
80
|
+
'table_of_contents': value['tableOfContents'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|