@easyedu/js-lsm-api 1.98.0 → 1.99.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 +10 -0
- package/README.md +10 -2
- package/dist/apis/PlayerApi.d.ts +57 -0
- package/dist/apis/PlayerApi.js +148 -0
- package/dist/esm/apis/PlayerApi.d.ts +57 -0
- package/dist/esm/apis/PlayerApi.js +148 -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/PostResourceSessionActivityEvent.d.ts +62 -0
- package/dist/esm/models/PostResourceSessionActivityEvent.js +66 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -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/PostResourceSessionActivityEvent.d.ts +62 -0
- package/dist/models/PostResourceSessionActivityEvent.js +74 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/ContentLibraryQuizApi.md +2 -2
- 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 +231 -6
- package/docs/PostResourceSessionActivityEvent.md +39 -0
- package/package.json +1 -1
- package/src/apis/PlayerApi.ts +217 -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/PostResourceSessionActivityEvent.ts +104 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,33 @@
|
|
|
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 { GetResourceSessionActivityEvent } from './GetResourceSessionActivityEvent';
|
|
13
|
+
/**
|
|
14
|
+
* Recorded learner activity events for one resource-session attempt.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceSessionActivityEventList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceSessionActivityEventList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GetResourceSessionActivityEvent>}
|
|
22
|
+
* @memberof GetResourceSessionActivityEventList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GetResourceSessionActivityEvent>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetResourceSessionActivityEventList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetResourceSessionActivityEventList(value: object): value is GetResourceSessionActivityEventList;
|
|
30
|
+
export declare function GetResourceSessionActivityEventListFromJSON(json: any): GetResourceSessionActivityEventList;
|
|
31
|
+
export declare function GetResourceSessionActivityEventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityEventList;
|
|
32
|
+
export declare function GetResourceSessionActivityEventListToJSON(json: any): GetResourceSessionActivityEventList;
|
|
33
|
+
export declare function GetResourceSessionActivityEventListToJSONTyped(value?: GetResourceSessionActivityEventList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { GetResourceSessionActivityEventFromJSON, GetResourceSessionActivityEventToJSON, } from './GetResourceSessionActivityEvent';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceSessionActivityEventList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceSessionActivityEventList(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function GetResourceSessionActivityEventListFromJSON(json) {
|
|
24
|
+
return GetResourceSessionActivityEventListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetResourceSessionActivityEventListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(GetResourceSessionActivityEventFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetResourceSessionActivityEventListToJSON(json) {
|
|
35
|
+
return GetResourceSessionActivityEventListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetResourceSessionActivityEventListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(GetResourceSessionActivityEventToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { GetResourceSessionActivity } from './GetResourceSessionActivity';
|
|
13
|
+
/**
|
|
14
|
+
* Activities belonging to one resource-session attempt.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceSessionActivityList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceSessionActivityList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GetResourceSessionActivity>}
|
|
22
|
+
* @memberof GetResourceSessionActivityList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GetResourceSessionActivity>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetResourceSessionActivityList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetResourceSessionActivityList(value: object): value is GetResourceSessionActivityList;
|
|
30
|
+
export declare function GetResourceSessionActivityListFromJSON(json: any): GetResourceSessionActivityList;
|
|
31
|
+
export declare function GetResourceSessionActivityListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityList;
|
|
32
|
+
export declare function GetResourceSessionActivityListToJSON(json: any): GetResourceSessionActivityList;
|
|
33
|
+
export declare function GetResourceSessionActivityListToJSONTyped(value?: GetResourceSessionActivityList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { GetResourceSessionActivityFromJSON, GetResourceSessionActivityToJSON, } from './GetResourceSessionActivity';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceSessionActivityList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceSessionActivityList(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function GetResourceSessionActivityListFromJSON(json) {
|
|
24
|
+
return GetResourceSessionActivityListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetResourceSessionActivityListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(GetResourceSessionActivityFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetResourceSessionActivityListToJSON(json) {
|
|
35
|
+
return GetResourceSessionActivityListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetResourceSessionActivityListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(GetResourceSessionActivityToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 learner activity signal. Timing is calculated from server receipt times.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostResourceSessionActivityEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceSessionActivityEvent {
|
|
18
|
+
/**
|
|
19
|
+
* Client-generated idempotency identifier.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostResourceSessionActivityEvent
|
|
22
|
+
*/
|
|
23
|
+
eventId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PostResourceSessionActivityEventEventTypeEnum}
|
|
27
|
+
* @memberof PostResourceSessionActivityEvent
|
|
28
|
+
*/
|
|
29
|
+
eventType: PostResourceSessionActivityEventEventTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostResourceSessionActivityEvent
|
|
34
|
+
*/
|
|
35
|
+
positionSeconds?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PostResourceSessionActivityEventEventTypeEnum: {
|
|
41
|
+
readonly Start: "start";
|
|
42
|
+
readonly Heartbeat: "heartbeat";
|
|
43
|
+
readonly Pause: "pause";
|
|
44
|
+
readonly Complete: "complete";
|
|
45
|
+
readonly MediaPlay: "media_play";
|
|
46
|
+
readonly MediaPause: "media_pause";
|
|
47
|
+
readonly MediaSeek: "media_seek";
|
|
48
|
+
readonly MediaEnded: "media_ended";
|
|
49
|
+
readonly Download: "download";
|
|
50
|
+
readonly LinkOpen: "link_open";
|
|
51
|
+
readonly DocumentOpen: "document_open";
|
|
52
|
+
readonly Terminate: "terminate";
|
|
53
|
+
};
|
|
54
|
+
export type PostResourceSessionActivityEventEventTypeEnum = typeof PostResourceSessionActivityEventEventTypeEnum[keyof typeof PostResourceSessionActivityEventEventTypeEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the PostResourceSessionActivityEvent interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfPostResourceSessionActivityEvent(value: object): value is PostResourceSessionActivityEvent;
|
|
59
|
+
export declare function PostResourceSessionActivityEventFromJSON(json: any): PostResourceSessionActivityEvent;
|
|
60
|
+
export declare function PostResourceSessionActivityEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceSessionActivityEvent;
|
|
61
|
+
export declare function PostResourceSessionActivityEventToJSON(json: any): PostResourceSessionActivityEvent;
|
|
62
|
+
export declare function PostResourceSessionActivityEventToJSONTyped(value?: PostResourceSessionActivityEvent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PostResourceSessionActivityEventEventTypeEnum = {
|
|
18
|
+
Start: 'start',
|
|
19
|
+
Heartbeat: 'heartbeat',
|
|
20
|
+
Pause: 'pause',
|
|
21
|
+
Complete: 'complete',
|
|
22
|
+
MediaPlay: 'media_play',
|
|
23
|
+
MediaPause: 'media_pause',
|
|
24
|
+
MediaSeek: 'media_seek',
|
|
25
|
+
MediaEnded: 'media_ended',
|
|
26
|
+
Download: 'download',
|
|
27
|
+
LinkOpen: 'link_open',
|
|
28
|
+
DocumentOpen: 'document_open',
|
|
29
|
+
Terminate: 'terminate'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostResourceSessionActivityEvent interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfPostResourceSessionActivityEvent(value) {
|
|
35
|
+
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function PostResourceSessionActivityEventFromJSON(json) {
|
|
42
|
+
return PostResourceSessionActivityEventFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function PostResourceSessionActivityEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'eventId': json['event_id'],
|
|
50
|
+
'eventType': json['event_type'],
|
|
51
|
+
'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function PostResourceSessionActivityEventToJSON(json) {
|
|
55
|
+
return PostResourceSessionActivityEventToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function PostResourceSessionActivityEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'event_id': value['eventId'],
|
|
63
|
+
'event_type': value['eventType'],
|
|
64
|
+
'position_seconds': value['positionSeconds'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -89,6 +89,10 @@ export * from './GetQuestionQuizzesInner';
|
|
|
89
89
|
export * from './GetResource';
|
|
90
90
|
export * from './GetResourceList';
|
|
91
91
|
export * from './GetResourceSession';
|
|
92
|
+
export * from './GetResourceSessionActivity';
|
|
93
|
+
export * from './GetResourceSessionActivityEvent';
|
|
94
|
+
export * from './GetResourceSessionActivityEventList';
|
|
95
|
+
export * from './GetResourceSessionActivityList';
|
|
92
96
|
export * from './GetResourceSessionDiagnostics';
|
|
93
97
|
export * from './GetResourceSessionDiagnosticsCourseContext';
|
|
94
98
|
export * from './GetResourceSessionDiagnosticsResource';
|
|
@@ -184,6 +188,7 @@ export * from './PostQuestion';
|
|
|
184
188
|
export * from './PostQuestionAnswerChoicesInner';
|
|
185
189
|
export * from './PostResetPassword';
|
|
186
190
|
export * from './PostResource';
|
|
191
|
+
export * from './PostResourceSessionActivityEvent';
|
|
187
192
|
export * from './PostResourceVersion';
|
|
188
193
|
export * from './PostResourceVersionComplete';
|
|
189
194
|
export * from './PostResourceVersionSession';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -91,6 +91,10 @@ export * from './GetQuestionQuizzesInner';
|
|
|
91
91
|
export * from './GetResource';
|
|
92
92
|
export * from './GetResourceList';
|
|
93
93
|
export * from './GetResourceSession';
|
|
94
|
+
export * from './GetResourceSessionActivity';
|
|
95
|
+
export * from './GetResourceSessionActivityEvent';
|
|
96
|
+
export * from './GetResourceSessionActivityEventList';
|
|
97
|
+
export * from './GetResourceSessionActivityList';
|
|
94
98
|
export * from './GetResourceSessionDiagnostics';
|
|
95
99
|
export * from './GetResourceSessionDiagnosticsCourseContext';
|
|
96
100
|
export * from './GetResourceSessionDiagnosticsResource';
|
|
@@ -186,6 +190,7 @@ export * from './PostQuestion';
|
|
|
186
190
|
export * from './PostQuestionAnswerChoicesInner';
|
|
187
191
|
export * from './PostResetPassword';
|
|
188
192
|
export * from './PostResource';
|
|
193
|
+
export * from './PostResourceSessionActivityEvent';
|
|
189
194
|
export * from './PostResourceVersion';
|
|
190
195
|
export * from './PostResourceVersionComplete';
|
|
191
196
|
export * from './PostResourceVersionSession';
|
|
@@ -102,6 +102,12 @@ export interface GetCourseVersionItemSession {
|
|
|
102
102
|
* @memberof GetCourseVersionItemSession
|
|
103
103
|
*/
|
|
104
104
|
scoreRaw?: number | null;
|
|
105
|
+
/**
|
|
106
|
+
* Accumulated active learner time across this session's activities.
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof GetCourseVersionItemSession
|
|
109
|
+
*/
|
|
110
|
+
durationSeconds: number;
|
|
105
111
|
/**
|
|
106
112
|
*
|
|
107
113
|
* @type {number}
|
|
@@ -51,6 +51,8 @@ function instanceOfGetCourseVersionItemSession(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
+
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
|
|
55
|
+
return false;
|
|
54
56
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
55
57
|
return false;
|
|
56
58
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -79,6 +81,7 @@ function GetCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
81
|
'completionStatus': json['completion_status'],
|
|
80
82
|
'gradeStatus': json['grade_status'],
|
|
81
83
|
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
84
|
+
'durationSeconds': json['duration_seconds'],
|
|
82
85
|
'createdAt': json['created_at'],
|
|
83
86
|
'updatedAt': json['updated_at'],
|
|
84
87
|
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
@@ -106,6 +109,7 @@ function GetCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
106
109
|
'completion_status': value['completionStatus'],
|
|
107
110
|
'grade_status': value['gradeStatus'],
|
|
108
111
|
'score_raw': value['scoreRaw'],
|
|
112
|
+
'duration_seconds': value['durationSeconds'],
|
|
109
113
|
'created_at': value['createdAt'],
|
|
110
114
|
'updated_at': value['updatedAt'],
|
|
111
115
|
'completed_at': value['completedAt'],
|
|
@@ -155,6 +155,12 @@ export interface GetLibraryQuizSession {
|
|
|
155
155
|
* @memberof GetLibraryQuizSession
|
|
156
156
|
*/
|
|
157
157
|
completedAt?: number | null;
|
|
158
|
+
/**
|
|
159
|
+
* Elapsed attempt time from start through completion, submission, or the latest saved activity.
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @memberof GetLibraryQuizSession
|
|
162
|
+
*/
|
|
163
|
+
durationSeconds: number;
|
|
158
164
|
}
|
|
159
165
|
/**
|
|
160
166
|
* @export
|
|
@@ -67,6 +67,8 @@ function instanceOfGetLibraryQuizSession(value) {
|
|
|
67
67
|
return false;
|
|
68
68
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
69
69
|
return false;
|
|
70
|
+
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
|
|
71
|
+
return false;
|
|
70
72
|
return true;
|
|
71
73
|
}
|
|
72
74
|
function GetLibraryQuizSessionFromJSON(json) {
|
|
@@ -100,6 +102,7 @@ function GetLibraryQuizSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
102
|
'createdAt': json['created_at'],
|
|
101
103
|
'updatedAt': json['updated_at'],
|
|
102
104
|
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
105
|
+
'durationSeconds': json['duration_seconds'],
|
|
103
106
|
};
|
|
104
107
|
}
|
|
105
108
|
function GetLibraryQuizSessionToJSON(json) {
|
|
@@ -133,5 +136,6 @@ function GetLibraryQuizSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
133
136
|
'created_at': value['createdAt'],
|
|
134
137
|
'updated_at': value['updatedAt'],
|
|
135
138
|
'completed_at': value['completedAt'],
|
|
139
|
+
'duration_seconds': value['durationSeconds'],
|
|
136
140
|
};
|
|
137
141
|
}
|
|
@@ -150,6 +150,12 @@ export interface GetResourceSession {
|
|
|
150
150
|
* @memberof GetResourceSession
|
|
151
151
|
*/
|
|
152
152
|
scoreRaw?: number | null;
|
|
153
|
+
/**
|
|
154
|
+
* Accumulated active learner time across this session's activities.
|
|
155
|
+
* @type {number}
|
|
156
|
+
* @memberof GetResourceSession
|
|
157
|
+
*/
|
|
158
|
+
durationSeconds: number;
|
|
153
159
|
/**
|
|
154
160
|
*
|
|
155
161
|
* @type {number}
|
|
@@ -53,6 +53,8 @@ function instanceOfGetResourceSession(value) {
|
|
|
53
53
|
return false;
|
|
54
54
|
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
55
55
|
return false;
|
|
56
|
+
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
|
|
57
|
+
return false;
|
|
56
58
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
59
|
return false;
|
|
58
60
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -89,6 +91,7 @@ function GetResourceSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
91
|
'completionStatus': json['completion_status'],
|
|
90
92
|
'gradeStatus': json['grade_status'],
|
|
91
93
|
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
94
|
+
'durationSeconds': json['duration_seconds'],
|
|
92
95
|
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
93
96
|
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
94
97
|
'createdAt': json['created_at'],
|
|
@@ -126,6 +129,7 @@ function GetResourceSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
126
129
|
'completion_status': value['completionStatus'],
|
|
127
130
|
'grade_status': value['gradeStatus'],
|
|
128
131
|
'score_raw': value['scoreRaw'],
|
|
132
|
+
'duration_seconds': value['durationSeconds'],
|
|
129
133
|
'initialized_at': value['initializedAt'],
|
|
130
134
|
'terminated_at': value['terminatedAt'],
|
|
131
135
|
'created_at': value['createdAt'],
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
* Per-activity learner state within a resource-session attempt.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetResourceSessionActivity
|
|
16
|
+
*/
|
|
17
|
+
export interface GetResourceSessionActivity {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetResourceSessionActivity
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Stable source identifier, such as a SCORM activity identifier or resource.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetResourceSessionActivity
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetResourceSessionActivity
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {GetResourceSessionActivityActivityTypeEnum}
|
|
39
|
+
* @memberof GetResourceSessionActivity
|
|
40
|
+
*/
|
|
41
|
+
activityType: GetResourceSessionActivityActivityTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetResourceSessionActivity
|
|
46
|
+
*/
|
|
47
|
+
completionStatus: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetResourceSessionActivity
|
|
52
|
+
*/
|
|
53
|
+
gradeStatus: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetResourceSessionActivity
|
|
58
|
+
*/
|
|
59
|
+
scoreRaw?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetResourceSessionActivity
|
|
64
|
+
*/
|
|
65
|
+
durationSeconds: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof GetResourceSessionActivity
|
|
70
|
+
*/
|
|
71
|
+
isActive: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GetResourceSessionActivity
|
|
76
|
+
*/
|
|
77
|
+
initializedAt?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof GetResourceSessionActivity
|
|
82
|
+
*/
|
|
83
|
+
terminatedAt?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof GetResourceSessionActivity
|
|
88
|
+
*/
|
|
89
|
+
completedAt?: number | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof GetResourceSessionActivity
|
|
94
|
+
*/
|
|
95
|
+
lastSeenAt?: number | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof GetResourceSessionActivity
|
|
100
|
+
*/
|
|
101
|
+
createdAt: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof GetResourceSessionActivity
|
|
106
|
+
*/
|
|
107
|
+
updatedAt: number;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export declare const GetResourceSessionActivityActivityTypeEnum: {
|
|
113
|
+
readonly Resource: "resource";
|
|
114
|
+
readonly Sco: "sco";
|
|
115
|
+
readonly Asset: "asset";
|
|
116
|
+
};
|
|
117
|
+
export type GetResourceSessionActivityActivityTypeEnum = typeof GetResourceSessionActivityActivityTypeEnum[keyof typeof GetResourceSessionActivityActivityTypeEnum];
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the GetResourceSessionActivity interface.
|
|
120
|
+
*/
|
|
121
|
+
export declare function instanceOfGetResourceSessionActivity(value: object): value is GetResourceSessionActivity;
|
|
122
|
+
export declare function GetResourceSessionActivityFromJSON(json: any): GetResourceSessionActivity;
|
|
123
|
+
export declare function GetResourceSessionActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivity;
|
|
124
|
+
export declare function GetResourceSessionActivityToJSON(json: any): GetResourceSessionActivity;
|
|
125
|
+
export declare function GetResourceSessionActivityToJSONTyped(value?: GetResourceSessionActivity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,105 @@
|
|
|
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.GetResourceSessionActivityActivityTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfGetResourceSessionActivity = instanceOfGetResourceSessionActivity;
|
|
18
|
+
exports.GetResourceSessionActivityFromJSON = GetResourceSessionActivityFromJSON;
|
|
19
|
+
exports.GetResourceSessionActivityFromJSONTyped = GetResourceSessionActivityFromJSONTyped;
|
|
20
|
+
exports.GetResourceSessionActivityToJSON = GetResourceSessionActivityToJSON;
|
|
21
|
+
exports.GetResourceSessionActivityToJSONTyped = GetResourceSessionActivityToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetResourceSessionActivityActivityTypeEnum = {
|
|
26
|
+
Resource: 'resource',
|
|
27
|
+
Sco: 'sco',
|
|
28
|
+
Asset: 'asset'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetResourceSessionActivity interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfGetResourceSessionActivity(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('activityType' in value) || value['activityType'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function GetResourceSessionActivityFromJSON(json) {
|
|
57
|
+
return GetResourceSessionActivityFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function GetResourceSessionActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'identifier': json['identifier'],
|
|
66
|
+
'title': json['title'],
|
|
67
|
+
'activityType': json['activity_type'],
|
|
68
|
+
'completionStatus': json['completion_status'],
|
|
69
|
+
'gradeStatus': json['grade_status'],
|
|
70
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
71
|
+
'durationSeconds': json['duration_seconds'],
|
|
72
|
+
'isActive': json['is_active'],
|
|
73
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
74
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
75
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
76
|
+
'lastSeenAt': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
|
|
77
|
+
'createdAt': json['created_at'],
|
|
78
|
+
'updatedAt': json['updated_at'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function GetResourceSessionActivityToJSON(json) {
|
|
82
|
+
return GetResourceSessionActivityToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
function GetResourceSessionActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'identifier': value['identifier'],
|
|
91
|
+
'title': value['title'],
|
|
92
|
+
'activity_type': value['activityType'],
|
|
93
|
+
'completion_status': value['completionStatus'],
|
|
94
|
+
'grade_status': value['gradeStatus'],
|
|
95
|
+
'score_raw': value['scoreRaw'],
|
|
96
|
+
'duration_seconds': value['durationSeconds'],
|
|
97
|
+
'is_active': value['isActive'],
|
|
98
|
+
'initialized_at': value['initializedAt'],
|
|
99
|
+
'terminated_at': value['terminatedAt'],
|
|
100
|
+
'completed_at': value['completedAt'],
|
|
101
|
+
'last_seen_at': value['lastSeenAt'],
|
|
102
|
+
'created_at': value['createdAt'],
|
|
103
|
+
'updated_at': value['updatedAt'],
|
|
104
|
+
};
|
|
105
|
+
}
|