@quesmed/types-rn 2.6.249 → 2.6.251
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/package.json
CHANGED
|
@@ -153,6 +153,7 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
153
153
|
agoraId
|
|
154
154
|
phase
|
|
155
155
|
sessionId
|
|
156
|
+
livekitSessionId
|
|
156
157
|
isTimed
|
|
157
158
|
readingTime
|
|
158
159
|
stationTime
|
|
@@ -229,7 +230,6 @@ exports.AUTO_MARKED_OSCE_MARKSHEET_FRAGMENT = (0, client_1.gql) `
|
|
|
229
230
|
exports.COMPLETED_OSCE_STATION_FRAGMENT = (0, client_1.gql) `
|
|
230
231
|
fragment CompletedOsceStationFragment on OsceStation {
|
|
231
232
|
score
|
|
232
|
-
avgScore
|
|
233
233
|
completedMarks
|
|
234
234
|
lastOsceMarksheetId
|
|
235
235
|
}
|
|
@@ -116,6 +116,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
|
|
|
116
116
|
feedback: string;
|
|
117
117
|
agoraId: string;
|
|
118
118
|
sessionId: string;
|
|
119
|
+
livekitSessionId: string | null;
|
|
119
120
|
readingTime: number;
|
|
120
121
|
stationTime: number;
|
|
121
122
|
feedbackTime: number;
|
|
@@ -199,6 +200,7 @@ export declare const optimisticSetOsceMarksheetFeedback: (marksheet: IOsceMarksh
|
|
|
199
200
|
feedback: string;
|
|
200
201
|
agoraId: string;
|
|
201
202
|
sessionId: string;
|
|
203
|
+
livekitSessionId: string | null;
|
|
202
204
|
readingTime: number;
|
|
203
205
|
stationTime: number;
|
|
204
206
|
feedbackTime: number;
|
package/utils/evaluateMark.js
CHANGED
|
@@ -346,7 +346,9 @@ function evaluateMark({ mark, answer, questionTypeId, psaSectionId, choices, })
|
|
|
346
346
|
data.result = models_1.EMarkResult.Incorrect;
|
|
347
347
|
break;
|
|
348
348
|
}
|
|
349
|
-
const options = choices
|
|
349
|
+
const options = choices
|
|
350
|
+
.sort((a, b) => a.label.localeCompare(b.label))
|
|
351
|
+
.map((o) => o.label);
|
|
350
352
|
const answerIndex = options.indexOf(answer);
|
|
351
353
|
const attemptIndex = options.indexOf(attempt);
|
|
352
354
|
if (answerIndex === -1 || attemptIndex === -1) {
|