@timardex/cluemart-shared 1.7.1 → 1.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{ad-BUYzE6zx.d.ts → ad-03NrHP3C.d.ts} +2 -2
  2. package/dist/{ad-BhLoEul3.d.mts → ad-CplXHfPk.d.mts} +2 -2
  3. package/dist/{affiliate-C51nzKsw.d.ts → affiliate-BLSH2QdJ.d.ts} +2 -2
  4. package/dist/{affiliate-BbtjeUP4.d.mts → affiliate-hXxPpl_S.d.mts} +2 -2
  5. package/dist/auth/index.cjs +11 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-R6PCFOYO.mjs → chunk-2QB6MIL2.mjs} +247 -202
  11. package/dist/chunk-2QB6MIL2.mjs.map +1 -0
  12. package/dist/{chunk-32MKHJTX.mjs → chunk-Y3YFLYN4.mjs} +13 -1
  13. package/dist/{chunk-32MKHJTX.mjs.map → chunk-Y3YFLYN4.mjs.map} +1 -1
  14. package/dist/{contactUs-CBWzefUS.d.mts → contactUs-C13TqaIf.d.mts} +1 -1
  15. package/dist/{contactUs--NoohZBu.d.ts → contactUs-Cr4itlk6.d.ts} +1 -1
  16. package/dist/formFields/index.d.mts +1 -1
  17. package/dist/formFields/index.d.ts +1 -1
  18. package/dist/{global-DePDtOFt.d.mts → global-8HQMiqbS.d.mts} +10 -1
  19. package/dist/{global-CUYYxpy2.d.ts → global-DGrr26NH.d.ts} +10 -1
  20. package/dist/graphql/index.cjs +352 -291
  21. package/dist/graphql/index.cjs.map +1 -1
  22. package/dist/graphql/index.d.mts +37 -9
  23. package/dist/graphql/index.d.ts +37 -9
  24. package/dist/graphql/index.mjs +14 -4
  25. package/dist/hooks/index.cjs +245 -218
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +5 -5
  28. package/dist/hooks/index.d.ts +5 -5
  29. package/dist/hooks/index.mjs +2 -2
  30. package/dist/index.cjs +352 -291
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.mts +41 -4
  33. package/dist/index.d.ts +41 -4
  34. package/dist/index.mjs +278 -222
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/map/index.d.mts +1 -1
  37. package/dist/map/index.d.ts +1 -1
  38. package/dist/{resourceActivities-CMUcn2P7.d.ts → resourceActivities-BkC-3bF2.d.ts} +1 -1
  39. package/dist/{resourceActivities-CwbJFGIp.d.mts → resourceActivities-CowKiCCb.d.mts} +1 -1
  40. package/dist/sharing/index.d.mts +1 -1
  41. package/dist/sharing/index.d.ts +1 -1
  42. package/dist/types/index.d.mts +7 -7
  43. package/dist/types/index.d.ts +7 -7
  44. package/dist/{user-D47MLFyH.d.ts → user-CpWRig6p.d.ts} +1 -1
  45. package/dist/{user-DE8edl3u.d.mts → user-DiJffpnd.d.mts} +1 -1
  46. package/dist/utils/index.d.mts +3 -3
  47. package/dist/utils/index.d.ts +3 -3
  48. package/package.json +1 -1
  49. package/dist/chunk-R6PCFOYO.mjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ ACTIVATE_VENDOR_CLAIM_MUTATION: () => ACTIVATE_VENDOR_CLAIM_MUTATION,
33
34
  ADMIN_APP_ROLES: () => ADMIN_APP_ROLES,
34
35
  ADMIN_DASHBOARD_CONTEXTS: () => ADMIN_DASHBOARD_CONTEXTS,
35
36
  AFFILIATE_PARTICIPANT_TYPE_LABELS: () => AFFILIATE_PARTICIPANT_TYPE_LABELS,
