@timardex/cluemart-shared 1.2.93 → 1.2.95

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,106 @@ 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
+ consents {
2827
+ betaTestConsent
2828
+ privacyConsent
2829
+ }
2830
+ createdAt
2831
+ email
2832
+ firstName
2833
+ lastName
2834
+ mobilePhone
2835
+ osType
2836
+ region
2837
+ resourceType
2838
+ updatedAt
2839
+ vendor {
2840
+ ...TesterVendorFields
2841
+ }
2842
+ event {
2843
+ ...TesterEventFields
2844
+ }
2845
+ }
2846
+ ${TESTER_VENDOR_FIELDS_FRAGMENT}
2847
+ ${TESTER_EVENT_FIELDS_FRAGMENT}
2848
+ `;
2849
+ var GET_TESTERS = import_client4.gql`
2850
+ query getTesters {
2851
+ testers {
2852
+ ...TesterFields
2853
+ }
2854
+ }
2855
+ ${TESTER_FIELDS_FRAGMENT}
2856
+ `;
2857
+ var GET_TESTER = import_client4.gql`
2858
+ query getTester($_id: ID!) {
2859
+ tester(_id: $_id) {
2860
+ ...TesterFields
2861
+ }
2862
+ }
2863
+ ${TESTER_FIELDS_FRAGMENT}
2864
+ `;
2865
+
2866
+ // src/graphql/queries/vendor.ts
2867
+ var import_client5 = require("@apollo/client");
2868
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
2763
2869
  fragment VendorLocationFields on VendorLocationType {
2764
2870
  city
2765
2871
  coordinates
@@ -2771,7 +2877,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
2771
2877
  type
2772
2878
  }
2773
2879
  `;
2774
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2880
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2775
2881
  fragment VendorDateTimeFields on VendorDateTimeType {
2776
2882
  dateStatus
2777
2883
  endDate
@@ -2780,7 +2886,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2780
2886
  startTime
2781
2887
  }
2782
2888
  `;
2783
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2889
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
2784
2890
  fragment VendorMenuFields on VendorMenuType {
2785
2891
  description
2786
2892
  name
@@ -2788,7 +2894,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2788
2894
  productGroups
2789
2895
  }
2790
2896
  `;
2791
- var VENDOR = import_client4.gql`
2897
+ var VENDOR = import_client5.gql`
2792
2898
  fragment VendorFields on VendorType {
2793
2899
  _id
2794
2900
  active
@@ -2871,13 +2977,13 @@ var VENDOR = import_client4.gql`
2871
2977
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2872
2978
  ${RELATION_DATES_FRAGMENT}
2873
2979
  `;
2874
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2980
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
2875
2981
  fragment VendorAttributesFields on VendorAttributesType {
2876
2982
  details
2877
2983
  isRequired
2878
2984
  }
2879
2985
  `;
2880
- var VENDOR_INFO = import_client4.gql`
2986
+ var VENDOR_INFO = import_client5.gql`
2881
2987
  fragment VendorInfoFields on VendorInfoType {
2882
2988
  _id
2883
2989
  compliance {
@@ -2918,7 +3024,7 @@ var VENDOR_INFO = import_client4.gql`
2918
3024
  ${VENDOR_ATTRIBUTES_FRAGMENT}
2919
3025
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2920
3026
  `;
2921
- var GET_VENDORS = import_client4.gql`
3027
+ var GET_VENDORS = import_client5.gql`
2922
3028
  query getVendors {
2923
3029
  vendors {
2924
3030
  ...VendorFields
@@ -2926,7 +3032,7 @@ var GET_VENDORS = import_client4.gql`
2926
3032
  }
2927
3033
  ${VENDOR}
2928
3034
  `;
2929
- var GET_VENDOR = import_client4.gql`
3035
+ var GET_VENDOR = import_client5.gql`
2930
3036
  query getVendor($_id: ID!) {
2931
3037
  vendor(_id: $_id) {
2932
3038
  ...VendorFields
@@ -2934,7 +3040,7 @@ var GET_VENDOR = import_client4.gql`
2934
3040
  }
2935
3041
  ${VENDOR}
2936
3042
  `;
2937
- var GET_VENDORS_BY_REGION = import_client4.gql`
3043
+ var GET_VENDORS_BY_REGION = import_client5.gql`
2938
3044
  query getVendorsByRegion($region: String!) {
2939
3045
  vendorsByRegion(region: $region) {
2940
3046
  ...VendorFields
@@ -2942,7 +3048,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
2942
3048
  }
2943
3049
  ${VENDOR}
2944
3050
  `;
