@timardex/cluemart-shared 1.7.37 → 1.7.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.
@@ -220,6 +220,12 @@ var OWNER_FIELDS_FRAGMENT = import_client.gql`
220
220
  userId
221
221
  }
222
222
  `;
223
+ var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client.gql`
224
+ fragment ProductCouponFields on ProductCouponType {
225
+ couponDocumentId
226
+ couponId
227
+ }
228
+ `;
223
229
  var CATEGORY_FIELDS_FRAGMENT = import_client.gql`
224
230
  fragment CategoryFields on CategoryType {
225
231
  id
@@ -697,131 +703,8 @@ var GET_EVENT_INFO = import_client2.gql`
697
703
  `;
698
704
 
699
705
  // src/graphql/queries/vendor.ts
700
- var import_client4 = require("@apollo/client");
701
-
702
- // src/graphql/queries/coupon.ts
703
706
  var import_client3 = require("@apollo/client");
704
- var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client3.gql`
705
- fragment ProductCouponFields on ProductCouponType {
706
- couponDocumentId
707
- couponId
708
- }
709
- `;
710
- var COUPON_CODE_FIELDS_FRAGMENT = import_client3.gql`
711
- fragment CouponCodeFields on CouponCodeType {
712
- code
713
- qrCode {
714
- ...ResourceImageFields
715
- }
716
- }
717
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
718
- `;
719
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client3.gql`
720
- fragment CouponParticipantUserFields on CouponParticipantUserType {
721
- couponCollectedCount
722
- couponRedeemedAt
723
- createdAt
724
- updatedAt
725
- userId
726
- }
727
- `;
728
- var COUPON_OPTION_FIELDS_FRAGMENT = import_client3.gql`
729
- fragment CouponOptionFields on CouponOptionType {
730
- type
731
- buy
732
- get
733
- unit
734
- visits
735
- }
736
- `;
737
- var COUPON_REWARD_FIELDS_FRAGMENT = import_client3.gql`
738
- fragment CouponRewardFields on CouponRewardType {
739
- vendorId
740
- productId
741
- quantity
742
- unit
743
- }
744
- `;
745
- var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
746
- fragment CouponDataFields on CouponDataType {
747
- _id
748
- active
749
- couponCode {
750
- ...CouponCodeFields
751
- }
752
- couponDescription
753
- couponOption {
754
- ...CouponOptionFields
755
- }
756
- couponRewards {
757
- ...CouponRewardFields
758
- }
759
- createdAt
760
- endDate
761
- participantUsers {
762
- ...CouponParticipantUserFields
763
- }
764
- products {
765
- active
766
- productsList {
767
- ...VendorProductListFields
768
- }
769
- }
770
- resourceId
771
- resourceType
772
- startDate
773
- updatedAt
774
- }
775
- ${COUPON_CODE_FIELDS_FRAGMENT}
776
- ${COUPON_OPTION_FIELDS_FRAGMENT}
777
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
778
- ${COUPON_REWARD_FIELDS_FRAGMENT}
779
- ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
780
- `;
781
- var COUPON = import_client3.gql`
782
- fragment CouponFields on CouponType {
783
- _id
784
- active
785
- couponData {
786
- ...CouponDataFields
787
- }
788
- createdAt
789
- deletedAt
790
- owner {
791
- ...OwnerFields
792
- }
793
- updatedAt
794
- }
795
- ${OWNER_FIELDS_FRAGMENT}
796
- ${COUPON_DATA_FIELDS_FRAGMENT}
797
- `;
798
- var GET_COUPONS = import_client3.gql`
799
- query getCoupons {
800
- coupons {
801
- ...CouponFields
802
- }
803
- }
804
- ${COUPON}
805
- `;
806
- var GET_COUPON = import_client3.gql`
807
- query getCoupon($_id: ID!) {
808
- coupon(_id: $_id) {
809
- ...CouponFields
810
- }
811
- }
812
- ${COUPON}
813
- `;
814
- var GET_RESOURCE_COUPONS = import_client3.gql`
815
- query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
816
- resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
817
- ...CouponFields
818
- }
819
- }
820
- ${COUPON}
821
- `;
822
-
823
- // src/graphql/queries/vendor.ts
824
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
707
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
825
708
  fragment VendorDateTimeFields on VendorDateTimeType {
826
709
  dateStatus
827
710
  endDate
@@ -830,7 +713,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
830
713
  startTime
831
714
  }
832
715
  `;
833
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
716
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
834
717
  fragment VendorProductListFields on VendorProductListType {
835
718
  _id
836
719
  coupon {
@@ -847,7 +730,16 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
847
730
  }
848
731
  ${PRODUCT_COUPON_FIELDS_FRAGMENT}
849
732
  `;
850
- var VENDOR = import_client4.gql`
733
+ var VENDOR_PRODUCTS_FIELDS_FRAGMENT = import_client3.gql`
734
+ fragment VendorProductsFields on VendorProductsType {
735
+ active
736
+ productsList {
737
+ ...VendorProductListFields
738
+ }
739
+ }
740
+ ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
741
+ `;
742
+ var VENDOR = import_client3.gql`
851
743
  fragment VendorFields on VendorType {
852
744
  _id
853
745
  active
@@ -896,10 +788,7 @@ var VENDOR = import_client4.gql`
896
788
  ...OwnerFields
897
789
  }
898
790
  products {
899
- active
900
- productsList {
901
- ...VendorProductListFields
902
- }
791
+ ...VendorProductsFields
903
792
  }
904
793
  promoCodes
905
794
  posterUsage {
@@ -941,20 +830,20 @@ var VENDOR = import_client4.gql`
941
830
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
942
831
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
943
832
  ${POSTER_USAGE_FIELDS_FRAGMENT}
944
- ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
833
+ ${VENDOR_PRODUCTS_FIELDS_FRAGMENT}
945
834
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
946
835
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
947
836
  ${RELATION_DATES_FRAGMENT}
948
837
  ${RELATED_POST_FIELDS_FRAGMENT}
949
838
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
950
839
  `;
951
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
840
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
952
841
  fragment VendorAttributesFields on VendorAttributesType {
953
842
  details
954
843
  isRequired
955
844
  }
956
845
  `;
957
- var VENDOR_INFO = import_client4.gql`
846
+ var VENDOR_INFO = import_client3.gql`
958
847
  fragment VendorInfoFields on VendorInfoType {
959
848
  _id
960
849
  compliance {
@@ -995,7 +884,7 @@ var VENDOR_INFO = import_client4.gql`
995
884
  ${VENDOR_ATTRIBUTES_FRAGMENT}
996
885
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
997
886
  `;
998
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
887
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
999
888
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
1000
889
  dateTime {
1001
890
  ...DateTimeFields
@@ -1004,7 +893,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
1004
893
  }
1005
894
  ${DATETIME_FIELDS_FRAGMENT}
1006
895
  `;
1007
- var UNREGISTERED_VENDOR = import_client4.gql`
896
+ var UNREGISTERED_VENDOR = import_client3.gql`
1008
897
  fragment UnregisteredVendorFields on UnregisteredVendorType {
1009
898
  _id
1010
899
  active
@@ -1024,7 +913,7 @@ var UNREGISTERED_VENDOR = import_client4.gql`
1024
913
  }
1025
914
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
1026
915
  `;
1027
- var GET_VENDORS = import_client4.gql`
916
+ var GET_VENDORS = import_client3.gql`
1028
917
  query getVendors {
1029
918
  vendors {
1030
919
  ...VendorFields
@@ -1032,7 +921,7 @@ var GET_VENDORS = import_client4.gql`
1032
921
  }
1033
922
  ${VENDOR}
1034
923
  `;
1035
- var GET_VENDOR = import_client4.gql`
924
+ var GET_VENDOR = import_client3.gql`
1036
925
  query getVendor($_id: ID!) {
1037
926
  vendor(_id: $_id) {
1038
927
  ...VendorFields
@@ -1040,7 +929,7 @@ var GET_VENDOR = import_client4.gql`
1040
929
  }
1041
930
  ${VENDOR}
1042
931
  `;
1043
- var GET_VENDORS_BY_REGION = import_client4.gql`
932
+ var GET_VENDORS_BY_REGION = import_client3.gql`
1044
933
  query getVendorsByRegion(
1045
934
  $region: String!
1046
935
  $options: ResourcesByRegionOptions
@@ -1051,7 +940,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
1051
940
  }
1052
941
  ${VENDOR}
1053
942
  `;
