@quesmed/types 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.
@@ -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 {
@@ -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
+ }
@@ -70,9 +70,7 @@ exports.TUTOR_CONVERSATION_FIELDS = (0, client_1.gql) `
70
70
  }
71
71
  feedback {
72
72
  rating
73
- categories
74
73
  comment
75
- submittedAt
76
74
  }
77
75
  lastActivityAt
78
76
  createdAt
@@ -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
- ${osce_1.OSCE_STATION_FIELDS}
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
- lastOsceMarksheetId
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
@@ -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 {
@@ -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
+ }
@@ -67,9 +67,7 @@ export const TUTOR_CONVERSATION_FIELDS = gql `
67
67
  }
68
68
  feedback {
69
69
  rating
70
- categories
71
70
  comment
72
- submittedAt
73
71
  }
74
72
  lastActivityAt
75
73
  createdAt
@@ -1,5 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
- import { CHAPTER_FIELDS } from '../../fragments';
2
+ import { CHAPTER_FIELDS, PICTURE_FIELDS } from '../../fragments';
3
3
  import { OSCE_STATION_FIELDS } from './../../fragments/osce';
4
4
  export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
5
5
  ${CHAPTER_FIELDS}
@@ -134,14 +134,110 @@ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
134
134
  }
135
135
  `;
136
136
  export const OSCE_KNOWLEDGE_VIDEO_LIBRARY = gql `
137
- ${OSCE_STATION_FIELDS}
137
+ ${PICTURE_FIELDS}
138
+ fragment OsceStationMarkFields on OsceStationMark {
139
+ id
140
+ index
141
+ osceStationId
142
+ header
143
+ name
144
+ weight
145
+ __typename
146
+ }
147
+
148
+ fragment VideoFields on Video {
149
+ id
150
+ title
151
+ thumbnail
152
+ description
153
+ duration
154
+ watchLater
155
+ tokens {
156
+ bunnyUrl
157
+ thumbnail
158
+ gif
159
+ }
160
+ __typename
161
+ }
162
+
163
+ fragment OsceStationFields on OsceStation {
164
+ id
165
+ updatedAt
166
+ name
167
+ hiddenName
168
+ status
169
+ createdBy
170
+ preDefined
171
+ aiEnabled
172
+ phaseTimers
173
+ userNote {
174
+ id
175
+ userId
176
+ stationId
177
+ note
178
+ updatedAt
179
+ __typename
180
+ }
181
+ osceType {
182
+ id
183
+ name
184
+ __typename
185
+ }
186
+ entitlement {
187
+ id
188
+ name
189
+ index
190
+ __typename
191
+ }
192
+ difficulty
193
+ candidateBrief
194
+ examinerBrief
195
+ actorBrief
196
+ explanation
197
+ marks {
198
+ ...OsceStationMarkFields
199
+ __typename
200
+ }
201
+ clinicalData
202
+ picture {
203
+ ...PictureFields
204
+ __typename
205
+ }
206
+ candidatePictures {
207
+ ...PictureFields
208
+ __typename
209
+ }
210
+ actorPictures {
211
+ ...PictureFields
212
+ __typename
213
+ }
214
+ examinerPictures {
215
+ ...PictureFields
216
+ __typename
217
+ }
218
+ walkthroughPictures {
219
+ ...PictureFields
220
+ __typename
221
+ }
222
+ clinicalPictures {
223
+ ...PictureFields
224
+ __typename
225
+ }
226
+ videos {
227
+ ...VideoFields
228
+ __typename
229
+ }
230
+ demo
231
+ __typename
232
+ }
233
+
138
234
  query OsceKnowledgeVideoLibrary($videosOnly: Boolean) {
139
235
  restricted {
140
236
  osceBook(videosOnly: $videosOnly) {
141
237
  ...OsceStationFields
142
- lastOsceMarksheetId
143
- score
238
+ __typename
144
239
  }
240
+ __typename
145
241
  }
146
242
  }
147
243
  `;
@@ -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;
@@ -52,11 +52,59 @@ export const UKMLA_2026_PRESENTATIONS = gql `
52
52
  }
53
53
  }
54
54
  `;
55
+ export const UKMLA_2026_AREAS = gql `
56
+ query Ukmla2026Areas {
57
+ restricted {
58
+ ukmlaAreas {
59
+ id
60
+ name
61
+ sortOrder
62
+ descriptor
63
+ changeType
64
+ legacyNames
65
+ totalQuestions
66
+ correctQuestions
67
+ incorrectQuestions
68
+ conditions {
69
+ areaId
70
+ conditionId
71
+ name
72
+ changeType
73
+ legacyNames
74
+ questionIds
75
+ totalQuestions
76
+ correctQuestions
77
+ incorrectQuestions
78
+ concepts {
79
+ id
80
+ name
81
+ topicId
82
+ chapterId
83
+ }
84
+ }
85
+ presentations {
86
+ areaId
87
+ presentationId
88
+ name
89
+ changeType
90
+ legacyNames
91
+ questionIds
92
+ totalQuestions
93
+ correctQuestions
94
+ incorrectQuestions
95
+ }
96
+ }
97
+ }
98
+ }
99
+ `;
55
100
  export const PRE_BUILD_UKMLA_2026_MARKSHEET = gql `
56
101
  query PreBuildUkmla2026Marksheet(
57
102
  $bodySystemIds: [Int!]
58
103
  $conditionIds: [Int!]
59
104
  $presentationIds: [Int!]
105
+ $areaIds: [Int!]
106
+ $areaConditions: [Ukmla2026AreaItemInput!]
107
+ $areaPresentations: [Ukmla2026AreaItemInput!]
60
108
  $source: String!
61
109
  $search: String
62
110
  $marksheetId: Int
@@ -68,6 +116,9 @@ export const PRE_BUILD_UKMLA_2026_MARKSHEET = gql `
68
116
  bodySystemIds: $bodySystemIds
69
117
  conditionIds: $conditionIds
70
118
  presentationIds: $presentationIds
119
+ areaIds: $areaIds
120
+ areaConditions: $areaConditions
121
+ areaPresentations: $areaPresentations
71
122
  source: $source
72
123
  search: $search
73
124
  marksheetId: $marksheetId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.296",
3
+ "version": "2.6.297",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",