@timardex/cluemart-shared 1.3.65 → 1.3.67

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.
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
- import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-7QO1hU15.mjs';
3
+ import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-D2HOg7O-.mjs';
4
4
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-DjZooB3t.mjs';
5
5
  import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-DHDZfAmJ.mjs';
6
6
  import 'react-hook-form';
@@ -867,6 +867,16 @@ declare const useUpdateAppSettings: () => {
867
867
  loading: boolean;
868
868
  updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
869
869
  };
870
+
871
+ declare const useGetAppSettings: () => {
872
+ appSettings: AppSettingsType | null;
873
+ error: _apollo_client.ApolloError | undefined;
874
+ loading: boolean;
875
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
876
+ appSettings: AppSettingsType;
877
+ }>>;
878
+ };
879
+
870
880
  declare const useCrawlGoogleMarkets: () => {
871
881
  crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
872
882
  crawlGoogleMarkets: {
@@ -881,21 +891,37 @@ declare const useCrawlGoogleMarkets: () => {
881
891
  loading: boolean;
882
892
  };
883
893
 
884
- declare const useGetAppSettings: () => {
885
- appSettings: AppSettingsType | null;
894
+ declare const useGetGoogleImportedMarkets: () => {
886
895
  error: _apollo_client.ApolloError | undefined;
896
+ googleImportedMarkets: GoogleImportedMarket[];
887
897
  loading: boolean;
888
898
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
889
- appSettings: AppSettingsType;
899
+ googleImportedMarkets: GoogleImportedMarket[];
890
900
  }>>;
891
901
  };
892
- declare const useGetGoogleImportedMarkets: () => {
902
+ declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
893
903
  error: _apollo_client.ApolloError | undefined;
894
- googleImportedMarkets: GoogleImportedMarket[];
904
+ googleImportedMarketsByRegion: GoogleImportedMarket[];
895
905
  loading: boolean;
896
906
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
897
- googleImportedMarkets: GoogleImportedMarket[];
907
+ googleImportedMarketsByRegion: GoogleImportedMarket[];
908
+ }>>;
909
+ };
910
+ declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
911
+ error: _apollo_client.ApolloError | undefined;
912
+ googleImportedMarketsSearch: GoogleImportedMarket[];
913
+ loading: boolean;
914
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
915
+ googleImportedMarketsSearch: GoogleImportedMarket[];
916
+ }>>;
917
+ };
918
+ declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
919
+ error: _apollo_client.ApolloError | undefined;
920
+ googleImportedMarketsNearMe: GoogleImportedMarket[];
921
+ loading: boolean;
922
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
923
+ googleImportedMarketsNearMe: GoogleImportedMarket[];
898
924
  }>>;
899
925
  };
900
926
 
901
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGoogleImportedMarkets, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
927
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGoogleImportedMarkets, useGetGoogleImportedMarketsByRegion, useGetGoogleImportedMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchGoogleImportedMarkets, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
- import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-BgS5XPGo.js';
3
+ import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-BuxDo6MX.js';
4
4
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-BKEcBQxZ.js';
5
5
  import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-Bwr2i2Qq.js';
6
6
  import 'react-hook-form';
@@ -867,6 +867,16 @@ declare const useUpdateAppSettings: () => {
867
867
  loading: boolean;
868
868
  updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
869
869
  };
870
+
871
+ declare const useGetAppSettings: () => {
872
+ appSettings: AppSettingsType | null;
873
+ error: _apollo_client.ApolloError | undefined;
874
+ loading: boolean;
875
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
876
+ appSettings: AppSettingsType;
877
+ }>>;
878
+ };
879
+
870
880
  declare const useCrawlGoogleMarkets: () => {
871
881
  crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
872
882
  crawlGoogleMarkets: {
@@ -881,21 +891,37 @@ declare const useCrawlGoogleMarkets: () => {
881
891
  loading: boolean;
882
892
  };
883
893
 
884
- declare const useGetAppSettings: () => {
885
- appSettings: AppSettingsType | null;
894
+ declare const useGetGoogleImportedMarkets: () => {
886
895
  error: _apollo_client.ApolloError | undefined;
896
+ googleImportedMarkets: GoogleImportedMarket[];
887
897
  loading: boolean;
888
898
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
889
- appSettings: AppSettingsType;
899
+ googleImportedMarkets: GoogleImportedMarket[];
890
900
  }>>;
891
901
  };
892
- declare const useGetGoogleImportedMarkets: () => {
902
+ declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
893
903
  error: _apollo_client.ApolloError | undefined;
894
- googleImportedMarkets: GoogleImportedMarket[];
904
+ googleImportedMarketsByRegion: GoogleImportedMarket[];
895
905
  loading: boolean;
896
906
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
897
- googleImportedMarkets: GoogleImportedMarket[];
907
+ googleImportedMarketsByRegion: GoogleImportedMarket[];
908
+ }>>;
909
+ };
910
+ declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
911
+ error: _apollo_client.ApolloError | undefined;
912
+ googleImportedMarketsSearch: GoogleImportedMarket[];
913
+ loading: boolean;
914
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
915
+ googleImportedMarketsSearch: GoogleImportedMarket[];
916
+ }>>;
917
+ };
918
+ declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
919
+ error: _apollo_client.ApolloError | undefined;
920
+ googleImportedMarketsNearMe: GoogleImportedMarket[];
921
+ loading: boolean;
922
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
923
+ googleImportedMarketsNearMe: GoogleImportedMarket[];
898
924
  }>>;
