@quesmed/types 2.6.138 → 2.6.140
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 +4 -2
- package/dist/cjs/models/Product.js +2 -0
- package/dist/cjs/models/User.d.ts +2 -0
- package/dist/cjs/models/User.js +4 -2
- package/dist/cjs/resolvers/constants.js +6 -0
- package/dist/cjs/resolvers/fragments/user.js +1 -0
- package/dist/cjs/resolvers/mutation/validUserToken/user.d.ts +2 -0
- package/dist/cjs/resolvers/mutation/validUserToken/user.js +16 -4
- package/dist/mjs/models/Product.d.ts +4 -2
- package/dist/mjs/models/Product.js +2 -0
- package/dist/mjs/models/User.d.ts +2 -0
- package/dist/mjs/models/User.js +4 -2
- package/dist/mjs/resolvers/constants.js +6 -0
- package/dist/mjs/resolvers/fragments/user.js +1 -0
- package/dist/mjs/resolvers/mutation/validUserToken/user.d.ts +2 -0
- package/dist/mjs/resolvers/mutation/validUserToken/user.js +16 -4
- package/package.json +1 -1
|
@@ -44,7 +44,8 @@ export declare enum EProductType {
|
|
|
44
44
|
VERBAL_REASONING = 49,
|
|
45
45
|
DECISION_MAKING = 50,
|
|
46
46
|
QUANTITATIVE_REASONING = 51,
|
|
47
|
-
SITUATIONAL_JUDGEMENT = 52
|
|
47
|
+
SITUATIONAL_JUDGEMENT = 52,
|
|
48
|
+
MRCP_VIDEO = 53
|
|
48
49
|
}
|
|
49
50
|
export declare enum EEntitlementType {
|
|
50
51
|
ALL = 0,
|
|
@@ -81,7 +82,8 @@ export declare enum EEntitlementType {
|
|
|
81
82
|
VERBAL_REASONING = 49,
|
|
82
83
|
DECISION_MAKING = 50,
|
|
83
84
|
QUANTITATIVE_REASONING = 51,
|
|
84
|
-
SITUATIONAL_JUDGEMENT = 52
|
|
85
|
+
SITUATIONAL_JUDGEMENT = 52,
|
|
86
|
+
MRCP_VIDEO = 53
|
|
85
87
|
}
|
|
86
88
|
export interface IProduct {
|
|
87
89
|
id: Id;
|
|
@@ -48,6 +48,7 @@ var EProductType;
|
|
|
48
48
|
EProductType[EProductType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
|
|
49
49
|
EProductType[EProductType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
50
50
|
EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
51
|
+
EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
51
52
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
52
53
|
var EEntitlementType;
|
|
53
54
|
(function (EEntitlementType) {
|
|
@@ -86,6 +87,7 @@ var EEntitlementType;
|
|
|
86
87
|
EEntitlementType[EEntitlementType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
|
|
87
88
|
EEntitlementType[EEntitlementType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
88
89
|
EEntitlementType[EEntitlementType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
90
|
+
EEntitlementType[EEntitlementType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
89
91
|
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
90
92
|
var EAppType;
|
|
91
93
|
(function (EAppType) {
|
|
@@ -69,6 +69,7 @@ export interface IPayload {
|
|
|
69
69
|
mrcpPart2SubscriptionEndDate: number | null;
|
|
70
70
|
pacesSubscriptionEndDate: number | null;
|
|
71
71
|
msraSubscriptionEndDate: number | null;
|
|
72
|
+
mrcpVideoSubscriptionEndDate: number | null;
|
|
72
73
|
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
73
74
|
cstInterviewSubscriptionEndDate: number | null;
|
|
74
75
|
imtInterviewSubscriptionEndDate: number | null;
|
|
@@ -177,6 +178,7 @@ export interface IUser {
|
|
|
177
178
|
mrcpPart2SubscriptionEndDate: number | Date | null;
|
|
178
179
|
pacesSubscriptionEndDate: number | Date | null;
|
|
179
180
|
msraSubscriptionEndDate: number | Date | null;
|
|
181
|
+
mrcpVideoSubscriptionEndDate: number | Date | null;
|
|
180
182
|
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
181
183
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
182
184
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
package/dist/cjs/models/User.js
CHANGED
|
@@ -48,6 +48,7 @@ exports.subscriptionDates = [
|
|
|
48
48
|
'plab1SubscriptionEndDate',
|
|
49
49
|
'plab2SubscriptionEndDate',
|
|
50
50
|
'ucatSubscriptionEndDate',
|
|
51
|
+
'mrcpVideoSubscriptionEndDate',
|
|
51
52
|
];
|
|
52
53
|
exports.dateProductMapping = {
|
|
53
54
|
qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
@@ -58,11 +59,12 @@ exports.dateProductMapping = {
|
|
|
58
59
|
anatomyBundleSubscriptionEndDate: Product_1.EProductType.ANATOMY_BUNDLE,
|
|
59
60
|
mrcpPart1SubscriptionEndDate: Product_1.EProductType.MRCP_PART1,
|
|
60
61
|
mrcpPart2SubscriptionEndDate: Product_1.EProductType.MRCP_PART2,
|
|
62
|
+
mrcpVideoSubscriptionEndDate: Product_1.EProductType.MRCP_VIDEO,
|
|
61
63
|
pacesSubscriptionEndDate: Product_1.EProductType.PACES,
|
|
62
64
|
msraSubscriptionEndDate: Product_1.EProductType.MSRA,
|
|
63
65
|
anaestheticsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_ANAESTHETICS,
|
|
64
|
-
cstInterviewSubscriptionEndDate: Product_1.EProductType.
|
|
65
|
-
imtInterviewSubscriptionEndDate: Product_1.EProductType.
|
|
66
|
+
cstInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_CST,
|
|
67
|
+
imtInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_IMT,
|
|
66
68
|
radiologyInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_RADIOLOGY,
|
|
67
69
|
paediatricsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_PAEDIATRICS,
|
|
68
70
|
plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
|
|
@@ -119,6 +119,11 @@ exports.productMapping = {
|
|
|
119
119
|
models_1.EMockTestType.SITUATIONAL_JUDGEMENT,
|
|
120
120
|
],
|
|
121
121
|
},
|
|
122
|
+
[models_1.EProductType.MRCP_VIDEO]: {
|
|
123
|
+
db: enums_1.DB_TYPE.MRCP,
|
|
124
|
+
topicType: [models_1.ETopicType.CLINICAL],
|
|
125
|
+
mockType: [],
|
|
126
|
+
},
|
|
122
127
|
};
|
|
123
128
|
const topicEntitlementMap = {
|
|
124
129
|
[models_1.ETopicType.PRE_CLINICAL]: models_1.EEntitlementType.PRE_CLINICAL,
|
|
@@ -158,6 +163,7 @@ const clinicalEntitlementMap = {
|
|
|
158
163
|
[models_1.EProductType.PLAB1]: models_1.EEntitlementType.PLAB_1,
|
|
159
164
|
[models_1.EProductType.MRCP_PART1]: models_1.EEntitlementType.MRCP_PART_1,
|
|
160
165
|
[models_1.EProductType.MRCP_PART2]: models_1.EEntitlementType.MRCP_PART_2,
|
|
166
|
+
[models_1.EProductType.MRCP_VIDEO]: models_1.EEntitlementType.MRCP_VIDEO,
|
|
161
167
|
};
|
|
162
168
|
const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
163
169
|
let entitlement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
|
|
2
2
|
export interface ICreateNewSubscriptionCheckoutSessionVar {
|
|
3
3
|
priceId: string;
|
|
4
|
+
additionalPriceId?: string;
|
|
4
5
|
}
|
|
5
6
|
export type ICreateNewSubscriptionCheckoutSessionData = {
|
|
6
7
|
validUserToken: {
|
|
@@ -10,6 +11,7 @@ export type ICreateNewSubscriptionCheckoutSessionData = {
|
|
|
10
11
|
export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
|
|
11
12
|
export interface ICreateNewOneOffCheckoutSessionVar {
|
|
12
13
|
priceId: string;
|
|
14
|
+
additionalPriceId?: string;
|
|
13
15
|
}
|
|
14
16
|
export type ICreateNewOneOffCheckoutSessionData = {
|
|
15
17
|
validUserToken: {
|
|
@@ -3,16 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VALID_USER_TOKEN = exports.CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = (0, client_1.gql) `
|
|
6
|
-
mutation CreateNewSubscriptionCheckoutSession(
|
|
6
|
+
mutation CreateNewSubscriptionCheckoutSession(
|
|
7
|
+
$priceId: String!
|
|
8
|
+
$additionalPriceId: String
|
|
9
|
+
) {
|
|
7
10
|
validUserToken {
|
|
8
|
-
createNewSubscriptionCheckoutSession(
|
|
11
|
+
createNewSubscriptionCheckoutSession(
|
|
12
|
+
priceId: $priceId
|
|
13
|
+
additionalPriceId: $additionalPriceId
|
|
14
|
+
)
|
|
9
15
|
}
|
|
10
16
|
}
|
|
11
17
|
`;
|
|
12
18
|
exports.CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = (0, client_1.gql) `
|
|
13
|
-
mutation CreateNewOneOffCheckoutSession(
|
|
19
|
+
mutation CreateNewOneOffCheckoutSession(
|
|
20
|
+
$priceId: String!
|
|
21
|
+
$additionalPriceId: String
|
|
22
|
+
) {
|
|
14
23
|
validUserToken {
|
|
15
|
-
createNewOneOffCheckoutSession(
|
|
24
|
+
createNewOneOffCheckoutSession(
|
|
25
|
+
priceId: $priceId
|
|
26
|
+
additionalPriceId: $additionalPriceId
|
|
27
|
+
)
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
30
|
`;
|
|
@@ -44,7 +44,8 @@ export declare enum EProductType {
|
|
|
44
44
|
VERBAL_REASONING = 49,
|
|
45
45
|
DECISION_MAKING = 50,
|
|
46
46
|
QUANTITATIVE_REASONING = 51,
|
|
47
|
-
SITUATIONAL_JUDGEMENT = 52
|
|
47
|
+
SITUATIONAL_JUDGEMENT = 52,
|
|
48
|
+
MRCP_VIDEO = 53
|
|
48
49
|
}
|
|
49
50
|
export declare enum EEntitlementType {
|
|
50
51
|
ALL = 0,
|
|
@@ -81,7 +82,8 @@ export declare enum EEntitlementType {
|
|
|
81
82
|
VERBAL_REASONING = 49,
|
|
82
83
|
DECISION_MAKING = 50,
|
|
83
84
|
QUANTITATIVE_REASONING = 51,
|
|
84
|
-
SITUATIONAL_JUDGEMENT = 52
|
|
85
|
+
SITUATIONAL_JUDGEMENT = 52,
|
|
86
|
+
MRCP_VIDEO = 53
|
|
85
87
|
}
|
|
86
88
|
export interface IProduct {
|
|
87
89
|
id: Id;
|
|
@@ -45,6 +45,7 @@ export var EProductType;
|
|
|
45
45
|
EProductType[EProductType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
|
|
46
46
|
EProductType[EProductType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
47
47
|
EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
48
|
+
EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
48
49
|
})(EProductType || (EProductType = {}));
|
|
49
50
|
export var EEntitlementType;
|
|
50
51
|
(function (EEntitlementType) {
|
|
@@ -83,6 +84,7 @@ export var EEntitlementType;
|
|
|
83
84
|
EEntitlementType[EEntitlementType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
|
|
84
85
|
EEntitlementType[EEntitlementType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
85
86
|
EEntitlementType[EEntitlementType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
87
|
+
EEntitlementType[EEntitlementType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
86
88
|
})(EEntitlementType || (EEntitlementType = {}));
|
|
87
89
|
export var EAppType;
|
|
88
90
|
(function (EAppType) {
|
|
@@ -69,6 +69,7 @@ export interface IPayload {
|
|
|
69
69
|
mrcpPart2SubscriptionEndDate: number | null;
|
|
70
70
|
pacesSubscriptionEndDate: number | null;
|
|
71
71
|
msraSubscriptionEndDate: number | null;
|
|
72
|
+
mrcpVideoSubscriptionEndDate: number | null;
|
|
72
73
|
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
73
74
|
cstInterviewSubscriptionEndDate: number | null;
|
|
74
75
|
imtInterviewSubscriptionEndDate: number | null;
|
|
@@ -177,6 +178,7 @@ export interface IUser {
|
|
|
177
178
|
mrcpPart2SubscriptionEndDate: number | Date | null;
|
|
178
179
|
pacesSubscriptionEndDate: number | Date | null;
|
|
179
180
|
msraSubscriptionEndDate: number | Date | null;
|
|
181
|
+
mrcpVideoSubscriptionEndDate: number | Date | null;
|
|
180
182
|
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
181
183
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
182
184
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
package/dist/mjs/models/User.js
CHANGED
|
@@ -45,6 +45,7 @@ export const subscriptionDates = [
|
|
|
45
45
|
'plab1SubscriptionEndDate',
|
|
46
46
|
'plab2SubscriptionEndDate',
|
|
47
47
|
'ucatSubscriptionEndDate',
|
|
48
|
+
'mrcpVideoSubscriptionEndDate',
|
|
48
49
|
];
|
|
49
50
|
export const dateProductMapping = {
|
|
50
51
|
qbankSubscriptionEndDate: EProductType.QBANK,
|
|
@@ -55,11 +56,12 @@ export const dateProductMapping = {
|
|
|
55
56
|
anatomyBundleSubscriptionEndDate: EProductType.ANATOMY_BUNDLE,
|
|
56
57
|
mrcpPart1SubscriptionEndDate: EProductType.MRCP_PART1,
|
|
57
58
|
mrcpPart2SubscriptionEndDate: EProductType.MRCP_PART2,
|
|
59
|
+
mrcpVideoSubscriptionEndDate: EProductType.MRCP_VIDEO,
|
|
58
60
|
pacesSubscriptionEndDate: EProductType.PACES,
|
|
59
61
|
msraSubscriptionEndDate: EProductType.MSRA,
|
|
60
62
|
anaestheticsInterviewSubscriptionEndDate: EProductType.INTERVIEW_ANAESTHETICS,
|
|
61
|
-
cstInterviewSubscriptionEndDate: EProductType.
|
|
62
|
-
imtInterviewSubscriptionEndDate: EProductType.
|
|
63
|
+
cstInterviewSubscriptionEndDate: EProductType.INTERVIEW_CST,
|
|
64
|
+
imtInterviewSubscriptionEndDate: EProductType.INTERVIEW_IMT,
|
|
63
65
|
radiologyInterviewSubscriptionEndDate: EProductType.INTERVIEW_RADIOLOGY,
|
|
64
66
|
paediatricsInterviewSubscriptionEndDate: EProductType.INTERVIEW_PAEDIATRICS,
|
|
65
67
|
plab1SubscriptionEndDate: EProductType.PLAB1,
|
|
@@ -116,6 +116,11 @@ export const productMapping = {
|
|
|
116
116
|
EMockTestType.SITUATIONAL_JUDGEMENT,
|
|
117
117
|
],
|
|
118
118
|
},
|
|
119
|
+
[EProductType.MRCP_VIDEO]: {
|
|
120
|
+
db: DB_TYPE.MRCP,
|
|
121
|
+
topicType: [ETopicType.CLINICAL],
|
|
122
|
+
mockType: [],
|
|
123
|
+
},
|
|
119
124
|
};
|
|
120
125
|
const topicEntitlementMap = {
|
|
121
126
|
[ETopicType.PRE_CLINICAL]: EEntitlementType.PRE_CLINICAL,
|
|
@@ -155,6 +160,7 @@ const clinicalEntitlementMap = {
|
|
|
155
160
|
[EProductType.PLAB1]: EEntitlementType.PLAB_1,
|
|
156
161
|
[EProductType.MRCP_PART1]: EEntitlementType.MRCP_PART_1,
|
|
157
162
|
[EProductType.MRCP_PART2]: EEntitlementType.MRCP_PART_2,
|
|
163
|
+
[EProductType.MRCP_VIDEO]: EEntitlementType.MRCP_VIDEO,
|
|
158
164
|
};
|
|
159
165
|
export const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
160
166
|
let entitlement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
|
|
2
2
|
export interface ICreateNewSubscriptionCheckoutSessionVar {
|
|
3
3
|
priceId: string;
|
|
4
|
+
additionalPriceId?: string;
|
|
4
5
|
}
|
|
5
6
|
export type ICreateNewSubscriptionCheckoutSessionData = {
|
|
6
7
|
validUserToken: {
|
|
@@ -10,6 +11,7 @@ export type ICreateNewSubscriptionCheckoutSessionData = {
|
|
|
10
11
|
export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
|
|
11
12
|
export interface ICreateNewOneOffCheckoutSessionVar {
|
|
12
13
|
priceId: string;
|
|
14
|
+
additionalPriceId?: string;
|
|
13
15
|
}
|
|
14
16
|
export type ICreateNewOneOffCheckoutSessionData = {
|
|
15
17
|
validUserToken: {
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = gql `
|
|
3
|
-
mutation CreateNewSubscriptionCheckoutSession(
|
|
3
|
+
mutation CreateNewSubscriptionCheckoutSession(
|
|
4
|
+
$priceId: String!
|
|
5
|
+
$additionalPriceId: String
|
|
6
|
+
) {
|
|
4
7
|
validUserToken {
|
|
5
|
-
createNewSubscriptionCheckoutSession(
|
|
8
|
+
createNewSubscriptionCheckoutSession(
|
|
9
|
+
priceId: $priceId
|
|
10
|
+
additionalPriceId: $additionalPriceId
|
|
11
|
+
)
|
|
6
12
|
}
|
|
7
13
|
}
|
|
8
14
|
`;
|
|
9
15
|
export const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = gql `
|
|
10
|
-
mutation CreateNewOneOffCheckoutSession(
|
|
16
|
+
mutation CreateNewOneOffCheckoutSession(
|
|
17
|
+
$priceId: String!
|
|
18
|
+
$additionalPriceId: String
|
|
19
|
+
) {
|
|
11
20
|
validUserToken {
|
|
12
|
-
createNewOneOffCheckoutSession(
|
|
21
|
+
createNewOneOffCheckoutSession(
|
|
22
|
+
priceId: $priceId
|
|
23
|
+
additionalPriceId: $additionalPriceId
|
|
24
|
+
)
|
|
13
25
|
}
|
|
14
26
|
}
|
|
15
27
|
`;
|