@easyedu/js-lsm-api 1.25.0 → 1.26.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 +3 -0
- package/README.md +2 -2
- package/dist/apis/CourseApi.d.ts +40 -1
- package/dist/apis/CourseApi.js +100 -0
- package/dist/esm/apis/CourseApi.d.ts +40 -1
- package/dist/esm/apis/CourseApi.js +101 -1
- 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/PostCourseExport.d.ts +41 -0
- package/dist/esm/models/PostCourseExport.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -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/PostCourseExport.d.ts +41 -0
- package/dist/models/PostCourseExport.js +59 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +151 -0
- package/src/models/GetCourseExport.ts +149 -0
- package/src/models/GetCourseExportList.ts +110 -0
- package/src/models/PostCourseExport.ts +78 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { GetCourseExportFromJSON, GetCourseExportToJSON, } from './GetCourseExport';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCourseExportList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCourseExportList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetCourseExportListFromJSON(json) {
|
|
32
|
+
return GetCourseExportListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseExportListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['page_size'],
|
|
41
|
+
'totalPages': json['total_pages'],
|
|
42
|
+
'totalItems': json['total_items'],
|
|
43
|
+
'items': (json['items'].map(GetCourseExportFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetCourseExportListToJSON(json) {
|
|
47
|
+
return GetCourseExportListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetCourseExportListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'page_size': value['pageSize'],
|
|
56
|
+
'total_pages': value['totalPages'],
|
|
57
|
+
'total_items': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetCourseExportToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 create a new SCORM export for a course
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostCourseExport
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourseExport {
|
|
18
|
+
/**
|
|
19
|
+
* The SCORM version to export
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCourseExport
|
|
22
|
+
*/
|
|
23
|
+
scormVersion: PostCourseExportScormVersionEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const PostCourseExportScormVersionEnum: {
|
|
29
|
+
readonly Scorm12: "SCORM_1_2";
|
|
30
|
+
readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
|
|
31
|
+
readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
|
|
32
|
+
};
|
|
33
|
+
export type PostCourseExportScormVersionEnum = typeof PostCourseExportScormVersionEnum[keyof typeof PostCourseExportScormVersionEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the PostCourseExport interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfPostCourseExport(value: object): value is PostCourseExport;
|
|
38
|
+
export declare function PostCourseExportFromJSON(json: any): PostCourseExport;
|
|
39
|
+
export declare function PostCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseExport;
|
|
40
|
+
export declare function PostCourseExportToJSON(json: any): PostCourseExport;
|
|
41
|
+
export declare function PostCourseExportToJSONTyped(value?: PostCourseExport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PostCourseExportScormVersionEnum = {
|
|
18
|
+
Scorm12: 'SCORM_1_2',
|
|
19
|
+
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
20
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostCourseExport interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPostCourseExport(value) {
|
|
26
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function PostCourseExportFromJSON(json) {
|
|
31
|
+
return PostCourseExportFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'scormVersion': json['scorm_version'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function PostCourseExportToJSON(json) {
|
|
42
|
+
return PostCourseExportToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'scorm_version': value['scormVersion'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -20,6 +20,8 @@ export * from './GetCourse';
|
|
|
20
20
|
export * from './GetCourseEnrollment';
|
|
21
21
|
export * from './GetCourseEnrollmentList';
|
|
22
22
|
export * from './GetCourseEnrollmentListItem';
|
|
23
|
+
export * from './GetCourseExport';
|
|
24
|
+
export * from './GetCourseExportList';
|
|
23
25
|
export * from './GetCourseList';
|
|
24
26
|
export * from './GetCourseReportingBasic';
|
|
25
27
|
export * from './GetCourseStudentReporting';
|
|
@@ -119,6 +121,7 @@ export * from './PostContentSession';
|
|
|
119
121
|
export * from './PostContentUpload';
|
|
120
122
|
export * from './PostCourse';
|
|
121
123
|
export * from './PostCourseEnrollment';
|
|
124
|
+
export * from './PostCourseExport';
|
|
122
125
|
export * from './PostLogin';
|
|
123
126
|
export * from './PostManualQuestionSelection';
|
|
124
127
|
export * from './PostModule';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -22,6 +22,8 @@ export * from './GetCourse';
|
|
|
22
22
|
export * from './GetCourseEnrollment';
|
|
23
23
|
export * from './GetCourseEnrollmentList';
|
|
24
24
|
export * from './GetCourseEnrollmentListItem';
|
|
25
|
+
export * from './GetCourseExport';
|
|
26
|
+
export * from './GetCourseExportList';
|
|
25
27
|
export * from './GetCourseList';
|
|
26
28
|
export * from './GetCourseReportingBasic';
|
|
27
29
|
export * from './GetCourseStudentReporting';
|
|
@@ -121,6 +123,7 @@ export * from './PostContentSession';
|
|
|
121
123
|
export * from './PostContentUpload';
|
|
122
124
|
export * from './PostCourse';
|
|
123
125
|
export * from './PostCourseEnrollment';
|
|
126
|
+
export * from './PostCourseExport';
|
|
124
127
|
export * from './PostLogin';
|
|
125
128
|
export * from './PostManualQuestionSelection';
|
|
126
129
|
export * from './PostModule';
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 create a new SCORM export for a course
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostCourseExport
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourseExport {
|
|
18
|
+
/**
|
|
19
|
+
* The SCORM version to export
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCourseExport
|
|
22
|
+
*/
|
|
23
|
+
scormVersion: PostCourseExportScormVersionEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const PostCourseExportScormVersionEnum: {
|
|
29
|
+
readonly Scorm12: "SCORM_1_2";
|
|
30
|
+
readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
|
|
31
|
+
readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
|
|
32
|
+
};
|
|
33
|
+
export type PostCourseExportScormVersionEnum = typeof PostCourseExportScormVersionEnum[keyof typeof PostCourseExportScormVersionEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the PostCourseExport interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfPostCourseExport(value: object): value is PostCourseExport;
|
|
38
|
+
export declare function PostCourseExportFromJSON(json: any): PostCourseExport;
|
|
39
|
+
export declare function PostCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseExport;
|
|
40
|
+
export declare function PostCourseExportToJSON(json: any): PostCourseExport;
|
|
41
|
+
export declare function PostCourseExportToJSONTyped(value?: PostCourseExport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.PostCourseExportScormVersionEnum = void 0;
|
|
17
|
+
exports.instanceOfPostCourseExport = instanceOfPostCourseExport;
|
|
18
|
+
exports.PostCourseExportFromJSON = PostCourseExportFromJSON;
|
|
19
|
+
exports.PostCourseExportFromJSONTyped = PostCourseExportFromJSONTyped;
|
|
20
|
+
exports.PostCourseExportToJSON = PostCourseExportToJSON;
|
|
21
|
+
exports.PostCourseExportToJSONTyped = PostCourseExportToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostCourseExportScormVersionEnum = {
|
|
26
|
+
Scorm12: 'SCORM_1_2',
|
|
27
|
+
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
28
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostCourseExport interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPostCourseExport(value) {
|
|
34
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function PostCourseExportFromJSON(json) {
|
|
39
|
+
return PostCourseExportFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'scormVersion': json['scorm_version'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PostCourseExportToJSON(json) {
|
|
50
|
+
return PostCourseExportToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'scorm_version': value['scormVersion'],
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export * from './GetCourse';
|
|
|
20
20
|
export * from './GetCourseEnrollment';
|
|
21
21
|
export * from './GetCourseEnrollmentList';
|
|
22
22
|
export * from './GetCourseEnrollmentListItem';
|
|
23
|
+
export * from './GetCourseExport';
|
|
24
|
+
export * from './GetCourseExportList';
|
|
23
25
|
export * from './GetCourseList';
|
|
24
26
|
export * from './GetCourseReportingBasic';
|
|
25
27
|
export * from './GetCourseStudentReporting';
|
|
@@ -119,6 +121,7 @@ export * from './PostContentSession';
|
|
|
119
121
|
export * from './PostContentUpload';
|
|
120
122
|
export * from './PostCourse';
|
|
121
123
|
export * from './PostCourseEnrollment';
|
|
124
|
+
export * from './PostCourseExport';
|
|
122
125
|
export * from './PostLogin';
|
|
123
126
|
export * from './PostManualQuestionSelection';
|
|
124
127
|
export * from './PostModule';
|
package/dist/models/index.js
CHANGED
|
@@ -38,6 +38,8 @@ __exportStar(require("./GetCourse"), exports);
|
|
|
38
38
|
__exportStar(require("./GetCourseEnrollment"), exports);
|
|
39
39
|
__exportStar(require("./GetCourseEnrollmentList"), exports);
|
|
40
40
|
__exportStar(require("./GetCourseEnrollmentListItem"), exports);
|
|
41
|
+
__exportStar(require("./GetCourseExport"), exports);
|
|
42
|
+
__exportStar(require("./GetCourseExportList"), exports);
|
|
41
43
|
__exportStar(require("./GetCourseList"), exports);
|
|
42
44
|
__exportStar(require("./GetCourseReportingBasic"), exports);
|
|
43
45
|
__exportStar(require("./GetCourseStudentReporting"), exports);
|
|
@@ -137,6 +139,7 @@ __exportStar(require("./PostContentSession"), exports);
|
|
|
137
139
|
__exportStar(require("./PostContentUpload"), exports);
|
|
138
140
|
__exportStar(require("./PostCourse"), exports);
|
|
139
141
|
__exportStar(require("./PostCourseEnrollment"), exports);
|
|
142
|
+
__exportStar(require("./PostCourseExport"), exports);
|
|
140
143
|
__exportStar(require("./PostLogin"), exports);
|
|
141
144
|
__exportStar(require("./PostManualQuestionSelection"), exports);
|
|
142
145
|
__exportStar(require("./PostModule"), exports);
|