@timardex/cluemart-shared 1.7.90 → 2.0.0

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 (67) hide show
  1. package/dist/{ad-BX_Da-0Q.d.ts → ad-C7jlZyUd.d.ts} +2 -2
  2. package/dist/{ad-MA6buSLw.d.mts → ad-tNoTBv3n.d.mts} +2 -2
  3. package/dist/{affiliate-Cb8BLoQc.d.mts → affiliate-BL1ZN-4t.d.mts} +2 -2
  4. package/dist/{affiliate-DXpSgV4o.d.ts → affiliate-DStyY84o.d.ts} +2 -2
  5. package/dist/auth/index.cjs +18 -8
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{billingCatalog-Bca0IZG_.d.mts → billingCatalog-DDAU9BWV.d.mts} +1 -1
  11. package/dist/{billingCatalog-Rh9yvue3.d.ts → billingCatalog-oWAfZX95.d.ts} +1 -1
  12. package/dist/chunk-7DQBUZXY.mjs +41 -0
  13. package/dist/chunk-7DQBUZXY.mjs.map +1 -0
  14. package/dist/{chunk-TD52IH52.mjs → chunk-JJQL6LZE.mjs} +1 -1
  15. package/dist/chunk-JJQL6LZE.mjs.map +1 -0
  16. package/dist/{chunk-D3U4LBOQ.mjs → chunk-L3SNS6OJ.mjs} +2 -2
  17. package/dist/{chunk-GA6E5NK3.mjs → chunk-OUWKLNHZ.mjs} +21 -23
  18. package/dist/chunk-OUWKLNHZ.mjs.map +1 -0
  19. package/dist/{chunk-6VTX7IPF.mjs → chunk-XPUYQ7GB.mjs} +150 -86
  20. package/dist/chunk-XPUYQ7GB.mjs.map +1 -0
  21. package/dist/{contactUs-TEAbhwp9.d.mts → contactUs-BYm-iDIH.d.mts} +1 -1
  22. package/dist/{contactUs-Dm-0Qua3.d.ts → contactUs-_BHRXUrv.d.ts} +1 -1
  23. package/dist/formFields/index.cjs.map +1 -1
  24. package/dist/formFields/index.d.mts +1 -1
  25. package/dist/formFields/index.d.ts +1 -1
  26. package/dist/formFields/index.mjs +3 -2
  27. package/dist/{global-CDYmiqmd.d.mts → global-C7-KDYqg.d.mts} +6 -3
  28. package/dist/{global-DTXnm4Ok.d.ts → global-D_et_d2Y.d.ts} +6 -3
  29. package/dist/graphql/index.cjs +389 -290
  30. package/dist/graphql/index.cjs.map +1 -1
  31. package/dist/graphql/index.d.mts +59 -70
  32. package/dist/graphql/index.d.ts +59 -70
  33. package/dist/graphql/index.mjs +17 -14
  34. package/dist/hooks/index.cjs +233 -199
  35. package/dist/hooks/index.cjs.map +1 -1
  36. package/dist/hooks/index.d.mts +5 -5
  37. package/dist/hooks/index.d.ts +5 -5
  38. package/dist/hooks/index.mjs +5 -4
  39. package/dist/hooks/index.mjs.map +1 -1
  40. package/dist/index.cjs +398 -290
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.mts +93 -71
  43. package/dist/index.d.ts +93 -71
  44. package/dist/index.mjs +357 -254
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/map/index.d.mts +1 -1
  47. package/dist/map/index.d.ts +1 -1
  48. package/dist/{resourceActivities-e3GkUqTN.d.mts → resourceActivities-BvejCLh9.d.mts} +2 -2
  49. package/dist/{resourceActivities-CAr2chXT.d.ts → resourceActivities-Smsl03Je.d.ts} +2 -2
  50. package/dist/sharing/index.d.mts +1 -1
  51. package/dist/sharing/index.d.ts +1 -1
  52. package/dist/types/index.cjs.map +1 -1
  53. package/dist/types/index.d.mts +8 -8
  54. package/dist/types/index.d.ts +8 -8
  55. package/dist/types/index.mjs +1 -1
  56. package/dist/{user-D6Mt35k0.d.ts → user-BA7TT2yB.d.mts} +20 -6
  57. package/dist/{user-BTzwLwJl.d.mts → user-nHjaLZoG.d.ts} +20 -6
  58. package/dist/utils/index.cjs +42 -0
  59. package/dist/utils/index.cjs.map +1 -1
  60. package/dist/utils/index.d.mts +21 -5
  61. package/dist/utils/index.d.ts +21 -5
  62. package/dist/utils/index.mjs +12 -2
  63. package/package.json +4 -1
  64. package/dist/chunk-6VTX7IPF.mjs.map +0 -1
  65. package/dist/chunk-GA6E5NK3.mjs.map +0 -1
  66. package/dist/chunk-TD52IH52.mjs.map +0 -1
  67. /package/dist/{chunk-D3U4LBOQ.mjs.map → chunk-L3SNS6OJ.mjs.map} +0 -0
