@quesmed/types-rn 2.2.52 → 2.2.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.2.52",
3
+ "version": "2.2.55",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -72,7 +72,7 @@ export declare const REMOVE_FLAGGED_QUESTION: import("@apollo/client").DocumentN
72
72
  export interface IRemoveFlaggedQuestionVar {
73
73
  questionId: Id;
74
74
  }
75
- export declare type IRemoveFlaggedQuestionData = RestrictedData<graphqlNormalize & IUserFlaggedQuestion, 'removeFlaggedQuestion'>;
75
+ export declare type IRemoveFlaggedQuestionData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'removeFlaggedQuestion'>;
76
76
  /**
77
77
  * startOrJoinMarksheet
78
78
  */
@@ -34,8 +34,17 @@ export declare const LATEST_PAST_MARKSHEET_ID: import("@apollo/client").Document
34
34
  export declare type ILatestAgoraIdVar = null;
35
35
  export declare type ILatestAgoraIdData = RestrictedData<string, 'latestAgoraId'>;
36
36
  export declare const LATEST_PAST_AGORA_ID: import("@apollo/client").DocumentNode;
37
- export declare type IFlaggedQuestionsVar = null;
38
- export declare type IFlaggedQuestionsData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'flaggedQuestions'>;
37
+ export interface IFlaggedQuestionsVar {
38
+ filter: {
39
+ limit: number;
40
+ offset: number;
41
+ };
42
+ }
43
+ export declare type IFlaggedQuestionDataResults = (graphqlNormalize & IUserFlaggedQuestion)[];
44
+ export declare type IFlaggedQuestionsData = RestrictedData<graphqlNormalize & {
45
+ results: IFlaggedQuestionDataResults;
46
+ total: number;
47
+ }, 'flaggedQuestions'>;
39
48
  export declare const FLAGGED_QUESTIONS: import("@apollo/client").DocumentNode;
