@quesmed/types 2.6.29 → 2.6.30

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 (43) hide show
  1. package/dist/cjs/resolvers/fragments/chapter.js +3 -18
  2. package/dist/cjs/resolvers/fragments/concept.d.ts +1 -2
  3. package/dist/cjs/resolvers/fragments/concept.js +18 -57
  4. package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
  5. package/dist/cjs/resolvers/fragments/index.js +1 -0
  6. package/dist/cjs/resolvers/fragments/marksheet.d.ts +14 -0
  7. package/dist/cjs/resolvers/fragments/marksheet.js +127 -127
  8. package/dist/cjs/resolvers/fragments/osce.d.ts +1 -0
  9. package/dist/cjs/resolvers/fragments/osce.js +6 -1
  10. package/dist/cjs/resolvers/fragments/question.d.ts +5 -0
  11. package/dist/cjs/resolvers/fragments/question.js +176 -0
  12. package/dist/cjs/resolvers/fragments/topic.d.ts +2 -0
  13. package/dist/cjs/resolvers/fragments/topic.js +25 -1
  14. package/dist/cjs/resolvers/fragments/video.d.ts +1 -0
  15. package/dist/cjs/resolvers/fragments/video.js +17 -28
  16. package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +0 -8
  17. package/dist/cjs/resolvers/mutation/restricted/marksheet.js +18 -4128
  18. package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -21
  19. package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.js +27 -532
  20. package/dist/cjs/resolvers/query/restricted/marksheet.js +5 -2025
  21. package/dist/cjs/resolvers/query/restricted/question.js +3 -932
  22. package/dist/mjs/resolvers/fragments/chapter.js +3 -18
  23. package/dist/mjs/resolvers/fragments/concept.d.ts +1 -2
  24. package/dist/mjs/resolvers/fragments/concept.js +18 -57
  25. package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
  26. package/dist/mjs/resolvers/fragments/index.js +1 -0
  27. package/dist/mjs/resolvers/fragments/marksheet.d.ts +14 -0
  28. package/dist/mjs/resolvers/fragments/marksheet.js +126 -126
  29. package/dist/mjs/resolvers/fragments/osce.d.ts +1 -0
  30. package/dist/mjs/resolvers/fragments/osce.js +5 -0
  31. package/dist/mjs/resolvers/fragments/question.d.ts +5 -0
  32. package/dist/mjs/resolvers/fragments/question.js +173 -0
  33. package/dist/mjs/resolvers/fragments/topic.d.ts +2 -0
  34. package/dist/mjs/resolvers/fragments/topic.js +24 -0
  35. package/dist/mjs/resolvers/fragments/video.d.ts +1 -0
  36. package/dist/mjs/resolvers/fragments/video.js +16 -27
  37. package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +0 -8
  38. package/dist/mjs/resolvers/mutation/restricted/marksheet.js +14 -4124
  39. package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -21
  40. package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.js +26 -530
  41. package/dist/mjs/resolvers/query/restricted/marksheet.js +5 -2025
  42. package/dist/mjs/resolvers/query/restricted/question.js +3 -932
  43. package/package.json +6 -1
@@ -1,940 +1,11 @@
1
1
  import { gql } from '@apollo/client';
