@quesmed/types 2.6.189 → 2.6.191

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.
@@ -132,15 +132,19 @@ export interface IJobRecordChapter {
132
132
  explanation: string;
133
133
  }
134
134
  export interface IJobRecordStation {
135
- question: string;
135
+ station: string;
136
136
  }
137
137
  export interface IJobRecordMockTest {
138
138
  question: string;
139
+ stem?: string | null;
140
+ stemFromRecordId?: IJobRecord['id'] | null;
139
141
  conceptId?: number | null;
140
142
  explanation?: string | null;
141
143
  learningPoint?: string | null;
142
- typeId: EQuestionType;
143
144
  answer: Exclude<IQuestionAnswer, 'string'>;
145
+ themeIds?: number[];
146
+ typeId: EQuestionType;
147
+ subTypeId?: string | null;
144
148
  choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
145
149
  explanation?: IQuestionChoice['explanation'];
146
150
  }>;
@@ -192,7 +196,6 @@ export interface IJobRecord {
192
196
  referenceCount: number;
193
197
  }
194
198
  export interface IJobMetaData {
195
- productId: EProductType;
196
199
  mockTest?: {
197
200
  mockTestId: number;
198
201
  isNew: boolean;
@@ -238,6 +241,7 @@ export interface IJob {
238
241
  priority: EJobPriority;
239
242
  totalRecords: number;
240
243
  createdBy: IUser['id'];
244
+ productId: EProductType;
241
245
  metadata: IJobMetaData;
242
246
  dueDate: Date | number;
243
247
  createdAt: Date | number;
@@ -8,10 +8,10 @@ export declare enum EMockTestType {
8
8
  MISCELLANEOUS = 3,
9
9
  UNIVERSITY_SPECIFIC = 4,
10
10
  ANATOMY_SPOTTER = 5,
11
- UKMLA = 6,
11
+ UKMLA_MINI_MOCK = 6,
12
12
  MRCP = 7,
13
- UKMLA_FULL = 8,
14
- FULL_MOCK = 9,
13
+ UKMLA_FULL_MOCK = 8,
14
+ UCAT_FULL_MOCK = 9,
15
15
  VERBAL_REASONING = 10,
16
16
  DECISION_MAKING = 11,
17
17
  QUANTITATIVE_REASONING = 12,
@@ -43,6 +43,7 @@ export interface IUserMockTest {
43
43
  correct: number;
44
44
  incorrect: number;
45
45
  totalQuestions: number;
46
+ totalSets: number;
46
47
  lastMarksheetId?: Id;
47
48
  lastMarksheetStartedAt?: number | Date;
48
49
  lastMarksheetEndedAt?: number | Date;
@@ -9,10 +9,10 @@ var EMockTestType;
9
9
  EMockTestType[EMockTestType["MISCELLANEOUS"] = 3] = "MISCELLANEOUS";
10
10
  EMockTestType[EMockTestType["UNIVERSITY_SPECIFIC"] = 4] = "UNIVERSITY_SPECIFIC";
11
11
  EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
12
- EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
12
+ EMockTestType[EMockTestType["UKMLA_MINI_MOCK"] = 6] = "UKMLA_MINI_MOCK";
13
13
  EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
14
- EMockTestType[EMockTestType["UKMLA_FULL"] = 8] = "UKMLA_FULL";
15
- EMockTestType[EMockTestType["FULL_MOCK"] = 9] = "FULL_MOCK";
14
+ EMockTestType[EMockTestType["UKMLA_FULL_MOCK"] = 8] = "UKMLA_FULL_MOCK";
15
+ EMockTestType[EMockTestType["UCAT_FULL_MOCK"] = 9] = "UCAT_FULL_MOCK";
16
16
  EMockTestType[EMockTestType["VERBAL_REASONING"] = 10] = "VERBAL_REASONING";
17
17
  EMockTestType[EMockTestType["DECISION_MAKING"] = 11] = "DECISION_MAKING";
18
18
  EMockTestType[EMockTestType["QUANTITATIVE_REASONING"] = 12] = "QUANTITATIVE_REASONING";
@@ -15,8 +15,8 @@ const ALL_MOCKS_WITHOUT_ANATOMY = [
15
15
  models_1.EMockTestType.PSA,
16
16
  models_1.EMockTestType.MISCELLANEOUS,
17
17
  models_1.EMockTestType.UNIVERSITY_SPECIFIC,
18
- models_1.EMockTestType.UKMLA,
19
- models_1.EMockTestType.UKMLA_FULL,
18
+ models_1.EMockTestType.UKMLA_MINI_MOCK,
19
+ models_1.EMockTestType.UKMLA_FULL_MOCK,
20
20
  ];
21
21
  const ALL_MOCKS = [models_1.EMockTestType.ANATOMY_SPOTTER, ...ALL_MOCKS_WITHOUT_ANATOMY];
22
22
  exports.productMapping = {
@@ -127,7 +127,7 @@ exports.productMapping = {
127
127
  db: enums_1.DB_TYPE.UCAT,
128
128
  topicType: [models_1.ETopicType.UCAT],
129
129
  mockType: [
130
- models_1.EMockTestType.FULL_MOCK,
130
+ models_1.EMockTestType.UCAT_FULL_MOCK,
131
131
  models_1.EMockTestType.VERBAL_REASONING,
132
132
  models_1.EMockTestType.DECISION_MAKING,
133
133
  models_1.EMockTestType.QUANTITATIVE_REASONING,
@@ -10,7 +10,6 @@ exports.JOB_STATUS_FRAGMENT = (0, client_1.gql) `
10
10
  `;
11
11
  exports.JOB_META_DATA_FRAGMENT = (0, client_1.gql) `
12
12
  fragment JobMetaData on JobMetaData {
13
- productId
14
13
  question {
15
14
  typeId
16
15
  conceptId
@@ -31,6 +30,7 @@ exports.JOB_FIELDS_FRAGMENT = (0, client_1.gql) `
31
30
  name
32
31
  description
33
32
  type
33
+ productId
34
34
  priority
35
35
  totalRecords
36
36
  dueDate
@@ -12,6 +12,7 @@ exports.MOCK_TEST_FIELDS = (0, client_1.gql) `
12
12
  correct
13
13
  incorrect
14
14
  totalQuestions
15
+ totalSets
15
16
  lastMarksheetEndedAt
16
17
  lastMarksheetStartedAt
17
18
  lastMarksheetId
@@ -123,15 +123,19 @@ exports.JOB_RECORD_CHAPTER_FRAGMENT = (0, client_1.gql) `
123
123
  `;
124
124
  exports.JOB_RECORD_STATION_FRAGMENT = (0, client_1.gql) `
125
125
  fragment JobRecordStation on JobRecordStation {
126
- question
126
+ station
127
127
  }
128
128
  `;
129
129
  exports.JOB_RECORD_MOCK_TEST_FRAGMENT = (0, client_1.gql) `
130
130
  fragment JobRecordMockTest on JobRecordMockTest {
131
131
  question
132
+ stem
133
+ stemFromRecordId
132
134
  conceptId
133
135
  typeId
134
136
  answer
137
+ themeIds
138
+ subTypeId
135
139
  choices {
136
140
  label
137
141
  name
@@ -9,6 +9,7 @@ export type ICreateJobInput = {
9
9
  priority: IJob['priority'];
10
10
  totalRecords: IJob['totalRecords'];
11
11
  dueDate: IJob['dueDate'];
12
+ productId: IJob['productId'];
12
13
  metadata: IJob['metadata'];
13
14
  members: Pick<IJobMember, 'userId' | 'role'>[];
14
15
  };
@@ -132,15 +132,19 @@ export interface IJobRecordChapter {
132
132
  explanation: string;
133
133
  }
134
134
  export interface IJobRecordStation {
135
- question: string;
135
+ station: string;
136
136
  }
137
137
  export interface IJobRecordMockTest {
138
138
  question: string;
139
+ stem?: string | null;
140
+ stemFromRecordId?: IJobRecord['id'] | null;
139
141
  conceptId?: number | null;
140
142
  explanation?: string | null;
141
143
  learningPoint?: string | null;
142
- typeId: EQuestionType;
143
144
  answer: Exclude<IQuestionAnswer, 'string'>;
145
+ themeIds?: number[];
146
+ typeId: EQuestionType;
147
+ subTypeId?: string | null;
144
148
  choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
145
149
  explanation?: IQuestionChoice['explanation'];
146
150
  }>;
@@ -192,7 +196,6 @@ export interface IJobRecord {
192
196
  referenceCount: number;
193
197
  }
194
198
  export interface IJobMetaData {
195
- productId: EProductType;
196
199
  mockTest?: {
197
200
  mockTestId: number;
198
201
  isNew: boolean;
@@ -238,6 +241,7 @@ export interface IJob {
238
241
  priority: EJobPriority;
239
242
  totalRecords: number;
240
243
  createdBy: IUser['id'];
244
+ productId: EProductType;
241
245
  metadata: IJobMetaData;
242
246
  dueDate: Date | number;
243
247
  createdAt: Date | number;
@@ -8,10 +8,10 @@ export declare enum EMockTestType {
8
8
  MISCELLANEOUS = 3,
9
9
  UNIVERSITY_SPECIFIC = 4,
10
10
  ANATOMY_SPOTTER = 5,
11
- UKMLA = 6,
11
+ UKMLA_MINI_MOCK = 6,
12
12
  MRCP = 7,
13
- UKMLA_FULL = 8,
14
- FULL_MOCK = 9,
13
+ UKMLA_FULL_MOCK = 8,
14
+ UCAT_FULL_MOCK = 9,
15
15
  VERBAL_REASONING = 10,
16
16
  DECISION_MAKING = 11,
17
17
  QUANTITATIVE_REASONING = 12,
@@ -43,6 +43,7 @@ export interface IUserMockTest {
43
43
  correct: number;
44
44
  incorrect: number;
45
45
  totalQuestions: number;
46
+ totalSets: number;
46
47
  lastMarksheetId?: Id;
47
48
  lastMarksheetStartedAt?: number | Date;
48
49
  lastMarksheetEndedAt?: number | Date;
@@ -6,10 +6,10 @@ export var EMockTestType;
6
6
  EMockTestType[EMockTestType["MISCELLANEOUS"] = 3] = "MISCELLANEOUS";
7
7
  EMockTestType[EMockTestType["UNIVERSITY_SPECIFIC"] = 4] = "UNIVERSITY_SPECIFIC";
8
8
  EMockTestType[EMockTestType["ANATOMY_SPOTTER"] = 5] = "ANATOMY_SPOTTER";
9
- EMockTestType[EMockTestType["UKMLA"] = 6] = "UKMLA";
9
+ EMockTestType[EMockTestType["UKMLA_MINI_MOCK"] = 6] = "UKMLA_MINI_MOCK";
10
10
  EMockTestType[EMockTestType["MRCP"] = 7] = "MRCP";
11
- EMockTestType[EMockTestType["UKMLA_FULL"] = 8] = "UKMLA_FULL";
12
- EMockTestType[EMockTestType["FULL_MOCK"] = 9] = "FULL_MOCK";
11
+ EMockTestType[EMockTestType["UKMLA_FULL_MOCK"] = 8] = "UKMLA_FULL_MOCK";
12
+ EMockTestType[EMockTestType["UCAT_FULL_MOCK"] = 9] = "UCAT_FULL_MOCK";
13
13
  EMockTestType[EMockTestType["VERBAL_REASONING"] = 10] = "VERBAL_REASONING";
14
14
  EMockTestType[EMockTestType["DECISION_MAKING"] = 11] = "DECISION_MAKING";
15
15
  EMockTestType[EMockTestType["QUANTITATIVE_REASONING"] = 12] = "QUANTITATIVE_REASONING";
@@ -12,8 +12,8 @@ const ALL_MOCKS_WITHOUT_ANATOMY = [
12
12
  EMockTestType.PSA,
13
13
  EMockTestType.MISCELLANEOUS,
14
14
  EMockTestType.UNIVERSITY_SPECIFIC,
15
- EMockTestType.UKMLA,
16
- EMockTestType.UKMLA_FULL,
15
+ EMockTestType.UKMLA_MINI_MOCK,
16
+ EMockTestType.UKMLA_FULL_MOCK,
17
17
  ];
18
18
  const ALL_MOCKS = [EMockTestType.ANATOMY_SPOTTER, ...ALL_MOCKS_WITHOUT_ANATOMY];
19
19
  export const productMapping = {
@@ -124,7 +124,7 @@ export const productMapping = {
124
124
  db: DB_TYPE.UCAT,
125
125
  topicType: [ETopicType.UCAT],
126
126
  mockType: [
127
- EMockTestType.FULL_MOCK,
127
+ EMockTestType.UCAT_FULL_MOCK,
128
128
  EMockTestType.VERBAL_REASONING,
129
129
  EMockTestType.DECISION_MAKING,
130
130
  EMockTestType.QUANTITATIVE_REASONING,
@@ -7,7 +7,6 @@ export const JOB_STATUS_FRAGMENT = gql `
7
7
  `;
8
8
  export const JOB_META_DATA_FRAGMENT = gql `
9
9
  fragment JobMetaData on JobMetaData {
10
- productId
11
10
  question {
12
11
  typeId
13
12
  conceptId
@@ -28,6 +27,7 @@ export const JOB_FIELDS_FRAGMENT = gql `
28
27
  name
29
28
  description
30
29
  type
30
+ productId
31
31
  priority
32
32
  totalRecords
33
33
  dueDate
@@ -9,6 +9,7 @@ export const MOCK_TEST_FIELDS = gql `
9
9
  correct
10
10
  incorrect
11
11
  totalQuestions
12
+ totalSets
12
13
  lastMarksheetEndedAt
13
14
  lastMarksheetStartedAt
14
15
  lastMarksheetId
@@ -120,15 +120,19 @@ export const JOB_RECORD_CHAPTER_FRAGMENT = gql `
120
120
  `;
121
121
  export const JOB_RECORD_STATION_FRAGMENT = gql `
122
122
  fragment JobRecordStation on JobRecordStation {
123
- question
123
+ station
124
124
  }
125
125
  `;
126
126
  export const JOB_RECORD_MOCK_TEST_FRAGMENT = gql `
127
127
  fragment JobRecordMockTest on JobRecordMockTest {
128
128
  question
129
+ stem
130
+ stemFromRecordId
129
131
  conceptId
130
132
  typeId
131
133
  answer
134
+ themeIds
135
+ subTypeId
132
136
  choices {
133
137
  label
134
138
  name
@@ -9,6 +9,7 @@ export type ICreateJobInput = {
9
9
  priority: IJob['priority'];
10
10
  totalRecords: IJob['totalRecords'];
11
11
  dueDate: IJob['dueDate'];
12
+ productId: IJob['productId'];
12
13
  metadata: IJob['metadata'];
13
14
  members: Pick<IJobMember, 'userId' | 'role'>[];
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.189",
3
+ "version": "2.6.191",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",