@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,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,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
|
+
|
|
@@ -0,0 +1,169 @@
|
|
|
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
|
+
* Information about the SCORM package
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetScormPackagePackageInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface GetScormPackagePackageInfo {
|
|
22
|
+
/**
|
|
23
|
+
* The external_id (UUID) for this SCORM package
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetScormPackagePackageInfo
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version number
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetScormPackagePackageInfo
|
|
32
|
+
*/
|
|
33
|
+
version: number;
|
|
34
|
+
/**
|
|
35
|
+
* Whether this is the currently active version
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof GetScormPackagePackageInfo
|
|
38
|
+
*/
|
|
39
|
+
isActive: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* SCORM manifest identifier
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetScormPackagePackageInfo
|
|
44
|
+
*/
|
|
45
|
+
manifestIdentifier: string;
|
|
46
|
+
/**
|
|
47
|
+
* SCORM manifest version
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetScormPackagePackageInfo
|
|
50
|
+
*/
|
|
51
|
+
manifestVersion?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* SCORM organization identifier
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GetScormPackagePackageInfo
|
|
56
|
+
*/
|
|
57
|
+
organizationIdentifier?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* SCORM organization title
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof GetScormPackagePackageInfo
|
|
62
|
+
*/
|
|
63
|
+
organizationTitle?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* SCORM version (e.g., "1.2", "2004")
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof GetScormPackagePackageInfo
|
|
68
|
+
*/
|
|
69
|
+
scormVersion: string;
|
|
70
|
+
/**
|
|
71
|
+
* S3 storage key for the package
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof GetScormPackagePackageInfo
|
|
74
|
+
*/
|
|
75
|
+
storageKey: string;
|
|
76
|
+
/**
|
|
77
|
+
* Total number of files in the package
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof GetScormPackagePackageInfo
|
|
80
|
+
*/
|
|
81
|
+
totalFileCount?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Total size of the package in bytes
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof GetScormPackagePackageInfo
|
|
86
|
+
*/
|
|
87
|
+
packageSizeBytes?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* When this package was created
|
|
90
|
+
* @type {Date}
|
|
91
|
+
* @memberof GetScormPackagePackageInfo
|
|
92
|
+
*/
|
|
93
|
+
createdAt: Date;
|
|
94
|
+
/**
|
|
95
|
+
* When this package was last updated
|
|
96
|
+
* @type {Date}
|
|
97
|
+
* @memberof GetScormPackagePackageInfo
|
|
98
|
+
*/
|
|
99
|
+
updatedAt: Date;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the GetScormPackagePackageInfo interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfGetScormPackagePackageInfo(value: object): value is GetScormPackagePackageInfo {
|
|
106
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
107
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
108
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
109
|
+
if (!('manifestIdentifier' in value) || value['manifestIdentifier'] === undefined) return false;
|
|
110
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined) return false;
|
|
111
|
+
if (!('storageKey' in value) || value['storageKey'] === undefined) return false;
|
|
112
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
113
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function GetScormPackagePackageInfoFromJSON(json: any): GetScormPackagePackageInfo {
|
|
118
|
+
return GetScormPackagePackageInfoFromJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function GetScormPackagePackageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormPackagePackageInfo {
|
|
122
|
+
if (json == null) {
|
|
123
|
+
return json;
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'id': json['id'],
|
|
128
|
+
'version': json['version'],
|
|
129
|
+
'isActive': json['is_active'],
|
|
130
|
+
'manifestIdentifier': json['manifest_identifier'],
|
|
131
|
+
'manifestVersion': json['manifest_version'] == null ? undefined : json['manifest_version'],
|
|
132
|
+
'organizationIdentifier': json['organization_identifier'] == null ? undefined : json['organization_identifier'],
|
|
133
|
+
'organizationTitle': json['organization_title'] == null ? undefined : json['organization_title'],
|
|
134
|
+
'scormVersion': json['scorm_version'],
|
|
135
|
+
'storageKey': json['storage_key'],
|
|
136
|
+
'totalFileCount': json['total_file_count'] == null ? undefined : json['total_file_count'],
|
|
137
|
+
'packageSizeBytes': json['package_size_bytes'] == null ? undefined : json['package_size_bytes'],
|
|
138
|
+
'createdAt': (new Date(json['created_at'])),
|
|
139
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function GetScormPackagePackageInfoToJSON(json: any): GetScormPackagePackageInfo {
|
|
144
|
+
return GetScormPackagePackageInfoToJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function GetScormPackagePackageInfoToJSONTyped(value?: GetScormPackagePackageInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'id': value['id'],
|
|
155
|
+
'version': value['version'],
|
|
156
|
+
'is_active': value['isActive'],
|
|
157
|
+
'manifest_identifier': value['manifestIdentifier'],
|
|
158
|
+
'manifest_version': value['manifestVersion'],
|
|
159
|
+
'organization_identifier': value['organizationIdentifier'],
|
|
160
|
+
'organization_title': value['organizationTitle'],
|
|
161
|
+
'scorm_version': value['scormVersion'],
|
|
162
|
+
'storage_key': value['storageKey'],
|
|
163
|
+
'total_file_count': value['totalFileCount'],
|
|
164
|
+
'package_size_bytes': value['packageSizeBytes'],
|
|
165
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
166
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
@@ -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
|
+
* Request to update a content version
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutContentVersion
|
|
20
|
+
*/
|
|
21
|
+
export interface PutContentVersion {
|
|
22
|
+
/**
|
|
23
|
+
* Set to true to make this the active version (automatically deactivates all other versions). Setting to false is not allowed.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PutContentVersion
|
|
26
|
+
*/
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutContentVersion interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutContentVersion(value: object): value is PutContentVersion {
|
|
34
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutContentVersionFromJSON(json: any): PutContentVersion {
|
|
39
|
+
return PutContentVersionFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutContentVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentVersion {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'isActive': json['is_active'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutContentVersionToJSON(json: any): PutContentVersion {
|
|
53
|
+
return PutContentVersionToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutContentVersionToJSONTyped(value?: PutContentVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'is_active': value['isActive'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -18,6 +18,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
|
|
|
18
18
|
export * from './GetContentList';
|
|
19
19
|
export * from './GetContentSession';
|
|
20
20
|
export * from './GetContentUpload';
|
|
21
|
+
export * from './GetContentVersion';
|
|
22
|
+
export * from './GetContentVersionList';
|
|
23
|
+
export * from './GetContentVersionListItemsInner';
|
|
24
|
+
export * from './GetContentVersionSandbox';
|
|
25
|
+
export * from './GetContentVersionScormData';
|
|
21
26
|
export * from './GetCourse';
|
|
22
27
|
export * from './GetCourseEnrollment';
|
|
23
28
|
export * from './GetCourseEnrollmentList';
|
|
@@ -100,6 +105,8 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
100
105
|
export * from './GetQuizResultsScore';
|
|
101
106
|
export * from './GetQuizResultsTiming';
|
|
102
107
|
export * from './GetQuizStatistics';
|
|
108
|
+
export * from './GetScormPackage';
|
|
109
|
+
export * from './GetScormPackagePackageInfo';
|
|
103
110
|
export * from './GetUser';
|
|
104
111
|
export * from './GetUserQuizAttempts';
|
|
105
112
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
@@ -148,6 +155,7 @@ export * from './PostQuizSettings';
|
|
|
148
155
|
export * from './PostResetPassword';
|
|
149
156
|
export * from './PostSendResetPassword';
|
|
150
157
|
export * from './PutContent';
|
|
158
|
+
export * from './PutContentVersion';
|
|
151
159
|
export * from './PutCourse';
|
|
152
160
|
export * from './PutCourseEnrollment';
|
|
153
161
|
export * from './PutModule';
|