@quesmed/types 2.6.245 → 2.6.246

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.
@@ -43,6 +43,10 @@ export declare enum EStationPictureType {
43
43
  EXAMINER = 3,
44
44
  WALKTHROUGH = 4
45
45
  }
46
+ export interface IStationExaminerQuestion {
47
+ index: number;
48
+ question: string;
49
+ }
46
50
  export interface IOsceStation {
47
51
  id: Id;
48
52
  createdAt: number | Date;
@@ -64,12 +68,17 @@ export interface IOsceStation {
64
68
  topics?: ITopic[];
65
69
  picture: IPicture | null;
66
70
  candidatePictures?: IPicture[];
71
+ /**
72
+ * This is used to tell if the station has examiner questions or not.
73
+ */
74
+ examinerQuestions?: IStationExaminerQuestion[];
67
75
  actorPictures?: IPicture[];
68
76
  examinerPictures?: IPicture[];
69
77
  walkthroughPictures?: IPicture[];
70
78
  videos?: IVideo[];
71
79
  lastOsceMarksheetId?: Id;
72
80
  score?: number;
81
+ avgScore?: number;
73
82
  status?: EUserLearningStatus;
74
83
  demo?: boolean;
75
84
  userNote: null | IUserStationNote;
@@ -229,6 +229,7 @@ exports.AUTO_MARKED_OSCE_MARKSHEET_FRAGMENT = (0, client_1.gql) `
229
229
  exports.COMPLETED_OSCE_STATION_FRAGMENT = (0, client_1.gql) `
230
230
  fragment CompletedOsceStationFragment on OsceStation {
231
231
  score
232
+ avgScore
232
233
  completedMarks
233
234
  lastOsceMarksheetId
234
235
  }
@@ -258,6 +258,14 @@ export interface ILeaveMarksheetVar {
258
258
  }
259
259
  export type ILeaveMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'leaveMarksheet'>;
260
260
  export declare const LEAVE_MARKSHEET: import("@apollo/client").DocumentNode;
261
+ /**
262
+ * deleteMarksheet
263
+ */
264
+ export interface IDeleteMarksheetVar {
265
+ marksheetId: Id;
266
+ }
267
+ export type IDeleteMarksheetData = RestrictedData<graphqlNormalize & boolean, 'deleteMarksheet'>;
268
+ export declare const DELETE_MARKSHEET: import("@apollo/client").DocumentNode;
261
269
  /**
262
270
  * endMarksheet
263
271
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TOGGLE_STRIKE_OPTIONS = exports.optimisticEndMarksheet = exports.updateCacheOnEndMarksheet = exports.END_MARKSHEET = exports.LEAVE_MARKSHEET = exports.MODIFY_CURRENT_MARKSHEET_MARK = exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID = exports.MODIFY_MARKSHEET_MARK_STRIKED = exports.MODIFY_MARKSHEET_MARK = exports.MODIFY_MARKSHEET_STATE = exports.MODIFY_TOPIC_SELECTION = exports.MODIFY_BUILDER_CONFIG = exports.MODIFY_MARKSHEET = exports.optimisticModifyMarksheetBuilderConfig = exports.START_OR_JOIN_MARKSHEET = exports.optimisticRemoveFlaggedQuestion = exports.updateCacheRemoveFlaggedQuestion = exports.optimisticAddFlaggedQuestion = exports.updateCacheAddFlaggedQuestion = exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarksheets = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.QUICK_BUILD_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_UCAT_MARKSHEET = exports.BUILD_MARKSHEET = exports.BUILD_QUESTION_MARKSHEET = void 0;
3
+ exports.TOGGLE_STRIKE_OPTIONS = exports.optimisticEndMarksheet = exports.updateCacheOnEndMarksheet = exports.END_MARKSHEET = exports.DELETE_MARKSHEET = exports.LEAVE_MARKSHEET = exports.MODIFY_CURRENT_MARKSHEET_MARK = exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID = exports.MODIFY_MARKSHEET_MARK_STRIKED = exports.MODIFY_MARKSHEET_MARK = exports.MODIFY_MARKSHEET_STATE = exports.MODIFY_TOPIC_SELECTION = exports.MODIFY_BUILDER_CONFIG = exports.MODIFY_MARKSHEET = exports.optimisticModifyMarksheetBuilderConfig = exports.START_OR_JOIN_MARKSHEET = exports.optimisticRemoveFlaggedQuestion = exports.updateCacheRemoveFlaggedQuestion = exports.optimisticAddFlaggedQuestion = exports.updateCacheAddFlaggedQuestion = exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarksheets = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.QUICK_BUILD_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_UCAT_MARKSHEET = exports.BUILD_MARKSHEET = exports.BUILD_QUESTION_MARKSHEET = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const utils_1 = require("../../../utils");
6
6
  const marksheet_1 = require("../../fragments/marksheet");
@@ -477,6 +477,13 @@ exports.LEAVE_MARKSHEET = (0, client_1.gql) `
477
477
  }
478
478
  }
479
479
  `;
480
+ exports.DELETE_MARKSHEET = (0, client_1.gql) `
481
+ mutation DeleteMarksheet($marksheetId: Int!) {
482
+ restricted {
483
+ deleteMarksheet(marksheetId: $marksheetId)
484
+ }
485
+ }
486
+ `;
480
487
  exports.END_MARKSHEET = (0, client_1.gql) `
481
488
  ${marksheet_1.MARKSHEET_STATS_FIELDS}
482
489
  mutation EndMarksheet($marksheetId: Int!) {
@@ -114,6 +114,7 @@ exports.OSCE_STATIONS = (0, client_1.gql) `
114
114
  ...OsceStationFields
115
115
  lastOsceMarksheetId
116
116
  score
117
+ avgScore
117
118
  }
118
119
  }
119
120
  }
@@ -147,6 +148,7 @@ exports.SEARCH_OSCE_STATIONS = (0, client_1.gql) `
147
148
  ...OsceStationFields
148
149
  lastOsceMarksheetId
149
150
  score
151
+ avgScore
150
152
  }
151
153
  }
152
154
  }
@@ -43,6 +43,10 @@ export declare enum EStationPictureType {
43
43
  EXAMINER = 3,
44
44
  WALKTHROUGH = 4
45
45
  }
46
+ export interface IStationExaminerQuestion {
47
+ index: number;
48
+ question: string;
49
+ }
46
50
  export interface IOsceStation {
47
51
  id: Id;
48
52
  createdAt: number | Date;
@@ -64,12 +68,17 @@ export interface IOsceStation {
64
68
  topics?: ITopic[];
65
69
  picture: IPicture | null;
66
70
  candidatePictures?: IPicture[];
71
+ /**
72
+ * This is used to tell if the station has examiner questions or not.
73
+ */
74
+ examinerQuestions?: IStationExaminerQuestion[];
67
75
  actorPictures?: IPicture[];
68
76
  examinerPictures?: IPicture[];
69
77
  walkthroughPictures?: IPicture[];
70
78
  videos?: IVideo[];
71
79
  lastOsceMarksheetId?: Id;
72
80
  score?: number;
81
+ avgScore?: number;
73
82
  status?: EUserLearningStatus;
74
83
  demo?: boolean;
75
84
  userNote: null | IUserStationNote;
@@ -226,6 +226,7 @@ export const AUTO_MARKED_OSCE_MARKSHEET_FRAGMENT = gql `
226
226
  export const COMPLETED_OSCE_STATION_FRAGMENT = gql `
227
227
  fragment CompletedOsceStationFragment on OsceStation {
228
228
  score
229
+ avgScore
229
230
  completedMarks
230
231
  lastOsceMarksheetId
231
232
  }
@@ -258,6 +258,14 @@ export interface ILeaveMarksheetVar {
258
258
  }
259
259
  export type ILeaveMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'leaveMarksheet'>;
260
260
  export declare const LEAVE_MARKSHEET: import("@apollo/client").DocumentNode;
261
+ /**
262
+ * deleteMarksheet
263
+ */
264
+ export interface IDeleteMarksheetVar {
265
+ marksheetId: Id;
266
+ }
267
+ export type IDeleteMarksheetData = RestrictedData<graphqlNormalize & boolean, 'deleteMarksheet'>;
268
+ export declare const DELETE_MARKSHEET: import("@apollo/client").DocumentNode;
261
269
  /**
262
270
  * endMarksheet
263
271
  */
@@ -467,6 +467,13 @@ export const LEAVE_MARKSHEET = gql `
467
467
  }
468
468
  }
469
469
  `;
470
+ export const DELETE_MARKSHEET = gql `
471
+ mutation DeleteMarksheet($marksheetId: Int!) {
472
+ restricted {
473
+ deleteMarksheet(marksheetId: $marksheetId)
474
+ }
475
+ }
476
+ `;
470
477
  export const END_MARKSHEET = gql `
471
478
  ${MARKSHEET_STATS_FIELDS}
472
479
  mutation EndMarksheet($marksheetId: Int!) {
@@ -111,6 +111,7 @@ export const OSCE_STATIONS = gql `
111
111
  ...OsceStationFields
112
112
  lastOsceMarksheetId
113
113
  score
114
+ avgScore
114
115
  }
115
116
  }
116
117
  }
@@ -144,6 +145,7 @@ export const SEARCH_OSCE_STATIONS = gql `
144
145
  ...OsceStationFields
145
146
  lastOsceMarksheetId
146
147
  score
148
+ avgScore
147
149
  }
148
150
  }
149
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.245",
3
+ "version": "2.6.246",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",