@timardex/cluemart-shared 1.7.26 → 1.7.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/{ad-xMotoDzt.d.ts → ad-CQrQILqt.d.ts} +2 -2
  2. package/dist/{ad-BNumAVY7.d.mts → ad-DaMV_FdN.d.mts} +2 -2
  3. package/dist/{coupon-CqCTYMW1.d.ts → affiliate-BjNe7vrz.d.ts} +3 -47
  4. package/dist/{coupon-O__x-VRW.d.mts → affiliate-CRzUWMPv.d.mts} +3 -47
  5. package/dist/auth/index.cjs +118 -26
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-336EZBSA.mjs → chunk-2KVUR42L.mjs} +9 -85
  11. package/dist/chunk-2KVUR42L.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-PACEDU64.mjs} +11 -6
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-PACEDU64.mjs.map} +1 -1
  14. package/dist/{chunk-WPBHYGXW.mjs → chunk-PFY3LS6P.mjs} +120 -26
  15. package/dist/chunk-PFY3LS6P.mjs.map +1 -0
  16. package/dist/{contactUs-BJiiMuGX.d.ts → contactUs-BCkSecPW.d.ts} +1 -1
  17. package/dist/{contactUs-5t9rb3U4.d.mts → contactUs-ryrB_j4c.d.mts} +1 -1
  18. package/dist/formFields/index.d.mts +1 -1
  19. package/dist/formFields/index.d.ts +1 -1
  20. package/dist/formFields/index.mjs +1 -1
  21. package/dist/{global-B6VyEshc.d.ts → global-CF8hwvkc.d.ts} +51 -1
  22. package/dist/{global-BKGlrm75.d.mts → global-Ch11tfC6.d.mts} +51 -1
  23. package/dist/graphql/index.cjs +499 -485
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +5 -5
  26. package/dist/graphql/index.d.ts +5 -5
  27. package/dist/graphql/index.mjs +2 -2
  28. package/dist/hooks/index.cjs +353 -339
  29. package/dist/hooks/index.cjs.map +1 -1
  30. package/dist/hooks/index.d.mts +8 -8
  31. package/dist/hooks/index.d.ts +8 -8
  32. package/dist/hooks/index.mjs +4 -4
  33. package/dist/hooks/index.mjs.map +1 -1
  34. package/dist/index.cjs +510 -491
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.mts +53 -46
  37. package/dist/index.d.ts +53 -46
  38. package/dist/index.mjs +326 -307
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/map/index.d.mts +1 -1
  41. package/dist/map/index.d.ts +1 -1
  42. package/dist/{resourceActivities-HkorPbJU.d.ts → resourceActivities-2SjrHpuU.d.ts} +1 -1
  43. package/dist/{resourceActivities-l4Q014eT.d.mts → resourceActivities-isol6rr_.d.mts} +1 -1
  44. package/dist/sharing/index.d.mts +1 -1
  45. package/dist/sharing/index.d.ts +1 -1
  46. package/dist/types/index.d.mts +7 -7
  47. package/dist/types/index.d.ts +7 -7
  48. package/dist/{user-Cg80mIww.d.ts → user-BdvV_3eW.d.ts} +2 -1
  49. package/dist/{user-go-eqanx.d.mts → user-CFVqH8Xk.d.mts} +2 -1
  50. package/dist/utils/index.cjs +11 -6
  51. package/dist/utils/index.cjs.map +1 -1
  52. package/dist/utils/index.d.mts +5 -5
  53. package/dist/utils/index.d.ts +5 -5
  54. package/dist/utils/index.mjs +3 -3
  55. package/package.json +1 -1
  56. package/dist/chunk-336EZBSA.mjs.map +0 -1
  57. package/dist/chunk-WPBHYGXW.mjs.map +0 -1
@@ -345,6 +345,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
345
345
  avatar {
346
346
  ...ResourceImageFields
347
347
  }
348
+ coupon
348
349
  createdAt
349
350
  deletedAt
350
351
  email
@@ -695,8 +696,95 @@ var GET_EVENT_INFO = import_client2.gql`
695
696
  `;
696
697
 
697
698
  // src/graphql/queries/vendor.ts
699
+ var import_client4 = require("@apollo/client");
700
+
701
+ // src/graphql/queries/coupon.ts
698
702
  var import_client3 = require("@apollo/client");
699
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
703
+ var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client3.gql`
704
+ fragment ProductCouponFields on ProductCouponType {
705
+ couponDocumentId
706
+ couponId
707
+ }
708
+ `;
709
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client3.gql`
710
+ fragment CouponCodeFields on CouponCodeType {
711
+ code
712
+ qrCode {
713
+ ...ResourceImageFields
714
+ }
715
+ }
716
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
717
+ `;
718
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client3.gql`
719
+ fragment CouponParticipantUserFields on CouponParticipantUserType {
720
+ couponCollectedCount
721
+ couponRedeemedAt
722
+ createdAt
723
+ updatedAt
724
+ userId
725
+ }
726
+ `;
727
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
728
+ fragment CouponDataFields on CouponDataType {
729
+ _id
730
+ active
731
+ couponCode {
732
+ ...CouponCodeFields
733
+ }
734
+ couponDescription
735
+ couponOption
736
+ createdAt
737
+ endDate
738
+ participantProductId
739
+ participantUsers {
740
+ ...CouponParticipantUserFields
741
+ }
742
+ resourceId
743
+ resourceType
744
+ startDate
745
+ updatedAt
746
+ }
747
+ ${COUPON_CODE_FIELDS_FRAGMENT}
748
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
749
+ `;
750
+ var COUPON = import_client3.gql`
751
+ fragment CouponFields on CouponType {
752
+ _id
753
+ active
754
+ couponData {
755
+ ...CouponDataFields
756
+ }
757
+ createdAt
758
+ deletedAt
759
+ owner {
760
+ ...OwnerFields
761
+ }
762
+ updatedAt
763
+ }
764
+ ${OWNER_FIELDS_FRAGMENT}
765
+ ${COUPON_DATA_FIELDS_FRAGMENT}
766
+ ${COUPON_CODE_FIELDS_FRAGMENT}
767
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
768
+ `;
769
+ var GET_COUPONS = import_client3.gql`
770
+ query getCoupons {
771
+ coupons {
772
+ ...CouponFields
773
+ }
774
+ }
775
+ ${COUPON}
776
+ `;
777
+ var GET_COUPON = import_client3.gql`
778
+ query getCoupon($_id: ID!) {
779
+ coupon(_id: $_id) {
780
+ ...CouponFields
781
+ }
782
+ }
783
+ ${COUPON}
784
+ `;
785
+
786
+ // src/graphql/queries/vendor.ts
787
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
700
788
  fragment VendorDateTimeFields on VendorDateTimeType {
701
789
  dateStatus
702
790
  endDate
@@ -705,9 +793,12 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
705
793
  startTime
706
794
  }
707
795
  `;
708
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
796
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
709
797
  fragment VendorProductListFields on VendorProductListType {
710
798
  _id
799
+ coupon {
800
+ ...ProductCouponFields
801
+ }
711
802
  createdAt
712
803
  description
713
804
  name
@@ -716,8 +807,9 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
716
807
  productGroups
717
808
  updatedAt
718
809
  }
810
+ ${PRODUCT_COUPON_FIELDS_FRAGMENT}
719
811
  `;
720
- var VENDOR = import_client3.gql`
812
+ var VENDOR = import_client4.gql`
721
813
  fragment VendorFields on VendorType {
722
814
  _id
723
815
  active
@@ -818,13 +910,13 @@ var VENDOR = import_client3.gql`
818
910
  ${RELATED_POST_FIELDS_FRAGMENT}
819
911
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
820
912
  `;
821
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
913
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
822
914
  fragment VendorAttributesFields on VendorAttributesType {
823
915
  details
824
916
  isRequired
825
917
  }
826
918
  `;
827
- var VENDOR_INFO = import_client3.gql`
919
+ var VENDOR_INFO = import_client4.gql`
828
920
  fragment VendorInfoFields on VendorInfoType {
829
921
  _id
830
922
  compliance {
@@ -865,7 +957,7 @@ var VENDOR_INFO = import_client3.gql`
865
957
  ${VENDOR_ATTRIBUTES_FRAGMENT}
866
958
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
867
959
  `;
868
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
960
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
869
961
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
870
962
  dateTime {
871
963
  ...DateTimeFields
@@ -874,7 +966,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
874
966
  }
875
967
  ${DATETIME_FIELDS_FRAGMENT}
876
968
  `;
877
- var UNREGISTERED_VENDOR = import_client3.gql`
969
+ var UNREGISTERED_VENDOR = import_client4.gql`
878
970
  fragment UnregisteredVendorFields on UnregisteredVendorType {
879
971
  _id
880
972
  active
@@ -894,7 +986,7 @@ var UNREGISTERED_VENDOR = import_client3.gql`
894
986
  }
895
987
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
896
988
  `;
897
- var GET_VENDORS = import_client3.gql`
989
+ var GET_VENDORS = import_client4.gql`
898
990
  query getVendors {
899
991
  vendors {
900
992
  ...VendorFields
@@ -902,7 +994,7 @@ var GET_VENDORS = import_client3.gql`
902
994
  }
903
995
  ${VENDOR}
904
996
  `;
905
- var GET_VENDOR = import_client3.gql`
997
+ var GET_VENDOR = import_client4.gql`
906
998
  query getVendor($_id: ID!) {
907
999
  vendor(_id: $_id) {
908
1000
  ...VendorFields
@@ -910,7 +1002,7 @@ var GET_VENDOR = import_client3.gql`
910
1002
  }
911
1003
  ${VENDOR}
912
1004
  `;
913
- var GET_VENDORS_BY_REGION = import_client3.gql`
1005
+ var GET_VENDORS_BY_REGION = import_client4.gql`
914
1006
  query getVendorsByRegion(
915
1007
  $region: String!
916
1008
  $options: ResourcesByRegionOptions
@@ -921,7 +1013,7 @@ var GET_VENDORS_BY_REGION = import_client3.gql`
921
1013
  }
922
1014
  ${VENDOR}
923
1015
  `;
924
- var SEARCH_VENDORS = import_client3.gql`
1016
+ var SEARCH_VENDORS = import_client4.gql`
925
1017
  query searchVendors($search: String!, $region: String!) {
926
1018
  vendorSearch(search: $search, region: $region) {
927
1019
  ...VendorFields
@@ -929,7 +1021,7 @@ var SEARCH_VENDORS = import_client3.gql`
929
1021
  }
930
1022
  ${VENDOR}
931
1023
  `;
932
- var GET_VENDOR_INFO = import_client3.gql`
1024
+ var GET_VENDOR_INFO = import_client4.gql`
933
1025
  query getVendorInfo($vendorId: ID!) {
934
1026
  vendorInfo(vendorId: $vendorId) {
935
1027
  ...VendorInfoFields
@@ -937,7 +1029,7 @@ var GET_VENDOR_INFO = import_client3.gql`
937
1029
  }
938
1030
  ${VENDOR_INFO}
939
1031
  `;
940
- var GET_UNREGISTERED_VENDORS = import_client3.gql`
1032
+ var GET_UNREGISTERED_VENDORS = import_client4.gql`
941
1033
  query getUnregisteredVendors {
942
1034
  unregisteredVendors {
943
1035
  ...UnregisteredVendorFields
@@ -945,7 +1037,7 @@ var GET_UNREGISTERED_VENDORS = import_client3.gql`
945
1037
  }
946
1038
  ${UNREGISTERED_VENDOR}
947
1039
  `;
948
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
1040
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
949
1041
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
950
1042
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
951
1043
  ...UnregisteredVendorFields
@@ -953,7 +1045,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
953
1045
  }
954
1046
  ${UNREGISTERED_VENDOR}
955
1047
  `;
956
- var GET_UNREGISTERED_VENDOR = import_client3.gql`
1048
+ var GET_UNREGISTERED_VENDOR = import_client4.gql`
957
1049
  query getUnregisteredVendor($_id: ID!) {
958
1050
  unregisteredVendor(_id: $_id) {
959
1051
  ...UnregisteredVendorFields
@@ -961,7 +1053,7 @@ var GET_UNREGISTERED_VENDOR = import_client3.gql`
961
1053
  }
962
1054
  ${UNREGISTERED_VENDOR}
963
1055
  `;
964
- var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
1056
+ var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
965
1057
  query myPendingVendorClaim {
966
1058
  myPendingVendorClaim {
967
1059
  _id
@@ -972,8 +1064,8 @@ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
972
1064
  `;
973
1065
 
974
1066
  // src/graphql/mutations/vendor.ts
975
- var import_client4 = require("@apollo/client");
976
- var CREATE_VENDOR_MUTATION = import_client4.gql`
1067
+ var import_client5 = require("@apollo/client");
1068
+ var CREATE_VENDOR_MUTATION = import_client5.gql`
977
1069
  mutation createVendor($input: VendorInputType!) {
978
1070
  createVendor(input: $input) {
979
1071
  data {
@@ -984,7 +1076,7 @@ var CREATE_VENDOR_MUTATION = import_client4.gql`
984
1076
  }
985
1077
  ${VENDOR}
986
1078
  `;
987
- var UPDATE_VENDOR_MUTATION = import_client4.gql`
1079
+ var UPDATE_VENDOR_MUTATION = import_client5.gql`
988
1080
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
989
1081
  updateVendor(_id: $_id, input: $input) {
990
1082
  data {
@@ -995,7 +1087,7 @@ var UPDATE_VENDOR_MUTATION = import_client4.gql`
995
1087
  }
996
1088
  ${VENDOR}
997
1089
  `;
998
- var DELETE_VENDOR_MUTATION = import_client4.gql`
1090
+ var DELETE_VENDOR_MUTATION = import_client5.gql`
999
1091
  mutation deleteVendor($_id: ID!) {
1000
1092
  deleteVendor(_id: $_id) {
1001
1093
  data
@@ -1003,7 +1095,7 @@ var DELETE_VENDOR_MUTATION = import_client4.gql`
1003
1095
  }
1004
1096
  }
1005
1097
  `;
1006
- var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
1098
+ var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
1007
1099
  mutation createVendorInfo($input: VendorInfoInputType!) {
1008
1100
  createVendorInfo(input: $input) {
1009
1101
  data {
@@ -1014,7 +1106,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
1014
1106
  }
1015
1107
  ${VENDOR_INFO}
1016
1108
  `;
1017
- var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
1109
+ var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
1018
1110
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1019
1111
  updateVendorInfo(_id: $_id, input: $input) {
1020
1112
  data {
@@ -1025,7 +1117,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
1025
1117
  }
1026
1118
  ${VENDOR_INFO}
1027
1119
  `;
1028
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1120
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1029
1121
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
1030
1122
  createUnregisteredVendor(input: $input) {
1031
1123
  data {
@@ -1036,7 +1128,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1036
1128
  }
1037
1129
  ${UNREGISTERED_VENDOR}
1038
1130
  `;
1039
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1131
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1040
1132
  mutation updateUnregisteredVendor(
1041
1133
  $_id: ID!
1042
1134
  $input: UnregisteredVendorInputType!
@@ -1050,7 +1142,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1050
1142
  }
1051
1143
  ${UNREGISTERED_VENDOR}
1052
1144
  `;
1053
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1145
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1054
1146
  mutation deleteUnregisteredVendor($_id: ID!) {
1055
1147
  deleteUnregisteredVendor(_id: $_id) {
1056
1148
  data
@@ -1058,7 +1150,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1058
1150
  }
1059
1151
  }
1060
1152
  `;
1061
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
1153
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
1062
1154
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
1063
1155
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
1064
1156
  data
@@ -1066,7 +1158,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
1066
1158
  }
1067
1159
  }
1068
1160
  `;
1069
- var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
1161
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
1070
1162
  mutation activateVendorClaim($token: String!) {
1071
1163
  activateVendorClaim(token: $token) {
1072
1164
  valid
@@ -1076,8 +1168,8 @@ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
1076
1168
  `;
1077
1169
 
1078
1170
  // src/graphql/queries/partner.ts
