@quesmed/types-rn 2.6.156 → 2.6.158
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 +2 -1
- package/models/Product.js +1 -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 -1
- package/resolvers/fragments/user.js +1 -0
- package/resolvers/mutation/admin/database.d.ts +7 -0
- package/resolvers/mutation/admin/database.js +16 -1
package/models/Product.d.ts
CHANGED
package/models/Product.js
CHANGED
|
@@ -49,6 +49,7 @@ var EProductType;
|
|
|
49
49
|
EProductType[EProductType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
|
|
50
50
|
EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
|
|
51
51
|
EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
|
|
52
|
+
EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
|
|
52
53
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
53
54
|
var EEntitlementType;
|
|
54
55
|
(function (EEntitlementType) {
|
package/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -19,4 +19,5 @@ var ETopicType;
|
|
|
19
19
|
ETopicType[ETopicType["INTERVIEW_RADIOLOGY"] = 12] = "INTERVIEW_RADIOLOGY";
|
|
20
20
|
ETopicType[ETopicType["INTERVIEW_PAEDIATRICS"] = 13] = "INTERVIEW_PAEDIATRICS";
|
|
21
21
|
ETopicType[ETopicType["UCAT"] = 14] = "UCAT";
|
|
22
|
+
ETopicType[ETopicType["MRCP_VIDEO"] = 15] = "MRCP_VIDEO";
|
|
22
23
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/models/User.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface IPayload {
|
|
|
65
65
|
anatomySubscriptionEndDate: number | null;
|
|
66
66
|
medicalSciencesSubscriptionEndDate: number | null;
|
|
67
67
|
anatomyBundleSubscriptionEndDate: number | null;
|
|
68
|
+
mrcpBundleSubscriptionEndDate: number | null;
|
|
68
69
|
mrcpPart1SubscriptionEndDate: number | null;
|
|
69
70
|
mrcpPart2SubscriptionEndDate: number | null;
|
|
70
71
|
pacesSubscriptionEndDate: number | null;
|
|
@@ -174,6 +175,7 @@ export interface IUser {
|
|
|
174
175
|
qbankSubscriptionEndDate: number | Date | null;
|
|
175
176
|
osceSubscriptionEndDate: number | Date | null;
|
|
176
177
|
bundleSubscriptionEndDate: number | Date | null;
|
|
178
|
+
mrcpBundleSubscriptionEndDate: number | Date | null;
|
|
177
179
|
mrcpPart1SubscriptionEndDate: number | Date | null;
|
|
178
180
|
mrcpPart2SubscriptionEndDate: number | Date | null;
|
|
179
181
|
pacesSubscriptionEndDate: number | Date | null;
|
package/models/User.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.subscriptionDates = [
|
|
|
36
36
|
'anatomySubscriptionEndDate',
|
|
37
37
|
'medicalSciencesSubscriptionEndDate',
|
|
38
38
|
'anatomyBundleSubscriptionEndDate',
|
|
39
|
+
'mrcpBundleSubscriptionEndDate',
|
|
39
40
|
'mrcpPart1SubscriptionEndDate',
|
|
40
41
|
'mrcpPart2SubscriptionEndDate',
|
|
41
42
|
'pacesSubscriptionEndDate',
|
|
@@ -57,6 +58,7 @@ exports.dateProductMapping = {
|
|
|
57
58
|
anatomySubscriptionEndDate: Product_1.EProductType.ANATOMY,
|
|
58
59
|
medicalSciencesSubscriptionEndDate: Product_1.EProductType.MEDICAL_SCIENCES,
|
|
59
60
|
anatomyBundleSubscriptionEndDate: Product_1.EProductType.ANATOMY_BUNDLE,
|
|
61
|
+
mrcpBundleSubscriptionEndDate: Product_1.EProductType.MRCP_BUNDLE,
|
|
60
62
|
mrcpPart1SubscriptionEndDate: Product_1.EProductType.MRCP_PART1,
|
|
61
63
|
mrcpPart2SubscriptionEndDate: Product_1.EProductType.MRCP_PART2,
|
|
62
64
|
mrcpVideoSubscriptionEndDate: Product_1.EProductType.MRCP_VIDEO,
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -35,6 +35,11 @@ exports.productMapping = {
|
|
|
35
35
|
topicType: ALL_TOPIC_TYPE_WITHOUT_ANATOMY,
|
|
36
36
|
mockType: ALL_MOCKS_WITHOUT_ANATOMY,
|
|
37
37
|
},
|
|
38
|
+
[models_1.EProductType.MRCP_BUNDLE]: {
|
|
39
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
40
|
+
topicType: [models_1.ETopicType.CLINICAL],
|
|
41
|
+
mockType: [models_1.EMockTestType.MRCP],
|
|
42
|
+
},
|
|
38
43
|
[models_1.EProductType.ANATOMY]: {
|
|
39
44
|
db: enums_1.DB_TYPE.FINALS,
|
|
40
45
|
topicType: [models_1.ETopicType.ANATOMY],
|
|
@@ -121,7 +126,7 @@ exports.productMapping = {
|
|
|
121
126
|
},
|
|
122
127
|
[models_1.EProductType.MRCP_VIDEO]: {
|
|
123
128
|
db: enums_1.DB_TYPE.MRCP,
|
|
124
|
-
topicType: [models_1.ETopicType.
|
|
129
|
+
topicType: [models_1.ETopicType.MRCP_VIDEO],
|
|
125
130
|
mockType: [],
|
|
126
131
|
},
|
|
127
132
|
};
|
|
@@ -12,3 +12,10 @@ export type IRefreshWikiData = AdminData<boolean, 'refreshWiki'>;
|
|
|
12
12
|
export declare const RESET_QUES_DIFFICULTY: import("@apollo/client").DocumentNode;
|
|
13
13
|
export type IResetQueDifficultyVar = null;
|
|
14
14
|
export type IResetQueDifficultyData = AdminData<boolean, 'resetQueDifficulty'>;
|
|
15
|
+
export type IManageUserSubsVar = {
|
|
16
|
+
username: string;
|
|
17
|
+
password?: string;
|
|
18
|
+
stripePriceIds: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare const MANAGE_USER_SUBS: import("@apollo/client").DocumentNode;
|
|
21
|
+
export type IManageUserSubsData = AdminData<boolean, 'manageUserSubs'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RESET_QUES_DIFFICULTY = exports.REFRESH_WIKI = exports.REFRESH_MTV = void 0;
|
|
3
|
+
exports.MANAGE_USER_SUBS = exports.RESET_QUES_DIFFICULTY = exports.REFRESH_WIKI = exports.REFRESH_MTV = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.REFRESH_MTV = (0, client_1.gql) `
|
|
6
6
|
mutation RefreshMtv($name: String!) {
|
|
@@ -23,3 +23,18 @@ exports.RESET_QUES_DIFFICULTY = (0, client_1.gql) `
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
`;
|
|
26
|
+
exports.MANAGE_USER_SUBS = (0, client_1.gql) `
|
|
27
|
+
mutation ManageUserSubs(
|
|
28
|
+
$username: String!
|
|
29
|
+
$password: String
|
|
30
|
+
$stripePriceIds: [String!]!
|
|
31
|
+
) {
|
|
32
|
+
admin {
|
|
33
|
+
manageUserSubs(
|
|
34
|
+
username: $username
|
|
35
|
+
password: $password
|
|
36
|
+
stripePriceIds: $stripePriceIds
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|