899
925
  };
900
926
 
901
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGoogleImportedMarkets, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
927
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGoogleImportedMarkets, useGetGoogleImportedMarketsByRegion, useGetGoogleImportedMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchGoogleImportedMarkets, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -3259,13 +3259,6 @@ var UPDATE_APP_SETTINGS_MUTATION = gql33`
3259
3259
  updateAppSettings(input: $input)
3260
3260
  }
3261
3261
  `;
3262
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
3263
- mutation crawlGoogleMarkets {
3264
- crawlGoogleMarkets {
3265
- message
3266
- }
3267
- }
3268
- `;
3269
3262
 
3270
3263
  // src/graphql/queries/appSettings.ts
3271
3264
  import { gql as gql34 } from "@apollo/client";
@@ -3278,45 +3271,6 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
3278
3271
  updatedAt
3279
3272
  }
3280
3273
  `;
3281
- var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql34`
3282
- fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
3283
- _id
3284
- name
3285
- slug
3286
- image
3287
- address
3288
- location {
3289
- lat
3290
- lng
3291
- }
3292
- googlePlaceId
3293
- website
3294
- phone
3295
- openingHours
3296
- rating
3297
- reviewCount
3298
- photos
3299
- googleMapsUrl
3300
- businessStatus
3301
- addressComponents {
3302
- longName
3303
- shortName
3304
- types
3305
- }
3306
- accessibilityOptions
3307
- allowsDogs
3308
- goodForChildren
3309
- goodForGroups
3310
- liveMusic
3311
- parkingOptions
3312
- paymentOptions
3313
- restroom
3314
- importedAt
3315
- claimed
3316
- createdAt
3317
- updatedAt
3318
- }
3319
- `;
3320
3274
  var GET_APP_SETTINGS = gql34`
3321
3275
  query getAppSettings {
3322
3276
  appSettings {
@@ -3325,14 +3279,6 @@ var GET_APP_SETTINGS = gql34`
3325
3279
  }
3326
3280
  ${APP_SETTINGS_FIELDS_FRAGMENT}
