@quesmed/types-rn 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.
@@ -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;
package/models/Product.js CHANGED
@@ -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) {
package/models/User.d.ts CHANGED
@@ -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/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.INTERVIEW_IMT,
65
- imtInterviewSubscriptionEndDate: Product_1.EProductType.QBANK,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.138",
3
+ "version": "2.6.140",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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;
@@ -113,6 +113,7 @@ exports.USER_FIELDS = (0, client_1.gql) `
113
113
  mrcpPart2SubscriptionEndDate
114
114
  pacesSubscriptionEndDate
115
115
  msraSubscriptionEndDate
116
+ mrcpVideoSubscriptionEndDate
116
117
 
117
118
  # interviews
118
119
  anaestheticsInterviewSubscriptionEndDate
@@ -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($priceId: String!) {
6
+ mutation CreateNewSubscriptionCheckoutSession(
7
+ $priceId: String!
8
+ $additionalPriceId: String
9
+ ) {
7
10
  validUserToken {
8
- createNewSubscriptionCheckoutSession(priceId: $priceId)
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($priceId: String!) {
19
+ mutation CreateNewOneOffCheckoutSession(
20
+ $priceId: String!
21
+ $additionalPriceId: String
22
+ ) {
14
23
  validUserToken {
15
- createNewOneOffCheckoutSession(priceId: $priceId)
24
+ createNewOneOffCheckoutSession(
25
+ priceId: $priceId
26
+ additionalPriceId: $additionalPriceId
27
+ )
16
28
  }
17
29
  }
18
30
  `;