@timardex/cluemart-shared 1.7.28 → 1.7.30

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 (63) hide show
  1. package/dist/{ad-C8XVY1Ig.d.mts → ad-BDx9eYoO.d.mts} +2 -2
  2. package/dist/{ad-B9tX1jAF.d.ts → ad-BYbSba4V.d.ts} +2 -2
  3. package/dist/{coupon-BDEw47eR.d.ts → affiliate-Cxdq9Q2k.d.ts} +3 -47
  4. package/dist/{coupon-C6CyYA96.d.mts → affiliate-kBWfF_ZN.d.mts} +3 -47
  5. package/dist/auth/index.cjs +139 -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-24JSCOFX.mjs} +9 -85
  11. package/dist/chunk-24JSCOFX.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-3UYXNSNB.mjs} +12 -7
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-3UYXNSNB.mjs.map} +1 -1
  14. package/dist/{chunk-LS3KB634.mjs → chunk-GZYTDNBQ.mjs} +141 -27
  15. package/dist/chunk-GZYTDNBQ.mjs.map +1 -0
  16. package/dist/{chunk-7TL4ZSUO.mjs → chunk-UV5GH6NI.mjs} +10 -2
  17. package/dist/chunk-UV5GH6NI.mjs.map +1 -0
  18. package/dist/{contactUs-C-pVJyZB.d.mts → contactUs-BXjzZEI1.d.mts} +1 -1
  19. package/dist/{contactUs-BZf4DfMe.d.ts → contactUs-Dk8zBwW9.d.ts} +1 -1
  20. package/dist/formFields/index.d.mts +1 -1
  21. package/dist/formFields/index.d.ts +1 -1
  22. package/dist/formFields/index.mjs +2 -2
  23. package/dist/{global-BC6YWupC.d.mts → global-D1ZvBNbG.d.mts} +67 -2
  24. package/dist/{global-Ch0I5X41.d.ts → global-Dot3RjVJ.d.ts} +67 -2
  25. package/dist/graphql/index.cjs +520 -486
  26. package/dist/graphql/index.cjs.map +1 -1
  27. package/dist/graphql/index.d.mts +5 -5
  28. package/dist/graphql/index.d.ts +5 -5
  29. package/dist/graphql/index.mjs +2 -2
  30. package/dist/hooks/index.cjs +402 -352
  31. package/dist/hooks/index.cjs.map +1 -1
  32. package/dist/hooks/index.d.mts +8 -8
  33. package/dist/hooks/index.d.ts +8 -8
  34. package/dist/hooks/index.mjs +33 -17
  35. package/dist/hooks/index.mjs.map +1 -1
  36. package/dist/index.cjs +540 -492
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.mts +69 -47
  39. package/dist/index.d.ts +69 -47
  40. package/dist/index.mjs +355 -308
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/map/index.d.mts +1 -1
  43. package/dist/map/index.d.ts +1 -1
  44. package/dist/{resourceActivities-C6EjqEG7.d.ts → resourceActivities-E-7429jp.d.ts} +1 -1
  45. package/dist/{resourceActivities-Vh5zcV02.d.mts → resourceActivities-kGzOHndG.d.mts} +1 -1
  46. package/dist/sharing/index.d.mts +1 -1
  47. package/dist/sharing/index.d.ts +1 -1
  48. package/dist/types/index.cjs +9 -0
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +7 -7
  51. package/dist/types/index.d.ts +7 -7
  52. package/dist/types/index.mjs +3 -1
  53. package/dist/{user-DrA0HITt.d.ts → user-Ca0QNirI.d.ts} +2 -1
  54. package/dist/{user-DWNmVv-L.d.mts → user-JCkXYAQS.d.mts} +2 -1
  55. package/dist/utils/index.cjs +11 -6
  56. package/dist/utils/index.cjs.map +1 -1
  57. package/dist/utils/index.d.mts +5 -5
  58. package/dist/utils/index.d.ts +5 -5
  59. package/dist/utils/index.mjs +4 -4
  60. package/package.json +1 -1
  61. package/dist/chunk-2G4J6K5K.mjs.map +0 -1
  62. package/dist/chunk-7TL4ZSUO.mjs.map +0 -1
  63. 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,116 @@ 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_OPTION_FIELDS_FRAGMENT = import_client3.gql`
728
+ fragment CouponOptionFields on CouponOptionType {
729
+ type
730
+ buy
731
+ get
732
+ unit
733
+ visits
734
+ }
735
+ `;
736
+ var COUPON_REWARD_FIELDS_FRAGMENT = import_client3.gql`
737
+ fragment CouponRewardFields on CouponRewardType {
738
+ vendorId
739
+ productId
740
+ quantity
741
+ unit
742
+ }
743
+ `;
744
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
745
+ fragment CouponDataFields on CouponDataType {
746
+ _id
747
+ active
748
+ couponCode {
749
+ ...CouponCodeFields
750
+ }
751
+ couponDescription
752
+ couponOption {
753
+ ...CouponOptionFields
754
+ }
755
+ couponRewards {
756
+ ...CouponRewardFields
757
+ }
758
+ createdAt
759
+ endDate
760
+ participantUsers {
761
+ ...CouponParticipantUserFields
762
+ }
763
+ resourceId
764
+ resourceType
765
+ startDate
766
+ updatedAt
767
+ }
768
+ ${COUPON_CODE_FIELDS_FRAGMENT}
769
+ ${COUPON_OPTION_FIELDS_FRAGMENT}
770
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
771
+ ${COUPON_REWARD_FIELDS_FRAGMENT}
772
+ `;
773
+ var COUPON = import_client3.gql`
774
+ fragment CouponFields on CouponType {
775
+ _id
776
+ active
777
+ couponData {
778
+ ...CouponDataFields
779
+ }
780
+ createdAt
781
+ deletedAt
782
+ owner {
783
+ ...OwnerFields
784
+ }
785
+ updatedAt
786
+ }
787
+ ${OWNER_FIELDS_FRAGMENT}
788
+ ${COUPON_DATA_FIELDS_FRAGMENT}
789
+ `;
790
+ var GET_COUPONS = import_client3.gql`
791
+ query getCoupons {
792
+ coupons {
793
+ ...CouponFields
794
+ }
795
+ }
796
+ ${COUPON}
797
+ `;
798
+ var GET_COUPON = import_client3.gql`
799
+ query getCoupon($_id: ID!) {
800
+ coupon(_id: $_id) {
801
+ ...CouponFields
802
+ }
803
+ }
804
+ ${COUPON}
805
+ `;
806
+
807
+ // src/graphql/queries/vendor.ts
808
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
700
809
  fragment VendorDateTimeFields on VendorDateTimeType {
701
810
  dateStatus
702
811
  endDate
@@ -705,20 +814,23 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
705
814
  startTime
706
815
  }
707
816
  `;
708
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
817
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
709
818
  fragment VendorProductListFields on VendorProductListType {
710
819
  _id
820
+ coupon {
821
+ ...ProductCouponFields
822
+ }
711
823
  createdAt
712
824
  description
713
- hasCoupon
714
825
  name
715
826
  price
716
827
  priceUnit
717
828
  productGroups
718
829
  updatedAt
719
830
  }
831
+ ${PRODUCT_COUPON_FIELDS_FRAGMENT}
720
832
  `;
721
- var VENDOR = import_client3.gql`
833
+ var VENDOR = import_client4.gql`
722
834
  fragment VendorFields on VendorType {
723
835
  _id
724
836
  active
@@ -819,13 +931,13 @@ var VENDOR = import_client3.gql`
819
931
  ${RELATED_POST_FIELDS_FRAGMENT}
820
932
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
821
933
  `;
822
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
934
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
823
935
  fragment VendorAttributesFields on VendorAttributesType {
824
936
  details
825
937
  isRequired
826
938
  }
827
939
  `;
