@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,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 recorded learner activity event.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetResourceSessionActivityEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface GetResourceSessionActivityEvent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetResourceSessionActivityEvent
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetResourceSessionActivityEvent
|
|
28
|
+
*/
|
|
29
|
+
eventId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetResourceSessionActivityEvent
|
|
34
|
+
*/
|
|
35
|
+
activityId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetResourceSessionActivityEvent
|
|
40
|
+
*/
|
|
41
|
+
eventType: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetResourceSessionActivityEvent
|
|
46
|
+
*/
|
|
47
|
+
positionSeconds?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetResourceSessionActivityEvent
|
|
52
|
+
*/
|
|
53
|
+
createdAt: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GetResourceSessionActivityEvent interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGetResourceSessionActivityEvent(value: object): value is GetResourceSessionActivityEvent;
|
|
59
|
+
export declare function GetResourceSessionActivityEventFromJSON(json: any): GetResourceSessionActivityEvent;
|
|
60
|
+
export declare function GetResourceSessionActivityEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityEvent;
|
|
61
|
+
export declare function GetResourceSessionActivityEventToJSON(json: any): GetResourceSessionActivityEvent;
|
|
62
|
+
export declare function GetResourceSessionActivityEventToJSONTyped(value?: GetResourceSessionActivityEvent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfGetResourceSessionActivityEvent = instanceOfGetResourceSessionActivityEvent;
|
|
17
|
+
exports.GetResourceSessionActivityEventFromJSON = GetResourceSessionActivityEventFromJSON;
|
|
18
|
+
exports.GetResourceSessionActivityEventFromJSONTyped = GetResourceSessionActivityEventFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionActivityEventToJSON = GetResourceSessionActivityEventToJSON;
|
|
20
|
+
exports.GetResourceSessionActivityEventToJSONTyped = GetResourceSessionActivityEventToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetResourceSessionActivityEvent interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetResourceSessionActivityEvent(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function GetResourceSessionActivityEventFromJSON(json) {
|
|
38
|
+
return GetResourceSessionActivityEventFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function GetResourceSessionActivityEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'eventId': json['event_id'],
|
|
47
|
+
'activityId': json['activity_id'],
|
|
48
|
+
'eventType': json['event_type'],
|
|
49
|
+
'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
|
|
50
|
+
'createdAt': json['created_at'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetResourceSessionActivityEventToJSON(json) {
|
|
54
|
+
return GetResourceSessionActivityEventToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetResourceSessionActivityEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'event_id': value['eventId'],
|
|
63
|
+
'activity_id': value['activityId'],
|
|
64
|
+
'event_type': value['eventType'],
|
|
65
|
+
'position_seconds': value['positionSeconds'],
|
|
66
|
+
'created_at': value['createdAt'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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,51 @@
|
|
|
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.instanceOfGetResourceSessionActivityEventList = instanceOfGetResourceSessionActivityEventList;
|
|
17
|
+
exports.GetResourceSessionActivityEventListFromJSON = GetResourceSessionActivityEventListFromJSON;
|
|
18
|
+
exports.GetResourceSessionActivityEventListFromJSONTyped = GetResourceSessionActivityEventListFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionActivityEventListToJSON = GetResourceSessionActivityEventListToJSON;
|
|
20
|
+
exports.GetResourceSessionActivityEventListToJSONTyped = GetResourceSessionActivityEventListToJSONTyped;
|
|
21
|
+
const GetResourceSessionActivityEvent_1 = require("./GetResourceSessionActivityEvent");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetResourceSessionActivityEventList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetResourceSessionActivityEventList(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function GetResourceSessionActivityEventListFromJSON(json) {
|
|
31
|
+
return GetResourceSessionActivityEventListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GetResourceSessionActivityEventListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'items': (json['items'].map(GetResourceSessionActivityEvent_1.GetResourceSessionActivityEventFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function GetResourceSessionActivityEventListToJSON(json) {
|
|
42
|
+
return GetResourceSessionActivityEventListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetResourceSessionActivityEventListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'items': (value['items'].map(GetResourceSessionActivityEvent_1.GetResourceSessionActivityEventToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,51 @@
|
|
|
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.instanceOfGetResourceSessionActivityList = instanceOfGetResourceSessionActivityList;
|
|
17
|
+
exports.GetResourceSessionActivityListFromJSON = GetResourceSessionActivityListFromJSON;
|
|
18
|
+
exports.GetResourceSessionActivityListFromJSONTyped = GetResourceSessionActivityListFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionActivityListToJSON = GetResourceSessionActivityListToJSON;
|
|
20
|
+
exports.GetResourceSessionActivityListToJSONTyped = GetResourceSessionActivityListToJSONTyped;
|
|
21
|
+
const GetResourceSessionActivity_1 = require("./GetResourceSessionActivity");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetResourceSessionActivityList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetResourceSessionActivityList(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function GetResourceSessionActivityListFromJSON(json) {
|
|
31
|
+
return GetResourceSessionActivityListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GetResourceSessionActivityListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'items': (json['items'].map(GetResourceSessionActivity_1.GetResourceSessionActivityFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function GetResourceSessionActivityListToJSON(json) {
|
|
42
|
+
return GetResourceSessionActivityListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetResourceSessionActivityListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'items': (value['items'].map(GetResourceSessionActivity_1.GetResourceSessionActivityToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,74 @@
|
|
|
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.PostResourceSessionActivityEventEventTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfPostResourceSessionActivityEvent = instanceOfPostResourceSessionActivityEvent;
|
|
18
|
+
exports.PostResourceSessionActivityEventFromJSON = PostResourceSessionActivityEventFromJSON;
|
|
19
|
+
exports.PostResourceSessionActivityEventFromJSONTyped = PostResourceSessionActivityEventFromJSONTyped;
|
|
20
|
+
exports.PostResourceSessionActivityEventToJSON = PostResourceSessionActivityEventToJSON;
|
|
21
|
+
exports.PostResourceSessionActivityEventToJSONTyped = PostResourceSessionActivityEventToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostResourceSessionActivityEventEventTypeEnum = {
|
|
26
|
+
Start: 'start',
|
|
27
|
+
Heartbeat: 'heartbeat',
|
|
28
|
+
Pause: 'pause',
|
|
29
|
+
Complete: 'complete',
|
|
30
|
+
MediaPlay: 'media_play',
|
|
31
|
+
MediaPause: 'media_pause',
|
|
32
|
+
MediaSeek: 'media_seek',
|
|
33
|
+
MediaEnded: 'media_ended',
|
|
34
|
+
Download: 'download',
|
|
35
|
+
LinkOpen: 'link_open',
|
|
36
|
+
DocumentOpen: 'document_open',
|
|
37
|
+
Terminate: 'terminate'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PostResourceSessionActivityEvent interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfPostResourceSessionActivityEvent(value) {
|
|
43
|
+
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function PostResourceSessionActivityEventFromJSON(json) {
|
|
50
|
+
return PostResourceSessionActivityEventFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PostResourceSessionActivityEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'eventId': json['event_id'],
|
|
58
|
+
'eventType': json['event_type'],
|
|
59
|
+
'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function PostResourceSessionActivityEventToJSON(json) {
|
|
63
|
+
return PostResourceSessionActivityEventToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function PostResourceSessionActivityEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'event_id': value['eventId'],
|
|
71
|
+
'event_type': value['eventType'],
|
|
72
|
+
'position_seconds': value['positionSeconds'],
|
|
73
|
+
};
|
|
74
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -107,6 +107,10 @@ __exportStar(require("./GetQuestionQuizzesInner"), exports);
|
|
|
107
107
|
__exportStar(require("./GetResource"), exports);
|
|
108
108
|
__exportStar(require("./GetResourceList"), exports);
|
|
109
109
|
__exportStar(require("./GetResourceSession"), exports);
|
|
110
|
+
__exportStar(require("./GetResourceSessionActivity"), exports);
|
|
111
|
+
__exportStar(require("./GetResourceSessionActivityEvent"), exports);
|
|
112
|
+
__exportStar(require("./GetResourceSessionActivityEventList"), exports);
|
|
113
|
+
__exportStar(require("./GetResourceSessionActivityList"), exports);
|
|
110
114
|
__exportStar(require("./GetResourceSessionDiagnostics"), exports);
|
|
111
115
|
__exportStar(require("./GetResourceSessionDiagnosticsCourseContext"), exports);
|
|
112
116
|
__exportStar(require("./GetResourceSessionDiagnosticsResource"), exports);
|
|
@@ -202,6 +206,7 @@ __exportStar(require("./PostQuestion"), exports);
|
|
|
202
206
|
__exportStar(require("./PostQuestionAnswerChoicesInner"), exports);
|
|
203
207
|
__exportStar(require("./PostResetPassword"), exports);
|
|
204
208
|
__exportStar(require("./PostResource"), exports);
|
|
209
|
+
__exportStar(require("./PostResourceSessionActivityEvent"), exports);
|
|
205
210
|
__exportStar(require("./PostResourceVersion"), exports);
|
|
206
211
|
__exportStar(require("./PostResourceVersionComplete"), exports);
|
|
207
212
|
__exportStar(require("./PostResourceVersionSession"), exports);
|
|
@@ -537,7 +537,7 @@ async function example() {
|
|
|
537
537
|
const api = new ContentLibraryQuizApi();
|
|
538
538
|
|
|
539
539
|
const body = {
|
|
540
|
-
// string |
|
|
540
|
+
// string | External user ID, legacy internal user ID, or `current` for the authenticated user. (optional)
|
|
541
541
|
userId: userId_example,
|
|
542
542
|
// string (optional)
|
|
543
543
|
quizId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
@@ -576,7 +576,7 @@ example().catch(console.error);
|
|
|
576
576
|
|
|
577
577
|
| Name | Type | Description | Notes |
|
|
578
578
|
|------------- | ------------- | ------------- | -------------|
|
|
579
|
-
| **userId** | `string` |
|
|
579
|
+
| **userId** | `string` | External user ID, legacy internal user ID, or `current` for the authenticated user. | [Optional] [Defaults to `undefined`] |
|
|
580
580
|
| **quizId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
581
581
|
| **quizVersionId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
582
582
|
| **courseId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`completionStatus` | string
|
|
22
22
|
`gradeStatus` | string
|
|
23
23
|
`scoreRaw` | number
|
|
24
|
+
`durationSeconds` | number
|
|
24
25
|
`createdAt` | number
|
|
25
26
|
`updatedAt` | number
|
|
26
27
|
`completedAt` | number
|
|
@@ -46,6 +47,7 @@ const example = {
|
|
|
46
47
|
"completionStatus": null,
|
|
47
48
|
"gradeStatus": null,
|
|
48
49
|
"scoreRaw": null,
|
|
50
|
+
"durationSeconds": null,
|
|
49
51
|
"createdAt": null,
|
|
50
52
|
"updatedAt": null,
|
|
51
53
|
"completedAt": null,
|
|
@@ -29,6 +29,7 @@ Name | Type
|
|
|
29
29
|
`createdAt` | number
|
|
30
30
|
`updatedAt` | number
|
|
31
31
|
`completedAt` | number
|
|
32
|
+
`durationSeconds` | number
|
|
32
33
|
|
|
33
34
|
## Example
|
|
34
35
|
|
|
@@ -60,6 +61,7 @@ const example = {
|
|
|
60
61
|
"createdAt": null,
|
|
61
62
|
"updatedAt": null,
|
|
62
63
|
"completedAt": null,
|
|
64
|
+
"durationSeconds": null,
|
|
63
65
|
} satisfies GetLibraryQuizSession
|
|
64
66
|
|
|
65
67
|
console.log(example)
|
|
@@ -29,6 +29,7 @@ Name | Type
|
|
|
29
29
|
`completionStatus` | string
|
|
30
30
|
`gradeStatus` | string
|
|
31
31
|
`scoreRaw` | number
|
|
32
|
+
`durationSeconds` | number
|
|
32
33
|
`initializedAt` | number
|
|
33
34
|
`terminatedAt` | number
|
|
34
35
|
`createdAt` | number
|
|
@@ -64,6 +65,7 @@ const example = {
|
|
|
64
65
|
"completionStatus": null,
|
|
65
66
|
"gradeStatus": null,
|
|
66
67
|
"scoreRaw": null,
|
|
68
|
+
"durationSeconds": null,
|
|
67
69
|
"initializedAt": null,
|
|
68
70
|
"terminatedAt": null,
|
|
69
71
|
"createdAt": null,
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionActivity
|
|
3
|
+
|
|
4
|
+
Per-activity learner state within a resource-session attempt.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`identifier` | string
|
|
12
|
+
`title` | string
|
|
13
|
+
`activityType` | string
|
|
14
|
+
`completionStatus` | string
|
|
15
|
+
`gradeStatus` | string
|
|
16
|
+
`scoreRaw` | number
|
|
17
|
+
`durationSeconds` | number
|
|
18
|
+
`isActive` | boolean
|
|
19
|
+
`initializedAt` | number
|
|
20
|
+
`terminatedAt` | number
|
|
21
|
+
`completedAt` | number
|
|
22
|
+
`lastSeenAt` | number
|
|
23
|
+
`createdAt` | number
|
|
24
|
+
`updatedAt` | number
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import type { GetResourceSessionActivity } from '@easyedu/js-lsm-api'
|
|
30
|
+
|
|
31
|
+
// TODO: Update the object below with actual values
|
|
32
|
+
const example = {
|
|
33
|
+
"id": null,
|
|
34
|
+
"identifier": null,
|
|
35
|
+
"title": null,
|
|
36
|
+
"activityType": null,
|
|
37
|
+
"completionStatus": null,
|
|
38
|
+
"gradeStatus": null,
|
|
39
|
+
"scoreRaw": null,
|
|
40
|
+
"durationSeconds": null,
|
|
41
|
+
"isActive": null,
|
|
42
|
+
"initializedAt": null,
|
|
43
|
+
"terminatedAt": null,
|
|
44
|
+
"completedAt": null,
|
|
45
|
+
"lastSeenAt": null,
|
|
46
|
+
"createdAt": null,
|
|
47
|
+
"updatedAt": null,
|
|
48
|
+
} satisfies GetResourceSessionActivity
|
|
49
|
+
|
|
50
|
+
console.log(example)
|
|
51
|
+
|
|
52
|
+
// Convert the instance to a JSON string
|
|
53
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
54
|
+
console.log(exampleJSON)
|
|
55
|
+
|
|
56
|
+
// Parse the JSON string back to an object
|
|
57
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceSessionActivity
|
|
58
|
+
console.log(exampleParsed)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
62
|
+
|
|
63
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionActivityEvent
|
|
3
|
+
|
|
4
|
+
A recorded learner activity event.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | number
|
|
11
|
+
`eventId` | string
|
|
12
|
+
`activityId` | string
|
|
13
|
+
`eventType` | string
|
|
14
|
+
`positionSeconds` | number
|
|
15
|
+
`createdAt` | number
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { GetResourceSessionActivityEvent } from '@easyedu/js-lsm-api'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": null,
|
|
25
|
+
"eventId": null,
|
|
26
|
+
"activityId": null,
|
|
27
|
+
"eventType": null,
|
|
28
|
+
"positionSeconds": null,
|
|
29
|
+
"createdAt": null,
|
|
30
|
+
} satisfies GetResourceSessionActivityEvent
|
|
31
|
+
|
|
32
|
+
console.log(example)
|
|
33
|
+
|
|
34
|
+
// Convert the instance to a JSON string
|
|
35
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
36
|
+
console.log(exampleJSON)
|
|
37
|
+
|
|
38
|
+
// Parse the JSON string back to an object
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceSessionActivityEvent
|
|
40
|
+
console.log(exampleParsed)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
44
|
+
|
|
45
|
+
|