2945
- var SEARCH_VENDORS = import_client4.gql`
3051
+ var SEARCH_VENDORS = import_client5.gql`
2946
3052
  query searchVendors($search: String!, $region: String) {
2947
3053
  vendorSearch(search: $search, region: $region) {
2948
3054
  ...VendorFields
@@ -2950,7 +3056,7 @@ var SEARCH_VENDORS = import_client4.gql`
2950
3056
  }
2951
3057
  ${VENDOR}
2952
3058
  `;
2953
- var GET_VENDOR_INFO = import_client4.gql`
3059
+ var GET_VENDOR_INFO = import_client5.gql`
2954
3060
  query getVendorInfo($vendorId: ID!) {
2955
3061
  vendorInfo(vendorId: $vendorId) {
2956
3062
  ...VendorInfoFields
@@ -2961,7 +3067,7 @@ var GET_VENDOR_INFO = import_client4.gql`
2961
3067
 
2962
3068
  // src/graphql/hooks/admin/hooksMutation.ts
2963
3069
  var useAdminUpdateResourceType = () => {
2964
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
3070
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
2965
3071
  awaitRefetchQueries: true,
2966
3072
  refetchQueries: (mutationResult) => {
2967
3073
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -2983,13 +3089,33 @@ var useAdminUpdateResourceType = () => {
2983
3089
  loading
2984
3090
  };
2985
3091
  };
3092
+ var useAdminUpdateTester = () => {
3093
+ const [adminUpdateTester, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_TESTER_MUTATION, {
3094
+ awaitRefetchQueries: true,
3095
+ refetchQueries: (mutationResult) => {
3096
+ const adminUpdateTester2 = mutationResult?.data?.adminUpdateTester;
3097
+ const testerId = adminUpdateTester2?._id;
3098
+ return [
3099
+ {
3100
+ query: GET_TESTER,
3101
+ variables: { _id: testerId }
3102
+ }
3103
+ ];
3104
+ }
3105
+ });
3106
+ return {
3107
+ adminUpdateTester,
3108
+ error,
3109
+ loading
3110
+ };
3111
+ };
2986
3112
 
2987
3113
  // src/graphql/hooks/auth.ts
2988
- var import_client7 = require("@apollo/client");
3114
+ var import_client8 = require("@apollo/client");
2989
3115
 
2990
3116
  // src/graphql/mutations/auth.ts
2991
- var import_client6 = require("@apollo/client");
2992
- var REGISTER_MUTATION = import_client6.gql`
3117
+ var import_client7 = require("@apollo/client");
3118
+ var REGISTER_MUTATION = import_client7.gql`
2993
3119
  mutation register($input: RegisterInputType!) {
2994
3120
  register(input: $input) {
2995
3121
  message
@@ -3002,7 +3128,7 @@ var REGISTER_MUTATION = import_client6.gql`
3002
3128
  }
3003
3129
  ${USER_FIELDS_FRAGMENT}
3004
3130
  `;
3005
- var LOGIN_MUTATION = import_client6.gql`
3131
+ var LOGIN_MUTATION = import_client7.gql`
3006
3132
  mutation login($input: LoginInputType!) {
3007
3133
  login(input: $input) {
3008
3134
  message
@@ -3015,14 +3141,14 @@ var LOGIN_MUTATION = import_client6.gql`
3015
3141
  }
3016
3142
  ${USER_FIELDS_FRAGMENT}
3017
3143
  `;
3018
- var LOGOUT_MUTATION = import_client6.gql`
3144
+ var LOGOUT_MUTATION = import_client7.gql`
3019
3145
  mutation logout {
3020
3146
  logout {
3021
3147
  message
3022
3148
  }
3023
3149
  }
3024
3150
  `;
3025
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
3151
+ var REFRESH_TOKEN_MUTATION = import_client7.gql`
3026
3152
  mutation refreshToken($input: RefreshTokenInputType!) {
3027
3153
  refreshToken(input: $input) {
3028
3154
  refreshToken
@@ -3030,21 +3156,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
3030
3156
  }
3031
3157
  }
3032
3158
  `;
3033
- var RESET_PASSWORD_MUTATION = import_client6.gql`
3159
+ var RESET_PASSWORD_MUTATION = import_client7.gql`
3034
3160
  mutation resetPassword($input: ResetPasswordInputType!) {
3035
3161
  resetPassword(input: $input) {
3036
3162
  message
3037
3163
  }
3038
3164
  }
3039
3165
  `;
3040
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
3166
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
3041
3167
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3042
3168
  requestPasswordReset(input: $input) {
3043
3169
  message
3044
3170
  }
3045
3171
  }
3046
3172
  `;
3047
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3173
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
3048
3174
  mutation validateVerificationToken(
3049
3175
  $input: ValidateVerificationTokenInputType!
3050
3176
  ) {
@@ -3056,51 +3182,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3056
3182
 
3057
3183
  // src/graphql/hooks/auth.ts
3058
3184
  var useRegister = () => {
3059
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
3185
+ const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
3060
3186
  return { error, loading, register };
3061
3187
  };
3062
3188
  var useLogin = () => {
3063
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
3189
+ const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
3064
3190
  return { error, loading, login };
3065
3191
  };
3066
3192
  var useLogout = () => {
3067
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
3193
+ const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
3068
3194
  return { error, loading, logout };
3069
3195
  };
3070
3196
  var useRefreshToken = () => {
3071
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
3197
+ const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
3072
3198
  REFRESH_TOKEN_MUTATION
3073
3199
  );
3074
3200
  return { error, loading, refreshToken };
3075
3201
  };
3076
3202
  var useRequestPasswordReset = () => {
3077
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
3203
+ const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
3078
3204
  REQUEST_PASSWORD_RESET_MUTATION
3079
3205
  );
3080
3206
  return { error, loading, requestPasswordReset };
3081
3207
  };
3082
3208
  var useValidateVerificationToken = () => {
3083
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
3209
+ const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
3084
3210
  VALIDATE_VERIFICATION_TOKEN_MUTATION
3085
3211
  );
3086
3212
  return { error, loading, validateVerificationToken };
3087
3213
  };
3088
3214
  var useResetPassword = () => {
3089
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
3215
+ const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
3090
3216
  RESET_PASSWORD_MUTATION
3091
3217
  );
3092
3218
  return { error, loading, resetPassword };
3093
3219
  };
3094
3220
 
3095
3221
  // src/graphql/hooks/chat/hooksMutation.ts
3096
- var import_client10 = require("@apollo/client");
3222
+ var import_client11 = require("@apollo/client");
3097
3223
 
3098
3224
  // src/graphql/mutations/chat.ts
3099
- var import_client9 = require("@apollo/client");
3225
+ var import_client10 = require("@apollo/client");
3100
3226
 
3101
3227
  // src/graphql/queries/chat.ts
3102
- var import_client8 = require("@apollo/client");
3103
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3228
+ var import_client9 = require("@apollo/client");
3229
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
3104
3230
  fragment ChatMessageFields on ChatMessageType {
3105
3231
  _id
3106
3232
  content
@@ -3109,7 +3235,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3109
3235
  updatedAt
3110
3236
  }
3111
3237
  `;
3112
- var CHAT_PARTICIPANT = import_client8.gql`
3238
+ var CHAT_PARTICIPANT = import_client9.gql`
3113
3239
  fragment ChatParticipantFields on ChatParticipantType {
3114
3240
  active
3115
3241
  userAvatar
@@ -3118,7 +3244,7 @@ var CHAT_PARTICIPANT = import_client8.gql`
3118
3244
  userName
3119
3245
  }
3120
3246
  `;
3121
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
3247
+ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
3122
3248
  fragment ChatFields on ChatType {
3123
3249
  _id
3124
3250
  active
@@ -3137,7 +3263,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
3137
3263
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3138
3264
  ${CHAT_PARTICIPANT}
3139
3265
  `;
