@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/{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 -160
- 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 -156
- 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 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +26 -38
- package/dist/index.d.ts +26 -38
- package/dist/index.mjs +53 -156
- 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-D2HOg7O-.d.mts → resourceActivities-CJRTZROh.d.mts} +1 -41
- package/dist/{googleImportedMarket-BuxDo6MX.d.ts → resourceActivities-CVwxvGeC.d.ts} +1 -41
- 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/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType
|
|
4
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-
|
|
3
|
+
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
|
|
4
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-BT6II8Dq.mjs';
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-D1JWtkFg.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -867,16 +867,6 @@ declare const useUpdateAppSettings: () => {
|
|
|
867
867
|
loading: boolean;
|
|
868
868
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
869
869
|
};
|
|
870
|
-
|
|
871
|
-
declare const useGetAppSettings: () => {
|
|
872
|
-
appSettings: AppSettingsType | null;
|
|
873
|
-
error: _apollo_client.ApolloError | undefined;
|
|
874
|
-
loading: boolean;
|
|
875
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
876
|
-
appSettings: AppSettingsType;
|
|
877
|
-
}>>;
|
|
878
|
-
};
|
|
879
|
-
|
|
880
870
|
declare const useCrawlGoogleMarkets: () => {
|
|
881
871
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
882
872
|
crawlGoogleMarkets: {
|
|
@@ -891,37 +881,13 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
891
881
|
loading: boolean;
|
|
892
882
|
};
|
|
893
883
|
|
|
894
|
-
declare const
|
|
895
|
-
|
|
896
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
897
|
-
loading: boolean;
|
|
898
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
899
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
900
|
-
}>>;
|
|
901
|
-
};
|
|
902
|
-
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
903
|
-
error: _apollo_client.ApolloError | undefined;
|
|
904
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
905
|
-
loading: boolean;
|
|
906
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
907
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
908
|
-
}>>;
|
|
909
|
-
};
|
|
910
|
-
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
911
|
-
error: _apollo_client.ApolloError | undefined;
|
|
912
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
913
|
-
loading: boolean;
|
|
914
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
915
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
916
|
-
}>>;
|
|
917
|
-
};
|
|
918
|
-
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
884
|
+
declare const useGetAppSettings: () => {
|
|
885
|
+
appSettings: AppSettingsType | null;
|
|
919
886
|
error: _apollo_client.ApolloError | undefined;
|
|
920
|
-
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
921
887
|
loading: boolean;
|
|
922
888
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
923
|
-
|
|
889
|
+
appSettings: AppSettingsType;
|
|
924
890
|
}>>;
|
|
925
891
|
};
|
|
926
892
|
|
|
927
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe,
|
|
893
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType
|
|
4
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-
|
|
3
|
+
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
|
|
4
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-Di91-yYC.js';
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-AmkOYBMx.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -867,16 +867,6 @@ declare const useUpdateAppSettings: () => {
|
|
|
867
867
|
loading: boolean;
|
|
868
868
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
869
869
|
};
|
|
870
|
-
|
|
871
|
-
declare const useGetAppSettings: () => {
|
|
872
|
-
appSettings: AppSettingsType | null;
|
|
873
|
-
error: _apollo_client.ApolloError | undefined;
|
|
874
|
-
loading: boolean;
|
|
875
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
876
|
-
appSettings: AppSettingsType;
|
|
877
|
-
}>>;
|
|
878
|
-
};
|
|
879
|
-
|
|
880
870
|
declare const useCrawlGoogleMarkets: () => {
|
|
881
871
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
882
872
|
crawlGoogleMarkets: {
|
|
@@ -891,37 +881,13 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
891
881
|
loading: boolean;
|
|
892
882
|
};
|
|
893
883
|
|
|
894
|
-
declare const
|
|
895
|
-
|
|
896
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
897
|
-
loading: boolean;
|
|
898
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
899
|
-
googleImportedMarkets: GoogleImportedMarket[];
|
|
900
|
-
}>>;
|
|
901
|
-
};
|
|
902
|
-
declare const useGetGoogleImportedMarketsByRegion: (region: string) => {
|
|
903
|
-
error: _apollo_client.ApolloError | undefined;
|
|
904
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
905
|
-
loading: boolean;
|
|
906
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
907
|
-
googleImportedMarketsByRegion: GoogleImportedMarket[];
|
|
908
|
-
}>>;
|
|
909
|
-
};
|
|
910
|
-
declare const useSearchGoogleImportedMarkets: (search: string, region: string) => {
|
|
911
|
-
error: _apollo_client.ApolloError | undefined;
|
|
912
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
913
|
-
loading: boolean;
|
|
914
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
915
|
-
googleImportedMarketsSearch: GoogleImportedMarket[];
|
|
916
|
-
}>>;
|
|
917
|
-
};
|
|
918
|
-
declare const useGetGoogleImportedMarketsNearMe: (latitude: number, longitude: number, radius?: number) => {
|
|
884
|
+
declare const useGetAppSettings: () => {
|
|
885
|
+
appSettings: AppSettingsType | null;
|
|
919
886
|
error: _apollo_client.ApolloError | undefined;
|
|
920
|
-
googleImportedMarketsNearMe: GoogleImportedMarket[];
|
|
921
887
|
loading: boolean;
|
|
922
888
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
923
|
-
|
|
889
|
+
appSettings: AppSettingsType;
|
|
924
890
|
}>>;
|
|
925
891
|
};
|
|
926
892
|
|
|
927
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe,
|
|
893
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -344,13 +344,49 @@ var EVENT = gql3`
|
|
|
344
344
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
345
345
|
${RELATION_DATES_FRAGMENT}
|
|
346
346
|
`;
|
|
347
|
+
var EVENT_LIST_ITEM = gql3`
|
|
348
|
+
fragment EventListItemFields on EventListItemType {
|
|
349
|
+
_id
|
|
350
|
+
active
|
|
351
|
+
claimed
|
|
352
|
+
cover {
|
|
353
|
+
...ResourceImageFields
|
|
354
|
+
}
|
|
355
|
+
createdAt
|
|
356
|
+
dateTime {
|
|
357
|
+
...EventDateTimeFields
|
|
358
|
+
}
|
|
359
|
+
deletedAt
|
|
360
|
+
description
|
|
361
|
+
eventType
|
|
362
|
+
googlePlaceId
|
|
363
|
+
images {
|
|
364
|
+
...ResourceImageFields
|
|
365
|
+
}
|
|
366
|
+
location {
|
|
367
|
+
...LocationFields
|
|
368
|
+
}
|
|
369
|
+
logo {
|
|
370
|
+
...ResourceImageFields
|
|
371
|
+
}
|
|
372
|
+
name
|
|
373
|
+
rainOrShine
|
|
374
|
+
rating
|
|
375
|
+
region
|
|
376
|
+
reviewCount
|
|
377
|
+
updatedAt
|
|
378
|
+
}
|
|
379
|
+
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
380
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
381
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
382
|
+
`;
|
|
347
383
|
var GET_EVENTS = gql3`
|
|
348
384
|
query getEvents {
|
|
349
385
|
events {
|
|
350
386
|
...EventFields
|
|
351
387
|
}
|
|
352
388
|
}
|
|
353
|
-
${
|
|
389
|
+
${EVENT_LIST_ITEM}
|
|
354
390
|
`;
|
|
355
391
|
var GET_EVENT = gql3`
|
|
356
392
|
query getEvent($_id: ID!) {
|
|
@@ -366,7 +402,7 @@ var GET_EVENTS_BY_REGION = gql3`
|
|
|
366
402
|
...EventFields
|
|
367
403
|
}
|
|
368
404
|
}
|
|
369
|
-
${
|
|
405
|
+
${EVENT_LIST_ITEM}
|
|
370
406
|
`;
|
|
371
407
|
var SEARCH_EVENTS = gql3`
|
|
372
408
|
query searchEvents($search: String!, $region: String) {
|
|
@@ -374,7 +410,7 @@ var SEARCH_EVENTS = gql3`
|
|
|
374
410
|
...EventFields
|
|
375
411
|
}
|
|
376
412
|
}
|
|
377
|
-
${
|
|
413
|
+
${EVENT_LIST_ITEM}
|
|
378
414
|
`;
|
|
379
415
|
var GET_EVENTS_NEAR_ME = gql3`
|
|
380
416
|
query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
|
|
@@ -382,7 +418,7 @@ var GET_EVENTS_NEAR_ME = gql3`
|
|
|
382
418
|
...EventFields
|
|
383
419
|
}
|
|
384
420
|
}
|
|
385
|
-
${
|
|
421
|
+
${EVENT_LIST_ITEM}
|
|
386
422
|
`;
|
|
387
423
|
var GET_EVENT_INFO = gql3`
|
|
388
424
|
query getEventInfo($eventId: ID!) {
|
|
@@ -1350,7 +1386,7 @@ var GET_USER_ACTIVITIES = gql13`
|
|
|
1350
1386
|
}
|
|
1351
1387
|
}
|
|
1352
1388
|
}
|
|
1353
|
-
${
|
|
1389
|
+
${EVENT_LIST_ITEM}
|
|
1354
1390
|
${VENDOR}
|
|
1355
1391
|
${USER_ACTIVITY_EVENT_FRAGMENT}
|
|
1356
1392
|
`;
|
|
@@ -1831,7 +1867,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
|
|
|
1831
1867
|
}
|
|
1832
1868
|
}
|
|
1833
1869
|
${VENDOR}
|
|
1834
|
-
${
|
|
1870
|
+
${EVENT_LIST_ITEM}
|
|
1835
1871
|
`;
|
|
1836
1872
|
|
|
1837
1873
|
// src/graphql/mutations/relation.ts
|
|
@@ -3259,6 +3295,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql33`
|
|
|
3259
3295
|
updateAppSettings(input: $input)
|
|
3260
3296
|
}
|
|
3261
3297
|
`;
|
|
3298
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
|
|
3299
|
+
mutation crawlGoogleMarkets {
|
|
3300
|
+
crawlGoogleMarkets {
|
|
3301
|
+
message
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
`;
|
|
3262
3305
|
|
|
3263
3306
|
// src/graphql/queries/appSettings.ts
|
|
3264
3307
|
import { gql as gql34 } from "@apollo/client";
|
|
@@ -3291,6 +3334,10 @@ var useUpdateAppSettings = () => {
|
|
|
3291
3334
|
);
|
|
3292
3335
|
return { error, loading, updateAppSettings };
|
|
3293
3336
|
};
|
|
3337
|
+
var useCrawlGoogleMarkets = () => {
|
|
3338
|
+
const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
3339
|
+
return { crawlGoogleMarkets, error, loading };
|
|
3340
|
+
};
|
|
3294
3341
|
|
|
3295
3342
|
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3296
3343
|
import { useQuery as useQuery13 } from "@apollo/client";
|
|
@@ -3301,152 +3348,6 @@ var useGetAppSettings = () => {
|
|
|
3301
3348
|
const appSettings = data?.appSettings || null;
|
|
3302
3349
|
return { appSettings, error, loading, refetch };
|
|
3303
3350
|
};
|
|
3304
|
-
|
|
3305
|
-
// src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
|
|
3306
|
-
import { useMutation as useMutation19 } from "@apollo/client";
|
|
3307
|
-
|
|
3308
|
-
// src/graphql/mutations/googleImportedMarkets.ts
|
|
3309
|
-
import { gql as gql35 } from "@apollo/client";
|
|
3310
|
-
var CRAWL_GOOGLE_MARKETS_MUTATION = gql35`
|
|
3311
|
-
mutation crawlGoogleMarkets {
|
|
3312
|
-
crawlGoogleMarkets {
|
|
3313
|
-
message
|
|
3314
|
-
}
|
|
3315
|
-
}
|
|
3316
|
-
`;
|
|
3317
|
-
|
|
3318
|
-
// src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
|
|
3319
|
-
var useCrawlGoogleMarkets = () => {
|
|
3320
|
-
const [crawlGoogleMarkets, { loading, error }] = useMutation19(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
3321
|
-
return { crawlGoogleMarkets, error, loading };
|
|
3322
|
-
};
|
|
3323
|
-
|
|
3324
|
-
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
3325
|
-
import { useQuery as useQuery14 } from "@apollo/client";
|
|
3326
|
-
|
|
3327
|
-
// src/graphql/queries/googleImportedMarkets.ts
|
|
3328
|
-
import { gql as gql36 } from "@apollo/client";
|
|
3329
|
-
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql36`
|
|
3330
|
-
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
3331
|
-
_id
|
|
3332
|
-
accessibilityOptions
|
|
3333
|
-
address
|
|
3334
|
-
addressComponents {
|
|
3335
|
-
longName
|
|
3336
|
-
shortName
|
|
3337
|
-
types
|
|
3338
|
-
}
|
|
3339
|
-
allowsDogs
|
|
3340
|
-
businessStatus
|
|
3341
|
-
claimed
|
|
3342
|
-
createdAt
|
|
3343
|
-
goodForChildren
|
|
3344
|
-
goodForGroups
|
|
3345
|
-
googleMapsUrl
|
|
3346
|
-
googlePlaceId
|
|
3347
|
-
image
|
|
3348
|
-
importedAt
|
|
3349
|
-
liveMusic
|
|
3350
|
-
location {
|
|
3351
|
-
lat
|
|
3352
|
-
lng
|
|
3353
|
-
}
|
|
3354
|
-
name
|
|
3355
|
-
openingHours
|
|
3356
|
-
parkingOptions
|
|
3357
|
-
paymentOptions
|
|
3358
|
-
phone
|
|
3359
|
-
photos
|
|
3360
|
-
rating
|
|
3361
|
-
region
|
|
3362
|
-
restroom
|
|
3363
|
-
reviewCount
|
|
3364
|
-
slug
|
|
3365
|
-
updatedAt
|
|
3366
|
-
website
|
|
3367
|
-
}
|
|
3368
|
-
`;
|
|
3369
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
3370
|
-
query getGoogleImportedMarkets {
|
|
3371
|
-
googleImportedMarkets {
|
|
3372
|
-
...GoogleImportedMarketsFields
|
|
3373
|
-
}
|
|
3374
|
-
}
|
|
3375
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3376
|
-
`;
|
|
3377
|
-
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql36`
|
|
3378
|
-
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
3379
|
-
googleImportedMarketsByRegion(region: $region) {
|
|
3380
|
-
...GoogleImportedMarketsFields
|
|
3381
|
-
}
|
|
3382
|
-
}
|
|
3383
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3384
|
-
`;
|
|
3385
|
-
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
3386
|
-
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
3387
|
-
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
3388
|
-
...GoogleImportedMarketsFields
|
|
3389
|
-
}
|
|
3390
|
-
}
|
|
3391
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3392
|
-
`;
|
|
3393
|
-
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql36`
|
|
3394
|
-
query getGoogleImportedMarketsNearMe(
|
|
3395
|
-
$latitude: Float!
|
|
3396
|
-
$longitude: Float!
|
|
3397
|
-
$radius: Int
|
|
3398
|
-
) {
|
|
3399
|
-
googleImportedMarketsNearMe(
|
|
3400
|
-
lat: $latitude
|
|
3401
|
-
lng: $longitude
|
|
3402
|
-
radius: $radius
|
|
3403
|
-
) {
|
|
3404
|
-
...GoogleImportedMarketsFields
|
|
3405
|
-
}
|
|
3406
|
-
}
|
|
3407
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3408
|
-
`;
|
|
3409
|
-
|
|
3410
|
-
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
3411
|
-
var useGetGoogleImportedMarkets = () => {
|
|
3412
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
|
|
3413
|
-
fetchPolicy: "network-only"
|
|
3414
|
-
});
|
|
3415
|
-
const googleImportedMarkets = data?.googleImportedMarkets || [];
|
|
3416
|
-
return { error, googleImportedMarkets, loading, refetch };
|
|
3417
|
-
};
|
|
3418
|
-
var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
3419
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
|
|
3420
|
-
fetchPolicy: "network-only",
|
|
3421
|
-
skip: !region,
|
|
3422
|
-
variables: { region }
|
|
3423
|
-
});
|
|
3424
|
-
const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
|
|
3425
|
-
return { error, googleImportedMarketsByRegion, loading, refetch };
|
|
3426
|
-
};
|
|
3427
|
-
var useSearchGoogleImportedMarkets = (search, region) => {
|
|
3428
|
-
const { loading, error, data, refetch } = useQuery14(SEARCH_GOOGLE_IMPORTED_MARKETS, {
|
|
3429
|
-
fetchPolicy: "network-only",
|
|
3430
|
-
skip: search.length < 3,
|
|
3431
|
-
variables: { region, search }
|
|
3432
|
-
});
|
|
3433
|
-
const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
|
|
3434
|
-
return { error, googleImportedMarketsSearch, loading, refetch };
|
|
3435
|
-
};
|
|
3436
|
-
var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
|
|
3437
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
|
|
3438
|
-
fetchPolicy: "network-only",
|
|
3439
|
-
skip: !latitude || !longitude,
|
|
3440
|
-
variables: {
|
|
3441
|
-
latitude,
|
|
3442
|
-
longitude,
|
|
3443
|
-
radius: radius || 1e4
|
|
3444
|
-
// Default to 10km if no radius is provided
|
|
3445
|
-
}
|
|
3446
|
-
});
|
|
3447
|
-
const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
|
|
3448
|
-
return { error, googleImportedMarketsNearMe, loading, refetch };
|
|
3449
|
-
};
|
|
3450
3351
|
export {
|
|
3451
3352
|
useAddParticipantToChat,
|
|
3452
3353
|
useAddUserFavouriteResource,
|
|
@@ -3501,9 +3402,6 @@ export {
|
|
|
3501
3402
|
useGetEvents,
|
|
3502
3403
|
useGetEventsByRegion,
|
|
3503
3404
|
useGetEventsNearMe,
|
|
3504
|
-
useGetGoogleImportedMarkets,
|
|
3505
|
-
useGetGoogleImportedMarketsByRegion,
|
|
3506
|
-
useGetGoogleImportedMarketsNearMe,
|
|
3507
3405
|
useGetNotificationCount,
|
|
3508
3406
|
useGetNotificationCountSubscription,
|
|
3509
3407
|
useGetPartner,
|
|
@@ -3548,7 +3446,6 @@ export {
|
|
|
3548
3446
|
useRequestPasswordReset,
|
|
3549
3447
|
useResetPassword,
|
|
3550
3448
|
useSearchEvents,
|
|
3551
|
-
useSearchGoogleImportedMarkets,
|
|
3552
3449
|
useSearchPartners,
|
|
3553
3450
|
useSearchVendors,
|
|
3554
3451
|
useSelectPackage,
|