1079
- var import_client5 = require("@apollo/client");
1080
- var PARTNER = import_client5.gql`
1171
+ var import_client6 = require("@apollo/client");
1172
+ var PARTNER = import_client6.gql`
1081
1173
  fragment PartnerFields on PartnerType {
1082
1174
  _id
1083
1175
  active
@@ -1138,7 +1230,7 @@ var PARTNER = import_client5.gql`
1138
1230
  ${RELATED_POST_FIELDS_FRAGMENT}
1139
1231
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1140
1232
  `;
1141
- var GET_PARTNERS = import_client5.gql`
1233
+ var GET_PARTNERS = import_client6.gql`
1142
1234
  query getPartners {
1143
1235
  partners {
1144
1236
  ...PartnerFields
@@ -1146,7 +1238,7 @@ var GET_PARTNERS = import_client5.gql`
1146
1238
  }
1147
1239
  ${PARTNER}
1148
1240
  `;
1149
- var GET_PARTNER = import_client5.gql`
1241
+ var GET_PARTNER = import_client6.gql`
1150
1242
  query getPartner($_id: ID!) {
1151
1243
  partner(_id: $_id) {
1152
1244
  ...PartnerFields
@@ -1154,7 +1246,7 @@ var GET_PARTNER = import_client5.gql`
1154
1246
  }
1155
1247
  ${PARTNER}
1156
1248
  `;
1157
- var GET_PARTNERS_BY_REGION = import_client5.gql`
1249
+ var GET_PARTNERS_BY_REGION = import_client6.gql`
1158
1250
  query getPartnersByRegion(
1159
1251
  $region: String!
1160
1252
  $options: ResourcesByRegionOptions
@@ -1165,7 +1257,7 @@ var GET_PARTNERS_BY_REGION = import_client5.gql`
1165
1257
  }
1166
1258
  ${PARTNER}
1167
1259
  `;
1168
- var SEARCH_PARTNERS = import_client5.gql`
1260
+ var SEARCH_PARTNERS = import_client6.gql`
1169
1261
  query searchPartners($search: String!, $region: String!) {
1170
1262
  partnersSearch(search: $search, region: $region) {
1171
1263
  ...PartnerFields
@@ -1175,17 +1267,17 @@ var SEARCH_PARTNERS = import_client5.gql`
1175
1267
  `;
1176
1268
 
1177
1269
  // src/graphql/queries/post.ts
1178
- var import_client8 = require("@apollo/client");
1270
+ var import_client9 = require("@apollo/client");
1179
1271
 
1180
1272
  // src/graphql/queries/game/dailyClue.ts
1181
- var import_client6 = require("@apollo/client");
1182
- var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
1273
+ var import_client7 = require("@apollo/client");
1274
+ var GAME_DATE_FIELDS_FRAGMENT = import_client7.gql`
1183
1275
  fragment GameDateFields on GameDateType {
1184
1276
  startDate
1185
1277
  endDate
1186
1278
  }
1187
1279
  `;
1188
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1280
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1189
1281
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
1190
1282
  gameDate {
1191
1283
  ...GameDateFields
@@ -1194,7 +1286,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1194
1286
  }
1195
1287
  ${GAME_DATE_FIELDS_FRAGMENT}
1196
1288
  `;
1197
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1289
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1198
1290
  fragment DailyClueGameDataFields on DailyClueGameDataType {
1199
1291
  gameFields {
1200
1292
  ...DailyClueBaseGameFields
@@ -1214,15 +1306,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1214
1306
  `;
1215
1307
 
1216
1308
  // src/graphql/queries/game/puzzleGame.ts
1217
- var import_client7 = require("@apollo/client");
1218
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
1309
+ var import_client8 = require("@apollo/client");
1310
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client8.gql`
1219
1311
  fragment PuzzleAnswerFields on PuzzleAnswerType {
1220
1312
  answer
1221
1313
  answerId
1222
1314
  correct
1223
1315
  }
1224
1316
  `;
1225
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1317
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1226
1318
  fragment PuzzleQuestionFields on PuzzleQuestionType {
1227
1319
  answers {
1228
1320
  ...PuzzleAnswerFields
@@ -1232,13 +1324,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1232
1324
  }
1233
1325
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
1234
1326
  `;
1235
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1327
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1236
1328
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
1237
1329
  questionId
1238
1330
  selectedAnswerId
1239
1331
  }
1240
1332
  `;
1241
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1333
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1242
1334
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
1243
1335
  questions {
1244
1336
  ...PuzzleQuestionFields
@@ -1246,7 +1338,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1246
1338
  }
1247
1339
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
1248
1340
  `;
1249
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1341
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
1250
1342
  fragment PuzzleGameDataFields on PuzzleGameDataType {
1251
1343
  gameFields {
1252
1344
  ...PuzzleBaseGameFields
@@ -1262,7 +1354,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1262
1354
  `;
1263
1355
 
1264
1356
  // src/graphql/queries/post.ts
1265
- var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1357
+ var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
1266
1358
  fragment BaseGameFields on BaseGameType {
1267
1359
  gameTypeId
1268
1360
  gameTitle
@@ -1280,7 +1372,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1280
1372
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
1281
1373
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
1282
1374
  `;
1283
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
1375
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
1284
1376
  fragment PostContentDataFields on PostContentData {
1285
1377
  game {
1286
1378
  ...BaseGameFields
@@ -1306,7 +1398,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
1306
1398
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1307
1399
  ${BASE_GAME_FIELDS_FRAGMENT}
1308
1400
  `;
1309
- var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
1401
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
1310
1402
  fragment PostContentFields on PostContentType {
1311
1403
  contentData {
1312
1404
  ...PostContentDataFields
@@ -1316,7 +1408,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
1316
1408
  }
1317
1409
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
1318
1410
  `;
1319
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
1411
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
1320
1412
  fragment PostResourceFields on PostResourceType {
1321
1413
  resourceId
1322
1414
  resourceSlug
@@ -1324,7 +1416,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
1324
1416
  resourceType
1325
1417
  }
1326
1418
  `;
1327
- var POST_FIELDS_FRAGMENT = import_client8.gql`
1419
+ var POST_FIELDS_FRAGMENT = import_client9.gql`
1328
1420
  fragment PostFields on PostType {
1329
1421
  _id
1330
1422
  active
@@ -1355,7 +1447,7 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
1355
1447
  ${POST_RESOURCE_FIELDS_FRAGMENT}
1356
1448
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1357
1449
  `;
1358
- var GET_POSTS = import_client8.gql`
1450
+ var GET_POSTS = import_client9.gql`
1359
1451
  query getPosts {
1360
1452
  posts {
1361
1453
  ...PostFields
@@ -1363,7 +1455,7 @@ var GET_POSTS = import_client8.gql`
1363
1455
  }
1364
1456
  ${POST_FIELDS_FRAGMENT}
1365
1457
  `;
1366
- var GET_POST = import_client8.gql`
1458
+ var GET_POST = import_client9.gql`
1367
1459
  query getPost($_id: ID!) {
1368
1460
  post(_id: $_id) {
1369
1461
  ...PostFields
@@ -1371,7 +1463,7 @@ var GET_POST = import_client8.gql`
1371
1463
  }
1372
1464
  ${POST_FIELDS_FRAGMENT}
1373
1465
  `;
1374
- var GET_POSTS_BY_TYPE = import_client8.gql`
1466
+ var GET_POSTS_BY_TYPE = import_client9.gql`
1375
1467
  query getPostsByType($postType: PostTypeEnum!) {
1376
1468
  postsByType(postType: $postType) {
1377
1469
  ...PostFields
@@ -1381,29 +1473,29 @@ var GET_POSTS_BY_TYPE = import_client8.gql`
1381
1473
  `;
1382
1474
 
1383
1475
  // src/graphql/queries/shareSlug.ts
1384
- var import_client9 = require("@apollo/client");
1385
- var GET_EVENT_BY_SLUG = import_client9.gql`
1476
+ var import_client10 = require("@apollo/client");
1477
+ var GET_EVENT_BY_SLUG = import_client10.gql`
1386
1478
  query getEventBySlug($slug: String!) {
1387
1479
  eventBySlug(slug: $slug) {
1388
1480
  _id
1389
1481
  }
1390
1482
  }
1391
1483
  `;
1392
- var GET_VENDOR_BY_SLUG = import_client9.gql`
1484
+ var GET_VENDOR_BY_SLUG = import_client10.gql`
1393
1485
  query getVendorBySlug($slug: String!) {
1394
1486
  vendorBySlug(slug: $slug) {
1395
1487
  _id
1396
1488
  }
1397
1489
  }
1398
1490
  `;
1399
- var GET_PARTNER_BY_SLUG = import_client9.gql`
1491
+ var GET_PARTNER_BY_SLUG = import_client10.gql`
1400
1492
  query getPartnerBySlug($slug: String!) {
1401
1493
  partnerBySlug(slug: $slug) {
1402
1494
  _id
1403
1495
  }
1404
1496
  }
1405
1497
  `;
1406
- var GET_POST_BY_SLUG = import_client9.gql`
1498
+ var GET_POST_BY_SLUG = import_client10.gql`
1407
1499
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
1408
1500
  postBySlug(slug: $slug, postType: $postType) {
1409
1501
  _id
@@ -1412,8 +1504,8 @@ var GET_POST_BY_SLUG = import_client9.gql`
1412
1504
  `;
1413
1505
 
1414
1506
  // src/graphql/queries/relation.ts
1415
- var import_client10 = require("@apollo/client");
1416
- var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1507
+ var import_client11 = require("@apollo/client");
1508
+ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
1417
1509
  fragment RelationFields on RelationType {
1418
1510
  _id
1419
1511
  active
@@ -1430,7 +1522,7 @@ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1430
1522
  }
1431
1523
  ${RELATION_DATES_FRAGMENT}
1432
1524
  `;
1433
- var GET_RELATION = import_client10.gql`
1525
+ var GET_RELATION = import_client11.gql`
1434
1526
  query getRelation($_id: ID!) {
1435
1527
  relation(_id: $_id) {
1436
1528
  ...RelationFields
@@ -1438,7 +1530,7 @@ var GET_RELATION = import_client10.gql`
1438
1530
  }
1439
1531
  ${RELATION_FIELDS_FRAGMENT}
1440
1532
  `;
1441
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1533
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
1442
1534
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1443
1535
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1444
1536
  ...RelationFields
@@ -1446,7 +1538,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1446
1538
  }
1447
1539
  ${RELATION_FIELDS_FRAGMENT}
1448
1540
  `;
1449
- var GET_EVENT_RELATIONS = import_client10.gql`
1541
+ var GET_EVENT_RELATIONS = import_client11.gql`
1450
1542
  query getEventRelations($eventId: ID!) {
1451
1543
  eventRelations(eventId: $eventId) {
1452
1544
  ...RelationFields
@@ -1454,7 +1546,7 @@ var GET_EVENT_RELATIONS = import_client10.gql`
1454
1546
  }
1455
1547
  ${RELATION_FIELDS_FRAGMENT}
1456
1548
  `;
1457
- var GET_VENDOR_RELATIONS = import_client10.gql`
1549
+ var GET_VENDOR_RELATIONS = import_client11.gql`
1458
1550
  query getVendorRelations($vendorId: ID!) {
1459
1551
  vendorRelations(vendorId: $vendorId) {
1460
1552
  ...RelationFields
@@ -1462,7 +1554,7 @@ var GET_VENDOR_RELATIONS = import_client10.gql`
1462
1554
  }
1463
1555
  ${RELATION_FIELDS_FRAGMENT}
1464
1556
  `;
1465
- var GET_RESOURCE_CONNECTIONS = import_client10.gql`
1557
+ var GET_RESOURCE_CONNECTIONS = import_client11.gql`
1466
1558
  query getResourceConnections(
1467
1559
  $resourceId: ID!
1468
1560
  $resourceType: ResourceTypeEnum!
@@ -1487,11 +1579,11 @@ function toGraphqlQueryString(query) {
1487
1579
  }
1488
1580
 
1489
1581
  // src/graphql/hooks/admin/hooksMutation.ts
1490
- var import_client12 = require("@apollo/client");
1582
+ var import_client13 = require("@apollo/client");
1491
1583
 
1492
1584
  // src/graphql/mutations/admin.ts
1493
- var import_client11 = require("@apollo/client");
1494
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1585
+ var import_client12 = require("@apollo/client");
1586
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
1495
1587
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
1496
1588
  adminUpdateResourceType(input: $input) {
1497
1589
  data {
@@ -1503,7 +1595,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1503
1595
  }
1504
1596
  }
1505
1597
  `;
1506
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1598
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
1507
1599
  mutation adminResendUserVerificationEmail($userId: ID!) {
1508
1600
  adminResendUserVerificationEmail(userId: $userId) {
1509
1601
  data
@@ -1511,7 +1603,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1511
1603
  }
1512
1604
  }
1513
1605
  `;
1514
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1606
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
1515
1607
  mutation adminPermanentlyDeleteResource(
1516
1608
  $resourceId: ID!
1517
1609
  $resourceType: ResourceTypeEnum!
@@ -1528,7 +1620,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1528
1620
 
1529
1621
  // src/graphql/hooks/admin/hooksMutation.ts
1530
1622
  var useAdminUpdateResourceType = () => {
1531
- const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1623
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1532
1624
  awaitRefetchQueries: true,
1533
1625
  refetchQueries: (mutationResult) => {
1534
1626
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -1551,7 +1643,7 @@ var useAdminUpdateResourceType = () => {
1551
1643
  };
1552
1644
  };
1553
1645
  var useAdminResendUserVerificationEmail = () => {
1554
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1646
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1555
1647
  return {
1556
1648
  adminResendUserVerificationEmail,
1557
1649
  error,
@@ -1559,7 +1651,7 @@ var useAdminResendUserVerificationEmail = () => {
1559
1651
  };
1560
1652
  };
1561
1653
  var useAdminPermanentlyDeleteResource = () => {
1562
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1654
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1563
1655
  return {
1564
1656
  adminPermanentlyDeleteResource,
1565
1657
  error,
@@ -1568,11 +1660,11 @@ var useAdminPermanentlyDeleteResource = () => {
1568
1660
  };
1569
1661
 
1570
1662
  // src/graphql/hooks/auth.ts
1571
- var import_client14 = require("@apollo/client");
1663
+ var import_client15 = require("@apollo/client");
1572
1664
 
1573
1665
  // src/graphql/mutations/auth.ts
1574
- var import_client13 = require("@apollo/client");
1575
- var REGISTER_MUTATION = import_client13.gql`
1666
+ var import_client14 = require("@apollo/client");
1667
+ var REGISTER_MUTATION = import_client14.gql`
1576
1668
  mutation register($input: RegisterInputType!) {
1577
1669
  register(input: $input) {
1578
1670
  data {
@@ -1587,7 +1679,7 @@ var REGISTER_MUTATION = import_client13.gql`
1587
1679
  }
1588
1680
  ${USER_FIELDS_FRAGMENT}
1589
1681
  `;
1590
- var LOGIN_MUTATION = import_client13.gql`
1682
+ var LOGIN_MUTATION = import_client14.gql`
1591
1683
  mutation login($input: LoginInputType!) {
1592
1684
  login(input: $input) {
1593
1685
  data {
@@ -1602,7 +1694,7 @@ var LOGIN_MUTATION = import_client13.gql`
1602
1694
  }
1603
1695
  ${USER_FIELDS_FRAGMENT}
1604
1696
  `;
1605
- var LOGOUT_MUTATION = import_client13.gql`
1697
+ var LOGOUT_MUTATION = import_client14.gql`
1606
1698
  mutation logout {
1607
1699
  logout {
1608
1700
  data
@@ -1610,7 +1702,7 @@ var LOGOUT_MUTATION = import_client13.gql`
1610
1702
  }
1611
1703
  }
1612
1704
  `;
1613
- var REFRESH_TOKEN_MUTATION = import_client13.gql`
1705
+ var REFRESH_TOKEN_MUTATION = import_client14.gql`
1614
1706
  mutation refreshToken($input: RefreshTokenInputType!) {
1615
1707
  refreshToken(input: $input) {
1616
1708
  data {
@@ -1621,7 +1713,7 @@ var REFRESH_TOKEN_MUTATION = import_client13.gql`
1621
1713
  }
1622
1714
  }
1623
1715
  `;
1624
- var RESET_PASSWORD_MUTATION = import_client13.gql`
1716
+ var RESET_PASSWORD_MUTATION = import_client14.gql`
1625
1717
  mutation resetPassword($input: ResetPasswordInputType!) {
1626
1718
  resetPassword(input: $input) {
1627
1719
  data
@@ -1629,7 +1721,7 @@ var RESET_PASSWORD_MUTATION = import_client13.gql`
1629
1721
  }
1630
1722
  }
1631
1723
  `;
1632
- var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1724
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
1633
1725
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
1634
1726
  requestPasswordReset(input: $input) {
1635
1727
  data
@@ -1637,7 +1729,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1637
1729
  }
1638
1730
  }
1639
1731
  `;
1640
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1732
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
1641
1733
  mutation validateVerificationToken(
1642
1734
  $input: ValidateVerificationTokenInputType!
1643
1735
  ) {
@@ -1650,43 +1742,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1650
1742
 
1651
1743
  // src/graphql/hooks/auth.ts
1652
1744
  var useRegister = () => {
1653
- const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
1745
+ const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
1654
1746
  return { error, loading, register };
1655
1747
  };
1656
1748
  var useLogin = () => {
1657
- const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
1749
+ const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
1658
1750
  return { error, loading, login };
1659
1751
  };
1660
1752
  var useLogout = () => {
1661
- const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
1753
+ const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
1662
1754
  return { error, loading, logout };
1663
1755
  };
1664
1756
  var useRefreshToken = () => {
1665
- const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
1757
+ const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
1666
1758
  return { error, loading, refreshToken };
1667
1759
  };
1668
1760
  var useRequestPasswordReset = () => {
1669
- const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1761
+ const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1670
1762
  return { error, loading, requestPasswordReset };
1671
1763
  };
1672
1764
  var useValidateVerificationToken = () => {
1673
- const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1765
+ const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1674
1766
  return { error, loading, validateVerificationToken };
1675
1767
  };
1676
1768
  var useResetPassword = () => {
1677
- const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
1769
+ const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
1678
1770
  return { error, loading, resetPassword };
1679
1771
  };
1680
1772
 
1681
1773
  // src/graphql/hooks/chat/hooksMutation.ts
1682
- var import_client17 = require("@apollo/client");
1774
+ var import_client18 = require("@apollo/client");
1683
1775
 
1684
1776
  // src/graphql/mutations/chat.ts
1685
- var import_client16 = require("@apollo/client");
1777
+ var import_client17 = require("@apollo/client");
1686
1778
 
1687
1779
  // src/graphql/queries/chat.ts
1688
- var import_client15 = require("@apollo/client");
1689
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1780
+ var import_client16 = require("@apollo/client");
1781
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
1690
1782
  fragment ChatMessageFields on ChatMessageType {
1691
1783
  _id
1692
1784
  content
@@ -1709,7 +1801,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1709
1801
  updatedAt
1710
1802
  }
1711
1803
  `;
1712
- var CHAT_PARTICIPANT = import_client15.gql`
1804
+ var CHAT_PARTICIPANT = import_client16.gql`
1713
1805
  fragment ChatParticipantFields on ChatParticipantType {
1714
1806
  active
1715
1807
  userAvatar
@@ -1718,7 +1810,7 @@ var CHAT_PARTICIPANT = import_client15.gql`
1718
1810
  userName
1719
1811
  }
1720
1812
  `;
1721
- var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1813
+ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
1722
1814
  fragment ChatFields on ChatType {
1723
1815
  _id
1724
1816
  active
@@ -1739,7 +1831,7 @@ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1739
1831
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1740
1832
  ${CHAT_PARTICIPANT}
1741
1833
  `;
1742
- var CHAT = import_client15.gql`
1834
+ var CHAT = import_client16.gql`
1743
1835
  query chat($_id: ID!) {
1744
1836
  chat(_id: $_id) {
1745
1837
  ...ChatFields
@@ -1747,7 +1839,7 @@ var CHAT = import_client15.gql`
1747
1839
  }
1748
1840
  ${CHAT_FIELDS_FRAGMENT}
1749
1841
  `;
1750
- var PRIVATE_CHATS = import_client15.gql`
1842
+ var PRIVATE_CHATS = import_client16.gql`
1751
1843
  query privateChats {
1752
1844
  privateChats {
1753
1845
  ...ChatFields
@@ -1755,7 +1847,7 @@ var PRIVATE_CHATS = import_client15.gql`
1755
1847
  }
1756
1848
  ${CHAT_FIELDS_FRAGMENT}
1757
1849
  `;
1758
- var RELATION_CHATS = import_client15.gql`
1850
+ var RELATION_CHATS = import_client16.gql`
1759
1851
  query relationChats {
1760
1852
  relationChats {
1761
1853
  ...ChatFields
@@ -1763,7 +1855,7 @@ var RELATION_CHATS = import_client15.gql`
1763
1855
  }
1764
1856
  ${CHAT_FIELDS_FRAGMENT}
1765
1857
  `;
1766
- var GET_CHATS_BY_REGION = import_client15.gql`
1858
+ var GET_CHATS_BY_REGION = import_client16.gql`
1767
1859
  query getChatsByRegion($region: String!) {
1768
1860
  chatsByRegion(region: $region) {
1769
1861
  ...ChatFields
@@ -1771,7 +1863,7 @@ var GET_CHATS_BY_REGION = import_client15.gql`
1771
1863
  }
1772
1864
  ${CHAT_FIELDS_FRAGMENT}
1773
1865
  `;
1774
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1866
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
1775
1867
  fragment ChatReportFields on ReportChatUserType {
1776
1868
  _id
1777
1869
  chatId
@@ -1786,7 +1878,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1786
1878
  updatedAt
1787
1879
  }
1788
1880
  `;
1789
- var GET_REPORTED_CHAT_USERS = import_client15.gql`
1881
+ var GET_REPORTED_CHAT_USERS = import_client16.gql`
1790
1882
  query getReportedChatUsers {
1791
1883
  reportedChatUsers {
1792
1884
  ...ChatReportFields
@@ -1796,7 +1888,7 @@ var GET_REPORTED_CHAT_USERS = import_client15.gql`
1796
1888
  `;
1797
1889
 
1798
1890
  // src/graphql/mutations/chat.ts
1799
- var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1891
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
1800
1892
  mutation createPrivateChat($userId: ID!) {
1801
1893
  createPrivateChat(userId: $userId) {
1802
1894
  data {
@@ -1807,7 +1899,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1807
1899
  }
1808
1900
  ${CHAT_FIELDS_FRAGMENT}
1809
1901
  `;
1810
- var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1902
+ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
1811
1903
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1812
1904
  sendChatMessage(_id: $_id, input: $input) {
1813
1905
  data {
@@ -1818,7 +1910,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1818
1910
  }
1819
1911
  ${CHAT_FIELDS_FRAGMENT}
1820
1912
  `;
1821
- var DELETE_CHAT_MUTATION = import_client16.gql`
1913
+ var DELETE_CHAT_MUTATION = import_client17.gql`
1822
1914
  mutation deleteChat($_id: ID!) {
1823
1915
  deleteChat(_id: $_id) {
1824
1916
  data
@@ -1826,7 +1918,7 @@ var DELETE_CHAT_MUTATION = import_client16.gql`
1826
1918
  }
1827
1919
  }
1828
1920
  `;
1829
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1921
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
1830
1922
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
1831
1923
  addParticipantToChat(chatId: $chatId, userId: $userId) {
1832
1924
  data {
@@ -1837,7 +1929,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1837
1929
  }
1838
1930
  ${CHAT_FIELDS_FRAGMENT}
1839
1931
  `;
1840
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1932
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
1841
1933
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
1842
1934
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
1843
1935
  data {
@@ -1848,7 +1940,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1848
1940
  }
1849
1941
  }
1850
1942
  `;
1851
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1943
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
1852
1944
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
1853
1945
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
1854
1946
  data {
@@ -1859,7 +1951,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1859
1951
  }
1860
1952
  ${CHAT_FIELDS_FRAGMENT}
1861
1953
  `;
1862
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1954
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
1863
1955
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
1864
1956
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
1865
1957
  data {
@@ -1870,7 +1962,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1870
1962
  }
1871
1963
  ${CHAT_FIELDS_FRAGMENT}
1872
1964
  `;
1873
- var REPORT_CHAT_USER_MUTATION = import_client16.gql`
1965
+ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
1874
1966
  mutation reportChatUser($input: ReportChatUserInputType!) {
1875
1967
  reportChatUser(input: $input) {
1876
1968
  data {
@@ -1884,14 +1976,14 @@ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
1884
1976
 
1885
1977
  // src/graphql/hooks/chat/hooksMutation.ts
1886
1978
  var useCreatePrivateChat = () => {
1887
- const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1979
+ const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1888
1980
  awaitRefetchQueries: true,
1889
1981
  refetchQueries: [{ query: PRIVATE_CHATS }]
1890
1982
  });
1891
1983
  return { createPrivateChat, error, loading };
1892
1984
  };
1893
1985
  var useSendChatMessage = () => {
1894
- const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1986
+ const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1895
1987
  awaitRefetchQueries: true,
1896
1988
  refetchQueries: (mutationResult) => {
1897
1989
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -1906,14 +1998,14 @@ var useSendChatMessage = () => {
1906
1998
  return { error, loading, sendChatMessage };
1907
1999
  };
1908
2000
  var useDeleteChat = () => {
1909
- const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
2001
+ const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
1910
2002
  awaitRefetchQueries: true,
1911
2003
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
1912
2004
  });
1913
2005
  return { deleteChat, error, loading };
1914
2006
  };
1915
2007
  var useAddParticipantToChat = () => {
1916
- const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2008
+ const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1917
2009
  awaitRefetchQueries: true,
1918
2010
  refetchQueries: (mutationResult) => {
1919
2011
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -1934,7 +2026,7 @@ var useAddParticipantToChat = () => {
1934
2026
  return { addParticipantToChat, error, loading };
1935
2027
  };
1936
2028
  var useRemoveParticipantFromChat = () => {
1937
- const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2029
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1938
2030
  awaitRefetchQueries: true,
1939
2031
  refetchQueries: (mutationResult) => {
1940
2032
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -1954,7 +2046,7 @@ var useRemoveParticipantFromChat = () => {
1954
2046
  return { error, loading, removeParticipantFromChat };
1955
2047
  };
1956
2048
  var useToggleChatMessageLike = () => {
1957
- const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2049
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1958
2050
  awaitRefetchQueries: true,
1959
2051
  refetchQueries: (mutationResult) => {
1960
2052
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -1969,7 +2061,7 @@ var useToggleChatMessageLike = () => {
1969
2061
  return { error, loading, toggleChatMessageLike };
1970
2062
  };
1971
2063
  var useMarkChatMessagesSeen = () => {
1972
- const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2064
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
1973
2065
  awaitRefetchQueries: true,
1974
2066
  refetchQueries: (mutationResult) => {
1975
2067
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -1984,16 +2076,16 @@ var useMarkChatMessagesSeen = () => {
1984
2076
  return { error, loading, markChatMessagesSeen };
1985
2077
  };
1986
2078
  var useReportChatUser = () => {
1987
- const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
2079
+ const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
1988
2080
  return { error, loading, reportChatUser };
1989
2081
  };
1990
2082
 
1991
2083
  // src/graphql/hooks/chat/hooksQuery.ts
1992
- var import_client19 = require("@apollo/client");
2084
+ var import_client20 = require("@apollo/client");
1993
2085
 
1994
2086
  // src/graphql/subscriptions/chat.ts
1995
- var import_client18 = require("@apollo/client");
1996
- var GET_CHAT_MESSAGE = import_client18.gql`
2087
+ var import_client19 = require("@apollo/client");
2088
+ var GET_CHAT_MESSAGE = import_client19.gql`
1997
2089
  subscription {
1998
2090
  getChatMessage {
1999
2091
  ...ChatFields
@@ -2004,7 +2096,7 @@ var GET_CHAT_MESSAGE = import_client18.gql`
2004
2096
 
2005
2097
  // src/graphql/hooks/chat/hooksQuery.ts
2006
2098
  var useGetChat = (_id) => {
2007
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
2099
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
2008
2100
  fetchPolicy: "network-only",
2009
2101
  skip: !_id || _id === "",
2010
2102
  variables: { _id }
@@ -2013,28 +2105,28 @@ var useGetChat = (_id) => {
2013
2105
  return { chat, error, loading, refetch };
2014
2106
  };
2015
2107
  var useGetPrivateChats = () => {
2016
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
2108
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
2017
2109
  fetchPolicy: "network-only"
2018
2110
  });
2019
2111
  const privateChats = data?.privateChats || [];
2020
2112
  return { error, loading, privateChats, refetch };
2021
2113
  };
2022
2114
  var useGetRelationChats = () => {
2023
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
2115
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
2024
2116
  fetchPolicy: "network-only"
2025
2117
  });
2026
2118
  const relationChats = data?.relationChats || [];
2027
2119
  return { error, loading, refetch, relationChats };
2028
2120
  };
2029
2121
  var useGetChatSubscription = () => {
2030
- const { data, loading, error } = (0, import_client19.useSubscription)(
2122
+ const { data, loading, error } = (0, import_client20.useSubscription)(
2031
2123
  GET_CHAT_MESSAGE
2032
2124
  );
2033
2125
  const chat = data?.getChat;
2034
2126
  return { chat, error, loading };
2035
2127
  };
2036
2128
  var useGetChatsByRegion = (region) => {
2037
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
2129
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
2038
2130
  fetchPolicy: "network-only",
2039
2131
  variables: { region }
2040
2132
  });
@@ -2042,7 +2134,7 @@ var useGetChatsByRegion = (region) => {
2042
2134
  return { chatsByRegion, error, loading, refetch };
2043
2135
  };
2044
2136
  var useGetReportedChatUsers = () => {
2045
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
2137
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
2046
2138
  fetchPolicy: "network-only"
2047
2139
  });
2048
2140
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -2050,11 +2142,11 @@ var useGetReportedChatUsers = () => {
2050
2142
  };
2051
2143
 
2052
2144
  // src/graphql/hooks/contactUs.ts
2053
- var import_client21 = require("@apollo/client");
2145
+ var import_client22 = require("@apollo/client");
2054
2146
 
2055
2147
  // src/graphql/mutations/contactUs.ts
2056
- var import_client20 = require("@apollo/client");
2057
- var CONTACT_US_MUTATION = import_client20.gql`
2148
+ var import_client21 = require("@apollo/client");
2149
+ var CONTACT_US_MUTATION = import_client21.gql`
2058
2150
  mutation contactUs($input: ContactUsInputType!) {
2059
2151
  contactUs(input: $input) {
2060
2152
  data
@@ -2065,16 +2157,16 @@ var CONTACT_US_MUTATION = import_client20.gql`
2065
2157
 
2066
2158
  // src/graphql/hooks/contactUs.ts
2067
2159
  var useContactUs = () => {
2068
- const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
2160
+ const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
2069
2161
  return { contactUs, error, loading };
2070
2162
  };
2071
2163
 
2072
2164
  // src/graphql/hooks/event/hooksMutation.ts
2073
- var import_client24 = require("@apollo/client");
2165
+ var import_client25 = require("@apollo/client");
2074
2166
 
2075
2167
  // src/graphql/mutations/event.ts
2076
- var import_client22 = require("@apollo/client");
2077
- var CREATE_EVENT_MUTATION = import_client22.gql`
2168
+ var import_client23 = require("@apollo/client");
2169
+ var CREATE_EVENT_MUTATION = import_client23.gql`
2078
2170
  mutation createEvent($input: EventInputType!) {
2079
2171
  createEvent(input: $input) {
2080
2172
  data {
@@ -2085,7 +2177,7 @@ var CREATE_EVENT_MUTATION = import_client22.gql`
2085
2177
  }
2086
2178
  ${EVENT}
2087
2179
  `;
2088
- var UPDATE_EVENT_MUTATION = import_client22.gql`
2180
+ var UPDATE_EVENT_MUTATION = import_client23.gql`
2089
2181
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
2090
2182
  updateEvent(_id: $_id, input: $input) {
2091
2183
  data {
@@ -2096,7 +2188,7 @@ var UPDATE_EVENT_MUTATION = import_client22.gql`
2096
2188
  }
2097
2189
  ${EVENT}
2098
2190
  `;
2099
- var DELETE_EVENT_MUTATION = import_client22.gql`
2191
+ var DELETE_EVENT_MUTATION = import_client23.gql`
2100
2192
  mutation deleteEvent($_id: ID!) {
2101
2193
  deleteEvent(_id: $_id) {
2102
2194
  data
@@ -2104,7 +2196,7 @@ var DELETE_EVENT_MUTATION = import_client22.gql`
2104
2196
  }
2105
2197
  }
2106
2198
  `;
2107
- var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2199
+ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
2108
2200
  mutation createEventInfo($input: EventInfoInputType!) {
2109
2201
  createEventInfo(input: $input) {
2110
2202
  data {
@@ -2115,7 +2207,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2115
2207
  }
2116
2208
  ${EVENT_INFO}
2117
2209
  `;
2118
- var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2210
+ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
2119
2211
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
2120
2212
  updateEventInfo(_id: $_id, input: $input) {
2121
2213
  data {
@@ -2128,8 +2220,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2128
2220
  `;
2129
2221
 
2130
2222
  // src/graphql/queries/user.ts
2131
- var import_client23 = require("@apollo/client");
2132
- var GET_USERS = import_client23.gql`
2223
+ var import_client24 = require("@apollo/client");
2224
+ var GET_USERS = import_client24.gql`
2133
2225
  query getUsers {
2134
2226
  users {
2135
2227
  ...UserFields
@@ -2137,7 +2229,7 @@ var GET_USERS = import_client23.gql`
2137
2229
  }
2138
2230
  ${USER_FIELDS_FRAGMENT}
2139
2231
  `;
2140
- var GET_USER = import_client23.gql`
2232
+ var GET_USER = import_client24.gql`
2141
2233
  query getUser($_id: ID!) {
2142
2234
  user(_id: $_id) {
2143
2235
  ...UserFields
@@ -2145,7 +2237,7 @@ var GET_USER = import_client23.gql`
2145
2237
  }
2146
2238
  ${USER_FIELDS_FRAGMENT}
2147
2239
  `;
2148
- var GET_USER_EVENTS = import_client23.gql`
2240
+ var GET_USER_EVENTS = import_client24.gql`
2149
2241
  query getUserEvents {
2150
2242
  userEvents {
2151
2243
  ...EventFields
@@ -2153,7 +2245,7 @@ var GET_USER_EVENTS = import_client23.gql`
2153
2245
  }
2154
2246
  ${EVENT}
2155
2247
  `;
2156
- var GET_USER_VENDORS = import_client23.gql`
2248
+ var GET_USER_VENDORS = import_client24.gql`
2157
2249
  query getUserVendors {
2158
2250
  userVendors {
2159
2251
  ...VendorFields
@@ -2161,7 +2253,7 @@ var GET_USER_VENDORS = import_client23.gql`
2161
2253
  }
2162
2254
  ${VENDOR}
2163
2255
  `;
2164
- var GET_USER_PARTNERS = import_client23.gql`
2256
+ var GET_USER_PARTNERS = import_client24.gql`
2165
2257
  query getUserPartners {
2166
2258
  userPartners {
2167
2259
  ...PartnerFields
@@ -2169,7 +2261,7 @@ var GET_USER_PARTNERS = import_client23.gql`
2169
2261
  }
2170
2262
  ${PARTNER}
2171
2263
  `;
2172
- var GET_USER_ACTIVITIES = import_client23.gql`
2264
+ var GET_USER_ACTIVITIES = import_client24.gql`
2173
2265
  query getUserActivities {
2174
2266
  userActivities {
2175
2267
  favourites {
@@ -2204,7 +2296,7 @@ var GET_USER_ACTIVITIES = import_client23.gql`
2204
2296
  ${VENDOR}
2205
2297
  ${PARTNER}
2206
2298
  `;
2207
- var GET_USER_RESOURCES = import_client23.gql`
2299
+ var GET_USER_RESOURCES = import_client24.gql`
2208
2300
  query getUserResources($userId: ID!) {
2209
2301
  userResources(userId: $userId) {
2210
2302
  resources {
@@ -2219,14 +2311,14 @@ var GET_USER_RESOURCES = import_client23.gql`
2219
2311
 
2220
2312
  // src/graphql/hooks/event/hooksMutation.ts
2221
2313
  var useCreateEvent = () => {
2222
- const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
2314
+ const [createEvent, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_MUTATION, {
2223
2315
  awaitRefetchQueries: true,
2224
2316
  refetchQueries: [{ query: GET_USER_EVENTS }]
2225
2317
  });
2226
2318
  return { createEvent, error, loading };
2227
2319
  };
2228
2320
  var useUpdateEvent = () => {
2229
- const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
2321
+ const [updateEvent, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_MUTATION, {
2230
2322
  awaitRefetchQueries: true,
2231
2323
  refetchQueries: (mutationResult) => {
2232
2324
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -2249,14 +2341,14 @@ var useUpdateEvent = () => {
2249
2341
  return { error, loading, updateEvent };
2250
2342
  };
2251
2343
  var useDeleteEvent = () => {
2252
- const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
2344
+ const [deleteEvent, { loading, error }] = (0, import_client25.useMutation)(DELETE_EVENT_MUTATION, {
2253
2345
  awaitRefetchQueries: true,
2254
2346
  refetchQueries: [{ query: GET_USER_EVENTS }]
2255
2347
  });
2256
2348
  return { deleteEvent, error, loading };
2257
2349
  };
2258
2350
  var useCreateEventInfo = () => {
2259
- const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2351
+ const [createEventInfo, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2260
2352
  awaitRefetchQueries: true,
2261
2353
  refetchQueries: (mutationResult) => {
2262
2354
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -2280,7 +2372,7 @@ var useCreateEventInfo = () => {
2280
2372
  return { createEventInfo, error, loading };
2281
2373
  };
2282
2374
  var useUpdateEventInfo = () => {
2283
- const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2375
+ const [updateEventInfo, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2284
2376
  awaitRefetchQueries: true,
2285
2377
  refetchQueries: (mutationResult) => {
2286
2378
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -2304,9 +2396,9 @@ var useUpdateEventInfo = () => {
2304
2396
  };
2305
2397
 
2306
2398
  // src/graphql/hooks/event/hooksQuery.ts
2307
- var import_client25 = require("@apollo/client");
2399
+ var import_client26 = require("@apollo/client");
2308
2400
  var useGetEvents = (dateStatus) => {
2309
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
2401
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS, {
2310
2402
  fetchPolicy: "network-only",
2311
2403
  variables: { dateStatus }
2312
2404
  });
@@ -2314,7 +2406,7 @@ var useGetEvents = (dateStatus) => {
2314
2406
  return { error, events, loading, refetch };
2315
2407
  };
2316
2408
  var useGetEvent = (_id) => {
2317
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
2409
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT, {
2318
2410
  fetchPolicy: "network-only",
2319
2411
  skip: !_id,
2320
2412
  variables: { _id }
@@ -2323,7 +2415,7 @@ var useGetEvent = (_id) => {
2323
2415
  return { error, event, loading, refetch };
2324
2416
  };
2325
2417
  var useGetEventByPlaceId = (googlePlaceId) => {
2326
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
2418
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_BY_PLACE_ID, {
2327
2419
  fetchPolicy: "network-only",
2328
2420
  skip: !googlePlaceId,
2329
2421
  variables: { googlePlaceId }
@@ -2337,7 +2429,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2337
2429
  options,
2338
2430
  region
2339
2431
  };
2340
- const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
2432
+ const { loading, error, data, refetch, fetchMore } = (0, import_client26.useQuery)(GET_EVENTS_BY_REGION, {
2341
2433
  fetchPolicy: "network-only",
2342
2434
  skip: !region || region === "",
2343
2435
  variables
@@ -2355,7 +2447,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2355
2447
  const normalizedSearch = searchQuery?.trim() ?? "";
2356
2448
  const normalizedTags = (tags ?? []).filter(Boolean);
2357
2449
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2358
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
2450
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_EVENTS, {
2359
2451
  fetchPolicy: "network-only",
2360
2452
  skip: !shouldRunQuery,
2361
2453
  variables: {
@@ -2373,7 +2465,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2373
2465
  };
2374
2466
  };
2375
2467
  var useGetEventsNearMe = (location, dateStatus) => {
2376
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
2468
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS_NEAR_ME, {
2377
2469
  fetchPolicy: "network-only",
2378
2470
  skip: !location.latitude || !location.longitude,
2379
2471
  variables: {
@@ -2388,7 +2480,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
2388
2480
  return { error, eventsNearMe, loading, refetch };
2389
2481
  };
2390
2482
  var useGetEventInfo = (eventId) => {
2391
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
2483
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_INFO, {
2392
2484
  fetchPolicy: "network-only",
2393
2485
  skip: !eventId || eventId === "",
2394
2486
  variables: { eventId }
@@ -2398,14 +2490,14 @@ var useGetEventInfo = (eventId) => {
2398
2490
  };
2399
2491
 
2400
2492
  // src/graphql/hooks/notifications/hooksMutation.ts
2401
- var import_client28 = require("@apollo/client");
2493
+ var import_client29 = require("@apollo/client");
2402
2494
 
2403
2495
  // src/graphql/mutations/notification.ts
2404
- var import_client27 = require("@apollo/client");
2496
+ var import_client28 = require("@apollo/client");
2405
2497
 
2406
2498
  // src/graphql/queries/notification.ts
2407
- var import_client26 = require("@apollo/client");
2408
- var NOTIFICATION_FRAGMENT = import_client26.gql`
2499
+ var import_client27 = require("@apollo/client");
2500
+ var NOTIFICATION_FRAGMENT = import_client27.gql`
2409
2501
  fragment NotificationFields on Notification {
2410
2502
  _id
2411
2503
  userId
@@ -2422,7 +2514,7 @@ var NOTIFICATION_FRAGMENT = import_client26.gql`
2422
2514
  updatedAt
2423
2515
  }
2424
2516
  `;
2425
- var GET_USER_NOTIFICATIONS = import_client26.gql`
2517
+ var GET_USER_NOTIFICATIONS = import_client27.gql`
2426
2518
  query getUserNotifications($limit: Int, $offset: Int) {
2427
2519
  userNotifications(limit: $limit, offset: $offset) {
2428
2520
  ...NotificationFields
@@ -2430,7 +2522,7 @@ var GET_USER_NOTIFICATIONS = import_client26.gql`
2430
2522
  }
2431
2523
  ${NOTIFICATION_FRAGMENT}
2432
2524
  `;
2433
- var GET_NOTIFICATION_COUNT = import_client26.gql`
2525
+ var GET_NOTIFICATION_COUNT = import_client27.gql`
2434
2526
  query getNotificationCount {
2435
2527
  notificationCount {
2436
2528
  total
@@ -2440,7 +2532,7 @@ var GET_NOTIFICATION_COUNT = import_client26.gql`
2440
2532
  `;
2441
2533
 
2442
2534
  // src/graphql/mutations/notification.ts
2443
- var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
2535
+ var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
2444
2536
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
2445
2537
  createBulkNotifications(input: $input) {
2446
2538
  data
@@ -2448,7 +2540,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
2448
2540
  }
2449
2541
  }
2450
2542
  `;
2451
- var MARK_NOTIFICATION_READ = import_client27.gql`
2543
+ var MARK_NOTIFICATION_READ = import_client28.gql`
2452
2544
  mutation markNotificationRead($_id: ID!) {
2453
2545
  markNotificationRead(_id: $_id) {
2454
2546
  data {
@@ -2459,7 +2551,7 @@ var MARK_NOTIFICATION_READ = import_client27.gql`
2459
2551
  }
2460
2552
  ${NOTIFICATION_FRAGMENT}
2461
2553
  `;
2462
- var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
2554
+ var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
2463
2555
  mutation markAllNotificationsRead {
2464
2556
  markAllNotificationsRead {
2465
2557
  data
@@ -2467,7 +2559,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
2467
2559
  }
2468
2560
  }
2469
2561
  `;
2470
- var DELETE_NOTIFICATION = import_client27.gql`
2562
+ var DELETE_NOTIFICATION = import_client28.gql`
2471
2563
  mutation deleteNotification($_id: ID!) {
2472
2564
  deleteNotification(_id: $_id) {
2473
2565
  data
@@ -2475,7 +2567,7 @@ var DELETE_NOTIFICATION = import_client27.gql`
2475
2567
  }
2476
2568
  }
2477
2569
  `;
2478
- var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
2570
+ var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
2479
2571
  mutation deleteAllNotifications {
2480
2572
  deleteAllNotifications {
2481
2573
  data
@@ -2486,11 +2578,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
2486
2578
 
2487
2579
  // src/graphql/hooks/notifications/hooksMutation.ts
2488
2580
  var useCreateBulkNotifications = () => {
2489
- const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
2581
+ const [createBulkNotifications, { loading, error }] = (0, import_client29.useMutation)(CREATE_BULK_NOTIFICATIONS);
2490
2582
  return { createBulkNotifications, error, loading };
2491
2583
  };
2492
2584
  var useMarkNotificationRead = () => {
2493
- const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
2585
+ const [markNotificationRead, { loading, error }] = (0, import_client29.useMutation)(MARK_NOTIFICATION_READ, {
2494
2586
  refetchQueries: [
2495
2587
  {
2496
2588
  query: GET_USER_NOTIFICATIONS
@@ -2503,7 +2595,7 @@ var useMarkNotificationRead = () => {
2503
2595
  return { error, loading, markNotificationRead };
2504
2596
  };
2505
2597
  var useMarkAllNotificationsRead = () => {
2506
- const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2598
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client29.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2507
2599
  refetchQueries: [
2508
2600
  {
2509
2601
  query: GET_USER_NOTIFICATIONS
@@ -2516,7 +2608,7 @@ var useMarkAllNotificationsRead = () => {
2516
2608
  return { error, loading, markAllNotificationsRead };
2517
2609
  };
2518
2610
  var useDeleteNotification = () => {
2519
- const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
2611
+ const [deleteNotification, { loading, error }] = (0, import_client29.useMutation)(DELETE_NOTIFICATION, {
2520
2612
  refetchQueries: [
2521
2613
  {
2522
2614
  query: GET_USER_NOTIFICATIONS
@@ -2529,7 +2621,7 @@ var useDeleteNotification = () => {
2529
2621
  return { deleteNotification, error, loading };
2530
2622
  };
2531
2623
  var useDeleteAllNotifications = () => {
2532
- const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2624
+ const [deleteAllNotifications, { loading, error }] = (0, import_client29.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2533
2625
  refetchQueries: [
2534
2626
  {
2535
2627
  query: GET_USER_NOTIFICATIONS
@@ -2543,9 +2635,9 @@ var useDeleteAllNotifications = () => {
2543
2635
  };
2544
2636
 
2545
2637
  // src/graphql/hooks/notifications/hooksQuery.ts
2546
- var import_client29 = require("@apollo/client");
2638
+ var import_client30 = require("@apollo/client");
2547
2639
  var useGetUserNotifications = (limit, offset) => {
2548
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
2640
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_USER_NOTIFICATIONS, {
2549
2641
  fetchPolicy: "no-cache",
2550
2642
  variables: { limit, offset }
2551
2643
  });
@@ -2557,7 +2649,7 @@ var useGetUserNotifications = (limit, offset) => {
2557
2649
  };
2558
2650
  };
2559
2651
  var useGetNotificationCount = () => {
2560
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
2652
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_NOTIFICATION_COUNT, {
2561
2653
  fetchPolicy: "no-cache"
2562
2654
  });
2563
2655
  return {
@@ -2569,11 +2661,11 @@ var useGetNotificationCount = () => {
2569
2661
  };
2570
2662
 
2571
2663
  // src/graphql/hooks/notifications/hooksSubscription.ts
2572
- var import_client31 = require("@apollo/client");
2664
+ var import_client32 = require("@apollo/client");
2573
2665
 
2574
2666
  // src/graphql/subscriptions/notification.ts
2575
- var import_client30 = require("@apollo/client");
2576
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
2667
+ var import_client31 = require("@apollo/client");
2668
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
2577
2669
  subscription {
2578
2670
  getUserNotifications {
2579
2671
  ...NotificationFields
@@ -2581,7 +2673,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
2581
2673
  }
2582
2674
  ${NOTIFICATION_FRAGMENT}
2583
2675
  `;
2584
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
2676
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
2585
2677
  subscription {
2586
2678
  getNotificationCount {
2587
2679
  total
@@ -2592,7 +2684,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
2592
2684
 
2593
2685
  // src/graphql/hooks/notifications/hooksSubscription.ts
2594
2686
  var useGetUserNotificationsSubscription = () => {
2595
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2687
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2596
2688
  fetchPolicy: "no-cache",
2597
2689
  shouldResubscribe: true
2598
2690
  });
@@ -2603,7 +2695,7 @@ var useGetUserNotificationsSubscription = () => {
2603
2695
  };
2604
2696
  };
2605
2697
  var useGetNotificationCountSubscription = () => {
2606
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2698
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2607
2699
  fetchPolicy: "no-cache",
2608
2700
  shouldResubscribe: true
2609
2701
  });
@@ -2615,11 +2707,11 @@ var useGetNotificationCountSubscription = () => {
2615
2707
  };
2616
2708
 
2617
2709
  // src/graphql/hooks/poster.ts
2618
- var import_client33 = require("@apollo/client");
2710
+ var import_client34 = require("@apollo/client");
2619
2711
 
2620
2712
  // src/graphql/mutations/poster.ts
2621
- var import_client32 = require("@apollo/client");
2622
- var CREATE_POSTER_MUTATION = import_client32.gql`
2713
+ var import_client33 = require("@apollo/client");
2714
+ var CREATE_POSTER_MUTATION = import_client33.gql`
2623
2715
  mutation createPoster($input: PosterInputType!) {
2624
2716
  createPoster(input: $input) {
2625
2717
  data {
@@ -2635,18 +2727,18 @@ var CREATE_POSTER_MUTATION = import_client32.gql`
2635
2727
 
2636
2728
  // src/graphql/hooks/poster.ts
2637
2729
  var useCreatePoster = () => {
2638
- const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
2730
+ const [createPoster, { loading, error }] = (0, import_client34.useMutation)(CREATE_POSTER_MUTATION, {
2639
2731
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
2640
2732
  });
2641
2733
  return { createPoster, error, loading };
2642
2734
  };
2643
2735
 
2644
2736
  // src/graphql/hooks/pushToken.ts
2645
- var import_client35 = require("@apollo/client");
2737
+ var import_client36 = require("@apollo/client");
2646
2738
 
2647
2739
  // src/graphql/mutations/pushToken.ts
2648
- var import_client34 = require("@apollo/client");
2649
- var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
2740
+ var import_client35 = require("@apollo/client");
2741
+ var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
2650
2742
  mutation createPushToken($input: PushTokenInput!) {
2651
2743
  createPushToken(input: $input) {
2652
2744
  data {
@@ -2659,16 +2751,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
2659
2751
 
2660
2752
  // src/graphql/hooks/pushToken.ts
2661
2753
  var useCreatePushToken = () => {
2662
- const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2754
+ const [createPushToken, { loading, error }] = (0, import_client36.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2663
2755
  return { createPushToken, error, loading };
2664
2756
  };
2665
2757
 
2666
2758
  // src/graphql/hooks/relation/hooksMutation.ts
2667
- var import_client37 = require("@apollo/client");
2759
+ var import_client38 = require("@apollo/client");
2668
2760
 
2669
2761
  // src/graphql/mutations/relation.ts
2670
- var import_client36 = require("@apollo/client");
2671
- var CREATE_RELATION_MUTATION = import_client36.gql`
2762
+ var import_client37 = require("@apollo/client");
2763
+ var CREATE_RELATION_MUTATION = import_client37.gql`
2672
2764
  mutation createRelation($input: RelationInputType!) {
2673
2765
  createRelation(input: $input) {
2674
2766
  data {
@@ -2679,7 +2771,7 @@ var CREATE_RELATION_MUTATION = import_client36.gql`
2679
2771
  }
2680
2772
  ${RELATION_FIELDS_FRAGMENT}
2681
2773
  `;
2682
- var UPDATE_RELATION_MUTATION = import_client36.gql`
2774
+ var UPDATE_RELATION_MUTATION = import_client37.gql`
2683
2775
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
2684
2776
  updateRelation(_id: $_id, input: $input) {
2685
2777
  data {
@@ -2690,7 +2782,7 @@ var UPDATE_RELATION_MUTATION = import_client36.gql`
2690
2782
  }
2691
2783
  ${RELATION_FIELDS_FRAGMENT}
2692
2784
  `;
2693
- var DELETE_RELATION_MUTATION = import_client36.gql`
2785
+ var DELETE_RELATION_MUTATION = import_client37.gql`
2694
2786
  mutation deleteRelation($_id: ID!) {
2695
2787
  deleteRelation(_id: $_id) {
2696
2788
  data {
@@ -2704,7 +2796,7 @@ var DELETE_RELATION_MUTATION = import_client36.gql`
2704
2796
 
2705
2797
  // src/graphql/hooks/relation/hooksMutation.ts
2706
2798
  var useCreateRelation = () => {
2707
- const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
2799
+ const [createRelation, { loading, error }] = (0, import_client38.useMutation)(CREATE_RELATION_MUTATION, {
2708
2800
  awaitRefetchQueries: true,
2709
2801
  refetchQueries: (mutationResult) => {
2710
2802
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -2750,7 +2842,7 @@ var useCreateRelation = () => {
2750
2842
  return { createRelation, error, loading };
2751
2843
  };
2752
2844
  var useUpdateRelation = () => {
2753
- const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
2845
+ const [updateRelation, { loading, error }] = (0, import_client38.useMutation)(UPDATE_RELATION_MUTATION, {
2754
2846
  awaitRefetchQueries: true,
2755
2847
  refetchQueries: (mutationResult) => {
2756
2848
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -2793,7 +2885,7 @@ var useUpdateRelation = () => {
2793
2885
  return { error, loading, updateRelation };
2794
2886
  };
2795
2887
  var useDeleteRelation = () => {
2796
- const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
2888
+ const [deleteRelation, { loading, error }] = (0, import_client38.useMutation)(DELETE_RELATION_MUTATION, {
2797
2889
  awaitRefetchQueries: true,
2798
2890
  refetchQueries: (mutationResult) => {
2799
2891
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -2832,9 +2924,9 @@ var useDeleteRelation = () => {
2832
2924
  };
2833
2925
 
2834
2926
  // src/graphql/hooks/relation/hooksQuery.ts
2835
- var import_client38 = require("@apollo/client");
2927
+ var import_client39 = require("@apollo/client");
2836
2928
  var useGetRelation = (_id) => {
2837
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
2929
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION, {
2838
2930
  fetchPolicy: "network-only",
2839
2931
  skip: !_id,
2840
2932
  variables: _id ? { _id } : void 0
@@ -2843,7 +2935,7 @@ var useGetRelation = (_id) => {
2843
2935
  return { error, loading, refetch, relation };
2844
2936
  };
2845
2937
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2846
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2938
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2847
2939
  fetchPolicy: "network-only",
2848
2940
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
2849
2941
  variables: { eventId, vendorId }
@@ -2852,7 +2944,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2852
2944
  return { error, loading, refetch, relationByEventAndVendor };
2853
2945
  };
2854
2946
  var useGetEventRelations = (eventId) => {
2855
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
2947
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_EVENT_RELATIONS, {
2856
2948
  fetchPolicy: "network-only",
2857
2949
  skip: !eventId || eventId === "",
2858
2950
  variables: { eventId }
@@ -2861,7 +2953,7 @@ var useGetEventRelations = (eventId) => {
2861
2953
  return { error, eventRelations, loading, refetch };
2862
2954
  };
2863
2955
  var useGetVendorRelations = (vendorId) => {
2864
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
2956
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_RELATIONS, {
2865
2957
  fetchPolicy: "network-only",
2866
2958
  skip: !vendorId || vendorId === "",
2867
2959
  variables: { vendorId }
@@ -2870,7 +2962,7 @@ var useGetVendorRelations = (vendorId) => {
2870
2962
  return { error, loading, refetch, vendorRelations };
2871
2963
  };
2872
2964
  var useGetResourceConnections = (resourceId, resourceType) => {
2873
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
2965
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RESOURCE_CONNECTIONS, {
2874
2966
  fetchPolicy: "network-only",
2875
2967
  skip: !resourceId || resourceId === "" || !resourceType,
2876
2968
  variables: { resourceId, resourceType }
@@ -2880,30 +2972,30 @@ var useGetResourceConnections = (resourceId, resourceType) => {
2880
2972
  };
2881
2973
 
2882
2974
  // src/graphql/hooks/vendor/hooksMutation.ts
2883
- var import_client39 = require("@apollo/client");
2975
+ var import_client40 = require("@apollo/client");
2884
2976
  var useCreateVendor = () => {
2885
- const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
2977
+ const [createVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_MUTATION, {
2886
2978
  awaitRefetchQueries: true,
2887
2979
  refetchQueries: [{ query: GET_USER_VENDORS }]
2888
2980
  });
2889
2981
  return { createVendor, error, loading };
2890
2982
  };
2891
2983
  var useUpdateVendor = () => {
2892
- const [updateVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_MUTATION, {
2984
+ const [updateVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_MUTATION, {
2893
2985
  awaitRefetchQueries: true,
2894
2986
  refetchQueries: [{ query: GET_USER_VENDORS }]
2895
2987
  });
2896
2988
  return { error, loading, updateVendor };
2897
2989
  };
2898
2990
  var useDeleteVendor = () => {
2899
- const [deleteVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_VENDOR_MUTATION, {
2991
+ const [deleteVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_VENDOR_MUTATION, {
2900
2992
  awaitRefetchQueries: true,
2901
2993
  refetchQueries: [{ query: GET_USER_VENDORS }]
2902
2994
  });
2903
2995
  return { deleteVendor, error, loading };
2904
2996
  };
2905
2997
  var useCreateVendorInfo = () => {
2906
- const [createVendorInfo, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2998
+ const [createVendorInfo, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2907
2999
  awaitRefetchQueries: true,
2908
3000
  refetchQueries: (mutationResult) => {
2909
3001
  const vendorId = mutationResult?.data?.createVendorInfo?.data?.vendorId;
@@ -2927,7 +3019,7 @@ var useCreateVendorInfo = () => {
2927
3019
  return { createVendorInfo, error, loading };
2928
3020
  };
2929
3021
  var useUpdateVendorInfo = () => {
2930
- const [updateVendorInfo, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
3022
+ const [updateVendorInfo, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2931
3023
  awaitRefetchQueries: true,
2932
3024
  refetchQueries: (mutationResult) => {
2933
3025
  const vendorId = mutationResult?.data?.updateVendorInfo?.data?.vendorId;
@@ -2944,30 +3036,30 @@ var useUpdateVendorInfo = () => {
2944
3036
  return { error, loading, updateVendorInfo };
2945
3037
  };
2946
3038
  var useCreateUnregisteredVendor = () => {
2947
- const [createUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
3039
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
2948
3040
  return { createUnregisteredVendor, error, loading };
2949
3041
  };
2950
3042
  var useUpdateUnregisteredVendor = () => {
2951
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
3043
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
2952
3044
  return { error, loading, updateUnregisteredVendor };
2953
3045
  };
2954
3046
  var useDeleteUnregisteredVendor = () => {
2955
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
3047
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
2956
3048
  return { deleteUnregisteredVendor, error, loading };
2957
3049
  };
2958
3050
  var useUnlinkUnregisteredVendorByInviterId = () => {
2959
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
3051
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client40.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
2960
3052
  return { error, loading, unlinkUnregisteredVendorByInviterId };
2961
3053
  };
2962
3054
  var useActivateVendorClaim = () => {
2963
- const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
3055
+ const [activateVendorClaim, { loading, error }] = (0, import_client40.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
2964
3056
  return { activateVendorClaim, error, loading };
2965
3057
  };
2966
3058
 
2967
3059
  // src/graphql/hooks/vendor/hooksQuery.ts
2968
- var import_client40 = require("@apollo/client");
3060
+ var import_client41 = require("@apollo/client");
2969
3061
  var useGetVendors = () => {
2970
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3062
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
2971
3063
  GET_VENDORS,
2972
3064
  {
2973
3065
  fetchPolicy: "network-only"
@@ -2982,7 +3074,7 @@ var useGetVendors = () => {
2982
3074
  };
2983
3075
  };
2984
3076
  var useGetVendor = (_id) => {
2985
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3077
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
2986
3078
  GET_VENDOR,
2987
3079
  {
2988
3080
  fetchPolicy: "network-only",
@@ -2998,7 +3090,7 @@ var useGetVendorsByRegion = (region, options) => {
2998
3090
  options,
2999
3091
  region
3000
3092
  };
3001
- const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
3093
+ const { loading, error, data, refetch, fetchMore } = (0, import_client41.useQuery)(GET_VENDORS_BY_REGION, {
3002
3094
  fetchPolicy: "network-only",
3003
3095
  variables
3004
3096
  });
@@ -3012,7 +3104,7 @@ var useGetVendorsByRegion = (region, options) => {
3012
3104
  };
3013
3105
  };
3014
3106
  var useSearchVendors = (search, region) => {
3015
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
3107
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(SEARCH_VENDORS, {
3016
3108
  fetchPolicy: "network-only",
3017
3109
  skip: search.length < 3,
3018
3110
  variables: { region, search }
@@ -3021,7 +3113,7 @@ var useSearchVendors = (search, region) => {
3021
3113
  return { error, loading, refetch, vendorSearch };
3022
3114
  };
3023
3115
  var useGetVendorInfo = (vendorId) => {
3024
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_VENDOR_INFO, {
3116
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_VENDOR_INFO, {
3025
3117
  fetchPolicy: "network-only",
3026
3118
  skip: !vendorId || vendorId === "",
3027
3119
  variables: { vendorId }
@@ -3035,7 +3127,7 @@ var useGetVendorInfo = (vendorId) => {
3035
3127
  };
3036
3128
  };
3037
3129
  var useGetUnregisteredVendors = () => {
3038
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS, {
3130
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS, {
3039
3131
  fetchPolicy: "network-only"
3040
3132
  });
3041
3133
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -3047,7 +3139,7 @@ var useGetUnregisteredVendors = () => {
3047
3139
  };
3048
3140
  };
3049
3141
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
3050
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3142
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3051
3143
  fetchPolicy: "network-only",
3052
3144
  skip: !inviterId || inviterId === "",
3053
3145
  variables: { inviterId }
@@ -3056,7 +3148,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
3056
3148
  return { error, loading, refetch, unregisteredVendorsByInviterId };
3057
3149
  };
3058
3150
  var useGetUnregisteredVendor = (_id) => {
3059
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDOR, {
3151
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDOR, {
3060
3152
  fetchPolicy: "network-only",
3061
3153
  skip: !_id || _id === "",
3062
3154
  variables: { _id }
@@ -3065,7 +3157,7 @@ var useGetUnregisteredVendor = (_id) => {
3065
3157
  return { error, loading, refetch, unregisteredVendor };
3066
3158
  };
3067
3159
  var useMyPendingVendorClaim = (skip = false) => {
3068
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3160
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3069
3161
  fetchPolicy: "network-only",
3070
3162
  skip
3071
3163
  });
@@ -3078,11 +3170,11 @@ var useMyPendingVendorClaim = (skip = false) => {
3078
3170
  };
3079
3171
 
3080
3172
  // src/graphql/hooks/user/hooksMutation.ts
3081
- var import_client42 = require("@apollo/client");
3173
+ var import_client43 = require("@apollo/client");
3082
3174
 
3083
3175
  // src/graphql/mutations/user.ts
3084
- var import_client41 = require("@apollo/client");
3085
- var CREATE_USER_MUTATION = import_client41.gql`
3176
+ var import_client42 = require("@apollo/client");
3177
+ var CREATE_USER_MUTATION = import_client42.gql`
3086
3178
  mutation createUser($input: UserInputType!) {
3087
3179
  createUser(input: $input) {
3088
3180
  data {
@@ -3093,7 +3185,7 @@ var CREATE_USER_MUTATION = import_client41.gql`
3093
3185
  }
3094
3186
  ${USER_FIELDS_FRAGMENT}
3095
3187
  `;
3096
- var UPDATE_USER_MUTATION = import_client41.gql`
3188
+ var UPDATE_USER_MUTATION = import_client42.gql`
3097
3189
  mutation updateUser($_id: ID!, $input: UserInputType!) {
3098
3190
  updateUser(_id: $_id, input: $input) {
3099
3191
  data {
@@ -3104,7 +3196,7 @@ var UPDATE_USER_MUTATION = import_client41.gql`
3104
3196
  }
3105
3197
  ${USER_FIELDS_FRAGMENT}
3106
3198
  `;
3107
- var DELETE_USER_MUTATION = import_client41.gql`
3199
+ var DELETE_USER_MUTATION = import_client42.gql`
3108
3200
  mutation deleteUser($email: String!) {
3109
3201
  deleteUser(email: $email) {
3110
3202
  data
@@ -3112,7 +3204,7 @@ var DELETE_USER_MUTATION = import_client41.gql`
3112
3204
  }
3113
3205
  }
3114
3206
  `;
3115
- var REDEEM_REWARD_MUTATION = import_client41.gql`
3207
+ var REDEEM_REWARD_MUTATION = import_client42.gql`
3116
3208
  mutation redeemReward($input: RedeemRewardInputType!) {
3117
3209
  redeemReward(input: $input) {
3118
3210
  data {
@@ -3122,7 +3214,7 @@ var REDEEM_REWARD_MUTATION = import_client41.gql`
3122
3214
  }
3123
3215
  }
3124
3216
  `;
3125
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3217
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3126
3218
  mutation addUserFavouriteResource(
3127
3219
  $resourceId: ID!
3128
3220
  $resourceType: ResourceTypeEnum!
@@ -3139,7 +3231,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3139
3231
  }
3140
3232
  ${USER_FIELDS_FRAGMENT}
3141
3233
  `;
3142
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3234
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3143
3235
  mutation removeUserFavouriteResource(
3144
3236
  $resourceId: ID!
3145
3237
  $resourceType: ResourceTypeEnum!
@@ -3156,7 +3248,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3156
3248
  }
3157
3249
  ${USER_FIELDS_FRAGMENT}
3158
3250
  `;
3159
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3251
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3160
3252
  mutation addUserInterestResource($input: UserActivityInputType!) {
3161
3253
  addUserInterestResource(input: $input) {
3162
3254
  data {
@@ -3167,7 +3259,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3167
3259
  }
3168
3260
  ${USER_FIELDS_FRAGMENT}
3169
3261
  `;
3170
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3262
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3171
3263
  mutation removeUserInterestResource($input: UserActivityInputType!) {
3172
3264
  removeUserInterestResource(input: $input) {
3173
3265
  data {
@@ -3178,7 +3270,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3178
3270
  }
3179
3271
  ${USER_FIELDS_FRAGMENT}
3180
3272
  `;
3181
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3273
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3182
3274
  mutation addUserGoingResource($input: UserActivityInputType!) {
3183
3275
  addUserGoingResource(input: $input) {
3184
3276
  data {
@@ -3189,7 +3281,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3189
3281
  }
3190
3282
  ${USER_FIELDS_FRAGMENT}
3191
3283
  `;
3192
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3284
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3193
3285
  mutation removeUserGoingResource($input: UserActivityInputType!) {
3194
3286
  removeUserGoingResource(input: $input) {
3195
3287
  data {
@@ -3200,7 +3292,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3200
3292
  }
3201
3293
  ${USER_FIELDS_FRAGMENT}
3202
3294
  `;
3203
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3295
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3204
3296
  mutation addUserPresentResource($input: UserActivityInputType!) {
3205
3297
  addUserPresentResource(input: $input) {
3206
3298
  data {
@@ -3211,7 +3303,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3211
3303
  }
3212
3304
  ${USER_FIELDS_FRAGMENT}
3213
3305
  `;
3214
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3306
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3215
3307
  mutation removeUserPresentResource($input: UserActivityInputType!) {
3216
3308
  removeUserPresentResource(input: $input) {
3217
3309
  data {
@@ -3222,7 +3314,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3222
3314
  }
3223
3315
  ${USER_FIELDS_FRAGMENT}
3224
3316
  `;
3225
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
3317
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
3226
3318
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
3227
3319
  selectStandardPackage(selectedLicence: $selectedLicence) {
3228
3320
  data {
@@ -3239,11 +3331,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
3239
3331
 
3240
3332
  // src/graphql/hooks/user/hooksMutation.ts
3241
3333
  var useCreateUser = () => {
3242
- const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
3334
+ const [createUser, { loading, error }] = (0, import_client43.useMutation)(CREATE_USER_MUTATION);
3243
3335
  return { createUser, error, loading };
3244
3336
  };
3245
3337
  var useUpdateUser = () => {
3246
- const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
3338
+ const [updateUser, { loading, error }] = (0, import_client43.useMutation)(UPDATE_USER_MUTATION, {
3247
3339
  awaitRefetchQueries: true,
3248
3340
  refetchQueries: (mutationResult) => {
3249
3341
  const userId = mutationResult?.data?.updateUser?.data?._id;
@@ -3254,11 +3346,11 @@ var useUpdateUser = () => {
3254
3346
  return { error, loading, updateUser };
3255
3347
  };
3256
3348
  var useDeleteUser = () => {
3257
- const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
3349
+ const [deleteUser, { loading, error }] = (0, import_client43.useMutation)(DELETE_USER_MUTATION);
3258
3350
  return { deleteUser, error, loading };
3259
3351
  };
3260
3352
  var useRedeemReward = () => {
3261
- const [redeemReward, { loading, error }] = (0, import_client42.useMutation)(REDEEM_REWARD_MUTATION, {
3353
+ const [redeemReward, { loading, error }] = (0, import_client43.useMutation)(REDEEM_REWARD_MUTATION, {
3262
3354
  awaitRefetchQueries: true,
3263
3355
  refetchQueries: (mutationResult) => {
3264
3356
  const userId = mutationResult?.data?.redeemReward?.data?.userId;
@@ -3275,63 +3367,63 @@ var useRedeemReward = () => {
3275
3367
  return { error, loading, redeemReward };
3276
3368
  };
3277
3369
  var useAddUserFavouriteResource = () => {
3278
- const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
3370
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
3279
3371
  awaitRefetchQueries: true,
3280
3372
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3281
3373
  });
3282
3374
  return { addUserFavouriteResource, error, loading };
3283
3375
  };
3284
3376
  var useRemoveUserFavouriteResource = () => {
3285
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
3377
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
3286
3378
  awaitRefetchQueries: true,
3287
3379
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3288
3380
  });
3289
3381
  return { error, loading, removeUserFavouriteResource };
3290
3382
  };
3291
3383
  var useAddUserInterestResource = () => {
3292
- const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
3384
+ const [addUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
3293
3385
  awaitRefetchQueries: true,
3294
3386
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3295
3387
  });
3296
3388
  return { addUserInterestResource, error, loading };
3297
3389
  };
3298
3390
  var useRemoveUserInterestResource = () => {
3299
- const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
3391
+ const [removeUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
3300
3392
  awaitRefetchQueries: true,
3301
3393
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3302
3394
  });
3303
3395
  return { error, loading, removeUserInterestResource };
3304
3396
  };
3305
3397
  var useAddUserGoingResource = () => {
3306
- const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
3398
+ const [addUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
3307
3399
  awaitRefetchQueries: true,
3308
3400
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3309
3401
  });
3310
3402
  return { addUserGoingResource, error, loading };
3311
3403
  };
3312
3404
  var useRemoveUserGoingResource = () => {
3313
- const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
3405
+ const [removeUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
3314
3406
  awaitRefetchQueries: true,
3315
3407
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3316
3408
  });
3317
3409
  return { error, loading, removeUserGoingResource };
3318
3410
  };
3319
3411
  var useAddUserPresentResource = () => {
3320
- const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
3412
+ const [addUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
3321
3413
  awaitRefetchQueries: true,
3322
3414
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3323
3415
  });
3324
3416
  return { addUserPresentResource, error, loading };
3325
3417
  };
3326
3418
  var useRemoveUserPresentResource = () => {
3327
- const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
3419
+ const [removeUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
3328
3420
  awaitRefetchQueries: true,
3329
3421
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3330
3422
  });
3331
3423
  return { error, loading, removeUserPresentResource };
3332
3424
  };
3333
3425
  var useSelectStandardPackage = () => {
3334
- const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3426
+ const [selectStandardPackage, { loading, error }] = (0, import_client43.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3335
3427
  awaitRefetchQueries: true,
3336
3428
  refetchQueries: (mutationResult) => {
3337
3429
  const userId = mutationResult?.data?.selectStandardPackage?.data?.userId;
@@ -3347,9 +3439,9 @@ var useSelectStandardPackage = () => {
3347
3439
  };
3348
3440
 
3349
3441
  // src/graphql/hooks/user/hooksQuery.ts
3350
- var import_client43 = require("@apollo/client");
3442
+ var import_client44 = require("@apollo/client");
3351
3443
  var useGetUsers = () => {
3352
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3444
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
3353
3445
  GET_USERS,
3354
3446
  {
3355
3447
  fetchPolicy: "network-only"
@@ -3359,7 +3451,7 @@ var useGetUsers = () => {
3359
3451
  return { error, loading, refetch, users };
3360
3452
  };
3361
3453
  var useGetUser = (_id) => {
3362
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3454
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
3363
3455
  GET_USER,
3364
3456
  {
3365
3457
  fetchPolicy: "network-only",
@@ -3371,28 +3463,28 @@ var useGetUser = (_id) => {
3371
3463
  return { error, loading, refetch, user };
3372
3464
  };
3373
3465
  var useGetUserEvents = () => {
3374
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
3466
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_EVENTS, {
3375
3467
  fetchPolicy: "network-only"
3376
3468
  });
3377
3469
  const userEvents = data?.userEvents || [];
3378
3470
  return { error, loading, refetch, userEvents };
3379
3471
  };
3380
3472
  var useGetUserVendors = () => {
3381
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
3473
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_VENDORS, {
3382
3474
  fetchPolicy: "network-only"
3383
3475
  });
3384
3476
  const userVendors = data?.userVendors || [];
3385
3477
  return { error, loading, refetch, userVendors };
3386
3478
  };
3387
3479
  var useGetUserPartners = () => {
3388
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
3480
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_PARTNERS, {
3389
3481
  fetchPolicy: "network-only"
3390
3482
  });
3391
3483
  const userPartners = data?.userPartners || [];
3392
3484
  return { error, loading, refetch, userPartners };
3393
3485
  };
3394
3486
  var useGetUserActivities = () => {
3395
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
3487
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_ACTIVITIES, {
3396
3488
  fetchPolicy: "network-only"
3397
3489
  });
3398
3490
  const userActivities = {
@@ -3414,7 +3506,7 @@ var useGetUserActivities = () => {
3414
3506
  return { error, loading, refetch, userActivities };
3415
3507
  };
3416
3508
  var useGetUserResources = (userId) => {
3417
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_RESOURCES, {
3509
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_RESOURCES, {
3418
3510
  fetchPolicy: "network-only",
3419
3511
  skip: !userId || userId === "",
3420
3512
  variables: { userId }
@@ -3424,14 +3516,14 @@ var useGetUserResources = (userId) => {
3424
3516
  };
3425
3517
 
3426
3518
  // src/graphql/hooks/ad/hooksMutation.ts
3427
- var import_client46 = require("@apollo/client");
3519
+ var import_client47 = require("@apollo/client");
3428
3520
 
3429
3521
  // src/graphql/mutations/ad.ts
3430
- var import_client45 = require("@apollo/client");
3522
+ var import_client46 = require("@apollo/client");
3431
3523
 
3432
3524
  // src/graphql/queries/ad.ts
3433
- var import_client44 = require("@apollo/client");
3434
- var AD_FIELDS_FRAGMENT = import_client44.gql`
3525
+ var import_client45 = require("@apollo/client");
3526
+ var AD_FIELDS_FRAGMENT = import_client45.gql`
3435
3527
  fragment AdFields on AdType {
3436
3528
  _id
3437
3529
  active
@@ -3458,7 +3550,7 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
3458
3550
  updatedAt
3459
3551
  }
3460
3552
  `;
3461
- var GET_ADS = import_client44.gql`
3553
+ var GET_ADS = import_client45.gql`
3462
3554
  query getAds {
3463
3555
  ads {
3464
3556
  ...AdFields
@@ -3466,7 +3558,7 @@ var GET_ADS = import_client44.gql`
3466
3558
  }
3467
3559
  ${AD_FIELDS_FRAGMENT}
3468
3560
  `;
3469
- var GET_AD = import_client44.gql`
3561
+ var GET_AD = import_client45.gql`
3470
3562
  query getAd($_id: ID!) {
3471
3563
  ad(_id: $_id) {
3472
3564
  ...AdFields
@@ -3474,7 +3566,7 @@ var GET_AD = import_client44.gql`
3474
3566
  }
3475
3567
  ${AD_FIELDS_FRAGMENT}
3476
3568
  `;
3477
- var GET_ADS_BY_REGION = import_client44.gql`
3569
+ var GET_ADS_BY_REGION = import_client45.gql`
3478
3570
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
3479
3571
  adsByRegion(region: $region, status: $status) {
3480
3572
  ...AdFields
@@ -3484,7 +3576,7 @@ var GET_ADS_BY_REGION = import_client44.gql`
3484
3576
  `;
3485
3577
 
3486
3578
  // src/graphql/mutations/ad.ts
3487
- var CREATE_AD_MUTATION = import_client45.gql`
3579
+ var CREATE_AD_MUTATION = import_client46.gql`
3488
3580
  mutation createAd($input: AdInputType!) {
3489
3581
  createAd(input: $input) {
3490
3582
  data {
@@ -3495,7 +3587,7 @@ var CREATE_AD_MUTATION = import_client45.gql`
3495
3587
  }
3496
3588
  ${AD_FIELDS_FRAGMENT}
3497
3589
  `;
3498
- var UPDATE_AD_MUTATION = import_client45.gql`
3590
+ var UPDATE_AD_MUTATION = import_client46.gql`
3499
3591
  mutation updateAd($_id: ID!, $input: AdInputType!) {
3500
3592
  updateAd(_id: $_id, input: $input) {
3501
3593
  data {
@@ -3506,7 +3598,7 @@ var UPDATE_AD_MUTATION = import_client45.gql`
3506
3598
  }
3507
3599
  ${AD_FIELDS_FRAGMENT}
3508
3600
  `;
3509
- var DELETE_AD_MUTATION = import_client45.gql`
3601
+ var DELETE_AD_MUTATION = import_client46.gql`
3510
3602
  mutation deleteAd($_id: ID!) {
3511
3603
  deleteAd(_id: $_id) {
3512
3604
  data
@@ -3517,7 +3609,7 @@ var DELETE_AD_MUTATION = import_client45.gql`
3517
3609
 
3518
3610
  // src/graphql/hooks/ad/hooksMutation.ts
3519
3611
  var useCreateAd = () => {
3520
- const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
3612
+ const [createAd, { loading, error }] = (0, import_client47.useMutation)(CREATE_AD_MUTATION, {
3521
3613
  awaitRefetchQueries: true,
3522
3614
  refetchQueries: [{ query: GET_ADS }]
3523
3615
  });
@@ -3528,7 +3620,7 @@ var useCreateAd = () => {
3528
3620
  };
3529
3621
  };
3530
3622
  var useUpdateAd = () => {
3531
- const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
3623
+ const [updateAd, { loading, error }] = (0, import_client47.useMutation)(UPDATE_AD_MUTATION, {
3532
3624
  awaitRefetchQueries: true,
3533
3625
  refetchQueries: [{ query: GET_ADS }]
3534
3626
  });
@@ -3539,7 +3631,7 @@ var useUpdateAd = () => {
3539
3631
  };
3540
3632
  };
3541
3633
  var useDeleteAd = () => {
3542
- const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
3634
+ const [deleteAd, { loading, error }] = (0, import_client47.useMutation)(DELETE_AD_MUTATION, {
3543
3635
  awaitRefetchQueries: true,
3544
3636
  refetchQueries: [{ query: GET_ADS }]
3545
3637
  });
@@ -3551,9 +3643,9 @@ var useDeleteAd = () => {
3551
3643
  };
3552
3644
 
3553
3645
  // src/graphql/hooks/ad/hooksQuery.ts
3554
- var import_client47 = require("@apollo/client");
3646
+ var import_client48 = require("@apollo/client");
3555
3647
  var useGetAds = () => {
3556
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(
3648
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(
3557
3649
  GET_ADS,
3558
3650
  {
3559
3651
  fetchPolicy: "no-cache"
@@ -3567,7 +3659,7 @@ var useGetAds = () => {
3567
3659
  };
3568
3660
  };
3569
3661
  var useGetAd = (_id) => {
3570
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
3662
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_AD, {
3571
3663
  fetchPolicy: "no-cache",
3572
3664
  skip: !_id || _id === "",
3573
3665
  variables: { _id }
@@ -3580,7 +3672,7 @@ var useGetAd = (_id) => {
3580
3672
  };
3581
3673
  };
3582
3674
  var useGetAdsByRegion = (region, status) => {
3583
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
3675
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_ADS_BY_REGION, {
3584
3676
  fetchPolicy: "no-cache",
3585
3677
  skip: !region || region === "",
3586
3678
  variables: { region, status }
@@ -3594,11 +3686,11 @@ var useGetAdsByRegion = (region, status) => {
3594
3686
  };
3595
3687
 
3596
3688
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3597
- var import_client49 = require("@apollo/client");
3689
+ var import_client50 = require("@apollo/client");
3598
3690
 
3599
3691
  // src/graphql/mutations/resourceActivities.ts
3600
- var import_client48 = require("@apollo/client");
3601
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3692
+ var import_client49 = require("@apollo/client");
3693
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
3602
3694
  mutation createResourceActivity($input: ResourceActivityInputType!) {
3603
3695
  createResourceActivity(input: $input) {
3604
3696
  data
@@ -3609,16 +3701,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3609
3701
 
3610
3702
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3611
3703
  var useCreateResourceActivity = () => {
3612
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3704
+ const [createResourceActivity, { loading, error }] = (0, import_client50.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3613
3705
  return { createResourceActivity, error, loading };
3614
3706
  };
3615
3707
 
3616
3708
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3617
- var import_client51 = require("@apollo/client");
3709
+ var import_client52 = require("@apollo/client");
3618
3710
 
3619
3711
  // src/graphql/queries/resourceActivities.ts
3620
- var import_client50 = require("@apollo/client");
3621
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3712
+ var import_client51 = require("@apollo/client");
3713
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
3622
3714
  fragment ResourceActivityFields on ResourceActivityType {
3623
3715
  resourceId
3624
3716
  resourceType
@@ -3637,7 +3729,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3637
3729
  }
3638
3730
  ${LOCATION_GEO_FIELDS_FRAGMENT}
3639
3731
  `;
3640
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
3732
+ var GET_RESOURCE_ACTIVITY = import_client51.gql`
3641
3733
  query getResourceActivity(
3642
3734
  $resourceType: ResourceTypeEnum!
3643
3735
  $resourceId: ID!
@@ -3651,7 +3743,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
3651
3743
 
3652
3744
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3653
3745
  var useGetResourceActivity = (resourceId, resourceType) => {
3654
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
3746
+ const { data, loading, error, refetch } = (0, import_client52.useQuery)(GET_RESOURCE_ACTIVITY, {
3655
3747
  fetchPolicy: "network-only",
3656
3748
  variables: { resourceId, resourceType }
3657
3749
  });
@@ -3664,11 +3756,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
3664
3756
  };
3665
3757
 
3666
3758
  // src/graphql/hooks/stripe/hooksMutation.ts
3667
- var import_client53 = require("@apollo/client");
3759
+ var import_client54 = require("@apollo/client");
3668
3760
 
3669
3761
  // src/graphql/mutations/stripe.ts
3670
- var import_client52 = require("@apollo/client");
3671
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3762
+ var import_client53 = require("@apollo/client");
3763
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
3672
3764
  mutation createCheckoutSession(
3673
3765
  $planId: LicencesEnumType!
3674
3766
  $billingPeriod: BillingPeriodEnumType
@@ -3682,7 +3774,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3682
3774
  }
3683
3775
  }
3684
3776
  `;
3685
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3777
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
3686
3778
  mutation cancelSubscription {
3687
3779
  cancelSubscription {
3688
3780
  data
@@ -3690,7 +3782,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3690
3782
  }
3691
3783
  }
3692
3784
  `;
3693
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3785
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
3694
3786
  mutation updateSubscriptionPlan(
3695
3787
  $newPlanId: LicencesEnumType!
3696
3788
  $billingPeriod: BillingPeriodEnumType
@@ -3709,7 +3801,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3709
3801
  }
3710
3802
  }
3711
3803
  `;
3712
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3804
+ var CREATE_CUSTOMER_PORTAL = import_client53.gql`
3713
3805
  mutation createCustomerPortal($returnUrl: String) {
3714
3806
  createCustomerPortal(returnUrl: $returnUrl) {
3715
3807
  data {
@@ -3719,7 +3811,7 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3719
3811
  }
3720
3812
  }
3721
3813
  `;
3722
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
3814
+ var SELECT_PACKAGE_MUTATION = import_client53.gql`
3723
3815
  mutation selectPackage(
3724
3816
  $billingPeriod: BillingPeriodEnumType
3725
3817
  $selectedLicence: LicencesEnumType!
@@ -3745,23 +3837,23 @@ var SELECT_PACKAGE_MUTATION = import_client52.gql`
3745
3837
 
3746
3838
  // src/graphql/hooks/stripe/hooksMutation.ts
3747
3839
  var useCreateCheckoutSession = () => {
3748
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3840
+ const [createCheckoutSession, { loading, error }] = (0, import_client54.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3749
3841
  return { createCheckoutSession, error, loading };
3750
3842
  };
3751
3843
  var useCancelSubscription = () => {
3752
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3844
+ const [cancelSubscription, { loading, error }] = (0, import_client54.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3753
3845
  return { cancelSubscription, error, loading };
3754
3846
  };
3755
3847
  var useUpdateSubscriptionPlan = () => {
3756
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3848
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client54.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3757
3849
  return { error, loading, updateSubscriptionPlan };
3758
3850
  };
3759
3851
  var useCreateCustomerPortal = () => {
3760
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
3852
+ const [createCustomerPortal, { loading, error }] = (0, import_client54.useMutation)(CREATE_CUSTOMER_PORTAL);
3761
3853
  return { createCustomerPortal, error, loading };
3762
3854
  };
3763
3855
  var useSelectPackage = () => {
3764
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
3856
+ const [selectPackage, { loading, error }] = (0, import_client54.useMutation)(SELECT_PACKAGE_MUTATION, {
3765
3857
  awaitRefetchQueries: true,
3766
3858
  refetchQueries: (mutationResult) => {
3767
3859
  const userId = mutationResult?.data?.selectPackage?.data?.userId;
@@ -3777,11 +3869,11 @@ var useSelectPackage = () => {
3777
3869
  };
3778
3870
 
3779
3871
  // src/graphql/hooks/stripe/hooksQuery.ts
3780
- var import_client55 = require("@apollo/client");
3872
+ var import_client56 = require("@apollo/client");
3781
3873
 
3782
3874
  // src/graphql/queries/stripe.ts
3783
- var import_client54 = require("@apollo/client");
3784
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3875
+ var import_client55 = require("@apollo/client");
3876
+ var GET_SUBSCRIPTION_STATUS = import_client55.gql`
3785
3877
  query getSubscriptionStatus {
3786
3878
  getSubscriptionStatus {
3787
3879
  subscriptionId
@@ -3791,7 +3883,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3791
3883
  }
3792
3884
  }
3793
3885
  `;
3794
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3886
+ var GET_SUBSCRIPTION_PLANS = import_client55.gql`
3795
3887
  query getSubscriptionPlans {
3796
3888
  getSubscriptionPlans {
3797
3889
  plans {
@@ -3822,7 +3914,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3822
3914
 
3823
3915
  // src/graphql/hooks/stripe/hooksQuery.ts
3824
3916
  var useGetSubscriptionStatus = () => {
3825
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
3917
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_STATUS);
3826
3918
  return {
3827
3919
  data: data?.getSubscriptionStatus,
3828
3920
  error,
@@ -3831,7 +3923,7 @@ var useGetSubscriptionStatus = () => {
3831
3923
  };
3832
3924
  };
3833
3925
  var useGetSubscriptionPlans = () => {
3834
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
3926
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_PLANS);
3835
3927
  return {
3836
3928
  data: data?.getSubscriptionPlans,
3837
3929
  error,
@@ -3841,11 +3933,11 @@ var useGetSubscriptionPlans = () => {
3841
3933
  };
3842
3934
 
3843
3935
  // src/graphql/hooks/partner/hooksMutation.ts
3844
- var import_client57 = require("@apollo/client");
3936
+ var import_client58 = require("@apollo/client");
3845
3937
 
3846
3938
  // src/graphql/mutations/partner.ts
3847
- var import_client56 = require("@apollo/client");
3848
- var CREATE_PARTNER_MUTATION = import_client56.gql`
3939
+ var import_client57 = require("@apollo/client");
3940
+ var CREATE_PARTNER_MUTATION = import_client57.gql`
3849
3941
  mutation createPartner($input: PartnerInputType!) {
3850
3942
  createPartner(input: $input) {
3851
3943
  data {
@@ -3856,7 +3948,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
3856
3948
  }
3857
3949
  ${PARTNER}
3858
3950
  `;
3859
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
3951
+ var UPDATE_PARTNER_MUTATION = import_client57.gql`
3860
3952
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
3861
3953
  updatePartner(_id: $_id, input: $input) {
3862
3954
  data {
@@ -3867,7 +3959,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
3867
3959
  }
3868
3960
  ${PARTNER}
3869
3961
  `;
3870
- var DELETE_PARTNER_MUTATION = import_client56.gql`
3962
+ var DELETE_PARTNER_MUTATION = import_client57.gql`
3871
3963
  mutation deletePartner($_id: ID!) {
3872
3964
  deletePartner(_id: $_id) {
3873
3965
  data
@@ -3878,21 +3970,21 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
3878
3970
 
3879
3971
  // src/graphql/hooks/partner/hooksMutation.ts
3880
3972
  var useCreatePartner = () => {
3881
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
3973
+ const [createPartner, { loading, error }] = (0, import_client58.useMutation)(CREATE_PARTNER_MUTATION, {
3882
3974
  awaitRefetchQueries: true,
3883
3975
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3884
3976
  });
3885
3977
  return { createPartner, error, loading };
3886
3978
  };
3887
3979
  var useUpdatePartner = () => {
3888
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
3980
+ const [updatePartner, { loading, error }] = (0, import_client58.useMutation)(UPDATE_PARTNER_MUTATION, {
3889
3981
  awaitRefetchQueries: true,
3890
3982
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3891
3983
  });
3892
3984
  return { error, loading, updatePartner };
3893
3985
  };
3894
3986
  var useDeletePartner = () => {
3895
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
3987
+ const [deletePartner, { loading, error }] = (0, import_client58.useMutation)(DELETE_PARTNER_MUTATION, {
3896
3988
  awaitRefetchQueries: true,
3897
3989
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3898
3990
  });
@@ -3900,9 +3992,9 @@ var useDeletePartner = () => {
3900
3992
  };
3901
3993
 
3902
3994
  // src/graphql/hooks/partner/hooksQuery.ts
3903
- var import_client58 = require("@apollo/client");
3995
+ var import_client59 = require("@apollo/client");
3904
3996
  var useGetPartners = () => {
3905
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
3997
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(GET_PARTNERS, {
3906
3998
  fetchPolicy: "network-only"
3907
3999
  });
3908
4000
  const partners = data?.partners || [];
@@ -3914,7 +4006,7 @@ var useGetPartners = () => {
3914
4006
  };
3915
4007
  };
3916
4008
  var useGetPartner = (_id) => {
3917
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
4009
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(
3918
4010
  GET_PARTNER,
3919
4011
  {
3920
4012
  fetchPolicy: "network-only",
@@ -3930,7 +4022,7 @@ var useGetPartnersByRegion = (region, options) => {
3930
4022
  options,
3931
4023
  region
3932
4024
  };
3933
- const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
4025
+ const { loading, error, data, refetch, fetchMore } = (0, import_client59.useQuery)(GET_PARTNERS_BY_REGION, {
3934
4026
  fetchPolicy: "network-only",
3935
4027
  variables
3936
4028
  });
@@ -3944,7 +4036,7 @@ var useGetPartnersByRegion = (region, options) => {
3944
4036
  };
3945
4037
  };
3946
4038
  var useSearchPartners = (search, region) => {
3947
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
4039
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(SEARCH_PARTNERS, {
3948
4040
  fetchPolicy: "network-only",
3949
4041
  skip: search.length < 3,
3950
4042
  variables: { region, search }
@@ -3954,11 +4046,11 @@ var useSearchPartners = (search, region) => {
3954
4046
  };
3955
4047
 
3956
4048
  // src/graphql/hooks/post/hooksMutation.ts
3957
- var import_client60 = require("@apollo/client");
4049
+ var import_client61 = require("@apollo/client");
3958
4050
 
3959
4051
  // src/graphql/mutations/post.ts
3960
- var import_client59 = require("@apollo/client");
3961
- var CREATE_POST_MUTATION = import_client59.gql`
4052
+ var import_client60 = require("@apollo/client");
4053
+ var CREATE_POST_MUTATION = import_client60.gql`
3962
4054
  mutation createPost($input: PostInputType!) {
3963
4055
  createPost(input: $input) {
3964
4056
  data {
@@ -3969,7 +4061,7 @@ var CREATE_POST_MUTATION = import_client59.gql`
3969
4061
  }
3970
4062
  ${POST_FIELDS_FRAGMENT}
3971
4063
  `;
3972
- var UPDATE_POST_MUTATION = import_client59.gql`
4064
+ var UPDATE_POST_MUTATION = import_client60.gql`
3973
4065
  mutation updatePost($_id: ID!, $input: PostInputType!) {
3974
4066
  updatePost(_id: $_id, input: $input) {
3975
4067
  data {
@@ -3980,7 +4072,7 @@ var UPDATE_POST_MUTATION = import_client59.gql`
3980
4072
  }
3981
4073
  ${POST_FIELDS_FRAGMENT}
3982
4074
  `;
3983
- var DELETE_POST_MUTATION = import_client59.gql`
4075
+ var DELETE_POST_MUTATION = import_client60.gql`
3984
4076
  mutation deletePost($_id: ID!) {
3985
4077
  deletePost(_id: $_id) {
3986
4078
  data
@@ -3991,21 +4083,21 @@ var DELETE_POST_MUTATION = import_client59.gql`
3991
4083
 
3992
4084
  // src/graphql/hooks/post/hooksMutation.ts
3993
4085
  var useCreatePost = () => {
3994
- const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
4086
+ const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
3995
4087
  awaitRefetchQueries: true,
3996
4088
  refetchQueries: [{ query: GET_POSTS }]
3997
4089
  });
3998
4090
  return { createPost, error, loading };
3999
4091
  };
4000
4092
  var useUpdatePost = () => {
4001
- const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
4093
+ const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
4002
4094
  awaitRefetchQueries: true,
4003
4095
  refetchQueries: [{ query: GET_POSTS }]
4004
4096
  });
4005
4097
  return { error, loading, updatePost };
4006
4098
  };
4007
4099
  var useDeletePost = () => {
4008
- const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
4100
+ const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
4009
4101
  awaitRefetchQueries: true,
4010
4102
  refetchQueries: [{ query: GET_POSTS }]
4011
4103
  });
@@ -4013,15 +4105,15 @@ var useDeletePost = () => {
4013
4105
  };
4014
4106
 
4015
4107
  // src/graphql/hooks/post/hooksQuery.ts
4016
- var import_client61 = require("@apollo/client");
4108
+ var import_client62 = require("@apollo/client");
4017
4109
  var useGetPosts = () => {
4018
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
4110
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
4019
4111
  fetchPolicy: "network-only"
4020
4112
  });
4021
4113
  return { error, loading, posts: data?.posts || [], refetch };
4022
4114
  };
4023
4115
  var useGetPost = (_id) => {
4024
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
4116
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
4025
4117
  fetchPolicy: "network-only",
4026
4118
  skip: !_id || _id === "",
4027
4119
  variables: { _id }
@@ -4029,7 +4121,7 @@ var useGetPost = (_id) => {
4029
4121
  return { error, loading, post: data?.post, refetch };
4030
4122
  };
4031
4123
  var useGetPostsByType = (postType) => {
4032
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
4124
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
4033
4125
  fetchPolicy: "network-only",
4034
4126
  skip: !postType,
4035
4127
  variables: { postType }
@@ -4038,11 +4130,11 @@ var useGetPostsByType = (postType) => {
4038
4130
  };
4039
4131
 
4040
4132
  // src/graphql/hooks/appSettings/hooksMutation.ts
4041
- var import_client64 = require("@apollo/client");
4133
+ var import_client65 = require("@apollo/client");
4042
4134
 
4043
4135
  // src/graphql/mutations/appSettings.ts
4044
- var import_client62 = require("@apollo/client");
4045
- var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4136
+ var import_client63 = require("@apollo/client");
4137
+ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
4046
4138
  mutation updateAppSettings($input: AppSettingsInputType!) {
4047
4139
  updateAppSettings(input: $input) {
4048
4140
  data
@@ -4050,7 +4142,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4050
4142
  }
4051
4143
  }
4052
4144
  `;
4053
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4145
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
4054
4146
  mutation crawlGoogleMarkets {
4055
4147
  crawlGoogleMarkets {
4056
4148
  data
@@ -4058,7 +4150,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4058
4150
  }
4059
4151
  }
4060
4152
  `;
4061
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4153
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
4062
4154
  mutation updateGoogleImportedMarkets {
4063
4155
  updateGoogleImportedMarkets {
4064
4156
  data
@@ -4068,8 +4160,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4068
4160
  `;
4069
4161
 
4070
4162
  // src/graphql/queries/appSettings.ts
4071
- var import_client63 = require("@apollo/client");
4072
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4163
+ var import_client64 = require("@apollo/client");
4164
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
4073
4165
  fragment AppSettingsFields on AppSettingsType {
4074
4166
  _id
4075
4167
  appVersion
@@ -4080,7 +4172,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4080
4172
  updatedAt
4081
4173
  }
4082
4174
  `;
4083
- var GET_APP_SETTINGS = import_client63.gql`
4175
+ var GET_APP_SETTINGS = import_client64.gql`
4084
4176
  query getAppSettings {
4085
4177
  appSettings {
4086
4178
  ...AppSettingsFields
@@ -4091,25 +4183,25 @@ var GET_APP_SETTINGS = import_client63.gql`
4091
4183
 
4092
4184
  // src/graphql/hooks/appSettings/hooksMutation.ts
4093
4185
  var useUpdateAppSettings = () => {
4094
- const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4186
+ const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4095
4187
  awaitRefetchQueries: true,
4096
4188
  refetchQueries: [{ query: GET_APP_SETTINGS }]
4097
4189
  });
4098
4190
  return { error, loading, updateAppSettings };
4099
4191
  };
4100
4192
  var useCrawlGoogleMarkets = () => {
4101
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4193
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4102
4194
  return { crawlGoogleMarkets, error, loading };
4103
4195
  };
4104
4196
  var useUpdateGoogleImportedMarkets = () => {
4105
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4197
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client65.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4106
4198
  return { error, loading, updateGoogleImportedMarkets };
4107
4199
  };
4108
4200
 
4109
4201
  // src/graphql/hooks/appSettings/hooksQuery.ts
4110
- var import_client65 = require("@apollo/client");
4202
+ var import_client66 = require("@apollo/client");
4111
4203
  var useGetAppSettings = () => {
4112
- const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
4204
+ const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
4113
4205
  fetchPolicy: "network-only"
4114
4206
  });
4115
4207
  const appSettings = data?.appSettings || null;
@@ -4117,14 +4209,14 @@ var useGetAppSettings = () => {
4117
4209
  };
4118
4210
 
4119
4211
  // src/graphql/hooks/game/hooksMutation.ts
4120
- var import_client68 = require("@apollo/client");
4212
+ var import_client69 = require("@apollo/client");
4121
4213
 
4122
4214
  // src/graphql/mutations/game.ts
4123
- var import_client67 = require("@apollo/client");
4215
+ var import_client68 = require("@apollo/client");
4124
4216
 
4125
4217
  // src/graphql/queries/game/game.ts
4126
- var import_client66 = require("@apollo/client");
4127
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
4218
+ var import_client67 = require("@apollo/client");
4219
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
4128
4220
  fragment GameHistoryFields on GameHistoryType {
4129
4221
  createdAt
4130
4222
  gameDate {
@@ -4139,7 +4231,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
4139
4231
  }
4140
4232
  ${GAME_DATE_FIELDS_FRAGMENT}
4141
4233
  `;
4142
- var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
4234
+ var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
4143
4235
  fragment GameDataFields on GameDataType {
4144
4236
  dailyClue {
4145
4237
  ...DailyClueGameDataFields
@@ -4154,7 +4246,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
4154
4246
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
4155
4247
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
4156
4248
  `;
4157
- var GAME_FIELDS_FRAGMENT = import_client66.gql`
4249
+ var GAME_FIELDS_FRAGMENT = import_client67.gql`
4158
4250
  fragment GameFields on GameType {
4159
4251
  _id
4160
4252
  active
@@ -4173,7 +4265,7 @@ var GAME_FIELDS_FRAGMENT = import_client66.gql`
4173
4265
  ${GAME_DATA_FIELDS_FRAGMENT}
4174
4266
  ${GAME_HISTORY_FIELDS_FRAGMENT}
4175
4267
  `;
4176
- var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
4268
+ var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
4177
4269
  fragment GameDocFields on GameDocType {
4178
4270
  _id
4179
4271
  active
@@ -4191,7 +4283,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
4191
4283
  ${OWNER_FIELDS_FRAGMENT}
4192
4284
  ${GAME_FIELDS_FRAGMENT}
4193
4285
  `;
4194
- var GET_GAMES = import_client66.gql`
4286
+ var GET_GAMES = import_client67.gql`
4195
4287
  query getGames {
4196
4288
  games {
4197
4289
  ...GameDocFields
@@ -4199,7 +4291,7 @@ var GET_GAMES = import_client66.gql`
4199
4291
  }
4200
4292
  ${GAME_DOC_FIELDS_FRAGMENT}
4201
4293
  `;
4202
- var GET_GAME = import_client66.gql`
4294
+ var GET_GAME = import_client67.gql`
4203
4295
  query getGame($_id: ID) {
4204
4296
  game(_id: $_id) {
4205
4297
  ...GameDocFields
@@ -4207,7 +4299,7 @@ var GET_GAME = import_client66.gql`
4207
4299
  }
4208
4300
  ${GAME_DOC_FIELDS_FRAGMENT}
4209
4301
  `;
4210
- var GET_GAME_LEADERBOARD = import_client66.gql`
4302
+ var GET_GAME_LEADERBOARD = import_client67.gql`
4211
4303
  query getGameLeaderboard {
4212
4304
  gameLeaderboard {
4213
4305
  gameHistory {
@@ -4224,7 +4316,7 @@ var GET_GAME_LEADERBOARD = import_client66.gql`
4224
4316
  `;
4225
4317
 
4226
4318
  // src/graphql/mutations/game.ts
4227
- var START_GAME_MUTATION = import_client67.gql`
4319
+ var START_GAME_MUTATION = import_client68.gql`
4228
4320
  mutation startGame($input: BaseGameInputType!) {
4229
4321
  startGame(input: $input) {
4230
4322
  data {
@@ -4235,7 +4327,7 @@ var START_GAME_MUTATION = import_client67.gql`
4235
4327
  }
4236
4328
  ${GAME_DOC_FIELDS_FRAGMENT}
4237
4329
  `;
4238
- var LEAVE_GAME_MUTATION = import_client67.gql`
4330
+ var LEAVE_GAME_MUTATION = import_client68.gql`
4239
4331
  mutation leaveGame(
4240
4332
  $_id: ID!
4241
4333
  $gameType: GameTypeEnumType!
@@ -4247,7 +4339,7 @@ var LEAVE_GAME_MUTATION = import_client67.gql`
4247
4339
  }
4248
4340
  }
4249
4341
  `;
4250
- var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
4342
+ var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
4251
4343
  mutation updateDailyClueGame(
4252
4344
  $_id: ID!
4253
4345
  $foundLetter: String!
@@ -4268,7 +4360,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
4268
4360
  }
4269
4361
  ${GAME_DOC_FIELDS_FRAGMENT}
4270
4362
  `;
4271
- var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
4363
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
4272
4364
  mutation updatePuzzleGame(
4273
4365
  $_id: ID!
4274
4366
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -4292,7 +4384,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
4292
4384
 
4293
4385
  // src/graphql/hooks/game/hooksMutation.ts
4294
4386
  var useStartGame = () => {
4295
- const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
4387
+ const [startGame, { loading, error }] = (0, import_client69.useMutation)(START_GAME_MUTATION, {
4296
4388
  awaitRefetchQueries: true,
4297
4389
  refetchQueries: (mutationResult) => {
4298
4390
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -4315,7 +4407,7 @@ var useStartGame = () => {
4315
4407
  return { error, loading, startGame };
4316
4408
  };
4317
4409
  var useLeaveGame = () => {
4318
- const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
4410
+ const [leaveGame, { loading, error }] = (0, import_client69.useMutation)(LEAVE_GAME_MUTATION, {
4319
4411
  awaitRefetchQueries: true,
4320
4412
  refetchQueries: [
4321
4413
  {
@@ -4326,7 +4418,7 @@ var useLeaveGame = () => {
4326
4418
  return { error, leaveGame, loading };
4327
4419
  };
4328
4420
  var useUpdateDailyClueGame = () => {
4329
- const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4421
+ const [updateDailyClueGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4330
4422
  awaitRefetchQueries: true,
4331
4423
  refetchQueries: (mutationResult) => {
4332
4424
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -4343,7 +4435,7 @@ var useUpdateDailyClueGame = () => {
4343
4435
  return { error, loading, updateDailyClueGame };
4344
4436
  };
4345
4437
  var useUpdatePuzzleGame = () => {
4346
- const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4438
+ const [updatePuzzleGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4347
4439
  awaitRefetchQueries: true,
4348
4440
  refetchQueries: (mutationResult) => {
4349
4441
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -4361,16 +4453,16 @@ var useUpdatePuzzleGame = () => {
4361
4453
  };
4362
4454
 
4363
4455
  // src/graphql/hooks/game/hooksQuery.ts
4364
- var import_client69 = require("@apollo/client");
4456
+ var import_client70 = require("@apollo/client");
4365
4457
  var useGetGames = () => {
4366
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
4458
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAMES, {
4367
4459
  fetchPolicy: "network-only"
4368
4460
  });
4369
4461
  const games = data?.games || [];
4370
4462
  return { error, games, loading, refetch };
4371
4463
  };
4372
4464
  var useGetGame = (_id) => {
4373
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
4465
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME, {
4374
4466
  fetchPolicy: "network-only",
4375
4467
  skip: !_id,
4376
4468
  variables: _id ? { _id } : void 0
@@ -4379,7 +4471,7 @@ var useGetGame = (_id) => {
4379
4471
  return { error, game, loading, refetch };
4380
4472
  };
4381
4473
  var useGetGameLeaderboard = () => {
4382
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
4474
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME_LEADERBOARD, {
4383
4475
  fetchPolicy: "network-only"
4384
4476
  });
4385
4477
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -4387,14 +4479,14 @@ var useGetGameLeaderboard = () => {
4387
4479
  };
4388
4480
 
4389
4481
  // src/graphql/hooks/school/hooksMutation.ts
4390
- var import_client72 = require("@apollo/client");
4482
+ var import_client73 = require("@apollo/client");
4391
4483
 
4392
4484
  // src/graphql/mutations/school.ts
4393
- var import_client71 = require("@apollo/client");
4485
+ var import_client72 = require("@apollo/client");
4394
4486
 
4395
4487
  // src/graphql/queries/school.ts
4396
- var import_client70 = require("@apollo/client");
4397
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
4488
+ var import_client71 = require("@apollo/client");
4489
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
4398
4490
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
4399
4491
  _id
4400
4492
  active
@@ -4407,14 +4499,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
4407
4499
  }
4408
4500
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4409
4501
  `;
4410
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
4502
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client71.gql`
4411
4503
  fragment SchoolCampaignFields on SchoolCampaignType {
4412
4504
  endDate
4413
4505
  name
4414
4506
  startDate
4415
4507
  }
4416
4508
  `;
4417
- var SCHOOL = import_client70.gql`
4509
+ var SCHOOL = import_client71.gql`
4418
4510
  fragment SchoolFields on SchoolType {
4419
4511
  _id
4420
4512
  active
@@ -4458,7 +4550,7 @@ var SCHOOL = import_client70.gql`
4458
4550
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4459
4551
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
4460
4552
  `;
4461
- var GET_SCHOOL = import_client70.gql`
4553
+ var GET_SCHOOL = import_client71.gql`
4462
4554
  query getSchool($_id: ID!) {
4463
4555
  school(_id: $_id) {
4464
4556
  school {
@@ -4472,7 +4564,7 @@ var GET_SCHOOL = import_client70.gql`
4472
4564
  ${SCHOOL}
4473
4565
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
4474
4566
  `;
4475
- var GET_SCHOOLS = import_client70.gql`
4567
+ var GET_SCHOOLS = import_client71.gql`
4476
4568
  query getSchools {
4477
4569
  schools {
4478
4570
  ...SchoolFields
@@ -4482,7 +4574,7 @@ var GET_SCHOOLS = import_client70.gql`
4482
4574
  `;
4483
4575
 
4484
4576
  // src/graphql/mutations/school.ts
4485
- var CREATE_SCHOOL_MUTATION = import_client71.gql`
4577
+ var CREATE_SCHOOL_MUTATION = import_client72.gql`
4486
4578
  mutation createSchool($input: SchoolInputType!) {
4487
4579
  createSchool(input: $input) {
4488
4580
  data {
@@ -4493,7 +4585,7 @@ var CREATE_SCHOOL_MUTATION = import_client71.gql`
4493
4585
  }
4494
4586
  ${SCHOOL}
4495
4587
  `;
4496
- var UPDATE_SCHOOL_MUTATION = import_client71.gql`
4588
+ var UPDATE_SCHOOL_MUTATION = import_client72.gql`
4497
4589
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
4498
4590
  updateSchool(_id: $_id, input: $input) {
4499
4591
  data {
@@ -4504,7 +4596,7 @@ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
4504
4596
  }
4505
4597
  ${SCHOOL}
4506
4598
  `;
4507
- var DELETE_SCHOOL_MUTATION = import_client71.gql`
4599
+ var DELETE_SCHOOL_MUTATION = import_client72.gql`
4508
4600
  mutation deleteSchool($_id: ID!) {
4509
4601
  deleteSchool(_id: $_id) {
4510
4602
  data
@@ -4512,7 +4604,7 @@ var DELETE_SCHOOL_MUTATION = import_client71.gql`
4512
4604
  }
4513
4605
  }
4514
4606
  `;
4515
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
4607
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
4516
4608
  mutation requestMarketingMaterial(
4517
4609
  $input: MarketingMaterialRequestInputType!
4518
4610
  ) {
@@ -4525,35 +4617,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
4525
4617
 
4526
4618
  // src/graphql/hooks/school/hooksMutation.ts
4527
4619
  var useCreateSchool = () => {
4528
- const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
4620
+ const [createSchool, { loading, error }] = (0, import_client73.useMutation)(CREATE_SCHOOL_MUTATION, {
4529
4621
  awaitRefetchQueries: true,
4530
4622
  refetchQueries: [{ query: GET_SCHOOLS }]
4531
4623
  });
4532
4624
  return { createSchool, error, loading };
4533
4625
  };
4534
4626
  var useUpdateSchool = () => {
4535
- const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
4627
+ const [updateSchool, { loading, error }] = (0, import_client73.useMutation)(UPDATE_SCHOOL_MUTATION, {
4536
4628
  awaitRefetchQueries: true,
4537
4629
  refetchQueries: [{ query: GET_SCHOOLS }]
4538
4630
  });
4539
4631
  return { error, loading, updateSchool };
4540
4632
  };
4541
4633
  var useDeleteSchool = () => {
4542
- const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
4634
+ const [deleteSchool, { loading, error }] = (0, import_client73.useMutation)(DELETE_SCHOOL_MUTATION, {
4543
4635
  awaitRefetchQueries: true,
4544
4636
  refetchQueries: [{ query: GET_SCHOOLS }]
4545
4637
  });
4546
4638
  return { deleteSchool, error, loading };
4547
4639
  };
4548
4640
  var useRequestMarketingMaterial = () => {
4549
- const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4641
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client73.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4550
4642
  return { error, loading, requestMarketingMaterial };
4551
4643
  };
4552
4644
 
4553
4645
  // src/graphql/hooks/school/hooksQuery.ts
4554
- var import_client73 = require("@apollo/client");
4646
+ var import_client74 = require("@apollo/client");
4555
4647
  var useGetSchools = () => {
4556
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(
4648
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(
4557
4649
  GET_SCHOOLS,
4558
4650
  {
4559
4651
  fetchPolicy: "network-only"
@@ -4567,7 +4659,7 @@ var useGetSchools = () => {
4567
4659
  };
4568
4660
  };
4569
4661
  var useGetSchool = (_id) => {
4570
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
4662
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(GET_SCHOOL, {
4571
4663
  fetchPolicy: "network-only",
4572
4664
  skip: !_id,
4573
4665
  variables: { _id }
@@ -4581,11 +4673,11 @@ var useGetSchool = (_id) => {
4581
4673
  };
4582
4674
 
4583
4675
  // src/graphql/hooks/affiliate/hooksQuery.ts
4584
- var import_client75 = require("@apollo/client");
4676
+ var import_client76 = require("@apollo/client");
4585
4677
 
4586
4678
  // src/graphql/queries/affiliate.ts
4587
- var import_client74 = require("@apollo/client");
4588
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
4679
+ var import_client75 = require("@apollo/client");
4680
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
4589
4681
  fragment AffiliateRewardFields on AffiliateRewardType {
4590
4682
  createdAt
4591
4683
  redeemedAt
@@ -4594,7 +4686,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
4594
4686
  rewardValue
4595
4687
  }
4596
4688
  `;
4597
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
4689
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
4598
4690
  fragment AffiliateResourceFields on AffiliateResourceType {
4599
4691
  resourceActive
4600
4692
  resourceDeletedAt
@@ -4611,13 +4703,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
4611
4703
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
4612
4704
  ${OWNER_FIELDS_FRAGMENT}
4613
4705
  `;
4614
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4706
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4615
4707
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
4616
4708
  accountHolderName
4617
4709
  accountNumber
4618
4710
  }
4619
4711
  `;
4620
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4712
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4621
4713
  fragment AffiliateDetailsFields on AffiliateDetailsType {
4622
4714
  bankAccountDetails {
4623
4715
  ...AffiliateBankAccountDetailsFields
@@ -4645,7 +4737,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4645
4737
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4646
4738
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
4647
4739
  `;
4648
- var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
4740
+ var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
4649
4741
  fragment AffiliateFields on AffiliateType {
4650
4742
  _id
4651
4743
  active
@@ -4677,7 +4769,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
4677
4769
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
4678
4770
  ${OWNER_FIELDS_FRAGMENT}
4679
4771
  `;
4680
- var GET_AFFILIATE = import_client74.gql`
4772
+ var GET_AFFILIATE = import_client75.gql`
4681
4773
  query getAffiliate($_id: ID!) {
4682
4774
  affiliate(_id: $_id) {
4683
4775
  ...AffiliateFields
@@ -4685,7 +4777,7 @@ var GET_AFFILIATE = import_client74.gql`
4685
4777
  }
4686
4778
  ${AFFILIATE_FIELDS_FRAGMENT}
4687
4779
  `;
4688
- var GET_AFFILIATES = import_client74.gql`
4780
+ var GET_AFFILIATES = import_client75.gql`
4689
4781
  query getAffiliates {
4690
4782
  affiliates {
4691
4783
  ...AffiliateFields
@@ -4696,7 +4788,7 @@ var GET_AFFILIATES = import_client74.gql`
4696
4788
 
4697
4789
  // src/graphql/hooks/affiliate/hooksQuery.ts
4698
4790
  var useGetAffiliate = (_id) => {
4699
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
4791
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATE, {
4700
4792
  fetchPolicy: "network-only",
4701
4793
  skip: !_id || _id === "",
4702
4794
  variables: { _id }
@@ -4710,7 +4802,7 @@ var useGetAffiliate = (_id) => {
4710
4802
  };
4711
4803
  };
4712
4804
  var useGetAffiliates = () => {
4713
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
4805
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATES, {
4714
4806
  fetchPolicy: "network-only"
4715
4807
  });
4716
4808
  const affiliates = data?.affiliates || [];
@@ -4723,11 +4815,11 @@ var useGetAffiliates = () => {
4723
4815
  };
4724
4816
 
4725
4817
  // src/graphql/hooks/affiliate/hooksMutation.ts
4726
- var import_client77 = require("@apollo/client");
4818
+ var import_client78 = require("@apollo/client");
4727
4819
 
4728
4820
  // src/graphql/mutations/affiliate.ts
4729
- var import_client76 = require("@apollo/client");
4730
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
4821
+ var import_client77 = require("@apollo/client");
4822
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
4731
4823
  mutation updateAffiliateDetails(
4732
4824
  $input: AffiliateDetailsInputType!
4733
4825
  $affiliateId: ID!
@@ -4741,7 +4833,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
4741
4833
  }
4742
4834
  ${AFFILIATE_FIELDS_FRAGMENT}
4743
4835
  `;
4744
- var DELETE_AFFILIATE_MUTATION = import_client76.gql`
4836
+ var DELETE_AFFILIATE_MUTATION = import_client77.gql`
4745
4837
  mutation deleteAffiliate($_id: ID!) {
4746
4838
  deleteAffiliate(_id: $_id) {
4747
4839
  data
@@ -4749,7 +4841,7 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
4749
4841
  }
4750
4842
  }
4751
4843
  `;
4752
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
4844
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
4753
4845
  mutation redeemAffiliateReward($affiliateId: ID!) {
4754
4846
  redeemAffiliateReward(affiliateId: $affiliateId) {
4755
4847
  data {
@@ -4760,7 +4852,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
4760
4852
  }
4761
4853
  ${AFFILIATE_FIELDS_FRAGMENT}
4762
4854
  `;
4763
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
4855
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
4764
4856
  mutation assignAffiliateResourceReward(
4765
4857
  $affiliateId: ID!
4766
4858
  $resourceId: ID!
@@ -4781,7 +4873,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
4781
4873
  }
4782
4874
  ${AFFILIATE_FIELDS_FRAGMENT}
4783
4875
  `;
4784
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
4876
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
4785
4877
  mutation assignAffiliateBonusReward(
4786
4878
  $affiliateId: ID!
4787
4879
  $rewardType: AffiliateRewardEnumType!
@@ -4801,7 +4893,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
4801
4893
 
4802
4894
  // src/graphql/hooks/affiliate/hooksMutation.ts
4803
4895
  var useUpdateAffiliateDetails = () => {
4804
- const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4896
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client78.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4805
4897
  awaitRefetchQueries: true,
4806
4898
  refetchQueries: (mutationResult) => {
4807
4899
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -4812,14 +4904,14 @@ var useUpdateAffiliateDetails = () => {
4812
4904
  return { error, loading, updateAffiliateDetails };
4813
4905
  };
4814
4906
  var useDeleteAffiliate = () => {
4815
- const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
4907
+ const [deleteAffiliate, { loading, error }] = (0, import_client78.useMutation)(DELETE_AFFILIATE_MUTATION, {
4816
4908
  awaitRefetchQueries: true,
4817
4909
  refetchQueries: [{ query: GET_AFFILIATES }]
4818
4910
  });
4819
4911
  return { deleteAffiliate, error, loading };
4820
4912
  };
4821
4913
  var useRedeemAffiliateReward = () => {
4822
- const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4914
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client78.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4823
4915
  awaitRefetchQueries: true,
4824
4916
  refetchQueries: (mutationResult) => {
4825
4917
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -4830,7 +4922,7 @@ var useRedeemAffiliateReward = () => {
4830
4922
  return { error, loading, redeemAffiliateReward };
4831
4923
  };
4832
4924
  var useAssignAffiliateResourceReward = () => {
4833
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4925
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4834
4926
  awaitRefetchQueries: true,
4835
4927
  refetchQueries: (mutationResult) => {
4836
4928
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -4841,7 +4933,7 @@ var useAssignAffiliateResourceReward = () => {
4841
4933
  return { assignAffiliateResourceReward, error, loading };
4842
4934
  };
4843
4935
  var useAssignAffiliateBonusReward = () => {
4844
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4936
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4845
4937
  awaitRefetchQueries: true,
4846
4938
  refetchQueries: (mutationResult) => {
4847
4939
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -4857,84 +4949,6 @@ var import_client80 = require("@apollo/client");
4857
4949
 
4858
4950
  // src/graphql/mutations/coupon.ts
4859
4951
  var import_client79 = require("@apollo/client");
4860
-
4861
- // src/graphql/queries/coupon.ts
4862
- var import_client78 = require("@apollo/client");
4863
- var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
4864
- fragment CouponCodeFields on CouponCodeType {
4865
- code
4866
- qrCode {
4867
- ...ResourceImageFields
4868
- }
4869
- }
4870
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4871
- `;
4872
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
4873
- fragment CouponParticipantUserFields on CouponParticipantUserType {
4874
- couponCount
4875
- couponRedeemedAt
4876
- createdAt
4877
- updatedAt
4878
- userId
4879
- }
4880
- `;
4881
- var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client78.gql`
4882
- fragment ProductCouponFields on ProductCouponType {
4883
- _id
4884
- active
4885
- couponCode {
4886
- ...CouponCodeFields
4887
- }
4888
- couponDescription
4889
- couponOption
4890
- createdAt
4891
- endDate
4892
- participantProduct {
4893
- ...VendorProductListFields
4894
- }
4895
- participantUsers {
4896
- ...CouponParticipantUserFields
4897
- }
4898
- startDate
4899
- updatedAt
4900
- }
4901
- ${COUPON_CODE_FIELDS_FRAGMENT}
4902
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4903
- ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
4904
- `;
4905
- var COUPON = import_client78.gql`
4906
- fragment CouponFields on CouponType {
4907
- _id
4908
- active
4909
- productCoupons {
4910
- ...ProductCouponFields
4911
- }
4912
- createdAt
4913
- deletedAt
4914
- updatedAt
4915
- }
4916
- ${PRODUCT_COUPON_FIELDS_FRAGMENT}
4917
- ${COUPON_CODE_FIELDS_FRAGMENT}
4918
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4919
- `;
4920
- var GET_COUPONS = import_client78.gql`
4921
- query getCoupons {
4922
- coupons {
4923
- ...CouponFields
4924
- }
4925
- }
4926
- ${COUPON}
4927
- `;
4928
- var GET_COUPON = import_client78.gql`
4929
- query getCoupon($_id: ID!) {
4930
- coupon(_id: $_id) {
4931
- ...CouponFields
4932
- }
4933
- }
4934
- ${COUPON}
4935
- `;
4936
-
4937
- // src/graphql/mutations/coupon.ts
4938
4952
  var CREATE_COUPON_MUTATION = import_client79.gql`
4939
4953
  mutation createCoupon($input: CouponInputType!) {
4940
4954
  createCoupon(input: $input) {