3140
- var CHAT = import_client8.gql`
3266
+ var CHAT = import_client9.gql`
3141
3267
  query chat($_id: ID!) {
3142
3268
  chat(_id: $_id) {
3143
3269
  ...ChatFields
@@ -3145,7 +3271,7 @@ var CHAT = import_client8.gql`
3145
3271
  }
3146
3272
  ${CHAT_FIELDS_FRAGMENT}
3147
3273
  `;
3148
- var USER_CHATS = import_client8.gql`
3274
+ var USER_CHATS = import_client9.gql`
3149
3275
  query userChats {
3150
3276
  userChats {
3151
3277
  ...ChatFields
@@ -3155,7 +3281,7 @@ var USER_CHATS = import_client8.gql`
3155
3281
  `;
3156
3282
 
3157
3283
  // src/graphql/mutations/chat.ts
3158
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
3284
+ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
3159
3285
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3160
3286
  sendChatMessage(_id: $_id, input: $input) {
3161
3287
  ...ChatFields
@@ -3163,12 +3289,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
3163
3289
  }
3164
3290
  ${CHAT_FIELDS_FRAGMENT}
3165
3291
  `;
3166
- var DELETE_CHAT_MUTATION = import_client9.gql`
3292
+ var DELETE_CHAT_MUTATION = import_client10.gql`
3167
3293
  mutation deleteChat($_id: ID!) {
3168
3294
  deleteChat(_id: $_id)
3169
3295
  }
3170
3296
  `;
3171
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
3297
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
3172
3298
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3173
3299
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3174
3300
  ...ChatFields
@@ -3176,7 +3302,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
3176
3302
  }
3177
3303
  ${CHAT_FIELDS_FRAGMENT}
3178
3304
  `;
3179
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
3305
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3180
3306
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3181
3307
  removeParticipantFromChat(chatId: $chatId, userId: $userId)
3182
3308
  }
@@ -3184,7 +3310,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
3184
3310
 
3185
3311
  // src/graphql/hooks/chat/hooksMutation.ts
3186
3312
  var useSendChatMessage = () => {
3187
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
3313
+ const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
3188
3314
  awaitRefetchQueries: true,
3189
3315
  refetchQueries: (mutationResult) => {
3190
3316
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -3199,14 +3325,14 @@ var useSendChatMessage = () => {
3199
3325
  return { error, loading, sendChatMessage };
3200
3326
  };
3201
3327
  var useDeleteChat = () => {
3202
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
3328
+ const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
3203
3329
  awaitRefetchQueries: true,
3204
3330
  refetchQueries: [{ query: USER_CHATS }]
3205
3331
  });
3206
3332
  return { deleteChat, error, loading };
3207
3333
  };
3208
3334
  var useAddParticipantToChat = () => {
3209
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
3335
+ const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
3210
3336
  awaitRefetchQueries: true,
3211
3337
  refetchQueries: (mutationResult) => {
3212
3338
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -3224,7 +3350,7 @@ var useAddParticipantToChat = () => {
3224
3350
  return { addParticipantToChat, error, loading };
3225
3351
  };
3226
3352
  var useRemoveParticipantFromChat = () => {
3227
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
3353
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
3228
3354
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
3229
3355
  {
3230
3356
  awaitRefetchQueries: true,
@@ -3235,11 +3361,11 @@ var useRemoveParticipantFromChat = () => {
3235
3361
  };
3236
3362
 
3237
3363
  // src/graphql/hooks/chat/hooksQuery.ts
3238
- var import_client12 = require("@apollo/client");
3364
+ var import_client13 = require("@apollo/client");
3239
3365
 
3240
3366
  // src/graphql/subscriptions/chat.ts
3241
- var import_client11 = require("@apollo/client");
3242
- var GET_CHAT_MESSAGE = import_client11.gql`
3367
+ var import_client12 = require("@apollo/client");
3368
+ var GET_CHAT_MESSAGE = import_client12.gql`
3243
3369
  subscription {
3244
3370
  getChatMessage {
3245
3371
  ...ChatFields
@@ -3250,7 +3376,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
3250
3376
 
3251
3377
  // src/graphql/hooks/chat/hooksQuery.ts
3252
3378
  var useGetChat = (_id) => {
3253
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
3379
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
3254
3380
  fetchPolicy: "network-only",
3255
3381
  skip: !_id,
3256
3382
  variables: { _id }
@@ -3259,7 +3385,7 @@ var useGetChat = (_id) => {
3259
3385
  return { chat, error, loading, refetch };
3260
3386
  };
3261
3387
  var useGetUserChats = () => {
3262
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(
3388
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(
3263
3389
  USER_CHATS,
3264
3390
  {
3265
3391
  fetchPolicy: "network-only"
@@ -3269,7 +3395,7 @@ var useGetUserChats = () => {
3269
3395
  return { error, loading, refetch, userChats };
3270
3396
  };
3271
3397
  var useGetChatSubscription = () => {
3272
- const { data, loading, error } = (0, import_client12.useSubscription)(
3398
+ const { data, loading, error } = (0, import_client13.useSubscription)(
3273
3399
  GET_CHAT_MESSAGE
3274
3400
  );
3275
3401
  const chat = data?.getChat;
@@ -3277,11 +3403,11 @@ var useGetChatSubscription = () => {
3277
3403
  };
3278
3404
 
3279
3405
  // src/graphql/hooks/contactUs.ts
3280
- var import_client14 = require("@apollo/client");
3406
+ var import_client15 = require("@apollo/client");
3281
3407
 
3282
3408
  // src/graphql/mutations/contactUs.ts
3283
- var import_client13 = require("@apollo/client");
3284
- var CONTACT_US_MUTATION = import_client13.gql`
3409
+ var import_client14 = require("@apollo/client");
3410
+ var CONTACT_US_MUTATION = import_client14.gql`
3285
3411
  mutation contactUs($input: ContactUsInputType!) {
3286
3412
  contactUs(input: $input) {
3287
3413
  message
@@ -3291,16 +3417,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
3291
3417
 
3292
3418
  // src/graphql/hooks/contactUs.ts
3293
3419
  var useContactUs = () => {
3294
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3420
+ const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
3295
3421
  return { contactUs, error, loading };
3296
3422
  };
3297
3423
 
3298
3424
  // src/graphql/hooks/event/hooksMutation.ts
3299
- var import_client18 = require("@apollo/client");
3425
+ var import_client19 = require("@apollo/client");
3300
3426
 
3301
3427
  // src/graphql/mutations/event.ts
3302
- var import_client15 = require("@apollo/client");
3303
- var CREATE_EVENT_MUTATION = import_client15.gql`
3428
+ var import_client16 = require("@apollo/client");
3429
+ var CREATE_EVENT_MUTATION = import_client16.gql`
3304
3430
  mutation createEvent($input: EventInputType!) {
3305
3431
  createEvent(input: $input) {
3306
3432
  ...EventFields
@@ -3308,7 +3434,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
3308
3434
  }
3309
3435
  ${EVENT}
3310
3436
  `;
3311
- var UPDATE_EVENT_MUTATION = import_client15.gql`
3437
+ var UPDATE_EVENT_MUTATION = import_client16.gql`
3312
3438
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3313
3439
  updateEvent(_id: $_id, input: $input) {
3314
3440
  ...EventFields
@@ -3316,12 +3442,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
3316
3442
  }
3317
3443
  ${EVENT}
3318
3444
  `;
3319
- var DELETE_EVENT_MUTATION = import_client15.gql`
3445
+ var DELETE_EVENT_MUTATION = import_client16.gql`
3320
3446
  mutation deleteEvent($_id: ID!) {
3321
3447
  deleteEvent(_id: $_id)
3322
3448
  }
3323
3449
  `;
3324
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3450
+ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3325
3451
  mutation createEventInfo($input: EventInfoInputType!) {
3326
3452
  createEventInfo(input: $input) {
3327
3453
  ...EventInfoFields
@@ -3329,7 +3455,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3329
3455
  }
3330
3456
  ${EVENT_INFO}
3331
3457
  `;
3332
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3458
+ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3333
3459
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3334
3460
  updateEventInfo(_id: $_id, input: $input) {
3335
3461
  ...EventInfoFields
@@ -3339,11 +3465,11 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3339
3465
  `;
3340
3466
 
3341
3467
  // src/graphql/queries/user.ts
3342
- var import_client17 = require("@apollo/client");
3468
+ var import_client18 = require("@apollo/client");
3343
3469
 
3344
3470
  // src/graphql/queries/partner.ts
3345
- var import_client16 = require("@apollo/client");
3346
- var PARTNER = import_client16.gql`
3471
+ var import_client17 = require("@apollo/client");
3472
+ var PARTNER = import_client17.gql`
3347
3473
  fragment PartnerFields on PartnerType {
3348
3474
  _id
3349
3475
  active
@@ -3396,7 +3522,7 @@ var PARTNER = import_client16.gql`
3396
3522
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3397
3523
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3398
3524
  `;
3399
- var GET_PARTNERS = import_client16.gql`
3525
+ var GET_PARTNERS = import_client17.gql`
3400
3526
  query getPartners {
3401
3527
  partners {
3402
3528
  ...PartnerFields
@@ -3404,7 +3530,7 @@ var GET_PARTNERS = import_client16.gql`
3404
3530
  }
3405
3531
  ${PARTNER}
3406
3532
  `;
3407
- var GET_PARTNER = import_client16.gql`
3533
+ var GET_PARTNER = import_client17.gql`
3408
3534
  query getPartner($_id: ID!) {
3409
3535
  partner(_id: $_id) {
3410
3536
  ...PartnerFields
@@ -3412,7 +3538,7 @@ var GET_PARTNER = import_client16.gql`
3412
3538
  }
3413
3539
  ${PARTNER}
3414
3540
  `;
3415
- var GET_PARTNERS_BY_REGION = import_client16.gql`
3541
+ var GET_PARTNERS_BY_REGION = import_client17.gql`
3416
3542
  query getPartnersByRegion($region: String!) {
3417
3543
  partnersByRegion(region: $region) {
3418
3544
  ...PartnerFields
@@ -3420,7 +3546,7 @@ var GET_PARTNERS_BY_REGION = import_client16.gql`
3420
3546
  }
3421
3547
  ${PARTNER}
3422
3548
  `;
3423
- var SEARCH_PARTNERS = import_client16.gql`
3549
+ var SEARCH_PARTNERS = import_client17.gql`
3424
3550
  query searchPartners($search: String!, $region: String) {
3425
3551
  partnersSearch(search: $search, region: $region) {
3426
3552
  ...PartnerFields
@@ -3430,7 +3556,7 @@ var SEARCH_PARTNERS = import_client16.gql`
3430
3556
  `;
3431
3557
 
3432
3558
  // src/graphql/queries/user.ts
3433
- var GET_USERS = import_client17.gql`
3559
+ var GET_USERS = import_client18.gql`
3434
3560
  query getUsers {
3435
3561
  users {
3436
3562
  ...UserFields
@@ -3438,7 +3564,7 @@ var GET_USERS = import_client17.gql`
3438
3564
  }
3439
3565
  ${USER_FIELDS_FRAGMENT}
3440
3566
  `;
3441
- var GET_USER = import_client17.gql`
3567
+ var GET_USER = import_client18.gql`
3442
3568
  query getUser($_id: ID!) {
3443
3569
  user(_id: $_id) {
3444
3570
  ...UserFields
@@ -3446,7 +3572,7 @@ var GET_USER = import_client17.gql`
3446
3572
  }
3447
3573
  ${USER_FIELDS_FRAGMENT}
3448
3574
  `;
3449
- var GET_USER_EVENTS = import_client17.gql`
3575
+ var GET_USER_EVENTS = import_client18.gql`
3450
3576
  query getUserEvents {
3451
3577
  userEvents {
3452
3578
  ...EventFields
@@ -3454,7 +3580,7 @@ var GET_USER_EVENTS = import_client17.gql`
3454
3580
  }
3455
3581
  ${EVENT}
3456
3582
  `;
3457
- var GET_USER_VENDORS = import_client17.gql`
3583
+ var GET_USER_VENDORS = import_client18.gql`
3458
3584
  query getUserVendors {
3459
3585
  userVendors {
3460
3586
  ...VendorFields
@@ -3462,7 +3588,7 @@ var GET_USER_VENDORS = import_client17.gql`
3462
3588
  }
3463
3589
  ${VENDOR}
3464
3590
  `;
3465
- var GET_USER_PARTNERS = import_client17.gql`
3591
+ var GET_USER_PARTNERS = import_client18.gql`
3466
3592
  query getUserPartners {
3467
3593
  userPartners {
3468
3594
  ...PartnerFields
@@ -3470,7 +3596,7 @@ var GET_USER_PARTNERS = import_client17.gql`
3470
3596
  }
3471
3597
  ${PARTNER}
3472
3598
  `;
3473
- var GET_USER_ACTIVITIES = import_client17.gql`
3599
+ var GET_USER_ACTIVITIES = import_client18.gql`
3474
3600
  query getUserActivities {
3475
3601
  userActivities {
3476
3602
  favourites {
@@ -3504,28 +3630,28 @@ var GET_USER_ACTIVITIES = import_client17.gql`
3504
3630
 
3505
3631
  // src/graphql/hooks/event/hooksMutation.ts
3506
3632
  var useCreateEvent = () => {
3507
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
3633
+ const [createEvent, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_MUTATION, {
3508
3634
  awaitRefetchQueries: true,
3509
3635
  refetchQueries: [{ query: GET_USER_EVENTS }]
3510
3636
  });
3511
3637
  return { createEvent, error, loading };
3512
3638
  };
3513
3639
  var useUpdateEvent = () => {
3514
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
3640
+ const [updateEvent, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_MUTATION, {
3515
3641
  awaitRefetchQueries: true,
3516
3642
  refetchQueries: [{ query: GET_USER_EVENTS }]
3517
3643
  });
3518
3644
  return { error, loading, updateEvent };
3519
3645
  };
3520
3646
  var useDeleteEvent = () => {
3521
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
3647
+ const [deleteEvent, { loading, error }] = (0, import_client19.useMutation)(DELETE_EVENT_MUTATION, {
3522
3648
  awaitRefetchQueries: true,
3523
3649
  refetchQueries: [{ query: GET_USER_EVENTS }]
3524
3650
  });
3525
3651
  return { deleteEvent, error, loading };
3526
3652
  };
3527
3653
  var useCreateEventInfo = () => {
3528
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
3654
+ const [createEventInfo, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_INFO_MUTATION, {
3529
3655
  awaitRefetchQueries: true,
3530
3656
  refetchQueries: (mutationResult) => {
3531
3657
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -3549,7 +3675,7 @@ var useCreateEventInfo = () => {
3549
3675
  return { createEventInfo, error, loading };
3550
3676
  };
3551
3677
  var useUpdateEventInfo = () => {
3552
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
3678
+ const [updateEventInfo, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
3553
3679
  awaitRefetchQueries: true,
3554
3680
  refetchQueries: (mutationResult) => {
3555
3681
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -3572,9 +3698,9 @@ var useUpdateEventInfo = () => {
3572
3698
  };
3573
3699
 
3574
3700
  // src/graphql/hooks/event/hooksQuery.ts
3575
- var import_client19 = require("@apollo/client");
3701
+ var import_client20 = require("@apollo/client");
3576
3702
  var useGetEvents = () => {
3577
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(
3703
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(
3578
3704
  GET_EVENTS,
3579
3705
  {
3580
3706
  fetchPolicy: "network-only"
@@ -3584,7 +3710,7 @@ var useGetEvents = () => {
3584
3710
  return { error, events, loading, refetch };
3585
3711
  };
3586
3712
  var useGetEvent = (_id) => {
3587
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(
3713
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(
3588
3714
  GET_EVENT,
3589
3715
  {
3590
3716
  fetchPolicy: "network-only",
@@ -3596,7 +3722,7 @@ var useGetEvent = (_id) => {
3596
3722
  return { error, event, loading, refetch };
3597
3723
  };
3598
3724
  var useGetEventsByRegion = (region) => {
3599
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
3725
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_BY_REGION, {
3600
3726
  fetchPolicy: "no-cache",
3601
3727
  skip: !region,
3602
3728
  variables: { region }
@@ -3605,7 +3731,7 @@ var useGetEventsByRegion = (region) => {
3605
3731
  return { error, eventsByRegion, loading, refetch };
3606
3732
  };
3607
3733
  var useSearchEvents = (search, region) => {
3608
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
3734
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(SEARCH_EVENTS, {
3609
3735
  fetchPolicy: "network-only",
3610
3736
  skip: search.length < 3,
3611
3737
  variables: { region, search }
@@ -3614,7 +3740,7 @@ var useSearchEvents = (search, region) => {
3614
3740
  return { error, eventsSearch, loading, refetch };
3615
3741
  };
3616
3742
  var useGetEventsNearMe = (location) => {
3617
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
3743
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_NEAR_ME, {
3618
3744
  fetchPolicy: "network-only",
3619
3745
  skip: !location.latitude || !location.longitude,
3620
3746
  variables: {
@@ -3628,7 +3754,7 @@ var useGetEventsNearMe = (location) => {
3628
3754
  return { error, eventsNearMe, loading, refetch };
3629
3755
  };
3630
3756
  var useGetEventInfo = (eventId) => {
3631
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
3757
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_INFO, {
3632
3758
  fetchPolicy: "network-only",
3633
3759
  skip: !eventId,
3634
3760
  variables: { eventId }
@@ -3638,14 +3764,14 @@ var useGetEventInfo = (eventId) => {
3638
3764
  };
3639
3765
 
3640
3766
  // src/graphql/hooks/notifications/hooksMutation.ts
3641
- var import_client22 = require("@apollo/client");
3767
+ var import_client23 = require("@apollo/client");
3642
3768
 
3643
3769
  // src/graphql/mutations/notification.ts
3644
- var import_client21 = require("@apollo/client");
3770
+ var import_client22 = require("@apollo/client");
3645
3771
 
3646
3772
  // src/graphql/queries/notification.ts
3647
- var import_client20 = require("@apollo/client");
3648
- var NOTIFICATION_FRAGMENT = import_client20.gql`
3773
+ var import_client21 = require("@apollo/client");
3774
+ var NOTIFICATION_FRAGMENT = import_client21.gql`
3649
3775
  fragment NotificationFields on Notification {
3650
3776
  _id
3651
3777
  userId
@@ -3662,7 +3788,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
3662
3788
  updatedAt
3663
3789
  }
3664
3790
  `;
3665
- var GET_USER_NOTIFICATIONS = import_client20.gql`
3791
+ var GET_USER_NOTIFICATIONS = import_client21.gql`
3666
3792
  query getUserNotifications($limit: Int, $offset: Int) {
3667
3793
  userNotifications(limit: $limit, offset: $offset) {
3668
3794
  ...NotificationFields
@@ -3670,7 +3796,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
3670
3796
  }
3671
3797
  ${NOTIFICATION_FRAGMENT}
3672
3798
  `;
3673
- var GET_NOTIFICATION_COUNT = import_client20.gql`
3799
+ var GET_NOTIFICATION_COUNT = import_client21.gql`
3674
3800
  query getNotificationCount {
3675
3801
  notificationCount {
3676
3802
  total
@@ -3680,7 +3806,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
3680
3806
  `;
3681
3807
 
3682
3808
  // src/graphql/mutations/notification.ts
3683
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3809
+ var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
3684
3810
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3685
3811
  createBulkNotifications(input: $input) {
3686
3812
  ...NotificationFields
@@ -3688,7 +3814,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3688
3814
  }
3689
3815
  ${NOTIFICATION_FRAGMENT}
3690
3816
  `;
3691
- var MARK_NOTIFICATION_READ = import_client21.gql`
3817
+ var MARK_NOTIFICATION_READ = import_client22.gql`
3692
3818
  mutation markNotificationRead($_id: ID!) {
3693
3819
  markNotificationRead(_id: $_id) {
3694
3820
  ...NotificationFields
@@ -3696,17 +3822,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
3696
3822
  }
3697
3823
  ${NOTIFICATION_FRAGMENT}
3698
3824
  `;
3699
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3825
+ var MARK_ALL_NOTIFICATIONS_READ = import_client22.gql`
3700
3826
  mutation markAllNotificationsRead {
3701
3827
  markAllNotificationsRead
3702
3828
  }
3703
3829
  `;
3704
- var DELETE_NOTIFICATION = import_client21.gql`
3830
+ var DELETE_NOTIFICATION = import_client22.gql`
3705
3831
  mutation deleteNotification($_id: ID!) {
3706
3832
  deleteNotification(_id: $_id)
3707
3833
  }
3708
3834
  `;
3709
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3835
+ var DELETE_ALL_NOTIFICATIONS = import_client22.gql`
3710
3836
  mutation deleteAllNotifications {
3711
3837
  deleteAllNotifications
3712
3838
  }
@@ -3714,13 +3840,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3714
3840
 
3715
3841
  // src/graphql/hooks/notifications/hooksMutation.ts
3716
3842
  var useCreateBulkNotifications = () => {
3717
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
3843
+ const [createBulkNotifications, { loading, error }] = (0, import_client23.useMutation)(
3718
3844
  CREATE_BULK_NOTIFICATIONS
3719
3845
  );
3720
3846
  return { createBulkNotifications, error, loading };
3721
3847
  };
3722
3848
  var useMarkNotificationRead = () => {
3723
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
3849
+ const [markNotificationRead, { loading, error }] = (0, import_client23.useMutation)(
3724
3850
  MARK_NOTIFICATION_READ,
3725
3851
  {
3726
3852
  refetchQueries: [
@@ -3736,7 +3862,7 @@ var useMarkNotificationRead = () => {
3736
3862
  return { error, loading, markNotificationRead };
3737
3863
  };
3738
3864
  var useMarkAllNotificationsRead = () => {
3739
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
3865
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client23.useMutation)(
3740
3866
  MARK_ALL_NOTIFICATIONS_READ,
3741
3867
  {
3742
3868
  refetchQueries: [
@@ -3752,7 +3878,7 @@ var useMarkAllNotificationsRead = () => {
3752
3878
  return { error, loading, markAllNotificationsRead };
3753
3879
  };
3754
3880
  var useDeleteNotification = () => {
3755
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3881
+ const [deleteNotification, { loading, error }] = (0, import_client23.useMutation)(
3756
3882
  DELETE_NOTIFICATION,
3757
3883
  {
3758
3884
  refetchQueries: [
@@ -3768,7 +3894,7 @@ var useDeleteNotification = () => {
3768
3894
  return { deleteNotification, error, loading };
3769
3895
  };
3770
3896
  var useDeleteAllNotifications = () => {
3771
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3897
+ const [deleteAllNotifications, { loading, error }] = (0, import_client23.useMutation)(
3772
3898
  DELETE_ALL_NOTIFICATIONS,
3773
3899
  {
3774
3900
  refetchQueries: [
@@ -3785,9 +3911,9 @@ var useDeleteAllNotifications = () => {
3785
3911
  };
3786
3912
 
3787
3913
  // src/graphql/hooks/notifications/hooksQuery.ts
3788
- var import_client23 = require("@apollo/client");
3914
+ var import_client24 = require("@apollo/client");
3789
3915
  var useGetUserNotifications = (limit, offset) => {
3790
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
3916
+ const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_USER_NOTIFICATIONS, {
3791
3917
  fetchPolicy: "no-cache",
3792
3918
  variables: { limit, offset }
3793
3919
  });
@@ -3799,7 +3925,7 @@ var useGetUserNotifications = (limit, offset) => {
3799
3925
  };
3800
3926
  };
3801
3927
  var useGetNotificationCount = () => {
3802
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
3928
+ const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_NOTIFICATION_COUNT, {
3803
3929
  fetchPolicy: "no-cache"
3804
3930
  });
3805
3931
  return {
@@ -3811,11 +3937,11 @@ var useGetNotificationCount = () => {
3811
3937
  };
3812
3938
 
3813
3939
  // src/graphql/hooks/notifications/hooksSubscription.ts
3814
- var import_client25 = require("@apollo/client");
3940
+ var import_client26 = require("@apollo/client");
3815
3941
 
3816
3942
  // src/graphql/subscriptions/notification.ts
3817
- var import_client24 = require("@apollo/client");
3818
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3943
+ var import_client25 = require("@apollo/client");
3944
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
3819
3945
  subscription {
3820
3946
  getUserNotifications {
3821
3947
  ...NotificationFields
@@ -3823,7 +3949,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3823
3949
  }
3824
3950
  ${NOTIFICATION_FRAGMENT}
3825
3951
  `;
3826
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3952
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
3827
3953
  subscription {
3828
3954
  getNotificationCount {
3829
3955
  total
@@ -3834,7 +3960,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3834
3960
 
3835
3961
  // src/graphql/hooks/notifications/hooksSubscription.ts
3836
3962
  var useGetUserNotificationsSubscription = () => {
3837
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3963
+ const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3838
3964
  fetchPolicy: "no-cache",
3839
3965
  shouldResubscribe: true
3840
3966
  });
@@ -3845,7 +3971,7 @@ var useGetUserNotificationsSubscription = () => {
3845
3971
  };
3846
3972
  };
3847
3973
  var useGetNotificationCountSubscription = () => {
3848
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3974
+ const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3849
3975
  fetchPolicy: "no-cache",
3850
3976
  shouldResubscribe: true
3851
3977
  });
@@ -3857,11 +3983,11 @@ var useGetNotificationCountSubscription = () => {
3857
3983
  };
3858
3984
 
3859
3985
  // src/graphql/hooks/poster.ts
3860
- var import_client27 = require("@apollo/client");
3986
+ var import_client28 = require("@apollo/client");
3861
3987
 
3862
3988
  // src/graphql/mutations/poster.ts
3863
- var import_client26 = require("@apollo/client");
3864
- var CREATE_POSTER_MUTATION = import_client26.gql`
3989
+ var import_client27 = require("@apollo/client");
3990
+ var CREATE_POSTER_MUTATION = import_client27.gql`
3865
3991
  mutation createPoster($input: PosterInputType!) {
3866
3992
  createPoster(input: $input) {
3867
3993
  message
@@ -3875,7 +4001,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
3875
4001
 
3876
4002
  // src/graphql/hooks/poster.ts
3877
4003
  var useCreatePoster = () => {
3878
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
4004
+ const [createPoster, { loading, error }] = (0, import_client28.useMutation)(
3879
4005
  CREATE_POSTER_MUTATION,
3880
4006
  {
3881
4007
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -3885,11 +4011,11 @@ var useCreatePoster = () => {
3885
4011
  };
3886
4012
 
3887
4013
  // src/graphql/hooks/pushToken.ts
3888
- var import_client29 = require("@apollo/client");
4014
+ var import_client30 = require("@apollo/client");
3889
4015
 
3890
4016
  // src/graphql/mutations/pushToken.ts
3891
- var import_client28 = require("@apollo/client");
3892
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
4017
+ var import_client29 = require("@apollo/client");
4018
+ var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
3893
4019
  mutation createPushToken($input: PushTokenInput!) {
3894
4020
  createPushToken(input: $input) {
3895
4021
  success
@@ -3899,21 +4025,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3899
4025
 
3900
4026
  // src/graphql/hooks/pushToken.ts
3901
4027
  var useCreatePushToken = () => {
3902
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
4028
+ const [createPushToken, { loading, error }] = (0, import_client30.useMutation)(
3903
4029
  CREATE_PUSH_TOKEN_MUTATION
3904
4030
  );
3905
4031
  return { createPushToken, error, loading };
3906
4032
  };
3907
4033
 
3908
4034
  // src/graphql/hooks/relation/hooksMutation.ts
3909
- var import_client32 = require("@apollo/client");
4035
+ var import_client33 = require("@apollo/client");
3910
4036
 
3911
4037
  // src/graphql/mutations/relation.ts
3912
- var import_client31 = require("@apollo/client");
4038
+ var import_client32 = require("@apollo/client");
3913
4039
 
3914
4040
  // src/graphql/queries/relation.ts
3915
- var import_client30 = require("@apollo/client");
3916
- var RELATION_FIELDS_FRAGMENT = import_client30.gql`
4041
+ var import_client31 = require("@apollo/client");
4042
+ var RELATION_FIELDS_FRAGMENT = import_client31.gql`
3917
4043
  fragment RelationFields on RelationType {
3918
4044
  _id
3919
4045
  active
@@ -3931,7 +4057,7 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
3931
4057
  }
3932
4058
  ${RELATION_DATES_FRAGMENT}
3933
4059
  `;
3934
- var GET_RELATION = import_client30.gql`
4060
+ var GET_RELATION = import_client31.gql`
3935
4061
  query getRelation($_id: ID!) {
3936
4062
  relation(_id: $_id) {
3937
4063
  ...RelationFields
@@ -3939,7 +4065,7 @@ var GET_RELATION = import_client30.gql`
3939
4065
  }
3940
4066
  ${RELATION_FIELDS_FRAGMENT}
3941
4067
  `;
3942
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
4068
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
3943
4069
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3944
4070
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3945
4071
  ...RelationFields
@@ -3947,7 +4073,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
3947
4073
  }
3948
4074
  ${RELATION_FIELDS_FRAGMENT}
3949
4075
  `;
3950
- var GET_EVENT_RELATIONS = import_client30.gql`
4076
+ var GET_EVENT_RELATIONS = import_client31.gql`
3951
4077
  query getEventRelations($eventId: ID!) {
3952
4078
  eventRelations(eventId: $eventId) {
3953
4079
  ...RelationFields
@@ -3955,7 +4081,7 @@ var GET_EVENT_RELATIONS = import_client30.gql`
3955
4081
  }
3956
4082
  ${RELATION_FIELDS_FRAGMENT}
3957
4083
  `;
3958
- var GET_VENDOR_RELATIONS = import_client30.gql`
4084
+ var GET_VENDOR_RELATIONS = import_client31.gql`
3959
4085
  query getVendorRelations($vendorId: ID!) {
3960
4086
  vendorRelations(vendorId: $vendorId) {
3961
4087
  ...RelationFields
@@ -3963,7 +4089,7 @@ var GET_VENDOR_RELATIONS = import_client30.gql`
3963
4089
  }
3964
4090
  ${RELATION_FIELDS_FRAGMENT}
3965
4091
  `;
3966
- var GET_RESOURCE_CONNECTIONS = import_client30.gql`
4092
+ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
3967
4093
  query getResourceConnections(
3968
4094
  $resourceId: ID!
3969
4095
  $resourceType: ResourceTypeEnum!
@@ -3982,7 +4108,7 @@ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
3982
4108
  `;
3983
4109
 
3984
4110
  // src/graphql/mutations/relation.ts
3985
- var CREATE_RELATION_MUTATION = import_client31.gql`
4111
+ var CREATE_RELATION_MUTATION = import_client32.gql`
3986
4112
  mutation createRelation($input: RelationInputType!) {
3987
4113
  createRelation(input: $input) {
3988
4114
  ...RelationFields
@@ -3990,7 +4116,7 @@ var CREATE_RELATION_MUTATION = import_client31.gql`
3990
4116
  }
3991
4117
  ${RELATION_FIELDS_FRAGMENT}
3992
4118
  `;
3993
- var UPDATE_RELATION_MUTATION = import_client31.gql`
4119
+ var UPDATE_RELATION_MUTATION = import_client32.gql`
3994
4120
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
3995
4121
  updateRelation(_id: $_id, input: $input) {
3996
4122
  ...RelationFields
@@ -3998,7 +4124,7 @@ var UPDATE_RELATION_MUTATION = import_client31.gql`
3998
4124
  }
3999
4125
  ${RELATION_FIELDS_FRAGMENT}
4000
4126
  `;
4001
- var DELETE_RELATION_MUTATION = import_client31.gql`
4127
+ var DELETE_RELATION_MUTATION = import_client32.gql`
4002
4128
  mutation deleteRelation($_id: ID!) {
4003
4129
  deleteRelation(_id: $_id) {
4004
4130
  ...RelationFields
@@ -4009,7 +4135,7 @@ var DELETE_RELATION_MUTATION = import_client31.gql`
4009
4135
 
4010
4136
  // src/graphql/hooks/relation/hooksMutation.ts
4011
4137
  var useCreateRelation = () => {
4012
- const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
4138
+ const [createRelation, { loading, error }] = (0, import_client33.useMutation)(CREATE_RELATION_MUTATION, {
4013
4139
  awaitRefetchQueries: true,
4014
4140
  refetchQueries: (mutationResult) => {
4015
4141
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -4055,7 +4181,7 @@ var useCreateRelation = () => {
4055
4181
  return { createRelation, error, loading };
4056
4182
  };
4057
4183
  var useUpdateRelation = () => {
4058
- const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
4184
+ const [updateRelation, { loading, error }] = (0, import_client33.useMutation)(UPDATE_RELATION_MUTATION, {
4059
4185
  awaitRefetchQueries: true,
4060
4186
  refetchQueries: (mutationResult) => {
4061
4187
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -4098,7 +4224,7 @@ var useUpdateRelation = () => {
4098
4224
  return { error, loading, updateRelation };
4099
4225
  };
4100
4226
  var useDeleteRelation = () => {
4101
- const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
4227
+ const [deleteRelation, { loading, error }] = (0, import_client33.useMutation)(DELETE_RELATION_MUTATION, {
4102
4228
  awaitRefetchQueries: true,
4103
4229
  refetchQueries: (mutationResult) => {
4104
4230
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -4137,9 +4263,9 @@ var useDeleteRelation = () => {
4137
4263
  };
4138
4264
 
4139
4265
  // src/graphql/hooks/relation/hooksQuery.ts
4140
- var import_client33 = require("@apollo/client");
4266
+ var import_client34 = require("@apollo/client");
4141
4267
  var useGetRelation = (_id) => {
4142
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
4268
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION, {
4143
4269
  fetchPolicy: "network-only",
4144
4270
  skip: !_id,
4145
4271
  variables: { _id }
@@ -4148,7 +4274,7 @@ var useGetRelation = (_id) => {
4148
4274
  return { error, loading, refetch, relation };
4149
4275
  };
4150
4276
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
4151
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
4277
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
4152
4278
  fetchPolicy: "network-only",
4153
4279
  skip: !eventId || !vendorId,
4154
4280
  variables: { eventId, vendorId }
@@ -4157,7 +4283,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
4157
4283
  return { error, loading, refetch, relationByEventAndVendor };
4158
4284
  };
4159
4285
  var useGetEventRelations = (eventId) => {
4160
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
4286
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_EVENT_RELATIONS, {
4161
4287
  fetchPolicy: "network-only",
4162
4288
  skip: !eventId,
4163
4289
  variables: { eventId }
@@ -4166,7 +4292,7 @@ var useGetEventRelations = (eventId) => {
4166
4292
  return { error, eventRelations, loading, refetch };
4167
4293
  };
4168
4294
  var useGetVendorRelations = (vendorId) => {
4169
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
4295
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_VENDOR_RELATIONS, {
4170
4296
  fetchPolicy: "network-only",
4171
4297
  skip: !vendorId,
4172
4298
  variables: { vendorId }
@@ -4175,7 +4301,7 @@ var useGetVendorRelations = (vendorId) => {
4175
4301
  return { error, loading, refetch, vendorRelations };
4176
4302
  };
4177
4303
  var useGetResourceConnections = (resourceId, resourceType) => {
4178
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
4304
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RESOURCE_CONNECTIONS, {
4179
4305
  fetchPolicy: "network-only",
4180
4306
  variables: { resourceId, resourceType }
4181
4307
  });
@@ -4184,11 +4310,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
4184
4310
  };
4185
4311
 
4186
4312
  // src/graphql/hooks/vendor/hooksMutation.ts
4187
- var import_client35 = require("@apollo/client");
4313
+ var import_client36 = require("@apollo/client");
4188
4314
 
4189
4315
  // src/graphql/mutations/vendor.ts
4190
- var import_client34 = require("@apollo/client");
4191
- var CREATE_VENDOR_MUTATION = import_client34.gql`
4316
+ var import_client35 = require("@apollo/client");
4317
+ var CREATE_VENDOR_MUTATION = import_client35.gql`
4192
4318
  mutation createVendor($input: VendorInputType!) {
4193
4319
  createVendor(input: $input) {
4194
4320
  ...VendorFields
@@ -4196,7 +4322,7 @@ var CREATE_VENDOR_MUTATION = import_client34.gql`
4196
4322
  }
4197
4323
  ${VENDOR}
4198
4324
  `;
4199
- var UPDATE_VENDOR_MUTATION = import_client34.gql`
4325
+ var UPDATE_VENDOR_MUTATION = import_client35.gql`
4200
4326
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
4201
4327
  updateVendor(_id: $_id, input: $input) {
4202
4328
  ...VendorFields
@@ -4204,12 +4330,12 @@ var UPDATE_VENDOR_MUTATION = import_client34.gql`
4204
4330
  }
4205
4331
  ${VENDOR}
4206
4332
  `;
4207
- var DELETE_VENDOR_MUTATION = import_client34.gql`
4333
+ var DELETE_VENDOR_MUTATION = import_client35.gql`
4208
4334
  mutation deleteVendor($_id: ID!) {
4209
4335
  deleteVendor(_id: $_id)
4210
4336
  }
4211
4337
  `;
4212
- var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
4338
+ var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
4213
4339
  mutation createVendorInfo($input: VendorInfoInputType!) {
4214
4340
  createVendorInfo(input: $input) {
4215
4341
  ...VendorInfoFields
@@ -4217,7 +4343,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
4217
4343
  }
4218
4344
  ${VENDOR_INFO}
4219
4345
  `;
4220
- var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
4346
+ var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
4221
4347
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
4222
4348
  updateVendorInfo(_id: $_id, input: $input) {
4223
4349
  ...VendorInfoFields
@@ -4228,7 +4354,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
4228
4354
 
4229
4355
  // src/graphql/hooks/vendor/hooksMutation.ts
4230
4356
  var useCreateVendor = () => {
4231
- const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
4357
+ const [createVendor, { loading, error }] = (0, import_client36.useMutation)(
4232
4358
  CREATE_VENDOR_MUTATION,
4233
4359
  {
4234
4360
  awaitRefetchQueries: true,
@@ -4238,7 +4364,7 @@ var useCreateVendor = () => {
4238
4364
  return { createVendor, error, loading };
4239
4365
  };
4240
4366
  var useUpdateVendor = () => {
4241
- const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
4367
+ const [updateVendor, { loading, error }] = (0, import_client36.useMutation)(
4242
4368
  UPDATE_VENDOR_MUTATION,
4243
4369
  {
4244
4370
  awaitRefetchQueries: true,
@@ -4248,7 +4374,7 @@ var useUpdateVendor = () => {
4248
4374
  return { error, loading, updateVendor };
4249
4375
  };
4250
4376
  var useDeleteVendor = () => {
4251
- const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
4377
+ const [deleteVendor, { loading, error }] = (0, import_client36.useMutation)(
4252
4378
  DELETE_VENDOR_MUTATION,
4253
4379
  {
4254
4380
  awaitRefetchQueries: true,
@@ -4258,7 +4384,7 @@ var useDeleteVendor = () => {
4258
4384
  return { deleteVendor, error, loading };
4259
4385
  };
4260
4386
  var useCreateVendorInfo = () => {
4261
- const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
4387
+ const [createVendorInfo, { loading, error }] = (0, import_client36.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
4262
4388
  awaitRefetchQueries: true,
4263
4389
  refetchQueries: (mutationResult) => {
4264
4390
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -4282,7 +4408,7 @@ var useCreateVendorInfo = () => {
4282
4408
  return { createVendorInfo, error, loading };
4283
4409
  };
4284
4410
  var useUpdateVendorInfo = () => {
4285
- const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
4411
+ const [updateVendorInfo, { loading, error }] = (0, import_client36.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
4286
4412
  awaitRefetchQueries: true,
4287
4413
  refetchQueries: (mutationResult) => {
4288
4414
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -4300,9 +4426,9 @@ var useUpdateVendorInfo = () => {
4300
4426
  };
4301
4427
 
4302
4428
  // src/graphql/hooks/vendor/hooksQuery.ts
4303
- var import_client36 = require("@apollo/client");
4429
+ var import_client37 = require("@apollo/client");
4304
4430
  var useGetVendors = () => {
4305
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
4431
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(
4306
4432
  GET_VENDORS,
4307
4433
  {
4308
4434
  fetchPolicy: "network-only"
@@ -4317,7 +4443,7 @@ var useGetVendors = () => {
4317
4443
  };
4318
4444
  };
4319
4445
  var useGetVendor = (_id) => {
4320
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
4446
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(
4321
4447
  GET_VENDOR,
4322
4448
  {
4323
4449
  fetchPolicy: "network-only",
@@ -4329,7 +4455,7 @@ var useGetVendor = (_id) => {
4329
4455
  return { error, loading, refetch, vendor };
4330
4456
  };
4331
4457
  var useGetVendorsByRegion = (region) => {
4332
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
4458
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDORS_BY_REGION, {
4333
4459
  fetchPolicy: "no-cache",
4334
4460
  skip: !region,
4335
4461
  variables: { region }
@@ -4338,7 +4464,7 @@ var useGetVendorsByRegion = (region) => {
4338
4464
  return { error, loading, refetch, vendorsByRegion };
4339
4465
  };
4340
4466
  var useSearchVendors = (search, region) => {
4341
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
4467
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(SEARCH_VENDORS, {
4342
4468
  fetchPolicy: "network-only",
4343
4469
  skip: search.length < 3,
4344
4470
  variables: { region, search }
@@ -4347,7 +4473,7 @@ var useSearchVendors = (search, region) => {
4347
4473
  return { error, loading, refetch, vendorSearch };
4348
4474
  };
4349
4475
  var useGetVendorInfo = (vendorId) => {
4350
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
4476
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDOR_INFO, {
4351
4477
  fetchPolicy: "network-only",
4352
4478
  skip: !vendorId,
4353
4479
  variables: { vendorId }
@@ -4366,102 +4492,6 @@ var import_client39 = require("@apollo/client");
4366
4492
 
4367
4493
  // src/graphql/mutations/tester.ts
4368
4494
  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
4495
  var CREATE_TESTER_MUTATION = import_client38.gql`
4466
4496
  mutation createTester($input: TesterInputType!) {
4467
4497
  createTester(input: $input) {
@@ -5751,7 +5781,7 @@ var testerVendorSchema = yup6.object().shape({
5751
5781
  Object.values(VendorSellingFrequency),
5752
5782
  "Please select a valid selling frequency"
5753
5783
  ).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"))
5784
+ 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
5785
  });
5756
5786
  var testerEventSchema = yup6.object().shape({
5757
5787
  markets: yup6.array().of(
@@ -5783,6 +5813,10 @@ var testerEventSchema = yup6.object().shape({
5783
5813
  });
5784
5814
  var testerSchema = yup6.object().shape({
5785
5815
  businessName: yup6.string().required("Business name is required"),
5816
+ consents: yup6.object().shape({
5817
+ betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
5818
+ privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
5819
+ }),
5786
5820
  email: emailRequiredSchema,
5787
5821
  event: yup6.object().when("resourceType", {
5788
5822
  is: (resourceType) => resourceType === "event" /* EVENT */,
@@ -5798,7 +5832,6 @@ var testerSchema = yup6.object().shape({
5798
5832
  // skip empty values
5799
5833
  ),
5800
5834
  osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
5801
- privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
5802
5835
  region: yup6.string().required("Region is required"),
5803
5836
  resourceType: yup6.mixed().oneOf(
5804
5837
  Object.values(EnumResourceType),
@@ -6603,13 +6636,16 @@ var import_react = __toESM(require("react"));
6603
6636
  var import_react_hook_form11 = require("react-hook-form");
6604
6637
  var defaultValues7 = {
6605
6638
  businessName: "",
6639
+ consents: {
6640
+ betaTestConsent: false,
6641
+ privacyConsent: false
6642
+ },
6606
6643
  email: "",
6607
6644
  event: {},
6608
6645
  firstName: "",
6609
6646
  lastName: "",
6610
6647
  mobilePhone: "",
6611
6648
  osType: "",
6612
- privacyConsent: false,
6613
6649
  region: "",
6614
6650
  resourceType: "",
6615
6651
  vendor: {}
@@ -6631,13 +6667,13 @@ function useTesterForm(data) {
6631
6667
  if (data) {
6632
6668
  reset({
6633
6669
  businessName: data.businessName,
6670
+ consents: data.consents,
6634
6671
  email: data.email,
6635
6672
  event: data.event,
6636
6673
  firstName: data.firstName,
6637
6674
  lastName: data.lastName,
6638
6675
  mobilePhone: data.mobilePhone,
6639
6676
  osType: data.osType,
6640
- privacyConsent: data.privacyConsent,
6641
6677
  region: data.region,
6642
6678
  resourceType: data.resourceType,
6643
6679
  vendor: data.vendor
@@ -6648,13 +6684,13 @@ function useTesterForm(data) {
6648
6684
  }, [data]);
6649
6685
  const {
6650
6686
  businessName,
6687
+ consents,
6651
6688
  email,
6652
6689
  event,
6653
6690
  firstName,
6654
6691
  lastName,
6655
6692
  mobilePhone,
6656
6693
  osType,
6657
- privacyConsent,
6658
6694
  region,
6659
6695
  resourceType,
6660
6696
  vendor
@@ -6663,13 +6699,13 @@ function useTesterForm(data) {
6663
6699
  control,
6664
6700
  fields: {
6665
6701
  businessName,
6702
+ consents,
6666
6703
  email,
6667
6704
  event,
6668
6705
  firstName,
6669
6706
  lastName,
6670
6707
  mobilePhone,
6671
6708
  osType,
6672
- privacyConsent,
6673
6709
  region,
6674
6710
  resourceType,
6675
6711
  vendor
@@ -7090,6 +7126,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
7090
7126
  useAddUserInterestResource,
7091
7127
  useAddUserPresentResource,
7092
7128
  useAdminUpdateResourceType,
7129
+ useAdminUpdateTester,
7093
7130
  useCancelSubscription,
7094
7131
  useContactUs,
7095
7132
  useContactUsForm,