@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,138 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* The effective attempt limit for one learner and course-version item.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetAttemptAllowance
|
|
20
|
+
*/
|
|
21
|
+
export interface GetAttemptAllowance {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetAttemptAllowance
|
|
26
|
+
*/
|
|
27
|
+
courseId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetAttemptAllowance
|
|
32
|
+
*/
|
|
33
|
+
courseVersionId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetAttemptAllowance
|
|
38
|
+
*/
|
|
39
|
+
itemId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetAttemptAllowance
|
|
44
|
+
*/
|
|
45
|
+
userId: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetAttemptAllowance
|
|
50
|
+
*/
|
|
51
|
+
baseMaxAttempts: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetAttemptAllowance
|
|
56
|
+
*/
|
|
57
|
+
additionalAttempts: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetAttemptAllowance
|
|
62
|
+
*/
|
|
63
|
+
effectiveMaxAttempts: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetAttemptAllowance
|
|
68
|
+
*/
|
|
69
|
+
attemptsUsed: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof GetAttemptAllowance
|
|
74
|
+
*/
|
|
75
|
+
attemptsRemaining: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the GetAttemptAllowance interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfGetAttemptAllowance(value: object): value is GetAttemptAllowance {
|
|
82
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
83
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
84
|
+
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
85
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
86
|
+
if (!('baseMaxAttempts' in value) || value['baseMaxAttempts'] === undefined) return false;
|
|
87
|
+
if (!('additionalAttempts' in value) || value['additionalAttempts'] === undefined) return false;
|
|
88
|
+
if (!('effectiveMaxAttempts' in value) || value['effectiveMaxAttempts'] === undefined) return false;
|
|
89
|
+
if (!('attemptsUsed' in value) || value['attemptsUsed'] === undefined) return false;
|
|
90
|
+
if (!('attemptsRemaining' in value) || value['attemptsRemaining'] === undefined) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetAttemptAllowanceFromJSON(json: any): GetAttemptAllowance {
|
|
95
|
+
return GetAttemptAllowanceFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function GetAttemptAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAttemptAllowance {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'courseId': json['course_id'],
|
|
105
|
+
'courseVersionId': json['course_version_id'],
|
|
106
|
+
'itemId': json['item_id'],
|
|
107
|
+
'userId': json['user_id'],
|
|
108
|
+
'baseMaxAttempts': json['base_max_attempts'],
|
|
109
|
+
'additionalAttempts': json['additional_attempts'],
|
|
110
|
+
'effectiveMaxAttempts': json['effective_max_attempts'],
|
|
111
|
+
'attemptsUsed': json['attempts_used'],
|
|
112
|
+
'attemptsRemaining': json['attempts_remaining'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function GetAttemptAllowanceToJSON(json: any): GetAttemptAllowance {
|
|
117
|
+
return GetAttemptAllowanceToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function GetAttemptAllowanceToJSONTyped(value?: GetAttemptAllowance | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'course_id': value['courseId'],
|
|
128
|
+
'course_version_id': value['courseVersionId'],
|
|
129
|
+
'item_id': value['itemId'],
|
|
130
|
+
'user_id': value['userId'],
|
|
131
|
+
'base_max_attempts': value['baseMaxAttempts'],
|
|
132
|
+
'additional_attempts': value['additionalAttempts'],
|
|
133
|
+
'effective_max_attempts': value['effectiveMaxAttempts'],
|
|
134
|
+
'attempts_used': value['attemptsUsed'],
|
|
135
|
+
'attempts_remaining': value['attemptsRemaining'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostClearSessions
|
|
20
|
+
*/
|
|
21
|
+
export interface PostClearSessions {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostClearSessions
|
|
26
|
+
*/
|
|
27
|
+
reason: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostClearSessions interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostClearSessions(value: object): value is PostClearSessions {
|
|
34
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostClearSessionsFromJSON(json: any): PostClearSessions {
|
|
39
|
+
return PostClearSessionsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostClearSessionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostClearSessions {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'reason': json['reason'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostClearSessionsToJSON(json: any): PostClearSessions {
|
|
53
|
+
return PostClearSessionsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostClearSessionsToJSONTyped(value?: PostClearSessions | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'reason': value['reason'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostClearSessionsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PostClearSessionsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PostClearSessionsResponse
|
|
26
|
+
*/
|
|
27
|
+
resourceSessionsDeleted: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostClearSessionsResponse
|
|
32
|
+
*/
|
|
33
|
+
quizSessionsDeleted: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostClearSessionsResponse
|
|
38
|
+
*/
|
|
39
|
+
totalSessionsDeleted: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PostClearSessionsResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPostClearSessionsResponse(value: object): value is PostClearSessionsResponse {
|
|
46
|
+
if (!('resourceSessionsDeleted' in value) || value['resourceSessionsDeleted'] === undefined) return false;
|
|
47
|
+
if (!('quizSessionsDeleted' in value) || value['quizSessionsDeleted'] === undefined) return false;
|
|
48
|
+
if (!('totalSessionsDeleted' in value) || value['totalSessionsDeleted'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostClearSessionsResponseFromJSON(json: any): PostClearSessionsResponse {
|
|
53
|
+
return PostClearSessionsResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostClearSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostClearSessionsResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'resourceSessionsDeleted': json['resource_sessions_deleted'],
|
|
63
|
+
'quizSessionsDeleted': json['quiz_sessions_deleted'],
|
|
64
|
+
'totalSessionsDeleted': json['total_sessions_deleted'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostClearSessionsResponseToJSON(json: any): PostClearSessionsResponse {
|
|
69
|
+
return PostClearSessionsResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PostClearSessionsResponseToJSONTyped(value?: PostClearSessionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'resource_sessions_deleted': value['resourceSessionsDeleted'],
|
|
80
|
+
'quiz_sessions_deleted': value['quizSessionsDeleted'],
|
|
81
|
+
'total_sessions_deleted': value['totalSessionsDeleted'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutAttemptAllowance
|
|
20
|
+
*/
|
|
21
|
+
export interface PutAttemptAllowance {
|
|
22
|
+
/**
|
|
23
|
+
* Attempts added to this course item's configured limit for this learner.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PutAttemptAllowance
|
|
26
|
+
*/
|
|
27
|
+
additionalAttempts: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutAttemptAllowance
|
|
32
|
+
*/
|
|
33
|
+
reason: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutAttemptAllowance interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutAttemptAllowance(value: object): value is PutAttemptAllowance {
|
|
40
|
+
if (!('additionalAttempts' in value) || value['additionalAttempts'] === undefined) return false;
|
|
41
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PutAttemptAllowanceFromJSON(json: any): PutAttemptAllowance {
|
|
46
|
+
return PutAttemptAllowanceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PutAttemptAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutAttemptAllowance {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'additionalAttempts': json['additional_attempts'],
|
|
56
|
+
'reason': json['reason'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PutAttemptAllowanceToJSON(json: any): PutAttemptAllowance {
|
|
61
|
+
return PutAttemptAllowanceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PutAttemptAllowanceToJSONTyped(value?: PutAttemptAllowance | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'additional_attempts': value['additionalAttempts'],
|
|
72
|
+
'reason': value['reason'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Instructor-entered progress values for an existing live quiz session.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutLibraryQuizSessionOverride
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLibraryQuizSessionOverride {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {PutLibraryQuizSessionOverrideStatusEnum}
|
|
25
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
26
|
+
*/
|
|
27
|
+
status?: PutLibraryQuizSessionOverrideStatusEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
32
|
+
*/
|
|
33
|
+
scorePercentage?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
38
|
+
*/
|
|
39
|
+
passed?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PutLibraryQuizSessionOverride
|
|
44
|
+
*/
|
|
45
|
+
reason: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const PutLibraryQuizSessionOverrideStatusEnum = {
|
|
53
|
+
Completed: 'completed'
|
|
54
|
+
} as const;
|
|
55
|
+
export type PutLibraryQuizSessionOverrideStatusEnum = typeof PutLibraryQuizSessionOverrideStatusEnum[keyof typeof PutLibraryQuizSessionOverrideStatusEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the PutLibraryQuizSessionOverride interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfPutLibraryQuizSessionOverride(value: object): value is PutLibraryQuizSessionOverride {
|
|
62
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PutLibraryQuizSessionOverrideFromJSON(json: any): PutLibraryQuizSessionOverride {
|
|
67
|
+
return PutLibraryQuizSessionOverrideFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PutLibraryQuizSessionOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionOverride {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
77
|
+
'scorePercentage': json['score_percentage'] == null ? undefined : json['score_percentage'],
|
|
78
|
+
'passed': json['passed'] == null ? undefined : json['passed'],
|
|
79
|
+
'reason': json['reason'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PutLibraryQuizSessionOverrideToJSON(json: any): PutLibraryQuizSessionOverride {
|
|
84
|
+
return PutLibraryQuizSessionOverrideToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PutLibraryQuizSessionOverrideToJSONTyped(value?: PutLibraryQuizSessionOverride | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'status': value['status'],
|
|
95
|
+
'score_percentage': value['scorePercentage'],
|
|
96
|
+
'passed': value['passed'],
|
|
97
|
+
'reason': value['reason'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Instructor-entered progress values for an existing live resource session.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutResourceSessionOverride
|
|
20
|
+
*/
|
|
21
|
+
export interface PutResourceSessionOverride {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {PutResourceSessionOverrideCompletionStatusEnum}
|
|
25
|
+
* @memberof PutResourceSessionOverride
|
|
26
|
+
*/
|
|
27
|
+
completionStatus?: PutResourceSessionOverrideCompletionStatusEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {PutResourceSessionOverrideGradeStatusEnum}
|
|
31
|
+
* @memberof PutResourceSessionOverride
|
|
32
|
+
*/
|
|
33
|
+
gradeStatus?: PutResourceSessionOverrideGradeStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PutResourceSessionOverride
|
|
38
|
+
*/
|
|
39
|
+
scoreRaw?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PutResourceSessionOverride
|
|
44
|
+
*/
|
|
45
|
+
reason: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const PutResourceSessionOverrideCompletionStatusEnum = {
|
|
53
|
+
Completed: 'completed'
|
|
54
|
+
} as const;
|
|
55
|
+
export type PutResourceSessionOverrideCompletionStatusEnum = typeof PutResourceSessionOverrideCompletionStatusEnum[keyof typeof PutResourceSessionOverrideCompletionStatusEnum];
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const PutResourceSessionOverrideGradeStatusEnum = {
|
|
61
|
+
Ungraded: 'ungraded',
|
|
62
|
+
Passed: 'passed',
|
|
63
|
+
Failed: 'failed',
|
|
64
|
+
PointsEarned: 'points_earned',
|
|
65
|
+
PercentageEarned: 'percentage_earned',
|
|
66
|
+
NotApplicable: 'not_applicable'
|
|
67
|
+
} as const;
|
|
68
|
+
export type PutResourceSessionOverrideGradeStatusEnum = typeof PutResourceSessionOverrideGradeStatusEnum[keyof typeof PutResourceSessionOverrideGradeStatusEnum];
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the PutResourceSessionOverride interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfPutResourceSessionOverride(value: object): value is PutResourceSessionOverride {
|
|
75
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PutResourceSessionOverrideFromJSON(json: any): PutResourceSessionOverride {
|
|
80
|
+
return PutResourceSessionOverrideFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PutResourceSessionOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResourceSessionOverride {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'completionStatus': json['completion_status'] == null ? undefined : json['completion_status'],
|
|
90
|
+
'gradeStatus': json['grade_status'] == null ? undefined : json['grade_status'],
|
|
91
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
92
|
+
'reason': json['reason'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PutResourceSessionOverrideToJSON(json: any): PutResourceSessionOverride {
|
|
97
|
+
return PutResourceSessionOverrideToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PutResourceSessionOverrideToJSONTyped(value?: PutResourceSessionOverride | null, ignoreDiscriminator: boolean = false): any {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'completion_status': value['completionStatus'],
|
|
108
|
+
'grade_status': value['gradeStatus'],
|
|
109
|
+
'score_raw': value['scoreRaw'],
|
|
110
|
+
'reason': value['reason'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './EmailTemplateDefinition';
|
|
|
31
31
|
export * from './EmailTemplateScope';
|
|
32
32
|
export * from './EmailTemplateVariable';
|
|
33
33
|
export * from './EmailTemplateVersion';
|
|
34
|
+
export * from './GetAttemptAllowance';
|
|
34
35
|
export * from './GetCertificateAssetUpload';
|
|
35
36
|
export * from './GetCertificateConfigList';
|
|
36
37
|
export * from './GetCertificateEventList';
|
|
@@ -155,6 +156,8 @@ export * from './PostCertificateLifecycleAction';
|
|
|
155
156
|
export * from './PostCertificateTemplate';
|
|
156
157
|
export * from './PostCertificateTemplateClone';
|
|
157
158
|
export * from './PostCertificateTemplatePreview';
|
|
159
|
+
export * from './PostClearSessions';
|
|
160
|
+
export * from './PostClearSessionsResponse';
|
|
158
161
|
export * from './PostConversation';
|
|
159
162
|
export * from './PostConversationResponse';
|
|
160
163
|
export * from './PostCourse';
|
|
@@ -204,6 +207,7 @@ export * from './PostSignupRequest';
|
|
|
204
207
|
export * from './PostSignupRequestResponse';
|
|
205
208
|
export * from './PostSupportTicket';
|
|
206
209
|
export * from './PostSupportTicketComment';
|
|
210
|
+
export * from './PutAttemptAllowance';
|
|
207
211
|
export * from './PutBadgeIssuer';
|
|
208
212
|
export * from './PutCertificateConfig';
|
|
209
213
|
export * from './PutCertificateTemplate';
|
|
@@ -220,6 +224,7 @@ export * from './PutLibraryQuizCriteria';
|
|
|
220
224
|
export * from './PutLibraryQuizQuestions';
|
|
221
225
|
export * from './PutLibraryQuizSessionAnswer';
|
|
222
226
|
export * from './PutLibraryQuizSessionGrade';
|
|
227
|
+
export * from './PutLibraryQuizSessionOverride';
|
|
223
228
|
export * from './PutLibraryQuizVersion';
|
|
224
229
|
export * from './PutPortalBranding';
|
|
225
230
|
export * from './PutPortalSublicense';
|
|
@@ -227,6 +232,7 @@ export * from './PutPortalUserFieldValues';
|
|
|
227
232
|
export * from './PutQuestion';
|
|
228
233
|
export * from './PutQuestionAnswerChoicesInner';
|
|
229
234
|
export * from './PutResource';
|
|
235
|
+
export * from './PutResourceSessionOverride';
|
|
230
236
|
export * from './PutResourceVersion';
|
|
231
237
|
export * from './PutRole';
|
|
232
238
|
export * from './PutRolePermissions';
|