@easyedu/js-lsm-api 1.139.0 → 1.140.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.
Files changed (128) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +15 -2
  3. package/dist/apis/ContentLibraryQuizApi.d.ts +86 -0
  4. package/dist/apis/ContentLibraryQuizApi.js +216 -0
  5. package/dist/apis/DispatchApi.d.ts +53 -0
  6. package/dist/apis/DispatchApi.js +135 -0
  7. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
  8. package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
  9. package/dist/esm/apis/DispatchApi.d.ts +53 -0
  10. package/dist/esm/apis/DispatchApi.js +135 -0
  11. package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
  12. package/dist/esm/models/GetAttemptAllowance.js +4 -0
  13. package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
  14. package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
  15. package/dist/esm/models/GetLibraryQuizResult.js +20 -0
  16. package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
  17. package/dist/esm/models/GetLibraryQuizSession.js +27 -0
  18. package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
  19. package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
  20. package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
  21. package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
  22. package/dist/esm/models/GetQuizSettings.d.ts +56 -0
  23. package/dist/esm/models/GetQuizSettings.js +57 -0
  24. package/dist/esm/models/HostedScormOutlineEntry.d.ts +1 -1
  25. package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
  26. package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
  27. package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
  28. package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
  29. package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
  30. package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
  31. package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
  32. package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
  33. package/dist/esm/models/PostLibraryQuiz.js +7 -0
  34. package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
  35. package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
  36. package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
  37. package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
  38. package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
  39. package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
  40. package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
  41. package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
  42. package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
  43. package/dist/esm/models/PutQuizSettings.d.ts +44 -0
  44. package/dist/esm/models/PutQuizSettings.js +51 -0
  45. package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
  46. package/dist/esm/models/QuizFeedbackTiming.js +43 -0
  47. package/dist/esm/models/index.d.ts +5 -0
  48. package/dist/esm/models/index.js +5 -0
  49. package/dist/models/GetAttemptAllowance.d.ts +9 -3
  50. package/dist/models/GetAttemptAllowance.js +4 -0
  51. package/dist/models/GetCourseVersionItem.d.ts +1 -1
  52. package/dist/models/GetLibraryQuizResult.d.ts +30 -0
  53. package/dist/models/GetLibraryQuizResult.js +20 -0
  54. package/dist/models/GetLibraryQuizSession.d.ts +43 -0
  55. package/dist/models/GetLibraryQuizSession.js +27 -0
  56. package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
  57. package/dist/models/GetLibraryQuizVersion.js +13 -0
  58. package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
  59. package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
  60. package/dist/models/GetQuizSettings.d.ts +56 -0
  61. package/dist/models/GetQuizSettings.js +64 -0
  62. package/dist/models/HostedScormOutlineEntry.d.ts +1 -1
  63. package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
  64. package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
  65. package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
  66. package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
  67. package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
  68. package/dist/models/LibraryQuizSessionQuestion.js +11 -0
  69. package/dist/models/PostCourseVersionItem.d.ts +1 -1
  70. package/dist/models/PostLibraryQuiz.d.ts +21 -2
  71. package/dist/models/PostLibraryQuiz.js +7 -0
  72. package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
  73. package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
  74. package/dist/models/PutCourseVersionItem.d.ts +1 -1
  75. package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
  76. package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
  77. package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
  78. package/dist/models/PutLibraryQuizVersion.js +7 -0
  79. package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
  80. package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
  81. package/dist/models/PutQuizSettings.d.ts +44 -0
  82. package/dist/models/PutQuizSettings.js +58 -0
  83. package/dist/models/QuizFeedbackTiming.d.ts +25 -0
  84. package/dist/models/QuizFeedbackTiming.js +51 -0
  85. package/dist/models/index.d.ts +5 -0
  86. package/dist/models/index.js +5 -0
  87. package/docs/ContentLibraryQuizApi.md +343 -0
  88. package/docs/DispatchApi.md +214 -0
  89. package/docs/GetAttemptAllowance.md +2 -0
  90. package/docs/GetLibraryQuizResult.md +10 -0
  91. package/docs/GetLibraryQuizSession.md +14 -0
  92. package/docs/GetLibraryQuizVersion.md +6 -0
  93. package/docs/GetQuestionAnswerChoicesInner.md +2 -0
  94. package/docs/GetQuizSettings.md +43 -0
  95. package/docs/LibraryQuizQuestionFeedback.md +47 -0
  96. package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
  97. package/docs/LibraryQuizSessionQuestion.md +6 -0
  98. package/docs/PostLibraryQuiz.md +6 -0
  99. package/docs/PostQuestionAnswerChoicesInner.md +2 -0
  100. package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
  101. package/docs/PutLibraryQuizVersion.md +6 -0
  102. package/docs/PutQuestionAnswerChoicesInner.md +2 -0
  103. package/docs/PutQuizSettings.md +38 -0
  104. package/docs/QuizFeedbackTiming.md +33 -0
  105. package/package.json +1 -1
  106. package/src/apis/ContentLibraryQuizApi.ts +287 -0
  107. package/src/apis/DispatchApi.ts +185 -0
  108. package/src/models/GetAttemptAllowance.ts +12 -3
  109. package/src/models/GetCourseVersionItem.ts +1 -1
  110. package/src/models/GetLibraryQuizResult.ts +45 -0
  111. package/src/models/GetLibraryQuizSession.ts +69 -0
  112. package/src/models/GetLibraryQuizVersion.ts +34 -0
  113. package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
  114. package/src/models/GetQuizSettings.ts +101 -0
  115. package/src/models/HostedScormOutlineEntry.ts +1 -1
  116. package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
  117. package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
  118. package/src/models/LibraryQuizSessionQuestion.ts +33 -0
  119. package/src/models/PostCourseVersionItem.ts +1 -1
  120. package/src/models/PostLibraryQuiz.ts +33 -2
  121. package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
  122. package/src/models/PutCourseVersionItem.ts +1 -1
  123. package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
  124. package/src/models/PutLibraryQuizVersion.ts +31 -0
  125. package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
  126. package/src/models/PutQuizSettings.ts +84 -0
  127. package/src/models/QuizFeedbackTiming.ts +53 -0
  128. package/src/models/index.ts +5 -0
