@quesmed/types 2.6.187 → 2.6.188
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/Product.d.ts +3 -1
- package/dist/cjs/models/Product.js +2 -0
- package/dist/cjs/models/User.d.ts +4 -0
- package/dist/cjs/models/User.js +4 -0
- package/dist/cjs/resolvers/constants.js +10 -0
- package/dist/cjs/resolvers/fragments/user.js +2 -0
- package/dist/mjs/models/Product.d.ts +3 -1
- package/dist/mjs/models/Product.js +2 -0
- package/dist/mjs/models/User.d.ts +4 -0
- package/dist/mjs/models/User.js +4 -0
- package/dist/mjs/resolvers/constants.js +10 -0
- package/dist/mjs/resolvers/fragments/user.js +2 -0
- package/package.json +1 -1
|
@@ -46,7 +46,9 @@ export declare enum EProductType {
|
|
|
46
46
|
QUANTITATIVE_REASONING = 51,
|
|
47
47
|
SITUATIONAL_JUDGEMENT = 52,
|
|
48
48
|
MRCP_VIDEO = 53,
|
|
49
|
-
MRCP_BUNDLE = 54
|
|
49
|
+
MRCP_BUNDLE = 54,
|
|
50
|
+
COMPLETE_CLINICAL_BUNDLE = 55,
|
|
51
|
+
COMPLETE_UNDERGRADUATE_BUNDLE = 56
|
|
50
52
|
}
|
|
51
53
|
export declare enum EEntitlementType {
|
|
52
54
|
ALL = 0,
|
|
@@ -50,6 +50,8 @@ var EProductType;
|
|
|
50
50
|
EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
51
51
|
EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
52
52
|
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
53
|
+
EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
|
|
54
|
+
EProductType[EProductType["COMPLETE_UNDERGRADUATE_BUNDLE"] = 56] = "COMPLETE_UNDERGRADUATE_BUNDLE";
|
|
53
55
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
54
56
|
var EEntitlementType;
|
|
55
57
|
(function (EEntitlementType) {
|
|
@@ -63,6 +63,8 @@ export interface IPayload {
|
|
|
63
63
|
qbankSubscriptionEndDate: number | null;
|
|
64
64
|
osceSubscriptionEndDate: number | null;
|
|
65
65
|
bundleSubscriptionEndDate: number | null;
|
|
66
|
+
undergradBundleSubscriptionEndDate: number | null;
|
|
67
|
+
completeClinicalBundleSubscriptionEndDate: number | null;
|
|
66
68
|
anatomySubscriptionEndDate: number | null;
|
|
67
69
|
medicalSciencesSubscriptionEndDate: number | null;
|
|
68
70
|
anatomyBundleSubscriptionEndDate: number | null;
|
|
@@ -176,6 +178,8 @@ export interface IUser {
|
|
|
176
178
|
qbankSubscriptionEndDate: number | Date | null;
|
|
177
179
|
osceSubscriptionEndDate: number | Date | null;
|
|
178
180
|
bundleSubscriptionEndDate: number | Date | null;
|
|
181
|
+
undergradBundleSubscriptionEndDate: number | Date | null;
|
|
182
|
+
completeClinicalBundleSubscriptionEndDate: number | Date | null;
|
|
179
183
|
mrcpBundleSubscriptionEndDate: number | Date | null;
|
|
180
184
|
mrcpPart1SubscriptionEndDate: number | Date | null;
|
|
181
185
|
mrcpPart2SubscriptionEndDate: number | Date | null;
|
package/dist/cjs/models/User.js
CHANGED
|
@@ -34,6 +34,8 @@ exports.subscriptionDates = [
|
|
|
34
34
|
'qbankSubscriptionEndDate',
|
|
35
35
|
'osceSubscriptionEndDate',
|
|
36
36
|
'bundleSubscriptionEndDate',
|
|
37
|
+
'undergradBundleSubscriptionEndDate',
|
|
38
|
+
'completeClinicalBundleSubscriptionEndDate',
|
|
37
39
|
'anatomySubscriptionEndDate',
|
|
38
40
|
'medicalSciencesSubscriptionEndDate',
|
|
39
41
|
'anatomyBundleSubscriptionEndDate',
|
|
@@ -56,6 +58,8 @@ exports.dateProductMapping = {
|
|
|
56
58
|
qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
57
59
|
osceSubscriptionEndDate: Product_1.EProductType.OSCE,
|
|
58
60
|
bundleSubscriptionEndDate: Product_1.EProductType.BUNDLE,
|
|
61
|
+
undergradBundleSubscriptionEndDate: Product_1.EProductType.COMPLETE_UNDERGRADUATE_BUNDLE,
|
|
62
|
+
completeClinicalBundleSubscriptionEndDate: Product_1.EProductType.COMPLETE_CLINICAL_BUNDLE,
|
|
59
63
|
anatomySubscriptionEndDate: Product_1.EProductType.ANATOMY,
|
|
60
64
|
medicalSciencesSubscriptionEndDate: Product_1.EProductType.MEDICAL_SCIENCES,
|
|
61
65
|
anatomyBundleSubscriptionEndDate: Product_1.EProductType.ANATOMY_BUNDLE,
|
|
@@ -35,6 +35,16 @@ exports.productMapping = {
|
|
|
35
35
|
topicType: ALL_TOPIC_TYPE_WITHOUT_ANATOMY,
|
|
36
36
|
mockType: ALL_MOCKS_WITHOUT_ANATOMY,
|
|
37
37
|
},
|
|
38
|
+
[models_1.EProductType.COMPLETE_CLINICAL_BUNDLE]: {
|
|
39
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
40
|
+
topicType: ALL_TOPIC_TYPE,
|
|
41
|
+
mockType: ALL_MOCKS,
|
|
42
|
+
},
|
|
43
|
+
[models_1.EProductType.COMPLETE_UNDERGRADUATE_BUNDLE]: {
|
|
44
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
45
|
+
topicType: ALL_TOPIC_TYPE,
|
|
46
|
+
mockType: ALL_MOCKS,
|
|
47
|
+
},
|
|
38
48
|
[models_1.EProductType.MRCP_BUNDLE]: {
|
|
39
49
|
db: enums_1.DB_TYPE.FINALS,
|
|
40
50
|
topicType: [models_1.ETopicType.CLINICAL],
|
|
@@ -103,6 +103,8 @@ exports.USER_FIELDS = (0, client_1.gql) `
|
|
|
103
103
|
qbankSubscriptionEndDate
|
|
104
104
|
osceSubscriptionEndDate
|
|
105
105
|
bundleSubscriptionEndDate
|
|
106
|
+
undergradBundleSubscriptionEndDate
|
|
107
|
+
completeClinicalBundleSubscriptionEndDate
|
|
106
108
|
|
|
107
109
|
# pre-clinical
|
|
108
110
|
anatomySubscriptionEndDate
|
|
@@ -46,7 +46,9 @@ export declare enum EProductType {
|
|
|
46
46
|
QUANTITATIVE_REASONING = 51,
|
|
47
47
|
SITUATIONAL_JUDGEMENT = 52,
|
|
48
48
|
MRCP_VIDEO = 53,
|
|
49
|
-
MRCP_BUNDLE = 54
|
|
49
|
+
MRCP_BUNDLE = 54,
|
|
50
|
+
COMPLETE_CLINICAL_BUNDLE = 55,
|
|
51
|
+
COMPLETE_UNDERGRADUATE_BUNDLE = 56
|
|
50
52
|
}
|
|
51
53
|
export declare enum EEntitlementType {
|
|
52
54
|
ALL = 0,
|
|
@@ -47,6 +47,8 @@ export var EProductType;
|
|
|
47
47
|
EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
48
48
|
EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
49
49
|
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
50
|
+
EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
|
|
51
|
+
EProductType[EProductType["COMPLETE_UNDERGRADUATE_BUNDLE"] = 56] = "COMPLETE_UNDERGRADUATE_BUNDLE";
|
|
50
52
|
})(EProductType || (EProductType = {}));
|
|
51
53
|
export var EEntitlementType;
|
|
52
54
|
(function (EEntitlementType) {
|
|
@@ -63,6 +63,8 @@ export interface IPayload {
|
|
|
63
63
|
qbankSubscriptionEndDate: number | null;
|
|
64
64
|
osceSubscriptionEndDate: number | null;
|
|
65
65
|
bundleSubscriptionEndDate: number | null;
|
|
66
|
+
undergradBundleSubscriptionEndDate: number | null;
|
|
67
|
+
completeClinicalBundleSubscriptionEndDate: number | null;
|
|
66
68
|
anatomySubscriptionEndDate: number | null;
|
|
67
69
|
medicalSciencesSubscriptionEndDate: number | null;
|
|
68
70
|
anatomyBundleSubscriptionEndDate: number | null;
|
|
@@ -176,6 +178,8 @@ export interface IUser {
|
|
|
176
178
|
qbankSubscriptionEndDate: number | Date | null;
|
|
177
179
|
osceSubscriptionEndDate: number | Date | null;
|
|
178
180
|
bundleSubscriptionEndDate: number | Date | null;
|
|
181
|
+
undergradBundleSubscriptionEndDate: number | Date | null;
|
|
182
|
+
completeClinicalBundleSubscriptionEndDate: number | Date | null;
|
|
179
183
|
mrcpBundleSubscriptionEndDate: number | Date | null;
|
|
180
184
|
mrcpPart1SubscriptionEndDate: number | Date | null;
|
|
181
185
|
mrcpPart2SubscriptionEndDate: number | Date | null;
|
package/dist/mjs/models/User.js
CHANGED
|
@@ -31,6 +31,8 @@ export const subscriptionDates = [
|
|
|
31
31
|
'qbankSubscriptionEndDate',
|
|
32
32
|
'osceSubscriptionEndDate',
|
|
33
33
|
'bundleSubscriptionEndDate',
|
|
34
|
+
'undergradBundleSubscriptionEndDate',
|
|
35
|
+
'completeClinicalBundleSubscriptionEndDate',
|
|
34
36
|
'anatomySubscriptionEndDate',
|
|
35
37
|
'medicalSciencesSubscriptionEndDate',
|
|
36
38
|
'anatomyBundleSubscriptionEndDate',
|
|
@@ -53,6 +55,8 @@ export const dateProductMapping = {
|
|
|
53
55
|
qbankSubscriptionEndDate: EProductType.QBANK,
|
|
54
56
|
osceSubscriptionEndDate: EProductType.OSCE,
|
|
55
57
|
bundleSubscriptionEndDate: EProductType.BUNDLE,
|
|
58
|
+
undergradBundleSubscriptionEndDate: EProductType.COMPLETE_UNDERGRADUATE_BUNDLE,
|
|
59
|
+
completeClinicalBundleSubscriptionEndDate: EProductType.COMPLETE_CLINICAL_BUNDLE,
|
|
56
60
|
anatomySubscriptionEndDate: EProductType.ANATOMY,
|
|
57
61
|
medicalSciencesSubscriptionEndDate: EProductType.MEDICAL_SCIENCES,
|
|
58
62
|
anatomyBundleSubscriptionEndDate: EProductType.ANATOMY_BUNDLE,
|
|
@@ -32,6 +32,16 @@ export const productMapping = {
|
|
|
32
32
|
topicType: ALL_TOPIC_TYPE_WITHOUT_ANATOMY,
|
|
33
33
|
mockType: ALL_MOCKS_WITHOUT_ANATOMY,
|
|
34
34
|
},
|
|
35
|
+
[EProductType.COMPLETE_CLINICAL_BUNDLE]: {
|
|
36
|
+
db: DB_TYPE.FINALS,
|
|
37
|
+
topicType: ALL_TOPIC_TYPE,
|
|
38
|
+
mockType: ALL_MOCKS,
|
|
39
|
+
},
|
|
40
|
+
[EProductType.COMPLETE_UNDERGRADUATE_BUNDLE]: {
|
|
41
|
+
db: DB_TYPE.FINALS,
|
|
42
|
+
topicType: ALL_TOPIC_TYPE,
|
|
43
|
+
mockType: ALL_MOCKS,
|
|
44
|
+
},
|
|
35
45
|
[EProductType.MRCP_BUNDLE]: {
|
|
36
46
|
db: DB_TYPE.FINALS,
|
|
37
47
|
topicType: [ETopicType.CLINICAL],
|
|
@@ -100,6 +100,8 @@ export const USER_FIELDS = gql `
|
|
|
100
100
|
qbankSubscriptionEndDate
|
|
101
101
|
osceSubscriptionEndDate
|
|
102
102
|
bundleSubscriptionEndDate
|
|
103
|
+
undergradBundleSubscriptionEndDate
|
|
104
|
+
completeClinicalBundleSubscriptionEndDate
|
|
103
105
|
|
|
104
106
|
# pre-clinical
|
|
105
107
|
anatomySubscriptionEndDate
|