3327
3281
  `;
3328
- var GET_GOOGLE_IMPORTED_MARKETS = gql34`
3329
- query getGoogleImportedMarkets {
3330
- googleImportedMarkets {
3331
- ...GoogleImportedMarketsFields
3332
- }
3333
- }
3334
- ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3335
- `;
3336
3282
 
3337
3283
  // src/graphql/hooks/appSettings/hooksMutation.ts
3338
3284
  var useUpdateAppSettings = () => {
@@ -3345,10 +3291,6 @@ var useUpdateAppSettings = () => {
3345
3291
  );
3346
3292
  return { error, loading, updateAppSettings };
3347
3293
  };
3348
- var useCrawlGoogleMarkets = () => {
3349
- const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
3350
- return { crawlGoogleMarkets, error, loading };
3351
- };
3352
3294
 
3353
3295
  // src/graphql/hooks/appSettings/hooksQuery.ts
3354
3296
  import { useQuery as useQuery13 } from "@apollo/client";
@@ -3359,13 +3301,152 @@ var useGetAppSettings = () => {
3359
3301
  const appSettings = data?.appSettings || null;
3360
3302
  return { appSettings, error, loading, refetch };
3361
3303
  };
3304
+
3305
+ // src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
3306
+ import { useMutation as useMutation19 } from "@apollo/client";
3307
+
3308
+ // src/graphql/mutations/googleImportedMarkets.ts
3309
+ import { gql as gql35 } from "@apollo/client";
3310
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql35`
3311
+ mutation crawlGoogleMarkets {
3312
+ crawlGoogleMarkets {
3313
+ message
3314
+ }
3315
+ }
3316
+ `;
3317
+
3318
+ // src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
3319
+ var useCrawlGoogleMarkets = () => {
3320
+ const [crawlGoogleMarkets, { loading, error }] = useMutation19(CRAWL_GOOGLE_MARKETS_MUTATION);
3321
+ return { crawlGoogleMarkets, error, loading };
3322
+ };
3323
+
3324
+ // src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
3325
+ import { useQuery as useQuery14 } from "@apollo/client";
3326
+
3327
+ // src/graphql/queries/googleImportedMarkets.ts
3328
+ import { gql as gql36 } from "@apollo/client";
3329
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql36`
3330
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
3331
+ _id
3332
+ accessibilityOptions
3333
+ address
3334
+ addressComponents {
3335
+ longName
3336
+ shortName
3337
+ types
3338
+ }
3339
+ allowsDogs
3340
+ businessStatus
3341
+ claimed
3342
+ createdAt
3343
+ goodForChildren
3344
+ goodForGroups
3345
+ googleMapsUrl
3346
+ googlePlaceId
3347
+ image
3348
+ importedAt
3349
+ liveMusic
3350
+ location {
3351
+ lat
3352
+ lng
3353
+ }
3354
+ name
3355
+ openingHours
3356
+ parkingOptions
3357
+ paymentOptions
3358
+ phone
3359
+ photos
3360
+ rating
3361
+ region
3362
+ restroom
3363
+ reviewCount
3364
+ slug
3365
+ updatedAt
3366
+ website
3367
+ }
3368
+ `;
3369
+ var GET_GOOGLE_IMPORTED_MARKETS = gql36`
3370
+ query getGoogleImportedMarkets {
3371
+ googleImportedMarkets {
3372
+ ...GoogleImportedMarketsFields
3373
+ }
3374
+ }
3375
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3376
+ `;
3377
+ var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql36`
3378
+ query getGoogleImportedMarketsByRegion($region: String!) {
3379
+ googleImportedMarketsByRegion(region: $region) {
3380
+ ...GoogleImportedMarketsFields
3381
+ }
3382
+ }
3383
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3384
+ `;
3385
+ var SEARCH_GOOGLE_IMPORTED_MARKETS = gql36`
3386
+ query searchGoogleImportedMarkets($search: String!, $region: String) {
3387
+ googleImportedMarketsSearch(search: $search, region: $region) {
3388
+ ...GoogleImportedMarketsFields
3389
+ }
3390
+ }
3391
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3392
+ `;
3393
+ var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql36`
3394
+ query getGoogleImportedMarketsNearMe(
3395
+ $latitude: Float!
3396
+ $longitude: Float!
3397
+ $radius: Int
3398
+ ) {
3399
+ googleImportedMarketsNearMe(
3400
+ lat: $latitude
3401
+ lng: $longitude
3402
+ radius: $radius
3403
+ ) {
3404
+ ...GoogleImportedMarketsFields
3405
+ }
3406
+ }
3407
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3408
+ `;
3409
+
3410
+ // src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
3362
3411
  var useGetGoogleImportedMarkets = () => {
3363
- const { loading, error, data, refetch } = useQuery13(GET_GOOGLE_IMPORTED_MARKETS, {
3412
+ const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
3364
3413
  fetchPolicy: "network-only"
3365
3414
  });
3366
3415
  const googleImportedMarkets = data?.googleImportedMarkets || [];
3367
3416
  return { error, googleImportedMarkets, loading, refetch };
3368
3417
  };
3418
+ var useGetGoogleImportedMarketsByRegion = (region) => {
3419
+ const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
3420
+ fetchPolicy: "network-only",
3421
+ skip: !region,
3422
+ variables: { region }
3423
+ });
3424
+ const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
3425
+ return { error, googleImportedMarketsByRegion, loading, refetch };
3426
+ };
3427
+ var useSearchGoogleImportedMarkets = (search, region) => {
3428
+ const { loading, error, data, refetch } = useQuery14(SEARCH_GOOGLE_IMPORTED_MARKETS, {
3429
+ fetchPolicy: "network-only",
3430
+ skip: search.length < 3,
3431
+ variables: { region, search }
3432
+ });
3433
+ const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
3434
+ return { error, googleImportedMarketsSearch, loading, refetch };
3435
+ };
3436
+ var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
3437
+ const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
3438
+ fetchPolicy: "network-only",
3439
+ skip: !latitude || !longitude,
3440
+ variables: {
3441
+ latitude,
3442
+ longitude,
3443
+ radius: radius || 1e4
3444
+ // Default to 10km if no radius is provided
3445
+ }
3446
+ });
3447
+ const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
3448
+ return { error, googleImportedMarketsNearMe, loading, refetch };
3449
+ };
3369
3450
  export {
3370
3451
  useAddParticipantToChat,
3371
3452
  useAddUserFavouriteResource,
@@ -3421,6 +3502,8 @@ export {
3421
3502
  useGetEventsByRegion,
3422
3503
  useGetEventsNearMe,
3423
3504
  useGetGoogleImportedMarkets,
3505
+ useGetGoogleImportedMarketsByRegion,
3506
+ useGetGoogleImportedMarketsNearMe,
3424
3507
  useGetNotificationCount,
3425
3508
  useGetNotificationCountSubscription,
3426
3509
  useGetPartner,
@@ -3465,6 +3548,7 @@ export {
3465
3548
  useRequestPasswordReset,
3466
3549
  useResetPassword,
3467
3550
  useSearchEvents,
3551
+ useSearchGoogleImportedMarkets,
3468
3552
  useSearchPartners,
3469
3553
  useSearchVendors,
3470
3554
  useSelectPackage,