@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
|
@@ -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
|
+
}
|
|
@@ -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,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,50 @@
|
|
|
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.instanceOfPostClearSessions = instanceOfPostClearSessions;
|
|
17
|
+
exports.PostClearSessionsFromJSON = PostClearSessionsFromJSON;
|
|
18
|
+
exports.PostClearSessionsFromJSONTyped = PostClearSessionsFromJSONTyped;
|
|
19
|
+
exports.PostClearSessionsToJSON = PostClearSessionsToJSON;
|
|
20
|
+
exports.PostClearSessionsToJSONTyped = PostClearSessionsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostClearSessions interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostClearSessions(value) {
|
|
25
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostClearSessionsFromJSON(json) {
|
|
30
|
+
return PostClearSessionsFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostClearSessionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'reason': json['reason'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostClearSessionsToJSON(json) {
|
|
41
|
+
return PostClearSessionsToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostClearSessionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'reason': value['reason'],
|
|
49
|
+
};
|
|
50
|
+
}
|