@timardex/cluemart-shared 1.2.93 → 1.2.94

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
@@ -123,6 +123,7 @@ __export(index_exports, {
123
123
  useAddUserInterestResource: () => useAddUserInterestResource,
124
124
  useAddUserPresentResource: () => useAddUserPresentResource,
125
125
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
126
+ useAdminUpdateTester: () => useAdminUpdateTester,
126
127
  useCancelSubscription: () => useCancelSubscription,
127
128
  useContactUs: () => useContactUs,
128
129
  useContactUsForm: () => useContactUsForm,
@@ -2386,7 +2387,7 @@ var partnerBasicInfoFields = [
2386
2387
  ];
2387
2388
 
2388
2389
  // src/graphql/hooks/admin/hooksMutation.ts
2389
- var import_client5 = require("@apollo/client");
2390
+ var import_client6 = require("@apollo/client");
2390
2391
 
2391
2392
  // src/graphql/mutations/admin.ts
2392
2393
  var import_client = require("@apollo/client");
@@ -2399,6 +2400,14 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
2399
2400
  }
2400
2401
  }
2401
2402
  `;
2403
+ var ADMIN_UPDATE_TESTER_MUTATION = import_client.gql`
2404
+ mutation adminUpdateTester($input: AdminUpdateTesterInputType!) {
2405
+ adminUpdateTester(input: $input) {
2406
+ _id
2407
+ approved
2408
+ }
2409
+ }
2410
+ `;
2402
2411
 
2403
2412
  // src/graphql/queries/event.ts
2404
2413
  var import_client3 = require("@apollo/client");
@@ -2757,9 +2766,103 @@ var GET_EVENT_INFO = import_client3.gql`
2757
2766
  ${EVENT_INFO}
2758
2767
  `;
2759
2768
 
2760
- // src/graphql/queries/vendor.ts
2769
+ // src/graphql/queries/tester.ts
2761
2770
  var import_client4 = require("@apollo/client");
2762
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2771
+ var TESTER_VENDOR_FIELDS_FRAGMENT = import_client4.gql`
2772
+ fragment TesterVendorFields on TesterVendorType {
2773
+ categories {
2774
+ ...CategoryFields
2775
+ }
2776
+ productsOrServices
2777
+ marketsAttended {
2778
+ name
2779
+ city
2780
+ }
2781
+ sellingFrequency
2782
+ yearlySellingApprox
2783
+ questionary {
2784
+ uploadStallProfileFirstWeek
2785
+ applyToAtLeastOneMarket
2786
+ tryVisitorFeatures
2787
+ completeFeedbackQuestionnaire
2788
+ sendPhotoForSocialMedia
2789
+ appearInVideoIntroduction
2790
+ socialMediaFeatureReason
2791
+ excitementAboutApp
2792
+ usefulnessExpectations
2793
+ testingPeriodConcerns
2794
+ }
2795
+ }
2796
+ ${CATEGORY_FIELDS_FRAGMENT}
2797
+ `;
2798
+ var TESTER_EVENT_FIELDS_FRAGMENT = import_client4.gql`
2799
+ fragment TesterEventFields on TesterEventType {
2800
+ organizedMarketCount
2801
+ markets {
2802
+ name
2803
+ cityOrVenue
2804
+ frequency
2805
+ averageStallCount
2806
+ }
2807
+ questionary {
2808
+ allowMarketingAppearance
2809
+ completeFinalQuestionnaire
2810
+ dailyCoordinationNeeds
2811
+ interestedInCharityInitiative
2812
+ inviteAtLeastFiveStallholders
2813
+ manageApplicationsAndCommunication
2814
+ organizerExpectations
2815
+ registerMarketsFirstWeek
2816
+ spaceForClueMart
2817
+ }
2818
+ }
2819
+ `;
2820
+ var TESTER_FIELDS_FRAGMENT = import_client4.gql`
2821
+ fragment TesterFields on TesterType {
2822
+ _id
2823
+ active
2824
+ approved
2825
+ businessName
2826
+ createdAt
2827
+ email
2828
+ firstName
2829
+ lastName
2830
+ mobilePhone
2831
+ osType
2832
+ privacyConsent
2833
+ region
2834
+ resourceType
2835
+ updatedAt
2836
+ vendor {
2837
+ ...TesterVendorFields
2838
+ }
2839
+ event {
2840
+ ...TesterEventFields
2841
+ }
2842
+ }
2843
+ ${TESTER_VENDOR_FIELDS_FRAGMENT}
2844
+ ${TESTER_EVENT_FIELDS_FRAGMENT}
2845
+ `;
2846
+ var GET_TESTERS = import_client4.gql`
2847
+ query getTesters {
2848
+ testers {
2849
+ ...TesterFields
2850
+ }
2851
+ }
2852
+ ${TESTER_FIELDS_FRAGMENT}
2853
+ `;
2854
+ var GET_TESTER = import_client4.gql`
2855
+ query getTester($_id: ID!) {
2856
+ tester(_id: $_id) {
2857
+ ...TesterFields
2858
+ }
2859
+ }
2860
+ ${TESTER_FIELDS_FRAGMENT}
2861
+ `;
2862
+
2863
+ // src/graphql/queries/vendor.ts
2864
+ var import_client5 = require("@apollo/client");
2865
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
2763
2866
  fragment VendorLocationFields on VendorLocationType {
2764
2867
  city
2765
2868
  coordinates
@@ -2771,7 +2874,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2771
2874
  type
2772
2875
  }
2773
2876
  `;
2774
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2877
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2775
2878
  fragment VendorDateTimeFields on VendorDateTimeType {
2776
2879
  dateStatus
2777
2880
  endDate
@@ -2780,7 +2883,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2780
2883
  startTime
2781
2884
  }
2782
2885
  `;
2783
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2886
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
2784
2887
  fragment VendorMenuFields on VendorMenuType {
2785
2888
  description
2786
2889
  name
@@ -2788,7 +2891,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2788
2891
  productGroups
2789
2892
  }
2790
2893
  `;
2791
- var VENDOR = import_client4.gql`
2894
+ var VENDOR = import_client5.gql`
2792
2895
  fragment VendorFields on VendorType {
2793
2896
  _id
2794
2897
  active
@@ -2871,13 +2974,13 @@ var VENDOR = import_client4.gql`
2871
2974
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2872
2975
  ${RELATION_DATES_FRAGMENT}
2873
2976
  `;
2874
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2977
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
2875
2978
  fragment VendorAttributesFields on VendorAttributesType {
2876
2979
  details
2877
2980
  isRequired
2878
2981
  }
2879
2982
  `;
2880
- var VENDOR_INFO = import_client4.gql`
2983
+ var VENDOR_INFO = import_client5.gql`
2881
2984
  fragment VendorInfoFields on VendorInfoType {
2882
2985
  _id
2883
2986
  compliance {
@@ -2918,7 +3021,7 @@ var VENDOR_INFO = import_client4.gql`
2918
3021
  ${VENDOR_ATTRIBUTES_FRAGMENT}
2919
3022
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2920
3023
  `;
2921
- var GET_VENDORS = import_client4.gql`
3024
+ var GET_VENDORS = import_client5.gql`
2922
3025
  query getVendors {
2923
3026
  vendors {
2924
3027
  ...VendorFields
@@ -2926,7 +3029,7 @@ var GET_VENDORS = import_client4.gql`
2926
3029
  }
2927
3030
  ${VENDOR}
2928
3031
  `;
2929
- var GET_VENDOR = import_client4.gql`
3032
+ var GET_VENDOR = import_client5.gql`
2930
3033
  query getVendor($_id: ID!) {
2931
3034
  vendor(_id: $_id) {
2932
3035
  ...VendorFields
@@ -2934,7 +3037,7 @@ var GET_VENDOR = import_client4.gql`
2934
3037
  }
2935
3038
  ${VENDOR}
