@quesmed/types 2.6.250 → 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.
@@ -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;
@@ -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) {
@@ -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;
@@ -53,12 +53,14 @@ export const BUILD_OSCE_MARKSHEET = gql `
53
53
  $osceStationId: Int!
54
54
  $osceMarksheetId: Int
55
55
  $entitlementId: Int
56
+ $mode: OsceMarksheetMode
56
57
  ) {
57
58
  restricted {
58
59
  buildOsceMarksheet(
59
60
  osceStationId: $osceStationId
60
61
  osceMarksheetId: $osceMarksheetId
61
62
  entitlementId: $entitlementId
63
+ mode: $mode
62
64
  ) {
63
65
  ...OsceMarksheetFields
64
66
  osceStation {
@@ -342,7 +342,9 @@ export function evaluateMark({ mark, answer, questionTypeId, psaSectionId, choic
342
342
  data.result = EMarkResult.Incorrect;
343
343
  break;
344
344
  }
345
- const options = choices.map((o) => o.label);
345
+ const options = choices
346
+ .sort((a, b) => a.label.localeCompare(b.label))
347
+ .map((o) => o.label);
346
348
  const answerIndex = options.indexOf(answer);
347
349
  const attemptIndex = options.indexOf(attempt);
348
350
  if (answerIndex === -1 || attemptIndex === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.250",
3
+ "version": "2.6.252",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",