@@ -92,6 +93,7 @@ __export(index_exports, {
92
93
  IOS_URL: () => IOS_URL,
93
94
  ImageTypeEnum: () => ImageTypeEnum,
94
95
  KNOWN_EVENT_SCHEDULE_STATUSES: () => KNOWN_EVENT_SCHEDULE_STATUSES,
96
+ MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
95
97
  NETWORK_USER_FACING_ERROR: () => NETWORK_USER_FACING_ERROR,
96
98
  OG_DESCRIPTION_LINE_BREAK: () => OG_DESCRIPTION_LINE_BREAK,
97
99
  PERMISSIONS: () => PERMISSIONS,
@@ -314,6 +316,7 @@ __export(index_exports, {
314
316
  toShareSocialImageCacheVersion: () => toShareSocialImageCacheVersion,
315
317
  toUserFacingErrorMessage: () => toUserFacingErrorMessage,
316
318
  truncateText: () => truncateText,
319
+ useActivateVendorClaim: () => useActivateVendorClaim,
317
320
  useAddParticipantToChat: () => useAddParticipantToChat,
318
321
  useAddUserFavouriteResource: () => useAddUserFavouriteResource,
319
322
  useAddUserGoingResource: () => useAddUserGoingResource,
@@ -385,8 +388,10 @@ __export(index_exports, {
385
388
  useGetPost: () => useGetPost,
386
389
  useGetPosts: () => useGetPosts,
387
390
  useGetPostsByType: () => useGetPostsByType,
391
+ useGetPrivateChats: () => useGetPrivateChats,
388
392
  useGetRelation: () => useGetRelation,
389
393
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
394
+ useGetRelationChats: () => useGetRelationChats,
390
395
  useGetReportedChatUsers: () => useGetReportedChatUsers,
391
396
  useGetResourceActivity: () => useGetResourceActivity,
392
397
  useGetResourceConnections: () => useGetResourceConnections,
@@ -399,7 +404,6 @@ __export(index_exports, {
399
404
  useGetUnregisteredVendorsByInviterId: () => useGetUnregisteredVendorsByInviterId,
400
405
  useGetUser: () => useGetUser,
401
406
  useGetUserActivities: () => useGetUserActivities,
402
- useGetUserChats: () => useGetUserChats,
403
407
  useGetUserEvents: () => useGetUserEvents,
404
408
  useGetUserNotifications: () => useGetUserNotifications,
405
409
  useGetUserNotificationsSubscription: () => useGetUserNotificationsSubscription,
@@ -418,6 +422,7 @@ __export(index_exports, {
418
422
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
419
423
  useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
420
424
  useMarkNotificationRead: () => useMarkNotificationRead,
425
+ useMyPendingVendorClaim: () => useMyPendingVendorClaim,
421
426
  useRedeemAffiliateReward: () => useRedeemAffiliateReward,
422
427
  useRedeemReward: () => useRedeemReward,
423
428
  useRefreshToken: () => useRefreshToken,
@@ -4420,6 +4425,8 @@ var UNREGISTERED_VENDOR = import_client3.gql`
4420
4425
  active
4421
4426
  categoryIds
4422
4427
  claimed
4428
+ claimedAt
4429
+ claimedByUserId
4423
4430
  createdAt
4424
4431
  deletedAt
4425
4432
  email
@@ -4499,10 +4506,123 @@ var GET_UNREGISTERED_VENDOR = import_client3.gql`
4499
4506
  }
4500
4507
  ${UNREGISTERED_VENDOR}
4501
4508
  `;
4509
+ var MY_PENDING_VENDOR_CLAIM = import_client3.gql`
4510
+ query myPendingVendorClaim {
4511
+ myPendingVendorClaim {
4512
+ _id
4513
+ name
4514
+ region
4515
+ }
4516
+ }
4517
+ `;
4502
4518
 
4503
- // src/graphql/queries/partner.ts
4519
+ // src/graphql/mutations/vendor.ts
4504
4520
  var import_client4 = require("@apollo/client");
4505
- var PARTNER = import_client4.gql`
4521
+ var CREATE_VENDOR_MUTATION = import_client4.gql`
4522
+ mutation createVendor($input: VendorInputType!) {
4523
+ createVendor(input: $input) {
4524
+ data {
4525
+ ...VendorFields
4526
+ }
4527
+ message
4528
+ }
4529
+ }
4530
+ ${VENDOR}
4531
+ `;
4532
+ var UPDATE_VENDOR_MUTATION = import_client4.gql`
4533
+ mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4534
+ updateVendor(_id: $_id, input: $input) {
4535
+ data {
4536
+ ...VendorFields
4537
+ }
4538
+ message
4539
+ }
4540
+ }
4541
+ ${VENDOR}
4542
+ `;
4543
+ var DELETE_VENDOR_MUTATION = import_client4.gql`
4544
+ mutation deleteVendor($_id: ID!) {
4545
+ deleteVendor(_id: $_id) {
4546
+ data
4547
+ message
4548
+ }
4549
+ }
4550
+ `;
4551
+ var CREATE_VENDOR_INFO_MUTATION = import_client4.gql`
4552
+ mutation createVendorInfo($input: VendorInfoInputType!) {
4553
+ createVendorInfo(input: $input) {
4554
+ data {
4555
+ ...VendorInfoFields
4556
+ }
4557
+ message
4558
+ }
4559
+ }
4560
+ ${VENDOR_INFO}
4561
+ `;
4562
+ var UPDATE_VENDOR_INFO_MUTATION = import_client4.gql`
4563
+ mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4564
+ updateVendorInfo(_id: $_id, input: $input) {
4565
+ data {
4566
+ ...VendorInfoFields
4567
+ }
4568
+ message
4569
+ }
4570
+ }
4571
+ ${VENDOR_INFO}
4572
+ `;
4573
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4574
+ mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
4575
+ createUnregisteredVendor(input: $input) {
4576
+ data {
4577
+ ...UnregisteredVendorFields
4578
+ }
4579
+ message
4580
+ }
4581
+ }
4582
+ ${UNREGISTERED_VENDOR}
4583
+ `;
4584
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4585
+ mutation updateUnregisteredVendor(
4586
+ $_id: ID!
4587
+ $input: UnregisteredVendorInputType!
4588
+ ) {
4589
+ updateUnregisteredVendor(_id: $_id, input: $input) {
4590
+ data {
4591
+ ...UnregisteredVendorFields
4592
+ }
4593
+ message
4594
+ }
4595
+ }
4596
+ ${UNREGISTERED_VENDOR}
4597
+ `;
4598
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client4.gql`
4599
+ mutation deleteUnregisteredVendor($_id: ID!) {
4600
+ deleteUnregisteredVendor(_id: $_id) {
4601
+ data
4602
+ message
4603
+ }
4604
+ }
4605
+ `;
4606
+ var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client4.gql`
4607
+ mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
4608
+ unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
4609
+ data
4610
+ message
4611
+ }
4612
+ }
4613
+ `;
4614
+ var ACTIVATE_VENDOR_CLAIM_MUTATION = import_client4.gql`
4615
+ mutation activateVendorClaim($token: String!) {
4616
+ activateVendorClaim(token: $token) {
4617
+ valid
4618
+ vendorName
4619
+ }
4620
+ }
4621
+ `;
4622
+
4623
+ // src/graphql/queries/partner.ts
4624
+ var import_client5 = require("@apollo/client");
4625
+ var PARTNER = import_client5.gql`
4506
4626
  fragment PartnerFields on PartnerType {
4507
4627
  _id
4508
4628
  active
@@ -4563,7 +4683,7 @@ var PARTNER = import_client4.gql`
4563
4683
  ${RELATED_POST_FIELDS_FRAGMENT}
4564
4684
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4565
4685
  `;
4566
- var GET_PARTNERS = import_client4.gql`
4686
+ var GET_PARTNERS = import_client5.gql`
4567
4687
  query getPartners {
4568
4688
  partners {
4569
4689
  ...PartnerFields
@@ -4571,7 +4691,7 @@ var GET_PARTNERS = import_client4.gql`
4571
4691
  }
4572
4692
  ${PARTNER}
4573
4693
  `;
4574
- var GET_PARTNER = import_client4.gql`
4694
+ var GET_PARTNER = import_client5.gql`
4575
4695
  query getPartner($_id: ID!) {
4576
4696
  partner(_id: $_id) {
4577
4697
  ...PartnerFields
@@ -4579,7 +4699,7 @@ var GET_PARTNER = import_client4.gql`
4579
4699
  }
4580
4700
  ${PARTNER}
4581
4701
  `;
4582
- var GET_PARTNERS_BY_REGION = import_client4.gql`
4702
+ var GET_PARTNERS_BY_REGION = import_client5.gql`
4583
4703
  query getPartnersByRegion(
4584
4704
  $region: String!
4585
4705
  $options: ResourcesByRegionOptions
@@ -4590,7 +4710,7 @@ var GET_PARTNERS_BY_REGION = import_client4.gql`
4590
4710
  }
4591
4711
  ${PARTNER}
4592
4712
  `;
4593
- var SEARCH_PARTNERS = import_client4.gql`
4713
+ var SEARCH_PARTNERS = import_client5.gql`
4594
4714
  query searchPartners($search: String!, $region: String!) {
4595
4715
  partnersSearch(search: $search, region: $region) {
4596
4716
  ...PartnerFields
@@ -4600,17 +4720,17 @@ var SEARCH_PARTNERS = import_client4.gql`
4600
4720
  `;
4601
4721
 
4602
4722
  // src/graphql/queries/post.ts
4603
- var import_client7 = require("@apollo/client");
4723
+ var import_client8 = require("@apollo/client");
4604
4724
 
4605
4725
  // src/graphql/queries/game/dailyClue.ts
4606
- var import_client5 = require("@apollo/client");
4607
- var GAME_DATE_FIELDS_FRAGMENT = import_client5.gql`
4726
+ var import_client6 = require("@apollo/client");
4727
+ var GAME_DATE_FIELDS_FRAGMENT = import_client6.gql`
4608
4728
  fragment GameDateFields on GameDateType {
4609
4729
  startDate
4610
4730
  endDate
4611
4731
  }
4612
4732
  `;
4613
- var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
4733
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4614
4734
  fragment DailyClueBaseGameFields on DailyClueBaseGameType {
4615
4735
  gameDate {
4616
4736
  ...GameDateFields
@@ -4619,7 +4739,7 @@ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client5.gql`
4619
4739
  }
4620
4740
  ${GAME_DATE_FIELDS_FRAGMENT}
4621
4741
  `;
4622
- var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
4742
+ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4623
4743
  fragment DailyClueGameDataFields on DailyClueGameDataType {
4624
4744
  gameFields {
4625
4745
  ...DailyClueBaseGameFields
@@ -4639,15 +4759,15 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client5.gql`
4639
4759
  `;
4640
4760
 
4641
4761
  // src/graphql/queries/game/puzzleGame.ts
4642
- var import_client6 = require("@apollo/client");
4643
- var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client6.gql`
4762
+ var import_client7 = require("@apollo/client");
4763
+ var PUZZLE_ANSWER_FIELDS_FRAGMENT = import_client7.gql`
4644
4764
  fragment PuzzleAnswerFields on PuzzleAnswerType {
4645
4765
  answer
4646
4766
  answerId
4647
4767
  correct
4648
4768
  }
4649
4769
  `;
4650
- var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
4770
+ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4651
4771
  fragment PuzzleQuestionFields on PuzzleQuestionType {
4652
4772
  answers {
4653
4773
  ...PuzzleAnswerFields
@@ -4657,13 +4777,13 @@ var PUZZLE_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
4657
4777
  }
4658
4778
  ${PUZZLE_ANSWER_FIELDS_FRAGMENT}
4659
4779
  `;
4660
- var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client6.gql`
4780
+ var PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = import_client7.gql`
4661
4781
  fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {
4662
4782
  questionId
4663
4783
  selectedAnswerId
4664
4784
  }
4665
4785
  `;
4666
- var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4786
+ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4667
4787
  fragment PuzzleBaseGameFields on PuzzleBaseGameType {
4668
4788
  questions {
4669
4789
  ...PuzzleQuestionFields
@@ -4671,7 +4791,7 @@ var PUZZLE_BASE_GAME_FIELDS_FRAGMENT = import_client6.gql`
4671
4791
  }
4672
4792
  ${PUZZLE_QUESTION_FIELDS_FRAGMENT}
4673
4793
  `;
4674
- var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4794
+ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client7.gql`
4675
4795
  fragment PuzzleGameDataFields on PuzzleGameDataType {
4676
4796
  gameFields {
4677
4797
  ...PuzzleBaseGameFields
@@ -4687,7 +4807,7 @@ var PUZZLE_GAME_DATA_FIELDS_FRAGMENT = import_client6.gql`
4687
4807
  `;
4688
4808
 
4689
4809
  // src/graphql/queries/post.ts
4690
- var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4810
+ var BASE_GAME_FIELDS_FRAGMENT = import_client8.gql`
4691
4811
  fragment BaseGameFields on BaseGameType {
4692
4812
  gameTypeId
4693
4813
  gameTitle
@@ -4705,7 +4825,7 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client7.gql`
4705
4825
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
4706
4826
  ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}
4707
4827
  `;
4708
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
4828
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client8.gql`
4709
4829
  fragment PostContentDataFields on PostContentData {
4710
4830
  game {
4711
4831
  ...BaseGameFields
@@ -4731,7 +4851,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client7.gql`
4731
4851
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4732
4852
  ${BASE_GAME_FIELDS_FRAGMENT}
4733
4853
  `;
4734
- var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
4854
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client8.gql`
4735
4855
  fragment PostContentFields on PostContentType {
4736
4856
  contentData {
4737
4857
  ...PostContentDataFields
@@ -4741,7 +4861,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
4741
4861
  }
4742
4862
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
4743
4863
  `;
4744
- var POST_RESOURCE_FIELDS_FRAGMENT = import_client7.gql`
4864
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client8.gql`
4745
4865
  fragment PostResourceFields on PostResourceType {
4746
4866
  resourceId
4747
4867
  resourceSlug
@@ -4749,7 +4869,7 @@ var POST_RESOURCE_FIELDS_FRAGMENT = import_client7.gql`
4749
4869
  resourceType
4750
4870
  }
4751
4871
  `;
4752
- var POST_FIELDS_FRAGMENT = import_client7.gql`
4872
+ var POST_FIELDS_FRAGMENT = import_client8.gql`
4753
4873
  fragment PostFields on PostType {
4754
4874
  _id
4755
4875
  active
@@ -4780,7 +4900,7 @@ var POST_FIELDS_FRAGMENT = import_client7.gql`
4780
4900
  ${POST_RESOURCE_FIELDS_FRAGMENT}
4781
4901
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
4782
4902
  `;
4783
- var GET_POSTS = import_client7.gql`
4903
+ var GET_POSTS = import_client8.gql`
4784
4904
  query getPosts {
4785
4905
  posts {
4786
4906
  ...PostFields
@@ -4788,7 +4908,7 @@ var GET_POSTS = import_client7.gql`
4788
4908
  }
4789
4909
  ${POST_FIELDS_FRAGMENT}
4790
4910
  `;
4791
- var GET_POST = import_client7.gql`
4911
+ var GET_POST = import_client8.gql`
4792
4912
  query getPost($_id: ID!) {
4793
4913
  post(_id: $_id) {
4794
4914
  ...PostFields
@@ -4796,7 +4916,7 @@ var GET_POST = import_client7.gql`
4796
4916
  }
4797
4917
  ${POST_FIELDS_FRAGMENT}
4798
4918
  `;
4799
- var GET_POSTS_BY_TYPE = import_client7.gql`
4919
+ var GET_POSTS_BY_TYPE = import_client8.gql`
4800
4920
  query getPostsByType($postType: PostTypeEnum!) {
4801
4921
  postsByType(postType: $postType) {
4802
4922
  ...PostFields
@@ -4806,29 +4926,29 @@ var GET_POSTS_BY_TYPE = import_client7.gql`
4806
4926
  `;
4807
4927
 
4808
4928
  // src/graphql/queries/shareSlug.ts
4809
- var import_client8 = require("@apollo/client");
4810
- var GET_EVENT_BY_SLUG = import_client8.gql`
4929
+ var import_client9 = require("@apollo/client");
4930
+ var GET_EVENT_BY_SLUG = import_client9.gql`
4811
4931
  query getEventBySlug($slug: String!) {
4812
4932
  eventBySlug(slug: $slug) {
4813
4933
  _id
4814
4934
  }
4815
4935
  }
4816
4936
  `;
4817
- var GET_VENDOR_BY_SLUG = import_client8.gql`
4937
+ var GET_VENDOR_BY_SLUG = import_client9.gql`
4818
4938
  query getVendorBySlug($slug: String!) {
4819
4939
  vendorBySlug(slug: $slug) {
4820
4940
  _id
4821
4941
  }
4822
4942
  }
4823
4943
  `;
4824
- var GET_PARTNER_BY_SLUG = import_client8.gql`
4944
+ var GET_PARTNER_BY_SLUG = import_client9.gql`
4825
4945
  query getPartnerBySlug($slug: String!) {
4826
4946
  partnerBySlug(slug: $slug) {
4827
4947
  _id
4828
4948
  }
4829
4949
  }
4830
4950
  `;
4831
- var GET_POST_BY_SLUG = import_client8.gql`
4951
+ var GET_POST_BY_SLUG = import_client9.gql`
4832
4952
  query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
4833
4953
  postBySlug(slug: $slug, postType: $postType) {
4834
4954
  _id
@@ -4837,8 +4957,8 @@ var GET_POST_BY_SLUG = import_client8.gql`
4837
4957
  `;
4838
4958
 
4839
4959
  // src/graphql/queries/relation.ts
4840
- var import_client9 = require("@apollo/client");
4841
- var RELATION_FIELDS_FRAGMENT = import_client9.gql`
4960
+ var import_client10 = require("@apollo/client");
4961
+ var RELATION_FIELDS_FRAGMENT = import_client10.gql`
4842
4962
  fragment RelationFields on RelationType {
4843
4963
  _id
4844
4964
  active
@@ -4855,7 +4975,7 @@ var RELATION_FIELDS_FRAGMENT = import_client9.gql`
4855
4975
  }
4856
4976
  ${RELATION_DATES_FRAGMENT}
4857
4977
  `;
4858
- var GET_RELATION = import_client9.gql`
4978
+ var GET_RELATION = import_client10.gql`
4859
4979
  query getRelation($_id: ID!) {
4860
4980
  relation(_id: $_id) {
4861
4981
  ...RelationFields
@@ -4863,7 +4983,7 @@ var GET_RELATION = import_client9.gql`
4863
4983
  }
4864
4984
  ${RELATION_FIELDS_FRAGMENT}
4865
4985
  `;
4866
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client9.gql`
4986
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client10.gql`
4867
4987
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
4868
4988
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
4869
4989
  ...RelationFields
@@ -4871,7 +4991,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client9.gql`
4871
4991
  }
4872
4992
  ${RELATION_FIELDS_FRAGMENT}
4873
4993
  `;
4874
- var GET_EVENT_RELATIONS = import_client9.gql`
4994
+ var GET_EVENT_RELATIONS = import_client10.gql`
4875
4995
  query getEventRelations($eventId: ID!) {
4876
4996
  eventRelations(eventId: $eventId) {
4877
4997
  ...RelationFields
@@ -4879,7 +4999,7 @@ var GET_EVENT_RELATIONS = import_client9.gql`
4879
4999
  }
4880
5000
  ${RELATION_FIELDS_FRAGMENT}
4881
5001
  `;
4882
- var GET_VENDOR_RELATIONS = import_client9.gql`
5002
+ var GET_VENDOR_RELATIONS = import_client10.gql`
4883
5003
  query getVendorRelations($vendorId: ID!) {
4884
5004
  vendorRelations(vendorId: $vendorId) {
4885
5005
  ...RelationFields
@@ -4887,7 +5007,7 @@ var GET_VENDOR_RELATIONS = import_client9.gql`
4887
5007
  }
4888
5008
  ${RELATION_FIELDS_FRAGMENT}
4889
5009
  `;
4890
- var GET_RESOURCE_CONNECTIONS = import_client9.gql`
5010
+ var GET_RESOURCE_CONNECTIONS = import_client10.gql`
4891
5011
  query getResourceConnections(
4892
5012
  $resourceId: ID!
4893
5013
  $resourceType: ResourceTypeEnum!
@@ -4912,11 +5032,11 @@ function toGraphqlQueryString(query) {
4912
5032
  }
4913
5033
 
4914
5034
  // src/graphql/hooks/admin/hooksMutation.ts
4915
- var import_client11 = require("@apollo/client");
5035
+ var import_client12 = require("@apollo/client");
4916
5036
 
4917
5037
  // src/graphql/mutations/admin.ts
4918
- var import_client10 = require("@apollo/client");
4919
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client10.gql`
5038
+ var import_client11 = require("@apollo/client");
5039
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client11.gql`
4920
5040
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
4921
5041
  adminUpdateResourceType(input: $input) {
4922
5042
  data {
@@ -4928,7 +5048,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client10.gql`
4928
5048
  }
4929
5049
  }
4930
5050
  `;
4931
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client10.gql`
5051
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client11.gql`
4932
5052
  mutation adminResendUserVerificationEmail($userId: ID!) {
4933
5053
  adminResendUserVerificationEmail(userId: $userId) {
4934
5054
  data
@@ -4936,7 +5056,7 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client10.gql`
4936
5056
  }
4937
5057
  }
4938
5058
  `;
4939
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client10.gql`
5059
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client11.gql`
4940
5060
  mutation adminPermanentlyDeleteResource(
4941
5061
  $resourceId: ID!
4942
5062
  $resourceType: ResourceTypeEnum!
@@ -4953,7 +5073,7 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client10.gql`
4953
5073
 
4954
5074
  // src/graphql/hooks/admin/hooksMutation.ts
4955
5075
  var useAdminUpdateResourceType = () => {
4956
- const [adminUpdateResourceType, { loading, error }] = (0, import_client11.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
5076
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client12.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
4957
5077
  awaitRefetchQueries: true,
4958
5078
  refetchQueries: (mutationResult) => {
4959
5079
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType?.data;
@@ -4976,7 +5096,7 @@ var useAdminUpdateResourceType = () => {
4976
5096
  };
4977
5097
  };
4978
5098
  var useAdminResendUserVerificationEmail = () => {
4979
- const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client11.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
5099
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client12.useMutation)(ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION);
4980
5100
  return {
4981
5101
  adminResendUserVerificationEmail,
4982
5102
  error,
@@ -4984,7 +5104,7 @@ var useAdminResendUserVerificationEmail = () => {
4984
5104
  };
4985
5105
  };
4986
5106
  var useAdminPermanentlyDeleteResource = () => {
4987
- const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client11.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
5107
+ const [adminPermanentlyDeleteResource, { loading, error }] = (0, import_client12.useMutation)(ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION);
4988
5108
  return {
4989
5109
  adminPermanentlyDeleteResource,
4990
5110
  error,
@@ -4993,11 +5113,11 @@ var useAdminPermanentlyDeleteResource = () => {
4993
5113
  };
4994
5114
 
4995
5115
  // src/graphql/hooks/auth.ts
4996
- var import_client13 = require("@apollo/client");
5116
+ var import_client14 = require("@apollo/client");
4997
5117
 
4998
5118
  // src/graphql/mutations/auth.ts
4999
- var import_client12 = require("@apollo/client");
5000
- var REGISTER_MUTATION = import_client12.gql`
5119
+ var import_client13 = require("@apollo/client");
5120
+ var REGISTER_MUTATION = import_client13.gql`
5001
5121
  mutation register($input: RegisterInputType!) {
5002
5122
  register(input: $input) {
5003
5123
  data {
@@ -5012,7 +5132,7 @@ var REGISTER_MUTATION = import_client12.gql`
5012
5132
  }
5013
5133
  ${USER_FIELDS_FRAGMENT}
5014
5134
  `;
5015
- var LOGIN_MUTATION = import_client12.gql`
5135
+ var LOGIN_MUTATION = import_client13.gql`
5016
5136
  mutation login($input: LoginInputType!) {
5017
5137
  login(input: $input) {
5018
5138
  data {
@@ -5027,7 +5147,7 @@ var LOGIN_MUTATION = import_client12.gql`
5027
5147
  }
5028
5148
  ${USER_FIELDS_FRAGMENT}
5029
5149
  `;
5030
- var LOGOUT_MUTATION = import_client12.gql`
5150
+ var LOGOUT_MUTATION = import_client13.gql`
5031
5151
  mutation logout {
5032
5152
  logout {
5033
5153
  data
@@ -5035,7 +5155,7 @@ var LOGOUT_MUTATION = import_client12.gql`
5035
5155
  }
5036
5156
  }
5037
5157
  `;
5038
- var REFRESH_TOKEN_MUTATION = import_client12.gql`
5158
+ var REFRESH_TOKEN_MUTATION = import_client13.gql`
5039
5159
  mutation refreshToken($input: RefreshTokenInputType!) {
5040
5160
  refreshToken(input: $input) {
5041
5161
  data {
@@ -5046,7 +5166,7 @@ var REFRESH_TOKEN_MUTATION = import_client12.gql`
5046
5166
  }
5047
5167
  }
5048
5168
  `;
5049
- var RESET_PASSWORD_MUTATION = import_client12.gql`
5169
+ var RESET_PASSWORD_MUTATION = import_client13.gql`
5050
5170
  mutation resetPassword($input: ResetPasswordInputType!) {
5051
5171
  resetPassword(input: $input) {
5052
5172
  data
@@ -5054,7 +5174,7 @@ var RESET_PASSWORD_MUTATION = import_client12.gql`
5054
5174
  }
5055
5175
  }
5056
5176
  `;
5057
- var REQUEST_PASSWORD_RESET_MUTATION = import_client12.gql`
5177
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client13.gql`
5058
5178
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
5059
5179
  requestPasswordReset(input: $input) {
5060
5180
  data
@@ -5062,7 +5182,7 @@ var REQUEST_PASSWORD_RESET_MUTATION = import_client12.gql`
5062
5182
  }
5063
5183
  }
5064
5184
  `;
5065
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client12.gql`
5185
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client13.gql`
5066
5186
  mutation validateVerificationToken(
5067
5187
  $input: ValidateVerificationTokenInputType!
5068
5188
  ) {
@@ -5075,43 +5195,43 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client12.gql`
5075
5195
 
5076
5196
  // src/graphql/hooks/auth.ts
5077
5197
  var useRegister = () => {
5078
- const [register, { loading, error }] = (0, import_client13.useMutation)(REGISTER_MUTATION);
5198
+ const [register, { loading, error }] = (0, import_client14.useMutation)(REGISTER_MUTATION);
5079
5199
  return { error, loading, register };
5080
5200
  };
5081
5201
  var useLogin = () => {
5082
- const [login, { loading, error }] = (0, import_client13.useMutation)(LOGIN_MUTATION);
5202
+ const [login, { loading, error }] = (0, import_client14.useMutation)(LOGIN_MUTATION);
5083
5203
  return { error, loading, login };
5084
5204
  };
5085
5205
  var useLogout = () => {
5086
- const [logout, { loading, error }] = (0, import_client13.useMutation)(LOGOUT_MUTATION);
5206
+ const [logout, { loading, error }] = (0, import_client14.useMutation)(LOGOUT_MUTATION);
5087
5207
  return { error, loading, logout };
5088
5208
  };
5089
5209
  var useRefreshToken = () => {
5090
- const [refreshToken, { loading, error }] = (0, import_client13.useMutation)(REFRESH_TOKEN_MUTATION);
5210
+ const [refreshToken, { loading, error }] = (0, import_client14.useMutation)(REFRESH_TOKEN_MUTATION);
5091
5211
  return { error, loading, refreshToken };
5092
5212
  };
5093
5213
  var useRequestPasswordReset = () => {
5094
- const [requestPasswordReset, { loading, error }] = (0, import_client13.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5214
+ const [requestPasswordReset, { loading, error }] = (0, import_client14.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
5095
5215
  return { error, loading, requestPasswordReset };
5096
5216
  };
5097
5217
  var useValidateVerificationToken = () => {
5098
- const [validateVerificationToken, { loading, error }] = (0, import_client13.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5218
+ const [validateVerificationToken, { loading, error }] = (0, import_client14.useMutation)(VALIDATE_VERIFICATION_TOKEN_MUTATION);
5099
5219
  return { error, loading, validateVerificationToken };
5100
5220
  };
5101
5221
  var useResetPassword = () => {
5102
- const [resetPassword, { loading, error }] = (0, import_client13.useMutation)(RESET_PASSWORD_MUTATION);
5222
+ const [resetPassword, { loading, error }] = (0, import_client14.useMutation)(RESET_PASSWORD_MUTATION);
5103
5223
  return { error, loading, resetPassword };
5104
5224
  };
5105
5225
 
5106
5226
  // src/graphql/hooks/chat/hooksMutation.ts
5107
- var import_client16 = require("@apollo/client");
5227
+ var import_client17 = require("@apollo/client");
5108
5228
 
5109
5229
  // src/graphql/mutations/chat.ts
5110
- var import_client15 = require("@apollo/client");
5230
+ var import_client16 = require("@apollo/client");
5111
5231
 
5112
5232
  // src/graphql/queries/chat.ts
5113
- var import_client14 = require("@apollo/client");
5114
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
5233
+ var import_client15 = require("@apollo/client");
5234
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client15.gql`
5115
5235
  fragment ChatMessageFields on ChatMessageType {
5116
5236
  _id
5117
5237
  content
@@ -5134,7 +5254,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
5134
5254
  updatedAt
5135
5255
  }
5136
5256
  `;
5137
- var CHAT_PARTICIPANT = import_client14.gql`
5257
+ var CHAT_PARTICIPANT = import_client15.gql`
5138
5258
  fragment ChatParticipantFields on ChatParticipantType {
5139
5259
  active
5140
5260
  userAvatar
@@ -5143,7 +5263,7 @@ var CHAT_PARTICIPANT = import_client14.gql`
5143
5263
  userName
5144
5264
  }
5145
5265
  `;
5146
- var CHAT_FIELDS_FRAGMENT = import_client14.gql`
5266
+ var CHAT_FIELDS_FRAGMENT = import_client15.gql`
5147
5267
  fragment ChatFields on ChatType {
5148
5268
  _id
5149
5269
  active
@@ -5164,7 +5284,7 @@ var CHAT_FIELDS_FRAGMENT = import_client14.gql`
5164
5284
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
5165
5285
  ${CHAT_PARTICIPANT}
5166
5286
  `;
5167
- var CHAT = import_client14.gql`
5287
+ var CHAT = import_client15.gql`
5168
5288
  query chat($_id: ID!) {
5169
5289
  chat(_id: $_id) {
5170
5290
  ...ChatFields
@@ -5172,15 +5292,23 @@ var CHAT = import_client14.gql`
5172
5292
  }
5173
5293
  ${CHAT_FIELDS_FRAGMENT}
5174
5294
  `;
5175
- var USER_CHATS = import_client14.gql`
5176
- query userChats {
5177
- userChats {
5295
+ var PRIVATE_CHATS = import_client15.gql`
5296
+ query privateChats {
5297
+ privateChats {
5298
+ ...ChatFields
5299
+ }
5300
+ }
5301
+ ${CHAT_FIELDS_FRAGMENT}
5302
+ `;
5303
+ var RELATION_CHATS = import_client15.gql`
5304
+ query relationChats {
5305
+ relationChats {
5178
5306
  ...ChatFields
5179
5307
  }
5180
5308
  }
5181
5309
  ${CHAT_FIELDS_FRAGMENT}
5182
5310
  `;
5183
- var GET_CHATS_BY_REGION = import_client14.gql`
5311
+ var GET_CHATS_BY_REGION = import_client15.gql`
5184
5312
  query getChatsByRegion($region: String!) {
5185
5313
  chatsByRegion(region: $region) {
5186
5314
  ...ChatFields
@@ -5188,7 +5316,7 @@ var GET_CHATS_BY_REGION = import_client14.gql`
5188
5316
  }
5189
5317
  ${CHAT_FIELDS_FRAGMENT}
5190
5318
  `;
5191
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client14.gql`
5319
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client15.gql`
5192
5320
  fragment ChatReportFields on ReportChatUserType {
5193
5321
  _id
5194
5322
  chatId
@@ -5203,7 +5331,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client14.gql`
5203
5331
  updatedAt
5204
5332
  }
5205
5333
  `;
5206
- var GET_REPORTED_CHAT_USERS = import_client14.gql`
5334
+ var GET_REPORTED_CHAT_USERS = import_client15.gql`
5207
5335
  query getReportedChatUsers {
5208
5336
  reportedChatUsers {
5209
5337
  ...ChatReportFields
@@ -5213,7 +5341,7 @@ var GET_REPORTED_CHAT_USERS = import_client14.gql`
5213
5341
  `;
5214
5342
 
5215
5343
  // src/graphql/mutations/chat.ts
5216
- var CREATE_PRIVATE_CHAT_MUTATION = import_client15.gql`
5344
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client16.gql`
5217
5345
  mutation createPrivateChat($userId: ID!) {
5218
5346
  createPrivateChat(userId: $userId) {
5219
5347
  data {
@@ -5224,7 +5352,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client15.gql`
5224
5352
  }
5225
5353
  ${CHAT_FIELDS_FRAGMENT}
5226
5354
  `;
5227
- var SEND_CHAT_MESSAGE_MUTATION = import_client15.gql`
5355
+ var SEND_CHAT_MESSAGE_MUTATION = import_client16.gql`
5228
5356
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
5229
5357
  sendChatMessage(_id: $_id, input: $input) {
5230
5358
  data {
@@ -5235,7 +5363,7 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client15.gql`
5235
5363
  }
5236
5364
  ${CHAT_FIELDS_FRAGMENT}
5237
5365
  `;
5238
- var DELETE_CHAT_MUTATION = import_client15.gql`
5366
+ var DELETE_CHAT_MUTATION = import_client16.gql`
5239
5367
  mutation deleteChat($_id: ID!) {
5240
5368
  deleteChat(_id: $_id) {
5241
5369
  data
@@ -5243,7 +5371,7 @@ var DELETE_CHAT_MUTATION = import_client15.gql`
5243
5371
  }
5244
5372
  }
5245
5373
  `;
5246
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client15.gql`
5374
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client16.gql`
5247
5375
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
5248
5376
  addParticipantToChat(chatId: $chatId, userId: $userId) {
5249
5377
  data {
@@ -5254,7 +5382,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client15.gql`
5254
5382
  }
5255
5383
  ${CHAT_FIELDS_FRAGMENT}
5256
5384
  `;
5257
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client15.gql`
5385
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client16.gql`
5258
5386
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
5259
5387
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
5260
5388
  data {
@@ -5265,7 +5393,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client15.gql`
5265
5393
  }
5266
5394
  }
5267
5395
  `;
5268
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client15.gql`
5396
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client16.gql`
5269
5397
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
5270
5398
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
5271
5399
  data {
@@ -5276,7 +5404,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client15.gql`
5276
5404
  }
5277
5405
  ${CHAT_FIELDS_FRAGMENT}
5278
5406
  `;
5279
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client15.gql`
5407
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client16.gql`
5280
5408
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
5281
5409
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
5282
5410
  data {
@@ -5287,7 +5415,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client15.gql`
5287
5415
  }
5288
5416
  ${CHAT_FIELDS_FRAGMENT}
5289
5417
  `;
5290
- var REPORT_CHAT_USER_MUTATION = import_client15.gql`
5418
+ var REPORT_CHAT_USER_MUTATION = import_client16.gql`
5291
5419
  mutation reportChatUser($input: ReportChatUserInputType!) {
5292
5420
  reportChatUser(input: $input) {
5293
5421
  data {
@@ -5301,14 +5429,14 @@ var REPORT_CHAT_USER_MUTATION = import_client15.gql`
5301
5429
 
5302
5430
  // src/graphql/hooks/chat/hooksMutation.ts
5303
5431
  var useCreatePrivateChat = () => {
5304
- const [createPrivateChat, { loading, error }] = (0, import_client16.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5432
+ const [createPrivateChat, { loading, error }] = (0, import_client17.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
5305
5433
  awaitRefetchQueries: true,
5306
- refetchQueries: [{ query: USER_CHATS }]
5434
+ refetchQueries: [{ query: PRIVATE_CHATS }]
5307
5435
  });
5308
5436
  return { createPrivateChat, error, loading };
5309
5437
  };
5310
5438
  var useSendChatMessage = () => {
5311
- const [sendChatMessage, { loading, error }] = (0, import_client16.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5439
+ const [sendChatMessage, { loading, error }] = (0, import_client17.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
5312
5440
  awaitRefetchQueries: true,
5313
5441
  refetchQueries: (mutationResult) => {
5314
5442
  const chatId = mutationResult?.data?.sendChatMessage?.data?._id;
@@ -5323,14 +5451,14 @@ var useSendChatMessage = () => {
5323
5451
  return { error, loading, sendChatMessage };
5324
5452
  };
5325
5453
  var useDeleteChat = () => {
5326
- const [deleteChat, { loading, error }] = (0, import_client16.useMutation)(DELETE_CHAT_MUTATION, {
5454
+ const [deleteChat, { loading, error }] = (0, import_client17.useMutation)(DELETE_CHAT_MUTATION, {
5327
5455
  awaitRefetchQueries: true,
5328
- refetchQueries: [{ query: USER_CHATS }]
5456
+ refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
5329
5457
  });
5330
5458
  return { deleteChat, error, loading };
5331
5459
  };
5332
5460
  var useAddParticipantToChat = () => {
5333
- const [addParticipantToChat, { loading, error }] = (0, import_client16.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5461
+ const [addParticipantToChat, { loading, error }] = (0, import_client17.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
5334
5462
  awaitRefetchQueries: true,
5335
5463
  refetchQueries: (mutationResult) => {
5336
5464
  const chatId = mutationResult?.data?.addParticipantToChat?.data?._id;
@@ -5340,7 +5468,10 @@ var useAddParticipantToChat = () => {
5340
5468
  variables: { _id: chatId }
5341
5469
  },
5342
5470
  {
5343
- query: USER_CHATS
5471
+ query: PRIVATE_CHATS
5472
+ },
5473
+ {
5474
+ query: RELATION_CHATS
5344
5475
  }
5345
5476
  ];
5346
5477
  }
@@ -5348,11 +5479,14 @@ var useAddParticipantToChat = () => {
5348
5479
  return { addParticipantToChat, error, loading };
5349
5480
  };
5350
5481
  var useRemoveParticipantFromChat = () => {
5351
- const [removeParticipantFromChat, { loading, error }] = (0, import_client16.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5482
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client17.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
5352
5483
  awaitRefetchQueries: true,
5353
5484
  refetchQueries: (mutationResult) => {
5354
5485
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
5355
- const queries = [{ query: USER_CHATS }];
5486
+ const queries = [
5487
+ { query: PRIVATE_CHATS },
5488
+ { query: RELATION_CHATS }
5489
+ ];
5356
5490
  if (region && region.trim() !== "") {
5357
5491
  queries.push({
5358
5492
  query: GET_CHATS_BY_REGION,
@@ -5365,7 +5499,7 @@ var useRemoveParticipantFromChat = () => {
5365
5499
  return { error, loading, removeParticipantFromChat };
5366
5500
  };
5367
5501
  var useToggleChatMessageLike = () => {
5368
- const [toggleChatMessageLike, { loading, error }] = (0, import_client16.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5502
+ const [toggleChatMessageLike, { loading, error }] = (0, import_client17.useMutation)(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {
5369
5503
  awaitRefetchQueries: true,
5370
5504
  refetchQueries: (mutationResult) => {
5371
5505
  const chatId = mutationResult?.data?.toggleChatMessageLike?.data?._id;
@@ -5380,7 +5514,7 @@ var useToggleChatMessageLike = () => {
5380
5514
  return { error, loading, toggleChatMessageLike };
5381
5515
  };
5382
5516
  var useMarkChatMessagesSeen = () => {
5383
- const [markChatMessagesSeen, { loading, error }] = (0, import_client16.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5517
+ const [markChatMessagesSeen, { loading, error }] = (0, import_client17.useMutation)(MARK_CHAT_MESSAGES_SEEN_MUTATION, {
5384
5518
  awaitRefetchQueries: true,
5385
5519
  refetchQueries: (mutationResult) => {
5386
5520
  const chatId = mutationResult?.data?.markChatMessagesSeen?.data?._id;
@@ -5395,16 +5529,16 @@ var useMarkChatMessagesSeen = () => {
5395
5529
  return { error, loading, markChatMessagesSeen };
5396
5530
  };
5397
5531
  var useReportChatUser = () => {
5398
- const [reportChatUser, { loading, error }] = (0, import_client16.useMutation)(REPORT_CHAT_USER_MUTATION);
5532
+ const [reportChatUser, { loading, error }] = (0, import_client17.useMutation)(REPORT_CHAT_USER_MUTATION);
5399
5533
  return { error, loading, reportChatUser };
5400
5534
  };
5401
5535
 
5402
5536
  // src/graphql/hooks/chat/hooksQuery.ts
5403
- var import_client18 = require("@apollo/client");
5537
+ var import_client19 = require("@apollo/client");
5404
5538
 
5405
5539
  // src/graphql/subscriptions/chat.ts
5406
- var import_client17 = require("@apollo/client");
5407
- var GET_CHAT_MESSAGE = import_client17.gql`
5540
+ var import_client18 = require("@apollo/client");
5541
+ var GET_CHAT_MESSAGE = import_client18.gql`
5408
5542
  subscription {
5409
5543
  getChatMessage {
5410
5544
  ...ChatFields
@@ -5415,7 +5549,7 @@ var GET_CHAT_MESSAGE = import_client17.gql`
5415
5549
 
5416
5550
  // src/graphql/hooks/chat/hooksQuery.ts
5417
5551
  var useGetChat = (_id) => {
5418
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(CHAT, {
5552
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(CHAT, {
5419
5553
  fetchPolicy: "network-only",
5420
5554
  skip: !_id || _id === "",
5421
5555
  variables: { _id }
@@ -5423,25 +5557,29 @@ var useGetChat = (_id) => {
5423
5557
  const chat = data?.chat;
5424
5558
  return { chat, error, loading, refetch };
5425
5559
  };
5426
- var useGetUserChats = () => {
5427
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(
5428
- USER_CHATS,
5429
- {
5430
- fetchPolicy: "network-only"
5431
- }
5432
- );
5433
- const userChats = data?.userChats || [];
5434
- return { error, loading, refetch, userChats };
5560
+ var useGetPrivateChats = () => {
5561
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(PRIVATE_CHATS, {
5562
+ fetchPolicy: "network-only"
5563
+ });
5564
+ const privateChats = data?.privateChats || [];
5565
+ return { error, loading, privateChats, refetch };
5566
+ };
5567
+ var useGetRelationChats = () => {
5568
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(RELATION_CHATS, {
5569
+ fetchPolicy: "network-only"
5570
+ });
5571
+ const relationChats = data?.relationChats || [];
5572
+ return { error, loading, refetch, relationChats };
5435
5573
  };
5436
5574
  var useGetChatSubscription = () => {
5437
- const { data, loading, error } = (0, import_client18.useSubscription)(
5575
+ const { data, loading, error } = (0, import_client19.useSubscription)(
5438
5576
  GET_CHAT_MESSAGE
5439
5577
  );
5440
5578
  const chat = data?.getChat;
5441
5579
  return { chat, error, loading };
5442
5580
  };
5443
5581
  var useGetChatsByRegion = (region) => {
5444
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_CHATS_BY_REGION, {
5582
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_CHATS_BY_REGION, {
5445
5583
  fetchPolicy: "network-only",
5446
5584
  variables: { region }
5447
5585
  });
@@ -5449,7 +5587,7 @@ var useGetChatsByRegion = (region) => {
5449
5587
  return { chatsByRegion, error, loading, refetch };
5450
5588
  };
5451
5589
  var useGetReportedChatUsers = () => {
5452
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_REPORTED_CHAT_USERS, {
5590
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_REPORTED_CHAT_USERS, {
5453
5591
  fetchPolicy: "network-only"
5454
5592
  });
5455
5593
  const reportedChatUsers = data?.reportedChatUsers || [];
@@ -5457,11 +5595,11 @@ var useGetReportedChatUsers = () => {
5457
5595
  };
5458
5596
 
5459
5597
  // src/graphql/hooks/contactUs.ts
5460
- var import_client20 = require("@apollo/client");
5598
+ var import_client21 = require("@apollo/client");
5461
5599
 
5462
5600
  // src/graphql/mutations/contactUs.ts
5463
- var import_client19 = require("@apollo/client");
5464
- var CONTACT_US_MUTATION = import_client19.gql`
5601
+ var import_client20 = require("@apollo/client");
5602
+ var CONTACT_US_MUTATION = import_client20.gql`
5465
5603
  mutation contactUs($input: ContactUsInputType!) {
5466
5604
  contactUs(input: $input) {
5467
5605
  data
@@ -5472,16 +5610,16 @@ var CONTACT_US_MUTATION = import_client19.gql`
5472
5610
 
5473
5611
  // src/graphql/hooks/contactUs.ts
5474
5612
  var useContactUs = () => {
5475
- const [contactUs, { loading, error }] = (0, import_client20.useMutation)(CONTACT_US_MUTATION);
5613
+ const [contactUs, { loading, error }] = (0, import_client21.useMutation)(CONTACT_US_MUTATION);
5476
5614
  return { contactUs, error, loading };
5477
5615
  };
5478
5616
 
5479
5617
  // src/graphql/hooks/event/hooksMutation.ts
5480
- var import_client23 = require("@apollo/client");
5618
+ var import_client24 = require("@apollo/client");
5481
5619
 
5482
5620
  // src/graphql/mutations/event.ts
5483
- var import_client21 = require("@apollo/client");
5484
- var CREATE_EVENT_MUTATION = import_client21.gql`
5621
+ var import_client22 = require("@apollo/client");
5622
+ var CREATE_EVENT_MUTATION = import_client22.gql`
5485
5623
  mutation createEvent($input: EventInputType!) {
5486
5624
  createEvent(input: $input) {
5487
5625
  data {
@@ -5492,7 +5630,7 @@ var CREATE_EVENT_MUTATION = import_client21.gql`
5492
5630
  }
5493
5631
  ${EVENT}
5494
5632
  `;
5495
- var UPDATE_EVENT_MUTATION = import_client21.gql`
5633
+ var UPDATE_EVENT_MUTATION = import_client22.gql`
5496
5634
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
5497
5635
  updateEvent(_id: $_id, input: $input) {
5498
5636
  data {
@@ -5503,7 +5641,7 @@ var UPDATE_EVENT_MUTATION = import_client21.gql`
5503
5641
  }
5504
5642
  ${EVENT}
5505
5643
  `;
5506
- var DELETE_EVENT_MUTATION = import_client21.gql`
5644
+ var DELETE_EVENT_MUTATION = import_client22.gql`
5507
5645
  mutation deleteEvent($_id: ID!) {
5508
5646
  deleteEvent(_id: $_id) {
5509
5647
  data
@@ -5511,7 +5649,7 @@ var DELETE_EVENT_MUTATION = import_client21.gql`
5511
5649
  }
5512
5650
  }
5513
5651
  `;
5514
- var CREATE_EVENT_INFO_MUTATION = import_client21.gql`
5652
+ var CREATE_EVENT_INFO_MUTATION = import_client22.gql`
5515
5653
  mutation createEventInfo($input: EventInfoInputType!) {
5516
5654
  createEventInfo(input: $input) {
5517
5655
  data {
@@ -5522,7 +5660,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client21.gql`
5522
5660
  }
5523
5661
  ${EVENT_INFO}
5524
5662
  `;
5525
- var UPDATE_EVENT_INFO_MUTATION = import_client21.gql`
5663
+ var UPDATE_EVENT_INFO_MUTATION = import_client22.gql`
5526
5664
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
5527
5665
  updateEventInfo(_id: $_id, input: $input) {
5528
5666
  data {
@@ -5535,8 +5673,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client21.gql`
5535
5673
  `;
5536
5674
 
5537
5675
  // src/graphql/queries/user.ts
5538
- var import_client22 = require("@apollo/client");
5539
- var GET_USERS = import_client22.gql`
5676
+ var import_client23 = require("@apollo/client");
5677
+ var GET_USERS = import_client23.gql`
5540
5678
  query getUsers {
5541
5679
  users {
5542
5680
  ...UserFields
@@ -5544,7 +5682,7 @@ var GET_USERS = import_client22.gql`
5544
5682
  }
5545
5683
  ${USER_FIELDS_FRAGMENT}
5546
5684
  `;
5547
- var GET_USER = import_client22.gql`
5685
+ var GET_USER = import_client23.gql`
5548
5686
  query getUser($_id: ID!) {
5549
5687
  user(_id: $_id) {
5550
5688
  ...UserFields
@@ -5552,7 +5690,7 @@ var GET_USER = import_client22.gql`
5552
5690
  }
5553
5691
  ${USER_FIELDS_FRAGMENT}
5554
5692
  `;
5555
- var GET_USER_EVENTS = import_client22.gql`
5693
+ var GET_USER_EVENTS = import_client23.gql`
5556
5694
  query getUserEvents {
5557
5695
  userEvents {
5558
5696
  ...EventFields
@@ -5560,7 +5698,7 @@ var GET_USER_EVENTS = import_client22.gql`
5560
5698
  }
5561
5699
  ${EVENT}
5562
5700
  `;
5563
- var GET_USER_VENDORS = import_client22.gql`
5701
+ var GET_USER_VENDORS = import_client23.gql`
5564
5702
  query getUserVendors {
5565
5703
  userVendors {
5566
5704
  ...VendorFields
@@ -5568,7 +5706,7 @@ var GET_USER_VENDORS = import_client22.gql`
5568
5706
  }
5569
5707
  ${VENDOR}
5570
5708
  `;
5571
- var GET_USER_PARTNERS = import_client22.gql`
5709
+ var GET_USER_PARTNERS = import_client23.gql`
5572
5710
  query getUserPartners {
5573
5711
  userPartners {
5574
5712
  ...PartnerFields
@@ -5576,7 +5714,7 @@ var GET_USER_PARTNERS = import_client22.gql`
5576
5714
  }
5577
5715
  ${PARTNER}
5578
5716
  `;
5579
- var GET_USER_ACTIVITIES = import_client22.gql`
5717
+ var GET_USER_ACTIVITIES = import_client23.gql`
5580
5718
  query getUserActivities {
5581
5719
  userActivities {
5582
5720
  favourites {
@@ -5611,7 +5749,7 @@ var GET_USER_ACTIVITIES = import_client22.gql`
5611
5749
  ${VENDOR}
5612
5750
  ${PARTNER}
5613
5751
  `;
5614
- var GET_USER_RESOURCES = import_client22.gql`
5752
+ var GET_USER_RESOURCES = import_client23.gql`
5615
5753
  query getUserResources($userId: ID!) {
5616
5754
  userResources(userId: $userId) {
5617
5755
  resources {
@@ -5626,14 +5764,14 @@ var GET_USER_RESOURCES = import_client22.gql`
5626
5764
 
5627
5765
  // src/graphql/hooks/event/hooksMutation.ts
5628
5766
  var useCreateEvent = () => {
5629
- const [createEvent, { loading, error }] = (0, import_client23.useMutation)(CREATE_EVENT_MUTATION, {
5767
+ const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
5630
5768
  awaitRefetchQueries: true,
5631
5769
  refetchQueries: [{ query: GET_USER_EVENTS }]
5632
5770
  });
5633
5771
  return { createEvent, error, loading };
5634
5772
  };
5635
5773
  var useUpdateEvent = () => {
5636
- const [updateEvent, { loading, error }] = (0, import_client23.useMutation)(UPDATE_EVENT_MUTATION, {
5774
+ const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
5637
5775
  awaitRefetchQueries: true,
5638
5776
  refetchQueries: (mutationResult) => {
5639
5777
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
@@ -5656,14 +5794,14 @@ var useUpdateEvent = () => {
5656
5794
  return { error, loading, updateEvent };
5657
5795
  };
5658
5796
  var useDeleteEvent = () => {
5659
- const [deleteEvent, { loading, error }] = (0, import_client23.useMutation)(DELETE_EVENT_MUTATION, {
5797
+ const [deleteEvent, { loading, error }] = (0, import_client24.useMutation)(DELETE_EVENT_MUTATION, {
5660
5798
  awaitRefetchQueries: true,
5661
5799
  refetchQueries: [{ query: GET_USER_EVENTS }]
5662
5800
  });
5663
5801
  return { deleteEvent, error, loading };
5664
5802
  };
5665
5803
  var useCreateEventInfo = () => {
5666
- const [createEventInfo, { loading, error }] = (0, import_client23.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5804
+ const [createEventInfo, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_INFO_MUTATION, {
5667
5805
  awaitRefetchQueries: true,
5668
5806
  refetchQueries: (mutationResult) => {
5669
5807
  const eventId = mutationResult?.data?.createEventInfo?.data?.eventId;
@@ -5687,7 +5825,7 @@ var useCreateEventInfo = () => {
5687
5825
  return { createEventInfo, error, loading };
5688
5826
  };
5689
5827
  var useUpdateEventInfo = () => {
5690
- const [updateEventInfo, { loading, error }] = (0, import_client23.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5828
+ const [updateEventInfo, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
5691
5829
  awaitRefetchQueries: true,
5692
5830
  refetchQueries: (mutationResult) => {
5693
5831
  const eventId = mutationResult?.data?.updateEventInfo?.data?.eventId;
@@ -5711,9 +5849,9 @@ var useUpdateEventInfo = () => {
5711
5849
  };
5712
5850
 
5713
5851
  // src/graphql/hooks/event/hooksQuery.ts
5714
- var import_client24 = require("@apollo/client");
5852
+ var import_client25 = require("@apollo/client");
5715
5853
  var useGetEvents = (dateStatus) => {
5716
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENTS, {
5854
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS, {
5717
5855
  fetchPolicy: "network-only",
5718
5856
  variables: { dateStatus }
5719
5857
  });
@@ -5721,7 +5859,7 @@ var useGetEvents = (dateStatus) => {
5721
5859
  return { error, events, loading, refetch };
5722
5860
  };
5723
5861
  var useGetEvent = (_id) => {
5724
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENT, {
5862
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT, {
5725
5863
  fetchPolicy: "network-only",
5726
5864
  skip: !_id,
5727
5865
  variables: { _id }
@@ -5730,7 +5868,7 @@ var useGetEvent = (_id) => {
5730
5868
  return { error, event, loading, refetch };
5731
5869
  };
5732
5870
  var useGetEventByPlaceId = (googlePlaceId) => {
5733
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENT_BY_PLACE_ID, {
5871
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
5734
5872
  fetchPolicy: "network-only",
5735
5873
  skip: !googlePlaceId,
5736
5874
  variables: { googlePlaceId }
@@ -5744,7 +5882,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
5744
5882
  options,
5745
5883
  region
5746
5884
  };
5747
- const { loading, error, data, refetch, fetchMore } = (0, import_client24.useQuery)(GET_EVENTS_BY_REGION, {
5885
+ const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
5748
5886
  fetchPolicy: "network-only",
5749
5887
  skip: !region || region === "",
5750
5888
  variables
@@ -5762,7 +5900,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5762
5900
  const normalizedSearch = searchQuery?.trim() ?? "";
5763
5901
  const normalizedTags = (tags ?? []).filter(Boolean);
5764
5902
  const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
5765
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(SEARCH_EVENTS, {
5903
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(SEARCH_EVENTS, {
5766
5904
  fetchPolicy: "network-only",
5767
5905
  skip: !shouldRunQuery,
5768
5906
  variables: {
@@ -5780,7 +5918,7 @@ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
5780
5918
  };
5781
5919
  };
5782
5920
  var useGetEventsNearMe = (location, dateStatus) => {
5783
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENTS_NEAR_ME, {
5921
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENTS_NEAR_ME, {
5784
5922
  fetchPolicy: "network-only",
5785
5923
  skip: !location.latitude || !location.longitude,
5786
5924
  variables: {
@@ -5795,7 +5933,7 @@ var useGetEventsNearMe = (location, dateStatus) => {
5795
5933
  return { error, eventsNearMe, loading, refetch };
5796
5934
  };
5797
5935
  var useGetEventInfo = (eventId) => {
5798
- const { loading, error, data, refetch } = (0, import_client24.useQuery)(GET_EVENT_INFO, {
5936
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_INFO, {
5799
5937
  fetchPolicy: "network-only",
5800
5938
  skip: !eventId || eventId === "",
5801
5939
  variables: { eventId }
@@ -5805,14 +5943,14 @@ var useGetEventInfo = (eventId) => {
5805
5943
  };
5806
5944
 
5807
5945
  // src/graphql/hooks/notifications/hooksMutation.ts
5808
- var import_client27 = require("@apollo/client");
5946
+ var import_client28 = require("@apollo/client");
5809
5947
 
5810
5948
  // src/graphql/mutations/notification.ts
5811
- var import_client26 = require("@apollo/client");
5949
+ var import_client27 = require("@apollo/client");
5812
5950
 
5813
5951
  // src/graphql/queries/notification.ts
5814
- var import_client25 = require("@apollo/client");
5815
- var NOTIFICATION_FRAGMENT = import_client25.gql`
5952
+ var import_client26 = require("@apollo/client");
5953
+ var NOTIFICATION_FRAGMENT = import_client26.gql`
5816
5954
  fragment NotificationFields on Notification {
5817
5955
  _id
5818
5956
  userId
@@ -5829,7 +5967,7 @@ var NOTIFICATION_FRAGMENT = import_client25.gql`
5829
5967
  updatedAt
5830
5968
  }
5831
5969
  `;
5832
- var GET_USER_NOTIFICATIONS = import_client25.gql`
5970
+ var GET_USER_NOTIFICATIONS = import_client26.gql`
5833
5971
  query getUserNotifications($limit: Int, $offset: Int) {
5834
5972
  userNotifications(limit: $limit, offset: $offset) {
5835
5973
  ...NotificationFields
@@ -5837,7 +5975,7 @@ var GET_USER_NOTIFICATIONS = import_client25.gql`
5837
5975
  }
5838
5976
  ${NOTIFICATION_FRAGMENT}
5839
5977
  `;
5840
- var GET_NOTIFICATION_COUNT = import_client25.gql`
5978
+ var GET_NOTIFICATION_COUNT = import_client26.gql`
5841
5979
  query getNotificationCount {
5842
5980
  notificationCount {
5843
5981
  total
@@ -5847,7 +5985,7 @@ var GET_NOTIFICATION_COUNT = import_client25.gql`
5847
5985
  `;
5848
5986
 
5849
5987
  // src/graphql/mutations/notification.ts
5850
- var CREATE_BULK_NOTIFICATIONS = import_client26.gql`
5988
+ var CREATE_BULK_NOTIFICATIONS = import_client27.gql`
5851
5989
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
5852
5990
  createBulkNotifications(input: $input) {
5853
5991
  data
@@ -5855,7 +5993,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client26.gql`
5855
5993
  }
5856
5994
  }
5857
5995
  `;
5858
- var MARK_NOTIFICATION_READ = import_client26.gql`
5996
+ var MARK_NOTIFICATION_READ = import_client27.gql`
5859
5997
  mutation markNotificationRead($_id: ID!) {
5860
5998
  markNotificationRead(_id: $_id) {
5861
5999
  data {
@@ -5866,7 +6004,7 @@ var MARK_NOTIFICATION_READ = import_client26.gql`
5866
6004
  }
5867
6005
  ${NOTIFICATION_FRAGMENT}
5868
6006
  `;
5869
- var MARK_ALL_NOTIFICATIONS_READ = import_client26.gql`
6007
+ var MARK_ALL_NOTIFICATIONS_READ = import_client27.gql`
5870
6008
  mutation markAllNotificationsRead {
5871
6009
  markAllNotificationsRead {
5872
6010
  data
@@ -5874,7 +6012,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client26.gql`
5874
6012
  }
5875
6013
  }
5876
6014
  `;
5877
- var DELETE_NOTIFICATION = import_client26.gql`
6015
+ var DELETE_NOTIFICATION = import_client27.gql`
5878
6016
  mutation deleteNotification($_id: ID!) {
5879
6017
  deleteNotification(_id: $_id) {
5880
6018
  data
@@ -5882,7 +6020,7 @@ var DELETE_NOTIFICATION = import_client26.gql`
5882
6020
  }
5883
6021
  }
5884
6022
  `;
5885
- var DELETE_ALL_NOTIFICATIONS = import_client26.gql`
6023
+ var DELETE_ALL_NOTIFICATIONS = import_client27.gql`
5886
6024
  mutation deleteAllNotifications {
5887
6025
  deleteAllNotifications {
5888
6026
  data
@@ -5893,11 +6031,11 @@ var DELETE_ALL_NOTIFICATIONS = import_client26.gql`
5893
6031
 
5894
6032
  // src/graphql/hooks/notifications/hooksMutation.ts
5895
6033
  var useCreateBulkNotifications = () => {
5896
- const [createBulkNotifications, { loading, error }] = (0, import_client27.useMutation)(CREATE_BULK_NOTIFICATIONS);
6034
+ const [createBulkNotifications, { loading, error }] = (0, import_client28.useMutation)(CREATE_BULK_NOTIFICATIONS);
5897
6035
  return { createBulkNotifications, error, loading };
5898
6036
  };
5899
6037
  var useMarkNotificationRead = () => {
5900
- const [markNotificationRead, { loading, error }] = (0, import_client27.useMutation)(MARK_NOTIFICATION_READ, {
6038
+ const [markNotificationRead, { loading, error }] = (0, import_client28.useMutation)(MARK_NOTIFICATION_READ, {
5901
6039
  refetchQueries: [
5902
6040
  {
5903
6041
  query: GET_USER_NOTIFICATIONS
@@ -5910,7 +6048,7 @@ var useMarkNotificationRead = () => {
5910
6048
  return { error, loading, markNotificationRead };
5911
6049
  };
5912
6050
  var useMarkAllNotificationsRead = () => {
5913
- const [markAllNotificationsRead, { loading, error }] = (0, import_client27.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
6051
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client28.useMutation)(MARK_ALL_NOTIFICATIONS_READ, {
5914
6052
  refetchQueries: [
5915
6053
  {
5916
6054
  query: GET_USER_NOTIFICATIONS
@@ -5923,7 +6061,7 @@ var useMarkAllNotificationsRead = () => {
5923
6061
  return { error, loading, markAllNotificationsRead };
5924
6062
  };
5925
6063
  var useDeleteNotification = () => {
5926
- const [deleteNotification, { loading, error }] = (0, import_client27.useMutation)(DELETE_NOTIFICATION, {
6064
+ const [deleteNotification, { loading, error }] = (0, import_client28.useMutation)(DELETE_NOTIFICATION, {
5927
6065
  refetchQueries: [
5928
6066
  {
5929
6067
  query: GET_USER_NOTIFICATIONS
@@ -5936,7 +6074,7 @@ var useDeleteNotification = () => {
5936
6074
  return { deleteNotification, error, loading };
5937
6075
  };
5938
6076
  var useDeleteAllNotifications = () => {
5939
- const [deleteAllNotifications, { loading, error }] = (0, import_client27.useMutation)(DELETE_ALL_NOTIFICATIONS, {
6077
+ const [deleteAllNotifications, { loading, error }] = (0, import_client28.useMutation)(DELETE_ALL_NOTIFICATIONS, {
5940
6078
  refetchQueries: [
5941
6079
  {
5942
6080
  query: GET_USER_NOTIFICATIONS
@@ -5950,9 +6088,9 @@ var useDeleteAllNotifications = () => {
5950
6088
  };
5951
6089
 
5952
6090
  // src/graphql/hooks/notifications/hooksQuery.ts
5953
- var import_client28 = require("@apollo/client");
6091
+ var import_client29 = require("@apollo/client");
5954
6092
  var useGetUserNotifications = (limit, offset) => {
5955
- const { data, loading, error, refetch } = (0, import_client28.useQuery)(GET_USER_NOTIFICATIONS, {
6093
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_USER_NOTIFICATIONS, {
5956
6094
  fetchPolicy: "no-cache",
5957
6095
  variables: { limit, offset }
5958
6096
  });
@@ -5964,7 +6102,7 @@ var useGetUserNotifications = (limit, offset) => {
5964
6102
  };
5965
6103
  };
5966
6104
  var useGetNotificationCount = () => {
5967
- const { data, loading, error, refetch } = (0, import_client28.useQuery)(GET_NOTIFICATION_COUNT, {
6105
+ const { data, loading, error, refetch } = (0, import_client29.useQuery)(GET_NOTIFICATION_COUNT, {
5968
6106
  fetchPolicy: "no-cache"
5969
6107
  });
5970
6108
  return {
@@ -5976,11 +6114,11 @@ var useGetNotificationCount = () => {
5976
6114
  };
5977
6115
 
5978
6116
  // src/graphql/hooks/notifications/hooksSubscription.ts
5979
- var import_client30 = require("@apollo/client");
6117
+ var import_client31 = require("@apollo/client");
5980
6118
 
5981
6119
  // src/graphql/subscriptions/notification.ts
5982
- var import_client29 = require("@apollo/client");
5983
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client29.gql`
6120
+ var import_client30 = require("@apollo/client");
6121
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client30.gql`
5984
6122
  subscription {
5985
6123
  getUserNotifications {
5986
6124
  ...NotificationFields
@@ -5988,7 +6126,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client29.gql`
5988
6126
  }
5989
6127
  ${NOTIFICATION_FRAGMENT}
5990
6128
  `;
5991
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client29.gql`
6129
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client30.gql`
5992
6130
  subscription {
5993
6131
  getNotificationCount {
5994
6132
  total
@@ -5999,7 +6137,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client29.gql`
5999
6137
 
6000
6138
  // src/graphql/hooks/notifications/hooksSubscription.ts
6001
6139
  var useGetUserNotificationsSubscription = () => {
6002
- const { data, loading, error } = (0, import_client30.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6140
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
6003
6141
  fetchPolicy: "no-cache",
6004
6142
  shouldResubscribe: true
6005
6143
  });
@@ -6010,7 +6148,7 @@ var useGetUserNotificationsSubscription = () => {
6010
6148
  };
6011
6149
  };
6012
6150
  var useGetNotificationCountSubscription = () => {
6013
- const { data, loading, error } = (0, import_client30.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6151
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
6014
6152
  fetchPolicy: "no-cache",
6015
6153
  shouldResubscribe: true
6016
6154
  });
@@ -6022,11 +6160,11 @@ var useGetNotificationCountSubscription = () => {
6022
6160
  };
6023
6161
 
6024
6162
  // src/graphql/hooks/poster.ts
6025
- var import_client32 = require("@apollo/client");
6163
+ var import_client33 = require("@apollo/client");
6026
6164
 
6027
6165
  // src/graphql/mutations/poster.ts
6028
- var import_client31 = require("@apollo/client");
6029
- var CREATE_POSTER_MUTATION = import_client31.gql`
6166
+ var import_client32 = require("@apollo/client");
6167
+ var CREATE_POSTER_MUTATION = import_client32.gql`
6030
6168
  mutation createPoster($input: PosterInputType!) {
6031
6169
  createPoster(input: $input) {
6032
6170
  data {
@@ -6042,18 +6180,18 @@ var CREATE_POSTER_MUTATION = import_client31.gql`
6042
6180
 
6043
6181
  // src/graphql/hooks/poster.ts
6044
6182
  var useCreatePoster = () => {
6045
- const [createPoster, { loading, error }] = (0, import_client32.useMutation)(CREATE_POSTER_MUTATION, {
6183
+ const [createPoster, { loading, error }] = (0, import_client33.useMutation)(CREATE_POSTER_MUTATION, {
6046
6184
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
6047
6185
  });
6048
6186
  return { createPoster, error, loading };
6049
6187
  };
6050
6188
 
6051
6189
  // src/graphql/hooks/pushToken.ts
6052
- var import_client34 = require("@apollo/client");
6190
+ var import_client35 = require("@apollo/client");
6053
6191
 
6054
6192
  // src/graphql/mutations/pushToken.ts
6055
- var import_client33 = require("@apollo/client");
6056
- var CREATE_PUSH_TOKEN_MUTATION = import_client33.gql`
6193
+ var import_client34 = require("@apollo/client");
6194
+ var CREATE_PUSH_TOKEN_MUTATION = import_client34.gql`
6057
6195
  mutation createPushToken($input: PushTokenInput!) {
6058
6196
  createPushToken(input: $input) {
6059
6197
  data {
@@ -6066,16 +6204,16 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client33.gql`
6066
6204
 
6067
6205
  // src/graphql/hooks/pushToken.ts
6068
6206
  var useCreatePushToken = () => {
6069
- const [createPushToken, { loading, error }] = (0, import_client34.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6207
+ const [createPushToken, { loading, error }] = (0, import_client35.useMutation)(CREATE_PUSH_TOKEN_MUTATION);
6070
6208
  return { createPushToken, error, loading };
6071
6209
  };
6072
6210
 
6073
6211
  // src/graphql/hooks/relation/hooksMutation.ts
6074
- var import_client36 = require("@apollo/client");
6212
+ var import_client37 = require("@apollo/client");
6075
6213
 
6076
6214
  // src/graphql/mutations/relation.ts
6077
- var import_client35 = require("@apollo/client");
6078
- var CREATE_RELATION_MUTATION = import_client35.gql`
6215
+ var import_client36 = require("@apollo/client");
6216
+ var CREATE_RELATION_MUTATION = import_client36.gql`
6079
6217
  mutation createRelation($input: RelationInputType!) {
6080
6218
  createRelation(input: $input) {
6081
6219
  data {
@@ -6086,7 +6224,7 @@ var CREATE_RELATION_MUTATION = import_client35.gql`
6086
6224
  }
6087
6225
  ${RELATION_FIELDS_FRAGMENT}
6088
6226
  `;
6089
- var UPDATE_RELATION_MUTATION = import_client35.gql`
6227
+ var UPDATE_RELATION_MUTATION = import_client36.gql`
6090
6228
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
6091
6229
  updateRelation(_id: $_id, input: $input) {
6092
6230
  data {
@@ -6097,7 +6235,7 @@ var UPDATE_RELATION_MUTATION = import_client35.gql`
6097
6235
  }
6098
6236
  ${RELATION_FIELDS_FRAGMENT}
6099
6237
  `;
6100
- var DELETE_RELATION_MUTATION = import_client35.gql`
6238
+ var DELETE_RELATION_MUTATION = import_client36.gql`
6101
6239
  mutation deleteRelation($_id: ID!) {
6102
6240
  deleteRelation(_id: $_id) {
6103
6241
  data {
@@ -6111,7 +6249,7 @@ var DELETE_RELATION_MUTATION = import_client35.gql`
6111
6249
 
6112
6250
  // src/graphql/hooks/relation/hooksMutation.ts
6113
6251
  var useCreateRelation = () => {
6114
- const [createRelation, { loading, error }] = (0, import_client36.useMutation)(CREATE_RELATION_MUTATION, {
6252
+ const [createRelation, { loading, error }] = (0, import_client37.useMutation)(CREATE_RELATION_MUTATION, {
6115
6253
  awaitRefetchQueries: true,
6116
6254
  refetchQueries: (mutationResult) => {
6117
6255
  const createRelation2 = mutationResult?.data?.createRelation?.data;
@@ -6149,7 +6287,7 @@ var useCreateRelation = () => {
6149
6287
  variables: { resourceId, resourceType }
6150
6288
  },
6151
6289
  {
6152
- query: USER_CHATS
6290
+ query: RELATION_CHATS
6153
6291
  }
6154
6292
  ];
6155
6293
  }
@@ -6157,7 +6295,7 @@ var useCreateRelation = () => {
6157
6295
  return { createRelation, error, loading };
6158
6296
  };
6159
6297
  var useUpdateRelation = () => {
6160
- const [updateRelation, { loading, error }] = (0, import_client36.useMutation)(UPDATE_RELATION_MUTATION, {
6298
+ const [updateRelation, { loading, error }] = (0, import_client37.useMutation)(UPDATE_RELATION_MUTATION, {
6161
6299
  awaitRefetchQueries: true,
6162
6300
  refetchQueries: (mutationResult) => {
6163
6301
  const updateRelation2 = mutationResult?.data?.updateRelation?.data;
@@ -6200,7 +6338,7 @@ var useUpdateRelation = () => {
6200
6338
  return { error, loading, updateRelation };
6201
6339
  };
6202
6340
  var useDeleteRelation = () => {
6203
- const [deleteRelation, { loading, error }] = (0, import_client36.useMutation)(DELETE_RELATION_MUTATION, {
6341
+ const [deleteRelation, { loading, error }] = (0, import_client37.useMutation)(DELETE_RELATION_MUTATION, {
6204
6342
  awaitRefetchQueries: true,
6205
6343
  refetchQueries: (mutationResult) => {
6206
6344
  const deleteRelation2 = mutationResult?.data?.deleteRelation?.data;
@@ -6230,7 +6368,7 @@ var useDeleteRelation = () => {
6230
6368
  variables: { resourceId, resourceType }
6231
6369
  },
6232
6370
  {
6233
- query: USER_CHATS
6371
+ query: RELATION_CHATS
6234
6372
  }
6235
6373
  ];
6236
6374
  }
@@ -6239,9 +6377,9 @@ var useDeleteRelation = () => {
6239
6377
  };
6240
6378
 
6241
6379
  // src/graphql/hooks/relation/hooksQuery.ts
6242
- var import_client37 = require("@apollo/client");
6380
+ var import_client38 = require("@apollo/client");
6243
6381
  var useGetRelation = (_id) => {
6244
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_RELATION, {
6382
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
6245
6383
  fetchPolicy: "network-only",
6246
6384
  skip: !_id,
6247
6385
  variables: _id ? { _id } : void 0
@@ -6250,7 +6388,7 @@ var useGetRelation = (_id) => {
6250
6388
  return { error, loading, refetch, relation };
6251
6389
  };
6252
6390
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6253
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6391
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
6254
6392
  fetchPolicy: "network-only",
6255
6393
  skip: !eventId || eventId === "" || !vendorId || vendorId === "",
6256
6394
  variables: { eventId, vendorId }
@@ -6259,7 +6397,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
6259
6397
  return { error, loading, refetch, relationByEventAndVendor };
6260
6398
  };
6261
6399
  var useGetEventRelations = (eventId) => {
6262
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_EVENT_RELATIONS, {
6400
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_EVENT_RELATIONS, {
6263
6401
  fetchPolicy: "network-only",
6264
6402
  skip: !eventId || eventId === "",
6265
6403
  variables: { eventId }
@@ -6268,7 +6406,7 @@ var useGetEventRelations = (eventId) => {
6268
6406
  return { error, eventRelations, loading, refetch };
6269
6407
  };
6270
6408
  var useGetVendorRelations = (vendorId) => {
6271
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDOR_RELATIONS, {
6409
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_VENDOR_RELATIONS, {
6272
6410
  fetchPolicy: "network-only",
6273
6411
  skip: !vendorId || vendorId === "",
6274
6412
  variables: { vendorId }
@@ -6277,7 +6415,7 @@ var useGetVendorRelations = (vendorId) => {
6277
6415
  return { error, loading, refetch, vendorRelations };
6278
6416
  };
6279
6417
  var useGetResourceConnections = (resourceId, resourceType) => {
6280
- const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_RESOURCE_CONNECTIONS, {
6418
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RESOURCE_CONNECTIONS, {
6281
6419
  fetchPolicy: "network-only",
6282
6420
  skip: !resourceId || resourceId === "" || !resourceType,
6283
6421
  variables: { resourceId, resourceType }
@@ -6288,104 +6426,6 @@ var useGetResourceConnections = (resourceId, resourceType) => {
6288
6426
 
6289
6427
  // src/graphql/hooks/vendor/hooksMutation.ts
6290
6428
  var import_client39 = require("@apollo/client");
6291
-
6292
- // src/graphql/mutations/vendor.ts
6293
- var import_client38 = require("@apollo/client");
6294
- var CREATE_VENDOR_MUTATION = import_client38.gql`
6295
- mutation createVendor($input: VendorInputType!) {
6296
- createVendor(input: $input) {
6297
- data {
6298
- ...VendorFields
6299
- }
6300
- message
6301
- }
6302
- }
6303
- ${VENDOR}
6304
- `;
6305
- var UPDATE_VENDOR_MUTATION = import_client38.gql`
6306
- mutation updateVendor($_id: ID!, $input: VendorInputType!) {
6307
- updateVendor(_id: $_id, input: $input) {
6308
- data {
6309
- ...VendorFields
6310
- }
6311
- message
6312
- }
6313
- }
6314
- ${VENDOR}
6315
- `;
6316
- var DELETE_VENDOR_MUTATION = import_client38.gql`
6317
- mutation deleteVendor($_id: ID!) {
6318
- deleteVendor(_id: $_id) {
6319
- data
6320
- message
6321
- }
6322
- }
6323
- `;
6324
- var CREATE_VENDOR_INFO_MUTATION = import_client38.gql`
6325
- mutation createVendorInfo($input: VendorInfoInputType!) {
6326
- createVendorInfo(input: $input) {
6327
- data {
6328
- ...VendorInfoFields
6329
- }
6330
- message
6331
- }
6332
- }
6333
- ${VENDOR_INFO}
6334
- `;
6335
- var UPDATE_VENDOR_INFO_MUTATION = import_client38.gql`
6336
- mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
6337
- updateVendorInfo(_id: $_id, input: $input) {
6338
- data {
6339
- ...VendorInfoFields
6340
- }
6341
- message
6342
- }
6343
- }
6344
- ${VENDOR_INFO}
6345
- `;
6346
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
6347
- mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
6348
- createUnregisteredVendor(input: $input) {
6349
- data {
6350
- ...UnregisteredVendorFields
6351
- }
6352
- message
6353
- }
6354
- }
6355
- ${UNREGISTERED_VENDOR}
6356
- `;
6357
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
6358
- mutation updateUnregisteredVendor(
6359
- $_id: ID!
6360
- $input: UnregisteredVendorInputType!
6361
- ) {
6362
- updateUnregisteredVendor(_id: $_id, input: $input) {
6363
- data {
6364
- ...UnregisteredVendorFields
6365
- }
6366
- message
6367
- }
6368
- }
6369
- ${UNREGISTERED_VENDOR}
6370
- `;
6371
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client38.gql`
6372
- mutation deleteUnregisteredVendor($_id: ID!) {
6373
- deleteUnregisteredVendor(_id: $_id) {
6374
- data
6375
- message
6376
- }
6377
- }
6378
- `;
6379
- var UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = import_client38.gql`
6380
- mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {
6381
- unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId) {
6382
- data
6383
- message
6384
- }
6385
- }
6386
- `;
6387
-
6388
- // src/graphql/hooks/vendor/hooksMutation.ts
6389
6429
  var useCreateVendor = () => {
6390
6430
  const [createVendor, { loading, error }] = (0, import_client39.useMutation)(CREATE_VENDOR_MUTATION, {
6391
6431
  awaitRefetchQueries: true,
@@ -6464,6 +6504,10 @@ var useUnlinkUnregisteredVendorByInviterId = () => {
6464
6504
  const [unlinkUnregisteredVendorByInviterId, { loading, error }] = (0, import_client39.useMutation)(UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION);
6465
6505
  return { error, loading, unlinkUnregisteredVendorByInviterId };
6466
6506
  };
6507
+ var useActivateVendorClaim = () => {
6508
+ const [activateVendorClaim, { loading, error }] = (0, import_client39.useMutation)(ACTIVATE_VENDOR_CLAIM_MUTATION);
6509
+ return { activateVendorClaim, error, loading };
6510
+ };
6467
6511
 
6468
6512
  // src/graphql/hooks/vendor/hooksQuery.ts
6469
6513
  var import_client40 = require("@apollo/client");
@@ -6565,6 +6609,18 @@ var useGetUnregisteredVendor = (_id) => {
6565
6609
  const unregisteredVendor = data?.unregisteredVendor;
6566
6610
  return { error, loading, refetch, unregisteredVendor };
6567
6611
  };
6612
+ var useMyPendingVendorClaim = (skip = false) => {
6613
+ const { loading, error, data, refetch } = (0, import_client40.useQuery)(MY_PENDING_VENDOR_CLAIM, {
6614
+ fetchPolicy: "network-only",
6615
+ skip
6616
+ });
6617
+ return {
6618
+ error,
6619
+ loading,
6620
+ myPendingVendorClaim: data?.myPendingVendorClaim ?? null,
6621
+ refetch
6622
+ };
6623
+ };
6568
6624
 
6569
6625
  // src/graphql/hooks/user/hooksMutation.ts
6570
6626
  var import_client42 = require("@apollo/client");
@@ -8896,6 +8952,7 @@ function canAccessAdminPath(roles, pathname) {
8896
8952
  }
8897
8953
  // Annotate the CommonJS export names for ESM import in node:
8898
8954
  0 && (module.exports = {
8955
+ ACTIVATE_VENDOR_CLAIM_MUTATION,
8899
8956
  ADMIN_APP_ROLES,
8900
8957
  ADMIN_DASHBOARD_CONTEXTS,
8901
8958
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
@@ -8958,6 +9015,7 @@ function canAccessAdminPath(roles, pathname) {
8958
9015
  IOS_URL,
8959
9016
  ImageTypeEnum,
8960
9017
  KNOWN_EVENT_SCHEDULE_STATUSES,
9018
+ MY_PENDING_VENDOR_CLAIM,
8961
9019
  NETWORK_USER_FACING_ERROR,
8962
9020
  OG_DESCRIPTION_LINE_BREAK,
8963
9021
  PERMISSIONS,
@@ -9180,6 +9238,7 @@ function canAccessAdminPath(roles, pathname) {
9180
9238
  toShareSocialImageCacheVersion,
9181
9239
  toUserFacingErrorMessage,
9182
9240
  truncateText,
9241
+ useActivateVendorClaim,
9183
9242
  useAddParticipantToChat,
9184
9243
  useAddUserFavouriteResource,
9185
9244
  useAddUserGoingResource,
@@ -9251,8 +9310,10 @@ function canAccessAdminPath(roles, pathname) {
9251
9310
  useGetPost,
9252
9311
  useGetPosts,
9253
9312
  useGetPostsByType,
9313
+ useGetPrivateChats,
9254
9314
  useGetRelation,
9255
9315
  useGetRelationByEventAndVendor,
9316
+ useGetRelationChats,
9256
9317
  useGetReportedChatUsers,
9257
9318
  useGetResourceActivity,
9258
9319
  useGetResourceConnections,
@@ -9265,7 +9326,6 @@ function canAccessAdminPath(roles, pathname) {
9265
9326
  useGetUnregisteredVendorsByInviterId,
9266
9327
  useGetUser,
9267
9328
  useGetUserActivities,
9268
- useGetUserChats,
9269
9329
  useGetUserEvents,
9270
9330
  useGetUserNotifications,
9271
9331
  useGetUserNotificationsSubscription,
@@ -9284,6 +9344,7 @@ function canAccessAdminPath(roles, pathname) {
9284
9344
  useMarkAllNotificationsRead,
9285
9345
  useMarkChatMessagesSeen,
9286
9346
  useMarkNotificationRead,
9347
+ useMyPendingVendorClaim,
9287
9348
  useRedeemAffiliateReward,
9288
9349
  useRedeemReward,
9289
9350
  useRefreshToken,