@@ -22,15 +22,21 @@ var graphql_exports = {};
22
22
  __export(graphql_exports, {
23
23
  ACTIVATE_VENDOR_CLAIM_MUTATION: () => ACTIVATE_VENDOR_CLAIM_MUTATION,
24
24
  GET_EVENT: () => GET_EVENT,
25
+ GET_EVENTS: () => GET_EVENTS,
25
26
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
26
27
  GET_EVENT_INFO: () => GET_EVENT_INFO,
27
28
  GET_OWNED_EVENT: () => GET_OWNED_EVENT,
28
29
  GET_PARTNER: () => GET_PARTNER,
30
+ GET_PARTNERS: () => GET_PARTNERS,
29
31
  GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
30
32
  GET_POST: () => GET_POST,
33
+ GET_POSTS: () => GET_POSTS,
34
+ GET_POSTS_BY_TYPE: () => GET_POSTS_BY_TYPE,
31
35
  GET_POST_BY_SLUG: () => GET_POST_BY_SLUG,
32
36
  GET_RESOURCE_CONNECTIONS: () => GET_RESOURCE_CONNECTIONS,
37
+ GET_USERS: () => GET_USERS,
33
38
  GET_VENDOR: () => GET_VENDOR,
39
+ GET_VENDORS: () => GET_VENDORS,
34
40
  GET_VENDOR_BY_SLUG: () => GET_VENDOR_BY_SLUG,
35
41
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
36
42
  MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
@@ -99,7 +105,6 @@ __export(graphql_exports, {
99
105
  useGetEventByPlaceId: () => useGetEventByPlaceId,
100
106
  useGetEventInfo: () => useGetEventInfo,
101
107
  useGetEventRelations: () => useGetEventRelations,
102
- useGetEvents: () => useGetEvents,
103
108
  useGetEventsByRegion: () => useGetEventsByRegion,
104
109
  useGetEventsNearMe: () => useGetEventsNearMe,
105
110
  useGetGame: () => useGetGame,
@@ -109,11 +114,8 @@ __export(graphql_exports, {
109
114
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
110
115
  useGetOwnedEvent: () => useGetOwnedEvent,
111
116
  useGetPartner: () => useGetPartner,
112
- useGetPartners: () => useGetPartners,
113
117
  useGetPartnersByRegion: () => useGetPartnersByRegion,
114
118
  useGetPost: () => useGetPost,
115
- useGetPosts: () => useGetPosts,
116
- useGetPostsByType: () => useGetPostsByType,
117
119
  useGetPrivateChats: () => useGetPrivateChats,
118
120
  useGetRelation: () => useGetRelation,
119
121
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
@@ -136,12 +138,10 @@ __export(graphql_exports, {
136
138
  useGetUserPartners: () => useGetUserPartners,
137
139
  useGetUserResources: () => useGetUserResources,
138
140
  useGetUserVendors: () => useGetUserVendors,
139
- useGetUsers: () => useGetUsers,
140
141
  useGetUsersByPromoCode: () => useGetUsersByPromoCode,
141
142
  useGetVendor: () => useGetVendor,
142
143
  useGetVendorInfo: () => useGetVendorInfo,
143
144
  useGetVendorRelations: () => useGetVendorRelations,
144
- useGetVendors: () => useGetVendors,
145
145
  useGetVendorsByRegion: () => useGetVendorsByRegion,
146
146
  useLeaveGame: () => useLeaveGame,
147
147
  useLogin: () => useLogin,
@@ -150,6 +150,7 @@ __export(graphql_exports, {
150
150
  useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
151
151
  useMarkNotificationRead: () => useMarkNotificationRead,
152
152
  useMyPendingVendorClaim: () => useMyPendingVendorClaim,
153
+ usePaginatedList: () => usePaginatedList,
153
154
  useRedeemAffiliateReward: () => useRedeemAffiliateReward,
154
155
  useRedeemReward: () => useRedeemReward,
155
156
  useRefreshToken: () => useRefreshToken,
@@ -343,12 +344,19 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
343
344
  `;
344
345
  var STRIPE_FIELDS_FRAGMENT = import_client.gql`
345
346
  fragment StripeSubscriptionFields on StripeSubscriptionType {
347
+ billingPeriod
348
+ cancelAtPeriodEnd
346
349
  customerId
347
350
  subscriptionId
348
351
  status
349
352
  currentPlan
350
353
  startDate
351
354
  endDate
355
+ pendingPlan
356
+ pendingBillingPeriod
357
+ pendingChangeEffectiveAt
358
+ priceId
359
+ scheduleId
352
360
  }
353
361
  `;
354
362
  var USER_FIELDS_FRAGMENT = import_client.gql`
@@ -627,8 +635,11 @@ var EVENT = import_client2.gql`
627
635
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
628
636
  `;
629
637
  var GET_EVENTS = import_client2.gql`
630
- query getEvents($dateStatus: EventDateStatusEnumType) {
631
- events(dateStatus: $dateStatus) {
638
+ query getEvents(
639
+ $dateStatus: EventDateStatusEnumType
640
+ $options: PaginationOptions
641
+ ) {
642
+ events(dateStatus: $dateStatus, options: $options) {
632
643
  ...EventListItemFields
633
644
  }
634
645
  }
@@ -933,8 +944,8 @@ var UNREGISTERED_VENDOR = import_client3.gql`
933
944
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
934
945
  `;
935
946
  var GET_VENDORS = import_client3.gql`
936
- query getVendors {
937
- vendors {
947
+ query getVendors($options: PaginationOptions) {
948
+ vendors(options: $options) {
938
949
  ...VendorFields
939
950
  }
940
951
  }
@@ -1177,8 +1188,8 @@ var PARTNER = import_client5.gql`
1177
1188
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1178
1189
  `;
1179
1190
  var GET_PARTNERS = import_client5.gql`
1180
- query getPartners {
1181
- partners {
1191
+ query getPartners($options: PaginationOptions) {
1192
+ partners(options: $options) {
1182
1193
  ...PartnerFields
1183
1194
  }
1184
1195
  }
@@ -1394,8 +1405,8 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
1394
1405
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1395
1406
  `;
1396
1407
  var GET_POSTS = import_client8.gql`
1397
- query getPosts {
1398
- posts {
1408
+ query getPosts($options: PaginationOptions) {
1409
+ posts(options: $options) {
1399
1410
  ...PostFields
1400
1411
  }
1401
1412
  }
@@ -1410,38 +1421,142 @@ var GET_POST = import_client8.gql`
1410
1421
  ${POST_FIELDS_FRAGMENT}
1411
1422
  `;
1412
1423
  var GET_POSTS_BY_TYPE = import_client8.gql`
1413
- query getPostsByType($postType: PostTypeEnum!) {
1414
- postsByType(postType: $postType) {
1424
+ query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
1425
+ postsByType(postType: $postType, options: $options) {
1415
1426
  ...PostFields
1416
1427
  }
1417
1428
  }
1418
1429
  ${POST_FIELDS_FRAGMENT}
1419
1430
  `;
1420
1431
 
1421
- // src/graphql/queries/shareSlug.ts
1432
+ // src/graphql/queries/user.ts
1422
1433
  var import_client9 = require("@apollo/client");
1423
- var GET_EVENT_BY_SLUG = import_client9.gql`
1434
+ var GET_USERS = import_client9.gql`
1435
+ query getUsers($options: PaginationOptions) {
1436
+ users(options: $options) {
1437
+ ...UserFields
1438
+ }
1439
+ }
1440
+ ${USER_FIELDS_FRAGMENT}
1441
+ `;
1442
+ var GET_USER = import_client9.gql`
1443
+ query getUser($_id: ID!) {
1444
+ user(_id: $_id) {
1445
+ ...UserFields
1446
+ }
1447
+ }
1448
+ ${USER_FIELDS_FRAGMENT}
1449
+ `;
1450
+ var GET_USER_EVENTS = import_client9.gql`
1451
+ query getUserEvents {
1452
+ userEvents {
1453
+ ...EventFields
1454
+ }
1455
+ }
1456
+ ${EVENT}
1457
+ `;
1458
+ var GET_USER_VENDORS = import_client9.gql`
1459
+ query getUserVendors {
1460
+ userVendors {
1461
+ ...VendorFields
1462
+ }
1463
+ }
1464
+ ${VENDOR}
1465
+ `;
1466
+ var GET_USER_PARTNERS = import_client9.gql`
1467
+ query getUserPartners {
1468
+ userPartners {
1469
+ ...PartnerFields
1470
+ }
1471
+ }
1472
+ ${PARTNER}
1473
+ `;
1474
+ var GET_USER_ACTIVITIES = import_client9.gql`
1475
+ query getUserActivities {
1476
+ userActivities {
1477
+ favourites {
1478
+ events {
1479
+ ...EventListItemFields
1480
+ }
1481
+ partners {
1482
+ ...PartnerFields
1483
+ }
1484
+ vendors {
1485
+ ...VendorFields
1486
+ }
1487
+ }
1488
+ going {
1489
+ events {
1490
+ ...EventListItemFields
1491
+ }
1492
+ }
1493
+ interested {
1494
+ events {
1495
+ ...EventListItemFields
1496
+ }
1497
+ }
1498
+ present {
1499
+ events {
1500
+ ...EventListItemFields
1501
+ }
1502
+ }
1503
+ }
1504
+ }
1505
+ ${EVENT_LIST_ITEM}
1506
+ ${VENDOR}
1507
+ ${PARTNER}
1508
+ `;
1509
+ var GET_USER_RESOURCES = import_client9.gql`
1510
+ query getUserResources($userId: ID!) {
1511
+ userResources(userId: $userId) {
1512
+ resources {
1513
+ _id
1514
+ logo
1515
+ name
1516
+ resourceType
1517
+ }
1518
+ }
1519
+ }
1520
+ `;
1521
+ var GET_USERS_BY_PROMO_CODE = import_client9.gql`
1522
+ query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
1523
+ usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
1524
+ active
1525
+ avatar {
1526
+ ...ResourceImageFields
1527
+ }
1528
+ deletedAt
1529
+ nickName
1530
+ userId
1531
+ }
1532
+ }
1533
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1534
+ `;
1535
+
1536
+ // src/graphql/queries/shareSlug.ts
1537
+ var import_client10 = require("@apollo/client");
1538
+ var GET_EVENT_BY_SLUG = import_client10.gql`
1424
1539
  query getEventBySlug($slug: String!) {
1425
1540
  eventBySlug(slug: $slug) {
1426
1541
  _id
1427
1542
  }
1428
1543
  }
1429
1544
  `;
1430
- var GET_VENDOR_BY_SLUG = import_client9.gql`
1545
+ var GET_VENDOR_BY_SLUG = import_client10.gql`
1431
1546
  query getVendorBySlug($slug: String!) {
1432
1547
  vendorBySlug(slug: $slug) {
1433
1548
  _id
1434
1549
  }
1435
1550
  }
1436
1551
  `;
1437
- var GET_PARTNER_BY_SLUG = import_client9.gql`
1552
+ var GET_PARTNER_BY_SLUG = import_client10.gql`
1438
1553
  query getPartnerBySlug($slug: String!) {
1439
1554
  partnerBySlug(slug: $slug) {
1440
1555
  _id
1441
1556
  }
1442
1557
  }
1443
1558
  `;
1444
- var GET_POST_BY_SLUG = import_client9.gql`
1559
+ var GET_POST_BY_SLUG = import_client10.gql`
1445
1560
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
1446
1561
  postBySlug(slug: $slug, postType: $postType) {
1447
1562
  _id
@@ -1450,8 +1565,8 @@ var GET_POST_BY_SLUG = import_client9.gql`
1450
1565
  `;
1451
1566
 
1452
1567
  // src/graphql/queries/relation.ts
1453
- var import_client10 = require("@apollo/client");
1454
- var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1568
+ var import_client11 = require("@apollo/client");
1569
+ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
1455
1570
  fragment RelationFields on RelationType {
1456
1571
  _id
1457
1572
  active
@@ -1468,7 +1583,7 @@ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
1468
1583
  }
1469
1584
  ${RELATION_DATES_FRAGMENT}
1470
1585
  `;
1471
- var GET_RELATION = import_client10.gql`
1586
+ var GET_RELATION = import_client11.gql`
1472
1587
  query getRelation($_id: ID!) {
1473
1588
  relation(_id: $_id) {
1474
1589
  ...RelationFields
@@ -1476,7 +1591,7 @@ var GET_RELATION = import_client10.gql`
1476
1591
  }
1477
1592
  ${RELATION_FIELDS_FRAGMENT}
1478
1593
  `;
1479
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1594
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
1480
1595
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1481
1596
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1482
1597
  ...RelationFields
@@ -1484,7 +1599,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
1484
1599
  }
1485
1600
  ${RELATION_FIELDS_FRAGMENT}
1486
1601
  `;
1487
- var GET_EVENT_RELATIONS = import_client10.gql`
1602
+ var GET_EVENT_RELATIONS = import_client11.gql`
1488
1603
  query getEventRelations($eventId: ID!) {
1489
1604
  eventRelations(eventId: $eventId) {
1490
1605
  ...RelationFields
@@ -1492,7 +1607,7 @@ var GET_EVENT_RELATIONS = import_client10.gql`
1492
1607
  }
1493
1608
  ${RELATION_FIELDS_FRAGMENT}
1494
1609
  `;
1495
- var GET_VENDOR_RELATIONS = import_client10.gql`
1610
+ var GET_VENDOR_RELATIONS = import_client11.gql`
1496
1611
  query getVendorRelations($vendorId: ID!) {
1497
1612
  vendorRelations(vendorId: $vendorId) {
1498
1613
  ...RelationFields
@@ -1500,7 +1615,7 @@ var GET_VENDOR_RELATIONS = import_client10.gql`
1500
1615
  }
1501
1616
  ${RELATION_FIELDS_FRAGMENT}
1502
1617
  `;
1503
- var GET_RESOURCE_CONNECTIONS = import_client10.gql`
1618
+ var GET_RESOURCE_CONNECTIONS = import_client11.gql`
1504
1619
  query getResourceConnections(
1505
1620
  $resourceId: ID!
1506
1621
  $resourceType: ResourceTypeEnum!
@@ -1525,11 +1640,11 @@ function toGraphqlQueryString(query) {
1525
1640
  }
1526
1641
 
1527
1642
  // src/graphql/hooks/admin/hooksMutation.ts
1528
- var import_client12 = require("@apollo/client");
1643
+ var import_client13 = require("@apollo/client");
1529
1644
 
1530
1645
  // src/graphql/mutations/admin.ts
1531
- var import_client11 = require("@apollo/client");
1532
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1646
+ var import_client12 = require("@apollo/client");
1647
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client12.gql`
1533
1648
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
1534
1649
  adminUpdateResourceType(input: $input) {
1535
1650
  data {
@@ -1541,7 +1656,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
1541
1656
  }
1542
1657
  }
1543
1658
  `;
1544
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1659
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client12.gql`
1545
1660
  mutation adminResendUserVerificationEmail($userId: ID!) {
1546
1661
  adminResendUserVerificationEmail(userId: $userId) {
1547
1662
  data
@@ -1549,7 +1664,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
1549
1664
  }
1550
1665
  }
1551
1666
  `;
1552
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1667
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
1553
1668
  mutation adminPermanentlyDeleteResource(
1554
1669
  $resourceId: ID!
1555
1670
  $resourceType: ResourceTypeEnum!
@@ -1566,7 +1681,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
1566
1681
 
1567
1682
  // src/graphql/hooks/admin/hooksMutation.ts
1568
1683
  var useAdminUpdateResourceType = () => {
1569
- const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1684
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
1570
1685
  awaitRefetchQueries: true,
1571
1686
  refetchQueries: (mutationResult) => {
1572
1687
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -1589,7 +1704,7 @@ var useAdminUpdateResourceType = () => {
1589
1704
  };
1590
1705
  };
1591
1706
  var useAdminResendUserVerificationEmail = () => {
1592
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1707
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client13.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
1593
1708
  return {
1594
1709
  adminResendUserVerificationEmail,
1595
1710
  error,
@@ -1597,7 +1712,7 @@ var useAdminResendUserVerificationEmail = () => {
1597
1712
  };
1598
1713
  };
1599
1714
  var useAdminPermanentlyDeleteResource = () => {
1600
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1715
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client13.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
1601
1716
  return {
1602
1717
  adminPermanentlyDeleteResource,
1603
1718
  error,
@@ -1606,11 +1721,11 @@ var useAdminPermanentlyDeleteResource = () => {
1606
1721
  };
1607
1722
 
1608
1723
  // src/graphql/hooks/auth.ts
1609
- var import_client14 = require("@apollo/client");
1724
+ var import_client15 = require("@apollo/client");
1610
1725
 
1611
1726
  // src/graphql/mutations/auth.ts
1612
- var import_client13 = require("@apollo/client");
1613
- var REGISTER_MUTATION = import_client13.gql`
1727
+ var import_client14 = require("@apollo/client");
1728
+ var REGISTER_MUTATION = import_client14.gql`
1614
1729
  mutation register($input: RegisterInputType!) {
1615
1730
  register(input: $input) {
1616
1731
  data {
@@ -1625,7 +1740,7 @@ var REGISTER_MUTATION = import_client13.gql`
1625
1740
  }
1626
1741
  ${USER_FIELDS_FRAGMENT}
1627
1742
  `;
1628
- var LOGIN_MUTATION = import_client13.gql`
1743
+ var LOGIN_MUTATION = import_client14.gql`
1629
1744
  mutation login($input: LoginInputType!) {
1630
1745
  login(input: $input) {
1631
1746
  data {
@@ -1640,7 +1755,7 @@ var LOGIN_MUTATION = import_client13.gql`
1640
1755
  }
1641
1756
  ${USER_FIELDS_FRAGMENT}
1642
1757
  `;
1643
- var LOGOUT_MUTATION = import_client13.gql`
1758
+ var LOGOUT_MUTATION = import_client14.gql`
1644
1759
  mutation logout {
1645
1760
  logout {
1646
1761
  data
@@ -1648,7 +1763,7 @@ var LOGOUT_MUTATION = import_client13.gql`
1648
1763
  }
1649
1764
  }
1650
1765
  `;
1651
- var REFRESH_TOKEN_MUTATION = import_client13.gql`
1766
+ var REFRESH_TOKEN_MUTATION = import_client14.gql`
1652
1767
  mutation refreshToken($input: RefreshTokenInputType!) {
1653
1768
  refreshToken(input: $input) {
1654
1769
  data {
@@ -1659,7 +1774,7 @@ var REFRESH_TOKEN_MUTATION = import_client13.gql`
1659
1774
  }
1660
1775
  }
1661
1776
  `;
1662
- var RESET_PASSWORD_MUTATION = import_client13.gql`
1777
+ var RESET_PASSWORD_MUTATION = import_client14.gql`
1663
1778
  mutation resetPassword($input: ResetPasswordInputType!) {
1664
1779
  resetPassword(input: $input) {
1665
1780
  data
@@ -1667,7 +1782,7 @@ var RESET_PASSWORD_MUTATION = import_client13.gql`
1667
1782
  }
1668
1783
  }
1669
1784
  `;
1670
- var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1785
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client14.gql`
1671
1786
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
1672
1787
  requestPasswordReset(input: $input) {
1673
1788
  data
@@ -1675,7 +1790,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
1675
1790
  }
1676
1791
  }
1677
1792
  `;
1678
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1793
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client14.gql`
1679
1794
  mutation validateVerificationToken(
1680
1795
  $input: ValidateVerificationTokenInputType!
1681
1796
  ) {
@@ -1688,43 +1803,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
1688
1803
 
1689
1804
  // src/graphql/hooks/auth.ts
1690
1805
  var useRegister = () => {
1691
- const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
1806
+ const [register, { loading, error }] = (0, import_client15.useMutation)(REGISTER_MUTATION);
1692
1807
  return { error, loading, register };
1693
1808
  };
1694
1809
  var useLogin = () => {
1695
- const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
1810
+ const [login, { loading, error }] = (0, import_client15.useMutation)(LOGIN_MUTATION);
1696
1811
  return { error, loading, login };
1697
1812
  };
1698
1813
  var useLogout = () => {
1699
- const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
1814
+ const [logout, { loading, error }] = (0, import_client15.useMutation)(LOGOUT_MUTATION);
1700
1815
  return { error, loading, logout };
1701
1816
  };
1702
1817
  var useRefreshToken = () => {
1703
- const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
1818
+ const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
1704
1819
  return { error, loading, refreshToken };
1705
1820
  };
1706
1821
  var useRequestPasswordReset = () => {
1707
- const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1822
+ const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1708
1823
  return { error, loading, requestPasswordReset };
1709
1824
  };
1710
1825
  var useValidateVerificationToken = () => {
1711
- const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1826
+ const [validateVerificationToken, { loading, error }] = (0, import_client15.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
1712
1827
  return { error, loading, validateVerificationToken };
1713
1828
  };
1714
1829
  var useResetPassword = () => {
1715
- const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
1830
+ const [resetPassword, { loading, error }] = (0, import_client15.useMutation)(RESET_PASSWORD_MUTATION);
1716
1831
  return { error, loading, resetPassword };
1717
1832
  };
1718
1833
 
1719
1834
  // src/graphql/hooks/chat/hooksMutation.ts
1720
- var import_client17 = require("@apollo/client");
1835
+ var import_client18 = require("@apollo/client");
1721
1836
 
1722
1837
  // src/graphql/mutations/chat.ts
1723
- var import_client16 = require("@apollo/client");
1838
+ var import_client17 = require("@apollo/client");
1724
1839
 
1725
1840
  // src/graphql/queries/chat.ts
1726
- var import_client15 = require("@apollo/client");
1727
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1841
+ var import_client16 = require("@apollo/client");
1842
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client16.gql`
1728
1843
  fragment ChatMessageFields on ChatMessageType {
1729
1844
  _id
1730
1845
  content
@@ -1747,7 +1862,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
1747
1862
  updatedAt
1748
1863
  }
1749
1864
  `;
1750
- var CHAT_PARTICIPANT = import_client15.gql`
1865
+ var CHAT_PARTICIPANT = import_client16.gql`
1751
1866
  fragment ChatParticipantFields on ChatParticipantType {
1752
1867
  active
1753
1868
  userAvatar
@@ -1756,7 +1871,7 @@ var CHAT_PARTICIPANT = import_client15.gql`
1756
1871
  userName
1757
1872
  }
1758
1873
  `;
1759
- var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1874
+ var CHAT_FIELDS_FRAGMENT = import_client16.gql`
1760
1875
  fragment ChatFields on ChatType {
1761
1876
  _id
1762
1877
  active
@@ -1777,7 +1892,7 @@ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
1777
1892
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1778
1893
  ${CHAT_PARTICIPANT}
1779
1894
  `;
1780
- var CHAT = import_client15.gql`
1895
+ var CHAT = import_client16.gql`
1781
1896
  query chat($_id: ID!) {
1782
1897
  chat(_id: $_id) {
1783
1898
  ...ChatFields
@@ -1785,7 +1900,7 @@ var CHAT = import_client15.gql`
1785
1900
  }
1786
1901
  ${CHAT_FIELDS_FRAGMENT}
1787
1902
  `;
1788
- var PRIVATE_CHATS = import_client15.gql`
1903
+ var PRIVATE_CHATS = import_client16.gql`
1789
1904
  query privateChats {
1790
1905
  privateChats {
1791
1906
  ...ChatFields
@@ -1793,7 +1908,7 @@ var PRIVATE_CHATS = import_client15.gql`
1793
1908
  }
1794
1909
  ${CHAT_FIELDS_FRAGMENT}
1795
1910
  `;
1796
- var RELATION_CHATS = import_client15.gql`
1911
+ var RELATION_CHATS = import_client16.gql`
1797
1912
  query relationChats {
1798
1913
  relationChats {
1799
1914
  ...ChatFields
@@ -1801,7 +1916,7 @@ var RELATION_CHATS = import_client15.gql`
1801
1916
  }
1802
1917
  ${CHAT_FIELDS_FRAGMENT}
1803
1918
  `;
1804
- var GET_CHATS_BY_REGION = import_client15.gql`
1919
+ var GET_CHATS_BY_REGION = import_client16.gql`
1805
1920
  query getChatsByRegion($region: String!) {
1806
1921
  chatsByRegion(region: $region) {
1807
1922
  ...ChatFields
@@ -1809,7 +1924,7 @@ var GET_CHATS_BY_REGION = import_client15.gql`
1809
1924
  }
1810
1925
  ${CHAT_FIELDS_FRAGMENT}
1811
1926
  `;
1812
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1927
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client16.gql`
1813
1928
  fragment ChatReportFields on ReportChatUserType {
1814
1929
  _id
1815
1930
  chatId
@@ -1824,7 +1939,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
1824
1939
  updatedAt
1825
1940
  }
1826
1941
  `;
1827
- var GET_REPORTED_CHAT_USERS = import_client15.gql`
1942
+ var GET_REPORTED_CHAT_USERS = import_client16.gql`
1828
1943
  query getReportedChatUsers {
1829
1944
  reportedChatUsers {
1830
1945
  ...ChatReportFields
@@ -1834,7 +1949,7 @@ var GET_REPORTED_CHAT_USERS = import_client15.gql`
1834
1949
  `;
1835
1950
 
1836
1951
  // src/graphql/mutations/chat.ts
1837
- var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1952
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client17.gql`
1838
1953
  mutation createPrivateChat($userId: ID!) {
1839
1954
  createPrivateChat(userId: $userId) {
1840
1955
  data {
@@ -1845,7 +1960,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
1845
1960
  }
1846
1961
  ${CHAT_FIELDS_FRAGMENT}
1847
1962
  `;
1848
- var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1963
+ var SEND_CHAT_MESSAGE_MUTATION = import_client17.gql`
1849
1964
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1850
1965
  sendChatMessage(_id: $_id, input: $input) {
1851
1966
  data {
@@ -1856,7 +1971,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
1856
1971
  }
1857
1972
  ${CHAT_FIELDS_FRAGMENT}
1858
1973
  `;
1859
- var DELETE_CHAT_MUTATION = import_client16.gql`
1974
+ var DELETE_CHAT_MUTATION = import_client17.gql`
1860
1975
  mutation deleteChat($_id: ID!) {
1861
1976
  deleteChat(_id: $_id) {
1862
1977
  data
@@ -1864,7 +1979,7 @@ var DELETE_CHAT_MUTATION = import_client16.gql`
1864
1979
  }
1865
1980
  }
1866
1981
  `;
1867
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1982
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client17.gql`
1868
1983
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
1869
1984
  addParticipantToChat(chatId: $chatId, userId: $userId) {
1870
1985
  data {
@@ -1875,7 +1990,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
1875
1990
  }
1876
1991
  ${CHAT_FIELDS_FRAGMENT}
1877
1992
  `;
1878
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1993
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client17.gql`
1879
1994
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
1880
1995
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
1881
1996
  data {
@@ -1886,7 +2001,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
1886
2001
  }
1887
2002
  }
1888
2003
  `;
1889
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
2004
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client17.gql`
1890
2005
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
1891
2006
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
1892
2007
  data {
@@ -1897,7 +2012,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
1897
2012
  }
1898
2013
  ${CHAT_FIELDS_FRAGMENT}
1899
2014
  `;
1900
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
2015
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client17.gql`
1901
2016
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
1902
2017
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
1903
2018
  data {
@@ -1908,7 +2023,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
1908
2023
  }
1909
2024
  ${CHAT_FIELDS_FRAGMENT}
1910
2025
  `;
1911
- var REPORT_CHAT_USER_MUTATION = import_client16.gql`
2026
+ var REPORT_CHAT_USER_MUTATION = import_client17.gql`
1912
2027
  mutation reportChatUser($input: ReportChatUserInputType!) {
1913
2028
  reportChatUser(input: $input) {
1914
2029
  data {
@@ -1922,14 +2037,14 @@ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
1922
2037
 
1923
2038
  // src/graphql/hooks/chat/hooksMutation.ts
1924
2039
  var useCreatePrivateChat = () => {
1925
- const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
2040
+ const [createPrivateChat, { loading, error }] = (0, import_client18.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1926
2041
  awaitRefetchQueries: true,
1927
2042
  refetchQueries: [{ query: PRIVATE_CHATS }]
1928
2043
  });
1929
2044
  return { createPrivateChat, error, loading };
1930
2045
  };
1931
2046
  var useSendChatMessage = () => {
1932
- const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
2047
+ const [sendChatMessage, { loading, error }] = (0, import_client18.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1933
2048
  awaitRefetchQueries: true,
1934
2049
  refetchQueries: (mutationResult) => {
1935
2050
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -1944,14 +2059,14 @@ var useSendChatMessage = () => {
1944
2059
  return { error, loading, sendChatMessage };
1945
2060
  };
1946
2061
  var useDeleteChat = () => {
1947
- const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
2062
+ const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
1948
2063
  awaitRefetchQueries: true,
1949
2064
  refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
1950
2065
  });
1951
2066
  return { deleteChat, error, loading };
1952
2067
  };
1953
2068
  var useAddParticipantToChat = () => {
1954
- const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
2069
+ const [addParticipantToChat, { loading, error }] = (0, import_client18.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1955
2070
  awaitRefetchQueries: true,
1956
2071
  refetchQueries: (mutationResult) => {
1957
2072
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -1972,7 +2087,7 @@ var useAddParticipantToChat = () => {
1972
2087
  return { addParticipantToChat, error, loading };
1973
2088
  };
1974
2089
  var useRemoveParticipantFromChat = () => {
1975
- const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
2090
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client18.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
1976
2091
  awaitRefetchQueries: true,
1977
2092
  refetchQueries: (mutationResult) => {
1978
2093
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
@@ -1992,7 +2107,7 @@ var useRemoveParticipantFromChat = () => {
1992
2107
  return { error, loading, removeParticipantFromChat };
1993
2108
  };
1994
2109
  var useToggleChatMessageLike = () => {
1995
- const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
2110
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client18.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
1996
2111
  awaitRefetchQueries: true,
1997
2112
  refetchQueries: (mutationResult) => {
1998
2113
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -2007,7 +2122,7 @@ var useToggleChatMessageLike = () => {
2007
2122
  return { error, loading, toggleChatMessageLike };
2008
2123
  };
2009
2124
  var useMarkChatMessagesSeen = () => {
2010
- const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2125
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client18.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
2011
2126
  awaitRefetchQueries: true,
2012
2127
  refetchQueries: (mutationResult) => {
2013
2128
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -2022,16 +2137,16 @@ var useMarkChatMessagesSeen = () => {
2022
2137
  return { error, loading, markChatMessagesSeen };
2023
2138
  };
2024
2139
  var useReportChatUser = () => {
2025
- const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
2140
+ const [reportChatUser, { loading, error }] = (0, import_client18.useMutation)(REPORT_CHAT_USER_MUTATION);
2026
2141
  return { error, loading, reportChatUser };
2027
2142
  };
2028
2143
 
2029
2144
  // src/graphql/hooks/chat/hooksQuery.ts
2030
- var import_client19 = require("@apollo/client");
2145
+ var import_client20 = require("@apollo/client");
2031
2146
 
2032
2147
  // src/graphql/subscriptions/chat.ts
2033
- var import_client18 = require("@apollo/client");
2034
- var GET_CHAT_MESSAGE = import_client18.gql`
2148
+ var import_client19 = require("@apollo/client");
2149
+ var GET_CHAT_MESSAGE = import_client19.gql`
2035
2150
  subscription {
2036
2151
  getChatMessage {
2037
2152
  ...ChatFields
@@ -2042,7 +2157,7 @@ var GET_CHAT_MESSAGE = import_client18.gql`
2042
2157
 
2043
2158
  // src/graphql/hooks/chat/hooksQuery.ts
2044
2159
  var useGetChat = (_id) => {
2045
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
2160
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(CHAT, {
2046
2161
  fetchPolicy: "network-only",
2047
2162
  skip: !_id || _id === "",
2048
2163
  variables: { _id }
@@ -2051,28 +2166,28 @@ var useGetChat = (_id) => {
2051
2166
  return { chat, error, loading, refetch };
2052
2167
  };
2053
2168
  var useGetPrivateChats = () => {
2054
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
2169
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(PRIVATE_CHATS, {
2055
2170
  fetchPolicy: "network-only"
2056
2171
  });
2057
2172
  const privateChats = data?.privateChats || [];
2058
2173
  return { error, loading, privateChats, refetch };
2059
2174
  };
2060
2175
  var useGetRelationChats = () => {
2061
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
2176
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
2062
2177
  fetchPolicy: "network-only"
2063
2178
  });
2064
2179
  const relationChats = data?.relationChats || [];
2065
2180
  return { error, loading, refetch, relationChats };
2066
2181
  };
2067
2182
  var useGetChatSubscription = () => {
2068
- const { data, loading, error } = (0, import_client19.useSubscription)(
2183
+ const { data, loading, error } = (0, import_client20.useSubscription)(
2069
2184
  GET_CHAT_MESSAGE
2070
2185
  );
2071
2186
  const chat = data?.getChat;
2072
2187
  return { chat, error, loading };
2073
2188
  };
2074
2189
  var useGetChatsByRegion = (region) => {
2075
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
2190
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_CHATS_BY_REGION, {
2076
2191
  fetchPolicy: "network-only",
2077
2192
  variables: { region }
2078
2193
  });
@@ -2080,7 +2195,7 @@ var useGetChatsByRegion = (region) => {
2080
2195
  return { chatsByRegion, error, loading, refetch };
2081
2196
  };
2082
2197
  var useGetReportedChatUsers = () => {
2083
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
2198
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_REPORTED_CHAT_USERS, {
2084
2199
  fetchPolicy: "network-only"
2085
2200
  });
2086
2201
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -2088,11 +2203,11 @@ var useGetReportedChatUsers = () => {
2088
2203
  };
2089
2204
 
2090
2205
  // src/graphql/hooks/contactUs.ts
2091
- var import_client21 = require("@apollo/client");
2206
+ var import_client22 = require("@apollo/client");
2092
2207
 
2093
2208
  // src/graphql/mutations/contactUs.ts
2094
- var import_client20 = require("@apollo/client");
2095
- var CONTACT_US_MUTATION = import_client20.gql`
2209
+ var import_client21 = require("@apollo/client");
2210
+ var CONTACT_US_MUTATION = import_client21.gql`
2096
2211
  mutation contactUs($input: ContactUsInputType!) {
2097
2212
  contactUs(input: $input) {
2098
2213
  data
@@ -2103,7 +2218,7 @@ var CONTACT_US_MUTATION = import_client20.gql`
2103
2218
 
2104
2219
  // src/graphql/hooks/contactUs.ts
2105
2220
  var useContactUs = () => {
2106
- const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
2221
+ const [contactUs, { loading, error }] = (0, import_client22.useMutation)(CONTACT_US_MUTATION);
2107
2222
  return { contactUs, error, loading };
2108
2223
  };
2109
2224
 
@@ -2111,8 +2226,8 @@ var useContactUs = () => {
2111
2226
  var import_client24 = require("@apollo/client");
2112
2227
 
2113
2228
  // src/graphql/mutations/event.ts
2114
- var import_client22 = require("@apollo/client");
2115
- var CREATE_EVENT_MUTATION = import_client22.gql`
2229
+ var import_client23 = require("@apollo/client");
2230
+ var CREATE_EVENT_MUTATION = import_client23.gql`
2116
2231
  mutation createEvent($input: EventInputType!) {
2117
2232
  createEvent(input: $input) {
2118
2233
  data {
@@ -2123,7 +2238,7 @@ var CREATE_EVENT_MUTATION = import_client22.gql`
2123
2238
  }
2124
2239
  ${EVENT}
2125
2240
  `;
2126
- var UPDATE_EVENT_MUTATION = import_client22.gql`
2241
+ var UPDATE_EVENT_MUTATION = import_client23.gql`
2127
2242
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
2128
2243
  updateEvent(_id: $_id, input: $input) {
2129
2244
  data {
@@ -2134,7 +2249,7 @@ var UPDATE_EVENT_MUTATION = import_client22.gql`
2134
2249
  }
2135
2250
  ${EVENT}
2136
2251
  `;
2137
- var DELETE_EVENT_MUTATION = import_client22.gql`
2252
+ var DELETE_EVENT_MUTATION = import_client23.gql`
2138
2253
  mutation deleteEvent($_id: ID!) {
2139
2254
  deleteEvent(_id: $_id) {
2140
2255
  data
@@ -2142,7 +2257,7 @@ var DELETE_EVENT_MUTATION = import_client22.gql`
2142
2257
  }
2143
2258
  }
2144
2259
  `;
2145
- var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2260
+ var CREATE_EVENT_INFO_MUTATION = import_client23.gql`
2146
2261
  mutation createEventInfo($input: EventInfoInputType!) {
2147
2262
  createEventInfo(input: $input) {
2148
2263
  data {
@@ -2153,7 +2268,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
2153
2268
  }
2154
2269
  ${EVENT_INFO}
2155
2270
  `;
2156
- var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2271
+ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
2157
2272
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
2158
2273
  updateEventInfo(_id: $_id, input: $input) {
2159
2274
  data {
@@ -2165,110 +2280,6 @@ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
2165
2280
  ${EVENT_INFO}
2166
2281
  `;
2167
2282
 
2168
- // src/graphql/queries/user.ts
2169
- var import_client23 = require("@apollo/client");
2170
- var GET_USERS = import_client23.gql`
2171
- query getUsers {
2172
- users {
2173
- ...UserFields
2174
- }
2175
- }
2176
- ${USER_FIELDS_FRAGMENT}
2177
- `;
2178
- var GET_USER = import_client23.gql`
2179
- query getUser($_id: ID!) {
2180
- user(_id: $_id) {
2181
- ...UserFields
2182
- }
2183
- }
2184
- ${USER_FIELDS_FRAGMENT}
2185
- `;
2186
- var GET_USER_EVENTS = import_client23.gql`
2187
- query getUserEvents {
2188
- userEvents {
2189
- ...EventFields
2190
- }
2191
- }
2192
- ${EVENT}
2193
- `;
2194
- var GET_USER_VENDORS = import_client23.gql`
2195
- query getUserVendors {
2196
- userVendors {
2197
- ...VendorFields
2198
- }
2199
- }
2200
- ${VENDOR}
2201
- `;
2202
- var GET_USER_PARTNERS = import_client23.gql`
2203
- query getUserPartners {
2204
- userPartners {
2205
- ...PartnerFields
2206
- }
2207
- }
2208
- ${PARTNER}
2209
- `;
2210
- var GET_USER_ACTIVITIES = import_client23.gql`
2211
- query getUserActivities {
2212
- userActivities {
2213
- favourites {
2214
- events {
2215
- ...EventListItemFields
2216
- }
2217
- partners {
2218
- ...PartnerFields
2219
- }
2220
- vendors {
2221
- ...VendorFields
2222
- }
2223
- }
2224
- going {
2225
- events {
2226
- ...EventListItemFields
2227
- }
2228
- }
2229
- interested {
2230
- events {
2231
- ...EventListItemFields
2232
- }
2233
- }
2234
- present {
2235
- events {
2236
- ...EventListItemFields
2237
- }
2238
- }
2239
- }
2240
- }
2241
- ${EVENT_LIST_ITEM}
2242
- ${VENDOR}
2243
- ${PARTNER}
2244
- `;
2245
- var GET_USER_RESOURCES = import_client23.gql`
2246
- query getUserResources($userId: ID!) {
2247
- userResources(userId: $userId) {
2248
- resources {
2249
- _id
2250
- logo
2251
- name
2252
- resourceType
2253
- }
2254
- }
2255
- }
2256
- `;
2257
- var GET_USERS_BY_PROMO_CODE = import_client23.gql`
2258
- query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
2259
- usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
2260
- active
2261
- avatar {
2262
- ...ResourceImageFields
2263
- }
2264
- deletedAt
2265
- nickName
2266
- userId
2267
- }
2268
- }
2269
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2270
- `;
2271
-
2272
2283
  // src/graphql/hooks/event/hooksMutation.ts
2273
2284
  var useCreateEvent = () => {
2274
2285
  const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
@@ -2357,14 +2368,6 @@ var useUpdateEventInfo = () => {
2357
2368
 
2358
2369
  // src/graphql/hooks/event/hooksQuery.ts
2359
2370
  var import_client25 = require("@apollo/client");
2360
- var useGetEvents = (dateStatus) => {
2361
- const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
2362
- fetchPolicy: "network-only",
2363
- variables: { dateStatus }
2364
- });
2365
- const events = data?.events || [];
2366
- return { error, events, loading, refetch };
2367
- };
2368
2371
  var useGetEvent = (_id) => {
2369
2372
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
2370
2373
  fetchPolicy: "network-only",
@@ -2413,10 +2416,10 @@ var useGetEventsByRegion = (region, options, dateStatus, tags) => {
2413
2416
  refetch
2414
2417
  };
2415
2418
  };
2416
- var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2417
- const normalizedSearch = searchQuery?.trim() ?? "";
2419
+ var useSearchEvents = (search, region, tags, dateStatus) => {
2420
+ const normalizedSearch = search.trim();
2418
2421
  const normalizedTags = (tags ?? []).filter(Boolean);
2419
- const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2422
+ const shouldRunQuery = normalizedSearch.length >= 3 || normalizedTags.length > 0;
2420
2423
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
2421
2424
  fetchPolicy: "network-only",
2422
2425
  skip: !shouldRunQuery,
@@ -3036,21 +3039,6 @@ var useActivateVendorClaim = () => {
3036
3039
 
3037
3040
  // src/graphql/hooks/vendor/hooksQuery.ts
3038
3041
  var import_client40 = require("@apollo/client");
3039
- var useGetVendors = () => {
3040
- const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3041
- GET_VENDORS,
3042
- {
3043
- fetchPolicy: "network-only"
3044
- }
3045
- );
3046
- const vendors = data?.vendors || [];
3047
- return {
3048
- error,
3049
- loading,
3050
- refetch,
3051
- vendors
3052
- };
3053
- };
3054
3042
  var useGetVendor = (_id) => {
3055
3043
  const { loading, error, data, refetch } = (0, import_client40.useQuery)(
3056
3044
  GET_VENDOR,
@@ -3082,10 +3070,11 @@ var useGetVendorsByRegion = (region, options) => {
3082
3070
  };
3083
3071
  };
3084
3072
  var useSearchVendors = (search, region) => {
3073
+ const normalizedSearch = search.trim();
3085
3074
  const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
3086
3075
  fetchPolicy: "network-only",
3087
- skip: search.length < 3,
3088
- variables: { region, search }
3076
+ skip: normalizedSearch.length < 3,
3077
+ variables: { region, search: normalizedSearch }
3089
3078
  });
3090
3079
  const vendorSearch = data?.vendorSearch || [];
3091
3080
  return { error, loading, refetch, vendorSearch };
@@ -3419,16 +3408,6 @@ var useSelectStandardPackage = () => {
3419
3408
 
3420
3409
  // src/graphql/hooks/user/hooksQuery.ts
3421
3410
  var import_client43 = require("@apollo/client");
3422
- var useGetUsers = () => {
3423
- const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3424
- GET_USERS,
3425
- {
3426
- fetchPolicy: "network-only"
3427
- }
3428
- );
3429
- const users = data?.users || [];
3430
- return { error, loading, refetch, users };
3431
- };
3432
3411
  var useGetUser = (_id) => {
3433
3412
  const { loading, error, data, refetch } = (0, import_client43.useQuery)(
3434
3413
  GET_USER,
@@ -3766,25 +3745,38 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3766
3745
  var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3767
3746
  mutation cancelSubscription {
3768
3747
  cancelSubscription {
3769
- data
3748
+ data {
3749
+ billingPeriod
3750
+ cancelAtPeriodEnd
3751
+ currentPlan
3752
+ endDate
3753
+ pendingBillingPeriod
3754
+ pendingChangeEffectiveAt
3755
+ pendingPlan
3756
+ priceId
3757
+ scheduleId
3758
+ status
3759
+ subscriptionId
3760
+ }
3770
3761
  message
3771
3762
  }
3772
3763
  }
3773
3764
  `;
3774
3765
  var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3775
- mutation updateSubscriptionPlan(
3776
- $newPlanId: LicencesEnumType!
3777
- $billingPeriod: BillingPeriodEnumType
3778
- ) {
3779
- updateSubscriptionPlan(
3780
- newPlanId: $newPlanId
3781
- billingPeriod: $billingPeriod
3782
- ) {
3766
+ mutation updateSubscriptionPlan($input: UpdateSubscriptionPlanInputType!) {
3767
+ updateSubscriptionPlan(input: $input) {
3783
3768
  data {
3784
- subscriptionId
3785
- status
3786
- priceId
3769
+ billingPeriod
3770
+ cancelAtPeriodEnd
3787
3771
  currentPlan
3772
+ endDate
3773
+ pendingBillingPeriod
3774
+ pendingChangeEffectiveAt
3775
+ pendingPlan
3776
+ priceId
3777
+ scheduleId
3778
+ status
3779
+ subscriptionId
3788
3780
  }
3789
3781
  message
3790
3782
  }
@@ -3827,10 +3819,17 @@ var import_client54 = require("@apollo/client");
3827
3819
  var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3828
3820
  query getSubscriptionStatus {
3829
3821
  getSubscriptionStatus {
3830
- subscriptionId
3831
- status
3832
- priceId
3822
+ billingPeriod
3823
+ cancelAtPeriodEnd
3833
3824
  currentPlan
3825
+ endDate
3826
+ pendingBillingPeriod
3827
+ pendingChangeEffectiveAt
3828
+ pendingPlan
3829
+ priceId
3830
+ scheduleId
3831
+ status
3832
+ subscriptionId
3834
3833
  }
3835
3834
  }
3836
3835
  `;
@@ -3950,18 +3949,6 @@ var useDeletePartner = () => {
3950
3949
 
3951
3950
  // src/graphql/hooks/partner/hooksQuery.ts
3952
3951
  var import_client58 = require("@apollo/client");
3953
- var useGetPartners = () => {
3954
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
3955
- fetchPolicy: "network-only"
3956
- });
3957
- const partners = data?.partners || [];
3958
- return {
3959
- error,
3960
- loading,
3961
- partners,
3962
- refetch
3963
- };
3964
- };
3965
3952
  var useGetPartner = (_id) => {
3966
3953
  const { loading, error, data, refetch } = (0, import_client58.useQuery)(
3967
3954
  GET_PARTNER,
@@ -3993,10 +3980,11 @@ var useGetPartnersByRegion = (region, options) => {
3993
3980
  };
3994
3981
  };
3995
3982
  var useSearchPartners = (search, region) => {
3983
+ const normalizedSearch = search.trim();
3996
3984
  const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
3997
3985
  fetchPolicy: "network-only",
3998
- skip: search.length < 3,
3999
- variables: { region, search }
3986
+ skip: normalizedSearch.length < 3,
3987
+ variables: { region, search: normalizedSearch }
4000
3988
  });
4001
3989
  const partnersSearch = data?.partnersSearch || [];
4002
3990
  return { error, loading, partnersSearch, refetch };
@@ -4063,12 +4051,6 @@ var useDeletePost = () => {
4063
4051
 
4064
4052
  // src/graphql/hooks/post/hooksQuery.ts
4065
4053
  var import_client61 = require("@apollo/client");
4066
- var useGetPosts = () => {
4067
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS, {
4068
- fetchPolicy: "network-only"
4069
- });
4070
- return { error, loading, posts: data?.posts || [], refetch };
4071
- };
4072
4054
  var useGetPost = (_id) => {
4073
4055
  const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
4074
4056
  fetchPolicy: "network-only",
@@ -4077,14 +4059,6 @@ var useGetPost = (_id) => {
4077
4059
  });
4078
4060
  return { error, loading, post: data?.post, refetch };
4079
4061
  };
4080
- var useGetPostsByType = (postType) => {
4081
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POSTS_BY_TYPE, {
4082
- fetchPolicy: "network-only",
4083
- skip: !postType,
4084
- variables: { postType }
4085
- });
4086
- return { error, loading, postsByType: data?.postsByType || [], refetch };
4087
- };
4088
4062
 
4089
4063
  // src/graphql/hooks/appSettings/hooksMutation.ts
4090
4064
  var import_client64 = require("@apollo/client");
@@ -5287,19 +5261,149 @@ var useGetCoupon = (_id) => {
5287
5261
  const coupon = data?.coupon || null;
5288
5262
  return { coupon, error, loading, refetch };
5289
5263
  };
5264
+
5265
+ // src/graphql/hooks/usePaginatedList.ts
5266
+ var import_client86 = require("@apollo/client");
5267
+ var import_react = require("react");
5268
+
5269
+ // src/utils/pagination.ts
5270
+ var DEFAULT_PAGE_SIZE = 50;
5271
+ function defaultGetId(item) {
5272
+ const id = item?._id;
5273
+ return id != null ? String(id) : "";
5274
+ }
5275
+ function accumulateItems(items, page, getId) {
5276
+ if (page.length === 0) {
5277
+ return items;
5278
+ }
5279
+ const seen = /* @__PURE__ */ new Set();
5280
+ for (const item of items) {
5281
+ const id = getId(item);
5282
+ if (id !== "") {
5283
+ seen.add(id);
5284
+ }
5285
+ }
5286
+ const fresh = page.filter((item) => {
5287
+ const id = getId(item);
5288
+ if (id === "") {
5289
+ return true;
5290
+ }
5291
+ if (seen.has(id)) {
5292
+ return false;
5293
+ }
5294
+ seen.add(id);
5295
+ return true;
5296
+ });
5297
+ return fresh.length === 0 ? items : [...items, ...fresh];
5298
+ }
5299
+
5300
+ // src/graphql/hooks/usePaginatedList.ts
5301
+ function usePaginatedList({
5302
+ document,
5303
+ getItems,
5304
+ variables,
5305
+ skip = false,
5306
+ pageSize = DEFAULT_PAGE_SIZE,
5307
+ getId = defaultGetId
5308
+ }) {
5309
+ if (!Number.isInteger(pageSize) || pageSize <= 0) {
5310
+ throw new Error(
5311
+ `usePaginatedList: pageSize must be a positive integer, received ${String(pageSize)}.`
5312
+ );
5313
+ }
5314
+ const [offset, setOffset] = (0, import_react.useState)(0);
5315
+ const [items, setItems] = (0, import_react.useState)([]);
5316
+ const [hasMore, setHasMore] = (0, import_react.useState)(!skip);
5317
+ const [hasSettled, setHasSettled] = (0, import_react.useState)(false);
5318
+ const variablesKey = JSON.stringify(variables ?? null);
5319
+ (0, import_react.useEffect)(() => {
5320
+ setItems([]);
5321
+ setHasMore(!skip);
5322
+ setHasSettled(false);
5323
+ setOffset(0);
5324
+ }, [variablesKey, pageSize, skip]);
5325
+ const { data, loading, error, refetch } = (0, import_client86.useQuery)(document, {
5326
+ fetchPolicy: "network-only",
5327
+ skip,
5328
+ variables: { ...variables, options: { limit: pageSize + 1, offset } }
5329
+ });
5330
+ const rawPage = getItems(data);
5331
+ const page = rawPage.length > pageSize ? rawPage.slice(0, pageSize) : rawPage;
5332
+ const hasMorePage = rawPage.length > pageSize;
5333
+ (0, import_react.useEffect)(() => {
5334
+ if (loading || skip || error) {
5335
+ return;
5336
+ }
5337
+ setItems((prev) => {
5338
+ if (!hasSettled) {
5339
+ if (page.length === 0 && prev.length === 0) {
5340
+ return prev;
5341
+ }
5342
+ return page;
5343
+ }
5344
+ return accumulateItems(prev, page, getId);
5345
+ });
5346
+ setHasSettled(true);
5347
+ setHasMore(hasMorePage);
5348
+ }, [loading, skip, error, page, hasMorePage, hasSettled, pageSize, getId]);
5349
+ const loadMore = (0, import_react.useCallback)(() => {
5350
+ if (loading || skip) {
5351
+ return;
5352
+ }
5353
+ if (error) {
5354
+ void refetch();
5355
+ return;
5356
+ }
5357
+ if (!hasSettled) {
5358
+ return;
5359
+ }
5360
+ if (!hasMore) {
5361
+ return;
5362
+ }
5363
+ setOffset(offset + pageSize);
5364
+ }, [loading, skip, error, hasSettled, hasMore, offset, pageSize, refetch]);
5365
+ const refresh = (0, import_react.useCallback)(() => {
5366
+ setItems([]);
5367
+ setHasMore(!skip);
5368
+ setHasSettled(false);
5369
+ setOffset(0);
5370
+ if (skip) {
5371
+ return Promise.resolve();
5372
+ }
5373
+ return refetch({
5374
+ ...variables,
5375
+ options: { limit: pageSize + 1, offset: 0 }
5376
+ });
5377
+ }, [refetch, variables, pageSize, skip]);
5378
+ return {
5379
+ error,
5380
+ hasMore,
5381
+ items,
5382
+ loading: loading && !hasSettled,
5383
+ loadingMore: loading && hasSettled,
5384
+ loadMore,
5385
+ refresh
5386
+ };
5387
+ }
5290
5388
  // Annotate the CommonJS export names for ESM import in node:
5291
5389
  0 && (module.exports = {
5292
5390
  ACTIVATE_VENDOR_CLAIM_MUTATION,
5293
5391
  GET_EVENT,
5392
+ GET_EVENTS,
5294
5393
  GET_EVENT_BY_SLUG,
5295
5394
  GET_EVENT_INFO,
5296
5395
  GET_OWNED_EVENT,
5297
5396
  GET_PARTNER,
5397
+ GET_PARTNERS,
5298
5398
  GET_PARTNER_BY_SLUG,
5299
5399
  GET_POST,
5400
+ GET_POSTS,
5401
+ GET_POSTS_BY_TYPE,
5300
5402
  GET_POST_BY_SLUG,
5301
5403
  GET_RESOURCE_CONNECTIONS,
5404
+ GET_USERS,
5302
5405
  GET_VENDOR,
5406
+ GET_VENDORS,
5303
5407
  GET_VENDOR_BY_SLUG,
5304
5408
  GET_VENDOR_INFO,
5305
5409
  MY_PENDING_VENDOR_CLAIM,
@@ -5368,7 +5472,6 @@ var useGetCoupon = (_id) => {
5368
5472
  useGetEventByPlaceId,
5369
5473
  useGetEventInfo,
5370
5474
  useGetEventRelations,
5371
- useGetEvents,
5372
5475
  useGetEventsByRegion,
5373
5476
  useGetEventsNearMe,
5374
5477
  useGetGame,
@@ -5378,11 +5481,8 @@ var useGetCoupon = (_id) => {
5378
5481
  useGetNotificationCountSubscription,
5379
5482
  useGetOwnedEvent,
5380
5483
  useGetPartner,
5381
- useGetPartners,
5382
5484
  useGetPartnersByRegion,
5383
5485
  useGetPost,
5384
- useGetPosts,
5385
- useGetPostsByType,
5386
5486
  useGetPrivateChats,
5387
5487
  useGetRelation,
5388
5488
  useGetRelationByEventAndVendor,
@@ -5405,12 +5505,10 @@ var useGetCoupon = (_id) => {
5405
5505
  useGetUserPartners,
5406
5506
  useGetUserResources,
5407
5507
  useGetUserVendors,
5408
- useGetUsers,
5409
5508
  useGetUsersByPromoCode,
5410
5509
  useGetVendor,
5411
5510
  useGetVendorInfo,
5412
5511
  useGetVendorRelations,
5413
- useGetVendors,
5414
5512
  useGetVendorsByRegion,
5415
5513
  useLeaveGame,
5416
5514
  useLogin,
@@ -5419,6 +5517,7 @@ var useGetCoupon = (_id) => {
5419
5517
  useMarkChatMessagesSeen,
5420
5518
  useMarkNotificationRead,
5421
5519
  useMyPendingVendorClaim,
5520
+ usePaginatedList,
5422
5521
  useRedeemAffiliateReward,
5423
5522
  useRedeemReward,
5424
5523
  useRefreshToken,