@quesmed/types-rn 2.6.296 → 2.6.297
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/Tutor.d.ts +0 -3
- package/models/Ukmla2026.d.ts +45 -0
- package/package.json +1 -1
- package/resolvers/fragments/tutor.js +0 -2
- package/resolvers/query/restricted/quesBook.js +99 -3
- package/resolvers/query/restricted/ukmla2026.d.ts +14 -1
- package/resolvers/query/restricted/ukmla2026.js +52 -1
package/models/Tutor.d.ts
CHANGED
|
@@ -46,13 +46,10 @@ export interface ITutorHint {
|
|
|
46
46
|
}
|
|
47
47
|
export interface ITutorFeedback {
|
|
48
48
|
rating: number | null;
|
|
49
|
-
categories: string[] | null;
|
|
50
49
|
comment: string | null;
|
|
51
|
-
submittedAt: number | Date | null;
|
|
52
50
|
}
|
|
53
51
|
export interface ITutorFeedbackInput {
|
|
54
52
|
rating?: number;
|
|
55
|
-
categories?: string[];
|
|
56
53
|
comment?: string;
|
|
57
54
|
}
|
|
58
55
|
export interface ITutorResource {
|
package/models/Ukmla2026.d.ts
CHANGED
|
@@ -43,3 +43,48 @@ export interface IUkmla2026Presentation {
|
|
|
43
43
|
correctQuestions?: number | null;
|
|
44
44
|
incorrectQuestions?: number | null;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* A Quesmed area of clinical practice: our own curated grouping.
|
|
48
|
+
* Conditions and presentations can sit in several areas, and their counts here
|
|
49
|
+
* are specific to this area.
|
|
50
|
+
*/
|
|
51
|
+
export interface IUkmla2026Area {
|
|
52
|
+
id: Id;
|
|
53
|
+
name: string;
|
|
54
|
+
sortOrder: number;
|
|
55
|
+
descriptor?: string | null;
|
|
56
|
+
changeType: EUkmla2026ChangeType;
|
|
57
|
+
legacyNames?: string[];
|
|
58
|
+
conditions?: IUkmla2026AreaCondition[];
|
|
59
|
+
presentations?: IUkmla2026AreaPresentation[];
|
|
60
|
+
totalQuestions?: number | null;
|
|
61
|
+
correctQuestions?: number | null;
|
|
62
|
+
incorrectQuestions?: number | null;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A condition as it appears inside one area.
|
|
66
|
+
*/
|
|
67
|
+
export interface IUkmla2026AreaCondition {
|
|
68
|
+
areaId: number;
|
|
69
|
+
conditionId: number;
|
|
70
|
+
name: string;
|
|
71
|
+
changeType: EUkmla2026ChangeType;
|
|
72
|
+
legacyNames?: string[];
|
|
73
|
+
concepts?: IConcept[];
|
|
74
|
+
questionIds?: number[];
|
|
75
|
+
totalQuestions?: number | null;
|
|
76
|
+
correctQuestions?: number | null;
|
|
77
|
+
incorrectQuestions?: number | null;
|
|
78
|
+
}
|
|
79
|
+
/** A presentation as it appears inside one area. */
|
|
80
|
+
export interface IUkmla2026AreaPresentation {
|
|
81
|
+
areaId: number;
|
|
82
|
+
presentationId: number;
|
|
83
|
+
name: string;
|
|
84
|
+
changeType: EUkmla2026ChangeType;
|
|
85
|
+
legacyNames?: string[];
|
|
86
|
+
questionIds?: number[];
|
|
87
|
+
totalQuestions?: number | null;
|
|
88
|
+
correctQuestions?: number | null;
|
|
89
|
+
incorrectQuestions?: number | null;
|
|
90
|
+
}
|
package/package.json
CHANGED
|
@@ -137,14 +137,110 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
|
|
|
137
137
|
}
|
|
138
138
|
`;
|
|
139
139
|
exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
|
|
140
|
-
|
|
140
|
+
${fragments_1.PICTURE_FIELDS}
|
|
141
|
+
fragment OsceStationMarkFields on OsceStationMark {
|
|
142
|
+
id
|
|
143
|
+
index
|
|
144
|
+
osceStationId
|
|
145
|
+
header
|
|
146
|
+
name
|
|
147
|
+
weight
|
|
148
|
+
__typename
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
fragment VideoFields on Video {
|
|
152
|
+
id
|
|
153
|
+
title
|
|
154
|
+
thumbnail
|
|
155
|
+
description
|
|
156
|
+
duration
|
|
157
|
+
watchLater
|
|
158
|
+
tokens {
|
|
159
|
+
bunnyUrl
|
|
160
|
+
thumbnail
|
|
161
|
+
gif
|
|
162
|
+
}
|
|
163
|
+
__typename
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
fragment OsceStationFields on OsceStation {
|
|
167
|
+
id
|
|
168
|
+
updatedAt
|
|
169
|
+
name
|
|
170
|
+
hiddenName
|
|
171
|
+
status
|
|
172
|
+
createdBy
|
|
173
|
+
preDefined
|
|
174
|
+
aiEnabled
|
|
175
|
+
phaseTimers
|
|
176
|
+
userNote {
|
|
177
|
+
id
|
|
178
|
+
userId
|
|
179
|
+
stationId
|
|
180
|
+
note
|
|
181
|
+
updatedAt
|
|
182
|
+
__typename
|
|
183
|
+
}
|
|
184
|
+
osceType {
|
|
185
|
+
id
|
|
186
|
+
name
|
|
187
|
+
__typename
|
|
188
|
+
}
|
|
189
|
+
entitlement {
|
|
190
|
+
id
|
|
191
|
+
name
|
|
192
|
+
index
|
|
193
|
+
__typename
|
|
194
|
+
}
|
|
195
|
+
difficulty
|
|
196
|
+
candidateBrief
|
|
197
|
+
examinerBrief
|
|
198
|
+
actorBrief
|
|
199
|
+
explanation
|
|
200
|
+
marks {
|
|
201
|
+
...OsceStationMarkFields
|
|
202
|
+
__typename
|
|
203
|
+
}
|
|
204
|
+
clinicalData
|
|
205
|
+
picture {
|
|
206
|
+
...PictureFields
|
|
207
|
+
__typename
|
|
208
|
+
}
|
|
209
|
+
candidatePictures {
|
|
210
|
+
...PictureFields
|
|
211
|
+
__typename
|
|
212
|
+
}
|
|
213
|
+
actorPictures {
|
|
214
|
+
...PictureFields
|
|
215
|
+
__typename
|
|
216
|
+
}
|
|
217
|
+
examinerPictures {
|
|
218
|
+
...PictureFields
|
|
219
|
+
__typename
|
|
220
|
+
}
|
|
221
|
+
walkthroughPictures {
|
|
222
|
+
...PictureFields
|
|
223
|
+
__typename
|
|
224
|
+
}
|
|
225
|
+
clinicalPictures {
|
|
226
|
+
...PictureFields
|
|
227
|
+
__typename
|
|
228
|
+
}
|
|
229
|
+
videos {
|
|
230
|
+
...VideoFields
|
|
231
|
+
__typename
|
|
232
|
+
}
|
|
233
|
+
demo
|
|
234
|
+
__typename
|
|
235
|
+
}
|
|
236
|
+
|
|
141
237
|
query OsceKnowledgeVideoLibrary($videosOnly: Boolean) {
|
|
142
238
|
restricted {
|
|
143
239
|
osceBook(videosOnly: $videosOnly) {
|
|
144
240
|
...OsceStationFields
|
|
145
|
-
|
|
146
|
-
score
|
|
241
|
+
__typename
|
|
147
242
|
}
|
|
243
|
+
__typename
|
|
148
244
|
}
|
|
149
245
|
}
|
|
150
246
|
`;
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import { EDifficultyType, IUkmla2026BodySystem, IUkmla2026PresentationLetter, Id } from '../../../models';
|
|
1
|
+
import { EDifficultyType, IUkmla2026Area, IUkmla2026BodySystem, IUkmla2026PresentationLetter, Id } from '../../../models';
|
|
2
2
|
import { IPreBuildMarksheet } from '../../mutation/restricted';
|
|
3
3
|
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
4
4
|
export type IUkmla2026BodySystemsData = RestrictedData<(graphqlNormalize & IUkmla2026BodySystem)[], 'ukmlaBodySystems'>;
|
|
5
5
|
export declare const UKMLA_2026_BODY_SYSTEMS: import("@apollo/client").DocumentNode;
|
|
6
6
|
export type IUkmla2026PresentationsData = RestrictedData<(graphqlNormalize & IUkmla2026PresentationLetter)[], 'ukmlaPresentations'>;
|
|
7
7
|
export declare const UKMLA_2026_PRESENTATIONS: import("@apollo/client").DocumentNode;
|
|
8
|
+
export type IUkmla2026AreasData = RestrictedData<(graphqlNormalize & IUkmla2026Area)[], 'ukmlaAreas'>;
|
|
9
|
+
export declare const UKMLA_2026_AREAS: import("@apollo/client").DocumentNode;
|
|
10
|
+
/**
|
|
11
|
+
* One item inside one area of the Areas of Practice tab. `itemId` is the
|
|
12
|
+
* `conditionId` or `presentationId`, depending on which list it is passed in.
|
|
13
|
+
*/
|
|
14
|
+
export interface IUkmla2026AreaItemInput {
|
|
15
|
+
areaId: number;
|
|
16
|
+
itemId: number;
|
|
17
|
+
}
|
|
8
18
|
export interface IPreBuildUkmla2026MarksheetVar {
|
|
9
19
|
bodySystemIds?: number[];
|
|
10
20
|
conditionIds?: number[];
|
|
11
21
|
presentationIds?: number[];
|
|
22
|
+
areaIds?: number[];
|
|
23
|
+
areaConditions?: IUkmla2026AreaItemInput[];
|
|
24
|
+
areaPresentations?: IUkmla2026AreaItemInput[];
|
|
12
25
|
search?: string;
|
|
13
26
|
marksheetId?: Id;
|
|
14
27
|
source: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRE_BUILD_UKMLA_2026_MARKSHEET = exports.UKMLA_2026_PRESENTATIONS = exports.UKMLA_2026_BODY_SYSTEMS = void 0;
|
|
3
|
+
exports.PRE_BUILD_UKMLA_2026_MARKSHEET = exports.UKMLA_2026_AREAS = exports.UKMLA_2026_PRESENTATIONS = exports.UKMLA_2026_BODY_SYSTEMS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.UKMLA_2026_BODY_SYSTEMS = (0, client_1.gql) `
|
|
6
6
|
query Ukmla2026BodySystems {
|
|
@@ -55,11 +55,59 @@ exports.UKMLA_2026_PRESENTATIONS = (0, client_1.gql) `
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
`;
|
|
58
|
+
exports.UKMLA_2026_AREAS = (0, client_1.gql) `
|
|
59
|
+
query Ukmla2026Areas {
|
|
60
|
+
restricted {
|
|
61
|
+
ukmlaAreas {
|
|
62
|
+
id
|
|
63
|
+
name
|
|
64
|
+
sortOrder
|
|
65
|
+
descriptor
|
|
66
|
+
changeType
|
|
67
|
+
legacyNames
|
|
68
|
+
totalQuestions
|
|
69
|
+
correctQuestions
|
|
70
|
+
incorrectQuestions
|
|
71
|
+
conditions {
|
|
72
|
+
areaId
|
|
73
|
+
conditionId
|
|
74
|
+
name
|
|
75
|
+
changeType
|
|
76
|
+
legacyNames
|
|
77
|
+
questionIds
|
|
78
|
+
totalQuestions
|
|
79
|
+
correctQuestions
|
|
80
|
+
incorrectQuestions
|
|
81
|
+
concepts {
|
|
82
|
+
id
|
|
83
|
+
name
|
|
84
|
+
topicId
|
|
85
|
+
chapterId
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
presentations {
|
|
89
|
+
areaId
|
|
90
|
+
presentationId
|
|
91
|
+
name
|
|
92
|
+
changeType
|
|
93
|
+
legacyNames
|
|
94
|
+
questionIds
|
|
95
|
+
totalQuestions
|
|
96
|
+
correctQuestions
|
|
97
|
+
incorrectQuestions
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
58
103
|
exports.PRE_BUILD_UKMLA_2026_MARKSHEET = (0, client_1.gql) `
|
|
59
104
|
query PreBuildUkmla2026Marksheet(
|
|
60
105
|
$bodySystemIds: [Int!]
|
|
61
106
|
$conditionIds: [Int!]
|
|
62
107
|
$presentationIds: [Int!]
|
|
108
|
+
$areaIds: [Int!]
|
|
109
|
+
$areaConditions: [Ukmla2026AreaItemInput!]
|
|
110
|
+
$areaPresentations: [Ukmla2026AreaItemInput!]
|
|
63
111
|
$source: String!
|
|
64
112
|
$search: String
|
|
65
113
|
$marksheetId: Int
|
|
@@ -71,6 +119,9 @@ exports.PRE_BUILD_UKMLA_2026_MARKSHEET = (0, client_1.gql) `
|
|
|
71
119
|
bodySystemIds: $bodySystemIds
|
|
72
120
|
conditionIds: $conditionIds
|
|
73
121
|
presentationIds: $presentationIds
|
|
122
|
+
areaIds: $areaIds
|
|
123
|
+
areaConditions: $areaConditions
|
|
124
|
+
areaPresentations: $areaPresentations
|
|
74
125
|
source: $source
|
|
75
126
|
search: $search
|
|
76
127
|
marksheetId: $marksheetId
|