@quesmed/types 2.6.96 → 2.6.98
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.
- package/dist/cjs/models/Condition.d.ts +1 -0
- package/dist/cjs/models/Presentation.d.ts +1 -0
- package/dist/cjs/models/Product.d.ts +3 -0
- package/dist/cjs/models/Product.js +3 -0
- package/dist/cjs/models/Topic.d.ts +2 -1
- package/dist/cjs/models/Topic.js +1 -0
- package/dist/cjs/models/User.d.ts +2 -0
- package/dist/cjs/models/User.js +2 -0
- package/dist/cjs/resolvers/constants.d.ts +2 -2
- package/dist/cjs/resolvers/constants.js +13 -1
- package/dist/cjs/resolvers/fragments/user.js +1 -0
- package/dist/cjs/resolvers/query/restricted/ukmlaTopics.js +2 -0
- package/dist/mjs/models/Condition.d.ts +1 -0
- package/dist/mjs/models/Presentation.d.ts +1 -0
- package/dist/mjs/models/Product.d.ts +3 -0
- package/dist/mjs/models/Product.js +3 -0
- package/dist/mjs/models/Topic.d.ts +2 -1
- package/dist/mjs/models/Topic.js +1 -0
- package/dist/mjs/models/User.d.ts +2 -0
- package/dist/mjs/models/User.js +2 -0
- package/dist/mjs/resolvers/constants.d.ts +2 -2
- package/dist/mjs/resolvers/constants.js +13 -1
- package/dist/mjs/resolvers/fragments/user.js +1 -0
- package/dist/mjs/resolvers/query/restricted/ukmlaTopics.js +2 -0
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ export declare enum EProductType {
|
|
|
18
18
|
INTERVIEW_CST = 12,
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
|
+
INTERVIEW_PAEDIATRICS = 45,
|
|
21
22
|
CLINICAL = 15,
|
|
22
23
|
DATA_INTERPRETATION = 16,
|
|
23
24
|
CLINICAL_SUBSET = 17,
|
|
@@ -47,6 +48,7 @@ export declare enum EEntitlementType {
|
|
|
47
48
|
CLINICAL_SUBSET = 17,
|
|
48
49
|
CLINICAL_PROBLEM_SOLVING = 18,
|
|
49
50
|
PROFESSIONAL_DILEMMA = 19,
|
|
51
|
+
EXTENDED_MATCHING_QUESTIONS = 47,
|
|
50
52
|
HISTORY_TAKING = 20,
|
|
51
53
|
COMMUNICATION_SKILLS = 21,
|
|
52
54
|
EXAMINATION = 22,
|
|
@@ -69,6 +71,7 @@ export declare enum EEntitlementType {
|
|
|
69
71
|
INTERVIEW_CST = 41,
|
|
70
72
|
INTERVIEW_IMT = 42,
|
|
71
73
|
INTERVIEW_RADIOLOGY = 43,
|
|
74
|
+
INTERVIEW_PAEDIATRICS = 46,
|
|
72
75
|
PLAB_1 = 44
|
|
73
76
|
}
|
|
74
77
|
export interface IProduct {
|
|
@@ -21,6 +21,7 @@ var EProductType;
|
|
|
21
21
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
22
22
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
23
23
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
24
|
+
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 45] = "INTERVIEW_PAEDIATRICS";
|
|
24
25
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
25
26
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
26
27
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -51,6 +52,7 @@ var EEntitlementType;
|
|
|
51
52
|
EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
52
53
|
EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
53
54
|
EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
55
|
+
EEntitlementType[EEntitlementType["EXTENDED_MATCHING_QUESTIONS"] = 47] = "EXTENDED_MATCHING_QUESTIONS";
|
|
54
56
|
EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
|
|
55
57
|
EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
|
|
56
58
|
EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
|
|
@@ -73,6 +75,7 @@ var EEntitlementType;
|
|
|
73
75
|
EEntitlementType[EEntitlementType["INTERVIEW_CST"] = 41] = "INTERVIEW_CST";
|
|
74
76
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
75
77
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
78
|
+
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
76
79
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
77
80
|
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
78
81
|
var EAppType;
|
package/dist/cjs/models/Topic.js
CHANGED
|
@@ -17,4 +17,5 @@ var ETopicType;
|
|
|
17
17
|
ETopicType[ETopicType["INTERVIEW_CST"] = 10] = "INTERVIEW_CST";
|
|
18
18
|
ETopicType[ETopicType["INTERVIEW_IMT"] = 11] = "INTERVIEW_IMT";
|
|
19
19
|
ETopicType[ETopicType["INTERVIEW_RADIOLOGY"] = 12] = "INTERVIEW_RADIOLOGY";
|
|
20
|
+
ETopicType[ETopicType["INTERVIEW_PAEDIATRICS"] = 13] = "INTERVIEW_PAEDIATRICS";
|
|
20
21
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
|
@@ -71,6 +71,7 @@ export interface IPayload {
|
|
|
71
71
|
cstInterviewSubscriptionEndDate: number | null;
|
|
72
72
|
imtInterviewSubscriptionEndDate: number | null;
|
|
73
73
|
radiologyInterviewSubscriptionEndDate: number | null;
|
|
74
|
+
paediatricsInterviewSubscriptionEndDate: number | null;
|
|
74
75
|
plab1SubscriptionEndDate: number | null;
|
|
75
76
|
plab2SubscriptionEndDate: number | null;
|
|
76
77
|
ver: number;
|
|
@@ -173,6 +174,7 @@ export interface IUser {
|
|
|
173
174
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
174
175
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
175
176
|
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
177
|
+
paediatricsInterviewSubscriptionEndDate: number | Date | null;
|
|
176
178
|
plab1SubscriptionEndDate: number | Date | null;
|
|
177
179
|
plab2SubscriptionEndDate: number | Date | null;
|
|
178
180
|
settings: IUserSettings;
|
package/dist/cjs/models/User.js
CHANGED
|
@@ -42,6 +42,7 @@ exports.subscriptionDates = [
|
|
|
42
42
|
'cstInterviewSubscriptionEndDate',
|
|
43
43
|
'imtInterviewSubscriptionEndDate',
|
|
44
44
|
'radiologyInterviewSubscriptionEndDate',
|
|
45
|
+
'paediatricsInterviewSubscriptionEndDate',
|
|
45
46
|
'plab1SubscriptionEndDate',
|
|
46
47
|
'plab2SubscriptionEndDate',
|
|
47
48
|
];
|
|
@@ -60,6 +61,7 @@ exports.dateProductMapping = {
|
|
|
60
61
|
cstInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_IMT,
|
|
61
62
|
imtInterviewSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
62
63
|
radiologyInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_RADIOLOGY,
|
|
64
|
+
paediatricsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_PAEDIATRICS,
|
|
63
65
|
plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
|
|
64
66
|
plab2SubscriptionEndDate: Product_1.EProductType.PLAB2,
|
|
65
67
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
1
|
+
import { EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
2
2
|
import { DB_TYPE } from './enums';
|
|
3
3
|
export declare const productMapping: Partial<Record<EProductType, {
|
|
4
4
|
db: DB_TYPE;
|
|
5
5
|
topicType: ETopicType[];
|
|
6
6
|
mockType: EMockTestType[];
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType) => {
|
|
8
|
+
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType, entitlementInfo?: EEntitlementType) => {
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
@@ -92,6 +92,11 @@ exports.productMapping = {
|
|
|
92
92
|
topicType: [models_1.ETopicType.INTERVIEW_RADIOLOGY],
|
|
93
93
|
mockType: ALL_MOCKS,
|
|
94
94
|
},
|
|
95
|
+
[models_1.EProductType.INTERVIEW_PAEDIATRICS]: {
|
|
96
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
97
|
+
topicType: [models_1.ETopicType.INTERVIEW_PAEDIATRICS],
|
|
98
|
+
mockType: ALL_MOCKS,
|
|
99
|
+
},
|
|
95
100
|
[models_1.EProductType.PLAB1]: {
|
|
96
101
|
db: enums_1.DB_TYPE.FINALS,
|
|
97
102
|
topicType: [models_1.ETopicType.CLINICAL],
|
|
@@ -113,6 +118,7 @@ const topicEntitlementMap = {
|
|
|
113
118
|
[models_1.ETopicType.INTERVIEW_CST]: models_1.EEntitlementType.INTERVIEW_CST,
|
|
114
119
|
[models_1.ETopicType.INTERVIEW_IMT]: models_1.EEntitlementType.INTERVIEW_IMT,
|
|
115
120
|
[models_1.ETopicType.INTERVIEW_RADIOLOGY]: models_1.EEntitlementType.INTERVIEW_RADIOLOGY,
|
|
121
|
+
[models_1.ETopicType.INTERVIEW_PAEDIATRICS]: models_1.EEntitlementType.INTERVIEW_PAEDIATRICS,
|
|
116
122
|
};
|
|
117
123
|
const osceEntitlementMap = {
|
|
118
124
|
[models_1.EOsceType.HISTORY_TAKING]: models_1.EEntitlementType.HISTORY_TAKING,
|
|
@@ -140,7 +146,7 @@ const clinicalEntitlementMap = {
|
|
|
140
146
|
[models_1.EProductType.MRCP_PART1]: models_1.EEntitlementType.MRCP_PART_1,
|
|
141
147
|
[models_1.EProductType.MRCP_PART2]: models_1.EEntitlementType.MRCP_PART_2,
|
|
142
148
|
};
|
|
143
|
-
const getEntitlementFromTopicType = (typeId, productType) => {
|
|
149
|
+
const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
144
150
|
let entitlement;
|
|
145
151
|
switch (productType) {
|
|
146
152
|
case models_1.EProductType.PACES: {
|
|
@@ -152,6 +158,12 @@ const getEntitlementFromTopicType = (typeId, productType) => {
|
|
|
152
158
|
entitlement = osceEntitlementMap[typeId];
|
|
153
159
|
break;
|
|
154
160
|
}
|
|
161
|
+
case models_1.EProductType.MSRA: {
|
|
162
|
+
if (entitlementInfo) {
|
|
163
|
+
entitlement = entitlementInfo;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
155
167
|
default: {
|
|
156
168
|
entitlement =
|
|
157
169
|
typeId === models_1.ETopicType.CLINICAL
|
|
@@ -18,6 +18,7 @@ exports.UKMLA_TOPIC = (0, client_1.gql) `
|
|
|
18
18
|
correctQuestions
|
|
19
19
|
incorrectQuestions
|
|
20
20
|
topicId
|
|
21
|
+
questionIds
|
|
21
22
|
topic {
|
|
22
23
|
id
|
|
23
24
|
name
|
|
@@ -30,6 +31,7 @@ exports.UKMLA_TOPIC = (0, client_1.gql) `
|
|
|
30
31
|
correctQuestions
|
|
31
32
|
incorrectQuestions
|
|
32
33
|
topicId
|
|
34
|
+
questionIds
|
|
33
35
|
topic {
|
|
34
36
|
id
|
|
35
37
|
name
|
|
@@ -18,6 +18,7 @@ export declare enum EProductType {
|
|
|
18
18
|
INTERVIEW_CST = 12,
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
|
+
INTERVIEW_PAEDIATRICS = 45,
|
|
21
22
|
CLINICAL = 15,
|
|
22
23
|
DATA_INTERPRETATION = 16,
|
|
23
24
|
CLINICAL_SUBSET = 17,
|
|
@@ -47,6 +48,7 @@ export declare enum EEntitlementType {
|
|
|
47
48
|
CLINICAL_SUBSET = 17,
|
|
48
49
|
CLINICAL_PROBLEM_SOLVING = 18,
|
|
49
50
|
PROFESSIONAL_DILEMMA = 19,
|
|
51
|
+
EXTENDED_MATCHING_QUESTIONS = 47,
|
|
50
52
|
HISTORY_TAKING = 20,
|
|
51
53
|
COMMUNICATION_SKILLS = 21,
|
|
52
54
|
EXAMINATION = 22,
|
|
@@ -69,6 +71,7 @@ export declare enum EEntitlementType {
|
|
|
69
71
|
INTERVIEW_CST = 41,
|
|
70
72
|
INTERVIEW_IMT = 42,
|
|
71
73
|
INTERVIEW_RADIOLOGY = 43,
|
|
74
|
+
INTERVIEW_PAEDIATRICS = 46,
|
|
72
75
|
PLAB_1 = 44
|
|
73
76
|
}
|
|
74
77
|
export interface IProduct {
|
|
@@ -18,6 +18,7 @@ export var EProductType;
|
|
|
18
18
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
19
19
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
20
20
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
21
|
+
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 45] = "INTERVIEW_PAEDIATRICS";
|
|
21
22
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
22
23
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
23
24
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -48,6 +49,7 @@ export var EEntitlementType;
|
|
|
48
49
|
EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
49
50
|
EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
50
51
|
EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
52
|
+
EEntitlementType[EEntitlementType["EXTENDED_MATCHING_QUESTIONS"] = 47] = "EXTENDED_MATCHING_QUESTIONS";
|
|
51
53
|
EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
|
|
52
54
|
EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
|
|
53
55
|
EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
|
|
@@ -70,6 +72,7 @@ export var EEntitlementType;
|
|
|
70
72
|
EEntitlementType[EEntitlementType["INTERVIEW_CST"] = 41] = "INTERVIEW_CST";
|
|
71
73
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
72
74
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
75
|
+
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
73
76
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
74
77
|
})(EEntitlementType || (EEntitlementType = {}));
|
|
75
78
|
export var EAppType;
|
package/dist/mjs/models/Topic.js
CHANGED
|
@@ -14,4 +14,5 @@ export var ETopicType;
|
|
|
14
14
|
ETopicType[ETopicType["INTERVIEW_CST"] = 10] = "INTERVIEW_CST";
|
|
15
15
|
ETopicType[ETopicType["INTERVIEW_IMT"] = 11] = "INTERVIEW_IMT";
|
|
16
16
|
ETopicType[ETopicType["INTERVIEW_RADIOLOGY"] = 12] = "INTERVIEW_RADIOLOGY";
|
|
17
|
+
ETopicType[ETopicType["INTERVIEW_PAEDIATRICS"] = 13] = "INTERVIEW_PAEDIATRICS";
|
|
17
18
|
})(ETopicType || (ETopicType = {}));
|
|
@@ -71,6 +71,7 @@ export interface IPayload {
|
|
|
71
71
|
cstInterviewSubscriptionEndDate: number | null;
|
|
72
72
|
imtInterviewSubscriptionEndDate: number | null;
|
|
73
73
|
radiologyInterviewSubscriptionEndDate: number | null;
|
|
74
|
+
paediatricsInterviewSubscriptionEndDate: number | null;
|
|
74
75
|
plab1SubscriptionEndDate: number | null;
|
|
75
76
|
plab2SubscriptionEndDate: number | null;
|
|
76
77
|
ver: number;
|
|
@@ -173,6 +174,7 @@ export interface IUser {
|
|
|
173
174
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
174
175
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
175
176
|
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
177
|
+
paediatricsInterviewSubscriptionEndDate: number | Date | null;
|
|
176
178
|
plab1SubscriptionEndDate: number | Date | null;
|
|
177
179
|
plab2SubscriptionEndDate: number | Date | null;
|
|
178
180
|
settings: IUserSettings;
|
package/dist/mjs/models/User.js
CHANGED
|
@@ -39,6 +39,7 @@ export const subscriptionDates = [
|
|
|
39
39
|
'cstInterviewSubscriptionEndDate',
|
|
40
40
|
'imtInterviewSubscriptionEndDate',
|
|
41
41
|
'radiologyInterviewSubscriptionEndDate',
|
|
42
|
+
'paediatricsInterviewSubscriptionEndDate',
|
|
42
43
|
'plab1SubscriptionEndDate',
|
|
43
44
|
'plab2SubscriptionEndDate',
|
|
44
45
|
];
|
|
@@ -57,6 +58,7 @@ export const dateProductMapping = {
|
|
|
57
58
|
cstInterviewSubscriptionEndDate: EProductType.INTERVIEW_IMT,
|
|
58
59
|
imtInterviewSubscriptionEndDate: EProductType.QBANK,
|
|
59
60
|
radiologyInterviewSubscriptionEndDate: EProductType.INTERVIEW_RADIOLOGY,
|
|
61
|
+
paediatricsInterviewSubscriptionEndDate: EProductType.INTERVIEW_PAEDIATRICS,
|
|
60
62
|
plab1SubscriptionEndDate: EProductType.PLAB1,
|
|
61
63
|
plab2SubscriptionEndDate: EProductType.PLAB2,
|
|
62
64
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
1
|
+
import { EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
2
2
|
import { DB_TYPE } from './enums';
|
|
3
3
|
export declare const productMapping: Partial<Record<EProductType, {
|
|
4
4
|
db: DB_TYPE;
|
|
5
5
|
topicType: ETopicType[];
|
|
6
6
|
mockType: EMockTestType[];
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType) => {
|
|
8
|
+
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType, entitlementInfo?: EEntitlementType) => {
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
@@ -89,6 +89,11 @@ export const productMapping = {
|
|
|
89
89
|
topicType: [ETopicType.INTERVIEW_RADIOLOGY],
|
|
90
90
|
mockType: ALL_MOCKS,
|
|
91
91
|
},
|
|
92
|
+
[EProductType.INTERVIEW_PAEDIATRICS]: {
|
|
93
|
+
db: DB_TYPE.FINALS,
|
|
94
|
+
topicType: [ETopicType.INTERVIEW_PAEDIATRICS],
|
|
95
|
+
mockType: ALL_MOCKS,
|
|
96
|
+
},
|
|
92
97
|
[EProductType.PLAB1]: {
|
|
93
98
|
db: DB_TYPE.FINALS,
|
|
94
99
|
topicType: [ETopicType.CLINICAL],
|
|
@@ -110,6 +115,7 @@ const topicEntitlementMap = {
|
|
|
110
115
|
[ETopicType.INTERVIEW_CST]: EEntitlementType.INTERVIEW_CST,
|
|
111
116
|
[ETopicType.INTERVIEW_IMT]: EEntitlementType.INTERVIEW_IMT,
|
|
112
117
|
[ETopicType.INTERVIEW_RADIOLOGY]: EEntitlementType.INTERVIEW_RADIOLOGY,
|
|
118
|
+
[ETopicType.INTERVIEW_PAEDIATRICS]: EEntitlementType.INTERVIEW_PAEDIATRICS,
|
|
113
119
|
};
|
|
114
120
|
const osceEntitlementMap = {
|
|
115
121
|
[EOsceType.HISTORY_TAKING]: EEntitlementType.HISTORY_TAKING,
|
|
@@ -137,7 +143,7 @@ const clinicalEntitlementMap = {
|
|
|
137
143
|
[EProductType.MRCP_PART1]: EEntitlementType.MRCP_PART_1,
|
|
138
144
|
[EProductType.MRCP_PART2]: EEntitlementType.MRCP_PART_2,
|
|
139
145
|
};
|
|
140
|
-
export const getEntitlementFromTopicType = (typeId, productType) => {
|
|
146
|
+
export const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
141
147
|
let entitlement;
|
|
142
148
|
switch (productType) {
|
|
143
149
|
case EProductType.PACES: {
|
|
@@ -149,6 +155,12 @@ export const getEntitlementFromTopicType = (typeId, productType) => {
|
|
|
149
155
|
entitlement = osceEntitlementMap[typeId];
|
|
150
156
|
break;
|
|
151
157
|
}
|
|
158
|
+
case EProductType.MSRA: {
|
|
159
|
+
if (entitlementInfo) {
|
|
160
|
+
entitlement = entitlementInfo;
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
152
164
|
default: {
|
|
153
165
|
entitlement =
|
|
154
166
|
typeId === ETopicType.CLINICAL
|
|
@@ -15,6 +15,7 @@ export const UKMLA_TOPIC = gql `
|
|
|
15
15
|
correctQuestions
|
|
16
16
|
incorrectQuestions
|
|
17
17
|
topicId
|
|
18
|
+
questionIds
|
|
18
19
|
topic {
|
|
19
20
|
id
|
|
20
21
|
name
|
|
@@ -27,6 +28,7 @@ export const UKMLA_TOPIC = gql `
|
|
|
27
28
|
correctQuestions
|
|
28
29
|
incorrectQuestions
|
|
29
30
|
topicId
|
|
31
|
+
questionIds
|
|
30
32
|
topic {
|
|
31
33
|
id
|
|
32
34
|
name
|