@easyedu/js-lsm-api 1.99.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 +12 -0
- package/README.md +13 -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 +17 -0
- package/dist/apis/PlayerApi.js +45 -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 +17 -0
- package/dist/esm/apis/PlayerApi.js +45 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +80 -0
- package/dist/esm/models/GetAttemptAllowance.js +75 -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/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 +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/GetAttemptAllowance.d.ts +80 -0
- package/dist/models/GetAttemptAllowance.js +82 -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/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 +6 -0
- package/dist/models/index.js +6 -0
- package/docs/ContentLibraryQuizApi.md +71 -0
- package/docs/CourseApi.md +236 -0
- package/docs/GetAttemptAllowance.md +51 -0
- package/docs/PlayerApi.md +71 -0
- package/docs/PostClearSessions.md +34 -0
- package/docs/PostClearSessionsResponse.md +38 -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 +65 -0
- package/src/models/GetAttemptAllowance.ts +138 -0
- package/src/models/PostClearSessions.ts +66 -0
- package/src/models/PostClearSessionsResponse.ts +84 -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 +6 -0
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
* The effective attempt limit for one learner and course-version item.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetAttemptAllowance
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAttemptAllowance {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAttemptAllowance
|
|
22
|
+
*/
|
|
23
|
+
courseId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetAttemptAllowance
|
|
28
|
+
*/
|
|
29
|
+
courseVersionId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetAttemptAllowance
|
|
34
|
+
*/
|
|
35
|
+
itemId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetAttemptAllowance
|
|
40
|
+
*/
|
|
41
|
+
userId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetAttemptAllowance
|
|
46
|
+
*/
|
|
47
|
+
baseMaxAttempts: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetAttemptAllowance
|
|
52
|
+
*/
|
|
53
|
+
additionalAttempts: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetAttemptAllowance
|
|
58
|
+
*/
|
|
59
|
+
effectiveMaxAttempts: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetAttemptAllowance
|
|
64
|
+
*/
|
|
65
|
+
attemptsUsed: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetAttemptAllowance
|
|
70
|
+
*/
|
|
71
|
+
attemptsRemaining: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the GetAttemptAllowance interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfGetAttemptAllowance(value: object): value is GetAttemptAllowance;
|
|
77
|
+
export declare function GetAttemptAllowanceFromJSON(json: any): GetAttemptAllowance;
|
|
78
|
+
export declare function GetAttemptAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAttemptAllowance;
|
|
79
|
+
export declare function GetAttemptAllowanceToJSON(json: any): GetAttemptAllowance;
|
|
80
|
+
export declare function GetAttemptAllowanceToJSONTyped(value?: GetAttemptAllowance | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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.instanceOfGetAttemptAllowance = instanceOfGetAttemptAllowance;
|
|
17
|
+
exports.GetAttemptAllowanceFromJSON = GetAttemptAllowanceFromJSON;
|
|
18
|
+
exports.GetAttemptAllowanceFromJSONTyped = GetAttemptAllowanceFromJSONTyped;
|
|
19
|
+
exports.GetAttemptAllowanceToJSON = GetAttemptAllowanceToJSON;
|
|
20
|
+
exports.GetAttemptAllowanceToJSONTyped = GetAttemptAllowanceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetAttemptAllowance interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetAttemptAllowance(value) {
|
|
25
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('baseMaxAttempts' in value) || value['baseMaxAttempts'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('additionalAttempts' in value) || value['additionalAttempts'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('effectiveMaxAttempts' in value) || value['effectiveMaxAttempts'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('attemptsUsed' in value) || value['attemptsUsed'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('attemptsRemaining' in value) || value['attemptsRemaining'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function GetAttemptAllowanceFromJSON(json) {
|
|
46
|
+
return GetAttemptAllowanceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetAttemptAllowanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'courseId': json['course_id'],
|
|
54
|
+
'courseVersionId': json['course_version_id'],
|
|
55
|
+
'itemId': json['item_id'],
|
|
56
|
+
'userId': json['user_id'],
|
|
57
|
+
'baseMaxAttempts': json['base_max_attempts'],
|
|
58
|
+
'additionalAttempts': json['additional_attempts'],
|
|
59
|
+
'effectiveMaxAttempts': json['effective_max_attempts'],
|
|
60
|
+
'attemptsUsed': json['attempts_used'],
|
|
61
|
+
'attemptsRemaining': json['attempts_remaining'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function GetAttemptAllowanceToJSON(json) {
|
|
65
|
+
return GetAttemptAllowanceToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function GetAttemptAllowanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'course_id': value['courseId'],
|
|
73
|
+
'course_version_id': value['courseVersionId'],
|
|
74
|
+
'item_id': value['itemId'],
|
|
75
|
+
'user_id': value['userId'],
|
|
76
|
+
'base_max_attempts': value['baseMaxAttempts'],
|
|
77
|
+
'additional_attempts': value['additionalAttempts'],
|
|
78
|
+
'effective_max_attempts': value['effectiveMaxAttempts'],
|
|
79
|
+
'attempts_used': value['attemptsUsed'],
|
|
80
|
+
'attempts_remaining': value['attemptsRemaining'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,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;
|