@timardex/cluemart-shared 1.7.38 → 1.7.39

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