@timardex/cluemart-shared 1.2.13 → 1.2.14

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