@timardex/cluemart-shared 1.2.13 → 1.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2166,7 +2166,7 @@ var companyContactFields = [
2166
2166
  ];
2167
2167
 
2168
2168
  // src/graphql/hooks/admin/hooksMutation.ts
2169
- var import_client6 = require("@apollo/client");
2169
+ var import_client5 = require("@apollo/client");
2170
2170
 
2171
2171
  // src/graphql/mutations/admin.ts
2172
2172
  var import_client = require("@apollo/client");
@@ -2411,9 +2411,11 @@ var EVENT = import_client3.gql`
2411
2411
  ...PosterUsageFields
2412
2412
  }
2413
2413
  region
2414
- relationIds
2415
- relationDates {
2416
- ...RelationDates
2414
+ relations {
2415
+ relationId
2416
+ relationDates {
2417
+ ...RelationDates
2418
+ }
2417
2419
  }
2418
2420
  socialMedia {
2419
2421
  ...SocialMediaFields
@@ -2486,96 +2488,8 @@ var GET_EVENT_INFO = import_client3.gql`
2486
2488
  `;
2487
2489
 
2488
2490
  // src/graphql/queries/vendor.ts
2489
- var import_client5 = require("@apollo/client");
2490
-
2491
- // src/graphql/queries/relation.ts
2492
2491
  var import_client4 = require("@apollo/client");
2493
- var RELATION_DATES_FRAGMENT2 = import_client4.gql`
2494
- fragment RelationDates on RelationDateType {
2495
- lastUpdateBy {
2496
- resourceId
2497
- userEmail
2498
- }
2499
- paymentReference
2500
- stallType {
2501
- ...StallTypeFields
2502
- }
2503
- startDate
2504
- startTime
2505
- status
2506
- }
2507
- ${STALL_TYPE_FIELDS_FRAGMENT}
2508
- `;
2509
- var RELATION_FIELDS_FRAGMENT = import_client4.gql`
2510
- fragment RelationFields on RelationType {
2511
- _id
2512
- active
2513
- apiMessage
2514
- chatId
2515
- createdAt
2516
- lastUpdateBy
2517
- eventId
2518
- relationDates {
2519
- ...RelationDates
2520
- }
2521
- relationType
2522
- vendorId
2523
- updatedAt
2524
- }
2525
- ${RELATION_DATES_FRAGMENT2}
2526
- `;
2527
- var GET_RELATION = import_client4.gql`
2528
- query getRelation($_id: ID!) {
2529
- relation(_id: $_id) {
2530
- ...RelationFields
2531
- }
2532
- }
2533
- ${RELATION_FIELDS_FRAGMENT}
2534
- `;
2535
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client4.gql`
2536
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
2537
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
2538
- ...RelationFields
2539
- }
2540
- }
2541
- ${RELATION_FIELDS_FRAGMENT}
2542
- `;
2543
- var GET_EVENT_RELATIONS = import_client4.gql`
2544
- query getEventRelations($eventId: ID!) {
2545
- eventRelations(eventId: $eventId) {
2546
- ...RelationFields
2547
- }
2548
- }
2549
- ${RELATION_FIELDS_FRAGMENT}
2550
- `;
2551
- var GET_VENDOR_RELATIONS = import_client4.gql`
2552
- query getVendorRelations($vendorId: ID!) {
2553
- vendorRelations(vendorId: $vendorId) {
2554
- ...RelationFields
2555
- }
2556
- }
2557
- ${RELATION_FIELDS_FRAGMENT}
2558
- `;
2559
- var GET_RESOURCE_CONNECTIONS = import_client4.gql`
2560
- query getResourceConnections(
2561
- $resourceId: ID!
2562
- $resourceType: ResourceTypeEnum!
2563
- ) {
2564
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
2565
- events {
2566
- ...EventFields
2567
- }
2568
- vendors {
2569
- ...VendorFields
2570
- }
2571
- }
2572
- }
2573
- ${VENDOR}
2574
- ${EVENT}
2575
- `;
2576
-
2577
- // src/graphql/queries/vendor.ts
2578
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
2492
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2579
2493
  fragment VendorLocationFields on VendorLocationType {
2580
2494
  city
2581
2495
  coordinates
@@ -2587,7 +2501,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
2587
2501
  type
2588
2502
  }
2589
2503
  `;
2590
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2504
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2591
2505
  fragment VendorDateTimeFields on VendorDateTimeType {
2592
2506
  endDate
2593
2507
  endTime
@@ -2595,7 +2509,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2595
2509
  startTime
2596
2510
  }
2597
2511
  `;
2598
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
2512
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2599
2513
  fragment VendorMenuFields on VendorMenuType {
2600
2514
  description
2601
2515
  name
@@ -2603,7 +2517,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
2603
2517
  productGroups
2604
2518
  }
2605
2519
  `;
