@timardex/cluemart-shared 1.5.755 → 1.5.756

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.
package/dist/index.cjs CHANGED
@@ -72,6 +72,7 @@ __export(index_exports, {
72
72
  GET_EVENT_INFO: () => GET_EVENT_INFO,
73
73
  GET_PARTNER: () => GET_PARTNER,
74
74
  GET_POST: () => GET_POST,
75
+ GET_RESOURCE_CONNECTIONS: () => GET_RESOURCE_CONNECTIONS,
75
76
  GET_VENDOR: () => GET_VENDOR,
76
77
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
77
78
  IMAGE_EXTENSION: () => IMAGE_EXTENSION,
@@ -4064,6 +4065,75 @@ var GET_POSTS_BY_TYPE = import_client7.gql`
4064
4065
  ${POST_FIELDS_FRAGMENT}
4065
4066
  `;
4066
4067
 
4068
+ // src/graphql/queries/relation.ts
4069
+ var import_client8 = require("@apollo/client");
4070
+ var RELATION_FIELDS_FRAGMENT = import_client8.gql`
4071
+ fragment RelationFields on RelationType {
4072
+ _id
4073
+ active
4074
+ chatId
4075
+ createdAt
4076
+ lastUpdateBy
4077
+ eventId
4078
+ relationDates {
4079
+ ...RelationDates
4080
+ }
4081
+ relationType
4082
+ vendorId
4083
+ updatedAt
4084
+ }
4085
+ ${RELATION_DATES_FRAGMENT}
4086
+ `;
4087
+ var GET_RELATION = import_client8.gql`
4088
+ query getRelation($_id: ID!) {
4089
+ relation(_id: $_id) {
4090
+ ...RelationFields
4091
+ }
4092
+ }
4093
+ ${RELATION_FIELDS_FRAGMENT}
4094
+ `;
4095
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client8.gql`
4096
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
4097
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
4098
+ ...RelationFields
4099
+ }
4100
+ }
4101
+ ${RELATION_FIELDS_FRAGMENT}
4102
+ `;
4103
+ var GET_EVENT_RELATIONS = import_client8.gql`
4104
+ query getEventRelations($eventId: ID!) {
4105
+ eventRelations(eventId: $eventId) {
4106
+ ...RelationFields
4107
+ }
4108
+ }
4109
+ ${RELATION_FIELDS_FRAGMENT}
4110
+ `;
4111
+ var GET_VENDOR_RELATIONS = import_client8.gql`
4112
+ query getVendorRelations($vendorId: ID!) {
4113
+ vendorRelations(vendorId: $vendorId) {
4114
+ ...RelationFields
4115
+ }
4116
+ }
4117
+ ${RELATION_FIELDS_FRAGMENT}
4118
+ `;
4119
+ var GET_RESOURCE_CONNECTIONS = import_client8.gql`
4120
+ query getResourceConnections(
4121
+ $resourceId: ID!
4122
+ $resourceType: ResourceTypeEnum!
4123
+ ) {
4124
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
4125
+ events {
4126
+ ...EventListItemFields
4127
+ }
4128
+ vendors {
4129
+ ...VendorFields
4130
+ }
4131
+ }
4132
+ }
4133
+ ${VENDOR}
4134
+ ${EVENT_LIST_ITEM}
4135
+ `;
4136
+
4067
4137
  // node_modules/graphql/jsutils/devAssert.mjs
4068
4138
  function devAssert(condition, message) {
4069
4139
  const booleanCondition = Boolean(condition);
@@ -4913,11 +4983,11 @@ function toGraphqlQueryString(query) {
4913
4983
  }
4914
4984
 
4915
4985
  // src/graphql/hooks/admin/hooksMutation.ts
4916
- var import_client9 = require("@apollo/client");
4986
+ var import_client10 = require("@apollo/client");
4917
4987
 
4918
4988
  // src/graphql/mutations/admin.ts
4919
- var import_client8 = require("@apollo/client");
4920
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
4989
+ var import_client9 = require("@apollo/client");
4990
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client9.gql`
4921
4991
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
4922
4992
  adminUpdateResourceType(input: $input) {
4923
4993
  active
@@ -4926,12 +4996,12 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
4926
4996
  }
4927
4997
  }
4928
4998
  `;
4929
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client8.gql`
4999
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client9.gql`
4930
5000
  mutation adminResendUserVerificationEmail($userId: ID!) {
4931
5001
  adminResendUserVerificationEmail(userId: $userId)
4932
5002
  }
4933
5003
  `;
4934
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
5004
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client9.gql`
4935
5005
  mutation adminPermanentlyDeleteResource(
4936
5006
  $resourceId: ID!
4937
5007
  $resourceType: ResourceTypeEnum!
@@ -4945,7 +5015,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
4945
5015
 
4946
5016
  // src/graphql/hooks/admin/hooksMutation.ts
4947
5017
  var useAdminUpdateResourceType = () => {
4948
- const [adminUpdateResourceType, { loading, error }] = (0, import_client9.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5018
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client10.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
4949
5019
  awaitRefetchQueries: true,
4950
5020
  refetchQueries: (mutationResult) => {
4951
5021
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -4968,7 +5038,7 @@ var useAdminUpdateResourceType = () => {
4968
5038
  };
4969
5039
  };
4970
5040
  var useAdminResendUserVerificationEmail = () => {
4971
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client9.useMutation)(
5041
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client10.useMutation)(
4972
5042
  ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
4973
5043
  );
4974
5044
  return {
@@ -4978,7 +5048,7 @@ var useAdminResendUserVerificationEmail = () => {
4978
5048
  };
4979
5049
  };
4980
5050
  var useAdminPermanentlyDeleteResource = () => {
4981
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client9.useMutation)(
5051
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client10.useMutation)(
4982
5052
  ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
4983
5053
  );
4984
5054
  return {
@@ -4989,11 +5059,11 @@ var useAdminPermanentlyDeleteResource = () => {
4989
5059
  };
4990
5060
 
4991
5061
  // src/graphql/hooks/auth.ts
4992
- var import_client11 = require("@apollo/client");
5062
+ var import_client12 = require("@apollo/client");
4993
5063
 
4994
5064
  // src/graphql/mutations/auth.ts
4995
- var import_client10 = require("@apollo/client");
4996
- var REGISTER_MUTATION = import_client10.gql`
5065
+ var import_client11 = require("@apollo/client");
5066
+ var REGISTER_MUTATION = import_client11.gql`
4997
5067
  mutation register($input: RegisterInputType!) {
4998
5068
  register(input: $input) {
4999
5069
  message
@@ -5006,7 +5076,7 @@ var REGISTER_MUTATION = import_client10.gql`
5006
5076
  }
5007
5077
  ${USER_FIELDS_FRAGMENT}
5008
5078
  `;
5009
- var LOGIN_MUTATION = import_client10.gql`
5079
+ var LOGIN_MUTATION = import_client11.gql`
5010
5080
  mutation login($input: LoginInputType!) {
5011
5081
  login(input: $input) {
5012
5082
  message
@@ -5019,14 +5089,14 @@ var LOGIN_MUTATION = import_client10.gql`
5019
5089
  }
5020
5090
  ${USER_FIELDS_FRAGMENT}
5021
5091
  `;
5022
- var LOGOUT_MUTATION = import_client10.gql`
5092
+ var LOGOUT_MUTATION = import_client11.gql`
5023
5093
  mutation logout {
5024
5094
  logout {
5025
5095
  message
5026
5096
  }
5027
5097
  }
5028
5098
  `;
5029
- var REFRESH_TOKEN_MUTATION = import_client10.gql`
5099
+ var REFRESH_TOKEN_MUTATION = import_client11.gql`
5030
5100
  mutation refreshToken($input: RefreshTokenInputType!) {
5031
5101
  refreshToken(input: $input) {
5032
5102
  refreshToken
@@ -5034,21 +5104,21 @@ var REFRESH_TOKEN_MUTATION = import_client10.gql`
5034
5104
  }
5035
5105
  }
5036
5106
  `;
5037
- var RESET_PASSWORD_MUTATION = import_client10.gql`
5107
+ var RESET_PASSWORD_MUTATION = import_client11.gql`
5038
5108
  mutation resetPassword($input: ResetPasswordInputType!) {
5039
5109
  resetPassword(input: $input) {
5040
5110
  message
5041
5111
  }
5042
5112
  }
5043
5113
  `;
5044
- var REQUEST_PASSWORD_RESET_MUTATION = import_client10.gql`
5114
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client11.gql`
5045
5115
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5046
5116
  requestPasswordReset(input: $input) {
5047
5117
  message
5048
5118
  }
5049
5119
  }
5050
5120
  `;
5051
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
5121
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client11.gql`
5052
5122
  mutation validateVerificationToken(
5053
5123
  $input: ValidateVerificationTokenInputType!
5054
5124
  ) {
@@ -5060,49 +5130,49 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
5060
5130
 
5061
5131
  // src/graphql/hooks/auth.ts
5062
5132
  var useRegister = () => {
5063
- const [register, { loading, error }] = (0, import_client11.useMutation)(REGISTER_MUTATION);
5133
+ const [register, { loading, error }] = (0, import_client12.useMutation)(REGISTER_MUTATION);
5064
5134
  return { error, loading, register };
5065
5135
  };
5066
5136
  var useLogin = () => {
5067
- const [login, { loading, error }] = (0, import_client11.useMutation)(LOGIN_MUTATION);
5137
+ const [login, { loading, error }] = (0, import_client12.useMutation)(LOGIN_MUTATION);
5068
5138
  return { error, loading, login };
5069
5139
  };
5070
5140
  var useLogout = () => {
5071
- const [logout, { loading, error }] = (0, import_client11.useMutation)(LOGOUT_MUTATION);
5141
+ const [logout, { loading, error }] = (0, import_client12.useMutation)(LOGOUT_MUTATION);
5072
5142
  return { error, loading, logout };
5073
5143
  };
5074
5144
  var useRefreshToken = () => {
5075
- const [refreshToken, { loading, error }] = (0, import_client11.useMutation)(REFRESH_TOKEN_MUTATION);
5145
+ const [refreshToken, { loading, error }] = (0, import_client12.useMutation)(REFRESH_TOKEN_MUTATION);
5076
5146
  return { error, loading, refreshToken };
5077
5147
  };
5078
5148
  var useRequestPasswordReset = () => {
5079
- const [requestPasswordReset, { loading, error }] = (0, import_client11.useMutation)(
5149
+ const [requestPasswordReset, { loading, error }] = (0, import_client12.useMutation)(
5080
5150
  REQUEST_PASSWORD_RESET_MUTATION
5081
5151
  );
5082
5152
  return { error, loading, requestPasswordReset };
5083
5153
  };
5084
5154
  var useValidateVerificationToken = () => {
5085
- const [validateVerificationToken, { loading, error }] = (0, import_client11.useMutation)(
5155
+ const [validateVerificationToken, { loading, error }] = (0, import_client12.useMutation)(
5086
5156
  VALIDATE_VERIFICATION_TOKEN_MUTATION
5087
5157
  );
5088
5158
  return { error, loading, validateVerificationToken };
5089
5159
  };
5090
5160
  var useResetPassword = () => {
5091
- const [resetPassword, { loading, error }] = (0, import_client11.useMutation)(
5161
+ const [resetPassword, { loading, error }] = (0, import_client12.useMutation)(
5092
5162
  RESET_PASSWORD_MUTATION
5093
5163
  );
5094
5164
  return { error, loading, resetPassword };
5095
5165
  };
5096
5166
 
5097
5167
  // src/graphql/hooks/chat/hooksMutation.ts
5098
- var import_client14 = require("@apollo/client");
5168
+ var import_client15 = require("@apollo/client");
5099
5169
 
5100
5170
  // src/graphql/mutations/chat.ts
5101
- var import_client13 = require("@apollo/client");
5171
+ var import_client14 = require("@apollo/client");
5102
5172
 
5103
5173
  // src/graphql/queries/chat.ts
5104
- var import_client12 = require("@apollo/client");
5105
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
5174
+ var import_client13 = require("@apollo/client");
5175
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client13.gql`
5106
5176
  fragment ChatMessageFields on ChatMessageType {
5107
5177
  _id
5108
5178
  content
@@ -5125,7 +5195,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
5125
5195
  updatedAt
5126
5196
  }
5127
5197
  `;
5128
- var CHAT_PARTICIPANT = import_client12.gql`
5198
+ var CHAT_PARTICIPANT = import_client13.gql`
5129
5199
  fragment ChatParticipantFields on ChatParticipantType {
5130
5200
  active
5131
5201
  isAssociate
@@ -5135,7 +5205,7 @@ var CHAT_PARTICIPANT = import_client12.gql`
5135
5205
  userName
5136
5206
  }
5137
5207
  `;
5138
- var CHAT_FIELDS_FRAGMENT = import_client12.gql`
5208
+ var CHAT_FIELDS_FRAGMENT = import_client13.gql`
5139
5209
  fragment ChatFields on ChatType {
5140
5210
  _id
5141
5211
  active
@@ -5156,7 +5226,7 @@ var CHAT_FIELDS_FRAGMENT = import_client12.gql`
5156
5226
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
5157
5227
  ${CHAT_PARTICIPANT}
5158
5228
  `;
5159
- var CHAT = import_client12.gql`
5229
+ var CHAT = import_client13.gql`
5160
5230
  query chat($_id: ID!) {
5161
5231
  chat(_id: $_id) {
5162
5232
  ...ChatFields
@@ -5164,7 +5234,7 @@ var CHAT = import_client12.gql`
5164
5234
  }
5165
5235
  ${CHAT_FIELDS_FRAGMENT}
5166
5236
  `;
5167
- var USER_CHATS = import_client12.gql`
5237
+ var USER_CHATS = import_client13.gql`
5168
5238
  query userChats {
5169
5239
  userChats {
5170
5240
  ...ChatFields
@@ -5172,7 +5242,7 @@ var USER_CHATS = import_client12.gql`
5172
5242
  }
5173
5243
  ${CHAT_FIELDS_FRAGMENT}
5174
5244
  `;
5175
- var GET_CHATS_BY_REGION = import_client12.gql`
5245
+ var GET_CHATS_BY_REGION = import_client13.gql`
5176
5246
  query getChatsByRegion($region: String!) {
5177
5247
  chatsByRegion(region: $region) {
5178
5248
  ...ChatFields
@@ -5180,7 +5250,7 @@ var GET_CHATS_BY_REGION = import_client12.gql`
5180
5250
  }
5181
5251
  ${CHAT_FIELDS_FRAGMENT}
5182
5252
  `;
5183
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
5253
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client13.gql`
5184
5254
  fragment ChatReportFields on ReportChatUserType {
5185
5255
  _id
5186
5256
  chatId
@@ -5195,7 +5265,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
5195
5265
  updatedAt
5196
5266
  }
5197
5267
  `;
5198
- var GET_REPORTED_CHAT_USERS = import_client12.gql`
5268
+ var GET_REPORTED_CHAT_USERS = import_client13.gql`
5199
5269
  query getReportedChatUsers {
5200
5270
  reportedChatUsers {
5201
5271
  ...ChatReportFields
@@ -5205,7 +5275,7 @@ var GET_REPORTED_CHAT_USERS = import_client12.gql`
5205
5275
  `;
5206
5276
 
5207
5277
  // src/graphql/mutations/chat.ts
5208
- var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
5278
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client14.gql`
5209
5279
  mutation createPrivateChat($userId: ID!) {
5210
5280
  createPrivateChat(userId: $userId) {
5211
5281
  ...ChatFields
@@ -5213,7 +5283,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
5213
5283
  }
5214
5284
  ${CHAT_FIELDS_FRAGMENT}
5215
5285
  `;
5216
- var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
5286
+ var SEND_CHAT_MESSAGE_MUTATION = import_client14.gql`
5217
5287
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
5218
5288
  sendChatMessage(_id: $_id, input: $input) {
5219
5289
  ...ChatFields
@@ -5221,12 +5291,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
5221
5291
  }
5222
5292
  ${CHAT_FIELDS_FRAGMENT}
5223
5293
  `;
5224
- var DELETE_CHAT_MUTATION = import_client13.gql`
5294
+ var DELETE_CHAT_MUTATION = import_client14.gql`
5225
5295
  mutation deleteChat($_id: ID!) {
5226
5296
  deleteChat(_id: $_id)
5227
5297
  }
5228
5298
  `;
5229
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
5299
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client14.gql`
5230
5300
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
5231
5301
  addParticipantToChat(chatId: $chatId, userId: $userId) {
5232
5302
  ...ChatFields
@@ -5234,7 +5304,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
5234
5304
  }
5235
5305
  ${CHAT_FIELDS_FRAGMENT}
5236
5306
  `;
5237
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
5307
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client14.gql`
5238
5308
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
5239
5309
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
5240
5310
  success
@@ -5242,7 +5312,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
5242
5312
  }
5243
5313
  }
5244
5314
  `;
5245
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
5315
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client14.gql`
5246
5316
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
5247
5317
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
5248
5318
  ...ChatFields
@@ -5250,7 +5320,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
5250
5320
  }
5251
5321
  ${CHAT_FIELDS_FRAGMENT}
5252
5322
  `;
5253
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
5323
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client14.gql`
5254
5324
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
5255
5325
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
5256
5326
  ...ChatFields
@@ -5258,7 +5328,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
5258
5328
  }
5259
5329
  ${CHAT_FIELDS_FRAGMENT}
5260
5330
  `;
5261
- var REPORT_CHAT_USER_MUTATION = import_client13.gql`
5331
+ var REPORT_CHAT_USER_MUTATION = import_client14.gql`
5262
5332
  mutation reportChatUser($input: ReportChatUserInputType!) {
5263
5333
  reportChatUser(input: $input) {
5264
5334
  ...ChatReportFields
@@ -5269,14 +5339,14 @@ var REPORT_CHAT_USER_MUTATION = import_client13.gql`
5269
5339
 
5270
5340
  // src/graphql/hooks/chat/hooksMutation.ts
5271
5341
  var useCreatePrivateChat = () => {
5272
- const [createPrivateChat, { loading, error }] = (0, import_client14.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5342
+ const [createPrivateChat, { loading, error }] = (0, import_client15.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5273
5343
  awaitRefetchQueries: true,
5274
5344
  refetchQueries: [{ query: USER_CHATS }]
5275
5345
  });
5276
5346
  return { createPrivateChat, error, loading };
5277
5347
  };
5278
5348
  var useSendChatMessage = () => {
5279
- const [sendChatMessage, { loading, error }] = (0, import_client14.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5349
+ const [sendChatMessage, { loading, error }] = (0, import_client15.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5280
5350
  awaitRefetchQueries: true,
5281
5351
  refetchQueries: (mutationResult) => {
5282
5352
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -5291,14 +5361,14 @@ var useSendChatMessage = () => {
5291
5361
  return { error, loading, sendChatMessage };
5292
5362
  };
5293
5363
  var useDeleteChat = () => {
5294
- const [deleteChat, { loading, error }] = (0, import_client14.useMutation)(DELETE_CHAT_MUTATION, {
5364
+ const [deleteChat, { loading, error }] = (0, import_client15.useMutation)(DELETE_CHAT_MUTATION, {
5295
5365
  awaitRefetchQueries: true,
5296
5366
  refetchQueries: [{ query: USER_CHATS }]
5297
5367
  });
5298
5368
  return { deleteChat, error, loading };
5299
5369
  };
5300
5370
  var useAddParticipantToChat = () => {
5301
- const [addParticipantToChat, { loading, error }] = (0, import_client14.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5371
+ const [addParticipantToChat, { loading, error }] = (0, import_client15.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5302
5372
  awaitRefetchQueries: true,
5303
5373
  refetchQueries: (mutationResult) => {
5304
5374
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -5316,7 +5386,7 @@ var useAddParticipantToChat = () => {
5316
5386
  return { addParticipantToChat, error, loading };
5317
5387
  };
5318
5388
  var useRemoveParticipantFromChat = () => {
5319
- const [removeParticipantFromChat, { loading, error }] = (0, import_client14.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5389
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client15.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5320
5390
  awaitRefetchQueries: true,
5321
5391
  refetchQueries: (mutationResult) => {
5322
5392
  const region = mutationResult?.data?.removeParticipantFromChat?.region;
@@ -5333,7 +5403,7 @@ var useRemoveParticipantFromChat = () => {
5333
5403
  return { error, loading, removeParticipantFromChat };
5334
5404
  };
5335
5405
  var useToggleChatMessageLike = () => {
5336
- const [toggleChatMessageLike, { loading, error }] = (0, import_client14.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5406
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client15.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5337
5407
  awaitRefetchQueries: true,
5338
5408
  refetchQueries: (mutationResult) => {
5339
5409
  const chatId = mutationResult?.data?.toggleChatMessageLike?._id;
@@ -5348,7 +5418,7 @@ var useToggleChatMessageLike = () => {
5348
5418
  return { error, loading, toggleChatMessageLike };
5349
5419
  };
5350
5420
  var useMarkChatMessagesSeen = () => {
5351
- const [markChatMessagesSeen, { loading, error }] = (0, import_client14.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5421
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client15.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5352
5422
  awaitRefetchQueries: true,
5353
5423
  refetchQueries: (mutationResult) => {
5354
5424
  const chatId = mutationResult?.data?.markChatMessagesSeen?._id;
@@ -5363,18 +5433,18 @@ var useMarkChatMessagesSeen = () => {
5363
5433
  return { error, loading, markChatMessagesSeen };
5364
5434
  };
5365
5435
  var useReportChatUser = () => {
5366
- const [reportChatUser, { loading, error }] = (0, import_client14.useMutation)(
5436
+ const [reportChatUser, { loading, error }] = (0, import_client15.useMutation)(
5367
5437
  REPORT_CHAT_USER_MUTATION
5368
5438
  );
5369
5439
  return { error, loading, reportChatUser };
5370
5440
  };
5371
5441
 
5372
5442
  // src/graphql/hooks/chat/hooksQuery.ts
5373
- var import_client16 = require("@apollo/client");
5443
+ var import_client17 = require("@apollo/client");
5374
5444
 
5375
5445
  // src/graphql/subscriptions/chat.ts
5376
- var import_client15 = require("@apollo/client");
5377
- var GET_CHAT_MESSAGE = import_client15.gql`
5446
+ var import_client16 = require("@apollo/client");
5447
+ var GET_CHAT_MESSAGE = import_client16.gql`
5378
5448
  subscription {
5379
5449
  getChatMessage {
5380
5450
  ...ChatFields
@@ -5385,7 +5455,7 @@ var GET_CHAT_MESSAGE = import_client15.gql`
5385
5455
 
5386
5456
  // src/graphql/hooks/chat/hooksQuery.ts
5387
5457
  var useGetChat = (_id) => {
5388
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(CHAT, {
5458
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(CHAT, {
5389
5459
  fetchPolicy: "network-only",
5390
5460
  skip: !_id || _id === "",
5391
5461
  variables: { _id }
@@ -5394,7 +5464,7 @@ var useGetChat = (_id) => {
5394
5464
  return { chat, error, loading, refetch };
5395
5465
  };
5396
5466
  var useGetUserChats = () => {
5397
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(
5467
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(
5398
5468
  USER_CHATS,
5399
5469
  {
5400
5470
  fetchPolicy: "network-only"
@@ -5404,14 +5474,14 @@ var useGetUserChats = () => {
5404
5474
  return { error, loading, refetch, userChats };
5405
5475
  };
5406
5476
  var useGetChatSubscription = () => {
5407
- const { data, loading, error } = (0, import_client16.useSubscription)(
5477
+ const { data, loading, error } = (0, import_client17.useSubscription)(
5408
5478
  GET_CHAT_MESSAGE
5409
5479
  );
5410
5480
  const chat = data?.getChat;
5411
5481
  return { chat, error, loading };
5412
5482
  };
5413
5483
  var useGetChatsByRegion = (region) => {
5414
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_CHATS_BY_REGION, {
5484
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(GET_CHATS_BY_REGION, {
5415
5485
  fetchPolicy: "network-only",
5416
5486
  skip: !region || region === "",
5417
5487
  variables: { region }
@@ -5420,7 +5490,7 @@ var useGetChatsByRegion = (region) => {
5420
5490
  return { chatsByRegion, error, loading, refetch };
5421
5491
  };
5422
5492
  var useGetReportedChatUsers = () => {
5423
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_REPORTED_CHAT_USERS, {
5493
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(GET_REPORTED_CHAT_USERS, {
5424
5494
  fetchPolicy: "network-only"
5425
5495
  });
5426
5496
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -5428,11 +5498,11 @@ var useGetReportedChatUsers = () => {
5428
5498
  };
5429
5499
 
5430
5500
  // src/graphql/hooks/contactUs.ts
5431
- var import_client18 = require("@apollo/client");
5501
+ var import_client19 = require("@apollo/client");
5432
5502
 
5433
5503
  // src/graphql/mutations/contactUs.ts
5434
- var import_client17 = require("@apollo/client");
5435
- var CONTACT_US_MUTATION = import_client17.gql`
5504
+ var import_client18 = require("@apollo/client");
5505
+ var CONTACT_US_MUTATION = import_client18.gql`
5436
5506
  mutation contactUs($input: ContactUsInputType!) {
5437
5507
  contactUs(input: $input) {
5438
5508
  message
@@ -5442,16 +5512,16 @@ var CONTACT_US_MUTATION = import_client17.gql`
5442
5512
 
5443
5513
  // src/graphql/hooks/contactUs.ts
5444
5514
  var useContactUs = () => {
5445
- const [contactUs, { loading, error }] = (0, import_client18.useMutation)(CONTACT_US_MUTATION);
5515
+ const [contactUs, { loading, error }] = (0, import_client19.useMutation)(CONTACT_US_MUTATION);
5446
5516
  return { contactUs, error, loading };
5447
5517
  };
5448
5518
 
5449
5519
  // src/graphql/hooks/event/hooksMutation.ts
5450
- var import_client21 = require("@apollo/client");
5520
+ var import_client22 = require("@apollo/client");
5451
5521
 
5452
5522
  // src/graphql/mutations/event.ts
5453
- var import_client19 = require("@apollo/client");
5454
- var CREATE_EVENT_MUTATION = import_client19.gql`
5523
+ var import_client20 = require("@apollo/client");
5524
+ var CREATE_EVENT_MUTATION = import_client20.gql`
5455
5525
  mutation createEvent($input: EventInputType!) {
5456
5526
  createEvent(input: $input) {
5457
5527
  ...EventFields
@@ -5459,7 +5529,7 @@ var CREATE_EVENT_MUTATION = import_client19.gql`
5459
5529
  }
5460
5530
  ${EVENT}
5461
5531
  `;
5462
- var UPDATE_EVENT_MUTATION = import_client19.gql`
5532
+ var UPDATE_EVENT_MUTATION = import_client20.gql`
5463
5533
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
5464
5534
  updateEvent(_id: $_id, input: $input) {
5465
5535
  ...EventFields
@@ -5467,12 +5537,12 @@ var UPDATE_EVENT_MUTATION = import_client19.gql`
5467
5537
  }
5468
5538
  ${EVENT}
5469
5539
  `;
5470
- var DELETE_EVENT_MUTATION = import_client19.gql`
5540
+ var DELETE_EVENT_MUTATION = import_client20.gql`
5471
5541
  mutation deleteEvent($_id: ID!) {
5472
5542
  deleteEvent(_id: $_id)
5473
5543
  }
5474
5544
  `;
5475
- var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
5545
+ var CREATE_EVENT_INFO_MUTATION = import_client20.gql`
5476
5546
  mutation createEventInfo($input: EventInfoInputType!) {
5477
5547
  createEventInfo(input: $input) {
5478
5548
  ...EventInfoFields
@@ -5480,7 +5550,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
5480
5550
  }
5481
5551
  ${EVENT_INFO}
5482
5552
  `;
5483
- var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
5553
+ var UPDATE_EVENT_INFO_MUTATION = import_client20.gql`
5484
5554
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
5485
5555
  updateEventInfo(_id: $_id, input: $input) {
5486
5556
  ...EventInfoFields
@@ -5490,8 +5560,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
5490
5560
  `;
5491
5561
 
5492
5562
  // src/graphql/queries/user.ts
5493
- var import_client20 = require("@apollo/client");
5494
- var GET_USERS = import_client20.gql`
5563
+ var import_client21 = require("@apollo/client");
5564
+ var GET_USERS = import_client21.gql`
5495
5565
  query getUsers {
5496
5566
  users {
5497
5567
  ...UserFields
@@ -5499,7 +5569,7 @@ var GET_USERS = import_client20.gql`
5499
5569
  }
5500
5570
  ${USER_FIELDS_FRAGMENT}
5501
5571
  `;
5502
- var GET_USER = import_client20.gql`
5572
+ var GET_USER = import_client21.gql`
5503
5573
  query getUser($_id: ID!) {
5504
5574
  user(_id: $_id) {
5505
5575
  ...UserFields
@@ -5507,7 +5577,7 @@ var GET_USER = import_client20.gql`
5507
5577
  }
5508
5578
  ${USER_FIELDS_FRAGMENT}
5509
5579
  `;
5510
- var GET_USER_EVENTS = import_client20.gql`
5580
+ var GET_USER_EVENTS = import_client21.gql`
5511
5581
  query getUserEvents {
5512
5582
  userEvents {
5513
5583
  ...EventFields
@@ -5515,7 +5585,7 @@ var GET_USER_EVENTS = import_client20.gql`
5515
5585
  }
5516
5586
  ${EVENT}
5517
5587
  `;
5518
- var GET_USER_VENDORS = import_client20.gql`
5588
+ var GET_USER_VENDORS = import_client21.gql`
5519
5589
  query getUserVendors {
5520
5590
  userVendors {
5521
5591
  ...VendorFields
@@ -5523,7 +5593,7 @@ var GET_USER_VENDORS = import_client20.gql`
5523
5593
  }
5524
5594
  ${VENDOR}
5525
5595
  `;
5526
- var GET_USER_PARTNERS = import_client20.gql`
5596
+ var GET_USER_PARTNERS = import_client21.gql`
5527
5597
  query getUserPartners {
5528
5598
  userPartners {
5529
5599
  ...PartnerFields
@@ -5531,7 +5601,7 @@ var GET_USER_PARTNERS = import_client20.gql`
5531
5601
  }
5532
5602
  ${PARTNER}
5533
5603
  `;
5534
- var GET_USER_ACTIVITIES = import_client20.gql`
5604
+ var GET_USER_ACTIVITIES = import_client21.gql`
5535
5605
  query getUserActivities {
5536
5606
  userActivities {
5537
5607
  favourites {
@@ -5566,7 +5636,7 @@ var GET_USER_ACTIVITIES = import_client20.gql`
5566
5636
  ${VENDOR}
5567
5637
  ${PARTNER}
5568
5638
  `;
5569
- var GET_USER_RESOURCES = import_client20.gql`
5639
+ var GET_USER_RESOURCES = import_client21.gql`
5570
5640
  query getUserResources($userId: ID!) {
5571
5641
  userResources(userId: $userId) {
5572
5642
  resources {
@@ -5581,14 +5651,14 @@ var GET_USER_RESOURCES = import_client20.gql`
5581
5651
 
5582
5652
  // src/graphql/hooks/event/hooksMutation.ts
5583
5653
  var useCreateEvent = () => {
5584
- const [createEvent, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_MUTATION, {
5654
+ const [createEvent, { loading, error }] = (0, import_client22.useMutation)(CREATE_EVENT_MUTATION, {
5585
5655
  awaitRefetchQueries: true,
5586
5656
  refetchQueries: [{ query: GET_USER_EVENTS }]
5587
5657
  });
5588
5658
  return { createEvent, error, loading };
5589
5659
  };
5590
5660
  var useUpdateEvent = () => {
5591
- const [updateEvent, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_MUTATION, {
5661
+ const [updateEvent, { loading, error }] = (0, import_client22.useMutation)(UPDATE_EVENT_MUTATION, {
5592
5662
  awaitRefetchQueries: true,
5593
5663
  refetchQueries: (mutationResult) => {
5594
5664
  const eventId = mutationResult?.data?.updateEvent?._id;
@@ -5611,14 +5681,14 @@ var useUpdateEvent = () => {
5611
5681
  return { error, loading, updateEvent };
5612
5682
  };
5613
5683
  var useDeleteEvent = () => {
5614
- const [deleteEvent, { loading, error }] = (0, import_client21.useMutation)(DELETE_EVENT_MUTATION, {
5684
+ const [deleteEvent, { loading, error }] = (0, import_client22.useMutation)(DELETE_EVENT_MUTATION, {
5615
5685
  awaitRefetchQueries: true,
5616
5686
  refetchQueries: [{ query: GET_USER_EVENTS }]
5617
5687
  });
5618
5688
  return { deleteEvent, error, loading };
5619
5689
  };
5620
5690
  var useCreateEventInfo = () => {
5621
- const [createEventInfo, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5691
+ const [createEventInfo, { loading, error }] = (0, import_client22.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5622
5692
  awaitRefetchQueries: true,
5623
5693
  refetchQueries: (mutationResult) => {
5624
5694
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -5642,7 +5712,7 @@ var useCreateEventInfo = () => {
5642
5712
  return { createEventInfo, error, loading };
5643
5713
  };
5644
5714
  var useUpdateEventInfo = () => {
5645
- const [updateEventInfo, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5715
+ const [updateEventInfo, { loading, error }] = (0, import_client22.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5646
5716
  awaitRefetchQueries: true,
5647
5717
  refetchQueries: (mutationResult) => {
5648
5718
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -5666,9 +5736,9 @@ var useUpdateEventInfo = () => {
5666
5736
  };
5667
5737
 
5668
5738
  // src/graphql/hooks/event/hooksQuery.ts
5669
- var import_client22 = require("@apollo/client");
5739
+ var import_client23 = require("@apollo/client");
5670
5740
  var useGetEvents = (dateStatus) => {
5671
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS, {
5741
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENTS, {
5672
5742
  fetchPolicy: "network-only",
5673
5743
  variables: { dateStatus }
5674
5744
  });
@@ -5676,7 +5746,7 @@ var useGetEvents = (dateStatus) => {
5676
5746
  return { error, events, loading, refetch };
5677
5747
  };
5678
5748
  var useGetEvent = (_id) => {
5679
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT, {
5749
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENT, {
5680
5750
  fetchPolicy: "network-only",
5681
5751
  skip: !_id,
5682
5752
  variables: { _id }
@@ -5685,7 +5755,7 @@ var useGetEvent = (_id) => {
5685
5755
  return { error, event, loading, refetch };
5686
5756
  };
5687
5757
  var useGetEventByPlaceId = (googlePlaceId) => {
5688
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_BY_PLACE_ID, {
5758
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENT_BY_PLACE_ID, {
5689
5759
  fetchPolicy: "network-only",
5690
5760
  skip: !googlePlaceId,
5691
5761
  variables: { googlePlaceId }
@@ -5699,7 +5769,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
5699
5769
  options,
5700
5770
  region
5701
5771
  };
5702
- const { loading, error, data, refetch, fetchMore } = (0, import_client22.useQuery)(GET_EVENTS_BY_REGION, {
5772
+ const { loading, error, data, refetch, fetchMore } = (0, import_client23.useQuery)(GET_EVENTS_BY_REGION, {
5703
5773
  fetchPolicy: "network-only",
5704
5774
  skip: !region || region === "",
5705
5775
  variables
@@ -5717,7 +5787,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5717
5787
  const normalizedSearch = searchQuery?.trim() ?? "";
5718
5788
  const normalizedTags = (tags ?? []).filter(Boolean);
5719
5789
  const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
5720
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(SEARCH_EVENTS, {
5790
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(SEARCH_EVENTS, {
5721
5791
  fetchPolicy: "network-only",
5722
5792
  skip: !shouldRunQuery,
5723
5793
  variables: {
@@ -5735,7 +5805,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5735
5805
  };
5736
5806
  };
5737
5807
  var useGetEventsNearMe = (location, dateStatus) => {
5738
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS_NEAR_ME, {
5808
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENTS_NEAR_ME, {
5739
5809
  fetchPolicy: "network-only",
5740
5810
  skip: !location.latitude || !location.longitude,
5741
5811
  variables: {
@@ -5750,7 +5820,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
5750
5820
  return { error, eventsNearMe, loading, refetch };
5751
5821
  };
5752
5822
  var useGetEventInfo = (eventId) => {
5753
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_INFO, {
5823
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENT_INFO, {
5754
5824
  fetchPolicy: "network-only",
5755
5825
  skip: !eventId || eventId === "",
5756
5826
  variables: { eventId }
@@ -5760,14 +5830,14 @@ var useGetEventInfo = (eventId) => {
5760
5830
  };
5761
5831
 
5762
5832
  // src/graphql/hooks/notifications/hooksMutation.ts
5763
- var import_client25 = require("@apollo/client");
5833
+ var import_client26 = require("@apollo/client");
5764
5834
 
5765
5835
  // src/graphql/mutations/notification.ts
5766
- var import_client24 = require("@apollo/client");
5836
+ var import_client25 = require("@apollo/client");
5767
5837
 
5768
5838
  // src/graphql/queries/notification.ts
5769
- var import_client23 = require("@apollo/client");
5770
- var NOTIFICATION_FRAGMENT = import_client23.gql`
5839
+ var import_client24 = require("@apollo/client");
5840
+ var NOTIFICATION_FRAGMENT = import_client24.gql`
5771
5841
  fragment NotificationFields on Notification {
5772
5842
  _id
5773
5843
  userId
@@ -5784,7 +5854,7 @@ var NOTIFICATION_FRAGMENT = import_client23.gql`
5784
5854
  updatedAt
5785
5855
  }
5786
5856
  `;
5787
- var GET_USER_NOTIFICATIONS = import_client23.gql`
5857
+ var GET_USER_NOTIFICATIONS = import_client24.gql`
5788
5858
  query getUserNotifications($limit: Int, $offset: Int) {
5789
5859
  userNotifications(limit: $limit, offset: $offset) {
5790
5860
  ...NotificationFields
@@ -5792,7 +5862,7 @@ var GET_USER_NOTIFICATIONS = import_client23.gql`
5792
5862
  }
5793
5863
  ${NOTIFICATION_FRAGMENT}
5794
5864
  `;
5795
- var GET_NOTIFICATION_COUNT = import_client23.gql`
5865
+ var GET_NOTIFICATION_COUNT = import_client24.gql`
5796
5866
  query getNotificationCount {
5797
5867
  notificationCount {
5798
5868
  total
@@ -5802,7 +5872,7 @@ var GET_NOTIFICATION_COUNT = import_client23.gql`
5802
5872
  `;
5803
5873
 
5804
5874
  // src/graphql/mutations/notification.ts
5805
- var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
5875
+ var CREATE_BULK_NOTIFICATIONS = import_client25.gql`
5806
5876
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
5807
5877
  createBulkNotifications(input: $input) {
5808
5878
  ...NotificationFields
@@ -5810,7 +5880,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
5810
5880
  }
5811
5881
  ${NOTIFICATION_FRAGMENT}
5812
5882
  `;
5813
- var MARK_NOTIFICATION_READ = import_client24.gql`
5883
+ var MARK_NOTIFICATION_READ = import_client25.gql`
5814
5884
  mutation markNotificationRead($_id: ID!) {
5815
5885
  markNotificationRead(_id: $_id) {
5816
5886
  ...NotificationFields
@@ -5818,17 +5888,17 @@ var MARK_NOTIFICATION_READ = import_client24.gql`
5818
5888
  }
5819
5889
  ${NOTIFICATION_FRAGMENT}
5820
5890
  `;
5821
- var MARK_ALL_NOTIFICATIONS_READ = import_client24.gql`
5891
+ var MARK_ALL_NOTIFICATIONS_READ = import_client25.gql`
5822
5892
  mutation markAllNotificationsRead {
5823
5893
  markAllNotificationsRead
5824
5894
  }
5825
5895
  `;
5826
- var DELETE_NOTIFICATION = import_client24.gql`
5896
+ var DELETE_NOTIFICATION = import_client25.gql`
5827
5897
  mutation deleteNotification($_id: ID!) {
5828
5898
  deleteNotification(_id: $_id)
5829
5899
  }
5830
5900
  `;
5831
- var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
5901
+ var DELETE_ALL_NOTIFICATIONS = import_client25.gql`
5832
5902
  mutation deleteAllNotifications {
5833
5903
  deleteAllNotifications
5834
5904
  }
@@ -5836,13 +5906,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
5836
5906
 
5837
5907
  // src/graphql/hooks/notifications/hooksMutation.ts
5838
5908
  var useCreateBulkNotifications = () => {
5839
- const [createBulkNotifications, { loading, error }] = (0, import_client25.useMutation)(
5909
+ const [createBulkNotifications, { loading, error }] = (0, import_client26.useMutation)(
5840
5910
  CREATE_BULK_NOTIFICATIONS
5841
5911
  );
5842
5912
  return { createBulkNotifications, error, loading };
5843
5913
  };
5844
5914
  var useMarkNotificationRead = () => {
5845
- const [markNotificationRead, { loading, error }] = (0, import_client25.useMutation)(
5915
+ const [markNotificationRead, { loading, error }] = (0, import_client26.useMutation)(
5846
5916
  MARK_NOTIFICATION_READ,
5847
5917
  {
5848
5918
  refetchQueries: [
@@ -5858,7 +5928,7 @@ var useMarkNotificationRead = () => {
5858
5928
  return { error, loading, markNotificationRead };
5859
5929
  };
5860
5930
  var useMarkAllNotificationsRead = () => {
5861
- const [markAllNotificationsRead, { loading, error }] = (0, import_client25.useMutation)(
5931
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client26.useMutation)(
5862
5932
  MARK_ALL_NOTIFICATIONS_READ,
5863
5933
  {
5864
5934
  refetchQueries: [
@@ -5874,7 +5944,7 @@ var useMarkAllNotificationsRead = () => {
5874
5944
  return { error, loading, markAllNotificationsRead };
5875
5945
  };
5876
5946
  var useDeleteNotification = () => {
5877
- const [deleteNotification, { loading, error }] = (0, import_client25.useMutation)(
5947
+ const [deleteNotification, { loading, error }] = (0, import_client26.useMutation)(
5878
5948
  DELETE_NOTIFICATION,
5879
5949
  {
5880
5950
  refetchQueries: [
@@ -5890,7 +5960,7 @@ var useDeleteNotification = () => {
5890
5960
  return { deleteNotification, error, loading };
5891
5961
  };
5892
5962
  var useDeleteAllNotifications = () => {
5893
- const [deleteAllNotifications, { loading, error }] = (0, import_client25.useMutation)(
5963
+ const [deleteAllNotifications, { loading, error }] = (0, import_client26.useMutation)(
5894
5964
  DELETE_ALL_NOTIFICATIONS,
5895
5965
  {
5896
5966
  refetchQueries: [
@@ -5907,9 +5977,9 @@ var useDeleteAllNotifications = () => {
5907
5977
  };
5908
5978
 
5909
5979
  // src/graphql/hooks/notifications/hooksQuery.ts
5910
- var import_client26 = require("@apollo/client");
5980
+ var import_client27 = require("@apollo/client");
5911
5981
  var useGetUserNotifications = (limit, offset) => {
5912
- const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_USER_NOTIFICATIONS, {
5982
+ const { data, loading, error, refetch } = (0, import_client27.useQuery)(GET_USER_NOTIFICATIONS, {
5913
5983
  fetchPolicy: "no-cache",
5914
5984
  variables: { limit, offset }
5915
5985
  });
@@ -5921,7 +5991,7 @@ var useGetUserNotifications = (limit, offset) => {
5921
5991
  };
5922
5992
  };
5923
5993
  var useGetNotificationCount = () => {
5924
- const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_NOTIFICATION_COUNT, {
5994
+ const { data, loading, error, refetch } = (0, import_client27.useQuery)(GET_NOTIFICATION_COUNT, {
5925
5995
  fetchPolicy: "no-cache"
5926
5996
  });
5927
5997
  return {
@@ -5933,11 +6003,11 @@ var useGetNotificationCount = () => {
5933
6003
  };
5934
6004
 
5935
6005
  // src/graphql/hooks/notifications/hooksSubscription.ts
5936
- var import_client28 = require("@apollo/client");
6006
+ var import_client29 = require("@apollo/client");
5937
6007
 
5938
6008
  // src/graphql/subscriptions/notification.ts
5939
- var import_client27 = require("@apollo/client");
5940
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
6009
+ var import_client28 = require("@apollo/client");
6010
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client28.gql`
5941
6011
  subscription {
5942
6012
  getUserNotifications {
5943
6013
  ...NotificationFields
@@ -5945,7 +6015,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
5945
6015
  }
5946
6016
  ${NOTIFICATION_FRAGMENT}
5947
6017
  `;
5948
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
6018
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client28.gql`
5949
6019
  subscription {
5950
6020
  getNotificationCount {
5951
6021
  total
@@ -5956,7 +6026,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
5956
6026
 
5957
6027
  // src/graphql/hooks/notifications/hooksSubscription.ts
5958
6028
  var useGetUserNotificationsSubscription = () => {
5959
- const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6029
+ const { data, loading, error } = (0, import_client29.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
5960
6030
  fetchPolicy: "no-cache",
5961
6031
  shouldResubscribe: true
5962
6032
  });
@@ -5967,7 +6037,7 @@ var useGetUserNotificationsSubscription = () => {
5967
6037
  };
5968
6038
  };
5969
6039
  var useGetNotificationCountSubscription = () => {
5970
- const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6040
+ const { data, loading, error } = (0, import_client29.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
5971
6041
  fetchPolicy: "no-cache",
5972
6042
  shouldResubscribe: true
5973
6043
  });
@@ -5979,11 +6049,11 @@ var useGetNotificationCountSubscription = () => {
5979
6049
  };
5980
6050
 
5981
6051
  // src/graphql/hooks/poster.ts
5982
- var import_client30 = require("@apollo/client");
6052
+ var import_client31 = require("@apollo/client");
5983
6053
 
5984
6054
  // src/graphql/mutations/poster.ts
5985
- var import_client29 = require("@apollo/client");
5986
- var CREATE_POSTER_MUTATION = import_client29.gql`
6055
+ var import_client30 = require("@apollo/client");
6056
+ var CREATE_POSTER_MUTATION = import_client30.gql`
5987
6057
  mutation createPoster($input: PosterInputType!) {
5988
6058
  createPoster(input: $input) {
5989
6059
  message
@@ -5997,7 +6067,7 @@ var CREATE_POSTER_MUTATION = import_client29.gql`
5997
6067
 
5998
6068
  // src/graphql/hooks/poster.ts
5999
6069
  var useCreatePoster = () => {
6000
- const [createPoster, { loading, error }] = (0, import_client30.useMutation)(
6070
+ const [createPoster, { loading, error }] = (0, import_client31.useMutation)(
6001
6071
  CREATE_POSTER_MUTATION,
6002
6072
  {
6003
6073
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -6007,11 +6077,11 @@ var useCreatePoster = () => {
6007
6077
  };
6008
6078
 
6009
6079
  // src/graphql/hooks/pushToken.ts
6010
- var import_client32 = require("@apollo/client");
6080
+ var import_client33 = require("@apollo/client");
6011
6081
 
6012
6082
  // src/graphql/mutations/pushToken.ts
6013
- var import_client31 = require("@apollo/client");
6014
- var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
6083
+ var import_client32 = require("@apollo/client");
6084
+ var CREATE_PUSH_TOKEN_MUTATION = import_client32.gql`
6015
6085
  mutation createPushToken($input: PushTokenInput!) {
6016
6086
  createPushToken(input: $input) {
6017
6087
  success
@@ -6021,7 +6091,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
6021
6091
 
6022
6092
  // src/graphql/hooks/pushToken.ts
6023
6093
  var useCreatePushToken = () => {
6024
- const [createPushToken, { loading, error }] = (0, import_client32.useMutation)(
6094
+ const [createPushToken, { loading, error }] = (0, import_client33.useMutation)(
6025
6095
  CREATE_PUSH_TOKEN_MUTATION
6026
6096
  );
6027
6097
  return { createPushToken, error, loading };
@@ -6032,77 +6102,6 @@ var import_client35 = require("@apollo/client");
6032
6102
 
6033
6103
  // src/graphql/mutations/relation.ts
6034
6104
  var import_client34 = require("@apollo/client");
6035
-
6036
- // src/graphql/queries/relation.ts
6037
- var import_client33 = require("@apollo/client");
6038
- var RELATION_FIELDS_FRAGMENT = import_client33.gql`
6039
- fragment RelationFields on RelationType {
6040
- _id
6041
- active
6042
- chatId
6043
- createdAt
6044
- lastUpdateBy
6045
- eventId
6046
- relationDates {
6047
- ...RelationDates
6048
- }
6049
- relationType
6050
- vendorId
6051
- updatedAt
6052
- }
6053
- ${RELATION_DATES_FRAGMENT}
6054
- `;
6055
- var GET_RELATION = import_client33.gql`
6056
- query getRelation($_id: ID!) {
6057
- relation(_id: $_id) {
6058
- ...RelationFields
6059
- }
6060
- }
6061
- ${RELATION_FIELDS_FRAGMENT}
6062
- `;
6063
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client33.gql`
6064
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
6065
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
6066
- ...RelationFields
6067
- }
6068
- }
6069
- ${RELATION_FIELDS_FRAGMENT}
6070
- `;
6071
- var GET_EVENT_RELATIONS = import_client33.gql`
6072
- query getEventRelations($eventId: ID!) {
6073
- eventRelations(eventId: $eventId) {
6074
- ...RelationFields
6075
- }
6076
- }
6077
- ${RELATION_FIELDS_FRAGMENT}
6078
- `;
6079
- var GET_VENDOR_RELATIONS = import_client33.gql`
6080
- query getVendorRelations($vendorId: ID!) {
6081
- vendorRelations(vendorId: $vendorId) {
6082
- ...RelationFields
6083
- }
6084
- }
6085
- ${RELATION_FIELDS_FRAGMENT}
6086
- `;
6087
- var GET_RESOURCE_CONNECTIONS = import_client33.gql`
6088
- query getResourceConnections(
6089
- $resourceId: ID!
6090
- $resourceType: ResourceTypeEnum!
6091
- ) {
6092
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
6093
- events {
6094
- ...EventListItemFields
6095
- }
6096
- vendors {
6097
- ...VendorFields
6098
- }
6099
- }
6100
- }
6101
- ${VENDOR}
6102
- ${EVENT_LIST_ITEM}
6103
- `;
6104
-
6105
- // src/graphql/mutations/relation.ts
6106
6105
  var CREATE_RELATION_MUTATION = import_client34.gql`
6107
6106
  mutation createRelation($input: RelationInputType!) {
6108
6107
  createRelation(input: $input) {
@@ -8492,6 +8491,7 @@ var fonts = {
8492
8491
  GET_EVENT_INFO,
8493
8492
  GET_PARTNER,
8494
8493
  GET_POST,
8494
+ GET_RESOURCE_CONNECTIONS,
8495
8495
  GET_VENDOR,
8496
8496
  GET_VENDOR_INFO,
8497
8497
  IMAGE_EXTENSION,