@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,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,58 @@
|
|
|
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.instanceOfPostClearSessionsResponse = instanceOfPostClearSessionsResponse;
|
|
17
|
+
exports.PostClearSessionsResponseFromJSON = PostClearSessionsResponseFromJSON;
|
|
18
|
+
exports.PostClearSessionsResponseFromJSONTyped = PostClearSessionsResponseFromJSONTyped;
|
|
19
|
+
exports.PostClearSessionsResponseToJSON = PostClearSessionsResponseToJSON;
|
|
20
|
+
exports.PostClearSessionsResponseToJSONTyped = PostClearSessionsResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostClearSessionsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostClearSessionsResponse(value) {
|
|
25
|
+
if (!('resourceSessionsDeleted' in value) || value['resourceSessionsDeleted'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('quizSessionsDeleted' in value) || value['quizSessionsDeleted'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('totalSessionsDeleted' in value) || value['totalSessionsDeleted'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PostClearSessionsResponseFromJSON(json) {
|
|
34
|
+
return PostClearSessionsResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PostClearSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'resourceSessionsDeleted': json['resource_sessions_deleted'],
|
|
42
|
+
'quizSessionsDeleted': json['quiz_sessions_deleted'],
|
|
43
|
+
'totalSessionsDeleted': json['total_sessions_deleted'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PostClearSessionsResponseToJSON(json) {
|
|
47
|
+
return PostClearSessionsResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PostClearSessionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'resource_sessions_deleted': value['resourceSessionsDeleted'],
|
|
55
|
+
'quiz_sessions_deleted': value['quizSessionsDeleted'],
|
|
56
|
+
'total_sessions_deleted': value['totalSessionsDeleted'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PutAttemptAllowance
|
|
16
|
+
*/
|
|
17
|
+
export interface PutAttemptAllowance {
|
|
18
|
+
/**
|
|
19
|
+
* Attempts added to this course item's configured limit for this learner.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PutAttemptAllowance
|
|
22
|
+
*/
|
|
23
|
+
additionalAttempts: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutAttemptAllowance
|
|
28
|
+
*/
|
|
29
|
+
reason: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutAttemptAllowance interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutAttemptAllowance(value: object): value is PutAttemptAllowance;
|
|
35
|
+
export declare function PutAttemptAllowanceFromJSON(json: any): PutAttemptAllowance;
|
|
36
|
+
export declare function PutAttemptAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutAttemptAllowance;
|
|
37
|
+
export declare function PutAttemptAllowanceToJSON(json: any): PutAttemptAllowance;
|
|
38
|
+
export declare function PutAttemptAllowanceToJSONTyped(value?: PutAttemptAllowance | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPutAttemptAllowance = instanceOfPutAttemptAllowance;
|
|
17
|
+
exports.PutAttemptAllowanceFromJSON = PutAttemptAllowanceFromJSON;
|
|
18
|
+
exports.PutAttemptAllowanceFromJSONTyped = PutAttemptAllowanceFromJSONTyped;
|
|
19
|
+
exports.PutAttemptAllowanceToJSON = PutAttemptAllowanceToJSON;
|
|
20
|
+
exports.PutAttemptAllowanceToJSONTyped = PutAttemptAllowanceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutAttemptAllowance interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutAttemptAllowance(value) {
|
|
25
|
+
if (!('additionalAttempts' in value) || value['additionalAttempts'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PutAttemptAllowanceFromJSON(json) {
|
|
32
|
+
return PutAttemptAllowanceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PutAttemptAllowanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'additionalAttempts': json['additional_attempts'],
|
|
40
|
+
'reason': json['reason'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PutAttemptAllowanceToJSON(json) {
|
|
44
|
+
return PutAttemptAllowanceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PutAttemptAllowanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'additional_attempts': value['additionalAttempts'],
|
|
52
|
+
'reason': value['reason'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* Instructor-entered progress values for an existing live quiz session.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutLibraryQuizSessionOverride
|
|
16
|
+
*/
|
|
17
|
+
export interface PutLibraryQuizSessionOverride {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PutLibraryQuizSessionOverrideStatusEnum}
|
|
21
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
22
|
+
*/
|
|
23
|
+
status?: PutLibraryQuizSessionOverrideStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
28
|
+
*/
|
|
29
|
+
scorePercentage?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
34
|
+
*/
|
|
35
|
+
passed?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
40
|
+
*/
|
|
41
|
+
reason: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PutLibraryQuizSessionOverrideStatusEnum: {
|
|
47
|
+
readonly Completed: "completed";
|
|
48
|
+
};
|
|
49
|
+
export type PutLibraryQuizSessionOverrideStatusEnum = typeof PutLibraryQuizSessionOverrideStatusEnum[keyof typeof PutLibraryQuizSessionOverrideStatusEnum];
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PutLibraryQuizSessionOverride interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPutLibraryQuizSessionOverride(value: object): value is PutLibraryQuizSessionOverride;
|
|
54
|
+
export declare function PutLibraryQuizSessionOverrideFromJSON(json: any): PutLibraryQuizSessionOverride;
|
|
55
|
+
export declare function PutLibraryQuizSessionOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionOverride;
|
|
56
|
+
export declare function PutLibraryQuizSessionOverrideToJSON(json: any): PutLibraryQuizSessionOverride;
|
|
57
|
+
export declare function PutLibraryQuizSessionOverrideToJSONTyped(value?: PutLibraryQuizSessionOverride | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.PutLibraryQuizSessionOverrideStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPutLibraryQuizSessionOverride = instanceOfPutLibraryQuizSessionOverride;
|
|
18
|
+
exports.PutLibraryQuizSessionOverrideFromJSON = PutLibraryQuizSessionOverrideFromJSON;
|
|
19
|
+
exports.PutLibraryQuizSessionOverrideFromJSONTyped = PutLibraryQuizSessionOverrideFromJSONTyped;
|
|
20
|
+
exports.PutLibraryQuizSessionOverrideToJSON = PutLibraryQuizSessionOverrideToJSON;
|
|
21
|
+
exports.PutLibraryQuizSessionOverrideToJSONTyped = PutLibraryQuizSessionOverrideToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PutLibraryQuizSessionOverrideStatusEnum = {
|
|
26
|
+
Completed: 'completed'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the PutLibraryQuizSessionOverride interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfPutLibraryQuizSessionOverride(value) {
|
|
32
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PutLibraryQuizSessionOverrideFromJSON(json) {
|
|
37
|
+
return PutLibraryQuizSessionOverrideFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PutLibraryQuizSessionOverrideFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
45
|
+
'scorePercentage': json['score_percentage'] == null ? undefined : json['score_percentage'],
|
|
46
|
+
'passed': json['passed'] == null ? undefined : json['passed'],
|
|
47
|
+
'reason': json['reason'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function PutLibraryQuizSessionOverrideToJSON(json) {
|
|
51
|
+
return PutLibraryQuizSessionOverrideToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function PutLibraryQuizSessionOverrideToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'status': value['status'],
|
|
59
|
+
'score_percentage': value['scorePercentage'],
|
|
60
|
+
'passed': value['passed'],
|
|
61
|
+
'reason': value['reason'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* Instructor-entered progress values for an existing live resource session.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutResourceSessionOverride
|
|
16
|
+
*/
|
|
17
|
+
export interface PutResourceSessionOverride {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PutResourceSessionOverrideCompletionStatusEnum}
|
|
21
|
+
* @memberof PutResourceSessionOverride
|
|
22
|
+
*/
|
|
23
|
+
completionStatus?: PutResourceSessionOverrideCompletionStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PutResourceSessionOverrideGradeStatusEnum}
|
|
27
|
+
* @memberof PutResourceSessionOverride
|
|
28
|
+
*/
|
|
29
|
+
gradeStatus?: PutResourceSessionOverrideGradeStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PutResourceSessionOverride
|
|
34
|
+
*/
|
|
35
|
+
scoreRaw?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PutResourceSessionOverride
|
|
40
|
+
*/
|
|
41
|
+
reason: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PutResourceSessionOverrideCompletionStatusEnum: {
|
|
47
|
+
readonly Completed: "completed";
|
|
48
|
+
};
|
|
49
|
+
export type PutResourceSessionOverrideCompletionStatusEnum = typeof PutResourceSessionOverrideCompletionStatusEnum[keyof typeof PutResourceSessionOverrideCompletionStatusEnum];
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const PutResourceSessionOverrideGradeStatusEnum: {
|
|
54
|
+
readonly Ungraded: "ungraded";
|
|
55
|
+
readonly Passed: "passed";
|
|
56
|
+
readonly Failed: "failed";
|
|
57
|
+
readonly PointsEarned: "points_earned";
|
|
58
|
+
readonly PercentageEarned: "percentage_earned";
|
|
59
|
+
readonly NotApplicable: "not_applicable";
|
|
60
|
+
};
|
|
61
|
+
export type PutResourceSessionOverrideGradeStatusEnum = typeof PutResourceSessionOverrideGradeStatusEnum[keyof typeof PutResourceSessionOverrideGradeStatusEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PutResourceSessionOverride interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfPutResourceSessionOverride(value: object): value is PutResourceSessionOverride;
|
|
66
|
+
export declare function PutResourceSessionOverrideFromJSON(json: any): PutResourceSessionOverride;
|
|
67
|
+
export declare function PutResourceSessionOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResourceSessionOverride;
|
|
68
|
+
export declare function PutResourceSessionOverrideToJSON(json: any): PutResourceSessionOverride;
|
|
69
|
+
export declare function PutResourceSessionOverrideToJSONTyped(value?: PutResourceSessionOverride | 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.PutResourceSessionOverrideGradeStatusEnum = exports.PutResourceSessionOverrideCompletionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPutResourceSessionOverride = instanceOfPutResourceSessionOverride;
|
|
18
|
+
exports.PutResourceSessionOverrideFromJSON = PutResourceSessionOverrideFromJSON;
|
|
19
|
+
exports.PutResourceSessionOverrideFromJSONTyped = PutResourceSessionOverrideFromJSONTyped;
|
|
20
|
+
exports.PutResourceSessionOverrideToJSON = PutResourceSessionOverrideToJSON;
|
|
21
|
+
exports.PutResourceSessionOverrideToJSONTyped = PutResourceSessionOverrideToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PutResourceSessionOverrideCompletionStatusEnum = {
|
|
26
|
+
Completed: 'completed'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.PutResourceSessionOverrideGradeStatusEnum = {
|
|
32
|
+
Ungraded: 'ungraded',
|
|
33
|
+
Passed: 'passed',
|
|
34
|
+
Failed: 'failed',
|
|
35
|
+
PointsEarned: 'points_earned',
|
|
36
|
+
PercentageEarned: 'percentage_earned',
|
|
37
|
+
NotApplicable: 'not_applicable'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PutResourceSessionOverride interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfPutResourceSessionOverride(value) {
|
|
43
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function PutResourceSessionOverrideFromJSON(json) {
|
|
48
|
+
return PutResourceSessionOverrideFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function PutResourceSessionOverrideFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'completionStatus': json['completion_status'] == null ? undefined : json['completion_status'],
|
|
56
|
+
'gradeStatus': json['grade_status'] == null ? undefined : json['grade_status'],
|
|
57
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
58
|
+
'reason': json['reason'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function PutResourceSessionOverrideToJSON(json) {
|
|
62
|
+
return PutResourceSessionOverrideToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function PutResourceSessionOverrideToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'completion_status': value['completionStatus'],
|
|
70
|
+
'grade_status': value['gradeStatus'],
|
|
71
|
+
'score_raw': value['scoreRaw'],
|
|
72
|
+
'reason': value['reason'],
|
|
73
|
+
};
|
|
74
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './EmailTemplateDefinition';
|
|
|
29
29
|
export * from './EmailTemplateScope';
|
|
30
30
|
export * from './EmailTemplateVariable';
|
|
31
31
|
export * from './EmailTemplateVersion';
|
|
32
|
+
export * from './GetAttemptAllowance';
|
|
32
33
|
export * from './GetCertificateAssetUpload';
|
|
33
34
|
export * from './GetCertificateConfigList';
|
|
34
35
|
export * from './GetCertificateEventList';
|
|
@@ -89,6 +90,10 @@ export * from './GetQuestionQuizzesInner';
|
|
|
89
90
|
export * from './GetResource';
|
|
90
91
|
export * from './GetResourceList';
|
|
91
92
|
export * from './GetResourceSession';
|
|
93
|
+
export * from './GetResourceSessionActivity';
|
|
94
|
+
export * from './GetResourceSessionActivityEvent';
|
|
95
|
+
export * from './GetResourceSessionActivityEventList';
|
|
96
|
+
export * from './GetResourceSessionActivityList';
|
|
92
97
|
export * from './GetResourceSessionDiagnostics';
|
|
93
98
|
export * from './GetResourceSessionDiagnosticsCourseContext';
|
|
94
99
|
export * from './GetResourceSessionDiagnosticsResource';
|
|
@@ -149,6 +154,8 @@ export * from './PostCertificateLifecycleAction';
|
|
|
149
154
|
export * from './PostCertificateTemplate';
|
|
150
155
|
export * from './PostCertificateTemplateClone';
|
|
151
156
|
export * from './PostCertificateTemplatePreview';
|
|
157
|
+
export * from './PostClearSessions';
|
|
158
|
+
export * from './PostClearSessionsResponse';
|
|
152
159
|
export * from './PostConversation';
|
|
153
160
|
export * from './PostConversationResponse';
|
|
154
161
|
export * from './PostCourse';
|
|
@@ -184,6 +191,7 @@ export * from './PostQuestion';
|
|
|
184
191
|
export * from './PostQuestionAnswerChoicesInner';
|
|
185
192
|
export * from './PostResetPassword';
|
|
186
193
|
export * from './PostResource';
|
|
194
|
+
export * from './PostResourceSessionActivityEvent';
|
|
187
195
|
export * from './PostResourceVersion';
|
|
188
196
|
export * from './PostResourceVersionComplete';
|
|
189
197
|
export * from './PostResourceVersionSession';
|
|
@@ -197,6 +205,7 @@ export * from './PostSignupRequest';
|
|
|
197
205
|
export * from './PostSignupRequestResponse';
|
|
198
206
|
export * from './PostSupportTicket';
|
|
199
207
|
export * from './PostSupportTicketComment';
|
|
208
|
+
export * from './PutAttemptAllowance';
|
|
200
209
|
export * from './PutBadgeIssuer';
|
|
201
210
|
export * from './PutCertificateConfig';
|
|
202
211
|
export * from './PutCertificateTemplate';
|
|
@@ -213,6 +222,7 @@ export * from './PutLibraryQuizCriteria';
|
|
|
213
222
|
export * from './PutLibraryQuizQuestions';
|
|
214
223
|
export * from './PutLibraryQuizSessionAnswer';
|
|
215
224
|
export * from './PutLibraryQuizSessionGrade';
|
|
225
|
+
export * from './PutLibraryQuizSessionOverride';
|
|
216
226
|
export * from './PutLibraryQuizVersion';
|
|
217
227
|
export * from './PutPortalBranding';
|
|
218
228
|
export * from './PutPortalSublicense';
|
|
@@ -220,6 +230,7 @@ export * from './PutPortalUserFieldValues';
|
|
|
220
230
|
export * from './PutQuestion';
|
|
221
231
|
export * from './PutQuestionAnswerChoicesInner';
|
|
222
232
|
export * from './PutResource';
|
|
233
|
+
export * from './PutResourceSessionOverride';
|
|
223
234
|
export * from './PutResourceVersion';
|
|
224
235
|
export * from './PutRole';
|
|
225
236
|
export * from './PutRolePermissions';
|