@timardex/cluemart-shared 1.3.67 → 1.3.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -272,6 +272,27 @@ interface EventType extends BaseResourceType {
272
272
  relationDates: RelationDate[] | null;
273
273
  }[] | null;
274
274
  }
275
+ interface EventListItemType {
276
+ _id: string;
277
+ active: boolean;
278
+ claimed: boolean;
279
+ cover: ResourceImageType;
280
+ createdAt: Date;
281
+ dateTime: DateTimeType[];
282
+ deletedAt: Date | null;
283
+ description: string | null;
284
+ eventType: EnumEventType;
285
+ googlePlaceId?: string;
286
+ images?: ResourceImageType[] | null;
287
+ location: LocationType;
288
+ logo?: ResourceImageType | null;
289
+ name: string;
290
+ rainOrShine: boolean;
291
+ rating?: number;
292
+ region: string;
293
+ reviewCount?: number;
294
+ updatedAt: Date | null;
295
+ }
275
296
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
276
297
  _id: string;
277
298
  };
@@ -1039,6 +1060,7 @@ type GoogleImportedMarket = {
1039
1060
  businessStatus?: string;
1040
1061
  claimed: boolean;
1041
1062
  createdAt: Date;
1063
+ dateTime: DateTimeType[];
1042
1064
  goodForChildren?: boolean;
1043
1065
  goodForGroups?: boolean;
1044
1066
  googleMapsUrl?: string;
@@ -1991,16 +2013,6 @@ declare const useUpdateAppSettings: () => {
1991
2013
  loading: boolean;
1992
2014
  updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1993
2015
  };
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
-
2004
2016
  declare const useCrawlGoogleMarkets: () => {
2005
2017
  crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
2006
2018
  crawlGoogleMarkets: {
@@ -2015,36 +2027,12 @@ declare const useCrawlGoogleMarkets: () => {
2015
2027
  loading: boolean;
2016
2028
  };
2017
2029
 
2018
- declare const useGetGoogleImportedMarkets: () => {
2019
- error: _apollo_client.ApolloError | undefined;
2020
- googleImportedMarkets: GoogleImportedMarket[];
2021
- loading: boolean;
2022
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
2023
- googleImportedMarkets: GoogleImportedMarket[];
2024
- }>>;
2025
- };
2026
- declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
2027
- error: _apollo_client.ApolloError | undefined;
2028
- googleImportedMarketsByRegion: GoogleImportedMarket[];
2029
- loading: boolean;
2030
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
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) => {
2030
+ declare const useGetAppSettings: () => {
2031
+ appSettings: AppSettingsType | null;
2043
2032
  error: _apollo_client.ApolloError | undefined;
2044
- googleImportedMarketsNearMe: GoogleImportedMarket[];
2045
2033
  loading: boolean;
2046
2034
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
2047
- googleImportedMarketsNearMe: GoogleImportedMarket[];
2035
+ appSettings: AppSettingsType;
2048
2036
  }>>;
2049
2037
  };
2050
2038
 
@@ -2244,4 +2232,4 @@ declare function normalizeUrl(url: string): string;
2244
2232
  declare const licenseNiceNames: Record<EnumUserLicence, string>;
2245
2233
  declare const cluemartSocialMedia: SocialMediaType[];
2246
2234
 
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 };
2235
+ 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 EventListItemType, 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, 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 };
package/dist/index.d.ts CHANGED
@@ -272,6 +272,27 @@ interface EventType extends BaseResourceType {
272
272
  relationDates: RelationDate[] | null;
273
273
  }[] | null;
274
274
  }
275
+ interface EventListItemType {
276
+ _id: string;
277
+ active: boolean;
278
+ claimed: boolean;
279
+ cover: ResourceImageType;
280
+ createdAt: Date;
281
+ dateTime: DateTimeType[];
282
+ deletedAt: Date | null;
283
+ description: string | null;
284
+ eventType: EnumEventType;
285
+ googlePlaceId?: string;
286
+ images?: ResourceImageType[] | null;
287
+ location: LocationType;
288
+ logo?: ResourceImageType | null;
289
+ name: string;
290
+ rainOrShine: boolean;
291
+ rating?: number;
292
+ region: string;
293
+ reviewCount?: number;
294
+ updatedAt: Date | null;
295
+ }
275
296
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
276
297
  _id: string;
