@quesmed/types 2.6.295 → 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.
Files changed (47) hide show
  1. package/dist/cjs/models/Marksheet.d.ts +2 -0
  2. package/dist/cjs/models/Tutor.d.ts +128 -0
  3. package/dist/cjs/models/Tutor.js +36 -0
  4. package/dist/cjs/models/Ukmla2026.d.ts +62 -0
  5. package/dist/cjs/models/index.d.ts +1 -0
  6. package/dist/cjs/models/index.js +1 -0
  7. package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
  8. package/dist/cjs/resolvers/fragments/index.js +1 -0
  9. package/dist/cjs/resolvers/fragments/tutor.d.ts +4 -0
  10. package/dist/cjs/resolvers/fragments/tutor.js +78 -0
  11. package/dist/cjs/resolvers/mutation/restricted/index.d.ts +1 -0
  12. package/dist/cjs/resolvers/mutation/restricted/index.js +1 -0
  13. package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -6
  14. package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
  15. package/dist/cjs/resolvers/mutation/restricted/tutor.d.ts +33 -0
  16. package/dist/cjs/resolvers/mutation/restricted/tutor.js +75 -0
  17. package/dist/cjs/resolvers/query/restricted/index.d.ts +1 -0
  18. package/dist/cjs/resolvers/query/restricted/index.js +1 -0
  19. package/dist/cjs/resolvers/query/restricted/quesBook.js +99 -3
  20. package/dist/cjs/resolvers/query/restricted/tutor.d.ts +16 -0
  21. package/dist/cjs/resolvers/query/restricted/tutor.js +28 -0
  22. package/dist/cjs/resolvers/query/restricted/ukmla2026.d.ts +16 -1
  23. package/dist/cjs/resolvers/query/restricted/ukmla2026.js +74 -1
  24. package/dist/mjs/models/Marksheet.d.ts +2 -0
  25. package/dist/mjs/models/Tutor.d.ts +128 -0
  26. package/dist/mjs/models/Tutor.js +33 -0
  27. package/dist/mjs/models/Ukmla2026.d.ts +62 -0
  28. package/dist/mjs/models/index.d.ts +1 -0
  29. package/dist/mjs/models/index.js +1 -0
  30. package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
  31. package/dist/mjs/resolvers/fragments/index.js +1 -0
  32. package/dist/mjs/resolvers/fragments/tutor.d.ts +4 -0
  33. package/dist/mjs/resolvers/fragments/tutor.js +75 -0
  34. package/dist/mjs/resolvers/mutation/restricted/index.d.ts +1 -0
  35. package/dist/mjs/resolvers/mutation/restricted/index.js +1 -0
  36. package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -6
  37. package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
  38. package/dist/mjs/resolvers/mutation/restricted/tutor.d.ts +33 -0
  39. package/dist/mjs/resolvers/mutation/restricted/tutor.js +72 -0
  40. package/dist/mjs/resolvers/query/restricted/index.d.ts +1 -0
  41. package/dist/mjs/resolvers/query/restricted/index.js +1 -0
  42. package/dist/mjs/resolvers/query/restricted/quesBook.js +100 -4
  43. package/dist/mjs/resolvers/query/restricted/tutor.d.ts +16 -0
  44. package/dist/mjs/resolvers/query/restricted/tutor.js +25 -0
  45. package/dist/mjs/resolvers/query/restricted/ukmla2026.d.ts +16 -1
  46. package/dist/mjs/resolvers/query/restricted/ukmla2026.js +73 -0
  47. package/package.json +1 -1
@@ -18,6 +18,7 @@ export * from './replication';
18
18
  export * from './station';
19
19
  export * from './todos';
20
20
  export * from './topics';
21
+ export * from './tutor';
21
22
  export * from './ukmla2026';
22
23
  export * from './ukmlaTopics';
23
24
  export * from './university';
@@ -18,6 +18,7 @@ export * from './replication';
18
18
  export * from './station';
19
19
  export * from './todos';
20
20
  export * from './topics';
21
+ export * from './tutor';
21
22
  export * from './ukmla2026';
22
23
  export * from './ukmlaTopics';
23
24
  export * from './university';
