@quesmed/types-rn 2.6.35 → 2.6.37
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/Feedback.d.ts +2 -0
- package/models/Product.d.ts +4 -3
- package/models/Product.js +3 -2
- package/models/User.d.ts +7 -3
- package/models/User.js +4 -0
- package/package.json +1 -1
- package/resolvers/constants.js +10 -0
- package/resolvers/fragments/user.js +4 -0
- package/resolvers/query/feedback.js +4 -0
package/models/Feedback.d.ts
CHANGED
package/models/Product.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ export declare enum EProductType {
|
|
|
34
34
|
CONSULTATION = 31,
|
|
35
35
|
NEUROLOGY = 32,
|
|
36
36
|
RESPIRATORY = 33,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
PLAB1 = 34,
|
|
38
|
+
PLAB2 = 35
|
|
39
39
|
}
|
|
40
40
|
export interface IProduct {
|
|
41
41
|
id: Id;
|
|
@@ -58,7 +58,8 @@ export declare enum EAppType {
|
|
|
58
58
|
CM_UKMLA = 2,
|
|
59
59
|
MRCP = 3,
|
|
60
60
|
INTERVIEW = 4,
|
|
61
|
-
MSRA = 5
|
|
61
|
+
MSRA = 5,
|
|
62
|
+
PLAB = 6
|
|
62
63
|
}
|
|
63
64
|
export interface IEntitlement {
|
|
64
65
|
id: EProductType;
|
package/models/Product.js
CHANGED
|
@@ -37,8 +37,8 @@ var EProductType;
|
|
|
37
37
|
EProductType[EProductType["CONSULTATION"] = 31] = "CONSULTATION";
|
|
38
38
|
EProductType[EProductType["NEUROLOGY"] = 32] = "NEUROLOGY";
|
|
39
39
|
EProductType[EProductType["RESPIRATORY"] = 33] = "RESPIRATORY";
|
|
40
|
-
EProductType[EProductType["
|
|
41
|
-
EProductType[EProductType["
|
|
40
|
+
EProductType[EProductType["PLAB1"] = 34] = "PLAB1";
|
|
41
|
+
EProductType[EProductType["PLAB2"] = 35] = "PLAB2";
|
|
42
42
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
43
43
|
var EAppType;
|
|
44
44
|
(function (EAppType) {
|
|
@@ -47,4 +47,5 @@ var EAppType;
|
|
|
47
47
|
EAppType[EAppType["MRCP"] = 3] = "MRCP";
|
|
48
48
|
EAppType[EAppType["INTERVIEW"] = 4] = "INTERVIEW";
|
|
49
49
|
EAppType[EAppType["MSRA"] = 5] = "MSRA";
|
|
50
|
+
EAppType[EAppType["PLAB"] = 6] = "PLAB";
|
|
50
51
|
})(EAppType = exports.EAppType || (exports.EAppType = {}));
|
package/models/User.d.ts
CHANGED
|
@@ -46,12 +46,12 @@ export interface IPayload {
|
|
|
46
46
|
accessLevel: IAccessLevel;
|
|
47
47
|
tocAccepted: boolean;
|
|
48
48
|
exp: number;
|
|
49
|
-
anatomySubscriptionEndDate: number | null;
|
|
50
|
-
medicalSciencesSubscriptionEndDate: number | null;
|
|
51
|
-
anatomyBundleSubscriptionEndDate: number | null;
|
|
52
49
|
qbankSubscriptionEndDate: number | null;
|
|
53
50
|
osceSubscriptionEndDate: number | null;
|
|
54
51
|
bundleSubscriptionEndDate: number | null;
|
|
52
|
+
anatomySubscriptionEndDate: number | null;
|
|
53
|
+
medicalSciencesSubscriptionEndDate: number | null;
|
|
54
|
+
anatomyBundleSubscriptionEndDate: number | null;
|
|
55
55
|
mrcpPart1SubscriptionEndDate: number | null;
|
|
56
56
|
mrcpPart2SubscriptionEndDate: number | null;
|
|
57
57
|
pacesSubscriptionEndDate: number | null;
|
|
@@ -60,6 +60,8 @@ export interface IPayload {
|
|
|
60
60
|
cstInterviewSubscriptionEndDate: number | null;
|
|
61
61
|
imtInterviewSubscriptionEndDate: number | null;
|
|
62
62
|
radiologyInterviewSubscriptionEndDate: number | null;
|
|
63
|
+
plab1SubscriptionEndDate: number | null;
|
|
64
|
+
plab2SubscriptionEndDate: number | null;
|
|
63
65
|
ver: number;
|
|
64
66
|
}
|
|
65
67
|
export interface IDailyProgressVar {
|
|
@@ -137,6 +139,8 @@ export interface IUser {
|
|
|
137
139
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
138
140
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
139
141
|
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
142
|
+
plab1SubscriptionEndDate: number | Date | null;
|
|
143
|
+
plab2SubscriptionEndDate: number | Date | null;
|
|
140
144
|
questionHighlights?: IQuestionHighlights[];
|
|
141
145
|
}
|
|
142
146
|
export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
|
package/models/User.js
CHANGED
|
@@ -34,6 +34,8 @@ exports.subscriptionDates = [
|
|
|
34
34
|
'cstInterviewSubscriptionEndDate',
|
|
35
35
|
'imtInterviewSubscriptionEndDate',
|
|
36
36
|
'radiologyInterviewSubscriptionEndDate',
|
|
37
|
+
'plab1SubscriptionEndDate',
|
|
38
|
+
'plab2SubscriptionEndDate',
|
|
37
39
|
];
|
|
38
40
|
exports.dateProductMapping = {
|
|
39
41
|
qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
@@ -50,6 +52,8 @@ exports.dateProductMapping = {
|
|
|
50
52
|
cstInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_IMT,
|
|
51
53
|
imtInterviewSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
52
54
|
radiologyInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_RADIOLOGY,
|
|
55
|
+
plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
|
|
56
|
+
plab2SubscriptionEndDate: Product_1.EProductType.PLAB2,
|
|
53
57
|
};
|
|
54
58
|
var EClassYearGroup;
|
|
55
59
|
(function (EClassYearGroup) {
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -91,4 +91,14 @@ exports.productMapping = {
|
|
|
91
91
|
topicType: [models_1.ETopicType.INTERVIEW_RADIOLOGY],
|
|
92
92
|
mockType: ALL_MOCKS,
|
|
93
93
|
},
|
|
94
|
+
[models_1.EProductType.PLAB1]: {
|
|
95
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
96
|
+
topicType: [models_1.ETopicType.CLINICAL],
|
|
97
|
+
mockType: ALL_MOCKS,
|
|
98
|
+
},
|
|
99
|
+
[models_1.EProductType.PLAB2]: {
|
|
100
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
101
|
+
topicType: ALL_TOPIC_TYPE,
|
|
102
|
+
mockType: ALL_MOCKS,
|
|
103
|
+
},
|
|
94
104
|
};
|