@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,97 @@
|
|
|
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 GetResourceSessionActivityActivityTypeEnum = {
|
|
18
|
+
Resource: 'resource',
|
|
19
|
+
Sco: 'sco',
|
|
20
|
+
Asset: 'asset'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetResourceSessionActivity interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetResourceSessionActivity(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('activityType' in value) || value['activityType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
export function GetResourceSessionActivityFromJSON(json) {
|
|
49
|
+
return GetResourceSessionActivityFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function GetResourceSessionActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'identifier': json['identifier'],
|
|
58
|
+
'title': json['title'],
|
|
59
|
+
'activityType': json['activity_type'],
|
|
60
|
+
'completionStatus': json['completion_status'],
|
|
61
|
+
'gradeStatus': json['grade_status'],
|
|
62
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
63
|
+
'durationSeconds': json['duration_seconds'],
|
|
64
|
+
'isActive': json['is_active'],
|
|
65
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
66
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
67
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
68
|
+
'lastSeenAt': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
|
|
69
|
+
'createdAt': json['created_at'],
|
|
70
|
+
'updatedAt': json['updated_at'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export function GetResourceSessionActivityToJSON(json) {
|
|
74
|
+
return GetResourceSessionActivityToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
export function GetResourceSessionActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'id': value['id'],
|
|
82
|
+
'identifier': value['identifier'],
|
|
83
|
+
'title': value['title'],
|
|
84
|
+
'activity_type': value['activityType'],
|
|
85
|
+
'completion_status': value['completionStatus'],
|
|
86
|
+
'grade_status': value['gradeStatus'],
|
|
87
|
+
'score_raw': value['scoreRaw'],
|
|
88
|
+
'duration_seconds': value['durationSeconds'],
|
|
89
|
+
'is_active': value['isActive'],
|
|
90
|
+
'initialized_at': value['initializedAt'],
|
|
91
|
+
'terminated_at': value['terminatedAt'],
|
|
92
|
+
'completed_at': value['completedAt'],
|
|
93
|
+
'last_seen_at': value['lastSeenAt'],
|
|
94
|
+
'created_at': value['createdAt'],
|
|
95
|
+
'updated_at': value['updatedAt'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -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,61 @@
|
|
|
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
|
+
* Check if a given object implements the GetResourceSessionActivityEvent interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetResourceSessionActivityEvent(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function GetResourceSessionActivityEventFromJSON(json) {
|
|
31
|
+
return GetResourceSessionActivityEventFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function GetResourceSessionActivityEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'eventId': json['event_id'],
|
|
40
|
+
'activityId': json['activity_id'],
|
|
41
|
+
'eventType': json['event_type'],
|
|
42
|
+
'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
|
|
43
|
+
'createdAt': json['created_at'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetResourceSessionActivityEventToJSON(json) {
|
|
47
|
+
return GetResourceSessionActivityEventToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceSessionActivityEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'event_id': value['eventId'],
|
|
56
|
+
'activity_id': value['activityId'],
|
|
57
|
+
'event_type': value['eventType'],
|
|
58
|
+
'position_seconds': value['positionSeconds'],
|
|
59
|
+
'created_at': value['createdAt'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostClearSessions
|
|
16
|
+
*/
|
|
17
|
+
export interface PostClearSessions {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostClearSessions
|
|
22
|
+
*/
|
|
23
|
+
reason: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostClearSessions interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostClearSessions(value: object): value is PostClearSessions;
|
|
29
|
+
export declare function PostClearSessionsFromJSON(json: any): PostClearSessions;
|
|
30
|
+
export declare function PostClearSessionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostClearSessions;
|
|
31
|
+
export declare function PostClearSessionsToJSON(json: any): PostClearSessions;
|
|
32
|
+
export declare function PostClearSessionsToJSONTyped(value?: PostClearSessions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the PostClearSessions interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostClearSessions(value) {
|
|
18
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostClearSessionsFromJSON(json) {
|
|
23
|
+
return PostClearSessionsFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostClearSessionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'reason': json['reason'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostClearSessionsToJSON(json) {
|
|
34
|
+
return PostClearSessionsToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostClearSessionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'reason': value['reason'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostClearSessionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostClearSessionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PostClearSessionsResponse
|
|
22
|
+
*/
|
|
23
|
+
resourceSessionsDeleted: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PostClearSessionsResponse
|
|
28
|
+
*/
|
|
29
|
+
quizSessionsDeleted: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostClearSessionsResponse
|
|
34
|
+
*/
|
|
35
|
+
totalSessionsDeleted: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PostClearSessionsResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPostClearSessionsResponse(value: object): value is PostClearSessionsResponse;
|
|
41
|
+
export declare function PostClearSessionsResponseFromJSON(json: any): PostClearSessionsResponse;
|
|
42
|
+
export declare function PostClearSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostClearSessionsResponse;
|
|
43
|
+
export declare function PostClearSessionsResponseToJSON(json: any): PostClearSessionsResponse;
|
|
44
|
+
export declare function PostClearSessionsResponseToJSONTyped(value?: PostClearSessionsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the PostClearSessionsResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostClearSessionsResponse(value) {
|
|
18
|
+
if (!('resourceSessionsDeleted' in value) || value['resourceSessionsDeleted'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('quizSessionsDeleted' in value) || value['quizSessionsDeleted'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('totalSessionsDeleted' in value) || value['totalSessionsDeleted'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PostClearSessionsResponseFromJSON(json) {
|
|
27
|
+
return PostClearSessionsResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PostClearSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'resourceSessionsDeleted': json['resource_sessions_deleted'],
|
|
35
|
+
'quizSessionsDeleted': json['quiz_sessions_deleted'],
|
|
36
|
+
'totalSessionsDeleted': json['total_sessions_deleted'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function PostClearSessionsResponseToJSON(json) {
|
|
40
|
+
return PostClearSessionsResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PostClearSessionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'resource_sessions_deleted': value['resourceSessionsDeleted'],
|
|
48
|
+
'quiz_sessions_deleted': value['quizSessionsDeleted'],
|
|
49
|
+
'total_sessions_deleted': value['totalSessionsDeleted'],
|
|
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,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
|
+
}
|