@easyedu/js-lsm-api 1.26.0 → 1.28.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 +8 -0
- package/README.md +2 -2
- package/dist/apis/ContentApi.d.ts +64 -1
- package/dist/apis/ContentApi.js +155 -0
- package/dist/esm/apis/ContentApi.d.ts +64 -1
- package/dist/esm/apis/ContentApi.js +156 -1
- package/dist/esm/models/GetContent.d.ts +19 -1
- package/dist/esm/models/GetContent.js +3 -0
- 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/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/PutContentVersion.d.ts +32 -0
- package/dist/esm/models/PutContentVersion.js +43 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/GetContent.d.ts +19 -1
- package/dist/models/GetContent.js +3 -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/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/PutContentVersion.d.ts +32 -0
- package/dist/models/PutContentVersion.js +50 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +253 -0
- package/src/models/GetContent.ts +22 -1
- 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/GetScormPackage.ts +83 -0
- package/src/models/GetScormPackagePackageInfo.ts +169 -0
- package/src/models/PutContentVersion.ts +66 -0
- package/src/models/index.ts +8 -0
|
@@ -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,39 @@
|
|
|
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 { GetScormPackagePackageInfo } from './GetScormPackagePackageInfo';
|
|
13
|
+
/**
|
|
14
|
+
* Details of a SCORM package
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetScormPackage
|
|
17
|
+
*/
|
|
18
|
+
export interface GetScormPackage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {GetScormPackagePackageInfo}
|
|
22
|
+
* @memberof GetScormPackage
|
|
23
|
+
*/
|
|
24
|
+
packageInfo: GetScormPackagePackageInfo;
|
|
25
|
+
/**
|
|
26
|
+
* Hierarchical table of contents from the SCORM manifest (flexible JSON structure)
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof GetScormPackage
|
|
29
|
+
*/
|
|
30
|
+
tableOfContents: object;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the GetScormPackage interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfGetScormPackage(value: object): value is GetScormPackage;
|
|
36
|
+
export declare function GetScormPackageFromJSON(json: any): GetScormPackage;
|
|
37
|
+
export declare function GetScormPackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormPackage;
|
|
38
|
+
export declare function GetScormPackageToJSON(json: any): GetScormPackage;
|
|
39
|
+
export declare function GetScormPackageToJSONTyped(value?: GetScormPackage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfGetScormPackage = instanceOfGetScormPackage;
|
|
17
|
+
exports.GetScormPackageFromJSON = GetScormPackageFromJSON;
|
|
18
|
+
exports.GetScormPackageFromJSONTyped = GetScormPackageFromJSONTyped;
|
|
19
|
+
exports.GetScormPackageToJSON = GetScormPackageToJSON;
|
|
20
|
+
exports.GetScormPackageToJSONTyped = GetScormPackageToJSONTyped;
|
|
21
|
+
const GetScormPackagePackageInfo_1 = require("./GetScormPackagePackageInfo");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetScormPackage interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetScormPackage(value) {
|
|
26
|
+
if (!('packageInfo' in value) || value['packageInfo'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('tableOfContents' in value) || value['tableOfContents'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function GetScormPackageFromJSON(json) {
|
|
33
|
+
return GetScormPackageFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function GetScormPackageFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'packageInfo': (0, GetScormPackagePackageInfo_1.GetScormPackagePackageInfoFromJSON)(json['package_info']),
|
|
41
|
+
'tableOfContents': json['table_of_contents'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function GetScormPackageToJSON(json) {
|
|
45
|
+
return GetScormPackageToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function GetScormPackageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'package_info': (0, GetScormPackagePackageInfo_1.GetScormPackagePackageInfoToJSON)(value['packageInfo']),
|
|
53
|
+
'table_of_contents': value['tableOfContents'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
* Information about the SCORM package
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetScormPackagePackageInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface GetScormPackagePackageInfo {
|
|
18
|
+
/**
|
|
19
|
+
* The external_id (UUID) for this SCORM package
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetScormPackagePackageInfo
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version number
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetScormPackagePackageInfo
|
|
28
|
+
*/
|
|
29
|
+
version: number;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this is the currently active version
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof GetScormPackagePackageInfo
|
|
34
|
+
*/
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* SCORM manifest identifier
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetScormPackagePackageInfo
|
|
40
|
+
*/
|
|
41
|
+
manifestIdentifier: string;
|
|
42
|
+
/**
|
|
43
|
+
* SCORM manifest version
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetScormPackagePackageInfo
|
|
46
|
+
*/
|
|
47
|
+
manifestVersion?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* SCORM organization identifier
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetScormPackagePackageInfo
|
|
52
|
+
*/
|
|
53
|
+
organizationIdentifier?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* SCORM organization title
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetScormPackagePackageInfo
|
|
58
|
+
*/
|
|
59
|
+
organizationTitle?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* SCORM version (e.g., "1.2", "2004")
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetScormPackagePackageInfo
|
|
64
|
+
*/
|
|
65
|
+
scormVersion: string;
|
|
66
|
+
/**
|
|
67
|
+
* S3 storage key for the package
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetScormPackagePackageInfo
|
|
70
|
+
*/
|
|
71
|
+
storageKey: string;
|
|
72
|
+
/**
|
|
73
|
+
* Total number of files in the package
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GetScormPackagePackageInfo
|
|
76
|
+
*/
|
|
77
|
+
totalFileCount?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Total size of the package in bytes
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof GetScormPackagePackageInfo
|
|
82
|
+
*/
|
|
83
|
+
packageSizeBytes?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* When this package was created
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof GetScormPackagePackageInfo
|
|
88
|
+
*/
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
/**
|
|
91
|
+
* When this package was last updated
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof GetScormPackagePackageInfo
|
|
94
|
+
*/
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the GetScormPackagePackageInfo interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfGetScormPackagePackageInfo(value: object): value is GetScormPackagePackageInfo;
|
|
101
|
+
export declare function GetScormPackagePackageInfoFromJSON(json: any): GetScormPackagePackageInfo;
|
|
102
|
+
export declare function GetScormPackagePackageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormPackagePackageInfo;
|
|
103
|
+
export declare function GetScormPackagePackageInfoToJSON(json: any): GetScormPackagePackageInfo;
|
|
104
|
+
export declare function GetScormPackagePackageInfoToJSONTyped(value?: GetScormPackagePackageInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.instanceOfGetScormPackagePackageInfo = instanceOfGetScormPackagePackageInfo;
|
|
17
|
+
exports.GetScormPackagePackageInfoFromJSON = GetScormPackagePackageInfoFromJSON;
|
|
18
|
+
exports.GetScormPackagePackageInfoFromJSONTyped = GetScormPackagePackageInfoFromJSONTyped;
|
|
19
|
+
exports.GetScormPackagePackageInfoToJSON = GetScormPackagePackageInfoToJSON;
|
|
20
|
+
exports.GetScormPackagePackageInfoToJSONTyped = GetScormPackagePackageInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetScormPackagePackageInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetScormPackagePackageInfo(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 (!('manifestIdentifier' in value) || value['manifestIdentifier'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('storageKey' in value) || value['storageKey'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function GetScormPackagePackageInfoFromJSON(json) {
|
|
44
|
+
return GetScormPackagePackageInfoFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetScormPackagePackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'version': json['version'],
|
|
53
|
+
'isActive': json['is_active'],
|
|
54
|
+
'manifestIdentifier': json['manifest_identifier'],
|
|
55
|
+
'manifestVersion': json['manifest_version'] == null ? undefined : json['manifest_version'],
|
|
56
|
+
'organizationIdentifier': json['organization_identifier'] == null ? undefined : json['organization_identifier'],
|
|
57
|
+
'organizationTitle': json['organization_title'] == null ? undefined : json['organization_title'],
|
|
58
|
+
'scormVersion': json['scorm_version'],
|
|
59
|
+
'storageKey': json['storage_key'],
|
|
60
|
+
'totalFileCount': json['total_file_count'] == null ? undefined : json['total_file_count'],
|
|
61
|
+
'packageSizeBytes': json['package_size_bytes'] == null ? undefined : json['package_size_bytes'],
|
|
62
|
+
'createdAt': (new Date(json['created_at'])),
|
|
63
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function GetScormPackagePackageInfoToJSON(json) {
|
|
67
|
+
return GetScormPackagePackageInfoToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function GetScormPackagePackageInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'version': value['version'],
|
|
76
|
+
'is_active': value['isActive'],
|
|
77
|
+
'manifest_identifier': value['manifestIdentifier'],
|
|
78
|
+
'manifest_version': value['manifestVersion'],
|
|
79
|
+
'organization_identifier': value['organizationIdentifier'],
|
|
80
|
+
'organization_title': value['organizationTitle'],
|
|
81
|
+
'scorm_version': value['scormVersion'],
|
|
82
|
+
'storage_key': value['storageKey'],
|
|
83
|
+
'total_file_count': value['totalFileCount'],
|
|
84
|
+
'package_size_bytes': value['packageSizeBytes'],
|
|
85
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
86
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -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
|
+
* Request to update a content version
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutContentVersion
|
|
16
|
+
*/
|
|
17
|
+
export interface PutContentVersion {
|
|
18
|
+
/**
|
|
19
|
+
* Set to true to make this the active version (automatically deactivates all other versions). Setting to false is not allowed.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PutContentVersion
|
|
22
|
+
*/
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutContentVersion interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutContentVersion(value: object): value is PutContentVersion;
|
|
29
|
+
export declare function PutContentVersionFromJSON(json: any): PutContentVersion;
|
|
30
|
+
export declare function PutContentVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentVersion;
|
|
31
|
+
export declare function PutContentVersionToJSON(json: any): PutContentVersion;
|
|
32
|
+
export declare function PutContentVersionToJSONTyped(value?: PutContentVersion | 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.instanceOfPutContentVersion = instanceOfPutContentVersion;
|
|
17
|
+
exports.PutContentVersionFromJSON = PutContentVersionFromJSON;
|
|
18
|
+
exports.PutContentVersionFromJSONTyped = PutContentVersionFromJSONTyped;
|
|
19
|
+
exports.PutContentVersionToJSON = PutContentVersionToJSON;
|
|
20
|
+
exports.PutContentVersionToJSONTyped = PutContentVersionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutContentVersion interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutContentVersion(value) {
|
|
25
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutContentVersionFromJSON(json) {
|
|
30
|
+
return PutContentVersionFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutContentVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'isActive': json['is_active'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutContentVersionToJSON(json) {
|
|
41
|
+
return PutContentVersionToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutContentVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'is_active': value['isActive'],
|
|
49
|
+
};
|
|
50
|
+
}
|