@easyedu/js-lsm-api 1.27.0 → 1.29.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 +9 -0
- package/README.md +2 -2
- package/dist/apis/ContentApi.d.ts +71 -1
- package/dist/apis/ContentApi.js +158 -1
- package/dist/esm/apis/ContentApi.d.ts +71 -1
- package/dist/esm/apis/ContentApi.js +158 -1
- package/dist/esm/models/GetContent.d.ts +19 -1
- package/dist/esm/models/GetContent.js +3 -0
- package/dist/esm/models/GetContentSessionDetail.d.ts +103 -0
- package/dist/esm/models/GetContentSessionDetail.js +96 -0
- package/dist/esm/models/GetContentSessionDetailScormSessionData.d.ts +32 -0
- package/dist/esm/models/GetContentSessionDetailScormSessionData.js +43 -0
- package/dist/esm/models/GetContentSessionDetailUserData.d.ts +38 -0
- package/dist/esm/models/GetContentSessionDetailUserData.js +47 -0
- package/dist/esm/models/GetContentSessionList.d.ts +57 -0
- package/dist/esm/models/GetContentSessionList.js +60 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +64 -0
- package/dist/esm/models/GetContentSessionListItem.js +65 -0
- package/dist/esm/models/GetScormApiLogItem.d.ts +73 -0
- package/dist/esm/models/GetScormApiLogItem.js +73 -0
- package/dist/esm/models/GetScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetScormApiLogs.js +60 -0
- package/dist/esm/models/GetScormSessionData.d.ts +59 -0
- package/dist/esm/models/GetScormSessionData.js +60 -0
- package/dist/esm/models/GetScormSessionDataActivity.d.ts +38 -0
- package/dist/esm/models/GetScormSessionDataActivity.js +47 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/GetContent.d.ts +19 -1
- package/dist/models/GetContent.js +3 -0
- package/dist/models/GetContentSessionDetail.d.ts +103 -0
- package/dist/models/GetContentSessionDetail.js +104 -0
- package/dist/models/GetContentSessionDetailScormSessionData.d.ts +32 -0
- package/dist/models/GetContentSessionDetailScormSessionData.js +50 -0
- package/dist/models/GetContentSessionDetailUserData.d.ts +38 -0
- package/dist/models/GetContentSessionDetailUserData.js +54 -0
- package/dist/models/GetContentSessionList.d.ts +57 -0
- package/dist/models/GetContentSessionList.js +67 -0
- package/dist/models/GetContentSessionListItem.d.ts +64 -0
- package/dist/models/GetContentSessionListItem.js +72 -0
- package/dist/models/GetScormApiLogItem.d.ts +73 -0
- package/dist/models/GetScormApiLogItem.js +81 -0
- package/dist/models/GetScormApiLogs.d.ts +57 -0
- package/dist/models/GetScormApiLogs.js +67 -0
- package/dist/models/GetScormSessionData.d.ts +59 -0
- package/dist/models/GetScormSessionData.js +67 -0
- package/dist/models/GetScormSessionDataActivity.d.ts +38 -0
- package/dist/models/GetScormSessionDataActivity.js +54 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +242 -0
- package/src/models/GetContent.ts +22 -1
- package/src/models/GetContentSessionDetail.ts +178 -0
- package/src/models/GetContentSessionDetailScormSessionData.ts +66 -0
- package/src/models/GetContentSessionDetailUserData.ts +75 -0
- package/src/models/GetContentSessionList.ts +110 -0
- package/src/models/GetContentSessionListItem.ts +126 -0
- package/src/models/GetScormApiLogItem.ts +125 -0
- package/src/models/GetScormApiLogs.ts +110 -0
- package/src/models/GetScormSessionData.ts +110 -0
- package/src/models/GetScormSessionDataActivity.ts +75 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,104 @@
|
|
|
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.GetContentSessionDetailGradeStatusEnum = exports.GetContentSessionDetailCompletionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGetContentSessionDetail = instanceOfGetContentSessionDetail;
|
|
18
|
+
exports.GetContentSessionDetailFromJSON = GetContentSessionDetailFromJSON;
|
|
19
|
+
exports.GetContentSessionDetailFromJSONTyped = GetContentSessionDetailFromJSONTyped;
|
|
20
|
+
exports.GetContentSessionDetailToJSON = GetContentSessionDetailToJSON;
|
|
21
|
+
exports.GetContentSessionDetailToJSONTyped = GetContentSessionDetailToJSONTyped;
|
|
22
|
+
const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
|
|
23
|
+
const GetContentSessionDetailScormSessionData_1 = require("./GetContentSessionDetailScormSessionData");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.GetContentSessionDetailCompletionStatusEnum = {
|
|
28
|
+
NotAttempted: 'NotAttempted',
|
|
29
|
+
InProgress: 'InProgress',
|
|
30
|
+
Completed: 'Completed'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.GetContentSessionDetailGradeStatusEnum = {
|
|
36
|
+
Ungraded: 'Ungraded',
|
|
37
|
+
Passed: 'Passed',
|
|
38
|
+
Failed: 'Failed',
|
|
39
|
+
PointsEarned: 'PointsEarned',
|
|
40
|
+
PercentageEarned: 'PercentageEarned',
|
|
41
|
+
NotApplicable: 'NotApplicable'
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetContentSessionDetail interface.
|
|
45
|
+
*/
|
|
46
|
+
function instanceOfGetContentSessionDetail(value) {
|
|
47
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('userData' in value) || value['userData'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
function GetContentSessionDetailFromJSON(json) {
|
|
68
|
+
return GetContentSessionDetailFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': json['id'],
|
|
76
|
+
'createdAt': json['created_at'],
|
|
77
|
+
'updatedAt': json['updated_at'],
|
|
78
|
+
'contentId': json['content_id'],
|
|
79
|
+
'completionStatus': json['completion_status'],
|
|
80
|
+
'gradeStatus': json['grade_status'],
|
|
81
|
+
'durationInSeconds': json['duration_in_seconds'],
|
|
82
|
+
'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
|
|
83
|
+
'scormSessionData': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataFromJSON)(json['scorm_session_data']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function GetContentSessionDetailToJSON(json) {
|
|
87
|
+
return GetContentSessionDetailToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'created_at': value['createdAt'],
|
|
96
|
+
'updated_at': value['updatedAt'],
|
|
97
|
+
'content_id': value['contentId'],
|
|
98
|
+
'completion_status': value['completionStatus'],
|
|
99
|
+
'grade_status': value['gradeStatus'],
|
|
100
|
+
'duration_in_seconds': value['durationInSeconds'],
|
|
101
|
+
'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
|
|
102
|
+
'scorm_session_data': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataToJSON)(value['scormSessionData']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* SCORM session data if this is a SCORM session, null otherwise
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSessionDetailScormSessionData
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSessionDetailScormSessionData {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the SCORM session
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSessionDetailScormSessionData
|
|
22
|
+
*/
|
|
23
|
+
scormSessionId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetContentSessionDetailScormSessionData interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetContentSessionDetailScormSessionData(value: object): value is GetContentSessionDetailScormSessionData;
|
|
29
|
+
export declare function GetContentSessionDetailScormSessionDataFromJSON(json: any): GetContentSessionDetailScormSessionData;
|
|
30
|
+
export declare function GetContentSessionDetailScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionData;
|
|
31
|
+
export declare function GetContentSessionDetailScormSessionDataToJSON(json: any): GetContentSessionDetailScormSessionData;
|
|
32
|
+
export declare function GetContentSessionDetailScormSessionDataToJSONTyped(value?: GetContentSessionDetailScormSessionData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentSessionDetailScormSessionData = instanceOfGetContentSessionDetailScormSessionData;
|
|
17
|
+
exports.GetContentSessionDetailScormSessionDataFromJSON = GetContentSessionDetailScormSessionDataFromJSON;
|
|
18
|
+
exports.GetContentSessionDetailScormSessionDataFromJSONTyped = GetContentSessionDetailScormSessionDataFromJSONTyped;
|
|
19
|
+
exports.GetContentSessionDetailScormSessionDataToJSON = GetContentSessionDetailScormSessionDataToJSON;
|
|
20
|
+
exports.GetContentSessionDetailScormSessionDataToJSONTyped = GetContentSessionDetailScormSessionDataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetContentSessionDetailScormSessionData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetContentSessionDetailScormSessionData(value) {
|
|
25
|
+
if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetContentSessionDetailScormSessionDataFromJSON(json) {
|
|
30
|
+
return GetContentSessionDetailScormSessionDataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetContentSessionDetailScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'scormSessionId': json['scorm_session_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetContentSessionDetailScormSessionDataToJSON(json) {
|
|
41
|
+
return GetContentSessionDetailScormSessionDataToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetContentSessionDetailScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'scorm_session_id': value['scormSessionId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSessionDetailUserData
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSessionDetailUserData {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the user
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSessionDetailUserData
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the user
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentSessionDetailUserData
|
|
28
|
+
*/
|
|
29
|
+
userName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetContentSessionDetailUserData interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetContentSessionDetailUserData(value: object): value is GetContentSessionDetailUserData;
|
|
35
|
+
export declare function GetContentSessionDetailUserDataFromJSON(json: any): GetContentSessionDetailUserData;
|
|
36
|
+
export declare function GetContentSessionDetailUserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailUserData;
|
|
37
|
+
export declare function GetContentSessionDetailUserDataToJSON(json: any): GetContentSessionDetailUserData;
|
|
38
|
+
export declare function GetContentSessionDetailUserDataToJSONTyped(value?: GetContentSessionDetailUserData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfGetContentSessionDetailUserData = instanceOfGetContentSessionDetailUserData;
|
|
17
|
+
exports.GetContentSessionDetailUserDataFromJSON = GetContentSessionDetailUserDataFromJSON;
|
|
18
|
+
exports.GetContentSessionDetailUserDataFromJSONTyped = GetContentSessionDetailUserDataFromJSONTyped;
|
|
19
|
+
exports.GetContentSessionDetailUserDataToJSON = GetContentSessionDetailUserDataToJSON;
|
|
20
|
+
exports.GetContentSessionDetailUserDataToJSONTyped = GetContentSessionDetailUserDataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetContentSessionDetailUserData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetContentSessionDetailUserData(value) {
|
|
25
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('userName' in value) || value['userName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetContentSessionDetailUserDataFromJSON(json) {
|
|
32
|
+
return GetContentSessionDetailUserDataFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetContentSessionDetailUserDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'userId': json['user_id'],
|
|
40
|
+
'userName': json['user_name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetContentSessionDetailUserDataToJSON(json) {
|
|
44
|
+
return GetContentSessionDetailUserDataToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetContentSessionDetailUserDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'user_id': value['userId'],
|
|
52
|
+
'user_name': value['userName'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 { GetContentSessionListItem } from './GetContentSessionListItem';
|
|
13
|
+
/**
|
|
14
|
+
* A list of content sessions with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentSessionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentSessionList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetContentSessionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetContentSessionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetContentSessionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetContentSessionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetContentSessionListItem>}
|
|
46
|
+
* @memberof GetContentSessionList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetContentSessionListItem>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetContentSessionList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetContentSessionList(value: object): value is GetContentSessionList;
|
|
54
|
+
export declare function GetContentSessionListFromJSON(json: any): GetContentSessionList;
|
|
55
|
+
export declare function GetContentSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionList;
|
|
56
|
+
export declare function GetContentSessionListToJSON(json: any): GetContentSessionList;
|
|
57
|
+
export declare function GetContentSessionListToJSONTyped(value?: GetContentSessionList | 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.instanceOfGetContentSessionList = instanceOfGetContentSessionList;
|
|
17
|
+
exports.GetContentSessionListFromJSON = GetContentSessionListFromJSON;
|
|
18
|
+
exports.GetContentSessionListFromJSONTyped = GetContentSessionListFromJSONTyped;
|
|
19
|
+
exports.GetContentSessionListToJSON = GetContentSessionListToJSON;
|
|
20
|
+
exports.GetContentSessionListToJSONTyped = GetContentSessionListToJSONTyped;
|
|
21
|
+
const GetContentSessionListItem_1 = require("./GetContentSessionListItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetContentSessionList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetContentSessionList(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 GetContentSessionListFromJSON(json) {
|
|
39
|
+
return GetContentSessionListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetContentSessionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(GetContentSessionListItem_1.GetContentSessionListItemFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetContentSessionListToJSON(json) {
|
|
54
|
+
return GetContentSessionListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetContentSessionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetContentSessionListItem_1.GetContentSessionListItemToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
13
|
+
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
14
|
+
/**
|
|
15
|
+
* A content session list item
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentSessionListItem
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentSessionListItem {
|
|
20
|
+
/**
|
|
21
|
+
* The external ID of the content session
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentSessionListItem
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date and time the content session was created (Unix timestamp)
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof GetContentSessionListItem
|
|
30
|
+
*/
|
|
31
|
+
createdAt: number;
|
|
32
|
+
/**
|
|
33
|
+
* The date and time the content session was updated (Unix timestamp)
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof GetContentSessionListItem
|
|
36
|
+
*/
|
|
37
|
+
updatedAt: number;
|
|
38
|
+
/**
|
|
39
|
+
* The external ID of the content
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetContentSessionListItem
|
|
42
|
+
*/
|
|
43
|
+
contentId: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {GetContentSessionDetailUserData}
|
|
47
|
+
* @memberof GetContentSessionListItem
|
|
48
|
+
*/
|
|
49
|
+
userData: GetContentSessionDetailUserData;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {GetContentSessionDetailScormSessionData}
|
|
53
|
+
* @memberof GetContentSessionListItem
|
|
54
|
+
*/
|
|
55
|
+
scormSessionData: GetContentSessionDetailScormSessionData | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the GetContentSessionListItem interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfGetContentSessionListItem(value: object): value is GetContentSessionListItem;
|
|
61
|
+
export declare function GetContentSessionListItemFromJSON(json: any): GetContentSessionListItem;
|
|
62
|
+
export declare function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItem;
|
|
63
|
+
export declare function GetContentSessionListItemToJSON(json: any): GetContentSessionListItem;
|
|
64
|
+
export declare function GetContentSessionListItemToJSONTyped(value?: GetContentSessionListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfGetContentSessionListItem = instanceOfGetContentSessionListItem;
|
|
17
|
+
exports.GetContentSessionListItemFromJSON = GetContentSessionListItemFromJSON;
|
|
18
|
+
exports.GetContentSessionListItemFromJSONTyped = GetContentSessionListItemFromJSONTyped;
|
|
19
|
+
exports.GetContentSessionListItemToJSON = GetContentSessionListItemToJSON;
|
|
20
|
+
exports.GetContentSessionListItemToJSONTyped = GetContentSessionListItemToJSONTyped;
|
|
21
|
+
const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
|
|
22
|
+
const GetContentSessionDetailScormSessionData_1 = require("./GetContentSessionDetailScormSessionData");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetContentSessionListItem interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetContentSessionListItem(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('userData' in value) || value['userData'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function GetContentSessionListItemFromJSON(json) {
|
|
42
|
+
return GetContentSessionListItemFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'createdAt': json['created_at'],
|
|
51
|
+
'updatedAt': json['updated_at'],
|
|
52
|
+
'contentId': json['content_id'],
|
|
53
|
+
'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
|
|
54
|
+
'scormSessionData': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataFromJSON)(json['scorm_session_data']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function GetContentSessionListItemToJSON(json) {
|
|
58
|
+
return GetContentSessionListItemToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'created_at': value['createdAt'],
|
|
67
|
+
'updated_at': value['updatedAt'],
|
|
68
|
+
'content_id': value['contentId'],
|
|
69
|
+
'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
|
|
70
|
+
'scorm_session_data': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataToJSON)(value['scormSessionData']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* A SCORM API call log entry
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetScormApiLogItem
|
|
16
|
+
*/
|
|
17
|
+
export interface GetScormApiLogItem {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the log entry
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetScormApiLogItem
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* The date and time the API call was made (Unix timestamp)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetScormApiLogItem
|
|
28
|
+
*/
|
|
29
|
+
createdAt: number;
|
|
30
|
+
/**
|
|
31
|
+
* The SCORM API method that was called
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetScormApiLogItem
|
|
34
|
+
*/
|
|
35
|
+
method: GetScormApiLogItemMethodEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The CMI element (e.g., 'cmi.score.raw') - nullable for Initialize, Commit, Terminate
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetScormApiLogItem
|
|
40
|
+
*/
|
|
41
|
+
element: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The value set or returned - nullable for some operations
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetScormApiLogItem
|
|
46
|
+
*/
|
|
47
|
+
value: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The SCORM error code ('0' for success, '301', '401', etc.')
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetScormApiLogItem
|
|
52
|
+
*/
|
|
53
|
+
errorCode: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetScormApiLogItemMethodEnum: {
|
|
59
|
+
readonly Initialize: "Initialize";
|
|
60
|
+
readonly SetValue: "SetValue";
|
|
61
|
+
readonly GetValue: "GetValue";
|
|
62
|
+
readonly Commit: "Commit";
|
|
63
|
+
readonly Terminate: "Terminate";
|
|
64
|
+
};
|
|
65
|
+
export type GetScormApiLogItemMethodEnum = typeof GetScormApiLogItemMethodEnum[keyof typeof GetScormApiLogItemMethodEnum];
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the GetScormApiLogItem interface.
|
|
68
|
+
*/
|
|
69
|
+
export declare function instanceOfGetScormApiLogItem(value: object): value is GetScormApiLogItem;
|
|
70
|
+
export declare function GetScormApiLogItemFromJSON(json: any): GetScormApiLogItem;
|
|
71
|
+
export declare function GetScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormApiLogItem;
|
|
72
|
+
export declare function GetScormApiLogItemToJSON(json: any): GetScormApiLogItem;
|
|
73
|
+
export declare function GetScormApiLogItemToJSONTyped(value?: GetScormApiLogItem | null, ignoreDiscriminator?: boolean): any;
|