@@ -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
  };
@@ -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
 
@@ -76,7 +76,7 @@ export interface PutCourseVersionItem {
76
76
  */
77
77
  launchMode?: ContentLaunchMode;
78
78
  /**
79
- *
79
+ * Zero means unlimited and is allowed for quiz placements only.
80
80
  * @type {number}
81
81
  * @memberof PutCourseVersionItem
82
82
  */
@@ -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
  }
@@ -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
 
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PutQuizSettings
20
+ */
21
+ export interface PutQuizSettings {
22
+ /**
23
+ * Attempt limit copied into each new quiz. Zero means unlimited.
24
+ * @type {number}
25
+ * @memberof PutQuizSettings
26
+ */
27
+ defaultMaxAttempts: number;
28
+ /**
29
+ * Time limit copied into each new quiz. Null means no time limit.
30
+ * @type {number}
31
+ * @memberof PutQuizSettings
32
+ */
33
+ defaultTimeLimitMinutes: number | null;
34
+ /**
35
+ * Passing score copied into each new quiz.
36
+ * @type {number}
37
+ * @memberof PutQuizSettings
38
+ */
39
+ defaultPassingScore: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PutQuizSettings interface.
44
+ */
45
+ export function instanceOfPutQuizSettings(value: object): value is PutQuizSettings {
46
+ if (!('defaultMaxAttempts' in value) || value['defaultMaxAttempts'] === undefined) return false;
47
+ if (!('defaultTimeLimitMinutes' in value) || value['defaultTimeLimitMinutes'] === undefined) return false;
48
+ if (!('defaultPassingScore' in value) || value['defaultPassingScore'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function PutQuizSettingsFromJSON(json: any): PutQuizSettings {
53
+ return PutQuizSettingsFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function PutQuizSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizSettings {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'defaultMaxAttempts': json['default_max_attempts'],
63
+ 'defaultTimeLimitMinutes': json['default_time_limit_minutes'],
64
+ 'defaultPassingScore': json['default_passing_score'],
65
+ };
66
+ }
67
+
68
+ export function PutQuizSettingsToJSON(json: any): PutQuizSettings {
69
+ return PutQuizSettingsToJSONTyped(json, false);
70
+ }
71
+
72
+ export function PutQuizSettingsToJSONTyped(value?: PutQuizSettings | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'default_max_attempts': value['defaultMaxAttempts'],
80
+ 'default_time_limit_minutes': value['defaultTimeLimitMinutes'],
81
+ 'default_passing_score': value['defaultPassingScore'],
82
+ };
83
+ }
84
+
@@ -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
+
15
+
16
+ /**
17
+ * When learners see feedback. `after_submission` shows it once the whole attempt is submitted. `after_each_question` lets the learner check each answer as they go; a checked answer is locked and can no longer be changed.
18
+ * @export
19
+ */
20
+ export const QuizFeedbackTiming = {
21
+ AfterSubmission: 'after_submission',
22
+ AfterEachQuestion: 'after_each_question'
23
+ } as const;
24
+ export type QuizFeedbackTiming = typeof QuizFeedbackTiming[keyof typeof QuizFeedbackTiming];
25
+
26
+
27
+ export function instanceOfQuizFeedbackTiming(value: any): boolean {
28
+ for (const key in QuizFeedbackTiming) {
29
+ if (Object.prototype.hasOwnProperty.call(QuizFeedbackTiming, key)) {
30
+ if (QuizFeedbackTiming[key as keyof typeof QuizFeedbackTiming] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function QuizFeedbackTimingFromJSON(json: any): QuizFeedbackTiming {
39
+ return QuizFeedbackTimingFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function QuizFeedbackTimingFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuizFeedbackTiming {
43
+ return json as QuizFeedbackTiming;
44
+ }
45
+
46
+ export function QuizFeedbackTimingToJSON(value?: QuizFeedbackTiming | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function QuizFeedbackTimingToJSONTyped(value: any, ignoreDiscriminator: boolean): QuizFeedbackTiming {
51
+ return value as QuizFeedbackTiming;
52
+ }
53
+
@@ -137,6 +137,7 @@ export * from './GetQuestionAnswerChoicesInner';
137
137
  export * from './GetQuestionList';
138
138
  export * from './GetQuestionListFilters';
139
139
  export * from './GetQuestionQuizzesInner';
140
+ export * from './GetQuizSettings';
140
141
  export * from './GetReportCatalog';
141
142
  export * from './GetReportQueryResult';
142
143
  export * from './GetResource';
@@ -202,6 +203,7 @@ export * from './LibraryQuizCriteriaPreviewQuestion';
202
203
  export * from './LibraryQuizCriterion';
203
204
  export * from './LibraryQuizCriterionPreview';
204
205
  export * from './LibraryQuizQuestion';
206
+ export * from './LibraryQuizQuestionFeedback';
205
207
  export * from './LibraryQuizQuestionInput';
206
208
  export * from './LibraryQuizSessionAnswerChoice';
207
209
  export * from './LibraryQuizSessionQuestion';
@@ -338,6 +340,7 @@ export * from './PutLibraryQuizQuestions';
338
340
  export * from './PutLibraryQuizSessionAnswer';
339
341
  export * from './PutLibraryQuizSessionGrade';
340
342
  export * from './PutLibraryQuizSessionOverride';
343
+ export * from './PutLibraryQuizSessionQuestionFlag';
341
344
  export * from './PutLibraryQuizVersion';
342
345
  export * from './PutPortalBranding';
343
346
  export * from './PutPortalCertificateTemplate';
@@ -346,6 +349,7 @@ export * from './PutPortalUser';
346
349
  export * from './PutPortalUserFieldValues';
347
350
  export * from './PutQuestion';
348
351
  export * from './PutQuestionAnswerChoicesInner';
352
+ export * from './PutQuizSettings';
349
353
  export * from './PutResource';
350
354
  export * from './PutResourceSessionOverride';
351
355
  export * from './PutResourceVersion';
@@ -362,6 +366,7 @@ export * from './QuestionImportPreviewImage';
362
366
  export * from './QuestionImportSource';
363
367
  export * from './QuestionImportSourceSummary';
364
368
  export * from './QuestionSelectionMethod';
369
+ export * from './QuizFeedbackTiming';
365
370
  export * from './ReportCategory';
366
371
  export * from './ReportColumn';
367
372
  export * from './ReportDefinition';