@quesmed/types 2.6.221 → 2.6.223

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.
@@ -1,4 +1,4 @@
1
- import { IChapter, IOsceStation, IQuestionPrescription, Id } from '../models';
1
+ import { EDifficultyType, EOsceType, IChapter, IOsceStation, IOsceStationMark, IQuestionPrescription, Id } from '../models';
2
2
  import { EMockTestType } from './MockTest';
3
3
  import { IPicture } from './Picture';
4
4
  import { EEntitlementType, EProductType } from './Product';
@@ -146,7 +146,16 @@ export interface IJobRecordChapter {
146
146
  topicTypeId?: number | null;
147
147
  }
148
148
  export interface IJobRecordStation {
149
- station: string;
149
+ actorBrief: string;
150
+ candidateBrief: string;
151
+ difficulty: EDifficultyType;
152
+ entitlementIds: number[];
153
+ examinerBrief: string;
154
+ explanation: string;
155
+ hiddenName: string;
156
+ marks: Pick<IOsceStationMark, 'header' | 'name' | 'index'>[];
157
+ name: string;
158
+ osceTypeId: EOsceType;
150
159
  }
151
160
  export interface IJobRecordMockTest {
152
161
  question: string;
@@ -229,6 +238,10 @@ export interface IJobMetaData {
229
238
  conceptId: number | null;
230
239
  entitlementIds: EEntitlementType[] | null;
231
240
  } | null;
241
+ station?: {
242
+ typeId: EOsceType | null;
243
+ entitlementIds: EEntitlementType[] | null;
244
+ } | null;
232
245
  }
