@easyedu/js-lsm-api 1.24.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/apis/ReportingApi.d.ts +10 -10
- package/dist/apis/ReportingApi.js +10 -10
- package/dist/esm/apis/CourseApi.d.ts +40 -1
- package/dist/esm/apis/CourseApi.js +101 -1
- package/dist/esm/apis/ReportingApi.d.ts +10 -10
- package/dist/esm/apis/ReportingApi.js +10 -10
- 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/apis/ReportingApi.ts +10 -10
- 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
|
@@ -27,7 +27,7 @@ import { GetContentGradeDetailFromJSON, GetContentGradesFromJSON, GetContentInst
|
|
|
27
27
|
*/
|
|
28
28
|
export class ReportingApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Get detailed grade information for a specific student and content
|
|
30
|
+
* Get detailed grade information for a specific student and content (can use \'current\' for studentId)
|
|
31
31
|
*/
|
|
32
32
|
getContentGradeDetailRaw(requestParameters, initOverrides) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -55,7 +55,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Get detailed grade information for a specific student and content
|
|
58
|
+
* Get detailed grade information for a specific student and content (can use \'current\' for studentId)
|
|
59
59
|
*/
|
|
60
60
|
getContentGradeDetail(requestParameters, initOverrides) {
|
|
61
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -169,7 +169,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* Get student-specific reporting for a course
|
|
172
|
+
* Get student-specific reporting for a course (can use \'current\' for studentId)
|
|
173
173
|
*/
|
|
174
174
|
getCourseStudentReportingRaw(requestParameters, initOverrides) {
|
|
175
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -191,7 +191,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
|
-
* Get student-specific reporting for a course
|
|
194
|
+
* Get student-specific reporting for a course (can use \'current\' for studentId)
|
|
195
195
|
*/
|
|
196
196
|
getCourseStudentReporting(requestParameters, initOverrides) {
|
|
197
197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -231,7 +231,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
234
|
-
* Get student-specific reporting for a module
|
|
234
|
+
* Get student-specific reporting for a module (can use \'current\' for studentId)
|
|
235
235
|
*/
|
|
236
236
|
getModuleStudentReportingRaw(requestParameters, initOverrides) {
|
|
237
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -256,7 +256,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
259
|
-
* Get student-specific reporting for a module
|
|
259
|
+
* Get student-specific reporting for a module (can use \'current\' for studentId)
|
|
260
260
|
*/
|
|
261
261
|
getModuleStudentReporting(requestParameters, initOverrides) {
|
|
262
262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -265,7 +265,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* Get basic reporting for a portal
|
|
268
|
+
* Get basic reporting for a portal (can use \'current\' for portalId)
|
|
269
269
|
*/
|
|
270
270
|
getPortalBasicReportingRaw(requestParameters, initOverrides) {
|
|
271
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -284,7 +284,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
|
-
* Get basic reporting for a portal
|
|
287
|
+
* Get basic reporting for a portal (can use \'current\' for portalId)
|
|
288
288
|
*/
|
|
289
289
|
getPortalBasicReporting(requestParameters, initOverrides) {
|
|
290
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -293,7 +293,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
|
-
* Get student reporting for a portal
|
|
296
|
+
* Get student reporting for a portal (can use \'current\' for portalId and studentId)
|
|
297
297
|
*/
|
|
298
298
|
getPortalStudentReportingRaw(requestParameters, initOverrides) {
|
|
299
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -315,7 +315,7 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
/**
|
|
318
|
-
* Get student reporting for a portal
|
|
318
|
+
* Get student reporting for a portal (can use \'current\' for portalId and studentId)
|
|
319
319
|
*/
|
|
320
320
|
getPortalStudentReporting(requestParameters, initOverrides) {
|
|
321
321
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -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,82 @@
|
|
|
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 GetCourseExportScormVersionEnum = {
|
|
18
|
+
Scorm12: 'SCORM_1_2',
|
|
19
|
+
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
20
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const GetCourseExportStatusEnum = {
|
|
26
|
+
Pending: 'PENDING',
|
|
27
|
+
Processing: 'PROCESSING',
|
|
28
|
+
Completed: 'COMPLETED',
|
|
29
|
+
Failed: 'FAILED'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetCourseExport interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfGetCourseExport(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
export function GetCourseExportFromJSON(json) {
|
|
48
|
+
return GetCourseExportFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'courseId': json['course_id'],
|
|
57
|
+
'scormVersion': json['scorm_version'],
|
|
58
|
+
'status': json['status'],
|
|
59
|
+
'downloadUrl': json['download_url'] == null ? undefined : json['download_url'],
|
|
60
|
+
'fileSize': json['file_size'] == null ? undefined : json['file_size'],
|
|
61
|
+
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
62
|
+
'createdAt': json['created_at'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export function GetCourseExportToJSON(json) {
|
|
66
|
+
return GetCourseExportToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
export function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'course_id': value['courseId'],
|
|
75
|
+
'scorm_version': value['scormVersion'],
|
|
76
|
+
'status': value['status'],
|
|
77
|
+
'download_url': value['downloadUrl'],
|
|
78
|
+
'file_size': value['fileSize'],
|
|
79
|
+
'error_message': value['errorMessage'],
|
|
80
|
+
'created_at': value['createdAt'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -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,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;
|