@easyedu/js-lsm-api 1.98.0 → 1.100.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 +22 -0
- package/README.md +21 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +17 -0
- package/dist/apis/ContentLibraryQuizApi.js +45 -0
- package/dist/apis/CourseApi.d.ts +60 -0
- package/dist/apis/CourseApi.js +167 -0
- package/dist/apis/PlayerApi.d.ts +74 -0
- package/dist/apis/PlayerApi.js +193 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +17 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +45 -0
- package/dist/esm/apis/CourseApi.d.ts +60 -0
- package/dist/esm/apis/CourseApi.js +167 -0
- package/dist/esm/apis/PlayerApi.d.ts +74 -0
- package/dist/esm/apis/PlayerApi.js +193 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +80 -0
- package/dist/esm/models/GetAttemptAllowance.js +75 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +6 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +4 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +6 -0
- package/dist/esm/models/GetLibraryQuizSession.js +4 -0
- package/dist/esm/models/GetResourceSession.d.ts +6 -0
- package/dist/esm/models/GetResourceSession.js +4 -0
- package/dist/esm/models/GetResourceSessionActivity.d.ts +125 -0
- package/dist/esm/models/GetResourceSessionActivity.js +97 -0
- package/dist/esm/models/GetResourceSessionActivityEvent.d.ts +62 -0
- package/dist/esm/models/GetResourceSessionActivityEvent.js +61 -0
- package/dist/esm/models/GetResourceSessionActivityEventList.d.ts +33 -0
- package/dist/esm/models/GetResourceSessionActivityEventList.js +44 -0
- package/dist/esm/models/GetResourceSessionActivityList.d.ts +33 -0
- package/dist/esm/models/GetResourceSessionActivityList.js +44 -0
- package/dist/esm/models/PostClearSessions.d.ts +32 -0
- package/dist/esm/models/PostClearSessions.js +43 -0
- package/dist/esm/models/PostClearSessionsResponse.d.ts +44 -0
- package/dist/esm/models/PostClearSessionsResponse.js +51 -0
- package/dist/esm/models/PostResourceSessionActivityEvent.d.ts +62 -0
- package/dist/esm/models/PostResourceSessionActivityEvent.js +66 -0
- package/dist/esm/models/PutAttemptAllowance.d.ts +38 -0
- package/dist/esm/models/PutAttemptAllowance.js +47 -0
- package/dist/esm/models/PutLibraryQuizSessionOverride.d.ts +57 -0
- package/dist/esm/models/PutLibraryQuizSessionOverride.js +55 -0
- package/dist/esm/models/PutResourceSessionOverride.d.ts +69 -0
- package/dist/esm/models/PutResourceSessionOverride.js +66 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/GetAttemptAllowance.d.ts +80 -0
- package/dist/models/GetAttemptAllowance.js +82 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +6 -0
- package/dist/models/GetCourseVersionItemSession.js +4 -0
- package/dist/models/GetLibraryQuizSession.d.ts +6 -0
- package/dist/models/GetLibraryQuizSession.js +4 -0
- package/dist/models/GetResourceSession.d.ts +6 -0
- package/dist/models/GetResourceSession.js +4 -0
- package/dist/models/GetResourceSessionActivity.d.ts +125 -0
- package/dist/models/GetResourceSessionActivity.js +105 -0
- package/dist/models/GetResourceSessionActivityEvent.d.ts +62 -0
- package/dist/models/GetResourceSessionActivityEvent.js +68 -0
- package/dist/models/GetResourceSessionActivityEventList.d.ts +33 -0
- package/dist/models/GetResourceSessionActivityEventList.js +51 -0
- package/dist/models/GetResourceSessionActivityList.d.ts +33 -0
- package/dist/models/GetResourceSessionActivityList.js +51 -0
- package/dist/models/PostClearSessions.d.ts +32 -0
- package/dist/models/PostClearSessions.js +50 -0
- package/dist/models/PostClearSessionsResponse.d.ts +44 -0
- package/dist/models/PostClearSessionsResponse.js +58 -0
- package/dist/models/PostResourceSessionActivityEvent.d.ts +62 -0
- package/dist/models/PostResourceSessionActivityEvent.js +74 -0
- package/dist/models/PutAttemptAllowance.d.ts +38 -0
- package/dist/models/PutAttemptAllowance.js +54 -0
- package/dist/models/PutLibraryQuizSessionOverride.d.ts +57 -0
- package/dist/models/PutLibraryQuizSessionOverride.js +63 -0
- package/dist/models/PutResourceSessionOverride.d.ts +69 -0
- package/dist/models/PutResourceSessionOverride.js +74 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/ContentLibraryQuizApi.md +73 -2
- package/docs/CourseApi.md +236 -0
- package/docs/GetAttemptAllowance.md +51 -0
- package/docs/GetCourseVersionItemSession.md +2 -0
- package/docs/GetLibraryQuizSession.md +2 -0
- package/docs/GetResourceSession.md +2 -0
- package/docs/GetResourceSessionActivity.md +63 -0
- package/docs/GetResourceSessionActivityEvent.md +45 -0
- package/docs/GetResourceSessionActivityEventList.md +35 -0
- package/docs/GetResourceSessionActivityList.md +35 -0
- package/docs/PlayerApi.md +302 -6
- package/docs/PostClearSessions.md +34 -0
- package/docs/PostClearSessionsResponse.md +38 -0
- package/docs/PostResourceSessionActivityEvent.md +39 -0
- package/docs/PutAttemptAllowance.md +36 -0
- package/docs/PutLibraryQuizSessionOverride.md +41 -0
- package/docs/PutResourceSessionOverride.md +41 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +65 -0
- package/src/apis/CourseApi.ts +270 -0
- package/src/apis/PlayerApi.ts +282 -0
- package/src/models/GetAttemptAllowance.ts +138 -0
- package/src/models/GetCourseVersionItemSession.ts +9 -0
- package/src/models/GetLibraryQuizSession.ts +9 -0
- package/src/models/GetResourceSession.ts +9 -0
- package/src/models/GetResourceSessionActivity.ts +199 -0
- package/src/models/GetResourceSessionActivityEvent.ts +110 -0
- package/src/models/GetResourceSessionActivityEventList.ts +74 -0
- package/src/models/GetResourceSessionActivityList.ts +74 -0
- package/src/models/PostClearSessions.ts +66 -0
- package/src/models/PostClearSessionsResponse.ts +84 -0
- package/src/models/PostResourceSessionActivityEvent.ts +104 -0
- package/src/models/PutAttemptAllowance.ts +75 -0
- package/src/models/PutLibraryQuizSessionOverride.ts +100 -0
- package/src/models/PutResourceSessionOverride.ts +113 -0
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
* Per-activity learner state within a resource-session attempt.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetResourceSessionActivity
|
|
20
|
+
*/
|
|
21
|
+
export interface GetResourceSessionActivity {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetResourceSessionActivity
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Stable source identifier, such as a SCORM activity identifier or resource.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetResourceSessionActivity
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetResourceSessionActivity
|
|
38
|
+
*/
|
|
39
|
+
title: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {GetResourceSessionActivityActivityTypeEnum}
|
|
43
|
+
* @memberof GetResourceSessionActivity
|
|
44
|
+
*/
|
|
45
|
+
activityType: GetResourceSessionActivityActivityTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetResourceSessionActivity
|
|
50
|
+
*/
|
|
51
|
+
completionStatus: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GetResourceSessionActivity
|
|
56
|
+
*/
|
|
57
|
+
gradeStatus: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetResourceSessionActivity
|
|
62
|
+
*/
|
|
63
|
+
scoreRaw?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetResourceSessionActivity
|
|
68
|
+
*/
|
|
69
|
+
durationSeconds: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof GetResourceSessionActivity
|
|
74
|
+
*/
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof GetResourceSessionActivity
|
|
80
|
+
*/
|
|
81
|
+
initializedAt?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof GetResourceSessionActivity
|
|
86
|
+
*/
|
|
87
|
+
terminatedAt?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof GetResourceSessionActivity
|
|
92
|
+
*/
|
|
93
|
+
completedAt?: number | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof GetResourceSessionActivity
|
|
98
|
+
*/
|
|
99
|
+
lastSeenAt?: number | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof GetResourceSessionActivity
|
|
104
|
+
*/
|
|
105
|
+
createdAt: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof GetResourceSessionActivity
|
|
110
|
+
*/
|
|
111
|
+
updatedAt: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const GetResourceSessionActivityActivityTypeEnum = {
|
|
119
|
+
Resource: 'resource',
|
|
120
|
+
Sco: 'sco',
|
|
121
|
+
Asset: 'asset'
|
|
122
|
+
} as const;
|
|
123
|
+
export type GetResourceSessionActivityActivityTypeEnum = typeof GetResourceSessionActivityActivityTypeEnum[keyof typeof GetResourceSessionActivityActivityTypeEnum];
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Check if a given object implements the GetResourceSessionActivity interface.
|
|
128
|
+
*/
|
|
129
|
+
export function instanceOfGetResourceSessionActivity(value: object): value is GetResourceSessionActivity {
|
|
130
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
131
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
132
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
133
|
+
if (!('activityType' in value) || value['activityType'] === undefined) return false;
|
|
134
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
135
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
136
|
+
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined) return false;
|
|
137
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
138
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
139
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function GetResourceSessionActivityFromJSON(json: any): GetResourceSessionActivity {
|
|
144
|
+
return GetResourceSessionActivityFromJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function GetResourceSessionActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivity {
|
|
148
|
+
if (json == null) {
|
|
149
|
+
return json;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'id': json['id'],
|
|
154
|
+
'identifier': json['identifier'],
|
|
155
|
+
'title': json['title'],
|
|
156
|
+
'activityType': json['activity_type'],
|
|
157
|
+
'completionStatus': json['completion_status'],
|
|
158
|
+
'gradeStatus': json['grade_status'],
|
|
159
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
160
|
+
'durationSeconds': json['duration_seconds'],
|
|
161
|
+
'isActive': json['is_active'],
|
|
162
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
163
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
164
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
165
|
+
'lastSeenAt': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
|
|
166
|
+
'createdAt': json['created_at'],
|
|
167
|
+
'updatedAt': json['updated_at'],
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function GetResourceSessionActivityToJSON(json: any): GetResourceSessionActivity {
|
|
172
|
+
return GetResourceSessionActivityToJSONTyped(json, false);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function GetResourceSessionActivityToJSONTyped(value?: GetResourceSessionActivity | null, ignoreDiscriminator: boolean = false): any {
|
|
176
|
+
if (value == null) {
|
|
177
|
+
return value;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
|
|
182
|
+
'id': value['id'],
|
|
183
|
+
'identifier': value['identifier'],
|
|
184
|
+
'title': value['title'],
|
|
185
|
+
'activity_type': value['activityType'],
|
|
186
|
+
'completion_status': value['completionStatus'],
|
|
187
|
+
'grade_status': value['gradeStatus'],
|
|
188
|
+
'score_raw': value['scoreRaw'],
|
|
189
|
+
'duration_seconds': value['durationSeconds'],
|
|
190
|
+
'is_active': value['isActive'],
|
|
191
|
+
'initialized_at': value['initializedAt'],
|
|
192
|
+
'terminated_at': value['terminatedAt'],
|
|
193
|
+
'completed_at': value['completedAt'],
|
|
194
|
+
'last_seen_at': value['lastSeenAt'],
|
|
195
|
+
'created_at': value['createdAt'],
|
|
196
|
+
'updated_at': value['updatedAt'],
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
* A recorded learner activity event.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetResourceSessionActivityEvent
|
|
20
|
+
*/
|
|
21
|
+
export interface GetResourceSessionActivityEvent {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetResourceSessionActivityEvent
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetResourceSessionActivityEvent
|
|
32
|
+
*/
|
|
33
|
+
eventId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetResourceSessionActivityEvent
|
|
38
|
+
*/
|
|
39
|
+
activityId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetResourceSessionActivityEvent
|
|
44
|
+
*/
|
|
45
|
+
eventType: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetResourceSessionActivityEvent
|
|
50
|
+
*/
|
|
51
|
+
positionSeconds?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetResourceSessionActivityEvent
|
|
56
|
+
*/
|
|
57
|
+
createdAt: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetResourceSessionActivityEvent interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfGetResourceSessionActivityEvent(value: object): value is GetResourceSessionActivityEvent {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('eventId' in value) || value['eventId'] === undefined) return false;
|
|
66
|
+
if (!('activityId' in value) || value['activityId'] === undefined) return false;
|
|
67
|
+
if (!('eventType' in value) || value['eventType'] === undefined) return false;
|
|
68
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GetResourceSessionActivityEventFromJSON(json: any): GetResourceSessionActivityEvent {
|
|
73
|
+
return GetResourceSessionActivityEventFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function GetResourceSessionActivityEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityEvent {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'eventId': json['event_id'],
|
|
84
|
+
'activityId': json['activity_id'],
|
|
85
|
+
'eventType': json['event_type'],
|
|
86
|
+
'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
|
|
87
|
+
'createdAt': json['created_at'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function GetResourceSessionActivityEventToJSON(json: any): GetResourceSessionActivityEvent {
|
|
92
|
+
return GetResourceSessionActivityEventToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function GetResourceSessionActivityEventToJSONTyped(value?: GetResourceSessionActivityEvent | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'event_id': value['eventId'],
|
|
104
|
+
'activity_id': value['activityId'],
|
|
105
|
+
'event_type': value['eventType'],
|
|
106
|
+
'position_seconds': value['positionSeconds'],
|
|
107
|
+
'created_at': value['createdAt'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { GetResourceSessionActivityEvent } from './GetResourceSessionActivityEvent';
|
|
17
|
+
import {
|
|
18
|
+
GetResourceSessionActivityEventFromJSON,
|
|
19
|
+
GetResourceSessionActivityEventFromJSONTyped,
|
|
20
|
+
GetResourceSessionActivityEventToJSON,
|
|
21
|
+
GetResourceSessionActivityEventToJSONTyped,
|
|
22
|
+
} from './GetResourceSessionActivityEvent';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Recorded learner activity events for one resource-session attempt.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetResourceSessionActivityEventList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetResourceSessionActivityEventList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GetResourceSessionActivityEvent>}
|
|
33
|
+
* @memberof GetResourceSessionActivityEventList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<GetResourceSessionActivityEvent>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetResourceSessionActivityEventList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetResourceSessionActivityEventList(value: object): value is GetResourceSessionActivityEventList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetResourceSessionActivityEventListFromJSON(json: any): GetResourceSessionActivityEventList {
|
|
47
|
+
return GetResourceSessionActivityEventListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetResourceSessionActivityEventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityEventList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(GetResourceSessionActivityEventFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetResourceSessionActivityEventListToJSON(json: any): GetResourceSessionActivityEventList {
|
|
61
|
+
return GetResourceSessionActivityEventListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetResourceSessionActivityEventListToJSONTyped(value?: GetResourceSessionActivityEventList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(GetResourceSessionActivityEventToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { GetResourceSessionActivity } from './GetResourceSessionActivity';
|
|
17
|
+
import {
|
|
18
|
+
GetResourceSessionActivityFromJSON,
|
|
19
|
+
GetResourceSessionActivityFromJSONTyped,
|
|
20
|
+
GetResourceSessionActivityToJSON,
|
|
21
|
+
GetResourceSessionActivityToJSONTyped,
|
|
22
|
+
} from './GetResourceSessionActivity';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Activities belonging to one resource-session attempt.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetResourceSessionActivityList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetResourceSessionActivityList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GetResourceSessionActivity>}
|
|
33
|
+
* @memberof GetResourceSessionActivityList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<GetResourceSessionActivity>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetResourceSessionActivityList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetResourceSessionActivityList(value: object): value is GetResourceSessionActivityList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetResourceSessionActivityListFromJSON(json: any): GetResourceSessionActivityList {
|
|
47
|
+
return GetResourceSessionActivityListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetResourceSessionActivityListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(GetResourceSessionActivityFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetResourceSessionActivityListToJSON(json: any): GetResourceSessionActivityList {
|
|
61
|
+
return GetResourceSessionActivityListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetResourceSessionActivityListToJSONTyped(value?: GetResourceSessionActivityList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(GetResourceSessionActivityToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostClearSessions
|
|
20
|
+
*/
|
|
21
|
+
export interface PostClearSessions {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostClearSessions
|
|
26
|
+
*/
|
|
27
|
+
reason: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostClearSessions interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostClearSessions(value: object): value is PostClearSessions {
|
|
34
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostClearSessionsFromJSON(json: any): PostClearSessions {
|
|
39
|
+
return PostClearSessionsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostClearSessionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostClearSessions {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'reason': json['reason'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostClearSessionsToJSON(json: any): PostClearSessions {
|
|
53
|
+
return PostClearSessionsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostClearSessionsToJSONTyped(value?: PostClearSessions | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'reason': value['reason'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 PostClearSessionsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PostClearSessionsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PostClearSessionsResponse
|
|
26
|
+
*/
|
|
27
|
+
resourceSessionsDeleted: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostClearSessionsResponse
|
|
32
|
+
*/
|
|
33
|
+
quizSessionsDeleted: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostClearSessionsResponse
|
|
38
|
+
*/
|
|
39
|
+
totalSessionsDeleted: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PostClearSessionsResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPostClearSessionsResponse(value: object): value is PostClearSessionsResponse {
|
|
46
|
+
if (!('resourceSessionsDeleted' in value) || value['resourceSessionsDeleted'] === undefined) return false;
|
|
47
|
+
if (!('quizSessionsDeleted' in value) || value['quizSessionsDeleted'] === undefined) return false;
|
|
48
|
+
if (!('totalSessionsDeleted' in value) || value['totalSessionsDeleted'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostClearSessionsResponseFromJSON(json: any): PostClearSessionsResponse {
|
|
53
|
+
return PostClearSessionsResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostClearSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostClearSessionsResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'resourceSessionsDeleted': json['resource_sessions_deleted'],
|
|
63
|
+
'quizSessionsDeleted': json['quiz_sessions_deleted'],
|
|
64
|
+
'totalSessionsDeleted': json['total_sessions_deleted'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostClearSessionsResponseToJSON(json: any): PostClearSessionsResponse {
|
|
69
|
+
return PostClearSessionsResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PostClearSessionsResponseToJSONTyped(value?: PostClearSessionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'resource_sessions_deleted': value['resourceSessionsDeleted'],
|
|
80
|
+
'quiz_sessions_deleted': value['quizSessionsDeleted'],
|
|
81
|
+
'total_sessions_deleted': value['totalSessionsDeleted'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|