277
298
  };
@@ -1039,6 +1060,7 @@ type GoogleImportedMarket = {
1039
1060
  businessStatus?: string;
1040
1061
  claimed: boolean;
1041
1062
  createdAt: Date;
1063
+ dateTime: DateTimeType[];
1042
1064
  goodForChildren?: boolean;
1043
1065
  goodForGroups?: boolean;
1044
1066
  googleMapsUrl?: string;
@@ -1991,16 +2013,6 @@ declare const useUpdateAppSettings: () => {
1991
2013
  loading: boolean;
1992
2014
  updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1993
2015
  };
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
-
2004
2016
  declare const useCrawlGoogleMarkets: () => {
2005
2017
  crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
2006
2018
  crawlGoogleMarkets: {
@@ -2015,36 +2027,12 @@ declare const useCrawlGoogleMarkets: () => {
2015
2027
  loading: boolean;
2016
2028
  };
2017
2029
 
2018
- declare const useGetGoogleImportedMarkets: () => {
2019
- error: _apollo_client.ApolloError | undefined;
2020
- googleImportedMarkets: GoogleImportedMarket[];
2021
- loading: boolean;
2022
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
2023
- googleImportedMarkets: GoogleImportedMarket[];
2024
- }>>;
2025
- };
2026
- declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
2027
- error: _apollo_client.ApolloError | undefined;
2028
- googleImportedMarketsByRegion: GoogleImportedMarket[];
2029
- loading: boolean;
2030
- refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
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) => {
2030
+ declare const useGetAppSettings: () => {
2031
+ appSettings: AppSettingsType | null;
2043
2032
  error: _apollo_client.ApolloError | undefined;
2044
- googleImportedMarketsNearMe: GoogleImportedMarket[];
2045
2033
  loading: boolean;
2046
2034
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
2047
- googleImportedMarketsNearMe: GoogleImportedMarket[];
2035
+ appSettings: AppSettingsType;
2048
2036
  }>>;
2049
2037
  };
2050
2038
 
@@ -2244,4 +2232,4 @@ declare function normalizeUrl(url: string): string;
2244
2232
  declare const licenseNiceNames: Record<EnumUserLicence, string>;
2245
2233
  declare const cluemartSocialMedia: SocialMediaType[];
2246
2234
 
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 };
2235
+ 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 EventListItemType, 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, 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 };
package/dist/index.mjs CHANGED
@@ -2528,13 +2528,49 @@ var EVENT = gql3`
2528
2528
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2529
2529
  ${RELATION_DATES_FRAGMENT}
2530
2530
  `;
2531
+ var EVENT_LIST_ITEM = gql3`
2532
+ fragment EventListItemFields on EventListItemType {
2533
+ _id
2534
+ active
2535
+ claimed
2536
+ cover {
2537
+ ...ResourceImageFields
2538
+ }
2539
+ createdAt
2540
+ dateTime {
2541
+ ...EventDateTimeFields
2542
+ }
2543
+ deletedAt
2544
+ description
2545
+ eventType
2546
+ googlePlaceId
2547
+ images {
2548
+ ...ResourceImageFields
2549
+ }
2550
+ location {
2551
+ ...LocationFields
2552
+ }
2553
+ logo {
2554
+ ...ResourceImageFields
2555
+ }
2556
+ name
2557
+ rainOrShine
2558
+ rating
2559
+ region
2560
+ reviewCount
2561
+ updatedAt
2562
+ }
2563
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
2564
+ ${LOCATION_FIELDS_FRAGMENT}
2565
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2566
+ `;
2531
2567
  var GET_EVENTS = gql3`
2532
2568
  query getEvents {
2533
2569
  events {
2534
2570
  ...EventFields
2535
2571
  }
2536
2572
  }
2537
- ${EVENT}
2573
+ ${EVENT_LIST_ITEM}
2538
2574
  `;
2539
2575
  var GET_EVENT = gql3`
2540
2576
  query getEvent($_id: ID!) {
@@ -2550,7 +2586,7 @@ var GET_EVENTS_BY_REGION = gql3`
2550
2586
  ...EventFields
2551
2587
  }
2552
2588
  }