2936
3039
  `;
2937
- var GET_VENDORS_BY_REGION = import_client4.gql`
3040
+ var GET_VENDORS_BY_REGION = import_client5.gql`
2938
3041
  query getVendorsByRegion($region: String!) {
2939
3042
  vendorsByRegion(region: $region) {
2940
3043
  ...VendorFields
@@ -2942,7 +3045,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
2942
3045
  }
2943
3046
  ${VENDOR}
2944
3047
  `;
2945
- var SEARCH_VENDORS = import_client4.gql`
3048
+ var SEARCH_VENDORS = import_client5.gql`
2946
3049
  query searchVendors($search: String!, $region: String) {
2947
3050
  vendorSearch(search: $search, region: $region) {
2948
3051
  ...VendorFields
@@ -2950,7 +3053,7 @@ var SEARCH_VENDORS = import_client4.gql`
2950
3053
  }
2951
3054
  ${VENDOR}
2952
3055
  `;
2953
- var GET_VENDOR_INFO = import_client4.gql`
3056
+ var GET_VENDOR_INFO = import_client5.gql`
2954
3057
  query getVendorInfo($vendorId: ID!) {
2955
3058
  vendorInfo(vendorId: $vendorId) {
2956
3059
  ...VendorInfoFields
@@ -2961,7 +3064,7 @@ var GET_VENDOR_INFO = import_client4.gql`
2961
3064
 
2962
3065
  // src/graphql/hooks/admin/hooksMutation.ts
2963
3066
  var useAdminUpdateResourceType = () => {
2964
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
3067
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
2965
3068
  awaitRefetchQueries: true,
2966
3069
  refetchQueries: (mutationResult) => {
2967
3070
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -2983,13 +3086,33 @@ var useAdminUpdateResourceType = () => {
2983
3086
  loading
2984
3087
  };
2985
3088
  };
3089
+ var useAdminUpdateTester = () => {
3090
+ const [adminUpdateTester, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_TESTER_MUTATION, {
3091
+ awaitRefetchQueries: true,
3092
+ refetchQueries: (mutationResult) => {
3093
+ const adminUpdateTester2 = mutationResult?.data?.adminUpdateTester;
3094
+ const testerId = adminUpdateTester2?._id;
3095
+ return [
3096
+ {
3097
+ query: GET_TESTER,
3098
+ variables: { _id: testerId }
3099
+ }
3100
+ ];
3101
+ }
3102
+ });
3103
+ return {
3104
+ adminUpdateTester,
3105
+ error,
3106
+ loading
3107
+ };
3108
+ };
2986
3109
 
2987
3110
  // src/graphql/hooks/auth.ts
2988
- var import_client7 = require("@apollo/client");
3111
+ var import_client8 = require("@apollo/client");
2989
3112
 
2990
3113
  // src/graphql/mutations/auth.ts
2991
- var import_client6 = require("@apollo/client");
2992
- var REGISTER_MUTATION = import_client6.gql`
3114
+ var import_client7 = require("@apollo/client");
3115
+ var REGISTER_MUTATION = import_client7.gql`
2993
3116
  mutation register($input: RegisterInputType!) {
2994
3117
  register(input: $input) {
2995
3118
  message
@@ -3002,7 +3125,7 @@ var REGISTER_MUTATION = import_client6.gql`
3002
3125
  }
3003
3126
  ${USER_FIELDS_FRAGMENT}
3004
3127
  `;
3005
- var LOGIN_MUTATION = import_client6.gql`
3128
+ var LOGIN_MUTATION = import_client7.gql`
3006
3129
  mutation login($input: LoginInputType!) {
3007
3130
  login(input: $input) {
3008
3131
  message
@@ -3015,14 +3138,14 @@ var LOGIN_MUTATION = import_client6.gql`
3015
3138
  }
3016
3139
  ${USER_FIELDS_FRAGMENT}
3017
3140
  `;
3018
- var LOGOUT_MUTATION = import_client6.gql`
3141
+ var LOGOUT_MUTATION = import_client7.gql`
3019
3142
  mutation logout {
3020
3143
  logout {
3021
3144
  message
3022
3145
  }
3023
3146
  }
3024
3147
  `;
3025
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
3148
+ var REFRESH_TOKEN_MUTATION = import_client7.gql`
3026
3149
  mutation refreshToken($input: RefreshTokenInputType!) {
3027
3150
  refreshToken(input: $input) {
3028
3151
  refreshToken
@@ -3030,21 +3153,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
3030
3153
  }
3031
3154
  }
3032
3155
  `;
3033
- var RESET_PASSWORD_MUTATION = import_client6.gql`
3156
+ var RESET_PASSWORD_MUTATION = import_client7.gql`
3034
3157
  mutation resetPassword($input: ResetPasswordInputType!) {
3035
3158
  resetPassword(input: $input) {
3036
3159
  message
3037
3160
  }
3038
3161
  }
3039
3162
  `;
3040
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
3163
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
3041
3164
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3042
3165
  requestPasswordReset(input: $input) {
3043
3166
  message
3044
3167
  }
3045
3168
  }
3046
3169
  `;
3047
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3170
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
3048
3171
  mutation validateVerificationToken(
3049
3172
  $input: ValidateVerificationTokenInputType!
3050
3173
  ) {
@@ -3056,51 +3179,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3056
3179
 
3057
3180
  // src/graphql/hooks/auth.ts
3058
3181
  var useRegister = () => {
3059
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
3182
+ const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
3060
3183
  return { error, loading, register };
3061
3184
  };
3062
3185
  var useLogin = () => {
3063
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
3186
+ const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
3064
3187
  return { error, loading, login };
3065
3188
  };
3066
3189
  var useLogout = () => {
3067
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
3190
+ const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
3068
3191
  return { error, loading, logout };
3069
3192
  };
3070
3193
  var useRefreshToken = () => {
3071
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
3194
+ const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
3072
3195
  REFRESH_TOKEN_MUTATION
3073
3196
  );
3074
3197
  return { error, loading, refreshToken };
3075
3198
  };
3076
3199
  var useRequestPasswordReset = () => {
3077
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
3200
+ const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
3078
3201
  REQUEST_PASSWORD_RESET_MUTATION
3079
3202
  );
3080
3203
  return { error, loading, requestPasswordReset };
3081
3204
  };
3082
3205
  var useValidateVerificationToken = () => {
3083
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
3206
+ const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
3084
3207
  VALIDATE_VERIFICATION_TOKEN_MUTATION
3085
3208
  );
3086
3209
  return { error, loading, validateVerificationToken };
3087
3210
  };
3088
3211
  var useResetPassword = () => {
3089
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
3212
+ const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
3090
3213
  RESET_PASSWORD_MUTATION
3091
3214
  );
3092
3215
  return { error, loading, resetPassword };
3093
3216
  };
3094
3217
 
3095
3218
  // src/graphql/hooks/chat/hooksMutation.ts
3096
- var import_client10 = require("@apollo/client");
3219
+ var import_client11 = require("@apollo/client");
3097
3220
 
3098
3221
  // src/graphql/mutations/chat.ts
3099
- var import_client9 = require("@apollo/client");
3222
+ var import_client10 = require("@apollo/client");
3100
3223
 
3101
3224
  // src/graphql/queries/chat.ts
3102
- var import_client8 = require("@apollo/client");
3103
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3225
+ var import_client9 = require("@apollo/client");
3226
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
3104
3227
  fragment ChatMessageFields on ChatMessageType {
3105
3228
  _id
3106
3229
  content
@@ -3109,7 +3232,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3109
3232
  updatedAt
3110
3233
  }
3111
3234
  `;
3112
- var CHAT_PARTICIPANT = import_client8.gql`
3235
+ var CHAT_PARTICIPANT = import_client9.gql`
3113
3236
  fragment ChatParticipantFields on ChatParticipantType {
3114
3237
  active
3115
3238
  userAvatar
@@ -3118,7 +3241,7 @@ var CHAT_PARTICIPANT = import_client8.gql`
3118
3241
  userName
3119
3242
  }
