@quesmed/types-rn 2.6.132 → 2.6.134

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.
@@ -10,7 +10,12 @@ export declare enum EMockTestType {
10
10
  ANATOMY_SPOTTER = 5,
11
11
  UKMLA = 6,
12
12
  MRCP = 7,
13
- UKMLA_FULL = 8
13
+ UKMLA_FULL = 8,
14
+ FULL_MOCK = 9,
15
+ VERBAL_REASONING = 10,
16
+ DECISION_MAKING = 11,
17
+ QUANTITATIVE_REASONING = 12,
18
+ SITUATIONAL_JUDGEMENT = 13
14
19
  }
15
20
  export interface IMockTestType {
16
21
  id: EMockTestType;
@@ -12,4 +12,9 @@ var EMockTestType;
12
12
  EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
13
13
  EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
14
14
  EMockTestType[EMockTestType["UKMLA_FULL"] = 8] = "UKMLA_FULL";
15
+ EMockTestType[EMockTestType["FULL_MOCK"] = 9] = "FULL_MOCK";
16
+ EMockTestType[EMockTestType["VERBAL_REASONING"] = 10] = "VERBAL_REASONING";
17
+ EMockTestType[EMockTestType["DECISION_MAKING"] = 11] = "DECISION_MAKING";
18
+ EMockTestType[EMockTestType["QUANTITATIVE_REASONING"] = 12] = "QUANTITATIVE_REASONING";
19
+ EMockTestType[EMockTestType["SITUATIONAL_JUDGEMENT"] = 13] = "SITUATIONAL_JUDGEMENT";
15
20
  })(EMockTestType = exports.EMockTestType || (exports.EMockTestType = {}));
@@ -106,7 +106,8 @@ export declare enum EAppType {
106
106
  MRCP = 3,
107
107
  INTERVIEW = 4,
108
108
  MSRA = 5,
109
- PLAB = 6
109
+ PLAB = 6,
110
+ UCAT = 7
110
111
  }
111
112
  export declare enum EProductDuration {
112
113
  ALL = 0,
package/models/Product.js CHANGED
@@ -95,6 +95,7 @@ var EAppType;
95
95
  EAppType[EAppType["INTERVIEW"] = 4] = "INTERVIEW";
96
96
  EAppType[EAppType["MSRA"] = 5] = "MSRA";
97
97
  EAppType[EAppType["PLAB"] = 6] = "PLAB";
98
+ EAppType[EAppType["UCAT"] = 7] = "UCAT";
98
99
  })(EAppType = exports.EAppType || (exports.EAppType = {}));
99
100
  var EProductDuration;