2553
- ${EVENT}
2589
+ ${EVENT_LIST_ITEM}
2554
2590
  `;
2555
2591
  var SEARCH_EVENTS = gql3`
2556
2592
  query searchEvents($search: String!, $region: String) {
@@ -2558,7 +2594,7 @@ var SEARCH_EVENTS = gql3`
2558
2594
  ...EventFields
2559
2595
  }
2560
2596
  }
2561
- ${EVENT}
2597
+ ${EVENT_LIST_ITEM}
2562
2598
  `;
2563
2599
  var GET_EVENTS_NEAR_ME = gql3`
2564
2600
  query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
@@ -2566,7 +2602,7 @@ var GET_EVENTS_NEAR_ME = gql3`
2566
2602
  ...EventFields
2567
2603
  }
2568
2604
  }
2569
- ${EVENT}
2605
+ ${EVENT_LIST_ITEM}
2570
2606
  `;
2571
2607
  var GET_EVENT_INFO = gql3`
2572
2608
  query getEventInfo($eventId: ID!) {
@@ -3534,7 +3570,7 @@ var GET_USER_ACTIVITIES = gql13`
3534
3570
  }
3535
3571
  }
3536
3572
  }
3537
- ${EVENT}
3573
+ ${EVENT_LIST_ITEM}
3538
3574
  ${VENDOR}
3539
3575
  ${USER_ACTIVITY_EVENT_FRAGMENT}
3540
3576
  `;
@@ -4015,7 +4051,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
4015
4051
  }
4016
4052
  }
4017
4053
  ${VENDOR}
4018
- ${EVENT}
4054
+ ${EVENT_LIST_ITEM}
4019
4055
  `;
4020
4056
 
4021
4057
  // src/graphql/mutations/relation.ts
@@ -5443,6 +5479,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql33`
5443
5479
  updateAppSettings(input: $input)
5444
5480
  }
5445
5481
  `;
5482
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
5483
+ mutation crawlGoogleMarkets {
5484
+ crawlGoogleMarkets {
5485
+ message
5486
+ }
5487
+ }
5488
+ `;
5446
5489
 
5447
5490
  // src/graphql/queries/appSettings.ts
5448
5491
  import { gql as gql34 } from "@apollo/client";
@@ -5475,6 +5518,10 @@ var useUpdateAppSettings = () => {
5475
5518
  );
5476
5519
  return { error, loading, updateAppSettings };
5477
5520
  };
5521
+ var useCrawlGoogleMarkets = () => {
5522
+ const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
5523
+ return { crawlGoogleMarkets, error, loading };
5524
+ };
5478
5525
 
5479
5526
  // src/graphql/hooks/appSettings/hooksQuery.ts
5480
5527
  import { useQuery as useQuery13 } from "@apollo/client";
@@ -5486,152 +5533,6 @@ var useGetAppSettings = () => {
5486
5533
  return { appSettings, error, loading, refetch };
5487
5534
  };
5488
5535
 
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
5595
- var useGetGoogleImportedMarkets = () => {
5596
- const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
5597
- fetchPolicy: "network-only"
5598
- });
5599
- const googleImportedMarkets = data?.googleImportedMarkets || [];
5600
- return { error, googleImportedMarkets, loading, refetch };
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
- };
5634
-
5635
5536
  // src/hooks/useLocationSearch.ts
5636
5537
  var handleApiError = (error, message) => {
5637
5538
  console.error(message, error);
@@ -7750,9 +7651,6 @@ export {
7750
7651
  useGetEvents,
7751
7652
  useGetEventsByRegion,
7752
7653
  useGetEventsNearMe,
7753
- useGetGoogleImportedMarkets,
7754
- useGetGoogleImportedMarketsByRegion,
7755
- useGetGoogleImportedMarketsNearMe,
7756
7654
  useGetNotificationCount,
7757
7655
  useGetNotificationCountSubscription,
7758
7656
  useGetPartner,
@@ -7804,7 +7702,6 @@ export {
7804
7702
  useResetPassword,
7805
7703
  useResetPasswordForm,
7806
7704
  useSearchEvents,
7807
- useSearchGoogleImportedMarkets,
7808
7705
  useSearchPartners,
7809
7706
  useSearchVendors,
7810
7707
  useSelectPackage,