@quesmed/types-rn 2.5.107 → 2.5.109

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.
@@ -31,6 +31,13 @@ export declare enum EOsceType {
31
31
  INTERPRETATION = 5,
32
32
  ABCDE = 6
33
33
  }
34
+ export declare enum EStationPictureType {
35
+ ALL = 0,
36
+ ACTOR = 1,
37
+ CANDIDATE = 2,
38
+ EXAMINER = 3,
39
+ WALKTHROUGH = 4
40
+ }
34
41
  export interface IOsceStation {
35
42
  id: Id;
36
43
  createdAt: number | Date;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_GLOBAL_RATING = exports.EOsceType = void 0;
3
+ exports.OSCE_GLOBAL_RATING = exports.EStationPictureType = exports.EOsceType = void 0;
4
4
  var EOsceType;
5
5
  (function (EOsceType) {
6
6
  EOsceType[EOsceType["ALL"] = 0] = "ALL";
@@ -11,6 +11,14 @@ var EOsceType;
11
11
  EOsceType[EOsceType["INTERPRETATION"] = 5] = "INTERPRETATION";
12
12
  EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
13
13
  })(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
14
+ var EStationPictureType;
15
+ (function (EStationPictureType) {
16
+ EStationPictureType[EStationPictureType["ALL"] = 0] = "ALL";
17
+ EStationPictureType[EStationPictureType["ACTOR"] = 1] = "ACTOR";
18
+ EStationPictureType[EStationPictureType["CANDIDATE"] = 2] = "CANDIDATE";
19
+ EStationPictureType[EStationPictureType["EXAMINER"] = 3] = "EXAMINER";
20
+ EStationPictureType[EStationPictureType["WALKTHROUGH"] = 4] = "WALKTHROUGH";
21
+ })(EStationPictureType = exports.EStationPictureType || (exports.EStationPictureType = {}));
14
22
  exports.OSCE_GLOBAL_RATING = {
15
23
  [EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
16
24
  2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
@@ -1,3 +1,4 @@
1
+ import { EStationPictureType } from './OsceStation';
1
2
  import { ITopic } from './Topic';
2
3
  import { Id } from './Type';
3
4
  export interface IPicture {
@@ -33,18 +34,8 @@ export interface IStationPicture {
33
34
  pictureId: Id;
34
35
  picture: IPicture;
35
36
  pictureIdx: number;
36
- }
37
- export interface IOsceActorPicture extends IStationPicture {
38
- osceStationId: Id;
39
- }
40
- export interface IOsceCandidatePicture extends IStationPicture {
41
- osceStationId: Id;
42
- }
43
- export interface IOsceExaminerPicture extends IStationPicture {
44
- osceStationId: Id;
45
- }
46
- export interface IOsceWalkthroughPicture extends IStationPicture {
47
37
  osceStationId: Id;
38
+ type: EStationPictureType;
48
39
  }
49
40
  export interface IQuestionPicture {
50
41
  id: Id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.5.107",
3
+ "version": "2.5.109",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -95,6 +95,7 @@ const optimisticMarkOsceMarksheetMark = (variables, productType) => {
95
95
  const data = {};
96
96
  if (productType === models_1.EProductType.OSCE) {
97
97
  data.mark = variables.mark;
98
+ data.selectedChoice = null;
98
99
  }
99
100
  else {
100
101
  data.selectedChoice = variables.mark;
@@ -102,6 +103,7 @@ const optimisticMarkOsceMarksheetMark = (variables, productType) => {
102
103
  return {
103
104
  restricted: {
104
105
  markOsceMarksheetMark: {
106
+ ...data,
105
107
  id: variables.osceMarksheetMarkId,
106
108
  __typename: 'OsceMarksheetMark',
107
109
  },