@easyedu/js-lsm-api 1.97.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/GetCourseEnrollment.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollment.js +8 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.js +8 -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/PostCourseVersionPublish.d.ts +10 -0
- package/dist/esm/models/PostCourseVersionPublish.js +2 -0
- package/dist/esm/models/PostResourceSessionActivityEvent.d.ts +62 -0
- package/dist/esm/models/PostResourceSessionActivityEvent.js +66 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/esm/models/PutCourseEnrollment.js +2 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/models/GetCourseEnrollment.js +8 -0
- package/dist/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/models/GetCourseEnrollmentListItem.js +8 -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/PostCourseVersionPublish.d.ts +10 -0
- package/dist/models/PostCourseVersionPublish.js +2 -0
- package/dist/models/PostResourceSessionActivityEvent.d.ts +62 -0
- package/dist/models/PostResourceSessionActivityEvent.js +74 -0
- package/dist/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/models/PutCourseEnrollment.js +2 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/ContentLibraryQuizApi.md +2 -2
- package/docs/GetCourseEnrollment.md +4 -0
- package/docs/GetCourseEnrollmentListItem.md +4 -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 +231 -6
- package/docs/PostCourseVersionPublish.md +2 -0
- package/docs/PostResourceSessionActivityEvent.md +39 -0
- package/docs/PutCourseEnrollment.md +2 -0
- package/package.json +1 -1
- package/src/apis/PlayerApi.ts +217 -0
- package/src/models/GetCourseEnrollment.ts +18 -0
- package/src/models/GetCourseEnrollmentListItem.ts +18 -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/PostCourseVersionPublish.ts +12 -0
- package/src/models/PostResourceSessionActivityEvent.ts +104 -0
- package/src/models/PutCourseEnrollment.ts +11 -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 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
|
+
}
|
|
@@ -48,6 +48,15 @@ export interface PutCourseEnrollment {
|
|
|
48
48
|
* @memberof PutCourseEnrollment
|
|
49
49
|
*/
|
|
50
50
|
notes?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Reassign this learner enrollment to a published version of the same course.
|
|
53
|
+
* Only active or suspended Student enrollments can be reassigned. Progress and
|
|
54
|
+
* session history for the previous version are retained but are not transferred.
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PutCourseEnrollment
|
|
58
|
+
*/
|
|
59
|
+
courseVersionId?: string;
|
|
51
60
|
}
|
|
52
61
|
/**
|
|
53
62
|
* @export
|
|
@@ -57,6 +57,7 @@ function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
58
58
|
'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
|
|
59
59
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
60
|
+
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
function PutCourseEnrollmentToJSON(json) {
|
|
@@ -72,5 +73,6 @@ function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
73
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
73
74
|
'extension_days': value['extensionDays'],
|
|
74
75
|
'notes': value['notes'],
|
|
76
|
+
'course_version_id': value['courseVersionId'],
|
|
75
77
|
};
|
|
76
78
|
}
|
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`] |
|
|
@@ -10,6 +10,8 @@ Name | Type
|
|
|
10
10
|
`id` | string
|
|
11
11
|
`courseId` | string
|
|
12
12
|
`userId` | string
|
|
13
|
+
`courseVersionId` | string
|
|
14
|
+
`courseVersionNumber` | number
|
|
13
15
|
`enrollmentDateStart` | number
|
|
14
16
|
`enrollmentDateEnd` | number
|
|
15
17
|
`notes` | string
|
|
@@ -29,6 +31,8 @@ const example = {
|
|
|
29
31
|
"id": null,
|
|
30
32
|
"courseId": null,
|
|
31
33
|
"userId": null,
|
|
34
|
+
"courseVersionId": null,
|
|
35
|
+
"courseVersionNumber": null,
|
|
32
36
|
"enrollmentDateStart": null,
|
|
33
37
|
"enrollmentDateEnd": null,
|
|
34
38
|
"notes": null,
|
|
@@ -10,6 +10,8 @@ Name | Type
|
|
|
10
10
|
`id` | string
|
|
11
11
|
`courseId` | string
|
|
12
12
|
`userId` | string
|
|
13
|
+
`courseVersionId` | string
|
|
14
|
+
`courseVersionNumber` | number
|
|
13
15
|
`firstName` | string
|
|
14
16
|
`lastName` | string
|
|
15
17
|
`enrollmentDateStart` | number
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"id": null,
|
|
31
33
|
"courseId": null,
|
|
32
34
|
"userId": null,
|
|
35
|
+
"courseVersionId": null,
|
|
36
|
+
"courseVersionNumber": null,
|
|
33
37
|
"firstName": null,
|
|
34
38
|
"lastName": null,
|
|
35
39
|
"enrollmentDateStart": null,
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionActivityEventList
|
|
3
|
+
|
|
4
|
+
Recorded learner activity events for one resource-session attempt.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`items` | [Array<GetResourceSessionActivityEvent>](GetResourceSessionActivityEvent.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetResourceSessionActivityEventList } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"items": null,
|
|
20
|
+
} satisfies GetResourceSessionActivityEventList
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceSessionActivityEventList
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionActivityList
|
|
3
|
+
|
|
4
|
+
Activities belonging to one resource-session attempt.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`items` | [Array<GetResourceSessionActivity>](GetResourceSessionActivity.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetResourceSessionActivityList } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"items": null,
|
|
20
|
+
} satisfies GetResourceSessionActivityList
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceSessionActivityList
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|