2606
- var VENDOR = import_client5.gql`
2520
+ var VENDOR = import_client4.gql`
2607
2521
  fragment VendorFields on VendorType {
2608
2522
  _id
2609
2523
  active
@@ -2657,9 +2571,11 @@ var VENDOR = import_client5.gql`
2657
2571
  ...PosterUsageFields
2658
2572
  }
2659
2573
  region
2660
- relationIds
2661
- relationDates {
2662
- ...RelationDates
2574
+ relations {
2575
+ relationId
2576
+ relationDates {
2577
+ ...RelationDates
2578
+ }
2663
2579
  }
2664
2580
  socialMedia {
2665
2581
  ...SocialMediaFields
@@ -2681,15 +2597,15 @@ var VENDOR = import_client5.gql`
2681
2597
  ${VENDOR_MENU_FIELDS_FRAGMENT}
2682
2598
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2683
2599
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2684
- ${RELATION_DATES_FRAGMENT2}
2600
+ ${RELATION_DATES_FRAGMENT}
2685
2601
  `;
2686
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
2602
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2687
2603
  fragment VendorAttributesFields on VendorAttributesType {
2688
2604
  details
2689
2605
  isRequired
2690
2606
  }
2691
2607
  `;
2692
- var VENDOR_INFO = import_client5.gql`
2608
+ var VENDOR_INFO = import_client4.gql`
2693
2609
  fragment VendorInfoFields on VendorInfoType {
2694
2610
  _id
2695
2611
  compliance {
@@ -2730,7 +2646,7 @@ var VENDOR_INFO = import_client5.gql`
2730
2646
  ${VENDOR_ATTRIBUTES_FRAGMENT}
2731
2647
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2732
2648
  `;
2733
- var GET_VENDORS = import_client5.gql`
2649
+ var GET_VENDORS = import_client4.gql`
2734
2650
  query getVendors {
2735
2651
  vendors {
2736
2652
  ...VendorFields
@@ -2738,7 +2654,7 @@ var GET_VENDORS = import_client5.gql`
2738
2654
  }
2739
2655
  ${VENDOR}
2740
2656
  `;
2741
- var GET_VENDOR = import_client5.gql`
2657
+ var GET_VENDOR = import_client4.gql`
2742
2658
  query getVendor($_id: ID!) {
2743
2659
  vendor(_id: $_id) {
2744
2660
  ...VendorFields
@@ -2746,7 +2662,7 @@ var GET_VENDOR = import_client5.gql`
2746
2662
  }
2747
2663
  ${VENDOR}
2748
2664
  `;
2749
- var GET_VENDORS_BY_REGION = import_client5.gql`
2665
+ var GET_VENDORS_BY_REGION = import_client4.gql`
2750
2666
  query getVendorsByRegion($region: String!) {
2751
2667
  vendorsByRegion(region: $region) {
2752
2668
  ...VendorFields
@@ -2754,7 +2670,7 @@ var GET_VENDORS_BY_REGION = import_client5.gql`
2754
2670
  }
2755
2671
  ${VENDOR}
2756
2672
  `;
2757
- var SEARCH_VENDORS = import_client5.gql`
2673
+ var SEARCH_VENDORS = import_client4.gql`
2758
2674
  query searchVendors($search: String!, $region: String) {
2759
2675
  vendorSearch(search: $search, region: $region) {
2760
2676
  ...VendorFields
@@ -2762,7 +2678,7 @@ var SEARCH_VENDORS = import_client5.gql`
2762
2678
  }
2763
2679
  ${VENDOR}
2764
2680
  `;
2765
- var GET_VENDOR_INFO = import_client5.gql`
2681
+ var GET_VENDOR_INFO = import_client4.gql`
2766
2682
  query getVendorInfo($vendorId: ID!) {
2767
2683
  vendorInfo(vendorId: $vendorId) {
2768
2684
  ...VendorInfoFields
@@ -2773,7 +2689,7 @@ var GET_VENDOR_INFO = import_client5.gql`
2773
2689
 
2774
2690
  // src/graphql/hooks/admin/hooksMutation.ts
2775
2691
  var useAdminUpdateResourceType = () => {
2776
- const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(
2692
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
2777
2693
  ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
2778
2694
  {
2779
2695
  awaitRefetchQueries: true,
@@ -2800,11 +2716,11 @@ var useAdminUpdateResourceType = () => {
2800
2716
  };
2801
2717
 
2802
2718
  // src/graphql/hooks/auth.ts
2803
- var import_client8 = require("@apollo/client");
2719
+ var import_client7 = require("@apollo/client");
2804
2720
 
2805
2721
  // src/graphql/mutations/auth.ts
2806
- var import_client7 = require("@apollo/client");
2807
- var REGISTER_MUTATION = import_client7.gql`
2722
+ var import_client6 = require("@apollo/client");
2723
+ var REGISTER_MUTATION = import_client6.gql`
2808
2724
  mutation register($input: RegisterInputType!) {
2809
2725
  register(input: $input) {
2810
2726
  message
@@ -2817,7 +2733,7 @@ var REGISTER_MUTATION = import_client7.gql`
2817
2733
  }
2818
2734
  ${USER_FIELDS_FRAGMENT}
2819
2735
  `;
2820
- var LOGIN_MUTATION = import_client7.gql`
2736
+ var LOGIN_MUTATION = import_client6.gql`
2821
2737
  mutation login($input: LoginInputType!) {
2822
2738
  login(input: $input) {
2823
2739
  message
@@ -2830,14 +2746,14 @@ var LOGIN_MUTATION = import_client7.gql`
2830
2746
  }
2831
2747
  ${USER_FIELDS_FRAGMENT}
2832
2748
  `;
2833
- var LOGOUT_MUTATION = import_client7.gql`
2749
+ var LOGOUT_MUTATION = import_client6.gql`
2834
2750
  mutation logout {
2835
2751
  logout {
2836
2752
  message
2837
2753
  }
2838
2754
  }
2839
2755
  `;
2840
- var REFRESH_TOKEN_MUTATION = import_client7.gql`
2756
+ var REFRESH_TOKEN_MUTATION = import_client6.gql`
2841
2757
  mutation refreshToken($input: RefreshTokenInputType!) {
2842
2758
  refreshToken(input: $input) {
2843
2759
  refreshToken
@@ -2845,21 +2761,21 @@ var REFRESH_TOKEN_MUTATION = import_client7.gql`
2845
2761
  }
2846
2762
  }
2847
2763
  `;
2848
- var RESET_PASSWORD_MUTATION = import_client7.gql`
2764
+ var RESET_PASSWORD_MUTATION = import_client6.gql`
2849
2765
  mutation resetPassword($input: ResetPasswordInputType!) {
2850
2766
  resetPassword(input: $input) {
2851
2767
  message
2852
2768
  }
2853
2769
  }
2854
2770
  `;
2855
- var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
2771
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
2856
2772
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
2857
2773
  requestPasswordReset(input: $input) {
2858
2774
  message
2859
2775
  }
2860
2776
  }
2861
2777
  `;
2862
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
2778
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
2863
2779
  mutation validateVerificationToken(
2864
2780
  $input: ValidateVerificationTokenInputType!
2865
2781
  ) {
@@ -2871,51 +2787,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
2871
2787
 
2872
2788
  // src/graphql/hooks/auth.ts
2873
2789
  var useRegister = () => {
2874
- const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
2790
+ const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
2875
2791
  return { error, loading, register };
2876
2792
  };
2877
2793
  var useLogin = () => {
2878
- const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
2794
+ const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
2879
2795
  return { error, loading, login };
2880
2796
  };
2881
2797
  var useLogout = () => {
2882
- const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
2798
+ const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
2883
2799
  return { error, loading, logout };
2884
2800
  };
2885
2801
  var useRefreshToken = () => {
2886
- const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
2802
+ const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
2887
2803
  REFRESH_TOKEN_MUTATION
2888
2804
  );
2889
2805
  return { error, loading, refreshToken };
2890
2806
  };
2891
2807
  var useRequestPasswordReset = () => {
2892
- const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
2808
+ const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
2893
2809
  REQUEST_PASSWORD_RESET_MUTATION
2894
2810
  );
2895
2811
  return { error, loading, requestPasswordReset };
2896
2812
  };
2897
2813
  var useValidateVerificationToken = () => {
2898
- const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
2814
+ const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
2899
2815
  VALIDATE_VERIFICATION_TOKEN_MUTATION
2900
2816
  );
2901
2817
  return { error, loading, validateVerificationToken };
2902
2818
  };
2903
2819
  var useResetPassword = () => {
2904
- const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
2820
+ const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
2905
2821
  RESET_PASSWORD_MUTATION
2906
2822
  );
2907
2823
  return { error, loading, resetPassword };
2908
2824
  };
2909
2825
 
2910
2826
  // src/graphql/hooks/chat/hooksMutation.ts
2911
- var import_client11 = require("@apollo/client");
2827
+ var import_client10 = require("@apollo/client");
2912
2828
 
2913
2829
  // src/graphql/mutations/chat.ts
2914
- var import_client10 = require("@apollo/client");
2830
+ var import_client9 = require("@apollo/client");
2915
2831
 
2916
2832
  // src/graphql/queries/chat.ts
2917
- var import_client9 = require("@apollo/client");
2918
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
2833
+ var import_client8 = require("@apollo/client");
2834
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
2919
2835
  fragment ChatMessageFields on ChatMessageType {
2920
2836
  _id
2921
2837
  content
@@ -2926,14 +2842,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
2926
2842
  updatedAt
2927
2843
  }
2928
2844
  `;
2929
- var CHAT_PARTICIPANT = import_client9.gql`
2845
+ var CHAT_PARTICIPANT = import_client8.gql`
2930
2846
  fragment ChatParticipantFields on ChatParticipantType {
2931
2847
  active
2932
2848
  email
2933
2849
  userId
2934
2850
  }
2935
2851
  `;
2936
- var CHAT_FIELDS_FRAGMENT = import_client9.gql`
2852
+ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2937
2853
  fragment ChatFields on ChatType {
2938
2854
  _id
2939
2855
  active
@@ -2956,7 +2872,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
2956
2872
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
2957
2873
  ${CHAT_PARTICIPANT}
2958
2874
  `;
2959
- var CHAT = import_client9.gql`
2875
+ var CHAT = import_client8.gql`
2960
2876
  query chat($_id: ID!) {
2961
2877
  chat(_id: $_id) {
2962
2878
  ...ChatFields
@@ -2964,7 +2880,7 @@ var CHAT = import_client9.gql`
2964
2880
  }
2965
2881
  ${CHAT_FIELDS_FRAGMENT}
2966
2882
  `;
2967
- var USER_CHATS = import_client9.gql`
2883
+ var USER_CHATS = import_client8.gql`
2968
2884
  query userChats {
2969
2885
  userChats {
2970
2886
  ...ChatFields
@@ -2974,7 +2890,7 @@ var USER_CHATS = import_client9.gql`
2974
2890
  `;
2975
2891
 
2976
2892
  // src/graphql/mutations/chat.ts
2977
- var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
2893
+ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
2978
2894
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
2979
2895
  sendChatMessage(_id: $_id, input: $input) {
2980
2896
  ...ChatFields
@@ -2982,12 +2898,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
2982
2898
  }
2983
2899
  ${CHAT_FIELDS_FRAGMENT}
2984
2900
  `;
2985
- var DELETE_CHAT_MUTATION = import_client10.gql`
2901
+ var DELETE_CHAT_MUTATION = import_client9.gql`
2986
2902
  mutation deleteChat($_id: ID!) {
2987
2903
  deleteChat(_id: $_id)
2988
2904
  }
2989
2905
  `;
2990
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
2906
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
2991
2907
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
2992
2908
  addParticipantToChat(chatId: $chatId, userId: $userId) {
2993
2909
  ...ChatFields
@@ -2995,7 +2911,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
2995
2911
  }
2996
2912
  ${CHAT_FIELDS_FRAGMENT}
2997
2913
  `;
2998
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
2914
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
2999
2915
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3000
2916
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
3001
2917
  ...ChatFields
@@ -3006,7 +2922,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3006
2922
 
3007
2923
  // src/graphql/hooks/chat/hooksMutation.ts
3008
2924
  var useSendChatMessage = () => {
3009
- const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(
2925
+ const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
3010
2926
  SEND_CHAT_MESSAGE_MUTATION,
3011
2927
  {
3012
2928
  awaitRefetchQueries: true,
@@ -3024,14 +2940,14 @@ var useSendChatMessage = () => {
3024
2940
  return { error, loading, sendChatMessage };
3025
2941
  };
3026
2942
  var useDeleteChat = () => {
3027
- const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
2943
+ const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
3028
2944
  awaitRefetchQueries: true,
3029
2945
  refetchQueries: [{ query: USER_CHATS }]
3030
2946
  });
3031
2947
  return { deleteChat, error, loading };
3032
2948
  };
3033
2949
  var useAddParticipantToChat = () => {
3034
- const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(
2950
+ const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
3035
2951
  ADD_PARTICIPANT_TO_CHAT_MUTATION,
3036
2952
  {
3037
2953
  awaitRefetchQueries: true,
@@ -3052,7 +2968,7 @@ var useAddParticipantToChat = () => {
3052
2968
  return { addParticipantToChat, error, loading };
3053
2969
  };
3054
2970
  var useRemoveParticipantFromChat = () => {
3055
- const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
2971
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
3056
2972
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
3057
2973
  {
3058
2974
  awaitRefetchQueries: true,
@@ -3074,11 +2990,11 @@ var useRemoveParticipantFromChat = () => {
3074
2990
  };
3075
2991
 
3076
2992
  // src/graphql/hooks/chat/hooksQuery.ts
3077
- var import_client13 = require("@apollo/client");
2993
+ var import_client12 = require("@apollo/client");
3078
2994
 
3079
2995
  // src/graphql/subscriptions/chat.ts
3080
- var import_client12 = require("@apollo/client");
3081
- var GET_CHAT_MESSAGE = import_client12.gql`
2996
+ var import_client11 = require("@apollo/client");
2997
+ var GET_CHAT_MESSAGE = import_client11.gql`
3082
2998
  subscription {
3083
2999
  getChatMessage {
3084
3000
  ...ChatFields
@@ -3089,7 +3005,7 @@ var GET_CHAT_MESSAGE = import_client12.gql`
3089
3005
 
3090
3006
  // src/graphql/hooks/chat/hooksQuery.ts
3091
3007
  var useGetChat = (_id) => {
3092
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
3008
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
3093
3009
  fetchPolicy: "network-only",
3094
3010
  skip: !_id,
3095
3011
  variables: { _id }
@@ -3098,24 +3014,24 @@ var useGetChat = (_id) => {
3098
3014
  return { chat, error, loading, refetch };
3099
3015
  };
3100
3016
  var useGetUserChats = () => {
3101
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(USER_CHATS, {
3017
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
3102
3018
  fetchPolicy: "network-only"
3103
3019
  });
3104
3020
  const userChats = data?.userChats;
3105
3021
  return { error, loading, refetch, userChats };
3106
3022
  };
3107
3023
  var useGetChatSubscription = () => {
3108
- const { data, loading, error } = (0, import_client13.useSubscription)(GET_CHAT_MESSAGE);
3024
+ const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
3109
3025
  const chat = data?.getChat;
3110
3026
  return { chat, error, loading };
3111
3027
  };
3112
3028
 
3113
3029
  // src/graphql/hooks/contactUs.ts
3114
- var import_client15 = require("@apollo/client");
3030
+ var import_client14 = require("@apollo/client");
3115
3031
 
3116
3032
  // src/graphql/mutations/contactUs.ts
3117
- var import_client14 = require("@apollo/client");
3118
- var CONTACT_US_MUTATION = import_client14.gql`
3033
+ var import_client13 = require("@apollo/client");
3034
+ var CONTACT_US_MUTATION = import_client13.gql`
3119
3035
  mutation contactUs($input: ContactUsInputType!) {
3120
3036
  contactUs(input: $input) {
3121
3037
  message
@@ -3125,16 +3041,16 @@ var CONTACT_US_MUTATION = import_client14.gql`
3125
3041
 
3126
3042
  // src/graphql/hooks/contactUs.ts
3127
3043
  var useContactUs = () => {
3128
- const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
3044
+ const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3129
3045
  return { contactUs, error, loading };
3130
3046
  };
3131
3047
 
3132
3048
  // src/graphql/hooks/event/hooksMutation.ts
3133
- var import_client18 = require("@apollo/client");
3049
+ var import_client17 = require("@apollo/client");
3134
3050
 
3135
3051
  // src/graphql/mutations/event.ts
3136
- var import_client16 = require("@apollo/client");
3137
- var CREATE_EVENT_MUTATION = import_client16.gql`
3052
+ var import_client15 = require("@apollo/client");
3053
+ var CREATE_EVENT_MUTATION = import_client15.gql`
3138
3054
  mutation createEvent($input: EventInputType!) {
3139
3055
  createEvent(input: $input) {
3140
3056
  ...EventFields
@@ -3142,7 +3058,7 @@ var CREATE_EVENT_MUTATION = import_client16.gql`
3142
3058
  }
3143
3059
  ${EVENT}
3144
3060
  `;
3145
- var UPDATE_EVENT_MUTATION = import_client16.gql`
3061
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
3146
3062
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3147
3063
  updateEvent(_id: $_id, input: $input) {
3148
3064
  ...EventFields
@@ -3150,12 +3066,12 @@ var UPDATE_EVENT_MUTATION = import_client16.gql`
3150
3066
  }
3151
3067
  ${EVENT}
3152
3068
  `;
3153
- var DELETE_EVENT_MUTATION = import_client16.gql`
3069
+ var DELETE_EVENT_MUTATION = import_client15.gql`
3154
3070
  mutation deleteEvent($_id: ID!) {
3155
3071
  deleteEvent(_id: $_id)
3156
3072
  }
3157
3073
  `;
3158
- var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3074
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3159
3075
  mutation createEventInfo($input: EventInfoInputType!) {
3160
3076
  createEventInfo(input: $input) {
3161
3077
  ...EventInfoFields
@@ -3163,7 +3079,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3163
3079
  }
3164
3080
  ${EVENT_INFO}
3165
3081
  `;
3166
- var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3082
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3167
3083
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3168
3084
  updateEventInfo(_id: $_id, input: $input) {
3169
3085
  ...EventInfoFields
@@ -3173,8 +3089,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3173
3089
  `;
3174
3090
 
3175
3091
  // src/graphql/queries/user.ts
3176
- var import_client17 = require("@apollo/client");
3177
- var GET_USERS = import_client17.gql`
3092
+ var import_client16 = require("@apollo/client");
3093
+ var GET_USERS = import_client16.gql`
3178
3094
  query getUsers {
3179
3095
  users {
3180
3096
  ...UserFields
@@ -3182,7 +3098,7 @@ var GET_USERS = import_client17.gql`
3182
3098
  }
3183
3099
  ${USER_FIELDS_FRAGMENT}
3184
3100
  `;
3185
- var GET_USER = import_client17.gql`
3101
+ var GET_USER = import_client16.gql`
3186
3102
  query getUser($_id: ID!) {
3187
3103
  user(_id: $_id) {
3188
3104
  ...UserFields
@@ -3190,7 +3106,7 @@ var GET_USER = import_client17.gql`
3190
3106
  }
3191
3107
  ${USER_FIELDS_FRAGMENT}
3192
3108
  `;
3193
- var GET_USER_EVENTS = import_client17.gql`
3109
+ var GET_USER_EVENTS = import_client16.gql`
3194
3110
  query getUserEvents {
3195
3111
  userEvents {
3196
3112
  ...EventFields
@@ -3198,7 +3114,7 @@ var GET_USER_EVENTS = import_client17.gql`
3198
3114
  }
3199
3115
  ${EVENT}
3200
3116
  `;
3201
- var GET_USER_VENDORS = import_client17.gql`
3117
+ var GET_USER_VENDORS = import_client16.gql`
3202
3118
  query getUserVendors {
3203
3119
  userVendors {
3204
3120
  ...VendorFields
@@ -3206,7 +3122,7 @@ var GET_USER_VENDORS = import_client17.gql`
3206
3122
  }
3207
3123
  ${VENDOR}
3208
3124
  `;
3209
- var GET_USER_FAVOURITES = import_client17.gql`
3125
+ var GET_USER_FAVOURITES = import_client16.gql`
3210
3126
  query getUserFavourites {
3211
3127
  userFavourites {
3212
3128
  events {
@@ -3223,28 +3139,28 @@ var GET_USER_FAVOURITES = import_client17.gql`
3223
3139
 
3224
3140
  // src/graphql/hooks/event/hooksMutation.ts
3225
3141
  var useCreateEvent = () => {
3226
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
3142
+ const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
3227
3143
  awaitRefetchQueries: true,
3228
3144
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3229
3145
  });
3230
3146
  return { createEvent, error, loading };
3231
3147
  };
3232
3148
  var useUpdateEvent = () => {
3233
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
3149
+ const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
3234
3150
  awaitRefetchQueries: true,
3235
3151
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3236
3152
  });
3237
3153
  return { error, loading, updateEvent };
3238
3154
  };
3239
3155
  var useDeleteEvent = () => {
3240
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
3156
+ const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
3241
3157
  awaitRefetchQueries: true,
3242
3158
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
3243
3159
  });
3244
3160
  return { deleteEvent, error, loading };
3245
3161
  };
3246
3162
  var useCreateEventInfo = () => {
3247
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3163
+ const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3248
3164
  CREATE_EVENT_INFO_MUTATION,
3249
3165
  {
3250
3166
  awaitRefetchQueries: true,
@@ -3273,7 +3189,7 @@ var useCreateEventInfo = () => {
3273
3189
  return { createEventInfo, error, loading };
3274
3190
  };
3275
3191
  var useUpdateEventInfo = () => {
3276
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3192
+ const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3277
3193
  UPDATE_EVENT_INFO_MUTATION,
3278
3194
  {
3279
3195
  awaitRefetchQueries: true,
@@ -3299,16 +3215,16 @@ var useUpdateEventInfo = () => {
3299
3215
  };
3300
3216
 
3301
3217
  // src/graphql/hooks/event/hooksQuery.ts
3302
- var import_client19 = require("@apollo/client");
3218
+ var import_client18 = require("@apollo/client");
3303
3219
  var useGetEvents = () => {
3304
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
3220
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
3305
3221
  fetchPolicy: "network-only"
3306
3222
  });
3307
3223
  const events = data?.events;
3308
3224
  return { error, events, loading, refetch };
3309
3225
  };
3310
3226
  var useGetEvent = (_id) => {
3311
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
3227
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
3312
3228
  fetchPolicy: "network-only",
3313
3229
  skip: !_id,
3314
3230
  variables: { _id }
@@ -3317,7 +3233,7 @@ var useGetEvent = (_id) => {
3317
3233
  return { error, event, loading, refetch };
3318
3234
  };
3319
3235
  var useGetEventsByRegion = (region) => {
3320
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
3236
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
3321
3237
  fetchPolicy: "no-cache",
3322
3238
  skip: !region,
3323
3239
  variables: { region }
@@ -3326,7 +3242,7 @@ var useGetEventsByRegion = (region) => {
3326
3242
  return { error, eventsByRegion, loading, refetch };
3327
3243
  };
3328
3244
  var useSearchEvents = (search, region) => {
3329
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
3245
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
3330
3246
  fetchPolicy: "network-only",
3331
3247
  skip: search.length < 3,
3332
3248
  variables: { region, search }
@@ -3335,7 +3251,7 @@ var useSearchEvents = (search, region) => {
3335
3251
  return { error, eventsSearch, loading, refetch };
3336
3252
  };
3337
3253
  var useGetEventsNearMe = (location) => {
3338
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
3254
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
3339
3255
  fetchPolicy: "network-only",
3340
3256
  skip: !location.latitude || !location.longitude,
3341
3257
  variables: {
@@ -3349,7 +3265,7 @@ var useGetEventsNearMe = (location) => {
3349
3265
  return { error, eventsNearMe, loading, refetch };
3350
3266
  };
3351
3267
  var useGetEventInfo = (eventId) => {
3352
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
3268
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
3353
3269
  fetchPolicy: "network-only",
3354
3270
  skip: !eventId,
3355
3271
  variables: { eventId }
@@ -3359,14 +3275,14 @@ var useGetEventInfo = (eventId) => {
3359
3275
  };
3360
3276
 
3361
3277
  // src/graphql/hooks/notifications/hooksMutation.ts
3362
- var import_client22 = require("@apollo/client");
3278
+ var import_client21 = require("@apollo/client");
3363
3279
 
3364
3280
  // src/graphql/mutations/notification.ts
3365
- var import_client21 = require("@apollo/client");
3281
+ var import_client20 = require("@apollo/client");
3366
3282
 
3367
3283
  // src/graphql/queries/notification.ts
3368
- var import_client20 = require("@apollo/client");
3369
- var NOTIFICATION_FRAGMENT = import_client20.gql`
3284
+ var import_client19 = require("@apollo/client");
3285
+ var NOTIFICATION_FRAGMENT = import_client19.gql`
3370
3286
  fragment NotificationFields on Notification {
3371
3287
  _id
3372
3288
  userId
@@ -3383,7 +3299,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
3383
3299
  updatedAt
3384
3300
  }
3385
3301
  `;
3386
- var GET_USER_NOTIFICATIONS = import_client20.gql`
3302
+ var GET_USER_NOTIFICATIONS = import_client19.gql`
3387
3303
  query getUserNotifications($limit: Int, $offset: Int) {
3388
3304
  userNotifications(limit: $limit, offset: $offset) {
3389
3305
  ...NotificationFields
@@ -3391,7 +3307,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
3391
3307
  }
3392
3308
  ${NOTIFICATION_FRAGMENT}
3393
3309
  `;
3394
- var GET_NOTIFICATION_COUNT = import_client20.gql`
3310
+ var GET_NOTIFICATION_COUNT = import_client19.gql`
3395
3311
  query getNotificationCount {
3396
3312
  notificationCount {
3397
3313
  total
@@ -3401,7 +3317,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
3401
3317
  `;
3402
3318
 
3403
3319
  // src/graphql/mutations/notification.ts
3404
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3320
+ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3405
3321
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3406
3322
  createBulkNotifications(input: $input) {
3407
3323
  ...NotificationFields
@@ -3409,7 +3325,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3409
3325
  }
3410
3326
  ${NOTIFICATION_FRAGMENT}
3411
3327
  `;
3412
- var MARK_NOTIFICATION_READ = import_client21.gql`
3328
+ var MARK_NOTIFICATION_READ = import_client20.gql`
3413
3329
  mutation markNotificationRead($_id: ID!) {
3414
3330
  markNotificationRead(_id: $_id) {
3415
3331
  ...NotificationFields
@@ -3417,17 +3333,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
3417
3333
  }
3418
3334
  ${NOTIFICATION_FRAGMENT}
3419
3335
  `;
3420
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3336
+ var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
3421
3337
  mutation markAllNotificationsRead {
3422
3338
  markAllNotificationsRead
3423
3339
  }
3424
3340
  `;
3425
- var DELETE_NOTIFICATION = import_client21.gql`
3341
+ var DELETE_NOTIFICATION = import_client20.gql`
3426
3342
  mutation deleteNotification($_id: ID!) {
3427
3343
  deleteNotification(_id: $_id)
3428
3344
  }
3429
3345
  `;
3430
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3346
+ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3431
3347
  mutation deleteAllNotifications {
3432
3348
  deleteAllNotifications
3433
3349
  }
@@ -3435,13 +3351,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3435
3351
 
3436
3352
  // src/graphql/hooks/notifications/hooksMutation.ts
3437
3353
  var useCreateBulkNotifications = () => {
3438
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
3354
+ const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
3439
3355
  CREATE_BULK_NOTIFICATIONS
3440
3356
  );
3441
3357
  return { createBulkNotifications, error, loading };
3442
3358
  };
3443
3359
  var useMarkNotificationRead = () => {
3444
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
3360
+ const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
3445
3361
  MARK_NOTIFICATION_READ,
3446
3362
  {
3447
3363
  fetchPolicy: "no-cache",
@@ -3458,7 +3374,7 @@ var useMarkNotificationRead = () => {
3458
3374
  return { error, loading, markNotificationRead };
3459
3375
  };
3460
3376
  var useMarkAllNotificationsRead = () => {
3461
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
3377
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
3462
3378
  MARK_ALL_NOTIFICATIONS_READ,
3463
3379
  {
3464
3380
  fetchPolicy: "no-cache",
@@ -3475,7 +3391,7 @@ var useMarkAllNotificationsRead = () => {
3475
3391
  return { error, loading, markAllNotificationsRead };
3476
3392
  };
3477
3393
  var useDeleteNotification = () => {
3478
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3394
+ const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
3479
3395
  DELETE_NOTIFICATION,
3480
3396
  {
3481
3397
  fetchPolicy: "no-cache",
@@ -3492,7 +3408,7 @@ var useDeleteNotification = () => {
3492
3408
  return { deleteNotification, error, loading };
3493
3409
  };
3494
3410
  var useDeleteAllNotifications = () => {
3495
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3411
+ const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
3496
3412
  DELETE_ALL_NOTIFICATIONS,
3497
3413
  {
3498
3414
  fetchPolicy: "no-cache",
@@ -3510,9 +3426,9 @@ var useDeleteAllNotifications = () => {
3510
3426
  };
3511
3427
 
3512
3428
  // src/graphql/hooks/notifications/hooksQuery.ts
3513
- var import_client23 = require("@apollo/client");
3429
+ var import_client22 = require("@apollo/client");
3514
3430
  var useGetUserNotifications = (limit, offset) => {
3515
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
3431
+ const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
3516
3432
  fetchPolicy: "no-cache",
3517
3433
  variables: { limit, offset }
3518
3434
  });
@@ -3524,7 +3440,7 @@ var useGetUserNotifications = (limit, offset) => {
3524
3440
  };
3525
3441
  };
3526
3442
  var useGetNotificationCount = () => {
3527
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
3443
+ const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
3528
3444
  fetchPolicy: "no-cache"
3529
3445
  });
3530
3446
  return {
@@ -3536,11 +3452,11 @@ var useGetNotificationCount = () => {
3536
3452
  };
3537
3453
 
3538
3454
  // src/graphql/hooks/notifications/hooksSubscription.ts
3539
- var import_client25 = require("@apollo/client");
3455
+ var import_client24 = require("@apollo/client");
3540
3456
 
3541
3457
  // src/graphql/subscriptions/notification.ts
3542
- var import_client24 = require("@apollo/client");
3543
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3458
+ var import_client23 = require("@apollo/client");
3459
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3544
3460
  subscription {
3545
3461
  getUserNotifications {
3546
3462
  ...NotificationFields
@@ -3548,7 +3464,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3548
3464
  }
3549
3465
  ${NOTIFICATION_FRAGMENT}
3550
3466
  `;
3551
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3467
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3552
3468
  subscription {
3553
3469
  getNotificationCount {
3554
3470
  total
@@ -3559,7 +3475,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3559
3475
 
3560
3476
  // src/graphql/hooks/notifications/hooksSubscription.ts
3561
3477
  var useGetUserNotificationsSubscription = () => {
3562
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3478
+ const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3563
3479
  fetchPolicy: "no-cache",
3564
3480
  shouldResubscribe: true
3565
3481
  });
@@ -3570,7 +3486,7 @@ var useGetUserNotificationsSubscription = () => {
3570
3486
  };
3571
3487
  };
3572
3488
  var useGetNotificationCountSubscription = () => {
3573
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3489
+ const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3574
3490
  fetchPolicy: "no-cache",
3575
3491
  shouldResubscribe: true
3576
3492
  });
@@ -3582,11 +3498,11 @@ var useGetNotificationCountSubscription = () => {
3582
3498
  };
3583
3499
 
3584
3500
  // src/graphql/hooks/poster.ts
3585
- var import_client27 = require("@apollo/client");
3501
+ var import_client26 = require("@apollo/client");
3586
3502
 
3587
3503
  // src/graphql/mutations/poster.ts
3588
- var import_client26 = require("@apollo/client");
3589
- var CREATE_POSTER_MUTATION = import_client26.gql`
3504
+ var import_client25 = require("@apollo/client");
3505
+ var CREATE_POSTER_MUTATION = import_client25.gql`
3590
3506
  mutation createPoster($input: PosterInputType!) {
3591
3507
  createPoster(input: $input) {
3592
3508
  message
@@ -3600,7 +3516,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
3600
3516
 
3601
3517
  // src/graphql/hooks/poster.ts
3602
3518
  var useCreatePoster = () => {
3603
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
3519
+ const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
3604
3520
  CREATE_POSTER_MUTATION,
3605
3521
  {
3606
3522
  fetchPolicy: "no-cache",
@@ -3611,11 +3527,11 @@ var useCreatePoster = () => {
3611
3527
  };
3612
3528
 
3613
3529
  // src/graphql/hooks/pushToken.ts
3614
- var import_client29 = require("@apollo/client");
3530
+ var import_client28 = require("@apollo/client");
3615
3531
 
3616
3532
  // src/graphql/mutations/pushToken.ts
3617
- var import_client28 = require("@apollo/client");
3618
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3533
+ var import_client27 = require("@apollo/client");
3534
+ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3619
3535
  mutation createPushToken($input: PushTokenInput!) {
3620
3536
  createPushToken(input: $input) {
3621
3537
  success
@@ -3625,7 +3541,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3625
3541
 
3626
3542
  // src/graphql/hooks/pushToken.ts
3627
3543
  var useCreatePushToken = () => {
3628
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
3544
+ const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
3629
3545
  CREATE_PUSH_TOKEN_MUTATION
3630
3546
  );
3631
3547
  return { createPushToken, error, loading };
@@ -3636,6 +3552,78 @@ var import_client31 = require("@apollo/client");
3636
3552
 
3637
3553
  // src/graphql/mutations/relation.ts
3638
3554
  var import_client30 = require("@apollo/client");
3555
+
3556
+ // src/graphql/queries/relation.ts
3557
+ var import_client29 = require("@apollo/client");
3558
+ var RELATION_FIELDS_FRAGMENT = import_client29.gql`
3559
+ fragment RelationFields on RelationType {
3560
+ _id
3561
+ active
3562
+ apiMessage
3563
+ chatId
3564
+ createdAt
3565
+ lastUpdateBy
3566
+ eventId
3567
+ relationDates {
3568
+ ...RelationDates
3569
+ }
3570
+ relationType
3571
+ vendorId
3572
+ updatedAt
3573
+ }
3574
+ ${RELATION_DATES_FRAGMENT}
3575
+ `;
3576
+ var GET_RELATION = import_client29.gql`
3577
+ query getRelation($_id: ID!) {
3578
+ relation(_id: $_id) {
3579
+ ...RelationFields
3580
+ }
3581
+ }
3582
+ ${RELATION_FIELDS_FRAGMENT}
3583
+ `;
3584
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
3585
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3586
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3587
+ ...RelationFields
3588
+ }
3589
+ }
3590
+ ${RELATION_FIELDS_FRAGMENT}
3591
+ `;
3592
+ var GET_EVENT_RELATIONS = import_client29.gql`
3593
+ query getEventRelations($eventId: ID!) {
3594
+ eventRelations(eventId: $eventId) {
3595
+ ...RelationFields
3596
+ }
3597
+ }
3598
+ ${RELATION_FIELDS_FRAGMENT}
3599
+ `;
3600
+ var GET_VENDOR_RELATIONS = import_client29.gql`
3601
+ query getVendorRelations($vendorId: ID!) {
3602
+ vendorRelations(vendorId: $vendorId) {
3603
+ ...RelationFields
3604
+ }
3605
+ }
3606
+ ${RELATION_FIELDS_FRAGMENT}
3607
+ `;
3608
+ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3609
+ query getResourceConnections(
3610
+ $resourceId: ID!
3611
+ $resourceType: ResourceTypeEnum!
3612
+ ) {
3613
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3614
+ events {
3615
+ ...EventFields
3616
+ }
3617
+ vendors {
3618
+ ...VendorFields
3619
+ }
3620
+ }
3621
+ }
3622
+ ${VENDOR}
3623
+ ${EVENT}
3624
+ `;
3625
+
3626
+ // src/graphql/mutations/relation.ts
3639
3627
  var CREATE_RELATION_MUTATION = import_client30.gql`
3640
3628
  mutation createRelation($input: RelationInputType!) {
3641
3629
  createRelation(input: $input) {