@quesmed/types-rn 2.5.26 → 2.5.28

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.
@@ -38,7 +38,8 @@ export declare enum EOsceMarksheetAction {
38
38
  SELECT = 7,
39
39
  LEFT = 8,
40
40
  KICK = 9,
41
- ROLE_CHANGE = 10
41
+ ROLE_CHANGE = 10,
42
+ STATE_CHANGE = 11
42
43
  }
43
44
  export declare enum EOsceMarksheetState {
44
45
  LOBBY = 0,
@@ -23,6 +23,7 @@ var EOsceMarksheetAction;
23
23
  EOsceMarksheetAction[EOsceMarksheetAction["LEFT"] = 8] = "LEFT";
24
24
  EOsceMarksheetAction[EOsceMarksheetAction["KICK"] = 9] = "KICK";
25
25
  EOsceMarksheetAction[EOsceMarksheetAction["ROLE_CHANGE"] = 10] = "ROLE_CHANGE";
26
+ EOsceMarksheetAction[EOsceMarksheetAction["STATE_CHANGE"] = 11] = "STATE_CHANGE";
26
27
  })(EOsceMarksheetAction = exports.EOsceMarksheetAction || (exports.EOsceMarksheetAction = {}));
27
28
  var EOsceMarksheetState;
28
29
  (function (EOsceMarksheetState) {
@@ -6,9 +6,11 @@ export declare enum EProductType {
6
6
  ANATOMY = 4,
7
7
  MEDICAL_SCIENCES = 5,
8
8
  ANATOMY_BUNDLE = 6,
9
- MRCP = 7,
10
- MSRA = 8,
11
- INTERVIEW = 9
9
+ MRCP_PART1 = 7,
10
+ MRCP_PART2 = 8,
11
+ PACES = 9,
12
+ MSRA = 10,
13
+ INTERVIEW = 11
12
14
  }
13
15
  export interface IProduct {
14
16
  id: Id;
package/models/Product.js CHANGED
@@ -9,9 +9,11 @@ var EProductType;
9
9
  EProductType[EProductType["ANATOMY"] = 4] = "ANATOMY";
10
10
  EProductType[EProductType["MEDICAL_SCIENCES"] = 5] = "MEDICAL_SCIENCES";
11
11
  EProductType[EProductType["ANATOMY_BUNDLE"] = 6] = "ANATOMY_BUNDLE";
12
- EProductType[EProductType["MRCP"] = 7] = "MRCP";
13
- EProductType[EProductType["MSRA"] = 8] = "MSRA";
14
- EProductType[EProductType["INTERVIEW"] = 9] = "INTERVIEW";
12
+ EProductType[EProductType["MRCP_PART1"] = 7] = "MRCP_PART1";
13
+ EProductType[EProductType["MRCP_PART2"] = 8] = "MRCP_PART2";
14
+ EProductType[EProductType["PACES"] = 9] = "PACES";
15
+ EProductType[EProductType["MSRA"] = 10] = "MSRA";
16
+ EProductType[EProductType["INTERVIEW"] = 11] = "INTERVIEW";
15
17
  })(EProductType = exports.EProductType || (exports.EProductType = {}));
16
18
  var EAppType;
17
19
  (function (EAppType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.5.26",
3
+ "version": "2.5.28",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,4 +1,4 @@
1
- import { EOsceMarksheetAction, EOsceRoles, EStudyAction, Id, IOsceMarksheet, IOsceMarksheetMark } from '../../../models';
1
+ import { EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EStudyAction, Id, IOsceMarksheet, IOsceMarksheetMark } from '../../../models';
2
2
  import { IOsceMatchmakingAction } from '../../subscription/osce';
3
3
  import { graphqlNormalize, RestrictedData } from '../../types';
4
4
  export declare const START_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
@@ -75,12 +75,16 @@ export interface ISaveOsceMarksheetVar {
75
75
  feedback?: string;
76
76
  }
77
77
  export type ISaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'saveOsceMarksheet'>;
78
- export declare const OSCE_MARKSHEET_ACTIONS: import("@apollo/client").DocumentNode;
79
- export interface IOsceMarksheetActionsVar {
78
+ export declare const MODIFY_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
79
+ export interface IModifyOsceMarksheetVarInput {
80
80
  osceMarksheetId: Id;
81
81
  action: EOsceMarksheetAction;
82
+ state?: EOsceMarksheetState;
82
83
  }
83
- export type IOsceMarksheetActionsData = RestrictedData<number, 'osceMarksheetActions'>;
84
+ export interface IModifyOsceMarksheetVar {
85
+ input: IModifyOsceMarksheetVarInput;
86
+ }
87
+ export type IModifyOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'modifyOsceMarksheet'>;
84
88
  export declare const END_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
85
89
  export interface IEndOsceMarksheetVar extends ISaveOsceMarksheetVar {
86
90
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LEAVE_OSCE_MARKSHEET = exports.END_OSCE_MARKSHEET = exports.OSCE_MARKSHEET_ACTIONS = exports.SAVE_OSCE_MARKSHEET = exports.PRESTART_OSCE_MARKSHEET = exports.START_OSCE_TIMER = exports.START_OSCE_MARKSHEET = exports.SELECT_OSCE_STATION = exports.optimisticMarkOsceMarksheetMark = exports.MARK_OSCE_MARKSHEET_MARK = exports.CHANGE_OSCE_ROLE = exports.BUILD_OSCE_MARKSHEET = exports.CREATE_OR_JOIN_OSCE_MARKSHEET = exports.CANCEL_OSCE_MATCHMAKING = exports.CHECK_OSCE_MATCHMAKING = exports.ACCEPT_OSCE_MATCHMAKING = exports.START_OSCE_MATCHMAKING = void 0;
3
+ exports.LEAVE_OSCE_MARKSHEET = exports.END_OSCE_MARKSHEET = exports.MODIFY_OSCE_MARKSHEET = exports.SAVE_OSCE_MARKSHEET = exports.PRESTART_OSCE_MARKSHEET = exports.START_OSCE_TIMER = exports.START_OSCE_MARKSHEET = exports.SELECT_OSCE_STATION = exports.optimisticMarkOsceMarksheetMark = exports.MARK_OSCE_MARKSHEET_MARK = exports.CHANGE_OSCE_ROLE = exports.BUILD_OSCE_MARKSHEET = exports.CREATE_OR_JOIN_OSCE_MARKSHEET = exports.CANCEL_OSCE_MATCHMAKING = exports.CHECK_OSCE_MATCHMAKING = exports.ACCEPT_OSCE_MATCHMAKING = exports.START_OSCE_MATCHMAKING = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const osce_1 = require("../../fragments/osce");
6
6
  const osce_2 = require("./../../fragments/osce");
@@ -38,15 +38,9 @@ exports.CANCEL_OSCE_MATCHMAKING = (0, client_1.gql) `
38
38
  exports.CREATE_OR_JOIN_OSCE_MARKSHEET = (0, client_1.gql) `
39
39
  ${osce_2.OSCE_STATION_FIELDS}
40
40
  ${osce_1.OSCE_MARKSHEET_FIELDS}
41
- mutation CreateOrJoinOsceMarksheet(
42
- $sessionId: String!
43
- $action: Int!
44
- ) {
41
+ mutation CreateOrJoinOsceMarksheet($sessionId: String!, $action: Int!) {
45
42
  restricted {
46
- createOrJoinOsceMarksheet(
47
- sessionId: $sessionId
48
- action: $action
49
- ) {
43
+ createOrJoinOsceMarksheet(sessionId: $sessionId, action: $action) {
50
44
  ...OsceMarksheetFields
51
45
  osceStation {
52
46
  ...OsceStationFields
@@ -58,10 +52,7 @@ exports.CREATE_OR_JOIN_OSCE_MARKSHEET = (0, client_1.gql) `
58
52
  exports.BUILD_OSCE_MARKSHEET = (0, client_1.gql) `
59
53
  ${osce_2.OSCE_STATION_FIELDS}
60
54
  ${osce_1.OSCE_MARKSHEET_FIELDS}
61
- mutation BuildOsceMarksheet(
62
- $osceStationId: Int!
63
- $osceMarksheetId: Int
64
- ) {
55
+ mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int) {
65
56
  restricted {
66
57
  buildOsceMarksheet(
67
58
  osceStationId: $osceStationId
@@ -203,10 +194,16 @@ exports.SAVE_OSCE_MARKSHEET = (0, client_1.gql) `
203
194
  }
204
195
  }
205
196
  `;
206
- exports.OSCE_MARKSHEET_ACTIONS = (0, client_1.gql) `
207
- mutation OsceMarksheetActions($osceMarksheetId: Int!, $action: Int!) {
197
+ exports.MODIFY_OSCE_MARKSHEET = (0, client_1.gql) `
198
+ mutation ModifyOsceMarksheet($input: ModifyOsceMarksheetInput) {
208
199
  restricted {
209
- osceMarksheetActions(osceMarksheetId: $osceMarksheetId, action: $action)
200
+ modifyOsceMarksheet(input: $input) {
201
+ id
202
+ state
203
+ startedAt
204
+ pausedAt
205
+ endedAt
206
+ }
210
207
  }
211
208
  }
212
209
  `;