@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.
@@ -102,6 +102,7 @@ export interface IOsceMarksheet {
102
102
  feedback: string;
103
103
  agoraId: string;
104
104
  sessionId: string;
105
+ livekitSessionId: string | null;
105
106
  readingTime: number;
106
107
  stationTime: number;
107
108
  feedbackTime: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.249",
3
+ "version": "2.6.252",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -15,6 +15,7 @@ exports.BLOG_POST_FIELDS = (0, client_1.gql) `
15
15
  meta {
16
16
  title
17
17
  description
18
+ url
18
19
  }
19
20
  picture {
20
21
  ...PictureFields
@@ -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 {
@@ -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.map((o) => o.label);
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) {