3120
3243
  `;
3121
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
3244
+ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
3122
3245
  fragment ChatFields on ChatType {
3123
3246
  _id
3124
3247
  active
@@ -3137,7 +3260,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
3137
3260
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3138
3261
  ${CHAT_PARTICIPANT}
3139
3262
  `;
3140
- var CHAT = import_client8.gql`
3263
+ var CHAT = import_client9.gql`
3141
3264
  query chat($_id: ID!) {
3142
3265
  chat(_id: $_id) {
3143
3266
  ...ChatFields
@@ -3145,7 +3268,7 @@ var CHAT = import_client8.gql`
3145
3268
  }
3146
3269
  ${CHAT_FIELDS_FRAGMENT}
3147
3270
  `;
3148
- var USER_CHATS = import_client8.gql`
3271
+ var USER_CHATS = import_client9.gql`
3149
3272
  query userChats {
3150
3273
  userChats {
3151
3274
  ...ChatFields
@@ -3155,7 +3278,7 @@ var USER_CHATS = import_client8.gql`
3155
3278
  `;
3156
3279
 
3157
3280
  // src/graphql/mutations/chat.ts
3158
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
3281
+ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
3159
3282
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3160
3283
  sendChatMessage(_id: $_id, input: $input) {
3161
3284
  ...ChatFields
@@ -3163,12 +3286,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
3163
3286
  }
3164
3287
  ${CHAT_FIELDS_FRAGMENT}
3165
3288
  `;
3166
- var DELETE_CHAT_MUTATION = import_client9.gql`
3289
+ var DELETE_CHAT_MUTATION = import_client10.gql`
3167
3290
  mutation deleteChat($_id: ID!) {
3168
3291
  deleteChat(_id: $_id)
3169
3292
  }
3170
3293
  `;
3171
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
3294
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
3172
3295
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3173
3296
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3174
3297
  ...ChatFields
@@ -3176,7 +3299,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
3176
3299
  }
3177
3300
  ${CHAT_FIELDS_FRAGMENT}
3178
3301
  `;
3179
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
3302
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3180
3303
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3181
3304
  removeParticipantFromChat(chatId: $chatId, userId: $userId)
3182
3305
  }
@@ -3184,7 +3307,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
3184
3307
 
3185
3308
  // src/graphql/hooks/chat/hooksMutation.ts
3186
3309
  var useSendChatMessage = () => {
3187
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
3310
+ const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
3188
3311
  awaitRefetchQueries: true,
3189
3312
  refetchQueries: (mutationResult) => {
3190
3313
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -3199,14 +3322,14 @@ var useSendChatMessage = () => {
3199
3322
  return { error, loading, sendChatMessage };
3200
3323
  };
3201
3324
  var useDeleteChat = () => {
3202
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
3325
+ const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
3203
3326
  awaitRefetchQueries: true,
3204
3327
  refetchQueries: [{ query: USER_CHATS }]
3205
3328
  });
3206
3329
  return { deleteChat, error, loading };
3207
3330
  };
3208
3331
  var useAddParticipantToChat = () => {
3209
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
3332
+ const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
3210
3333
  awaitRefetchQueries: true,
3211
3334
  refetchQueries: (mutationResult) => {
3212
3335
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -3224,7 +3347,7 @@ var useAddParticipantToChat = () => {
3224
3347
  return { addParticipantToChat, error, loading };
3225
3348
  };
3226
3349
  var useRemoveParticipantFromChat = () => {
3227
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
3350
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
3228
3351
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
3229
3352
  {
3230
3353
  awaitRefetchQueries: true,
@@ -3235,11 +3358,11 @@ var useRemoveParticipantFromChat = () => {
3235
3358
  };
3236
3359
 
3237
3360
  // src/graphql/hooks/chat/hooksQuery.ts
3238
- var import_client12 = require("@apollo/client");
3361
+ var import_client13 = require("@apollo/client");
3239
3362
 
3240
3363
  // src/graphql/subscriptions/chat.ts
3241
- var import_client11 = require("@apollo/client");
3242
- var GET_CHAT_MESSAGE = import_client11.gql`
3364
+ var import_client12 = require("@apollo/client");
3365
+ var GET_CHAT_MESSAGE = import_client12.gql`
3243
3366
  subscription {
3244
3367
  getChatMessage {
3245
3368
  ...ChatFields
@@ -3250,7 +3373,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
3250
3373
 
3251
3374
  // src/graphql/hooks/chat/hooksQuery.ts
3252
3375
  var useGetChat = (_id) => {
3253
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
3376
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
3254
3377
  fetchPolicy: "network-only",
3255
3378
  skip: !_id,
3256
3379
  variables: { _id }
@@ -3259,7 +3382,7 @@ var useGetChat = (_id) => {
3259
3382
  return { chat, error, loading, refetch };
3260
3383
  };
3261
3384
  var useGetUserChats = () => {
3262
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(
3385
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(
3263
3386
  USER_CHATS,
3264
3387
  {
3265
3388
  fetchPolicy: "network-only"
@@ -3269,7 +3392,7 @@ var useGetUserChats = () => {
3269
3392
  return { error, loading, refetch, userChats };
3270
3393
  };
3271
3394
  var useGetChatSubscription = () => {
3272
- const { data, loading, error } = (0, import_client12.useSubscription)(
3395
+ const { data, loading, error } = (0, import_client13.useSubscription)(
3273
3396
  GET_CHAT_MESSAGE
3274
3397
  );
3275
3398
  const chat = data?.getChat;
@@ -3277,11 +3400,11 @@ var useGetChatSubscription = () => {
3277
3400
  };
3278
3401
 
3279
3402
  // src/graphql/hooks/contactUs.ts
3280
- var import_client14 = require("@apollo/client");
3403
+ var import_client15 = require("@apollo/client");
3281
3404
 
3282
3405
  // src/graphql/mutations/contactUs.ts
3283
- var import_client13 = require("@apollo/client");
3284
- var CONTACT_US_MUTATION = import_client13.gql`
3406
+ var import_client14 = require("@apollo/client");
3407
+ var CONTACT_US_MUTATION = import_client14.gql`
3285
3408
  mutation contactUs($input: ContactUsInputType!) {
3286
3409
  contactUs(input: $input) {
3287
3410
  message
@@ -3291,16 +3414,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
3291
3414
 
3292
3415
  // src/graphql/hooks/contactUs.ts
3293
3416
  var useContactUs = () => {
3294
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3417
+ const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
3295
3418
  return { contactUs, error, loading };
3296
3419
  };
3297
3420
 
3298
3421
  // src/graphql/hooks/event/hooksMutation.ts
3299
- var import_client18 = require("@apollo/client");
3422
+ var import_client19 = require("@apollo/client");
3300
3423
 
3301
3424
  // src/graphql/mutations/event.ts
3302
- var import_client15 = require("@apollo/client");
3303
- var CREATE_EVENT_MUTATION = import_client15.gql`
3425
+ var import_client16 = require("@apollo/client");
3426
+ var CREATE_EVENT_MUTATION = import_client16.gql`
3304
3427
  mutation createEvent($input: EventInputType!) {
3305
3428
  createEvent(input: $input) {
3306
3429
  ...EventFields
@@ -3308,7 +3431,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
3308
3431
  }
3309
3432
  ${EVENT}
3310
3433
  `;
3311
- var UPDATE_EVENT_MUTATION = import_client15.gql`
3434
+ var UPDATE_EVENT_MUTATION = import_client16.gql`
3312
3435
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3313
3436
  updateEvent(_id: $_id, input: $input) {
3314
3437
  ...EventFields
@@ -3316,12 +3439,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
3316
3439
  }
3317
3440
  ${EVENT}
3318
3441
  `;
3319
- var DELETE_EVENT_MUTATION = import_client15.gql`
3442
+ var DELETE_EVENT_MUTATION = import_client16.gql`
3320
3443
  mutation deleteEvent($_id: ID!) {
3321
3444
  deleteEvent(_id: $_id)
3322
3445
  }
3323
3446
  `;
3324
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3447
+ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3325
3448
  mutation createEventInfo($input: EventInfoInputType!) {
3326
3449
  createEventInfo(input: $input) {
3327
3450
  ...EventInfoFields
@@ -3329,7 +3452,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3329
3452
  }
3330
3453
  ${EVENT_INFO}
3331
3454
  `;
3332
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3455
+ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3333
3456
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3334
3457
  updateEventInfo(_id: $_id, input: $input) {
3335
3458
  ...EventInfoFields
@@ -3339,11 +3462,11 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3339
3462
  `;
3340
3463
 
3341
3464
  // src/graphql/queries/user.ts
3342
- var import_client17 = require("@apollo/client");
3465
+ var import_client18 = require("@apollo/client");
3343
3466
 
3344
3467
  // src/graphql/queries/partner.ts
3345
- var import_client16 = require("@apollo/client");
3346
- var PARTNER = import_client16.gql`
3468
+ var import_client17 = require("@apollo/client");
3469
+ var PARTNER = import_client17.gql`
3347
3470
  fragment PartnerFields on PartnerType {
3348
3471
  _id
3349
3472
  active
@@ -3396,7 +3519,7 @@ var PARTNER = import_client16.gql`
3396
3519
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3397
3520
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3398
3521
  `;
3399
- var GET_PARTNERS = import_client16.gql`
3522
+ var GET_PARTNERS = import_client17.gql`
3400
3523
  query getPartners {
3401
3524
  partners {
3402
3525
  ...PartnerFields
@@ -3404,7 +3527,7 @@ var GET_PARTNERS = import_client16.gql`
3404
3527
  }
3405
3528
  ${PARTNER}
3406
3529
  `;
3407
- var GET_PARTNER = import_client16.gql`
3530
+ var GET_PARTNER = import_client17.gql`
3408
3531
  query getPartner($_id: ID!) {
3409
3532
  partner(_id: $_id) {
3410
3533
  ...PartnerFields
@@ -3412,7 +3535,7 @@ var GET_PARTNER = import_client16.gql`
3412
3535
  }
3413
3536
  ${PARTNER}
3414
3537
  `;
3415
- var GET_PARTNERS_BY_REGION = import_client16.gql`
3538
+ var GET_PARTNERS_BY_REGION = import_client17.gql`
3416
3539
  query getPartnersByRegion($region: String!) {
3417
3540
  partnersByRegion(region: $region) {
3418
3541
  ...PartnerFields
@@ -3420,7 +3543,7 @@ var GET_PARTNERS_BY_REGION = import_client16.gql`
3420
3543
  }
3421
3544
  ${PARTNER}
3422
3545
  `;
3423
- var SEARCH_PARTNERS = import_client16.gql`
3546
+ var SEARCH_PARTNERS = import_client17.gql`
3424
3547
  query searchPartners($search: String!, $region: String) {
3425
3548
  partnersSearch(search: $search, region: $region) {
3426
3549
  ...PartnerFields
@@ -3430,7 +3553,7 @@ var SEARCH_PARTNERS = import_client16.gql`
3430
3553
  `;
3431
3554
 
3432
3555
  // src/graphql/queries/user.ts
3433
- var GET_USERS = import_client17.gql`
3556
+ var GET_USERS = import_client18.gql`
3434
3557
  query getUsers {
3435
3558
  users {
3436
3559
  ...UserFields
@@ -3438,7 +3561,7 @@ var GET_USERS = import_client17.gql`
3438
3561
  }
3439
3562
  ${USER_FIELDS_FRAGMENT}
3440
3563
  `;
3441
- var GET_USER = import_client17.gql`
3564
+ var GET_USER = import_client18.gql`
3442
3565
  query getUser($_id: ID!) {
3443
3566
  user(_id: $_id) {
3444
3567
  ...UserFields
@@ -3446,7 +3569,7 @@ var GET_USER = import_client17.gql`
3446
3569
  }
3447
3570
  ${USER_FIELDS_FRAGMENT}
3448
3571
  `;
3449
- var GET_USER_EVENTS = import_client17.gql`
3572
+ var GET_USER_EVENTS = import_client18.gql`
3450
3573
  query getUserEvents {
3451
3574
  userEvents {
3452
3575
  ...EventFields
@@ -3454,7 +3577,7 @@ var GET_USER_EVENTS = import_client17.gql`
3454
3577
  }
3455
3578
  ${EVENT}
3456
3579
  `;
3457
- var GET_USER_VENDORS = import_client17.gql`
3580
+ var GET_USER_VENDORS = import_client18.gql`
3458
3581
  query getUserVendors {
3459
3582
  userVendors {
3460
3583
  ...VendorFields
@@ -3462,7 +3585,7 @@ var GET_USER_VENDORS = import_client17.gql`
3462
3585
  }
3463
3586
  ${VENDOR}
3464
3587
  `;
3465
- var GET_USER_PARTNERS = import_client17.gql`
3588
+ var GET_USER_PARTNERS = import_client18.gql`
3466
3589
  query getUserPartners {
3467
3590
  userPartners {
3468
3591
  ...PartnerFields
@@ -3470,7 +3593,7 @@ var GET_USER_PARTNERS = import_client17.gql`
3470
3593
  }
3471
3594
  ${PARTNER}
3472
3595
  `;
3473
- var GET_USER_ACTIVITIES = import_client17.gql`
3596
+ var GET_USER_ACTIVITIES = import_client18.gql`
3474
3597
  query getUserActivities {
3475
3598
  userActivities {
3476
3599
  favourites {
@@ -3504,28 +3627,28 @@ var GET_USER_ACTIVITIES = import_client17.gql`
3504
3627
 
3505
3628
  // src/graphql/hooks/event/hooksMutation.ts
3506
3629
  var useCreateEvent = () => {
3507
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
3630
+ const [createEvent, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_MUTATION, {
3508
3631
  awaitRefetchQueries: true,
3509
3632
  refetchQueries: [{ query: GET_USER_EVENTS }]
3510
3633
  });
3511
3634
  return { createEvent, error, loading };
3512
3635
  };
3513
3636
  var useUpdateEvent = () => {
3514
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
3637
+ const [updateEvent, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_MUTATION, {
3515
3638
  awaitRefetchQueries: true,
3516
3639
  refetchQueries: [{ query: GET_USER_EVENTS }]
3517
3640
  });
3518
3641
  return { error, loading, updateEvent };
3519
3642
  };
3520
3643
  var useDeleteEvent = () => {
3521
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
3644
+ const [deleteEvent, { loading, error }] = (0, import_client19.useMutation)(DELETE_EVENT_MUTATION, {
3522
3645
  awaitRefetchQueries: true,
3523
3646
  refetchQueries: [{ query: GET_USER_EVENTS }]
3524
3647
  });
3525
3648
  return { deleteEvent, error, loading };
3526
3649
  };
3527
3650
  var useCreateEventInfo = () => {
3528
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
3651
+ const [createEventInfo, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_INFO_MUTATION, {
3529
3652
  awaitRefetchQueries: true,
3530
3653
  refetchQueries: (mutationResult) => {
3531
3654
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -3549,7 +3672,7 @@ var useCreateEventInfo = () => {
3549
3672
  return { createEventInfo, error, loading };
3550
3673
  };
3551
3674
  var useUpdateEventInfo = () => {
3552
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
3675
+ const [updateEventInfo, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
3553
3676
  awaitRefetchQueries: true,
3554
3677
  refetchQueries: (mutationResult) => {
3555
3678
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -3572,9 +3695,9 @@ var useUpdateEventInfo = () => {
3572
3695
  };
3573
3696
 
3574
3697
  // src/graphql/hooks/event/hooksQuery.ts
3575
- var import_client19 = require("@apollo/client");
3698
+ var import_client20 = require("@apollo/client");
3576
3699
  var useGetEvents = () => {
3577
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(
3700
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(
3578
3701
  GET_EVENTS,
3579
3702
  {
3580
3703
  fetchPolicy: "network-only"
@@ -3584,7 +3707,7 @@ var useGetEvents = () => {
3584
3707
  return { error, events, loading, refetch };
3585
3708
  };
3586
3709
  var useGetEvent = (_id) => {
3587
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(
3710
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(
3588
3711
  GET_EVENT,
3589
3712
  {
3590
3713
  fetchPolicy: "network-only",
@@ -3596,7 +3719,7 @@ var useGetEvent = (_id) => {
3596
3719
  return { error, event, loading, refetch };
3597
3720
  };
3598
3721
  var useGetEventsByRegion = (region) => {
3599
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
3722
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_BY_REGION, {
3600
3723
  fetchPolicy: "no-cache",
3601
3724
  skip: !region,
3602
3725
  variables: { region }
@@ -3605,7 +3728,7 @@ var useGetEventsByRegion = (region) => {
3605
3728
  return { error, eventsByRegion, loading, refetch };
3606
3729
  };
3607
3730
  var useSearchEvents = (search, region) => {
3608
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
3731
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(SEARCH_EVENTS, {
3609
3732
  fetchPolicy: "network-only",
3610
3733
  skip: search.length < 3,
3611
3734
  variables: { region, search }
@@ -3614,7 +3737,7 @@ var useSearchEvents = (search, region) => {
3614
3737
  return { error, eventsSearch, loading, refetch };
3615
3738
  };
3616
3739
  var useGetEventsNearMe = (location) => {
3617
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
3740
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_NEAR_ME, {
3618
3741
  fetchPolicy: "network-only",
3619
3742
  skip: !location.latitude || !location.longitude,
3620
3743
  variables: {
@@ -3628,7 +3751,7 @@ var useGetEventsNearMe = (location) => {
3628
3751
  return { error, eventsNearMe, loading, refetch };
3629
3752
  };
3630
3753
  var useGetEventInfo = (eventId) => {
3631
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
3754
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_INFO, {
3632
3755
  fetchPolicy: "network-only",
3633
3756
  skip: !eventId,
3634
3757
  variables: { eventId }
@@ -3638,14 +3761,14 @@ var useGetEventInfo = (eventId) => {
3638
3761
  };
3639
3762
 
3640
3763
  // src/graphql/hooks/notifications/hooksMutation.ts
3641
- var import_client22 = require("@apollo/client");
3764
+ var import_client23 = require("@apollo/client");
3642
3765
 
3643
3766
  // src/graphql/mutations/notification.ts
3644
- var import_client21 = require("@apollo/client");
3767
+ var import_client22 = require("@apollo/client");
3645
3768
 
3646
3769
  // src/graphql/queries/notification.ts
3647
- var import_client20 = require("@apollo/client");
3648
- var NOTIFICATION_FRAGMENT = import_client20.gql`
3770
+ var import_client21 = require("@apollo/client");
3771
+ var NOTIFICATION_FRAGMENT = import_client21.gql`
3649
3772
  fragment NotificationFields on Notification {
3650
3773
  _id
3651
3774
  userId
@@ -3662,7 +3785,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
3662
3785
  updatedAt
3663
3786
  }
3664
3787
  `;
3665
- var GET_USER_NOTIFICATIONS = import_client20.gql`
3788
+ var GET_USER_NOTIFICATIONS = import_client21.gql`
3666
3789
  query getUserNotifications($limit: Int, $offset: Int) {
3667
3790
  userNotifications(limit: $limit, offset: $offset) {
3668
3791
  ...NotificationFields
@@ -3670,7 +3793,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
3670
3793
  }
3671
3794
  ${NOTIFICATION_FRAGMENT}
3672
3795
  `;
3673
- var GET_NOTIFICATION_COUNT = import_client20.gql`
3796
+ var GET_NOTIFICATION_COUNT = import_client21.gql`
3674
3797
  query getNotificationCount {
3675
3798
  notificationCount {
3676
3799
  total
@@ -3680,7 +3803,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
3680
3803
  `;
3681
3804
 
3682
3805
  // src/graphql/mutations/notification.ts
3683
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3806
+ var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
3684
3807
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3685
3808
  createBulkNotifications(input: $input) {
3686
3809
  ...NotificationFields
@@ -3688,7 +3811,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3688
3811
  }
3689
3812
  ${NOTIFICATION_FRAGMENT}
3690
3813
  `;
3691
- var MARK_NOTIFICATION_READ = import_client21.gql`
3814
+ var MARK_NOTIFICATION_READ = import_client22.gql`
3692
3815
  mutation markNotificationRead($_id: ID!) {
3693
3816
  markNotificationRead(_id: $_id) {
3694
3817
  ...NotificationFields
@@ -3696,17 +3819,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
3696
3819
  }
3697
3820
  ${NOTIFICATION_FRAGMENT}
3698
3821
  `;
3699
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3822
+ var MARK_ALL_NOTIFICATIONS_READ = import_client22.gql`
3700
3823
  mutation markAllNotificationsRead {
3701
3824
  markAllNotificationsRead
3702
3825
  }
3703
3826
  `;
3704
- var DELETE_NOTIFICATION = import_client21.gql`
3827
+ var DELETE_NOTIFICATION = import_client22.gql`
3705
3828
  mutation deleteNotification($_id: ID!) {
3706
3829
  deleteNotification(_id: $_id)
3707
3830
  }
3708
3831
  `;
3709
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3832
+ var DELETE_ALL_NOTIFICATIONS = import_client22.gql`
3710
3833
  mutation deleteAllNotifications {
3711
3834
  deleteAllNotifications
3712
3835
  }
@@ -3714,13 +3837,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3714
3837
 
3715
3838
  // src/graphql/hooks/notifications/hooksMutation.ts
3716
3839
  var useCreateBulkNotifications = () => {
3717
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
3840
+ const [createBulkNotifications, { loading, error }] = (0, import_client23.useMutation)(
3718
3841
  CREATE_BULK_NOTIFICATIONS
3719
3842
  );
3720
3843
  return { createBulkNotifications, error, loading };
3721
3844
  };
3722
3845
  var useMarkNotificationRead = () => {
3723
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
3846
+ const [markNotificationRead, { loading, error }] = (0, import_client23.useMutation)(
3724
3847
  MARK_NOTIFICATION_READ,
3725
3848
  {
3726
3849
  refetchQueries: [
@@ -3736,7 +3859,7 @@ var useMarkNotificationRead = () => {
3736
3859
  return { error, loading, markNotificationRead };
3737
3860
  };
3738
3861
  var useMarkAllNotificationsRead = () => {
3739
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
3862
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client23.useMutation)(
3740
3863
  MARK_ALL_NOTIFICATIONS_READ,
3741
3864
  {
3742
3865
  refetchQueries: [
@@ -3752,7 +3875,7 @@ var useMarkAllNotificationsRead = () => {
3752
3875
  return { error, loading, markAllNotificationsRead };
3753
3876
  };
3754
3877
  var useDeleteNotification = () => {
3755
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3878
+ const [deleteNotification, { loading, error }] = (0, import_client23.useMutation)(
3756
3879
  DELETE_NOTIFICATION,
3757
3880
  {
3758
3881
  refetchQueries: [
@@ -3768,7 +3891,7 @@ var useDeleteNotification = () => {
3768
3891
  return { deleteNotification, error, loading };
3769
3892
  };
3770
3893
  var useDeleteAllNotifications = () => {
3771
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3894
+ const [deleteAllNotifications, { loading, error }] = (0, import_client23.useMutation)(
3772
3895
  DELETE_ALL_NOTIFICATIONS,
3773
3896
  {
3774
3897
  refetchQueries: [
@@ -3785,9 +3908,9 @@ var useDeleteAllNotifications = () => {
3785
3908
  };
3786
3909
 
3787
3910
  // src/graphql/hooks/notifications/hooksQuery.ts
3788
- var import_client23 = require("@apollo/client");
3911
+ var import_client24 = require("@apollo/client");
3789
3912
  var useGetUserNotifications = (limit, offset) => {
3790
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
3913
+ const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_USER_NOTIFICATIONS, {
3791
3914
  fetchPolicy: "no-cache",
3792
3915
  variables: { limit, offset }
3793
3916
  });
@@ -3799,7 +3922,7 @@ var useGetUserNotifications = (limit, offset) => {
3799
3922
  };
3800
3923
  };
3801
3924
  var useGetNotificationCount = () => {
3802
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
3925
+ const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_NOTIFICATION_COUNT, {
3803
3926
  fetchPolicy: "no-cache"
3804
3927
  });
3805
3928
  return {
@@ -3811,11 +3934,11 @@ var useGetNotificationCount = () => {
3811
3934
  };
3812
3935
 
3813
3936
  // src/graphql/hooks/notifications/hooksSubscription.ts
3814
- var import_client25 = require("@apollo/client");
3937
+ var import_client26 = require("@apollo/client");
3815
3938
 
3816
3939
  // src/graphql/subscriptions/notification.ts
3817
- var import_client24 = require("@apollo/client");
3818
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3940
+ var import_client25 = require("@apollo/client");
3941
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
3819
3942
  subscription {
3820
3943
  getUserNotifications {
3821
3944
  ...NotificationFields
@@ -3823,7 +3946,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3823
3946
  }
3824
3947
  ${NOTIFICATION_FRAGMENT}
3825
3948
  `;
3826
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3949
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
3827
3950
  subscription {
3828
3951
  getNotificationCount {
3829
3952
  total
@@ -3834,7 +3957,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3834
3957
 
3835
3958
  // src/graphql/hooks/notifications/hooksSubscription.ts
3836
3959
  var useGetUserNotificationsSubscription = () => {
3837
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3960
+ const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3838
3961
  fetchPolicy: "no-cache",
3839
3962
  shouldResubscribe: true
3840
3963
  });
@@ -3845,7 +3968,7 @@ var useGetUserNotificationsSubscription = () => {
3845
3968
  };
3846
3969
  };
3847
3970
  var useGetNotificationCountSubscription = () => {
3848
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3971
+ const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3849
3972
  fetchPolicy: "no-cache",
3850
3973
  shouldResubscribe: true
3851
3974
  });
@@ -3857,11 +3980,11 @@ var useGetNotificationCountSubscription = () => {
3857
3980
  };
3858
3981
 
3859
3982
  // src/graphql/hooks/poster.ts
3860
- var import_client27 = require("@apollo/client");
3983
+ var import_client28 = require("@apollo/client");
3861
3984
 
3862
3985
  // src/graphql/mutations/poster.ts
3863
- var import_client26 = require("@apollo/client");
3864
- var CREATE_POSTER_MUTATION = import_client26.gql`
3986
+ var import_client27 = require("@apollo/client");
3987
+ var CREATE_POSTER_MUTATION = import_client27.gql`
3865
3988
  mutation createPoster($input: PosterInputType!) {
3866
3989
  createPoster(input: $input) {
3867
3990
  message
@@ -3875,7 +3998,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
3875
3998
 
3876
3999
  // src/graphql/hooks/poster.ts
3877
4000
  var useCreatePoster = () => {
3878
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
4001
+ const [createPoster, { loading, error }] = (0, import_client28.useMutation)(
3879
4002
  CREATE_POSTER_MUTATION,
3880
4003
  {
3881
4004
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -3885,11 +4008,11 @@ var useCreatePoster = () => {
3885
4008
  };
3886
4009
 
3887
4010
  // src/graphql/hooks/pushToken.ts
3888
- var import_client29 = require("@apollo/client");
4011
+ var import_client30 = require("@apollo/client");
3889
4012
 
3890
4013
  // src/graphql/mutations/pushToken.ts
3891
- var import_client28 = require("@apollo/client");
3892
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
4014
+ var import_client29 = require("@apollo/client");
4015
+ var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
3893
4016
  mutation createPushToken($input: PushTokenInput!) {
3894
4017
  createPushToken(input: $input) {
3895
4018
  success
@@ -3899,21 +4022,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3899
4022
 
3900
4023
  // src/graphql/hooks/pushToken.ts
3901
4024
  var useCreatePushToken = () => {
3902
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
4025
+ const [createPushToken, { loading, error }] = (0, import_client30.useMutation)(
3903
4026
  CREATE_PUSH_TOKEN_MUTATION
3904
4027
  );
3905
4028
  return { createPushToken, error, loading };
3906
4029
  };
3907
4030
 
3908
4031
  // src/graphql/hooks/relation/hooksMutation.ts
3909
- var import_client32 = require("@apollo/client");
4032
+ var import_client33 = require("@apollo/client");
3910
4033
 
3911
4034
  // src/graphql/mutations/relation.ts
3912
- var import_client31 = require("@apollo/client");
4035
+ var import_client32 = require("@apollo/client");
3913
4036
 
3914
4037
  // src/graphql/queries/relation.ts
3915
- var import_client30 = require("@apollo/client");
3916
- var RELATION_FIELDS_FRAGMENT = import_client30.gql`
4038
+ var import_client31 = require("@apollo/client");
4039
+ var RELATION_FIELDS_FRAGMENT = import_client31.gql`
3917
4040
  fragment RelationFields on RelationType {
3918
4041
  _id
3919
4042
  active
@@ -3931,7 +4054,7 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
3931
4054
  }
3932
4055
  ${RELATION_DATES_FRAGMENT}
3933
4056
  `;
3934
- var GET_RELATION = import_client30.gql`
4057
+ var GET_RELATION = import_client31.gql`
3935
4058
  query getRelation($_id: ID!) {
3936
4059
  relation(_id: $_id) {
3937
4060
  ...RelationFields
@@ -3939,7 +4062,7 @@ var GET_RELATION = import_client30.gql`
3939
4062
  }
3940
4063
  ${RELATION_FIELDS_FRAGMENT}
3941
4064
  `;
3942
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
4065
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
3943
4066
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3944
4067
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3945
4068
  ...RelationFields
@@ -3947,7 +4070,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
3947
4070
  }
3948
4071
  ${RELATION_FIELDS_FRAGMENT}
3949
4072
  `;
3950
- var GET_EVENT_RELATIONS = import_client30.gql`
4073
+ var GET_EVENT_RELATIONS = import_client31.gql`
3951
4074
  query getEventRelations($eventId: ID!) {
3952
4075
  eventRelations(eventId: $eventId) {
3953
4076
  ...RelationFields
@@ -3955,7 +4078,7 @@ var GET_EVENT_RELATIONS = import_client30.gql`
3955
4078
  }
3956
4079
  ${RELATION_FIELDS_FRAGMENT}
3957
4080
  `;
3958
- var GET_VENDOR_RELATIONS = import_client30.gql`
4081
+ var GET_VENDOR_RELATIONS = import_client31.gql`
3959
4082
  query getVendorRelations($vendorId: ID!) {
3960
4083
  vendorRelations(vendorId: $vendorId) {
3961
4084
  ...RelationFields
@@ -3963,7 +4086,7 @@ var GET_VENDOR_RELATIONS = import_client30.gql`
3963
4086
  }
3964
4087
  ${RELATION_FIELDS_FRAGMENT}
3965
4088
  `;
3966
- var GET_RESOURCE_CONNECTIONS = import_client30.gql`
4089
+ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
3967
4090
  query getResourceConnections(
3968
4091
  $resourceId: ID!
3969
4092
  $resourceType: ResourceTypeEnum!
@@ -3982,7 +4105,7 @@ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
3982
4105
  `;
3983
4106
 
3984
4107
  // src/graphql/mutations/relation.ts
3985
- var CREATE_RELATION_MUTATION = import_client31.gql`
4108
+ var CREATE_RELATION_MUTATION = import_client32.gql`
3986
4109
  mutation createRelation($input: RelationInputType!) {
3987
4110
  createRelation(input: $input) {
3988
4111
  ...RelationFields
@@ -3990,7 +4113,7 @@ var CREATE_RELATION_MUTATION = import_client31.gql`
3990
4113
  }
3991
4114
  ${RELATION_FIELDS_FRAGMENT}
3992
4115
  `;
3993
- var UPDATE_RELATION_MUTATION = import_client31.gql`
4116
+ var UPDATE_RELATION_MUTATION = import_client32.gql`
3994
4117
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
3995
4118
  updateRelation(_id: $_id, input: $input) {
3996
4119
  ...RelationFields
@@ -3998,7 +4121,7 @@ var UPDATE_RELATION_MUTATION = import_client31.gql`
3998
4121
  }
3999
4122
  ${RELATION_FIELDS_FRAGMENT}
4000
4123
  `;
4001
- var DELETE_RELATION_MUTATION = import_client31.gql`
4124
+ var DELETE_RELATION_MUTATION = import_client32.gql`
4002
4125
  mutation deleteRelation($_id: ID!) {
4003
4126
  deleteRelation(_id: $_id) {
4004
4127
  ...RelationFields
@@ -4009,7 +4132,7 @@ var DELETE_RELATION_MUTATION = import_client31.gql`
4009
4132
 
4010
4133
  // src/graphql/hooks/relation/hooksMutation.ts
4011
4134
  var useCreateRelation = () => {
4012
- const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
4135
+ const [createRelation, { loading, error }] = (0, import_client33.useMutation)(CREATE_RELATION_MUTATION, {
4013
4136
  awaitRefetchQueries: true,
4014
4137
  refetchQueries: (mutationResult) => {
4015
4138
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -4055,7 +4178,7 @@ var useCreateRelation = () => {
4055
4178
  return { createRelation, error, loading };
4056
4179
  };
4057
4180
  var useUpdateRelation = () => {
4058
- const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
4181
+ const [updateRelation, { loading, error }] = (0, import_client33.useMutation)(UPDATE_RELATION_MUTATION, {
4059
4182
  awaitRefetchQueries: true,
4060
4183
  refetchQueries: (mutationResult) => {
4061
4184
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -4098,7 +4221,7 @@ var useUpdateRelation = () => {
4098
4221
  return { error, loading, updateRelation };
4099
4222
  };
4100
4223
  var useDeleteRelation = () => {
4101
- const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
4224
+ const [deleteRelation, { loading, error }] = (0, import_client33.useMutation)(DELETE_RELATION_MUTATION, {
4102
4225
  awaitRefetchQueries: true,
4103
4226
  refetchQueries: (mutationResult) => {
4104
4227
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -4137,9 +4260,9 @@ var useDeleteRelation = () => {
4137
4260
  };
4138
4261
 
4139
4262
  // src/graphql/hooks/relation/hooksQuery.ts
4140
- var import_client33 = require("@apollo/client");
4263
+ var import_client34 = require("@apollo/client");
4141
4264
  var useGetRelation = (_id) => {
4142
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
4265
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION, {
4143
4266
  fetchPolicy: "network-only",
4144
4267
  skip: !_id,
4145
4268
  variables: { _id }
@@ -4148,7 +4271,7 @@ var useGetRelation = (_id) => {
4148
4271
  return { error, loading, refetch, relation };
4149
4272
  };
4150
4273
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
4151
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
4274
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
4152
4275
  fetchPolicy: "network-only",
4153
4276
  skip: !eventId || !vendorId,
4154
4277
  variables: { eventId, vendorId }
@@ -4157,7 +4280,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
4157
4280
  return { error, loading, refetch, relationByEventAndVendor };
4158
4281
  };
4159
4282
  var useGetEventRelations = (eventId) => {
4160
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
4283
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_EVENT_RELATIONS, {
4161
4284
  fetchPolicy: "network-only",
4162
4285
  skip: !eventId,
4163
4286
  variables: { eventId }
@@ -4166,7 +4289,7 @@ var useGetEventRelations = (eventId) => {
4166
4289
  return { error, eventRelations, loading, refetch };
4167
4290
  };
4168
4291
  var useGetVendorRelations = (vendorId) => {
4169
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
4292
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_VENDOR_RELATIONS, {
4170
4293
  fetchPolicy: "network-only",
4171
4294
  skip: !vendorId,
4172
4295
  variables: { vendorId }
@@ -4175,7 +4298,7 @@ var useGetVendorRelations = (vendorId) => {
4175
4298
  return { error, loading, refetch, vendorRelations };
4176
4299
  };
4177
4300
  var useGetResourceConnections = (resourceId, resourceType) => {
4178
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
4301
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RESOURCE_CONNECTIONS, {
4179
4302
  fetchPolicy: "network-only",
4180
4303
  variables: { resourceId, resourceType }
4181
4304
  });
@@ -4184,11 +4307,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
4184
4307
  };
4185
4308
 
4186
4309
  // src/graphql/hooks/vendor/hooksMutation.ts
4187
- var import_client35 = require("@apollo/client");
4310
+ var import_client36 = require("@apollo/client");
4188
4311
 
4189
4312
  // src/graphql/mutations/vendor.ts
4190
- var import_client34 = require("@apollo/client");
4191
- var CREATE_VENDOR_MUTATION = import_client34.gql`
4313
+ var import_client35 = require("@apollo/client");
4314
+ var CREATE_VENDOR_MUTATION = import_client35.gql`
4192
4315
  mutation createVendor($input: VendorInputType!) {
4193
4316
  createVendor(input: $input) {
4194
4317
  ...VendorFields
@@ -4196,7 +4319,7 @@ var CREATE_VENDOR_MUTATION = import_client34.gql`
4196
4319
  }
4197
4320
  ${VENDOR}
4198
4321
  `;
4199
- var UPDATE_VENDOR_MUTATION = import_client34.gql`
4322
+ var UPDATE_VENDOR_MUTATION = import_client35.gql`
4200
4323
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4201
4324
  updateVendor(_id: $_id, input: $input) {
4202
4325
  ...VendorFields
@@ -4204,12 +4327,12 @@ var UPDATE_VENDOR_MUTATION = import_client34.gql`
4204
4327
  }
4205
4328
  ${VENDOR}
4206
4329
  `;
4207
- var DELETE_VENDOR_MUTATION = import_client34.gql`
4330
+ var DELETE_VENDOR_MUTATION = import_client35.gql`
4208
4331
  mutation deleteVendor($_id: ID!) {
4209
4332
  deleteVendor(_id: $_id)
4210
4333
  }
4211
4334
  `;
4212
- var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
4335
+ var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
4213
4336
  mutation createVendorInfo($input: VendorInfoInputType!) {
4214
4337
  createVendorInfo(input: $input) {
4215
4338
  ...VendorInfoFields
@@ -4217,7 +4340,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
4217
4340
  }
4218
4341
  ${VENDOR_INFO}
4219
4342
  `;
4220
- var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
4343
+ var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
4221
4344
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4222
4345
  updateVendorInfo(_id: $_id, input: $input) {
4223
4346
  ...VendorInfoFields
@@ -4228,7 +4351,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
4228
4351
 
4229
4352
  // src/graphql/hooks/vendor/hooksMutation.ts
4230
4353
  var useCreateVendor = () => {
4231
- const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
4354
+ const [createVendor, { loading, error }] = (0, import_client36.useMutation)(
4232
4355
  CREATE_VENDOR_MUTATION,
4233
4356
  {
4234
4357
  awaitRefetchQueries: true,
@@ -4238,7 +4361,7 @@ var useCreateVendor = () => {
4238
4361
  return { createVendor, error, loading };
4239
4362
  };
4240
4363
  var useUpdateVendor = () => {
4241
- const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
4364
+ const [updateVendor, { loading, error }] = (0, import_client36.useMutation)(
4242
4365
  UPDATE_VENDOR_MUTATION,
4243
4366
  {
4244
4367
  awaitRefetchQueries: true,
@@ -4248,7 +4371,7 @@ var useUpdateVendor = () => {
4248
4371
  return { error, loading, updateVendor };
4249
4372
  };
4250
4373
  var useDeleteVendor = () => {
4251
- const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
4374
+ const [deleteVendor, { loading, error }] = (0, import_client36.useMutation)(
4252
4375
  DELETE_VENDOR_MUTATION,
4253
4376
  {
4254
4377
  awaitRefetchQueries: true,
@@ -4258,7 +4381,7 @@ var useDeleteVendor = () => {
4258
4381
  return { deleteVendor, error, loading };
4259
4382
  };
4260
4383
  var useCreateVendorInfo = () => {
4261
- const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
4384
+ const [createVendorInfo, { loading, error }] = (0, import_client36.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
4262
4385
  awaitRefetchQueries: true,
4263
4386
  refetchQueries: (mutationResult) => {
4264
4387
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -4282,7 +4405,7 @@ var useCreateVendorInfo = () => {
4282
4405
  return { createVendorInfo, error, loading };
4283
4406
  };
4284
4407
  var useUpdateVendorInfo = () => {
4285
- const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
4408
+ const [updateVendorInfo, { loading, error }] = (0, import_client36.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
4286
4409
  awaitRefetchQueries: true,
4287
4410
  refetchQueries: (mutationResult) => {
4288
4411
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -4300,9 +4423,9 @@ var useUpdateVendorInfo = () => {
4300
4423
  };
4301
4424
 
4302
4425
  // src/graphql/hooks/vendor/hooksQuery.ts
4303
- var import_client36 = require("@apollo/client");
4426
+ var import_client37 = require("@apollo/client");
4304
4427
  var useGetVendors = () => {
4305
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
4428
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(
4306
4429
  GET_VENDORS,
4307
4430
  {
4308
4431
  fetchPolicy: "network-only"
@@ -4317,7 +4440,7 @@ var useGetVendors = () => {
4317
4440
  };
4318
4441
  };
4319
4442
  var useGetVendor = (_id) => {
4320
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
4443
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(
4321
4444
  GET_VENDOR,
4322
4445
  {
4323
4446
  fetchPolicy: "network-only",
@@ -4329,7 +4452,7 @@ var useGetVendor = (_id) => {
4329
4452
  return { error, loading, refetch, vendor };
4330
4453
  };
4331
4454
  var useGetVendorsByRegion = (region) => {
4332
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
4455
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDORS_BY_REGION, {
4333
4456
  fetchPolicy: "no-cache",
4334
4457
  skip: !region,
4335
4458
  variables: { region }
@@ -4338,7 +4461,7 @@ var useGetVendorsByRegion = (region) => {
4338
4461
  return { error, loading, refetch, vendorsByRegion };
4339
4462
  };
4340
4463
  var useSearchVendors = (search, region) => {
4341
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
4464
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(SEARCH_VENDORS, {
4342
4465
  fetchPolicy: "network-only",
4343
4466
  skip: search.length < 3,
4344
4467
  variables: { region, search }
@@ -4347,7 +4470,7 @@ var useSearchVendors = (search, region) => {
4347
4470
  return { error, loading, refetch, vendorSearch };
4348
4471
  };
4349
4472
  var useGetVendorInfo = (vendorId) => {
4350
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
4473
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDOR_INFO, {
4351
4474
  fetchPolicy: "network-only",
4352
4475
  skip: !vendorId,
4353
4476
  variables: { vendorId }
@@ -4366,102 +4489,6 @@ var import_client39 = require("@apollo/client");
4366
4489
 
4367
4490
  // src/graphql/mutations/tester.ts
4368
4491
  var import_client38 = require("@apollo/client");
4369
-
4370
- // src/graphql/queries/tester.ts
4371
- var import_client37 = require("@apollo/client");
4372
- var TESTER_VENDOR_FIELDS_FRAGMENT = import_client37.gql`
4373
- fragment TesterVendorFields on TesterVendorType {
4374
- categories {
4375
- ...CategoryFields
4376
- }
4377
- productsOrServices
4378
- marketsAttended {
4379
- name
4380
- city
4381
- }
4382
- sellingFrequency
4383
- yearlySellingApprox
4384
- questionary {
4385
- uploadStallProfileFirstWeek
4386
- applyToAtLeastOneMarket
4387
- tryVisitorFeatures
4388
- completeFeedbackQuestionnaire
4389
- sendPhotoForSocialMedia
4390
- appearInVideoIntroduction
4391
- socialMediaFeatureReason
4392
- excitementAboutApp
4393
- usefulnessExpectations
4394
- testingPeriodConcerns
4395
- }
4396
- }
4397
- ${CATEGORY_FIELDS_FRAGMENT}
4398
- `;
4399
- var TESTER_EVENT_FIELDS_FRAGMENT = import_client37.gql`
4400
- fragment TesterEventFields on TesterEventType {
4401
- organizedMarketCount
4402
- markets {
4403
- name
4404
- cityOrVenue
4405
- frequency
4406
- averageStallCount
4407
- }
4408
- questionary {
4409
- allowMarketingAppearance
4410
- completeFinalQuestionnaire
4411
- dailyCoordinationNeeds
4412
- interestedInCharityInitiative
4413
- inviteAtLeastFiveStallholders
4414
- manageApplicationsAndCommunication
4415
- organizerExpectations
4416
- registerMarketsFirstWeek
4417
- spaceForClueMart
4418
- }
4419
- }
4420
- `;
4421
- var TESTER_FIELDS_FRAGMENT = import_client37.gql`
4422
- fragment TesterFields on TesterType {
4423
- _id
4424
- active
4425
- approved
4426
- businessName
4427
- createdAt
4428
- email
4429
- firstName
4430
- lastName
4431
- mobilePhone
4432
- osType
4433
- privacyConsent
4434
- region
4435
- resourceType
4436
- updatedAt
4437
- vendor {
4438
- ...TesterVendorFields
4439
- }
4440
- event {
4441
- ...TesterEventFields
4442
- }
4443
- }
4444
- ${TESTER_VENDOR_FIELDS_FRAGMENT}
4445
- ${TESTER_EVENT_FIELDS_FRAGMENT}
4446
- `;
4447
- var GET_TESTERS = import_client37.gql`
4448
- query getTesters {
4449
- testers {
4450
- ...TesterFields
4451
- }
4452
- }
4453
- ${TESTER_FIELDS_FRAGMENT}
4454
- `;
4455
- var GET_TESTER = import_client37.gql`
4456
- query getTester($_id: ID!) {
4457
- tester(_id: $_id) {
4458
- ...TesterFields
4459
- }
4460
- }
4461
- ${TESTER_FIELDS_FRAGMENT}
4462
- `;
4463
-
4464
- // src/graphql/mutations/tester.ts
4465
4492
  var CREATE_TESTER_MUTATION = import_client38.gql`
4466
4493
  mutation createTester($input: TesterInputType!) {
4467
4494
  createTester(input: $input) {
@@ -5751,7 +5778,7 @@ var testerVendorSchema = yup6.object().shape({
5751
5778
  Object.values(VendorSellingFrequency),
5752
5779
  "Please select a valid selling frequency"
5753
5780
  ).required("Required field"),
5754
- yearlySellingApprox: yup6.number().label("Yearly Selling Approx").min(0, "Yearly selling approximate must be at least 0").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
5781
+ yearlySellingApprox: yup6.number().label("Yearly Selling Approx").min(1, "Yearly selling approximate must be at least 1").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
5755
5782
  });
5756
5783
  var testerEventSchema = yup6.object().shape({
5757
5784
  markets: yup6.array().of(
@@ -7090,6 +7117,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
7090
7117
  useAddUserInterestResource,
7091
7118
  useAddUserPresentResource,
7092
7119
  useAdminUpdateResourceType,
7120
+ useAdminUpdateTester,
7093
7121
  useCancelSubscription,
7094
7122
  useContactUs,
7095
7123
  useContactUsForm,