@quesmed/types 2.6.137 → 2.6.139

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;
@@ -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) {
@@ -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;
@@ -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,
@@ -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,
@@ -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
@@ -37,6 +37,7 @@ export type IEarningsVar = {
37
37
  source: ESubSource;
38
38
  universityId: number | null;
39
39
  useNetEarning: boolean;
40
+ productIds?: EProductType[];
40
41
  };
41
42
  export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
42
43
  export declare const USER_STATUS: import("@apollo/client").DocumentNode;
@@ -129,12 +130,12 @@ export type IUserFeedbackGraphData = AdminData<Array<ITimeSeriesData>, 'userFeed
129
130
  export declare const EARNINGS_GRAPH: import("@apollo/client").DocumentNode;
130
131
  export type IEarningsGraphVar = {
131
132
  year: number | null;
132
- productId: EProductType;
133
133
  subType: ESubType;
134
134
  source: ESubSource;
135
135
  universityId: number | null;
136
136
  force: boolean;
137
137
  useNetEarning: boolean;
138
+ productIds: EProductType[];
138
139
  };
139
140
  export type IEarningsGraphData = AdminData<Array<ITimeSeriesData>, 'earningsGraph'>;
140
141
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
@@ -25,6 +25,7 @@ exports.EARNINGS = (0, client_1.gql) `
25
25
  $source: Int
26
26
  $universityId: Int
27
27
  $useNetEarning: Boolean
28
+ $productIds: [Int]
28
29
  ) {
29
30
  admin {
30
31
  earnings(
@@ -36,6 +37,7 @@ exports.EARNINGS = (0, client_1.gql) `
36
37
  force: $force
37
38
  source: $source
38
39
  useNetEarning: $useNetEarning
40
+ productIds: $productIds
39
41
  ) {
40
42
  entitlement {
41
43
  id
@@ -178,23 +180,23 @@ exports.USER_FEEDBACK_GRAPH = (0, client_1.gql) `
178
180
  `;
179
181
  exports.EARNINGS_GRAPH = (0, client_1.gql) `
180
182
  query EarningsGraph(
181
- $productId: Int
182
183
  $year: Int
183
184
  $subType: Int
184
185
  $source: Int
185
186
  $universityId: Int
186
187
  $force: Boolean
187
188
  $useNetEarning: Boolean
189
+ $productIds: [Int]
188
190
  ) {
189
191
  admin {
190
192
  earningsGraph(
191
- productId: $productId
192
193
  year: $year
193
194
  subType: $subType
194
195
  source: $source
195
196
  universityId: $universityId
196
197
  force: $force
197
198
  useNetEarning: $useNetEarning
199
+ productIds: $productIds
198
200
  ) {
199
201
  month
200
202
  count
@@ -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;
@@ -45,6 +45,7 @@ export var EProductType;
45
45
  EProductType[EProductType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
46
46
  EProductType[EProductType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
47
47
  EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
48
+ EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
48
49
  })(EProductType || (EProductType = {}));
49
50
  export var EEntitlementType;
50
51
  (function (EEntitlementType) {
@@ -83,6 +84,7 @@ export var EEntitlementType;
83
84
  EEntitlementType[EEntitlementType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
84
85
  EEntitlementType[EEntitlementType["QUANTITATIVE_REASONING"] = 51] = "QUANTITATIVE_REASONING";
85
86
  EEntitlementType[EEntitlementType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
87
+ EEntitlementType[EEntitlementType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
86
88
  })(EEntitlementType || (EEntitlementType = {}));
87
89
  export var EAppType;
88
90
  (function (EAppType) {
@@ -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;
@@ -45,6 +45,7 @@ export const subscriptionDates = [
45
45
  'plab1SubscriptionEndDate',
46
46
  'plab2SubscriptionEndDate',
47
47
  'ucatSubscriptionEndDate',
48
+ 'mrcpVideoSubscriptionEndDate',
48
49
  ];
49
50
  export const dateProductMapping = {
50
51
  qbankSubscriptionEndDate: EProductType.QBANK,
@@ -55,11 +56,12 @@ export const dateProductMapping = {
55
56
  anatomyBundleSubscriptionEndDate: EProductType.ANATOMY_BUNDLE,
56
57
  mrcpPart1SubscriptionEndDate: EProductType.MRCP_PART1,
57
58
  mrcpPart2SubscriptionEndDate: EProductType.MRCP_PART2,
59
+ mrcpVideoSubscriptionEndDate: EProductType.MRCP_VIDEO,
58
60
  pacesSubscriptionEndDate: EProductType.PACES,
59
61
  msraSubscriptionEndDate: EProductType.MSRA,
60
62
  anaestheticsInterviewSubscriptionEndDate: EProductType.INTERVIEW_ANAESTHETICS,
61
- cstInterviewSubscriptionEndDate: EProductType.INTERVIEW_IMT,
62
- imtInterviewSubscriptionEndDate: EProductType.QBANK,
63
+ cstInterviewSubscriptionEndDate: EProductType.INTERVIEW_CST,
64
+ imtInterviewSubscriptionEndDate: EProductType.INTERVIEW_IMT,
63
65
  radiologyInterviewSubscriptionEndDate: EProductType.INTERVIEW_RADIOLOGY,
64
66
  paediatricsInterviewSubscriptionEndDate: EProductType.INTERVIEW_PAEDIATRICS,
65
67
  plab1SubscriptionEndDate: EProductType.PLAB1,
@@ -116,6 +116,11 @@ export const productMapping = {
116
116
  EMockTestType.SITUATIONAL_JUDGEMENT,
117
117
  ],
118
118
  },
119
+ [EProductType.MRCP_VIDEO]: {
120
+ db: DB_TYPE.MRCP,
121
+ topicType: [ETopicType.CLINICAL],
122
+ mockType: [],
123
+ },
119
124
  };
120
125
  const topicEntitlementMap = {
121
126
  [ETopicType.PRE_CLINICAL]: EEntitlementType.PRE_CLINICAL,
@@ -110,6 +110,7 @@ export const USER_FIELDS = gql `
110
110
  mrcpPart2SubscriptionEndDate
111
111
  pacesSubscriptionEndDate
112
112
  msraSubscriptionEndDate
113
+ mrcpVideoSubscriptionEndDate
113
114
 
114
115
  # interviews
115
116
  anaestheticsInterviewSubscriptionEndDate
@@ -37,6 +37,7 @@ export type IEarningsVar = {
37
37
  source: ESubSource;
38
38
  universityId: number | null;
39
39
  useNetEarning: boolean;
40
+ productIds?: EProductType[];
40
41
  };
41
42
  export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
42
43
  export declare const USER_STATUS: import("@apollo/client").DocumentNode;
@@ -129,12 +130,12 @@ export type IUserFeedbackGraphData = AdminData<Array<ITimeSeriesData>, 'userFeed
129
130
  export declare const EARNINGS_GRAPH: import("@apollo/client").DocumentNode;
130
131
  export type IEarningsGraphVar = {
131
132
  year: number | null;
132
- productId: EProductType;
133
133
  subType: ESubType;
134
134
  source: ESubSource;
135
135
  universityId: number | null;
136
136
  force: boolean;
137
137
  useNetEarning: boolean;
138
+ productIds: EProductType[];
138
139
  };
139
140
  export type IEarningsGraphData = AdminData<Array<ITimeSeriesData>, 'earningsGraph'>;
140
141
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
@@ -22,6 +22,7 @@ export const EARNINGS = gql `
22
22
  $source: Int
23
23
  $universityId: Int
24
24
  $useNetEarning: Boolean
25
+ $productIds: [Int]
25
26
  ) {
26
27
  admin {
27
28
  earnings(
@@ -33,6 +34,7 @@ export const EARNINGS = gql `
33
34
  force: $force
34
35
  source: $source
35
36
  useNetEarning: $useNetEarning
37
+ productIds: $productIds
36
38
  ) {
37
39
  entitlement {
38
40
  id
@@ -175,23 +177,23 @@ export const USER_FEEDBACK_GRAPH = gql `
175
177
  `;
176
178
  export const EARNINGS_GRAPH = gql `
177
179
  query EarningsGraph(
178
- $productId: Int
179
180
  $year: Int
180
181
  $subType: Int
181
182
  $source: Int
182
183
  $universityId: Int
183
184
  $force: Boolean
184
185
  $useNetEarning: Boolean
186
+ $productIds: [Int]
185
187
  ) {
186
188
  admin {
187
189
  earningsGraph(
188
- productId: $productId
189
190
  year: $year
190
191
  subType: $subType
191
192
  source: $source
192
193
  universityId: $universityId
193
194
  force: $force
194
195
  useNetEarning: $useNetEarning
196
+ productIds: $productIds
195
197
  ) {
196
198
  month
197
199
  count
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.137",
3
+ "version": "2.6.139",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",