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