100
101
  (function (EProductDuration) {
@@ -76,7 +76,7 @@ export interface IQuestionCommentLike {
76
76
  likeTrueDislikeFalse: boolean;
77
77
  }
78
78
  export type IQuestionAnswer = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | IPrescribeMark[] | [string, string][] | [string, string, string] | string[] | [string, string];
79
- export type IQuestionAll = IQuestion | IQuestionSBA | IQuestionQA | IQuestionMultiQ | IQuestionPrescribe | IQuestionEMQ | IQuestionSelect3 | IQuestionRanking | IQuestionVerbalVeracity | IQuestionVerbalReading | IQuestionDecisionSBA | IQuestionDecisionYesNo | IQuestionQuantitativeSBA | IQuestionSjtSingleChoice | IQuestionSjtTwoAnswer;
79
+ export type IQuestionAll = IQuestion | IQuestionSBA | IQuestionQA | IQuestionMultiQ | IQuestionPrescribe | IQuestionEMQ | IQuestionSelect3 | IQuestionRanking | IQuestionSjtTwoAnswer;
80
80
  export interface IQuestion {
81
81
  id: Id;
82
82
  createdAt: Date | number;
@@ -87,7 +87,7 @@ export interface IQuestion {
87
87
  conceptId: Id;
88
88
  stemId: Id | null;
89
89
  public: boolean;
90
- stem?: Pick<IChapter, 'id' | 'explanation'>;
90
+ stem?: IChapter;
91
91
  themes?: ITheme[];
92
92
  concept?: IConcept;
93
93
  conditions?: ICondition[];
@@ -111,6 +111,8 @@ export interface IQuestion {
111
111
  isLikedByMe?: EQuestionLike;
112
112
  comments?: IQuestionComment[];
113
113
  highlights?: IHighlightNode[];
114
+ timeTaken?: number;
115
+ avgTimeTaken?: number;
114
116
  }
115
117
  export interface IQuestionChoice {
116
118
  id: Id;
@@ -173,15 +175,10 @@ export interface IQuestionQAAnswer {
173
175
  dose: string;
174
176
  units: string;
175
177
  }
176
- export declare function isQuestionQA(data: IQuestionAll): data is IQuestionQA;
177
178
  export interface IQuestionQA extends IQuestion {
178
179
  answer: [IQuestionQAAnswer];
179
180
  qaAnswer: [IQuestionQAAnswer];
180
181
  }
181
- export declare function isQuestionMultiQ(data: IQuestionAll): data is IQuestionMultiQ;
182
- export declare function isQuestionEMQ(data: IQuestionAll): data is IQuestionEMQ;
183
- export declare function isQuestionSelect3(data: IQuestionAll): data is IQuestionSelect3;
184
- export declare function isQuestionRanking(data: IQuestionAll): data is IQuestionRanking;
185
182
  export interface IQuestionMultiQ extends IQuestion {
186
183
  answer: [string[], string[]];
187
184
  multiAnswer: [string[], string[]];
@@ -198,35 +195,10 @@ export interface IQuestionRanking extends IQuestion {
198
195
  answer: string[];
199
196
  rankingAnswer: string[];
200
197
  }
201
- export interface IQuestionVerbalVeracity extends IQuestion {
202
- answer: [string];
203
- verbalVeracityAnswer: [string];
204
- }
205
- export interface IQuestionVerbalReading extends IQuestion {
206
- answer: [string];
207
- verbalReadingAnswer: [string];
208
- }
209
- export interface IQuestionQuantitativeSBA extends IQuestion {
210
- answer: [string];
211
- quantitativeSbaAnswer: [string];
212
- }
213
- export interface IQuestionDecisionSBA extends IQuestion {
214
- answer: [string];
215
- decisionSbaAnswer: [string];
216
- }
217
- export interface IQuestionDecisionYesNo extends IQuestion {
218
- answer: [string[], string[]];
219
- decisionYesNoAnswer: [string];
220
- }
221
- export interface IQuestionSjtSingleChoice extends IQuestion {
222
- answer: [string];
223
- sjtSingleChoiceAnswer: [string];
224
- }
225
198
  export interface IQuestionSjtTwoAnswer extends IQuestion {
226
199
  answer: [string, string];
227
200
  sjtTwoAnswer: [string, string];
228
201
  }
229
- export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
230
202
  export interface IQuestionPrescribe extends IQuestion {
231
203
  answer: IPrescribeMark[];
232
204
  prescribeAnswer: IPrescribeAnswer[];
@@ -236,6 +208,13 @@ export type IPrescribeAnswerData = {
236
208
  visible: boolean;
237
209
  label: string;
238
210
  };
211
+ export declare function isQuestionQA(data: IQuestionAll): data is IQuestionQA;
212
+ export declare function isQuestionMultiQ(data: IQuestionAll): data is IQuestionMultiQ;
213
+ export declare function isQuestionEMQ(data: IQuestionAll): data is IQuestionEMQ;
214
+ export declare function isQuestionSelect3(data: IQuestionAll): data is IQuestionSelect3;
215
+ export declare function isQuestionRanking(data: IQuestionAll): data is IQuestionRanking;
216
+ export declare function isQuestionSjtTwoAnswer(data: IQuestionAll): data is IQuestionSjtTwoAnswer;
217
+ export declare function isQuestionPrescribe(data: IQuestionAll): data is IQuestionPrescribe;
239
218
  export interface IPrescribeAnswer {
240
219
  drug: IPrescribeAnswerData;
241
220
  dose: IPrescribeAnswerData;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isQuestionPrescribe = exports.isQuestionRanking = exports.isQuestionSelect3 = exports.isQuestionEMQ = exports.isQuestionMultiQ = exports.isQuestionQA = exports.isQuestionSBA = exports.EQuestionLike = exports.EQuestionType = exports.EVeracityAnswer = exports.EPsaSectionType = void 0;
3
+ exports.isQuestionPrescribe = exports.isQuestionSjtTwoAnswer = exports.isQuestionRanking = exports.isQuestionSelect3 = exports.isQuestionEMQ = exports.isQuestionMultiQ = exports.isQuestionQA = exports.isQuestionSBA = exports.EQuestionLike = exports.EQuestionType = exports.EVeracityAnswer = exports.EPsaSectionType = void 0;
4
4
  var EPsaSectionType;
5
5
  (function (EPsaSectionType) {
6
6
  EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
@@ -46,6 +46,11 @@ function isQuestionSBA(data) {
46
46
  return [
47
47
  EQuestionType.SINGLE_BEST_ANSWER,
48
48
  EQuestionType.SBA_WITH_MULTIPLE_CHOICES,
49
+ EQuestionType.VERBAL_VERACITY,
50
+ EQuestionType.VERBAL_READING_COMPREHENSION,
51
+ EQuestionType.DECISION_MAKING_SBA,
52
+ EQuestionType.QUANTITATIVE_REASONING_SBA,
53
+ EQuestionType.SJT_SINGLE_CHOICE,
49
54
  ].includes(data.typeId);
50
55
  }
51
56
  exports.isQuestionSBA = isQuestionSBA;
@@ -54,7 +59,10 @@ function isQuestionQA(data) {
54
59
  }
55
60
  exports.isQuestionQA = isQuestionQA;
56
61
  function isQuestionMultiQ(data) {
57
- return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
62
+ return [
63
+ EQuestionType.MULTIPLE_ANSWERS,
64
+ EQuestionType.DECISION_MAKING_YES_NO,
65
+ ].includes(data.typeId);
58
66
  }
59
67
  exports.isQuestionMultiQ = isQuestionMultiQ;
60
68
  function isQuestionEMQ(data) {
@@ -69,6 +77,10 @@ function isQuestionRanking(data) {
69
77
  return data.typeId === EQuestionType.RANKING_ANSWER;
70
78
  }
71
79
  exports.isQuestionRanking = isQuestionRanking;
80
+ function isQuestionSjtTwoAnswer(data) {
81
+ return data.typeId === EQuestionType.SJT_TWO_ANSWERS;
82
+ }
83
+ exports.isQuestionSjtTwoAnswer = isQuestionSjtTwoAnswer;
72
84
  function isQuestionPrescribe(data) {
73
85
  return data.typeId === EQuestionType.PRESCRIPTION_ANSWER;
74
86
  }
package/models/Ucat.d.ts CHANGED
@@ -1,11 +1,4 @@
1
1
  import { EEntitlementType, IEntitlement } from './Product';
2
- export interface IQuestionStem {
3
- id: number;
4
- explanation: string;
5
- public: boolean;
6
- createdAt: number | Date;
7
- updatedAt: number | Date;
8
- }
9
2
  export interface ITheme {
10
3
  id: number;
11
4
  name: string;
package/models/User.d.ts CHANGED
@@ -75,6 +75,7 @@ export interface IPayload {
75
75
  paediatricsInterviewSubscriptionEndDate: number | null;
76
76
  plab1SubscriptionEndDate: number | null;
77
77
  plab2SubscriptionEndDate: number | null;
78
+ ucatSubscriptionEndDate: number | null;
78
79
  ver: number;
79
80
  }
80
81
  export interface IDailyProgressVar {
@@ -182,6 +183,7 @@ export interface IUser {
182
183
  paediatricsInterviewSubscriptionEndDate: number | Date | null;
183
184
  plab1SubscriptionEndDate: number | Date | null;
184
185
  plab2SubscriptionEndDate: number | Date | null;
186
+ ucatSubscriptionEndDate: number | Date | null;
185
187
  settings: IUserSettings;
186
188
  }
187
189
  export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
@@ -196,6 +198,7 @@ export interface IUserCompletedQuestion {
196
198
  correct: boolean;
197
199
  question: IQuestion;
198
200
  concept: IConcept;
201
+ timeTaken: number;
199
202
  }
200
203
  export interface IUserCompletedCard {
201
204
  id: Id;
@@ -252,6 +255,7 @@ export interface IUserQuestionsFirstAttempt {
252
255
  userId: Id;
253
256
  questionId: Id;
254
257
  answer: boolean;
258
+ timeTaken: number;
255
259
  }
256
260
  export interface IUserConceptStatus {
257
261
  id: Id;
package/models/User.js CHANGED
@@ -46,6 +46,7 @@ exports.subscriptionDates = [
46
46
  'paediatricsInterviewSubscriptionEndDate',
47
47
  'plab1SubscriptionEndDate',
48
48
  'plab2SubscriptionEndDate',
49
+ 'ucatSubscriptionEndDate',
49
50
  ];
50
51
  exports.dateProductMapping = {
51
52
  qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
@@ -65,6 +66,7 @@ exports.dateProductMapping = {
65
66
  paediatricsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_PAEDIATRICS,
66
67
  plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
67
68
  plab2SubscriptionEndDate: Product_1.EProductType.PLAB2,
69
+ ucatSubscriptionEndDate: Product_1.EProductType.UCAT,
68
70
  };
69
71
  var EClassYearGroup;
70
72
  (function (EClassYearGroup) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.132",
3
+ "version": "2.6.134",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -111,7 +111,13 @@ exports.productMapping = {
111
111
  [models_1.EProductType.UCAT]: {
112
112
  db: enums_1.DB_TYPE.UCAT,
113
113
  topicType: [],
114
- mockType: [],
114
+ mockType: [
115
+ models_1.EMockTestType.FULL_MOCK,
116
+ models_1.EMockTestType.VERBAL_REASONING,
117
+ models_1.EMockTestType.DECISION_MAKING,
118
+ models_1.EMockTestType.QUANTITATIVE_REASONING,
119
+ models_1.EMockTestType.SITUATIONAL_JUDGEMENT,
120
+ ],
115
121
  },
116
122
  };
117
123
  const topicEntitlementMap = {
@@ -125,6 +131,7 @@ const topicEntitlementMap = {
125
131
  [models_1.ETopicType.INTERVIEW_IMT]: models_1.EEntitlementType.INTERVIEW_IMT,
126
132
  [models_1.ETopicType.INTERVIEW_RADIOLOGY]: models_1.EEntitlementType.INTERVIEW_RADIOLOGY,
127
133
  [models_1.ETopicType.INTERVIEW_PAEDIATRICS]: models_1.EEntitlementType.INTERVIEW_PAEDIATRICS,
134
+ [models_1.ETopicType.UCAT]: models_1.EEntitlementType.VERBAL_REASONING,
128
135
  };
129
136
  const osceEntitlementMap = {
130
137
  [models_1.EOsceType.HISTORY_TAKING]: models_1.EEntitlementType.HISTORY_TAKING,
@@ -159,6 +166,12 @@ const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
159
166
  entitlement = paceEntitlementMap[typeId];
160
167
  break;
161
168
  }
169
+ case models_1.EProductType.UCAT: {
170
+ if (entitlementInfo) {
171
+ entitlement = entitlementInfo;
172
+ break;
173
+ }
174
+ }
162
175
  case models_1.EProductType.OSCE:
163
176
  case models_1.EProductType.PLAB2: {
164
177
  entitlement = osceEntitlementMap[typeId];
@@ -1,5 +1,6 @@
1
1
  export declare const QUESTION_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
2
2
  export declare const QUESTION_UKMLA_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const QUESTION_UCAT_FIELDS: import("@apollo/client").DocumentNode;
3
4
  export declare const QUESTION_CATEGORY_FIELDS: import("@apollo/client").DocumentNode;
4
5
  export declare const QUESTION_FIELDS: import("@apollo/client").DocumentNode;
5
6
  export declare const QUESTION_WITH_HIGHLIGHT_FIELDS: import("@apollo/client").DocumentNode;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QUESTION_WITH_LEARNING_FIELDS = exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_UKMLA_FIELDS = exports.QUESTION_COMMENT_FIELDS = void 0;
3
+ exports.QUESTION_WITH_LEARNING_FIELDS = exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_UCAT_FIELDS = exports.QUESTION_UKMLA_FIELDS = exports.QUESTION_COMMENT_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const chapter_1 = require("./chapter");
5
6
  const concept_1 = require("./concept");
6
7
  const highlight_1 = require("./highlight");
7
8
  const picture_1 = require("./picture");
@@ -59,6 +60,25 @@ exports.QUESTION_UKMLA_FIELDS = (0, client_1.gql) `
59
60
  }
60
61
  }
61
62
  `;
63
+ exports.QUESTION_UCAT_FIELDS = (0, client_1.gql) `
64
+ ${chapter_1.CHAPTER_FIELDS}
65
+ fragment QuestionUcatFields on Question {
66
+ themes {
67
+ id
68
+ name
69
+ entitlementId
70
+ entitlement {
71
+ id
72
+ name
73
+ }
74
+ }
75
+ timeTaken
76
+ avgTimeTaken
77
+ stem {
78
+ ...ChapterFields
79
+ }
80
+ }
81
+ `;
62
82
  exports.QUESTION_CATEGORY_FIELDS = (0, client_1.gql) `
63
83
  fragment QuestionCategoryFields on Question {
64
84
  ... on QuestionSBA {
@@ -121,6 +141,7 @@ exports.QUESTION_CATEGORY_FIELDS = (0, client_1.gql) `
121
141
  }
122
142
  `;
123
143
  exports.QUESTION_FIELDS = (0, client_1.gql) `
144
+ ${exports.QUESTION_UCAT_FIELDS}
124
145
  ${exports.QUESTION_UKMLA_FIELDS}
125
146
  ${highlight_1.HIGHLIGHT_FIELDS}
126
147
  ${exports.QUESTION_CATEGORY_FIELDS}
@@ -168,6 +189,7 @@ exports.QUESTION_FIELDS = (0, client_1.gql) `
168
189
  }
169
190
  ...QuestionUkmlaFields
170
191
  ...QuestionCategoryFields
192
+ ...QuestionUcatFields
171
193
  }
172
194
  `;
173
195
  // used in cache updator
@@ -125,6 +125,9 @@ exports.USER_FIELDS = (0, client_1.gql) `
125
125
  plab1SubscriptionEndDate
126
126
  plab2SubscriptionEndDate
127
127
 
128
+ # ucat
129
+ ucatSubscriptionEndDate
130
+
128
131
  # user-specific keys
129
132
  # marksheets
130
133
  # marksheetsCount
@@ -1,6 +1,6 @@
1
1
  import { ApolloCache, ApolloClient } from '@apollo/client';
2
2
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
3
- import { EDifficultyType, Id } from '../../../models';
3
+ import { EDifficultyType, EEntitlementType, Id } from '../../../models';
4
4
  import { RestrictedData, graphqlNormalize } from '../../types';
5
5
  import { EMarksheetAction, EMarksheetState, EStudyAction, IMarksheet, IMarksheetMark } from './../../../models/Marksheet';
6
6
  import { IUser, IUserFlaggedQuestion } from './../../../models/User';
@@ -31,6 +31,22 @@ export interface IBuildMarksheetVar {
31
31
  }
32
32
  export type IBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMarksheet'>;
33
33
  export declare const BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
34
+ /**
35
+ * buildUcatMarksheet
36
+ */
37
+ export interface IBuildUcatMarksheetInput {
38
+ topicIds: number[];
39
+ conceptIds: number[];
40
+ entitlementId: EEntitlementType;
41
+ setCount: number;
42
+ duration: number;
43
+ marksheetId?: number;
44
+ }
45
+ export interface IBuildUcatMarksheetVar {
46
+ input: IBuildUcatMarksheetInput;
47
+ }
48
+ export type IBuildUcatMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildUcatMarksheet'>;
49
+ export declare const BUILD_UCAT_MARKSHEET: import("@apollo/client").DocumentNode;
34
50
  /**
35
51
  * reBuildMarksheet
36
52
  */
@@ -188,7 +204,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
188
204
  currentMarkId?: number | undefined;
189
205
  topicConceptData?: string | undefined;
190
206
  preBuildData?: IPreBuildMarksheet | undefined;
191
- entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
207
+ entitlementId: import("../../../models").EProductType | EEntitlementType;
192
208
  };
193
209
  };
194
210
  };
@@ -281,7 +297,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
281
297
  topicConceptData?: string | undefined;
282
298
  preBuildData?: IPreBuildMarksheet | undefined;
283
299
  builderConfig?: IBuildConfigData | undefined;
284
- entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
300
+ entitlementId: import("../../../models").EProductType | EEntitlementType;
285
301
  __typename: string;
286
302
  };
287
303
  };
@@ -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_MARKSHEET = exports.BUILD_QUESTION_MARKSHEET = void 0;
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;
4
4
  const client_1 = require("@apollo/client");
5
5
  const marksheet_1 = require("../../fragments/marksheet");
6
6
  const restricted_1 = require("../../query/restricted");
@@ -24,6 +24,16 @@ exports.BUILD_MARKSHEET = (0, client_1.gql) `
24
24
  }
25
25
  }
26
26
  `;
27
+ exports.BUILD_UCAT_MARKSHEET = (0, client_1.gql) `
28
+ ${marksheet_1.MARKSHEET_FIELDS}
29
+ mutation BuildUcatMarksheet($input: BuildUcatMarksheetInput!) {
30
+ restricted {
31
+ buildUcatMarksheet(input: $input) {
32
+ ...MarksheetFields
33
+ }
34
+ }
35
+ }
36
+ `;
27
37
  /**
28
38
  * reBuildMarksheet
29
39
  */
@@ -40,13 +40,13 @@ const getQuestionTypeName = (typeId) => {
40
40
  [models_1.EQuestionType.EXTENDED_MATCHING_ANSWER]: 'QuestionEMQ',
41
41
  [models_1.EQuestionType.RANKING_ANSWER]: 'QuestionRanking',
42
42
  [models_1.EQuestionType.SELECT_THREE_ANSWER]: 'QuestionSelect3',
43
- [models_1.EQuestionType.VERBAL_READING_COMPREHENSION]: 'QuestionVerbalComprehension',
44
- [models_1.EQuestionType.VERBAL_VERACITY]: 'QuestionVerbalVeracity',
45
- [models_1.EQuestionType.DECISION_MAKING_SBA]: 'QuestionDecisionMakingSBA',
46
- [models_1.EQuestionType.DECISION_MAKING_YES_NO]: 'QuestionDecisionMakingYesNo',
47
- [models_1.EQuestionType.QUANTITATIVE_REASONING_SBA]: 'QuestionQuantitativeReasoningSBA',
48
- [models_1.EQuestionType.SJT_SINGLE_CHOICE]: 'QuestionSJTSingleChoice',
49
- [models_1.EQuestionType.SJT_TWO_ANSWERS]: 'QuestionSJTTwoAnswers',
43
+ [models_1.EQuestionType.VERBAL_READING_COMPREHENSION]: 'QuestionSBA',
44
+ [models_1.EQuestionType.VERBAL_VERACITY]: 'QuestionSBA',
45
+ [models_1.EQuestionType.QUANTITATIVE_REASONING_SBA]: 'QuestionSBA',
46
+ [models_1.EQuestionType.DECISION_MAKING_SBA]: 'QuestionSBA',
47
+ [models_1.EQuestionType.DECISION_MAKING_YES_NO]: 'QuestionMultiA',
48
+ [models_1.EQuestionType.SJT_SINGLE_CHOICE]: 'QuestionSBA',
49
+ [models_1.EQuestionType.SJT_TWO_ANSWERS]: 'QuestionSelect3',
50
50
  };
51
51
  return mappedObj[typeId] ?? 'QuestionSBA';
52
52
  };
@@ -0,0 +1,17 @@
1
+ import { RestrictedData } from '../../types';
2
+ export type IUcatAnalyticsVar = {
3
+ updatedAt?: Date | number;
4
+ };
5
+ export interface IUcatAnalytics {
6
+ id: number;
7
+ name: string;
8
+ timeTaken: number;
9
+ avgTimeTaken: number;
10
+ total: number;
11
+ completed: number;
12
+ score: number;
13
+ avgScore: number;
14
+ stats: IUcatAnalytics[];
15
+ }
16
+ export type IUcatAnalyticsData = RestrictedData<IUcatAnalytics, 'ucatAnalytics'>;
17
+ export declare const UCAT_ANALYTICS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UCAT_ANALYTICS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ exports.UCAT_ANALYTICS = (0, client_1.gql) `
6
+ query UcatAnalytics($updatedAt: Date) {
7
+ restricted {
8
+ ucatAnalytics(updatedAt: $updatedAt) {
9
+ id
10
+ name
11
+ timeTaken
12
+ avgTimeTaken
13
+ total
14
+ completed
15
+ score
16
+ avgScore
17
+ stats {
18
+ id
19
+ name
20
+ timeTaken
21
+ avgTimeTaken
22
+ total
23
+ completed
24
+ score
25
+ avgScore
26
+ }
27
+ }
28
+ }
29
+ }
30
+ `;
@@ -1,3 +1,4 @@
1
+ export * from './analytics';
1
2
  export * from './chapter';
2
3
  export * from './concepts';
3
4
  export * from './global';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./analytics"), exports);
17
18
  __exportStar(require("./chapter"), exports);
18
19
  __exportStar(require("./concepts"), exports);
19
20
  __exportStar(require("./global"), exports);