@quesmed/types-rn 2.6.274 → 2.6.277
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/models/Product.d.ts +4 -2
- package/models/Product.js +2 -0
- package/models/Topic.d.ts +2 -1
- package/models/Topic.js +1 -0
- package/models/User.d.ts +2 -0
- package/models/User.js +2 -0
- package/package.json +1 -1
- package/resolvers/constants.js +6 -0
- package/resolvers/fragments/user.js +1 -0
- package/resolvers/mutation/restricted/osce.js +2 -2
package/models/Product.d.ts
CHANGED
|
@@ -49,7 +49,8 @@ export declare enum EProductType {
|
|
|
49
49
|
MRCP_VIDEO = 53,
|
|
50
50
|
MRCP_BUNDLE = 54,
|
|
51
51
|
COMPLETE_CLINICAL_BUNDLE = 55,
|
|
52
|
-
UNDERGRAD_BUNDLE = 56
|
|
52
|
+
UNDERGRAD_BUNDLE = 56,
|
|
53
|
+
MRCP_PART2_VIDEO = 60
|
|
53
54
|
}
|
|
54
55
|
export declare enum EEntitlementType {
|
|
55
56
|
ALL = 0,
|
|
@@ -88,7 +89,8 @@ export declare enum EEntitlementType {
|
|
|
88
89
|
DECISION_MAKING = 50,
|
|
89
90
|
QUANTITATIVE_REASONING = 51,
|
|
90
91
|
SITUATIONAL_JUDGEMENT = 52,
|
|
91
|
-
MRCP_VIDEO = 53
|
|
92
|
+
MRCP_VIDEO = 53,
|
|
93
|
+
MRCP_PART2_VIDEO = 60
|
|
92
94
|
}
|
|
93
95
|
export interface IProduct {
|
|
94
96
|
id: Id;
|
package/models/Product.js
CHANGED
|
@@ -53,6 +53,7 @@ var EProductType;
|
|
|
53
53
|
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
54
54
|
EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
|
|
55
55
|
EProductType[EProductType["UNDERGRAD_BUNDLE"] = 56] = "UNDERGRAD_BUNDLE";
|
|
56
|
+
EProductType[EProductType["MRCP_PART2_VIDEO"] = 60] = "MRCP_PART2_VIDEO";
|
|
56
57
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
57
58
|
var EEntitlementType;
|
|
58
59
|
(function (EEntitlementType) {
|
|
@@ -93,6 +94,7 @@ var EEntitlementType;
|
|
|
93
94
|
EEntitlementType[EEntitlementType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
94
95
|
EEntitlementType[EEntitlementType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
95
96
|
EEntitlementType[EEntitlementType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
97
|
+
EEntitlementType[EEntitlementType["MRCP_PART2_VIDEO"] = 60] = "MRCP_PART2_VIDEO";
|
|
96
98
|
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
97
99
|
var EAppType;
|
|
98
100
|
(function (EAppType) {
|
package/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -21,4 +21,5 @@ var ETopicType;
|
|
|
21
21
|
ETopicType[ETopicType["UCAT"] = 14] = "UCAT";
|
|
22
22
|
ETopicType[ETopicType["MRCP_VIDEO"] = 15] = "MRCP_VIDEO";
|
|
23
23
|
ETopicType[ETopicType["INTERVIEW_ACCS"] = 16] = "INTERVIEW_ACCS";
|
|
24
|
+
ETopicType[ETopicType["MRCP_PART2_VIDEO"] = 17] = "MRCP_PART2_VIDEO";
|
|
24
25
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/models/User.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export interface IPayload {
|
|
|
75
75
|
pacesSubscriptionEndDate: number | null;
|
|
76
76
|
msraSubscriptionEndDate: number | null;
|
|
77
77
|
mrcpVideoSubscriptionEndDate: number | null;
|
|
78
|
+
mrcpPart2VideoSubscriptionEndDate: number | null;
|
|
78
79
|
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
79
80
|
cstInterviewSubscriptionEndDate: number | null;
|
|
80
81
|
imtInterviewSubscriptionEndDate: number | null;
|
|
@@ -190,6 +191,7 @@ export interface IUser {
|
|
|
190
191
|
pacesSubscriptionEndDate: number | Date | null;
|
|
191
192
|
msraSubscriptionEndDate: number | Date | null;
|
|
192
193
|
mrcpVideoSubscriptionEndDate: number | Date | null;
|
|
194
|
+
mrcpPart2VideoSubscriptionEndDate: number | Date | null;
|
|
193
195
|
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
194
196
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
195
197
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
package/models/User.js
CHANGED
|
@@ -55,6 +55,7 @@ exports.subscriptionDates = [
|
|
|
55
55
|
'plab2SubscriptionEndDate',
|
|
56
56
|
'ucatSubscriptionEndDate',
|
|
57
57
|
'mrcpVideoSubscriptionEndDate',
|
|
58
|
+
'mrcpPart2VideoSubscriptionEndDate',
|
|
58
59
|
];
|
|
59
60
|
exports.dateProductMapping = {
|
|
60
61
|
qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
@@ -69,6 +70,7 @@ exports.dateProductMapping = {
|
|
|
69
70
|
mrcpPart1SubscriptionEndDate: Product_1.EProductType.MRCP_PART1,
|
|
70
71
|
mrcpPart2SubscriptionEndDate: Product_1.EProductType.MRCP_PART2,
|
|
71
72
|
mrcpVideoSubscriptionEndDate: Product_1.EProductType.MRCP_VIDEO,
|
|
73
|
+
mrcpPart2VideoSubscriptionEndDate: Product_1.EProductType.MRCP_PART2_VIDEO,
|
|
72
74
|
pacesSubscriptionEndDate: Product_1.EProductType.PACES,
|
|
73
75
|
msraSubscriptionEndDate: Product_1.EProductType.MSRA,
|
|
74
76
|
anaestheticsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_ANAESTHETICS,
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -144,6 +144,11 @@ exports.productMapping = {
|
|
|
144
144
|
topicType: [models_1.ETopicType.MRCP_VIDEO],
|
|
145
145
|
mockType: [],
|
|
146
146
|
},
|
|
147
|
+
[models_1.EProductType.MRCP_PART2_VIDEO]: {
|
|
148
|
+
db: enums_1.DB_TYPE.MRCP,
|
|
149
|
+
topicType: [models_1.ETopicType.MRCP_PART2_VIDEO],
|
|
150
|
+
mockType: [],
|
|
151
|
+
},
|
|
147
152
|
};
|
|
148
153
|
const topicEntitlementMap = {
|
|
149
154
|
[models_1.ETopicType.PRE_CLINICAL]: models_1.EEntitlementType.PRE_CLINICAL,
|
|
@@ -185,6 +190,7 @@ const clinicalEntitlementMap = {
|
|
|
185
190
|
[models_1.EProductType.MRCP_PART1]: models_1.EEntitlementType.MRCP_PART_1,
|
|
186
191
|
[models_1.EProductType.MRCP_PART2]: models_1.EEntitlementType.MRCP_PART_2,
|
|
187
192
|
[models_1.EProductType.MRCP_VIDEO]: models_1.EEntitlementType.MRCP_VIDEO,
|
|
193
|
+
[models_1.EProductType.MRCP_PART2_VIDEO]: models_1.EEntitlementType.MRCP_PART2_VIDEO,
|
|
188
194
|
};
|
|
189
195
|
const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
190
196
|
let entitlement;
|
|
@@ -115,9 +115,9 @@ const getStationScore = (marks) => {
|
|
|
115
115
|
}
|
|
116
116
|
const { total, userScore } = marks.reduce((acc, mark) => {
|
|
117
117
|
const choices = mark.osceStationMark?.choices;
|
|
118
|
-
const
|
|
118
|
+
const isDualMark = mark.secondaryMark != null;
|
|
119
119
|
// Maximum possible score
|
|
120
|
-
acc.total +=
|
|
120
|
+
acc.total += isDualMark ? 4 : choices?.length ? 2 : 1;
|
|
121
121
|
if (choices) {
|
|
122
122
|
// paces product
|
|
123
123
|
acc.userScore += MarkMap[mark.mark] ?? 0;
|