2
+ import { QUESTION_FIELDS } from '../../fragments';
2
3
  export const QUESTION = gql `
4
+ ${QUESTION_FIELDS}
3
5
  query Question($id: Int!) {
4
6
  restricted {
5
7
  question(id: $id) {
6
- ... on QuestionSBA {
7
- conceptId
8
- difficulty
9
- dislikes
10
- explanation
11
- id
12
- isLikedByMe
13
- likes
14
- question
15
- totalVotes
16
- typeId
17
- choices {
18
- id
19
- explanation
20
- name
21
- label
22
- answer
23
- votes
24
- picture {
25
- id
26
- createdAt
27
- updatedAt
28
- name
29
- caption
30
- path
31
- path512
32
- path256
33
- thumbhash
34
- }
35
- }
36
- comments {
37
- id
38
- createdAt
39
- comment
40
- parentId
41
- likes
42
- user {
43
- id
44
- displayName
45
- }
46
- dislikes
47
- isLikedByMe
48
- questionId
49
- replies {
50
- id
51
- createdAt
52
- comment
53
- parentId
54
- user {
55
- id
56
- displayName
57
- }
58
- likes
59
- dislikes
60
- isLikedByMe
61
- questionId
62
- }
63
- }
64
- concept {
65
- id
66
- name
67
- status
68
- chapter {
69
- id
70
- explanation
71
- pictures {
72
- id
73
- createdAt
74
- updatedAt
75
- name
76
- caption
77
- path
78
- path512
79
- path256
80
- thumbhash
81
- index
82
- topicId
83
- topic {
84
- id
85
- name
86
- typeId
87
- }
88
- }
89
- }
90
- videos {
91
- id
92
- status
93
- title
94
- museId
95
- startTime
96
- endTime
97
- thumbnail
98
- concepts {
99
- id
100
- name
101
- }
102
- live
103
- description
104
- duration
105
- }
106
- }
107
- pictures {
108
- id
109
- createdAt
110
- updatedAt
111
- name
112
- index
113
- caption
114
- path
115
- path512
116
- path256
117
- thumbhash
118
- topicId
119
- topic {
120
- id
121
- name
122
- typeId
123
- }
124
- }
125
- difficulty
126
- psaSectionId
127
- likes
128
- dislikes
129
- isLikedByMe
130
- sbaAnswer: answer
131
- }
132
- ... on QuestionQA {
133
- conceptId
134
- difficulty
135
- dislikes
136
- explanation
137
- id
138
- isLikedByMe
139
- likes
140
- question
141
- totalVotes
142
- typeId
143
- choices {
144
- id
145
- explanation
146
- name
147
- label
148
- answer
149
- votes
150
- picture {
151
- id
152
- createdAt
153
- updatedAt
154
- name
155
- caption
156
- path
157
- path512
158
- path256
159
- thumbhash
160
- }
161
- }
162
- comments {
163
- id
164
- createdAt
165
- comment
166
- parentId
167
- likes
168
- user {
169
- id
170
- displayName
171
- }
172
- dislikes
173
- isLikedByMe
174
- questionId
175
- replies {
176
- id
177
- createdAt
178
- comment
179
- parentId
180
- user {
181
- id
182
- displayName
183
- }
184
- likes
185
- dislikes
186
- isLikedByMe
187
- questionId
188
- }
189
- }
190
- concept {
191
- id
192
- name
193
- status
194
- chapter {
195
- id
196
- explanation
197
- pictures {
198
- id
199
- createdAt
200
- updatedAt
201
- name
202
- caption
203
- path
204
- path512
205
- path256
206
- thumbhash
207
- index
208
- topicId
209
- topic {
210
- id
211
- name
212
- typeId
213
- }
214
- }
215
- }
216
- videos {
217
- id
218
- status
219
- title
220
- museId
221
- startTime
222
- endTime
223
- thumbnail
224
- concepts {
225
- id
226
- name
227
- }
228
- live
229
- description
230
- duration
231
- }
232
- }
233
- pictures {
234
- id
235
- createdAt
236
- updatedAt
237
- name
238
- index
239
- caption
240
- path
241
- path512
242
- path256
243
- thumbhash
244
- topicId
245
- topic {
246
- id
247
- name
248
- typeId
249
- }
250
- }
251
- difficulty
252
- psaSectionId
253
- likes
254
- dislikes
255
- isLikedByMe
256
- qaAnswer: answer {
257
- dose
258
- units
259
- }
260
- }
261
- ... on QuestionMultiA {
262
- conceptId
263
- difficulty
264
- dislikes
265
- explanation
266
- id
267
- isLikedByMe
268
- likes
269
- question
270
- totalVotes
271
- typeId
272
- choices {
273
- id
274
- explanation
275
- name
276
- label
277
- answer
278
- votes
279
- picture {
280
- id
281
- createdAt
282
- updatedAt
283
- name
284
- caption
285
- path
286
- path512
287
- path256
288
- thumbhash
289
- }
290
- }
291
- comments {
292
- id
293
- createdAt
294
- comment
295
- parentId
296
- likes
297
- user {
298
- id
299
- displayName
300
- }
301
- dislikes
302
- isLikedByMe
303
- questionId
304
- replies {
305
- id
306
- createdAt
307
- comment
308
- parentId
309
- user {
310
- id
311
- displayName
312
- }
313
- likes
314
- dislikes
315
- isLikedByMe
316
- questionId
317
- }
318
- }
319
- concept {
320
- id
321
- name
322
- status
323
- chapter {
324
- id
325
- explanation
326
- pictures {
327
- id
328
- createdAt
329
- updatedAt
330
- name
331
- caption
332
- path
333
- path512
334
- path256
335
- thumbhash
336
- index
337
- topicId
338
- topic {
339
- id
340
- name
341
- typeId
342
- }
343
- }
344
- }
345
- videos {
346
- id
347
- status
348
- title
349
- museId
350
- startTime
351
- endTime
352
- thumbnail
353
- concepts {
354
- id
355
- name
356
- }
357
- live
358
- description
359
- duration
360
- }
361
- }
362
- pictures {
363
- id
364
- createdAt
365
- updatedAt
366
- name
367
- index
368
- caption
369
- path
370
- path512
371
- path256
372
- thumbhash
373
- topicId
374
- topic {
375
- id
376
- name
377
- typeId
378
- }
379
- }
380
- difficulty
381
- psaSectionId
382
- likes
383
- dislikes
384
- isLikedByMe
385
- multiAnswer: answer
386
- }
387
- ... on QuestionPrescription {
388
- conceptId
389
- difficulty
390
- dislikes
391
- explanation
392
- id
393
- isLikedByMe
394
- likes
395
- question
396
- totalVotes
397
- typeId
398
- choices {
399
- id
400
- explanation
401
- name
402
- label
403
- answer
404
- votes
405
- picture {
406
- id
407
- createdAt
408
- updatedAt
409
- name
410
- caption
411
- path
412
- path512
413
- path256
414
- thumbhash
415
- }
416
- }
417
- comments {
418
- id
419
- createdAt
420
- comment
421
- parentId
422
- likes
423
- user {
424
- id
425
- displayName
426
- }
427
- dislikes
428
- isLikedByMe
429
- questionId
430
- replies {
431
- id
432
- createdAt
433
- comment
434
- parentId
435
- user {
436
- id
437
- displayName
438
- }
439
- likes
440
- dislikes
441
- isLikedByMe
442
- questionId
443
- }
444
- }
445
- concept {
446
- id
447
- name
448
- status
449
- chapter {
450
- id
451
- explanation
452
- pictures {
453
- id
454
- createdAt
455
- updatedAt
456
- name
457
- caption
458
- path
459
- path512
460
- path256
461
- thumbhash
462
- index
463
- topicId
464
- topic {
465
- id
466
- name
467
- typeId
468
- }
469
- }
470
- }
471
- videos {
472
- id
473
- status
474
- title
475
- museId
476
- startTime
477
- endTime
478
- thumbnail
479
- concepts {
480
- id
481
- name
482
- }
483
- live
484
- description
485
- duration
486
- }
487
- }
488
- pictures {
489
- id
490
- createdAt
491
- updatedAt
492
- name
493
- index
494
- caption
495
- path
496
- path512
497
- path256
498
- thumbhash
499
- topicId
500
- topic {
501
- id
502
- name
503
- typeId
504
- }
505
- }
506
- difficulty
507
- psaSectionId
508
- likes
509
- dislikes
510
- isLikedByMe
511
- prescribeAnswer: answer {
512
- dose {
513
- value
514
- label
515
- visible
516
- }
517
- drug {
518
- value
519
- label
520
- visible
521
- }
522
- route {
523
- value
524
- label
525
- visible
526
- }
527
- frequency {
528
- value
529
- label
530
- visible
531
- }
532
- duration {
533
- value
534
- label
535
- visible
536
- }
537
- unit {
538
- value
539
- label
540
- visible
541
- }
542
- }
543
- }
544
- ... on QuestionEMQ {
545
- conceptId
546
- difficulty
547
- dislikes
548
- explanation
549
- id
550
- isLikedByMe
551
- likes
552
- question
553
- totalVotes
554
- typeId
555
- highlights {
556
- start
557
- end
558
- text
559
- part
560
- tag
561
- color
562
- }
563
- cases {
564
- id
565
- questionId
566
- case
567
- explanation
568
- label
569
- }
570
- choices {
571
- id
572
- explanation
573
- name
574
- label
575
- answer
576
- votes
577
- picture {
578
- id
579
- createdAt
580
- updatedAt
581
- name
582
- caption
583
- path
584
- path512
585
- path256
586
- thumbhash
587
- }
588
- }
589
- comments {
590
- id
591
- createdAt
592
- comment
593
- parentId
594
- likes
595
- user {
596
- id
597
- displayName
598
- }
599
- dislikes
600
- isLikedByMe
601
- questionId
602
- replies {
603
- id
604
- createdAt
605
- comment
606
- parentId
607
- user {
608
- id
609
- displayName
610
- }
611
- likes
612
- dislikes
613
- isLikedByMe
614
- questionId
615
- }
616
- }
617
- concept {
618
- id
619
- name
620
- status
621
- topic {
622
- id
623
- name
624
- typeId
625
- }
626
- chapter {
627
- id
628
- explanation
629
- pictures {
630
- id
631
- createdAt
632
- updatedAt
633
- name
634
- caption
635
- path
636
- path512
637
- path256
638
- thumbhash
639
- index
640
- topicId
641
- }
642
- }
643
- videos {
644
- id
645
- status
646
- title
647
- museId
648
- startTime
649
- endTime
650
- thumbnail
651
- concepts {
652
- id
653
- name
654
- }
655
- live
656
- description
657
- duration
658
- }
659
- }
660
- pictures {
661
- id
662
- createdAt
663
- updatedAt
664
- name
665
- index
666
- caption
667
- path
668
- path512
669
- path256
670
- thumbhash
671
- topicId
672
- }
673
- difficulty
674
- psaSectionId
675
- likes
676
- dislikes
677
- isLikedByMe
678
- emqAnswer: answer
679
- }
680
- ... on QuestionRanking {
681
- conceptId
682
- difficulty
683
- dislikes
684
- explanation
685
- id
686
- isLikedByMe
687
- likes
688
- question
689
- totalVotes
690
- typeId
691
- highlights {
692
- start
693
- end
694
- text
695
- part
696
- tag
697
- color
698
- }
699
- choices {
700
- id
701
- explanation
702
- name
703
- label
704
- answer
705
- votes
706
- picture {
707
- id
708
- createdAt
709
- updatedAt
710
- name
711
- caption
712
- path
713
- path512
714
- path256
715
- thumbhash
716
- }
717
- }
718
- comments {
719
- id
720
- createdAt
721
- comment
722
- parentId
723
- likes
724
- user {
725
- id
726
- displayName
727
- }
728
- dislikes
729
- isLikedByMe
730
- questionId
731
- replies {
732
- id
733
- createdAt
734
- comment
735
- parentId
736
- user {
737
- id
738
- displayName
739
- }
740
- likes
741
- dislikes
742
- isLikedByMe
743
- questionId
744
- }
745
- }
746
- concept {
747
- id
748
- name
749
- status
750
- topic {
751
- id
752
- name
753
- typeId
754
- }
755
- chapter {
756
- id
757
- explanation
758
- pictures {
759
- id
760
- createdAt
761
- updatedAt
762
- name
763
- caption
764
- path
765
- path512
766
- path256
767
- thumbhash
768
- index
769
- topicId
770
- }
771
- }
772
- videos {
773
- id
774
- status
775
- title
776
- museId
777
- startTime
778
- endTime
779
- thumbnail
780
- concepts {
781
- id
782
- name
783
- }
784
- live
785
- description
786
- duration
787
- }
788
- }
789
- pictures {
790
- id
791
- createdAt
792
- updatedAt
793
- name
794
- index
795
- caption
796
- path
797
- path512
798
- path256
799
- thumbhash
800
- topicId
801
- }
802
- difficulty
803
- psaSectionId
804
- likes
805
- dislikes
806
- isLikedByMe
807
- rankingAnswer: answer
808
- }
809
- ... on QuestionSelect3 {
810
- conceptId
811
- difficulty
812
- dislikes
813
- explanation
814
- id
815
- isLikedByMe
816
- likes
817
- question
818
- totalVotes
819
- typeId
820
- highlights {
821
- start
822
- end
823
- text
824
- part
825
- tag
826
- color
827
- }
828
- choices {
829
- id
830
- explanation
831
- name
832
- label
833
- answer
834
- votes
835
- picture {
836
- id
837
- createdAt
838
- updatedAt
839
- name
840
- caption
841
- path
842
- path512
843
- path256
844
- thumbhash
845
- }
846
- }
847
- comments {
848
- id
849
- createdAt
850
- comment
851
- parentId
852
- likes
853
- user {
854
- id
855
- displayName
856
- }
857
- dislikes
858
- isLikedByMe
859
- questionId
860
- replies {
861
- id
862
- createdAt
863
- comment
864
- parentId
865
- user {
866
- id
867
- displayName
868
- }
869
- likes
870
- dislikes
871
- isLikedByMe
872
- questionId
873
- }
874
- }
875
- concept {
876
- id
877
- name
878
- status
879
- topic {
880
- id
881
- name
882
- typeId
883
- }
884
- chapter {
885
- id
886
- explanation
887
- pictures {
888
- id
889
- createdAt
890
- updatedAt
891
- name
892
- caption
893
- path
894
- path512
895
- path256
896
- thumbhash
897
- index
898
- topicId
899
- }
900
- }
901
- videos {
902
- id
903
- status
904
- title
905
- museId
906
- startTime
907
- endTime
908
- thumbnail
909
- concepts {
910
- id
911
- name
912
- }
913
- live
914
- description
915
- duration
916
- }
917
- }
918
- pictures {
919
- id
920
- createdAt
921
- updatedAt
922
- name
923
- index
924
- caption
925
- path
926
- path512
927
- path256
928
- thumbhash
929
- topicId
930
- }
931
- difficulty
932
- psaSectionId
933
- likes
934
- dislikes
935
- isLikedByMe
936
- select3Answer: answer
937
- }
8
+ ...QuestionFields
938
9
  }
939
10
  }
940
11
  }