@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
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ResourceSessionEnvironmentFromJSON, ResourceSessionEnvironmentToJSON, } from './ResourceSessionEnvironment';
|
|
15
15
|
import { LibraryQuizSessionQuestionFromJSON, LibraryQuizSessionQuestionToJSON, } from './LibraryQuizSessionQuestion';
|
|
16
|
+
import { QuizFeedbackTimingFromJSON, QuizFeedbackTimingToJSON, } from './QuizFeedbackTiming';
|
|
16
17
|
/**
|
|
17
18
|
* @export
|
|
18
19
|
*/
|
|
@@ -41,6 +42,18 @@ export function instanceOfGetLibraryQuizSession(value) {
|
|
|
41
42
|
return false;
|
|
42
43
|
if (!('quizName' in value) || value['quizName'] === undefined)
|
|
43
44
|
return false;
|
|
45
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('hasStarted' in value) || value['hasStarted'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('passingScore' in value) || value['passingScore'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('feedbackTiming' in value) || value['feedbackTiming'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('requireAllQuestions' in value) || value['requireAllQuestions'] === undefined)
|
|
56
|
+
return false;
|
|
44
57
|
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
45
58
|
return false;
|
|
46
59
|
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
@@ -81,6 +94,13 @@ export function GetLibraryQuizSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
94
|
'quizVersionId': json['quiz_version_id'],
|
|
82
95
|
'quizVersionNumber': json['quiz_version_number'],
|
|
83
96
|
'quizName': json['quiz_name'],
|
|
97
|
+
'description': json['description'],
|
|
98
|
+
'hasStarted': json['has_started'],
|
|
99
|
+
'passingScore': json['passing_score'],
|
|
100
|
+
'timeLimitMinutes': json['time_limit_minutes'] == null ? undefined : json['time_limit_minutes'],
|
|
101
|
+
'maxAttempts': json['max_attempts'],
|
|
102
|
+
'feedbackTiming': QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
103
|
+
'requireAllQuestions': json['require_all_questions'],
|
|
84
104
|
'attemptNumber': json['attempt_number'],
|
|
85
105
|
'isCurrent': json['is_current'],
|
|
86
106
|
'status': json['status'],
|
|
@@ -115,6 +135,13 @@ export function GetLibraryQuizSessionToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
115
135
|
'quiz_version_id': value['quizVersionId'],
|
|
116
136
|
'quiz_version_number': value['quizVersionNumber'],
|
|
117
137
|
'quiz_name': value['quizName'],
|
|
138
|
+
'description': value['description'],
|
|
139
|
+
'has_started': value['hasStarted'],
|
|
140
|
+
'passing_score': value['passingScore'],
|
|
141
|
+
'time_limit_minutes': value['timeLimitMinutes'],
|
|
142
|
+
'max_attempts': value['maxAttempts'],
|
|
143
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
144
|
+
'require_all_questions': value['requireAllQuestions'],
|
|
118
145
|
'attempt_number': value['attemptNumber'],
|
|
119
146
|
'is_current': value['isCurrent'],
|
|
120
147
|
'status': value['status'],
|
|
@@ -13,6 +13,7 @@ import type { LibraryQuizCriterion } from './LibraryQuizCriterion';
|
|
|
13
13
|
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
14
14
|
import type { QuestionSelectionMethod } from './QuestionSelectionMethod';
|
|
15
15
|
import type { LibraryQuizQuestion } from './LibraryQuizQuestion';
|
|
16
|
+
import type { QuizFeedbackTiming } from './QuizFeedbackTiming';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -103,6 +104,24 @@ export interface GetLibraryQuizVersion {
|
|
|
103
104
|
* @memberof GetLibraryQuizVersion
|
|
104
105
|
*/
|
|
105
106
|
requireAllQuestions: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* 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.
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof GetLibraryQuizVersion
|
|
111
|
+
*/
|
|
112
|
+
maxAttempts: number;
|
|
113
|
+
/**
|
|
114
|
+
* Show each question's explanation alongside the learner's feedback.
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof GetLibraryQuizVersion
|
|
117
|
+
*/
|
|
118
|
+
showExplanations: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {QuizFeedbackTiming}
|
|
122
|
+
* @memberof GetLibraryQuizVersion
|
|
123
|
+
*/
|
|
124
|
+
feedbackTiming: QuizFeedbackTiming;
|
|
106
125
|
/**
|
|
107
126
|
*
|
|
108
127
|
* @type {{ [key: string]: any; }}
|
|
@@ -15,6 +15,7 @@ import { LibraryQuizCriterionFromJSON, LibraryQuizCriterionToJSON, } from './Lib
|
|
|
15
15
|
import { ContentLibraryVersionStatusFromJSON, ContentLibraryVersionStatusToJSON, } from './ContentLibraryVersionStatus';
|
|
16
16
|
import { QuestionSelectionMethodFromJSON, QuestionSelectionMethodToJSON, } from './QuestionSelectionMethod';
|
|
17
17
|
import { LibraryQuizQuestionFromJSON, LibraryQuizQuestionToJSON, } from './LibraryQuizQuestion';
|
|
18
|
+
import { QuizFeedbackTimingFromJSON, QuizFeedbackTimingToJSON, } from './QuizFeedbackTiming';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the GetLibraryQuizVersion interface.
|
|
20
21
|
*/
|
|
@@ -41,6 +42,12 @@ export function instanceOfGetLibraryQuizVersion(value) {
|
|
|
41
42
|
return false;
|
|
42
43
|
if (!('requireAllQuestions' in value) || value['requireAllQuestions'] === undefined)
|
|
43
44
|
return false;
|
|
45
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('showExplanations' in value) || value['showExplanations'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('feedbackTiming' in value) || value['feedbackTiming'] === undefined)
|
|
50
|
+
return false;
|
|
44
51
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
45
52
|
return false;
|
|
46
53
|
if (!('questions' in value) || value['questions'] === undefined)
|
|
@@ -79,6 +86,9 @@ export function GetLibraryQuizVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
86
|
'showCorrectAnswers': json['show_correct_answers'],
|
|
80
87
|
'allowReview': json['allow_review'],
|
|
81
88
|
'requireAllQuestions': json['require_all_questions'],
|
|
89
|
+
'maxAttempts': json['max_attempts'],
|
|
90
|
+
'showExplanations': json['show_explanations'],
|
|
91
|
+
'feedbackTiming': QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
82
92
|
'settings': json['settings'],
|
|
83
93
|
'questions': (json['questions'].map(LibraryQuizQuestionFromJSON)),
|
|
84
94
|
'criteria': (json['criteria'].map(LibraryQuizCriterionFromJSON)),
|
|
@@ -112,6 +122,9 @@ export function GetLibraryQuizVersionToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
112
122
|
'show_correct_answers': value['showCorrectAnswers'],
|
|
113
123
|
'allow_review': value['allowReview'],
|
|
114
124
|
'require_all_questions': value['requireAllQuestions'],
|
|
125
|
+
'max_attempts': value['maxAttempts'],
|
|
126
|
+
'show_explanations': value['showExplanations'],
|
|
127
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
115
128
|
'settings': value['settings'],
|
|
116
129
|
'questions': (value['questions'].map(LibraryQuizQuestionToJSON)),
|
|
117
130
|
'criteria': (value['criteria'].map(LibraryQuizCriterionToJSON)),
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LrsCredential } from './LrsCredential';
|
|
13
|
+
import type { LrsScope } from './LrsScope';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetLrsCredentials
|
|
18
|
+
*/
|
|
19
|
+
export interface GetLrsCredentials {
|
|
20
|
+
/**
|
|
21
|
+
* The xAPI endpoint external systems should be configured with.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetLrsCredentials
|
|
24
|
+
*/
|
|
25
|
+
endpoint: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<LrsScope>}
|
|
29
|
+
* @memberof GetLrsCredentials
|
|
30
|
+
*/
|
|
31
|
+
availableScopes: Array<LrsScope>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<LrsCredential>}
|
|
35
|
+
* @memberof GetLrsCredentials
|
|
36
|
+
*/
|
|
37
|
+
credentials: Array<LrsCredential>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GetLrsCredentials interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfGetLrsCredentials(value: object): value is GetLrsCredentials;
|
|
43
|
+
export declare function GetLrsCredentialsFromJSON(json: any): GetLrsCredentials;
|
|
44
|
+
export declare function GetLrsCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLrsCredentials;
|
|
45
|
+
export declare function GetLrsCredentialsToJSON(json: any): GetLrsCredentials;
|
|
46
|
+
export declare function GetLrsCredentialsToJSONTyped(value?: GetLrsCredentials | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import { LrsCredentialFromJSON, LrsCredentialToJSON, } from './LrsCredential';
|
|
15
|
+
import { LrsScopeFromJSON, LrsScopeToJSON, } from './LrsScope';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetLrsCredentials interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetLrsCredentials(value) {
|
|
20
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('availableScopes' in value) || value['availableScopes'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function GetLrsCredentialsFromJSON(json) {
|
|
29
|
+
return GetLrsCredentialsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function GetLrsCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'endpoint': json['endpoint'],
|
|
37
|
+
'availableScopes': (json['available_scopes'].map(LrsScopeFromJSON)),
|
|
38
|
+
'credentials': (json['credentials'].map(LrsCredentialFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function GetLrsCredentialsToJSON(json) {
|
|
42
|
+
return GetLrsCredentialsToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function GetLrsCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'endpoint': value['endpoint'],
|
|
50
|
+
'available_scopes': (value['availableScopes'].map(LrsScopeToJSON)),
|
|
51
|
+
'credentials': (value['credentials'].map(LrsCredentialToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LrsStatement } from './LrsStatement';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetLrsStatementList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetLrsStatementList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetLrsStatementList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetLrsStatementList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetLrsStatementList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetLrsStatementList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<LrsStatement>}
|
|
46
|
+
* @memberof GetLrsStatementList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<LrsStatement>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetLrsStatementList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetLrsStatementList(value: object): value is GetLrsStatementList;
|
|
54
|
+
export declare function GetLrsStatementListFromJSON(json: any): GetLrsStatementList;
|
|
55
|
+
export declare function GetLrsStatementListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLrsStatementList;
|
|
56
|
+
export declare function GetLrsStatementListToJSON(json: any): GetLrsStatementList;
|
|
57
|
+
export declare function GetLrsStatementListToJSONTyped(value?: GetLrsStatementList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { LrsStatementFromJSON, LrsStatementToJSON, } from './LrsStatement';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetLrsStatementList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetLrsStatementList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetLrsStatementListFromJSON(json) {
|
|
32
|
+
return GetLrsStatementListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetLrsStatementListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(LrsStatementFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetLrsStatementListToJSON(json) {
|
|
47
|
+
return GetLrsStatementListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetLrsStatementListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(LrsStatementToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -34,6 +34,12 @@ export interface GetQuestionAnswerChoicesInner {
|
|
|
34
34
|
* @memberof GetQuestionAnswerChoicesInner
|
|
35
35
|
*/
|
|
36
36
|
isCorrect: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Keep this answer in its authored position when a quiz randomizes answers.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof GetQuestionAnswerChoicesInner
|
|
41
|
+
*/
|
|
42
|
+
lockPosition: boolean;
|
|
37
43
|
}
|
|
38
44
|
/**
|
|
39
45
|
* Check if a given object implements the GetQuestionAnswerChoicesInner interface.
|
|
@@ -22,6 +22,8 @@ export function instanceOfGetQuestionAnswerChoicesInner(value) {
|
|
|
22
22
|
return false;
|
|
23
23
|
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
24
24
|
return false;
|
|
25
|
+
if (!('lockPosition' in value) || value['lockPosition'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
export function GetQuestionAnswerChoicesInnerFromJSON(json) {
|
|
@@ -35,6 +37,7 @@ export function GetQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
35
37
|
'id': json['id'],
|
|
36
38
|
'text': RichTextDocumentFromJSON(json['text']),
|
|
37
39
|
'isCorrect': json['is_correct'],
|
|
40
|
+
'lockPosition': json['lock_position'],
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
export function GetQuestionAnswerChoicesInnerToJSON(json) {
|
|
@@ -48,5 +51,6 @@ export function GetQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
48
51
|
'id': value['id'],
|
|
49
52
|
'text': RichTextDocumentToJSON(value['text']),
|
|
50
53
|
'is_correct': value['isCorrect'],
|
|
54
|
+
'lock_position': value['lockPosition'],
|
|
51
55
|
};
|
|
52
56
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The selected portal's defaults for new quizzes. The values are copied into a quiz when it is created; changing them later does not change existing quizzes.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetQuizSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface GetQuizSettings {
|
|
18
|
+
/**
|
|
19
|
+
* Attempt limit copied into each new quiz. Zero means unlimited.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetQuizSettings
|
|
22
|
+
*/
|
|
23
|
+
defaultMaxAttempts: number;
|
|
24
|
+
/**
|
|
25
|
+
* Time limit copied into each new quiz. Null means no time limit.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetQuizSettings
|
|
28
|
+
*/
|
|
29
|
+
defaultTimeLimitMinutes: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Passing score copied into each new quiz.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetQuizSettings
|
|
34
|
+
*/
|
|
35
|
+
defaultPassingScore: number;
|
|
36
|
+
/**
|
|
37
|
+
* False while the portal still uses the built-in defaults.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof GetQuizSettings
|
|
40
|
+
*/
|
|
41
|
+
isCustomized: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetQuizSettings
|
|
46
|
+
*/
|
|
47
|
+
updatedAt?: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetQuizSettings interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGetQuizSettings(value: object): value is GetQuizSettings;
|
|
53
|
+
export declare function GetQuizSettingsFromJSON(json: any): GetQuizSettings;
|
|
54
|
+
export declare function GetQuizSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizSettings;
|
|
55
|
+
export declare function GetQuizSettingsToJSON(json: any): GetQuizSettings;
|
|
56
|
+
export declare function GetQuizSettingsToJSONTyped(value?: GetQuizSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* Check if a given object implements the GetQuizSettings interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetQuizSettings(value) {
|
|
18
|
+
if (!('defaultMaxAttempts' in value) || value['defaultMaxAttempts'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('defaultTimeLimitMinutes' in value) || value['defaultTimeLimitMinutes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('defaultPassingScore' in value) || value['defaultPassingScore'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('isCustomized' in value) || value['isCustomized'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function GetQuizSettingsFromJSON(json) {
|
|
29
|
+
return GetQuizSettingsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function GetQuizSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'defaultMaxAttempts': json['default_max_attempts'],
|
|
37
|
+
'defaultTimeLimitMinutes': json['default_time_limit_minutes'],
|
|
38
|
+
'defaultPassingScore': json['default_passing_score'],
|
|
39
|
+
'isCustomized': json['is_customized'],
|
|
40
|
+
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function GetQuizSettingsToJSON(json) {
|
|
44
|
+
return GetQuizSettingsToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function GetQuizSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'default_max_attempts': value['defaultMaxAttempts'],
|
|
52
|
+
'default_time_limit_minutes': value['defaultTimeLimitMinutes'],
|
|
53
|
+
'default_passing_score': value['defaultPassingScore'],
|
|
54
|
+
'is_customized': value['isCustomized'],
|
|
55
|
+
'updated_at': value['updatedAt'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -22,7 +22,7 @@ export interface GetResourceSessionActivity {
|
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
* Stable source identifier, such as a SCORM activity identifier or resource.
|
|
25
|
+
* Stable source identifier, such as a SCORM activity identifier, a cmi5 Assignable Unit id, or resource.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GetResourceSessionActivity
|
|
28
28
|
*/
|
|
@@ -113,6 +113,7 @@ export declare const GetResourceSessionActivityActivityTypeEnum: {
|
|
|
113
113
|
readonly Resource: "resource";
|
|
114
114
|
readonly Sco: "sco";
|
|
115
115
|
readonly Asset: "asset";
|
|
116
|
+
readonly Au: "au";
|
|
116
117
|
};
|
|
117
118
|
export type GetResourceSessionActivityActivityTypeEnum = typeof GetResourceSessionActivityActivityTypeEnum[keyof typeof GetResourceSessionActivityActivityTypeEnum];
|
|
118
119
|
/**
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The saved in-progress state of an H5P activity for the session's learner.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface H5pState
|
|
16
|
+
*/
|
|
17
|
+
export interface H5pState {
|
|
18
|
+
/**
|
|
19
|
+
* The value H5P returned from getCurrentState, or null when nothing is saved.
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
|
+
* @memberof H5pState
|
|
22
|
+
*/
|
|
23
|
+
state: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
} | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the H5pState interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfH5pState(value: object): value is H5pState;
|
|
31
|
+
export declare function H5pStateFromJSON(json: any): H5pState;
|
|
32
|
+
export declare function H5pStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pState;
|
|
33
|
+
export declare function H5pStateToJSON(json: any): H5pState;
|
|
34
|
+
export declare function H5pStateToJSONTyped(value?: H5pState | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the H5pState interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfH5pState(value) {
|
|
18
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function H5pStateFromJSON(json) {
|
|
23
|
+
return H5pStateFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function H5pStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'state': json['state'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function H5pStateToJSON(json) {
|
|
34
|
+
return H5pStateToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function H5pStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'state': value['state'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The learner's progress on the H5P activity after a statement was recorded.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface H5pStatementResult
|
|
16
|
+
*/
|
|
17
|
+
export interface H5pStatementResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof H5pStatementResult
|
|
22
|
+
*/
|
|
23
|
+
completionStatus: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof H5pStatementResult
|
|
28
|
+
*/
|
|
29
|
+
gradeStatus: string;
|
|
30
|
+
/**
|
|
31
|
+
* Best score so far, as a percentage from 0 to 100.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof H5pStatementResult
|
|
34
|
+
*/
|
|
35
|
+
scoreRaw?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the H5pStatementResult interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfH5pStatementResult(value: object): value is H5pStatementResult;
|
|
41
|
+
export declare function H5pStatementResultFromJSON(json: any): H5pStatementResult;
|
|
42
|
+
export declare function H5pStatementResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pStatementResult;
|
|
43
|
+
export declare function H5pStatementResultToJSON(json: any): H5pStatementResult;
|
|
44
|
+
export declare function H5pStatementResultToJSONTyped(value?: H5pStatementResult | null, ignoreDiscriminator?: boolean): any;
|