@easyedu/js-lsm-api 1.90.0 → 1.92.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 +70 -0
- package/README.md +65 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/apis/ContentLibraryQuizApi.js +1162 -0
- package/dist/apis/PlayerApi.d.ts +130 -1
- package/dist/apis/PlayerApi.js +257 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +1158 -0
- package/dist/esm/apis/PlayerApi.d.ts +130 -1
- package/dist/esm/apis/PlayerApi.js +256 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/esm/models/GetCourseVersionItem.js +9 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/esm/models/GetLibraryQuiz.js +100 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.js +67 -0
- package/dist/esm/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizList.js +60 -0
- package/dist/esm/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/esm/models/GetLibraryQuizResult.js +79 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/esm/models/GetLibraryQuizSession.js +129 -0
- package/dist/esm/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizSessionList.js +60 -0
- package/dist/esm/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/esm/models/GetLibraryQuizUsage.js +59 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +125 -0
- package/dist/esm/models/GetResourceSession.d.ts +30 -0
- package/dist/esm/models/GetResourceSession.js +16 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
- package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/esm/models/GetResourceSessionScormData.js +66 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
- package/dist/esm/models/LibraryQuizCriterion.d.ts +95 -0
- package/dist/esm/models/LibraryQuizCriterion.js +76 -0
- package/dist/esm/models/LibraryQuizQuestion.d.ts +70 -0
- package/dist/esm/models/LibraryQuizQuestion.js +63 -0
- package/dist/esm/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/esm/models/LibraryQuizQuestionInput.js +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +54 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +84 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/esm/models/PostLibraryQuiz.js +70 -0
- package/dist/esm/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizVersion.js +41 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuiz.js +43 -0
- package/dist/esm/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizCriteria.js +44 -0
- package/dist/esm/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizQuestions.js +44 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.js +45 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.js +45 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +64 -0
- package/dist/esm/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/esm/models/QuestionSelectionMethod.js +43 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +34 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/models/GetCourseVersionItem.js +10 -1
- package/dist/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/models/GetLibraryQuiz.js +108 -0
- package/dist/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/models/GetLibraryQuizAnalytics.js +74 -0
- package/dist/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/models/GetLibraryQuizList.js +67 -0
- package/dist/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/models/GetLibraryQuizResult.js +86 -0
- package/dist/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/models/GetLibraryQuizSession.js +137 -0
- package/dist/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/models/GetLibraryQuizSessionList.js +67 -0
- package/dist/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/models/GetLibraryQuizUsage.js +66 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/models/GetLibraryQuizVersion.js +132 -0
- package/dist/models/GetResourceSession.d.ts +30 -0
- package/dist/models/GetResourceSession.js +16 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/models/GetResourceSessionDiagnostics.js +76 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
- package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
- package/dist/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/models/GetResourceSessionScormData.js +73 -0
- package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
- package/dist/models/LibraryQuizCriterion.d.ts +95 -0
- package/dist/models/LibraryQuizCriterion.js +84 -0
- package/dist/models/LibraryQuizQuestion.d.ts +70 -0
- package/dist/models/LibraryQuizQuestion.js +70 -0
- package/dist/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/models/LibraryQuizQuestionInput.js +58 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +61 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/models/LibraryQuizSessionQuestion.js +92 -0
- package/dist/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostCourseLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/models/PostLibraryQuiz.js +77 -0
- package/dist/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/models/PostLibraryQuizVersion.js +48 -0
- package/dist/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/models/PutLibraryQuiz.js +50 -0
- package/dist/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/models/PutLibraryQuizCriteria.js +51 -0
- package/dist/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/models/PutLibraryQuizQuestions.js +51 -0
- package/dist/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/models/PutLibraryQuizSessionAnswer.js +52 -0
- package/dist/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/models/PutLibraryQuizSessionGrade.js +52 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/models/PutLibraryQuizVersion.js +71 -0
- package/dist/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/models/QuestionSelectionMethod.js +51 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +34 -0
- package/docs/ContentLibraryQuizApi.md +1780 -0
- package/docs/GetCourseVersionItem.md +2 -0
- package/docs/GetLibraryQuiz.md +62 -0
- package/docs/GetLibraryQuizAnalytics.md +46 -0
- package/docs/GetLibraryQuizList.md +42 -0
- package/docs/GetLibraryQuizResult.md +54 -0
- package/docs/GetLibraryQuizSession.md +78 -0
- package/docs/GetLibraryQuizSessionList.md +42 -0
- package/docs/GetLibraryQuizUsage.md +42 -0
- package/docs/GetLibraryQuizVersion.md +78 -0
- package/docs/GetResourceSession.md +10 -0
- package/docs/GetResourceSessionDiagnostics.md +47 -0
- package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
- package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
- package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
- package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
- package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
- package/docs/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/LibraryQuizCriterion.md +48 -0
- package/docs/LibraryQuizQuestion.md +46 -0
- package/docs/LibraryQuizQuestionInput.md +40 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +40 -0
- package/docs/LibraryQuizSessionQuestion.md +50 -0
- package/docs/PlayerApi.md +320 -3
- package/docs/PostCourseLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuiz.md +58 -0
- package/docs/PostLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuizVersion.md +34 -0
- package/docs/PutLibraryQuiz.md +36 -0
- package/docs/PutLibraryQuizCriteria.md +34 -0
- package/docs/PutLibraryQuizQuestions.md +34 -0
- package/docs/PutLibraryQuizSessionAnswer.md +36 -0
- package/docs/PutLibraryQuizSessionGrade.md +36 -0
- package/docs/PutLibraryQuizVersion.md +56 -0
- package/docs/QuestionSelectionMethod.md +32 -0
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +1624 -0
- package/src/apis/PlayerApi.ts +351 -1
- package/src/apis/index.ts +1 -0
- package/src/models/GetCourseVersionItem.ts +17 -0
- package/src/models/GetLibraryQuiz.ts +207 -0
- package/src/models/GetLibraryQuizAnalytics.ts +120 -0
- package/src/models/GetLibraryQuizList.ts +110 -0
- package/src/models/GetLibraryQuizResult.ts +154 -0
- package/src/models/GetLibraryQuizSession.ts +286 -0
- package/src/models/GetLibraryQuizSessionList.ts +110 -0
- package/src/models/GetLibraryQuizUsage.ts +102 -0
- package/src/models/GetLibraryQuizVersion.ts +290 -0
- package/src/models/GetResourceSession.ts +43 -0
- package/src/models/GetResourceSessionDiagnostics.ts +161 -0
- package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
- package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
- package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
- package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
- package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
- package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/LibraryQuizCriterion.ts +147 -0
- package/src/models/LibraryQuizQuestion.ts +118 -0
- package/src/models/LibraryQuizQuestionInput.ts +91 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +100 -0
- package/src/models/LibraryQuizSessionQuestion.ts +166 -0
- package/src/models/PostCourseLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuiz.ts +173 -0
- package/src/models/PostLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuizVersion.ts +65 -0
- package/src/models/PutLibraryQuiz.ts +73 -0
- package/src/models/PutLibraryQuizCriteria.ts +74 -0
- package/src/models/PutLibraryQuizQuestions.ts +74 -0
- package/src/models/PutLibraryQuizSessionAnswer.ts +74 -0
- package/src/models/PutLibraryQuizSessionGrade.ts +74 -0
- package/src/models/PutLibraryQuizVersion.ts +163 -0
- package/src/models/QuestionSelectionMethod.ts +53 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +34 -0
|
@@ -0,0 +1,173 @@
|
|
|
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 { QuestionSelectionMethod } from './QuestionSelectionMethod';
|
|
17
|
+
import {
|
|
18
|
+
QuestionSelectionMethodFromJSON,
|
|
19
|
+
QuestionSelectionMethodFromJSONTyped,
|
|
20
|
+
QuestionSelectionMethodToJSON,
|
|
21
|
+
QuestionSelectionMethodToJSONTyped,
|
|
22
|
+
} from './QuestionSelectionMethod';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PostLibraryQuiz
|
|
28
|
+
*/
|
|
29
|
+
export interface PostLibraryQuiz {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostLibraryQuiz
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostLibraryQuiz
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {QuestionSelectionMethod}
|
|
45
|
+
* @memberof PostLibraryQuiz
|
|
46
|
+
*/
|
|
47
|
+
questionSelectionMethod: QuestionSelectionMethod;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PostLibraryQuiz
|
|
52
|
+
*/
|
|
53
|
+
maxQuestions?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PostLibraryQuiz
|
|
58
|
+
*/
|
|
59
|
+
passingScore?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof PostLibraryQuiz
|
|
64
|
+
*/
|
|
65
|
+
timeLimitMinutes?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof PostLibraryQuiz
|
|
70
|
+
*/
|
|
71
|
+
randomizeQuestions?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof PostLibraryQuiz
|
|
76
|
+
*/
|
|
77
|
+
randomizeAnswers?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof PostLibraryQuiz
|
|
82
|
+
*/
|
|
83
|
+
showResults?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof PostLibraryQuiz
|
|
88
|
+
*/
|
|
89
|
+
showCorrectAnswers?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof PostLibraryQuiz
|
|
94
|
+
*/
|
|
95
|
+
allowReview?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof PostLibraryQuiz
|
|
100
|
+
*/
|
|
101
|
+
requireAllQuestions?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {{ [key: string]: any; }}
|
|
105
|
+
* @memberof PostLibraryQuiz
|
|
106
|
+
*/
|
|
107
|
+
settings?: { [key: string]: any; };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the PostLibraryQuiz interface.
|
|
114
|
+
*/
|
|
115
|
+
export function instanceOfPostLibraryQuiz(value: object): value is PostLibraryQuiz {
|
|
116
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
117
|
+
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined) return false;
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function PostLibraryQuizFromJSON(json: any): PostLibraryQuiz {
|
|
122
|
+
return PostLibraryQuizFromJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function PostLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLibraryQuiz {
|
|
126
|
+
if (json == null) {
|
|
127
|
+
return json;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'name': json['name'],
|
|
132
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
133
|
+
'questionSelectionMethod': QuestionSelectionMethodFromJSON(json['question_selection_method']),
|
|
134
|
+
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
135
|
+
'passingScore': json['passing_score'] == null ? undefined : json['passing_score'],
|
|
136
|
+
'timeLimitMinutes': json['time_limit_minutes'] == null ? undefined : json['time_limit_minutes'],
|
|
137
|
+
'randomizeQuestions': json['randomize_questions'] == null ? undefined : json['randomize_questions'],
|
|
138
|
+
'randomizeAnswers': json['randomize_answers'] == null ? undefined : json['randomize_answers'],
|
|
139
|
+
'showResults': json['show_results'] == null ? undefined : json['show_results'],
|
|
140
|
+
'showCorrectAnswers': json['show_correct_answers'] == null ? undefined : json['show_correct_answers'],
|
|
141
|
+
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
142
|
+
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
143
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function PostLibraryQuizToJSON(json: any): PostLibraryQuiz {
|
|
148
|
+
return PostLibraryQuizToJSONTyped(json, false);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function PostLibraryQuizToJSONTyped(value?: PostLibraryQuiz | null, ignoreDiscriminator: boolean = false): any {
|
|
152
|
+
if (value == null) {
|
|
153
|
+
return value;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
|
|
158
|
+
'name': value['name'],
|
|
159
|
+
'description': value['description'],
|
|
160
|
+
'question_selection_method': QuestionSelectionMethodToJSON(value['questionSelectionMethod']),
|
|
161
|
+
'max_questions': value['maxQuestions'],
|
|
162
|
+
'passing_score': value['passingScore'],
|
|
163
|
+
'time_limit_minutes': value['timeLimitMinutes'],
|
|
164
|
+
'randomize_questions': value['randomizeQuestions'],
|
|
165
|
+
'randomize_answers': value['randomizeAnswers'],
|
|
166
|
+
'show_results': value['showResults'],
|
|
167
|
+
'show_correct_answers': value['showCorrectAnswers'],
|
|
168
|
+
'allow_review': value['allowReview'],
|
|
169
|
+
'require_all_questions': value['requireAllQuestions'],
|
|
170
|
+
'settings': value['settings'],
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 PostLibraryQuizSession
|
|
20
|
+
*/
|
|
21
|
+
export interface PostLibraryQuizSession {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PostLibraryQuizSession
|
|
26
|
+
*/
|
|
27
|
+
restart?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostLibraryQuizSession interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostLibraryQuizSession(value: object): value is PostLibraryQuizSession {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostLibraryQuizSessionFromJSON(json: any): PostLibraryQuizSession {
|
|
38
|
+
return PostLibraryQuizSessionFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostLibraryQuizSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLibraryQuizSession {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'restart': json['restart'] == null ? undefined : json['restart'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostLibraryQuizSessionToJSON(json: any): PostLibraryQuizSession {
|
|
52
|
+
return PostLibraryQuizSessionToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostLibraryQuizSessionToJSONTyped(value?: PostLibraryQuizSession | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'restart': value['restart'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 PostLibraryQuizVersion
|
|
20
|
+
*/
|
|
21
|
+
export interface PostLibraryQuizVersion {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostLibraryQuizVersion
|
|
26
|
+
*/
|
|
27
|
+
changeNotes?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostLibraryQuizVersion interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostLibraryQuizVersion(value: object): value is PostLibraryQuizVersion {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostLibraryQuizVersionFromJSON(json: any): PostLibraryQuizVersion {
|
|
38
|
+
return PostLibraryQuizVersionFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostLibraryQuizVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLibraryQuizVersion {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostLibraryQuizVersionToJSON(json: any): PostLibraryQuizVersion {
|
|
52
|
+
return PostLibraryQuizVersionToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostLibraryQuizVersionToJSONTyped(value?: PostLibraryQuizVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'change_notes': value['changeNotes'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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 PutLibraryQuiz
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLibraryQuiz {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutLibraryQuiz
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutLibraryQuiz
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutLibraryQuiz interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutLibraryQuiz(value: object): value is PutLibraryQuiz {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PutLibraryQuizFromJSON(json: any): PutLibraryQuiz {
|
|
44
|
+
return PutLibraryQuizFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuiz {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PutLibraryQuizToJSON(json: any): PutLibraryQuiz {
|
|
59
|
+
return PutLibraryQuizToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PutLibraryQuizToJSONTyped(value?: PutLibraryQuiz | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'description': value['description'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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 { LibraryQuizCriterion } from './LibraryQuizCriterion';
|
|
17
|
+
import {
|
|
18
|
+
LibraryQuizCriterionFromJSON,
|
|
19
|
+
LibraryQuizCriterionFromJSONTyped,
|
|
20
|
+
LibraryQuizCriterionToJSON,
|
|
21
|
+
LibraryQuizCriterionToJSONTyped,
|
|
22
|
+
} from './LibraryQuizCriterion';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PutLibraryQuizCriteria
|
|
28
|
+
*/
|
|
29
|
+
export interface PutLibraryQuizCriteria {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LibraryQuizCriterion>}
|
|
33
|
+
* @memberof PutLibraryQuizCriteria
|
|
34
|
+
*/
|
|
35
|
+
criteria: Array<LibraryQuizCriterion>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PutLibraryQuizCriteria interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPutLibraryQuizCriteria(value: object): value is PutLibraryQuizCriteria {
|
|
42
|
+
if (!('criteria' in value) || value['criteria'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PutLibraryQuizCriteriaFromJSON(json: any): PutLibraryQuizCriteria {
|
|
47
|
+
return PutLibraryQuizCriteriaFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PutLibraryQuizCriteriaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizCriteria {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'criteria': ((json['criteria'] as Array<any>).map(LibraryQuizCriterionFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PutLibraryQuizCriteriaToJSON(json: any): PutLibraryQuizCriteria {
|
|
61
|
+
return PutLibraryQuizCriteriaToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PutLibraryQuizCriteriaToJSONTyped(value?: PutLibraryQuizCriteria | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'criteria': ((value['criteria'] as Array<any>).map(LibraryQuizCriterionToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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 { LibraryQuizQuestionInput } from './LibraryQuizQuestionInput';
|
|
17
|
+
import {
|
|
18
|
+
LibraryQuizQuestionInputFromJSON,
|
|
19
|
+
LibraryQuizQuestionInputFromJSONTyped,
|
|
20
|
+
LibraryQuizQuestionInputToJSON,
|
|
21
|
+
LibraryQuizQuestionInputToJSONTyped,
|
|
22
|
+
} from './LibraryQuizQuestionInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PutLibraryQuizQuestions
|
|
28
|
+
*/
|
|
29
|
+
export interface PutLibraryQuizQuestions {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LibraryQuizQuestionInput>}
|
|
33
|
+
* @memberof PutLibraryQuizQuestions
|
|
34
|
+
*/
|
|
35
|
+
questions: Array<LibraryQuizQuestionInput>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PutLibraryQuizQuestions interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPutLibraryQuizQuestions(value: object): value is PutLibraryQuizQuestions {
|
|
42
|
+
if (!('questions' in value) || value['questions'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PutLibraryQuizQuestionsFromJSON(json: any): PutLibraryQuizQuestions {
|
|
47
|
+
return PutLibraryQuizQuestionsFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PutLibraryQuizQuestionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizQuestions {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'questions': ((json['questions'] as Array<any>).map(LibraryQuizQuestionInputFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PutLibraryQuizQuestionsToJSON(json: any): PutLibraryQuizQuestions {
|
|
61
|
+
return PutLibraryQuizQuestionsToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PutLibraryQuizQuestionsToJSONTyped(value?: PutLibraryQuizQuestions | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'questions': ((value['questions'] as Array<any>).map(LibraryQuizQuestionInputToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutLibraryQuizSessionAnswer
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLibraryQuizSessionAnswer {
|
|
22
|
+
/**
|
|
23
|
+
* Type-specific answer payload using snapshot answer-choice IDs.
|
|
24
|
+
* @type {{ [key: string]: any; }}
|
|
25
|
+
* @memberof PutLibraryQuizSessionAnswer
|
|
26
|
+
*/
|
|
27
|
+
answer: { [key: string]: any; };
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof PutLibraryQuizSessionAnswer
|
|
32
|
+
*/
|
|
33
|
+
autoSave?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutLibraryQuizSessionAnswer interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutLibraryQuizSessionAnswer(value: object): value is PutLibraryQuizSessionAnswer {
|
|
40
|
+
if (!('answer' in value) || value['answer'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PutLibraryQuizSessionAnswerFromJSON(json: any): PutLibraryQuizSessionAnswer {
|
|
45
|
+
return PutLibraryQuizSessionAnswerFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PutLibraryQuizSessionAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionAnswer {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'answer': json['answer'],
|
|
55
|
+
'autoSave': json['auto_save'] == null ? undefined : json['auto_save'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PutLibraryQuizSessionAnswerToJSON(json: any): PutLibraryQuizSessionAnswer {
|
|
60
|
+
return PutLibraryQuizSessionAnswerToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PutLibraryQuizSessionAnswerToJSONTyped(value?: PutLibraryQuizSessionAnswer | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'answer': value['answer'],
|
|
71
|
+
'auto_save': value['autoSave'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutLibraryQuizSessionGrade
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLibraryQuizSessionGrade {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PutLibraryQuizSessionGrade
|
|
26
|
+
*/
|
|
27
|
+
pointsEarned: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutLibraryQuizSessionGrade
|
|
32
|
+
*/
|
|
33
|
+
feedback?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutLibraryQuizSessionGrade interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutLibraryQuizSessionGrade(value: object): value is PutLibraryQuizSessionGrade {
|
|
40
|
+
if (!('pointsEarned' in value) || value['pointsEarned'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PutLibraryQuizSessionGradeFromJSON(json: any): PutLibraryQuizSessionGrade {
|
|
45
|
+
return PutLibraryQuizSessionGradeFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PutLibraryQuizSessionGradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionGrade {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'pointsEarned': json['points_earned'],
|
|
55
|
+
'feedback': json['feedback'] == null ? undefined : json['feedback'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PutLibraryQuizSessionGradeToJSON(json: any): PutLibraryQuizSessionGrade {
|
|
60
|
+
return PutLibraryQuizSessionGradeToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PutLibraryQuizSessionGradeToJSONTyped(value?: PutLibraryQuizSessionGrade | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'points_earned': value['pointsEarned'],
|
|
71
|
+
'feedback': value['feedback'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|