@quesmed/types 2.6.36 → 2.6.38

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.
@@ -86,6 +86,7 @@ export interface IOsceMarksheet {
86
86
  state: EOsceMarksheetState;
87
87
  completed: boolean;
88
88
  productId: EProductType;
89
+ isTimed: boolean;
89
90
  }
90
91
  export interface IDashboardOsce {
91
92
  lastSessionId: string;
@@ -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;
@@ -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 = {}));
@@ -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;
@@ -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) {
@@ -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
  };
@@ -111,6 +111,7 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
111
111
  feedback
112
112
  agoraId
113
113
  sessionId
114
+ isTimed
114
115
  readingTime
115
116
  stationTime
116
117
  feedbackTime
@@ -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
@@ -68,6 +68,7 @@ export interface IPrestartOsceMarksheetVar {
68
68
  readingTime: number;
69
69
  stationTime: number;
70
70
  feedbackTime: number;
71
+ isTimed: boolean;
71
72
  }
72
73
  export type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
73
74
  export declare const SAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -129,6 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
129
130
  members: import("../../../models").IOsceMarksheetMember[];
130
131
  state: EOsceMarksheetState;
131
132
  productId: EProductType;
133
+ isTimed: boolean;
132
134
  __typename: string;
133
135
  };
134
136
  };
@@ -86,6 +86,7 @@ export interface IOsceMarksheet {
86
86
  state: EOsceMarksheetState;
87
87
  completed: boolean;
88
88
  productId: EProductType;
89
+ isTimed: boolean;
89
90
  }
90
91
  export interface IDashboardOsce {
91
92
  lastSessionId: string;
@@ -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;
@@ -34,8 +34,8 @@ export var EProductType;
34
34
  EProductType[EProductType["CONSULTATION"] = 31] = "CONSULTATION";
35
35
  EProductType[EProductType["NEUROLOGY"] = 32] = "NEUROLOGY";
36
36
  EProductType[EProductType["RESPIRATORY"] = 33] = "RESPIRATORY";
37
- EProductType[EProductType["PLAB_QBANK"] = 34] = "PLAB_QBANK";
38
- EProductType[EProductType["PLAB_OSCE"] = 35] = "PLAB_OSCE";
37
+ EProductType[EProductType["PLAB1"] = 34] = "PLAB1";
38
+ EProductType[EProductType["PLAB2"] = 35] = "PLAB2";
39
39
  })(EProductType || (EProductType = {}));
40
40
  export var EAppType;
41
41
  (function (EAppType) {
@@ -44,4 +44,5 @@ export var EAppType;
44
44
  EAppType[EAppType["MRCP"] = 3] = "MRCP";
45
45
  EAppType[EAppType["INTERVIEW"] = 4] = "INTERVIEW";
46
46
  EAppType[EAppType["MSRA"] = 5] = "MSRA";
47
+ EAppType[EAppType["PLAB"] = 6] = "PLAB";
47
48
  })(EAppType || (EAppType = {}));
@@ -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;
@@ -31,6 +31,8 @@ export const subscriptionDates = [
31
31
  'cstInterviewSubscriptionEndDate',
32
32
  'imtInterviewSubscriptionEndDate',
33
33
  'radiologyInterviewSubscriptionEndDate',
34
+ 'plab1SubscriptionEndDate',
35
+ 'plab2SubscriptionEndDate',
34
36
  ];
35
37
  export const dateProductMapping = {
36
38
  qbankSubscriptionEndDate: EProductType.QBANK,
@@ -47,6 +49,8 @@ export const dateProductMapping = {
47
49
  cstInterviewSubscriptionEndDate: EProductType.INTERVIEW_IMT,
48
50
  imtInterviewSubscriptionEndDate: EProductType.QBANK,
49
51
  radiologyInterviewSubscriptionEndDate: EProductType.INTERVIEW_RADIOLOGY,
52
+ plab1SubscriptionEndDate: EProductType.PLAB1,
53
+ plab2SubscriptionEndDate: EProductType.PLAB2,
50
54
  };
51
55
  export var EClassYearGroup;
52
56
  (function (EClassYearGroup) {
@@ -88,4 +88,14 @@ export const productMapping = {
88
88
  topicType: [ETopicType.INTERVIEW_RADIOLOGY],
89
89
  mockType: ALL_MOCKS,
90
90
  },
91
+ [EProductType.PLAB1]: {
92
+ db: DB_TYPE.FINALS,
93
+ topicType: [ETopicType.CLINICAL],
94
+ mockType: ALL_MOCKS,
95
+ },
96
+ [EProductType.PLAB2]: {
97
+ db: DB_TYPE.FINALS,
98
+ topicType: ALL_TOPIC_TYPE,
99
+ mockType: ALL_MOCKS,
100
+ },
91
101
  };
@@ -108,6 +108,7 @@ export const OSCE_MARKSHEET_FIELDS = gql `
108
108
  feedback
109
109
  agoraId
110
110
  sessionId
111
+ isTimed
111
112
  readingTime
112
113
  stationTime
113
114
  feedbackTime
@@ -56,6 +56,10 @@ export const USER_FIELDS = gql `
56
56
  imtInterviewSubscriptionEndDate
57
57
  radiologyInterviewSubscriptionEndDate
58
58
 
59
+ # plab
60
+ plab1SubscriptionEndDate
61
+ plab2SubscriptionEndDate
62
+
59
63
  # user-specific keys
60
64
  # marksheets
61
65
  # marksheetsCount
@@ -68,6 +68,7 @@ export interface IPrestartOsceMarksheetVar {
68
68
  readingTime: number;
69
69
  stationTime: number;
70
70
  feedbackTime: number;
71
+ isTimed: boolean;
71
72
  }
72
73
  export type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
73
74
  export declare const SAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -129,6 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
129
130
  members: import("../../../models").IOsceMarksheetMember[];
130
131
  state: EOsceMarksheetState;
131
132
  productId: EProductType;
133
+ isTimed: boolean;
132
134
  __typename: string;
133
135
  };
134
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.36",
3
+ "version": "2.6.38",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",