@easyedu/js-lsm-api 1.139.0 → 1.141.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 +40 -0
- package/README.md +41 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/apis/DispatchApi.d.ts +71 -0
- package/dist/apis/DispatchApi.js +178 -0
- package/dist/apis/LRSApi.d.ts +152 -0
- package/dist/apis/LRSApi.js +369 -0
- package/dist/apis/PlayerApi.d.ts +71 -0
- package/dist/apis/PlayerApi.js +177 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/esm/apis/DispatchApi.d.ts +71 -0
- package/dist/esm/apis/DispatchApi.js +178 -0
- package/dist/esm/apis/LRSApi.d.ts +152 -0
- package/dist/esm/apis/LRSApi.js +365 -0
- package/dist/esm/apis/PlayerApi.d.ts +71 -0
- package/dist/esm/apis/PlayerApi.js +177 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Cmi5Launch.d.ts +52 -0
- package/dist/esm/models/Cmi5Launch.js +58 -0
- package/dist/esm/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLrsUserRecordsResponse.js +47 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/esm/models/GetAttemptAllowance.js +4 -0
- package/dist/esm/models/GetCourseExport.d.ts +2 -1
- package/dist/esm/models/GetCourseExport.js +2 -1
- package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/esm/models/GetLibraryQuizResult.js +20 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/esm/models/GetLibraryQuizSession.js +27 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
- package/dist/esm/models/GetLrsCredentials.d.ts +46 -0
- package/dist/esm/models/GetLrsCredentials.js +53 -0
- package/dist/esm/models/GetLrsStatementList.d.ts +57 -0
- package/dist/esm/models/GetLrsStatementList.js +60 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/esm/models/GetQuizSettings.d.ts +56 -0
- package/dist/esm/models/GetQuizSettings.js +57 -0
- package/dist/esm/models/GetResourceSessionActivity.d.ts +2 -1
- package/dist/esm/models/GetResourceSessionActivity.js +2 -1
- package/dist/esm/models/H5pState.d.ts +34 -0
- package/dist/esm/models/H5pState.js +43 -0
- package/dist/esm/models/H5pStatementResult.d.ts +44 -0
- package/dist/esm/models/H5pStatementResult.js +49 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +1 -1
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +1 -1
- package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/esm/models/LrsCredential.d.ts +74 -0
- package/dist/esm/models/LrsCredential.js +67 -0
- package/dist/esm/models/LrsScope.d.ts +38 -0
- package/dist/esm/models/LrsScope.js +47 -0
- package/dist/esm/models/LrsStatement.d.ts +112 -0
- package/dist/esm/models/LrsStatement.js +81 -0
- package/dist/esm/models/PostCourseExport.d.ts +2 -1
- package/dist/esm/models/PostCourseExport.js +2 -1
- package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PostDispatchCmi5Launch.d.ts +64 -0
- package/dist/esm/models/PostDispatchCmi5Launch.js +63 -0
- package/dist/esm/models/PostH5pStatement.d.ts +40 -0
- package/dist/esm/models/PostH5pStatement.js +47 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/esm/models/PostLibraryQuiz.js +7 -0
- package/dist/esm/models/PostLrsCredential.d.ts +38 -0
- package/dist/esm/models/PostLrsCredential.js +47 -0
- package/dist/esm/models/PostLrsCredentialResponse.d.ts +45 -0
- package/dist/esm/models/PostLrsCredentialResponse.js +52 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
- package/dist/esm/models/PutLrsCredential.d.ts +38 -0
- package/dist/esm/models/PutLrsCredential.js +43 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutQuizSettings.d.ts +44 -0
- package/dist/esm/models/PutQuizSettings.js +51 -0
- package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/esm/models/QuizFeedbackTiming.js +43 -0
- package/dist/esm/models/ResourceType.d.ts +2 -0
- package/dist/esm/models/ResourceType.js +3 -1
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/models/Cmi5Launch.d.ts +52 -0
- package/dist/models/Cmi5Launch.js +66 -0
- package/dist/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
- package/dist/models/DeleteLrsUserRecordsResponse.js +54 -0
- package/dist/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/models/GetAttemptAllowance.js +4 -0
- package/dist/models/GetCourseExport.d.ts +2 -1
- package/dist/models/GetCourseExport.js +2 -1
- package/dist/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/models/GetLibraryQuizResult.js +20 -0
- package/dist/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/models/GetLibraryQuizSession.js +27 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/models/GetLibraryQuizVersion.js +13 -0
- package/dist/models/GetLrsCredentials.d.ts +46 -0
- package/dist/models/GetLrsCredentials.js +60 -0
- package/dist/models/GetLrsStatementList.d.ts +57 -0
- package/dist/models/GetLrsStatementList.js +67 -0
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/models/GetQuizSettings.d.ts +56 -0
- package/dist/models/GetQuizSettings.js +64 -0
- package/dist/models/GetResourceSessionActivity.d.ts +2 -1
- package/dist/models/GetResourceSessionActivity.js +2 -1
- package/dist/models/H5pState.d.ts +34 -0
- package/dist/models/H5pState.js +50 -0
- package/dist/models/H5pStatementResult.d.ts +44 -0
- package/dist/models/H5pStatementResult.js +56 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +1 -1
- package/dist/models/HostedScormOutlineEntry.d.ts +1 -1
- package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/models/LrsCredential.d.ts +74 -0
- package/dist/models/LrsCredential.js +74 -0
- package/dist/models/LrsScope.d.ts +38 -0
- package/dist/models/LrsScope.js +54 -0
- package/dist/models/LrsStatement.d.ts +112 -0
- package/dist/models/LrsStatement.js +88 -0
- package/dist/models/PostCourseExport.d.ts +2 -1
- package/dist/models/PostCourseExport.js +2 -1
- package/dist/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/models/PostDispatchCmi5Launch.d.ts +64 -0
- package/dist/models/PostDispatchCmi5Launch.js +70 -0
- package/dist/models/PostH5pStatement.d.ts +40 -0
- package/dist/models/PostH5pStatement.js +54 -0
- package/dist/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/models/PostLibraryQuiz.js +7 -0
- package/dist/models/PostLrsCredential.d.ts +38 -0
- package/dist/models/PostLrsCredential.js +54 -0
- package/dist/models/PostLrsCredentialResponse.d.ts +45 -0
- package/dist/models/PostLrsCredentialResponse.js +59 -0
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/models/PutLibraryQuizVersion.js +7 -0
- package/dist/models/PutLrsCredential.d.ts +38 -0
- package/dist/models/PutLrsCredential.js +50 -0
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutQuizSettings.d.ts +44 -0
- package/dist/models/PutQuizSettings.js +58 -0
- package/dist/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/models/QuizFeedbackTiming.js +51 -0
- package/dist/models/ResourceType.d.ts +2 -0
- package/dist/models/ResourceType.js +3 -1
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/docs/Cmi5Launch.md +39 -0
- package/docs/ContentLibraryApi.md +2 -2
- package/docs/ContentLibraryQuizApi.md +343 -0
- package/docs/DeleteLrsUserRecordsResponse.md +37 -0
- package/docs/DispatchApi.md +287 -0
- package/docs/GetAttemptAllowance.md +2 -0
- package/docs/GetLibraryQuizResult.md +10 -0
- package/docs/GetLibraryQuizSession.md +14 -0
- package/docs/GetLibraryQuizVersion.md +6 -0
- package/docs/GetLrsCredentials.md +38 -0
- package/docs/GetLrsStatementList.md +42 -0
- package/docs/GetQuestionAnswerChoicesInner.md +2 -0
- package/docs/GetQuizSettings.md +43 -0
- package/docs/H5pState.md +35 -0
- package/docs/H5pStatementResult.md +39 -0
- package/docs/LRSApi.md +531 -0
- package/docs/LibraryQuizQuestionFeedback.md +47 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
- package/docs/LibraryQuizSessionQuestion.md +6 -0
- package/docs/LrsCredential.md +49 -0
- package/docs/LrsScope.md +37 -0
- package/docs/LrsStatement.md +61 -0
- package/docs/PlayerApi.md +286 -1
- package/docs/PostDispatchCmi5Launch.md +45 -0
- package/docs/PostH5pStatement.md +37 -0
- package/docs/PostLibraryQuiz.md +6 -0
- package/docs/PostLrsCredential.md +36 -0
- package/docs/PostLrsCredentialResponse.md +39 -0
- package/docs/PostQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
- package/docs/PutLibraryQuizVersion.md +6 -0
- package/docs/PutLrsCredential.md +36 -0
- package/docs/PutQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutQuizSettings.md +38 -0
- package/docs/QuizFeedbackTiming.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +287 -0
- package/src/apis/DispatchApi.ts +243 -0
- package/src/apis/LRSApi.ts +486 -0
- package/src/apis/PlayerApi.ts +250 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Cmi5Launch.ts +95 -0
- package/src/models/DeleteLrsUserRecordsResponse.ts +75 -0
- package/src/models/GetAttemptAllowance.ts +12 -3
- package/src/models/GetCourseExport.ts +3 -2
- package/src/models/GetCourseVersionItem.ts +1 -1
- package/src/models/GetLibraryQuizResult.ts +45 -0
- package/src/models/GetLibraryQuizSession.ts +69 -0
- package/src/models/GetLibraryQuizVersion.ts +34 -0
- package/src/models/GetLrsCredentials.ts +99 -0
- package/src/models/GetLrsStatementList.ts +110 -0
- package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
- package/src/models/GetQuizSettings.ts +101 -0
- package/src/models/GetResourceSessionActivity.ts +3 -2
- package/src/models/H5pState.ts +66 -0
- package/src/models/H5pStatementResult.ts +83 -0
- package/src/models/HostedScormAccessPolicy.ts +1 -1
- package/src/models/HostedScormOutlineEntry.ts +1 -1
- package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
- package/src/models/LibraryQuizSessionQuestion.ts +33 -0
- package/src/models/LrsCredential.ts +127 -0
- package/src/models/LrsScope.ts +75 -0
- package/src/models/LrsStatement.ts +176 -0
- package/src/models/PostCourseExport.ts +3 -2
- package/src/models/PostCourseVersionItem.ts +1 -1
- package/src/models/PostDispatchCmi5Launch.ts +111 -0
- package/src/models/PostH5pStatement.ts +75 -0
- package/src/models/PostLibraryQuiz.ts +33 -2
- package/src/models/PostLrsCredential.ts +75 -0
- package/src/models/PostLrsCredentialResponse.ts +92 -0
- package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutCourseVersionItem.ts +1 -1
- package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
- package/src/models/PutLibraryQuizVersion.ts +31 -0
- package/src/models/PutLrsCredential.ts +73 -0
- package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutQuizSettings.ts +84 -0
- package/src/models/QuizFeedbackTiming.ts +53 -0
- package/src/models/ResourceType.ts +3 -1
- package/src/models/index.ts +19 -0
|
@@ -0,0 +1,111 @@
|
|
|
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 cmi5 launch a client's LMS handed to the launcher page of a cmi5 course export, with the LRS credentials the launcher obtained from the client's fetch URL.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchCmi5Launch
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchCmi5Launch {
|
|
22
|
+
/**
|
|
23
|
+
* The exported package the launch is for.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostDispatchCmi5Launch
|
|
26
|
+
*/
|
|
27
|
+
dispatchId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The client LRS endpoint from the launch URL.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostDispatchCmi5Launch
|
|
32
|
+
*/
|
|
33
|
+
endpoint: string;
|
|
34
|
+
/**
|
|
35
|
+
* The auth-token returned by the client's fetch URL. It is used once, to confirm the launch with the client LRS when the export restricts which LRS may launch it, and is not stored.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostDispatchCmi5Launch
|
|
38
|
+
*/
|
|
39
|
+
authToken: string;
|
|
40
|
+
/**
|
|
41
|
+
* The learner, as the Agent from the launch URL.
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof PostDispatchCmi5Launch
|
|
44
|
+
*/
|
|
45
|
+
actor: { [key: string]: any; };
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PostDispatchCmi5Launch
|
|
50
|
+
*/
|
|
51
|
+
registration: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PostDispatchCmi5Launch
|
|
56
|
+
*/
|
|
57
|
+
activityId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PostDispatchCmi5Launch interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPostDispatchCmi5Launch(value: object): value is PostDispatchCmi5Launch {
|
|
64
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined) return false;
|
|
65
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
66
|
+
if (!('authToken' in value) || value['authToken'] === undefined) return false;
|
|
67
|
+
if (!('actor' in value) || value['actor'] === undefined) return false;
|
|
68
|
+
if (!('registration' in value) || value['registration'] === undefined) return false;
|
|
69
|
+
if (!('activityId' in value) || value['activityId'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PostDispatchCmi5LaunchFromJSON(json: any): PostDispatchCmi5Launch {
|
|
74
|
+
return PostDispatchCmi5LaunchFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostDispatchCmi5LaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchCmi5Launch {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'dispatchId': json['dispatch_id'],
|
|
84
|
+
'endpoint': json['endpoint'],
|
|
85
|
+
'authToken': json['auth_token'],
|
|
86
|
+
'actor': json['actor'],
|
|
87
|
+
'registration': json['registration'],
|
|
88
|
+
'activityId': json['activity_id'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PostDispatchCmi5LaunchToJSON(json: any): PostDispatchCmi5Launch {
|
|
93
|
+
return PostDispatchCmi5LaunchToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PostDispatchCmi5LaunchToJSONTyped(value?: PostDispatchCmi5Launch | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'dispatch_id': value['dispatchId'],
|
|
104
|
+
'endpoint': value['endpoint'],
|
|
105
|
+
'auth_token': value['authToken'],
|
|
106
|
+
'actor': value['actor'],
|
|
107
|
+
'registration': value['registration'],
|
|
108
|
+
'activity_id': value['activityId'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -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
|
+
* An xAPI statement emitted by H5P content in the learner's browser.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostH5pStatement
|
|
20
|
+
*/
|
|
21
|
+
export interface PostH5pStatement {
|
|
22
|
+
/**
|
|
23
|
+
* Client-generated id that makes a retried request idempotent. It becomes the statement id.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostH5pStatement
|
|
26
|
+
*/
|
|
27
|
+
eventId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The statement as H5P produced it. The server replaces the actor with the session's learner, the object id with the resource's activity id, and adds the session as the registration.
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof PostH5pStatement
|
|
32
|
+
*/
|
|
33
|
+
statement: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostH5pStatement interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostH5pStatement(value: object): value is PostH5pStatement {
|
|
40
|
+
if (!('eventId' in value) || value['eventId'] === undefined) return false;
|
|
41
|
+
if (!('statement' in value) || value['statement'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PostH5pStatementFromJSON(json: any): PostH5pStatement {
|
|
46
|
+
return PostH5pStatementFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'eventId': json['event_id'],
|
|
56
|
+
'statement': json['statement'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostH5pStatementToJSON(json: any): PostH5pStatement {
|
|
61
|
+
return PostH5pStatementToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'event_id': value['eventId'],
|
|
72
|
+
'statement': value['statement'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
QuestionSelectionMethodToJSON,
|
|
21
21
|
QuestionSelectionMethodToJSONTyped,
|
|
22
22
|
} from './QuestionSelectionMethod';
|
|
23
|
+
import type { QuizFeedbackTiming } from './QuizFeedbackTiming';
|
|
24
|
+
import {
|
|
25
|
+
QuizFeedbackTimingFromJSON,
|
|
26
|
+
QuizFeedbackTimingFromJSONTyped,
|
|
27
|
+
QuizFeedbackTimingToJSON,
|
|
28
|
+
QuizFeedbackTimingToJSONTyped,
|
|
29
|
+
} from './QuizFeedbackTiming';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -52,13 +59,13 @@ export interface PostLibraryQuiz {
|
|
|
52
59
|
*/
|
|
53
60
|
maxQuestions?: number | null;
|
|
54
61
|
/**
|
|
55
|
-
*
|
|
62
|
+
* Omit to use the portal's default passing score.
|
|
56
63
|
* @type {number}
|
|
57
64
|
* @memberof PostLibraryQuiz
|
|
58
65
|
*/
|
|
59
66
|
passingScore?: number;
|
|
60
67
|
/**
|
|
61
|
-
*
|
|
68
|
+
* Omit to use the portal's default time limit. Send null for no time limit.
|
|
62
69
|
* @type {number}
|
|
63
70
|
* @memberof PostLibraryQuiz
|
|
64
71
|
*/
|
|
@@ -99,6 +106,24 @@ export interface PostLibraryQuiz {
|
|
|
99
106
|
* @memberof PostLibraryQuiz
|
|
100
107
|
*/
|
|
101
108
|
requireAllQuestions?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Default number of attempts for this quiz. Zero means unlimited. Omit to use the portal's default. The value is copied to a course placement when the quiz is added to a course, where it can be overridden.
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof PostLibraryQuiz
|
|
113
|
+
*/
|
|
114
|
+
maxAttempts?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Show each question's explanation alongside the learner's feedback.
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof PostLibraryQuiz
|
|
119
|
+
*/
|
|
120
|
+
showExplanations?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {QuizFeedbackTiming}
|
|
124
|
+
* @memberof PostLibraryQuiz
|
|
125
|
+
*/
|
|
126
|
+
feedbackTiming?: QuizFeedbackTiming;
|
|
102
127
|
/**
|
|
103
128
|
*
|
|
104
129
|
* @type {{ [key: string]: any; }}
|
|
@@ -146,6 +171,9 @@ export function PostLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
146
171
|
'showCorrectAnswers': json['show_correct_answers'] == null ? undefined : json['show_correct_answers'],
|
|
147
172
|
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
148
173
|
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
174
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
175
|
+
'showExplanations': json['show_explanations'] == null ? undefined : json['show_explanations'],
|
|
176
|
+
'feedbackTiming': json['feedback_timing'] == null ? undefined : QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
149
177
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
150
178
|
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
151
179
|
};
|
|
@@ -174,6 +202,9 @@ export function PostLibraryQuizToJSONTyped(value?: PostLibraryQuiz | null, ignor
|
|
|
174
202
|
'show_correct_answers': value['showCorrectAnswers'],
|
|
175
203
|
'allow_review': value['allowReview'],
|
|
176
204
|
'require_all_questions': value['requireAllQuestions'],
|
|
205
|
+
'max_attempts': value['maxAttempts'],
|
|
206
|
+
'show_explanations': value['showExplanations'],
|
|
207
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
177
208
|
'settings': value['settings'],
|
|
178
209
|
'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
|
|
179
210
|
};
|
|
@@ -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 PostLrsCredential
|
|
20
|
+
*/
|
|
21
|
+
export interface PostLrsCredential {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostLrsCredential
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Set<string>}
|
|
31
|
+
* @memberof PostLrsCredential
|
|
32
|
+
*/
|
|
33
|
+
scopes: Set<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostLrsCredential interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostLrsCredential(value: object): value is PostLrsCredential {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PostLrsCredentialFromJSON(json: any): PostLrsCredential {
|
|
46
|
+
return PostLrsCredentialFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PostLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredential {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'scopes': new Set(json['scopes']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostLrsCredentialToJSON(json: any): PostLrsCredential {
|
|
61
|
+
return PostLrsCredentialToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostLrsCredentialToJSONTyped(value?: PostLrsCredential | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'scopes': Array.from(value['scopes'] as Set<any>),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { LrsCredential } from './LrsCredential';
|
|
17
|
+
import {
|
|
18
|
+
LrsCredentialFromJSON,
|
|
19
|
+
LrsCredentialFromJSONTyped,
|
|
20
|
+
LrsCredentialToJSON,
|
|
21
|
+
LrsCredentialToJSONTyped,
|
|
22
|
+
} from './LrsCredential';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A newly created LRS credential. The secret is returned only once.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PostLrsCredentialResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PostLrsCredentialResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {LrsCredential}
|
|
33
|
+
* @memberof PostLrsCredentialResponse
|
|
34
|
+
*/
|
|
35
|
+
credential: LrsCredential;
|
|
36
|
+
/**
|
|
37
|
+
* The HTTP Basic password. Shown once and stored only as a hash.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostLrsCredentialResponse
|
|
40
|
+
*/
|
|
41
|
+
secret: string;
|
|
42
|
+
/**
|
|
43
|
+
* The xAPI endpoint external systems should be configured with.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostLrsCredentialResponse
|
|
46
|
+
*/
|
|
47
|
+
endpoint: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostLrsCredentialResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfPostLrsCredentialResponse(value: object): value is PostLrsCredentialResponse {
|
|
54
|
+
if (!('credential' in value) || value['credential'] === undefined) return false;
|
|
55
|
+
if (!('secret' in value) || value['secret'] === undefined) return false;
|
|
56
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostLrsCredentialResponseFromJSON(json: any): PostLrsCredentialResponse {
|
|
61
|
+
return PostLrsCredentialResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostLrsCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredentialResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'credential': LrsCredentialFromJSON(json['credential']),
|
|
71
|
+
'secret': json['secret'],
|
|
72
|
+
'endpoint': json['endpoint'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PostLrsCredentialResponseToJSON(json: any): PostLrsCredentialResponse {
|
|
77
|
+
return PostLrsCredentialResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PostLrsCredentialResponseToJSONTyped(value?: PostLrsCredentialResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'credential': LrsCredentialToJSON(value['credential']),
|
|
88
|
+
'secret': value['secret'],
|
|
89
|
+
'endpoint': value['endpoint'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -39,6 +39,12 @@ export interface PostQuestionAnswerChoicesInner {
|
|
|
39
39
|
* @memberof PostQuestionAnswerChoicesInner
|
|
40
40
|
*/
|
|
41
41
|
isCorrect: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Keep this answer in its authored position when a quiz randomizes answers.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PostQuestionAnswerChoicesInner
|
|
46
|
+
*/
|
|
47
|
+
lockPosition?: boolean;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
/**
|
|
@@ -62,6 +68,7 @@ export function PostQuestionAnswerChoicesInnerFromJSONTyped(json: any, ignoreDis
|
|
|
62
68
|
|
|
63
69
|
'text': RichTextInputFromJSON(json['text']),
|
|
64
70
|
'isCorrect': json['is_correct'],
|
|
71
|
+
'lockPosition': json['lock_position'] == null ? undefined : json['lock_position'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -78,6 +85,7 @@ export function PostQuestionAnswerChoicesInnerToJSONTyped(value?: PostQuestionAn
|
|
|
78
85
|
|
|
79
86
|
'text': RichTextInputToJSON(value['text']),
|
|
80
87
|
'is_correct': value['isCorrect'],
|
|
88
|
+
'lock_position': value['lockPosition'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -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 PutLibraryQuizSessionQuestionFlag
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLibraryQuizSessionQuestionFlag {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PutLibraryQuizSessionQuestionFlag
|
|
26
|
+
*/
|
|
27
|
+
flagged: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutLibraryQuizSessionQuestionFlag interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutLibraryQuizSessionQuestionFlag(value: object): value is PutLibraryQuizSessionQuestionFlag {
|
|
34
|
+
if (!('flagged' in value) || value['flagged'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutLibraryQuizSessionQuestionFlagFromJSON(json: any): PutLibraryQuizSessionQuestionFlag {
|
|
39
|
+
return PutLibraryQuizSessionQuestionFlagFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutLibraryQuizSessionQuestionFlagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionQuestionFlag {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'flagged': json['flagged'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutLibraryQuizSessionQuestionFlagToJSON(json: any): PutLibraryQuizSessionQuestionFlag {
|
|
53
|
+
return PutLibraryQuizSessionQuestionFlagToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutLibraryQuizSessionQuestionFlagToJSONTyped(value?: PutLibraryQuizSessionQuestionFlag | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'flagged': value['flagged'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
QuestionSelectionMethodToJSON,
|
|
21
21
|
QuestionSelectionMethodToJSONTyped,
|
|
22
22
|
} from './QuestionSelectionMethod';
|
|
23
|
+
import type { QuizFeedbackTiming } from './QuizFeedbackTiming';
|
|
24
|
+
import {
|
|
25
|
+
QuizFeedbackTimingFromJSON,
|
|
26
|
+
QuizFeedbackTimingFromJSONTyped,
|
|
27
|
+
QuizFeedbackTimingToJSON,
|
|
28
|
+
QuizFeedbackTimingToJSONTyped,
|
|
29
|
+
} from './QuizFeedbackTiming';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -93,6 +100,24 @@ export interface PutLibraryQuizVersion {
|
|
|
93
100
|
* @memberof PutLibraryQuizVersion
|
|
94
101
|
*/
|
|
95
102
|
requireAllQuestions?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Default number of attempts for this quiz. Zero means unlimited. The value is copied to a course placement when the quiz is added to a course, where it can be overridden.
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof PutLibraryQuizVersion
|
|
107
|
+
*/
|
|
108
|
+
maxAttempts?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Show each question's explanation alongside the learner's feedback.
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof PutLibraryQuizVersion
|
|
113
|
+
*/
|
|
114
|
+
showExplanations?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {QuizFeedbackTiming}
|
|
118
|
+
* @memberof PutLibraryQuizVersion
|
|
119
|
+
*/
|
|
120
|
+
feedbackTiming?: QuizFeedbackTiming;
|
|
96
121
|
/**
|
|
97
122
|
*
|
|
98
123
|
* @type {{ [key: string]: any; }}
|
|
@@ -131,6 +156,9 @@ export function PutLibraryQuizVersionFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
131
156
|
'showCorrectAnswers': json['show_correct_answers'] == null ? undefined : json['show_correct_answers'],
|
|
132
157
|
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
133
158
|
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
159
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
160
|
+
'showExplanations': json['show_explanations'] == null ? undefined : json['show_explanations'],
|
|
161
|
+
'feedbackTiming': json['feedback_timing'] == null ? undefined : QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
134
162
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
135
163
|
};
|
|
136
164
|
}
|
|
@@ -157,6 +185,9 @@ export function PutLibraryQuizVersionToJSONTyped(value?: PutLibraryQuizVersion |
|
|
|
157
185
|
'show_correct_answers': value['showCorrectAnswers'],
|
|
158
186
|
'allow_review': value['allowReview'],
|
|
159
187
|
'require_all_questions': value['requireAllQuestions'],
|
|
188
|
+
'max_attempts': value['maxAttempts'],
|
|
189
|
+
'show_explanations': value['showExplanations'],
|
|
190
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
160
191
|
'settings': value['settings'],
|
|
161
192
|
};
|
|
162
193
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 PutLrsCredential
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLrsCredential {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutLrsCredential
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Set<string>}
|
|
31
|
+
* @memberof PutLrsCredential
|
|
32
|
+
*/
|
|
33
|
+
scopes?: Set<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutLrsCredential interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutLrsCredential(value: object): value is PutLrsCredential {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PutLrsCredentialFromJSON(json: any): PutLrsCredential {
|
|
44
|
+
return PutLrsCredentialFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLrsCredential {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'scopes': json['scopes'] == null ? undefined : new Set(json['scopes']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PutLrsCredentialToJSON(json: any): PutLrsCredential {
|
|
59
|
+
return PutLrsCredentialToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PutLrsCredentialToJSONTyped(value?: PutLrsCredential | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'scopes': value['scopes'] == null ? undefined : Array.from(value['scopes'] as Set<any>),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -45,6 +45,12 @@ export interface PutQuestionAnswerChoicesInner {
|
|
|
45
45
|
* @memberof PutQuestionAnswerChoicesInner
|
|
46
46
|
*/
|
|
47
47
|
isCorrect: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Keep this answer in its authored position when a quiz randomizes answers.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof PutQuestionAnswerChoicesInner
|
|
52
|
+
*/
|
|
53
|
+
lockPosition?: boolean;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
/**
|
|
@@ -69,6 +75,7 @@ export function PutQuestionAnswerChoicesInnerFromJSONTyped(json: any, ignoreDisc
|
|
|
69
75
|
'id': json['id'] == null ? undefined : json['id'],
|
|
70
76
|
'text': RichTextInputFromJSON(json['text']),
|
|
71
77
|
'isCorrect': json['is_correct'],
|
|
78
|
+
'lockPosition': json['lock_position'] == null ? undefined : json['lock_position'],
|
|
72
79
|
};
|
|
73
80
|
}
|
|
74
81
|
|
|
@@ -86,6 +93,7 @@ export function PutQuestionAnswerChoicesInnerToJSONTyped(value?: PutQuestionAnsw
|
|
|
86
93
|
'id': value['id'],
|
|
87
94
|
'text': RichTextInputToJSON(value['text']),
|
|
88
95
|
'is_correct': value['isCorrect'],
|
|
96
|
+
'lock_position': value['lockPosition'],
|
|
89
97
|
};
|
|
90
98
|
}
|
|
91
99
|
|