@quesmed/types 2.5.38 → 2.5.40

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.
@@ -523,6 +523,384 @@ export const QUESTION = gql `
523
523
  }
524
524
  }
525
525
  }
526
+ ... on QuestionEMQ {
527
+ conceptId
528
+ difficulty
529
+ dislikes
530
+ explanation
531
+ id
532
+ isLikedByMe
533
+ likes
534
+ question
535
+ totalVotes
536
+ typeId
537
+ highlights {
538
+ start
539
+ end
540
+ text
541
+ part
542
+ tag
543
+ color
544
+ }
545
+ choices {
546
+ id
547
+ explanation
548
+ name
549
+ label
550
+ answer
551
+ votes
552
+ picture {
553
+ id
554
+ createdAt
555
+ updatedAt
556
+ name
557
+ caption
558
+ path
559
+ path512
560
+ path256
561
+ }
562
+ }
563
+ comments {
564
+ id
565
+ createdAt
566
+ comment
567
+ parentId
568
+ likes
569
+ user {
570
+ id
571
+ displayName
572
+ }
573
+ dislikes
574
+ isLikedByMe
575
+ questionId
576
+ replies {
577
+ id
578
+ createdAt
579
+ comment
580
+ parentId
581
+ user {
582
+ id
583
+ displayName
584
+ }
585
+ likes
586
+ dislikes
587
+ isLikedByMe
588
+ questionId
589
+ }
590
+ }
591
+ concept {
592
+ id
593
+ name
594
+ status
595
+ topic {
596
+ id
597
+ name
598
+ typeId
599
+ }
600
+ chapter {
601
+ id
602
+ explanation
603
+ pictures {
604
+ id
605
+ createdAt
606
+ updatedAt
607
+ name
608
+ caption
609
+ path
610
+ path512
611
+ path256
612
+ index
613
+ topicId
614
+ }
615
+ }
616
+ videos {
617
+ id
618
+ status
619
+ title
620
+ museId
621
+ startTime
622
+ endTime
623
+ thumbnail
624
+ concepts {
625
+ id
626
+ name
627
+ }
628
+ live
629
+ description
630
+ duration
631
+ }
632
+ }
633
+ pictures {
634
+ id
635
+ createdAt
636
+ updatedAt
637
+ name
638
+ index
639
+ caption
640
+ path
641
+ path512
642
+ path256
643
+ topicId
644
+ }
645
+ difficulty
646
+ psaSectionId
647
+ likes
648
+ dislikes
649
+ isLikedByMe
650
+ emqAnswer: answer
651
+ }
652
+ ... on QuestionRanking {
653
+ conceptId
654
+ difficulty
655
+ dislikes
656
+ explanation
657
+ id
658
+ isLikedByMe
659
+ likes
660
+ question
661
+ totalVotes
662
+ typeId
663
+ highlights {
664
+ start
665
+ end
666
+ text
667
+ part
668
+ tag
669
+ color
670
+ }
671
+ choices {
672
+ id
673
+ explanation
674
+ name
675
+ label
676
+ answer
677
+ votes
678
+ picture {
679
+ id
680
+ createdAt
681
+ updatedAt
682
+ name
683
+ caption
684
+ path
685
+ path512
686
+ path256
687
+ }
688
+ }
689
+ comments {
690
+ id
691
+ createdAt
692
+ comment
693
+ parentId
694
+ likes
695
+ user {
696
+ id
697
+ displayName
698
+ }
699
+ dislikes
700
+ isLikedByMe
701
+ questionId
702
+ replies {
703
+ id
704
+ createdAt
705
+ comment
706
+ parentId
707
+ user {
708
+ id
709
+ displayName
710
+ }
711
+ likes
712
+ dislikes
713
+ isLikedByMe
714
+ questionId
715
+ }
716
+ }
717
+ concept {
718
+ id
719
+ name
720
+ status
721
+ topic {
722
+ id
723
+ name
724
+ typeId
725
+ }
726
+ chapter {
727
+ id
728
+ explanation
729
+ pictures {
730
+ id
731
+ createdAt
732
+ updatedAt
733
+ name
734
+ caption
735
+ path
736
+ path512
737
+ path256
738
+ index
739
+ topicId
740
+ }
741
+ }
742
+ videos {
743
+ id
744
+ status
745
+ title
746
+ museId
747
+ startTime
748
+ endTime
749
+ thumbnail
750
+ concepts {
751
+ id
752
+ name
753
+ }
754
+ live
755
+ description
756
+ duration
757
+ }
758
+ }
759
+ pictures {
760
+ id
761
+ createdAt
762
+ updatedAt
763
+ name
764
+ index
765
+ caption
766
+ path
767
+ path512
768
+ path256
769
+ topicId
770
+ }
771
+ difficulty
772
+ psaSectionId
773
+ likes
774
+ dislikes
775
+ isLikedByMe
776
+ rankingAnswer: answer
777
+ }
778
+ ... on QuestionSelect3 {
779
+ conceptId
780
+ difficulty
781
+ dislikes
782
+ explanation
783
+ id
784
+ isLikedByMe
785
+ likes
786
+ question
787
+ totalVotes
788
+ typeId
789
+ highlights {
790
+ start
791
+ end
792
+ text
793
+ part
794
+ tag
795
+ color
796
+ }
797
+ choices {
798
+ id
799
+ explanation
800
+ name
801
+ label
802
+ answer
803
+ votes
804
+ picture {
805
+ id
806
+ createdAt
807
+ updatedAt
808
+ name
809
+ caption
810
+ path
811
+ path512
812
+ path256
813
+ }
814
+ }
815
+ comments {
816
+ id
817
+ createdAt
818
+ comment
819
+ parentId
820
+ likes
821
+ user {
822
+ id
823
+ displayName
824
+ }
825
+ dislikes
826
+ isLikedByMe
827
+ questionId
828
+ replies {
829
+ id
830
+ createdAt
831
+ comment
832
+ parentId
833
+ user {
834
+ id
835
+ displayName
836
+ }
837
+ likes
838
+ dislikes
839
+ isLikedByMe
840
+ questionId
841
+ }
842
+ }
843
+ concept {
844
+ id
845
+ name
846
+ status
847
+ topic {
848
+ id
849
+ name
850
+ typeId
851
+ }
852
+ chapter {
853
+ id
854
+ explanation
855
+ pictures {
856
+ id
857
+ createdAt
858
+ updatedAt
859
+ name
860
+ caption
861
+ path
862
+ path512
863
+ path256
864
+ index
865
+ topicId
866
+ }
867
+ }
868
+ videos {
869
+ id
870
+ status
871
+ title
872
+ museId
873
+ startTime
874
+ endTime
875
+ thumbnail
876
+ concepts {
877
+ id
878
+ name
879
+ }
880
+ live
881
+ description
882
+ duration
883
+ }
884
+ }
885
+ pictures {
886
+ id
887
+ createdAt
888
+ updatedAt
889
+ name
890
+ index
891
+ caption
892
+ path
893
+ path512
894
+ path256
895
+ topicId
896
+ }
897
+ difficulty
898
+ psaSectionId
899
+ likes
900
+ dislikes
901
+ isLikedByMe
902
+ select3Answer: answer
903
+ }
526
904
  }
527
905
  }
528
906
  }
@@ -1,4 +1,4 @@
1
- import { EClassYearGroup, EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, IAccessLevel, IClassYear, Id, IOsceMarksheetMember, IOsceMarksheetTimer, IUser } from '../../models';
1
+ import { EClassYearGroup, EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, IAccessLevel, IClassYear, Id, IOsceMarksheetMark, IOsceMarksheetMember, IOsceMarksheetTimer, IUser } from '../../models';
2
2
  import { RootData } from '../types';
3
3
  export declare const OSCE_ROLE_CHANGE_KEY = "OSCE_ROLE_CHANGE";
4
4
  export declare const OSCE_MARKSHEET_ACTION_KEY = "OSCE_MARKSHEET_ACTION";
@@ -39,6 +39,9 @@ export interface IOsceMarksheetAction {
39
39
  endedAt: Date | null;
40
40
  state: EOsceMarksheetState;
41
41
  action: EOsceMarksheetAction;
42
+ marks?: IOsceMarksheetMark[];
43
+ globalScore?: number;
44
+ feedback?: string;
42
45
  }
43
46
  export type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
44
47
  export declare const OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  import { gql } from '@apollo/client';
2
2
  import { EOsceRoles, } from '../../models';
3
- import { OSCE_MATCHMAKING_ACTION_FIELDS } from '../fragments';
3
+ import { OSCE_MARKSHEET_MARK_FIELDS, OSCE_MATCHMAKING_ACTION_FIELDS } from '../fragments';
4
4
  export const OSCE_ROLE_CHANGE_KEY = 'OSCE_ROLE_CHANGE';
5
5
  export const OSCE_MARKSHEET_ACTION_KEY = 'OSCE_MARKSHEET_ACTION';
6
6
  export const OSCE_MARKSHEET_TIMER_KEY = 'OSCE_MARKSHEET_TIMER';
@@ -66,6 +66,7 @@ export const OSCE_ROLE_CHANGE = gql `
66
66
  }
67
67
  `;
68
68
  export const OSCE_MARKSHEET_ACTION = gql `
69
+ ${OSCE_MARKSHEET_MARK_FIELDS}
69
70
  subscription OsceMarksheetAction($osceMarksheetId: Int!) {
70
71
  osceMarksheetAction(osceMarksheetId: $osceMarksheetId) {
71
72
  osceMarksheetId
@@ -88,6 +89,11 @@ export const OSCE_MARKSHEET_ACTION = gql `
88
89
  userId
89
90
  role
90
91
  }
92
+ feedback
93
+ globalScore
94
+ marks {
95
+ ...OsceMarksheetMarkFields
96
+ }
91
97
  startedAt
92
98
  endedAt
93
99
  action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.38",
3
+ "version": "2.5.40",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",