233
246
  export interface IJobChat {
234
247
  id: string;
@@ -118,7 +118,7 @@ const IsJobRecordMockTest = (record) => {
118
118
  };
119
119
  exports.IsJobRecordMockTest = IsJobRecordMockTest;
120
120
  const IsJobRecordStation = (record) => {
121
- return !!record && typeof record === 'object' && 'question' in record;
121
+ return !!record && typeof record === 'object' && 'actorBrief' in record;
122
122
  };
123
123
  exports.IsJobRecordStation = IsJobRecordStation;
124
124
  const IsJobRecordChapter = (record) => {
@@ -76,7 +76,9 @@ export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
76
76
  /**
77
77
  * flaggedQuestionMarksheet
78
78
  */
79
- export type IFlaggedQuestionsMarksheetVar = null;
79
+ export type IFlaggedQuestionsMarksheetVar = {
80
+ questionIds?: number[];
81
+ };
80
82
  export type IFlaggedQuestionsMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'flaggedQuestionsMarksheet'>;
81
83
  export declare const FLAGGED_QUESTIONS_MARKSHEET: import("@apollo/client").DocumentNode;
82
84
  export interface IMarksheetFeedbackVar {
@@ -50,9 +50,9 @@ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
50
50
  `;
51
51
  exports.MARKSHEETS = (0, client_1.gql) `
52
52
  ${marksheet_1.MARKSHEET_STATS_FIELDS}
53
- query Marksheets($options: MarksheetOptions!) {
53
+ query Marksheets($filter: MarksheetFilterInput!) {
54
54
  restricted {
55
- marksheets(options: $options) {
55
+ marksheets(filter: $filter) {
56
56
  results {
57
57
  id
58
58
  source
@@ -151,9 +151,9 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
151
151
  `;
152
152
  exports.FLAGGED_QUESTIONS_MARKSHEET = (0, client_1.gql) `
153
153
  ${marksheet_1.MARKSHEET_FIELDS}
154
- query FlaggedQuestionsMarksheet {
154
+ query FlaggedQuestionsMarksheet($questionIds: [Int!]) {
155
155
  restricted {
156
- flaggedQuestionsMarksheet {
156
+ flaggedQuestionsMarksheet(questionIds: $questionIds) {
157
157
  ...MarksheetFields
158
158
  }
159
159
  }
@@ -1,4 +1,4 @@
1
- import { IChapter, IOsceStation, IQuestionPrescription, Id } from '../models';
1
+ import { EDifficultyType, EOsceType, IChapter, IOsceStation, IOsceStationMark, IQuestionPrescription, Id } from '../models';
2
2
  import { EMockTestType } from './MockTest';
3
3
  import { IPicture } from './Picture';
4
4
  import { EEntitlementType, EProductType } from './Product';
@@ -146,7 +146,16 @@ export interface IJobRecordChapter {
146
146
  topicTypeId?: number | null;
147
147
  }
148
148
  export interface IJobRecordStation {
149
- station: string;
149
+ actorBrief: string;
150
+ candidateBrief: string;
151
+ difficulty: EDifficultyType;
152
+ entitlementIds: number[];
153
+ examinerBrief: string;
154
+ explanation: string;
155
+ hiddenName: string;
156
+ marks: Pick<IOsceStationMark, 'header' | 'name' | 'index'>[];
157
+ name: string;
158
+ osceTypeId: EOsceType;
150
159
  }
151
160
  export interface IJobRecordMockTest {
152
161
  question: string;
@@ -229,6 +238,10 @@ export interface IJobMetaData {
229
238
  conceptId: number | null;
230
239
  entitlementIds: EEntitlementType[] | null;
231
240
  } | null;
241
+ station?: {
242
+ typeId: EOsceType | null;
243
+ entitlementIds: EEntitlementType[] | null;
244
+ } | null;
232
245
  }
233
246
  export interface IJobChat {
234
247
  id: string;
@@ -113,7 +113,7 @@ export const IsJobRecordMockTest = (record) => {
113
113
  return !!record && typeof record === 'object' && 'question' in record;
114
114
  };
115
115
  export const IsJobRecordStation = (record) => {
116
- return !!record && typeof record === 'object' && 'question' in record;
116
+ return !!record && typeof record === 'object' && 'actorBrief' in record;
117
117
  };
118
118
  export const IsJobRecordChapter = (record) => {
119
119
  return !!record && typeof record === 'object' && 'summary' in record;
@@ -76,7 +76,9 @@ export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
76
76
  /**
77
77
  * flaggedQuestionMarksheet
78
78
  */
79
- export type IFlaggedQuestionsMarksheetVar = null;
79
+ export type IFlaggedQuestionsMarksheetVar = {
80
+ questionIds?: number[];
81
+ };
80
82
  export type IFlaggedQuestionsMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'flaggedQuestionsMarksheet'>;
81
83
  export declare const FLAGGED_QUESTIONS_MARKSHEET: import("@apollo/client").DocumentNode;
82
84
  export interface IMarksheetFeedbackVar {
@@ -47,9 +47,9 @@ export const MARKSHEETS_WINDOW = gql `
47
47
  `;
48
48
  export const MARKSHEETS = gql `
49
49
  ${MARKSHEET_STATS_FIELDS}
50
- query Marksheets($options: MarksheetOptions!) {
50
+ query Marksheets($filter: MarksheetFilterInput!) {
51
51
  restricted {
52
- marksheets(options: $options) {
52
+ marksheets(filter: $filter) {
53
53
  results {
54
54
  id
55
55
  source
@@ -148,9 +148,9 @@ export const FLAGGED_QUESTIONS = gql `
148
148
  `;
149
149
  export const FLAGGED_QUESTIONS_MARKSHEET = gql `
150
150
  ${MARKSHEET_FIELDS}
151
- query FlaggedQuestionsMarksheet {
151
+ query FlaggedQuestionsMarksheet($questionIds: [Int!]) {
152
152
  restricted {
153
- flaggedQuestionsMarksheet {
153
+ flaggedQuestionsMarksheet(questionIds: $questionIds) {
154
154
  ...MarksheetFields
155
155
  }
156
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.221",
3
+ "version": "2.6.223",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",