@quesmed/types-rn 2.6.186 → 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/models/Product.d.ts +3 -1
- package/models/Product.js +2 -0
- package/models/User.d.ts +4 -0
- package/models/User.js +4 -0
- package/package.json +1 -1
- package/resolvers/constants.js +10 -0
- package/resolvers/fragments/user.js +2 -0
- package/resolvers/mutation/admin/database.d.ts +7 -1
- package/resolvers/mutation/admin/database.js +8 -2
package/models/Product.d.ts
CHANGED
|
@@ -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,
|
package/models/Product.js
CHANGED
|
@@ -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) {
|
package/models/User.d.ts
CHANGED
|
@@ -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/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,
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -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
|
|
@@ -13,9 +13,15 @@ export declare const RESET_QUES_DIFFICULTY: import("@apollo/client").DocumentNod
|
|
|
13
13
|
export type IResetQueDifficultyVar = null;
|
|
14
14
|
export type IResetQueDifficultyData = AdminData<boolean, 'resetQueDifficulty'>;
|
|
15
15
|
export type IManageUserSubsVar = {
|
|
16
|
-
|
|
16
|
+
usernames: string[];
|
|
17
17
|
password?: string;
|
|
18
18
|
stripePriceIds: string[];
|
|
19
|
+
emailNotification?: {
|
|
20
|
+
subject?: string | null;
|
|
21
|
+
text?: string | null;
|
|
22
|
+
};
|
|
23
|
+
cancelAtPeriodEnd: boolean;
|
|
24
|
+
description?: string;
|
|
19
25
|
};
|
|
20
26
|
export declare const MANAGE_USER_SUBS: import("@apollo/client").DocumentNode;
|
|
21
27
|
export type IManageUserSubsData = AdminData<boolean, 'manageUserSubs'>;
|
|
@@ -25,15 +25,21 @@ exports.RESET_QUES_DIFFICULTY = (0, client_1.gql) `
|
|
|
25
25
|
`;
|
|
26
26
|
exports.MANAGE_USER_SUBS = (0, client_1.gql) `
|
|
27
27
|
mutation ManageUserSubs(
|
|
28
|
-
$
|
|
28
|
+
$usernames: [String]!
|
|
29
29
|
$password: String
|
|
30
30
|
$stripePriceIds: [String!]!
|
|
31
|
+
$emailNotification: EmailInput
|
|
32
|
+
$cancelAtPeriodEnd: Boolean!
|
|
33
|
+
$description: String
|
|
31
34
|
) {
|
|
32
35
|
admin {
|
|
33
36
|
manageUserSubs(
|
|
34
|
-
|
|
37
|
+
usernames: $usernames
|
|
35
38
|
password: $password
|
|
36
39
|
stripePriceIds: $stripePriceIds
|
|
40
|
+
emailNotification: $emailNotification
|
|
41
|
+
cancelAtPeriodEnd: $cancelAtPeriodEnd
|
|
42
|
+
description: $description
|
|
37
43
|
)
|
|
38
44
|
}
|
|
39
45
|
}
|