@quesmed/types 2.2.42 → 2.2.43

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.
@@ -10,6 +10,14 @@ export interface IPreBuildMarksheet {
10
10
  seenIncorrect: number;
11
11
  buildRef: number;
12
12
  }
13
+ /**
14
+ * buildQuestionMarksheet
15
+ */
16
+ export interface IBuildQuestionMarksheetVar {
17
+ questionIds?: number[];
18
+ }
19
+ export declare type IBuildQuestionMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildQuestionMarksheet'>;
20
+ export declare const BUILD_QUESTION_MARKSHEET: import("@apollo/client").DocumentNode;
13
21
  /**
14
22
  * buildMarksheet
15
23
  */
@@ -1,8 +1,569 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.END_MARKSHEET = exports.LEAVE_MARKSHEET = exports.MODIFY_MARKSHEET_INFO = exports.optimisticModifyMarksheetBuilderConfig = exports.START_OR_JOIN_MARKSHEET = exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarksheets = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_MARKSHEET = void 0;
3
+ exports.END_MARKSHEET = exports.LEAVE_MARKSHEET = exports.MODIFY_MARKSHEET_INFO = exports.optimisticModifyMarksheetBuilderConfig = exports.START_OR_JOIN_MARKSHEET = exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarksheets = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_MARKSHEET = exports.BUILD_QUESTION_MARKSHEET = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const restricted_1 = require("../../query/restricted");
6
+ exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
7
+ mutation BuildQuestionMarksheet($questionIds: [Int!]) {
8
+ restricted {
9
+ buildQuestionMarksheet(questionIds: $questionIds) {
10
+ id
11
+ createdAt
12
+ startedAt
13
+ endedAt
14
+ agoraId
15
+ topicIds
16
+ completed
17
+ topicIds
18
+ topicNames
19
+ mockTestId
20
+ totalQuestions
21
+ solo
22
+ state
23
+ currentMarkId
24
+ topicConceptData
25
+ builderConfig {
26
+ difficulty
27
+ isTest
28
+ numberOfQuestions
29
+ secondsPerQuestion
30
+ unseen
31
+ seenCorrect
32
+ seenIncorrect
33
+ }
34
+ preBuildData {
35
+ buildRef
36
+ seenCorrect
37
+ seenIncorrect
38
+ unseen
39
+ }
40
+ topicNames
41
+ source
42
+ user {
43
+ displayName
44
+ id
45
+ }
46
+ users {
47
+ id
48
+ displayName
49
+ }
50
+ marks {
51
+ id
52
+ flagged
53
+ index
54
+ questionChoiceId
55
+ marksheetId
56
+ timeTaken
57
+ isAnswered
58
+ mark
59
+ question {
60
+ ... on QuestionSBA {
61
+ conceptId
62
+ difficulty
63
+ dislikes
64
+ explanation
65
+ id
66
+ isLikedByMe
67
+ likes
68
+ question
69
+ totalVotes
70
+ typeId
71
+ choices {
72
+ id
73
+ explanation
74
+ name
75
+ label
76
+ answer
77
+ votes
78
+ picture {
79
+ id
80
+ createdAt
81
+ updatedAt
82
+ name
83
+ caption
84
+ path
85
+ path512
86
+ path256
87
+ }
88
+ }
89
+ comments {
90
+ id
91
+ createdAt
92
+ comment
93
+ likes
94
+ user {
95
+ id
96
+ displayName
97
+ }
98
+ dislikes
99
+ isLikedByMe
100
+ questionId
101
+ replies {
102
+ id
103
+ createdAt
104
+ comment
105
+ user {
106
+ id
107
+ displayName
108
+ }
109
+ likes
110
+ dislikes
111
+ isLikedByMe
112
+ questionId
113
+ }
114
+ }
115
+ concept {
116
+ id
117
+ name
118
+ chapter {
119
+ id
120
+ explanation
121
+ pictures {
122
+ id
123
+ createdAt
124
+ updatedAt
125
+ name
126
+ caption
127
+ path
128
+ path512
129
+ path256
130
+ topicId
131
+ topic {
132
+ id
133
+ name
134
+ typeId
135
+ }
136
+ }
137
+ }
138
+ videos {
139
+ id
140
+ title
141
+ museId
142
+ startTime
143
+ endTime
144
+ thumbnail
145
+ concepts {
146
+ id
147
+ name
148
+ }
149
+ live
150
+ description
151
+ duration
152
+ }
153
+ }
154
+ pictures {
155
+ id
156
+ createdAt
157
+ updatedAt
158
+ name
159
+ caption
160
+ path
161
+ path512
162
+ path256
163
+ topicId
164
+ topic {
165
+ id
166
+ name
167
+ typeId
168
+ }
169
+ }
170
+ difficulty
171
+ psaSectionId
172
+ likes
173
+ dislikes
174
+ isLikedByMe
175
+ sbaAnswer: answer
176
+ }
177
+ ... on QuestionQA {
178
+ conceptId
179
+ difficulty
180
+ dislikes
181
+ explanation
182
+ id
183
+ isLikedByMe
184
+ likes
185
+ question
186
+ totalVotes
187
+ typeId
188
+ choices {
189
+ id
190
+ explanation
191
+ name
192
+ label
193
+ answer
194
+ votes
195
+ picture {
196
+ id
197
+ createdAt
198
+ updatedAt
199
+ name
200
+ caption
201
+ path
202
+ path512
203
+ path256
204
+ }
205
+ }
206
+ comments {
207
+ id
208
+ createdAt
209
+ comment
210
+ likes
211
+ user {
212
+ id
213
+ displayName
214
+ }
215
+ dislikes
216
+ isLikedByMe
217
+ questionId
218
+ replies {
219
+ id
220
+ createdAt
221
+ comment
222
+ user {
223
+ id
224
+ displayName
225
+ }
226
+ likes
227
+ dislikes
228
+ isLikedByMe
229
+ questionId
230
+ }
231
+ }
232
+ concept {
233
+ id
234
+ name
235
+ chapter {
236
+ id
237
+ explanation
238
+ pictures {
239
+ id
240
+ createdAt
241
+ updatedAt
242
+ name
243
+ caption
244
+ path
245
+ path512
246
+ path256
247
+ topicId
248
+ topic {
249
+ id
250
+ name
251
+ typeId
252
+ }
253
+ }
254
+ }
255
+ videos {
256
+ id
257
+ title
258
+ museId
259
+ startTime
260
+ endTime
261
+ thumbnail
262
+ concepts {
263
+ id
264
+ name
265
+ }
266
+ live
267
+ description
268
+ duration
269
+ }
270
+ }
271
+ pictures {
272
+ id
273
+ createdAt
274
+ updatedAt
275
+ name
276
+ caption
277
+ path
278
+ path512
279
+ path256
280
+ topicId
281
+ topic {
282
+ id
283
+ name
284
+ typeId
285
+ }
286
+ }
287
+ difficulty
288
+ psaSectionId
289
+ likes
290
+ dislikes
291
+ isLikedByMe
292
+ qaAnswer: answer {
293
+ dose
294
+ units
295
+ }
296
+ }
297
+ ... on QuestionMultiA {
298
+ conceptId
299
+ difficulty
300
+ dislikes
301
+ explanation
302
+ id
303
+ isLikedByMe
304
+ likes
305
+ question
306
+ totalVotes
307
+ typeId
308
+ choices {
309
+ id
310
+ explanation
311
+ name
312
+ label
313
+ answer
314
+ votes
315
+ picture {
316
+ id
317
+ createdAt
318
+ updatedAt
319
+ name
320
+ caption
321
+ path
322
+ path512
323
+ path256
324
+ }
325
+ }
326
+ comments {
327
+ id
328
+ createdAt
329
+ comment
330
+ likes
331
+ user {
332
+ id
333
+ displayName
334
+ }
335
+ dislikes
336
+ isLikedByMe
337
+ questionId
338
+ replies {
339
+ id
340
+ createdAt
341
+ comment
342
+ user {
343
+ id
344
+ displayName
345
+ }
346
+ likes
347
+ dislikes
348
+ isLikedByMe
349
+ questionId
350
+ }
351
+ }
352
+ concept {
353
+ id
354
+ name
355
+ chapter {
356
+ id
357
+ explanation
358
+ pictures {
359
+ id
360
+ createdAt
361
+ updatedAt
362
+ name
363
+ caption
364
+ path
365
+ path512
366
+ path256
367
+ topicId
368
+ topic {
369
+ id
370
+ name
371
+ typeId
372
+ }
373
+ }
374
+ }
375
+ videos {
376
+ id
377
+ title
378
+ museId
379
+ startTime
380
+ endTime
381
+ thumbnail
382
+ concepts {
383
+ id
384
+ name
385
+ }
386
+ live
387
+ description
388
+ duration
389
+ }
390
+ }
391
+ pictures {
392
+ id
393
+ createdAt
394
+ updatedAt
395
+ name
396
+ caption
397
+ path
398
+ path512
399
+ path256
400
+ topicId
401
+ topic {
402
+ id
403
+ name
404
+ typeId
405
+ }
406
+ }
407
+ difficulty
408
+ psaSectionId
409
+ likes
410
+ dislikes
411
+ isLikedByMe
412
+ multiAnswer: answer
413
+ }
414
+ ... on QuestionPrescription {
415
+ conceptId
416
+ difficulty
417
+ dislikes
418
+ explanation
419
+ id
420
+ isLikedByMe
421
+ likes
422
+ question
423
+ totalVotes
424
+ typeId
425
+ choices {
426
+ id
427
+ explanation
428
+ name
429
+ label
430
+ answer
431
+ votes
432
+ picture {
433
+ id
434
+ createdAt
435
+ updatedAt
436
+ name
437
+ caption
438
+ path
439
+ path512
440
+ path256
441
+ }
442
+ }
443
+ comments {
444
+ id
445
+ createdAt
446
+ comment
447
+ likes
448
+ user {
449
+ id
450
+ displayName
451
+ }
452
+ dislikes
453
+ isLikedByMe
454
+ questionId
455
+ replies {
456
+ id
457
+ createdAt
458
+ comment
459
+ user {
460
+ id
461
+ displayName
462
+ }
463
+ likes
464
+ dislikes
465
+ isLikedByMe
466
+ questionId
467
+ }
468
+ }
469
+ concept {
470
+ id
471
+ name
472
+ chapter {
473
+ id
474
+ explanation
475
+ pictures {
476
+ id
477
+ createdAt
478
+ updatedAt
479
+ name
480
+ caption
481
+ path
482
+ path512
483
+ path256
484
+ topicId
485
+ topic {
486
+ id
487
+ name
488
+ typeId
489
+ }
490
+ }
491
+ }
492
+ videos {
493
+ id
494
+ title
495
+ museId
496
+ startTime
497
+ endTime
498
+ thumbnail
499
+ concepts {
500
+ id
501
+ name
502
+ }
503
+ live
504
+ description
505
+ duration
506
+ }
507
+ }
508
+ pictures {
509
+ id
510
+ createdAt
511
+ updatedAt
512
+ name
513
+ caption
514
+ path
515
+ path512
516
+ path256
517
+ topicId
518
+ topic {
519
+ id
520
+ name
521
+ typeId
522
+ }
523
+ }
524
+ difficulty
525
+ psaSectionId
526
+ likes
527
+ dislikes
528
+ isLikedByMe
529
+ prescribeAnswer: answer {
530
+ dose {
531
+ value
532
+ display
533
+ }
534
+ drug {
535
+ value
536
+ display
537
+ }
538
+ route {
539
+ value
540
+ display
541
+ }
542
+ frequency {
543
+ display
544
+ value
545
+ }
546
+ duration {
547
+ display
548
+ value
549
+ }
550
+ units {
551
+ display
552
+ value
553
+ }
554
+ }
555
+ }
556
+ }
557
+ }
558
+ mockTestId
559
+ correct
560
+ incorrect
561
+ totalQuestions
562
+ isTestMarksheet
563
+ }
564
+ }
565
+ }
566
+ `;
6
567
  exports.BUILD_MARKSHEET = (0, client_1.gql) `
7
568
  mutation BuildMarksheet($buildMarksheet: BuildMarksheetInput!) {
8
569
  restricted {
@@ -37,6 +37,12 @@ export declare const LATEST_PAST_AGORA_ID: import("@apollo/client").DocumentNode
37
37
  export declare type IFlaggedQuestionsVar = null;
38
38
  export declare type IFlaggedQuestionsData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'flaggedQuestions'>;
39
39
  export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
40
+ /**
41
+ * flaggedQuestionMarksheet
42
+ */
43
+ export declare type IFlaggedQuestionsMarksheetVar = null;
44
+ export declare type IFlaggedQuestionsMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'flaggedQuestionsMarksheet'>;
45
+ export declare const FLAGGED_QUESTIONS_MARKSHEET: import("@apollo/client").DocumentNode;
40
46
  export interface IMarksheetFeedbackVar {
41
47
  id: Id;
42
48
  }