@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,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,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetScormPackagePackageInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetScormPackagePackageInfo(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('manifestIdentifier' in value) || value['manifestIdentifier'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('storageKey' in value) || value['storageKey'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function GetScormPackagePackageInfoFromJSON(json) {
|
|
37
|
+
return GetScormPackagePackageInfoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetScormPackagePackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'version': json['version'],
|
|
46
|
+
'isActive': json['is_active'],
|
|
47
|
+
'manifestIdentifier': json['manifest_identifier'],
|
|
48
|
+
'manifestVersion': json['manifest_version'] == null ? undefined : json['manifest_version'],
|
|
49
|
+
'organizationIdentifier': json['organization_identifier'] == null ? undefined : json['organization_identifier'],
|
|
50
|
+
'organizationTitle': json['organization_title'] == null ? undefined : json['organization_title'],
|
|
51
|
+
'scormVersion': json['scorm_version'],
|
|
52
|
+
'storageKey': json['storage_key'],
|
|
53
|
+
'totalFileCount': json['total_file_count'] == null ? undefined : json['total_file_count'],
|
|
54
|
+
'packageSizeBytes': json['package_size_bytes'] == null ? undefined : json['package_size_bytes'],
|
|
55
|
+
'createdAt': (new Date(json['created_at'])),
|
|
56
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function GetScormPackagePackageInfoToJSON(json) {
|
|
60
|
+
return GetScormPackagePackageInfoToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function GetScormPackagePackageInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'version': value['version'],
|
|
69
|
+
'is_active': value['isActive'],
|
|
70
|
+
'manifest_identifier': value['manifestIdentifier'],
|
|
71
|
+
'manifest_version': value['manifestVersion'],
|
|
72
|
+
'organization_identifier': value['organizationIdentifier'],
|
|
73
|
+
'organization_title': value['organizationTitle'],
|
|
74
|
+
'scorm_version': value['scormVersion'],
|
|
75
|
+
'storage_key': value['storageKey'],
|
|
76
|
+
'total_file_count': value['totalFileCount'],
|
|
77
|
+
'package_size_bytes': value['packageSizeBytes'],
|
|
78
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
79
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PutContentVersion interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutContentVersion(value) {
|
|
18
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PutContentVersionFromJSON(json) {
|
|
23
|
+
return PutContentVersionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PutContentVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'isActive': json['is_active'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PutContentVersionToJSON(json) {
|
|
34
|
+
return PutContentVersionToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutContentVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'is_active': value['isActive'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -16,6 +16,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
|
|
|
16
16
|
export * from './GetContentList';
|
|
17
17
|
export * from './GetContentSession';
|
|
18
18
|
export * from './GetContentUpload';
|
|
19
|
+
export * from './GetContentVersion';
|
|
20
|
+
export * from './GetContentVersionList';
|
|
21
|
+
export * from './GetContentVersionListItemsInner';
|
|
22
|
+
export * from './GetContentVersionSandbox';
|
|
23
|
+
export * from './GetContentVersionScormData';
|
|
19
24
|
export * from './GetCourse';
|
|
20
25
|
export * from './GetCourseEnrollment';
|
|
21
26
|
export * from './GetCourseEnrollmentList';
|
|
@@ -98,6 +103,8 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
98
103
|
export * from './GetQuizResultsScore';
|
|
99
104
|
export * from './GetQuizResultsTiming';
|
|
100
105
|
export * from './GetQuizStatistics';
|
|
106
|
+
export * from './GetScormPackage';
|
|
107
|
+
export * from './GetScormPackagePackageInfo';
|
|
101
108
|
export * from './GetUser';
|
|
102
109
|
export * from './GetUserQuizAttempts';
|
|
103
110
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
@@ -146,6 +153,7 @@ export * from './PostQuizSettings';
|
|
|
146
153
|
export * from './PostResetPassword';
|
|
147
154
|
export * from './PostSendResetPassword';
|
|
148
155
|
export * from './PutContent';
|
|
156
|
+
export * from './PutContentVersion';
|
|
149
157
|
export * from './PutCourse';
|
|
150
158
|
export * from './PutCourseEnrollment';
|
|
151
159
|
export * from './PutModule';
|
package/dist/esm/models/index.js
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';
|
|
@@ -76,6 +76,24 @@ export interface GetContent {
|
|
|
76
76
|
* @memberof GetContent
|
|
77
77
|
*/
|
|
78
78
|
readonly updatedDate?: Date;
|
|
79
|
+
/**
|
|
80
|
+
* Active version number for versioned content types (SCORM, Video, PDF, File)
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetContent
|
|
83
|
+
*/
|
|
84
|
+
readonly activeVersionNumber?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Active version ID for versioned content types
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof GetContent
|
|
89
|
+
*/
|
|
90
|
+
readonly activeVersionId?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether this content has multiple versions
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof GetContent
|
|
95
|
+
*/
|
|
96
|
+
readonly hasMultipleVersions?: boolean;
|
|
79
97
|
}
|
|
80
98
|
/**
|
|
81
99
|
* @export
|
|
@@ -97,4 +115,4 @@ export declare function instanceOfGetContent(value: object): value is GetContent
|
|
|
97
115
|
export declare function GetContentFromJSON(json: any): GetContent;
|
|
98
116
|
export declare function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContent;
|
|
99
117
|
export declare function GetContentToJSON(json: any): GetContent;
|
|
100
|
-
export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date'> | null, ignoreDiscriminator?: boolean): any;
|
|
118
|
+
export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date' | 'active_version_number' | 'active_version_id' | 'has_multiple_versions'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -68,6 +68,9 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
68
|
'published': json['published'],
|
|
69
69
|
'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
|
|
70
70
|
'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
|
|
71
|
+
'activeVersionNumber': json['active_version_number'] == null ? undefined : json['active_version_number'],
|
|
72
|
+
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
73
|
+
'hasMultipleVersions': json['has_multiple_versions'] == null ? undefined : json['has_multiple_versions'],
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
function GetContentToJSON(json) {
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { GetContentVersionSandbox } from './GetContentVersionSandbox';
|
|
13
|
+
import type { GetContentVersionScormData } from './GetContentVersionScormData';
|
|
14
|
+
/**
|
|
15
|
+
* Details of a specific content version
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentVersion
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentVersion {
|
|
20
|
+
/**
|
|
21
|
+
* The external_id (UUID) for this version
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentVersion
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The content's external_id that this version belongs to
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetContentVersion
|
|
30
|
+
*/
|
|
31
|
+
contentId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Version number
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof GetContentVersion
|
|
36
|
+
*/
|
|
37
|
+
version: number;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this is the currently active version
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof GetContentVersion
|
|
42
|
+
*/
|
|
43
|
+
isActive: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* When this version was created
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof GetContentVersion
|
|
48
|
+
*/
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
/**
|
|
51
|
+
* When this version was last updated
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof GetContentVersion
|
|
54
|
+
*/
|
|
55
|
+
updatedAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {GetContentVersionSandbox}
|
|
59
|
+
* @memberof GetContentVersion
|
|
60
|
+
*/
|
|
61
|
+
sandbox: GetContentVersionSandbox;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {GetContentVersionScormData}
|
|
65
|
+
* @memberof GetContentVersion
|
|
66
|
+
*/
|
|
67
|
+
scormData?: GetContentVersionScormData | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the GetContentVersion interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfGetContentVersion(value: object): value is GetContentVersion;
|
|
73
|
+
export declare function GetContentVersionFromJSON(json: any): GetContentVersion;
|
|
74
|
+
export declare function GetContentVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersion;
|
|
75
|
+
export declare function GetContentVersionToJSON(json: any): GetContentVersion;
|
|
76
|
+
export declare function GetContentVersionToJSONTyped(value?: GetContentVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.instanceOfGetContentVersion = instanceOfGetContentVersion;
|
|
17
|
+
exports.GetContentVersionFromJSON = GetContentVersionFromJSON;
|
|
18
|
+
exports.GetContentVersionFromJSONTyped = GetContentVersionFromJSONTyped;
|
|
19
|
+
exports.GetContentVersionToJSON = GetContentVersionToJSON;
|
|
20
|
+
exports.GetContentVersionToJSONTyped = GetContentVersionToJSONTyped;
|
|
21
|
+
const GetContentVersionSandbox_1 = require("./GetContentVersionSandbox");
|
|
22
|
+
const GetContentVersionScormData_1 = require("./GetContentVersionScormData");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetContentVersion interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetContentVersion(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('sandbox' in value) || value['sandbox'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function GetContentVersionFromJSON(json) {
|
|
44
|
+
return GetContentVersionFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetContentVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'contentId': json['content_id'],
|
|
53
|
+
'version': json['version'],
|
|
54
|
+
'isActive': json['is_active'],
|
|
55
|
+
'createdAt': (new Date(json['created_at'])),
|
|
56
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
57
|
+
'sandbox': (0, GetContentVersionSandbox_1.GetContentVersionSandboxFromJSON)(json['sandbox']),
|
|
58
|
+
'scormData': json['scorm_data'] == null ? undefined : (0, GetContentVersionScormData_1.GetContentVersionScormDataFromJSON)(json['scorm_data']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function GetContentVersionToJSON(json) {
|
|
62
|
+
return GetContentVersionToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function GetContentVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'content_id': value['contentId'],
|
|
71
|
+
'version': value['version'],
|
|
72
|
+
'is_active': value['isActive'],
|
|
73
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
74
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
75
|
+
'sandbox': (0, GetContentVersionSandbox_1.GetContentVersionSandboxToJSON)(value['sandbox']),
|
|
76
|
+
'scorm_data': (0, GetContentVersionScormData_1.GetContentVersionScormDataToJSON)(value['scormData']),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -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 { GetContentVersionListItemsInner } from './GetContentVersionListItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
* A paginated list of content versions
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentVersionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentVersionList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetContentVersionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetContentVersionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetContentVersionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of versions
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetContentVersionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
* List of content versions
|
|
45
|
+
* @type {Array<GetContentVersionListItemsInner>}
|
|
46
|
+
* @memberof GetContentVersionList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetContentVersionListItemsInner>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetContentVersionList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetContentVersionList(value: object): value is GetContentVersionList;
|
|
54
|
+
export declare function GetContentVersionListFromJSON(json: any): GetContentVersionList;
|
|
55
|
+
export declare function GetContentVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionList;
|
|
56
|
+
export declare function GetContentVersionListToJSON(json: any): GetContentVersionList;
|
|
57
|
+
export declare function GetContentVersionListToJSONTyped(value?: GetContentVersionList | 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.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
|
+
}
|