1054
- var SEARCH_VENDORS = import_client4.gql`
943
+ var SEARCH_VENDORS = import_client3.gql`
1055
944
  query searchVendors($search: String!, $region: String!) {
1056
945
  vendorSearch(search: $search, region: $region) {
1057
946
  ...VendorFields
@@ -1059,7 +948,7 @@ var SEARCH_VENDORS = import_client4.gql`
1059
948
  }
1060
949
  ${VENDOR}
1061
950
  `;
1062
- var GET_VENDOR_INFO = import_client4.gql`
951
+ var GET_VENDOR_INFO = import_client3.gql`
1063
952
  query getVendorInfo($vendorId: ID!) {
1064
953
  vendorInfo(vendorId: $vendorId) {
1065
954
  ...VendorInfoFields
@@ -1067,7 +956,7 @@ var GET_VENDOR_INFO = import_client4.gql`
1067
956
  }
1068
957
  ${VENDOR_INFO}
1069
958
  `;
1070
- var GET_UNREGISTERED_VENDORS = import_client4.gql`
959
+ var GET_UNREGISTERED_VENDORS = import_client3.gql`
1071
960
  query getUnregisteredVendors {
1072
961
  unregisteredVendors {
1073
962
  ...UnregisteredVendorFields
@@ -1075,7 +964,7 @@ var GET_UNREGISTERED_VENDORS = import_client4.gql`
1075
964
  }
1076
965
  ${UNREGISTERED_VENDOR}
1077
966
  `;
1078
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
967
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
1079
968
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
1080
969
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
1081
970
  ...UnregisteredVendorFields
@@ -1083,7 +972,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
1083
972
  }
1084
973
  ${UNREGISTERED_VENDOR}
1085
974
  `;
1086
- var GET_UNREGISTERED_VENDOR = import_client4.gql`
975
+ var GET_UNREGISTERED_VENDOR = import_client3.gql`
1087
976
  query getUnregisteredVendor($_id: ID!) {
1088
977
  unregisteredVendor(_id: $_id) {
1089
978
  ...UnregisteredVendorFields
@@ -1091,7 +980,7 @@ var GET_UNREGISTERED_VENDOR = import_client4.gql`
1091
980
  }
1092
981
  ${UNREGISTERED_VENDOR}
1093
982
  `;
1094
- var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
983
+ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
1095
984
  query myPendingVendorClaim {
1096
985
  myPendingVendorClaim {
1097
986
  _id
@@ -1102,8 +991,8 @@ var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
1102
991
  `;
1103
992
 
1104
993
  // src/graphql/mutations/vendor.ts
1105
- var import_client5 = require("@apollo/client");
1106
- var CREATE_VENDOR_MUTATION = import_client5.gql`
994
+ var import_client4 = require("@apollo/client");
995
+ var CREATE_VENDOR_MUTATION = import_client4.gql`
1107
996
  mutation createVendor($input: VendorInputType!) {
1108
997
  createVendor(input: $input) {
1109
998
  data {
@@ -1114,7 +1003,7 @@ var CREATE_VENDOR_MUTATION = import_client5.gql`
1114
1003
  }
1115
1004
  ${VENDOR}
1116
1005
  `;
1117
- var UPDATE_VENDOR_MUTATION = import_client5.gql`
1006
+ var UPDATE_VENDOR_MUTATION = import_client4.gql`
1118
1007
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
1119
1008
  updateVendor(_id: $_id, input: $input) {
1120
1009
  data {
@@ -1125,7 +1014,7 @@ var UPDATE_VENDOR_MUTATION = import_client5.gql`
1125
1014
  }
1126
1015
  ${VENDOR}
1127
1016
  `;
1128
- var DELETE_VENDOR_MUTATION = import_client5.gql`
1017
+ var DELETE_VENDOR_MUTATION = import_client4.gql`
1129
1018
  mutation deleteVendor($_id: ID!) {
1130
1019
  deleteVendor(_id: $_id) {
1131
1020
  data
@@ -1133,7 +1022,7 @@ var DELETE_VENDOR_MUTATION = import_client5.gql`
1133
1022
  }
1134
1023
  }
1135
1024
  `;
1136
- var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
1025
+ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
1137
1026
  mutation createVendorInfo($input: VendorInfoInputType!) {
1138
1027
  createVendorInfo(input: $input) {
1139
1028
  data {
@@ -1144,7 +1033,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
1144
1033
  }
1145
1034
  ${VENDOR_INFO}
1146
1035
  `;
1147
- var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
1036
+ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
1148
1037
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1149
1038
  updateVendorInfo(_id: $_id, input: $input) {
1150
1039
  data {
@@ -1155,7 +1044,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
1155
1044
  }
1156
1045
  ${VENDOR_INFO}
1157
1046
  `;
1158
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1047
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1159
1048
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
1160
1049
  createUnregisteredVendor(input: $input) {
1161
1050
  data {
@@ -1166,7 +1055,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1166
1055
  }
1167
1056
  ${UNREGISTERED_VENDOR}
1168
1057
  `;
1169
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1058
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1170
1059
  mutation updateUnregisteredVendor(
1171
1060
  $_id: ID!
1172
1061
  $input: UnregisteredVendorInputType!
@@ -1180,7 +1069,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1180
1069
  }
1181
1070
  ${UNREGISTERED_VENDOR}
1182
1071
  `;
1183
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1072
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1184
1073
  mutation deleteUnregisteredVendor($_id: ID!) {
1185
1074
  deleteUnregisteredVendor(_id: $_id) {
1186
1075
  data
@@ -1188,7 +1077,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1188
1077
  }
1189
1078
  }
1190
1079
  `;
1191
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
1080
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
1192
1081
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
1193
1082
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
1194
1083
  data
@@ -1196,7 +1085,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
1196
1085
  }
1197
1086
  }
1198
1087
  `;
1199
- var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
1088
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
1200
1089
  mutation activateVendorClaim($token: String!) {
1201
1090
  activateVendorClaim(token: $token) {
1202
1091
  valid
@@ -1206,8 +1095,8 @@ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
1206
1095
  `;
1207
1096
 
1208
1097
  // src/graphql/queries/partner.ts
1209
- var import_client6 = require("@apollo/client");
1210
- var PARTNER = import_client6.gql`
1098
+ var import_client5 = require("@apollo/client");
1099
+ var PARTNER = import_client5.gql`
1211
1100
  fragment PartnerFields on PartnerType {
1212
1101
  _id
1213
1102
  active
@@ -1268,7 +1157,7 @@ var PARTNER = import_client6.gql`
1268
1157
  ${RELATED_POST_FIELDS_FRAGMENT}
1269
1158
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1270
1159
  `;
1271
- var GET_PARTNERS = import_client6.gql`
1160
+ var GET_PARTNERS = import_client5.gql`
1272
1161
  query getPartners {
1273
1162
  partners {
1274
1163
  ...PartnerFields
@@ -1276,7 +1165,7 @@ var GET_PARTNERS = import_client6.gql`
1276
1165
  }
1277
1166
  ${PARTNER}
1278
1167
  `;
1279
- var GET_PARTNER = import_client6.gql`
1168
+ var GET_PARTNER = import_client5.gql`
1280
1169
  query getPartner($_id: ID!) {
1281
1170
  partner(_id: $_id) {
1282
1171
  ...PartnerFields
@@ -1284,7 +1173,7 @@ var GET_PARTNER = import_client6.gql`
1284
1173
  }
1285
1174
  ${PARTNER}
1286
1175
  `;
1287
- var GET_PARTNERS_BY_REGION = import_client6.gql`
1176
+ var GET_PARTNERS_BY_REGION = import_client5.gql`
1288
1177
  query getPartnersByRegion(
1289
1178
  $region: String!
1290
1179
  $options: ResourcesByRegionOptions
@@ -1295,7 +1184,7 @@ var GET_PARTNERS_BY_REGION = import_client6.gql`
1295
1184
  }
1296
1185
  ${PARTNER}
1297
1186
  `;
1298
- var SEARCH_PARTNERS = import_client6.gql`
1187
+ var SEARCH_PARTNERS = import_client5.gql`
1299
1188
  query searchPartners($search: String!, $region: String!) {
1300
1189
  partnersSearch(search: $search, region: $region) {
1301
1190
  ...PartnerFields
@@ -1305,17 +1194,17 @@ var SEARCH_PARTNERS = import_client6.gql`
1305
1194
  `;
1306
1195
 
1307
1196
  // src/graphql/queries/post.ts
1308
- var import_client9 = require("@apollo/client");
1197
+ var import_client8 = require("@apollo/client");
1309
1198
 
1310
1199
  // src/graphql/queries/game/dailyClue.ts
1311
- var import_client7 = require("@apollo/client");
1312
- var GAME_DATE_FIELDS_FRAGMENT = import_client7.gql`
1200
+ var import_client6 = require("@apollo/client");
1201
+ var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
1313
1202
  fragment GameDateFields on GameDateType {
1314
1203
  startDate
1315
1204
  endDate
1316
1205
  }
1317
1206
  `;
1318
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1207
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1319
1208
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
1320
1209
  gameDate {
1321
1210
  ...GameDateFields
@@ -1324,7 +1213,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1324
1213
  }
1325
1214
  ${GAME_DATE_FIELDS_FRAGMENT}
1326
1215
  `;
1327
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1216
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1328
1217
  fragment DailyClueGameDataFields on DailyClueGameDataType {
1329
1218
  gameFields {
1330
1219
  ...DailyClueBaseGameFields
@@ -1344,15 +1233,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1344
1233
  `;
1345
1234
 
1346
1235
  // src/graphql/queries/game/puzzleGame.ts
1347
- var import_client8 = require("@apollo/client");
1348
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client8.gql`
1236
+ var import_client7 = require("@apollo/client");
1237
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
1349
1238
  fragment PuzzleAnswerFields on PuzzleAnswerType {
1350
1239
  answer
1351
1240
  answerId
1352
1241
  correct
1353
1242
  }
1354
1243
  `;
1355
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1244
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1356
1245
  fragment PuzzleQuestionFields on PuzzleQuestionType {
1357
1246
  answers {
1358
1247
  ...PuzzleAnswerFields
@@ -1362,13 +1251,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1362
1251
  }
1363
1252
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
1364
1253
  `;
1365
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1254
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1366
1255
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
1367
1256
  questionId
1368
1257
  selectedAnswerId
1369
1258
  }
1370
1259
  `;
1371
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1260
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1372
1261
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
1373
1262
  questions {
1374
1263
  ...PuzzleQuestionFields
@@ -1376,7 +1265,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1376
1265
  }
1377
1266
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
1378
1267
  `;
1379
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
1268
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1380
1269
  fragment PuzzleGameDataFields on PuzzleGameDataType {
1381
1270
  gameFields {
1382
1271
  ...PuzzleBaseGameFields
@@ -1392,7 +1281,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
1392
1281
  `;
1393
1282
 
1394
1283
  // src/graphql/queries/post.ts
1395
- var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
1284
+ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1396
1285
  fragment BaseGameFields on BaseGameType {
1397
1286
  gameTypeId
1398
1287
  gameTitle
@@ -1410,7 +1299,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
1410
1299
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
1411
1300
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
1412
1301
  `;
1413
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
1302
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
1414
1303
  fragment PostContentDataFields on PostContentData {
1415
1304
  game {
1416
1305
  ...BaseGameFields
@@ -1436,7 +1325,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
1436
1325
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1437
1326
  ${BASE_GAME_FIELDS_FRAGMENT}
1438
1327
  `;
1439
- var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
1328
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
1440
1329
  fragment PostContentFields on PostContentType {
1441
1330
  contentData {
1442
1331
  ...PostContentDataFields
@@ -1446,7 +1335,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
1446
1335
  }
1447
1336
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
1448
1337
  `;
1449
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
1338
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
1450
1339
  fragment PostResourceFields on PostResourceType {
1451
1340
  resourceId
1452
1341
  resourceSlug
@@ -1454,7 +1343,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
1454
1343
  resourceType
1455
1344
  }
1456
1345
  `;
1457
- var POST_FIELDS_FRAGMENT = import_client9.gql`
1346
+ var POST_FIELDS_FRAGMENT = import_client8.gql`
1458
1347
  fragment PostFields on PostType {
1459
1348
  _id
1460
1349
  active
@@ -1485,7 +1374,7 @@ var POST_FIELDS_FRAGMENT = import_client9.gql`
1485
1374
  ${POST_RESOURCE_FIELDS_FRAGMENT}
1486
1375
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1487
1376
  `;
1488
- var GET_POSTS = import_client9.gql`
1377
+ var GET_POSTS = import_client8.gql`
1489
1378
  query getPosts {
1490
1379
  posts {
1491
1380
  ...PostFields
@@ -1493,7 +1382,7 @@ var GET_POSTS = import_client9.gql`
1493
1382
  }
1494
1383
  ${POST_FIELDS_FRAGMENT}
1495
1384
  `;
1496
- var GET_POST = import_client9.gql`
1385
+ var GET_POST = import_client8.gql`
1497
1386
  query getPost($_id: ID!) {
1498
1387
  post(_id: $_id) {
1499
1388
  ...PostFields
@@ -1501,7 +1390,7 @@ var GET_POST = import_client9.gql`
1501
1390
  }
1502
1391
  ${POST_FIELDS_FRAGMENT}
1503
1392
  `;
1504
- var GET_POSTS_BY_TYPE = import_client9.gql`
1393
+ var GET_POSTS_BY_TYPE = import_client8.gql`
1505
1394
  query getPostsByType($postType: PostTypeEnum!) {
1506
1395
  postsByType(postType: $postType) {
1507
1396
  ...PostFields
@@ -1511,29 +1400,29 @@ var GET_POSTS_BY_TYPE = import_client9.gql`
1511
1400
  `;
1512
1401
 
1513
1402
  // src/graphql/queries/shareSlug.ts
1514
- var import_client10 = require("@apollo/client");
1515
- var GET_EVENT_BY_SLUG = import_client10.gql`
1403
+ var import_client9 = require("@apollo/client");
1404
+ var GET_EVENT_BY_SLUG = import_client9.gql`
1516
1405
  query getEventBySlug($slug: String!) {
1517
1406
  eventBySlug(slug: $slug) {
1518
1407
  _id
1519
1408
  }
1520
1409
  }
1521
1410
  `;
1522
- var GET_VENDOR_BY_SLUG = import_client10.gql`
1411
+ var GET_VENDOR_BY_SLUG = import_client9.gql`
1523
1412
  query getVendorBySlug($slug: String!) {
1524
1413
  vendorBySlug(slug: $slug) {
1525
1414
  _id
1526
1415
  }
1527
1416
  }
1528
1417
  `;
1529
- var GET_PARTNER_BY_SLUG = import_client10.gql`
1418
+ var GET_PARTNER_BY_SLUG = import_client9.gql`
1530
1419
  query getPartnerBySlug($slug: String!) {
1531
1420
  partnerBySlug(slug: $slug) {
1532
1421
  _id
1533
1422
  }
1534
1423
  }
1535
1424
  `;
1536
- var GET_POST_BY_SLUG = import_client10.gql`
1425
+ var GET_POST_BY_SLUG = import_client9.gql`
1537
1426
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
1538
1427
  postBySlug(slug: $slug, postType: $postType) {
1539
1428
  _id
@@ -1542,8 +1431,8 @@ var GET_POST_BY_SLUG = import_client10.gql`
1542
1431
  `;
1543
1432
 
1544
1433
  // src/graphql/queries/relation.ts
1545
- var import_client11 = require("@apollo/client");
1546
- var RELATION_FIELDS_FRAGMENT = import_client11.gql`
1434
+ var import_client10 = require("@apollo/client");
1435
+ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1547
1436
  fragment RelationFields on RelationType {
1548
1437
  _id
1549
1438
  active
@@ -1560,7 +1449,7 @@ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
1560
1449
  }
1561
1450
  ${RELATION_DATES_FRAGMENT}
1562
1451
  `;
1563
- var GET_RELATION = import_client11.gql`
1452
+ var GET_RELATION = import_client10.gql`
1564
1453
  query getRelation($_id: ID!) {
1565
1454
  relation(_id: $_id) {
1566
1455
  ...RelationFields
@@ -1568,7 +1457,7 @@ var GET_RELATION = import_client11.gql`
1568
1457
  }
1569
1458
  ${RELATION_FIELDS_FRAGMENT}
1570
1459
  `;
1571
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
1460
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1572
1461
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1573
1462
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1574
1463
  ...RelationFields
@@ -1576,7 +1465,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
1576
1465
  }
1577
1466
  ${RELATION_FIELDS_FRAGMENT}
1578
1467
  `;
1579
- var GET_EVENT_RELATIONS = import_client11.gql`
1468
+ var GET_EVENT_RELATIONS = import_client10.gql`
1580
1469
  query getEventRelations($eventId: ID!) {
1581
1470
  eventRelations(eventId: $eventId) {
1582
1471
  ...RelationFields
@@ -1584,7 +1473,7 @@ var GET_EVENT_RELATIONS = import_client11.gql`
1584
1473
  }
1585
1474
  ${RELATION_FIELDS_FRAGMENT}
1586
1475
  `;
1587
- var GET_VENDOR_RELATIONS = import_client11.gql`
1476
+ var GET_VENDOR_RELATIONS = import_client10.gql`
1588
1477
  query getVendorRelations($vendorId: ID!) {
1589
1478
  vendorRelations(vendorId: $vendorId) {
1590
1479
  ...RelationFields
@@ -1592,7 +1481,7 @@ var GET_VENDOR_RELATIONS = import_client11.gql`
1592
1481
  }
1593
1482
  ${RELATION_FIELDS_FRAGMENT}
1594
1483
  `;
1595
- var GET_RESOURCE_CONNECTIONS = import_client11.gql`
1484
+ var GET_RESOURCE_CONNECTIONS = import_client10.gql`
1596
1485
  query getResourceConnections(
1597
1486
  $resourceId: ID!
1598
1487
  $resourceType: ResourceTypeEnum!
@@ -1617,11 +1506,11 @@ function toGraphqlQueryString(query) {
1617
1506
  }
1618
1507
 
1619
1508
  // src/graphql/hooks/admin/hooksMutation.ts
1620
- var import_client13 = require("@apollo/client");
1509
+ var import_client12 = require("@apollo/client");
1621
1510
 
1622
1511
  // src/graphql/mutations/admin.ts
1623
- var import_client12 = require("@apollo/client");
1624
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
1512
+ var import_client11 = require("@apollo/client");
1513
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1625
1514
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
1626
1515
  adminUpdateResourceType(input: $input) {
1627
1516
  data {
@@ -1633,7 +1522,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
1633
1522
  }
1634
1523
  }
1635
1524
  `;
1636
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
1525
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1637
1526
  mutation adminResendUserVerificationEmail($userId: ID!) {
1638
1527
  adminResendUserVerificationEmail(userId: $userId) {
1639
1528
  data
@@ -1641,7 +1530,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
1641
1530
  }
1642
1531
  }
1643
1532
  `;
1644
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
1533
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1645
1534
  mutation adminPermanentlyDeleteResource(
1646
1535
  $resourceId: ID!
1647
1536
  $resourceType: ResourceTypeEnum!
@@ -1658,7 +1547,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
1658
1547
 
1659
1548
  // src/graphql/hooks/admin/hooksMutation.ts
1660
1549
  var useAdminUpdateResourceType = () => {
1661
- const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1550
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1662
1551
  awaitRefetchQueries: true,
1663
1552
  refetchQueries: (mutationResult) => {
1664
1553
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -1681,7 +1570,7 @@ var useAdminUpdateResourceType = () => {
1681
1570
  };
1682
1571
  };
1683
1572
  var useAdminResendUserVerificationEmail = () => {
1684
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1573
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1685
1574
  return {
1686
1575
  adminResendUserVerificationEmail,
1687
1576
  error,
@@ -1689,7 +1578,7 @@ var useAdminResendUserVerificationEmail = () => {
1689
1578
  };
1690
1579
  };
1691
1580
  var useAdminPermanentlyDeleteResource = () => {
1692
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1581
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1693
1582
  return {
1694
1583
  adminPermanentlyDeleteResource,
1695
1584
  error,
@@ -1698,11 +1587,11 @@ var useAdminPermanentlyDeleteResource = () => {
1698
1587
  };
1699
1588
 
1700
1589
  // src/graphql/hooks/auth.ts
1701
- var import_client15 = require("@apollo/client");
1590
+ var import_client14 = require("@apollo/client");
1702
1591
 
1703
1592
  // src/graphql/mutations/auth.ts
1704
- var import_client14 = require("@apollo/client");
1705
- var REGISTER_MUTATION = import_client14.gql`
1593
+ var import_client13 = require("@apollo/client");
1594
+ var REGISTER_MUTATION = import_client13.gql`
1706
1595
  mutation register($input: RegisterInputType!) {
1707
1596
  register(input: $input) {
1708
1597
  data {
@@ -1717,7 +1606,7 @@ var REGISTER_MUTATION = import_client14.gql`
1717
1606
  }
1718
1607
  ${USER_FIELDS_FRAGMENT}
1719
1608
  `;
1720
- var LOGIN_MUTATION = import_client14.gql`
1609
+ var LOGIN_MUTATION = import_client13.gql`
1721
1610
  mutation login($input: LoginInputType!) {
1722
1611
  login(input: $input) {
1723
1612
  data {
@@ -1732,7 +1621,7 @@ var LOGIN_MUTATION = import_client14.gql`
1732
1621
  }
1733
1622
  ${USER_FIELDS_FRAGMENT}
1734
1623
  `;
1735
- var LOGOUT_MUTATION = import_client14.gql`
1624
+ var LOGOUT_MUTATION = import_client13.gql`
1736
1625
  mutation logout {
1737
1626
  logout {
1738
1627
  data
@@ -1740,7 +1629,7 @@ var LOGOUT_MUTATION = import_client14.gql`
1740
1629
  }
1741
1630
  }
1742
1631
  `;
1743
- var REFRESH_TOKEN_MUTATION = import_client14.gql`
1632
+ var REFRESH_TOKEN_MUTATION = import_client13.gql`
1744
1633
  mutation refreshToken($input: RefreshTokenInputType!) {
1745
1634
  refreshToken(input: $input) {
1746
1635
  data {
@@ -1751,7 +1640,7 @@ var REFRESH_TOKEN_MUTATION = import_client14.gql`
1751
1640
  }
1752
1641
  }
1753
1642
  `;
1754
- var RESET_PASSWORD_MUTATION = import_client14.gql`
1643
+ var RESET_PASSWORD_MUTATION = import_client13.gql`
1755
1644
  mutation resetPassword($input: ResetPasswordInputType!) {
1756
1645
  resetPassword(input: $input) {
1757
1646
  data
@@ -1759,7 +1648,7 @@ var RESET_PASSWORD_MUTATION = import_client14.gql`
1759
1648
  }
1760
1649
  }
1761
1650
  `;
1762
- var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
1651
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1763
1652
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
1764
1653
  requestPasswordReset(input: $input) {
1765
1654
  data
@@ -1767,7 +1656,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
1767
1656
  }
1768
1657
  }
1769
1658
  `;
1770
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
1659
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1771
1660
  mutation validateVerificationToken(
1772
1661
  $input: ValidateVerificationTokenInputType!
1773
1662
  ) {
@@ -1780,43 +1669,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
1780
1669
 
1781
1670
  // src/graphql/hooks/auth.ts
1782
1671
  var useRegister = () => {
1783
- const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
1672
+ const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
1784
1673
  return { error, loading, register };
1785
1674
  };
1786
1675
  var useLogin = () => {
1787
- const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
1676
+ const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
1788
1677
  return { error, loading, login };
1789
1678
  };
1790
1679
  var useLogout = () => {
1791
- const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
1680
+ const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
1792
1681
  return { error, loading, logout };
1793
1682
  };
1794
1683
  var useRefreshToken = () => {
1795
- const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
1684
+ const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
1796
1685
  return { error, loading, refreshToken };
1797
1686
  };
1798
1687
  var useRequestPasswordReset = () => {
1799
- const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1688
+ const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1800
1689
  return { error, loading, requestPasswordReset };
1801
1690
  };
1802
1691
  var useValidateVerificationToken = () => {
1803
- const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1692
+ const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1804
1693
  return { error, loading, validateVerificationToken };
1805
1694
  };
1806
1695
  var useResetPassword = () => {
1807
- const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
1696
+ const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
1808
1697
  return { error, loading, resetPassword };
1809
1698
  };
1810
1699
 
1811
1700
  // src/graphql/hooks/chat/hooksMutation.ts
1812
- var import_client18 = require("@apollo/client");
1701
+ var import_client17 = require("@apollo/client");
1813
1702
 
1814
1703
  // src/graphql/mutations/chat.ts
1815
- var import_client17 = require("@apollo/client");
1704
+ var import_client16 = require("@apollo/client");
1816
1705
 
1817
1706
  // src/graphql/queries/chat.ts
1818
- var import_client16 = require("@apollo/client");
1819
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
1707
+ var import_client15 = require("@apollo/client");
1708
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1820
1709
  fragment ChatMessageFields on ChatMessageType {
1821
1710
  _id
1822
1711
  content
@@ -1839,7 +1728,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
1839
1728
  updatedAt
1840
1729
  }
1841
1730
  `;
1842
- var CHAT_PARTICIPANT = import_client16.gql`
1731
+ var CHAT_PARTICIPANT = import_client15.gql`
1843
1732
  fragment ChatParticipantFields on ChatParticipantType {
1844
1733
  active
1845
1734
  userAvatar
@@ -1848,7 +1737,7 @@ var CHAT_PARTICIPANT = import_client16.gql`
1848
1737
  userName
1849
1738
  }
1850
1739
  `;
1851
- var CHAT_FIELDS_FRAGMENT = import_client16.gql`
1740
+ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1852
1741
  fragment ChatFields on ChatType {
1853
1742
  _id
1854
1743
  active
@@ -1869,7 +1758,7 @@ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
1869
1758
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1870
1759
  ${CHAT_PARTICIPANT}
1871
1760
  `;
1872
- var CHAT = import_client16.gql`
1761
+ var CHAT = import_client15.gql`
1873
1762
  query chat($_id: ID!) {
1874
1763
  chat(_id: $_id) {
1875
1764
  ...ChatFields
@@ -1877,7 +1766,7 @@ var CHAT = import_client16.gql`
1877
1766
  }
1878
1767
  ${CHAT_FIELDS_FRAGMENT}
1879
1768
  `;
1880
- var PRIVATE_CHATS = import_client16.gql`
1769
+ var PRIVATE_CHATS = import_client15.gql`
1881
1770
  query privateChats {
1882
1771
  privateChats {
1883
1772
  ...ChatFields
@@ -1885,7 +1774,7 @@ var PRIVATE_CHATS = import_client16.gql`
1885
1774
  }
1886
1775
  ${CHAT_FIELDS_FRAGMENT}
1887
1776
  `;
1888
- var RELATION_CHATS = import_client16.gql`
1777
+ var RELATION_CHATS = import_client15.gql`
1889
1778
  query relationChats {
1890
1779
  relationChats {
1891
1780
  ...ChatFields
@@ -1893,7 +1782,7 @@ var RELATION_CHATS = import_client16.gql`
1893
1782
  }
1894
1783
  ${CHAT_FIELDS_FRAGMENT}
1895
1784
  `;
1896
- var GET_CHATS_BY_REGION = import_client16.gql`
1785
+ var GET_CHATS_BY_REGION = import_client15.gql`
1897
1786
  query getChatsByRegion($region: String!) {
1898
1787
  chatsByRegion(region: $region) {
1899
1788
  ...ChatFields
@@ -1901,7 +1790,7 @@ var GET_CHATS_BY_REGION = import_client16.gql`
1901
1790
  }
1902
1791
  ${CHAT_FIELDS_FRAGMENT}
1903
1792
  `;
1904
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
1793
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1905
1794
  fragment ChatReportFields on ReportChatUserType {
1906
1795
  _id
1907
1796
  chatId
@@ -1916,7 +1805,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
1916
1805
  updatedAt
1917
1806
  }
1918
1807
  `;
1919
- var GET_REPORTED_CHAT_USERS = import_client16.gql`
1808
+ var GET_REPORTED_CHAT_USERS = import_client15.gql`
1920
1809
  query getReportedChatUsers {
1921
1810
  reportedChatUsers {
1922
1811
  ...ChatReportFields
@@ -1926,7 +1815,7 @@ var GET_REPORTED_CHAT_USERS = import_client16.gql`
1926
1815
  `;
1927
1816
 
1928
1817
  // src/graphql/mutations/chat.ts
1929
- var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
1818
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1930
1819
  mutation createPrivateChat($userId: ID!) {
1931
1820
  createPrivateChat(userId: $userId) {
1932
1821
  data {
@@ -1937,7 +1826,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
1937
1826
  }
1938
1827
  ${CHAT_FIELDS_FRAGMENT}
1939
1828
  `;
1940
- var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
1829
+ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1941
1830
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1942
1831
  sendChatMessage(_id: $_id, input: $input) {
1943
1832
  data {
@@ -1948,7 +1837,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
1948
1837
  }
1949
1838
  ${CHAT_FIELDS_FRAGMENT}
1950
1839
  `;
1951
- var DELETE_CHAT_MUTATION = import_client17.gql`
1840
+ var DELETE_CHAT_MUTATION = import_client16.gql`
1952
1841
  mutation deleteChat($_id: ID!) {
1953
1842
  deleteChat(_id: $_id) {
1954
1843
  data
@@ -1956,7 +1845,7 @@ var DELETE_CHAT_MUTATION = import_client17.gql`
1956
1845
  }
1957
1846
  }
1958
1847
  `;
1959
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
1848
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1960
1849
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
1961
1850
  addParticipantToChat(chatId: $chatId, userId: $userId) {
1962
1851
  data {
@@ -1967,7 +1856,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
1967
1856
  }
1968
1857
  ${CHAT_FIELDS_FRAGMENT}
1969
1858
  `;
1970
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
1859
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1971
1860
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
1972
1861
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
1973
1862
  data {
@@ -1978,7 +1867,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
1978
1867
  }
1979
1868
  }
1980
1869
  `;
1981
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
1870
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1982
1871
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
1983
1872
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
1984
1873
  data {
@@ -1989,7 +1878,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
1989
1878
  }
1990
1879
  ${CHAT_FIELDS_FRAGMENT}
1991
1880
  `;
1992
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
1881
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1993
1882
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
1994
1883
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
1995
1884
  data {
@@ -2000,7 +1889,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
2000
1889
  }
2001
1890
  ${CHAT_FIELDS_FRAGMENT}
2002
1891
  `;
2003
- var REPORT_CHAT_USER_MUTATION = import_client17.gql`
1892
+ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
2004
1893
  mutation reportChatUser($input: ReportChatUserInputType!) {
2005
1894
  reportChatUser(input: $input) {
2006
1895
  data {
@@ -2014,14 +1903,14 @@ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
2014
1903
 
2015
1904
  // src/graphql/hooks/chat/hooksMutation.ts
2016
1905
  var useCreatePrivateChat = () => {
2017
- const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1906
+ const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
2018
1907
  awaitRefetchQueries: true,
2019
1908
  refetchQueries: [{ query: PRIVATE_CHATS }]
2020
1909
  });
2021
1910
  return { createPrivateChat, error, loading };
2022
1911
  };
2023
1912
  var useSendChatMessage = () => {
2024
- const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1913
+ const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
2025
1914
  awaitRefetchQueries: true,
2026
1915
  refetchQueries: (mutationResult) => {
2027
1916
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -2036,14 +1925,14 @@ var useSendChatMessage = () => {
2036
1925
  return { error, loading, sendChatMessage };
2037
1926
  };
2038
1927
  var useDeleteChat = () => {
2039
- const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
1928
+ const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
2040
1929
  awaitRefetchQueries: true,
2041
1930
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
2042
1931
  });
2043
1932
  return { deleteChat, error, loading };
2044
1933
  };
2045
1934
  var useAddParticipantToChat = () => {
2046
- const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1935
+ const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2047
1936
  awaitRefetchQueries: true,
2048
1937
  refetchQueries: (mutationResult) => {
2049
1938
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -2064,7 +1953,7 @@ var useAddParticipantToChat = () => {
2064
1953
  return { addParticipantToChat, error, loading };
2065
1954
  };
2066
1955
  var useRemoveParticipantFromChat = () => {
2067
- const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1956
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2068
1957
  awaitRefetchQueries: true,
2069
1958
  refetchQueries: (mutationResult) => {
2070
1959
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -2084,7 +1973,7 @@ var useRemoveParticipantFromChat = () => {
2084
1973
  return { error, loading, removeParticipantFromChat };
2085
1974
  };
2086
1975
  var useToggleChatMessageLike = () => {
2087
- const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1976
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2088
1977
  awaitRefetchQueries: true,
2089
1978
  refetchQueries: (mutationResult) => {
2090
1979
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -2099,7 +1988,7 @@ var useToggleChatMessageLike = () => {
2099
1988
  return { error, loading, toggleChatMessageLike };
2100
1989
  };
2101
1990
  var useMarkChatMessagesSeen = () => {
2102
- const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
1991
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2103
1992
  awaitRefetchQueries: true,
2104
1993
  refetchQueries: (mutationResult) => {
2105
1994
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -2114,16 +2003,16 @@ var useMarkChatMessagesSeen = () => {
2114
2003
  return { error, loading, markChatMessagesSeen };
2115
2004
  };
2116
2005
  var useReportChatUser = () => {
2117
- const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
2006
+ const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
2118
2007
  return { error, loading, reportChatUser };
2119
2008
  };
2120
2009
 
2121
2010
  // src/graphql/hooks/chat/hooksQuery.ts
2122
- var import_client20 = require("@apollo/client");
2011
+ var import_client19 = require("@apollo/client");
2123
2012
 
2124
2013
  // src/graphql/subscriptions/chat.ts
2125
- var import_client19 = require("@apollo/client");
2126
- var GET_CHAT_MESSAGE = import_client19.gql`
2014
+ var import_client18 = require("@apollo/client");
2015
+ var GET_CHAT_MESSAGE = import_client18.gql`
2127
2016
  subscription {
2128
2017
  getChatMessage {
2129
2018
  ...ChatFields
@@ -2134,7 +2023,7 @@ var GET_CHAT_MESSAGE = import_client19.gql`
2134
2023
 
2135
2024
  // src/graphql/hooks/chat/hooksQuery.ts
2136
2025
  var useGetChat = (_id) => {
2137
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
2026
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
2138
2027
  fetchPolicy: "network-only",
2139
2028
  skip: !_id || _id === "",
2140
2029
  variables: { _id }
@@ -2143,28 +2032,28 @@ var useGetChat = (_id) => {
2143
2032
  return { chat, error, loading, refetch };
2144
2033
  };
2145
2034
  var useGetPrivateChats = () => {
2146
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
2035
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
2147
2036
  fetchPolicy: "network-only"
2148
2037
  });
2149
2038
  const privateChats = data?.privateChats || [];
2150
2039
  return { error, loading, privateChats, refetch };
2151
2040
  };
2152
2041
  var useGetRelationChats = () => {
2153
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
2042
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
2154
2043
  fetchPolicy: "network-only"
2155
2044
  });
2156
2045
  const relationChats = data?.relationChats || [];
2157
2046
  return { error, loading, refetch, relationChats };
2158
2047
  };
2159
2048
  var useGetChatSubscription = () => {
2160
- const { data, loading, error } = (0, import_client20.useSubscription)(
2049
+ const { data, loading, error } = (0, import_client19.useSubscription)(
2161
2050
  GET_CHAT_MESSAGE
2162
2051
  );
2163
2052
  const chat = data?.getChat;
2164
2053
  return { chat, error, loading };
2165
2054
  };
2166
2055
  var useGetChatsByRegion = (region) => {
2167
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
2056
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
2168
2057
  fetchPolicy: "network-only",
2169
2058
  variables: { region }
2170
2059
  });
@@ -2172,7 +2061,7 @@ var useGetChatsByRegion = (region) => {
2172
2061
  return { chatsByRegion, error, loading, refetch };
2173
2062
  };
2174
2063
  var useGetReportedChatUsers = () => {
2175
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
2064
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
2176
2065
  fetchPolicy: "network-only"
2177
2066
  });
2178
2067
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -2180,11 +2069,11 @@ var useGetReportedChatUsers = () => {
2180
2069
  };
2181
2070
 
2182
2071
  // src/graphql/hooks/contactUs.ts
2183
- var import_client22 = require("@apollo/client");
2072
+ var import_client21 = require("@apollo/client");
2184
2073
 
2185
2074
  // src/graphql/mutations/contactUs.ts
2186
- var import_client21 = require("@apollo/client");
2187
- var CONTACT_US_MUTATION = import_client21.gql`
2075
+ var import_client20 = require("@apollo/client");
2076
+ var CONTACT_US_MUTATION = import_client20.gql`
2188
2077
  mutation contactUs($input: ContactUsInputType!) {
2189
2078
  contactUs(input: $input) {
2190
2079
  data
@@ -2195,16 +2084,16 @@ var CONTACT_US_MUTATION = import_client21.gql`
2195
2084
 
2196
2085
  // src/graphql/hooks/contactUs.ts
2197
2086
  var useContactUs = () => {
2198
- const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
2087
+ const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
2199
2088
  return { contactUs, error, loading };
2200
2089
  };
2201
2090
 
2202
2091
  // src/graphql/hooks/event/hooksMutation.ts
2203
- var import_client25 = require("@apollo/client");
2092
+ var import_client24 = require("@apollo/client");
2204
2093
 
2205
2094
  // src/graphql/mutations/event.ts
2206
- var import_client23 = require("@apollo/client");
2207
- var CREATE_EVENT_MUTATION = import_client23.gql`
2095
+ var import_client22 = require("@apollo/client");
2096
+ var CREATE_EVENT_MUTATION = import_client22.gql`
2208
2097
  mutation createEvent($input: EventInputType!) {
2209
2098
  createEvent(input: $input) {
2210
2099
  data {
@@ -2215,7 +2104,7 @@ var CREATE_EVENT_MUTATION = import_client23.gql`
2215
2104
  }
2216
2105
  ${EVENT}
2217
2106
  `;
2218
- var UPDATE_EVENT_MUTATION = import_client23.gql`
2107
+ var UPDATE_EVENT_MUTATION = import_client22.gql`
2219
2108
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
2220
2109
  updateEvent(_id: $_id, input: $input) {
2221
2110
  data {
@@ -2226,7 +2115,7 @@ var UPDATE_EVENT_MUTATION = import_client23.gql`
2226
2115
  }
2227
2116
  ${EVENT}
2228
2117
  `;
2229
- var DELETE_EVENT_MUTATION = import_client23.gql`
2118
+ var DELETE_EVENT_MUTATION = import_client22.gql`
2230
2119
  mutation deleteEvent($_id: ID!) {
2231
2120
  deleteEvent(_id: $_id) {
2232
2121
  data
@@ -2234,7 +2123,7 @@ var DELETE_EVENT_MUTATION = import_client23.gql`
2234
2123
  }
2235
2124
  }
2236
2125
  `;
2237
- var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
2126
+ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2238
2127
  mutation createEventInfo($input: EventInfoInputType!) {
2239
2128
  createEventInfo(input: $input) {
2240
2129
  data {
@@ -2245,7 +2134,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
2245
2134
  }
2246
2135
  ${EVENT_INFO}
2247
2136
  `;
2248
- var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
2137
+ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2249
2138
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
2250
2139
  updateEventInfo(_id: $_id, input: $input) {
2251
2140
  data {
@@ -2258,8 +2147,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
2258
2147
  `;
2259
2148
 
2260
2149
  // src/graphql/queries/user.ts
2261
- var import_client24 = require("@apollo/client");
2262
- var GET_USERS = import_client24.gql`
2150
+ var import_client23 = require("@apollo/client");
2151
+ var GET_USERS = import_client23.gql`
2263
2152
  query getUsers {
2264
2153
  users {
2265
2154
  ...UserFields
@@ -2267,7 +2156,7 @@ var GET_USERS = import_client24.gql`
2267
2156
  }
2268
2157
  ${USER_FIELDS_FRAGMENT}
2269
2158
  `;
2270
- var GET_USER = import_client24.gql`
2159
+ var GET_USER = import_client23.gql`
2271
2160
  query getUser($_id: ID!) {
2272
2161
  user(_id: $_id) {
2273
2162
  ...UserFields
@@ -2275,7 +2164,7 @@ var GET_USER = import_client24.gql`
2275
2164
  }
2276
2165
  ${USER_FIELDS_FRAGMENT}
2277
2166
  `;
2278
- var GET_USER_EVENTS = import_client24.gql`
2167
+ var GET_USER_EVENTS = import_client23.gql`
2279
2168
  query getUserEvents {
2280
2169
  userEvents {
2281
2170
  ...EventFields
@@ -2283,7 +2172,7 @@ var GET_USER_EVENTS = import_client24.gql`
2283
2172
  }
2284
2173
  ${EVENT}
2285
2174
  `;
2286
- var GET_USER_VENDORS = import_client24.gql`
2175
+ var GET_USER_VENDORS = import_client23.gql`
2287
2176
  query getUserVendors {
2288
2177
  userVendors {
2289
2178
  ...VendorFields
@@ -2291,7 +2180,7 @@ var GET_USER_VENDORS = import_client24.gql`
2291
2180
  }
2292
2181
  ${VENDOR}
2293
2182
  `;
2294
- var GET_USER_PARTNERS = import_client24.gql`
2183
+ var GET_USER_PARTNERS = import_client23.gql`
2295
2184
  query getUserPartners {
2296
2185
  userPartners {
2297
2186
  ...PartnerFields
@@ -2299,7 +2188,7 @@ var GET_USER_PARTNERS = import_client24.gql`
2299
2188
  }
2300
2189
  ${PARTNER}
2301
2190
  `;
2302
- var GET_USER_ACTIVITIES = import_client24.gql`
2191
+ var GET_USER_ACTIVITIES = import_client23.gql`
2303
2192
  query getUserActivities {
2304
2193
  userActivities {
2305
2194
  favourites {
@@ -2334,7 +2223,7 @@ var GET_USER_ACTIVITIES = import_client24.gql`
2334
2223
  ${VENDOR}
2335
2224
  ${PARTNER}
2336
2225
  `;
2337
- var GET_USER_RESOURCES = import_client24.gql`
2226
+ var GET_USER_RESOURCES = import_client23.gql`
2338
2227
  query getUserResources($userId: ID!) {
2339
2228
  userResources(userId: $userId) {
2340
2229
  resources {
@@ -2349,14 +2238,14 @@ var GET_USER_RESOURCES = import_client24.gql`
2349
2238
 
2350
2239
  // src/graphql/hooks/event/hooksMutation.ts
2351
2240
  var useCreateEvent = () => {
2352
- const [createEvent, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_MUTATION, {
2241
+ const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
2353
2242
  awaitRefetchQueries: true,
2354
2243
  refetchQueries: [{ query: GET_USER_EVENTS }]
2355
2244
  });
2356
2245
  return { createEvent, error, loading };
2357
2246
  };
2358
2247
  var useUpdateEvent = () => {
2359
- const [updateEvent, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_MUTATION, {
2248
+ const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
2360
2249
  awaitRefetchQueries: true,
2361
2250
  refetchQueries: (mutationResult) => {
2362
2251
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -2379,14 +2268,14 @@ var useUpdateEvent = () => {
2379
2268
  return { error, loading, updateEvent };
2380
2269
  };
2381
2270
  var useDeleteEvent = () => {
2382
- const [deleteEvent, { loading, error }] = (0, import_client25.useMutation)(DELETE_EVENT_MUTATION, {
2271
+ const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
2383
2272
  awaitRefetchQueries: true,
2384
2273
  refetchQueries: [{ query: GET_USER_EVENTS }]
2385
2274
  });
2386
2275
  return { deleteEvent, error, loading };
2387
2276
  };
2388
2277
  var useCreateEventInfo = () => {
2389
- const [createEventInfo, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2278
+ const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2390
2279
  awaitRefetchQueries: true,
2391
2280
  refetchQueries: (mutationResult) => {
2392
2281
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -2410,7 +2299,7 @@ var useCreateEventInfo = () => {
2410
2299
  return { createEventInfo, error, loading };
2411
2300
  };
2412
2301
  var useUpdateEventInfo = () => {
2413
- const [updateEventInfo, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2302
+ const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2414
2303
  awaitRefetchQueries: true,
2415
2304
  refetchQueries: (mutationResult) => {
2416
2305
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -2434,9 +2323,9 @@ var useUpdateEventInfo = () => {
2434
2323
  };
2435
2324
 
2436
2325
  // src/graphql/hooks/event/hooksQuery.ts
2437
- var import_client26 = require("@apollo/client");
2326
+ var import_client25 = require("@apollo/client");
2438
2327
  var useGetEvents = (dateStatus) => {
2439
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS, {
2328
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
2440
2329
  fetchPolicy: "network-only",
2441
2330
  variables: { dateStatus }
2442
2331
  });
@@ -2444,7 +2333,7 @@ var useGetEvents = (dateStatus) => {
2444
2333
  return { error, events, loading, refetch };
2445
2334
  };
2446
2335
  var useGetEvent = (_id) => {
2447
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT, {
2336
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
2448
2337
  fetchPolicy: "network-only",
2449
2338
  skip: !_id,
2450
2339
  variables: { _id }
@@ -2453,7 +2342,7 @@ var useGetEvent = (_id) => {
2453
2342
  return { error, event, loading, refetch };
2454
2343
  };
2455
2344
  var useGetEventByPlaceId = (googlePlaceId) => {
2456
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_BY_PLACE_ID, {
2345
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
2457
2346
  fetchPolicy: "network-only",
2458
2347
  skip: !googlePlaceId,
2459
2348
  variables: { googlePlaceId }
@@ -2467,7 +2356,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2467
2356
  options,
2468
2357
  region
2469
2358
  };
2470
- const { loading, error, data, refetch, fetchMore } = (0, import_client26.useQuery)(GET_EVENTS_BY_REGION, {
2359
+ const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
2471
2360
  fetchPolicy: "network-only",
2472
2361
  skip: !region || region === "",
2473
2362
  variables
@@ -2485,7 +2374,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2485
2374
  const normalizedSearch = searchQuery?.trim() ?? "";
2486
2375
  const normalizedTags = (tags ?? []).filter(Boolean);
2487
2376
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2488
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_EVENTS, {
2377
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
2489
2378
  fetchPolicy: "network-only",
2490
2379
  skip: !shouldRunQuery,
2491
2380
  variables: {
@@ -2503,7 +2392,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2503
2392
  };
2504
2393
  };
2505
2394
  var useGetEventsNearMe = (location, dateStatus) => {
2506
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS_NEAR_ME, {
2395
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
2507
2396
  fetchPolicy: "network-only",
2508
2397
  skip: !location.latitude || !location.longitude,
2509
2398
  variables: {
@@ -2518,7 +2407,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
2518
2407
  return { error, eventsNearMe, loading, refetch };
2519
2408
  };
2520
2409
  var useGetEventInfo = (eventId) => {
2521
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_INFO, {
2410
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
2522
2411
  fetchPolicy: "network-only",
2523
2412
  skip: !eventId || eventId === "",
2524
2413
  variables: { eventId }
@@ -2528,14 +2417,14 @@ var useGetEventInfo = (eventId) => {
2528
2417
  };
2529
2418
 
2530
2419
  // src/graphql/hooks/notifications/hooksMutation.ts
2531
- var import_client29 = require("@apollo/client");
2420
+ var import_client28 = require("@apollo/client");
2532
2421
 
2533
2422
  // src/graphql/mutations/notification.ts
2534
- var import_client28 = require("@apollo/client");
2423
+ var import_client27 = require("@apollo/client");
2535
2424
 
2536
2425
  // src/graphql/queries/notification.ts
2537
- var import_client27 = require("@apollo/client");
2538
- var NOTIFICATION_FRAGMENT = import_client27.gql`
2426
+ var import_client26 = require("@apollo/client");
2427
+ var NOTIFICATION_FRAGMENT = import_client26.gql`
2539
2428
  fragment NotificationFields on Notification {
2540
2429
  _id
2541
2430
  userId
@@ -2552,7 +2441,7 @@ var NOTIFICATION_FRAGMENT = import_client27.gql`
2552
2441
  updatedAt
2553
2442
  }
2554
2443
  `;
2555
- var GET_USER_NOTIFICATIONS = import_client27.gql`
2444
+ var GET_USER_NOTIFICATIONS = import_client26.gql`
2556
2445
  query getUserNotifications($limit: Int, $offset: Int) {
2557
2446
  userNotifications(limit: $limit, offset: $offset) {
2558
2447
  ...NotificationFields
@@ -2560,7 +2449,7 @@ var GET_USER_NOTIFICATIONS = import_client27.gql`
2560
2449
  }
2561
2450
  ${NOTIFICATION_FRAGMENT}
2562
2451
  `;
2563
- var GET_NOTIFICATION_COUNT = import_client27.gql`
2452
+ var GET_NOTIFICATION_COUNT = import_client26.gql`
2564
2453
  query getNotificationCount {
2565
2454
  notificationCount {
2566
2455
  total
@@ -2570,7 +2459,7 @@ var GET_NOTIFICATION_COUNT = import_client27.gql`
2570
2459
  `;
2571
2460
 
2572
2461
  // src/graphql/mutations/notification.ts
2573
- var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
2462
+ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
2574
2463
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
2575
2464
  createBulkNotifications(input: $input) {
2576
2465
  data
@@ -2578,7 +2467,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
2578
2467
  }
2579
2468
  }
2580
2469
  `;
2581
- var MARK_NOTIFICATION_READ = import_client28.gql`
2470
+ var MARK_NOTIFICATION_READ = import_client27.gql`
2582
2471
  mutation markNotificationRead($_id: ID!) {
2583
2472
  markNotificationRead(_id: $_id) {
2584
2473
  data {
@@ -2589,7 +2478,7 @@ var MARK_NOTIFICATION_READ = import_client28.gql`
2589
2478
  }
2590
2479
  ${NOTIFICATION_FRAGMENT}
2591
2480
  `;
2592
- var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
2481
+ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
2593
2482
  mutation markAllNotificationsRead {
2594
2483
  markAllNotificationsRead {
2595
2484
  data
@@ -2597,7 +2486,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
2597
2486
  }
2598
2487
  }
2599
2488
  `;
2600
- var DELETE_NOTIFICATION = import_client28.gql`
2489
+ var DELETE_NOTIFICATION = import_client27.gql`
2601
2490
  mutation deleteNotification($_id: ID!) {
2602
2491
  deleteNotification(_id: $_id) {
2603
2492
  data
@@ -2605,7 +2494,7 @@ var DELETE_NOTIFICATION = import_client28.gql`
2605
2494
  }
2606
2495
  }
2607
2496
  `;
2608
- var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
2497
+ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
2609
2498
  mutation deleteAllNotifications {
2610
2499
  deleteAllNotifications {
2611
2500
  data
@@ -2616,11 +2505,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
2616
2505
 
2617
2506
  // src/graphql/hooks/notifications/hooksMutation.ts
2618
2507
  var useCreateBulkNotifications = () => {
2619
- const [createBulkNotifications, { loading, error }] = (0, import_client29.useMutation)(CREATE_BULK_NOTIFICATIONS);
2508
+ const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
2620
2509
  return { createBulkNotifications, error, loading };
2621
2510
  };
2622
2511
  var useMarkNotificationRead = () => {
2623
- const [markNotificationRead, { loading, error }] = (0, import_client29.useMutation)(MARK_NOTIFICATION_READ, {
2512
+ const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
2624
2513
  refetchQueries: [
2625
2514
  {
2626
2515
  query: GET_USER_NOTIFICATIONS
@@ -2633,7 +2522,7 @@ var useMarkNotificationRead = () => {
2633
2522
  return { error, loading, markNotificationRead };
2634
2523
  };
2635
2524
  var useMarkAllNotificationsRead = () => {
2636
- const [markAllNotificationsRead, { loading, error }] = (0, import_client29.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2525
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2637
2526
  refetchQueries: [
2638
2527
  {
2639
2528
  query: GET_USER_NOTIFICATIONS
@@ -2646,7 +2535,7 @@ var useMarkAllNotificationsRead = () => {
2646
2535
  return { error, loading, markAllNotificationsRead };
2647
2536
  };
2648
2537
  var useDeleteNotification = () => {
2649
- const [deleteNotification, { loading, error }] = (0, import_client29.useMutation)(DELETE_NOTIFICATION, {
2538
+ const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
2650
2539
  refetchQueries: [
2651
2540
  {
2652
2541
  query: GET_USER_NOTIFICATIONS
@@ -2659,7 +2548,7 @@ var useDeleteNotification = () => {
2659
2548
  return { deleteNotification, error, loading };
2660
2549
  };
2661
2550
  var useDeleteAllNotifications = () => {
2662
- const [deleteAllNotifications, { loading, error }] = (0, import_client29.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2551
+ const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2663
2552
  refetchQueries: [
2664
2553
  {
2665
2554
  query: GET_USER_NOTIFICATIONS
@@ -2673,9 +2562,9 @@ var useDeleteAllNotifications = () => {
2673
2562
  };
2674
2563
 
2675
2564
  // src/graphql/hooks/notifications/hooksQuery.ts
2676
- var import_client30 = require("@apollo/client");
2565
+ var import_client29 = require("@apollo/client");
2677
2566
  var useGetUserNotifications = (limit, offset) => {
2678
- const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_USER_NOTIFICATIONS, {
2567
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
2679
2568
  fetchPolicy: "no-cache",
2680
2569
  variables: { limit, offset }
2681
2570
  });
@@ -2687,7 +2576,7 @@ var useGetUserNotifications = (limit, offset) => {
2687
2576
  };
2688
2577
  };
2689
2578
  var useGetNotificationCount = () => {
2690
- const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_NOTIFICATION_COUNT, {
2579
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
2691
2580
  fetchPolicy: "no-cache"
2692
2581
  });
2693
2582
  return {
@@ -2699,11 +2588,11 @@ var useGetNotificationCount = () => {
2699
2588
  };
2700
2589
 
2701
2590
  // src/graphql/hooks/notifications/hooksSubscription.ts
2702
- var import_client32 = require("@apollo/client");
2591
+ var import_client31 = require("@apollo/client");
2703
2592
 
2704
2593
  // src/graphql/subscriptions/notification.ts
2705
- var import_client31 = require("@apollo/client");
2706
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
2594
+ var import_client30 = require("@apollo/client");
2595
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
2707
2596
  subscription {
2708
2597
  getUserNotifications {
2709
2598
  ...NotificationFields
@@ -2711,7 +2600,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
2711
2600
  }
2712
2601
  ${NOTIFICATION_FRAGMENT}
2713
2602
  `;
2714
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
2603
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
2715
2604
  subscription {
2716
2605
  getNotificationCount {
2717
2606
  total
@@ -2722,7 +2611,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
2722
2611
 
2723
2612
  // src/graphql/hooks/notifications/hooksSubscription.ts
2724
2613
  var useGetUserNotificationsSubscription = () => {
2725
- const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2614
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2726
2615
  fetchPolicy: "no-cache",
2727
2616
  shouldResubscribe: true
2728
2617
  });
@@ -2733,7 +2622,7 @@ var useGetUserNotificationsSubscription = () => {
2733
2622
  };
2734
2623
  };
2735
2624
  var useGetNotificationCountSubscription = () => {
2736
- const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2625
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2737
2626
  fetchPolicy: "no-cache",
2738
2627
  shouldResubscribe: true
2739
2628
  });
@@ -2745,11 +2634,11 @@ var useGetNotificationCountSubscription = () => {
2745
2634
  };
2746
2635
 
2747
2636
  // src/graphql/hooks/poster.ts
2748
- var import_client34 = require("@apollo/client");
2637
+ var import_client33 = require("@apollo/client");
2749
2638
 
2750
2639
  // src/graphql/mutations/poster.ts
2751
- var import_client33 = require("@apollo/client");
2752
- var CREATE_POSTER_MUTATION = import_client33.gql`
2640
+ var import_client32 = require("@apollo/client");
2641
+ var CREATE_POSTER_MUTATION = import_client32.gql`
2753
2642
  mutation createPoster($input: PosterInputType!) {
2754
2643
  createPoster(input: $input) {
2755
2644
  data {
@@ -2765,18 +2654,18 @@ var CREATE_POSTER_MUTATION = import_client33.gql`
2765
2654
 
2766
2655
  // src/graphql/hooks/poster.ts
2767
2656
  var useCreatePoster = () => {
2768
- const [createPoster, { loading, error }] = (0, import_client34.useMutation)(CREATE_POSTER_MUTATION, {
2657
+ const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
2769
2658
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
2770
2659
  });
2771
2660
  return { createPoster, error, loading };
2772
2661
  };
2773
2662
 
2774
2663
  // src/graphql/hooks/pushToken.ts
2775
- var import_client36 = require("@apollo/client");
2664
+ var import_client35 = require("@apollo/client");
2776
2665
 
2777
2666
  // src/graphql/mutations/pushToken.ts
2778
- var import_client35 = require("@apollo/client");
2779
- var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
2667
+ var import_client34 = require("@apollo/client");
2668
+ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
2780
2669
  mutation createPushToken($input: PushTokenInput!) {
2781
2670
  createPushToken(input: $input) {
2782
2671
  data {
@@ -2789,16 +2678,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
2789
2678
 
2790
2679
  // src/graphql/hooks/pushToken.ts
2791
2680
  var useCreatePushToken = () => {
2792
- const [createPushToken, { loading, error }] = (0, import_client36.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2681
+ const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2793
2682
  return { createPushToken, error, loading };
2794
2683
  };
2795
2684
 
2796
2685
  // src/graphql/hooks/relation/hooksMutation.ts
2797
- var import_client38 = require("@apollo/client");
2686
+ var import_client37 = require("@apollo/client");
2798
2687
 
2799
2688
  // src/graphql/mutations/relation.ts
2800
- var import_client37 = require("@apollo/client");
2801
- var CREATE_RELATION_MUTATION = import_client37.gql`
2689
+ var import_client36 = require("@apollo/client");
2690
+ var CREATE_RELATION_MUTATION = import_client36.gql`
2802
2691
  mutation createRelation($input: RelationInputType!) {
2803
2692
  createRelation(input: $input) {
2804
2693
  data {
@@ -2809,7 +2698,7 @@ var CREATE_RELATION_MUTATION = import_client37.gql`
2809
2698
  }
2810
2699
  ${RELATION_FIELDS_FRAGMENT}
2811
2700
  `;
2812
- var UPDATE_RELATION_MUTATION = import_client37.gql`
2701
+ var UPDATE_RELATION_MUTATION = import_client36.gql`
2813
2702
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
2814
2703
  updateRelation(_id: $_id, input: $input) {
2815
2704
  data {
@@ -2820,7 +2709,7 @@ var UPDATE_RELATION_MUTATION = import_client37.gql`
2820
2709
  }
2821
2710
  ${RELATION_FIELDS_FRAGMENT}
2822
2711
  `;
2823
- var DELETE_RELATION_MUTATION = import_client37.gql`
2712
+ var DELETE_RELATION_MUTATION = import_client36.gql`
2824
2713
  mutation deleteRelation($_id: ID!) {
2825
2714
  deleteRelation(_id: $_id) {
2826
2715
  data {
@@ -2834,7 +2723,7 @@ var DELETE_RELATION_MUTATION = import_client37.gql`
2834
2723
 
2835
2724
  // src/graphql/hooks/relation/hooksMutation.ts
2836
2725
  var useCreateRelation = () => {
2837
- const [createRelation, { loading, error }] = (0, import_client38.useMutation)(CREATE_RELATION_MUTATION, {
2726
+ const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
2838
2727
  awaitRefetchQueries: true,
2839
2728
  refetchQueries: (mutationResult) => {
2840
2729
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -2880,7 +2769,7 @@ var useCreateRelation = () => {
2880
2769
  return { createRelation, error, loading };
2881
2770
  };
2882
2771
  var useUpdateRelation = () => {
2883
- const [updateRelation, { loading, error }] = (0, import_client38.useMutation)(UPDATE_RELATION_MUTATION, {
2772
+ const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
2884
2773
  awaitRefetchQueries: true,
2885
2774
  refetchQueries: (mutationResult) => {
2886
2775
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -2923,7 +2812,7 @@ var useUpdateRelation = () => {
2923
2812
  return { error, loading, updateRelation };
2924
2813
  };
2925
2814
  var useDeleteRelation = () => {
2926
- const [deleteRelation, { loading, error }] = (0, import_client38.useMutation)(DELETE_RELATION_MUTATION, {
2815
+ const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
2927
2816
  awaitRefetchQueries: true,
2928
2817
  refetchQueries: (mutationResult) => {
2929
2818
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -2962,9 +2851,9 @@ var useDeleteRelation = () => {
2962
2851
  };
2963
2852
 
2964
2853
  // src/graphql/hooks/relation/hooksQuery.ts
2965
- var import_client39 = require("@apollo/client");
2854
+ var import_client38 = require("@apollo/client");
2966
2855
  var useGetRelation = (_id) => {
2967
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION, {
2856
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
2968
2857
  fetchPolicy: "network-only",
2969
2858
  skip: !_id,
2970
2859
  variables: _id ? { _id } : void 0
@@ -2973,7 +2862,7 @@ var useGetRelation = (_id) => {
2973
2862
  return { error, loading, refetch, relation };
2974
2863
  };
2975
2864
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2976
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2865
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2977
2866
  fetchPolicy: "network-only",
2978
2867
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
2979
2868
  variables: { eventId, vendorId }
@@ -2982,7 +2871,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2982
2871
  return { error, loading, refetch, relationByEventAndVendor };
2983
2872
  };
2984
2873
  var useGetEventRelations = (eventId) => {
2985
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_EVENT_RELATIONS, {
2874
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
2986
2875
  fetchPolicy: "network-only",
2987
2876
  skip: !eventId || eventId === "",
2988
2877
  variables: { eventId }
@@ -2991,7 +2880,7 @@ var useGetEventRelations = (eventId) => {
2991
2880
  return { error, eventRelations, loading, refetch };
2992
2881
  };
2993
2882
  var useGetVendorRelations = (vendorId) => {
2994
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_RELATIONS, {
2883
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
2995
2884
  fetchPolicy: "network-only",
2996
2885
  skip: !vendorId || vendorId === "",
2997
2886
  variables: { vendorId }
@@ -3000,7 +2889,7 @@ var useGetVendorRelations = (vendorId) => {
3000
2889
  return { error, loading, refetch, vendorRelations };
3001
2890
  };
3002
2891
  var useGetResourceConnections = (resourceId, resourceType) => {
3003
- const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RESOURCE_CONNECTIONS, {
2892
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
3004
2893
  fetchPolicy: "network-only",
3005
2894
  skip: !resourceId || resourceId === "" || !resourceType,
3006
2895
  variables: { resourceId, resourceType }
@@ -3010,30 +2899,30 @@ var useGetResourceConnections = (resourceId, resourceType) => {
3010
2899
  };
3011
2900
 
3012
2901
  // src/graphql/hooks/vendor/hooksMutation.ts
3013
- var import_client40 = require("@apollo/client");
2902
+ var import_client39 = require("@apollo/client");
3014
2903
  var useCreateVendor = () => {
3015
- const [createVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_MUTATION, {
2904
+ const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
3016
2905
  awaitRefetchQueries: true,
3017
2906
  refetchQueries: [{ query: GET_USER_VENDORS }]
3018
2907
  });
3019
2908
  return { createVendor, error, loading };
3020
2909
  };
3021
2910
  var useUpdateVendor = () => {
3022
- const [updateVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_MUTATION, {
2911
+ const [updateVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_MUTATION, {
3023
2912
  awaitRefetchQueries: true,
3024
2913
  refetchQueries: [{ query: GET_USER_VENDORS }]
3025
2914
  });
3026
2915
  return { error, loading, updateVendor };
3027
2916
  };
3028
2917
  var useDeleteVendor = () => {
3029
- const [deleteVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_VENDOR_MUTATION, {
2918
+ const [deleteVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_VENDOR_MUTATION, {
3030
2919
  awaitRefetchQueries: true,
3031
2920
  refetchQueries: [{ query: GET_USER_VENDORS }]
3032
2921
  });
3033
2922
  return { deleteVendor, error, loading };
3034
2923
  };
3035
2924
  var useCreateVendorInfo = () => {
3036
- const [createVendorInfo, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2925
+ const [createVendorInfo, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
3037
2926
  awaitRefetchQueries: true,
3038
2927
  refetchQueries: (mutationResult) => {
3039
2928
  const vendorId = mutationResult?.data?.createVendorInfo?.data?.vendorId;
@@ -3057,7 +2946,7 @@ var useCreateVendorInfo = () => {
3057
2946
  return { createVendorInfo, error, loading };
3058
2947
  };
3059
2948
  var useUpdateVendorInfo = () => {
3060
- const [updateVendorInfo, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2949
+ const [updateVendorInfo, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
3061
2950
  awaitRefetchQueries: true,
3062
2951
  refetchQueries: (mutationResult) => {
3063
2952
  const vendorId = mutationResult?.data?.updateVendorInfo?.data?.vendorId;
@@ -3074,30 +2963,30 @@ var useUpdateVendorInfo = () => {
3074
2963
  return { error, loading, updateVendorInfo };
3075
2964
  };
3076
2965
  var useCreateUnregisteredVendor = () => {
3077
- const [createUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
2966
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
3078
2967
  return { createUnregisteredVendor, error, loading };
3079
2968
  };
3080
2969
  var useUpdateUnregisteredVendor = () => {
3081
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
2970
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
3082
2971
  return { error, loading, updateUnregisteredVendor };
3083
2972
  };
3084
2973
  var useDeleteUnregisteredVendor = () => {
3085
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
2974
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
3086
2975
  return { deleteUnregisteredVendor, error, loading };
3087
2976
  };
3088
2977
  var useUnlinkUnregisteredVendorByInviterId = () => {
3089
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client40.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
2978
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
3090
2979
  return { error, loading, unlinkUnregisteredVendorByInviterId };
3091
2980
  };
3092
2981
  var useActivateVendorClaim = () => {
3093
- const [activateVendorClaim, { loading, error }] = (0, import_client40.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
2982
+ const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
3094
2983
  return { activateVendorClaim, error, loading };
3095
2984
  };
3096
2985
 
3097
2986
  // src/graphql/hooks/vendor/hooksQuery.ts
3098
- var import_client41 = require("@apollo/client");
2987
+ var import_client40 = require("@apollo/client");
3099
2988
  var useGetVendors = () => {
3100
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(
2989
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3101
2990
  GET_VENDORS,
3102
2991
  {
3103
2992
  fetchPolicy: "network-only"
@@ -3112,7 +3001,7 @@ var useGetVendors = () => {
3112
3001
  };
3113
3002
  };
3114
3003
  var useGetVendor = (_id) => {
3115
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(
3004
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3116
3005
  GET_VENDOR,
3117
3006
  {
3118
3007
  fetchPolicy: "network-only",
@@ -3128,7 +3017,7 @@ var useGetVendorsByRegion = (region, options) => {
3128
3017
  options,
3129
3018
  region
3130
3019
  };
3131
- const { loading, error, data, refetch, fetchMore } = (0, import_client41.useQuery)(GET_VENDORS_BY_REGION, {
3020
+ const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
3132
3021
  fetchPolicy: "network-only",
3133
3022
  variables
3134
3023
  });
@@ -3142,7 +3031,7 @@ var useGetVendorsByRegion = (region, options) => {
3142
3031
  };
3143
3032
  };
3144
3033
  var useSearchVendors = (search, region) => {
3145
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(SEARCH_VENDORS, {
3034
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
3146
3035
  fetchPolicy: "network-only",
3147
3036
  skip: search.length < 3,
3148
3037
  variables: { region, search }
@@ -3151,7 +3040,7 @@ var useSearchVendors = (search, region) => {
3151
3040
  return { error, loading, refetch, vendorSearch };
3152
3041
  };
3153
3042
  var useGetVendorInfo = (vendorId) => {
3154
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_VENDOR_INFO, {
3043
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_VENDOR_INFO, {
3155
3044
  fetchPolicy: "network-only",
3156
3045
  skip: !vendorId || vendorId === "",
3157
3046
  variables: { vendorId }
@@ -3165,7 +3054,7 @@ var useGetVendorInfo = (vendorId) => {
3165
3054
  };
3166
3055
  };
3167
3056
  var useGetUnregisteredVendors = () => {
3168
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS, {
3057
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS, {
3169
3058
  fetchPolicy: "network-only"
3170
3059
  });
3171
3060
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -3177,7 +3066,7 @@ var useGetUnregisteredVendors = () => {
3177
3066
  };
3178
3067
  };
3179
3068
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
3180
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3069
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3181
3070
  fetchPolicy: "network-only",
3182
3071
  skip: !inviterId || inviterId === "",
3183
3072
  variables: { inviterId }
@@ -3186,7 +3075,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
3186
3075
  return { error, loading, refetch, unregisteredVendorsByInviterId };
3187
3076
  };
3188
3077
  var useGetUnregisteredVendor = (_id) => {
3189
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDOR, {
3078
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDOR, {
3190
3079
  fetchPolicy: "network-only",
3191
3080
  skip: !_id || _id === "",
3192
3081
  variables: { _id }
@@ -3195,7 +3084,7 @@ var useGetUnregisteredVendor = (_id) => {
3195
3084
  return { error, loading, refetch, unregisteredVendor };
3196
3085
  };
3197
3086
  var useMyPendingVendorClaim = (skip = false) => {
3198
- const { loading, error, data, refetch } = (0, import_client41.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3087
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3199
3088
  fetchPolicy: "network-only",
3200
3089
  skip
3201
3090
  });
@@ -3208,11 +3097,11 @@ var useMyPendingVendorClaim = (skip = false) => {
3208
3097
  };
3209
3098
 
3210
3099
  // src/graphql/hooks/user/hooksMutation.ts
3211
- var import_client43 = require("@apollo/client");
3100
+ var import_client42 = require("@apollo/client");
3212
3101
 
3213
3102
  // src/graphql/mutations/user.ts
3214
- var import_client42 = require("@apollo/client");
3215
- var CREATE_USER_MUTATION = import_client42.gql`
3103
+ var import_client41 = require("@apollo/client");
3104
+ var CREATE_USER_MUTATION = import_client41.gql`
3216
3105
  mutation createUser($input: UserInputType!) {
3217
3106
  createUser(input: $input) {
3218
3107
  data {
@@ -3223,7 +3112,7 @@ var CREATE_USER_MUTATION = import_client42.gql`
3223
3112
  }
3224
3113
  ${USER_FIELDS_FRAGMENT}
3225
3114
  `;
3226
- var UPDATE_USER_MUTATION = import_client42.gql`
3115
+ var UPDATE_USER_MUTATION = import_client41.gql`
3227
3116
  mutation updateUser($_id: ID!, $input: UserInputType!) {
3228
3117
  updateUser(_id: $_id, input: $input) {
3229
3118
  data {
@@ -3234,7 +3123,7 @@ var UPDATE_USER_MUTATION = import_client42.gql`
3234
3123
  }
3235
3124
  ${USER_FIELDS_FRAGMENT}
3236
3125
  `;
3237
- var DELETE_USER_MUTATION = import_client42.gql`
3126
+ var DELETE_USER_MUTATION = import_client41.gql`
3238
3127
  mutation deleteUser($email: String!) {
3239
3128
  deleteUser(email: $email) {
3240
3129
  data
@@ -3242,7 +3131,7 @@ var DELETE_USER_MUTATION = import_client42.gql`
3242
3131
  }
3243
3132
  }
3244
3133
  `;
3245
- var REDEEM_REWARD_MUTATION = import_client42.gql`
3134
+ var REDEEM_REWARD_MUTATION = import_client41.gql`
3246
3135
  mutation redeemReward($input: RedeemRewardInputType!) {
3247
3136
  redeemReward(input: $input) {
3248
3137
  data {
@@ -3252,7 +3141,7 @@ var REDEEM_REWARD_MUTATION = import_client42.gql`
3252
3141
  }
3253
3142
  }
3254
3143
  `;
3255
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3144
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3256
3145
  mutation addUserFavouriteResource(
3257
3146
  $resourceId: ID!
3258
3147
  $resourceType: ResourceTypeEnum!
@@ -3269,7 +3158,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3269
3158
  }
3270
3159
  ${USER_FIELDS_FRAGMENT}
3271
3160
  `;
3272
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3161
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3273
3162
  mutation removeUserFavouriteResource(
3274
3163
  $resourceId: ID!
3275
3164
  $resourceType: ResourceTypeEnum!
@@ -3286,7 +3175,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3286
3175
  }
3287
3176
  ${USER_FIELDS_FRAGMENT}
3288
3177
  `;
3289
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3178
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3290
3179
  mutation addUserInterestResource($input: UserActivityInputType!) {
3291
3180
  addUserInterestResource(input: $input) {
3292
3181
  data {
@@ -3297,7 +3186,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3297
3186
  }
3298
3187
  ${USER_FIELDS_FRAGMENT}
3299
3188
  `;
3300
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3189
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3301
3190
  mutation removeUserInterestResource($input: UserActivityInputType!) {
3302
3191
  removeUserInterestResource(input: $input) {
3303
3192
  data {
@@ -3308,7 +3197,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3308
3197
  }
3309
3198
  ${USER_FIELDS_FRAGMENT}
3310
3199
  `;
3311
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3200
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3312
3201
  mutation addUserGoingResource($input: UserActivityInputType!) {
3313
3202
  addUserGoingResource(input: $input) {
3314
3203
  data {
@@ -3319,7 +3208,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3319
3208
  }
3320
3209
  ${USER_FIELDS_FRAGMENT}
3321
3210
  `;
3322
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3211
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3323
3212
  mutation removeUserGoingResource($input: UserActivityInputType!) {
3324
3213
  removeUserGoingResource(input: $input) {
3325
3214
  data {
@@ -3330,7 +3219,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3330
3219
  }
3331
3220
  ${USER_FIELDS_FRAGMENT}
3332
3221
  `;
3333
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3222
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3334
3223
  mutation addUserPresentResource($input: UserActivityInputType!) {
3335
3224
  addUserPresentResource(input: $input) {
3336
3225
  data {
@@ -3341,7 +3230,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3341
3230
  }
3342
3231
  ${USER_FIELDS_FRAGMENT}
3343
3232
  `;
3344
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3233
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3345
3234
  mutation removeUserPresentResource($input: UserActivityInputType!) {
3346
3235
  removeUserPresentResource(input: $input) {
3347
3236
  data {
@@ -3352,7 +3241,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3352
3241
  }
3353
3242
  ${USER_FIELDS_FRAGMENT}
3354
3243
  `;
3355
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
3244
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
3356
3245
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
3357
3246
  selectStandardPackage(selectedLicence: $selectedLicence) {
3358
3247
  data {
@@ -3369,11 +3258,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
3369
3258
 
3370
3259
  // src/graphql/hooks/user/hooksMutation.ts
3371
3260
  var useCreateUser = () => {
3372
- const [createUser, { loading, error }] = (0, import_client43.useMutation)(CREATE_USER_MUTATION);
3261
+ const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
3373
3262
  return { createUser, error, loading };
3374
3263
  };
3375
3264
  var useUpdateUser = () => {
3376
- const [updateUser, { loading, error }] = (0, import_client43.useMutation)(UPDATE_USER_MUTATION, {
3265
+ const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
3377
3266
  awaitRefetchQueries: true,
3378
3267
  refetchQueries: (mutationResult) => {
3379
3268
  const userId = mutationResult?.data?.updateUser?.data?._id;
@@ -3384,11 +3273,11 @@ var useUpdateUser = () => {
3384
3273
  return { error, loading, updateUser };
3385
3274
  };
3386
3275
  var useDeleteUser = () => {
3387
- const [deleteUser, { loading, error }] = (0, import_client43.useMutation)(DELETE_USER_MUTATION);
3276
+ const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
3388
3277
  return { deleteUser, error, loading };
3389
3278
  };
3390
3279
  var useRedeemReward = () => {
3391
- const [redeemReward, { loading, error }] = (0, import_client43.useMutation)(REDEEM_REWARD_MUTATION, {
3280
+ const [redeemReward, { loading, error }] = (0, import_client42.useMutation)(REDEEM_REWARD_MUTATION, {
3392
3281
  awaitRefetchQueries: true,
3393
3282
  refetchQueries: (mutationResult) => {
3394
3283
  const userId = mutationResult?.data?.redeemReward?.data?.userId;
@@ -3405,63 +3294,63 @@ var useRedeemReward = () => {
3405
3294
  return { error, loading, redeemReward };
3406
3295
  };
3407
3296
  var useAddUserFavouriteResource = () => {
3408
- const [addUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
3297
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
3409
3298
  awaitRefetchQueries: true,
3410
3299
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3411
3300
  });
3412
3301
  return { addUserFavouriteResource, error, loading };
3413
3302
  };
3414
3303
  var useRemoveUserFavouriteResource = () => {
3415
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
3304
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
3416
3305
  awaitRefetchQueries: true,
3417
3306
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3418
3307
  });
3419
3308
  return { error, loading, removeUserFavouriteResource };
3420
3309
  };
3421
3310
  var useAddUserInterestResource = () => {
3422
- const [addUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
3311
+ const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
3423
3312
  awaitRefetchQueries: true,
3424
3313
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3425
3314
  });
3426
3315
  return { addUserInterestResource, error, loading };
3427
3316
  };
3428
3317
  var useRemoveUserInterestResource = () => {
3429
- const [removeUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
3318
+ const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
3430
3319
  awaitRefetchQueries: true,
3431
3320
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3432
3321
  });
3433
3322
  return { error, loading, removeUserInterestResource };
3434
3323
  };
3435
3324
  var useAddUserGoingResource = () => {
3436
- const [addUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
3325
+ const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
3437
3326
  awaitRefetchQueries: true,
3438
3327
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3439
3328
  });
3440
3329
  return { addUserGoingResource, error, loading };
3441
3330
  };
3442
3331
  var useRemoveUserGoingResource = () => {
3443
- const [removeUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
3332
+ const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
3444
3333
  awaitRefetchQueries: true,
3445
3334
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3446
3335
  });
3447
3336
  return { error, loading, removeUserGoingResource };
3448
3337
  };
3449
3338
  var useAddUserPresentResource = () => {
3450
- const [addUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
3339
+ const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
3451
3340
  awaitRefetchQueries: true,
3452
3341
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3453
3342
  });
3454
3343
  return { addUserPresentResource, error, loading };
3455
3344
  };
3456
3345
  var useRemoveUserPresentResource = () => {
3457
- const [removeUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
3346
+ const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
3458
3347
  awaitRefetchQueries: true,
3459
3348
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3460
3349
  });
3461
3350
  return { error, loading, removeUserPresentResource };
3462
3351
  };
3463
3352
  var useSelectStandardPackage = () => {
3464
- const [selectStandardPackage, { loading, error }] = (0, import_client43.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3353
+ const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3465
3354
  awaitRefetchQueries: true,
3466
3355
  refetchQueries: (mutationResult) => {
3467
3356
  const userId = mutationResult?.data?.selectStandardPackage?.data?.userId;
@@ -3477,9 +3366,9 @@ var useSelectStandardPackage = () => {
3477
3366
  };
3478
3367
 
3479
3368
  // src/graphql/hooks/user/hooksQuery.ts
3480
- var import_client44 = require("@apollo/client");
3369
+ var import_client43 = require("@apollo/client");
3481
3370
  var useGetUsers = () => {
3482
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(
3371
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3483
3372
  GET_USERS,
3484
3373
  {
3485
3374
  fetchPolicy: "network-only"
@@ -3489,7 +3378,7 @@ var useGetUsers = () => {
3489
3378
  return { error, loading, refetch, users };
3490
3379
  };
3491
3380
  var useGetUser = (_id) => {
3492
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(
3381
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3493
3382
  GET_USER,
3494
3383
  {
3495
3384
  fetchPolicy: "network-only",
@@ -3501,28 +3390,28 @@ var useGetUser = (_id) => {
3501
3390
  return { error, loading, refetch, user };
3502
3391
  };
3503
3392
  var useGetUserEvents = () => {
3504
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_EVENTS, {
3393
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
3505
3394
  fetchPolicy: "network-only"
3506
3395
  });
3507
3396
  const userEvents = data?.userEvents || [];
3508
3397
  return { error, loading, refetch, userEvents };
3509
3398
  };
3510
3399
  var useGetUserVendors = () => {
3511
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_VENDORS, {
3400
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
3512
3401
  fetchPolicy: "network-only"
3513
3402
  });
3514
3403
  const userVendors = data?.userVendors || [];
3515
3404
  return { error, loading, refetch, userVendors };
3516
3405
  };
3517
3406
  var useGetUserPartners = () => {
3518
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_PARTNERS, {
3407
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
3519
3408
  fetchPolicy: "network-only"
3520
3409
  });
3521
3410
  const userPartners = data?.userPartners || [];
3522
3411
  return { error, loading, refetch, userPartners };
3523
3412
  };
3524
3413
  var useGetUserActivities = () => {
3525
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_ACTIVITIES, {
3414
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
3526
3415
  fetchPolicy: "network-only"
3527
3416
  });
3528
3417
  const userActivities = {
@@ -3544,7 +3433,7 @@ var useGetUserActivities = () => {
3544
3433
  return { error, loading, refetch, userActivities };
3545
3434
  };
3546
3435
  var useGetUserResources = (userId) => {
3547
- const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_RESOURCES, {
3436
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_RESOURCES, {
3548
3437
  fetchPolicy: "network-only",
3549
3438
  skip: !userId || userId === "",
3550
3439
  variables: { userId }
@@ -3554,14 +3443,14 @@ var useGetUserResources = (userId) => {
3554
3443
  };
3555
3444
 
3556
3445
  // src/graphql/hooks/ad/hooksMutation.ts
3557
- var import_client47 = require("@apollo/client");
3446
+ var import_client46 = require("@apollo/client");
3558
3447
 
3559
3448
  // src/graphql/mutations/ad.ts
3560
- var import_client46 = require("@apollo/client");
3449
+ var import_client45 = require("@apollo/client");
3561
3450
 
3562
3451
  // src/graphql/queries/ad.ts
3563
- var import_client45 = require("@apollo/client");
3564
- var AD_FIELDS_FRAGMENT = import_client45.gql`
3452
+ var import_client44 = require("@apollo/client");
3453
+ var AD_FIELDS_FRAGMENT = import_client44.gql`
3565
3454
  fragment AdFields on AdType {
3566
3455
  _id
3567
3456
  active
@@ -3588,7 +3477,7 @@ var AD_FIELDS_FRAGMENT = import_client45.gql`
3588
3477
  updatedAt
3589
3478
  }
3590
3479
  `;
3591
- var GET_ADS = import_client45.gql`
3480
+ var GET_ADS = import_client44.gql`
3592
3481
  query getAds {
3593
3482
  ads {
3594
3483
  ...AdFields
@@ -3596,7 +3485,7 @@ var GET_ADS = import_client45.gql`
3596
3485
  }
3597
3486
  ${AD_FIELDS_FRAGMENT}
3598
3487
  `;
3599
- var GET_AD = import_client45.gql`
3488
+ var GET_AD = import_client44.gql`
3600
3489
  query getAd($_id: ID!) {
3601
3490
  ad(_id: $_id) {
3602
3491
  ...AdFields
@@ -3604,7 +3493,7 @@ var GET_AD = import_client45.gql`
3604
3493
  }
3605
3494
  ${AD_FIELDS_FRAGMENT}
3606
3495
  `;
3607
- var GET_ADS_BY_REGION = import_client45.gql`
3496
+ var GET_ADS_BY_REGION = import_client44.gql`
3608
3497
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
3609
3498
  adsByRegion(region: $region, status: $status) {
3610
3499
  ...AdFields
@@ -3614,7 +3503,7 @@ var GET_ADS_BY_REGION = import_client45.gql`
3614
3503
  `;
3615
3504
 
3616
3505
  // src/graphql/mutations/ad.ts
3617
- var CREATE_AD_MUTATION = import_client46.gql`
3506
+ var CREATE_AD_MUTATION = import_client45.gql`
3618
3507
  mutation createAd($input: AdInputType!) {
3619
3508
  createAd(input: $input) {
3620
3509
  data {
@@ -3625,7 +3514,7 @@ var CREATE_AD_MUTATION = import_client46.gql`
3625
3514
  }
3626
3515
  ${AD_FIELDS_FRAGMENT}
3627
3516
  `;
3628
- var UPDATE_AD_MUTATION = import_client46.gql`
3517
+ var UPDATE_AD_MUTATION = import_client45.gql`
3629
3518
  mutation updateAd($_id: ID!, $input: AdInputType!) {
3630
3519
  updateAd(_id: $_id, input: $input) {
3631
3520
  data {
@@ -3636,7 +3525,7 @@ var UPDATE_AD_MUTATION = import_client46.gql`
3636
3525
  }
3637
3526
  ${AD_FIELDS_FRAGMENT}
3638
3527
  `;
3639
- var DELETE_AD_MUTATION = import_client46.gql`
3528
+ var DELETE_AD_MUTATION = import_client45.gql`
3640
3529
  mutation deleteAd($_id: ID!) {
3641
3530
  deleteAd(_id: $_id) {
3642
3531
  data
@@ -3647,7 +3536,7 @@ var DELETE_AD_MUTATION = import_client46.gql`
3647
3536
 
3648
3537
  // src/graphql/hooks/ad/hooksMutation.ts
3649
3538
  var useCreateAd = () => {
3650
- const [createAd, { loading, error }] = (0, import_client47.useMutation)(CREATE_AD_MUTATION, {
3539
+ const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
3651
3540
  awaitRefetchQueries: true,
3652
3541
  refetchQueries: [{ query: GET_ADS }]
3653
3542
  });
@@ -3658,7 +3547,7 @@ var useCreateAd = () => {
3658
3547
  };
3659
3548
  };
3660
3549
  var useUpdateAd = () => {
3661
- const [updateAd, { loading, error }] = (0, import_client47.useMutation)(UPDATE_AD_MUTATION, {
3550
+ const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
3662
3551
  awaitRefetchQueries: true,
3663
3552
  refetchQueries: [{ query: GET_ADS }]
3664
3553
  });
@@ -3669,7 +3558,7 @@ var useUpdateAd = () => {
3669
3558
  };
3670
3559
  };
3671
3560
  var useDeleteAd = () => {
3672
- const [deleteAd, { loading, error }] = (0, import_client47.useMutation)(DELETE_AD_MUTATION, {
3561
+ const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
3673
3562
  awaitRefetchQueries: true,
3674
3563
  refetchQueries: [{ query: GET_ADS }]
3675
3564
  });
@@ -3681,9 +3570,9 @@ var useDeleteAd = () => {
3681
3570
  };
3682
3571
 
3683
3572
  // src/graphql/hooks/ad/hooksQuery.ts
3684
- var import_client48 = require("@apollo/client");
3573
+ var import_client47 = require("@apollo/client");
3685
3574
  var useGetAds = () => {
3686
- const { data, loading, error, refetch } = (0, import_client48.useQuery)(
3575
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(
3687
3576
  GET_ADS,
3688
3577
  {
3689
3578
  fetchPolicy: "no-cache"
@@ -3697,7 +3586,7 @@ var useGetAds = () => {
3697
3586
  };
3698
3587
  };
3699
3588
  var useGetAd = (_id) => {
3700
- const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_AD, {
3589
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
3701
3590
  fetchPolicy: "no-cache",
3702
3591
  skip: !_id || _id === "",
3703
3592
  variables: { _id }
@@ -3710,7 +3599,7 @@ var useGetAd = (_id) => {
3710
3599
  };
3711
3600
  };
3712
3601
  var useGetAdsByRegion = (region, status) => {
3713
- const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_ADS_BY_REGION, {
3602
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
3714
3603
  fetchPolicy: "no-cache",
3715
3604
  skip: !region || region === "",
3716
3605
  variables: { region, status }
@@ -3724,11 +3613,11 @@ var useGetAdsByRegion = (region, status) => {
3724
3613
  };
3725
3614
 
3726
3615
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3727
- var import_client50 = require("@apollo/client");
3616
+ var import_client49 = require("@apollo/client");
3728
3617
 
3729
3618
  // src/graphql/mutations/resourceActivities.ts
3730
- var import_client49 = require("@apollo/client");
3731
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
3619
+ var import_client48 = require("@apollo/client");
3620
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3732
3621
  mutation createResourceActivity($input: ResourceActivityInputType!) {
3733
3622
  createResourceActivity(input: $input) {
3734
3623
  data
@@ -3739,16 +3628,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
3739
3628
 
3740
3629
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3741
3630
  var useCreateResourceActivity = () => {
3742
- const [createResourceActivity, { loading, error }] = (0, import_client50.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3631
+ const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3743
3632
  return { createResourceActivity, error, loading };
3744
3633
  };
3745
3634
 
3746
3635
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3747
- var import_client52 = require("@apollo/client");
3636
+ var import_client51 = require("@apollo/client");
3748
3637
 
3749
3638
  // src/graphql/queries/resourceActivities.ts
3750
- var import_client51 = require("@apollo/client");
3751
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
3639
+ var import_client50 = require("@apollo/client");
3640
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3752
3641
  fragment ResourceActivityFields on ResourceActivityType {
3753
3642
  resourceId
3754
3643
  resourceType
@@ -3767,7 +3656,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
3767
3656
  }
3768
3657
  ${LOCATION_GEO_FIELDS_FRAGMENT}
3769
3658
  `;
3770
- var GET_RESOURCE_ACTIVITY = import_client51.gql`
3659
+ var GET_RESOURCE_ACTIVITY = import_client50.gql`
3771
3660
  query getResourceActivity(
3772
3661
  $resourceType: ResourceTypeEnum!
3773
3662
  $resourceId: ID!
@@ -3781,7 +3670,7 @@ var GET_RESOURCE_ACTIVITY = import_client51.gql`
3781
3670
 
3782
3671
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3783
3672
  var useGetResourceActivity = (resourceId, resourceType) => {
3784
- const { data, loading, error, refetch } = (0, import_client52.useQuery)(GET_RESOURCE_ACTIVITY, {
3673
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
3785
3674
  fetchPolicy: "network-only",
3786
3675
  variables: { resourceId, resourceType }
3787
3676
  });
@@ -3794,11 +3683,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
3794
3683
  };
3795
3684
 
3796
3685
  // src/graphql/hooks/stripe/hooksMutation.ts
3797
- var import_client54 = require("@apollo/client");
3686
+ var import_client53 = require("@apollo/client");
3798
3687
 
3799
3688
  // src/graphql/mutations/stripe.ts
3800
- var import_client53 = require("@apollo/client");
3801
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
3689
+ var import_client52 = require("@apollo/client");
3690
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3802
3691
  mutation createCheckoutSession(
3803
3692
  $planId: LicencesEnumType!
3804
3693
  $billingPeriod: BillingPeriodEnumType
@@ -3812,7 +3701,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
3812
3701
  }
3813
3702
  }
3814
3703
  `;
3815
- var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
3704
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3816
3705
  mutation cancelSubscription {
3817
3706
  cancelSubscription {
3818
3707
  data
@@ -3820,7 +3709,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
3820
3709
  }
3821
3710
  }
3822
3711
  `;
3823
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
3712
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3824
3713
  mutation updateSubscriptionPlan(
3825
3714
  $newPlanId: LicencesEnumType!
3826
3715
  $billingPeriod: BillingPeriodEnumType
@@ -3839,7 +3728,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
3839
3728
  }
3840
3729
  }
3841
3730
  `;
3842
- var CREATE_CUSTOMER_PORTAL = import_client53.gql`
3731
+ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3843
3732
  mutation createCustomerPortal($returnUrl: String) {
3844
3733
  createCustomerPortal(returnUrl: $returnUrl) {
3845
3734
  data {
@@ -3849,7 +3738,7 @@ var CREATE_CUSTOMER_PORTAL = import_client53.gql`
3849
3738
  }
3850
3739
  }
3851
3740
  `;
3852
- var SELECT_PACKAGE_MUTATION = import_client53.gql`
3741
+ var SELECT_PACKAGE_MUTATION = import_client52.gql`
3853
3742
  mutation selectPackage(
3854
3743
  $billingPeriod: BillingPeriodEnumType
3855
3744
  $selectedLicence: LicencesEnumType!
@@ -3875,23 +3764,23 @@ var SELECT_PACKAGE_MUTATION = import_client53.gql`
3875
3764
 
3876
3765
  // src/graphql/hooks/stripe/hooksMutation.ts
3877
3766
  var useCreateCheckoutSession = () => {
3878
- const [createCheckoutSession, { loading, error }] = (0, import_client54.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3767
+ const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3879
3768
  return { createCheckoutSession, error, loading };
3880
3769
  };
3881
3770
  var useCancelSubscription = () => {
3882
- const [cancelSubscription, { loading, error }] = (0, import_client54.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3771
+ const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3883
3772
  return { cancelSubscription, error, loading };
3884
3773
  };
3885
3774
  var useUpdateSubscriptionPlan = () => {
3886
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client54.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3775
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3887
3776
  return { error, loading, updateSubscriptionPlan };
3888
3777
  };
3889
3778
  var useCreateCustomerPortal = () => {
3890
- const [createCustomerPortal, { loading, error }] = (0, import_client54.useMutation)(CREATE_CUSTOMER_PORTAL);
3779
+ const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
3891
3780
  return { createCustomerPortal, error, loading };
3892
3781
  };
3893
3782
  var useSelectPackage = () => {
3894
- const [selectPackage, { loading, error }] = (0, import_client54.useMutation)(SELECT_PACKAGE_MUTATION, {
3783
+ const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
3895
3784
  awaitRefetchQueries: true,
3896
3785
  refetchQueries: (mutationResult) => {
3897
3786
  const userId = mutationResult?.data?.selectPackage?.data?.userId;
@@ -3907,11 +3796,11 @@ var useSelectPackage = () => {
3907
3796
  };
3908
3797
 
3909
3798
  // src/graphql/hooks/stripe/hooksQuery.ts
3910
- var import_client56 = require("@apollo/client");
3799
+ var import_client55 = require("@apollo/client");
3911
3800
 
3912
3801
  // src/graphql/queries/stripe.ts
3913
- var import_client55 = require("@apollo/client");
3914
- var GET_SUBSCRIPTION_STATUS = import_client55.gql`
3802
+ var import_client54 = require("@apollo/client");
3803
+ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3915
3804
  query getSubscriptionStatus {
3916
3805
  getSubscriptionStatus {
3917
3806
  subscriptionId
@@ -3921,7 +3810,7 @@ var GET_SUBSCRIPTION_STATUS = import_client55.gql`
3921
3810
  }
3922
3811
  }
3923
3812
  `;
3924
- var GET_SUBSCRIPTION_PLANS = import_client55.gql`
3813
+ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3925
3814
  query getSubscriptionPlans {
3926
3815
  getSubscriptionPlans {
3927
3816
  plans {
@@ -3952,7 +3841,7 @@ var GET_SUBSCRIPTION_PLANS = import_client55.gql`
3952
3841
 
3953
3842
  // src/graphql/hooks/stripe/hooksQuery.ts
3954
3843
  var useGetSubscriptionStatus = () => {
3955
- const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_STATUS);
3844
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
3956
3845
  return {
3957
3846
  data: data?.getSubscriptionStatus,
3958
3847
  error,
@@ -3961,7 +3850,7 @@ var useGetSubscriptionStatus = () => {
3961
3850
  };
3962
3851
  };
3963
3852
  var useGetSubscriptionPlans = () => {
3964
- const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_PLANS);
3853
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
3965
3854
  return {
3966
3855
  data: data?.getSubscriptionPlans,
3967
3856
  error,
@@ -3971,11 +3860,11 @@ var useGetSubscriptionPlans = () => {
3971
3860
  };
3972
3861
 
3973
3862
  // src/graphql/hooks/partner/hooksMutation.ts
3974
- var import_client58 = require("@apollo/client");
3863
+ var import_client57 = require("@apollo/client");
3975
3864
 
3976
3865
  // src/graphql/mutations/partner.ts
3977
- var import_client57 = require("@apollo/client");
3978
- var CREATE_PARTNER_MUTATION = import_client57.gql`
3866
+ var import_client56 = require("@apollo/client");
3867
+ var CREATE_PARTNER_MUTATION = import_client56.gql`
3979
3868
  mutation createPartner($input: PartnerInputType!) {
3980
3869
  createPartner(input: $input) {
3981
3870
  data {
@@ -3986,7 +3875,7 @@ var CREATE_PARTNER_MUTATION = import_client57.gql`
3986
3875
  }
3987
3876
  ${PARTNER}
3988
3877
  `;
3989
- var UPDATE_PARTNER_MUTATION = import_client57.gql`
3878
+ var UPDATE_PARTNER_MUTATION = import_client56.gql`
3990
3879
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
3991
3880
  updatePartner(_id: $_id, input: $input) {
3992
3881
  data {
@@ -3997,7 +3886,7 @@ var UPDATE_PARTNER_MUTATION = import_client57.gql`
3997
3886
  }
3998
3887
  ${PARTNER}
3999
3888
  `;
4000
- var DELETE_PARTNER_MUTATION = import_client57.gql`
3889
+ var DELETE_PARTNER_MUTATION = import_client56.gql`
4001
3890
  mutation deletePartner($_id: ID!) {
4002
3891
  deletePartner(_id: $_id) {
4003
3892
  data
@@ -4008,21 +3897,21 @@ var DELETE_PARTNER_MUTATION = import_client57.gql`
4008
3897
 
4009
3898
  // src/graphql/hooks/partner/hooksMutation.ts
4010
3899
  var useCreatePartner = () => {
4011
- const [createPartner, { loading, error }] = (0, import_client58.useMutation)(CREATE_PARTNER_MUTATION, {
3900
+ const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
4012
3901
  awaitRefetchQueries: true,
4013
3902
  refetchQueries: [{ query: GET_USER_PARTNERS }]
4014
3903
  });
4015
3904
  return { createPartner, error, loading };
4016
3905
  };
4017
3906
  var useUpdatePartner = () => {
4018
- const [updatePartner, { loading, error }] = (0, import_client58.useMutation)(UPDATE_PARTNER_MUTATION, {
3907
+ const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
4019
3908
  awaitRefetchQueries: true,
4020
3909
  refetchQueries: [{ query: GET_USER_PARTNERS }]
4021
3910
  });
4022
3911
  return { error, loading, updatePartner };
4023
3912
  };
4024
3913
  var useDeletePartner = () => {
4025
- const [deletePartner, { loading, error }] = (0, import_client58.useMutation)(DELETE_PARTNER_MUTATION, {
3914
+ const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
4026
3915
  awaitRefetchQueries: true,
4027
3916
  refetchQueries: [{ query: GET_USER_PARTNERS }]
4028
3917
  });
@@ -4030,9 +3919,9 @@ var useDeletePartner = () => {
4030
3919
  };
4031
3920
 
4032
3921
  // src/graphql/hooks/partner/hooksQuery.ts
4033
- var import_client59 = require("@apollo/client");
3922
+ var import_client58 = require("@apollo/client");
4034
3923
  var useGetPartners = () => {
4035
- const { loading, error, data, refetch } = (0, import_client59.useQuery)(GET_PARTNERS, {
3924
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
4036
3925
  fetchPolicy: "network-only"
4037
3926
  });
4038
3927
  const partners = data?.partners || [];
@@ -4044,7 +3933,7 @@ var useGetPartners = () => {
4044
3933
  };
4045
3934
  };
4046
3935
  var useGetPartner = (_id) => {
4047
- const { loading, error, data, refetch } = (0, import_client59.useQuery)(
3936
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(
4048
3937
  GET_PARTNER,
4049
3938
  {
4050
3939
  fetchPolicy: "network-only",
@@ -4060,7 +3949,7 @@ var useGetPartnersByRegion = (region, options) => {
4060
3949
  options,
4061
3950
  region
4062
3951
  };
4063
- const { loading, error, data, refetch, fetchMore } = (0, import_client59.useQuery)(GET_PARTNERS_BY_REGION, {
3952
+ const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
4064
3953
  fetchPolicy: "network-only",
4065
3954
  variables
4066
3955
  });
@@ -4074,7 +3963,7 @@ var useGetPartnersByRegion = (region, options) => {
4074
3963
  };
4075
3964
  };
4076
3965
  var useSearchPartners = (search, region) => {
4077
- const { loading, error, data, refetch } = (0, import_client59.useQuery)(SEARCH_PARTNERS, {
3966
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
4078
3967
  fetchPolicy: "network-only",
4079
3968
  skip: search.length < 3,
4080
3969
  variables: { region, search }
@@ -4084,11 +3973,11 @@ var useSearchPartners = (search, region) => {
4084
3973
  };
4085
3974
 
4086
3975
  // src/graphql/hooks/post/hooksMutation.ts
4087
- var import_client61 = require("@apollo/client");
3976
+ var import_client60 = require("@apollo/client");
4088
3977
 
4089
3978
  // src/graphql/mutations/post.ts
4090
- var import_client60 = require("@apollo/client");
4091
- var CREATE_POST_MUTATION = import_client60.gql`
3979
+ var import_client59 = require("@apollo/client");
3980
+ var CREATE_POST_MUTATION = import_client59.gql`
4092
3981
  mutation createPost($input: PostInputType!) {
4093
3982
  createPost(input: $input) {
4094
3983
  data {
@@ -4099,7 +3988,7 @@ var CREATE_POST_MUTATION = import_client60.gql`
4099
3988
  }
4100
3989
  ${POST_FIELDS_FRAGMENT}
4101
3990
  `;
4102
- var UPDATE_POST_MUTATION = import_client60.gql`
3991
+ var UPDATE_POST_MUTATION = import_client59.gql`
4103
3992
  mutation updatePost($_id: ID!, $input: PostInputType!) {
4104
3993
  updatePost(_id: $_id, input: $input) {
4105
3994
  data {
@@ -4110,7 +3999,7 @@ var UPDATE_POST_MUTATION = import_client60.gql`
4110
3999
  }
4111
4000
  ${POST_FIELDS_FRAGMENT}
4112
4001
  `;
4113
- var DELETE_POST_MUTATION = import_client60.gql`
4002
+ var DELETE_POST_MUTATION = import_client59.gql`
4114
4003
  mutation deletePost($_id: ID!) {
4115
4004
  deletePost(_id: $_id) {
4116
4005
  data
@@ -4121,21 +4010,21 @@ var DELETE_POST_MUTATION = import_client60.gql`
4121
4010
 
4122
4011
  // src/graphql/hooks/post/hooksMutation.ts
4123
4012
  var useCreatePost = () => {
4124
- const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
4013
+ const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
4125
4014
  awaitRefetchQueries: true,
4126
4015
  refetchQueries: [{ query: GET_POSTS }]
4127
4016
  });
4128
4017
  return { createPost, error, loading };
4129
4018
  };
4130
4019
  var useUpdatePost = () => {
4131
- const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
4020
+ const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
4132
4021
  awaitRefetchQueries: true,
4133
4022
  refetchQueries: [{ query: GET_POSTS }]
4134
4023
  });
4135
4024
  return { error, loading, updatePost };
4136
4025
  };
4137
4026
  var useDeletePost = () => {
4138
- const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
4027
+ const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
4139
4028
  awaitRefetchQueries: true,
4140
4029
  refetchQueries: [{ query: GET_POSTS }]
4141
4030
  });
@@ -4143,15 +4032,15 @@ var useDeletePost = () => {
4143
4032
  };
4144
4033
 
4145
4034
  // src/graphql/hooks/post/hooksQuery.ts
4146
- var import_client62 = require("@apollo/client");
4035
+ var import_client61 = require("@apollo/client");
4147
4036
  var useGetPosts = () => {
4148
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
4037
+ const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
4149
4038
  fetchPolicy: "network-only"
4150
4039
  });
4151
4040
  return { error, loading, posts: data?.posts || [], refetch };
4152
4041
  };
4153
4042
  var useGetPost = (_id) => {
4154
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
4043
+ const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
4155
4044
  fetchPolicy: "network-only",
4156
4045
  skip: !_id || _id === "",
4157
4046
  variables: { _id }
@@ -4159,7 +4048,7 @@ var useGetPost = (_id) => {
4159
4048
  return { error, loading, post: data?.post, refetch };
4160
4049
  };
4161
4050
  var useGetPostsByType = (postType) => {
4162
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
4051
+ const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
4163
4052
  fetchPolicy: "network-only",
4164
4053
  skip: !postType,
4165
4054
  variables: { postType }
@@ -4168,11 +4057,11 @@ var useGetPostsByType = (postType) => {
4168
4057
  };
4169
4058
 
4170
4059
  // src/graphql/hooks/appSettings/hooksMutation.ts
4171
- var import_client65 = require("@apollo/client");
4060
+ var import_client64 = require("@apollo/client");
4172
4061
 
4173
4062
  // src/graphql/mutations/appSettings.ts
4174
- var import_client63 = require("@apollo/client");
4175
- var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
4063
+ var import_client62 = require("@apollo/client");
4064
+ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4176
4065
  mutation updateAppSettings($input: AppSettingsInputType!) {
4177
4066
  updateAppSettings(input: $input) {
4178
4067
  data
@@ -4180,7 +4069,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
4180
4069
  }
4181
4070
  }
4182
4071
  `;
4183
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
4072
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4184
4073
  mutation crawlGoogleMarkets {
4185
4074
  crawlGoogleMarkets {
4186
4075
  data
@@ -4188,7 +4077,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
4188
4077
  }
4189
4078
  }
4190
4079
  `;
4191
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
4080
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4192
4081
  mutation updateGoogleImportedMarkets {
4193
4082
  updateGoogleImportedMarkets {
4194
4083
  data
@@ -4198,8 +4087,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
4198
4087
  `;
4199
4088
 
4200
4089
  // src/graphql/queries/appSettings.ts
4201
- var import_client64 = require("@apollo/client");
4202
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
4090
+ var import_client63 = require("@apollo/client");
4091
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4203
4092
  fragment AppSettingsFields on AppSettingsType {
4204
4093
  _id
4205
4094
  appVersion
@@ -4210,7 +4099,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
4210
4099
  updatedAt
4211
4100
  }
4212
4101
  `;
4213
- var GET_APP_SETTINGS = import_client64.gql`
4102
+ var GET_APP_SETTINGS = import_client63.gql`
4214
4103
  query getAppSettings {
4215
4104
  appSettings {
4216
4105
  ...AppSettingsFields
@@ -4221,25 +4110,25 @@ var GET_APP_SETTINGS = import_client64.gql`
4221
4110
 
4222
4111
  // src/graphql/hooks/appSettings/hooksMutation.ts
4223
4112
  var useUpdateAppSettings = () => {
4224
- const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4113
+ const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4225
4114
  awaitRefetchQueries: true,
4226
4115
  refetchQueries: [{ query: GET_APP_SETTINGS }]
4227
4116
  });
4228
4117
  return { error, loading, updateAppSettings };
4229
4118
  };
4230
4119
  var useCrawlGoogleMarkets = () => {
4231
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4120
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4232
4121
  return { crawlGoogleMarkets, error, loading };
4233
4122
  };
4234
4123
  var useUpdateGoogleImportedMarkets = () => {
4235
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client65.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4124
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4236
4125
  return { error, loading, updateGoogleImportedMarkets };
4237
4126
  };
4238
4127
 
4239
4128
  // src/graphql/hooks/appSettings/hooksQuery.ts
4240
- var import_client66 = require("@apollo/client");
4129
+ var import_client65 = require("@apollo/client");
4241
4130
  var useGetAppSettings = () => {
4242
- const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
4131
+ const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
4243
4132
  fetchPolicy: "network-only"
4244
4133
  });
4245
4134
  const appSettings = data?.appSettings || null;
@@ -4247,14 +4136,14 @@ var useGetAppSettings = () => {
4247
4136
  };
4248
4137
 
4249
4138
  // src/graphql/hooks/game/hooksMutation.ts
4250
- var import_client69 = require("@apollo/client");
4139
+ var import_client68 = require("@apollo/client");
4251
4140
 
4252
4141
  // src/graphql/mutations/game.ts
4253
- var import_client68 = require("@apollo/client");
4142
+ var import_client67 = require("@apollo/client");
4254
4143
 
4255
4144
  // src/graphql/queries/game/game.ts
4256
- var import_client67 = require("@apollo/client");
4257
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
4145
+ var import_client66 = require("@apollo/client");
4146
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
4258
4147
  fragment GameHistoryFields on GameHistoryType {
4259
4148
  createdAt
4260
4149
  gameDate {
@@ -4269,7 +4158,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
4269
4158
  }
4270
4159
  ${GAME_DATE_FIELDS_FRAGMENT}
4271
4160
  `;
4272
- var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
4161
+ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
4273
4162
  fragment GameDataFields on GameDataType {
4274
4163
  dailyClue {
4275
4164
  ...DailyClueGameDataFields
@@ -4284,7 +4173,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
4284
4173
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
4285
4174
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
4286
4175
  `;
4287
- var GAME_FIELDS_FRAGMENT = import_client67.gql`
4176
+ var GAME_FIELDS_FRAGMENT = import_client66.gql`
4288
4177
  fragment GameFields on GameType {
4289
4178
  _id
4290
4179
  active
@@ -4303,7 +4192,7 @@ var GAME_FIELDS_FRAGMENT = import_client67.gql`
4303
4192
  ${GAME_DATA_FIELDS_FRAGMENT}
4304
4193
  ${GAME_HISTORY_FIELDS_FRAGMENT}
4305
4194
  `;
4306
- var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
4195
+ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
4307
4196
  fragment GameDocFields on GameDocType {
4308
4197
  _id
4309
4198
  active
@@ -4321,7 +4210,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
4321
4210
  ${OWNER_FIELDS_FRAGMENT}
4322
4211
  ${GAME_FIELDS_FRAGMENT}
4323
4212
  `;
4324
- var GET_GAMES = import_client67.gql`
4213
+ var GET_GAMES = import_client66.gql`
4325
4214
  query getGames {
4326
4215
  games {
4327
4216
  ...GameDocFields
@@ -4329,7 +4218,7 @@ var GET_GAMES = import_client67.gql`
4329
4218
  }
4330
4219
  ${GAME_DOC_FIELDS_FRAGMENT}
4331
4220
  `;
4332
- var GET_GAME = import_client67.gql`
4221
+ var GET_GAME = import_client66.gql`
4333
4222
  query getGame($_id: ID) {
4334
4223
  game(_id: $_id) {
4335
4224
  ...GameDocFields
@@ -4337,7 +4226,7 @@ var GET_GAME = import_client67.gql`
4337
4226
  }
4338
4227
  ${GAME_DOC_FIELDS_FRAGMENT}
4339
4228
  `;
4340
- var GET_GAME_LEADERBOARD = import_client67.gql`
4229
+ var GET_GAME_LEADERBOARD = import_client66.gql`
4341
4230
  query getGameLeaderboard {
4342
4231
  gameLeaderboard {
4343
4232
  gameHistory {
@@ -4354,7 +4243,7 @@ var GET_GAME_LEADERBOARD = import_client67.gql`
4354
4243
  `;
4355
4244
 
4356
4245
  // src/graphql/mutations/game.ts
4357
- var START_GAME_MUTATION = import_client68.gql`
4246
+ var START_GAME_MUTATION = import_client67.gql`
4358
4247
  mutation startGame($input: BaseGameInputType!) {
4359
4248
  startGame(input: $input) {
4360
4249
  data {
@@ -4365,7 +4254,7 @@ var START_GAME_MUTATION = import_client68.gql`
4365
4254
  }
4366
4255
  ${GAME_DOC_FIELDS_FRAGMENT}
4367
4256
  `;
4368
- var LEAVE_GAME_MUTATION = import_client68.gql`
4257
+ var LEAVE_GAME_MUTATION = import_client67.gql`
4369
4258
  mutation leaveGame(
4370
4259
  $_id: ID!
4371
4260
  $gameType: GameTypeEnumType!
@@ -4377,7 +4266,7 @@ var LEAVE_GAME_MUTATION = import_client68.gql`
4377
4266
  }
4378
4267
  }
4379
4268
  `;
4380
- var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
4269
+ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
4381
4270
  mutation updateDailyClueGame(
4382
4271
  $_id: ID!
4383
4272
  $foundLetter: String!
@@ -4398,7 +4287,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
4398
4287
  }
4399
4288
  ${GAME_DOC_FIELDS_FRAGMENT}
4400
4289
  `;
4401
- var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
4290
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
4402
4291
  mutation updatePuzzleGame(
4403
4292
  $_id: ID!
4404
4293
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -4422,7 +4311,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
4422
4311
 
4423
4312
  // src/graphql/hooks/game/hooksMutation.ts
4424
4313
  var useStartGame = () => {
4425
- const [startGame, { loading, error }] = (0, import_client69.useMutation)(START_GAME_MUTATION, {
4314
+ const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
4426
4315
  awaitRefetchQueries: true,
4427
4316
  refetchQueries: (mutationResult) => {
4428
4317
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -4445,7 +4334,7 @@ var useStartGame = () => {
4445
4334
  return { error, loading, startGame };
4446
4335
  };
4447
4336
  var useLeaveGame = () => {
4448
- const [leaveGame, { loading, error }] = (0, import_client69.useMutation)(LEAVE_GAME_MUTATION, {
4337
+ const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
4449
4338
  awaitRefetchQueries: true,
4450
4339
  refetchQueries: [
4451
4340
  {
@@ -4456,7 +4345,7 @@ var useLeaveGame = () => {
4456
4345
  return { error, leaveGame, loading };
4457
4346
  };
4458
4347
  var useUpdateDailyClueGame = () => {
4459
- const [updateDailyClueGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4348
+ const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4460
4349
  awaitRefetchQueries: true,
4461
4350
  refetchQueries: (mutationResult) => {
4462
4351
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -4473,7 +4362,7 @@ var useUpdateDailyClueGame = () => {
4473
4362
  return { error, loading, updateDailyClueGame };
4474
4363
  };
4475
4364
  var useUpdatePuzzleGame = () => {
4476
- const [updatePuzzleGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4365
+ const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4477
4366
  awaitRefetchQueries: true,
4478
4367
  refetchQueries: (mutationResult) => {
4479
4368
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -4491,16 +4380,16 @@ var useUpdatePuzzleGame = () => {
4491
4380
  };
4492
4381
 
4493
4382
  // src/graphql/hooks/game/hooksQuery.ts
4494
- var import_client70 = require("@apollo/client");
4383
+ var import_client69 = require("@apollo/client");
4495
4384
  var useGetGames = () => {
4496
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAMES, {
4385
+ const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
4497
4386
  fetchPolicy: "network-only"
4498
4387
  });
4499
4388
  const games = data?.games || [];
4500
4389
  return { error, games, loading, refetch };
4501
4390
  };
4502
4391
  var useGetGame = (_id) => {
4503
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME, {
4392
+ const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
4504
4393
  fetchPolicy: "network-only",
4505
4394
  skip: !_id,
4506
4395
  variables: _id ? { _id } : void 0
@@ -4509,7 +4398,7 @@ var useGetGame = (_id) => {
4509
4398
  return { error, game, loading, refetch };
4510
4399
  };
4511
4400
  var useGetGameLeaderboard = () => {
4512
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME_LEADERBOARD, {
4401
+ const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
4513
4402
  fetchPolicy: "network-only"
4514
4403
  });
4515
4404
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -4517,14 +4406,14 @@ var useGetGameLeaderboard = () => {
4517
4406
  };
4518
4407
 
4519
4408
  // src/graphql/hooks/school/hooksMutation.ts
4520
- var import_client73 = require("@apollo/client");
4409
+ var import_client72 = require("@apollo/client");
4521
4410
 
4522
4411
  // src/graphql/mutations/school.ts
4523
- var import_client72 = require("@apollo/client");
4412
+ var import_client71 = require("@apollo/client");
4524
4413
 
4525
4414
  // src/graphql/queries/school.ts
4526
- var import_client71 = require("@apollo/client");
4527
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
4415
+ var import_client70 = require("@apollo/client");
4416
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
4528
4417
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
4529
4418
  _id
4530
4419
  active
@@ -4537,14 +4426,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
4537
4426
  }
4538
4427
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4539
4428
  `;
4540
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client71.gql`
4429
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
4541
4430
  fragment SchoolCampaignFields on SchoolCampaignType {
4542
4431
  endDate
4543
4432
  name
4544
4433
  startDate
4545
4434
  }
4546
4435
  `;
4547
- var SCHOOL = import_client71.gql`
4436
+ var SCHOOL = import_client70.gql`
4548
4437
  fragment SchoolFields on SchoolType {
4549
4438
  _id
4550
4439
  active
@@ -4588,7 +4477,7 @@ var SCHOOL = import_client71.gql`
4588
4477
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4589
4478
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
4590
4479
  `;
4591
- var GET_SCHOOL = import_client71.gql`
4480
+ var GET_SCHOOL = import_client70.gql`
4592
4481
  query getSchool($_id: ID!) {
4593
4482
  school(_id: $_id) {
4594
4483
  school {
@@ -4602,7 +4491,7 @@ var GET_SCHOOL = import_client71.gql`
4602
4491
  ${SCHOOL}
4603
4492
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
4604
4493
  `;
4605
- var GET_SCHOOLS = import_client71.gql`
4494
+ var GET_SCHOOLS = import_client70.gql`
4606
4495
  query getSchools {
4607
4496
  schools {
4608
4497
  ...SchoolFields
@@ -4612,7 +4501,7 @@ var GET_SCHOOLS = import_client71.gql`
4612
4501
  `;
4613
4502
 
4614
4503
  // src/graphql/mutations/school.ts
4615
- var CREATE_SCHOOL_MUTATION = import_client72.gql`
4504
+ var CREATE_SCHOOL_MUTATION = import_client71.gql`
4616
4505
  mutation createSchool($input: SchoolInputType!) {
4617
4506
  createSchool(input: $input) {
4618
4507
  data {
@@ -4623,7 +4512,7 @@ var CREATE_SCHOOL_MUTATION = import_client72.gql`
4623
4512
  }
4624
4513
  ${SCHOOL}
4625
4514
  `;
4626
- var UPDATE_SCHOOL_MUTATION = import_client72.gql`
4515
+ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
4627
4516
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
4628
4517
  updateSchool(_id: $_id, input: $input) {
4629
4518
  data {
@@ -4634,7 +4523,7 @@ var UPDATE_SCHOOL_MUTATION = import_client72.gql`
4634
4523
  }
4635
4524
  ${SCHOOL}
4636
4525
  `;
4637
- var DELETE_SCHOOL_MUTATION = import_client72.gql`
4526
+ var DELETE_SCHOOL_MUTATION = import_client71.gql`
4638
4527
  mutation deleteSchool($_id: ID!) {
4639
4528
  deleteSchool(_id: $_id) {
4640
4529
  data
@@ -4642,7 +4531,7 @@ var DELETE_SCHOOL_MUTATION = import_client72.gql`
4642
4531
  }
4643
4532
  }
4644
4533
  `;
4645
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
4534
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
4646
4535
  mutation requestMarketingMaterial(
4647
4536
  $input: MarketingMaterialRequestInputType!
4648
4537
  ) {
@@ -4655,35 +4544,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
4655
4544
 
4656
4545
  // src/graphql/hooks/school/hooksMutation.ts
4657
4546
  var useCreateSchool = () => {
4658
- const [createSchool, { loading, error }] = (0, import_client73.useMutation)(CREATE_SCHOOL_MUTATION, {
4547
+ const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
4659
4548
  awaitRefetchQueries: true,
4660
4549
  refetchQueries: [{ query: GET_SCHOOLS }]
4661
4550
  });
4662
4551
  return { createSchool, error, loading };
4663
4552
  };
4664
4553
  var useUpdateSchool = () => {
4665
- const [updateSchool, { loading, error }] = (0, import_client73.useMutation)(UPDATE_SCHOOL_MUTATION, {
4554
+ const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
4666
4555
  awaitRefetchQueries: true,
4667
4556
  refetchQueries: [{ query: GET_SCHOOLS }]
4668
4557
  });
4669
4558
  return { error, loading, updateSchool };
4670
4559
  };
4671
4560
  var useDeleteSchool = () => {
4672
- const [deleteSchool, { loading, error }] = (0, import_client73.useMutation)(DELETE_SCHOOL_MUTATION, {
4561
+ const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
4673
4562
  awaitRefetchQueries: true,
4674
4563
  refetchQueries: [{ query: GET_SCHOOLS }]
4675
4564
  });
4676
4565
  return { deleteSchool, error, loading };
4677
4566
  };
4678
4567
  var useRequestMarketingMaterial = () => {
4679
- const [requestMarketingMaterial, { loading, error }] = (0, import_client73.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4568
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4680
4569
  return { error, loading, requestMarketingMaterial };
4681
4570
  };
4682
4571
 
4683
4572
  // src/graphql/hooks/school/hooksQuery.ts
4684
- var import_client74 = require("@apollo/client");
4573
+ var import_client73 = require("@apollo/client");
4685
4574
  var useGetSchools = () => {
4686
- const { data, loading, error, refetch } = (0, import_client74.useQuery)(
4575
+ const { data, loading, error, refetch } = (0, import_client73.useQuery)(
4687
4576
  GET_SCHOOLS,
4688
4577
  {
4689
4578
  fetchPolicy: "network-only"
@@ -4697,7 +4586,7 @@ var useGetSchools = () => {
4697
4586
  };
4698
4587
  };
4699
4588
  var useGetSchool = (_id) => {
4700
- const { data, loading, error, refetch } = (0, import_client74.useQuery)(GET_SCHOOL, {
4589
+ const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
4701
4590
  fetchPolicy: "network-only",
4702
4591
  skip: !_id,
4703
4592
  variables: { _id }
@@ -4711,11 +4600,11 @@ var useGetSchool = (_id) => {
4711
4600
  };
4712
4601
 
4713
4602
  // src/graphql/hooks/affiliate/hooksQuery.ts
4714
- var import_client76 = require("@apollo/client");
4603
+ var import_client75 = require("@apollo/client");
4715
4604
 
4716
4605
  // src/graphql/queries/affiliate.ts
4717
- var import_client75 = require("@apollo/client");
4718
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
4606
+ var import_client74 = require("@apollo/client");
4607
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
4719
4608
  fragment AffiliateRewardFields on AffiliateRewardType {
4720
4609
  createdAt
4721
4610
  redeemedAt
@@ -4724,7 +4613,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
4724
4613
  rewardValue
4725
4614
  }
4726
4615
  `;
4727
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
4616
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
4728
4617
  fragment AffiliateResourceFields on AffiliateResourceType {
4729
4618
  resourceActive
4730
4619
  resourceDeletedAt
@@ -4741,13 +4630,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
4741
4630
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
4742
4631
  ${OWNER_FIELDS_FRAGMENT}
4743
4632
  `;
4744
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4633
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4745
4634
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
4746
4635
  accountHolderName
4747
4636
  accountNumber
4748
4637
  }
4749
4638
  `;
4750
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4639
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4751
4640
  fragment AffiliateDetailsFields on AffiliateDetailsType {
4752
4641
  bankAccountDetails {
4753
4642
  ...AffiliateBankAccountDetailsFields
@@ -4775,7 +4664,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4775
4664
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4776
4665
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
4777
4666
  `;
4778
- var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
4667
+ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
4779
4668
  fragment AffiliateFields on AffiliateType {
4780
4669
  _id
4781
4670
  active
@@ -4807,7 +4696,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
4807
4696
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
4808
4697
  ${OWNER_FIELDS_FRAGMENT}
4809
4698
  `;
4810
- var GET_AFFILIATE = import_client75.gql`
4699
+ var GET_AFFILIATE = import_client74.gql`
4811
4700
  query getAffiliate($_id: ID!) {
4812
4701
  affiliate(_id: $_id) {
4813
4702
  ...AffiliateFields
@@ -4815,7 +4704,7 @@ var GET_AFFILIATE = import_client75.gql`
4815
4704
  }
4816
4705
  ${AFFILIATE_FIELDS_FRAGMENT}
4817
4706
  `;
4818
- var GET_AFFILIATES = import_client75.gql`
4707
+ var GET_AFFILIATES = import_client74.gql`
4819
4708
  query getAffiliates {
4820
4709
  affiliates {
4821
4710
  ...AffiliateFields
@@ -4826,7 +4715,7 @@ var GET_AFFILIATES = import_client75.gql`
4826
4715
 
4827
4716
  // src/graphql/hooks/affiliate/hooksQuery.ts
4828
4717
  var useGetAffiliate = (_id) => {
4829
- const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATE, {
4718
+ const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
4830
4719
  fetchPolicy: "network-only",
4831
4720
  skip: !_id || _id === "",
4832
4721
  variables: { _id }
@@ -4840,7 +4729,7 @@ var useGetAffiliate = (_id) => {
4840
4729
  };
4841
4730
  };
4842
4731
  var useGetAffiliates = () => {
4843
- const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATES, {
4732
+ const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
4844
4733
  fetchPolicy: "network-only"
4845
4734
  });
4846
4735
  const affiliates = data?.affiliates || [];
@@ -4853,11 +4742,11 @@ var useGetAffiliates = () => {
4853
4742
  };
4854
4743
 
4855
4744
  // src/graphql/hooks/affiliate/hooksMutation.ts
4856
- var import_client78 = require("@apollo/client");
4745
+ var import_client77 = require("@apollo/client");
4857
4746
 
4858
4747
  // src/graphql/mutations/affiliate.ts
4859
- var import_client77 = require("@apollo/client");
4860
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
4748
+ var import_client76 = require("@apollo/client");
4749
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
4861
4750
  mutation updateAffiliateDetails(
4862
4751
  $input: AffiliateDetailsInputType!
4863
4752
  $affiliateId: ID!
@@ -4871,7 +4760,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
4871
4760
  }
4872
4761
  ${AFFILIATE_FIELDS_FRAGMENT}
4873
4762
  `;
4874
- var DELETE_AFFILIATE_MUTATION = import_client77.gql`
4763
+ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
4875
4764
  mutation deleteAffiliate($_id: ID!) {
4876
4765
  deleteAffiliate(_id: $_id) {
4877
4766
  data
@@ -4879,7 +4768,7 @@ var DELETE_AFFILIATE_MUTATION = import_client77.gql`
4879
4768
  }
4880
4769
  }
4881
4770
  `;
4882
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
4771
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
4883
4772
  mutation redeemAffiliateReward($affiliateId: ID!) {
4884
4773
  redeemAffiliateReward(affiliateId: $affiliateId) {
4885
4774
  data {
@@ -4890,7 +4779,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
4890
4779
  }
4891
4780
  ${AFFILIATE_FIELDS_FRAGMENT}
4892
4781
  `;
4893
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
4782
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
4894
4783
  mutation assignAffiliateResourceReward(
4895
4784
  $affiliateId: ID!
4896
4785
  $resourceId: ID!
@@ -4911,7 +4800,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
4911
4800
  }
4912
4801
  ${AFFILIATE_FIELDS_FRAGMENT}
4913
4802
  `;
4914
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
4803
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
4915
4804
  mutation assignAffiliateBonusReward(
4916
4805
  $affiliateId: ID!
4917
4806
  $rewardType: AffiliateRewardEnumType!
@@ -4931,7 +4820,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
4931
4820
 
4932
4821
  // src/graphql/hooks/affiliate/hooksMutation.ts
4933
4822
  var useUpdateAffiliateDetails = () => {
4934
- const [updateAffiliateDetails, { loading, error }] = (0, import_client78.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4823
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4935
4824
  awaitRefetchQueries: true,
4936
4825
  refetchQueries: (mutationResult) => {
4937
4826
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -4942,14 +4831,14 @@ var useUpdateAffiliateDetails = () => {
4942
4831
  return { error, loading, updateAffiliateDetails };
4943
4832
  };
4944
4833
  var useDeleteAffiliate = () => {
4945
- const [deleteAffiliate, { loading, error }] = (0, import_client78.useMutation)(DELETE_AFFILIATE_MUTATION, {
4834
+ const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
4946
4835
  awaitRefetchQueries: true,
4947
4836
  refetchQueries: [{ query: GET_AFFILIATES }]
4948
4837
  });
4949
4838
  return { deleteAffiliate, error, loading };
4950
4839
  };
4951
4840
  var useRedeemAffiliateReward = () => {
4952
- const [redeemAffiliateReward, { loading, error }] = (0, import_client78.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4841
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4953
4842
  awaitRefetchQueries: true,
4954
4843
  refetchQueries: (mutationResult) => {
4955
4844
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -4960,7 +4849,7 @@ var useRedeemAffiliateReward = () => {
4960
4849
  return { error, loading, redeemAffiliateReward };
4961
4850
  };
4962
4851
  var useAssignAffiliateResourceReward = () => {
4963
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4852
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4964
4853
  awaitRefetchQueries: true,
4965
4854
  refetchQueries: (mutationResult) => {
4966
4855
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -4971,7 +4860,7 @@ var useAssignAffiliateResourceReward = () => {
4971
4860
  return { assignAffiliateResourceReward, error, loading };
4972
4861
  };
4973
4862
  var useAssignAffiliateBonusReward = () => {
4974
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4863
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4975
4864
  awaitRefetchQueries: true,
4976
4865
  refetchQueries: (mutationResult) => {
4977
4866
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -4987,6 +4876,120 @@ var import_client80 = require("@apollo/client");
4987
4876
 
4988
4877
  // src/graphql/mutations/coupon.ts
4989
4878
  var import_client79 = require("@apollo/client");
4879
+
4880
+ // src/graphql/queries/coupon.ts
4881
+ var import_client78 = require("@apollo/client");
4882
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
4883
+ fragment CouponCodeFields on CouponCodeType {
4884
+ code
4885
+ qrCode {
4886
+ ...ResourceImageFields
4887
+ }
4888
+ }
4889
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4890
+ `;
4891
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
4892
+ fragment CouponParticipantUserFields on CouponParticipantUserType {
4893
+ couponCollectedCount
4894
+ couponRedeemedAt
4895
+ createdAt
4896
+ updatedAt
4897
+ userId
4898
+ }
4899
+ `;
4900
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client78.gql`
4901
+ fragment CouponOptionFields on CouponOptionType {
4902
+ type
4903
+ buy
4904
+ get
4905
+ unit
4906
+ visits
4907
+ }
4908
+ `;
4909
+ var COUPON_REWARD_FIELDS_FRAGMENT = import_client78.gql`
4910
+ fragment CouponRewardFields on CouponRewardType {
4911
+ vendorId
4912
+ productId
4913
+ quantity
4914
+ unit
4915
+ }
4916
+ `;
4917
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client78.gql`
4918
+ fragment CouponDataFields on CouponDataType {
4919
+ _id
4920
+ active
4921
+ couponCode {
4922
+ ...CouponCodeFields
4923
+ }
4924
+ couponDescription
4925
+ couponOption {
4926
+ ...CouponOptionFields
4927
+ }
4928
+ couponRewards {
4929
+ ...CouponRewardFields
4930
+ }
4931
+ createdAt
4932
+ endDate
4933
+ participantUsers {
4934
+ ...CouponParticipantUserFields
4935
+ }
4936
+ products {
4937
+ ...VendorProductsFields
4938
+ }
4939
+ resourceId
4940
+ resourceType
4941
+ startDate
4942
+ updatedAt
4943
+ }
4944
+ ${COUPON_CODE_FIELDS_FRAGMENT}
4945
+ ${COUPON_OPTION_FIELDS_FRAGMENT}
4946
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4947
+ ${COUPON_REWARD_FIELDS_FRAGMENT}
4948
+ ${VENDOR_PRODUCTS_FIELDS_FRAGMENT}
4949
+ `;
4950
+ var COUPON = import_client78.gql`
4951
+ fragment CouponFields on CouponType {
4952
+ _id
4953
+ active
4954
+ couponData {
4955
+ ...CouponDataFields
4956
+ }
4957
+ createdAt
4958
+ deletedAt
4959
+ owner {
4960
+ ...OwnerFields
4961
+ }
4962
+ updatedAt
4963
+ }
4964
+ ${OWNER_FIELDS_FRAGMENT}
4965
+ ${COUPON_DATA_FIELDS_FRAGMENT}
4966
+ `;
4967
+ var GET_COUPONS = import_client78.gql`
4968
+ query getCoupons {
4969
+ coupons {
4970
+ ...CouponFields
4971
+ }
4972
+ }
4973
+ ${COUPON}
4974
+ `;
4975
+ var GET_COUPON = import_client78.gql`
4976
+ query getCoupon($_id: ID!) {
4977
+ coupon(_id: $_id) {
4978
+ ...CouponFields
4979
+ }
4980
+ }
4981
+ ${COUPON}
4982
+ `;
4983
+ var GET_RESOURCE_COUPONS = import_client78.gql`
4984
+ query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
4985
+ resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
4986
+ ...CouponFields
4987
+ }
4988
+ }
4989
+ ${COUPON}
4990
+ `;
4991
+
4992
+ // src/graphql/mutations/coupon.ts
4990
4993
  var CREATE_COUPON_MUTATION = import_client79.gql`
4991
4994
  mutation createCoupon($input: CouponInputType!) {
4992
4995
  createCoupon(input: $input) {