@timardex/cluemart-shared 1.3.68 → 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/{auth-Cp-vzzpW.d.mts → auth-pdudyfxP.d.mts} +1 -1
- package/dist/{auth-BD8pG4QE.d.ts → auth-w594NZnG.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-DjZooB3t.d.mts → global-BT6II8Dq.d.mts} +22 -1
- package/dist/{global-BKEcBQxZ.d.ts → global-Di91-yYC.d.ts} +22 -1
- package/dist/graphql/index.cjs +53 -164
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +7 -41
- package/dist/graphql/index.d.ts +7 -41
- package/dist/graphql/index.mjs +53 -160
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/index.cjs +53 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -38
- package/dist/index.d.ts +25 -38
- package/dist/index.mjs +53 -160
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Bwr2i2Qq.d.ts → post-AmkOYBMx.d.ts} +1 -1
- package/dist/{post-DHDZfAmJ.d.mts → post-D1JWtkFg.d.mts} +1 -1
- package/dist/{googleImportedMarket-6kBUp2yE.d.mts → resourceActivities-CJRTZROh.d.mts} +1 -43
- package/dist/{googleImportedMarket-Ckdoji3C.d.ts → resourceActivities-CVwxvGeC.d.ts} +1 -43
- package/dist/types/index.d.mts +47 -5
- package/dist/types/index.d.ts +47 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
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
|
};
|
|
@@ -1992,16 +2013,6 @@ declare const useUpdateAppSettings: () => {
|
|
|
1992
2013
|
loading: boolean;
|
|
1993
2014
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1994
2015
|
};
|
|
1995
|
-
|
|
1996
|
-
declare const useGetAppSettings: () => {
|
|
1997
|
-
appSettings: AppSettingsType | null;
|
|
1998
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1999
|
-
loading: boolean;
|
|
2000
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2001
|
-
appSettings: AppSettingsType;
|
|
2002
|
-
}>>;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
2016
|
declare const useCrawlGoogleMarkets: () => {
|
|
2006
2017
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2007
2018
|
crawlGoogleMarkets: {
|
|
@@ -2016,36 +2027,12 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
2016
2027
|
loading: boolean;
|
|
2017
2028
|
};
|
|
2018
2029
|
|
|
2019
|
-
declare const
|
|
2020
|
-
|
|
2021
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
2022
|
-
loading: boolean;
|
|
2023
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2024
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
2025
|
-
}>>;
|
|
2026
|
-
};
|
|
2027
|
-
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
2028
|
-
error: _apollo_client.ApolloError | undefined;
|
|
2029
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2030
|
-
loading: boolean;
|
|
2031
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2032
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2033
|
-
}>>;
|
|
2034
|
-
};
|
|
2035
|
-
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
2036
|
-
error: _apollo_client.ApolloError | undefined;
|
|
2037
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2038
|
-
loading: boolean;
|
|
2039
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2040
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2041
|
-
}>>;
|
|
2042
|
-
};
|
|
2043
|
-
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
2030
|
+
declare const useGetAppSettings: () => {
|
|
2031
|
+
appSettings: AppSettingsType | null;
|
|
2044
2032
|
error: _apollo_client.ApolloError | undefined;
|
|
2045
|
-
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
2046
2033
|
loading: boolean;
|
|
2047
2034
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2048
|
-
|
|
2035
|
+
appSettings: AppSettingsType;
|
|
2049
2036
|
}>>;
|
|
2050
2037
|
};
|
|
2051
2038
|
|
|
@@ -2245,4 +2232,4 @@ declare function normalizeUrl(url: string): string;
|
|
|
2245
2232
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2246
2233
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2247
2234
|
|
|
2248
|
-
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,
|
|
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
|
};
|
|
@@ -1992,16 +2013,6 @@ declare const useUpdateAppSettings: () => {
|
|
|
1992
2013
|
loading: boolean;
|
|
1993
2014
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1994
2015
|
};
|
|
1995
|
-
|
|
1996
|
-
declare const useGetAppSettings: () => {
|
|
1997
|
-
appSettings: AppSettingsType | null;
|
|
1998
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1999
|
-
loading: boolean;
|
|
2000
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2001
|
-
appSettings: AppSettingsType;
|
|
2002
|
-
}>>;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
2016
|
declare const useCrawlGoogleMarkets: () => {
|
|
2006
2017
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2007
2018
|
crawlGoogleMarkets: {
|
|
@@ -2016,36 +2027,12 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
2016
2027
|
loading: boolean;
|
|
2017
2028
|
};
|
|
2018
2029
|
|
|
2019
|
-
declare const
|
|
2020
|
-
|
|
2021
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
2022
|
-
loading: boolean;
|
|
2023
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2024
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
2025
|
-
}>>;
|
|
2026
|
-
};
|
|
2027
|
-
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
2028
|
-
error: _apollo_client.ApolloError | undefined;
|
|
2029
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2030
|
-
loading: boolean;
|
|
2031
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2032
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
2033
|
-
}>>;
|
|
2034
|
-
};
|
|
2035
|
-
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
2036
|
-
error: _apollo_client.ApolloError | undefined;
|
|
2037
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2038
|
-
loading: boolean;
|
|
2039
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2040
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
2041
|
-
}>>;
|
|
2042
|
-
};
|
|
2043
|
-
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
2030
|
+
declare const useGetAppSettings: () => {
|
|
2031
|
+
appSettings: AppSettingsType | null;
|
|
2044
2032
|
error: _apollo_client.ApolloError | undefined;
|
|
2045
|
-
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
2046
2033
|
loading: boolean;
|
|
2047
2034
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
2048
|
-
|
|
2035
|
+
appSettings: AppSettingsType;
|
|
2049
2036
|
}>>;
|
|
2050
2037
|
};
|
|
2051
2038
|
|
|
@@ -2245,4 +2232,4 @@ declare function normalizeUrl(url: string): string;
|
|
|
2245
2232
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2246
2233
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2247
2234
|
|
|
2248
|
-
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,
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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,156 +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
|
-
dateTime {
|
|
5528
|
-
...EventDateTimeFields
|
|
5529
|
-
}
|
|
5530
|
-
goodForChildren
|
|
5531
|
-
goodForGroups
|
|
5532
|
-
googleMapsUrl
|
|
5533
|
-
googlePlaceId
|
|
5534
|
-
image
|
|
5535
|
-
importedAt
|
|
5536
|
-
liveMusic
|
|
5537
|
-
location {
|
|
5538
|
-
lat
|
|
5539
|
-
lng
|
|
5540
|
-
}
|
|
5541
|
-
name
|
|
5542
|
-
openingHours
|
|
5543
|
-
parkingOptions
|
|
5544
|
-
paymentOptions
|
|
5545
|
-
phone
|
|
5546
|
-
photos
|
|
5547
|
-
rating
|
|
5548
|
-
region
|
|
5549
|
-
restroom
|
|
5550
|
-
reviewCount
|
|
5551
|
-
slug
|
|
5552
|
-
updatedAt
|
|
5553
|
-
website
|
|
5554
|
-
}
|
|
5555
|
-
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
5556
|
-
`;
|
|
5557
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
5558
|
-
query getGoogleImportedMarkets {
|
|
5559
|
-
googleImportedMarkets {
|
|
5560
|
-
...GoogleImportedMarketsFields
|
|
5561
|
-
}
|
|
5562
|
-
}
|
|
5563
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5564
|
-
`;
|
|
5565
|
-
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql36`
|
|
5566
|
-
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
5567
|
-
googleImportedMarketsByRegion(region: $region) {
|
|
5568
|
-
...GoogleImportedMarketsFields
|
|
5569
|
-
}
|
|
5570
|
-
}
|
|
5571
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5572
|
-
`;
|
|
5573
|
-
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
5574
|
-
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
5575
|
-
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
5576
|
-
...GoogleImportedMarketsFields
|
|
5577
|
-
}
|
|
5578
|
-
}
|
|
5579
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5580
|
-
`;
|
|
5581
|
-
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql36`
|
|
5582
|
-
query getGoogleImportedMarketsNearMe(
|
|
5583
|
-
$latitude: Float!
|
|
5584
|
-
$longitude: Float!
|
|
5585
|
-
$radius: Int
|
|
5586
|
-
) {
|
|
5587
|
-
googleImportedMarketsNearMe(
|
|
5588
|
-
lat: $latitude
|
|
5589
|
-
lng: $longitude
|
|
5590
|
-
radius: $radius
|
|
5591
|
-
) {
|
|
5592
|
-
...GoogleImportedMarketsFields
|
|
5593
|
-
}
|
|
5594
|
-
}
|
|
5595
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
5596
|
-
`;
|
|
5597
|
-
|
|
5598
|
-
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
5599
|
-
var useGetGoogleImportedMarkets = () => {
|
|
5600
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
|
|
5601
|
-
fetchPolicy: "network-only"
|
|
5602
|
-
});
|
|
5603
|
-
const googleImportedMarkets = data?.googleImportedMarkets || [];
|
|
5604
|
-
return { error, googleImportedMarkets, loading, refetch };
|
|
5605
|
-
};
|
|
5606
|
-
var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
5607
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
|
|
5608
|
-
fetchPolicy: "network-only",
|
|
5609
|
-
skip: !region,
|
|
5610
|
-
variables: { region }
|
|
5611
|
-
});
|
|
5612
|
-
const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
|
|
5613
|
-
return { error, googleImportedMarketsByRegion, loading, refetch };
|
|
5614
|
-
};
|
|
5615
|
-
var useSearchGoogleImportedMarkets = (search, region) => {
|
|
5616
|
-
const { loading, error, data, refetch } = useQuery14(SEARCH_GOOGLE_IMPORTED_MARKETS, {
|
|
5617
|
-
fetchPolicy: "network-only",
|
|
5618
|
-
skip: search.length < 3,
|
|
5619
|
-
variables: { region, search }
|
|
5620
|
-
});
|
|
5621
|
-
const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
|
|
5622
|
-
return { error, googleImportedMarketsSearch, loading, refetch };
|
|
5623
|
-
};
|
|
5624
|
-
var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
|
|
5625
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
|
|
5626
|
-
fetchPolicy: "network-only",
|
|
5627
|
-
skip: !latitude || !longitude,
|
|
5628
|
-
variables: {
|
|
5629
|
-
latitude,
|
|
5630
|
-
longitude,
|
|
5631
|
-
radius: radius || 1e4
|
|
5632
|
-
// Default to 10km if no radius is provided
|
|
5633
|
-
}
|
|
5634
|
-
});
|
|
5635
|
-
const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
|
|
5636
|
-
return { error, googleImportedMarketsNearMe, loading, refetch };
|
|
5637
|
-
};
|
|
5638
|
-
|
|
5639
5536
|
// src/hooks/useLocationSearch.ts
|
|
5640
5537
|
var handleApiError = (error, message) => {
|
|
5641
5538
|
console.error(message, error);
|
|
@@ -7754,9 +7651,6 @@ export {
|
|
|
7754
7651
|
useGetEvents,
|
|
7755
7652
|
useGetEventsByRegion,
|
|
7756
7653
|
useGetEventsNearMe,
|
|
7757
|
-
useGetGoogleImportedMarkets,
|
|
7758
|
-
useGetGoogleImportedMarketsByRegion,
|
|
7759
|
-
useGetGoogleImportedMarketsNearMe,
|
|
7760
7654
|
useGetNotificationCount,
|
|
7761
7655
|
useGetNotificationCountSubscription,
|
|
7762
7656
|
useGetPartner,
|
|
@@ -7808,7 +7702,6 @@ export {
|
|
|
7808
7702
|
useResetPassword,
|
|
7809
7703
|
useResetPasswordForm,
|
|
7810
7704
|
useSearchEvents,
|
|
7811
|
-
useSearchGoogleImportedMarkets,
|
|
7812
7705
|
useSearchPartners,
|
|
7813
7706
|
useSearchVendors,
|
|
7814
7707
|
useSelectPackage,
|