@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.
- 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 +146 -59
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +34 -8
- package/dist/graphql/index.d.ts +34 -8
- package/dist/graphql/index.mjs +143 -59
- 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 +188 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +54 -27
- package/dist/index.d.ts +54 -27
- package/dist/index.mjs +185 -78
- 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/index.d.mts
CHANGED
|
@@ -1032,36 +1032,37 @@ type GoogleAddressComponent = {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
type GoogleImportedMarket = {
|
|
1034
1034
|
_id: string;
|
|
1035
|
-
|
|
1036
|
-
slug: string;
|
|
1037
|
-
image?: string;
|
|
1035
|
+
accessibilityOptions?: Record<string, boolean>;
|
|
1038
1036
|
address: string;
|
|
1039
|
-
location?: {
|
|
1040
|
-
lat: number;
|
|
1041
|
-
lng: number;
|
|
1042
|
-
};
|
|
1043
|
-
googlePlaceId: string;
|
|
1044
|
-
website?: string;
|
|
1045
|
-
phone?: string;
|
|
1046
|
-
openingHours?: string[];
|
|
1047
|
-
rating?: number;
|
|
1048
|
-
reviewCount?: number;
|
|
1049
|
-
photos?: string[];
|
|
1050
|
-
googleMapsUrl?: string;
|
|
1051
|
-
businessStatus?: string;
|
|
1052
1037
|
addressComponents?: GoogleAddressComponent[];
|
|
1053
|
-
accessibilityOptions?: Record<string, boolean>;
|
|
1054
1038
|
allowsDogs?: boolean;
|
|
1039
|
+
businessStatus?: string;
|
|
1040
|
+
claimed: boolean;
|
|
1041
|
+
createdAt: Date;
|
|
1055
1042
|
goodForChildren?: boolean;
|
|
1056
1043
|
goodForGroups?: boolean;
|
|
1044
|
+
googleMapsUrl?: string;
|
|
1045
|
+
googlePlaceId: string;
|
|
1046
|
+
image?: string;
|
|
1047
|
+
importedAt: Date;
|
|
1057
1048
|
liveMusic?: boolean;
|
|
1049
|
+
location?: {
|
|
1050
|
+
lat: number;
|
|
1051
|
+
lng: number;
|
|
1052
|
+
};
|
|
1053
|
+
name: string;
|
|
1054
|
+
openingHours?: string[];
|
|
1058
1055
|
parkingOptions?: Record<string, boolean>;
|
|
1059
1056
|
paymentOptions?: Record<string, boolean>;
|
|
1057
|
+
phone?: string;
|
|
1058
|
+
photos?: string[];
|
|
1059
|
+
rating?: number;
|
|
1060
|
+
region: string;
|
|
1060
1061
|
restroom?: boolean;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
createdAt: Date;
|
|
1062
|
+
reviewCount?: number;
|
|
1063
|
+
slug: string;
|
|
1064
1064
|
updatedAt: Date;
|
|
1065
|
+
website?: string;
|
|
1065
1066
|
};
|
|
1066
1067
|
|
|
1067
1068
|
declare const vendorElectricity: {
|
|
@@ -1990,6 +1991,16 @@ declare const useUpdateAppSettings: () => {
|
|
|
1990
1991
|
loading: boolean;
|
|
1991
1992
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1992
1993
|
};
|
|
1994
|
+
|
|
1995
|
+
declare const useGetAppSettings: () => {
|
|
1996
|
+
appSettings: AppSettingsType | null;
|
|
1997
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1998
|
+
loading: boolean;
|
|
1999
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2000
|
+
appSettings: AppSettingsType;
|
|
2001
|
+
}>>;
|
|
2002
|
+
};
|
|
2003
|
+
|
|
1993
2004
|
declare const useCrawlGoogleMarkets: () => {
|
|
1994
2005
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1995
2006
|
crawlGoogleMarkets: {
|
|
@@ -2004,20 +2015,36 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
2004
2015
|
loading: boolean;
|
|
2005
2016
|
};
|
|
2006
2017
|
|
|
2007
|
-
declare const
|
|
2008
|
-
appSettings: AppSettingsType | null;
|
|
2018
|
+
declare const useGetGoogleImportedMarkets: () => {
|
|
2009
2019
|
error: _apollo_client.ApolloError | undefined;
|
|
2020
|
+
googleImportedMarkets: GoogleImportedMarket[];
|
|
2010
2021
|
loading: boolean;
|
|
2011
2022
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2012
|
-
|
|
2023
|
+
googleImportedMarkets: GoogleImportedMarket[];
|
|
2013
2024
|
}>>;
|
|
2014
2025
|
};
|
|
2015
|
-
declare const
|
|
2026
|
+
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
2016
2027
|
error: _apollo_client.ApolloError | undefined;
|
|
2017
|
-
|
|
2028
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2018
2029
|
loading: boolean;
|
|
2019
2030
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2020
|
-
|
|
2031
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2032
|
+
}>>;
|
|
2033
|
+
};
|
|
2034
|
+
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
2035
|
+
error: _apollo_client.ApolloError | undefined;
|
|
2036
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2037
|
+
loading: boolean;
|
|
2038
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2039
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2040
|
+
}>>;
|
|
2041
|
+
};
|
|
2042
|
+
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
2043
|
+
error: _apollo_client.ApolloError | undefined;
|
|
2044
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
2045
|
+
loading: boolean;
|
|
2046
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2047
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
2021
2048
|
}>>;
|
|
2022
2049
|
};
|
|
2023
2050
|
|
|
@@ -2217,4 +2244,4 @@ declare function normalizeUrl(url: string): string;
|
|
|
2217
2244
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2218
2245
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2219
2246
|
|
|
2220
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
2247
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchGoogleImportedMarkets, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1032,36 +1032,37 @@ type GoogleAddressComponent = {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
type GoogleImportedMarket = {
|
|
1034
1034
|
_id: string;
|
|
1035
|
-
|
|
1036
|
-
slug: string;
|
|
1037
|
-
image?: string;
|
|
1035
|
+
accessibilityOptions?: Record<string, boolean>;
|
|
1038
1036
|
address: string;
|
|
1039
|
-
location?: {
|
|
1040
|
-
lat: number;
|
|
1041
|
-
lng: number;
|
|
1042
|
-
};
|
|
1043
|
-
googlePlaceId: string;
|
|
1044
|
-
website?: string;
|
|
1045
|
-
phone?: string;
|
|
1046
|
-
openingHours?: string[];
|
|
1047
|
-
rating?: number;
|
|
1048
|
-
reviewCount?: number;
|
|
1049
|
-
photos?: string[];
|
|
1050
|
-
googleMapsUrl?: string;
|
|
1051
|
-
businessStatus?: string;
|
|
1052
1037
|
addressComponents?: GoogleAddressComponent[];
|
|
1053
|
-
accessibilityOptions?: Record<string, boolean>;
|
|
1054
1038
|
allowsDogs?: boolean;
|
|
1039
|
+
businessStatus?: string;
|
|
1040
|
+
claimed: boolean;
|
|
1041
|
+
createdAt: Date;
|
|
1055
1042
|
goodForChildren?: boolean;
|
|
1056
1043
|
goodForGroups?: boolean;
|
|
1044
|
+
googleMapsUrl?: string;
|
|
1045
|
+
googlePlaceId: string;
|
|
1046
|
+
image?: string;
|
|
1047
|
+
importedAt: Date;
|
|
1057
1048
|
liveMusic?: boolean;
|
|
1049
|
+
location?: {
|
|
1050
|
+
lat: number;
|
|
1051
|
+
lng: number;
|
|
1052
|
+
};
|
|
1053
|
+
name: string;
|
|
1054
|
+
openingHours?: string[];
|
|
1058
1055
|
parkingOptions?: Record<string, boolean>;
|
|
1059
1056
|
paymentOptions?: Record<string, boolean>;
|
|
1057
|
+
phone?: string;
|
|
1058
|
+
photos?: string[];
|
|
1059
|
+
rating?: number;
|
|
1060
|
+
region: string;
|
|
1060
1061
|
restroom?: boolean;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
createdAt: Date;
|
|
1062
|
+
reviewCount?: number;
|
|
1063
|
+
slug: string;
|
|
1064
1064
|
updatedAt: Date;
|
|
1065
|
+
website?: string;
|
|
1065
1066
|
};
|
|
1066
1067
|
|
|
1067
1068
|
declare const vendorElectricity: {
|
|
@@ -1990,6 +1991,16 @@ declare const useUpdateAppSettings: () => {
|
|
|
1990
1991
|
loading: boolean;
|
|
1991
1992
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1992
1993
|
};
|
|
1994
|
+
|
|
1995
|
+
declare const useGetAppSettings: () => {
|
|
1996
|
+
appSettings: AppSettingsType | null;
|
|
1997
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1998
|
+
loading: boolean;
|
|
1999
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2000
|
+
appSettings: AppSettingsType;
|
|
2001
|
+
}>>;
|
|
2002
|
+
};
|
|
2003
|
+
|
|
1993
2004
|
declare const useCrawlGoogleMarkets: () => {
|
|
1994
2005
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1995
2006
|
crawlGoogleMarkets: {
|
|
@@ -2004,20 +2015,36 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
2004
2015
|
loading: boolean;
|
|
2005
2016
|
};
|
|
2006
2017
|
|
|
2007
|
-
declare const
|
|
2008
|
-
appSettings: AppSettingsType | null;
|
|
2018
|
+
declare const useGetGoogleImportedMarkets: () => {
|
|
2009
2019
|
error: _apollo_client.ApolloError | undefined;
|
|
2020
|
+
googleImportedMarkets: GoogleImportedMarket[];
|
|
2010
2021
|
loading: boolean;
|
|
2011
2022
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2012
|
-
|
|
2023
|
+
googleImportedMarkets: GoogleImportedMarket[];
|
|
2013
2024
|
}>>;
|
|
2014
2025
|
};
|
|
2015
|
-
declare const
|
|
2026
|
+
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
2016
2027
|
error: _apollo_client.ApolloError | undefined;
|
|
2017
|
-
|
|
2028
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2018
2029
|
loading: boolean;
|
|
2019
2030
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2020
|
-
|
|
2031
|
+
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2032
|
+
}>>;
|
|
2033
|
+
};
|
|
2034
|
+
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
2035
|
+
error: _apollo_client.ApolloError | undefined;
|
|
2036
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2037
|
+
loading: boolean;
|
|
2038
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2039
|
+
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2040
|
+
}>>;
|
|
2041
|
+
};
|
|
2042
|
+
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
2043
|
+
error: _apollo_client.ApolloError | undefined;
|
|
2044
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
2045
|
+
loading: boolean;
|
|
2046
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2047
|
+
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
2021
2048
|
}>>;
|
|
2022
2049
|
};
|
|
2023
2050
|
|
|
@@ -2217,4 +2244,4 @@ declare function normalizeUrl(url: string): string;
|
|
|
2217
2244
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2218
2245
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2219
2246
|
|
|
2220
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
2247
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, 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, useEventForm, useEventInfoForm, 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, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchGoogleImportedMarkets, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -5443,13 +5443,6 @@ var UPDATE_APP_SETTINGS_MUTATION = gql33`
|
|
|
5443
5443
|
updateAppSettings(input: $input)
|
|
5444
5444
|
}
|
|
5445
5445
|
`;
|
|
5446
|
-
var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
|
|
5447
|
-
mutation crawlGoogleMarkets {
|
|
5448
|
-
crawlGoogleMarkets {
|
|
5449
|
-
message
|
|
5450
|
-
}
|
|
5451
|
-
}
|
|
5452
|
-
`;
|
|
5453
5446
|
|
|
5454
5447
|
// src/graphql/queries/appSettings.ts
|
|
5455
5448
|
import { gql as gql34 } from "@apollo/client";
|
|
@@ -5462,45 +5455,6 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
|
|
|
5462
5455
|
updatedAt
|
|
5463
5456
|
}
|
|
5464
5457
|
`;
|
|
5465
|
-
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql34`
|
|
5466
|
-
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
5467
|
-
_id
|
|
5468
|
-
name
|
|
5469
|
-
slug
|
|
5470
|
-
image
|
|
5471
|
-
address
|
|
5472
|
-
location {
|
|
5473
|
-
lat
|
|
5474
|
-
lng
|
|
5475
|
-
}
|
|
5476
|
-
googlePlaceId
|
|
5477
|
-
website
|
|
5478
|
-
phone
|
|
5479
|
-
openingHours
|
|
5480
|
-
rating
|
|
5481
|
-
reviewCount
|
|
5482
|
-
photos
|
|
5483
|
-
googleMapsUrl
|
|
5484
|
-
businessStatus
|
|
5485
|
-
addressComponents {
|
|
5486
|
-
longName
|
|
5487
|
-
shortName
|
|
5488
|
-
types
|
|
5489
|
-
}
|
|
5490
|
-
accessibilityOptions
|
|
5491
|
-
allowsDogs
|
|
5492
|
-
goodForChildren
|
|
5493
|
-
goodForGroups
|
|
5494
|
-
liveMusic
|
|
5495
|
-
parkingOptions
|
|
5496
|
-
paymentOptions
|
|
5497
|
-
restroom
|
|
5498
|
-
importedAt
|
|
5499
|
-
claimed
|
|
5500
|
-
createdAt
|
|
5501
|
-
updatedAt
|
|
5502
|
-
}
|
|
5503
|
-
`;
|
|
5504
5458
|
var GET_APP_SETTINGS = gql34`
|
|
5505
5459
|
query getAppSettings {
|
|
5506
5460
|
appSettings {
|
|
@@ -5509,14 +5463,6 @@ var GET_APP_SETTINGS = gql34`
|
|
|
5509
5463
|
}
|
|
5510
5464
|
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
5511
5465
|
`;
|
|
5512
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql34`
|
|
5513
|
-
query getGoogleImportedMarkets {
|
|
5514
|
-
googleImportedMarkets {
|
|
5515
|
-
...GoogleImportedMarketsFields
|
|
5516
|
-
}
|
|
5517
|
-
}
|
|
5518
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5519
|
-
`;
|
|
5520
5466
|
|
|
5521
5467
|
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
5522
5468
|
var useUpdateAppSettings = () => {
|
|
@@ -5529,10 +5475,6 @@ var useUpdateAppSettings = () => {
|
|
|
5529
5475
|
);
|
|
5530
5476
|
return { error, loading, updateAppSettings };
|
|
5531
5477
|
};
|
|
5532
|
-
var useCrawlGoogleMarkets = () => {
|
|
5533
|
-
const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
5534
|
-
return { crawlGoogleMarkets, error, loading };
|
|
5535
|
-
};
|
|
5536
5478
|
|
|
5537
5479
|
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
5538
5480
|
import { useQuery as useQuery13 } from "@apollo/client";
|
|
@@ -5543,13 +5485,152 @@ var useGetAppSettings = () => {
|
|
|
5543
5485
|
const appSettings = data?.appSettings || null;
|
|
5544
5486
|
return { appSettings, error, loading, refetch };
|
|
5545
5487
|
};
|
|
5488
|
+
|
|
5489
|
+
// src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
|
|
5490
|
+
import { useMutation as useMutation19 } from "@apollo/client";
|
|
5491
|
+
|
|
5492
|
+
// src/graphql/mutations/googleImportedMarkets.ts
|
|
5493
|
+
import { gql as gql35 } from "@apollo/client";
|
|
5494
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql35`
|
|
5495
|
+
mutation crawlGoogleMarkets {
|
|
5496
|
+
crawlGoogleMarkets {
|
|
5497
|
+
message
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
`;
|
|
5501
|
+
|
|
5502
|
+
// src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
|
|
5503
|
+
var useCrawlGoogleMarkets = () => {
|
|
5504
|
+
const [crawlGoogleMarkets, { loading, error }] = useMutation19(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
5505
|
+
return { crawlGoogleMarkets, error, loading };
|
|
5506
|
+
};
|
|
5507
|
+
|
|
5508
|
+
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
5509
|
+
import { useQuery as useQuery14 } from "@apollo/client";
|
|
5510
|
+
|
|
5511
|
+
// src/graphql/queries/googleImportedMarkets.ts
|
|
5512
|
+
import { gql as gql36 } from "@apollo/client";
|
|
5513
|
+
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql36`
|
|
5514
|
+
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
5515
|
+
_id
|
|
5516
|
+
accessibilityOptions
|
|
5517
|
+
address
|
|
5518
|
+
addressComponents {
|
|
5519
|
+
longName
|
|
5520
|
+
shortName
|
|
5521
|
+
types
|
|
5522
|
+
}
|
|
5523
|
+
allowsDogs
|
|
5524
|
+
businessStatus
|
|
5525
|
+
claimed
|
|
5526
|
+
createdAt
|
|
5527
|
+
goodForChildren
|
|
5528
|
+
goodForGroups
|
|
5529
|
+
googleMapsUrl
|
|
5530
|
+
googlePlaceId
|
|
5531
|
+
image
|
|
5532
|
+
importedAt
|
|
5533
|
+
liveMusic
|
|
5534
|
+
location {
|
|
5535
|
+
lat
|
|
5536
|
+
lng
|
|
5537
|
+
}
|
|
5538
|
+
name
|
|
5539
|
+
openingHours
|
|
5540
|
+
parkingOptions
|
|
5541
|
+
paymentOptions
|
|
5542
|
+
phone
|
|
5543
|
+
photos
|
|
5544
|
+
rating
|
|
5545
|
+
region
|
|
5546
|
+
restroom
|
|
5547
|
+
reviewCount
|
|
5548
|
+
slug
|
|
5549
|
+
updatedAt
|
|
5550
|
+
website
|
|
5551
|
+
}
|
|
5552
|
+
`;
|
|
5553
|
+
var GET_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
5554
|
+
query getGoogleImportedMarkets {
|
|
5555
|
+
googleImportedMarkets {
|
|
5556
|
+
...GoogleImportedMarketsFields
|
|
5557
|
+
}
|
|
5558
|
+
}
|
|
5559
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5560
|
+
`;
|
|
5561
|
+
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql36`
|
|
5562
|
+
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
5563
|
+
googleImportedMarketsByRegion(region: $region) {
|
|
5564
|
+
...GoogleImportedMarketsFields
|
|
5565
|
+
}
|
|
5566
|
+
}
|
|
5567
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5568
|
+
`;
|
|
5569
|
+
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
5570
|
+
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
5571
|
+
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
5572
|
+
...GoogleImportedMarketsFields
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5576
|
+
`;
|
|
5577
|
+
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql36`
|
|
5578
|
+
query getGoogleImportedMarketsNearMe(
|
|
5579
|
+
$latitude: Float!
|
|
5580
|
+
$longitude: Float!
|
|
5581
|
+
$radius: Int
|
|
5582
|
+
) {
|
|
5583
|
+
googleImportedMarketsNearMe(
|
|
5584
|
+
lat: $latitude
|
|
5585
|
+
lng: $longitude
|
|
5586
|
+
radius: $radius
|
|
5587
|
+
) {
|
|
5588
|
+
...GoogleImportedMarketsFields
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5592
|
+
`;
|
|
5593
|
+
|
|
5594
|
+
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
5546
5595
|
var useGetGoogleImportedMarkets = () => {
|
|
5547
|
-
const { loading, error, data, refetch } =
|
|
5596
|
+
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
|
|
5548
5597
|
fetchPolicy: "network-only"
|
|
5549
5598
|
});
|
|
5550
5599
|
const googleImportedMarkets = data?.googleImportedMarkets || [];
|
|
5551
5600
|
return { error, googleImportedMarkets, loading, refetch };
|
|
5552
5601
|
};
|
|
5602
|
+
var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
5603
|
+
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
|
|
5604
|
+
fetchPolicy: "network-only",
|
|
5605
|
+
skip: !region,
|
|
5606
|
+
variables: { region }
|
|
5607
|
+
});
|
|
5608
|
+
const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
|
|
5609
|
+
return { error, googleImportedMarketsByRegion, loading, refetch };
|
|
5610
|
+
};
|
|
5611
|
+
var useSearchGoogleImportedMarkets = (search, region) => {
|
|
5612
|
+
const { loading, error, data, refetch } = useQuery14(SEARCH_GOOGLE_IMPORTED_MARKETS, {
|
|
5613
|
+
fetchPolicy: "network-only",
|
|
5614
|
+
skip: search.length < 3,
|
|
5615
|
+
variables: { region, search }
|
|
5616
|
+
});
|
|
5617
|
+
const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
|
|
5618
|
+
return { error, googleImportedMarketsSearch, loading, refetch };
|
|
5619
|
+
};
|
|
5620
|
+
var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
|
|
5621
|
+
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
|
|
5622
|
+
fetchPolicy: "network-only",
|
|
5623
|
+
skip: !latitude || !longitude,
|
|
5624
|
+
variables: {
|
|
5625
|
+
latitude,
|
|
5626
|
+
longitude,
|
|
5627
|
+
radius: radius || 1e4
|
|
5628
|
+
// Default to 10km if no radius is provided
|
|
5629
|
+
}
|
|
5630
|
+
});
|
|
5631
|
+
const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
|
|
5632
|
+
return { error, googleImportedMarketsNearMe, loading, refetch };
|
|
5633
|
+
};
|
|
5553
5634
|
|
|
5554
5635
|
// src/hooks/useLocationSearch.ts
|
|
5555
5636
|
var handleApiError = (error, message) => {
|
|
@@ -5559,13 +5640,31 @@ var useLocationSearch = (googleApi) => {
|
|
|
5559
5640
|
const getPredictions = async (text) => {
|
|
5560
5641
|
try {
|
|
5561
5642
|
const response = await fetch(
|
|
5562
|
-
|
|
5643
|
+
"https://places.googleapis.com/v1/places:autocomplete",
|
|
5644
|
+
{
|
|
5645
|
+
body: JSON.stringify({
|
|
5646
|
+
includedRegionCodes: ["nz"],
|
|
5647
|
+
input: text,
|
|
5648
|
+
languageCode: "en"
|
|
5649
|
+
}),
|
|
5650
|
+
headers: {
|
|
5651
|
+
"Content-Type": "application/json",
|
|
5652
|
+
"X-Goog-Api-Key": googleApi,
|
|
5653
|
+
"X-Goog-FieldMask": "suggestions.placePrediction.placeId,suggestions.placePrediction.text.text"
|
|
5654
|
+
},
|
|
5655
|
+
method: "POST"
|
|
5656
|
+
}
|
|
5563
5657
|
);
|
|
5564
5658
|
if (!response.ok) {
|
|
5565
5659
|
throw new Error(`HTTP error! Status: ${response.status}`);
|
|
5566
5660
|
}
|
|
5567
5661
|
const data = await response.json();
|
|
5568
|
-
|
|
5662
|
+
const suggestions = data.suggestions ?? [];
|
|
5663
|
+
const predictions = suggestions.map((suggestion) => suggestion.placePrediction).filter(Boolean).map((prediction) => ({
|
|
5664
|
+
description: prediction?.text?.text || "",
|
|
5665
|
+
place_id: prediction?.placeId || ""
|
|
5666
|
+
})).filter((prediction) => prediction.place_id && prediction.description);
|
|
5667
|
+
return predictions;
|
|
5569
5668
|
} catch (error) {
|
|
5570
5669
|
console.error("Error fetching predictions:", error);
|
|
5571
5670
|
handleApiError(error, "Failed to fetch address predictions.");
|
|
@@ -5574,42 +5673,47 @@ var useLocationSearch = (googleApi) => {
|
|
|
5574
5673
|
const getPlaceDetails = async (placeId) => {
|
|
5575
5674
|
try {
|
|
5576
5675
|
const response = await fetch(
|
|
5577
|
-
`https://
|
|
5676
|
+
`https://places.googleapis.com/v1/places/${placeId}`,
|
|
5677
|
+
{
|
|
5678
|
+
headers: {
|
|
5679
|
+
"X-Goog-Api-Key": googleApi,
|
|
5680
|
+
"X-Goog-FieldMask": "addressComponents,formattedAddress,location"
|
|
5681
|
+
}
|
|
5682
|
+
}
|
|
5578
5683
|
);
|
|
5579
5684
|
if (!response.ok) {
|
|
5580
5685
|
throw new Error(`HTTP error! Status: ${response.status}`);
|
|
5581
5686
|
}
|
|
5582
|
-
const
|
|
5583
|
-
const {
|
|
5584
|
-
const {
|
|
5585
|
-
const
|
|
5586
|
-
const address = address_components.reduce((acc, item) => {
|
|
5687
|
+
const result = await response.json();
|
|
5688
|
+
const { latitude, longitude } = result.location;
|
|
5689
|
+
const { addressComponents, formattedAddress } = result;
|
|
5690
|
+
const address = addressComponents.reduce((acc, item) => {
|
|
5587
5691
|
if (item.types.includes("street_number")) {
|
|
5588
|
-
return { ...acc, streetNumber: item.
|
|
5692
|
+
return { ...acc, streetNumber: item.longText };
|
|
5589
5693
|
}
|
|
5590
5694
|
if (item.types.includes("route")) {
|
|
5591
|
-
return { ...acc, streetName: item.
|
|
5695
|
+
return { ...acc, streetName: item.longText };
|
|
5592
5696
|
}
|
|
5593
5697
|
if (item.types.includes("locality")) {
|
|
5594
|
-
return { ...acc, city: item.
|
|
5698
|
+
return { ...acc, city: item.longText };
|
|
5595
5699
|
}
|
|
5596
5700
|
if (item.types.includes("administrative_area_level_1")) {
|
|
5597
|
-
return { ...acc, region: item.
|
|
5701
|
+
return { ...acc, region: item.longText };
|
|
5598
5702
|
}
|
|
5599
5703
|
if (item.types.includes("country")) {
|
|
5600
|
-
return { ...acc, country: item.
|
|
5704
|
+
return { ...acc, country: item.longText };
|
|
5601
5705
|
}
|
|
5602
5706
|
return acc;
|
|
5603
5707
|
}, {});
|
|
5604
5708
|
const newLocation = {
|
|
5605
|
-
city: address.city.toLowerCase(),
|
|
5606
|
-
coordinates: [
|
|
5709
|
+
city: address.city ? address.city.toLowerCase() : "",
|
|
5710
|
+
coordinates: [longitude, latitude],
|
|
5607
5711
|
// [longitude, latitude]
|
|
5608
5712
|
country: address.country,
|
|
5609
|
-
fullAddress:
|
|
5610
|
-
latitude
|
|
5611
|
-
longitude
|
|
5612
|
-
region: address.region.replace(/ Region$/, ""),
|
|
5713
|
+
fullAddress: formattedAddress,
|
|
5714
|
+
latitude,
|
|
5715
|
+
longitude,
|
|
5716
|
+
region: address.region ? address.region.replace(/ Region$/, "") : "",
|
|
5613
5717
|
// Remove " Region" suffix
|
|
5614
5718
|
type: "Point"
|
|
5615
5719
|
// Mongoose GeoJSON type
|
|
@@ -7647,6 +7751,8 @@ export {
|
|
|
7647
7751
|
useGetEventsByRegion,
|
|
7648
7752
|
useGetEventsNearMe,
|
|
7649
7753
|
useGetGoogleImportedMarkets,
|
|
7754
|
+
useGetGoogleImportedMarketsByRegion,
|
|
7755
|
+
useGetGoogleImportedMarketsNearMe,
|
|
7650
7756
|
useGetNotificationCount,
|
|
7651
7757
|
useGetNotificationCountSubscription,
|
|
7652
7758
|
useGetPartner,
|
|
@@ -7698,6 +7804,7 @@ export {
|
|
|
7698
7804
|
useResetPassword,
|
|
7699
7805
|
useResetPasswordForm,
|
|
7700
7806
|
useSearchEvents,
|
|
7807
|
+
useSearchGoogleImportedMarkets,
|
|
7701
7808
|
useSearchPartners,
|
|
7702
7809
|
useSearchVendors,
|
|
7703
7810
|
useSelectPackage,
|