@quesmed/types-rn 2.6.35 → 2.6.37

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.
@@ -1,3 +1,4 @@
1
+ import { IEntitlement } from './Product';
1
2
  import { Id } from './Type';
2
3
  export interface IFeedback {
3
4
  id: Id;
@@ -6,4 +7,5 @@ export interface IFeedback {
6
7
  name: string;
7
8
  feedback: string;
8
9
  university: string;
10
+ product: IEntitlement;
9
11
  }
@@ -34,8 +34,8 @@ export declare enum EProductType {
34
34
  CONSULTATION = 31,
35
35
  NEUROLOGY = 32,
36
36
  RESPIRATORY = 33,
37
- PLAB_QBANK = 34,
38
- PLAB_OSCE = 35
37
+ PLAB1 = 34,
38
+ PLAB2 = 35
39
39
  }
40
40
  export interface IProduct {
41
41
  id: Id;
@@ -58,7 +58,8 @@ export declare enum EAppType {
58
58
  CM_UKMLA = 2,
59
59
  MRCP = 3,
60
60
  INTERVIEW = 4,
61
- MSRA = 5
61
+ MSRA = 5,
62
+ PLAB = 6
62
63
  }
63
64
  export interface IEntitlement {
64
65
  id: EProductType;
package/models/Product.js CHANGED
@@ -37,8 +37,8 @@ var EProductType;
37
37
  EProductType[EProductType["CONSULTATION"] = 31] = "CONSULTATION";
38
38
  EProductType[EProductType["NEUROLOGY"] = 32] = "NEUROLOGY";
39
39
  EProductType[EProductType["RESPIRATORY"] = 33] = "RESPIRATORY";
40
- EProductType[EProductType["PLAB_QBANK"] = 34] = "PLAB_QBANK";
41
- EProductType[EProductType["PLAB_OSCE"] = 35] = "PLAB_OSCE";
40
+ EProductType[EProductType["PLAB1"] = 34] = "PLAB1";
41
+ EProductType[EProductType["PLAB2"] = 35] = "PLAB2";
42
42
  })(EProductType = exports.EProductType || (exports.EProductType = {}));
43
43
  var EAppType;
44
44
  (function (EAppType) {
@@ -47,4 +47,5 @@ var EAppType;
47
47
  EAppType[EAppType["MRCP"] = 3] = "MRCP";
48
48
  EAppType[EAppType["INTERVIEW"] = 4] = "INTERVIEW";
49
49
  EAppType[EAppType["MSRA"] = 5] = "MSRA";
50
+ EAppType[EAppType["PLAB"] = 6] = "PLAB";
50
51
  })(EAppType = exports.EAppType || (exports.EAppType = {}));
package/models/User.d.ts CHANGED
@@ -46,12 +46,12 @@ export interface IPayload {
46
46
  accessLevel: IAccessLevel;
47
47
  tocAccepted: boolean;
48
48
  exp: number;
49
- anatomySubscriptionEndDate: number | null;
50
- medicalSciencesSubscriptionEndDate: number | null;
51
- anatomyBundleSubscriptionEndDate: number | null;
52
49
  qbankSubscriptionEndDate: number | null;
53
50
  osceSubscriptionEndDate: number | null;
54
51
  bundleSubscriptionEndDate: number | null;
52
+ anatomySubscriptionEndDate: number | null;
53
+ medicalSciencesSubscriptionEndDate: number | null;
54
+ anatomyBundleSubscriptionEndDate: number | null;
55
55
  mrcpPart1SubscriptionEndDate: number | null;
56
56
  mrcpPart2SubscriptionEndDate: number | null;
57
57
  pacesSubscriptionEndDate: number | null;
@@ -60,6 +60,8 @@ export interface IPayload {
60
60
  cstInterviewSubscriptionEndDate: number | null;
61
61
  imtInterviewSubscriptionEndDate: number | null;
62
62
  radiologyInterviewSubscriptionEndDate: number | null;
63
+ plab1SubscriptionEndDate: number | null;
64
+ plab2SubscriptionEndDate: number | null;
63
65
  ver: number;
64
66
  }
65
67
  export interface IDailyProgressVar {
@@ -137,6 +139,8 @@ export interface IUser {
137
139
  cstInterviewSubscriptionEndDate: number | Date | null;
138
140
  imtInterviewSubscriptionEndDate: number | Date | null;
139
141
  radiologyInterviewSubscriptionEndDate: number | Date | null;
142
+ plab1SubscriptionEndDate: number | Date | null;
143
+ plab2SubscriptionEndDate: number | Date | null;
140
144
  questionHighlights?: IQuestionHighlights[];
141
145
  }
142
146
  export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
package/models/User.js CHANGED
@@ -34,6 +34,8 @@ exports.subscriptionDates = [
34
34
  'cstInterviewSubscriptionEndDate',
35
35
  'imtInterviewSubscriptionEndDate',
36
36
  'radiologyInterviewSubscriptionEndDate',
37
+ 'plab1SubscriptionEndDate',
38
+ 'plab2SubscriptionEndDate',
37
39
  ];
38
40
  exports.dateProductMapping = {
39
41
  qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
@@ -50,6 +52,8 @@ exports.dateProductMapping = {
50
52
  cstInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_IMT,
51
53
  imtInterviewSubscriptionEndDate: Product_1.EProductType.QBANK,
52
54
  radiologyInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_RADIOLOGY,
55
+ plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
56
+ plab2SubscriptionEndDate: Product_1.EProductType.PLAB2,
53
57
  };
54
58
  var EClassYearGroup;
55
59
  (function (EClassYearGroup) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.35",
3
+ "version": "2.6.37",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -91,4 +91,14 @@ exports.productMapping = {
91
91
  topicType: [models_1.ETopicType.INTERVIEW_RADIOLOGY],
92
92
  mockType: ALL_MOCKS,
93
93
  },
94
+ [models_1.EProductType.PLAB1]: {
95
+ db: enums_1.DB_TYPE.FINALS,
96
+ topicType: [models_1.ETopicType.CLINICAL],
97
+ mockType: ALL_MOCKS,
98
+ },
99
+ [models_1.EProductType.PLAB2]: {
100
+ db: enums_1.DB_TYPE.FINALS,
101
+ topicType: ALL_TOPIC_TYPE,
102
+ mockType: ALL_MOCKS,
103
+ },
94
104
  };
@@ -59,6 +59,10 @@ exports.USER_FIELDS = (0, client_1.gql) `
59
59
  imtInterviewSubscriptionEndDate
60
60
  radiologyInterviewSubscriptionEndDate
61
61
 
62
+ # plab
63
+ plab1SubscriptionEndDate
64
+ plab2SubscriptionEndDate
65
+
62
66
  # user-specific keys
63
67
  # marksheets
64
68
  # marksheetsCount
@@ -9,6 +9,10 @@ exports.FEEDBACK = (0, client_1.gql) `
9
9
  name
10
10
  feedback
11
11
  university
12
+ product {
13
+ id
14
+ name
15
+ }
12
16
  }
13
17
  }
14
18
  `;