@timardex/cluemart-shared 1.2.49 → 1.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/{ad-DPP5n_ZS.d.mts → ad-C98yzFdy.d.mts} +19 -6
  2. package/dist/{ad-BBJMdfCl.d.ts → ad-CPL59gj7.d.ts} +19 -6
  3. package/dist/{auth-CQPRj4DB.d.mts → auth-D636FFnJ.d.mts} +1 -1
  4. package/dist/{auth-OLWCR6Zr.d.ts → auth-D6Rg-cEc.d.ts} +1 -1
  5. package/dist/{chunk-HFYQRL77.mjs → chunk-IRQ365TO.mjs} +2 -2
  6. package/dist/{chunk-XXZPSRMS.mjs → chunk-N625BZKR.mjs} +3 -2
  7. package/dist/chunk-N625BZKR.mjs.map +1 -0
  8. package/dist/{chunk-WNRV4DSZ.mjs → chunk-V3BTJQHJ.mjs} +11 -4
  9. package/dist/chunk-V3BTJQHJ.mjs.map +1 -0
  10. package/dist/enums/index.cjs +11 -3
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +11 -6
  13. package/dist/enums/index.d.ts +11 -6
  14. package/dist/enums/index.mjs +3 -1
  15. package/dist/formFields/index.cjs +94 -82
  16. package/dist/formFields/index.cjs.map +1 -1
  17. package/dist/formFields/index.d.mts +4 -3
  18. package/dist/formFields/index.d.ts +4 -3
  19. package/dist/formFields/index.mjs +24 -10
  20. package/dist/formFields/index.mjs.map +1 -1
  21. package/dist/{global-qg1lwtYo.d.mts → global-Czf4z7aN.d.mts} +3 -3
  22. package/dist/{global-Be5v6emI.d.ts → global-dQyePynY.d.ts} +3 -3
  23. package/dist/graphql/index.cjs +393 -189
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +44 -3
  26. package/dist/graphql/index.d.ts +44 -3
  27. package/dist/graphql/index.mjs +292 -95
  28. package/dist/graphql/index.mjs.map +1 -1
  29. package/dist/hooks/index.cjs +135 -28
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +13 -4
  32. package/dist/hooks/index.d.ts +13 -4
  33. package/dist/hooks/index.mjs +128 -29
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.cjs +688 -361
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.mts +81 -12
  38. package/dist/index.d.ts +81 -12
  39. package/dist/index.mjs +562 -245
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/types/index.cjs +2 -1
  42. package/dist/types/index.cjs.map +1 -1
  43. package/dist/types/index.d.mts +3 -3
  44. package/dist/types/index.d.ts +3 -3
  45. package/dist/types/index.mjs +1 -1
  46. package/dist/utils/index.cjs.map +1 -1
  47. package/dist/utils/index.d.mts +1 -1
  48. package/dist/utils/index.d.ts +1 -1
  49. package/dist/utils/index.mjs +2 -2
  50. package/package.json +1 -1
  51. package/dist/chunk-WNRV4DSZ.mjs.map +0 -1
  52. package/dist/chunk-XXZPSRMS.mjs.map +0 -1
  53. /package/dist/{chunk-HFYQRL77.mjs.map → chunk-IRQ365TO.mjs.map} +0 -0
