@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.
@@ -24,6 +24,7 @@ __export(graphql_exports, {
24
24
  GET_EVENT_INFO: () => GET_EVENT_INFO,
25
25
  GET_PARTNER: () => GET_PARTNER,
26
26
  GET_POST: () => GET_POST,
27
+ GET_RESOURCE_CONNECTIONS: () => GET_RESOURCE_CONNECTIONS,
27
28
  GET_VENDOR: () => GET_VENDOR,
28
29
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
29
30
  toGraphqlQueryString: () => toGraphqlQueryString,
@@ -1199,6 +1200,75 @@ var GET_POSTS_BY_TYPE = import_client7.gql`
1199
1200
  ${POST_FIELDS_FRAGMENT}
1200
1201
  `;
1201
1202
 
1203
+ // src/graphql/queries/relation.ts
1204
+ var import_client8 = require("@apollo/client");
1205
+ var RELATION_FIELDS_FRAGMENT = import_client8.gql`
1206
+ fragment RelationFields on RelationType {
1207
+ _id
1208
+ active
1209
+ chatId
1210
+ createdAt
1211
+ lastUpdateBy
1212
+ eventId
1213
+ relationDates {
1214
+ ...RelationDates
1215
+ }
1216
+ relationType
1217
+ vendorId
1218
+ updatedAt
1219
+ }
1220
+ ${RELATION_DATES_FRAGMENT}
1221
+ `;
1222
+ var GET_RELATION = import_client8.gql`
1223
+ query getRelation($_id: ID!) {
1224
+ relation(_id: $_id) {
1225
+ ...RelationFields
1226
+ }
1227
+ }
1228
+ ${RELATION_FIELDS_FRAGMENT}
1229
+ `;
1230
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client8.gql`
1231
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1232
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1233
+ ...RelationFields
1234
+ }
1235
+ }
1236
+ ${RELATION_FIELDS_FRAGMENT}
1237
+ `;
1238
+ var GET_EVENT_RELATIONS = import_client8.gql`
1239
+ query getEventRelations($eventId: ID!) {
1240
+ eventRelations(eventId: $eventId) {
1241
+ ...RelationFields
1242
+ }
1243
+ }
1244
+ ${RELATION_FIELDS_FRAGMENT}
1245
+ `;
1246
+ var GET_VENDOR_RELATIONS = import_client8.gql`
1247
+ query getVendorRelations($vendorId: ID!) {
1248
+ vendorRelations(vendorId: $vendorId) {
1249
+ ...RelationFields
1250
+ }
1251
+ }
1252
+ ${RELATION_FIELDS_FRAGMENT}
1253
+ `;
1254
+ var GET_RESOURCE_CONNECTIONS = import_client8.gql`
1255
+ query getResourceConnections(
1256
+ $resourceId: ID!
1257
+ $resourceType: ResourceTypeEnum!
1258
+ ) {
1259
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
1260
+ events {
1261
+ ...EventListItemFields
1262
+ }
1263
+ vendors {
1264
+ ...VendorFields
1265
+ }
1266
+ }
1267
+ }
1268
+ ${VENDOR}
1269
+ ${EVENT_LIST_ITEM}
1270
+ `;
1271
+
1202
1272
  // node_modules/graphql/jsutils/devAssert.mjs
1203
1273
  function devAssert(condition, message) {
1204
1274
  const booleanCondition = Boolean(condition);
@@ -2048,11 +2118,11 @@ function toGraphqlQueryString(query) {
2048
2118
  }
2049
2119
 
2050
2120
  // src/graphql/hooks/admin/hooksMutation.ts
2051
- var import_client9 = require("@apollo/client");
2121
+ var import_client10 = require("@apollo/client");
2052
2122
 
2053
2123
  // src/graphql/mutations/admin.ts
2054
- var import_client8 = require("@apollo/client");
2055
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
2124
+ var import_client9 = require("@apollo/client");
2125
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client9.gql`
2056
2126
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
2057
2127
  adminUpdateResourceType(input: $input) {
2058
2128
  active
@@ -2061,12 +2131,12 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
2061
2131
  }
2062
2132
  }
2063
2133
  `;
2064
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client8.gql`
2134
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client9.gql`
2065
2135
  mutation adminResendUserVerificationEmail($userId: ID!) {
2066
2136
  adminResendUserVerificationEmail(userId: $userId)
2067
2137
  }
2068
2138
  `;
2069
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
2139
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client9.gql`
2070
2140
  mutation adminPermanentlyDeleteResource(
2071
2141
  $resourceId: ID!
2072
2142
  $resourceType: ResourceTypeEnum!
@@ -2080,7 +2150,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
2080
2150
 
2081
2151
  // src/graphql/hooks/admin/hooksMutation.ts
2082
2152
  var useAdminUpdateResourceType = () => {
2083
- const [adminUpdateResourceType, { loading, error }] = (0, import_client9.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
2153
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client10.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
2084
2154
  awaitRefetchQueries: true,
2085
2155
  refetchQueries: (mutationResult) => {
2086
2156
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -2103,7 +2173,7 @@ var useAdminUpdateResourceType = () => {
2103
2173
  };
2104
2174
  };
2105
2175
  var useAdminResendUserVerificationEmail = () => {
2106
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client9.useMutation)(
2176
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client10.useMutation)(
2107
2177
  ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
2108
2178
  );
2109
2179
  return {
@@ -2113,7 +2183,7 @@ var useAdminResendUserVerificationEmail = () => {
2113
2183
  };
2114
2184
  };
2115
2185
  var useAdminPermanentlyDeleteResource = () => {
2116
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client9.useMutation)(
2186
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client10.useMutation)(
2117
2187
  ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION
2118
2188
  );
2119
2189
  return {
@@ -2124,11 +2194,11 @@ var useAdminPermanentlyDeleteResource = () => {
2124
2194
  };
2125
2195
 
2126
2196
  // src/graphql/hooks/auth.ts
2127
- var import_client11 = require("@apollo/client");
2197
+ var import_client12 = require("@apollo/client");
2128
2198
 
2129
2199
  // src/graphql/mutations/auth.ts
2130
- var import_client10 = require("@apollo/client");
2131
- var REGISTER_MUTATION = import_client10.gql`
2200
+ var import_client11 = require("@apollo/client");
2201
+ var REGISTER_MUTATION = import_client11.gql`
2132
2202
  mutation register($input: RegisterInputType!) {
2133
2203
  register(input: $input) {
2134
2204
  message
@@ -2141,7 +2211,7 @@ var REGISTER_MUTATION = import_client10.gql`
2141
2211
  }
2142
2212
  ${USER_FIELDS_FRAGMENT}
2143
2213
  `;
2144
- var LOGIN_MUTATION = import_client10.gql`
2214
+ var LOGIN_MUTATION = import_client11.gql`
2145
2215
  mutation login($input: LoginInputType!) {
2146
2216
  login(input: $input) {
2147
2217
  message
@@ -2154,14 +2224,14 @@ var LOGIN_MUTATION = import_client10.gql`
2154
2224
  }
2155
2225
  ${USER_FIELDS_FRAGMENT}
2156
2226
  `;
2157
- var LOGOUT_MUTATION = import_client10.gql`
2227
+ var LOGOUT_MUTATION = import_client11.gql`
2158
2228
  mutation logout {
2159
2229
  logout {
2160
2230
  message
2161
2231
  }
2162
2232
  }
2163
2233
  `;
2164
- var REFRESH_TOKEN_MUTATION = import_client10.gql`
2234
+ var REFRESH_TOKEN_MUTATION = import_client11.gql`
2165
2235
  mutation refreshToken($input: RefreshTokenInputType!) {
2166
2236
  refreshToken(input: $input) {
2167
2237
  refreshToken
@@ -2169,21 +2239,21 @@ var REFRESH_TOKEN_MUTATION = import_client10.gql`
2169
2239
  }
2170
2240
  }
2171
2241
  `;
2172
- var RESET_PASSWORD_MUTATION = import_client10.gql`
2242
+ var RESET_PASSWORD_MUTATION = import_client11.gql`
2173
2243
  mutation resetPassword($input: ResetPasswordInputType!) {
2174
2244
  resetPassword(input: $input) {
2175
2245
  message
2176
2246
  }
2177
2247
  }
2178
2248
  `;
2179
- var REQUEST_PASSWORD_RESET_MUTATION = import_client10.gql`
2249
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client11.gql`
2180
2250
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
2181
2251
  requestPasswordReset(input: $input) {
2182
2252
  message
2183
2253
  }
2184
2254
  }
2185
2255
  `;
2186
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
2256
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client11.gql`
2187
2257
  mutation validateVerificationToken(
2188
2258
  $input: ValidateVerificationTokenInputType!
2189
2259
  ) {
@@ -2195,49 +2265,49 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
2195
2265
 
2196
2266
  // src/graphql/hooks/auth.ts
2197
2267
  var useRegister = () => {
2198
- const [register, { loading, error }] = (0, import_client11.useMutation)(REGISTER_MUTATION);
2268
+ const [register, { loading, error }] = (0, import_client12.useMutation)(REGISTER_MUTATION);
2199
2269
  return { error, loading, register };
2200
2270
  };
2201
2271
  var useLogin = () => {
2202
- const [login, { loading, error }] = (0, import_client11.useMutation)(LOGIN_MUTATION);
2272
+ const [login, { loading, error }] = (0, import_client12.useMutation)(LOGIN_MUTATION);
2203
2273
  return { error, loading, login };
2204
2274
  };
2205
2275
  var useLogout = () => {
2206
- const [logout, { loading, error }] = (0, import_client11.useMutation)(LOGOUT_MUTATION);
2276
+ const [logout, { loading, error }] = (0, import_client12.useMutation)(LOGOUT_MUTATION);
2207
2277
  return { error, loading, logout };
2208
2278
  };
2209
2279
  var useRefreshToken = () => {
2210
- const [refreshToken, { loading, error }] = (0, import_client11.useMutation)(REFRESH_TOKEN_MUTATION);
2280
+ const [refreshToken, { loading, error }] = (0, import_client12.useMutation)(REFRESH_TOKEN_MUTATION);
2211
2281
  return { error, loading, refreshToken };
2212
2282
  };
2213
2283
  var useRequestPasswordReset = () => {
2214
- const [requestPasswordReset, { loading, error }] = (0, import_client11.useMutation)(
2284
+ const [requestPasswordReset, { loading, error }] = (0, import_client12.useMutation)(
2215
2285
  REQUEST_PASSWORD_RESET_MUTATION
2216
2286
  );
2217
2287
  return { error, loading, requestPasswordReset };
2218
2288
  };
2219
2289
  var useValidateVerificationToken = () => {
2220
- const [validateVerificationToken, { loading, error }] = (0, import_client11.useMutation)(
2290
+ const [validateVerificationToken, { loading, error }] = (0, import_client12.useMutation)(
2221
2291
  VALIDATE_VERIFICATION_TOKEN_MUTATION
2222
2292
  );
2223
2293
  return { error, loading, validateVerificationToken };
2224
2294
  };
2225
2295
  var useResetPassword = () => {
2226
- const [resetPassword, { loading, error }] = (0, import_client11.useMutation)(
2296
+ const [resetPassword, { loading, error }] = (0, import_client12.useMutation)(
2227
2297
  RESET_PASSWORD_MUTATION
2228
2298
  );
2229
2299
  return { error, loading, resetPassword };
2230
2300
  };
2231
2301
 
2232
2302
  // src/graphql/hooks/chat/hooksMutation.ts
2233
- var import_client14 = require("@apollo/client");
2303
+ var import_client15 = require("@apollo/client");
2234
2304
 
2235
2305
  // src/graphql/mutations/chat.ts
2236
- var import_client13 = require("@apollo/client");
2306
+ var import_client14 = require("@apollo/client");
2237
2307
 
2238
2308
  // src/graphql/queries/chat.ts
2239
- var import_client12 = require("@apollo/client");
2240
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
2309
+ var import_client13 = require("@apollo/client");
2310
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client13.gql`
2241
2311
  fragment ChatMessageFields on ChatMessageType {
2242
2312
  _id
2243
2313
  content
@@ -2260,7 +2330,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
2260
2330
  updatedAt
2261
2331
  }
2262
2332
  `;
2263
- var CHAT_PARTICIPANT = import_client12.gql`
2333
+ var CHAT_PARTICIPANT = import_client13.gql`
2264
2334
  fragment ChatParticipantFields on ChatParticipantType {
2265
2335
  active
2266
2336
  isAssociate
@@ -2270,7 +2340,7 @@ var CHAT_PARTICIPANT = import_client12.gql`
2270
2340
  userName
2271
2341
  }
2272
2342
  `;
2273
- var CHAT_FIELDS_FRAGMENT = import_client12.gql`
2343
+ var CHAT_FIELDS_FRAGMENT = import_client13.gql`
2274
2344
  fragment ChatFields on ChatType {
2275
2345
  _id
2276
2346
  active
@@ -2291,7 +2361,7 @@ var CHAT_FIELDS_FRAGMENT = import_client12.gql`
2291
2361
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
2292
2362
  ${CHAT_PARTICIPANT}
2293
2363
  `;
2294
- var CHAT = import_client12.gql`
2364
+ var CHAT = import_client13.gql`
2295
2365
  query chat($_id: ID!) {
2296
2366
  chat(_id: $_id) {
2297
2367
  ...ChatFields
@@ -2299,7 +2369,7 @@ var CHAT = import_client12.gql`
2299
2369
  }
2300
2370
  ${CHAT_FIELDS_FRAGMENT}
2301
2371
  `;
2302
- var USER_CHATS = import_client12.gql`
2372
+ var USER_CHATS = import_client13.gql`
2303
2373
  query userChats {
2304
2374
  userChats {
2305
2375
  ...ChatFields
@@ -2307,7 +2377,7 @@ var USER_CHATS = import_client12.gql`
2307
2377
  }
2308
2378
  ${CHAT_FIELDS_FRAGMENT}
2309
2379
  `;
2310
- var GET_CHATS_BY_REGION = import_client12.gql`
2380
+ var GET_CHATS_BY_REGION = import_client13.gql`
2311
2381
  query getChatsByRegion($region: String!) {
2312
2382
  chatsByRegion(region: $region) {
2313
2383
  ...ChatFields
@@ -2315,7 +2385,7 @@ var GET_CHATS_BY_REGION = import_client12.gql`
2315
2385
  }
2316
2386
  ${CHAT_FIELDS_FRAGMENT}
2317
2387
  `;
2318
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
2388
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client13.gql`
2319
2389
  fragment ChatReportFields on ReportChatUserType {
2320
2390
  _id
2321
2391
  chatId
@@ -2330,7 +2400,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
2330
2400
  updatedAt
2331
2401
  }
2332
2402
  `;
2333
- var GET_REPORTED_CHAT_USERS = import_client12.gql`
2403
+ var GET_REPORTED_CHAT_USERS = import_client13.gql`
2334
2404
  query getReportedChatUsers {
2335
2405
  reportedChatUsers {
2336
2406
  ...ChatReportFields
@@ -2340,7 +2410,7 @@ var GET_REPORTED_CHAT_USERS = import_client12.gql`
2340
2410
  `;
2341
2411
 
2342
2412
  // src/graphql/mutations/chat.ts
2343
- var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
2413
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client14.gql`
2344
2414
  mutation createPrivateChat($userId: ID!) {
2345
2415
  createPrivateChat(userId: $userId) {
2346
2416
  ...ChatFields
@@ -2348,7 +2418,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
2348
2418
  }
2349
2419
  ${CHAT_FIELDS_FRAGMENT}
2350
2420
  `;
2351
- var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
2421
+ var SEND_CHAT_MESSAGE_MUTATION = import_client14.gql`
2352
2422
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
2353
2423
  sendChatMessage(_id: $_id, input: $input) {
2354
2424
  ...ChatFields
@@ -2356,12 +2426,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
2356
2426
  }
2357
2427
  ${CHAT_FIELDS_FRAGMENT}
2358
2428
  `;
2359
- var DELETE_CHAT_MUTATION = import_client13.gql`
2429
+ var DELETE_CHAT_MUTATION = import_client14.gql`
2360
2430
  mutation deleteChat($_id: ID!) {
2361
2431
  deleteChat(_id: $_id)
2362
2432
  }
2363
2433
  `;
2364
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
2434
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client14.gql`
2365
2435
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
2366
2436
  addParticipantToChat(chatId: $chatId, userId: $userId) {
2367
2437
  ...ChatFields
@@ -2369,7 +2439,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
2369
2439
  }
2370
2440
  ${CHAT_FIELDS_FRAGMENT}
2371
2441
  `;
2372
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
2442
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client14.gql`
2373
2443
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
2374
2444
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
2375
2445
  success
@@ -2377,7 +2447,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
2377
2447
  }
2378
2448
  }
2379
2449
  `;
2380
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
2450
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client14.gql`
2381
2451
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
2382
2452
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
2383
2453
  ...ChatFields
@@ -2385,7 +2455,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
2385
2455
  }
2386
2456
  ${CHAT_FIELDS_FRAGMENT}
2387
2457
  `;
2388
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
2458
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client14.gql`
2389
2459
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
2390
2460
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
2391
2461
  ...ChatFields
@@ -2393,7 +2463,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
2393
2463
  }
2394
2464
  ${CHAT_FIELDS_FRAGMENT}
2395
2465
  `;
2396
- var REPORT_CHAT_USER_MUTATION = import_client13.gql`
2466
+ var REPORT_CHAT_USER_MUTATION = import_client14.gql`
2397
2467
  mutation reportChatUser($input: ReportChatUserInputType!) {
2398
2468
  reportChatUser(input: $input) {
2399
2469
  ...ChatReportFields
@@ -2404,14 +2474,14 @@ var REPORT_CHAT_USER_MUTATION = import_client13.gql`
2404
2474
 
2405
2475
  // src/graphql/hooks/chat/hooksMutation.ts
2406
2476
  var useCreatePrivateChat = () => {
2407
- const [createPrivateChat, { loading, error }] = (0, import_client14.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
2477
+ const [createPrivateChat, { loading, error }] = (0, import_client15.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
2408
2478
  awaitRefetchQueries: true,
2409
2479
  refetchQueries: [{ query: USER_CHATS }]
2410
2480
  });
2411
2481
  return { createPrivateChat, error, loading };
2412
2482
  };
2413
2483
  var useSendChatMessage = () => {
2414
- const [sendChatMessage, { loading, error }] = (0, import_client14.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
2484
+ const [sendChatMessage, { loading, error }] = (0, import_client15.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
2415
2485
  awaitRefetchQueries: true,
2416
2486
  refetchQueries: (mutationResult) => {
2417
2487
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -2426,14 +2496,14 @@ var useSendChatMessage = () => {
2426
2496
  return { error, loading, sendChatMessage };
2427
2497
  };
2428
2498
  var useDeleteChat = () => {
2429
- const [deleteChat, { loading, error }] = (0, import_client14.useMutation)(DELETE_CHAT_MUTATION, {
2499
+ const [deleteChat, { loading, error }] = (0, import_client15.useMutation)(DELETE_CHAT_MUTATION, {
2430
2500
  awaitRefetchQueries: true,
2431
2501
  refetchQueries: [{ query: USER_CHATS }]
2432
2502
  });
2433
2503
  return { deleteChat, error, loading };
2434
2504
  };
2435
2505
  var useAddParticipantToChat = () => {
2436
- const [addParticipantToChat, { loading, error }] = (0, import_client14.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2506
+ const [addParticipantToChat, { loading, error }] = (0, import_client15.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2437
2507
  awaitRefetchQueries: true,
2438
2508
  refetchQueries: (mutationResult) => {
2439
2509
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -2451,7 +2521,7 @@ var useAddParticipantToChat = () => {
2451
2521
  return { addParticipantToChat, error, loading };
2452
2522
  };
2453
2523
  var useRemoveParticipantFromChat = () => {
2454
- const [removeParticipantFromChat, { loading, error }] = (0, import_client14.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2524
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client15.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2455
2525
  awaitRefetchQueries: true,
2456
2526
  refetchQueries: (mutationResult) => {
2457
2527
  const region = mutationResult?.data?.removeParticipantFromChat?.region;
@@ -2468,7 +2538,7 @@ var useRemoveParticipantFromChat = () => {
2468
2538
  return { error, loading, removeParticipantFromChat };
2469
2539
  };
2470
2540
  var useToggleChatMessageLike = () => {
2471
- const [toggleChatMessageLike, { loading, error }] = (0, import_client14.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2541
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client15.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2472
2542
  awaitRefetchQueries: true,
2473
2543
  refetchQueries: (mutationResult) => {
2474
2544
  const chatId = mutationResult?.data?.toggleChatMessageLike?._id;
@@ -2483,7 +2553,7 @@ var useToggleChatMessageLike = () => {
2483
2553
  return { error, loading, toggleChatMessageLike };
2484
2554
  };
2485
2555
  var useMarkChatMessagesSeen = () => {
2486
- const [markChatMessagesSeen, { loading, error }] = (0, import_client14.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2556
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client15.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2487
2557
  awaitRefetchQueries: true,
2488
2558
  refetchQueries: (mutationResult) => {
2489
2559
  const chatId = mutationResult?.data?.markChatMessagesSeen?._id;
@@ -2498,18 +2568,18 @@ var useMarkChatMessagesSeen = () => {
2498
2568
  return { error, loading, markChatMessagesSeen };
2499
2569
  };
2500
2570
  var useReportChatUser = () => {
2501
- const [reportChatUser, { loading, error }] = (0, import_client14.useMutation)(
2571
+ const [reportChatUser, { loading, error }] = (0, import_client15.useMutation)(
2502
2572
  REPORT_CHAT_USER_MUTATION
2503
2573
  );
2504
2574
  return { error, loading, reportChatUser };
2505
2575
  };
2506
2576
 
2507
2577
  // src/graphql/hooks/chat/hooksQuery.ts
2508
- var import_client16 = require("@apollo/client");
2578
+ var import_client17 = require("@apollo/client");
2509
2579
 
2510
2580
  // src/graphql/subscriptions/chat.ts
2511
- var import_client15 = require("@apollo/client");
2512
- var GET_CHAT_MESSAGE = import_client15.gql`
2581
+ var import_client16 = require("@apollo/client");
2582
+ var GET_CHAT_MESSAGE = import_client16.gql`
2513
2583
  subscription {
2514
2584
  getChatMessage {
2515
2585
  ...ChatFields
@@ -2520,7 +2590,7 @@ var GET_CHAT_MESSAGE = import_client15.gql`
2520
2590
 
2521
2591
  // src/graphql/hooks/chat/hooksQuery.ts
2522
2592
  var useGetChat = (_id) => {
2523
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(CHAT, {
2593
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(CHAT, {
2524
2594
  fetchPolicy: "network-only",
2525
2595
  skip: !_id || _id === "",
2526
2596
  variables: { _id }
@@ -2529,7 +2599,7 @@ var useGetChat = (_id) => {
2529
2599
  return { chat, error, loading, refetch };
2530
2600
  };
2531
2601
  var useGetUserChats = () => {
2532
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(
2602
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(
2533
2603
  USER_CHATS,
2534
2604
  {
2535
2605
  fetchPolicy: "network-only"
@@ -2539,14 +2609,14 @@ var useGetUserChats = () => {
2539
2609
  return { error, loading, refetch, userChats };
2540
2610
  };
2541
2611
  var useGetChatSubscription = () => {
2542
- const { data, loading, error } = (0, import_client16.useSubscription)(
2612
+ const { data, loading, error } = (0, import_client17.useSubscription)(
2543
2613
  GET_CHAT_MESSAGE
2544
2614
  );
2545
2615
  const chat = data?.getChat;
2546
2616
  return { chat, error, loading };
2547
2617
  };
2548
2618
  var useGetChatsByRegion = (region) => {
2549
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_CHATS_BY_REGION, {
2619
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(GET_CHATS_BY_REGION, {
2550
2620
  fetchPolicy: "network-only",
2551
2621
  skip: !region || region === "",
2552
2622
  variables: { region }
@@ -2555,7 +2625,7 @@ var useGetChatsByRegion = (region) => {
2555
2625
  return { chatsByRegion, error, loading, refetch };
2556
2626
  };
2557
2627
  var useGetReportedChatUsers = () => {
2558
- const { loading, error, data, refetch } = (0, import_client16.useQuery)(GET_REPORTED_CHAT_USERS, {
2628
+ const { loading, error, data, refetch } = (0, import_client17.useQuery)(GET_REPORTED_CHAT_USERS, {
2559
2629
  fetchPolicy: "network-only"
2560
2630
  });
2561
2631
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -2563,11 +2633,11 @@ var useGetReportedChatUsers = () => {
2563
2633
  };
2564
2634
 
2565
2635
  // src/graphql/hooks/contactUs.ts
2566
- var import_client18 = require("@apollo/client");
2636
+ var import_client19 = require("@apollo/client");
2567
2637
 
2568
2638
  // src/graphql/mutations/contactUs.ts
2569
- var import_client17 = require("@apollo/client");
2570
- var CONTACT_US_MUTATION = import_client17.gql`
2639
+ var import_client18 = require("@apollo/client");
2640
+ var CONTACT_US_MUTATION = import_client18.gql`
2571
2641
  mutation contactUs($input: ContactUsInputType!) {
2572
2642
  contactUs(input: $input) {
2573
2643
  message
@@ -2577,16 +2647,16 @@ var CONTACT_US_MUTATION = import_client17.gql`
2577
2647
 
2578
2648
  // src/graphql/hooks/contactUs.ts
2579
2649
  var useContactUs = () => {
2580
- const [contactUs, { loading, error }] = (0, import_client18.useMutation)(CONTACT_US_MUTATION);
2650
+ const [contactUs, { loading, error }] = (0, import_client19.useMutation)(CONTACT_US_MUTATION);
2581
2651
  return { contactUs, error, loading };
2582
2652
  };
2583
2653
 
2584
2654
  // src/graphql/hooks/event/hooksMutation.ts
2585
- var import_client21 = require("@apollo/client");
2655
+ var import_client22 = require("@apollo/client");
2586
2656
 
2587
2657
  // src/graphql/mutations/event.ts
2588
- var import_client19 = require("@apollo/client");
2589
- var CREATE_EVENT_MUTATION = import_client19.gql`
2658
+ var import_client20 = require("@apollo/client");
2659
+ var CREATE_EVENT_MUTATION = import_client20.gql`
2590
2660
  mutation createEvent($input: EventInputType!) {
2591
2661
  createEvent(input: $input) {
2592
2662
  ...EventFields
@@ -2594,7 +2664,7 @@ var CREATE_EVENT_MUTATION = import_client19.gql`
2594
2664
  }
2595
2665
  ${EVENT}
2596
2666
  `;
2597
- var UPDATE_EVENT_MUTATION = import_client19.gql`
2667
+ var UPDATE_EVENT_MUTATION = import_client20.gql`
2598
2668
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
2599
2669
  updateEvent(_id: $_id, input: $input) {
2600
2670
  ...EventFields
@@ -2602,12 +2672,12 @@ var UPDATE_EVENT_MUTATION = import_client19.gql`
2602
2672
  }
2603
2673
  ${EVENT}
2604
2674
  `;
2605
- var DELETE_EVENT_MUTATION = import_client19.gql`
2675
+ var DELETE_EVENT_MUTATION = import_client20.gql`
2606
2676
  mutation deleteEvent($_id: ID!) {
2607
2677
  deleteEvent(_id: $_id)
2608
2678
  }
2609
2679
  `;
2610
- var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
2680
+ var CREATE_EVENT_INFO_MUTATION = import_client20.gql`
2611
2681
  mutation createEventInfo($input: EventInfoInputType!) {
2612
2682
  createEventInfo(input: $input) {
2613
2683
  ...EventInfoFields
@@ -2615,7 +2685,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
2615
2685
  }
2616
2686
  ${EVENT_INFO}
2617
2687
  `;
2618
- var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
2688
+ var UPDATE_EVENT_INFO_MUTATION = import_client20.gql`
2619
2689
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
2620
2690
  updateEventInfo(_id: $_id, input: $input) {
2621
2691
  ...EventInfoFields
@@ -2625,8 +2695,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
2625
2695
  `;
2626
2696
 
2627
2697
  // src/graphql/queries/user.ts
2628
- var import_client20 = require("@apollo/client");
2629
- var GET_USERS = import_client20.gql`
2698
+ var import_client21 = require("@apollo/client");
2699
+ var GET_USERS = import_client21.gql`
2630
2700
  query getUsers {
2631
2701
  users {
2632
2702
  ...UserFields
@@ -2634,7 +2704,7 @@ var GET_USERS = import_client20.gql`
2634
2704
  }
2635
2705
  ${USER_FIELDS_FRAGMENT}
2636
2706
  `;
2637
- var GET_USER = import_client20.gql`
2707
+ var GET_USER = import_client21.gql`
2638
2708
  query getUser($_id: ID!) {
2639
2709
  user(_id: $_id) {
2640
2710
  ...UserFields
@@ -2642,7 +2712,7 @@ var GET_USER = import_client20.gql`
2642
2712
  }
2643
2713
  ${USER_FIELDS_FRAGMENT}
2644
2714
  `;
2645
- var GET_USER_EVENTS = import_client20.gql`
2715
+ var GET_USER_EVENTS = import_client21.gql`
2646
2716
  query getUserEvents {
2647
2717
  userEvents {
2648
2718
  ...EventFields
@@ -2650,7 +2720,7 @@ var GET_USER_EVENTS = import_client20.gql`
2650
2720
  }
2651
2721
  ${EVENT}
2652
2722
  `;
2653
- var GET_USER_VENDORS = import_client20.gql`
2723
+ var GET_USER_VENDORS = import_client21.gql`
2654
2724
  query getUserVendors {
2655
2725
  userVendors {
2656
2726
  ...VendorFields
@@ -2658,7 +2728,7 @@ var GET_USER_VENDORS = import_client20.gql`
2658
2728
  }
2659
2729
  ${VENDOR}
2660
2730
  `;
2661
- var GET_USER_PARTNERS = import_client20.gql`
2731
+ var GET_USER_PARTNERS = import_client21.gql`
2662
2732
  query getUserPartners {
2663
2733
  userPartners {
2664
2734
  ...PartnerFields
@@ -2666,7 +2736,7 @@ var GET_USER_PARTNERS = import_client20.gql`
2666
2736
  }
2667
2737
  ${PARTNER}
2668
2738
  `;
2669
- var GET_USER_ACTIVITIES = import_client20.gql`
2739
+ var GET_USER_ACTIVITIES = import_client21.gql`
2670
2740
  query getUserActivities {
2671
2741
  userActivities {
2672
2742
  favourites {
@@ -2701,7 +2771,7 @@ var GET_USER_ACTIVITIES = import_client20.gql`
2701
2771
  ${VENDOR}
2702
2772
  ${PARTNER}
2703
2773
  `;
2704
- var GET_USER_RESOURCES = import_client20.gql`
2774
+ var GET_USER_RESOURCES = import_client21.gql`
2705
2775
  query getUserResources($userId: ID!) {
2706
2776
  userResources(userId: $userId) {
2707
2777
  resources {
@@ -2716,14 +2786,14 @@ var GET_USER_RESOURCES = import_client20.gql`
2716
2786
 
2717
2787
  // src/graphql/hooks/event/hooksMutation.ts
2718
2788
  var useCreateEvent = () => {
2719
- const [createEvent, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_MUTATION, {
2789
+ const [createEvent, { loading, error }] = (0, import_client22.useMutation)(CREATE_EVENT_MUTATION, {
2720
2790
  awaitRefetchQueries: true,
2721
2791
  refetchQueries: [{ query: GET_USER_EVENTS }]
2722
2792
  });
2723
2793
  return { createEvent, error, loading };
2724
2794
  };
2725
2795
  var useUpdateEvent = () => {
2726
- const [updateEvent, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_MUTATION, {
2796
+ const [updateEvent, { loading, error }] = (0, import_client22.useMutation)(UPDATE_EVENT_MUTATION, {
2727
2797
  awaitRefetchQueries: true,
2728
2798
  refetchQueries: (mutationResult) => {
2729
2799
  const eventId = mutationResult?.data?.updateEvent?._id;
@@ -2746,14 +2816,14 @@ var useUpdateEvent = () => {
2746
2816
  return { error, loading, updateEvent };
2747
2817
  };
2748
2818
  var useDeleteEvent = () => {
2749
- const [deleteEvent, { loading, error }] = (0, import_client21.useMutation)(DELETE_EVENT_MUTATION, {
2819
+ const [deleteEvent, { loading, error }] = (0, import_client22.useMutation)(DELETE_EVENT_MUTATION, {
2750
2820
  awaitRefetchQueries: true,
2751
2821
  refetchQueries: [{ query: GET_USER_EVENTS }]
2752
2822
  });
2753
2823
  return { deleteEvent, error, loading };
2754
2824
  };
2755
2825
  var useCreateEventInfo = () => {
2756
- const [createEventInfo, { loading, error }] = (0, import_client21.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2826
+ const [createEventInfo, { loading, error }] = (0, import_client22.useMutation)(CREATE_EVENT_INFO_MUTATION, {
2757
2827
  awaitRefetchQueries: true,
2758
2828
  refetchQueries: (mutationResult) => {
2759
2829
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -2777,7 +2847,7 @@ var useCreateEventInfo = () => {
2777
2847
  return { createEventInfo, error, loading };
2778
2848
  };
2779
2849
  var useUpdateEventInfo = () => {
2780
- const [updateEventInfo, { loading, error }] = (0, import_client21.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2850
+ const [updateEventInfo, { loading, error }] = (0, import_client22.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
2781
2851
  awaitRefetchQueries: true,
2782
2852
  refetchQueries: (mutationResult) => {
2783
2853
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -2801,9 +2871,9 @@ var useUpdateEventInfo = () => {
2801
2871
  };
2802
2872
 
2803
2873
  // src/graphql/hooks/event/hooksQuery.ts
2804
- var import_client22 = require("@apollo/client");
2874
+ var import_client23 = require("@apollo/client");
2805
2875
  var useGetEvents = (dateStatus) => {
2806
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS, {
2876
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENTS, {
2807
2877
  fetchPolicy: "network-only",
2808
2878
  variables: { dateStatus }
2809
2879
  });
@@ -2811,7 +2881,7 @@ var useGetEvents = (dateStatus) => {
2811
2881
  return { error, events, loading, refetch };
2812
2882
  };
2813
2883
  var useGetEvent = (_id) => {
2814
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT, {
2884
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENT, {
2815
2885
  fetchPolicy: "network-only",
2816
2886
  skip: !_id,
2817
2887
  variables: { _id }
@@ -2820,7 +2890,7 @@ var useGetEvent = (_id) => {
2820
2890
  return { error, event, loading, refetch };
2821
2891
  };
2822
2892
  var useGetEventByPlaceId = (googlePlaceId) => {
2823
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_BY_PLACE_ID, {
2893
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENT_BY_PLACE_ID, {
2824
2894
  fetchPolicy: "network-only",
2825
2895
  skip: !googlePlaceId,
2826
2896
  variables: { googlePlaceId }
@@ -2834,7 +2904,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2834
2904
  options,
2835
2905
  region
2836
2906
  };
2837
- const { loading, error, data, refetch, fetchMore } = (0, import_client22.useQuery)(GET_EVENTS_BY_REGION, {
2907
+ const { loading, error, data, refetch, fetchMore } = (0, import_client23.useQuery)(GET_EVENTS_BY_REGION, {
2838
2908
  fetchPolicy: "network-only",
2839
2909
  skip: !region || region === "",
2840
2910
  variables
@@ -2852,7 +2922,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2852
2922
  const normalizedSearch = searchQuery?.trim() ?? "";
2853
2923
  const normalizedTags = (tags ?? []).filter(Boolean);
2854
2924
  const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
2855
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(SEARCH_EVENTS, {
2925
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(SEARCH_EVENTS, {
2856
2926
  fetchPolicy: "network-only",
2857
2927
  skip: !shouldRunQuery,
2858
2928
  variables: {
@@ -2870,7 +2940,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2870
2940
  };
2871
2941
  };
2872
2942
  var useGetEventsNearMe = (location, dateStatus) => {
2873
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENTS_NEAR_ME, {
2943
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENTS_NEAR_ME, {
2874
2944
  fetchPolicy: "network-only",
2875
2945
  skip: !location.latitude || !location.longitude,
2876
2946
  variables: {
@@ -2885,7 +2955,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
2885
2955
  return { error, eventsNearMe, loading, refetch };
2886
2956
  };
2887
2957
  var useGetEventInfo = (eventId) => {
2888
- const { loading, error, data, refetch } = (0, import_client22.useQuery)(GET_EVENT_INFO, {
2958
+ const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_EVENT_INFO, {
2889
2959
  fetchPolicy: "network-only",
2890
2960
  skip: !eventId || eventId === "",
2891
2961
  variables: { eventId }
@@ -2895,14 +2965,14 @@ var useGetEventInfo = (eventId) => {
2895
2965
  };
2896
2966
 
2897
2967
  // src/graphql/hooks/notifications/hooksMutation.ts
2898
- var import_client25 = require("@apollo/client");
2968
+ var import_client26 = require("@apollo/client");
2899
2969
 
2900
2970
  // src/graphql/mutations/notification.ts
2901
- var import_client24 = require("@apollo/client");
2971
+ var import_client25 = require("@apollo/client");
2902
2972
 
2903
2973
  // src/graphql/queries/notification.ts
2904
- var import_client23 = require("@apollo/client");
2905
- var NOTIFICATION_FRAGMENT = import_client23.gql`
2974
+ var import_client24 = require("@apollo/client");
2975
+ var NOTIFICATION_FRAGMENT = import_client24.gql`
2906
2976
  fragment NotificationFields on Notification {
2907
2977
  _id
2908
2978
  userId
@@ -2919,7 +2989,7 @@ var NOTIFICATION_FRAGMENT = import_client23.gql`
2919
2989
  updatedAt
2920
2990
  }
2921
2991
  `;
2922
- var GET_USER_NOTIFICATIONS = import_client23.gql`
2992
+ var GET_USER_NOTIFICATIONS = import_client24.gql`
2923
2993
  query getUserNotifications($limit: Int, $offset: Int) {
2924
2994
  userNotifications(limit: $limit, offset: $offset) {
2925
2995
  ...NotificationFields
@@ -2927,7 +2997,7 @@ var GET_USER_NOTIFICATIONS = import_client23.gql`
2927
2997
  }
2928
2998
  ${NOTIFICATION_FRAGMENT}
2929
2999
  `;
2930
- var GET_NOTIFICATION_COUNT = import_client23.gql`
3000
+ var GET_NOTIFICATION_COUNT = import_client24.gql`
2931
3001
  query getNotificationCount {
2932
3002
  notificationCount {
2933
3003
  total
@@ -2937,7 +3007,7 @@ var GET_NOTIFICATION_COUNT = import_client23.gql`
2937
3007
  `;
2938
3008
 
2939
3009
  // src/graphql/mutations/notification.ts
2940
- var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
3010
+ var CREATE_BULK_NOTIFICATIONS = import_client25.gql`
2941
3011
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
2942
3012
  createBulkNotifications(input: $input) {
2943
3013
  ...NotificationFields
@@ -2945,7 +3015,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
2945
3015
  }
2946
3016
  ${NOTIFICATION_FRAGMENT}
2947
3017
  `;
2948
- var MARK_NOTIFICATION_READ = import_client24.gql`
3018
+ var MARK_NOTIFICATION_READ = import_client25.gql`
2949
3019
  mutation markNotificationRead($_id: ID!) {
2950
3020
  markNotificationRead(_id: $_id) {
2951
3021
  ...NotificationFields
@@ -2953,17 +3023,17 @@ var MARK_NOTIFICATION_READ = import_client24.gql`
2953
3023
  }
2954
3024
  ${NOTIFICATION_FRAGMENT}
2955
3025
  `;
2956
- var MARK_ALL_NOTIFICATIONS_READ = import_client24.gql`
3026
+ var MARK_ALL_NOTIFICATIONS_READ = import_client25.gql`
2957
3027
  mutation markAllNotificationsRead {
2958
3028
  markAllNotificationsRead
2959
3029
  }
2960
3030
  `;
2961
- var DELETE_NOTIFICATION = import_client24.gql`
3031
+ var DELETE_NOTIFICATION = import_client25.gql`
2962
3032
  mutation deleteNotification($_id: ID!) {
2963
3033
  deleteNotification(_id: $_id)
2964
3034
  }
2965
3035
  `;
2966
- var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
3036
+ var DELETE_ALL_NOTIFICATIONS = import_client25.gql`
2967
3037
  mutation deleteAllNotifications {
2968
3038
  deleteAllNotifications
2969
3039
  }
@@ -2971,13 +3041,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
2971
3041
 
2972
3042
  // src/graphql/hooks/notifications/hooksMutation.ts
2973
3043
  var useCreateBulkNotifications = () => {
2974
- const [createBulkNotifications, { loading, error }] = (0, import_client25.useMutation)(
3044
+ const [createBulkNotifications, { loading, error }] = (0, import_client26.useMutation)(
2975
3045
  CREATE_BULK_NOTIFICATIONS
2976
3046
  );
2977
3047
  return { createBulkNotifications, error, loading };
2978
3048
  };
2979
3049
  var useMarkNotificationRead = () => {
2980
- const [markNotificationRead, { loading, error }] = (0, import_client25.useMutation)(
3050
+ const [markNotificationRead, { loading, error }] = (0, import_client26.useMutation)(
2981
3051
  MARK_NOTIFICATION_READ,
2982
3052
  {
2983
3053
  refetchQueries: [
@@ -2993,7 +3063,7 @@ var useMarkNotificationRead = () => {
2993
3063
  return { error, loading, markNotificationRead };
2994
3064
  };
2995
3065
  var useMarkAllNotificationsRead = () => {
2996
- const [markAllNotificationsRead, { loading, error }] = (0, import_client25.useMutation)(
3066
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client26.useMutation)(
2997
3067
  MARK_ALL_NOTIFICATIONS_READ,
2998
3068
  {
2999
3069
  refetchQueries: [
@@ -3009,7 +3079,7 @@ var useMarkAllNotificationsRead = () => {
3009
3079
  return { error, loading, markAllNotificationsRead };
3010
3080
  };
3011
3081
  var useDeleteNotification = () => {
3012
- const [deleteNotification, { loading, error }] = (0, import_client25.useMutation)(
3082
+ const [deleteNotification, { loading, error }] = (0, import_client26.useMutation)(
3013
3083
  DELETE_NOTIFICATION,
3014
3084
  {
3015
3085
  refetchQueries: [
@@ -3025,7 +3095,7 @@ var useDeleteNotification = () => {
3025
3095
  return { deleteNotification, error, loading };
3026
3096
  };
3027
3097
  var useDeleteAllNotifications = () => {
3028
- const [deleteAllNotifications, { loading, error }] = (0, import_client25.useMutation)(
3098
+ const [deleteAllNotifications, { loading, error }] = (0, import_client26.useMutation)(
3029
3099
  DELETE_ALL_NOTIFICATIONS,
3030
3100
  {
3031
3101
  refetchQueries: [
@@ -3042,9 +3112,9 @@ var useDeleteAllNotifications = () => {
3042
3112
  };
3043
3113
 
3044
3114
  // src/graphql/hooks/notifications/hooksQuery.ts
3045
- var import_client26 = require("@apollo/client");
3115
+ var import_client27 = require("@apollo/client");
3046
3116
  var useGetUserNotifications = (limit, offset) => {
3047
- const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_USER_NOTIFICATIONS, {
3117
+ const { data, loading, error, refetch } = (0, import_client27.useQuery)(GET_USER_NOTIFICATIONS, {
3048
3118
  fetchPolicy: "no-cache",
3049
3119
  variables: { limit, offset }
3050
3120
  });
@@ -3056,7 +3126,7 @@ var useGetUserNotifications = (limit, offset) => {
3056
3126
  };
3057
3127
  };
3058
3128
  var useGetNotificationCount = () => {
3059
- const { data, loading, error, refetch } = (0, import_client26.useQuery)(GET_NOTIFICATION_COUNT, {
3129
+ const { data, loading, error, refetch } = (0, import_client27.useQuery)(GET_NOTIFICATION_COUNT, {
3060
3130
  fetchPolicy: "no-cache"
3061
3131
  });
3062
3132
  return {
@@ -3068,11 +3138,11 @@ var useGetNotificationCount = () => {
3068
3138
  };
3069
3139
 
3070
3140
  // src/graphql/hooks/notifications/hooksSubscription.ts
3071
- var import_client28 = require("@apollo/client");
3141
+ var import_client29 = require("@apollo/client");
3072
3142
 
3073
3143
  // src/graphql/subscriptions/notification.ts
3074
- var import_client27 = require("@apollo/client");
3075
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
3144
+ var import_client28 = require("@apollo/client");
3145
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client28.gql`
3076
3146
  subscription {
3077
3147
  getUserNotifications {
3078
3148
  ...NotificationFields
@@ -3080,7 +3150,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
3080
3150
  }
3081
3151
  ${NOTIFICATION_FRAGMENT}
3082
3152
  `;
3083
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
3153
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client28.gql`
3084
3154
  subscription {
3085
3155
  getNotificationCount {
3086
3156
  total
@@ -3091,7 +3161,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
3091
3161
 
3092
3162
  // src/graphql/hooks/notifications/hooksSubscription.ts
3093
3163
  var useGetUserNotificationsSubscription = () => {
3094
- const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3164
+ const { data, loading, error } = (0, import_client29.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3095
3165
  fetchPolicy: "no-cache",
3096
3166
  shouldResubscribe: true
3097
3167
  });
@@ -3102,7 +3172,7 @@ var useGetUserNotificationsSubscription = () => {
3102
3172
  };
3103
3173
  };
3104
3174
  var useGetNotificationCountSubscription = () => {
3105
- const { data, loading, error } = (0, import_client28.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3175
+ const { data, loading, error } = (0, import_client29.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3106
3176
  fetchPolicy: "no-cache",
3107
3177
  shouldResubscribe: true
3108
3178
  });
@@ -3114,11 +3184,11 @@ var useGetNotificationCountSubscription = () => {
3114
3184
  };
3115
3185
 
3116
3186
  // src/graphql/hooks/poster.ts
3117
- var import_client30 = require("@apollo/client");
3187
+ var import_client31 = require("@apollo/client");
3118
3188
 
3119
3189
  // src/graphql/mutations/poster.ts
3120
- var import_client29 = require("@apollo/client");
3121
- var CREATE_POSTER_MUTATION = import_client29.gql`
3190
+ var import_client30 = require("@apollo/client");
3191
+ var CREATE_POSTER_MUTATION = import_client30.gql`
3122
3192
  mutation createPoster($input: PosterInputType!) {
3123
3193
  createPoster(input: $input) {
3124
3194
  message
@@ -3132,7 +3202,7 @@ var CREATE_POSTER_MUTATION = import_client29.gql`
3132
3202
 
3133
3203
  // src/graphql/hooks/poster.ts
3134
3204
  var useCreatePoster = () => {
3135
- const [createPoster, { loading, error }] = (0, import_client30.useMutation)(
3205
+ const [createPoster, { loading, error }] = (0, import_client31.useMutation)(
3136
3206
  CREATE_POSTER_MUTATION,
3137
3207
  {
3138
3208
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -3142,11 +3212,11 @@ var useCreatePoster = () => {
3142
3212
  };
3143
3213
 
3144
3214
  // src/graphql/hooks/pushToken.ts
3145
- var import_client32 = require("@apollo/client");
3215
+ var import_client33 = require("@apollo/client");
3146
3216
 
3147
3217
  // src/graphql/mutations/pushToken.ts
3148
- var import_client31 = require("@apollo/client");
3149
- var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
3218
+ var import_client32 = require("@apollo/client");
3219
+ var CREATE_PUSH_TOKEN_MUTATION = import_client32.gql`
3150
3220
  mutation createPushToken($input: PushTokenInput!) {
3151
3221
  createPushToken(input: $input) {
3152
3222
  success
@@ -3156,7 +3226,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
3156
3226
 
3157
3227
  // src/graphql/hooks/pushToken.ts
3158
3228
  var useCreatePushToken = () => {
3159
- const [createPushToken, { loading, error }] = (0, import_client32.useMutation)(
3229
+ const [createPushToken, { loading, error }] = (0, import_client33.useMutation)(
3160
3230
  CREATE_PUSH_TOKEN_MUTATION
3161
3231
  );
3162
3232
  return { createPushToken, error, loading };
@@ -3167,77 +3237,6 @@ var import_client35 = require("@apollo/client");
3167
3237
 
3168
3238
  // src/graphql/mutations/relation.ts
3169
3239
  var import_client34 = require("@apollo/client");
3170
-
3171
- // src/graphql/queries/relation.ts
3172
- var import_client33 = require("@apollo/client");
3173
- var RELATION_FIELDS_FRAGMENT = import_client33.gql`
3174
- fragment RelationFields on RelationType {
3175
- _id
3176
- active
3177
- chatId
3178
- createdAt
3179
- lastUpdateBy
3180
- eventId
3181
- relationDates {
3182
- ...RelationDates
3183
- }
3184
- relationType
3185
- vendorId
3186
- updatedAt
3187
- }
3188
- ${RELATION_DATES_FRAGMENT}
3189
- `;
3190
- var GET_RELATION = import_client33.gql`
3191
- query getRelation($_id: ID!) {
3192
- relation(_id: $_id) {
3193
- ...RelationFields
3194
- }
3195
- }
3196
- ${RELATION_FIELDS_FRAGMENT}
3197
- `;
3198
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client33.gql`
3199
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3200
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3201
- ...RelationFields
3202
- }
3203
- }
3204
- ${RELATION_FIELDS_FRAGMENT}
3205
- `;
3206
- var GET_EVENT_RELATIONS = import_client33.gql`
3207
- query getEventRelations($eventId: ID!) {
3208
- eventRelations(eventId: $eventId) {
3209
- ...RelationFields
3210
- }
3211
- }
3212
- ${RELATION_FIELDS_FRAGMENT}
3213
- `;
3214
- var GET_VENDOR_RELATIONS = import_client33.gql`
3215
- query getVendorRelations($vendorId: ID!) {
3216
- vendorRelations(vendorId: $vendorId) {
3217
- ...RelationFields
3218
- }
3219
- }
3220
- ${RELATION_FIELDS_FRAGMENT}
3221
- `;
3222
- var GET_RESOURCE_CONNECTIONS = import_client33.gql`
3223
- query getResourceConnections(
3224
- $resourceId: ID!
3225
- $resourceType: ResourceTypeEnum!
3226
- ) {
3227
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3228
- events {
3229
- ...EventListItemFields
3230
- }
3231
- vendors {
3232
- ...VendorFields
3233
- }
3234
- }
3235
- }
3236
- ${VENDOR}
3237
- ${EVENT_LIST_ITEM}
3238
- `;
3239
-
3240
- // src/graphql/mutations/relation.ts
3241
3240
  var CREATE_RELATION_MUTATION = import_client34.gql`
3242
3241
  mutation createRelation($input: RelationInputType!) {
3243
3242
  createRelation(input: $input) {
@@ -5166,6 +5165,7 @@ var useGetSchool = (_id) => {
5166
5165
  GET_EVENT_INFO,
5167
5166
  GET_PARTNER,
5168
5167
  GET_POST,
5168
+ GET_RESOURCE_CONNECTIONS,
5169
5169
  GET_VENDOR,
5170
5170
  GET_VENDOR_INFO,
5171
5171
  toGraphqlQueryString,