@quesmed/types 2.5.38 → 2.5.39
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/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +1 -1
- package/dist/cjs/resolvers/mutation/restricted/marksheet.js +1405 -271
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +8 -2
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.js +193 -1
- package/dist/cjs/resolvers/query/restricted/marksheet.js +1584 -461
- package/dist/cjs/resolvers/query/restricted/question.js +378 -0
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/restricted/marksheet.js +1405 -271
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +8 -2
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.js +192 -0
- package/dist/mjs/resolvers/query/restricted/marksheet.js +1584 -461
- package/dist/mjs/resolvers/query/restricted/question.js +378 -0
- package/package.json +1 -1
|
@@ -526,6 +526,384 @@ exports.QUESTION = (0, client_1.gql) `
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
+
... on QuestionEMQ {
|
|
530
|
+
conceptId
|
|
531
|
+
difficulty
|
|
532
|
+
dislikes
|
|
533
|
+
explanation
|
|
534
|
+
id
|
|
535
|
+
isLikedByMe
|
|
536
|
+
likes
|
|
537
|
+
question
|
|
538
|
+
totalVotes
|
|
539
|
+
typeId
|
|
540
|
+
highlights {
|
|
541
|
+
start
|
|
542
|
+
end
|
|
543
|
+
text
|
|
544
|
+
part
|
|
545
|
+
tag
|
|
546
|
+
color
|
|
547
|
+
}
|
|
548
|
+
choices {
|
|
549
|
+
id
|
|
550
|
+
explanation
|
|
551
|
+
name
|
|
552
|
+
label
|
|
553
|
+
answer
|
|
554
|
+
votes
|
|
555
|
+
picture {
|
|
556
|
+
id
|
|
557
|
+
createdAt
|
|
558
|
+
updatedAt
|
|
559
|
+
name
|
|
560
|
+
caption
|
|
561
|
+
path
|
|
562
|
+
path512
|
|
563
|
+
path256
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
comments {
|
|
567
|
+
id
|
|
568
|
+
createdAt
|
|
569
|
+
comment
|
|
570
|
+
parentId
|
|
571
|
+
likes
|
|
572
|
+
user {
|
|
573
|
+
id
|
|
574
|
+
displayName
|
|
575
|
+
}
|
|
576
|
+
dislikes
|
|
577
|
+
isLikedByMe
|
|
578
|
+
questionId
|
|
579
|
+
replies {
|
|
580
|
+
id
|
|
581
|
+
createdAt
|
|
582
|
+
comment
|
|
583
|
+
parentId
|
|
584
|
+
user {
|
|
585
|
+
id
|
|
586
|
+
displayName
|
|
587
|
+
}
|
|
588
|
+
likes
|
|
589
|
+
dislikes
|
|
590
|
+
isLikedByMe
|
|
591
|
+
questionId
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
concept {
|
|
595
|
+
id
|
|
596
|
+
name
|
|
597
|
+
status
|
|
598
|
+
topic {
|
|
599
|
+
id
|
|
600
|
+
name
|
|
601
|
+
typeId
|
|
602
|
+
}
|
|
603
|
+
chapter {
|
|
604
|
+
id
|
|
605
|
+
explanation
|
|
606
|
+
pictures {
|
|
607
|
+
id
|
|
608
|
+
createdAt
|
|
609
|
+
updatedAt
|
|
610
|
+
name
|
|
611
|
+
caption
|
|
612
|
+
path
|
|
613
|
+
path512
|
|
614
|
+
path256
|
|
615
|
+
index
|
|
616
|
+
topicId
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
videos {
|
|
620
|
+
id
|
|
621
|
+
status
|
|
622
|
+
title
|
|
623
|
+
museId
|
|
624
|
+
startTime
|
|
625
|
+
endTime
|
|
626
|
+
thumbnail
|
|
627
|
+
concepts {
|
|
628
|
+
id
|
|
629
|
+
name
|
|
630
|
+
}
|
|
631
|
+
live
|
|
632
|
+
description
|
|
633
|
+
duration
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
pictures {
|
|
637
|
+
id
|
|
638
|
+
createdAt
|
|
639
|
+
updatedAt
|
|
640
|
+
name
|
|
641
|
+
index
|
|
642
|
+
caption
|
|
643
|
+
path
|
|
644
|
+
path512
|
|
645
|
+
path256
|
|
646
|
+
topicId
|
|
647
|
+
}
|
|
648
|
+
difficulty
|
|
649
|
+
psaSectionId
|
|
650
|
+
likes
|
|
651
|
+
dislikes
|
|
652
|
+
isLikedByMe
|
|
653
|
+
emqAnswer: answer
|
|
654
|
+
}
|
|
655
|
+
... on QuestionRanking {
|
|
656
|
+
conceptId
|
|
657
|
+
difficulty
|
|
658
|
+
dislikes
|
|
659
|
+
explanation
|
|
660
|
+
id
|
|
661
|
+
isLikedByMe
|
|
662
|
+
likes
|
|
663
|
+
question
|
|
664
|
+
totalVotes
|
|
665
|
+
typeId
|
|
666
|
+
highlights {
|
|
667
|
+
start
|
|
668
|
+
end
|
|
669
|
+
text
|
|
670
|
+
part
|
|
671
|
+
tag
|
|
672
|
+
color
|
|
673
|
+
}
|
|
674
|
+
choices {
|
|
675
|
+
id
|
|
676
|
+
explanation
|
|
677
|
+
name
|
|
678
|
+
label
|
|
679
|
+
answer
|
|
680
|
+
votes
|
|
681
|
+
picture {
|
|
682
|
+
id
|
|
683
|
+
createdAt
|
|
684
|
+
updatedAt
|
|
685
|
+
name
|
|
686
|
+
caption
|
|
687
|
+
path
|
|
688
|
+
path512
|
|
689
|
+
path256
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
comments {
|
|
693
|
+
id
|
|
694
|
+
createdAt
|
|
695
|
+
comment
|
|
696
|
+
parentId
|
|
697
|
+
likes
|
|
698
|
+
user {
|
|
699
|
+
id
|
|
700
|
+
displayName
|
|
701
|
+
}
|
|
702
|
+
dislikes
|
|
703
|
+
isLikedByMe
|
|
704
|
+
questionId
|
|
705
|
+
replies {
|
|
706
|
+
id
|
|
707
|
+
createdAt
|
|
708
|
+
comment
|
|
709
|
+
parentId
|
|
710
|
+
user {
|
|
711
|
+
id
|
|
712
|
+
displayName
|
|
713
|
+
}
|
|
714
|
+
likes
|
|
715
|
+
dislikes
|
|
716
|
+
isLikedByMe
|
|
717
|
+
questionId
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
concept {
|
|
721
|
+
id
|
|
722
|
+
name
|
|
723
|
+
status
|
|
724
|
+
topic {
|
|
725
|
+
id
|
|
726
|
+
name
|
|
727
|
+
typeId
|
|
728
|
+
}
|
|
729
|
+
chapter {
|
|
730
|
+
id
|
|
731
|
+
explanation
|
|
732
|
+
pictures {
|
|
733
|
+
id
|
|
734
|
+
createdAt
|
|
735
|
+
updatedAt
|
|
736
|
+
name
|
|
737
|
+
caption
|
|
738
|
+
path
|
|
739
|
+
path512
|
|
740
|
+
path256
|
|
741
|
+
index
|
|
742
|
+
topicId
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
videos {
|
|
746
|
+
id
|
|
747
|
+
status
|
|
748
|
+
title
|
|
749
|
+
museId
|
|
750
|
+
startTime
|
|
751
|
+
endTime
|
|
752
|
+
thumbnail
|
|
753
|
+
concepts {
|
|
754
|
+
id
|
|
755
|
+
name
|
|
756
|
+
}
|
|
757
|
+
live
|
|
758
|
+
description
|
|
759
|
+
duration
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
pictures {
|
|
763
|
+
id
|
|
764
|
+
createdAt
|
|
765
|
+
updatedAt
|
|
766
|
+
name
|
|
767
|
+
index
|
|
768
|
+
caption
|
|
769
|
+
path
|
|
770
|
+
path512
|
|
771
|
+
path256
|
|
772
|
+
topicId
|
|
773
|
+
}
|
|
774
|
+
difficulty
|
|
775
|
+
psaSectionId
|
|
776
|
+
likes
|
|
777
|
+
dislikes
|
|
778
|
+
isLikedByMe
|
|
779
|
+
rankingAnswer: answer
|
|
780
|
+
}
|
|
781
|
+
... on QuestionSelect3 {
|
|
782
|
+
conceptId
|
|
783
|
+
difficulty
|
|
784
|
+
dislikes
|
|
785
|
+
explanation
|
|
786
|
+
id
|
|
787
|
+
isLikedByMe
|
|
788
|
+
likes
|
|
789
|
+
question
|
|
790
|
+
totalVotes
|
|
791
|
+
typeId
|
|
792
|
+
highlights {
|
|
793
|
+
start
|
|
794
|
+
end
|
|
795
|
+
text
|
|
796
|
+
part
|
|
797
|
+
tag
|
|
798
|
+
color
|
|
799
|
+
}
|
|
800
|
+
choices {
|
|
801
|
+
id
|
|
802
|
+
explanation
|
|
803
|
+
name
|
|
804
|
+
label
|
|
805
|
+
answer
|
|
806
|
+
votes
|
|
807
|
+
picture {
|
|
808
|
+
id
|
|
809
|
+
createdAt
|
|
810
|
+
updatedAt
|
|
811
|
+
name
|
|
812
|
+
caption
|
|
813
|
+
path
|
|
814
|
+
path512
|
|
815
|
+
path256
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
comments {
|
|
819
|
+
id
|
|
820
|
+
createdAt
|
|
821
|
+
comment
|
|
822
|
+
parentId
|
|
823
|
+
likes
|
|
824
|
+
user {
|
|
825
|
+
id
|
|
826
|
+
displayName
|
|
827
|
+
}
|
|
828
|
+
dislikes
|
|
829
|
+
isLikedByMe
|
|
830
|
+
questionId
|
|
831
|
+
replies {
|
|
832
|
+
id
|
|
833
|
+
createdAt
|
|
834
|
+
comment
|
|
835
|
+
parentId
|
|
836
|
+
user {
|
|
837
|
+
id
|
|
838
|
+
displayName
|
|
839
|
+
}
|
|
840
|
+
likes
|
|
841
|
+
dislikes
|
|
842
|
+
isLikedByMe
|
|
843
|
+
questionId
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
concept {
|
|
847
|
+
id
|
|
848
|
+
name
|
|
849
|
+
status
|
|
850
|
+
topic {
|
|
851
|
+
id
|
|
852
|
+
name
|
|
853
|
+
typeId
|
|
854
|
+
}
|
|
855
|
+
chapter {
|
|
856
|
+
id
|
|
857
|
+
explanation
|
|
858
|
+
pictures {
|
|
859
|
+
id
|
|
860
|
+
createdAt
|
|
861
|
+
updatedAt
|
|
862
|
+
name
|
|
863
|
+
caption
|
|
864
|
+
path
|
|
865
|
+
path512
|
|
866
|
+
path256
|
|
867
|
+
index
|
|
868
|
+
topicId
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
videos {
|
|
872
|
+
id
|
|
873
|
+
status
|
|
874
|
+
title
|
|
875
|
+
museId
|
|
876
|
+
startTime
|
|
877
|
+
endTime
|
|
878
|
+
thumbnail
|
|
879
|
+
concepts {
|
|
880
|
+
id
|
|
881
|
+
name
|
|
882
|
+
}
|
|
883
|
+
live
|
|
884
|
+
description
|
|
885
|
+
duration
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
pictures {
|
|
889
|
+
id
|
|
890
|
+
createdAt
|
|
891
|
+
updatedAt
|
|
892
|
+
name
|
|
893
|
+
index
|
|
894
|
+
caption
|
|
895
|
+
path
|
|
896
|
+
path512
|
|
897
|
+
path256
|
|
898
|
+
topicId
|
|
899
|
+
}
|
|
900
|
+
difficulty
|
|
901
|
+
psaSectionId
|
|
902
|
+
likes
|
|
903
|
+
dislikes
|
|
904
|
+
isLikedByMe
|
|
905
|
+
select3Answer: answer
|
|
906
|
+
}
|
|
529
907
|
}
|
|
530
908
|
}
|
|
531
909
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloCache, ApolloClient } from '@apollo/client';
|
|
2
2
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
|
|
3
3
|
import { Id } from '../../../models';
|
|
4
|
-
import {
|
|
4
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
5
5
|
import { EMarksheetAction, EMarksheetState, EStudyAction, IMarksheet, IMarksheetMark } from './../../../models/Marksheet';
|
|
6
6
|
import { IUser, IUserFlaggedQuestion } from './../../../models/User';
|
|
7
7
|
export interface IPreBuildMarksheet {
|