828
- var VENDOR_INFO = import_client3.gql`
940
+ var VENDOR_INFO = import_client4.gql`
829
941
  fragment VendorInfoFields on VendorInfoType {
830
942
  _id
831
943
  compliance {
@@ -866,7 +978,7 @@ var VENDOR_INFO = import_client3.gql`
866
978
  ${VENDOR_ATTRIBUTES_FRAGMENT}
867
979
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
868
980
  `;
869
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
981
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
870
982
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
871
983
  dateTime {
872
984
  ...DateTimeFields
@@ -875,7 +987,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client3.gql`
875
987
  }
876
988
  ${DATETIME_FIELDS_FRAGMENT}
877
989
  `;
878
- var UNREGISTERED_VENDOR = import_client3.gql`
990
+ var UNREGISTERED_VENDOR = import_client4.gql`
879
991
  fragment UnregisteredVendorFields on UnregisteredVendorType {
880
992
  _id
881
993
  active
@@ -895,7 +1007,7 @@ var UNREGISTERED_VENDOR = import_client3.gql`
895
1007
  }
896
1008
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
897
1009
  `;
898
- var GET_VENDORS = import_client3.gql`
1010
+ var GET_VENDORS = import_client4.gql`
899
1011
  query getVendors {
900
1012
  vendors {
901
1013
  ...VendorFields
@@ -903,7 +1015,7 @@ var GET_VENDORS = import_client3.gql`
903
1015
  }
904
1016
  ${VENDOR}
905
1017
  `;
906
- var GET_VENDOR = import_client3.gql`
1018
+ var GET_VENDOR = import_client4.gql`
907
1019
  query getVendor($_id: ID!) {
908
1020
  vendor(_id: $_id) {
909
1021
  ...VendorFields
@@ -911,7 +1023,7 @@ var GET_VENDOR = import_client3.gql`
911
1023
  }
912
1024
  ${VENDOR}
913
1025
  `;
914
- var GET_VENDORS_BY_REGION = import_client3.gql`
1026
+ var GET_VENDORS_BY_REGION = import_client4.gql`
915
1027
  query getVendorsByRegion(
916
1028
  $region: String!
917
1029
  $options: ResourcesByRegionOptions
@@ -922,7 +1034,7 @@ var GET_VENDORS_BY_REGION = import_client3.gql`
922
1034
  }
923
1035
  ${VENDOR}
924
1036
  `;
925
- var SEARCH_VENDORS = import_client3.gql`
1037
+ var SEARCH_VENDORS = import_client4.gql`
926
1038
  query searchVendors($search: String!, $region: String!) {
927
1039
  vendorSearch(search: $search, region: $region) {
928
1040
  ...VendorFields
@@ -930,7 +1042,7 @@ var SEARCH_VENDORS = import_client3.gql`
930
1042
  }
931
1043
  ${VENDOR}
932
1044
  `;
933
- var GET_VENDOR_INFO = import_client3.gql`
1045
+ var GET_VENDOR_INFO = import_client4.gql`
934
1046
  query getVendorInfo($vendorId: ID!) {
935
1047
  vendorInfo(vendorId: $vendorId) {
936
1048
  ...VendorInfoFields
@@ -938,7 +1050,7 @@ var GET_VENDOR_INFO = import_client3.gql`
938
1050
  }
939
1051
  ${VENDOR_INFO}
940
1052
  `;
941
- var GET_UNREGISTERED_VENDORS = import_client3.gql`
1053
+ var GET_UNREGISTERED_VENDORS = import_client4.gql`
942
1054
  query getUnregisteredVendors {
943
1055
  unregisteredVendors {
944
1056
  ...UnregisteredVendorFields
@@ -946,7 +1058,7 @@ var GET_UNREGISTERED_VENDORS = import_client3.gql`
946
1058
  }
947
1059
  ${UNREGISTERED_VENDOR}
948
1060
  `;
949
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
1061
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client4.gql`
950
1062
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
951
1063
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
952
1064
  ...UnregisteredVendorFields
@@ -954,7 +1066,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client3.gql`
954
1066
  }
955
1067
  ${UNREGISTERED_VENDOR}
956
1068
  `;
957
- var GET_UNREGISTERED_VENDOR = import_client3.gql`
1069
+ var GET_UNREGISTERED_VENDOR = import_client4.gql`
958
1070
  query getUnregisteredVendor($_id: ID!) {
959
1071
  unregisteredVendor(_id: $_id) {
960
1072
  ...UnregisteredVendorFields
@@ -962,7 +1074,7 @@ var GET_UNREGISTERED_VENDOR = import_client3.gql`
962
1074
  }
963
1075
  ${UNREGISTERED_VENDOR}
964
1076
  `;
965
- var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
1077
+ var MY_PENDING_VENDOR_CLAIM = import_client4.gql`
966
1078
  query myPendingVendorClaim {
967
1079
  myPendingVendorClaim {
968
1080
  _id
@@ -973,8 +1085,8 @@ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
973
1085
  `;
974
1086
 
975
1087
  // src/graphql/mutations/vendor.ts
976
- var import_client4 = require("@apollo/client");
977
- var CREATE_VENDOR_MUTATION = import_client4.gql`
1088
+ var import_client5 = require("@apollo/client");
1089
+ var CREATE_VENDOR_MUTATION = import_client5.gql`
978
1090
  mutation createVendor($input: VendorInputType!) {
979
1091
  createVendor(input: $input) {
980
1092
  data {
@@ -985,7 +1097,7 @@ var CREATE_VENDOR_MUTATION = import_client4.gql`
985
1097
  }
986
1098
  ${VENDOR}
987
1099
  `;
988
- var UPDATE_VENDOR_MUTATION = import_client4.gql`
1100
+ var UPDATE_VENDOR_MUTATION = import_client5.gql`
989
1101
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
990
1102
  updateVendor(_id: $_id, input: $input) {
991
1103
  data {
@@ -996,7 +1108,7 @@ var UPDATE_VENDOR_MUTATION = import_client4.gql`
996
1108
  }
997
1109
  ${VENDOR}
998
1110
  `;
999
- var DELETE_VENDOR_MUTATION = import_client4.gql`
1111
+ var DELETE_VENDOR_MUTATION = import_client5.gql`
1000
1112
  mutation deleteVendor($_id: ID!) {
1001
1113
  deleteVendor(_id: $_id) {
1002
1114
  data
@@ -1004,7 +1116,7 @@ var DELETE_VENDOR_MUTATION = import_client4.gql`
1004
1116
  }
1005
1117
  }
1006
1118
  `;
1007
- var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
1119
+ var CREATE_VENDOR_INFO_MUTATION = import_client5.gql`
1008
1120
  mutation createVendorInfo($input: VendorInfoInputType!) {
1009
1121
  createVendorInfo(input: $input) {
1010
1122
  data {
@@ -1015,7 +1127,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
1015
1127
  }
1016
1128
  ${VENDOR_INFO}
1017
1129
  `;
1018
- var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
1130
+ var UPDATE_VENDOR_INFO_MUTATION = import_client5.gql`
1019
1131
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1020
1132
  updateVendorInfo(_id: $_id, input: $input) {
1021
1133
  data {
@@ -1026,7 +1138,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
1026
1138
  }
1027
1139
  ${VENDOR_INFO}
1028
1140
  `;
1029
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1141
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1030
1142
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
1031
1143
  createUnregisteredVendor(input: $input) {
1032
1144
  data {
@@ -1037,7 +1149,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1037
1149
  }
1038
1150
  ${UNREGISTERED_VENDOR}
1039
1151
  `;
1040
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1152
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1041
1153
  mutation updateUnregisteredVendor(
1042
1154
  $_id: ID!
1043
1155
  $input: UnregisteredVendorInputType!
@@ -1051,7 +1163,7 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1051
1163
  }
1052
1164
  ${UNREGISTERED_VENDOR}
1053
1165
  `;
1054
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1166
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client5.gql`
1055
1167
  mutation deleteUnregisteredVendor($_id: ID!) {
1056
1168
  deleteUnregisteredVendor(_id: $_id) {
1057
1169
  data
@@ -1059,7 +1171,7 @@ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1059
1171
  }
1060
1172
  }
1061
1173
  `;
1062
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
1174
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client5.gql`
1063
1175
  mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
1064
1176
  unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
1065
1177
  data
@@ -1067,7 +1179,7 @@ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
1067
1179
  }
1068
1180
  }
1069
1181
  `;
1070
- var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
1182
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client5.gql`
1071
1183
  mutation activateVendorClaim($token: String!) {
1072
1184
  activateVendorClaim(token: $token) {
1073
1185
  valid
@@ -1077,8 +1189,8 @@ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
1077
1189
  `;
1078
1190
 
1079
1191
  // src/graphql/queries/partner.ts
1080
- var import_client5 = require("@apollo/client");
1081
- var PARTNER = import_client5.gql`
1192
+ var import_client6 = require("@apollo/client");
1193
+ var PARTNER = import_client6.gql`
1082
1194
  fragment PartnerFields on PartnerType {
1083
1195
  _id
1084
1196
  active
@@ -1139,7 +1251,7 @@ var PARTNER = import_client5.gql`
1139
1251
  ${RELATED_POST_FIELDS_FRAGMENT}
1140
1252
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1141
1253
  `;
1142
- var GET_PARTNERS = import_client5.gql`
1254
+ var GET_PARTNERS = import_client6.gql`
1143
1255
  query getPartners {
1144
1256
  partners {
1145
1257
  ...PartnerFields
@@ -1147,7 +1259,7 @@ var GET_PARTNERS = import_client5.gql`
1147
1259
  }
1148
1260
  ${PARTNER}
1149
1261
  `;
1150
- var GET_PARTNER = import_client5.gql`
1262
+ var GET_PARTNER = import_client6.gql`
1151
1263
  query getPartner($_id: ID!) {
1152
1264
  partner(_id: $_id) {
1153
1265
  ...PartnerFields
@@ -1155,7 +1267,7 @@ var GET_PARTNER = import_client5.gql`
1155
1267
  }
1156
1268
  ${PARTNER}
1157
1269
  `;
1158
- var GET_PARTNERS_BY_REGION = import_client5.gql`
1270
+ var GET_PARTNERS_BY_REGION = import_client6.gql`
1159
1271
  query getPartnersByRegion(
1160
1272
  $region: String!
1161
1273
  $options: ResourcesByRegionOptions
@@ -1166,7 +1278,7 @@ var GET_PARTNERS_BY_REGION = import_client5.gql`
1166
1278
  }
1167
1279
  ${PARTNER}
1168
1280
  `;
1169
- var SEARCH_PARTNERS = import_client5.gql`
1281
+ var SEARCH_PARTNERS = import_client6.gql`
1170
1282
  query searchPartners($search: String!, $region: String!) {
1171
1283
  partnersSearch(search: $search, region: $region) {
1172
1284
  ...PartnerFields
@@ -1176,17 +1288,17 @@ var SEARCH_PARTNERS = import_client5.gql`
1176
1288
  `;
1177
1289
 
1178
1290
  // src/graphql/queries/post.ts
1179
- var import_client8 = require("@apollo/client");
1291
+ var import_client9 = require("@apollo/client");
1180
1292
 
1181
1293
  // src/graphql/queries/game/dailyClue.ts
1182
- var import_client6 = require("@apollo/client");
1183
- var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
1294
+ var import_client7 = require("@apollo/client");
1295
+ var GAME_DATE_FIELDS_FRAGMENT = import_client7.gql`
1184
1296
  fragment GameDateFields on GameDateType {
1185
1297
  startDate
1186
1298
  endDate
1187
1299
  }
1188
1300
  `;
1189
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1301
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1190
1302
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
1191
1303
  gameDate {
1192
1304
  ...GameDateFields
@@ -1195,7 +1307,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1195
1307
  }
1196
1308
  ${GAME_DATE_FIELDS_FRAGMENT}
1197
1309
  `;
1198
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1310
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1199
1311
  fragment DailyClueGameDataFields on DailyClueGameDataType {
1200
1312
  gameFields {
1201
1313
  ...DailyClueBaseGameFields
@@ -1215,15 +1327,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1215
1327
  `;
1216
1328
 
1217
1329
  // src/graphql/queries/game/puzzleGame.ts
1218
- var import_client7 = require("@apollo/client");
1219
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
1330
+ var import_client8 = require("@apollo/client");
1331
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client8.gql`
1220
1332
  fragment PuzzleAnswerFields on PuzzleAnswerType {
1221
1333
  answer
1222
1334
  answerId
1223
1335
  correct
1224
1336
  }
1225
1337
  `;
1226
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1338
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1227
1339
  fragment PuzzleQuestionFields on PuzzleQuestionType {
1228
1340
  answers {
1229
1341
  ...PuzzleAnswerFields
@@ -1233,13 +1345,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1233
1345
  }
1234
1346
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
1235
1347
  `;
1236
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1348
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client8.gql`
1237
1349
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
1238
1350
  questionId
1239
1351
  selectedAnswerId
1240
1352
  }
1241
1353
  `;
1242
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1354
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1243
1355
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
1244
1356
  questions {
1245
1357
  ...PuzzleQuestionFields
@@ -1247,7 +1359,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1247
1359
  }
1248
1360
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
1249
1361
  `;
1250
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1362
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client8.gql`
1251
1363
  fragment PuzzleGameDataFields on PuzzleGameDataType {
1252
1364
  gameFields {
1253
1365
  ...PuzzleBaseGameFields
@@ -1263,7 +1375,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1263
1375
  `;
1264
1376
 
1265
1377
  // src/graphql/queries/post.ts
1266
- var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1378
+ var BASE_GAME_FIELDS_FRAGMENT = import_client9.gql`
1267
1379
  fragment BaseGameFields on BaseGameType {
1268
1380
  gameTypeId
1269
1381
  gameTitle
@@ -1281,7 +1393,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1281
1393
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
1282
1394
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
1283
1395
  `;
1284
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
1396
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client9.gql`
1285
1397
  fragment PostContentDataFields on PostContentData {
1286
1398
  game {
1287
1399
  ...BaseGameFields
@@ -1307,7 +1419,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
1307
1419
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1308
1420
  ${BASE_GAME_FIELDS_FRAGMENT}
1309
1421
  `;
1310
- var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
1422
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client9.gql`
1311
1423
  fragment PostContentFields on PostContentType {
1312
1424
  contentData {
1313
1425
  ...PostContentDataFields
@@ -1317,7 +1429,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
1317
1429
  }
1318
1430
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
1319
1431
  `;
1320
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
1432
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client9.gql`
1321
1433
  fragment PostResourceFields on PostResourceType {
1322
1434
  resourceId
1323
1435
  resourceSlug
@@ -1325,7 +1437,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
1325
1437
  resourceType
1326
1438
  }
1327
1439
  `;
1328
- var POST_FIELDS_FRAGMENT = import_client8.gql`
1440
+ var POST_FIELDS_FRAGMENT = import_client9.gql`
1329
1441
  fragment PostFields on PostType {
1330
1442
  _id
1331
1443
  active
@@ -1356,7 +1468,7 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
1356
1468
  ${POST_RESOURCE_FIELDS_FRAGMENT}
1357
1469
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1358
1470
  `;
1359
- var GET_POSTS = import_client8.gql`
1471
+ var GET_POSTS = import_client9.gql`
1360
1472
  query getPosts {
1361
1473
  posts {
1362
1474
  ...PostFields
@@ -1364,7 +1476,7 @@ var GET_POSTS = import_client8.gql`
1364
1476
  }
1365
1477
  ${POST_FIELDS_FRAGMENT}
1366
1478
  `;
1367
- var GET_POST = import_client8.gql`
1479
+ var GET_POST = import_client9.gql`
1368
1480
  query getPost($_id: ID!) {
1369
1481
  post(_id: $_id) {
1370
1482
  ...PostFields
@@ -1372,7 +1484,7 @@ var GET_POST = import_client8.gql`
1372
1484
  }
1373
1485
  ${POST_FIELDS_FRAGMENT}
1374
1486
  `;
1375
- var GET_POSTS_BY_TYPE = import_client8.gql`
1487
+ var GET_POSTS_BY_TYPE = import_client9.gql`
1376
1488
  query getPostsByType($postType: PostTypeEnum!) {
1377
1489
  postsByType(postType: $postType) {
1378
1490
  ...PostFields
@@ -1382,29 +1494,29 @@ var GET_POSTS_BY_TYPE = import_client8.gql`
1382
1494
  `;
1383
1495
 
1384
1496
  // src/graphql/queries/shareSlug.ts
1385
- var import_client9 = require("@apollo/client");
1386
- var GET_EVENT_BY_SLUG = import_client9.gql`
1497
+ var import_client10 = require("@apollo/client");
1498
+ var GET_EVENT_BY_SLUG = import_client10.gql`
1387
1499
  query getEventBySlug($slug: String!) {
1388
1500
  eventBySlug(slug: $slug) {
1389
1501
  _id
1390
1502
  }
1391
1503
  }
1392
1504
  `;
1393
- var GET_VENDOR_BY_SLUG = import_client9.gql`
1505
+ var GET_VENDOR_BY_SLUG = import_client10.gql`
1394
1506
  query getVendorBySlug($slug: String!) {
1395
1507
  vendorBySlug(slug: $slug) {
1396
1508
  _id
1397
1509
  }
1398
1510
  }
1399
1511
  `;
1400
- var GET_PARTNER_BY_SLUG = import_client9.gql`
1512
+ var GET_PARTNER_BY_SLUG = import_client10.gql`
1401
1513
  query getPartnerBySlug($slug: String!) {
1402
1514
  partnerBySlug(slug: $slug) {
1403
1515
  _id
1404
1516
  }
1405
1517
  }
1406
1518
  `;
1407
- var GET_POST_BY_SLUG = import_client9.gql`
1519
+ var GET_POST_BY_SLUG = import_client10.gql`
1408
1520
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
1409
1521
  postBySlug(slug: $slug, postType: $postType) {
1410
1522
  _id
@@ -1413,8 +1525,8 @@ var GET_POST_BY_SLUG = import_client9.gql`
1413
1525
  `;
1414
1526
 
1415
1527
  // src/graphql/queries/relation.ts
1416
- var import_client10 = require("@apollo/client");
1417
- var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1528
+ var import_client11 = require("@apollo/client");
1529
+ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
1418
1530
  fragment RelationFields on RelationType {
1419
1531
  _id
1420
1532
  active
@@ -1431,7 +1543,7 @@ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1431
1543
  }
1432
1544
  ${RELATION_DATES_FRAGMENT}
1433
1545
  `;
1434
- var GET_RELATION = import_client10.gql`
1546
+ var GET_RELATION = import_client11.gql`
1435
1547
  query getRelation($_id: ID!) {
1436
1548
  relation(_id: $_id) {
1437
1549
  ...RelationFields
@@ -1439,7 +1551,7 @@ var GET_RELATION = import_client10.gql`
1439
1551
  }
1440
1552
  ${RELATION_FIELDS_FRAGMENT}
1441
1553
  `;
1442
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1554
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
1443
1555
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1444
1556
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1445
1557
  ...RelationFields
@@ -1447,7 +1559,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1447
1559
  }
1448
1560
  ${RELATION_FIELDS_FRAGMENT}
1449
1561
  `;
1450
- var GET_EVENT_RELATIONS = import_client10.gql`
1562
+ var GET_EVENT_RELATIONS = import_client11.gql`
1451
1563
  query getEventRelations($eventId: ID!) {
1452
1564
  eventRelations(eventId: $eventId) {
1453
1565
  ...RelationFields
@@ -1455,7 +1567,7 @@ var GET_EVENT_RELATIONS = import_client10.gql`
1455
1567
  }
1456
1568
  ${RELATION_FIELDS_FRAGMENT}
1457
1569
  `;
1458
- var GET_VENDOR_RELATIONS = import_client10.gql`
1570
+ var GET_VENDOR_RELATIONS = import_client11.gql`
1459
1571
  query getVendorRelations($vendorId: ID!) {
1460
1572
  vendorRelations(vendorId: $vendorId) {
1461
1573
  ...RelationFields
@@ -1463,7 +1575,7 @@ var GET_VENDOR_RELATIONS = import_client10.gql`
1463
1575
  }
1464
1576
  ${RELATION_FIELDS_FRAGMENT}
1465
1577
  `;
1466
- var GET_RESOURCE_CONNECTIONS = import_client10.gql`
1578
+ var GET_RESOURCE_CONNECTIONS = import_client11.gql`
1467
1579
  query getResourceConnections(
1468
1580
  $resourceId: ID!
1469
1581
  $resourceType: ResourceTypeEnum!
@@ -1488,11 +1600,11 @@ function toGraphqlQueryString(query) {
1488
1600
  }
1489
1601
 
1490
1602
  // src/graphql/hooks/admin/hooksMutation.ts
1491
- var import_client12 = require("@apollo/client");
1603
+ var import_client13 = require("@apollo/client");
1492
1604
 
1493
1605
  // src/graphql/mutations/admin.ts
1494
- var import_client11 = require("@apollo/client");
1495
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1606
+ var import_client12 = require("@apollo/client");
1607
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
1496
1608
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
1497
1609
  adminUpdateResourceType(input: $input) {
1498
1610
  data {
@@ -1504,7 +1616,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1504
1616
  }
1505
1617
  }
1506
1618
  `;
1507
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1619
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
1508
1620
  mutation adminResendUserVerificationEmail($userId: ID!) {
1509
1621
  adminResendUserVerificationEmail(userId: $userId) {
1510
1622
  data
@@ -1512,7 +1624,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1512
1624
  }
1513
1625
  }
1514
1626
  `;
1515
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1627
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
1516
1628
  mutation adminPermanentlyDeleteResource(
1517
1629
  $resourceId: ID!
1518
1630
  $resourceType: ResourceTypeEnum!
@@ -1529,7 +1641,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1529
1641
 
1530
1642
  // src/graphql/hooks/admin/hooksMutation.ts
1531
1643
  var useAdminUpdateResourceType = () => {
1532
- const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1644
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1533
1645
  awaitRefetchQueries: true,
1534
1646
  refetchQueries: (mutationResult) => {
1535
1647
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -1552,7 +1664,7 @@ var useAdminUpdateResourceType = () => {
1552
1664
  };
1553
1665
  };
1554
1666
  var useAdminResendUserVerificationEmail = () => {
1555
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1667
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1556
1668
  return {
1557
1669
  adminResendUserVerificationEmail,
1558
1670
  error,
@@ -1560,7 +1672,7 @@ var useAdminResendUserVerificationEmail = () => {
1560
1672
  };
1561
1673
  };
1562
1674
  var useAdminPermanentlyDeleteResource = () => {
1563
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1675
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1564
1676
  return {
1565
1677
  adminPermanentlyDeleteResource,
1566
1678
  error,
@@ -1569,11 +1681,11 @@ var useAdminPermanentlyDeleteResource = () => {
1569
1681
  };
1570
1682
 
1571
1683
  // src/graphql/hooks/auth.ts
1572
- var import_client14 = require("@apollo/client");
1684
+ var import_client15 = require("@apollo/client");
1573
1685
 
1574
1686
  // src/graphql/mutations/auth.ts
1575
- var import_client13 = require("@apollo/client");
1576
- var REGISTER_MUTATION = import_client13.gql`
1687
+ var import_client14 = require("@apollo/client");
1688
+ var REGISTER_MUTATION = import_client14.gql`
1577
1689
  mutation register($input: RegisterInputType!) {
1578
1690
  register(input: $input) {
1579
1691
  data {
@@ -1588,7 +1700,7 @@ var REGISTER_MUTATION = import_client13.gql`
1588
1700
  }
1589
1701
  ${USER_FIELDS_FRAGMENT}
1590
1702
  `;
1591
- var LOGIN_MUTATION = import_client13.gql`
1703
+ var LOGIN_MUTATION = import_client14.gql`
1592
1704
  mutation login($input: LoginInputType!) {
1593
1705
  login(input: $input) {
1594
1706
  data {
@@ -1603,7 +1715,7 @@ var LOGIN_MUTATION = import_client13.gql`
1603
1715
  }
1604
1716
  ${USER_FIELDS_FRAGMENT}
1605
1717
  `;
1606
- var LOGOUT_MUTATION = import_client13.gql`
1718
+ var LOGOUT_MUTATION = import_client14.gql`
1607
1719
  mutation logout {
1608
1720
  logout {
1609
1721
  data
@@ -1611,7 +1723,7 @@ var LOGOUT_MUTATION = import_client13.gql`
1611
1723
  }
1612
1724
  }
1613
1725
  `;
1614
- var REFRESH_TOKEN_MUTATION = import_client13.gql`
1726
+ var REFRESH_TOKEN_MUTATION = import_client14.gql`
1615
1727
  mutation refreshToken($input: RefreshTokenInputType!) {
1616
1728
  refreshToken(input: $input) {
1617
1729
  data {
@@ -1622,7 +1734,7 @@ var REFRESH_TOKEN_MUTATION = import_client13.gql`
1622
1734
  }
1623
1735
  }
1624
1736
  `;
1625
- var RESET_PASSWORD_MUTATION = import_client13.gql`
1737
+ var RESET_PASSWORD_MUTATION = import_client14.gql`
1626
1738
  mutation resetPassword($input: ResetPasswordInputType!) {
1627
1739
  resetPassword(input: $input) {
1628
1740
  data
@@ -1630,7 +1742,7 @@ var RESET_PASSWORD_MUTATION = import_client13.gql`
1630
1742
  }
1631
1743
  }
1632
1744
  `;
1633
- var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1745
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
1634
1746
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
1635
1747
  requestPasswordReset(input: $input) {
1636
1748
  data
@@ -1638,7 +1750,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1638
1750
  }
1639
1751
  }
1640
1752
  `;
1641
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1753
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
1642
1754
  mutation validateVerificationToken(
1643
1755
  $input: ValidateVerificationTokenInputType!
1644
1756
  ) {
@@ -1651,43 +1763,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1651
1763
 
1652
1764
  // src/graphql/hooks/auth.ts
1653
1765
  var useRegister = () => {
1654
- const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
1766
+ const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
1655
1767
  return { error, loading, register };
1656
1768
  };
1657
1769
  var useLogin = () => {
1658
- const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
1770
+ const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
1659
1771
  return { error, loading, login };
1660
1772
  };
1661
1773
  var useLogout = () => {
1662
- const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
1774
+ const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
1663
1775
  return { error, loading, logout };
1664
1776
  };
1665
1777
  var useRefreshToken = () => {
1666
- const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
1778
+ const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
1667
1779
  return { error, loading, refreshToken };
1668
1780
  };
1669
1781
  var useRequestPasswordReset = () => {
1670
- const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1782
+ const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1671
1783
  return { error, loading, requestPasswordReset };
1672
1784
  };
1673
1785
  var useValidateVerificationToken = () => {
1674
- const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1786
+ const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1675
1787
  return { error, loading, validateVerificationToken };
1676
1788
  };
1677
1789
  var useResetPassword = () => {
1678
- const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
1790
+ const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
1679
1791
  return { error, loading, resetPassword };
1680
1792
  };
1681
1793
 
1682
1794
  // src/graphql/hooks/chat/hooksMutation.ts
1683
- var import_client17 = require("@apollo/client");
1795
+ var import_client18 = require("@apollo/client");
1684
1796
 
1685
1797
  // src/graphql/mutations/chat.ts
1686
- var import_client16 = require("@apollo/client");
1798
+ var import_client17 = require("@apollo/client");
1687
1799
 
1688
1800
  // src/graphql/queries/chat.ts
1689
- var import_client15 = require("@apollo/client");
1690
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1801
+ var import_client16 = require("@apollo/client");
1802
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
1691
1803
  fragment ChatMessageFields on ChatMessageType {
1692
1804
  _id
1693
1805
  content
@@ -1710,7 +1822,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1710
1822
  updatedAt
1711
1823
  }
1712
1824
  `;
1713
- var CHAT_PARTICIPANT = import_client15.gql`
1825
+ var CHAT_PARTICIPANT = import_client16.gql`
1714
1826
  fragment ChatParticipantFields on ChatParticipantType {
1715
1827
  active
1716
1828
  userAvatar
@@ -1719,7 +1831,7 @@ var CHAT_PARTICIPANT = import_client15.gql`
1719
1831
  userName
1720
1832
  }
1721
1833
  `;
1722
- var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1834
+ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
1723
1835
  fragment ChatFields on ChatType {
1724
1836
  _id
1725
1837
  active
@@ -1740,7 +1852,7 @@ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1740
1852
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1741
1853
  ${CHAT_PARTICIPANT}
1742
1854
  `;
1743
- var CHAT = import_client15.gql`
1855
+ var CHAT = import_client16.gql`
1744
1856
  query chat($_id: ID!) {
1745
1857
  chat(_id: $_id) {
1746
1858
  ...ChatFields
@@ -1748,7 +1860,7 @@ var CHAT = import_client15.gql`
1748
1860
  }
1749
1861
  ${CHAT_FIELDS_FRAGMENT}
1750
1862
  `;
1751
- var PRIVATE_CHATS = import_client15.gql`
1863
+ var PRIVATE_CHATS = import_client16.gql`
1752
1864
  query privateChats {
1753
1865
  privateChats {
1754
1866
  ...ChatFields
@@ -1756,7 +1868,7 @@ var PRIVATE_CHATS = import_client15.gql`
1756
1868
  }
1757
1869
  ${CHAT_FIELDS_FRAGMENT}
1758
1870
  `;
1759
- var RELATION_CHATS = import_client15.gql`
1871
+ var RELATION_CHATS = import_client16.gql`
1760
1872
  query relationChats {
1761
1873
  relationChats {
1762
1874
  ...ChatFields
@@ -1764,7 +1876,7 @@ var RELATION_CHATS = import_client15.gql`
1764
1876
  }
1765
1877
  ${CHAT_FIELDS_FRAGMENT}
1766
1878
  `;
1767
- var GET_CHATS_BY_REGION = import_client15.gql`
1879
+ var GET_CHATS_BY_REGION = import_client16.gql`
1768
1880
  query getChatsByRegion($region: String!) {
1769
1881
  chatsByRegion(region: $region) {
1770
1882
  ...ChatFields
@@ -1772,7 +1884,7 @@ var GET_CHATS_BY_REGION = import_client15.gql`
1772
1884
  }
1773
1885
  ${CHAT_FIELDS_FRAGMENT}
1774
1886
  `;
1775
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1887
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
1776
1888
  fragment ChatReportFields on ReportChatUserType {
1777
1889
  _id
1778
1890
  chatId
@@ -1787,7 +1899,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1787
1899
  updatedAt
1788
1900
  }
1789
1901
  `;
1790
- var GET_REPORTED_CHAT_USERS = import_client15.gql`
1902
+ var GET_REPORTED_CHAT_USERS = import_client16.gql`
1791
1903
  query getReportedChatUsers {
1792
1904
  reportedChatUsers {
1793
1905
  ...ChatReportFields
@@ -1797,7 +1909,7 @@ var GET_REPORTED_CHAT_USERS = import_client15.gql`
1797
1909
  `;
1798
1910
 
1799
1911
  // src/graphql/mutations/chat.ts
1800
- var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1912
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
1801
1913
  mutation createPrivateChat($userId: ID!) {
1802
1914
  createPrivateChat(userId: $userId) {
1803
1915
  data {
@@ -1808,7 +1920,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1808
1920
  }
1809
1921
  ${CHAT_FIELDS_FRAGMENT}
1810
1922
  `;
1811
- var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1923
+ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
1812
1924
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1813
1925
  sendChatMessage(_id: $_id, input: $input) {
1814
1926
  data {
@@ -1819,7 +1931,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1819
1931
  }
1820
1932
  ${CHAT_FIELDS_FRAGMENT}
1821
1933
  `;
1822
- var DELETE_CHAT_MUTATION = import_client16.gql`
1934
+ var DELETE_CHAT_MUTATION = import_client17.gql`
1823
1935
  mutation deleteChat($_id: ID!) {
1824
1936
  deleteChat(_id: $_id) {
1825
1937
  data
@@ -1827,7 +1939,7 @@ var DELETE_CHAT_MUTATION = import_client16.gql`
1827
1939
  }
1828
1940
  }
1829
1941
  `;
1830
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1942
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
1831
1943
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
1832
1944
  addParticipantToChat(chatId: $chatId, userId: $userId) {
1833
1945
  data {
@@ -1838,7 +1950,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1838
1950
  }
1839
1951
  ${CHAT_FIELDS_FRAGMENT}
1840
1952
  `;
1841
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1953
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
1842
1954
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
1843
1955
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
1844
1956
  data {
@@ -1849,7 +1961,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1849
1961
  }
1850
1962
  }
1851
1963
  `;
1852
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1964
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
1853
1965
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
1854
1966
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
1855
1967
  data {
@@ -1860,7 +1972,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1860
1972
  }
1861
1973
  ${CHAT_FIELDS_FRAGMENT}
1862
1974
  `;
1863
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1975
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
1864
1976
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
1865
1977
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
1866
1978
  data {
@@ -1871,7 +1983,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1871
1983
  }
1872
1984
  ${CHAT_FIELDS_FRAGMENT}
1873
1985
  `;
1874
- var REPORT_CHAT_USER_MUTATION = import_client16.gql`
1986
+ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
1875
1987
  mutation reportChatUser($input: ReportChatUserInputType!) {
1876
1988
  reportChatUser(input: $input) {
1877
1989
  data {
@@ -1885,14 +1997,14 @@ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
1885
1997
 
1886
1998
  // src/graphql/hooks/chat/hooksMutation.ts
1887
1999
  var useCreatePrivateChat = () => {
1888
- const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
2000
+ const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1889
2001
  awaitRefetchQueries: true,
1890
2002
  refetchQueries: [{ query: PRIVATE_CHATS }]
1891
2003
  });
1892
2004
  return { createPrivateChat, error, loading };
1893
2005
  };
1894
2006
  var useSendChatMessage = () => {
1895
- const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
2007
+ const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1896
2008
  awaitRefetchQueries: true,
1897
2009
  refetchQueries: (mutationResult) => {
1898
2010
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -1907,14 +2019,14 @@ var useSendChatMessage = () => {
1907
2019
  return { error, loading, sendChatMessage };
1908
2020
  };
1909
2021
  var useDeleteChat = () => {
1910
- const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
2022
+ const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
1911
2023
  awaitRefetchQueries: true,
1912
2024
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
1913
2025
  });
1914
2026
  return { deleteChat, error, loading };
1915
2027
  };
1916
2028
  var useAddParticipantToChat = () => {
1917
- const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2029
+ const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1918
2030
  awaitRefetchQueries: true,
1919
2031
  refetchQueries: (mutationResult) => {
1920
2032
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -1935,7 +2047,7 @@ var useAddParticipantToChat = () => {
1935
2047
  return { addParticipantToChat, error, loading };
1936
2048
  };
1937
2049
  var useRemoveParticipantFromChat = () => {
1938
- const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2050
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1939
2051
  awaitRefetchQueries: true,
1940
2052
  refetchQueries: (mutationResult) => {
1941
2053
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -1955,7 +2067,7 @@ var useRemoveParticipantFromChat = () => {
1955
2067
  return { error, loading, removeParticipantFromChat };
1956
2068
  };
1957
2069
  var useToggleChatMessageLike = () => {
1958
- const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2070
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1959
2071
  awaitRefetchQueries: true,
1960
2072
  refetchQueries: (mutationResult) => {
1961
2073
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -1970,7 +2082,7 @@ var useToggleChatMessageLike = () => {
1970
2082
  return { error, loading, toggleChatMessageLike };
1971
2083
  };
1972
2084
  var useMarkChatMessagesSeen = () => {
1973
- const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2085
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
1974
2086
  awaitRefetchQueries: true,
1975
2087
  refetchQueries: (mutationResult) => {
1976
2088
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -1985,16 +2097,16 @@ var useMarkChatMessagesSeen = () => {
1985
2097
  return { error, loading, markChatMessagesSeen };
1986
2098
  };
1987
2099
  var useReportChatUser = () => {
1988
- const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
2100
+ const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
1989
2101
  return { error, loading, reportChatUser };
1990
2102
  };
1991
2103
 
1992
2104
  // src/graphql/hooks/chat/hooksQuery.ts
1993
- var import_client19 = require("@apollo/client");
2105
+ var import_client20 = require("@apollo/client");
1994
2106
 
1995
2107
  // src/graphql/subscriptions/chat.ts
1996
- var import_client18 = require("@apollo/client");
1997
- var GET_CHAT_MESSAGE = import_client18.gql`
2108
+ var import_client19 = require("@apollo/client");
2109
+ var GET_CHAT_MESSAGE = import_client19.gql`
1998
2110
  subscription {
1999
2111
  getChatMessage {
2000
2112
  ...ChatFields
@@ -2005,7 +2117,7 @@ var GET_CHAT_MESSAGE = import_client18.gql`
2005
2117
 
2006
2118
  // src/graphql/hooks/chat/hooksQuery.ts
2007
2119
  var useGetChat = (_id) => {
2008
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
2120
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
2009
2121
  fetchPolicy: "network-only",
2010
2122
  skip: !_id || _id === "",
2011
2123
  variables: { _id }
@@ -2014,28 +2126,28 @@ var useGetChat = (_id) => {
2014
2126
  return { chat, error, loading, refetch };
2015
2127
  };
2016
2128
  var useGetPrivateChats = () => {
2017
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
2129
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
2018
2130
  fetchPolicy: "network-only"
2019
2131
  });
2020
2132
  const privateChats = data?.privateChats || [];
2021
2133
  return { error, loading, privateChats, refetch };
2022
2134
  };
2023
2135
  var useGetRelationChats = () => {
2024
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
2136
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
2025
2137
  fetchPolicy: "network-only"
2026
2138
  });
2027
2139
  const relationChats = data?.relationChats || [];
2028
2140
  return { error, loading, refetch, relationChats };
2029
2141
  };
2030
2142
  var useGetChatSubscription = () => {
2031
- const { data, loading, error } = (0, import_client19.useSubscription)(
2143
+ const { data, loading, error } = (0, import_client20.useSubscription)(
2032
2144
  GET_CHAT_MESSAGE
2033
2145
  );
2034
2146
  const chat = data?.getChat;
2035
2147
  return { chat, error, loading };
2036
2148
  };
2037
2149
  var useGetChatsByRegion = (region) => {
2038
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
2150
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
2039
2151
  fetchPolicy: "network-only",
2040
2152
  variables: { region }
2041
2153
  });
@@ -2043,7 +2155,7 @@ var useGetChatsByRegion = (region) => {
2043
2155
  return { chatsByRegion, error, loading, refetch };
2044
2156
  };
2045
2157
  var useGetReportedChatUsers = () => {
2046
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
2158
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
2047
2159
  fetchPolicy: "network-only"
2048
2160
  });
2049
2161
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -2051,11 +2163,11 @@ var useGetReportedChatUsers = () => {
2051
2163
  };
2052
2164
 
2053
2165
  // src/graphql/hooks/contactUs.ts
2054
- var import_client21 = require("@apollo/client");
2166
+ var import_client22 = require("@apollo/client");
2055
2167
 
2056
2168
  // src/graphql/mutations/contactUs.ts
2057
- var import_client20 = require("@apollo/client");
2058
- var CONTACT_US_MUTATION = import_client20.gql`
2169
+ var import_client21 = require("@apollo/client");
2170
+ var CONTACT_US_MUTATION = import_client21.gql`
2059
2171
  mutation contactUs($input: ContactUsInputType!) {
2060
2172
  contactUs(input: $input) {
2061
2173
  data
@@ -2066,16 +2178,16 @@ var CONTACT_US_MUTATION = import_client20.gql`
2066
2178
 
2067
2179
  // src/graphql/hooks/contactUs.ts
2068
2180
  var useContactUs = () => {
2069
- const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
2181
+ const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
2070
2182
  return { contactUs, error, loading };
2071
2183
  };
2072
2184
 
2073
2185
  // src/graphql/hooks/event/hooksMutation.ts
2074
- var import_client24 = require("@apollo/client");
2186
+ var import_client25 = require("@apollo/client");
2075
2187
 
2076
2188
  // src/graphql/mutations/event.ts
2077
- var import_client22 = require("@apollo/client");
2078
- var CREATE_EVENT_MUTATION = import_client22.gql`
2189
+ var import_client23 = require("@apollo/client");
2190
+ var CREATE_EVENT_MUTATION = import_client23.gql`
2079
2191
  mutation createEvent($input: EventInputType!) {
2080
2192
  createEvent(input: $input) {
2081
2193
  data {
@@ -2086,7 +2198,7 @@ var CREATE_EVENT_MUTATION = import_client22.gql`
2086
2198
  }
2087
2199
  ${EVENT}
2088
2200
  `;
2089
- var UPDATE_EVENT_MUTATION = import_client22.gql`
2201
+ var UPDATE_EVENT_MUTATION = import_client23.gql`
2090
2202
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
2091
2203
  updateEvent(_id: $_id, input: $input) {
2092
2204
  data {
@@ -2097,7 +2209,7 @@ var UPDATE_EVENT_MUTATION = import_client22.gql`
2097
2209
  }
2098
2210
  ${EVENT}
2099
2211
  `;
2100
- var DELETE_EVENT_MUTATION = import_client22.gql`
2212
+ var DELETE_EVENT_MUTATION = import_client23.gql`
2101
2213
  mutation deleteEvent($_id: ID!) {
2102
2214
  deleteEvent(_id: $_id) {
2103
2215
  data
@@ -2105,7 +2217,7 @@ var DELETE_EVENT_MUTATION = import_client22.gql`
2105
2217
  }
2106
2218
  }
2107
2219
  `;
2108
- var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2220
+ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
2109
2221
  mutation createEventInfo($input: EventInfoInputType!) {
2110
2222
  createEventInfo(input: $input) {
2111
2223
  data {
@@ -2116,7 +2228,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2116
2228
  }
2117
2229
  ${EVENT_INFO}
2118
2230
  `;
2119
- var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2231
+ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
2120
2232
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
2121
2233
  updateEventInfo(_id: $_id, input: $input) {
2122
2234
  data {
@@ -2129,8 +2241,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2129
2241
  `;
2130
2242
 
2131
2243
  // src/graphql/queries/user.ts
2132
- var import_client23 = require("@apollo/client");
2133
- var GET_USERS = import_client23.gql`
2244
+ var import_client24 = require("@apollo/client");
2245
+ var GET_USERS = import_client24.gql`
2134
2246
  query getUsers {
2135
2247
  users {
2136
2248
  ...UserFields
@@ -2138,7 +2250,7 @@ var GET_USERS = import_client23.gql`
2138
2250
  }
2139
2251
  ${USER_FIELDS_FRAGMENT}
2140
2252
  `;
2141
- var GET_USER = import_client23.gql`
2253
+ var GET_USER = import_client24.gql`
2142
2254
  query getUser($_id: ID!) {
2143
2255
  user(_id: $_id) {
2144
2256
  ...UserFields
@@ -2146,7 +2258,7 @@ var GET_USER = import_client23.gql`
2146
2258
  }
2147
2259
  ${USER_FIELDS_FRAGMENT}
2148
2260
  `;
2149
- var GET_USER_EVENTS = import_client23.gql`
2261
+ var GET_USER_EVENTS = import_client24.gql`
2150
2262
  query getUserEvents {
2151
2263
  userEvents {
2152
2264
  ...EventFields
@@ -2154,7 +2266,7 @@ var GET_USER_EVENTS = import_client23.gql`
2154
2266
  }
2155
2267
  ${EVENT}
2156
2268
  `;
2157
- var GET_USER_VENDORS = import_client23.gql`
2269
+ var GET_USER_VENDORS = import_client24.gql`
2158
2270
  query getUserVendors {
2159
2271
  userVendors {
2160
2272
  ...VendorFields
@@ -2162,7 +2274,7 @@ var GET_USER_VENDORS = import_client23.gql`
2162
2274
  }
2163
2275
  ${VENDOR}
2164
2276
  `;
2165
- var GET_USER_PARTNERS = import_client23.gql`
2277
+ var GET_USER_PARTNERS = import_client24.gql`
2166
2278
  query getUserPartners {
2167
2279
  userPartners {
2168
2280
  ...PartnerFields
@@ -2170,7 +2282,7 @@ var GET_USER_PARTNERS = import_client23.gql`
2170
2282
  }
2171
2283
  ${PARTNER}
2172
2284
  `;
2173
- var GET_USER_ACTIVITIES = import_client23.gql`
2285
+ var GET_USER_ACTIVITIES = import_client24.gql`
2174
2286
  query getUserActivities {
2175
2287
  userActivities {
2176
2288
  favourites {
@@ -2205,7 +2317,7 @@ var GET_USER_ACTIVITIES = import_client23.gql`
2205
2317
  ${VENDOR}
2206
2318
  ${PARTNER}
2207
2319
  `;
2208
- var GET_USER_RESOURCES = import_client23.gql`
2320
+ var GET_USER_RESOURCES = import_client24.gql`
2209
2321
  query getUserResources($userId: ID!) {
2210
2322
  userResources(userId: $userId) {
2211
2323
  resources {
@@ -2220,14 +2332,14 @@ var GET_USER_RESOURCES = import_client23.gql`
2220
2332
 
2221
2333
  // src/graphql/hooks/event/hooksMutation.ts
2222
2334
  var useCreateEvent = () => {
2223
- const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
2335
+ const [createEvent, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_MUTATION, {
2224
2336
  awaitRefetchQueries: true,
2225
2337
  refetchQueries: [{ query: GET_USER_EVENTS }]
2226
2338
  });
2227
2339
  return { createEvent, error, loading };
2228
2340
  };
2229
2341
  var useUpdateEvent = () => {
2230
- const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
2342
+ const [updateEvent, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_MUTATION, {
2231
2343
  awaitRefetchQueries: true,
2232
2344
  refetchQueries: (mutationResult) => {
2233
2345
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -2250,14 +2362,14 @@ var useUpdateEvent = () => {
2250
2362
  return { error, loading, updateEvent };
2251
2363
  };
2252
2364
  var useDeleteEvent = () => {
2253
- const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
2365
+ const [deleteEvent, { loading, error }] = (0, import_client25.useMutation)(DELETE_EVENT_MUTATION, {
2254
2366
  awaitRefetchQueries: true,
2255
2367
  refetchQueries: [{ query: GET_USER_EVENTS }]
2256
2368
  });
2257
2369
  return { deleteEvent, error, loading };
2258
2370
  };
2259
2371
  var useCreateEventInfo = () => {
2260
- const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2372
+ const [createEventInfo, { loading, error }] = (0, import_client25.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2261
2373
  awaitRefetchQueries: true,
2262
2374
  refetchQueries: (mutationResult) => {
2263
2375
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -2281,7 +2393,7 @@ var useCreateEventInfo = () => {
2281
2393
  return { createEventInfo, error, loading };
2282
2394
  };
2283
2395
  var useUpdateEventInfo = () => {
2284
- const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2396
+ const [updateEventInfo, { loading, error }] = (0, import_client25.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2285
2397
  awaitRefetchQueries: true,
2286
2398
  refetchQueries: (mutationResult) => {
2287
2399
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -2305,9 +2417,9 @@ var useUpdateEventInfo = () => {
2305
2417
  };
2306
2418
 
2307
2419
  // src/graphql/hooks/event/hooksQuery.ts
2308
- var import_client25 = require("@apollo/client");
2420
+ var import_client26 = require("@apollo/client");
2309
2421
  var useGetEvents = (dateStatus) => {
2310
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
2422
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS, {
2311
2423
  fetchPolicy: "network-only",
2312
2424
  variables: { dateStatus }
2313
2425
  });
@@ -2315,7 +2427,7 @@ var useGetEvents = (dateStatus) => {
2315
2427
  return { error, events, loading, refetch };
2316
2428
  };
2317
2429
  var useGetEvent = (_id) => {
2318
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
2430
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT, {
2319
2431
  fetchPolicy: "network-only",
2320
2432
  skip: !_id,
2321
2433
  variables: { _id }
@@ -2324,7 +2436,7 @@ var useGetEvent = (_id) => {
2324
2436
  return { error, event, loading, refetch };
2325
2437
  };
2326
2438
  var useGetEventByPlaceId = (googlePlaceId) => {
2327
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
2439
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_BY_PLACE_ID, {
2328
2440
  fetchPolicy: "network-only",
2329
2441
  skip: !googlePlaceId,
2330
2442
  variables: { googlePlaceId }
@@ -2338,7 +2450,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2338
2450
  options,
2339
2451
  region
2340
2452
  };
2341
- const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
2453
+ const { loading, error, data, refetch, fetchMore } = (0, import_client26.useQuery)(GET_EVENTS_BY_REGION, {
2342
2454
  fetchPolicy: "network-only",
2343
2455
  skip: !region || region === "",
2344
2456
  variables
@@ -2356,7 +2468,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2356
2468
  const normalizedSearch = searchQuery?.trim() ?? "";
2357
2469
  const normalizedTags = (tags ?? []).filter(Boolean);
2358
2470
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2359
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
2471
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_EVENTS, {
2360
2472
  fetchPolicy: "network-only",
2361
2473
  skip: !shouldRunQuery,
2362
2474
  variables: {
@@ -2374,7 +2486,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2374
2486
  };
2375
2487
  };
2376
2488
  var useGetEventsNearMe = (location, dateStatus) => {
2377
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
2489
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENTS_NEAR_ME, {
2378
2490
  fetchPolicy: "network-only",
2379
2491
  skip: !location.latitude || !location.longitude,
2380
2492
  variables: {
@@ -2389,7 +2501,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
2389
2501
  return { error, eventsNearMe, loading, refetch };
2390
2502
  };
2391
2503
  var useGetEventInfo = (eventId) => {
2392
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
2504
+ const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_EVENT_INFO, {
2393
2505
  fetchPolicy: "network-only",
2394
2506
  skip: !eventId || eventId === "",
2395
2507
  variables: { eventId }
@@ -2399,14 +2511,14 @@ var useGetEventInfo = (eventId) => {
2399
2511
  };
2400
2512
 
2401
2513
  // src/graphql/hooks/notifications/hooksMutation.ts
2402
- var import_client28 = require("@apollo/client");
2514
+ var import_client29 = require("@apollo/client");
2403
2515
 
2404
2516
  // src/graphql/mutations/notification.ts
2405
- var import_client27 = require("@apollo/client");
2517
+ var import_client28 = require("@apollo/client");
2406
2518
 
2407
2519
  // src/graphql/queries/notification.ts
2408
- var import_client26 = require("@apollo/client");
2409
- var NOTIFICATION_FRAGMENT = import_client26.gql`
2520
+ var import_client27 = require("@apollo/client");
2521
+ var NOTIFICATION_FRAGMENT = import_client27.gql`
2410
2522
  fragment NotificationFields on Notification {
2411
2523
  _id
2412
2524
  userId
@@ -2423,7 +2535,7 @@ var NOTIFICATION_FRAGMENT = import_client26.gql`
2423
2535
  updatedAt
2424
2536
  }
2425
2537
  `;
2426
- var GET_USER_NOTIFICATIONS = import_client26.gql`
2538
+ var GET_USER_NOTIFICATIONS = import_client27.gql`
2427
2539
  query getUserNotifications($limit: Int, $offset: Int) {
2428
2540
  userNotifications(limit: $limit, offset: $offset) {
2429
2541
  ...NotificationFields
@@ -2431,7 +2543,7 @@ var GET_USER_NOTIFICATIONS = import_client26.gql`
2431
2543
  }
2432
2544
  ${NOTIFICATION_FRAGMENT}
2433
2545
  `;
2434
- var GET_NOTIFICATION_COUNT = import_client26.gql`
2546
+ var GET_NOTIFICATION_COUNT = import_client27.gql`
2435
2547
  query getNotificationCount {
2436
2548
  notificationCount {
2437
2549
  total
@@ -2441,7 +2553,7 @@ var GET_NOTIFICATION_COUNT = import_client26.gql`
2441
2553
  `;
2442
2554
 
2443
2555
  // src/graphql/mutations/notification.ts
2444
- var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
2556
+ var CREATE_BULK_NOTIFICATIONS = import_client28.gql`
2445
2557
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
2446
2558
  createBulkNotifications(input: $input) {
2447
2559
  data
@@ -2449,7 +2561,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
2449
2561
  }
2450
2562
  }
2451
2563
  `;
2452
- var MARK_NOTIFICATION_READ = import_client27.gql`
2564
+ var MARK_NOTIFICATION_READ = import_client28.gql`
2453
2565
  mutation markNotificationRead($_id: ID!) {
2454
2566
  markNotificationRead(_id: $_id) {
2455
2567
  data {
@@ -2460,7 +2572,7 @@ var MARK_NOTIFICATION_READ = import_client27.gql`
2460
2572
  }
2461
2573
  ${NOTIFICATION_FRAGMENT}
2462
2574
  `;
2463
- var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
2575
+ var MARK_ALL_NOTIFICATIONS_READ = import_client28.gql`
2464
2576
  mutation markAllNotificationsRead {
2465
2577
  markAllNotificationsRead {
2466
2578
  data
@@ -2468,7 +2580,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
2468
2580
  }
2469
2581
  }
2470
2582
  `;
2471
- var DELETE_NOTIFICATION = import_client27.gql`
2583
+ var DELETE_NOTIFICATION = import_client28.gql`
2472
2584
  mutation deleteNotification($_id: ID!) {
2473
2585
  deleteNotification(_id: $_id) {
2474
2586
  data
@@ -2476,7 +2588,7 @@ var DELETE_NOTIFICATION = import_client27.gql`
2476
2588
  }
2477
2589
  }
2478
2590
  `;
2479
- var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
2591
+ var DELETE_ALL_NOTIFICATIONS = import_client28.gql`
2480
2592
  mutation deleteAllNotifications {
2481
2593
  deleteAllNotifications {
2482
2594
  data
@@ -2487,11 +2599,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
2487
2599
 
2488
2600
  // src/graphql/hooks/notifications/hooksMutation.ts
2489
2601
  var useCreateBulkNotifications = () => {
2490
- const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
2602
+ const [createBulkNotifications, { loading, error }] = (0, import_client29.useMutation)(CREATE_BULK_NOTIFICATIONS);
2491
2603
  return { createBulkNotifications, error, loading };
2492
2604
  };
2493
2605
  var useMarkNotificationRead = () => {
2494
- const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
2606
+ const [markNotificationRead, { loading, error }] = (0, import_client29.useMutation)(MARK_NOTIFICATION_READ, {
2495
2607
  refetchQueries: [
2496
2608
  {
2497
2609
  query: GET_USER_NOTIFICATIONS
@@ -2504,7 +2616,7 @@ var useMarkNotificationRead = () => {
2504
2616
  return { error, loading, markNotificationRead };
2505
2617
  };
2506
2618
  var useMarkAllNotificationsRead = () => {
2507
- const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2619
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client29.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2508
2620
  refetchQueries: [
2509
2621
  {
2510
2622
  query: GET_USER_NOTIFICATIONS
@@ -2517,7 +2629,7 @@ var useMarkAllNotificationsRead = () => {
2517
2629
  return { error, loading, markAllNotificationsRead };
2518
2630
  };
2519
2631
  var useDeleteNotification = () => {
2520
- const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
2632
+ const [deleteNotification, { loading, error }] = (0, import_client29.useMutation)(DELETE_NOTIFICATION, {
2521
2633
  refetchQueries: [
2522
2634
  {
2523
2635
  query: GET_USER_NOTIFICATIONS
@@ -2530,7 +2642,7 @@ var useDeleteNotification = () => {
2530
2642
  return { deleteNotification, error, loading };
2531
2643
  };
2532
2644
  var useDeleteAllNotifications = () => {
2533
- const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2645
+ const [deleteAllNotifications, { loading, error }] = (0, import_client29.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2534
2646
  refetchQueries: [
2535
2647
  {
2536
2648
  query: GET_USER_NOTIFICATIONS
@@ -2544,9 +2656,9 @@ var useDeleteAllNotifications = () => {
2544
2656
  };
2545
2657
 
2546
2658
  // src/graphql/hooks/notifications/hooksQuery.ts
2547
- var import_client29 = require("@apollo/client");
2659
+ var import_client30 = require("@apollo/client");
2548
2660
  var useGetUserNotifications = (limit, offset) => {
2549
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
2661
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_USER_NOTIFICATIONS, {
2550
2662
  fetchPolicy: "no-cache",
2551
2663
  variables: { limit, offset }
2552
2664
  });
@@ -2558,7 +2670,7 @@ var useGetUserNotifications = (limit, offset) => {
2558
2670
  };
2559
2671
  };
2560
2672
  var useGetNotificationCount = () => {
2561
- const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
2673
+ const { data, loading, error, refetch } = (0, import_client30.useQuery)(GET_NOTIFICATION_COUNT, {
2562
2674
  fetchPolicy: "no-cache"
2563
2675
  });
2564
2676
  return {
@@ -2570,11 +2682,11 @@ var useGetNotificationCount = () => {
2570
2682
  };
2571
2683
 
2572
2684
  // src/graphql/hooks/notifications/hooksSubscription.ts
2573
- var import_client31 = require("@apollo/client");
2685
+ var import_client32 = require("@apollo/client");
2574
2686
 
2575
2687
  // src/graphql/subscriptions/notification.ts
2576
- var import_client30 = require("@apollo/client");
2577
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
2688
+ var import_client31 = require("@apollo/client");
2689
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client31.gql`
2578
2690
  subscription {
2579
2691
  getUserNotifications {
2580
2692
  ...NotificationFields
@@ -2582,7 +2694,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
2582
2694
  }
2583
2695
  ${NOTIFICATION_FRAGMENT}
2584
2696
  `;
2585
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
2697
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client31.gql`
2586
2698
  subscription {
2587
2699
  getNotificationCount {
2588
2700
  total
@@ -2593,7 +2705,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
2593
2705
 
2594
2706
  // src/graphql/hooks/notifications/hooksSubscription.ts
2595
2707
  var useGetUserNotificationsSubscription = () => {
2596
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2708
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2597
2709
  fetchPolicy: "no-cache",
2598
2710
  shouldResubscribe: true
2599
2711
  });
@@ -2604,7 +2716,7 @@ var useGetUserNotificationsSubscription = () => {
2604
2716
  };
2605
2717
  };
2606
2718
  var useGetNotificationCountSubscription = () => {
2607
- const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2719
+ const { data, loading, error } = (0, import_client32.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2608
2720
  fetchPolicy: "no-cache",
2609
2721
  shouldResubscribe: true
2610
2722
  });
@@ -2616,11 +2728,11 @@ var useGetNotificationCountSubscription = () => {
2616
2728
  };
2617
2729
 
2618
2730
  // src/graphql/hooks/poster.ts
2619
- var import_client33 = require("@apollo/client");
2731
+ var import_client34 = require("@apollo/client");
2620
2732
 
2621
2733
  // src/graphql/mutations/poster.ts
2622
- var import_client32 = require("@apollo/client");
2623
- var CREATE_POSTER_MUTATION = import_client32.gql`
2734
+ var import_client33 = require("@apollo/client");
2735
+ var CREATE_POSTER_MUTATION = import_client33.gql`
2624
2736
  mutation createPoster($input: PosterInputType!) {
2625
2737
  createPoster(input: $input) {
2626
2738
  data {
@@ -2636,18 +2748,18 @@ var CREATE_POSTER_MUTATION = import_client32.gql`
2636
2748
 
2637
2749
  // src/graphql/hooks/poster.ts
2638
2750
  var useCreatePoster = () => {
2639
- const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
2751
+ const [createPoster, { loading, error }] = (0, import_client34.useMutation)(CREATE_POSTER_MUTATION, {
2640
2752
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
2641
2753
  });
2642
2754
  return { createPoster, error, loading };
2643
2755
  };
2644
2756
 
2645
2757
  // src/graphql/hooks/pushToken.ts
2646
- var import_client35 = require("@apollo/client");
2758
+ var import_client36 = require("@apollo/client");
2647
2759
 
2648
2760
  // src/graphql/mutations/pushToken.ts
2649
- var import_client34 = require("@apollo/client");
2650
- var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
2761
+ var import_client35 = require("@apollo/client");
2762
+ var CREATE_PUSH_TOKEN_MUTATION = import_client35.gql`
2651
2763
  mutation createPushToken($input: PushTokenInput!) {
2652
2764
  createPushToken(input: $input) {
2653
2765
  data {
@@ -2660,16 +2772,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
2660
2772
 
2661
2773
  // src/graphql/hooks/pushToken.ts
2662
2774
  var useCreatePushToken = () => {
2663
- const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2775
+ const [createPushToken, { loading, error }] = (0, import_client36.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2664
2776
  return { createPushToken, error, loading };
2665
2777
  };
2666
2778
 
2667
2779
  // src/graphql/hooks/relation/hooksMutation.ts
2668
- var import_client37 = require("@apollo/client");
2780
+ var import_client38 = require("@apollo/client");
2669
2781
 
2670
2782
  // src/graphql/mutations/relation.ts
2671
- var import_client36 = require("@apollo/client");
2672
- var CREATE_RELATION_MUTATION = import_client36.gql`
2783
+ var import_client37 = require("@apollo/client");
2784
+ var CREATE_RELATION_MUTATION = import_client37.gql`
2673
2785
  mutation createRelation($input: RelationInputType!) {
2674
2786
  createRelation(input: $input) {
2675
2787
  data {
@@ -2680,7 +2792,7 @@ var CREATE_RELATION_MUTATION = import_client36.gql`
2680
2792
  }
2681
2793
  ${RELATION_FIELDS_FRAGMENT}
2682
2794
  `;
2683
- var UPDATE_RELATION_MUTATION = import_client36.gql`
2795
+ var UPDATE_RELATION_MUTATION = import_client37.gql`
2684
2796
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
2685
2797
  updateRelation(_id: $_id, input: $input) {
2686
2798
  data {
@@ -2691,7 +2803,7 @@ var UPDATE_RELATION_MUTATION = import_client36.gql`
2691
2803
  }
2692
2804
  ${RELATION_FIELDS_FRAGMENT}
2693
2805
  `;
2694
- var DELETE_RELATION_MUTATION = import_client36.gql`
2806
+ var DELETE_RELATION_MUTATION = import_client37.gql`
2695
2807
  mutation deleteRelation($_id: ID!) {
2696
2808
  deleteRelation(_id: $_id) {
2697
2809
  data {
@@ -2705,7 +2817,7 @@ var DELETE_RELATION_MUTATION = import_client36.gql`
2705
2817
 
2706
2818
  // src/graphql/hooks/relation/hooksMutation.ts
2707
2819
  var useCreateRelation = () => {
2708
- const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
2820
+ const [createRelation, { loading, error }] = (0, import_client38.useMutation)(CREATE_RELATION_MUTATION, {
2709
2821
  awaitRefetchQueries: true,
2710
2822
  refetchQueries: (mutationResult) => {
2711
2823
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -2751,7 +2863,7 @@ var useCreateRelation = () => {
2751
2863
  return { createRelation, error, loading };
2752
2864
  };
2753
2865
  var useUpdateRelation = () => {
2754
- const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
2866
+ const [updateRelation, { loading, error }] = (0, import_client38.useMutation)(UPDATE_RELATION_MUTATION, {
2755
2867
  awaitRefetchQueries: true,
2756
2868
  refetchQueries: (mutationResult) => {
2757
2869
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -2794,7 +2906,7 @@ var useUpdateRelation = () => {
2794
2906
  return { error, loading, updateRelation };
2795
2907
  };
2796
2908
  var useDeleteRelation = () => {
2797
- const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
2909
+ const [deleteRelation, { loading, error }] = (0, import_client38.useMutation)(DELETE_RELATION_MUTATION, {
2798
2910
  awaitRefetchQueries: true,
2799
2911
  refetchQueries: (mutationResult) => {
2800
2912
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -2833,9 +2945,9 @@ var useDeleteRelation = () => {
2833
2945
  };
2834
2946
 
2835
2947
  // src/graphql/hooks/relation/hooksQuery.ts
2836
- var import_client38 = require("@apollo/client");
2948
+ var import_client39 = require("@apollo/client");
2837
2949
  var useGetRelation = (_id) => {
2838
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
2950
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION, {
2839
2951
  fetchPolicy: "network-only",
2840
2952
  skip: !_id,
2841
2953
  variables: _id ? { _id } : void 0
@@ -2844,7 +2956,7 @@ var useGetRelation = (_id) => {
2844
2956
  return { error, loading, refetch, relation };
2845
2957
  };
2846
2958
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2847
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2959
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2848
2960
  fetchPolicy: "network-only",
2849
2961
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
2850
2962
  variables: { eventId, vendorId }
@@ -2853,7 +2965,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2853
2965
  return { error, loading, refetch, relationByEventAndVendor };
2854
2966
  };
2855
2967
  var useGetEventRelations = (eventId) => {
2856
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
2968
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_EVENT_RELATIONS, {
2857
2969
  fetchPolicy: "network-only",
2858
2970
  skip: !eventId || eventId === "",
2859
2971
  variables: { eventId }
@@ -2862,7 +2974,7 @@ var useGetEventRelations = (eventId) => {
2862
2974
  return { error, eventRelations, loading, refetch };
2863
2975
  };
2864
2976
  var useGetVendorRelations = (vendorId) => {
2865
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
2977
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_VENDOR_RELATIONS, {
2866
2978
  fetchPolicy: "network-only",
2867
2979
  skip: !vendorId || vendorId === "",
2868
2980
  variables: { vendorId }
@@ -2871,7 +2983,7 @@ var useGetVendorRelations = (vendorId) => {
2871
2983
  return { error, loading, refetch, vendorRelations };
2872
2984
  };
2873
2985
  var useGetResourceConnections = (resourceId, resourceType) => {
2874
- const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
2986
+ const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_RESOURCE_CONNECTIONS, {
2875
2987
  fetchPolicy: "network-only",
2876
2988
  skip: !resourceId || resourceId === "" || !resourceType,
2877
2989
  variables: { resourceId, resourceType }
@@ -2881,30 +2993,30 @@ var useGetResourceConnections = (resourceId, resourceType) => {
2881
2993
  };
2882
2994
 
2883
2995
  // src/graphql/hooks/vendor/hooksMutation.ts
2884
- var import_client39 = require("@apollo/client");
2996
+ var import_client40 = require("@apollo/client");
2885
2997
  var useCreateVendor = () => {
2886
- const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
2998
+ const [createVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_MUTATION, {
2887
2999
  awaitRefetchQueries: true,
2888
3000
  refetchQueries: [{ query: GET_USER_VENDORS }]
2889
3001
  });
2890
3002
  return { createVendor, error, loading };
2891
3003
  };
2892
3004
  var useUpdateVendor = () => {
2893
- const [updateVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_MUTATION, {
3005
+ const [updateVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_MUTATION, {
2894
3006
  awaitRefetchQueries: true,
2895
3007
  refetchQueries: [{ query: GET_USER_VENDORS }]
2896
3008
  });
2897
3009
  return { error, loading, updateVendor };
2898
3010
  };
2899
3011
  var useDeleteVendor = () => {
2900
- const [deleteVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_VENDOR_MUTATION, {
3012
+ const [deleteVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_VENDOR_MUTATION, {
2901
3013
  awaitRefetchQueries: true,
2902
3014
  refetchQueries: [{ query: GET_USER_VENDORS }]
2903
3015
  });
2904
3016
  return { deleteVendor, error, loading };
2905
3017
  };
2906
3018
  var useCreateVendorInfo = () => {
2907
- const [createVendorInfo, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
3019
+ const [createVendorInfo, { loading, error }] = (0, import_client40.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2908
3020
  awaitRefetchQueries: true,
2909
3021
  refetchQueries: (mutationResult) => {
2910
3022
  const vendorId = mutationResult?.data?.createVendorInfo?.data?.vendorId;
@@ -2928,7 +3040,7 @@ var useCreateVendorInfo = () => {
2928
3040
  return { createVendorInfo, error, loading };
2929
3041
  };
2930
3042
  var useUpdateVendorInfo = () => {
2931
- const [updateVendorInfo, { loading, error }] = (0, import_client39.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
3043
+ const [updateVendorInfo, { loading, error }] = (0, import_client40.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2932
3044
  awaitRefetchQueries: true,
2933
3045
  refetchQueries: (mutationResult) => {
2934
3046
  const vendorId = mutationResult?.data?.updateVendorInfo?.data?.vendorId;
@@ -2945,30 +3057,30 @@ var useUpdateVendorInfo = () => {
2945
3057
  return { error, loading, updateVendorInfo };
2946
3058
  };
2947
3059
  var useCreateUnregisteredVendor = () => {
2948
- const [createUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
3060
+ const [createUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(CREATE_UNREGISTERED_VENDOR_MUTATION);
2949
3061
  return { createUnregisteredVendor, error, loading };
2950
3062
  };
2951
3063
  var useUpdateUnregisteredVendor = () => {
2952
- const [updateUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
3064
+ const [updateUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(UPDATE_UNREGISTERED_VENDOR_MUTATION);
2953
3065
  return { error, loading, updateUnregisteredVendor };
2954
3066
  };
2955
3067
  var useDeleteUnregisteredVendor = () => {
2956
- const [deleteUnregisteredVendor, { loading, error }] = (0, import_client39.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
3068
+ const [deleteUnregisteredVendor, { loading, error }] = (0, import_client40.useMutation)(DELETE_UNREGISTERED_VENDOR_MUTATION);
2957
3069
  return { deleteUnregisteredVendor, error, loading };
2958
3070
  };
2959
3071
  var useUnlinkUnregisteredVendorByInviterId = () => {
2960
- const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
3072
+ const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client40.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
2961
3073
  return { error, loading, unlinkUnregisteredVendorByInviterId };
2962
3074
  };
2963
3075
  var useActivateVendorClaim = () => {
2964
- const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
3076
+ const [activateVendorClaim, { loading, error }] = (0, import_client40.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
2965
3077
  return { activateVendorClaim, error, loading };
2966
3078
  };
2967
3079
 
2968
3080
  // src/graphql/hooks/vendor/hooksQuery.ts
2969
- var import_client40 = require("@apollo/client");
3081
+ var import_client41 = require("@apollo/client");
2970
3082
  var useGetVendors = () => {
2971
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3083
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
2972
3084
  GET_VENDORS,
2973
3085
  {
2974
3086
  fetchPolicy: "network-only"
@@ -2983,7 +3095,7 @@ var useGetVendors = () => {
2983
3095
  };
2984
3096
  };
2985
3097
  var useGetVendor = (_id) => {
2986
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3098
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(
2987
3099
  GET_VENDOR,
2988
3100
  {
2989
3101
  fetchPolicy: "network-only",
@@ -2999,7 +3111,7 @@ var useGetVendorsByRegion = (region, options) => {
2999
3111
  options,
3000
3112
  region
3001
3113
  };
3002
- const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
3114
+ const { loading, error, data, refetch, fetchMore } = (0, import_client41.useQuery)(GET_VENDORS_BY_REGION, {
3003
3115
  fetchPolicy: "network-only",
3004
3116
  variables
3005
3117
  });
@@ -3013,7 +3125,7 @@ var useGetVendorsByRegion = (region, options) => {
3013
3125
  };
3014
3126
  };
3015
3127
  var useSearchVendors = (search, region) => {
3016
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
3128
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(SEARCH_VENDORS, {
3017
3129
  fetchPolicy: "network-only",
3018
3130
  skip: search.length < 3,
3019
3131
  variables: { region, search }
@@ -3022,7 +3134,7 @@ var useSearchVendors = (search, region) => {
3022
3134
  return { error, loading, refetch, vendorSearch };
3023
3135
  };
3024
3136
  var useGetVendorInfo = (vendorId) => {
3025
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_VENDOR_INFO, {
3137
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_VENDOR_INFO, {
3026
3138
  fetchPolicy: "network-only",
3027
3139
  skip: !vendorId || vendorId === "",
3028
3140
  variables: { vendorId }
@@ -3036,7 +3148,7 @@ var useGetVendorInfo = (vendorId) => {
3036
3148
  };
3037
3149
  };
3038
3150
  var useGetUnregisteredVendors = () => {
3039
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS, {
3151
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS, {
3040
3152
  fetchPolicy: "network-only"
3041
3153
  });
3042
3154
  const unregisteredVendors = data?.unregisteredVendors || [];
@@ -3048,7 +3160,7 @@ var useGetUnregisteredVendors = () => {
3048
3160
  };
3049
3161
  };
3050
3162
  var useGetUnregisteredVendorsByInviterId = (inviterId) => {
3051
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3163
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {
3052
3164
  fetchPolicy: "network-only",
3053
3165
  skip: !inviterId || inviterId === "",
3054
3166
  variables: { inviterId }
@@ -3057,7 +3169,7 @@ var useGetUnregisteredVendorsByInviterId = (inviterId) => {
3057
3169
  return { error, loading, refetch, unregisteredVendorsByInviterId };
3058
3170
  };
3059
3171
  var useGetUnregisteredVendor = (_id) => {
3060
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(GET_UNREGISTERED_VENDOR, {
3172
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(GET_UNREGISTERED_VENDOR, {
3061
3173
  fetchPolicy: "network-only",
3062
3174
  skip: !_id || _id === "",
3063
3175
  variables: { _id }
@@ -3066,7 +3178,7 @@ var useGetUnregisteredVendor = (_id) => {
3066
3178
  return { error, loading, refetch, unregisteredVendor };
3067
3179
  };
3068
3180
  var useMyPendingVendorClaim = (skip = false) => {
3069
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3181
+ const { loading, error, data, refetch } = (0, import_client41.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3070
3182
  fetchPolicy: "network-only",
3071
3183
  skip
3072
3184
  });
@@ -3079,11 +3191,11 @@ var useMyPendingVendorClaim = (skip = false) => {
3079
3191
  };
3080
3192
 
3081
3193
  // src/graphql/hooks/user/hooksMutation.ts
3082
- var import_client42 = require("@apollo/client");
3194
+ var import_client43 = require("@apollo/client");
3083
3195
 
3084
3196
  // src/graphql/mutations/user.ts
3085
- var import_client41 = require("@apollo/client");
3086
- var CREATE_USER_MUTATION = import_client41.gql`
3197
+ var import_client42 = require("@apollo/client");
3198
+ var CREATE_USER_MUTATION = import_client42.gql`
3087
3199
  mutation createUser($input: UserInputType!) {
3088
3200
  createUser(input: $input) {
3089
3201
  data {
@@ -3094,7 +3206,7 @@ var CREATE_USER_MUTATION = import_client41.gql`
3094
3206
  }
3095
3207
  ${USER_FIELDS_FRAGMENT}
3096
3208
  `;
3097
- var UPDATE_USER_MUTATION = import_client41.gql`
3209
+ var UPDATE_USER_MUTATION = import_client42.gql`
3098
3210
  mutation updateUser($_id: ID!, $input: UserInputType!) {
3099
3211
  updateUser(_id: $_id, input: $input) {
3100
3212
  data {
@@ -3105,7 +3217,7 @@ var UPDATE_USER_MUTATION = import_client41.gql`
3105
3217
  }
3106
3218
  ${USER_FIELDS_FRAGMENT}
3107
3219
  `;
3108
- var DELETE_USER_MUTATION = import_client41.gql`
3220
+ var DELETE_USER_MUTATION = import_client42.gql`
3109
3221
  mutation deleteUser($email: String!) {
3110
3222
  deleteUser(email: $email) {
3111
3223
  data
@@ -3113,7 +3225,7 @@ var DELETE_USER_MUTATION = import_client41.gql`
3113
3225
  }
3114
3226
  }
3115
3227
  `;
3116
- var REDEEM_REWARD_MUTATION = import_client41.gql`
3228
+ var REDEEM_REWARD_MUTATION = import_client42.gql`
3117
3229
  mutation redeemReward($input: RedeemRewardInputType!) {
3118
3230
  redeemReward(input: $input) {
3119
3231
  data {
@@ -3123,7 +3235,7 @@ var REDEEM_REWARD_MUTATION = import_client41.gql`
3123
3235
  }
3124
3236
  }
3125
3237
  `;
3126
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3238
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3127
3239
  mutation addUserFavouriteResource(
3128
3240
  $resourceId: ID!
3129
3241
  $resourceType: ResourceTypeEnum!
@@ -3140,7 +3252,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3140
3252
  }
3141
3253
  ${USER_FIELDS_FRAGMENT}
3142
3254
  `;
3143
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3255
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client42.gql`
3144
3256
  mutation removeUserFavouriteResource(
3145
3257
  $resourceId: ID!
3146
3258
  $resourceType: ResourceTypeEnum!
@@ -3157,7 +3269,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3157
3269
  }
3158
3270
  ${USER_FIELDS_FRAGMENT}
3159
3271
  `;
3160
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3272
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3161
3273
  mutation addUserInterestResource($input: UserActivityInputType!) {
3162
3274
  addUserInterestResource(input: $input) {
3163
3275
  data {
@@ -3168,7 +3280,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3168
3280
  }
3169
3281
  ${USER_FIELDS_FRAGMENT}
3170
3282
  `;
3171
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3283
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client42.gql`
3172
3284
  mutation removeUserInterestResource($input: UserActivityInputType!) {
3173
3285
  removeUserInterestResource(input: $input) {
3174
3286
  data {
@@ -3179,7 +3291,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3179
3291
  }
3180
3292
  ${USER_FIELDS_FRAGMENT}
3181
3293
  `;
3182
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3294
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3183
3295
  mutation addUserGoingResource($input: UserActivityInputType!) {
3184
3296
  addUserGoingResource(input: $input) {
3185
3297
  data {
@@ -3190,7 +3302,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3190
3302
  }
3191
3303
  ${USER_FIELDS_FRAGMENT}
3192
3304
  `;
3193
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3305
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client42.gql`
3194
3306
  mutation removeUserGoingResource($input: UserActivityInputType!) {
3195
3307
  removeUserGoingResource(input: $input) {
3196
3308
  data {
@@ -3201,7 +3313,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3201
3313
  }
3202
3314
  ${USER_FIELDS_FRAGMENT}
3203
3315
  `;
3204
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3316
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3205
3317
  mutation addUserPresentResource($input: UserActivityInputType!) {
3206
3318
  addUserPresentResource(input: $input) {
3207
3319
  data {
@@ -3212,7 +3324,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3212
3324
  }
3213
3325
  ${USER_FIELDS_FRAGMENT}
3214
3326
  `;
3215
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3327
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client42.gql`
3216
3328
  mutation removeUserPresentResource($input: UserActivityInputType!) {
3217
3329
  removeUserPresentResource(input: $input) {
3218
3330
  data {
@@ -3223,7 +3335,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3223
3335
  }
3224
3336
  ${USER_FIELDS_FRAGMENT}
3225
3337
  `;
3226
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
3338
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client42.gql`
3227
3339
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
3228
3340
  selectStandardPackage(selectedLicence: $selectedLicence) {
3229
3341
  data {
@@ -3240,11 +3352,11 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
3240
3352
 
3241
3353
  // src/graphql/hooks/user/hooksMutation.ts
3242
3354
  var useCreateUser = () => {
3243
- const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
3355
+ const [createUser, { loading, error }] = (0, import_client43.useMutation)(CREATE_USER_MUTATION);
3244
3356
  return { createUser, error, loading };
3245
3357
  };
3246
3358
  var useUpdateUser = () => {
3247
- const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
3359
+ const [updateUser, { loading, error }] = (0, import_client43.useMutation)(UPDATE_USER_MUTATION, {
3248
3360
  awaitRefetchQueries: true,
3249
3361
  refetchQueries: (mutationResult) => {
3250
3362
  const userId = mutationResult?.data?.updateUser?.data?._id;
@@ -3255,11 +3367,11 @@ var useUpdateUser = () => {
3255
3367
  return { error, loading, updateUser };
3256
3368
  };
3257
3369
  var useDeleteUser = () => {
3258
- const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
3370
+ const [deleteUser, { loading, error }] = (0, import_client43.useMutation)(DELETE_USER_MUTATION);
3259
3371
  return { deleteUser, error, loading };
3260
3372
  };
3261
3373
  var useRedeemReward = () => {
3262
- const [redeemReward, { loading, error }] = (0, import_client42.useMutation)(REDEEM_REWARD_MUTATION, {
3374
+ const [redeemReward, { loading, error }] = (0, import_client43.useMutation)(REDEEM_REWARD_MUTATION, {
3263
3375
  awaitRefetchQueries: true,
3264
3376
  refetchQueries: (mutationResult) => {
3265
3377
  const userId = mutationResult?.data?.redeemReward?.data?.userId;
@@ -3276,63 +3388,63 @@ var useRedeemReward = () => {
3276
3388
  return { error, loading, redeemReward };
3277
3389
  };
3278
3390
  var useAddUserFavouriteResource = () => {
3279
- const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
3391
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_FAVOURITE_RESOURCE_MUTATION, {
3280
3392
  awaitRefetchQueries: true,
3281
3393
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3282
3394
  });
3283
3395
  return { addUserFavouriteResource, error, loading };
3284
3396
  };
3285
3397
  var useRemoveUserFavouriteResource = () => {
3286
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
3398
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_FAVOURITE_RESOURCE_MUTATION, {
3287
3399
  awaitRefetchQueries: true,
3288
3400
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3289
3401
  });
3290
3402
  return { error, loading, removeUserFavouriteResource };
3291
3403
  };
3292
3404
  var useAddUserInterestResource = () => {
3293
- const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
3405
+ const [addUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_INTEREST_RESOURCE_MUTATION, {
3294
3406
  awaitRefetchQueries: true,
3295
3407
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3296
3408
  });
3297
3409
  return { addUserInterestResource, error, loading };
3298
3410
  };
3299
3411
  var useRemoveUserInterestResource = () => {
3300
- const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
3412
+ const [removeUserInterestResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_INTEREST_RESOURCE_MUTATION, {
3301
3413
  awaitRefetchQueries: true,
3302
3414
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3303
3415
  });
3304
3416
  return { error, loading, removeUserInterestResource };
3305
3417
  };
3306
3418
  var useAddUserGoingResource = () => {
3307
- const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
3419
+ const [addUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_GOING_RESOURCE_MUTATION, {
3308
3420
  awaitRefetchQueries: true,
3309
3421
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3310
3422
  });
3311
3423
  return { addUserGoingResource, error, loading };
3312
3424
  };
3313
3425
  var useRemoveUserGoingResource = () => {
3314
- const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
3426
+ const [removeUserGoingResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_GOING_RESOURCE_MUTATION, {
3315
3427
  awaitRefetchQueries: true,
3316
3428
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3317
3429
  });
3318
3430
  return { error, loading, removeUserGoingResource };
3319
3431
  };
3320
3432
  var useAddUserPresentResource = () => {
3321
- const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
3433
+ const [addUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(ADD_USER_PRESENT_RESOURCE_MUTATION, {
3322
3434
  awaitRefetchQueries: true,
3323
3435
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3324
3436
  });
3325
3437
  return { addUserPresentResource, error, loading };
3326
3438
  };
3327
3439
  var useRemoveUserPresentResource = () => {
3328
- const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
3440
+ const [removeUserPresentResource, { loading, error }] = (0, import_client43.useMutation)(REMOVE_USER_PRESENT_RESOURCE_MUTATION, {
3329
3441
  awaitRefetchQueries: true,
3330
3442
  refetchQueries: [{ query: GET_USER_ACTIVITIES }]
3331
3443
  });
3332
3444
  return { error, loading, removeUserPresentResource };
3333
3445
  };
3334
3446
  var useSelectStandardPackage = () => {
3335
- const [selectStandardPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3447
+ const [selectStandardPackage, { loading, error }] = (0, import_client43.useMutation)(SELECT_STANDARD_PACKAGE_MUTATION, {
3336
3448
  awaitRefetchQueries: true,
3337
3449
  refetchQueries: (mutationResult) => {
3338
3450
  const userId = mutationResult?.data?.selectStandardPackage?.data?.userId;
@@ -3348,9 +3460,9 @@ var useSelectStandardPackage = () => {
3348
3460
  };
3349
3461
 
3350
3462
  // src/graphql/hooks/user/hooksQuery.ts
3351
- var import_client43 = require("@apollo/client");
3463
+ var import_client44 = require("@apollo/client");
3352
3464
  var useGetUsers = () => {
3353
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3465
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
3354
3466
  GET_USERS,
3355
3467
  {
3356
3468
  fetchPolicy: "network-only"
@@ -3360,7 +3472,7 @@ var useGetUsers = () => {
3360
3472
  return { error, loading, refetch, users };
3361
3473
  };
3362
3474
  var useGetUser = (_id) => {
3363
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3475
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(
3364
3476
  GET_USER,
3365
3477
  {
3366
3478
  fetchPolicy: "network-only",
@@ -3372,28 +3484,28 @@ var useGetUser = (_id) => {
3372
3484
  return { error, loading, refetch, user };
3373
3485
  };
3374
3486
  var useGetUserEvents = () => {
3375
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
3487
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_EVENTS, {
3376
3488
  fetchPolicy: "network-only"
3377
3489
  });
3378
3490
  const userEvents = data?.userEvents || [];
3379
3491
  return { error, loading, refetch, userEvents };
3380
3492
  };
3381
3493
  var useGetUserVendors = () => {
3382
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
3494
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_VENDORS, {
3383
3495
  fetchPolicy: "network-only"
3384
3496
  });
3385
3497
  const userVendors = data?.userVendors || [];
3386
3498
  return { error, loading, refetch, userVendors };
3387
3499
  };
3388
3500
  var useGetUserPartners = () => {
3389
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_PARTNERS, {
3501
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_PARTNERS, {
3390
3502
  fetchPolicy: "network-only"
3391
3503
  });
3392
3504
  const userPartners = data?.userPartners || [];
3393
3505
  return { error, loading, refetch, userPartners };
3394
3506
  };
3395
3507
  var useGetUserActivities = () => {
3396
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
3508
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_ACTIVITIES, {
3397
3509
  fetchPolicy: "network-only"
3398
3510
  });
3399
3511
  const userActivities = {
@@ -3415,7 +3527,7 @@ var useGetUserActivities = () => {
3415
3527
  return { error, loading, refetch, userActivities };
3416
3528
  };
3417
3529
  var useGetUserResources = (userId) => {
3418
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_RESOURCES, {
3530
+ const { loading, error, data, refetch } = (0, import_client44.useQuery)(GET_USER_RESOURCES, {
3419
3531
  fetchPolicy: "network-only",
3420
3532
  skip: !userId || userId === "",
3421
3533
  variables: { userId }
@@ -3425,14 +3537,14 @@ var useGetUserResources = (userId) => {
3425
3537
  };
3426
3538
 
3427
3539
  // src/graphql/hooks/ad/hooksMutation.ts
3428
- var import_client46 = require("@apollo/client");
3540
+ var import_client47 = require("@apollo/client");
3429
3541
 
3430
3542
  // src/graphql/mutations/ad.ts
3431
- var import_client45 = require("@apollo/client");
3543
+ var import_client46 = require("@apollo/client");
3432
3544
 
3433
3545
  // src/graphql/queries/ad.ts
3434
- var import_client44 = require("@apollo/client");
3435
- var AD_FIELDS_FRAGMENT = import_client44.gql`
3546
+ var import_client45 = require("@apollo/client");
3547
+ var AD_FIELDS_FRAGMENT = import_client45.gql`
3436
3548
  fragment AdFields on AdType {
3437
3549
  _id
3438
3550
  active
@@ -3459,7 +3571,7 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
3459
3571
  updatedAt
3460
3572
  }
3461
3573
  `;
3462
- var GET_ADS = import_client44.gql`
3574
+ var GET_ADS = import_client45.gql`
3463
3575
  query getAds {
3464
3576
  ads {
3465
3577
  ...AdFields
@@ -3467,7 +3579,7 @@ var GET_ADS = import_client44.gql`
3467
3579
  }
3468
3580
  ${AD_FIELDS_FRAGMENT}
3469
3581
  `;
3470
- var GET_AD = import_client44.gql`
3582
+ var GET_AD = import_client45.gql`
3471
3583
  query getAd($_id: ID!) {
3472
3584
  ad(_id: $_id) {
3473
3585
  ...AdFields
@@ -3475,7 +3587,7 @@ var GET_AD = import_client44.gql`
3475
3587
  }
3476
3588
  ${AD_FIELDS_FRAGMENT}
3477
3589
  `;
3478
- var GET_ADS_BY_REGION = import_client44.gql`
3590
+ var GET_ADS_BY_REGION = import_client45.gql`
3479
3591
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
3480
3592
  adsByRegion(region: $region, status: $status) {
3481
3593
  ...AdFields
@@ -3485,7 +3597,7 @@ var GET_ADS_BY_REGION = import_client44.gql`
3485
3597
  `;
3486
3598
 
3487
3599
  // src/graphql/mutations/ad.ts
3488
- var CREATE_AD_MUTATION = import_client45.gql`
3600
+ var CREATE_AD_MUTATION = import_client46.gql`
3489
3601
  mutation createAd($input: AdInputType!) {
3490
3602
  createAd(input: $input) {
3491
3603
  data {
@@ -3496,7 +3608,7 @@ var CREATE_AD_MUTATION = import_client45.gql`
3496
3608
  }
3497
3609
  ${AD_FIELDS_FRAGMENT}
3498
3610
  `;
3499
- var UPDATE_AD_MUTATION = import_client45.gql`
3611
+ var UPDATE_AD_MUTATION = import_client46.gql`
3500
3612
  mutation updateAd($_id: ID!, $input: AdInputType!) {
3501
3613
  updateAd(_id: $_id, input: $input) {
3502
3614
  data {
@@ -3507,7 +3619,7 @@ var UPDATE_AD_MUTATION = import_client45.gql`
3507
3619
  }
3508
3620
  ${AD_FIELDS_FRAGMENT}
3509
3621
  `;
3510
- var DELETE_AD_MUTATION = import_client45.gql`
3622
+ var DELETE_AD_MUTATION = import_client46.gql`
3511
3623
  mutation deleteAd($_id: ID!) {
3512
3624
  deleteAd(_id: $_id) {
3513
3625
  data
@@ -3518,7 +3630,7 @@ var DELETE_AD_MUTATION = import_client45.gql`
3518
3630
 
3519
3631
  // src/graphql/hooks/ad/hooksMutation.ts
3520
3632
  var useCreateAd = () => {
3521
- const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
3633
+ const [createAd, { loading, error }] = (0, import_client47.useMutation)(CREATE_AD_MUTATION, {
3522
3634
  awaitRefetchQueries: true,
3523
3635
  refetchQueries: [{ query: GET_ADS }]
3524
3636
  });
@@ -3529,7 +3641,7 @@ var useCreateAd = () => {
3529
3641
  };
3530
3642
  };
3531
3643
  var useUpdateAd = () => {
3532
- const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
3644
+ const [updateAd, { loading, error }] = (0, import_client47.useMutation)(UPDATE_AD_MUTATION, {
3533
3645
  awaitRefetchQueries: true,
3534
3646
  refetchQueries: [{ query: GET_ADS }]
3535
3647
  });
@@ -3540,7 +3652,7 @@ var useUpdateAd = () => {
3540
3652
  };
3541
3653
  };
3542
3654
  var useDeleteAd = () => {
3543
- const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
3655
+ const [deleteAd, { loading, error }] = (0, import_client47.useMutation)(DELETE_AD_MUTATION, {
3544
3656
  awaitRefetchQueries: true,
3545
3657
  refetchQueries: [{ query: GET_ADS }]
3546
3658
  });
@@ -3552,9 +3664,9 @@ var useDeleteAd = () => {
3552
3664
  };
3553
3665
 
3554
3666
  // src/graphql/hooks/ad/hooksQuery.ts
3555
- var import_client47 = require("@apollo/client");
3667
+ var import_client48 = require("@apollo/client");
3556
3668
  var useGetAds = () => {
3557
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(
3669
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(
3558
3670
  GET_ADS,
3559
3671
  {
3560
3672
  fetchPolicy: "no-cache"
@@ -3568,7 +3680,7 @@ var useGetAds = () => {
3568
3680
  };
3569
3681
  };
3570
3682
  var useGetAd = (_id) => {
3571
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
3683
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_AD, {
3572
3684
  fetchPolicy: "no-cache",
3573
3685
  skip: !_id || _id === "",
3574
3686
  variables: { _id }
@@ -3581,7 +3693,7 @@ var useGetAd = (_id) => {
3581
3693
  };
3582
3694
  };
3583
3695
  var useGetAdsByRegion = (region, status) => {
3584
- const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
3696
+ const { data, loading, error, refetch } = (0, import_client48.useQuery)(GET_ADS_BY_REGION, {
3585
3697
  fetchPolicy: "no-cache",
3586
3698
  skip: !region || region === "",
3587
3699
  variables: { region, status }
@@ -3595,11 +3707,11 @@ var useGetAdsByRegion = (region, status) => {
3595
3707
  };
3596
3708
 
3597
3709
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3598
- var import_client49 = require("@apollo/client");
3710
+ var import_client50 = require("@apollo/client");
3599
3711
 
3600
3712
  // src/graphql/mutations/resourceActivities.ts
3601
- var import_client48 = require("@apollo/client");
3602
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3713
+ var import_client49 = require("@apollo/client");
3714
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client49.gql`
3603
3715
  mutation createResourceActivity($input: ResourceActivityInputType!) {
3604
3716
  createResourceActivity(input: $input) {
3605
3717
  data
@@ -3610,16 +3722,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3610
3722
 
3611
3723
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
3612
3724
  var useCreateResourceActivity = () => {
3613
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3725
+ const [createResourceActivity, { loading, error }] = (0, import_client50.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
3614
3726
  return { createResourceActivity, error, loading };
3615
3727
  };
3616
3728
 
3617
3729
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3618
- var import_client51 = require("@apollo/client");
3730
+ var import_client52 = require("@apollo/client");
3619
3731
 
3620
3732
  // src/graphql/queries/resourceActivities.ts
3621
- var import_client50 = require("@apollo/client");
3622
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3733
+ var import_client51 = require("@apollo/client");
3734
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client51.gql`
3623
3735
  fragment ResourceActivityFields on ResourceActivityType {
3624
3736
  resourceId
3625
3737
  resourceType
@@ -3638,7 +3750,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3638
3750
  }
3639
3751
  ${LOCATION_GEO_FIELDS_FRAGMENT}
3640
3752
  `;
3641
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
3753
+ var GET_RESOURCE_ACTIVITY = import_client51.gql`
3642
3754
  query getResourceActivity(
3643
3755
  $resourceType: ResourceTypeEnum!
3644
3756
  $resourceId: ID!
@@ -3652,7 +3764,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
3652
3764
 
3653
3765
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
3654
3766
  var useGetResourceActivity = (resourceId, resourceType) => {
3655
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
3767
+ const { data, loading, error, refetch } = (0, import_client52.useQuery)(GET_RESOURCE_ACTIVITY, {
3656
3768
  fetchPolicy: "network-only",
3657
3769
  variables: { resourceId, resourceType }
3658
3770
  });
@@ -3665,11 +3777,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
3665
3777
  };
3666
3778
 
3667
3779
  // src/graphql/hooks/stripe/hooksMutation.ts
3668
- var import_client53 = require("@apollo/client");
3780
+ var import_client54 = require("@apollo/client");
3669
3781
 
3670
3782
  // src/graphql/mutations/stripe.ts
3671
- var import_client52 = require("@apollo/client");
3672
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3783
+ var import_client53 = require("@apollo/client");
3784
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client53.gql`
3673
3785
  mutation createCheckoutSession(
3674
3786
  $planId: LicencesEnumType!
3675
3787
  $billingPeriod: BillingPeriodEnumType
@@ -3683,7 +3795,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3683
3795
  }
3684
3796
  }
3685
3797
  `;
3686
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3798
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client53.gql`
3687
3799
  mutation cancelSubscription {
3688
3800
  cancelSubscription {
3689
3801
  data
@@ -3691,7 +3803,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3691
3803
  }
3692
3804
  }
3693
3805
  `;
3694
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3806
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client53.gql`
3695
3807
  mutation updateSubscriptionPlan(
3696
3808
  $newPlanId: LicencesEnumType!
3697
3809
  $billingPeriod: BillingPeriodEnumType
@@ -3710,7 +3822,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3710
3822
  }
3711
3823
  }
3712
3824
  `;
3713
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3825
+ var CREATE_CUSTOMER_PORTAL = import_client53.gql`
3714
3826
  mutation createCustomerPortal($returnUrl: String) {
3715
3827
  createCustomerPortal(returnUrl: $returnUrl) {
3716
3828
  data {
@@ -3720,7 +3832,7 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3720
3832
  }
3721
3833
  }
3722
3834
  `;
3723
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
3835
+ var SELECT_PACKAGE_MUTATION = import_client53.gql`
3724
3836
  mutation selectPackage(
3725
3837
  $billingPeriod: BillingPeriodEnumType
3726
3838
  $selectedLicence: LicencesEnumType!
@@ -3746,23 +3858,23 @@ var SELECT_PACKAGE_MUTATION = import_client52.gql`
3746
3858
 
3747
3859
  // src/graphql/hooks/stripe/hooksMutation.ts
3748
3860
  var useCreateCheckoutSession = () => {
3749
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3861
+ const [createCheckoutSession, { loading, error }] = (0, import_client54.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
3750
3862
  return { createCheckoutSession, error, loading };
3751
3863
  };
3752
3864
  var useCancelSubscription = () => {
3753
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3865
+ const [cancelSubscription, { loading, error }] = (0, import_client54.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
3754
3866
  return { cancelSubscription, error, loading };
3755
3867
  };
3756
3868
  var useUpdateSubscriptionPlan = () => {
3757
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3869
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client54.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
3758
3870
  return { error, loading, updateSubscriptionPlan };
3759
3871
  };
3760
3872
  var useCreateCustomerPortal = () => {
3761
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
3873
+ const [createCustomerPortal, { loading, error }] = (0, import_client54.useMutation)(CREATE_CUSTOMER_PORTAL);
3762
3874
  return { createCustomerPortal, error, loading };
3763
3875
  };
3764
3876
  var useSelectPackage = () => {
3765
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
3877
+ const [selectPackage, { loading, error }] = (0, import_client54.useMutation)(SELECT_PACKAGE_MUTATION, {
3766
3878
  awaitRefetchQueries: true,
3767
3879
  refetchQueries: (mutationResult) => {
3768
3880
  const userId = mutationResult?.data?.selectPackage?.data?.userId;
@@ -3778,11 +3890,11 @@ var useSelectPackage = () => {
3778
3890
  };
3779
3891
 
3780
3892
  // src/graphql/hooks/stripe/hooksQuery.ts
3781
- var import_client55 = require("@apollo/client");
3893
+ var import_client56 = require("@apollo/client");
3782
3894
 
3783
3895
  // src/graphql/queries/stripe.ts
3784
- var import_client54 = require("@apollo/client");
3785
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3896
+ var import_client55 = require("@apollo/client");
3897
+ var GET_SUBSCRIPTION_STATUS = import_client55.gql`
3786
3898
  query getSubscriptionStatus {
3787
3899
  getSubscriptionStatus {
3788
3900
  subscriptionId
@@ -3792,7 +3904,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3792
3904
  }
3793
3905
  }
3794
3906
  `;
3795
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3907
+ var GET_SUBSCRIPTION_PLANS = import_client55.gql`
3796
3908
  query getSubscriptionPlans {
3797
3909
  getSubscriptionPlans {
3798
3910
  plans {
@@ -3823,7 +3935,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3823
3935
 
3824
3936
  // src/graphql/hooks/stripe/hooksQuery.ts
3825
3937
  var useGetSubscriptionStatus = () => {
3826
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
3938
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_STATUS);
3827
3939
  return {
3828
3940
  data: data?.getSubscriptionStatus,
3829
3941
  error,
@@ -3832,7 +3944,7 @@ var useGetSubscriptionStatus = () => {
3832
3944
  };
3833
3945
  };
3834
3946
  var useGetSubscriptionPlans = () => {
3835
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
3947
+ const { data, loading, error, refetch } = (0, import_client56.useQuery)(GET_SUBSCRIPTION_PLANS);
3836
3948
  return {
3837
3949
  data: data?.getSubscriptionPlans,
3838
3950
  error,
@@ -3842,11 +3954,11 @@ var useGetSubscriptionPlans = () => {
3842
3954
  };
3843
3955
 
3844
3956
  // src/graphql/hooks/partner/hooksMutation.ts
3845
- var import_client57 = require("@apollo/client");
3957
+ var import_client58 = require("@apollo/client");
3846
3958
 
3847
3959
  // src/graphql/mutations/partner.ts
3848
- var import_client56 = require("@apollo/client");
3849
- var CREATE_PARTNER_MUTATION = import_client56.gql`
3960
+ var import_client57 = require("@apollo/client");
3961
+ var CREATE_PARTNER_MUTATION = import_client57.gql`
3850
3962
  mutation createPartner($input: PartnerInputType!) {
3851
3963
  createPartner(input: $input) {
3852
3964
  data {
@@ -3857,7 +3969,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
3857
3969
  }
3858
3970
  ${PARTNER}
3859
3971
  `;
3860
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
3972
+ var UPDATE_PARTNER_MUTATION = import_client57.gql`
3861
3973
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
3862
3974
  updatePartner(_id: $_id, input: $input) {
3863
3975
  data {
@@ -3868,7 +3980,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
3868
3980
  }
3869
3981
  ${PARTNER}
3870
3982
  `;
3871
- var DELETE_PARTNER_MUTATION = import_client56.gql`
3983
+ var DELETE_PARTNER_MUTATION = import_client57.gql`
3872
3984
  mutation deletePartner($_id: ID!) {
3873
3985
  deletePartner(_id: $_id) {
3874
3986
  data
@@ -3879,21 +3991,21 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
3879
3991
 
3880
3992
  // src/graphql/hooks/partner/hooksMutation.ts
3881
3993
  var useCreatePartner = () => {
3882
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
3994
+ const [createPartner, { loading, error }] = (0, import_client58.useMutation)(CREATE_PARTNER_MUTATION, {
3883
3995
  awaitRefetchQueries: true,
3884
3996
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3885
3997
  });
3886
3998
  return { createPartner, error, loading };
3887
3999
  };
3888
4000
  var useUpdatePartner = () => {
3889
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
4001
+ const [updatePartner, { loading, error }] = (0, import_client58.useMutation)(UPDATE_PARTNER_MUTATION, {
3890
4002
  awaitRefetchQueries: true,
3891
4003
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3892
4004
  });
3893
4005
  return { error, loading, updatePartner };
3894
4006
  };
3895
4007
  var useDeletePartner = () => {
3896
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
4008
+ const [deletePartner, { loading, error }] = (0, import_client58.useMutation)(DELETE_PARTNER_MUTATION, {
3897
4009
  awaitRefetchQueries: true,
3898
4010
  refetchQueries: [{ query: GET_USER_PARTNERS }]
3899
4011
  });
@@ -3901,9 +4013,9 @@ var useDeletePartner = () => {
3901
4013
  };
3902
4014
 
3903
4015
  // src/graphql/hooks/partner/hooksQuery.ts
3904
- var import_client58 = require("@apollo/client");
4016
+ var import_client59 = require("@apollo/client");
3905
4017
  var useGetPartners = () => {
3906
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
4018
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(GET_PARTNERS, {
3907
4019
  fetchPolicy: "network-only"
3908
4020
  });
3909
4021
  const partners = data?.partners || [];
@@ -3915,7 +4027,7 @@ var useGetPartners = () => {
3915
4027
  };
3916
4028
  };
3917
4029
  var useGetPartner = (_id) => {
3918
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
4030
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(
3919
4031
  GET_PARTNER,
3920
4032
  {
3921
4033
  fetchPolicy: "network-only",
@@ -3931,7 +4043,7 @@ var useGetPartnersByRegion = (region, options) => {
3931
4043
  options,
3932
4044
  region
3933
4045
  };
3934
- const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
4046
+ const { loading, error, data, refetch, fetchMore } = (0, import_client59.useQuery)(GET_PARTNERS_BY_REGION, {
3935
4047
  fetchPolicy: "network-only",
3936
4048
  variables
3937
4049
  });
@@ -3945,7 +4057,7 @@ var useGetPartnersByRegion = (region, options) => {
3945
4057
  };
3946
4058
  };
3947
4059
  var useSearchPartners = (search, region) => {
3948
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
4060
+ const { loading, error, data, refetch } = (0, import_client59.useQuery)(SEARCH_PARTNERS, {
3949
4061
  fetchPolicy: "network-only",
3950
4062
  skip: search.length < 3,
3951
4063
  variables: { region, search }
@@ -3955,11 +4067,11 @@ var useSearchPartners = (search, region) => {
3955
4067
  };
3956
4068
 
3957
4069
  // src/graphql/hooks/post/hooksMutation.ts
3958
- var import_client60 = require("@apollo/client");
4070
+ var import_client61 = require("@apollo/client");
3959
4071
 
3960
4072
  // src/graphql/mutations/post.ts
3961
- var import_client59 = require("@apollo/client");
3962
- var CREATE_POST_MUTATION = import_client59.gql`
4073
+ var import_client60 = require("@apollo/client");
4074
+ var CREATE_POST_MUTATION = import_client60.gql`
3963
4075
  mutation createPost($input: PostInputType!) {
3964
4076
  createPost(input: $input) {
3965
4077
  data {
@@ -3970,7 +4082,7 @@ var CREATE_POST_MUTATION = import_client59.gql`
3970
4082
  }
3971
4083
  ${POST_FIELDS_FRAGMENT}
3972
4084
  `;
3973
- var UPDATE_POST_MUTATION = import_client59.gql`
4085
+ var UPDATE_POST_MUTATION = import_client60.gql`
3974
4086
  mutation updatePost($_id: ID!, $input: PostInputType!) {
3975
4087
  updatePost(_id: $_id, input: $input) {
3976
4088
  data {
@@ -3981,7 +4093,7 @@ var UPDATE_POST_MUTATION = import_client59.gql`
3981
4093
  }
3982
4094
  ${POST_FIELDS_FRAGMENT}
3983
4095
  `;
3984
- var DELETE_POST_MUTATION = import_client59.gql`
4096
+ var DELETE_POST_MUTATION = import_client60.gql`
3985
4097
  mutation deletePost($_id: ID!) {
3986
4098
  deletePost(_id: $_id) {
3987
4099
  data
@@ -3992,21 +4104,21 @@ var DELETE_POST_MUTATION = import_client59.gql`
3992
4104
 
3993
4105
  // src/graphql/hooks/post/hooksMutation.ts
3994
4106
  var useCreatePost = () => {
3995
- const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
4107
+ const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
3996
4108
  awaitRefetchQueries: true,
3997
4109
  refetchQueries: [{ query: GET_POSTS }]
3998
4110
  });
3999
4111
  return { createPost, error, loading };
4000
4112
  };
4001
4113
  var useUpdatePost = () => {
4002
- const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
4114
+ const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
4003
4115
  awaitRefetchQueries: true,
4004
4116
  refetchQueries: [{ query: GET_POSTS }]
4005
4117
  });
4006
4118
  return { error, loading, updatePost };
4007
4119
  };
4008
4120
  var useDeletePost = () => {
4009
- const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
4121
+ const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
4010
4122
  awaitRefetchQueries: true,
4011
4123
  refetchQueries: [{ query: GET_POSTS }]
4012
4124
  });
@@ -4014,15 +4126,15 @@ var useDeletePost = () => {
4014
4126
  };
4015
4127
 
4016
4128
  // src/graphql/hooks/post/hooksQuery.ts
4017
- var import_client61 = require("@apollo/client");
4129
+ var import_client62 = require("@apollo/client");
4018
4130
  var useGetPosts = () => {
4019
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
4131
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
4020
4132
  fetchPolicy: "network-only"
4021
4133
  });
4022
4134
  return { error, loading, posts: data?.posts || [], refetch };
4023
4135
  };
4024
4136
  var useGetPost = (_id) => {
4025
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
4137
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
4026
4138
  fetchPolicy: "network-only",
4027
4139
  skip: !_id || _id === "",
4028
4140
  variables: { _id }
@@ -4030,7 +4142,7 @@ var useGetPost = (_id) => {
4030
4142
  return { error, loading, post: data?.post, refetch };
4031
4143
  };
4032
4144
  var useGetPostsByType = (postType) => {
4033
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
4145
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
4034
4146
  fetchPolicy: "network-only",
4035
4147
  skip: !postType,
4036
4148
  variables: { postType }
@@ -4039,11 +4151,11 @@ var useGetPostsByType = (postType) => {
4039
4151
  };
4040
4152
 
4041
4153
  // src/graphql/hooks/appSettings/hooksMutation.ts
4042
- var import_client64 = require("@apollo/client");
4154
+ var import_client65 = require("@apollo/client");
4043
4155
 
4044
4156
  // src/graphql/mutations/appSettings.ts
4045
- var import_client62 = require("@apollo/client");
4046
- var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4157
+ var import_client63 = require("@apollo/client");
4158
+ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
4047
4159
  mutation updateAppSettings($input: AppSettingsInputType!) {
4048
4160
  updateAppSettings(input: $input) {
4049
4161
  data
@@ -4051,7 +4163,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
4051
4163
  }
4052
4164
  }
4053
4165
  `;
4054
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4166
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
4055
4167
  mutation crawlGoogleMarkets {
4056
4168
  crawlGoogleMarkets {
4057
4169
  data
@@ -4059,7 +4171,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
4059
4171
  }
4060
4172
  }
4061
4173
  `;
4062
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4174
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client63.gql`
4063
4175
  mutation updateGoogleImportedMarkets {
4064
4176
  updateGoogleImportedMarkets {
4065
4177
  data
@@ -4069,8 +4181,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
4069
4181
  `;
4070
4182
 
4071
4183
  // src/graphql/queries/appSettings.ts
4072
- var import_client63 = require("@apollo/client");
4073
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4184
+ var import_client64 = require("@apollo/client");
4185
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
4074
4186
  fragment AppSettingsFields on AppSettingsType {
4075
4187
  _id
4076
4188
  appVersion
@@ -4081,7 +4193,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
4081
4193
  updatedAt
4082
4194
  }
4083
4195
  `;
4084
- var GET_APP_SETTINGS = import_client63.gql`
4196
+ var GET_APP_SETTINGS = import_client64.gql`
4085
4197
  query getAppSettings {
4086
4198
  appSettings {
4087
4199
  ...AppSettingsFields
@@ -4092,25 +4204,25 @@ var GET_APP_SETTINGS = import_client63.gql`
4092
4204
 
4093
4205
  // src/graphql/hooks/appSettings/hooksMutation.ts
4094
4206
  var useUpdateAppSettings = () => {
4095
- const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4207
+ const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
4096
4208
  awaitRefetchQueries: true,
4097
4209
  refetchQueries: [{ query: GET_APP_SETTINGS }]
4098
4210
  });
4099
4211
  return { error, loading, updateAppSettings };
4100
4212
  };
4101
4213
  var useCrawlGoogleMarkets = () => {
4102
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4214
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
4103
4215
  return { crawlGoogleMarkets, error, loading };
4104
4216
  };
4105
4217
  var useUpdateGoogleImportedMarkets = () => {
4106
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4218
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client65.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
4107
4219
  return { error, loading, updateGoogleImportedMarkets };
4108
4220
  };
4109
4221
 
4110
4222
  // src/graphql/hooks/appSettings/hooksQuery.ts
4111
- var import_client65 = require("@apollo/client");
4223
+ var import_client66 = require("@apollo/client");
4112
4224
  var useGetAppSettings = () => {
4113
- const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
4225
+ const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
4114
4226
  fetchPolicy: "network-only"
4115
4227
  });
4116
4228
  const appSettings = data?.appSettings || null;
@@ -4118,14 +4230,14 @@ var useGetAppSettings = () => {
4118
4230
  };
4119
4231
 
4120
4232
  // src/graphql/hooks/game/hooksMutation.ts
4121
- var import_client68 = require("@apollo/client");
4233
+ var import_client69 = require("@apollo/client");
4122
4234
 
4123
4235
  // src/graphql/mutations/game.ts
4124
- var import_client67 = require("@apollo/client");
4236
+ var import_client68 = require("@apollo/client");
4125
4237
 
4126
4238
  // src/graphql/queries/game/game.ts
4127
- var import_client66 = require("@apollo/client");
4128
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
4239
+ var import_client67 = require("@apollo/client");
4240
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client67.gql`
4129
4241
  fragment GameHistoryFields on GameHistoryType {
4130
4242
  createdAt
4131
4243
  gameDate {
@@ -4140,7 +4252,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
4140
4252
  }
4141
4253
  ${GAME_DATE_FIELDS_FRAGMENT}
4142
4254
  `;
4143
- var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
4255
+ var GAME_DATA_FIELDS_FRAGMENT = import_client67.gql`
4144
4256
  fragment GameDataFields on GameDataType {
4145
4257
  dailyClue {
4146
4258
  ...DailyClueGameDataFields
@@ -4155,7 +4267,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
4155
4267
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
4156
4268
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
4157
4269
  `;
4158
- var GAME_FIELDS_FRAGMENT = import_client66.gql`
4270
+ var GAME_FIELDS_FRAGMENT = import_client67.gql`
4159
4271
  fragment GameFields on GameType {
4160
4272
  _id
4161
4273
  active
@@ -4174,7 +4286,7 @@ var GAME_FIELDS_FRAGMENT = import_client66.gql`
4174
4286
  ${GAME_DATA_FIELDS_FRAGMENT}
4175
4287
  ${GAME_HISTORY_FIELDS_FRAGMENT}
4176
4288
  `;
4177
- var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
4289
+ var GAME_DOC_FIELDS_FRAGMENT = import_client67.gql`
4178
4290
  fragment GameDocFields on GameDocType {
4179
4291
  _id
4180
4292
  active
@@ -4192,7 +4304,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
4192
4304
  ${OWNER_FIELDS_FRAGMENT}
4193
4305
  ${GAME_FIELDS_FRAGMENT}
4194
4306
  `;
4195
- var GET_GAMES = import_client66.gql`
4307
+ var GET_GAMES = import_client67.gql`
4196
4308
  query getGames {
4197
4309
  games {
4198
4310
  ...GameDocFields
@@ -4200,7 +4312,7 @@ var GET_GAMES = import_client66.gql`
4200
4312
  }
4201
4313
  ${GAME_DOC_FIELDS_FRAGMENT}
4202
4314
  `;
4203
- var GET_GAME = import_client66.gql`
4315
+ var GET_GAME = import_client67.gql`
4204
4316
  query getGame($_id: ID) {
4205
4317
  game(_id: $_id) {
4206
4318
  ...GameDocFields
@@ -4208,7 +4320,7 @@ var GET_GAME = import_client66.gql`
4208
4320
  }
4209
4321
  ${GAME_DOC_FIELDS_FRAGMENT}
4210
4322
  `;
4211
- var GET_GAME_LEADERBOARD = import_client66.gql`
4323
+ var GET_GAME_LEADERBOARD = import_client67.gql`
4212
4324
  query getGameLeaderboard {
4213
4325
  gameLeaderboard {
4214
4326
  gameHistory {
@@ -4225,7 +4337,7 @@ var GET_GAME_LEADERBOARD = import_client66.gql`
4225
4337
  `;
4226
4338
 
4227
4339
  // src/graphql/mutations/game.ts
4228
- var START_GAME_MUTATION = import_client67.gql`
4340
+ var START_GAME_MUTATION = import_client68.gql`
4229
4341
  mutation startGame($input: BaseGameInputType!) {
4230
4342
  startGame(input: $input) {
4231
4343
  data {
@@ -4236,7 +4348,7 @@ var START_GAME_MUTATION = import_client67.gql`
4236
4348
  }
4237
4349
  ${GAME_DOC_FIELDS_FRAGMENT}
4238
4350
  `;
4239
- var LEAVE_GAME_MUTATION = import_client67.gql`
4351
+ var LEAVE_GAME_MUTATION = import_client68.gql`
4240
4352
  mutation leaveGame(
4241
4353
  $_id: ID!
4242
4354
  $gameType: GameTypeEnumType!
@@ -4248,7 +4360,7 @@ var LEAVE_GAME_MUTATION = import_client67.gql`
4248
4360
  }
4249
4361
  }
4250
4362
  `;
4251
- var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
4363
+ var UPDATE_DAILY_CLUE_MUTATION = import_client68.gql`
4252
4364
  mutation updateDailyClueGame(
4253
4365
  $_id: ID!
4254
4366
  $foundLetter: String!
@@ -4269,7 +4381,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
4269
4381
  }
4270
4382
  ${GAME_DOC_FIELDS_FRAGMENT}
4271
4383
  `;
4272
- var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
4384
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client68.gql`
4273
4385
  mutation updatePuzzleGame(
4274
4386
  $_id: ID!
4275
4387
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -4293,7 +4405,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
4293
4405
 
4294
4406
  // src/graphql/hooks/game/hooksMutation.ts
4295
4407
  var useStartGame = () => {
4296
- const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
4408
+ const [startGame, { loading, error }] = (0, import_client69.useMutation)(START_GAME_MUTATION, {
4297
4409
  awaitRefetchQueries: true,
4298
4410
  refetchQueries: (mutationResult) => {
4299
4411
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -4316,7 +4428,7 @@ var useStartGame = () => {
4316
4428
  return { error, loading, startGame };
4317
4429
  };
4318
4430
  var useLeaveGame = () => {
4319
- const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
4431
+ const [leaveGame, { loading, error }] = (0, import_client69.useMutation)(LEAVE_GAME_MUTATION, {
4320
4432
  awaitRefetchQueries: true,
4321
4433
  refetchQueries: [
4322
4434
  {
@@ -4327,7 +4439,7 @@ var useLeaveGame = () => {
4327
4439
  return { error, leaveGame, loading };
4328
4440
  };
4329
4441
  var useUpdateDailyClueGame = () => {
4330
- const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4442
+ const [updateDailyClueGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
4331
4443
  awaitRefetchQueries: true,
4332
4444
  refetchQueries: (mutationResult) => {
4333
4445
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -4344,7 +4456,7 @@ var useUpdateDailyClueGame = () => {
4344
4456
  return { error, loading, updateDailyClueGame };
4345
4457
  };
4346
4458
  var useUpdatePuzzleGame = () => {
4347
- const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4459
+ const [updatePuzzleGame, { loading, error }] = (0, import_client69.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
4348
4460
  awaitRefetchQueries: true,
4349
4461
  refetchQueries: (mutationResult) => {
4350
4462
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -4362,16 +4474,16 @@ var useUpdatePuzzleGame = () => {
4362
4474
  };
4363
4475
 
4364
4476
  // src/graphql/hooks/game/hooksQuery.ts
4365
- var import_client69 = require("@apollo/client");
4477
+ var import_client70 = require("@apollo/client");
4366
4478
  var useGetGames = () => {
4367
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
4479
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAMES, {
4368
4480
  fetchPolicy: "network-only"
4369
4481
  });
4370
4482
  const games = data?.games || [];
4371
4483
  return { error, games, loading, refetch };
4372
4484
  };
4373
4485
  var useGetGame = (_id) => {
4374
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
4486
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME, {
4375
4487
  fetchPolicy: "network-only",
4376
4488
  skip: !_id,
4377
4489
  variables: _id ? { _id } : void 0
@@ -4380,7 +4492,7 @@ var useGetGame = (_id) => {
4380
4492
  return { error, game, loading, refetch };
4381
4493
  };
4382
4494
  var useGetGameLeaderboard = () => {
4383
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
4495
+ const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GAME_LEADERBOARD, {
4384
4496
  fetchPolicy: "network-only"
4385
4497
  });
4386
4498
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -4388,14 +4500,14 @@ var useGetGameLeaderboard = () => {
4388
4500
  };
4389
4501
 
4390
4502
  // src/graphql/hooks/school/hooksMutation.ts
4391
- var import_client72 = require("@apollo/client");
4503
+ var import_client73 = require("@apollo/client");
4392
4504
 
4393
4505
  // src/graphql/mutations/school.ts
4394
- var import_client71 = require("@apollo/client");
4506
+ var import_client72 = require("@apollo/client");
4395
4507
 
4396
4508
  // src/graphql/queries/school.ts
4397
- var import_client70 = require("@apollo/client");
4398
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
4509
+ var import_client71 = require("@apollo/client");
4510
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client71.gql`
4399
4511
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
4400
4512
  _id
4401
4513
  active
@@ -4408,14 +4520,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
4408
4520
  }
4409
4521
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4410
4522
  `;
4411
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
4523
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client71.gql`
4412
4524
  fragment SchoolCampaignFields on SchoolCampaignType {
4413
4525
  endDate
4414
4526
  name
4415
4527
  startDate
4416
4528
  }
4417
4529
  `;
4418
- var SCHOOL = import_client70.gql`
4530
+ var SCHOOL = import_client71.gql`
4419
4531
  fragment SchoolFields on SchoolType {
4420
4532
  _id
4421
4533
  active
@@ -4459,7 +4571,7 @@ var SCHOOL = import_client70.gql`
4459
4571
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4460
4572
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
4461
4573
  `;
4462
- var GET_SCHOOL = import_client70.gql`
4574
+ var GET_SCHOOL = import_client71.gql`
4463
4575
  query getSchool($_id: ID!) {
4464
4576
  school(_id: $_id) {
4465
4577
  school {
@@ -4473,7 +4585,7 @@ var GET_SCHOOL = import_client70.gql`
4473
4585
  ${SCHOOL}
4474
4586
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
4475
4587
  `;
4476
- var GET_SCHOOLS = import_client70.gql`
4588
+ var GET_SCHOOLS = import_client71.gql`
4477
4589
  query getSchools {
4478
4590
  schools {
4479
4591
  ...SchoolFields
@@ -4483,7 +4595,7 @@ var GET_SCHOOLS = import_client70.gql`
4483
4595
  `;
4484
4596
 
4485
4597
  // src/graphql/mutations/school.ts
4486
- var CREATE_SCHOOL_MUTATION = import_client71.gql`
4598
+ var CREATE_SCHOOL_MUTATION = import_client72.gql`
4487
4599
  mutation createSchool($input: SchoolInputType!) {
4488
4600
  createSchool(input: $input) {
4489
4601
  data {
@@ -4494,7 +4606,7 @@ var CREATE_SCHOOL_MUTATION = import_client71.gql`
4494
4606
  }
4495
4607
  ${SCHOOL}
4496
4608
  `;
4497
- var UPDATE_SCHOOL_MUTATION = import_client71.gql`
4609
+ var UPDATE_SCHOOL_MUTATION = import_client72.gql`
4498
4610
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
4499
4611
  updateSchool(_id: $_id, input: $input) {
4500
4612
  data {
@@ -4505,7 +4617,7 @@ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
4505
4617
  }
4506
4618
  ${SCHOOL}
4507
4619
  `;
4508
- var DELETE_SCHOOL_MUTATION = import_client71.gql`
4620
+ var DELETE_SCHOOL_MUTATION = import_client72.gql`
4509
4621
  mutation deleteSchool($_id: ID!) {
4510
4622
  deleteSchool(_id: $_id) {
4511
4623
  data
@@ -4513,7 +4625,7 @@ var DELETE_SCHOOL_MUTATION = import_client71.gql`
4513
4625
  }
4514
4626
  }
4515
4627
  `;
4516
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
4628
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client72.gql`
4517
4629
  mutation requestMarketingMaterial(
4518
4630
  $input: MarketingMaterialRequestInputType!
4519
4631
  ) {
@@ -4526,35 +4638,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
4526
4638
 
4527
4639
  // src/graphql/hooks/school/hooksMutation.ts
4528
4640
  var useCreateSchool = () => {
4529
- const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
4641
+ const [createSchool, { loading, error }] = (0, import_client73.useMutation)(CREATE_SCHOOL_MUTATION, {
4530
4642
  awaitRefetchQueries: true,
4531
4643
  refetchQueries: [{ query: GET_SCHOOLS }]
4532
4644
  });
4533
4645
  return { createSchool, error, loading };
4534
4646
  };
4535
4647
  var useUpdateSchool = () => {
4536
- const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
4648
+ const [updateSchool, { loading, error }] = (0, import_client73.useMutation)(UPDATE_SCHOOL_MUTATION, {
4537
4649
  awaitRefetchQueries: true,
4538
4650
  refetchQueries: [{ query: GET_SCHOOLS }]
4539
4651
  });
4540
4652
  return { error, loading, updateSchool };
4541
4653
  };
4542
4654
  var useDeleteSchool = () => {
4543
- const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
4655
+ const [deleteSchool, { loading, error }] = (0, import_client73.useMutation)(DELETE_SCHOOL_MUTATION, {
4544
4656
  awaitRefetchQueries: true,
4545
4657
  refetchQueries: [{ query: GET_SCHOOLS }]
4546
4658
  });
4547
4659
  return { deleteSchool, error, loading };
4548
4660
  };
4549
4661
  var useRequestMarketingMaterial = () => {
4550
- const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4662
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client73.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
4551
4663
  return { error, loading, requestMarketingMaterial };
4552
4664
  };
4553
4665
 
4554
4666
  // src/graphql/hooks/school/hooksQuery.ts
4555
- var import_client73 = require("@apollo/client");
4667
+ var import_client74 = require("@apollo/client");
4556
4668
  var useGetSchools = () => {
4557
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(
4669
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(
4558
4670
  GET_SCHOOLS,
4559
4671
  {
4560
4672
  fetchPolicy: "network-only"
@@ -4568,7 +4680,7 @@ var useGetSchools = () => {
4568
4680
  };
4569
4681
  };
4570
4682
  var useGetSchool = (_id) => {
4571
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
4683
+ const { data, loading, error, refetch } = (0, import_client74.useQuery)(GET_SCHOOL, {
4572
4684
  fetchPolicy: "network-only",
4573
4685
  skip: !_id,
4574
4686
  variables: { _id }
@@ -4582,11 +4694,11 @@ var useGetSchool = (_id) => {
4582
4694
  };
4583
4695
 
4584
4696
  // src/graphql/hooks/affiliate/hooksQuery.ts
4585
- var import_client75 = require("@apollo/client");
4697
+ var import_client76 = require("@apollo/client");
4586
4698
 
4587
4699
  // src/graphql/queries/affiliate.ts
4588
- var import_client74 = require("@apollo/client");
4589
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
4700
+ var import_client75 = require("@apollo/client");
4701
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client75.gql`
4590
4702
  fragment AffiliateRewardFields on AffiliateRewardType {
4591
4703
  createdAt
4592
4704
  redeemedAt
@@ -4595,7 +4707,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
4595
4707
  rewardValue
4596
4708
  }
4597
4709
  `;
4598
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
4710
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client75.gql`
4599
4711
  fragment AffiliateResourceFields on AffiliateResourceType {
4600
4712
  resourceActive
4601
4713
  resourceDeletedAt
@@ -4612,13 +4724,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
4612
4724
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
4613
4725
  ${OWNER_FIELDS_FRAGMENT}
4614
4726
  `;
4615
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4727
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4616
4728
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
4617
4729
  accountHolderName
4618
4730
  accountNumber
4619
4731
  }
4620
4732
  `;
4621
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4733
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client75.gql`
4622
4734
  fragment AffiliateDetailsFields on AffiliateDetailsType {
4623
4735
  bankAccountDetails {
4624
4736
  ...AffiliateBankAccountDetailsFields
@@ -4646,7 +4758,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
4646
4758
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4647
4759
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
4648
4760
  `;
4649
- var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
4761
+ var AFFILIATE_FIELDS_FRAGMENT = import_client75.gql`
4650
4762
  fragment AffiliateFields on AffiliateType {
4651
4763
  _id
4652
4764
  active
@@ -4678,7 +4790,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
4678
4790
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
4679
4791
  ${OWNER_FIELDS_FRAGMENT}
4680
4792
  `;
4681
- var GET_AFFILIATE = import_client74.gql`
4793
+ var GET_AFFILIATE = import_client75.gql`
4682
4794
  query getAffiliate($_id: ID!) {
4683
4795
  affiliate(_id: $_id) {
4684
4796
  ...AffiliateFields
@@ -4686,7 +4798,7 @@ var GET_AFFILIATE = import_client74.gql`
4686
4798
  }
4687
4799
  ${AFFILIATE_FIELDS_FRAGMENT}
4688
4800
  `;
4689
- var GET_AFFILIATES = import_client74.gql`
4801
+ var GET_AFFILIATES = import_client75.gql`
4690
4802
  query getAffiliates {
4691
4803
  affiliates {
4692
4804
  ...AffiliateFields
@@ -4697,7 +4809,7 @@ var GET_AFFILIATES = import_client74.gql`
4697
4809
 
4698
4810
  // src/graphql/hooks/affiliate/hooksQuery.ts
4699
4811
  var useGetAffiliate = (_id) => {
4700
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
4812
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATE, {
4701
4813
  fetchPolicy: "network-only",
4702
4814
  skip: !_id || _id === "",
4703
4815
  variables: { _id }
@@ -4711,7 +4823,7 @@ var useGetAffiliate = (_id) => {
4711
4823
  };
4712
4824
  };
4713
4825
  var useGetAffiliates = () => {
4714
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
4826
+ const { data, loading, error, refetch } = (0, import_client76.useQuery)(GET_AFFILIATES, {
4715
4827
  fetchPolicy: "network-only"
4716
4828
  });
4717
4829
  const affiliates = data?.affiliates || [];
@@ -4724,11 +4836,11 @@ var useGetAffiliates = () => {
4724
4836
  };
4725
4837
 
4726
4838
  // src/graphql/hooks/affiliate/hooksMutation.ts
4727
- var import_client77 = require("@apollo/client");
4839
+ var import_client78 = require("@apollo/client");
4728
4840
 
4729
4841
  // src/graphql/mutations/affiliate.ts
4730
- var import_client76 = require("@apollo/client");
4731
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
4842
+ var import_client77 = require("@apollo/client");
4843
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client77.gql`
4732
4844
  mutation updateAffiliateDetails(
4733
4845
  $input: AffiliateDetailsInputType!
4734
4846
  $affiliateId: ID!
@@ -4742,7 +4854,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
4742
4854
  }
4743
4855
  ${AFFILIATE_FIELDS_FRAGMENT}
4744
4856
  `;
4745
- var DELETE_AFFILIATE_MUTATION = import_client76.gql`
4857
+ var DELETE_AFFILIATE_MUTATION = import_client77.gql`
4746
4858
  mutation deleteAffiliate($_id: ID!) {
4747
4859
  deleteAffiliate(_id: $_id) {
4748
4860
  data
@@ -4750,7 +4862,7 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
4750
4862
  }
4751
4863
  }
4752
4864
  `;
4753
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
4865
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client77.gql`
4754
4866
  mutation redeemAffiliateReward($affiliateId: ID!) {
4755
4867
  redeemAffiliateReward(affiliateId: $affiliateId) {
4756
4868
  data {
@@ -4761,7 +4873,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
4761
4873
  }
4762
4874
  ${AFFILIATE_FIELDS_FRAGMENT}
4763
4875
  `;
4764
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
4876
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client77.gql`
4765
4877
  mutation assignAffiliateResourceReward(
4766
4878
  $affiliateId: ID!
4767
4879
  $resourceId: ID!
@@ -4782,7 +4894,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
4782
4894
  }
4783
4895
  ${AFFILIATE_FIELDS_FRAGMENT}
4784
4896
  `;
4785
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
4897
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client77.gql`
4786
4898
  mutation assignAffiliateBonusReward(
4787
4899
  $affiliateId: ID!
4788
4900
  $rewardType: AffiliateRewardEnumType!
@@ -4802,7 +4914,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
4802
4914
 
4803
4915
  // src/graphql/hooks/affiliate/hooksMutation.ts
4804
4916
  var useUpdateAffiliateDetails = () => {
4805
- const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4917
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client78.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
4806
4918
  awaitRefetchQueries: true,
4807
4919
  refetchQueries: (mutationResult) => {
4808
4920
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -4813,14 +4925,14 @@ var useUpdateAffiliateDetails = () => {
4813
4925
  return { error, loading, updateAffiliateDetails };
4814
4926
  };
4815
4927
  var useDeleteAffiliate = () => {
4816
- const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
4928
+ const [deleteAffiliate, { loading, error }] = (0, import_client78.useMutation)(DELETE_AFFILIATE_MUTATION, {
4817
4929
  awaitRefetchQueries: true,
4818
4930
  refetchQueries: [{ query: GET_AFFILIATES }]
4819
4931
  });
4820
4932
  return { deleteAffiliate, error, loading };
4821
4933
  };
4822
4934
  var useRedeemAffiliateReward = () => {
4823
- const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4935
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client78.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
4824
4936
  awaitRefetchQueries: true,
4825
4937
  refetchQueries: (mutationResult) => {
4826
4938
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -4831,7 +4943,7 @@ var useRedeemAffiliateReward = () => {
4831
4943
  return { error, loading, redeemAffiliateReward };
4832
4944
  };
4833
4945
  var useAssignAffiliateResourceReward = () => {
4834
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4946
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
4835
4947
  awaitRefetchQueries: true,
4836
4948
  refetchQueries: (mutationResult) => {
4837
4949
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -4842,7 +4954,7 @@ var useAssignAffiliateResourceReward = () => {
4842
4954
  return { assignAffiliateResourceReward, error, loading };
4843
4955
  };
4844
4956
  var useAssignAffiliateBonusReward = () => {
4845
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4957
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client78.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
4846
4958
  awaitRefetchQueries: true,
4847
4959
  refetchQueries: (mutationResult) => {
4848
4960
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -4858,84 +4970,6 @@ var import_client80 = require("@apollo/client");
4858
4970
 
4859
4971
  // src/graphql/mutations/coupon.ts
4860
4972
  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
4973
  var CREATE_COUPON_MUTATION = import_client79.gql`
4940
4974
  mutation createCoupon($input: CouponInputType!) {
4941
4975
  createCoupon(input: $input) {