@easyedu/js-lsm-api 1.28.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/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/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/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,178 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
17
|
+
import {
|
|
18
|
+
GetContentSessionDetailUserDataFromJSON,
|
|
19
|
+
GetContentSessionDetailUserDataFromJSONTyped,
|
|
20
|
+
GetContentSessionDetailUserDataToJSON,
|
|
21
|
+
GetContentSessionDetailUserDataToJSONTyped,
|
|
22
|
+
} from './GetContentSessionDetailUserData';
|
|
23
|
+
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
24
|
+
import {
|
|
25
|
+
GetContentSessionDetailScormSessionDataFromJSON,
|
|
26
|
+
GetContentSessionDetailScormSessionDataFromJSONTyped,
|
|
27
|
+
GetContentSessionDetailScormSessionDataToJSON,
|
|
28
|
+
GetContentSessionDetailScormSessionDataToJSONTyped,
|
|
29
|
+
} from './GetContentSessionDetailScormSessionData';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Detailed content session information
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetContentSessionDetail
|
|
35
|
+
*/
|
|
36
|
+
export interface GetContentSessionDetail {
|
|
37
|
+
/**
|
|
38
|
+
* The external ID of the content session
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetContentSessionDetail
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The date and time the content session was created (Unix timestamp)
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetContentSessionDetail
|
|
47
|
+
*/
|
|
48
|
+
createdAt: number;
|
|
49
|
+
/**
|
|
50
|
+
* The date and time the content session was updated (Unix timestamp)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GetContentSessionDetail
|
|
53
|
+
*/
|
|
54
|
+
updatedAt: number;
|
|
55
|
+
/**
|
|
56
|
+
* The external ID of the content
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetContentSessionDetail
|
|
59
|
+
*/
|
|
60
|
+
contentId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The completion status of the content session
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof GetContentSessionDetail
|
|
65
|
+
*/
|
|
66
|
+
completionStatus: GetContentSessionDetailCompletionStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
* The grade status of the content session
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof GetContentSessionDetail
|
|
71
|
+
*/
|
|
72
|
+
gradeStatus: GetContentSessionDetailGradeStatusEnum;
|
|
73
|
+
/**
|
|
74
|
+
* The total duration of the session in seconds
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GetContentSessionDetail
|
|
77
|
+
*/
|
|
78
|
+
durationInSeconds: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {GetContentSessionDetailUserData}
|
|
82
|
+
* @memberof GetContentSessionDetail
|
|
83
|
+
*/
|
|
84
|
+
userData: GetContentSessionDetailUserData;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {GetContentSessionDetailScormSessionData}
|
|
88
|
+
* @memberof GetContentSessionDetail
|
|
89
|
+
*/
|
|
90
|
+
scormSessionData: GetContentSessionDetailScormSessionData | null;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const GetContentSessionDetailCompletionStatusEnum = {
|
|
98
|
+
NotAttempted: 'NotAttempted',
|
|
99
|
+
InProgress: 'InProgress',
|
|
100
|
+
Completed: 'Completed'
|
|
101
|
+
} as const;
|
|
102
|
+
export type GetContentSessionDetailCompletionStatusEnum = typeof GetContentSessionDetailCompletionStatusEnum[keyof typeof GetContentSessionDetailCompletionStatusEnum];
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export const GetContentSessionDetailGradeStatusEnum = {
|
|
108
|
+
Ungraded: 'Ungraded',
|
|
109
|
+
Passed: 'Passed',
|
|
110
|
+
Failed: 'Failed',
|
|
111
|
+
PointsEarned: 'PointsEarned',
|
|
112
|
+
PercentageEarned: 'PercentageEarned',
|
|
113
|
+
NotApplicable: 'NotApplicable'
|
|
114
|
+
} as const;
|
|
115
|
+
export type GetContentSessionDetailGradeStatusEnum = typeof GetContentSessionDetailGradeStatusEnum[keyof typeof GetContentSessionDetailGradeStatusEnum];
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the GetContentSessionDetail interface.
|
|
120
|
+
*/
|
|
121
|
+
export function instanceOfGetContentSessionDetail(value: object): value is GetContentSessionDetail {
|
|
122
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
123
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
124
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
125
|
+
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
126
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
127
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
128
|
+
if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined) return false;
|
|
129
|
+
if (!('userData' in value) || value['userData'] === undefined) return false;
|
|
130
|
+
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined) return false;
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function GetContentSessionDetailFromJSON(json: any): GetContentSessionDetail {
|
|
135
|
+
return GetContentSessionDetailFromJSONTyped(json, false);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function GetContentSessionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetail {
|
|
139
|
+
if (json == null) {
|
|
140
|
+
return json;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': json['id'],
|
|
145
|
+
'createdAt': json['created_at'],
|
|
146
|
+
'updatedAt': json['updated_at'],
|
|
147
|
+
'contentId': json['content_id'],
|
|
148
|
+
'completionStatus': json['completion_status'],
|
|
149
|
+
'gradeStatus': json['grade_status'],
|
|
150
|
+
'durationInSeconds': json['duration_in_seconds'],
|
|
151
|
+
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
152
|
+
'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function GetContentSessionDetailToJSON(json: any): GetContentSessionDetail {
|
|
157
|
+
return GetContentSessionDetailToJSONTyped(json, false);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function GetContentSessionDetailToJSONTyped(value?: GetContentSessionDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
161
|
+
if (value == null) {
|
|
162
|
+
return value;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
|
|
167
|
+
'id': value['id'],
|
|
168
|
+
'created_at': value['createdAt'],
|
|
169
|
+
'updated_at': value['updatedAt'],
|
|
170
|
+
'content_id': value['contentId'],
|
|
171
|
+
'completion_status': value['completionStatus'],
|
|
172
|
+
'grade_status': value['gradeStatus'],
|
|
173
|
+
'duration_in_seconds': value['durationInSeconds'],
|
|
174
|
+
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
175
|
+
'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* SCORM session data if this is a SCORM session, null otherwise
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetContentSessionDetailScormSessionData
|
|
20
|
+
*/
|
|
21
|
+
export interface GetContentSessionDetailScormSessionData {
|
|
22
|
+
/**
|
|
23
|
+
* The external ID of the SCORM session
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetContentSessionDetailScormSessionData
|
|
26
|
+
*/
|
|
27
|
+
scormSessionId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetContentSessionDetailScormSessionData interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetContentSessionDetailScormSessionData(value: object): value is GetContentSessionDetailScormSessionData {
|
|
34
|
+
if (!('scormSessionId' in value) || value['scormSessionId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GetContentSessionDetailScormSessionDataFromJSON(json: any): GetContentSessionDetailScormSessionData {
|
|
39
|
+
return GetContentSessionDetailScormSessionDataFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GetContentSessionDetailScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionData {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'scormSessionId': json['scorm_session_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetContentSessionDetailScormSessionDataToJSON(json: any): GetContentSessionDetailScormSessionData {
|
|
53
|
+
return GetContentSessionDetailScormSessionDataToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetContentSessionDetailScormSessionDataToJSONTyped(value?: GetContentSessionDetailScormSessionData | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'scorm_session_id': value['scormSessionId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetContentSessionDetailUserData
|
|
20
|
+
*/
|
|
21
|
+
export interface GetContentSessionDetailUserData {
|
|
22
|
+
/**
|
|
23
|
+
* The external ID of the user
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetContentSessionDetailUserData
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the user
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetContentSessionDetailUserData
|
|
32
|
+
*/
|
|
33
|
+
userName: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetContentSessionDetailUserData interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGetContentSessionDetailUserData(value: object): value is GetContentSessionDetailUserData {
|
|
40
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
41
|
+
if (!('userName' in value) || value['userName'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GetContentSessionDetailUserDataFromJSON(json: any): GetContentSessionDetailUserData {
|
|
46
|
+
return GetContentSessionDetailUserDataFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GetContentSessionDetailUserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailUserData {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'userId': json['user_id'],
|
|
56
|
+
'userName': json['user_name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetContentSessionDetailUserDataToJSON(json: any): GetContentSessionDetailUserData {
|
|
61
|
+
return GetContentSessionDetailUserDataToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetContentSessionDetailUserDataToJSONTyped(value?: GetContentSessionDetailUserData | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'user_id': value['userId'],
|
|
72
|
+
'user_name': value['userName'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetContentSessionListItem } from './GetContentSessionListItem';
|
|
17
|
+
import {
|
|
18
|
+
GetContentSessionListItemFromJSON,
|
|
19
|
+
GetContentSessionListItemFromJSONTyped,
|
|
20
|
+
GetContentSessionListItemToJSON,
|
|
21
|
+
GetContentSessionListItemToJSONTyped,
|
|
22
|
+
} from './GetContentSessionListItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A list of content sessions with pagination information
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetContentSessionList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetContentSessionList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetContentSessionList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetContentSessionList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetContentSessionList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of items
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetContentSessionList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<GetContentSessionListItem>}
|
|
57
|
+
* @memberof GetContentSessionList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<GetContentSessionListItem>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetContentSessionList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetContentSessionList(value: object): value is GetContentSessionList {
|
|
66
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
67
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
68
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetContentSessionListFromJSON(json: any): GetContentSessionList {
|
|
75
|
+
return GetContentSessionListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetContentSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionList {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'page': json['page'],
|
|
85
|
+
'pageSize': json['pageSize'],
|
|
86
|
+
'totalPages': json['totalPages'],
|
|
87
|
+
'totalItems': json['totalItems'],
|
|
88
|
+
'items': ((json['items'] as Array<any>).map(GetContentSessionListItemFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetContentSessionListToJSON(json: any): GetContentSessionList {
|
|
93
|
+
return GetContentSessionListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetContentSessionListToJSONTyped(value?: GetContentSessionList | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'page': value['page'],
|
|
104
|
+
'pageSize': value['pageSize'],
|
|
105
|
+
'totalPages': value['totalPages'],
|
|
106
|
+
'totalItems': value['totalItems'],
|
|
107
|
+
'items': ((value['items'] as Array<any>).map(GetContentSessionListItemToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
17
|
+
import {
|
|
18
|
+
GetContentSessionDetailUserDataFromJSON,
|
|
19
|
+
GetContentSessionDetailUserDataFromJSONTyped,
|
|
20
|
+
GetContentSessionDetailUserDataToJSON,
|
|
21
|
+
GetContentSessionDetailUserDataToJSONTyped,
|
|
22
|
+
} from './GetContentSessionDetailUserData';
|
|
23
|
+
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
24
|
+
import {
|
|
25
|
+
GetContentSessionDetailScormSessionDataFromJSON,
|
|
26
|
+
GetContentSessionDetailScormSessionDataFromJSONTyped,
|
|
27
|
+
GetContentSessionDetailScormSessionDataToJSON,
|
|
28
|
+
GetContentSessionDetailScormSessionDataToJSONTyped,
|
|
29
|
+
} from './GetContentSessionDetailScormSessionData';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A content session list item
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetContentSessionListItem
|
|
35
|
+
*/
|
|
36
|
+
export interface GetContentSessionListItem {
|
|
37
|
+
/**
|
|
38
|
+
* The external ID of the content session
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetContentSessionListItem
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The date and time the content session was created (Unix timestamp)
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetContentSessionListItem
|
|
47
|
+
*/
|
|
48
|
+
createdAt: number;
|
|
49
|
+
/**
|
|
50
|
+
* The date and time the content session was updated (Unix timestamp)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GetContentSessionListItem
|
|
53
|
+
*/
|
|
54
|
+
updatedAt: number;
|
|
55
|
+
/**
|
|
56
|
+
* The external ID of the content
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetContentSessionListItem
|
|
59
|
+
*/
|
|
60
|
+
contentId: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {GetContentSessionDetailUserData}
|
|
64
|
+
* @memberof GetContentSessionListItem
|
|
65
|
+
*/
|
|
66
|
+
userData: GetContentSessionDetailUserData;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {GetContentSessionDetailScormSessionData}
|
|
70
|
+
* @memberof GetContentSessionListItem
|
|
71
|
+
*/
|
|
72
|
+
scormSessionData: GetContentSessionDetailScormSessionData | null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetContentSessionListItem interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfGetContentSessionListItem(value: object): value is GetContentSessionListItem {
|
|
79
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
80
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
81
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
82
|
+
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
83
|
+
if (!('userData' in value) || value['userData'] === undefined) return false;
|
|
84
|
+
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetContentSessionListItemFromJSON(json: any): GetContentSessionListItem {
|
|
89
|
+
return GetContentSessionListItemFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItem {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'id': json['id'],
|
|
99
|
+
'createdAt': json['created_at'],
|
|
100
|
+
'updatedAt': json['updated_at'],
|
|
101
|
+
'contentId': json['content_id'],
|
|
102
|
+
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
103
|
+
'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function GetContentSessionListItemToJSON(json: any): GetContentSessionListItem {
|
|
108
|
+
return GetContentSessionListItemToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function GetContentSessionListItemToJSONTyped(value?: GetContentSessionListItem | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'created_at': value['createdAt'],
|
|
120
|
+
'updated_at': value['updatedAt'],
|
|
121
|
+
'content_id': value['contentId'],
|
|
122
|
+
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
123
|
+
'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A SCORM API call log entry
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetScormApiLogItem
|
|
20
|
+
*/
|
|
21
|
+
export interface GetScormApiLogItem {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the log entry
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetScormApiLogItem
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
* The date and time the API call was made (Unix timestamp)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetScormApiLogItem
|
|
32
|
+
*/
|
|
33
|
+
createdAt: number;
|
|
34
|
+
/**
|
|
35
|
+
* The SCORM API method that was called
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetScormApiLogItem
|
|
38
|
+
*/
|
|
39
|
+
method: GetScormApiLogItemMethodEnum;
|
|
40
|
+
/**
|
|
41
|
+
* The CMI element (e.g., 'cmi.score.raw') - nullable for Initialize, Commit, Terminate
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetScormApiLogItem
|
|
44
|
+
*/
|
|
45
|
+
element: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The value set or returned - nullable for some operations
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetScormApiLogItem
|
|
50
|
+
*/
|
|
51
|
+
value: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The SCORM error code ('0' for success, '301', '401', etc.')
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GetScormApiLogItem
|
|
56
|
+
*/
|
|
57
|
+
errorCode: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const GetScormApiLogItemMethodEnum = {
|
|
65
|
+
Initialize: 'Initialize',
|
|
66
|
+
SetValue: 'SetValue',
|
|
67
|
+
GetValue: 'GetValue',
|
|
68
|
+
Commit: 'Commit',
|
|
69
|
+
Terminate: 'Terminate'
|
|
70
|
+
} as const;
|
|
71
|
+
export type GetScormApiLogItemMethodEnum = typeof GetScormApiLogItemMethodEnum[keyof typeof GetScormApiLogItemMethodEnum];
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the GetScormApiLogItem interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfGetScormApiLogItem(value: object): value is GetScormApiLogItem {
|
|
78
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
80
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
81
|
+
if (!('element' in value) || value['element'] === undefined) return false;
|
|
82
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
83
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetScormApiLogItemFromJSON(json: any): GetScormApiLogItem {
|
|
88
|
+
return GetScormApiLogItemFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function GetScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormApiLogItem {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'createdAt': json['created_at'],
|
|
99
|
+
'method': json['method'],
|
|
100
|
+
'element': json['element'],
|
|
101
|
+
'value': json['value'],
|
|
102
|
+
'errorCode': json['error_code'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function GetScormApiLogItemToJSON(json: any): GetScormApiLogItem {
|
|
107
|
+
return GetScormApiLogItemToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function GetScormApiLogItemToJSONTyped(value?: GetScormApiLogItem | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'id': value['id'],
|
|
118
|
+
'created_at': value['createdAt'],
|
|
119
|
+
'method': value['method'],
|
|
120
|
+
'element': value['element'],
|
|
121
|
+
'value': value['value'],
|
|
122
|
+
'error_code': value['errorCode'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|