@quesmed/types 2.6.97 → 2.6.99
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/Condition.d.ts +1 -0
- package/dist/cjs/models/Presentation.d.ts +1 -0
- package/dist/cjs/models/Product.d.ts +4 -4
- package/dist/cjs/models/Product.js +3 -3
- package/dist/cjs/resolvers/constants.d.ts +2 -2
- package/dist/cjs/resolvers/constants.js +7 -1
- package/dist/cjs/resolvers/query/restricted/ukmlaTopics.js +4 -0
- package/dist/mjs/models/Condition.d.ts +1 -0
- package/dist/mjs/models/Presentation.d.ts +1 -0
- package/dist/mjs/models/Product.d.ts +4 -4
- package/dist/mjs/models/Product.js +3 -3
- package/dist/mjs/resolvers/constants.d.ts +2 -2
- package/dist/mjs/resolvers/constants.js +7 -1
- package/dist/mjs/resolvers/query/restricted/ukmlaTopics.js +4 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export declare enum EProductType {
|
|
|
18
18
|
INTERVIEW_CST = 12,
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
|
-
INTERVIEW_PAEDIATRICS =
|
|
21
|
+
INTERVIEW_PAEDIATRICS = 45,
|
|
22
22
|
CLINICAL = 15,
|
|
23
23
|
DATA_INTERPRETATION = 16,
|
|
24
24
|
CLINICAL_SUBSET = 17,
|
|
@@ -48,6 +48,7 @@ export declare enum EEntitlementType {
|
|
|
48
48
|
CLINICAL_SUBSET = 17,
|
|
49
49
|
CLINICAL_PROBLEM_SOLVING = 18,
|
|
50
50
|
PROFESSIONAL_DILEMMA = 19,
|
|
51
|
+
EXTENDED_MATCHING_QUESTIONS = 47,
|
|
51
52
|
HISTORY_TAKING = 20,
|
|
52
53
|
COMMUNICATION_SKILLS = 21,
|
|
53
54
|
EXAMINATION = 22,
|
|
@@ -70,9 +71,8 @@ export declare enum EEntitlementType {
|
|
|
70
71
|
INTERVIEW_CST = 41,
|
|
71
72
|
INTERVIEW_IMT = 42,
|
|
72
73
|
INTERVIEW_RADIOLOGY = 43,
|
|
73
|
-
INTERVIEW_PAEDIATRICS =
|
|
74
|
-
PLAB_1 = 44
|
|
75
|
-
PLAB_2 = 45
|
|
74
|
+
INTERVIEW_PAEDIATRICS = 46,
|
|
75
|
+
PLAB_1 = 44
|
|
76
76
|
}
|
|
77
77
|
export interface IProduct {
|
|
78
78
|
id: Id;
|
|
@@ -21,7 +21,7 @@ var EProductType;
|
|
|
21
21
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
22
22
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
23
23
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
24
|
-
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] =
|
|
24
|
+
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 45] = "INTERVIEW_PAEDIATRICS";
|
|
25
25
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
26
26
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
27
27
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -52,6 +52,7 @@ var EEntitlementType;
|
|
|
52
52
|
EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
53
53
|
EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
54
54
|
EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
55
|
+
EEntitlementType[EEntitlementType["EXTENDED_MATCHING_QUESTIONS"] = 47] = "EXTENDED_MATCHING_QUESTIONS";
|
|
55
56
|
EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
|
|
56
57
|
EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
|
|
57
58
|
EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
|
|
@@ -74,9 +75,8 @@ var EEntitlementType;
|
|
|
74
75
|
EEntitlementType[EEntitlementType["INTERVIEW_CST"] = 41] = "INTERVIEW_CST";
|
|
75
76
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
76
77
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
77
|
-
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] =
|
|
78
|
+
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
78
79
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
79
|
-
EEntitlementType[EEntitlementType["PLAB_2"] = 45] = "PLAB_2";
|
|
80
80
|
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
81
81
|
var EAppType;
|
|
82
82
|
(function (EAppType) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
1
|
+
import { EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
2
2
|
import { DB_TYPE } from './enums';
|
|
3
3
|
export declare const productMapping: Partial<Record<EProductType, {
|
|
4
4
|
db: DB_TYPE;
|
|
5
5
|
topicType: ETopicType[];
|
|
6
6
|
mockType: EMockTestType[];
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType) => {
|
|
8
|
+
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType, entitlementInfo?: EEntitlementType) => {
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
@@ -146,7 +146,7 @@ const clinicalEntitlementMap = {
|
|
|
146
146
|
[models_1.EProductType.MRCP_PART1]: models_1.EEntitlementType.MRCP_PART_1,
|
|
147
147
|
[models_1.EProductType.MRCP_PART2]: models_1.EEntitlementType.MRCP_PART_2,
|
|
148
148
|
};
|
|
149
|
-
const getEntitlementFromTopicType = (typeId, productType) => {
|
|
149
|
+
const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
150
150
|
let entitlement;
|
|
151
151
|
switch (productType) {
|
|
152
152
|
case models_1.EProductType.PACES: {
|
|
@@ -158,6 +158,12 @@ const getEntitlementFromTopicType = (typeId, productType) => {
|
|
|
158
158
|
entitlement = osceEntitlementMap[typeId];
|
|
159
159
|
break;
|
|
160
160
|
}
|
|
161
|
+
case models_1.EProductType.MSRA: {
|
|
162
|
+
if (entitlementInfo) {
|
|
163
|
+
entitlement = entitlementInfo;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
161
167
|
default: {
|
|
162
168
|
entitlement =
|
|
163
169
|
typeId === models_1.ETopicType.CLINICAL
|
|
@@ -18,6 +18,7 @@ exports.UKMLA_TOPIC = (0, client_1.gql) `
|
|
|
18
18
|
correctQuestions
|
|
19
19
|
incorrectQuestions
|
|
20
20
|
topicId
|
|
21
|
+
questionIds
|
|
21
22
|
topic {
|
|
22
23
|
id
|
|
23
24
|
name
|
|
@@ -30,6 +31,7 @@ exports.UKMLA_TOPIC = (0, client_1.gql) `
|
|
|
30
31
|
correctQuestions
|
|
31
32
|
incorrectQuestions
|
|
32
33
|
topicId
|
|
34
|
+
questionIds
|
|
33
35
|
topic {
|
|
34
36
|
id
|
|
35
37
|
name
|
|
@@ -62,6 +64,7 @@ exports.UKMLA_TOPICS = (0, client_1.gql) `
|
|
|
62
64
|
topicId
|
|
63
65
|
chapterId
|
|
64
66
|
}
|
|
67
|
+
questionIds
|
|
65
68
|
topic {
|
|
66
69
|
id
|
|
67
70
|
name
|
|
@@ -74,6 +77,7 @@ exports.UKMLA_TOPICS = (0, client_1.gql) `
|
|
|
74
77
|
totalQuestions
|
|
75
78
|
correctQuestions
|
|
76
79
|
incorrectQuestions
|
|
80
|
+
questionIds
|
|
77
81
|
topic {
|
|
78
82
|
id
|
|
79
83
|
name
|
|
@@ -18,7 +18,7 @@ export declare enum EProductType {
|
|
|
18
18
|
INTERVIEW_CST = 12,
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
|
-
INTERVIEW_PAEDIATRICS =
|
|
21
|
+
INTERVIEW_PAEDIATRICS = 45,
|
|
22
22
|
CLINICAL = 15,
|
|
23
23
|
DATA_INTERPRETATION = 16,
|
|
24
24
|
CLINICAL_SUBSET = 17,
|
|
@@ -48,6 +48,7 @@ export declare enum EEntitlementType {
|
|
|
48
48
|
CLINICAL_SUBSET = 17,
|
|
49
49
|
CLINICAL_PROBLEM_SOLVING = 18,
|
|
50
50
|
PROFESSIONAL_DILEMMA = 19,
|
|
51
|
+
EXTENDED_MATCHING_QUESTIONS = 47,
|
|
51
52
|
HISTORY_TAKING = 20,
|
|
52
53
|
COMMUNICATION_SKILLS = 21,
|
|
53
54
|
EXAMINATION = 22,
|
|
@@ -70,9 +71,8 @@ export declare enum EEntitlementType {
|
|
|
70
71
|
INTERVIEW_CST = 41,
|
|
71
72
|
INTERVIEW_IMT = 42,
|
|
72
73
|
INTERVIEW_RADIOLOGY = 43,
|
|
73
|
-
INTERVIEW_PAEDIATRICS =
|
|
74
|
-
PLAB_1 = 44
|
|
75
|
-
PLAB_2 = 45
|
|
74
|
+
INTERVIEW_PAEDIATRICS = 46,
|
|
75
|
+
PLAB_1 = 44
|
|
76
76
|
}
|
|
77
77
|
export interface IProduct {
|
|
78
78
|
id: Id;
|
|
@@ -18,7 +18,7 @@ export var EProductType;
|
|
|
18
18
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
19
19
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
20
20
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
21
|
-
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] =
|
|
21
|
+
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 45] = "INTERVIEW_PAEDIATRICS";
|
|
22
22
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
23
23
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
24
24
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -49,6 +49,7 @@ export var EEntitlementType;
|
|
|
49
49
|
EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
50
50
|
EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
|
|
51
51
|
EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
|
|
52
|
+
EEntitlementType[EEntitlementType["EXTENDED_MATCHING_QUESTIONS"] = 47] = "EXTENDED_MATCHING_QUESTIONS";
|
|
52
53
|
EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
|
|
53
54
|
EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
|
|
54
55
|
EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
|
|
@@ -71,9 +72,8 @@ export var EEntitlementType;
|
|
|
71
72
|
EEntitlementType[EEntitlementType["INTERVIEW_CST"] = 41] = "INTERVIEW_CST";
|
|
72
73
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
73
74
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
74
|
-
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] =
|
|
75
|
+
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
75
76
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
76
|
-
EEntitlementType[EEntitlementType["PLAB_2"] = 45] = "PLAB_2";
|
|
77
77
|
})(EEntitlementType || (EEntitlementType = {}));
|
|
78
78
|
export var EAppType;
|
|
79
79
|
(function (EAppType) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
1
|
+
import { EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType } from '../models';
|
|
2
2
|
import { DB_TYPE } from './enums';
|
|
3
3
|
export declare const productMapping: Partial<Record<EProductType, {
|
|
4
4
|
db: DB_TYPE;
|
|
5
5
|
topicType: ETopicType[];
|
|
6
6
|
mockType: EMockTestType[];
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType) => {
|
|
8
|
+
export declare const getEntitlementFromTopicType: (typeId: ETopicType | EOsceType | EPaceType, productType: EProductType, entitlementInfo?: EEntitlementType) => {
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
@@ -143,7 +143,7 @@ const clinicalEntitlementMap = {
|
|
|
143
143
|
[EProductType.MRCP_PART1]: EEntitlementType.MRCP_PART_1,
|
|
144
144
|
[EProductType.MRCP_PART2]: EEntitlementType.MRCP_PART_2,
|
|
145
145
|
};
|
|
146
|
-
export const getEntitlementFromTopicType = (typeId, productType) => {
|
|
146
|
+
export const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
|
|
147
147
|
let entitlement;
|
|
148
148
|
switch (productType) {
|
|
149
149
|
case EProductType.PACES: {
|
|
@@ -155,6 +155,12 @@ export const getEntitlementFromTopicType = (typeId, productType) => {
|
|
|
155
155
|
entitlement = osceEntitlementMap[typeId];
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
|
+
case EProductType.MSRA: {
|
|
159
|
+
if (entitlementInfo) {
|
|
160
|
+
entitlement = entitlementInfo;
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
158
164
|
default: {
|
|
159
165
|
entitlement =
|
|
160
166
|
typeId === ETopicType.CLINICAL
|
|
@@ -15,6 +15,7 @@ export const UKMLA_TOPIC = gql `
|
|
|
15
15
|
correctQuestions
|
|
16
16
|
incorrectQuestions
|
|
17
17
|
topicId
|
|
18
|
+
questionIds
|
|
18
19
|
topic {
|
|
19
20
|
id
|
|
20
21
|
name
|
|
@@ -27,6 +28,7 @@ export const UKMLA_TOPIC = gql `
|
|
|
27
28
|
correctQuestions
|
|
28
29
|
incorrectQuestions
|
|
29
30
|
topicId
|
|
31
|
+
questionIds
|
|
30
32
|
topic {
|
|
31
33
|
id
|
|
32
34
|
name
|
|
@@ -59,6 +61,7 @@ export const UKMLA_TOPICS = gql `
|
|
|
59
61
|
topicId
|
|
60
62
|
chapterId
|
|
61
63
|
}
|
|
64
|
+
questionIds
|
|
62
65
|
topic {
|
|
63
66
|
id
|
|
64
67
|
name
|
|
@@ -71,6 +74,7 @@ export const UKMLA_TOPICS = gql `
|
|
|
71
74
|
totalQuestions
|
|
72
75
|
correctQuestions
|
|
73
76
|
incorrectQuestions
|
|
77
|
+
questionIds
|
|
74
78
|
topic {
|
|
75
79
|
id
|
|
76
80
|
name
|