@@ -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
  `;
@@ -0,0 +1,16 @@
1
+ import { Id, ITutorConversation } from '../../../models';
2
+ import { graphqlNormalize, RestrictedData } from '../../types';
3
+ export declare const TUTOR_CONVERSATION: import("@apollo/client").DocumentNode;
4
+ export interface ITutorConversationVar {
5
+ marksheetId: Id;
6
+ questionId: Id;
7
+ }
8
+ export type ITutorConversationData = RestrictedData<(graphqlNormalize & ITutorConversation) | null, 'tutorConversation'>;
9
+ export declare const MARKSHEET_CHATS: import("@apollo/client").DocumentNode;
10
+ export interface IMarksheetChatsVar {
11
+ id: Id;
12
+ }
13
+ export type IMarksheetChatsData = RestrictedData<{
14
+ id: Id;
15
+ chats: (graphqlNormalize & ITutorConversation)[];
16
+ }, 'marksheet'>;
@@ -0,0 +1,25 @@
1
+ import { gql } from '@apollo/client';
2
+ import { TUTOR_CONVERSATION_FIELDS } from '../../fragments/tutor';
3
+ export const TUTOR_CONVERSATION = gql `
4
+ ${TUTOR_CONVERSATION_FIELDS}
5
+ query TutorConversation($marksheetId: Int!, $questionId: Int!) {
6
+ restricted {
7
+ tutorConversation(marksheetId: $marksheetId, questionId: $questionId) {
8
+ ...TutorConversationFields
9
+ }
10
+ }
11
+ }
12
+ `;
13
+ export const MARKSHEET_CHATS = gql `
14
+ ${TUTOR_CONVERSATION_FIELDS}
15
+ query MarksheetChats($id: Int!) {
16
+ restricted {
17
+ marksheet(id: $id) {
18
+ id
19
+ chats {
20
+ ...TutorConversationFields
21
+ }
22
+ }
23
+ }
24
+ }
25
+ `;
@@ -1,12 +1,27 @@
1
- import { EDifficultyType, IUkmla2026BodySystem, 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
+ export type IUkmla2026PresentationsData = RestrictedData<(graphqlNormalize & IUkmla2026PresentationLetter)[], 'ukmlaPresentations'>;
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
+ }
6
18
  export interface IPreBuildUkmla2026MarksheetVar {
7
19
  bodySystemIds?: number[];
8
20
  conditionIds?: number[];
9
21
  presentationIds?: number[];
22
+ areaIds?: number[];
23
+ areaConditions?: IUkmla2026AreaItemInput[];
24
+ areaPresentations?: IUkmla2026AreaItemInput[];
10
25
  search?: string;
11
26
  marksheetId?: Id;
12
27
  source: string;
@@ -30,11 +30,81 @@ export const UKMLA_2026_BODY_SYSTEMS = gql `
30
30
  }
31
31
  }
32
32
  `;
33
+ export const UKMLA_2026_PRESENTATIONS = gql `
34
+ query Ukmla2026Presentations {
35
+ restricted {
36
+ ukmlaPresentations {
37
+ letter
38
+ totalQuestions
39
+ correctQuestions
40
+ incorrectQuestions
41
+ presentations {
42
+ id
43
+ name
44
+ changeType
45
+ legacyNames
46
+ questionIds
47
+ totalQuestions
48
+ correctQuestions
49
+ incorrectQuestions
50
+ }
51
+ }
52
+ }
53
+ }
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
+ `;
33
100
  export const PRE_BUILD_UKMLA_2026_MARKSHEET = gql `
34
101
  query PreBuildUkmla2026Marksheet(
35
102
  $bodySystemIds: [Int!]
36
103
  $conditionIds: [Int!]
37
104
  $presentationIds: [Int!]
105
+ $areaIds: [Int!]
106
+ $areaConditions: [Ukmla2026AreaItemInput!]
107
+ $areaPresentations: [Ukmla2026AreaItemInput!]
38
108
  $source: String!
39
109
  $search: String
40
110
  $marksheetId: Int
@@ -46,6 +116,9 @@ export const PRE_BUILD_UKMLA_2026_MARKSHEET = gql `
46
116
  bodySystemIds: $bodySystemIds
47
117
  conditionIds: $conditionIds
48
118
  presentationIds: $presentationIds
119
+ areaIds: $areaIds
120
+ areaConditions: $areaConditions
121
+ areaPresentations: $areaPresentations
49
122
  source: $source
50
123
  search: $search
51
124
  marksheetId: $marksheetId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.295",
3
+ "version": "2.6.297",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",