@timardex/cluemart-shared 1.7.1 → 1.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{ad-BUYzE6zx.d.ts → ad-03NrHP3C.d.ts} +2 -2
  2. package/dist/{ad-BhLoEul3.d.mts → ad-CplXHfPk.d.mts} +2 -2
  3. package/dist/{affiliate-C51nzKsw.d.ts → affiliate-BLSH2QdJ.d.ts} +2 -2
  4. package/dist/{affiliate-BbtjeUP4.d.mts → affiliate-hXxPpl_S.d.mts} +2 -2
  5. package/dist/auth/index.cjs +11 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-R6PCFOYO.mjs → chunk-2QB6MIL2.mjs} +247 -202
  11. package/dist/chunk-2QB6MIL2.mjs.map +1 -0
  12. package/dist/{chunk-32MKHJTX.mjs → chunk-Y3YFLYN4.mjs} +13 -1
  13. package/dist/{chunk-32MKHJTX.mjs.map → chunk-Y3YFLYN4.mjs.map} +1 -1
  14. package/dist/{contactUs-CBWzefUS.d.mts → contactUs-C13TqaIf.d.mts} +1 -1
  15. package/dist/{contactUs--NoohZBu.d.ts → contactUs-Cr4itlk6.d.ts} +1 -1
  16. package/dist/formFields/index.d.mts +1 -1
  17. package/dist/formFields/index.d.ts +1 -1
  18. package/dist/{global-DePDtOFt.d.mts → global-8HQMiqbS.d.mts} +10 -1
  19. package/dist/{global-CUYYxpy2.d.ts → global-DGrr26NH.d.ts} +10 -1
  20. package/dist/graphql/index.cjs +352 -291
  21. package/dist/graphql/index.cjs.map +1 -1
  22. package/dist/graphql/index.d.mts +37 -9
  23. package/dist/graphql/index.d.ts +37 -9
  24. package/dist/graphql/index.mjs +14 -4
  25. package/dist/hooks/index.cjs +245 -218
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +5 -5
  28. package/dist/hooks/index.d.ts +5 -5
  29. package/dist/hooks/index.mjs +2 -2
  30. package/dist/index.cjs +352 -291
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.mts +41 -4
  33. package/dist/index.d.ts +41 -4
  34. package/dist/index.mjs +278 -222
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/map/index.d.mts +1 -1
  37. package/dist/map/index.d.ts +1 -1
  38. package/dist/{resourceActivities-CMUcn2P7.d.ts → resourceActivities-BkC-3bF2.d.ts} +1 -1
  39. package/dist/{resourceActivities-CwbJFGIp.d.mts → resourceActivities-CowKiCCb.d.mts} +1 -1
  40. package/dist/sharing/index.d.mts +1 -1
  41. package/dist/sharing/index.d.ts +1 -1
  42. package/dist/types/index.d.mts +7 -7
  43. package/dist/types/index.d.ts +7 -7
  44. package/dist/{user-D47MLFyH.d.ts → user-CpWRig6p.d.ts} +1 -1
  45. package/dist/{user-DE8edl3u.d.mts → user-DiJffpnd.d.mts} +1 -1
  46. package/dist/utils/index.d.mts +3 -3
  47. package/dist/utils/index.d.ts +3 -3
  48. package/package.json +1 -1
  49. package/dist/chunk-R6PCFOYO.mjs.map +0 -1
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/graphql/index.ts
21
21
  var graphql_exports = {};
