@timardex/cluemart-shared 1.3.65 → 1.3.66
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/{googleImportedMarket-BgS5XPGo.d.ts → googleImportedMarket-BuxDo6MX.d.ts} +21 -20
- package/dist/{googleImportedMarket-7QO1hU15.d.mts → googleImportedMarket-D2HOg7O-.d.mts} +21 -20
- package/dist/graphql/index.cjs +90 -20
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +26 -2
- package/dist/graphql/index.d.ts +26 -2
- package/dist/graphql/index.mjs +87 -20
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +42 -19
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +42 -19
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +132 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +46 -21
- package/dist/index.d.ts +46 -21
- package/dist/index.mjs +129 -39
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -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-
|
|
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';
|
|
@@ -897,5 +897,29 @@ declare const useGetGoogleImportedMarkets: () => {
|
|
|
897
897
|
googleImportedMarkets: GoogleImportedMarket[];
|
|
898
898
|
}>>;
|
|
899
899
|
};
|
|
900
|
+
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
901
|
+
error: _apollo_client.ApolloError | undefined;
|
|
902
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
903
|
+
loading: boolean;
|
|
904
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
905
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
906
|
+
}>>;
|
|
907
|
+
};
|
|
908
|
+
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
909
|
+
error: _apollo_client.ApolloError | undefined;
|
|
910
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
911
|
+
loading: boolean;
|
|
912
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
913
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
914
|
+
}>>;
|
|
915
|
+
};
|
|
916
|
+
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
917
|
+
error: _apollo_client.ApolloError | undefined;
|
|
918
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
919
|
+
loading: boolean;
|
|
920
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
921
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
922
|
+
}>>;
|
|
923
|
+
};
|
|
900
924
|
|
|
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 };
|
|
925
|
+
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 };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
|
@@ -897,5 +897,29 @@ declare const useGetGoogleImportedMarkets: () => {
|
|
|
897
897
|
googleImportedMarkets: GoogleImportedMarket[];
|
|
898
898
|
}>>;
|
|
899
899
|
};
|
|
900
|
+
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
901
|
+
error: _apollo_client.ApolloError | undefined;
|
|
902
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
903
|
+
loading: boolean;
|
|
904
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
905
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
906
|
+
}>>;
|
|
907
|
+
};
|
|
908
|
+
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
909
|
+
error: _apollo_client.ApolloError | undefined;
|
|
910
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
911
|
+
loading: boolean;
|
|
912
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
913
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
914
|
+
}>>;
|
|
915
|
+
};
|
|
916
|
+
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
917
|
+
error: _apollo_client.ApolloError | undefined;
|
|
918
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
919
|
+
loading: boolean;
|
|
920
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
921
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
922
|
+
}>>;
|
|
923
|
+
};
|
|
900
924
|
|
|
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 };
|
|
925
|
+
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 };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -3281,40 +3281,40 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
|
|
|
3281
3281
|
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql34`
|
|
3282
3282
|
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
3283
3283
|
_id
|
|
3284
|
-
|
|
3285
|
-
slug
|
|
3286
|
-
image
|
|
3284
|
+
accessibilityOptions
|
|
3287
3285
|
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
3286
|
addressComponents {
|
|
3302
3287
|
longName
|
|
3303
3288
|
shortName
|
|
3304
3289
|
types
|
|
3305
3290
|
}
|
|
3306
|
-
accessibilityOptions
|
|
3307
3291
|
allowsDogs
|
|
3292
|
+
businessStatus
|
|
3293
|
+
claimed
|
|
3294
|
+
createdAt
|
|
3308
3295
|
goodForChildren
|
|
3309
3296
|
goodForGroups
|
|
3297
|
+
googleMapsUrl
|
|
3298
|
+
googlePlaceId
|
|
3299
|
+
image
|
|
3300
|
+
importedAt
|
|
3310
3301
|
liveMusic
|
|
3302
|
+
location {
|
|
3303
|
+
lat
|
|
3304
|
+
lng
|
|
3305
|
+
}
|
|
3306
|
+
name
|
|
3307
|
+
openingHours
|
|
3311
3308
|
parkingOptions
|
|
3312
3309
|
paymentOptions
|
|
3310
|
+
phone
|
|
3311
|
+
photos
|
|
3312
|
+
rating
|
|
3313
3313
|
restroom
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
createdAt
|
|
3314
|
+
reviewCount
|
|
3315
|
+
slug
|
|
3317
3316
|
updatedAt
|
|
3317
|
+
website
|
|
3318
3318
|
}
|
|
3319
3319
|
`;
|
|
3320
3320
|
var GET_APP_SETTINGS = gql34`
|
|
@@ -3333,6 +3333,38 @@ var GET_GOOGLE_IMPORTED_MARKETS = gql34`
|
|
|
3333
3333
|
}
|
|
3334
3334
|
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3335
3335
|
`;
|
|
3336
|
+
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql34`
|
|
3337
|
+
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
3338
|
+
googleImportedMarketsByRegion(region: $region) {
|
|
3339
|
+
...GoogleImportedMarketsFields
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3343
|
+
`;
|
|
3344
|
+
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql34`
|
|
3345
|
+
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
3346
|
+
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
3347
|
+
...GoogleImportedMarketsFields
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3351
|
+
`;
|
|
3352
|
+
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql34`
|
|
3353
|
+
query getGoogleImportedMarketsNearMe(
|
|
3354
|
+
$latitude: Float!
|
|
3355
|
+
$longitude: Float!
|
|
3356
|
+
$radius: Int
|
|
3357
|
+
) {
|
|
3358
|
+
googleImportedMarketsNearMe(
|
|
3359
|
+
lat: $latitude
|
|
3360
|
+
lng: $longitude
|
|
3361
|
+
radius: $radius
|
|
3362
|
+
) {
|
|
3363
|
+
...GoogleImportedMarketsFields
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3367
|
+
`;
|
|
3336
3368
|
|
|
3337
3369
|
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3338
3370
|
var useUpdateAppSettings = () => {
|
|
@@ -3366,6 +3398,38 @@ var useGetGoogleImportedMarkets = () => {
|
|
|
3366
3398
|
const googleImportedMarkets = data?.googleImportedMarkets || [];
|
|
3367
3399
|
return { error, googleImportedMarkets, loading, refetch };
|
|
3368
3400
|
};
|
|
3401
|
+
var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
3402
|
+
const { loading, error, data, refetch } = useQuery13(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
|
|
3403
|
+
fetchPolicy: "network-only",
|
|
3404
|
+
skip: !region,
|
|
3405
|
+
variables: { region }
|
|
3406
|
+
});
|
|
3407
|
+
const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
|
|
3408
|
+
return { error, googleImportedMarketsByRegion, loading, refetch };
|
|
3409
|
+
};
|
|
3410
|
+
var useSearchGoogleImportedMarkets = (search, region) => {
|
|
3411
|
+
const { loading, error, data, refetch } = useQuery13(SEARCH_GOOGLE_IMPORTED_MARKETS, {
|
|
3412
|
+
fetchPolicy: "network-only",
|
|
3413
|
+
skip: search.length < 3,
|
|
3414
|
+
variables: { region, search }
|
|
3415
|
+
});
|
|
3416
|
+
const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
|
|
3417
|
+
return { error, googleImportedMarketsSearch, loading, refetch };
|
|
3418
|
+
};
|
|
3419
|
+
var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
|
|
3420
|
+
const { loading, error, data, refetch } = useQuery13(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
|
|
3421
|
+
fetchPolicy: "network-only",
|
|
3422
|
+
skip: !latitude || !longitude,
|
|
3423
|
+
variables: {
|
|
3424
|
+
latitude,
|
|
3425
|
+
longitude,
|
|
3426
|
+
radius: radius || 1e4
|
|
3427
|
+
// Default to 10km if no radius is provided
|
|
3428
|
+
}
|
|
3429
|
+
});
|
|
3430
|
+
const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
|
|
3431
|
+
return { error, googleImportedMarketsNearMe, loading, refetch };
|
|
3432
|
+
};
|
|
3369
3433
|
export {
|
|
3370
3434
|
useAddParticipantToChat,
|
|
3371
3435
|
useAddUserFavouriteResource,
|
|
@@ -3421,6 +3485,8 @@ export {
|
|
|
3421
3485
|
useGetEventsByRegion,
|
|
3422
3486
|
useGetEventsNearMe,
|
|
3423
3487
|
useGetGoogleImportedMarkets,
|
|
3488
|
+
useGetGoogleImportedMarketsByRegion,
|
|
3489
|
+
useGetGoogleImportedMarketsNearMe,
|
|
3424
3490
|
useGetNotificationCount,
|
|
3425
3491
|
useGetNotificationCountSubscription,
|
|
3426
3492
|
useGetPartner,
|
|
@@ -3465,6 +3531,7 @@ export {
|
|
|
3465
3531
|
useRequestPasswordReset,
|
|
3466
3532
|
useResetPassword,
|
|
3467
3533
|
useSearchEvents,
|
|
3534
|
+
useSearchGoogleImportedMarkets,
|
|
3468
3535
|
useSearchPartners,
|
|
3469
3536
|
useSearchVendors,
|
|
3470
3537
|
useSelectPackage,
|