@easyedu/js-lsm-api 1.99.0 → 1.101.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 +18 -0
- package/README.md +16 -2
- package/dist/apis/ChangelogApi.d.ts +32 -0
- package/dist/apis/ChangelogApi.js +70 -0
- 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/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChangelogApi.d.ts +32 -0
- package/dist/esm/apis/ChangelogApi.js +66 -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/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +80 -0
- package/dist/esm/models/GetAttemptAllowance.js +75 -0
- package/dist/esm/models/GetChangelogEntry.d.ts +44 -0
- package/dist/esm/models/GetChangelogEntry.js +51 -0
- package/dist/esm/models/GetChangelogList.d.ts +33 -0
- package/dist/esm/models/GetChangelogList.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/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 +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/GetAttemptAllowance.d.ts +80 -0
- package/dist/models/GetAttemptAllowance.js +82 -0
- package/dist/models/GetChangelogEntry.d.ts +44 -0
- package/dist/models/GetChangelogEntry.js +58 -0
- package/dist/models/GetChangelogList.d.ts +33 -0
- package/dist/models/GetChangelogList.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/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 +8 -0
- package/dist/models/index.js +8 -0
- package/docs/ChangelogApi.md +68 -0
- package/docs/ContentLibraryQuizApi.md +71 -0
- package/docs/CourseApi.md +236 -0
- package/docs/GetAttemptAllowance.md +51 -0
- package/docs/GetChangelogEntry.md +39 -0
- package/docs/GetChangelogList.md +34 -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/ChangelogApi.ts +66 -0
- package/src/apis/ContentLibraryQuizApi.ts +65 -0
- package/src/apis/CourseApi.ts +270 -0
- package/src/apis/PlayerApi.ts +65 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetAttemptAllowance.ts +138 -0
- package/src/models/GetChangelogEntry.ts +84 -0
- package/src/models/GetChangelogList.ts +74 -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 +8 -0
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import type { GetChangelogEntry } from './GetChangelogEntry';
|
|
17
|
+
import {
|
|
18
|
+
GetChangelogEntryFromJSON,
|
|
19
|
+
GetChangelogEntryFromJSONTyped,
|
|
20
|
+
GetChangelogEntryToJSON,
|
|
21
|
+
GetChangelogEntryToJSONTyped,
|
|
22
|
+
} from './GetChangelogEntry';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetChangelogList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetChangelogList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GetChangelogEntry>}
|
|
33
|
+
* @memberof GetChangelogList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<GetChangelogEntry>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetChangelogList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetChangelogList(value: object): value is GetChangelogList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetChangelogListFromJSON(json: any): GetChangelogList {
|
|
47
|
+
return GetChangelogListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetChangelogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChangelogList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(GetChangelogEntryFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetChangelogListToJSON(json: any): GetChangelogList {
|
|
61
|
+
return GetChangelogListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetChangelogListToJSONTyped(value?: GetChangelogList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(GetChangelogEntryToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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,11 +31,14 @@ 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';
|
|
37
38
|
export * from './GetCertificateList';
|
|
38
39
|
export * from './GetCertificateTemplateList';
|
|
40
|
+
export * from './GetChangelogEntry';
|
|
41
|
+
export * from './GetChangelogList';
|
|
39
42
|
export * from './GetChatMessage';
|
|
40
43
|
export * from './GetContentLibraryVersion';
|
|
41
44
|
export * from './GetConversation';
|
|
@@ -155,6 +158,8 @@ export * from './PostCertificateLifecycleAction';
|
|
|
155
158
|
export * from './PostCertificateTemplate';
|
|
156
159
|
export * from './PostCertificateTemplateClone';
|
|
157
160
|
export * from './PostCertificateTemplatePreview';
|
|
161
|
+
export * from './PostClearSessions';
|
|
162
|
+
export * from './PostClearSessionsResponse';
|
|
158
163
|
export * from './PostConversation';
|
|
159
164
|
export * from './PostConversationResponse';
|
|
160
165
|
export * from './PostCourse';
|
|
@@ -204,6 +209,7 @@ export * from './PostSignupRequest';
|
|
|
204
209
|
export * from './PostSignupRequestResponse';
|
|
205
210
|
export * from './PostSupportTicket';
|
|
206
211
|
export * from './PostSupportTicketComment';
|
|
212
|
+
export * from './PutAttemptAllowance';
|
|
207
213
|
export * from './PutBadgeIssuer';
|
|
208
214
|
export * from './PutCertificateConfig';
|
|
209
215
|
export * from './PutCertificateTemplate';
|
|
@@ -220,6 +226,7 @@ export * from './PutLibraryQuizCriteria';
|
|
|
220
226
|
export * from './PutLibraryQuizQuestions';
|
|
221
227
|
export * from './PutLibraryQuizSessionAnswer';
|
|
222
228
|
export * from './PutLibraryQuizSessionGrade';
|
|
229
|
+
export * from './PutLibraryQuizSessionOverride';
|
|
223
230
|
export * from './PutLibraryQuizVersion';
|
|
224
231
|
export * from './PutPortalBranding';
|
|
225
232
|
export * from './PutPortalSublicense';
|
|
@@ -227,6 +234,7 @@ export * from './PutPortalUserFieldValues';
|
|
|
227
234
|
export * from './PutQuestion';
|
|
228
235
|
export * from './PutQuestionAnswerChoicesInner';
|
|
229
236
|
export * from './PutResource';
|
|
237
|
+
export * from './PutResourceSessionOverride';
|
|
230
238
|
export * from './PutResourceVersion';
|
|
231
239
|
export * from './PutRole';
|
|
232
240
|
export * from './PutRolePermissions';
|