22
22
  __export(graphql_exports, {
23
+ ACTIVATE_VENDOR_CLAIM_MUTATION: () => ACTIVATE_VENDOR_CLAIM_MUTATION,
23
24
  GET_EVENT: () => GET_EVENT,
24
25
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
25
26
  GET_EVENT_INFO: () => GET_EVENT_INFO,
@@ -31,7 +32,9 @@ __export(graphql_exports, {
31
32
  GET_VENDOR: () => GET_VENDOR,
32
33
  GET_VENDOR_BY_SLUG: () => GET_VENDOR_BY_SLUG,
33
34
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
35
+ MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
34
36
  toGraphqlQueryString: () => toGraphqlQueryString,
37
+ useActivateVendorClaim: () => useActivateVendorClaim,
35
38
  useAddParticipantToChat: () => useAddParticipantToChat,
36
39
  useAddUserFavouriteResource: () => useAddUserFavouriteResource,
37
40
  useAddUserGoingResource: () => useAddUserGoingResource,
@@ -103,8 +106,10 @@ __export(graphql_exports, {
103
106
  useGetPost: () => useGetPost,
104
107
  useGetPosts: () => useGetPosts,
105
108
  useGetPostsByType: () => useGetPostsByType,
109
+ useGetPrivateChats: () => useGetPrivateChats,
106
110
  useGetRelation: () => useGetRelation,
107
111
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
112
+ useGetRelationChats: () => useGetRelationChats,
108
113
  useGetReportedChatUsers: () => useGetReportedChatUsers,
109
114
  useGetResourceActivity: () => useGetResourceActivity,
110
115
  useGetResourceConnections: () => useGetResourceConnections,
@@ -117,7 +122,6 @@ __export(graphql_exports, {
117
122
  useGetUnregisteredVendorsByInviterId: () => useGetUnregisteredVendorsByInviterId,
118
123
  useGetUser: () => useGetUser,
119
124
  useGetUserActivities: () => useGetUserActivities,
120
- useGetUserChats: () => useGetUserChats,
121
125
  useGetUserEvents: () => useGetUserEvents,
122
126
  useGetUserNotifications: () => useGetUserNotifications,
123
127
  useGetUserNotificationsSubscription: () => useGetUserNotificationsSubscription,
@@ -136,6 +140,7 @@ __export(graphql_exports, {
136
140
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
137
141
  useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
138
142
  useMarkNotificationRead: () => useMarkNotificationRead,
143
+ useMyPendingVendorClaim: () => useMyPendingVendorClaim,
139
144
  useRedeemAffiliateReward: () => useRedeemAffiliateReward,
140
145
  useRedeemReward: () => useRedeemReward,
141
146
  useRefreshToken: () => useRefreshToken,
@@ -867,6 +872,8 @@ var UNREGISTERED_VENDOR = import_client3.gql`
867
872
  active
868
873
  categoryIds
869
874
  claimed
875
+ claimedAt
876
+ claimedByUserId
870
877
  createdAt
871
878
  deletedAt
872
879
  email
@@ -946,10 +953,123 @@ var GET_UNREGISTERED_VENDOR = import_client3.gql`
946
953
  }
947
954
  ${UNREGISTERED_VENDOR}
948
955
  `;
956
+ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
957
+ query myPendingVendorClaim {
958
+ myPendingVendorClaim {
959
+ _id
960
+ name
961
+ region
962
+ }
963
+ }
964
+ `;
949
965
 
950
- // src/graphql/queries/partner.ts
966
+ // src/graphql/mutations/vendor.ts
951
967
  var import_client4 = require("@apollo/client");
952
- var PARTNER = import_client4.gql`
968
+ var CREATE_VENDOR_MUTATION = import_client4.gql`
969
+ mutation createVendor($input: VendorInputType!) {
970
+ createVendor(input: $input) {
971
+ data {
972
+ ...VendorFields
973
+ }
974
+ message
975
+ }
976
+ }
977
+ ${VENDOR}
978
+ `;
979
+ var UPDATE_VENDOR_MUTATION = import_client4.gql`
980
+ mutation updateVendor($_id: ID!, $input: VendorInputType!) {
981
+ updateVendor(_id: $_id, input: $input) {
982
+ data {
983
+ ...VendorFields
984
+ }
985
+ message
986
+ }
987
+ }
988
+ ${VENDOR}
989
+ `;
990
+ var DELETE_VENDOR_MUTATION = import_client4.gql`
991
+ mutation deleteVendor($_id: ID!) {
992
+ deleteVendor(_id: $_id) {
993
+ data
994
+ message
995
+ }
996
+ }
997
+ `;
998
+ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
999
+ mutation createVendorInfo($input: VendorInfoInputType!) {
1000
+ createVendorInfo(input: $input) {
1001
+ data {
1002
+ ...VendorInfoFields
1003
+ }
1004
+ message
1005
+ }
1006
+ }
1007
+ ${VENDOR_INFO}
1008
+ `;
1009
+ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
1010
+ mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1011
+ updateVendorInfo(_id: $_id, input: $input) {
1012
+ data {
1013
+ ...VendorInfoFields
1014
+ }
1015
+ message
1016
+ }
1017
+ }
1018
+ ${VENDOR_INFO}
1019
+ `;
1020
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1021
+ mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
1022
+ createUnregisteredVendor(input: $input) {
1023
+ data {
1024
+ ...UnregisteredVendorFields
1025
+ }
1026
+ message
1027
+ }
1028
+ }
1029
+ ${UNREGISTERED_VENDOR}
1030
+ `;
1031
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1032
+ mutation updateUnregisteredVendor(
1033
+ $_id: ID!
1034
+ $input: UnregisteredVendorInputType!
1035
+ ) {
1036
+ updateUnregisteredVendor(_id: $_id, input: $input) {
1037
+ data {
1038
+ ...UnregisteredVendorFields
1039
+ }
1040
+ message
1041
+ }
1042
+ }
1043
+ ${UNREGISTERED_VENDOR}
1044
+ `;
1045
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
1046
+ mutation deleteUnregisteredVendor($_id: ID!) {
1047
+ deleteUnregisteredVendor(_id: $_id) {
1048
+ data
1049
+ message
1050
+ }
1051
+ }
1052
+ `;
1053
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
1054
+ mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
1055
+ unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
1056
+ data
1057
+ message
1058
+ }
1059
+ }
1060
+ `;
1061
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
1062
+ mutation activateVendorClaim($token: String!) {
1063
+ activateVendorClaim(token: $token) {
1064
+ valid
1065
+ vendorName
1066
+ }
1067
+ }
1068
+ `;
1069
+
1070
+ // src/graphql/queries/partner.ts
1071
+ var import_client5 = require("@apollo/client");
1072
+ var PARTNER = import_client5.gql`
953
1073
  fragment PartnerFields on PartnerType {
954
1074
  _id
955
1075
  active
@@ -1010,7 +1130,7 @@ var PARTNER = import_client4.gql`
1010
1130
  ${RELATED_POST_FIELDS_FRAGMENT}
1011
1131
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1012
1132
  `;
1013
- var GET_PARTNERS = import_client4.gql`
1133
+ var GET_PARTNERS = import_client5.gql`
1014
1134
  query getPartners {
1015
1135
  partners {
1016
1136
  ...PartnerFields
@@ -1018,7 +1138,7 @@ var GET_PARTNERS = import_client4.gql`
1018
1138
  }
1019
1139
  ${PARTNER}
1020
1140
  `;
1021
- var GET_PARTNER = import_client4.gql`
1141
+ var GET_PARTNER = import_client5.gql`
1022
1142
  query getPartner($_id: ID!) {
1023
1143
  partner(_id: $_id) {
1024
1144
  ...PartnerFields
@@ -1026,7 +1146,7 @@ var GET_PARTNER = import_client4.gql`
1026
1146
  }
1027
1147
  ${PARTNER}
1028
1148
  `;
1029
- var GET_PARTNERS_BY_REGION = import_client4.gql`
1149
+ var GET_PARTNERS_BY_REGION = import_client5.gql`
1030
1150
  query getPartnersByRegion(
1031
1151
  $region: String!
1032
1152
  $options: ResourcesByRegionOptions
@@ -1037,7 +1157,7 @@ var GET_PARTNERS_BY_REGION = import_client4.gql`
1037
1157
  }
1038
1158
  ${PARTNER}
1039
1159
  `;
1040
- var SEARCH_PARTNERS = import_client4.gql`
1160
+ var SEARCH_PARTNERS = import_client5.gql`
1041
1161
  query searchPartners($search: String!, $region: String!) {
1042
1162
  partnersSearch(search: $search, region: $region) {
1043
1163
  ...PartnerFields
@@ -1047,17 +1167,17 @@ var SEARCH_PARTNERS = import_client4.gql`
1047
1167
  `;
1048
1168
 
1049
1169
  // src/graphql/queries/post.ts
1050
- var import_client7 = require("@apollo/client");
1170
+ var import_client8 = require("@apollo/client");
1051
1171
 
1052
1172
  // src/graphql/queries/game/dailyClue.ts
1053
- var import_client5 = require("@apollo/client");
1054
- var GAME_DATE_FIELDS_FRAGMENT = import_client5.gql`
1173
+ var import_client6 = require("@apollo/client");
1174
+ var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
1055
1175
  fragment GameDateFields on GameDateType {
1056
1176
  startDate
1057
1177
  endDate
1058
1178
  }
1059
1179
  `;
1060
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
1180
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1061
1181
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
1062
1182
  gameDate {
1063
1183
  ...GameDateFields
@@ -1066,7 +1186,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
1066
1186
  }
1067
1187
  ${GAME_DATE_FIELDS_FRAGMENT}
1068
1188
  `;
1069
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
1189
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1070
1190
  fragment DailyClueGameDataFields on DailyClueGameDataType {
1071
1191
  gameFields {
1072
1192
  ...DailyClueBaseGameFields
@@ -1086,15 +1206,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
1086
1206
  `;
1087
1207
 
1088
1208
  // src/graphql/queries/game/puzzleGame.ts
1089
- var import_client6 = require("@apollo/client");
1090
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client6.gql`
1209
+ var import_client7 = require("@apollo/client");
1210
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
1091
1211
  fragment PuzzleAnswerFields on PuzzleAnswerType {
1092
1212
  answer
1093
1213
  answerId
1094
1214
  correct
1095
1215
  }
1096
1216
  `;
1097
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
1217
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1098
1218
  fragment PuzzleQuestionFields on PuzzleQuestionType {
1099
1219
  answers {
1100
1220
  ...PuzzleAnswerFields
@@ -1104,13 +1224,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
1104
1224
  }
1105
1225
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
1106
1226
  `;
1107
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
1227
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
1108
1228
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
1109
1229
  questionId
1110
1230
  selectedAnswerId
1111
1231
  }
1112
1232
  `;
1113
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1233
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1114
1234
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
1115
1235
  questions {
1116
1236
  ...PuzzleQuestionFields
@@ -1118,7 +1238,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
1118
1238
  }
1119
1239
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
1120
1240
  `;
1121
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1241
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
1122
1242
  fragment PuzzleGameDataFields on PuzzleGameDataType {
1123
1243
  gameFields {
1124
1244
  ...PuzzleBaseGameFields
@@ -1134,7 +1254,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
1134
1254
  `;
1135
1255
 
1136
1256
  // src/graphql/queries/post.ts
1137
- var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1257
+ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
1138
1258
  fragment BaseGameFields on BaseGameType {
1139
1259
  gameTypeId
1140
1260
  gameTitle
@@ -1152,7 +1272,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
1152
1272
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
1153
1273
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
1154
1274
  `;
1155
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
1275
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
1156
1276
  fragment PostContentDataFields on PostContentData {
1157
1277
  game {
1158
1278
  ...BaseGameFields
@@ -1178,7 +1298,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
1178
1298
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1179
1299
  ${BASE_GAME_FIELDS_FRAGMENT}
1180
1300
  `;
1181
- var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
1301
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
1182
1302
  fragment PostContentFields on PostContentType {
1183
1303
  contentData {
1184
1304
  ...PostContentDataFields
@@ -1188,7 +1308,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
1188
1308
  }
1189
1309
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
1190
1310
  `;
1191
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client7.gql`
1311
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
1192
1312
  fragment PostResourceFields on PostResourceType {
1193
1313
  resourceId
1194
1314
  resourceSlug
@@ -1196,7 +1316,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client7.gql`
1196
1316
  resourceType
1197
1317
  }
1198
1318
  `;
1199
- var POST_FIELDS_FRAGMENT = import_client7.gql`
1319
+ var POST_FIELDS_FRAGMENT = import_client8.gql`
1200
1320
  fragment PostFields on PostType {
1201
1321
  _id
1202
1322
  active
@@ -1227,7 +1347,7 @@ var POST_FIELDS_FRAGMENT = import_client7.gql`
1227
1347
  ${POST_RESOURCE_FIELDS_FRAGMENT}
1228
1348
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1229
1349
  `;
1230
- var GET_POSTS = import_client7.gql`
1350
+ var GET_POSTS = import_client8.gql`
1231
1351
  query getPosts {
1232
1352
  posts {
1233
1353
  ...PostFields
@@ -1235,7 +1355,7 @@ var GET_POSTS = import_client7.gql`
1235
1355
  }
1236
1356
  ${POST_FIELDS_FRAGMENT}
1237
1357
  `;
1238
- var GET_POST = import_client7.gql`
1358
+ var GET_POST = import_client8.gql`
1239
1359
  query getPost($_id: ID!) {
1240
1360
  post(_id: $_id) {
1241
1361
  ...PostFields
@@ -1243,7 +1363,7 @@ var GET_POST = import_client7.gql`
1243
1363
  }
1244
1364
  ${POST_FIELDS_FRAGMENT}
1245
1365
  `;
1246
- var GET_POSTS_BY_TYPE = import_client7.gql`
1366
+ var GET_POSTS_BY_TYPE = import_client8.gql`
1247
1367
  query getPostsByType($postType: PostTypeEnum!) {
1248
1368
  postsByType(postType: $postType) {
1249
1369
  ...PostFields
@@ -1253,29 +1373,29 @@ var GET_POSTS_BY_TYPE = import_client7.gql`
1253
1373
  `;
1254
1374
 
1255
1375
  // src/graphql/queries/shareSlug.ts
1256
- var import_client8 = require("@apollo/client");
1257
- var GET_EVENT_BY_SLUG = import_client8.gql`
1376
+ var import_client9 = require("@apollo/client");
1377
+ var GET_EVENT_BY_SLUG = import_client9.gql`
1258
1378
  query getEventBySlug($slug: String!) {
1259
1379
  eventBySlug(slug: $slug) {
1260
1380
  _id
1261
1381
  }
1262
1382
  }
1263
1383
  `;
1264
- var GET_VENDOR_BY_SLUG = import_client8.gql`
1384
+ var GET_VENDOR_BY_SLUG = import_client9.gql`
1265
1385
  query getVendorBySlug($slug: String!) {
1266
1386
  vendorBySlug(slug: $slug) {
1267
1387
  _id
1268
1388
  }
1269
1389
  }
1270
1390
  `;
1271
- var GET_PARTNER_BY_SLUG = import_client8.gql`
1391
+ var GET_PARTNER_BY_SLUG = import_client9.gql`
1272
1392
  query getPartnerBySlug($slug: String!) {
1273
1393
  partnerBySlug(slug: $slug) {
1274
1394
  _id
1275
1395
  }
1276
1396
  }
1277
1397
  `;
1278
- var GET_POST_BY_SLUG = import_client8.gql`
1398
+ var GET_POST_BY_SLUG = import_client9.gql`
1279
1399
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
1280
1400
  postBySlug(slug: $slug, postType: $postType) {
1281
1401
  _id
@@ -1284,8 +1404,8 @@ var GET_POST_BY_SLUG = import_client8.gql`
1284
1404
  `;
1285
1405
 
1286
1406
  // src/graphql/queries/relation.ts
1287
- var import_client9 = require("@apollo/client");
1288
- var RELATION_FIELDS_FRAGMENT = import_client9.gql`
1407
+ var import_client10 = require("@apollo/client");
1408
+ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1289
1409
  fragment RelationFields on RelationType {
1290
1410
  _id
1291
1411
  active
@@ -1302,7 +1422,7 @@ var RELATION_FIELDS_FRAGMENT = import_client9.gql`
1302
1422
  }
1303
1423
  ${RELATION_DATES_FRAGMENT}
1304
1424
  `;
1305
- var GET_RELATION = import_client9.gql`
1425
+ var GET_RELATION = import_client10.gql`
1306
1426
  query getRelation($_id: ID!) {
1307
1427
  relation(_id: $_id) {
1308
1428
  ...RelationFields
@@ -1310,7 +1430,7 @@ var GET_RELATION = import_client9.gql`
1310
1430
  }
1311
1431
  ${RELATION_FIELDS_FRAGMENT}
1312
1432
  `;
1313
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client9.gql`
1433
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1314
1434
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1315
1435
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1316
1436
  ...RelationFields
@@ -1318,7 +1438,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client9.gql`
1318
1438
  }
1319
1439
  ${RELATION_FIELDS_FRAGMENT}
1320
1440
  `;
1321
- var GET_EVENT_RELATIONS = import_client9.gql`
1441
+ var GET_EVENT_RELATIONS = import_client10.gql`
1322
1442
  query getEventRelations($eventId: ID!) {
1323
1443
  eventRelations(eventId: $eventId) {
1324
1444
  ...RelationFields
@@ -1326,7 +1446,7 @@ var GET_EVENT_RELATIONS = import_client9.gql`
1326
1446
  }
1327
1447
  ${RELATION_FIELDS_FRAGMENT}
1328
1448
  `;
1329
- var GET_VENDOR_RELATIONS = import_client9.gql`
1449
+ var GET_VENDOR_RELATIONS = import_client10.gql`
1330
1450
  query getVendorRelations($vendorId: ID!) {
1331
1451
  vendorRelations(vendorId: $vendorId) {
1332
1452
  ...RelationFields
@@ -1334,7 +1454,7 @@ var GET_VENDOR_RELATIONS = import_client9.gql`
1334
1454
  }
1335
1455
  ${RELATION_FIELDS_FRAGMENT}
1336
1456
  `;
1337
- var GET_RESOURCE_CONNECTIONS = import_client9.gql`
1457
+ var GET_RESOURCE_CONNECTIONS = import_client10.gql`
1338
1458
  query getResourceConnections(
1339
1459
  $resourceId: ID!
1340
1460
  $resourceType: ResourceTypeEnum!
@@ -1359,11 +1479,11 @@ function toGraphqlQueryString(query) {
1359
1479
  }
1360
1480
 
1361
1481
  // src/graphql/hooks/admin/hooksMutation.ts
1362
- var import_client11 = require("@apollo/client");
1482
+ var import_client12 = require("@apollo/client");
1363
1483
 
1364
1484
  // src/graphql/mutations/admin.ts
1365
- var import_client10 = require("@apollo/client");
1366
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client10.gql`
1485
+ var import_client11 = require("@apollo/client");
1486
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1367
1487
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
1368
1488
  adminUpdateResourceType(input: $input) {
1369
1489
  data {
@@ -1375,7 +1495,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client10.gql`
1375
1495
  }
1376
1496
  }
1377
1497
  `;
1378
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client10.gql`
1498
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1379
1499
  mutation adminResendUserVerificationEmail($userId: ID!) {
1380
1500
  adminResendUserVerificationEmail(userId: $userId) {
1381
1501
  data
@@ -1383,7 +1503,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client10.gql`
1383
1503
  }
1384
1504
  }
1385
1505
  `;
1386
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client10.gql`
1506
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1387
1507
  mutation adminPermanentlyDeleteResource(
1388
1508
  $resourceId: ID!
1389
1509
  $resourceType: ResourceTypeEnum!
@@ -1400,7 +1520,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client10.gql`
1400
1520
 
1401
1521
  // src/graphql/hooks/admin/hooksMutation.ts
1402
1522
  var useAdminUpdateResourceType = () => {
1403
- const [adminUpdateResourceType, { loading, error }] = (0, import_client11.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1523
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1404
1524
  awaitRefetchQueries: true,
1405
1525
  refetchQueries: (mutationResult) => {
1406
1526
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -1423,7 +1543,7 @@ var useAdminUpdateResourceType = () => {
1423
1543
  };
1424
1544
  };
1425
1545
  var useAdminResendUserVerificationEmail = () => {
1426
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client11.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1546
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1427
1547
  return {
1428
1548
  adminResendUserVerificationEmail,
1429
1549
  error,
@@ -1431,7 +1551,7 @@ var useAdminResendUserVerificationEmail = () => {
1431
1551
  };
1432
1552
  };
1433
1553
  var useAdminPermanentlyDeleteResource = () => {
1434
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client11.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1554
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1435
1555
  return {
1436
1556
  adminPermanentlyDeleteResource,
1437
1557
  error,
@@ -1440,11 +1560,11 @@ var useAdminPermanentlyDeleteResource = () => {
1440
1560
  };
1441
1561
 
1442
1562
  // src/graphql/hooks/auth.ts
1443
- var import_client13 = require("@apollo/client");
1563
+ var import_client14 = require("@apollo/client");
1444
1564
 
1445
1565
  // src/graphql/mutations/auth.ts
1446
- var import_client12 = require("@apollo/client");
1447
- var REGISTER_MUTATION = import_client12.gql`
1566
+ var import_client13 = require("@apollo/client");
1567
+ var REGISTER_MUTATION = import_client13.gql`
1448
1568
  mutation register($input: RegisterInputType!) {
1449
1569
  register(input: $input) {
1450
1570
  data {
@@ -1459,7 +1579,7 @@ var REGISTER_MUTATION = import_client12.gql`
1459
1579
  }
1460
1580
  ${USER_FIELDS_FRAGMENT}
1461
1581
  `;
1462
- var LOGIN_MUTATION = import_client12.gql`
1582
+ var LOGIN_MUTATION = import_client13.gql`
1463
1583
  mutation login($input: LoginInputType!) {
1464
1584
  login(input: $input) {
1465
1585
  data {
@@ -1474,7 +1594,7 @@ var LOGIN_MUTATION = import_client12.gql`
1474
1594
  }
1475
1595
  ${USER_FIELDS_FRAGMENT}
1476
1596
  `;
1477
- var LOGOUT_MUTATION = import_client12.gql`
1597
+ var LOGOUT_MUTATION = import_client13.gql`
1478
1598
  mutation logout {
1479
1599
  logout {
1480
1600
  data
@@ -1482,7 +1602,7 @@ var LOGOUT_MUTATION = import_client12.gql`
1482
1602
  }
1483
1603
  }
1484
1604
  `;
1485
- var REFRESH_TOKEN_MUTATION = import_client12.gql`
1605
+ var REFRESH_TOKEN_MUTATION = import_client13.gql`
1486
1606
  mutation refreshToken($input: RefreshTokenInputType!) {
1487
1607
  refreshToken(input: $input) {
1488
1608
  data {
@@ -1493,7 +1613,7 @@ var REFRESH_TOKEN_MUTATION = import_client12.gql`
1493
1613
  }
1494
1614
  }
1495
1615
  `;
1496
- var RESET_PASSWORD_MUTATION = import_client12.gql`
1616
+ var RESET_PASSWORD_MUTATION = import_client13.gql`
1497
1617
  mutation resetPassword($input: ResetPasswordInputType!) {
1498
1618
  resetPassword(input: $input) {
1499
1619
  data
@@ -1501,7 +1621,7 @@ var RESET_PASSWORD_MUTATION = import_client12.gql`
1501
1621
  }
1502
1622
  }
1503
1623
  `;
1504
- var REQUEST_PASSWORD_RESET_MUTATION = import_client12.gql`
1624
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1505
1625
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
1506
1626
  requestPasswordReset(input: $input) {
1507
1627
  data
@@ -1509,7 +1629,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client12.gql`
1509
1629
  }
1510
1630
  }
1511
1631
  `;
1512
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client12.gql`
1632
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1513
1633
  mutation validateVerificationToken(
1514
1634
  $input: ValidateVerificationTokenInputType!
1515
1635
  ) {
@@ -1522,43 +1642,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client12.gql`
1522
1642
 
1523
1643
  // src/graphql/hooks/auth.ts
1524
1644
  var useRegister = () => {
1525
- const [register, { loading, error }] = (0, import_client13.useMutation)(REGISTER_MUTATION);
1645
+ const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
1526
1646
  return { error, loading, register };
1527
1647
  };
1528
1648
  var useLogin = () => {
1529
- const [login, { loading, error }] = (0, import_client13.useMutation)(LOGIN_MUTATION);
1649
+ const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
1530
1650
  return { error, loading, login };
1531
1651
  };
1532
1652
  var useLogout = () => {
1533
- const [logout, { loading, error }] = (0, import_client13.useMutation)(LOGOUT_MUTATION);
1653
+ const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
1534
1654
  return { error, loading, logout };
1535
1655
  };
1536
1656
  var useRefreshToken = () => {
1537
- const [refreshToken, { loading, error }] = (0, import_client13.useMutation)(REFRESH_TOKEN_MUTATION);
1657
+ const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
1538
1658
  return { error, loading, refreshToken };
1539
1659
  };
1540
1660
  var useRequestPasswordReset = () => {
1541
- const [requestPasswordReset, { loading, error }] = (0, import_client13.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1661
+ const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1542
1662
  return { error, loading, requestPasswordReset };
1543
1663
  };
1544
1664
  var useValidateVerificationToken = () => {
1545
- const [validateVerificationToken, { loading, error }] = (0, import_client13.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1665
+ const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1546
1666
  return { error, loading, validateVerificationToken };
1547
1667
  };
1548
1668
  var useResetPassword = () => {
1549
- const [resetPassword, { loading, error }] = (0, import_client13.useMutation)(RESET_PASSWORD_MUTATION);
1669
+ const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
1550
1670
  return { error, loading, resetPassword };
1551
1671
  };
1552
1672
 
1553
1673
  // src/graphql/hooks/chat/hooksMutation.ts
1554
- var import_client16 = require("@apollo/client");
1674
+ var import_client17 = require("@apollo/client");
1555
1675
 
1556
1676
  // src/graphql/mutations/chat.ts
1557
- var import_client15 = require("@apollo/client");
1677
+ var import_client16 = require("@apollo/client");
1558
1678
 
1559
1679
  // src/graphql/queries/chat.ts
1560
- var import_client14 = require("@apollo/client");
1561
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
1680
+ var import_client15 = require("@apollo/client");
1681
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1562
1682
  fragment ChatMessageFields on ChatMessageType {
1563
1683
  _id
1564
1684
  content
@@ -1581,7 +1701,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
1581
1701
  updatedAt
1582
1702
  }
1583
1703
  `;
1584
- var CHAT_PARTICIPANT = import_client14.gql`
1704
+ var CHAT_PARTICIPANT = import_client15.gql`
1585
1705
  fragment ChatParticipantFields on ChatParticipantType {
1586
1706
  active
1587
1707
  userAvatar
@@ -1590,7 +1710,7 @@ var CHAT_PARTICIPANT = import_client14.gql`
1590
1710
  userName
1591
1711
  }
1592
1712
  `;
1593
- var CHAT_FIELDS_FRAGMENT = import_client14.gql`
1713
+ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1594
1714
  fragment ChatFields on ChatType {
1595
1715
  _id
1596
1716
  active
@@ -1611,7 +1731,7 @@ var CHAT_FIELDS_FRAGMENT = import_client14.gql`
1611
1731
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1612
1732
  ${CHAT_PARTICIPANT}
1613
1733
  `;
1614
- var CHAT = import_client14.gql`
1734
+ var CHAT = import_client15.gql`
1615
1735
  query chat($_id: ID!) {
1616
1736
  chat(_id: $_id) {
1617
1737
  ...ChatFields
@@ -1619,15 +1739,23 @@ var CHAT = import_client14.gql`
1619
1739
  }
1620
1740
  ${CHAT_FIELDS_FRAGMENT}
1621
1741
  `;
1622
- var USER_CHATS = import_client14.gql`
1623
- query userChats {
1624
- userChats {
1742
+ var PRIVATE_CHATS = import_client15.gql`
1743
+ query privateChats {
1744
+ privateChats {
1745
+ ...ChatFields
1746
+ }
1747
+ }
1748
+ ${CHAT_FIELDS_FRAGMENT}
1749
+ `;
1750
+ var RELATION_CHATS = import_client15.gql`
1751
+ query relationChats {
1752
+ relationChats {
1625
1753
  ...ChatFields
1626
1754
  }
1627
1755
  }
1628
1756
  ${CHAT_FIELDS_FRAGMENT}
1629
1757
  `;
1630
- var GET_CHATS_BY_REGION = import_client14.gql`
1758
+ var GET_CHATS_BY_REGION = import_client15.gql`
1631
1759
  query getChatsByRegion($region: String!) {
1632
1760
  chatsByRegion(region: $region) {
1633
1761
  ...ChatFields
@@ -1635,7 +1763,7 @@ var GET_CHATS_BY_REGION = import_client14.gql`
1635
1763
  }
1636
1764
  ${CHAT_FIELDS_FRAGMENT}
1637
1765
  `;
1638
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client14.gql`
1766
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1639
1767
  fragment ChatReportFields on ReportChatUserType {
1640
1768
  _id
1641
1769
  chatId
@@ -1650,7 +1778,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client14.gql`
1650
1778
  updatedAt
1651
1779
  }
1652
1780
  `;
1653
- var GET_REPORTED_CHAT_USERS = import_client14.gql`
1781
+ var GET_REPORTED_CHAT_USERS = import_client15.gql`
1654
1782
  query getReportedChatUsers {
1655
1783
  reportedChatUsers {
1656
1784
  ...ChatReportFields
@@ -1660,7 +1788,7 @@ var GET_REPORTED_CHAT_USERS = import_client14.gql`
1660
1788
  `;
1661
1789
 
1662
1790
  // src/graphql/mutations/chat.ts
1663
- var CREATE_PRIVATE_CHAT_MUTATION = import_client15.gql`
1791
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1664
1792
  mutation createPrivateChat($userId: ID!) {
1665
1793
  createPrivateChat(userId: $userId) {
1666
1794
  data {
@@ -1671,7 +1799,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client15.gql`
1671
1799
  }
1672
1800
  ${CHAT_FIELDS_FRAGMENT}
1673
1801
  `;
1674
- var SEND_CHAT_MESSAGE_MUTATION = import_client15.gql`
1802
+ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1675
1803
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1676
1804
  sendChatMessage(_id: $_id, input: $input) {
1677
1805
  data {
@@ -1682,7 +1810,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client15.gql`
1682
1810
  }
1683
1811
  ${CHAT_FIELDS_FRAGMENT}
1684
1812
  `;
1685
- var DELETE_CHAT_MUTATION = import_client15.gql`
1813
+ var DELETE_CHAT_MUTATION = import_client16.gql`
1686
1814
  mutation deleteChat($_id: ID!) {
1687
1815
  deleteChat(_id: $_id) {
1688
1816
  data
@@ -1690,7 +1818,7 @@ var DELETE_CHAT_MUTATION = import_client15.gql`
1690
1818
  }
1691
1819
  }
1692
1820
  `;
1693
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client15.gql`
1821
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1694
1822
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
1695
1823
  addParticipantToChat(chatId: $chatId, userId: $userId) {
1696
1824
  data {
@@ -1701,7 +1829,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client15.gql`
1701
1829
  }
1702
1830
  ${CHAT_FIELDS_FRAGMENT}
1703
1831
  `;
1704
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client15.gql`
1832
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1705
1833
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
1706
1834
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
1707
1835
  data {
@@ -1712,7 +1840,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client15.gql`
1712
1840
  }
1713
1841
  }
1714
1842
  `;
1715
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client15.gql`
1843
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1716
1844
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
1717
1845
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
1718
1846
  data {
@@ -1723,7 +1851,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client15.gql`
1723
1851
  }
1724
1852
  ${CHAT_FIELDS_FRAGMENT}
1725
1853
  `;
1726
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client15.gql`
1854
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1727
1855
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
1728
1856
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
1729
1857
  data {
@@ -1734,7 +1862,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client15.gql`
1734
1862
  }
1735
1863
  ${CHAT_FIELDS_FRAGMENT}
1736
1864
  `;
1737
- var REPORT_CHAT_USER_MUTATION = import_client15.gql`
1865
+ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
1738
1866
  mutation reportChatUser($input: ReportChatUserInputType!) {
1739
1867
  reportChatUser(input: $input) {
1740
1868
  data {
@@ -1748,14 +1876,14 @@ var REPORT_CHAT_USER_MUTATION = import_client15.gql`
1748
1876
 
1749
1877
  // src/graphql/hooks/chat/hooksMutation.ts
1750
1878
  var useCreatePrivateChat = () => {
1751
- const [createPrivateChat, { loading, error }] = (0, import_client16.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1879
+ const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1752
1880
  awaitRefetchQueries: true,
1753
- refetchQueries: [{ query: USER_CHATS }]
1881
+ refetchQueries: [{ query: PRIVATE_CHATS }]
1754
1882
  });
1755
1883
  return { createPrivateChat, error, loading };
1756
1884
  };
1757
1885
  var useSendChatMessage = () => {
1758
- const [sendChatMessage, { loading, error }] = (0, import_client16.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1886
+ const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1759
1887
  awaitRefetchQueries: true,
1760
1888
  refetchQueries: (mutationResult) => {
1761
1889
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -1770,14 +1898,14 @@ var useSendChatMessage = () => {
1770
1898
  return { error, loading, sendChatMessage };
1771
1899
  };
1772
1900
  var useDeleteChat = () => {
1773
- const [deleteChat, { loading, error }] = (0, import_client16.useMutation)(DELETE_CHAT_MUTATION, {
1901
+ const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
1774
1902
  awaitRefetchQueries: true,
1775
- refetchQueries: [{ query: USER_CHATS }]
1903
+ refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
1776
1904
  });
1777
1905
  return { deleteChat, error, loading };
1778
1906
  };
1779
1907
  var useAddParticipantToChat = () => {
1780
- const [addParticipantToChat, { loading, error }] = (0, import_client16.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1908
+ const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1781
1909
  awaitRefetchQueries: true,
1782
1910
  refetchQueries: (mutationResult) => {
1783
1911
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -1787,7 +1915,10 @@ var useAddParticipantToChat = () => {
1787
1915
  variables: { _id: chatId }
1788
1916
  },
1789
1917
  {
1790
- query: USER_CHATS
1918
+ query: PRIVATE_CHATS
1919
+ },
1920
+ {
1921
+ query: RELATION_CHATS
1791
1922
  }
1792
1923
  ];
1793
1924
  }
@@ -1795,11 +1926,14 @@ var useAddParticipantToChat = () => {
1795
1926
  return { addParticipantToChat, error, loading };
1796
1927
  };
1797
1928
  var useRemoveParticipantFromChat = () => {
1798
- const [removeParticipantFromChat, { loading, error }] = (0, import_client16.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1929
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1799
1930
  awaitRefetchQueries: true,
1800
1931
  refetchQueries: (mutationResult) => {
1801
1932
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
1802
- const queries = [{ query: USER_CHATS }];
1933
+ const queries = [
1934
+ { query: PRIVATE_CHATS },
1935
+ { query: RELATION_CHATS }
1936
+ ];
1803
1937
  if (region && region.trim() !== "") {
1804
1938
  queries.push({
1805
1939
  query: GET_CHATS_BY_REGION,
@@ -1812,7 +1946,7 @@ var useRemoveParticipantFromChat = () => {
1812
1946
  return { error, loading, removeParticipantFromChat };
1813
1947
  };
1814
1948
  var useToggleChatMessageLike = () => {
1815
- const [toggleChatMessageLike, { loading, error }] = (0, import_client16.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1949
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1816
1950
  awaitRefetchQueries: true,
1817
1951
  refetchQueries: (mutationResult) => {
1818
1952
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -1827,7 +1961,7 @@ var useToggleChatMessageLike = () => {
1827
1961
  return { error, loading, toggleChatMessageLike };
1828
1962
  };
1829
1963
  var useMarkChatMessagesSeen = () => {
1830
- const [markChatMessagesSeen, { loading, error }] = (0, import_client16.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
1964
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
1831
1965
  awaitRefetchQueries: true,
1832
1966
  refetchQueries: (mutationResult) => {
1833
1967
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -1842,16 +1976,16 @@ var useMarkChatMessagesSeen = () => {
1842
1976
  return { error, loading, markChatMessagesSeen };
1843
1977
  };
1844
1978
  var useReportChatUser = () => {
1845
- const [reportChatUser, { loading, error }] = (0, import_client16.useMutation)(REPORT_CHAT_USER_MUTATION);
1979
+ const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
1846
1980
  return { error, loading, reportChatUser };
1847
1981
  };
1848
1982
 
1849
1983
  // src/graphql/hooks/chat/hooksQuery.ts
1850
- var import_client18 = require("@apollo/client");
1984
+ var import_client19 = require("@apollo/client");
1851
1985
 
1852
1986
  // src/graphql/subscriptions/chat.ts
1853
- var import_client17 = require("@apollo/client");
1854
- var GET_CHAT_MESSAGE = import_client17.gql`
1987
+ var import_client18 = require("@apollo/client");
1988
+ var GET_CHAT_MESSAGE = import_client18.gql`
1855
1989
  subscription {
1856
1990
  getChatMessage {
1857
1991
  ...ChatFields
@@ -1862,7 +1996,7 @@ var GET_CHAT_MESSAGE = import_client17.gql`
1862
1996
 
1863
1997
  // src/graphql/hooks/chat/hooksQuery.ts
1864
1998
  var useGetChat = (_id) => {
1865
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(CHAT, {
1999
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
1866
2000
  fetchPolicy: "network-only",
1867
2001
  skip: !_id || _id === "",
1868
2002
  variables: { _id }
@@ -1870,25 +2004,29 @@ var useGetChat = (_id) => {
1870
2004
  const chat = data?.chat;
1871
2005
  return { chat, error, loading, refetch };
1872
2006
  };
1873
- var useGetUserChats = () => {
1874
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(
1875
- USER_CHATS,
1876
- {
1877
- fetchPolicy: "network-only"
1878
- }
1879
- );
1880
- const userChats = data?.userChats || [];
1881
- return { error, loading, refetch, userChats };
2007
+ var useGetPrivateChats = () => {
2008
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
2009
+ fetchPolicy: "network-only"
2010
+ });
2011
+ const privateChats = data?.privateChats || [];
2012
+ return { error, loading, privateChats, refetch };
2013
+ };
2014
+ var useGetRelationChats = () => {
2015
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
2016
+ fetchPolicy: "network-only"
2017
+ });
2018
+ const relationChats = data?.relationChats || [];
2019
+ return { error, loading, refetch, relationChats };
1882
2020
  };
1883
2021
  var useGetChatSubscription = () => {
1884
- const { data, loading, error } = (0, import_client18.useSubscription)(
2022
+ const { data, loading, error } = (0, import_client19.useSubscription)(
1885
2023
  GET_CHAT_MESSAGE
1886
2024
  );
1887
2025
  const chat = data?.getChat;
1888
2026
  return { chat, error, loading };
1889
2027
  };
1890
2028
  var useGetChatsByRegion = (region) => {
1891
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_CHATS_BY_REGION, {
2029
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
1892
2030
  fetchPolicy: "network-only",
1893
2031
  variables: { region }
1894
2032
  });
@@ -1896,7 +2034,7 @@ var useGetChatsByRegion = (region) => {
1896
2034
  return { chatsByRegion, error, loading, refetch };
1897
2035
  };
1898
2036
  var useGetReportedChatUsers = () => {
1899
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_REPORTED_CHAT_USERS, {
2037
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
1900
2038
  fetchPolicy: "network-only"
1901
2039
  });
1902
2040
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -1904,11 +2042,11 @@ var useGetReportedChatUsers = () => {
1904
2042
  };
1905
2043
 
1906
2044
  // src/graphql/hooks/contactUs.ts
1907
- var import_client20 = require("@apollo/client");
2045
+ var import_client21 = require("@apollo/client");
1908
2046
 
1909
2047
  // src/graphql/mutations/contactUs.ts
1910
- var import_client19 = require("@apollo/client");
1911
- var CONTACT_US_MUTATION = import_client19.gql`
2048
+ var import_client20 = require("@apollo/client");
2049
+ var CONTACT_US_MUTATION = import_client20.gql`
1912
2050
  mutation contactUs($input: ContactUsInputType!) {
1913
2051
  contactUs(input: $input) {
1914
2052
  data
@@ -1919,16 +2057,16 @@ var CONTACT_US_MUTATION = import_client19.gql`
1919
2057
 
1920
2058
  // src/graphql/hooks/contactUs.ts
1921
2059
  var useContactUs = () => {
1922
- const [contactUs, { loading, error }] = (0, import_client20.useMutation)(CONTACT_US_MUTATION);
2060
+ const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
1923
2061
  return { contactUs, error, loading };
1924
2062
  };
1925
2063
 
1926
2064
  // src/graphql/hooks/event/hooksMutation.ts
1927
- var import_client23 = require("@apollo/client");
2065
+ var import_client24 = require("@apollo/client");
1928
2066
 
1929
2067
  // src/graphql/mutations/event.ts
1930
- var import_client21 = require("@apollo/client");
1931
- var CREATE_EVENT_MUTATION = import_client21.gql`
2068
+ var import_client22 = require("@apollo/client");
2069
+ var CREATE_EVENT_MUTATION = import_client22.gql`
1932
2070
  mutation createEvent($input: EventInputType!) {
1933
2071
  createEvent(input: $input) {
1934
2072
  data {
@@ -1939,7 +2077,7 @@ var CREATE_EVENT_MUTATION = import_client21.gql`
1939
2077
  }
1940
2078
  ${EVENT}
1941
2079
  `;
1942
- var UPDATE_EVENT_MUTATION = import_client21.gql`
2080
+ var UPDATE_EVENT_MUTATION = import_client22.gql`
1943
2081
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
1944
2082
  updateEvent(_id: $_id, input: $input) {
1945
2083
  data {
@@ -1950,7 +2088,7 @@ var UPDATE_EVENT_MUTATION = import_client21.gql`
1950
2088
  }
1951
2089
  ${EVENT}
1952
2090
  `;
1953
- var DELETE_EVENT_MUTATION = import_client21.gql`
2091
+ var DELETE_EVENT_MUTATION = import_client22.gql`
1954
2092
  mutation deleteEvent($_id: ID!) {
1955
2093
  deleteEvent(_id: $_id) {
1956
2094
  data
@@ -1958,7 +2096,7 @@ var DELETE_EVENT_MUTATION = import_client21.gql`
1958
2096
  }
1959
2097
  }
1960
2098
  `;
1961
- var CREATE_EVENT_INFO_MUTATION = import_client21.gql`
2099
+ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
1962
2100
  mutation createEventInfo($input: EventInfoInputType!) {
1963
2101
  createEventInfo(input: $input) {
1964
2102
  data {
@@ -1969,7 +2107,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client21.gql`
1969
2107
  }
1970
2108
  ${EVENT_INFO}
1971
2109
  `;
1972
- var UPDATE_EVENT_INFO_MUTATION = import_client21.gql`
2110
+ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
1973
2111
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
1974
2112
  updateEventInfo(_id: $_id, input: $input) {
1975
2113
  data {
@@ -1982,8 +2120,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client21.gql`
1982
2120
  `;
1983
2121
 
1984
2122
  // src/graphql/queries/user.ts
1985
- var import_client22 = require("@apollo/client");
1986
- var GET_USERS = import_client22.gql`
2123
+ var import_client23 = require("@apollo/client");
2124
+ var GET_USERS = import_client23.gql`
1987
2125
  query getUsers {
1988
2126
  users {
1989
2127
  ...UserFields
@@ -1991,7 +2129,7 @@ var GET_USERS = import_client22.gql`
1991
2129
  }
1992
2130
  ${USER_FIELDS_FRAGMENT}
1993
2131
  `;
1994
- var GET_USER = import_client22.gql`
2132
+ var GET_USER = import_client23.gql`
1995
2133
  query getUser($_id: ID!) {
1996
2134
  user(_id: $_id) {
1997
2135
  ...UserFields
@@ -1999,7 +2137,7 @@ var GET_USER = import_client22.gql`
1999
2137
  }
2000
2138
  ${USER_FIELDS_FRAGMENT}
2001
2139
  `;
2002
- var GET_USER_EVENTS = import_client22.gql`
2140
+ var GET_USER_EVENTS = import_client23.gql`
2003
2141
  query getUserEvents {
2004
2142
  userEvents {
2005
2143
  ...EventFields
@@ -2007,7 +2145,7 @@ var GET_USER_EVENTS = import_client22.gql`
2007
2145
  }
2008
2146
  ${EVENT}
2009
2147
  `;
2010
- var GET_USER_VENDORS = import_client22.gql`
2148
+ var GET_USER_VENDORS = import_client23.gql`
2011
2149
  query getUserVendors {
2012
2150
  userVendors {
2013
2151
  ...VendorFields
@@ -2015,7 +2153,7 @@ var GET_USER_VENDORS = import_client22.gql`
2015
2153
  }
2016
2154
  ${VENDOR}
2017
2155
  `;
2018
- var GET_USER_PARTNERS = import_client22.gql`
2156
+ var GET_USER_PARTNERS = import_client23.gql`
2019
2157
  query getUserPartners {
2020
2158
  userPartners {
2021
2159
  ...PartnerFields
@@ -2023,7 +2161,7 @@ var GET_USER_PARTNERS = import_client22.gql`
2023
2161
  }
2024
2162
  ${PARTNER}
2025
2163
  `;
2026
- var GET_USER_ACTIVITIES = import_client22.gql`
2164
+ var GET_USER_ACTIVITIES = import_client23.gql`
2027
2165
  query getUserActivities {
2028
2166
  userActivities {
2029
2167
  favourites {
@@ -2058,7 +2196,7 @@ var GET_USER_ACTIVITIES = import_client22.gql`
2058
2196
  ${VENDOR}
2059
2197
  ${PARTNER}
2060
2198
  `;
2061
- var GET_USER_RESOURCES = import_client22.gql`
2199
+ var GET_USER_RESOURCES = import_client23.gql`
2062
2200
  query getUserResources($userId: ID!) {
2063
2201
  userResources(userId: $userId) {
2064
2202
  resources {
@@ -2073,14 +2211,14 @@ var GET_USER_RESOURCES = import_client22.gql`
2073
2211
 
2074
2212
  // src/graphql/hooks/event/hooksMutation.ts
2075
2213
  var useCreateEvent = () => {
2076
- const [createEvent, { loading, error }] = (0, import_client23.useMutation)(CREATE_EVENT_MUTATION, {
2214
+ const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
2077
2215
  awaitRefetchQueries: true,
2078
2216
  refetchQueries: [{ query: GET_USER_EVENTS }]
2079
2217
  });
2080
2218
  return { createEvent, error, loading };
2081
2219
  };
2082
2220
  var useUpdateEvent = () => {
2083
- const [updateEvent, { loading, error }] = (0, import_client23.useMutation)(UPDATE_EVENT_MUTATION, {
2221
+ const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
2084
2222
  awaitRefetchQueries: true,
2085
2223
  refetchQueries: (mutationResult) => {
2086
2224
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -2103,14 +2241,14 @@ var useUpdateEvent = () => {
2103
2241
  return { error, loading, updateEvent };
2104
2242
  };
2105
2243
  var useDeleteEvent = () => {
2106
- const [deleteEvent, { loading, error }] = (0, import_client23.useMutation)(DELETE_EVENT_MUTATION, {
2244
+ const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
2107
2245
  awaitRefetchQueries: true,
2108
2246
  refetchQueries: [{ query: GET_USER_EVENTS }]
2109
2247
  });
2110
2248
  return { deleteEvent, error, loading };
2111
2249
  };
2112
2250
  var useCreateEventInfo = () => {
2113
- const [createEventInfo, { loading, error }] = (0, import_client23.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2251
+ const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2114
2252
  awaitRefetchQueries: true,
2115
2253
  refetchQueries: (mutationResult) => {
2116
2254
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -2134,7 +2272,7 @@ var useCreateEventInfo = () => {
2134
2272
  return { createEventInfo, error, loading };
2135
2273
  };
2136
2274
  var useUpdateEventInfo = () => {
2137
- const [updateEventInfo, { loading, error }] = (0, import_client23.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2275
+ const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2138
2276
  awaitRefetchQueries: true,
2139
2277
  refetchQueries: (mutationResult) => {
2140
2278
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -2158,9 +2296,9 @@ var useUpdateEventInfo = () => {
2158
2296
  };
2159
2297
 
2160
2298
  // src/graphql/hooks/event/hooksQuery.ts
2161
- var import_client24 = require("@apollo/client");
2299
+ var import_client25 = require("@apollo/client");
2162
2300
  var useGetEvents = (dateStatus) => {
2163
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENTS, {
2301
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
2164
2302
  fetchPolicy: "network-only",
2165
2303
  variables: { dateStatus }
2166
2304
  });
@@ -2168,7 +2306,7 @@ var useGetEvents = (dateStatus) => {
2168
2306
  return { error, events, loading, refetch };
2169
2307
  };
2170
2308
  var useGetEvent = (_id) => {
2171
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENT, {
2309
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
2172
2310
  fetchPolicy: "network-only",
2173
2311
  skip: !_id,
2174
2312
  variables: { _id }
@@ -2177,7 +2315,7 @@ var useGetEvent = (_id) => {
2177
2315
  return { error, event, loading, refetch };
2178
2316
  };
2179
2317
  var useGetEventByPlaceId = (googlePlaceId) => {
2180
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENT_BY_PLACE_ID, {
2318
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
2181
2319
  fetchPolicy: "network-only",
2182
2320
  skip: !googlePlaceId,
2183
2321
  variables: { googlePlaceId }
@@ -2191,7 +2329,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2191
2329
  options,
2192
2330
  region
2193
2331
  };
2194
- const { loading, error, data, refetch, fetchMore } = (0, import_client24.useQuery)(GET_EVENTS_BY_REGION, {
2332
+ const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
2195
2333
  fetchPolicy: "network-only",
2196
2334
  skip: !region || region === "",
2197
2335
  variables
@@ -2209,7 +2347,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2209
2347
  const normalizedSearch = searchQuery?.trim() ?? "";
2210
2348
  const normalizedTags = (tags ?? []).filter(Boolean);
2211
2349
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2212
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(SEARCH_EVENTS, {
2350
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
2213
2351
  fetchPolicy: "network-only",
2214
2352
  skip: !shouldRunQuery,
2215
2353
  variables: {
@@ -2227,7 +2365,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2227
2365
  };
2228
2366
  };
2229
2367
  var useGetEventsNearMe = (location, dateStatus) => {
2230
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENTS_NEAR_ME, {
2368
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
2231
2369
  fetchPolicy: "network-only",
2232
2370
  skip: !location.latitude || !location.longitude,
2233
2371
  variables: {
@@ -2242,7 +2380,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
2242
2380
  return { error, eventsNearMe, loading, refetch };
2243
2381
  };
2244
2382
  var useGetEventInfo = (eventId) => {
2245
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENT_INFO, {
2383
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
2246
2384
  fetchPolicy: "network-only",
2247
2385
  skip: !eventId || eventId === "",
2248
2386
  variables: { eventId }
@@ -2252,14 +2390,14 @@ var useGetEventInfo = (eventId) => {
2252
2390
  };
2253
2391
 
2254
2392
  // src/graphql/hooks/notifications/hooksMutation.ts
2255
- var import_client27 = require("@apollo/client");
2393
+ var import_client28 = require("@apollo/client");
2256
2394
 
2257
2395
  // src/graphql/mutations/notification.ts
2258
- var import_client26 = require("@apollo/client");
2396
+ var import_client27 = require("@apollo/client");
2259
2397
 
2260
2398
  // src/graphql/queries/notification.ts
2261
- var import_client25 = require("@apollo/client");
2262
- var NOTIFICATION_FRAGMENT = import_client25.gql`
2399
+ var import_client26 = require("@apollo/client");
2400
+ var NOTIFICATION_FRAGMENT = import_client26.gql`
2263
2401
  fragment NotificationFields on Notification {
2264
2402
  _id
2265
2403
  userId
@@ -2276,7 +2414,7 @@ var NOTIFICATION_FRAGMENT = import_client25.gql`
2276
2414
  updatedAt
2277
2415
  }
2278
2416
  `;
2279
- var GET_USER_NOTIFICATIONS = import_client25.gql`
2417
+ var GET_USER_NOTIFICATIONS = import_client26.gql`
2280
2418
  query getUserNotifications($limit: Int, $offset: Int) {
2281
2419
  userNotifications(limit: $limit, offset: $offset) {
2282
2420
  ...NotificationFields
@@ -2284,7 +2422,7 @@ var GET_USER_NOTIFICATIONS = import_client25.gql`
2284
2422
  }
2285
2423
  ${NOTIFICATION_FRAGMENT}
2286
2424
  `;
2287
- var GET_NOTIFICATION_COUNT = import_client25.gql`
2425
+ var GET_NOTIFICATION_COUNT = import_client26.gql`
2288
2426
  query getNotificationCount {
2289
2427
  notificationCount {
2290
2428
  total
@@ -2294,7 +2432,7 @@ var GET_NOTIFICATION_COUNT = import_client25.gql`
2294
2432
  `;
2295
2433
 
2296
2434
  // src/graphql/mutations/notification.ts
2297
- var CREATE_BULK_NOTIFICATIONS = import_client26.gql`
2435
+ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
2298
2436
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
2299
2437
  createBulkNotifications(input: $input) {
2300
2438
  data
@@ -2302,7 +2440,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client26.gql`
2302
2440
  }
2303
2441
  }
2304
2442
  `;
2305
- var MARK_NOTIFICATION_READ = import_client26.gql`
2443
+ var MARK_NOTIFICATION_READ = import_client27.gql`
2306
2444
  mutation markNotificationRead($_id: ID!) {
2307
2445
  markNotificationRead(_id: $_id) {
2308
2446
  data {
@@ -2313,7 +2451,7 @@ var MARK_NOTIFICATION_READ = import_client26.gql`
2313
2451
  }
2314
2452
  ${NOTIFICATION_FRAGMENT}
2315
2453
  `;
2316
- var MARK_ALL_NOTIFICATIONS_READ = import_client26.gql`
2454
+ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
2317
2455
  mutation markAllNotificationsRead {
2318
2456
  markAllNotificationsRead {
2319
2457
  data
@@ -2321,7 +2459,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client26.gql`
2321
2459
  }
2322
2460
  }
2323
2461
  `;
2324
- var DELETE_NOTIFICATION = import_client26.gql`
2462
+ var DELETE_NOTIFICATION = import_client27.gql`
2325
2463
  mutation deleteNotification($_id: ID!) {
2326
2464
  deleteNotification(_id: $_id) {
2327
2465
  data
@@ -2329,7 +2467,7 @@ var DELETE_NOTIFICATION = import_client26.gql`
2329
2467
  }
2330
2468
  }
2331
2469
  `;
2332
- var DELETE_ALL_NOTIFICATIONS = import_client26.gql`
2470
+ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
2333
2471
  mutation deleteAllNotifications {
2334
2472
  deleteAllNotifications {
2335
2473
  data
@@ -2340,11 +2478,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client26.gql`
2340
2478
 
2341
2479
  // src/graphql/hooks/notifications/hooksMutation.ts
2342
2480
  var useCreateBulkNotifications = () => {
2343
- const [createBulkNotifications, { loading, error }] = (0, import_client27.useMutation)(CREATE_BULK_NOTIFICATIONS);
2481
+ const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
2344
2482
  return { createBulkNotifications, error, loading };
2345
2483
  };
2346
2484
  var useMarkNotificationRead = () => {
2347
- const [markNotificationRead, { loading, error }] = (0, import_client27.useMutation)(MARK_NOTIFICATION_READ, {
2485
+ const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
2348
2486
  refetchQueries: [
2349
2487
  {
2350
2488
  query: GET_USER_NOTIFICATIONS
@@ -2357,7 +2495,7 @@ var useMarkNotificationRead = () => {
2357
2495
  return { error, loading, markNotificationRead };
2358
2496
  };
2359
2497
  var useMarkAllNotificationsRead = () => {
2360
- const [markAllNotificationsRead, { loading, error }] = (0, import_client27.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2498
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
2361
2499
  refetchQueries: [
2362
2500
  {
2363
2501
  query: GET_USER_NOTIFICATIONS
@@ -2370,7 +2508,7 @@ var useMarkAllNotificationsRead = () => {
2370
2508
  return { error, loading, markAllNotificationsRead };
2371
2509
  };
2372
2510
  var useDeleteNotification = () => {
2373
- const [deleteNotification, { loading, error }] = (0, import_client27.useMutation)(DELETE_NOTIFICATION, {
2511
+ const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
2374
2512
  refetchQueries: [
2375
2513
  {
2376
2514
  query: GET_USER_NOTIFICATIONS
@@ -2383,7 +2521,7 @@ var useDeleteNotification = () => {
2383
2521
  return { deleteNotification, error, loading };
2384
2522
  };
2385
2523
  var useDeleteAllNotifications = () => {
2386
- const [deleteAllNotifications, { loading, error }] = (0, import_client27.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2524
+ const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
2387
2525
  refetchQueries: [
2388
2526
  {
2389
2527
  query: GET_USER_NOTIFICATIONS
@@ -2397,9 +2535,9 @@ var useDeleteAllNotifications = () => {
2397
2535
  };
2398
2536
 
2399
2537
  // src/graphql/hooks/notifications/hooksQuery.ts
2400
- var import_client28 = require("@apollo/client");
2538
+ var import_client29 = require("@apollo/client");
2401
2539
  var useGetUserNotifications = (limit, offset) => {
2402
- const { data, loading, error, refetch } = (0, import_client28.useQuery)(GET_USER_NOTIFICATIONS, {
2540
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
2403
2541
  fetchPolicy: "no-cache",
2404
2542
  variables: { limit, offset }
2405
2543
  });
@@ -2411,7 +2549,7 @@ var useGetUserNotifications = (limit, offset) => {
2411
2549
  };
2412
2550
  };
2413
2551
  var useGetNotificationCount = () => {
2414
- const { data, loading, error, refetch } = (0, import_client28.useQuery)(GET_NOTIFICATION_COUNT, {
2552
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
2415
2553
  fetchPolicy: "no-cache"
2416
2554
  });
2417
2555
  return {
@@ -2423,11 +2561,11 @@ var useGetNotificationCount = () => {
2423
2561
  };
2424
2562
 
2425
2563
  // src/graphql/hooks/notifications/hooksSubscription.ts
2426
- var import_client30 = require("@apollo/client");
2564
+ var import_client31 = require("@apollo/client");
2427
2565
 
2428
2566
  // src/graphql/subscriptions/notification.ts
2429
- var import_client29 = require("@apollo/client");
2430
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client29.gql`
2567
+ var import_client30 = require("@apollo/client");
2568
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
2431
2569
  subscription {
2432
2570
  getUserNotifications {
2433
2571
  ...NotificationFields
@@ -2435,7 +2573,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client29.gql`
2435
2573
  }
2436
2574
  ${NOTIFICATION_FRAGMENT}
2437
2575
  `;
2438
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client29.gql`
2576
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
2439
2577
  subscription {
2440
2578
  getNotificationCount {
2441
2579
  total
@@ -2446,7 +2584,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client29.gql`
2446
2584
 
2447
2585
  // src/graphql/hooks/notifications/hooksSubscription.ts
2448
2586
  var useGetUserNotificationsSubscription = () => {
2449
- const { data, loading, error } = (0, import_client30.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2587
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
2450
2588
  fetchPolicy: "no-cache",
2451
2589
  shouldResubscribe: true
2452
2590
  });
@@ -2457,7 +2595,7 @@ var useGetUserNotificationsSubscription = () => {
2457
2595
  };
2458
2596
  };
2459
2597
  var useGetNotificationCountSubscription = () => {
2460
- const { data, loading, error } = (0, import_client30.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2598
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2461
2599
  fetchPolicy: "no-cache",
2462
2600
  shouldResubscribe: true
2463
2601
  });
@@ -2469,11 +2607,11 @@ var useGetNotificationCountSubscription = () => {
2469
2607
  };
2470
2608
 
2471
2609
  // src/graphql/hooks/poster.ts
2472
- var import_client32 = require("@apollo/client");
2610
+ var import_client33 = require("@apollo/client");
2473
2611
 
2474
2612
  // src/graphql/mutations/poster.ts
2475
- var import_client31 = require("@apollo/client");
2476
- var CREATE_POSTER_MUTATION = import_client31.gql`
2613
+ var import_client32 = require("@apollo/client");
2614
+ var CREATE_POSTER_MUTATION = import_client32.gql`
2477
2615
  mutation createPoster($input: PosterInputType!) {
2478
2616
  createPoster(input: $input) {
2479
2617
  data {
@@ -2489,18 +2627,18 @@ var CREATE_POSTER_MUTATION = import_client31.gql`
2489
2627
 
2490
2628
  // src/graphql/hooks/poster.ts
2491
2629
  var useCreatePoster = () => {
2492
- const [createPoster, { loading, error }] = (0, import_client32.useMutation)(CREATE_POSTER_MUTATION, {
2630
+ const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
2493
2631
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
2494
2632
  });
2495
2633
  return { createPoster, error, loading };
2496
2634
  };
2497
2635
 
2498
2636
  // src/graphql/hooks/pushToken.ts
2499
- var import_client34 = require("@apollo/client");
2637
+ var import_client35 = require("@apollo/client");
2500
2638
 
2501
2639
  // src/graphql/mutations/pushToken.ts
2502
- var import_client33 = require("@apollo/client");
2503
- var CREATE_PUSH_TOKEN_MUTATION = import_client33.gql`
2640
+ var import_client34 = require("@apollo/client");
2641
+ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
2504
2642
  mutation createPushToken($input: PushTokenInput!) {
2505
2643
  createPushToken(input: $input) {
2506
2644
  data {
@@ -2513,16 +2651,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client33.gql`
2513
2651
 
2514
2652
  // src/graphql/hooks/pushToken.ts
2515
2653
  var useCreatePushToken = () => {
2516
- const [createPushToken, { loading, error }] = (0, import_client34.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2654
+ const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
2517
2655
  return { createPushToken, error, loading };
2518
2656
  };
2519
2657
 
2520
2658
  // src/graphql/hooks/relation/hooksMutation.ts
2521
- var import_client36 = require("@apollo/client");
2659
+ var import_client37 = require("@apollo/client");
2522
2660
 
2523
2661
  // src/graphql/mutations/relation.ts
2524
- var import_client35 = require("@apollo/client");
2525
- var CREATE_RELATION_MUTATION = import_client35.gql`
2662
+ var import_client36 = require("@apollo/client");
2663
+ var CREATE_RELATION_MUTATION = import_client36.gql`
2526
2664
  mutation createRelation($input: RelationInputType!) {
2527
2665
  createRelation(input: $input) {
2528
2666
  data {
@@ -2533,7 +2671,7 @@ var CREATE_RELATION_MUTATION = import_client35.gql`
2533
2671
  }
2534
2672
  ${RELATION_FIELDS_FRAGMENT}
2535
2673
  `;
2536
- var UPDATE_RELATION_MUTATION = import_client35.gql`
2674
+ var UPDATE_RELATION_MUTATION = import_client36.gql`
2537
2675
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
2538
2676
  updateRelation(_id: $_id, input: $input) {
2539
2677
  data {
@@ -2544,7 +2682,7 @@ var UPDATE_RELATION_MUTATION = import_client35.gql`
2544
2682
  }
2545
2683
  ${RELATION_FIELDS_FRAGMENT}
2546
2684
  `;
2547
- var DELETE_RELATION_MUTATION = import_client35.gql`
2685
+ var DELETE_RELATION_MUTATION = import_client36.gql`
2548
2686
  mutation deleteRelation($_id: ID!) {
2549
2687
  deleteRelation(_id: $_id) {
2550
2688
  data {
@@ -2558,7 +2696,7 @@ var DELETE_RELATION_MUTATION = import_client35.gql`
2558
2696
 
2559
2697
  // src/graphql/hooks/relation/hooksMutation.ts
2560
2698
  var useCreateRelation = () => {
2561
- const [createRelation, { loading, error }] = (0, import_client36.useMutation)(CREATE_RELATION_MUTATION, {
2699
+ const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
2562
2700
  awaitRefetchQueries: true,
2563
2701
  refetchQueries: (mutationResult) => {
2564
2702
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -2596,7 +2734,7 @@ var useCreateRelation = () => {
2596
2734
  variables: { resourceId, resourceType }
2597
2735
  },
2598
2736
  {
2599
- query: USER_CHATS
2737
+ query: RELATION_CHATS
2600
2738
  }
2601
2739
  ];
2602
2740
  }
@@ -2604,7 +2742,7 @@ var useCreateRelation = () => {
2604
2742
  return { createRelation, error, loading };
2605
2743
  };
2606
2744
  var useUpdateRelation = () => {
2607
- const [updateRelation, { loading, error }] = (0, import_client36.useMutation)(UPDATE_RELATION_MUTATION, {
2745
+ const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
2608
2746
  awaitRefetchQueries: true,
2609
2747
  refetchQueries: (mutationResult) => {
2610
2748
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -2647,7 +2785,7 @@ var useUpdateRelation = () => {
2647
2785
  return { error, loading, updateRelation };
2648
2786
  };
2649
2787
  var useDeleteRelation = () => {
2650
- const [deleteRelation, { loading, error }] = (0, import_client36.useMutation)(DELETE_RELATION_MUTATION, {
2788
+ const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
2651
2789
  awaitRefetchQueries: true,
2652
2790
  refetchQueries: (mutationResult) => {
2653
2791
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -2677,7 +2815,7 @@ var useDeleteRelation = () => {
2677
2815
  variables: { resourceId, resourceType }
2678
2816
  },
2679
2817
  {
2680
- query: USER_CHATS
2818
+ query: RELATION_CHATS
2681
2819
  }
2682
2820
  ];
2683
2821
  }
@@ -2686,9 +2824,9 @@ var useDeleteRelation = () => {
2686
2824
  };
2687
2825
 
2688
2826
  // src/graphql/hooks/relation/hooksQuery.ts
2689
- var import_client37 = require("@apollo/client");
2827
+ var import_client38 = require("@apollo/client");
2690
2828
  var useGetRelation = (_id) => {
2691
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_RELATION, {
2829
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
2692
2830
  fetchPolicy: "network-only",
2693
2831
  skip: !_id,
2694
2832
  variables: _id ? { _id } : void 0
@@ -2697,7 +2835,7 @@ var useGetRelation = (_id) => {
2697
2835
  return { error, loading, refetch, relation };
2698
2836
  };
2699
2837
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2700
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2838
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2701
2839
  fetchPolicy: "network-only",
2702
2840
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
2703
2841
  variables: { eventId, vendorId }
@@ -2706,7 +2844,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
2706
2844
  return { error, loading, refetch, relationByEventAndVendor };
2707
2845
  };
2708
2846
  var useGetEventRelations = (eventId) => {
2709
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_EVENT_RELATIONS, {
2847
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
2710
2848
  fetchPolicy: "network-only",
2711
2849
  skip: !eventId || eventId === "",
2712
2850
  variables: { eventId }
@@ -2715,7 +2853,7 @@ var useGetEventRelations = (eventId) => {
2715
2853
  return { error, eventRelations, loading, refetch };
2716
2854
  };
2717
2855
  var useGetVendorRelations = (vendorId) => {
2718
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDOR_RELATIONS, {
2856
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
2719
2857
  fetchPolicy: "network-only",
2720
2858
  skip: !vendorId || vendorId === "",
2721
2859
  variables: { vendorId }
@@ -2724,7 +2862,7 @@ var useGetVendorRelations = (vendorId) => {
2724
2862
  return { error, loading, refetch, vendorRelations };
2725
2863
  };
2726
2864
  var useGetResourceConnections = (resourceId, resourceType) => {
2727
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_RESOURCE_CONNECTIONS, {
2865
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
2728
2866
  fetchPolicy: "network-only",
2729
2867
  skip: !resourceId || resourceId === "" || !resourceType,
2730
2868
  variables: { resourceId, resourceType }
@@ -2735,104 +2873,6 @@ var useGetResourceConnections = (resourceId, resourceType) => {
2735
2873
 
2736
2874
  // src/graphql/hooks/vendor/hooksMutation.ts
2737
2875
  var import_client39 = require("@apollo/client");
2738
-
2739
- // src/graphql/mutations/vendor.ts
2740
- var import_client38 = require("@apollo/client");
2741
- var CREATE_VENDOR_MUTATION = import_client38.gql`
2742
- mutation createVendor($input: VendorInputType!) {
2743
- createVendor(input: $input) {
2744
- data {
2745
- ...VendorFields
2746
- }
2747
- message
2748
- }
2749
- }
2750
- ${VENDOR}
2751
- `;
2752
- var UPDATE_VENDOR_MUTATION = import_client38.gql`
2753
- mutation updateVendor($_id: ID!, $input: VendorInputType!) {
2754
- updateVendor(_id: $_id, input: $input) {
2755
- data {
2756
- ...VendorFields
2757
- }
2758
- message
2759
- }
2760
- }
2761
- ${VENDOR}
2762
- `;
2763
- var DELETE_VENDOR_MUTATION = import_client38.gql`
2764
- mutation deleteVendor($_id: ID!) {
2765
- deleteVendor(_id: $_id) {
2766
- data
2767
- message
2768
- }
2769
- }
2770
- `;
2771
- var CREATE_VENDOR_INFO_MUTATION = import_client38.gql`
2772
- mutation createVendorInfo($input: VendorInfoInputType!) {
2773
- createVendorInfo(input: $input) {
2774
- data {
2775
- ...VendorInfoFields
2776
- }
2777
- message
2778
- }
2779
- }
2780
- ${VENDOR_INFO}
2781
- `;
2782
- var UPDATE_VENDOR_INFO_MUTATION = import_client38.gql`
2783
- mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
2784
- updateVendorInfo(_id: $_id, input: $input) {
2785
- data {
2786
- ...VendorInfoFields
2787
- }
2788
- message
2789
- }
2790
- }
2791
- ${VENDOR_INFO}
2792
- `;
2793
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
2794
- mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
2795
- createUnregisteredVendor(input: $input) {
2796
- data {
2797
- ...UnregisteredVendorFields
2798
- }
2799
- message
2800
- }
2801
- }
2802
- ${UNREGISTERED_VENDOR}
2803
- `;
2804
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
2805
- mutation updateUnregisteredVendor(
2806
- $_id: ID!
2807
- $input: UnregisteredVendorInputType!
2808
- ) {
2809
- updateUnregisteredVendor(_id: $_id, input: $input) {
2810
- data {
2811
- ...UnregisteredVendorFields
2812
- }
2813
- message
2814
- }
2815
- }
2816
- ${UNREGISTERED_VENDOR}
2817
- `;
2818
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
2819
- mutation deleteUnregisteredVendor($_id: ID!) {
2820
- deleteUnregisteredVendor(_id: $_id) {
2821
- data
2822
- message
2823
- }
2824
- }
2825
- `;
2826
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client38.gql`
2827
- mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
2828
- unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
2829
- data
2830
- message
2831
- }
2832
- }
2833
- `;
2834
-
2835
- // src/graphql/hooks/vendor/hooksMutation.ts
2836
2876
  var useCreateVendor = () => {
2837
2877
  const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
2838
2878
  awaitRefetchQueries: true,
@@ -2911,6 +2951,10 @@ var useUnlinkUnregisteredVendorByInviterId = () => {
2911
2951
  const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
2912
2952
  return { error, loading, unlinkUnregisteredVendorByInviterId };
2913
2953
  };
2954
+ var useActivateVendorClaim = () => {
2955
+ const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
2956
+ return { activateVendorClaim, error, loading };
2957
+ };
2914
2958
 
2915
2959
  // src/graphql/hooks/vendor/hooksQuery.ts
2916
2960
  var import_client40 = require("@apollo/client");
@@ -3012,6 +3056,18 @@ var useGetUnregisteredVendor = (_id) => {
3012
3056
  const unregisteredVendor = data?.unregisteredVendor;
3013
3057
  return { error, loading, refetch, unregisteredVendor };
3014
3058
  };
3059
+ var useMyPendingVendorClaim = (skip = false) => {
3060
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
3061
+ fetchPolicy: "network-only",
3062
+ skip
3063
+ });
3064
+ return {
3065
+ error,
3066
+ loading,
3067
+ myPendingVendorClaim: data?.myPendingVendorClaim ?? null,
3068
+ refetch
3069
+ };
3070
+ };
3015
3071
 
3016
3072
  // src/graphql/hooks/user/hooksMutation.ts
3017
3073
  var import_client42 = require("@apollo/client");
@@ -4789,6 +4845,7 @@ var useAssignAffiliateBonusReward = () => {
4789
4845
  };
4790
4846
  // Annotate the CommonJS export names for ESM import in node:
4791
4847
  0 && (module.exports = {
4848
+ ACTIVATE_VENDOR_CLAIM_MUTATION,
4792
4849
  GET_EVENT,
4793
4850
  GET_EVENT_BY_SLUG,
4794
4851
  GET_EVENT_INFO,
@@ -4800,7 +4857,9 @@ var useAssignAffiliateBonusReward = () => {
4800
4857
  GET_VENDOR,
4801
4858
  GET_VENDOR_BY_SLUG,
4802
4859
  GET_VENDOR_INFO,
4860
+ MY_PENDING_VENDOR_CLAIM,
4803
4861
  toGraphqlQueryString,
4862
+ useActivateVendorClaim,
4804
4863
  useAddParticipantToChat,
4805
4864
  useAddUserFavouriteResource,
4806
4865
  useAddUserGoingResource,
@@ -4872,8 +4931,10 @@ var useAssignAffiliateBonusReward = () => {
4872
4931
  useGetPost,
4873
4932
  useGetPosts,
4874
4933
  useGetPostsByType,
4934
+ useGetPrivateChats,
4875
4935
  useGetRelation,
4876
4936
  useGetRelationByEventAndVendor,
4937
+ useGetRelationChats,
4877
4938
  useGetReportedChatUsers,
4878
4939
  useGetResourceActivity,
4879
4940
  useGetResourceConnections,
@@ -4886,7 +4947,6 @@ var useAssignAffiliateBonusReward = () => {
4886
4947
  useGetUnregisteredVendorsByInviterId,
4887
4948
  useGetUser,
4888
4949
  useGetUserActivities,
4889
- useGetUserChats,
4890
4950
  useGetUserEvents,
4891
4951
  useGetUserNotifications,
4892
4952
  useGetUserNotificationsSubscription,
@@ -4905,6 +4965,7 @@ var useAssignAffiliateBonusReward = () => {
4905
4965
  useMarkAllNotificationsRead,
4906
4966
  useMarkChatMessagesSeen,
4907
4967
  useMarkNotificationRead,
4968
+ useMyPendingVendorClaim,
4908
4969
  useRedeemAffiliateReward,
4909
4970
  useRedeemReward,
4910
4971
  useRefreshToken,