@quesmed/types-rn 2.6.249 → 2.6.252
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
|
}
|
|
@@ -32,6 +32,7 @@ export interface IBuildOsceMarksheetVar {
|
|
|
32
32
|
osceStationId?: Id;
|
|
33
33
|
osceMarksheetId?: Id;
|
|
34
34
|
entitlementId?: EEntitlementType;
|
|
35
|
+
mode?: EOsceMarksheetMode;
|
|
35
36
|
}
|
|
36
37
|
export type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
|
|
37
38
|
export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
|
|
@@ -116,6 +117,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
|
|
|
116
117
|
feedback: string;
|
|
117
118
|
agoraId: string;
|
|
118
119
|
sessionId: string;
|
|
120
|
+
livekitSessionId: string | null;
|
|
119
121
|
readingTime: number;
|
|
120
122
|
stationTime: number;
|
|
121
123
|
feedbackTime: number;
|
|
@@ -199,6 +201,7 @@ export declare const optimisticSetOsceMarksheetFeedback: (marksheet: IOsceMarksh
|
|
|
199
201
|
feedback: string;
|
|
200
202
|
agoraId: string;
|
|
201
203
|
sessionId: string;
|
|
204
|
+
livekitSessionId: string | null;
|
|
202
205
|
readingTime: number;
|
|
203
206
|
stationTime: number;
|
|
204
207
|
feedbackTime: number;
|
|
@@ -56,12 +56,14 @@ exports.BUILD_OSCE_MARKSHEET = (0, client_1.gql) `
|
|
|
56
56
|
$osceStationId: Int!
|
|
57
57
|
$osceMarksheetId: Int
|
|
58
58
|
$entitlementId: Int
|
|
59
|
+
$mode: OsceMarksheetMode
|
|
59
60
|
) {
|
|
60
61
|
restricted {
|
|
61
62
|
buildOsceMarksheet(
|
|
62
63
|
osceStationId: $osceStationId
|
|
63
64
|
osceMarksheetId: $osceMarksheetId
|
|
64
65
|
entitlementId: $entitlementId
|
|
66
|
+
mode: $mode
|
|
65
67
|
) {
|
|
66
68
|
...OsceMarksheetFields
|
|
67
69
|
osceStation {
|
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) {
|