40
49
  /**
41
50
  * flaggedQuestionMarksheet
@@ -10,6 +10,7 @@ exports.MARKSHEET = (0, client_1.gql) `
10
10
  topicConceptData
11
11
  currentMarkId
12
12
  completed
13
+ timeTaken
13
14
  topicIds
14
15
  topicNames
15
16
  mockTestId
@@ -605,151 +606,77 @@ exports.LATEST_PAST_AGORA_ID = (0, client_1.gql) `
605
606
  }
606
607
  `;
607
608
  exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
608
- query FlaggedQuestions {
609
+ query FlaggedQuestions($filter: FlaggedQuestionInput!) {
609
610
  restricted {
610
- flaggedQuestions {
611
- question {
612
- conceptId
613
- difficulty
614
- dislikes
615
- explanation
616
- id
617
- isLikedByMe
618
- likes
619
- question
620
- totalVotes
621
- typeId
622
- choices {
623
- id
611
+ flaggedQuestions(filter: $filter) {
612
+ total
613
+ results {
614
+ question {
615
+ conceptId
616
+ difficulty
617
+ dislikes
624
618
  explanation
625
- name
626
- label
627
- answer
628
- votes
629
- picture {
630
- id
631
- createdAt
632
- updatedAt
633
- name
634
- caption
635
- path
636
- path512
637
- path256
638
- }
639
- }
640
- comments {
641
619
  id
642
- createdAt
643
- comment
620
+ isLikedByMe
644
621
  likes
645
- user {
622
+ question
623
+ totalVotes
624
+ typeId
625
+ choices {
646
626
  id
647
- displayName
627
+ explanation
628
+ name
629
+ label
630
+ answer
631
+ votes
632
+ picture {
633
+ id
634
+ createdAt
635
+ updatedAt
636
+ name
637
+ caption
638
+ path
639
+ path512
640
+ path256
641
+ }
648
642
  }
649
- dislikes
650
- isLikedByMe
651
- questionId
652
- replies {
643
+ comments {
653
644
  id
654
645
  createdAt
655
646
  comment
647
+ likes
656
648
  user {
657
649
  id
658
650
  displayName
659
651
  }
660
- likes
661
652
  dislikes
662
653
  isLikedByMe
663
654
  questionId
664
- }
665
- }
666
- concept {
667
- id
668
- name
669
- topic {
670
- name
671
- typeId
672
- }
673
- chapter {
674
- id
675
- explanation
676
- pictures {
655
+ replies {
677
656
  id
678
657
  createdAt
679
- updatedAt
680
- name
681
- caption
682
- path
683
- path512
684
- path256
685
- topicId
686
- topic {
658
+ comment
659
+ user {
687
660
  id
688
- name
689
- typeId
661
+ displayName
690
662
  }
663
+ likes
664
+ dislikes
665
+ isLikedByMe
666
+ questionId
691
667
  }
692
668
  }
693
- videos {
669
+ concept {
694
670
  id
695
- title
696
- museId
697
- startTime
698
- endTime
699
- thumbnail
700
- concepts {
701
- id
671
+ name
672
+ topic {
702
673
  name
674
+ typeId
703
675
  }
704
- live
705
- description
706
- duration
707
- }
708
- }
709
- pictures {
710
- id
711
- createdAt
712
- updatedAt
713
- name
714
- caption
715
- path
716
- path512
717
- path256
718
- topicId
719
- topic {
720
- id
721
- name
722
- typeId
723
- }
724
- }
725
- }
726
- mark {
727
- flagged
728
- questionChoiceId
729
- timeTaken
730
- index
731
- id
732
- mark
733
- question {
734
- ... on QuestionSBA {
735
- conceptId
736
- difficulty
737
- dislikes
738
- explanation
739
- id
740
- isLikedByMe
741
- likes
742
- question
743
- totalVotes
744
- typeId
745
- choices {
676
+ chapter {
746
677
  id
747
678
  explanation
748
- name
749
- label
750
- answer
751
- votes
752
- picture {
679
+ pictures {
753
680
  id
754
681
  createdAt
755
682
  updatedAt
@@ -758,41 +685,74 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
758
685
  path
759
686
  path512
760
687
  path256
688
+ topicId
689
+ topic {
690
+ id
691
+ name
692
+ typeId
693
+ }
761
694
  }
762
695
  }
763
- comments {
696
+ videos {
764
697
  id
765
- createdAt
766
- comment
767
- likes
768
- user {
769
- id
770
- displayName
771
- }
772
- dislikes
773
- isLikedByMe
774
- questionId
775
- replies {
698
+ title
699
+ museId
700
+ startTime
701
+ endTime
702
+ thumbnail
703
+ concepts {
776
704
  id
777
- createdAt
778
- comment
779
- user {
780
- id
781
- displayName
782
- }
783
- likes
784
- dislikes
785
- isLikedByMe
786
- questionId
705
+ name
787
706
  }
707
+ live
708
+ description
709
+ duration
788
710
  }
789
- concept {
711
+ }
712
+ pictures {
713
+ id
714
+ createdAt
715
+ updatedAt
716
+ name
717
+ caption
718
+ path
719
+ path512
720
+ path256
721
+ topicId
722
+ topic {
790
723
  id
791
724
  name
792
- chapter {
725
+ typeId
726
+ }
727
+ }
728
+ }
729
+ mark {
730
+ flagged
731
+ questionChoiceId
732
+ timeTaken
733
+ index
734
+ id
735
+ mark
736
+ question {
737
+ ... on QuestionSBA {
738
+ conceptId
739
+ difficulty
740
+ dislikes
741
+ explanation
742
+ id
743
+ isLikedByMe
744
+ likes
745
+ question
746
+ totalVotes
747
+ typeId
748
+ choices {
793
749
  id
794
750
  explanation
795
- pictures {
751
+ name
752
+ label
753
+ answer
754
+ votes
755
+ picture {
796
756
  id
797
757
  createdAt
798
758
  updatedAt
@@ -801,72 +761,74 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
801
761
  path
802
762
  path512
803
763
  path256
804
- topicId
805
- topic {
806
- id
807
- name
808
- typeId
809
- }
810
764
  }
811
765
  }
812
- videos {
766
+ comments {
813
767
  id
814
- title
815
- museId
816
- startTime
817
- endTime
818
- thumbnail
819
- concepts {
768
+ createdAt
769
+ comment
770
+ likes
771
+ user {
820
772
  id
821
- name
773
+ displayName
774
+ }
775
+ dislikes
776
+ isLikedByMe
777
+ questionId
778
+ replies {
779
+ id
780
+ createdAt
781
+ comment
782
+ user {
783
+ id
784
+ displayName
785
+ }
786
+ likes
787
+ dislikes
788
+ isLikedByMe
789
+ questionId
822
790
  }
823
- live
824
- description
825
- duration
826
791
  }
827
- }
828
- pictures {
829
- id
830
- createdAt
831
- updatedAt
832
- name
833
- caption
834
- path
835
- path512
836
- path256
837
- topicId
838
- topic {
792
+ concept {
839
793
  id
840
794
  name
841
- typeId
795
+ chapter {
796
+ id
797
+ explanation
798
+ pictures {
799
+ id
800
+ createdAt
801
+ updatedAt
802
+ name
803
+ caption
804
+ path
805
+ path512
806
+ path256
807
+ topicId
808
+ topic {
809
+ id
810
+ name
811
+ typeId
812
+ }
813
+ }
814
+ }
815
+ videos {
816
+ id
817
+ title
818
+ museId
819
+ startTime
820
+ endTime
821
+ thumbnail
822
+ concepts {
823
+ id
824
+ name
825
+ }
826
+ live
827
+ description
828
+ duration
829
+ }
842
830
  }
843
- }
844
- difficulty
845
- psaSectionId
846
- likes
847
- dislikes
848
- isLikedByMe
849
- sbaAnswer: answer
850
- }
851
- ... on QuestionQA {
852
- conceptId
853
- difficulty
854
- dislikes
855
- explanation
856
- id
857
- isLikedByMe
858
- likes
859
- question
860
- totalVotes
861
- typeId
862
- choices {
863
- id
864
- explanation
865
- name
866
- label
867
- answer
868
- votes
869
- picture {
831
+ pictures {
870
832
  id
871
833
  createdAt
872
834
  updatedAt
@@ -875,118 +837,115 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
875
837
  path
876
838
  path512
877
839
  path256
840
+ topicId
841
+ topic {
842
+ id
843
+ name
844
+ typeId
845
+ }
878
846
  }
847
+ difficulty
848
+ psaSectionId
849
+ likes
850
+ dislikes
851
+ isLikedByMe
852
+ sbaAnswer: answer
879
853
  }
880
- comments {
854
+ ... on QuestionQA {
855
+ conceptId
856
+ difficulty
857
+ dislikes
858
+ explanation
881
859
  id
882
- createdAt
883
- comment
860
+ isLikedByMe
884
861
  likes
885
- user {
862
+ question
863
+ totalVotes
864
+ typeId
865
+ choices {
886
866
  id
887
- displayName
867
+ explanation
868
+ name
869
+ label
870
+ answer
871
+ votes
872
+ picture {
873
+ id
874
+ createdAt
875
+ updatedAt
876
+ name
877
+ caption
878
+ path
879
+ path512
880
+ path256
881
+ }
888
882
  }
889
- dislikes
890
- isLikedByMe
891
- questionId
892
- replies {
883
+ comments {
893
884
  id
894
885
  createdAt
895
886
  comment
887
+ likes
896
888
  user {
897
889
  id
898
890
  displayName
899
891
  }
900
- likes
901
892
  dislikes
902
893
  isLikedByMe
903
894
  questionId
904
- }
905
- }
906
- concept {
907
- id
908
- name
909
- chapter {
910
- id
911
- explanation
912
- pictures {
895
+ replies {
913
896
  id
914
897
  createdAt
915
- updatedAt
916
- name
917
- caption
918
- path
919
- path512
920
- path256
921
- topicId
922
- topic {
898
+ comment
899
+ user {
923
900
  id
924
- name
925
- typeId
901
+ displayName
926
902
  }
903
+ likes
904
+ dislikes
905
+ isLikedByMe
906
+ questionId
927
907
  }
928
908
  }
929
- videos {
909
+ concept {
930
910
  id
931
- title
932
- museId
933
- startTime
934
- endTime
935
- thumbnail
936
- concepts {
911
+ name
912
+ chapter {
937
913
  id
938
- name
914
+ explanation
915
+ pictures {
916
+ id
917
+ createdAt
918
+ updatedAt
919
+ name
920
+ caption
921
+ path
922
+ path512
923
+ path256
924
+ topicId
925
+ topic {
926
+ id
927
+ name
928
+ typeId
929
+ }
930
+ }
931
+ }
932
+ videos {
933
+ id
934
+ title
935
+ museId
936
+ startTime
937
+ endTime
938
+ thumbnail
939
+ concepts {
940
+ id
941
+ name
942
+ }
943
+ live
944
+ description
945
+ duration
939
946
  }
940
- live
941
- description
942
- duration
943
- }
944
- }
945
- pictures {
946
- id
947
- createdAt
948
- updatedAt
949
- name
950
- caption
951
- path
952
- path512
953
- path256
954
- topicId
955
- topic {
956
- id
957
- name
958
- typeId
959
947
  }
960
- }
961
- difficulty
962
- psaSectionId
963
- likes
964
- dislikes
965
- isLikedByMe
966
- qaAnswer: answer {
967
- dose
968
- units
969
- }
970
- }
971
- ... on QuestionMultiA {
972
- conceptId
973
- difficulty
974
- dislikes
975
- explanation
976
- id
977
- isLikedByMe
978
- likes
979
- question
980
- totalVotes
981
- typeId
982
- choices {
983
- id
984
- explanation
985
- name
986
- label
987
- answer
988
- votes
989
- picture {
948
+ pictures {
990
949
  id
991
950
  createdAt
992
951
  updatedAt
@@ -995,41 +954,42 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
995
954
  path
996
955
  path512
997
956
  path256
957
+ topicId
958
+ topic {
959
+ id
960
+ name
961
+ typeId
962
+ }
998
963
  }
999
- }
1000
- comments {
1001
- id
1002
- createdAt
1003
- comment
964
+ difficulty
965
+ psaSectionId
1004
966
  likes
1005
- user {
1006
- id
1007
- displayName
1008
- }
1009
967
  dislikes
1010
968
  isLikedByMe
1011
- questionId
1012
- replies {
1013
- id
1014
- createdAt
1015
- comment
1016
- user {
1017
- id
1018
- displayName
1019
- }
1020
- likes
1021
- dislikes
1022
- isLikedByMe
1023
- questionId
969
+ qaAnswer: answer {
970
+ dose
971
+ units
1024
972
  }
1025
973
  }
1026
- concept {
974
+ ... on QuestionMultiA {
975
+ conceptId
976
+ difficulty
977
+ dislikes
978
+ explanation
1027
979
  id
1028
- name
1029
- chapter {
980
+ isLikedByMe
981
+ likes
982
+ question
983
+ totalVotes
984
+ typeId
985
+ choices {
1030
986
  id
1031
987
  explanation
1032
- pictures {
988
+ name
989
+ label
990
+ answer
991
+ votes
992
+ picture {
1033
993
  id
1034
994
  createdAt
1035
995
  updatedAt
@@ -1038,72 +998,74 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1038
998
  path
1039
999
  path512
1040
1000
  path256
1041
- topicId
1042
- topic {
1043
- id
1044
- name
1045
- typeId
1046
- }
1047
1001
  }
1048
1002
  }
1049
- videos {
1003
+ comments {
1050
1004
  id
1051
- title
1052
- museId
1053
- startTime
1054
- endTime
1055
- thumbnail
1056
- concepts {
1005
+ createdAt
1006
+ comment
1007
+ likes
1008
+ user {
1057
1009
  id
1058
- name
1010
+ displayName
1011
+ }
1012
+ dislikes
1013
+ isLikedByMe
1014
+ questionId
1015
+ replies {
1016
+ id
1017
+ createdAt
1018
+ comment
1019
+ user {
1020
+ id
1021
+ displayName
1022
+ }
1023
+ likes
1024
+ dislikes
1025
+ isLikedByMe
1026
+ questionId
1059
1027
  }
1060
- live
1061
- description
1062
- duration
1063
1028
  }
1064
- }
1065
- pictures {
1066
- id
1067
- createdAt
1068
- updatedAt
1069
- name
1070
- caption
1071
- path
1072
- path512
1073
- path256
1074
- topicId
1075
- topic {
1029
+ concept {
1076
1030
  id
1077
1031
  name
1078
- typeId
1032
+ chapter {
1033
+ id
1034
+ explanation
1035
+ pictures {
1036
+ id
1037
+ createdAt
1038
+ updatedAt
1039
+ name
1040
+ caption
1041
+ path
1042
+ path512
1043
+ path256
1044
+ topicId
1045
+ topic {
1046
+ id
1047
+ name
1048
+ typeId
1049
+ }
1050
+ }
1051
+ }
1052
+ videos {
1053
+ id
1054
+ title
1055
+ museId
1056
+ startTime
1057
+ endTime
1058
+ thumbnail
1059
+ concepts {
1060
+ id
1061
+ name
1062
+ }
1063
+ live
1064
+ description
1065
+ duration
1066
+ }
1079
1067
  }
1080
- }
1081
- difficulty
1082
- psaSectionId
1083
- likes
1084
- dislikes
1085
- isLikedByMe
1086
- multiAnswer: answer
1087
- }
1088
- ... on QuestionPrescription {
1089
- conceptId
1090
- difficulty
1091
- dislikes
1092
- explanation
1093
- id
1094
- isLikedByMe
1095
- likes
1096
- question
1097
- totalVotes
1098
- typeId
1099
- choices {
1100
- id
1101
- explanation
1102
- name
1103
- label
1104
- answer
1105
- votes
1106
- picture {
1068
+ pictures {
1107
1069
  id
1108
1070
  createdAt
1109
1071
  updatedAt
@@ -1112,118 +1074,160 @@ exports.FLAGGED_QUESTIONS = (0, client_1.gql) `
1112
1074
  path
1113
1075
  path512
1114
1076
  path256
1077
+ topicId
1078
+ topic {
1079
+ id
1080
+ name
1081
+ typeId
1082
+ }
1115
1083
  }
1084
+ difficulty
1085
+ psaSectionId
1086
+ likes
1087
+ dislikes
1088
+ isLikedByMe
1089
+ multiAnswer: answer
1116
1090
  }
1117
- comments {
1091
+ ... on QuestionPrescription {
1092
+ conceptId
1093
+ difficulty
1094
+ dislikes
1095
+ explanation
1118
1096
  id
1119
- createdAt
1120
- comment
1097
+ isLikedByMe
1121
1098
  likes
1122
- user {
1099
+ question
1100
+ totalVotes
1101
+ typeId
1102
+ choices {
1123
1103
  id
1124
- displayName
1104
+ explanation
1105
+ name
1106
+ label
1107
+ answer
1108
+ votes
1109
+ picture {
1110
+ id
1111
+ createdAt
1112
+ updatedAt
1113
+ name
1114
+ caption
1115
+ path
1116
+ path512
1117
+ path256
1118
+ }
1125
1119
  }
1126
- dislikes
1127
- isLikedByMe
1128
- questionId
1129
- replies {
1120
+ comments {
1130
1121
  id
1131
1122
  createdAt
1132
1123
  comment
1124
+ likes
1133
1125
  user {
1134
1126
  id
1135
1127
  displayName
1136
1128
  }
1137
- likes
1138
1129
  dislikes
1139
1130
  isLikedByMe
1140
1131
  questionId
1141
- }
1142
- }
1143
- concept {
1144
- id
1145
- name
1146
- chapter {
1147
- id
1148
- explanation
1149
- pictures {
1132
+ replies {
1150
1133
  id
1151
1134
  createdAt
1152
- updatedAt
1153
- name
1154
- caption
1155
- path
1156
- path512
1157
- path256
1158
- topicId
1159
- topic {
1135
+ comment
1136
+ user {
1160
1137
  id
1161
- name
1162
- typeId
1138
+ displayName
1163
1139
  }
1140
+ likes
1141
+ dislikes
1142
+ isLikedByMe
1143
+ questionId
1164
1144
  }
1165
1145
  }
1166
- videos {
1146
+ concept {
1167
1147
  id
1168
- title
1169
- museId
1170
- startTime
1171
- endTime
1172
- thumbnail
1173
- concepts {
1148
+ name
1149
+ chapter {
1174
1150
  id
1175
- name
1151
+ explanation
1152
+ pictures {
1153
+ id
1154
+ createdAt
1155
+ updatedAt
1156
+ name
1157
+ caption
1158
+ path
1159
+ path512
1160
+ path256
1161
+ topicId
1162
+ topic {
1163
+ id
1164
+ name
1165
+ typeId
1166
+ }
1167
+ }
1168
+ }
1169
+ videos {
1170
+ id
1171
+ title
1172
+ museId
1173
+ startTime
1174
+ endTime
1175
+ thumbnail
1176
+ concepts {
1177
+ id
1178
+ name
1179
+ }
1180
+ live
1181
+ description
1182
+ duration
1176
1183
  }
1177
- live
1178
- description
1179
- duration
1180
1184
  }
1181
- }
1182
- pictures {
1183
- id
1184
- createdAt
1185
- updatedAt
1186
- name
1187
- caption
1188
- path
1189
- path512
1190
- path256
1191
- topicId
1192
- topic {
1185
+ pictures {
1193
1186
  id
1187
+ createdAt
1188
+ updatedAt
1194
1189
  name
1195
- typeId
1196
- }
1197
- }
1198
- difficulty
1199
- psaSectionId
1200
- likes
1201
- dislikes
1202
- isLikedByMe
1203
- prescribeAnswer: answer {
1204
- dose {
1205
- value
1206
- display
1207
- }
1208
- drug {
1209
- value
1210
- display
1211
- }
1212
- route {
1213
- value
1214
- display
1215
- }
1216
- frequency {
1217
- display
1218
- value
1219
- }
1220
- duration {
1221
- display
1222
- value
1190
+ caption
1191
+ path
1192
+ path512
1193
+ path256
1194
+ topicId
1195
+ topic {
1196
+ id
1197
+ name
1198
+ typeId
1199
+ }
1223
1200
  }
1224
- units {
1225
- display
1226
- value
1201
+ difficulty
1202
+ psaSectionId
1203
+ likes
1204
+ dislikes
1205
+ isLikedByMe
1206
+ prescribeAnswer: answer {
1207
+ dose {
1208
+ value
1209
+ display
1210
+ }
1211
+ drug {
1212
+ value
1213
+ display
1214
+ }
1215
+ route {
1216
+ value
1217
+ display
1218
+ }
1219
+ frequency {
1220
+ display
1221
+ value
1222
+ }
1223
+ duration {
1224
+ display
1225
+ value
1226
+ }
1227
+ units {
1228
+ display
1229
+ value
1230
+ }
1227
1231
  }
1228
1232
  }
1229
1233
  }