@quesmed/types 2.6.193 → 2.6.194
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.
- package/dist/cjs/models/Product.d.ts +2 -0
- package/dist/cjs/models/Product.js +2 -0
- package/dist/cjs/models/Topic.d.ts +2 -1
- package/dist/cjs/models/Topic.js +1 -0
- package/dist/cjs/models/User.d.ts +2 -0
- package/dist/cjs/models/User.js +2 -0
- package/dist/cjs/resolvers/constants.js +6 -0
- package/dist/cjs/resolvers/fragments/user.js +1 -0
- package/dist/cjs/resolvers/query/restricted/analytics.d.ts +3 -2
- package/dist/cjs/resolvers/query/restricted/analytics.js +4 -0
- package/dist/mjs/models/Product.d.ts +2 -0
- package/dist/mjs/models/Product.js +2 -0
- package/dist/mjs/models/Topic.d.ts +2 -1
- package/dist/mjs/models/Topic.js +1 -0
- package/dist/mjs/models/User.d.ts +2 -0
- package/dist/mjs/models/User.js +2 -0
- package/dist/mjs/resolvers/constants.js +6 -0
- package/dist/mjs/resolvers/fragments/user.js +1 -0
- package/dist/mjs/resolvers/query/restricted/analytics.d.ts +3 -2
- package/dist/mjs/resolvers/query/restricted/analytics.js +4 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export declare enum EProductType {
|
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
21
|
INTERVIEW_PAEDIATRICS = 45,
|
|
22
|
+
INTERVIEW_ACCS = 57,
|
|
22
23
|
CLINICAL = 15,
|
|
23
24
|
DATA_INTERPRETATION = 16,
|
|
24
25
|
CLINICAL_SUBSET = 17,
|
|
@@ -81,6 +82,7 @@ export declare enum EEntitlementType {
|
|
|
81
82
|
INTERVIEW_IMT = 42,
|
|
82
83
|
INTERVIEW_RADIOLOGY = 43,
|
|
83
84
|
INTERVIEW_PAEDIATRICS = 46,
|
|
85
|
+
INTERVIEW_ACCS = 58,
|
|
84
86
|
PLAB_1 = 44,
|
|
85
87
|
VERBAL_REASONING = 49,
|
|
86
88
|
DECISION_MAKING = 50,
|
|
@@ -22,6 +22,7 @@ var EProductType;
|
|
|
22
22
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
23
23
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
24
24
|
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 45] = "INTERVIEW_PAEDIATRICS";
|
|
25
|
+
EProductType[EProductType["INTERVIEW_ACCS"] = 57] = "INTERVIEW_ACCS";
|
|
25
26
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
26
27
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
27
28
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -85,6 +86,7 @@ var EEntitlementType;
|
|
|
85
86
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
86
87
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
87
88
|
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
89
|
+
EEntitlementType[EEntitlementType["INTERVIEW_ACCS"] = 58] = "INTERVIEW_ACCS";
|
|
88
90
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
89
91
|
EEntitlementType[EEntitlementType["VERBAL_REASONING"] = 49] = "VERBAL_REASONING";
|
|
90
92
|
EEntitlementType[EEntitlementType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
|
package/dist/cjs/models/Topic.js
CHANGED
|
@@ -20,4 +20,5 @@ var ETopicType;
|
|
|
20
20
|
ETopicType[ETopicType["INTERVIEW_PAEDIATRICS"] = 13] = "INTERVIEW_PAEDIATRICS";
|
|
21
21
|
ETopicType[ETopicType["UCAT"] = 14] = "UCAT";
|
|
22
22
|
ETopicType[ETopicType["MRCP_VIDEO"] = 15] = "MRCP_VIDEO";
|
|
23
|
+
ETopicType[ETopicType["INTERVIEW_ACCS"] = 16] = "INTERVIEW_ACCS";
|
|
23
24
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
|
@@ -79,6 +79,7 @@ export interface IPayload {
|
|
|
79
79
|
imtInterviewSubscriptionEndDate: number | null;
|
|
80
80
|
radiologyInterviewSubscriptionEndDate: number | null;
|
|
81
81
|
paediatricsInterviewSubscriptionEndDate: number | null;
|
|
82
|
+
accsInterviewSubscriptionEndDate: number | null;
|
|
82
83
|
plab1SubscriptionEndDate: number | null;
|
|
83
84
|
plab2SubscriptionEndDate: number | null;
|
|
84
85
|
ucatSubscriptionEndDate: number | null;
|
|
@@ -191,6 +192,7 @@ export interface IUser {
|
|
|
191
192
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
192
193
|
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
193
194
|
paediatricsInterviewSubscriptionEndDate: number | Date | null;
|
|
195
|
+
accsInterviewSubscriptionEndDate: number | Date | null;
|
|
194
196
|
plab1SubscriptionEndDate: number | Date | null;
|
|
195
197
|
plab2SubscriptionEndDate: number | Date | null;
|
|
196
198
|
ucatSubscriptionEndDate: number | Date | null;
|
package/dist/cjs/models/User.js
CHANGED
|
@@ -49,6 +49,7 @@ exports.subscriptionDates = [
|
|
|
49
49
|
'imtInterviewSubscriptionEndDate',
|
|
50
50
|
'radiologyInterviewSubscriptionEndDate',
|
|
51
51
|
'paediatricsInterviewSubscriptionEndDate',
|
|
52
|
+
'accsInterviewSubscriptionEndDate',
|
|
52
53
|
'plab1SubscriptionEndDate',
|
|
53
54
|
'plab2SubscriptionEndDate',
|
|
54
55
|
'ucatSubscriptionEndDate',
|
|
@@ -74,6 +75,7 @@ exports.dateProductMapping = {
|
|
|
74
75
|
imtInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_IMT,
|
|
75
76
|
radiologyInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_RADIOLOGY,
|
|
76
77
|
paediatricsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_PAEDIATRICS,
|
|
78
|
+
accsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_ACCS,
|
|
77
79
|
plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
|
|
78
80
|
plab2SubscriptionEndDate: Product_1.EProductType.PLAB2,
|
|
79
81
|
ucatSubscriptionEndDate: Product_1.EProductType.UCAT,
|
|
@@ -113,6 +113,11 @@ exports.productMapping = {
|
|
|
113
113
|
topicType: [models_1.ETopicType.INTERVIEW_PAEDIATRICS],
|
|
114
114
|
mockType: ALL_MOCKS,
|
|
115
115
|
},
|
|
116
|
+
[models_1.EProductType.INTERVIEW_ACCS]: {
|
|
117
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
118
|
+
topicType: [models_1.ETopicType.INTERVIEW_ACCS],
|
|
119
|
+
mockType: ALL_MOCKS,
|
|
120
|
+
},
|
|
116
121
|
[models_1.EProductType.PLAB1]: {
|
|
117
122
|
db: enums_1.DB_TYPE.FINALS,
|
|
118
123
|
topicType: [models_1.ETopicType.CLINICAL],
|
|
@@ -151,6 +156,7 @@ const topicEntitlementMap = {
|
|
|
151
156
|
[models_1.ETopicType.INTERVIEW_IMT]: models_1.EEntitlementType.INTERVIEW_IMT,
|
|
152
157
|
[models_1.ETopicType.INTERVIEW_RADIOLOGY]: models_1.EEntitlementType.INTERVIEW_RADIOLOGY,
|
|
153
158
|
[models_1.ETopicType.INTERVIEW_PAEDIATRICS]: models_1.EEntitlementType.INTERVIEW_PAEDIATRICS,
|
|
159
|
+
[models_1.ETopicType.INTERVIEW_ACCS]: models_1.EEntitlementType.INTERVIEW_ACCS,
|
|
154
160
|
[models_1.ETopicType.UCAT]: models_1.EEntitlementType.VERBAL_REASONING,
|
|
155
161
|
};
|
|
156
162
|
const osceEntitlementMap = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EEntitlementType, IMarksheetMark } from '../../../models';
|
|
1
|
+
import { EEntitlementType, IMarksheetMark, ITheme } from '../../../models';
|
|
2
2
|
import { RestrictedData } from '../../types';
|
|
3
3
|
export type IUcatAnalyticsVar = {
|
|
4
4
|
updatedAt?: Date | number;
|
|
@@ -38,6 +38,7 @@ export interface IUcatThemeAnalytics {
|
|
|
38
38
|
total: number;
|
|
39
39
|
attempted: number;
|
|
40
40
|
stats: IUcatThemeStats[];
|
|
41
|
+
theme: ITheme;
|
|
41
42
|
}
|
|
42
|
-
export type IUcatThemeAnalyticsData = RestrictedData<IUcatThemeAnalytics
|
|
43
|
+
export type IUcatThemeAnalyticsData = RestrictedData<IUcatThemeAnalytics, 'ucatThemeAnalytics'>;
|
|
43
44
|
export declare const UCAT_THEME_ANALYTICS: import("@apollo/client").DocumentNode;
|
|
@@ -19,6 +19,7 @@ export declare enum EProductType {
|
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
21
|
INTERVIEW_PAEDIATRICS = 45,
|
|
22
|
+
INTERVIEW_ACCS = 57,
|
|
22
23
|
CLINICAL = 15,
|
|
23
24
|
DATA_INTERPRETATION = 16,
|
|
24
25
|
CLINICAL_SUBSET = 17,
|
|
@@ -81,6 +82,7 @@ export declare enum EEntitlementType {
|
|
|
81
82
|
INTERVIEW_IMT = 42,
|
|
82
83
|
INTERVIEW_RADIOLOGY = 43,
|
|
83
84
|
INTERVIEW_PAEDIATRICS = 46,
|
|
85
|
+
INTERVIEW_ACCS = 58,
|
|
84
86
|
PLAB_1 = 44,
|
|
85
87
|
VERBAL_REASONING = 49,
|
|
86
88
|
DECISION_MAKING = 50,
|
|
@@ -19,6 +19,7 @@ export var EProductType;
|
|
|
19
19
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
20
20
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
21
21
|
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 45] = "INTERVIEW_PAEDIATRICS";
|
|
22
|
+
EProductType[EProductType["INTERVIEW_ACCS"] = 57] = "INTERVIEW_ACCS";
|
|
22
23
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
23
24
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
24
25
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -82,6 +83,7 @@ export var EEntitlementType;
|
|
|
82
83
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
83
84
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
84
85
|
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
86
|
+
EEntitlementType[EEntitlementType["INTERVIEW_ACCS"] = 58] = "INTERVIEW_ACCS";
|
|
85
87
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
86
88
|
EEntitlementType[EEntitlementType["VERBAL_REASONING"] = 49] = "VERBAL_REASONING";
|
|
87
89
|
EEntitlementType[EEntitlementType["DECISION_MAKING"] = 50] = "DECISION_MAKING";
|
package/dist/mjs/models/Topic.js
CHANGED
|
@@ -17,4 +17,5 @@ export var ETopicType;
|
|
|
17
17
|
ETopicType[ETopicType["INTERVIEW_PAEDIATRICS"] = 13] = "INTERVIEW_PAEDIATRICS";
|
|
18
18
|
ETopicType[ETopicType["UCAT"] = 14] = "UCAT";
|
|
19
19
|
ETopicType[ETopicType["MRCP_VIDEO"] = 15] = "MRCP_VIDEO";
|
|
20
|
+
ETopicType[ETopicType["INTERVIEW_ACCS"] = 16] = "INTERVIEW_ACCS";
|
|
20
21
|
})(ETopicType || (ETopicType = {}));
|
|
@@ -79,6 +79,7 @@ export interface IPayload {
|
|
|
79
79
|
imtInterviewSubscriptionEndDate: number | null;
|
|
80
80
|
radiologyInterviewSubscriptionEndDate: number | null;
|
|
81
81
|
paediatricsInterviewSubscriptionEndDate: number | null;
|
|
82
|
+
accsInterviewSubscriptionEndDate: number | null;
|
|
82
83
|
plab1SubscriptionEndDate: number | null;
|
|
83
84
|
plab2SubscriptionEndDate: number | null;
|
|
84
85
|
ucatSubscriptionEndDate: number | null;
|
|
@@ -191,6 +192,7 @@ export interface IUser {
|
|
|
191
192
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
192
193
|
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
193
194
|
paediatricsInterviewSubscriptionEndDate: number | Date | null;
|
|
195
|
+
accsInterviewSubscriptionEndDate: number | Date | null;
|
|
194
196
|
plab1SubscriptionEndDate: number | Date | null;
|
|
195
197
|
plab2SubscriptionEndDate: number | Date | null;
|
|
196
198
|
ucatSubscriptionEndDate: number | Date | null;
|
package/dist/mjs/models/User.js
CHANGED
|
@@ -46,6 +46,7 @@ export const subscriptionDates = [
|
|
|
46
46
|
'imtInterviewSubscriptionEndDate',
|
|
47
47
|
'radiologyInterviewSubscriptionEndDate',
|
|
48
48
|
'paediatricsInterviewSubscriptionEndDate',
|
|
49
|
+
'accsInterviewSubscriptionEndDate',
|
|
49
50
|
'plab1SubscriptionEndDate',
|
|
50
51
|
'plab2SubscriptionEndDate',
|
|
51
52
|
'ucatSubscriptionEndDate',
|
|
@@ -71,6 +72,7 @@ export const dateProductMapping = {
|
|
|
71
72
|
imtInterviewSubscriptionEndDate: EProductType.INTERVIEW_IMT,
|
|
72
73
|
radiologyInterviewSubscriptionEndDate: EProductType.INTERVIEW_RADIOLOGY,
|
|
73
74
|
paediatricsInterviewSubscriptionEndDate: EProductType.INTERVIEW_PAEDIATRICS,
|
|
75
|
+
accsInterviewSubscriptionEndDate: EProductType.INTERVIEW_ACCS,
|
|
74
76
|
plab1SubscriptionEndDate: EProductType.PLAB1,
|
|
75
77
|
plab2SubscriptionEndDate: EProductType.PLAB2,
|
|
76
78
|
ucatSubscriptionEndDate: EProductType.UCAT,
|
|
@@ -110,6 +110,11 @@ export const productMapping = {
|
|
|
110
110
|
topicType: [ETopicType.INTERVIEW_PAEDIATRICS],
|
|
111
111
|
mockType: ALL_MOCKS,
|
|
112
112
|
},
|
|
113
|
+
[EProductType.INTERVIEW_ACCS]: {
|
|
114
|
+
db: DB_TYPE.FINALS,
|
|
115
|
+
topicType: [ETopicType.INTERVIEW_ACCS],
|
|
116
|
+
mockType: ALL_MOCKS,
|
|
117
|
+
},
|
|
113
118
|
[EProductType.PLAB1]: {
|
|
114
119
|
db: DB_TYPE.FINALS,
|
|
115
120
|
topicType: [ETopicType.CLINICAL],
|
|
@@ -148,6 +153,7 @@ const topicEntitlementMap = {
|
|
|
148
153
|
[ETopicType.INTERVIEW_IMT]: EEntitlementType.INTERVIEW_IMT,
|
|
149
154
|
[ETopicType.INTERVIEW_RADIOLOGY]: EEntitlementType.INTERVIEW_RADIOLOGY,
|
|
150
155
|
[ETopicType.INTERVIEW_PAEDIATRICS]: EEntitlementType.INTERVIEW_PAEDIATRICS,
|
|
156
|
+
[ETopicType.INTERVIEW_ACCS]: EEntitlementType.INTERVIEW_ACCS,
|
|
151
157
|
[ETopicType.UCAT]: EEntitlementType.VERBAL_REASONING,
|
|
152
158
|
};
|
|
153
159
|
const osceEntitlementMap = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EEntitlementType, IMarksheetMark } from '../../../models';
|
|
1
|
+
import { EEntitlementType, IMarksheetMark, ITheme } from '../../../models';
|
|
2
2
|
import { RestrictedData } from '../../types';
|
|
3
3
|
export type IUcatAnalyticsVar = {
|
|
4
4
|
updatedAt?: Date | number;
|
|
@@ -38,6 +38,7 @@ export interface IUcatThemeAnalytics {
|
|
|
38
38
|
total: number;
|
|
39
39
|
attempted: number;
|
|
40
40
|
stats: IUcatThemeStats[];
|
|
41
|
+
theme: ITheme;
|
|
41
42
|
}
|
|
42
|
-
export type IUcatThemeAnalyticsData = RestrictedData<IUcatThemeAnalytics
|
|
43
|
+
export type IUcatThemeAnalyticsData = RestrictedData<IUcatThemeAnalytics, 'ucatThemeAnalytics'>;
|
|
43
44
|
export declare const UCAT_THEME_ANALYTICS: import("@apollo/client").DocumentNode;
|