@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.186",
3
+ "version": "2.6.188",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
- username: string;
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
- $username: String!
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
- username: $username
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
  }