@quesmed/types-rn 2.6.193 → 2.6.195
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/models/Job.d.ts +7 -0
- package/models/Product.d.ts +2 -0
- package/models/Product.js +2 -0
- package/models/Topic.d.ts +2 -1
- package/models/Topic.js +1 -0
- package/models/User.d.ts +2 -0
- package/models/User.js +2 -0
- package/package.json +1 -1
- package/resolvers/constants.js +6 -0
- package/resolvers/fragments/question.js +5 -0
- package/resolvers/fragments/record.js +10 -0
- package/resolvers/fragments/user.js +1 -0
- package/resolvers/query/restricted/analytics.d.ts +3 -2
- package/resolvers/query/restricted/analytics.js +5 -0
package/models/Job.d.ts
CHANGED
|
@@ -107,6 +107,11 @@ export interface IJobAsset {
|
|
|
107
107
|
choiceLabel: string | null;
|
|
108
108
|
createdAt: Date | number;
|
|
109
109
|
}
|
|
110
|
+
export interface IRTParameters {
|
|
111
|
+
discrimination: number;
|
|
112
|
+
difficulty: number;
|
|
113
|
+
guessing: number;
|
|
114
|
+
}
|
|
110
115
|
export interface IJobRecordQuestion {
|
|
111
116
|
question: string;
|
|
112
117
|
stem?: string | null;
|
|
@@ -125,6 +130,7 @@ export interface IJobRecordQuestion {
|
|
|
125
130
|
choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
|
|
126
131
|
explanation?: IQuestionChoice['explanation'];
|
|
127
132
|
}>;
|
|
133
|
+
irtParameters?: IRTParameters | null;
|
|
128
134
|
}
|
|
129
135
|
export interface IJobRecordChapter {
|
|
130
136
|
title: string;
|
|
@@ -148,6 +154,7 @@ export interface IJobRecordMockTest {
|
|
|
148
154
|
choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
|
|
149
155
|
explanation?: IQuestionChoice['explanation'];
|
|
150
156
|
}>;
|
|
157
|
+
irtParameters?: IRTParameters | null;
|
|
151
158
|
}
|
|
152
159
|
export interface IJobRecordMetricsSummary {
|
|
153
160
|
id: string;
|
package/models/Product.d.ts
CHANGED
|
@@ -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,
|
package/models/Product.js
CHANGED
|
@@ -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/models/Topic.d.ts
CHANGED
package/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 = {}));
|
package/models/User.d.ts
CHANGED
|
@@ -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/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,
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -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 = {
|
|
@@ -110,6 +110,11 @@ exports.JOB_RECORD_QUESTION_FRAGMENT = (0, client_1.gql) `
|
|
|
110
110
|
explanation
|
|
111
111
|
answer
|
|
112
112
|
}
|
|
113
|
+
irtParameters {
|
|
114
|
+
discrimination
|
|
115
|
+
difficulty
|
|
116
|
+
guessing
|
|
117
|
+
}
|
|
113
118
|
learningPoint
|
|
114
119
|
explanation
|
|
115
120
|
}
|
|
@@ -142,6 +147,11 @@ exports.JOB_RECORD_MOCK_TEST_FRAGMENT = (0, client_1.gql) `
|
|
|
142
147
|
explanation
|
|
143
148
|
answer
|
|
144
149
|
}
|
|
150
|
+
irtParameters {
|
|
151
|
+
discrimination
|
|
152
|
+
difficulty
|
|
153
|
+
guessing
|
|
154
|
+
}
|
|
145
155
|
learningPoint
|
|
146
156
|
explanation
|
|
147
157
|
}
|
|
@@ -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;
|
|
@@ -42,12 +42,17 @@ exports.UCAT_THEME_ANALYTICS = (0, client_1.gql) `
|
|
|
42
42
|
themeId: $themeId
|
|
43
43
|
updatedAt: $updatedAt
|
|
44
44
|
) {
|
|
45
|
+
theme {
|
|
46
|
+
id
|
|
47
|
+
name
|
|
48
|
+
}
|
|
45
49
|
attempted
|
|
46
50
|
correct
|
|
47
51
|
incorrect
|
|
48
52
|
marks {
|
|
49
53
|
questionId
|
|
50
54
|
updatedAt
|
|
55
|
+
mark
|
|
51
56
|
marksheet {
|
|
52
57
|
id
|
|
53
58
|
isTestMarksheet
|