@@ -33,6 +33,7 @@ __export(graphql_exports, {
33
33
  useCreateCheckoutSession: () => useCreateCheckoutSession,
34
34
  useCreateEvent: () => useCreateEvent,
35
35
  useCreateEventInfo: () => useCreateEventInfo,
36
+ useCreatePartner: () => useCreatePartner,
36
37
  useCreatePoster: () => useCreatePoster,
37
38
  useCreatePushToken: () => useCreatePushToken,
38
39
  useCreateRelation: () => useCreateRelation,
@@ -46,6 +47,7 @@ __export(graphql_exports, {
46
47
  useDeleteChat: () => useDeleteChat,
47
48
  useDeleteEvent: () => useDeleteEvent,
48
49
  useDeleteNotification: () => useDeleteNotification,
50
+ useDeletePartner: () => useDeletePartner,
49
51
  useDeleteRelation: () => useDeleteRelation,
50
52
  useDeleteTester: () => useDeleteTester,
51
53
  useDeleteUser: () => useDeleteUser,
@@ -63,6 +65,9 @@ __export(graphql_exports, {
63
65
  useGetEventsNearMe: () => useGetEventsNearMe,
64
66
  useGetNotificationCount: () => useGetNotificationCount,
65
67
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
68
+ useGetPartner: () => useGetPartner,
69
+ useGetPartners: () => useGetPartners,
70
+ useGetPartnersByRegion: () => useGetPartnersByRegion,
66
71
  useGetRelation: () => useGetRelation,
67
72
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
68
73
  useGetResourceActivities: () => useGetResourceActivities,
@@ -97,12 +102,14 @@ __export(graphql_exports, {
97
102
  useRequestPasswordReset: () => useRequestPasswordReset,
98
103
  useResetPassword: () => useResetPassword,
99
104
  useSearchEvents: () => useSearchEvents,
105
+ useSearchPartners: () => useSearchPartners,
100
106
  useSearchVendors: () => useSearchVendors,
101
107
  useSelectPackage: () => useSelectPackage,
102
108
  useSendChatMessage: () => useSendChatMessage,
103
109
  useUpdateAd: () => useUpdateAd,
104
110
  useUpdateEvent: () => useUpdateEvent,
105
111
  useUpdateEventInfo: () => useUpdateEventInfo,
112
+ useUpdatePartner: () => useUpdatePartner,
106
113
  useUpdateRelation: () => useUpdateRelation,
107
114
  useUpdateSubscriptionPlan: () => useUpdateSubscriptionPlan,
108
115
  useUpdateTester: () => useUpdateTester,
@@ -171,8 +178,8 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
171
178
  }
172
179
  }
173
180
  `;
174
- var PARTNER_FIELDS_FRAGMENT = import_client2.gql`
175
- fragment PartnerFields on PartnerType {
181
+ var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
182
+ fragment AssociatesFields on AssociateType {
176
183
  email
177
184
  resourceId
178
185
  resourceType
@@ -231,6 +238,9 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
231
238
  fragment UserFields on UserType {
232
239
  _id
233
240
  active
241
+ associates {
242
+ ...AssociatesFields
243
+ }
234
244
  avatar {
235
245
  ...ResourceImageFields
236
246
  }
@@ -244,9 +254,6 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
244
254
  licences
245
255
  platform
246
256
  preferredRegion
247
- partners {
248
- ...PartnerFields
249
- }
250
257
  refreshToken
251
258
  role
252
259
  termsAgreement {
@@ -259,7 +266,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
259
266
  updatedAt
260
267
  }
261
268
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
262
- ${PARTNER_FIELDS_FRAGMENT}
269
+ ${ASSOCIATES_FIELDS_FRAGMENT}
263
270
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
264
271
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
265
272
  `;
@@ -360,6 +367,9 @@ var EVENT = import_client3.gql`
360
367
  fragment EventFields on EventType {
361
368
  _id
362
369
  active
370
+ associates {
371
+ ...AssociatesFields
372
+ }
363
373
  adIds
364
374
  cover {
365
375
  ...ResourceImageFields
@@ -389,9 +399,6 @@ var EVENT = import_client3.gql`
389
399
  owner {
390
400
  ...OwnerFields
391
401
  }
392
- partners {
393
- ...PartnerFields
394
- }
395
402
  promoCodes
396
403
  provider
397
404
  posterUsage {
@@ -420,7 +427,7 @@ var EVENT = import_client3.gql`
420
427
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
421
428
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
422
429
  ${POSTER_USAGE_FIELDS_FRAGMENT}
423
- ${PARTNER_FIELDS_FRAGMENT}
430
+ ${ASSOCIATES_FIELDS_FRAGMENT}
424
431
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
425
432
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
426
433
  ${RELATION_DATES_FRAGMENT}
@@ -509,6 +516,9 @@ var VENDOR = import_client4.gql`
509
516
  fragment VendorFields on VendorType {
510
517
  _id
511
518
  active
519
+ associates {
520
+ ...AssociatesFields
521
+ }
512
522
  adIds
513
523
  availability {
514
524
  corporate
@@ -548,9 +558,6 @@ var VENDOR = import_client4.gql`
548
558
  owner {
549
559
  ...OwnerFields
550
560
  }
551
- partners {
552
- ...PartnerFields
553
- }
554
561
  products {
555
562
  ...VendorMenuFields
556
563
  }
@@ -581,7 +588,7 @@ var VENDOR = import_client4.gql`
581
588
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
582
589
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
583
590
  ${POSTER_USAGE_FIELDS_FRAGMENT}
584
- ${PARTNER_FIELDS_FRAGMENT}
591
+ ${ASSOCIATES_FIELDS_FRAGMENT}
585
592
  ${VENDOR_MENU_FIELDS_FRAGMENT}
586
593
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
587
594
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
@@ -1034,7 +1041,7 @@ var useContactUs = () => {
1034
1041
  };
1035
1042
 
1036
1043
  // src/graphql/hooks/event/hooksMutation.ts
1037
- var import_client17 = require("@apollo/client");
1044
+ var import_client18 = require("@apollo/client");
1038
1045
 
1039
1046
  // src/graphql/mutations/event.ts
1040
1047
  var import_client15 = require("@apollo/client");
@@ -1077,8 +1084,89 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1077
1084
  `;
1078
1085
 
1079
1086
  // src/graphql/queries/user.ts
1087
+ var import_client17 = require("@apollo/client");
1088
+
1089
+ // src/graphql/queries/partner.ts
1080
1090
  var import_client16 = require("@apollo/client");
1081
- var GET_USERS = import_client16.gql`
1091
+ var PARTNER = import_client16.gql`
1092
+ fragment PartnerFields on PartnerType {
1093
+ _id
1094
+ active
1095
+ associates {
1096
+ ...AssociatesFields
1097
+ }
1098
+ adIds
1099
+ cover {
1100
+ ...ResourceImageFields
1101
+ }
1102
+ createdAt
1103
+ contactDetails {
1104
+ ...ContactDetailsFields
1105
+ }
1106
+ description
1107
+ deletedAt
1108
+ images {
1109
+ ...ResourceImageFields
1110
+ }
1111
+ location {
1112
+ ...EventLocationFields
1113
+ }
1114
+ logo {
1115
+ ...ResourceImageFields
1116
+ }
1117
+ name
1118
+ nzbn
1119
+ owner {
1120
+ ...OwnerFields
1121
+ }
1122
+ partnerType
1123
+ region
1124
+ socialMedia {
1125
+ ...SocialMediaFields
1126
+ }
1127
+ termsAgreement {
1128
+ ...TermsAgreementFields
1129
+ }
1130
+ updatedAt
1131
+ }
1132
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
1133
+ ${EVENT_LOCATION_FIELDS_FRAGMENT}
1134
+ `;
1135
+ var GET_PARTNERS = import_client16.gql`
1136
+ query getPartners {
1137
+ partners {
1138
+ ...PartnerFields
1139
+ }
1140
+ }
1141
+ ${PARTNER}
1142
+ `;
1143
+ var GET_PARTNER = import_client16.gql`
1144
+ query getPartner($_id: ID!) {
1145
+ partner(_id: $_id) {
1146
+ ...PartnerFields
1147
+ }
1148
+ }
1149
+ ${PARTNER}
1150
+ `;
1151
+ var GET_PARTNERS_BY_REGION = import_client16.gql`
1152
+ query getPartnersByRegion($region: String!) {
1153
+ partnersByRegion(region: $region) {
1154
+ ...PartnerFields
1155
+ }
1156
+ }
1157
+ ${PARTNER}
1158
+ `;
1159
+ var SEARCH_PARTNERS = import_client16.gql`
1160
+ query searchPartners($search: String!, $region: String) {
1161
+ searchPartners(search: $search, region: $region) {
1162
+ ...PartnerFields
1163
+ }
1164
+ }
1165
+ ${PARTNER}
1166
+ `;
1167
+
1168
+ // src/graphql/queries/user.ts
1169
+ var GET_USERS = import_client17.gql`
1082
1170
  query getUsers {
1083
1171
  users {
1084
1172
  ...UserFields
@@ -1086,7 +1174,7 @@ var GET_USERS = import_client16.gql`
1086
1174
  }
1087
1175
  ${USER_FIELDS_FRAGMENT}
1088
1176
  `;
1089
- var GET_USER = import_client16.gql`
1177
+ var GET_USER = import_client17.gql`
1090
1178
  query getUser($_id: ID!) {
1091
1179
  user(_id: $_id) {
1092
1180
  ...UserFields
@@ -1094,7 +1182,7 @@ var GET_USER = import_client16.gql`
1094
1182
  }
1095
1183
  ${USER_FIELDS_FRAGMENT}
1096
1184
  `;
1097
- var GET_USER_EVENTS = import_client16.gql`
1185
+ var GET_USER_EVENTS = import_client17.gql`
1098
1186
  query getUserEvents {
1099
1187
  userEvents {
1100
1188
  ...EventFields
@@ -1102,7 +1190,7 @@ var GET_USER_EVENTS = import_client16.gql`
1102
1190
  }
1103
1191
  ${EVENT}
1104
1192
  `;
1105
- var GET_USER_VENDORS = import_client16.gql`
1193
+ var GET_USER_VENDORS = import_client17.gql`
1106
1194
  query getUserVendors {
1107
1195
  userVendors {
1108
1196
  ...VendorFields
@@ -1110,7 +1198,15 @@ var GET_USER_VENDORS = import_client16.gql`
1110
1198
  }
1111
1199
  ${VENDOR}
1112
1200
  `;
1113
- var GET_USER_ACTIVITIES = import_client16.gql`
1201
+ var GET_USER_PARTNERS = import_client17.gql`
1202
+ query getUserPartners {
1203
+ userPartners {
1204
+ ...PartnerFields
1205
+ }
1206
+ }
1207
+ ${PARTNER}
1208
+ `;
1209
+ var GET_USER_ACTIVITIES = import_client17.gql`
1114
1210
  query getUserActivities {
1115
1211
  userActivities {
1116
1212
  favourites {
@@ -1144,28 +1240,28 @@ var GET_USER_ACTIVITIES = import_client16.gql`
1144
1240
 
1145
1241
  // src/graphql/hooks/event/hooksMutation.ts
1146
1242
  var useCreateEvent = () => {
1147
- const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
1243
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
1148
1244
  awaitRefetchQueries: true,
1149
1245
  refetchQueries: [{ query: GET_USER_EVENTS }]
1150
1246
  });
1151
1247
  return { createEvent, error, loading };
1152
1248
  };
1153
1249
  var useUpdateEvent = () => {
1154
- const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
1250
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
1155
1251
  awaitRefetchQueries: true,
1156
1252
  refetchQueries: [{ query: GET_USER_EVENTS }]
1157
1253
  });
1158
1254
  return { error, loading, updateEvent };
1159
1255
  };
1160
1256
  var useDeleteEvent = () => {
1161
- const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
1257
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
1162
1258
  awaitRefetchQueries: true,
1163
1259
  refetchQueries: [{ query: GET_USER_EVENTS }]
1164
1260
  });
1165
1261
  return { deleteEvent, error, loading };
1166
1262
  };
1167
1263
  var useCreateEventInfo = () => {
1168
- const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1264
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1169
1265
  CREATE_EVENT_INFO_MUTATION,
1170
1266
  {
1171
1267
  awaitRefetchQueries: true,
@@ -1192,7 +1288,7 @@ var useCreateEventInfo = () => {
1192
1288
  return { createEventInfo, error, loading };
1193
1289
  };
1194
1290
  var useUpdateEventInfo = () => {
1195
- const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1291
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1196
1292
  UPDATE_EVENT_INFO_MUTATION,
1197
1293
  {
1198
1294
  awaitRefetchQueries: true,
@@ -1218,16 +1314,16 @@ var useUpdateEventInfo = () => {
1218
1314
  };
1219
1315
 
1220
1316
  // src/graphql/hooks/event/hooksQuery.ts
1221
- var import_client18 = require("@apollo/client");
1317
+ var import_client19 = require("@apollo/client");
1222
1318
  var useGetEvents = () => {
1223
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
1319
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
1224
1320
  fetchPolicy: "network-only"
1225
1321
  });
1226
1322
  const events = data?.events;
1227
1323
  return { error, events, loading, refetch };
1228
1324
  };
1229
1325
  var useGetEvent = (_id) => {
1230
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
1326
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
1231
1327
  fetchPolicy: "network-only",
1232
1328
  skip: !_id,
1233
1329
  variables: { _id }
@@ -1236,7 +1332,7 @@ var useGetEvent = (_id) => {
1236
1332
  return { error, event, loading, refetch };
1237
1333
  };
1238
1334
  var useGetEventsByRegion = (region) => {
1239
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
1335
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
1240
1336
  fetchPolicy: "no-cache",
1241
1337
  skip: !region,
1242
1338
  variables: { region }
@@ -1245,7 +1341,7 @@ var useGetEventsByRegion = (region) => {
1245
1341
  return { error, eventsByRegion, loading, refetch };
1246
1342
  };
1247
1343
  var useSearchEvents = (search, region) => {
1248
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
1344
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1249
1345
  fetchPolicy: "network-only",
1250
1346
  skip: search.length < 3,
1251
1347
  variables: { region, search }
@@ -1254,7 +1350,7 @@ var useSearchEvents = (search, region) => {
1254
1350
  return { error, eventsSearch, loading, refetch };
1255
1351
  };
1256
1352
  var useGetEventsNearMe = (location) => {
1257
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
1353
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1258
1354
  fetchPolicy: "network-only",
1259
1355
  skip: !location.latitude || !location.longitude,
1260
1356
  variables: {
@@ -1268,7 +1364,7 @@ var useGetEventsNearMe = (location) => {
1268
1364
  return { error, eventsNearMe, loading, refetch };
1269
1365
  };
1270
1366
  var useGetEventInfo = (eventId) => {
1271
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
1367
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
1272
1368
  fetchPolicy: "network-only",
1273
1369
  skip: !eventId,
1274
1370
  variables: { eventId }
@@ -1278,14 +1374,14 @@ var useGetEventInfo = (eventId) => {
1278
1374
  };
1279
1375
 
1280
1376
  // src/graphql/hooks/notifications/hooksMutation.ts
1281
- var import_client21 = require("@apollo/client");
1377
+ var import_client22 = require("@apollo/client");
1282
1378
 
1283
1379
  // src/graphql/mutations/notification.ts
1284
- var import_client20 = require("@apollo/client");
1380
+ var import_client21 = require("@apollo/client");
1285
1381
 
1286
1382
  // src/graphql/queries/notification.ts
1287
- var import_client19 = require("@apollo/client");
1288
- var NOTIFICATION_FRAGMENT = import_client19.gql`
1383
+ var import_client20 = require("@apollo/client");
1384
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
1289
1385
  fragment NotificationFields on Notification {
1290
1386
  _id
1291
1387
  userId
@@ -1302,7 +1398,7 @@ var NOTIFICATION_FRAGMENT = import_client19.gql`
1302
1398
  updatedAt
1303
1399
  }
1304
1400
  `;
1305
- var GET_USER_NOTIFICATIONS = import_client19.gql`
1401
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
1306
1402
  query getUserNotifications($limit: Int, $offset: Int) {
1307
1403
  userNotifications(limit: $limit, offset: $offset) {
1308
1404
  ...NotificationFields
@@ -1310,7 +1406,7 @@ var GET_USER_NOTIFICATIONS = import_client19.gql`
1310
1406
  }
1311
1407
  ${NOTIFICATION_FRAGMENT}
1312
1408
  `;
1313
- var GET_NOTIFICATION_COUNT = import_client19.gql`
1409
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
1314
1410
  query getNotificationCount {
1315
1411
  notificationCount {
1316
1412
  total
@@ -1320,7 +1416,7 @@ var GET_NOTIFICATION_COUNT = import_client19.gql`
1320
1416
  `;
1321
1417
 
1322
1418
  // src/graphql/mutations/notification.ts
1323
- var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
1419
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1324
1420
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1325
1421
  createBulkNotifications(input: $input) {
1326
1422
  ...NotificationFields
@@ -1328,7 +1424,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
1328
1424
  }
1329
1425
  ${NOTIFICATION_FRAGMENT}
1330
1426
  `;
1331
- var MARK_NOTIFICATION_READ = import_client20.gql`
1427
+ var MARK_NOTIFICATION_READ = import_client21.gql`
1332
1428
  mutation markNotificationRead($_id: ID!) {
1333
1429
  markNotificationRead(_id: $_id) {
1334
1430
  ...NotificationFields
@@ -1336,17 +1432,17 @@ var MARK_NOTIFICATION_READ = import_client20.gql`
1336
1432
  }
1337
1433
  ${NOTIFICATION_FRAGMENT}
1338
1434
  `;
1339
- var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
1435
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
1340
1436
  mutation markAllNotificationsRead {
1341
1437
  markAllNotificationsRead
1342
1438
  }
1343
1439
  `;
1344
- var DELETE_NOTIFICATION = import_client20.gql`
1440
+ var DELETE_NOTIFICATION = import_client21.gql`
1345
1441
  mutation deleteNotification($_id: ID!) {
1346
1442
  deleteNotification(_id: $_id)
1347
1443
  }
1348
1444
  `;
1349
- var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
1445
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1350
1446
  mutation deleteAllNotifications {
1351
1447
  deleteAllNotifications
1352
1448
  }
@@ -1354,13 +1450,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
1354
1450
 
1355
1451
  // src/graphql/hooks/notifications/hooksMutation.ts
1356
1452
  var useCreateBulkNotifications = () => {
1357
- const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
1453
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
1358
1454
  CREATE_BULK_NOTIFICATIONS
1359
1455
  );
1360
1456
  return { createBulkNotifications, error, loading };
1361
1457
  };
1362
1458
  var useMarkNotificationRead = () => {
1363
- const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
1459
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
1364
1460
  MARK_NOTIFICATION_READ,
1365
1461
  {
1366
1462
  refetchQueries: [
@@ -1376,7 +1472,7 @@ var useMarkNotificationRead = () => {
1376
1472
  return { error, loading, markNotificationRead };
1377
1473
  };
1378
1474
  var useMarkAllNotificationsRead = () => {
1379
- const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
1475
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
1380
1476
  MARK_ALL_NOTIFICATIONS_READ,
1381
1477
  {
1382
1478
  refetchQueries: [
@@ -1392,7 +1488,7 @@ var useMarkAllNotificationsRead = () => {
1392
1488
  return { error, loading, markAllNotificationsRead };
1393
1489
  };
1394
1490
  var useDeleteNotification = () => {
1395
- const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
1491
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
1396
1492
  DELETE_NOTIFICATION,
1397
1493
  {
1398
1494
  refetchQueries: [
@@ -1408,7 +1504,7 @@ var useDeleteNotification = () => {
1408
1504
  return { deleteNotification, error, loading };
1409
1505
  };
1410
1506
  var useDeleteAllNotifications = () => {
1411
- const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
1507
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
1412
1508
  DELETE_ALL_NOTIFICATIONS,
1413
1509
  {
1414
1510
  refetchQueries: [
@@ -1425,9 +1521,9 @@ var useDeleteAllNotifications = () => {
1425
1521
  };
1426
1522
 
1427
1523
  // src/graphql/hooks/notifications/hooksQuery.ts
1428
- var import_client22 = require("@apollo/client");
1524
+ var import_client23 = require("@apollo/client");
1429
1525
  var useGetUserNotifications = (limit, offset) => {
1430
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
1526
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
1431
1527
  fetchPolicy: "no-cache",
1432
1528
  variables: { limit, offset }
1433
1529
  });
@@ -1439,7 +1535,7 @@ var useGetUserNotifications = (limit, offset) => {
1439
1535
  };
1440
1536
  };
1441
1537
  var useGetNotificationCount = () => {
1442
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
1538
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
1443
1539
  fetchPolicy: "no-cache"
1444
1540
  });
1445
1541
  return {
@@ -1451,11 +1547,11 @@ var useGetNotificationCount = () => {
1451
1547
  };
1452
1548
 
1453
1549
  // src/graphql/hooks/notifications/hooksSubscription.ts
1454
- var import_client24 = require("@apollo/client");
1550
+ var import_client25 = require("@apollo/client");
1455
1551
 
1456
1552
  // src/graphql/subscriptions/notification.ts
1457
- var import_client23 = require("@apollo/client");
1458
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
1553
+ var import_client24 = require("@apollo/client");
1554
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1459
1555
  subscription {
1460
1556
  getUserNotifications {
1461
1557
  ...NotificationFields
@@ -1463,7 +1559,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
1463
1559
  }
1464
1560
  ${NOTIFICATION_FRAGMENT}
1465
1561
  `;
1466
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
1562
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1467
1563
  subscription {
1468
1564
  getNotificationCount {
1469
1565
  total
@@ -1474,7 +1570,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
1474
1570
 
1475
1571
  // src/graphql/hooks/notifications/hooksSubscription.ts
1476
1572
  var useGetUserNotificationsSubscription = () => {
1477
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1573
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1478
1574
  fetchPolicy: "no-cache",
1479
1575
  shouldResubscribe: true
1480
1576
  });
@@ -1485,7 +1581,7 @@ var useGetUserNotificationsSubscription = () => {
1485
1581
  };
1486
1582
  };
1487
1583
  var useGetNotificationCountSubscription = () => {
1488
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1584
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1489
1585
  fetchPolicy: "no-cache",
1490
1586
  shouldResubscribe: true
1491
1587
  });
@@ -1497,11 +1593,11 @@ var useGetNotificationCountSubscription = () => {
1497
1593
  };
1498
1594
 
1499
1595
  // src/graphql/hooks/poster.ts
1500
- var import_client26 = require("@apollo/client");
1596
+ var import_client27 = require("@apollo/client");
1501
1597
 
1502
1598
  // src/graphql/mutations/poster.ts
1503
- var import_client25 = require("@apollo/client");
1504
- var CREATE_POSTER_MUTATION = import_client25.gql`
1599
+ var import_client26 = require("@apollo/client");
1600
+ var CREATE_POSTER_MUTATION = import_client26.gql`
1505
1601
  mutation createPoster($input: PosterInputType!) {
1506
1602
  createPoster(input: $input) {
1507
1603
  message
@@ -1515,7 +1611,7 @@ var CREATE_POSTER_MUTATION = import_client25.gql`
1515
1611
 
1516
1612
  // src/graphql/hooks/poster.ts
1517
1613
  var useCreatePoster = () => {
1518
- const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
1614
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
1519
1615
  CREATE_POSTER_MUTATION,
1520
1616
  {
1521
1617
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -1525,11 +1621,11 @@ var useCreatePoster = () => {
1525
1621
  };
1526
1622
 
1527
1623
  // src/graphql/hooks/pushToken.ts
1528
- var import_client28 = require("@apollo/client");
1624
+ var import_client29 = require("@apollo/client");
1529
1625
 
1530
1626
  // src/graphql/mutations/pushToken.ts
1531
- var import_client27 = require("@apollo/client");
1532
- var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
1627
+ var import_client28 = require("@apollo/client");
1628
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1533
1629
  mutation createPushToken($input: PushTokenInput!) {
1534
1630
  createPushToken(input: $input) {
1535
1631
  success
@@ -1539,21 +1635,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
1539
1635
 
1540
1636
  // src/graphql/hooks/pushToken.ts
1541
1637
  var useCreatePushToken = () => {
1542
- const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
1638
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
1543
1639
  CREATE_PUSH_TOKEN_MUTATION
1544
1640
  );
1545
1641
  return { createPushToken, error, loading };
1546
1642
  };
1547
1643
 
1548
1644
  // src/graphql/hooks/relation/hooksMutation.ts
1549
- var import_client31 = require("@apollo/client");
1645
+ var import_client32 = require("@apollo/client");
1550
1646
 
1551
1647
  // src/graphql/mutations/relation.ts
1552
- var import_client30 = require("@apollo/client");
1648
+ var import_client31 = require("@apollo/client");
1553
1649
 
1554
1650
  // src/graphql/queries/relation.ts
1555
- var import_client29 = require("@apollo/client");
1556
- var RELATION_FIELDS_FRAGMENT = import_client29.gql`
1651
+ var import_client30 = require("@apollo/client");
1652
+ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
1557
1653
  fragment RelationFields on RelationType {
1558
1654
  _id
1559
1655
  active
@@ -1571,7 +1667,7 @@ var RELATION_FIELDS_FRAGMENT = import_client29.gql`
1571
1667
  }
1572
1668
  ${RELATION_DATES_FRAGMENT}
1573
1669
  `;
1574
- var GET_RELATION = import_client29.gql`
1670
+ var GET_RELATION = import_client30.gql`
1575
1671
  query getRelation($_id: ID!) {
1576
1672
  relation(_id: $_id) {
1577
1673
  ...RelationFields
@@ -1579,7 +1675,7 @@ var GET_RELATION = import_client29.gql`
1579
1675
  }
1580
1676
  ${RELATION_FIELDS_FRAGMENT}
1581
1677
  `;
1582
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
1678
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
1583
1679
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1584
1680
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1585
1681
  ...RelationFields
@@ -1587,7 +1683,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
1587
1683
  }
1588
1684
  ${RELATION_FIELDS_FRAGMENT}
1589
1685
  `;
1590
- var GET_EVENT_RELATIONS = import_client29.gql`
1686
+ var GET_EVENT_RELATIONS = import_client30.gql`
1591
1687
  query getEventRelations($eventId: ID!) {
1592
1688
  eventRelations(eventId: $eventId) {
1593
1689
  ...RelationFields
@@ -1595,7 +1691,7 @@ var GET_EVENT_RELATIONS = import_client29.gql`
1595
1691
  }
1596
1692
  ${RELATION_FIELDS_FRAGMENT}
1597
1693
  `;
1598
- var GET_VENDOR_RELATIONS = import_client29.gql`
1694
+ var GET_VENDOR_RELATIONS = import_client30.gql`
1599
1695
  query getVendorRelations($vendorId: ID!) {
1600
1696
  vendorRelations(vendorId: $vendorId) {
1601
1697
  ...RelationFields
@@ -1603,7 +1699,7 @@ var GET_VENDOR_RELATIONS = import_client29.gql`
1603
1699
  }
1604
1700
  ${RELATION_FIELDS_FRAGMENT}
1605
1701
  `;
1606
- var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1702
+ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
1607
1703
  query getResourceConnections(
1608
1704
  $resourceId: ID!
1609
1705
  $resourceType: ResourceTypeEnum!
@@ -1622,7 +1718,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1622
1718
  `;
1623
1719
 
1624
1720
  // src/graphql/mutations/relation.ts
1625
- var CREATE_RELATION_MUTATION = import_client30.gql`
1721
+ var CREATE_RELATION_MUTATION = import_client31.gql`
1626
1722
  mutation createRelation($input: RelationInputType!) {
1627
1723
  createRelation(input: $input) {
1628
1724
  ...RelationFields
@@ -1630,7 +1726,7 @@ var CREATE_RELATION_MUTATION = import_client30.gql`
1630
1726
  }
1631
1727
  ${RELATION_FIELDS_FRAGMENT}
1632
1728
  `;
1633
- var UPDATE_RELATION_MUTATION = import_client30.gql`
1729
+ var UPDATE_RELATION_MUTATION = import_client31.gql`
1634
1730
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
1635
1731
  updateRelation(_id: $_id, input: $input) {
1636
1732
  ...RelationFields
@@ -1638,7 +1734,7 @@ var UPDATE_RELATION_MUTATION = import_client30.gql`
1638
1734
  }
1639
1735
  ${RELATION_FIELDS_FRAGMENT}
1640
1736
  `;
1641
- var DELETE_RELATION_MUTATION = import_client30.gql`
1737
+ var DELETE_RELATION_MUTATION = import_client31.gql`
1642
1738
  mutation deleteRelation($_id: ID!) {
1643
1739
  deleteRelation(_id: $_id) {
1644
1740
  ...RelationFields
@@ -1649,7 +1745,7 @@ var DELETE_RELATION_MUTATION = import_client30.gql`
1649
1745
 
1650
1746
  // src/graphql/hooks/relation/hooksMutation.ts
1651
1747
  var useCreateRelation = () => {
1652
- const [createRelation, { loading, error }] = (0, import_client31.useMutation)(
1748
+ const [createRelation, { loading, error }] = (0, import_client32.useMutation)(
1653
1749
  CREATE_RELATION_MUTATION,
1654
1750
  {
1655
1751
  awaitRefetchQueries: true,
@@ -1698,7 +1794,7 @@ var useCreateRelation = () => {
1698
1794
  return { createRelation, error, loading };
1699
1795
  };
1700
1796
  var useUpdateRelation = () => {
1701
- const [updateRelation, { loading, error }] = (0, import_client31.useMutation)(
1797
+ const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(
1702
1798
  UPDATE_RELATION_MUTATION,
1703
1799
  {
1704
1800
  awaitRefetchQueries: true,
@@ -1744,7 +1840,7 @@ var useUpdateRelation = () => {
1744
1840
  return { error, loading, updateRelation };
1745
1841
  };
1746
1842
  var useDeleteRelation = () => {
1747
- const [deleteRelation, { loading, error }] = (0, import_client31.useMutation)(
1843
+ const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(
1748
1844
  DELETE_RELATION_MUTATION,
1749
1845
  {
1750
1846
  awaitRefetchQueries: true,
@@ -1786,9 +1882,9 @@ var useDeleteRelation = () => {
1786
1882
  };
1787
1883
 
1788
1884
  // src/graphql/hooks/relation/hooksQuery.ts
1789
- var import_client32 = require("@apollo/client");
1885
+ var import_client33 = require("@apollo/client");
1790
1886
  var useGetRelation = (_id) => {
1791
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_RELATION, {
1887
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
1792
1888
  fetchPolicy: "network-only",
1793
1889
  skip: !_id,
1794
1890
  variables: { _id }
@@ -1797,7 +1893,7 @@ var useGetRelation = (_id) => {
1797
1893
  return { error, loading, refetch, relation };
1798
1894
  };
1799
1895
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
1800
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(
1896
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(
1801
1897
  GET_RELATION_BY_EVENT_AND_VENDOR,
1802
1898
  {
1803
1899
  fetchPolicy: "network-only",
@@ -1809,7 +1905,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
1809
1905
  return { error, loading, refetch, relationByEventAndVendor };
1810
1906
  };
1811
1907
  var useGetEventRelations = (eventId) => {
1812
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_EVENT_RELATIONS, {
1908
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
1813
1909
  fetchPolicy: "network-only",
1814
1910
  skip: !eventId,
1815
1911
  variables: { eventId }
@@ -1818,7 +1914,7 @@ var useGetEventRelations = (eventId) => {
1818
1914
  return { error, eventRelations, loading, refetch };
1819
1915
  };
1820
1916
  var useGetVendorRelations = (vendorId) => {
1821
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_VENDOR_RELATIONS, {
1917
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
1822
1918
  fetchPolicy: "network-only",
1823
1919
  skip: !vendorId,
1824
1920
  variables: { vendorId }
@@ -1827,7 +1923,7 @@ var useGetVendorRelations = (vendorId) => {
1827
1923
  return { error, loading, refetch, vendorRelations };
1828
1924
  };
1829
1925
  var useGetResourceConnections = (resourceId, resourceType) => {
1830
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_RESOURCE_CONNECTIONS, {
1926
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
1831
1927
  fetchPolicy: "network-only",
1832
1928
  variables: { resourceId, resourceType }
1833
1929
  });
@@ -1836,11 +1932,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
1836
1932
  };
1837
1933
 
1838
1934
  // src/graphql/hooks/vendor/hooksMutation.ts
1839
- var import_client34 = require("@apollo/client");
1935
+ var import_client35 = require("@apollo/client");
1840
1936
 
1841
1937
  // src/graphql/mutations/vendor.ts
1842
- var import_client33 = require("@apollo/client");
1843
- var CREATE_VENDOR_MUTATION = import_client33.gql`
1938
+ var import_client34 = require("@apollo/client");
1939
+ var CREATE_VENDOR_MUTATION = import_client34.gql`
1844
1940
  mutation createVendor($input: VendorInputType!) {
1845
1941
  createVendor(input: $input) {
1846
1942
  ...VendorFields
@@ -1848,7 +1944,7 @@ var CREATE_VENDOR_MUTATION = import_client33.gql`
1848
1944
  }
1849
1945
  ${VENDOR}
1850
1946
  `;
1851
- var UPDATE_VENDOR_MUTATION = import_client33.gql`
1947
+ var UPDATE_VENDOR_MUTATION = import_client34.gql`
1852
1948
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
1853
1949
  updateVendor(_id: $_id, input: $input) {
1854
1950
  ...VendorFields
@@ -1856,12 +1952,12 @@ var UPDATE_VENDOR_MUTATION = import_client33.gql`
1856
1952
  }
1857
1953
  ${VENDOR}
1858
1954
  `;
1859
- var DELETE_VENDOR_MUTATION = import_client33.gql`
1955
+ var DELETE_VENDOR_MUTATION = import_client34.gql`
1860
1956
  mutation deleteVendor($_id: ID!) {
1861
1957
  deleteVendor(_id: $_id)
1862
1958
  }
1863
1959
  `;
1864
- var CREATE_VENDOR_INFO_MUTATION = import_client33.gql`
1960
+ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
1865
1961
  mutation createVendorInfo($input: VendorInfoInputType!) {
1866
1962
  createVendorInfo(input: $input) {
1867
1963
  ...VendorInfoFields
@@ -1869,7 +1965,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client33.gql`
1869
1965
  }
1870
1966
  ${VENDOR_INFO}
1871
1967
  `;
1872
- var UPDATE_VENDOR_INFO_MUTATION = import_client33.gql`
1968
+ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
1873
1969
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1874
1970
  updateVendorInfo(_id: $_id, input: $input) {
1875
1971
  ...VendorInfoFields
@@ -1880,7 +1976,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client33.gql`
1880
1976
 
1881
1977
  // src/graphql/hooks/vendor/hooksMutation.ts
1882
1978
  var useCreateVendor = () => {
1883
- const [createVendor, { loading, error }] = (0, import_client34.useMutation)(
1979
+ const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
1884
1980
  CREATE_VENDOR_MUTATION,
1885
1981
  {
1886
1982
  awaitRefetchQueries: true,
@@ -1890,7 +1986,7 @@ var useCreateVendor = () => {
1890
1986
  return { createVendor, error, loading };
1891
1987
  };
1892
1988
  var useUpdateVendor = () => {
1893
- const [updateVendor, { loading, error }] = (0, import_client34.useMutation)(
1989
+ const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
1894
1990
  UPDATE_VENDOR_MUTATION,
1895
1991
  {
1896
1992
  awaitRefetchQueries: true,
@@ -1900,7 +1996,7 @@ var useUpdateVendor = () => {
1900
1996
  return { error, loading, updateVendor };
1901
1997
  };
1902
1998
  var useDeleteVendor = () => {
1903
- const [deleteVendor, { loading, error }] = (0, import_client34.useMutation)(
1999
+ const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
1904
2000
  DELETE_VENDOR_MUTATION,
1905
2001
  {
1906
2002
  awaitRefetchQueries: true,
@@ -1910,7 +2006,7 @@ var useDeleteVendor = () => {
1910
2006
  return { deleteVendor, error, loading };
1911
2007
  };
1912
2008
  var useCreateVendorInfo = () => {
1913
- const [createVendorInfo, { loading, error }] = (0, import_client34.useMutation)(
2009
+ const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(
1914
2010
  CREATE_VENDOR_INFO_MUTATION,
1915
2011
  {
1916
2012
  awaitRefetchQueries: true,
@@ -1937,7 +2033,7 @@ var useCreateVendorInfo = () => {
1937
2033
  return { createVendorInfo, error, loading };
1938
2034
  };
1939
2035
  var useUpdateVendorInfo = () => {
1940
- const [updateVendorInfo, { loading, error }] = (0, import_client34.useMutation)(
2036
+ const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(
1941
2037
  UPDATE_VENDOR_INFO_MUTATION,
1942
2038
  {
1943
2039
  awaitRefetchQueries: true,
@@ -1958,9 +2054,9 @@ var useUpdateVendorInfo = () => {
1958
2054
  };
1959
2055
 
1960
2056
  // src/graphql/hooks/vendor/hooksQuery.ts
1961
- var import_client35 = require("@apollo/client");
2057
+ var import_client36 = require("@apollo/client");
1962
2058
  var useGetVendors = () => {
1963
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDORS, {
2059
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS, {
1964
2060
  fetchPolicy: "network-only"
1965
2061
  });
1966
2062
  const vendors = data?.vendors;
@@ -1972,7 +2068,7 @@ var useGetVendors = () => {
1972
2068
  };
1973
2069
  };
1974
2070
  var useGetVendor = (_id) => {
1975
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDOR, {
2071
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR, {
1976
2072
  fetchPolicy: "network-only",
1977
2073
  skip: !_id,
1978
2074
  variables: { _id }
@@ -1981,7 +2077,7 @@ var useGetVendor = (_id) => {
1981
2077
  return { error, loading, refetch, vendor };
1982
2078
  };
1983
2079
  var useGetVendorsByRegion = (region) => {
1984
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDORS_BY_REGION, {
2080
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
1985
2081
  fetchPolicy: "no-cache",
1986
2082
  skip: !region,
1987
2083
  variables: { region }
@@ -1990,7 +2086,7 @@ var useGetVendorsByRegion = (region) => {
1990
2086
  return { error, loading, refetch, vendorsByRegion };
1991
2087
  };
1992
2088
  var useSearchVendors = (search, region) => {
1993
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(SEARCH_VENDORS, {
2089
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
1994
2090
  fetchPolicy: "network-only",
1995
2091
  skip: search.length < 3,
1996
2092
  variables: { region, search }
@@ -1999,7 +2095,7 @@ var useSearchVendors = (search, region) => {
1999
2095
  return { error, loading, refetch, vendorSearch };
2000
2096
  };
2001
2097
  var useGetVendorInfo = (vendorId) => {
2002
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDOR_INFO, {
2098
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
2003
2099
  fetchPolicy: "network-only",
2004
2100
  skip: !vendorId,
2005
2101
  variables: { vendorId }
@@ -2014,14 +2110,14 @@ var useGetVendorInfo = (vendorId) => {
2014
2110
  };
2015
2111
 
2016
2112
  // src/graphql/hooks/testers/hooksMutation.ts
2017
- var import_client38 = require("@apollo/client");
2113
+ var import_client39 = require("@apollo/client");
2018
2114
 
2019
2115
  // src/graphql/mutations/testers.ts
2020
- var import_client37 = require("@apollo/client");
2116
+ var import_client38 = require("@apollo/client");
2021
2117
 
2022
2118
  // src/graphql/queries/testers.ts
2023
- var import_client36 = require("@apollo/client");
2024
- var TESTER_FIELDS_FRAGMENT = import_client36.gql`
2119
+ var import_client37 = require("@apollo/client");
2120
+ var TESTER_FIELDS_FRAGMENT = import_client37.gql`
2025
2121
  fragment TesterFields on TesterType {
2026
2122
  _id
2027
2123
  categories {
@@ -2040,7 +2136,7 @@ var TESTER_FIELDS_FRAGMENT = import_client36.gql`
2040
2136
  }
2041
2137
  ${CATEGORY_FIELDS_FRAGMENT}
2042
2138
  `;
2043
- var GET_TESTERS = import_client36.gql`
2139
+ var GET_TESTERS = import_client37.gql`
2044
2140
  query getTesters {
2045
2141
  testers {
2046
2142
  ...TesterFields
@@ -2048,7 +2144,7 @@ var GET_TESTERS = import_client36.gql`
2048
2144
  }
2049
2145
  ${TESTER_FIELDS_FRAGMENT}
2050
2146
  `;
2051
- var GET_TESTER = import_client36.gql`
2147
+ var GET_TESTER = import_client37.gql`
2052
2148
  query getTester($_id: ID!) {
2053
2149
  tester(_id: $_id) {
2054
2150
  ...TesterFields
@@ -2058,7 +2154,7 @@ var GET_TESTER = import_client36.gql`
2058
2154
  `;
2059
2155
 
2060
2156
  // src/graphql/mutations/testers.ts
2061
- var CREATE_TESTER_MUTATION = import_client37.gql`
2157
+ var CREATE_TESTER_MUTATION = import_client38.gql`
2062
2158
  mutation createTester($input: TesterInputType!) {
2063
2159
  createTester(input: $input) {
2064
2160
  ...TesterFields
@@ -2066,7 +2162,7 @@ var CREATE_TESTER_MUTATION = import_client37.gql`
2066
2162
  }
2067
2163
  ${TESTER_FIELDS_FRAGMENT}
2068
2164
  `;
2069
- var UPDATE_TESTER_MUTATION = import_client37.gql`
2165
+ var UPDATE_TESTER_MUTATION = import_client38.gql`
2070
2166
  mutation updateTester($_id: ID!, $input: TesterInputType!) {
2071
2167
  updateTester(_id: $_id, input: $input) {
2072
2168
  ...TesterFields
@@ -2074,7 +2170,7 @@ var UPDATE_TESTER_MUTATION = import_client37.gql`
2074
2170
  }
2075
2171
  ${TESTER_FIELDS_FRAGMENT}
2076
2172
  `;
2077
- var DELETE_TESTER_MUTATION = import_client37.gql`
2173
+ var DELETE_TESTER_MUTATION = import_client38.gql`
2078
2174
  mutation deleteTester($_id: ID!) {
2079
2175
  deleteTester(_id: $_id)
2080
2176
  }
@@ -2082,7 +2178,7 @@ var DELETE_TESTER_MUTATION = import_client37.gql`
2082
2178
 
2083
2179
  // src/graphql/hooks/testers/hooksMutation.ts
2084
2180
  var useCreateTester = () => {
2085
- const [createTester, { data, loading, error }] = (0, import_client38.useMutation)(
2181
+ const [createTester, { data, loading, error }] = (0, import_client39.useMutation)(
2086
2182
  CREATE_TESTER_MUTATION
2087
2183
  );
2088
2184
  return {
@@ -2093,7 +2189,7 @@ var useCreateTester = () => {
2093
2189
  };
2094
2190
  };
2095
2191
  var useUpdateTester = () => {
2096
- const [updateTester, { data, loading, error }] = (0, import_client38.useMutation)(
2192
+ const [updateTester, { data, loading, error }] = (0, import_client39.useMutation)(
2097
2193
  UPDATE_TESTER_MUTATION
2098
2194
  );
2099
2195
  return {
@@ -2104,16 +2200,16 @@ var useUpdateTester = () => {
2104
2200
  };
2105
2201
  };
2106
2202
  var useDeleteTester = () => {
2107
- const [deleteTester, { loading, error }] = (0, import_client38.useMutation)(
2203
+ const [deleteTester, { loading, error }] = (0, import_client39.useMutation)(
2108
2204
  DELETE_TESTER_MUTATION
2109
2205
  );
2110
2206
  return { deleteTester, error, loading };
2111
2207
  };
2112
2208
 
2113
2209
  // src/graphql/hooks/testers/hooksQuery.ts
2114
- var import_client39 = require("@apollo/client");
2210
+ var import_client40 = require("@apollo/client");
2115
2211
  var useGetTesters = () => {
2116
- const { data, loading, error, refetch } = (0, import_client39.useQuery)(GET_TESTERS);
2212
+ const { data, loading, error, refetch } = (0, import_client40.useQuery)(GET_TESTERS);
2117
2213
  const testers = data?.testers;
2118
2214
  return {
2119
2215
  error,
@@ -2123,7 +2219,7 @@ var useGetTesters = () => {
2123
2219
  };
2124
2220
  };
2125
2221
  var useGetTester = (_id) => {
2126
- const { data, loading, error, refetch } = (0, import_client39.useQuery)(GET_TESTER, {
2222
+ const { data, loading, error, refetch } = (0, import_client40.useQuery)(GET_TESTER, {
2127
2223
  skip: !_id,
2128
2224
  variables: { _id }
2129
2225
  });
@@ -2132,11 +2228,11 @@ var useGetTester = (_id) => {
2132
2228
  };
2133
2229
 
2134
2230
  // src/graphql/hooks/user/hooksMutation.ts
2135
- var import_client41 = require("@apollo/client");
2231
+ var import_client42 = require("@apollo/client");
2136
2232
 
2137
2233
  // src/graphql/mutations/user.ts
2138
- var import_client40 = require("@apollo/client");
2139
- var CREATE_USER_MUTATION = import_client40.gql`
2234
+ var import_client41 = require("@apollo/client");
2235
+ var CREATE_USER_MUTATION = import_client41.gql`
2140
2236
  mutation createUser($input: UserInputType!) {
2141
2237
  createUser(input: $input) {
2142
2238
  ...UserFields
@@ -2144,7 +2240,7 @@ var CREATE_USER_MUTATION = import_client40.gql`
2144
2240
  }
2145
2241
  ${USER_FIELDS_FRAGMENT}
2146
2242
  `;
2147
- var UPDATE_USER_MUTATION = import_client40.gql`
2243
+ var UPDATE_USER_MUTATION = import_client41.gql`
2148
2244
  mutation updateUser($_id: ID!, $input: UserInputType!) {
2149
2245
  updateUser(_id: $_id, input: $input) {
2150
2246
  ...UserFields
@@ -2152,12 +2248,12 @@ var UPDATE_USER_MUTATION = import_client40.gql`
2152
2248
  }
2153
2249
  ${USER_FIELDS_FRAGMENT}
2154
2250
  `;
2155
- var DELETE_USER_MUTATION = import_client40.gql`
2251
+ var DELETE_USER_MUTATION = import_client41.gql`
2156
2252
  mutation deleteUser($email: String!) {
2157
2253
  deleteUser(email: $email)
2158
2254
  }
2159
2255
  `;
2160
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
2256
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
2161
2257
  mutation addUserFavouriteResource(
2162
2258
  $resourceId: ID!
2163
2259
  $resourceType: ResourceTypeEnum!
@@ -2171,7 +2267,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
2171
2267
  }
2172
2268
  ${USER_FIELDS_FRAGMENT}
2173
2269
  `;
2174
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
2270
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
2175
2271
  mutation removeUserFavouriteResource(
2176
2272
  $resourceId: ID!
2177
2273
  $resourceType: ResourceTypeEnum!
@@ -2185,7 +2281,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
2185
2281
  }
2186
2282
  ${USER_FIELDS_FRAGMENT}
2187
2283
  `;
2188
- var SELECT_PACKAGE_MUTATION = import_client40.gql`
2284
+ var SELECT_PACKAGE_MUTATION = import_client41.gql`
2189
2285
  mutation selectPackage(
2190
2286
  $selectedLicence: LicencesEnumType!
2191
2287
  $removedLicence: LicencesEnumType
@@ -2199,7 +2295,7 @@ var SELECT_PACKAGE_MUTATION = import_client40.gql`
2199
2295
  }
2200
2296
  }
2201
2297
  `;
2202
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
2298
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
2203
2299
  mutation addUserInterestResource($input: UserActivityInputType!) {
2204
2300
  addUserInterestResource(input: $input) {
2205
2301
  ...UserFields
@@ -2207,7 +2303,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
2207
2303
  }
2208
2304
  ${USER_FIELDS_FRAGMENT}
2209
2305
  `;
2210
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
2306
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
2211
2307
  mutation removeUserInterestResource($input: UserActivityInputType!) {
2212
2308
  removeUserInterestResource(input: $input) {
2213
2309
  ...UserFields
@@ -2215,7 +2311,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
2215
2311
  }
2216
2312
  ${USER_FIELDS_FRAGMENT}
2217
2313
  `;
2218
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
2314
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
2219
2315
  mutation addUserGoingResource($input: UserActivityInputType!) {
2220
2316
  addUserGoingResource(input: $input) {
2221
2317
  ...UserFields
@@ -2223,7 +2319,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
2223
2319
  }
2224
2320
  ${USER_FIELDS_FRAGMENT}
2225
2321
  `;
2226
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
2322
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
2227
2323
  mutation removeUserGoingResource($input: UserActivityInputType!) {
2228
2324
  removeUserGoingResource(input: $input) {
2229
2325
  ...UserFields
@@ -2231,7 +2327,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
2231
2327
  }
2232
2328
  ${USER_FIELDS_FRAGMENT}
2233
2329
  `;
2234
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
2330
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
2235
2331
  mutation addUserPresentResource($input: UserActivityInputType!) {
2236
2332
  addUserPresentResource(input: $input) {
2237
2333
  ...UserFields
@@ -2239,7 +2335,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
2239
2335
  }
2240
2336
  ${USER_FIELDS_FRAGMENT}
2241
2337
  `;
2242
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
2338
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
2243
2339
  mutation removeUserPresentResource($input: UserActivityInputType!) {
2244
2340
  removeUserPresentResource(input: $input) {
2245
2341
  ...UserFields
@@ -2250,11 +2346,11 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
2250
2346
 
2251
2347
  // src/graphql/hooks/user/hooksMutation.ts
2252
2348
  var useCreateUser = () => {
2253
- const [createUser, { loading, error }] = (0, import_client41.useMutation)(CREATE_USER_MUTATION);
2349
+ const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
2254
2350
  return { createUser, error, loading };
2255
2351
  };
2256
2352
  var useUpdateUser = () => {
2257
- const [updateUser, { loading, error }] = (0, import_client41.useMutation)(UPDATE_USER_MUTATION, {
2353
+ const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
2258
2354
  awaitRefetchQueries: true,
2259
2355
  refetchQueries: (mutationResult) => {
2260
2356
  const userId = mutationResult?.data?.updateUser?._id;
@@ -2265,11 +2361,11 @@ var useUpdateUser = () => {
2265
2361
  return { error, loading, updateUser };
2266
2362
  };
2267
2363
  var useDeleteUser = () => {
2268
- const [deleteUser, { loading, error }] = (0, import_client41.useMutation)(DELETE_USER_MUTATION);
2364
+ const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
2269
2365
  return { deleteUser, error, loading };
2270
2366
  };
2271
2367
  var useAddUserFavouriteResource = () => {
2272
- const [addUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
2368
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
2273
2369
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
2274
2370
  {
2275
2371
  awaitRefetchQueries: true,
@@ -2279,7 +2375,7 @@ var useAddUserFavouriteResource = () => {
2279
2375
  return { addUserFavouriteResource, error, loading };
2280
2376
  };
2281
2377
  var useRemoveUserFavouriteResource = () => {
2282
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
2378
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
2283
2379
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
2284
2380
  {
2285
2381
  awaitRefetchQueries: true,
@@ -2289,7 +2385,7 @@ var useRemoveUserFavouriteResource = () => {
2289
2385
  return { error, loading, removeUserFavouriteResource };
2290
2386
  };
2291
2387
  var useSelectPackage = () => {
2292
- const [selectPackage, { loading, error }] = (0, import_client41.useMutation)(
2388
+ const [selectPackage, { loading, error }] = (0, import_client42.useMutation)(
2293
2389
  SELECT_PACKAGE_MUTATION,
2294
2390
  {
2295
2391
  awaitRefetchQueries: true,
@@ -2307,7 +2403,7 @@ var useSelectPackage = () => {
2307
2403
  return { error, loading, selectPackage };
2308
2404
  };
2309
2405
  var useAddUserInterestResource = () => {
2310
- const [addUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
2406
+ const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
2311
2407
  ADD_USER_INTEREST_RESOURCE_MUTATION,
2312
2408
  {
2313
2409
  awaitRefetchQueries: true,
@@ -2317,7 +2413,7 @@ var useAddUserInterestResource = () => {
2317
2413
  return { addUserInterestResource, error, loading };
2318
2414
  };
2319
2415
  var useRemoveUserInterestResource = () => {
2320
- const [removeUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
2416
+ const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
2321
2417
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
2322
2418
  {
2323
2419
  awaitRefetchQueries: true,
@@ -2327,7 +2423,7 @@ var useRemoveUserInterestResource = () => {
2327
2423
  return { error, loading, removeUserInterestResource };
2328
2424
  };
2329
2425
  var useAddUserGoingResource = () => {
2330
- const [addUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
2426
+ const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
2331
2427
  ADD_USER_GOING_RESOURCE_MUTATION,
2332
2428
  {
2333
2429
  awaitRefetchQueries: true,
@@ -2337,7 +2433,7 @@ var useAddUserGoingResource = () => {
2337
2433
  return { addUserGoingResource, error, loading };
2338
2434
  };
2339
2435
  var useRemoveUserGoingResource = () => {
2340
- const [removeUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
2436
+ const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
2341
2437
  REMOVE_USER_GOING_RESOURCE_MUTATION,
2342
2438
  {
2343
2439
  awaitRefetchQueries: true,
@@ -2347,7 +2443,7 @@ var useRemoveUserGoingResource = () => {
2347
2443
  return { error, loading, removeUserGoingResource };
2348
2444
  };
2349
2445
  var useAddUserPresentResource = () => {
2350
- const [addUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
2446
+ const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
2351
2447
  ADD_USER_PRESENT_RESOURCE_MUTATION,
2352
2448
  {
2353
2449
  awaitRefetchQueries: true,
@@ -2357,7 +2453,7 @@ var useAddUserPresentResource = () => {
2357
2453
  return { addUserPresentResource, error, loading };
2358
2454
  };
2359
2455
  var useRemoveUserPresentResource = () => {
2360
- const [removeUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
2456
+ const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
2361
2457
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
2362
2458
  {
2363
2459
  awaitRefetchQueries: true,
@@ -2368,37 +2464,37 @@ var useRemoveUserPresentResource = () => {
2368
2464
  };
2369
2465
 
2370
2466
  // src/graphql/hooks/user/hooksQuery.ts
2371
- var import_client42 = require("@apollo/client");
2467
+ var import_client43 = require("@apollo/client");
2372
2468
  var useGetUsers = () => {
2373
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USERS, {
2469
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USERS, {
2374
2470
  fetchPolicy: "network-only"
2375
2471
  });
2376
2472
  const users = data?.users;
2377
2473
  return { error, loading, refetch, users };
2378
2474
  };
2379
2475
  var useGetUser = (_id) => {
2380
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER, {
2476
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER, {
2381
2477
  variables: { _id }
2382
2478
  });
2383
2479
  const user = data?.user;
2384
2480
  return { error, loading, refetch, user };
2385
2481
  };
2386
2482
  var useGetUserEvents = () => {
2387
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_EVENTS, {
2483
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
2388
2484
  fetchPolicy: "network-only"
2389
2485
  });
2390
2486
  const userEvents = data?.userEvents;
2391
2487
  return { error, loading, refetch, userEvents };
2392
2488
  };
2393
2489
  var useGetUserVendors = () => {
2394
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_VENDORS, {
2490
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
2395
2491
  fetchPolicy: "network-only"
2396
2492
  });
2397
2493
  const userVendors = data?.userVendors;
2398
2494
  return { error, loading, refetch, userVendors };
2399
2495
  };
2400
2496
  var useGetUserActivities = () => {
2401
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_ACTIVITIES, {
2497
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
2402
2498
  fetchPolicy: "network-only"
2403
2499
  });
2404
2500
  const userActivities = {
@@ -2420,14 +2516,14 @@ var useGetUserActivities = () => {
2420
2516
  };
2421
2517
 
2422
2518
  // src/graphql/hooks/ad/hooksMutation.ts
2423
- var import_client45 = require("@apollo/client");
2519
+ var import_client46 = require("@apollo/client");
2424
2520
 
2425
2521
  // src/graphql/mutations/ad.ts
2426
- var import_client44 = require("@apollo/client");
2522
+ var import_client45 = require("@apollo/client");
2427
2523
 
2428
2524
  // src/graphql/queries/ad.ts
2429
- var import_client43 = require("@apollo/client");
2430
- var AD_FIELDS_FRAGMENT = import_client43.gql`
2525
+ var import_client44 = require("@apollo/client");
2526
+ var AD_FIELDS_FRAGMENT = import_client44.gql`
2431
2527
  fragment AdFields on AdType {
2432
2528
  _id
2433
2529
  active
@@ -2455,7 +2551,7 @@ var AD_FIELDS_FRAGMENT = import_client43.gql`
2455
2551
  }
2456
2552
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2457
2553
  `;
2458
- var GET_ADS = import_client43.gql`
2554
+ var GET_ADS = import_client44.gql`
2459
2555
  query getAds {
2460
2556
  ads {
2461
2557
  ...AdFields
@@ -2463,7 +2559,7 @@ var GET_ADS = import_client43.gql`
2463
2559
  }
2464
2560
  ${AD_FIELDS_FRAGMENT}
2465
2561
  `;
2466
- var GET_AD = import_client43.gql`
2562
+ var GET_AD = import_client44.gql`
2467
2563
  query getAd($_id: ID!) {
2468
2564
  ad(_id: $_id) {
2469
2565
  ...AdFields
@@ -2471,7 +2567,7 @@ var GET_AD = import_client43.gql`
2471
2567
  }
2472
2568
  ${AD_FIELDS_FRAGMENT}
2473
2569
  `;
2474
- var GET_ADS_BY_REGION = import_client43.gql`
2570
+ var GET_ADS_BY_REGION = import_client44.gql`
2475
2571
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
2476
2572
  adsByRegion(region: $region, status: $status) {
2477
2573
  ...AdFields
@@ -2481,7 +2577,7 @@ var GET_ADS_BY_REGION = import_client43.gql`
2481
2577
  `;
2482
2578
 
2483
2579
  // src/graphql/mutations/ad.ts
2484
- var CREATE_AD_MUTATION = import_client44.gql`
2580
+ var CREATE_AD_MUTATION = import_client45.gql`
2485
2581
  mutation createAd($input: AdInputType!) {
2486
2582
  createAd(input: $input) {
2487
2583
  ...AdFields
@@ -2489,7 +2585,7 @@ var CREATE_AD_MUTATION = import_client44.gql`
2489
2585
  }
2490
2586
  ${AD_FIELDS_FRAGMENT}
2491
2587
  `;
2492
- var UPDATE_AD_MUTATION = import_client44.gql`
2588
+ var UPDATE_AD_MUTATION = import_client45.gql`
2493
2589
  mutation updateAd($_id: ID!, $input: AdInputType!) {
2494
2590
  updateAd(_id: $_id, input: $input) {
2495
2591
  ...AdFields
@@ -2497,7 +2593,7 @@ var UPDATE_AD_MUTATION = import_client44.gql`
2497
2593
  }
2498
2594
  ${AD_FIELDS_FRAGMENT}
2499
2595
  `;
2500
- var DELETE_AD_MUTATION = import_client44.gql`
2596
+ var DELETE_AD_MUTATION = import_client45.gql`
2501
2597
  mutation deleteAd($_id: ID!) {
2502
2598
  deleteAd(_id: $_id)
2503
2599
  }
@@ -2505,7 +2601,7 @@ var DELETE_AD_MUTATION = import_client44.gql`
2505
2601
 
2506
2602
  // src/graphql/hooks/ad/hooksMutation.ts
2507
2603
  var useCreateAd = () => {
2508
- const [createAd, { loading, error }] = (0, import_client45.useMutation)(CREATE_AD_MUTATION, {
2604
+ const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
2509
2605
  awaitRefetchQueries: true,
2510
2606
  refetchQueries: [{ query: GET_ADS }]
2511
2607
  });
@@ -2516,7 +2612,7 @@ var useCreateAd = () => {
2516
2612
  };
2517
2613
  };
2518
2614
  var useUpdateAd = () => {
2519
- const [updateAd, { loading, error }] = (0, import_client45.useMutation)(UPDATE_AD_MUTATION, {
2615
+ const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
2520
2616
  awaitRefetchQueries: true,
2521
2617
  refetchQueries: [{ query: GET_ADS }]
2522
2618
  });
@@ -2527,7 +2623,7 @@ var useUpdateAd = () => {
2527
2623
  };
2528
2624
  };
2529
2625
  var useDeleteAd = () => {
2530
- const [deleteAd, { loading, error }] = (0, import_client45.useMutation)(DELETE_AD_MUTATION, {
2626
+ const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
2531
2627
  awaitRefetchQueries: true,
2532
2628
  refetchQueries: [{ query: GET_ADS }]
2533
2629
  });
@@ -2539,9 +2635,9 @@ var useDeleteAd = () => {
2539
2635
  };
2540
2636
 
2541
2637
  // src/graphql/hooks/ad/hooksQuery.ts
2542
- var import_client46 = require("@apollo/client");
2638
+ var import_client47 = require("@apollo/client");
2543
2639
  var useGetAds = () => {
2544
- const { data, loading, error, refetch } = (0, import_client46.useQuery)(
2640
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(
2545
2641
  GET_ADS,
2546
2642
  {
2547
2643
  fetchPolicy: "no-cache"
@@ -2555,7 +2651,7 @@ var useGetAds = () => {
2555
2651
  };
2556
2652
  };
2557
2653
  var useGetAd = (_id) => {
2558
- const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_AD, {
2654
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
2559
2655
  fetchPolicy: "no-cache",
2560
2656
  skip: !_id,
2561
2657
  variables: { _id }
@@ -2568,7 +2664,7 @@ var useGetAd = (_id) => {
2568
2664
  };
2569
2665
  };
2570
2666
  var useGetAdsByRegion = (region, status) => {
2571
- const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_ADS_BY_REGION, {
2667
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
2572
2668
  fetchPolicy: "no-cache",
2573
2669
  skip: !region,
2574
2670
  variables: { region, status }
@@ -2582,11 +2678,11 @@ var useGetAdsByRegion = (region, status) => {
2582
2678
  };
2583
2679
 
2584
2680
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
2585
- var import_client48 = require("@apollo/client");
2681
+ var import_client49 = require("@apollo/client");
2586
2682
 
2587
2683
  // src/graphql/mutations/resourceActivities.ts
2588
- var import_client47 = require("@apollo/client");
2589
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client47.gql`
2684
+ var import_client48 = require("@apollo/client");
2685
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
2590
2686
  mutation createResourceActivity($input: ResourceActivityInputType!) {
2591
2687
  createResourceActivity(input: $input)
2592
2688
  }
@@ -2594,18 +2690,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client47.gql`
2594
2690
 
2595
2691
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
2596
2692
  var useCreateResourceActivity = () => {
2597
- const [createResourceActivity, { loading, error }] = (0, import_client48.useMutation)(
2693
+ const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(
2598
2694
  CREATE_RESOURCE_ACTIVITY_MUTATION
2599
2695
  );
2600
2696
  return { createResourceActivity, error, loading };
2601
2697
  };
2602
2698
 
2603
2699
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
2604
- var import_client50 = require("@apollo/client");
2700
+ var import_client51 = require("@apollo/client");
2605
2701
 
2606
2702
  // src/graphql/queries/resourceActivities.ts
2607
- var import_client49 = require("@apollo/client");
2608
- var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client49.gql`
2703
+ var import_client50 = require("@apollo/client");
2704
+ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client50.gql`
2609
2705
  fragment ResourceActivitiesFields on ResourceActivitiesType {
2610
2706
  resourceId
2611
2707
  resourceType
@@ -2624,7 +2720,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client49.gql`
2624
2720
  }
2625
2721
  }
2626
2722
  `;
2627
- var GET_RESOURCE_ACTIVITIES = import_client49.gql`
2723
+ var GET_RESOURCE_ACTIVITIES = import_client50.gql`
2628
2724
  query getResourceActivities(
2629
2725
  $resourceType: ResourceTypeEnum!
2630
2726
  $resourceId: ID!
@@ -2638,7 +2734,7 @@ var GET_RESOURCE_ACTIVITIES = import_client49.gql`
2638
2734
 
2639
2735
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
2640
2736
  var useGetResourceActivities = (resourceId, resourceType) => {
2641
- const { data, loading, error, refetch } = (0, import_client50.useQuery)(GET_RESOURCE_ACTIVITIES, {
2737
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITIES, {
2642
2738
  fetchPolicy: "network-only",
2643
2739
  variables: { resourceId, resourceType }
2644
2740
  });
@@ -2651,11 +2747,11 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2651
2747
  };
2652
2748
 
2653
2749
  // src/graphql/hooks/stripe/hooksMutation.ts
2654
- var import_client52 = require("@apollo/client");
2750
+ var import_client53 = require("@apollo/client");
2655
2751
 
2656
2752
  // src/graphql/mutations/stripe.ts
2657
- var import_client51 = require("@apollo/client");
2658
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
2753
+ var import_client52 = require("@apollo/client");
2754
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
2659
2755
  mutation createCheckoutSession($planId: LicencesEnumType!) {
2660
2756
  createCheckoutSession(planId: $planId) {
2661
2757
  sessionId
@@ -2663,12 +2759,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
2663
2759
  }
2664
2760
  }
2665
2761
  `;
2666
- var CANCEL_SUBSCRIPTION_MUTATION = import_client51.gql`
2762
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
2667
2763
  mutation cancelSubscription {
2668
2764
  cancelSubscription
2669
2765
  }
2670
2766
  `;
2671
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
2767
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
2672
2768
  mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
2673
2769
  updateSubscriptionPlan(newPlanId: $newPlanId) {
2674
2770
  subscriptionId
@@ -2681,30 +2777,30 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
2681
2777
 
2682
2778
  // src/graphql/hooks/stripe/hooksMutation.ts
2683
2779
  var useCreateCheckoutSession = () => {
2684
- const [createCheckoutSession, { loading, error }] = (0, import_client52.useMutation)(
2780
+ const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(
2685
2781
  CREATE_CHECKOUT_SESSION_MUTATION
2686
2782
  );
2687
2783
  return { createCheckoutSession, error, loading };
2688
2784
  };
2689
2785
  var useCancelSubscription = () => {
2690
- const [cancelSubscription, { loading, error }] = (0, import_client52.useMutation)(
2786
+ const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(
2691
2787
  CANCEL_SUBSCRIPTION_MUTATION
2692
2788
  );
2693
2789
  return { cancelSubscription, error, loading };
2694
2790
  };
2695
2791
  var useUpdateSubscriptionPlan = () => {
2696
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client52.useMutation)(
2792
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(
2697
2793
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
2698
2794
  );
2699
2795
  return { error, loading, updateSubscriptionPlan };
2700
2796
  };
2701
2797
 
2702
2798
  // src/graphql/hooks/stripe/hooksQuery.ts
2703
- var import_client54 = require("@apollo/client");
2799
+ var import_client55 = require("@apollo/client");
2704
2800
 
2705
2801
  // src/graphql/queries/stripe.ts
2706
- var import_client53 = require("@apollo/client");
2707
- var GET_SUBSCRIPTION_STATUS = import_client53.gql`
2802
+ var import_client54 = require("@apollo/client");
2803
+ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
2708
2804
  query getSubscriptionStatus {
2709
2805
  getSubscriptionStatus {
2710
2806
  subscriptionId
@@ -2717,7 +2813,7 @@ var GET_SUBSCRIPTION_STATUS = import_client53.gql`
2717
2813
 
2718
2814
  // src/graphql/hooks/stripe/hooksQuery.ts
2719
2815
  var useGetSubscriptionStatus = () => {
2720
- const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_STATUS);
2816
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
2721
2817
  return {
2722
2818
  data: data?.getSubscriptionStatus,
2723
2819
  error,
@@ -2725,6 +2821,107 @@ var useGetSubscriptionStatus = () => {
2725
2821
  refetch
2726
2822
  };
2727
2823
  };
2824
+
2825
+ // src/graphql/hooks/partner/hooksMutation.ts
2826
+ var import_client57 = require("@apollo/client");
2827
+
2828
+ // src/graphql/mutations/partner.ts
2829
+ var import_client56 = require("@apollo/client");
2830
+ var CREATE_PARTNER_MUTATION = import_client56.gql`
2831
+ mutation createPartner($input: PartnerInputType!) {
2832
+ createPartner(input: $input) {
2833
+ ...PartnerFields
2834
+ }
2835
+ }
2836
+ ${PARTNER}
2837
+ `;
2838
+ var UPDATE_PARTNER_MUTATION = import_client56.gql`
2839
+ mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
2840
+ updatePartner(_id: $_id, input: $input) {
2841
+ ...PartnerFields
2842
+ }
2843
+ }
2844
+ ${PARTNER}
2845
+ `;
2846
+ var DELETE_PARTNER_MUTATION = import_client56.gql`
2847
+ mutation deletePartner($_id: ID!) {
2848
+ deletePartner(_id: $_id)
2849
+ }
2850
+ `;
2851
+
2852
+ // src/graphql/hooks/partner/hooksMutation.ts
2853
+ var useCreatePartner = () => {
2854
+ const [createPartner, { loading, error }] = (0, import_client57.useMutation)(
2855
+ CREATE_PARTNER_MUTATION,
2856
+ {
2857
+ awaitRefetchQueries: true,
2858
+ refetchQueries: [{ query: GET_USER_PARTNERS }]
2859
+ }
2860
+ );
2861
+ return { createPartner, error, loading };
2862
+ };
2863
+ var useUpdatePartner = () => {
2864
+ const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(
2865
+ UPDATE_PARTNER_MUTATION,
2866
+ {
2867
+ awaitRefetchQueries: true,
2868
+ refetchQueries: [{ query: GET_USER_PARTNERS }]
2869
+ }
2870
+ );
2871
+ return { error, loading, updatePartner };
2872
+ };
2873
+ var useDeletePartner = () => {
2874
+ const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(
2875
+ DELETE_PARTNER_MUTATION,
2876
+ {
2877
+ awaitRefetchQueries: true,
2878
+ refetchQueries: [{ query: GET_USER_PARTNERS }]
2879
+ }
2880
+ );
2881
+ return { deletePartner, error, loading };
2882
+ };
2883
+
2884
+ // src/graphql/hooks/partner/hooksQuery.ts
2885
+ var import_client58 = require("@apollo/client");
2886
+ var useGetPartners = () => {
2887
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
2888
+ fetchPolicy: "network-only"
2889
+ });
2890
+ const partners = data?.partners;
2891
+ return {
2892
+ error,
2893
+ loading,
2894
+ partners,
2895
+ refetch
2896
+ };
2897
+ };
2898
+ var useGetPartner = (_id) => {
2899
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNER, {
2900
+ fetchPolicy: "network-only",
2901
+ skip: !_id,
2902
+ variables: { _id }
2903
+ });
2904
+ const partner = data?.partner;
2905
+ return { error, loading, partner, refetch };
2906
+ };
2907
+ var useGetPartnersByRegion = (region) => {
2908
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
2909
+ fetchPolicy: "no-cache",
2910
+ skip: !region,
2911
+ variables: { region }
2912
+ });
2913
+ const partnersByRegion = data?.partnersByRegion;
2914
+ return { error, loading, partnersByRegion, refetch };
2915
+ };
2916
+ var useSearchPartners = (search, region) => {
2917
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
2918
+ fetchPolicy: "network-only",
2919
+ skip: search.length < 3,
2920
+ variables: { region, search }
2921
+ });
2922
+ const partnerSearch = data?.partnerSearch;
2923
+ return { error, loading, partnerSearch, refetch };
2924
+ };
2728
2925
  // Annotate the CommonJS export names for ESM import in node:
2729
2926
  0 && (module.exports = {
2730
2927
  useAddParticipantToChat,
@@ -2740,6 +2937,7 @@ var useGetSubscriptionStatus = () => {
2740
2937
  useCreateCheckoutSession,
2741
2938
  useCreateEvent,
2742
2939
  useCreateEventInfo,
2940
+ useCreatePartner,
2743
2941
  useCreatePoster,
2744
2942
  useCreatePushToken,
2745
2943
  useCreateRelation,
@@ -2753,6 +2951,7 @@ var useGetSubscriptionStatus = () => {
2753
2951
  useDeleteChat,
2754
2952
  useDeleteEvent,
2755
2953
  useDeleteNotification,
2954
+ useDeletePartner,
2756
2955
  useDeleteRelation,
2757
2956
  useDeleteTester,
2758
2957
  useDeleteUser,
@@ -2770,6 +2969,9 @@ var useGetSubscriptionStatus = () => {
2770
2969
  useGetEventsNearMe,
2771
2970
  useGetNotificationCount,
2772
2971
  useGetNotificationCountSubscription,
2972
+ useGetPartner,
2973
+ useGetPartners,
2974
+ useGetPartnersByRegion,
2773
2975
  useGetRelation,
2774
2976
  useGetRelationByEventAndVendor,
2775
2977
  useGetResourceActivities,
@@ -2804,12 +3006,14 @@ var useGetSubscriptionStatus = () => {
2804
3006
  useRequestPasswordReset,
2805
3007
  useResetPassword,
2806
3008
  useSearchEvents,
3009
+ useSearchPartners,
2807
3010
  useSearchVendors,
2808
3011
  useSelectPackage,
2809
3012
  useSendChatMessage,
2810
3013
  useUpdateAd,
2811
3014
  useUpdateEvent,
2812
3015
  useUpdateEventInfo,
3016
+ useUpdatePartner,
2813
3017
  useUpdateRelation,
2814
3018
  useUpdateSubscriptionPlan,
2815
3019
  useUpdateTester,