@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,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentVersionList = instanceOfGetContentVersionList;
|
|
17
|
+
exports.GetContentVersionListFromJSON = GetContentVersionListFromJSON;
|
|
18
|
+
exports.GetContentVersionListFromJSONTyped = GetContentVersionListFromJSONTyped;
|
|
19
|
+
exports.GetContentVersionListToJSON = GetContentVersionListToJSON;
|
|
20
|
+
exports.GetContentVersionListToJSONTyped = GetContentVersionListToJSONTyped;
|
|
21
|
+
const GetContentVersionListItemsInner_1 = require("./GetContentVersionListItemsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetContentVersionList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetContentVersionList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetContentVersionListFromJSON(json) {
|
|
39
|
+
return GetContentVersionListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetContentVersionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['page_size'],
|
|
48
|
+
'totalPages': json['total_pages'],
|
|
49
|
+
'totalItems': json['total_items'],
|
|
50
|
+
'items': (json['items'].map(GetContentVersionListItemsInner_1.GetContentVersionListItemsInnerFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetContentVersionListToJSON(json) {
|
|
54
|
+
return GetContentVersionListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetContentVersionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'page_size': value['pageSize'],
|
|
63
|
+
'total_pages': value['totalPages'],
|
|
64
|
+
'total_items': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetContentVersionListItemsInner_1.GetContentVersionListItemsInnerToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 GetContentVersionListItemsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentVersionListItemsInner {
|
|
18
|
+
/**
|
|
19
|
+
* The external_id (UUID) for this version
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentVersionListItemsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version number
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetContentVersionListItemsInner
|
|
28
|
+
*/
|
|
29
|
+
version: number;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this is the currently active version
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof GetContentVersionListItemsInner
|
|
34
|
+
*/
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* When this version was created
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof GetContentVersionListItemsInner
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
* When this version was last updated
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof GetContentVersionListItemsInner
|
|
46
|
+
*/
|
|
47
|
+
updatedAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetContentVersionListItemsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGetContentVersionListItemsInner(value: object): value is GetContentVersionListItemsInner;
|
|
53
|
+
export declare function GetContentVersionListItemsInnerFromJSON(json: any): GetContentVersionListItemsInner;
|
|
54
|
+
export declare function GetContentVersionListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionListItemsInner;
|
|
55
|
+
export declare function GetContentVersionListItemsInnerToJSON(json: any): GetContentVersionListItemsInner;
|
|
56
|
+
export declare function GetContentVersionListItemsInnerToJSONTyped(value?: GetContentVersionListItemsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentVersionListItemsInner = instanceOfGetContentVersionListItemsInner;
|
|
17
|
+
exports.GetContentVersionListItemsInnerFromJSON = GetContentVersionListItemsInnerFromJSON;
|
|
18
|
+
exports.GetContentVersionListItemsInnerFromJSONTyped = GetContentVersionListItemsInnerFromJSONTyped;
|
|
19
|
+
exports.GetContentVersionListItemsInnerToJSON = GetContentVersionListItemsInnerToJSON;
|
|
20
|
+
exports.GetContentVersionListItemsInnerToJSONTyped = GetContentVersionListItemsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetContentVersionListItemsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetContentVersionListItemsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function GetContentVersionListItemsInnerFromJSON(json) {
|
|
38
|
+
return GetContentVersionListItemsInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function GetContentVersionListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'version': json['version'],
|
|
47
|
+
'isActive': json['is_active'],
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function GetContentVersionListItemsInnerToJSON(json) {
|
|
53
|
+
return GetContentVersionListItemsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetContentVersionListItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'version': value['version'],
|
|
62
|
+
'is_active': value['isActive'],
|
|
63
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
64
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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
|
+
* Sandbox data for this version
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentVersionSandbox
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentVersionSandbox {
|
|
18
|
+
/**
|
|
19
|
+
* URL to launch the content in sandbox mode
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentVersionSandbox
|
|
22
|
+
*/
|
|
23
|
+
launchUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetContentVersionSandbox interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetContentVersionSandbox(value: object): value is GetContentVersionSandbox;
|
|
29
|
+
export declare function GetContentVersionSandboxFromJSON(json: any): GetContentVersionSandbox;
|
|
30
|
+
export declare function GetContentVersionSandboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionSandbox;
|
|
31
|
+
export declare function GetContentVersionSandboxToJSON(json: any): GetContentVersionSandbox;
|
|
32
|
+
export declare function GetContentVersionSandboxToJSONTyped(value?: GetContentVersionSandbox | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentVersionSandbox = instanceOfGetContentVersionSandbox;
|
|
17
|
+
exports.GetContentVersionSandboxFromJSON = GetContentVersionSandboxFromJSON;
|
|
18
|
+
exports.GetContentVersionSandboxFromJSONTyped = GetContentVersionSandboxFromJSONTyped;
|
|
19
|
+
exports.GetContentVersionSandboxToJSON = GetContentVersionSandboxToJSON;
|
|
20
|
+
exports.GetContentVersionSandboxToJSONTyped = GetContentVersionSandboxToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetContentVersionSandbox interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetContentVersionSandbox(value) {
|
|
25
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetContentVersionSandboxFromJSON(json) {
|
|
30
|
+
return GetContentVersionSandboxFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetContentVersionSandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'launchUrl': json['launch_url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetContentVersionSandboxToJSON(json) {
|
|
41
|
+
return GetContentVersionSandboxToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetContentVersionSandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'launch_url': value['launchUrl'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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
|
+
* SCORM-specific data (only present for SCORM content type)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentVersionScormData
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentVersionScormData {
|
|
18
|
+
/**
|
|
19
|
+
* The external_id (UUID) of the scorm_content record
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentVersionScormData
|
|
22
|
+
*/
|
|
23
|
+
scormPackageId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetContentVersionScormData interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetContentVersionScormData(value: object): value is GetContentVersionScormData;
|
|
29
|
+
export declare function GetContentVersionScormDataFromJSON(json: any): GetContentVersionScormData;
|
|
30
|
+
export declare function GetContentVersionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionScormData;
|
|
31
|
+
export declare function GetContentVersionScormDataToJSON(json: any): GetContentVersionScormData;
|
|
32
|
+
export declare function GetContentVersionScormDataToJSONTyped(value?: GetContentVersionScormData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentVersionScormData = instanceOfGetContentVersionScormData;
|
|
17
|
+
exports.GetContentVersionScormDataFromJSON = GetContentVersionScormDataFromJSON;
|
|
18
|
+
exports.GetContentVersionScormDataFromJSONTyped = GetContentVersionScormDataFromJSONTyped;
|
|
19
|
+
exports.GetContentVersionScormDataToJSON = GetContentVersionScormDataToJSON;
|
|
20
|
+
exports.GetContentVersionScormDataToJSONTyped = GetContentVersionScormDataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetContentVersionScormData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetContentVersionScormData(value) {
|
|
25
|
+
if (!('scormPackageId' in value) || value['scormPackageId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetContentVersionScormDataFromJSON(json) {
|
|
30
|
+
return GetContentVersionScormDataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetContentVersionScormDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'scormPackageId': json['scorm_package_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetContentVersionScormDataToJSON(json) {
|
|
41
|
+
return GetContentVersionScormDataToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetContentVersionScormDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'scorm_package_id': value['scormPackageId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* Details of a course SCORM export
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetCourseExport
|
|
16
|
+
*/
|
|
17
|
+
export interface GetCourseExport {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the export
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetCourseExport
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the course being exported
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetCourseExport
|
|
28
|
+
*/
|
|
29
|
+
courseId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The SCORM version to export
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetCourseExport
|
|
34
|
+
*/
|
|
35
|
+
scormVersion: GetCourseExportScormVersionEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Current status of the export generation
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetCourseExport
|
|
40
|
+
*/
|
|
41
|
+
status: GetCourseExportStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
* URL to download the export zip file (null if not yet completed)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetCourseExport
|
|
46
|
+
*/
|
|
47
|
+
downloadUrl?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Size of the export file in bytes (null if not yet completed)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetCourseExport
|
|
52
|
+
*/
|
|
53
|
+
fileSize?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Error message if status is FAILED
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetCourseExport
|
|
58
|
+
*/
|
|
59
|
+
errorMessage?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Unix epoch timestamp when the export was created
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetCourseExport
|
|
64
|
+
*/
|
|
65
|
+
createdAt: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const GetCourseExportScormVersionEnum: {
|
|
71
|
+
readonly Scorm12: "SCORM_1_2";
|
|
72
|
+
readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
|
|
73
|
+
readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
|
|
74
|
+
};
|
|
75
|
+
export type GetCourseExportScormVersionEnum = typeof GetCourseExportScormVersionEnum[keyof typeof GetCourseExportScormVersionEnum];
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const GetCourseExportStatusEnum: {
|
|
80
|
+
readonly Pending: "PENDING";
|
|
81
|
+
readonly Processing: "PROCESSING";
|
|
82
|
+
readonly Completed: "COMPLETED";
|
|
83
|
+
readonly Failed: "FAILED";
|
|
84
|
+
};
|
|
85
|
+
export type GetCourseExportStatusEnum = typeof GetCourseExportStatusEnum[keyof typeof GetCourseExportStatusEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the GetCourseExport interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfGetCourseExport(value: object): value is GetCourseExport;
|
|
90
|
+
export declare function GetCourseExportFromJSON(json: any): GetCourseExport;
|
|
91
|
+
export declare function GetCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseExport;
|
|
92
|
+
export declare function GetCourseExportToJSON(json: any): GetCourseExport;
|
|
93
|
+
export declare function GetCourseExportToJSONTyped(value?: GetCourseExport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetCourseExportStatusEnum = exports.GetCourseExportScormVersionEnum = void 0;
|
|
17
|
+
exports.instanceOfGetCourseExport = instanceOfGetCourseExport;
|
|
18
|
+
exports.GetCourseExportFromJSON = GetCourseExportFromJSON;
|
|
19
|
+
exports.GetCourseExportFromJSONTyped = GetCourseExportFromJSONTyped;
|
|
20
|
+
exports.GetCourseExportToJSON = GetCourseExportToJSON;
|
|
21
|
+
exports.GetCourseExportToJSONTyped = GetCourseExportToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetCourseExportScormVersionEnum = {
|
|
26
|
+
Scorm12: 'SCORM_1_2',
|
|
27
|
+
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
28
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.GetCourseExportStatusEnum = {
|
|
34
|
+
Pending: 'PENDING',
|
|
35
|
+
Processing: 'PROCESSING',
|
|
36
|
+
Completed: 'COMPLETED',
|
|
37
|
+
Failed: 'FAILED'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GetCourseExport interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfGetCourseExport(value) {
|
|
43
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function GetCourseExportFromJSON(json) {
|
|
56
|
+
return GetCourseExportFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'courseId': json['course_id'],
|
|
65
|
+
'scormVersion': json['scorm_version'],
|
|
66
|
+
'status': json['status'],
|
|
67
|
+
'downloadUrl': json['download_url'] == null ? undefined : json['download_url'],
|
|
68
|
+
'fileSize': json['file_size'] == null ? undefined : json['file_size'],
|
|
69
|
+
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
70
|
+
'createdAt': json['created_at'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function GetCourseExportToJSON(json) {
|
|
74
|
+
return GetCourseExportToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'id': value['id'],
|
|
82
|
+
'course_id': value['courseId'],
|
|
83
|
+
'scorm_version': value['scormVersion'],
|
|
84
|
+
'status': value['status'],
|
|
85
|
+
'download_url': value['downloadUrl'],
|
|
86
|
+
'file_size': value['fileSize'],
|
|
87
|
+
'error_message': value['errorMessage'],
|
|
88
|
+
'created_at': value['createdAt'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -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 { GetCourseExport } from './GetCourseExport';
|
|
13
|
+
/**
|
|
14
|
+
* A list of course exports with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseExportList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseExportList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetCourseExportList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetCourseExportList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseExportList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseExportList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetCourseExport>}
|
|
46
|
+
* @memberof GetCourseExportList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetCourseExport>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetCourseExportList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetCourseExportList(value: object): value is GetCourseExportList;
|
|
54
|
+
export declare function GetCourseExportListFromJSON(json: any): GetCourseExportList;
|
|
55
|
+
export declare function GetCourseExportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseExportList;
|
|
56
|
+
export declare function GetCourseExportListToJSON(json: any): GetCourseExportList;
|
|
57
|
+
export declare function GetCourseExportListToJSONTyped(value?: GetCourseExportList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetCourseExportList = instanceOfGetCourseExportList;
|
|
17
|
+
exports.GetCourseExportListFromJSON = GetCourseExportListFromJSON;
|
|
18
|
+
exports.GetCourseExportListFromJSONTyped = GetCourseExportListFromJSONTyped;
|
|
19
|
+
exports.GetCourseExportListToJSON = GetCourseExportListToJSON;
|
|
20
|
+
exports.GetCourseExportListToJSONTyped = GetCourseExportListToJSONTyped;
|
|
21
|
+
const GetCourseExport_1 = require("./GetCourseExport");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseExportList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseExportList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetCourseExportListFromJSON(json) {
|
|
39
|
+
return GetCourseExportListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetCourseExportListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['page_size'],
|
|
48
|
+
'totalPages': json['total_pages'],
|
|
49
|
+
'totalItems': json['total_items'],
|
|
50
|
+
'items': (json['items'].map(GetCourseExport_1.GetCourseExportFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetCourseExportListToJSON(json) {
|
|
54
|
+
return GetCourseExportListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetCourseExportListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'page_size': value['pageSize'],
|
|
63
|
+
'total_pages': value['totalPages'],
|
|
64
|
+
'total_items': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetCourseExport_1.GetCourseExportToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|