@timardex/cluemart-shared 1.3.68 → 1.3.70
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-D72tKUrK.d.mts} +1 -1
- package/dist/{auth-BD8pG4QE.d.ts → auth-XiA_tJLF.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-CbccsHaO.d.mts} +16 -9
- package/dist/{global-BKEcBQxZ.d.ts → global-tKKfQw2k.d.ts} +16 -9
- package/dist/graphql/index.cjs +62 -204
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +13 -47
- package/dist/graphql/index.d.ts +13 -47
- package/dist/graphql/index.mjs +62 -200
- 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 +62 -204
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -52
- package/dist/index.d.ts +25 -52
- package/dist/index.mjs +62 -200
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DHDZfAmJ.d.mts → post-B_FljglL.d.mts} +1 -1
- package/dist/{post-Bwr2i2Qq.d.ts → post-DQPe7Dsu.d.ts} +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/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
|
|
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 EventListItemType, g as UserLicenceType } from '../global-CbccsHaO.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-B_FljglL.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -640,13 +640,13 @@ declare const useGetUserActivities: () => {
|
|
|
640
640
|
vendors: VendorType[];
|
|
641
641
|
};
|
|
642
642
|
going: {
|
|
643
|
-
events:
|
|
643
|
+
events: EventListItemType[];
|
|
644
644
|
};
|
|
645
645
|
interested: {
|
|
646
|
-
events:
|
|
646
|
+
events: EventListItemType[];
|
|
647
647
|
};
|
|
648
648
|
present: {
|
|
649
|
-
events:
|
|
649
|
+
events: EventListItemType[];
|
|
650
650
|
};
|
|
651
651
|
};
|
|
652
652
|
}>>;
|
|
@@ -656,13 +656,13 @@ declare const useGetUserActivities: () => {
|
|
|
656
656
|
vendors: VendorType[];
|
|
657
657
|
};
|
|
658
658
|
going: {
|
|
659
|
-
events:
|
|
659
|
+
events: EventListItemType[];
|
|
660
660
|
};
|
|
661
661
|
interested: {
|
|
662
|
-
events:
|
|
662
|
+
events: EventListItemType[];
|
|
663
663
|
};
|
|
664
664
|
present: {
|
|
665
|
-
events:
|
|
665
|
+
events: EventListItemType[];
|
|
666
666
|
};
|
|
667
667
|
};
|
|
668
668
|
};
|
|
@@ -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
|
|
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 EventListItemType, g as UserLicenceType } from '../global-tKKfQw2k.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-DQPe7Dsu.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -640,13 +640,13 @@ declare const useGetUserActivities: () => {
|
|
|
640
640
|
vendors: VendorType[];
|
|
641
641
|
};
|
|
642
642
|
going: {
|
|
643
|
-
events:
|
|
643
|
+
events: EventListItemType[];
|
|
644
644
|
};
|
|
645
645
|
interested: {
|
|
646
|
-
events:
|
|
646
|
+
events: EventListItemType[];
|
|
647
647
|
};
|
|
648
648
|
present: {
|
|
649
|
-
events:
|
|
649
|
+
events: EventListItemType[];
|
|
650
650
|
};
|
|
651
651
|
};
|
|
652
652
|
}>>;
|
|
@@ -656,13 +656,13 @@ declare const useGetUserActivities: () => {
|
|
|
656
656
|
vendors: VendorType[];
|
|
657
657
|
};
|
|
658
658
|
going: {
|
|
659
|
-
events:
|
|
659
|
+
events: EventListItemType[];
|
|
660
660
|
};
|
|
661
661
|
interested: {
|
|
662
|
-
events:
|
|
662
|
+
events: EventListItemType[];
|
|
663
663
|
};
|
|
664
664
|
present: {
|
|
665
|
-
events:
|
|
665
|
+
events: EventListItemType[];
|
|
666
666
|
};
|
|
667
667
|
};
|
|
668
668
|
};
|
|
@@ -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
|
@@ -242,6 +242,42 @@ var LOCATION_FIELDS_FRAGMENT = gql2`
|
|
|
242
242
|
type
|
|
243
243
|
}
|
|
244
244
|
`;
|
|
245
|
+
var EVENT_LIST_ITEM = gql2`
|
|
246
|
+
fragment EventListItemFields on EventListItemType {
|
|
247
|
+
_id
|
|
248
|
+
active
|
|
249
|
+
claimed
|
|
250
|
+
cover {
|
|
251
|
+
...ResourceImageFields
|
|
252
|
+
}
|
|
253
|
+
createdAt
|
|
254
|
+
dateTime {
|
|
255
|
+
...EventDateTimeFields
|
|
256
|
+
}
|
|
257
|
+
deletedAt
|
|
258
|
+
description
|
|
259
|
+
eventType
|
|
260
|
+
googlePlaceId
|
|
261
|
+
images {
|
|
262
|
+
...ResourceImageFields
|
|
263
|
+
}
|
|
264
|
+
location {
|
|
265
|
+
...LocationFields
|
|
266
|
+
}
|
|
267
|
+
logo {
|
|
268
|
+
...ResourceImageFields
|
|
269
|
+
}
|
|
270
|
+
name
|
|
271
|
+
rainOrShine
|
|
272
|
+
rating
|
|
273
|
+
region
|
|
274
|
+
reviewCount
|
|
275
|
+
updatedAt
|
|
276
|
+
}
|
|
277
|
+
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
278
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
279
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
280
|
+
`;
|
|
245
281
|
|
|
246
282
|
// src/graphql/queries/event.ts
|
|
247
283
|
var EVENT_INFO = gql3`
|
|
@@ -347,10 +383,10 @@ var EVENT = gql3`
|
|
|
347
383
|
var GET_EVENTS = gql3`
|
|
348
384
|
query getEvents {
|
|
349
385
|
events {
|
|
350
|
-
...
|
|
386
|
+
...EventListItemFields
|
|
351
387
|
}
|
|
352
388
|
}
|
|
353
|
-
${
|
|
389
|
+
${EVENT_LIST_ITEM}
|
|
354
390
|
`;
|
|
355
391
|
var GET_EVENT = gql3`
|
|
356
392
|
query getEvent($_id: ID!) {
|
|
@@ -363,26 +399,26 @@ var GET_EVENT = gql3`
|
|
|
363
399
|
var GET_EVENTS_BY_REGION = gql3`
|
|
364
400
|
query getEventsByRegion($region: String!) {
|
|
365
401
|
eventsByRegion(region: $region) {
|
|
366
|
-
...
|
|
402
|
+
...EventListItemFields
|
|
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) {
|
|
373
409
|
eventsSearch(search: $search, region: $region) {
|
|
374
|
-
...
|
|
410
|
+
...EventListItemFields
|
|
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) {
|
|
381
417
|
eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
|
|
382
|
-
...
|
|
418
|
+
...EventListItemFields
|
|
383
419
|
}
|
|
384
420
|
}
|
|
385
|
-
${
|
|
421
|
+
${EVENT_LIST_ITEM}
|
|
386
422
|
`;
|
|
387
423
|
var GET_EVENT_INFO = gql3`
|
|
388
424
|
query getEventInfo($eventId: ID!) {
|
|
@@ -1252,36 +1288,6 @@ var SEARCH_PARTNERS = gql12`
|
|
|
1252
1288
|
`;
|
|
1253
1289
|
|
|
1254
1290
|
// src/graphql/queries/user.ts
|
|
1255
|
-
var USER_ACTIVITY_EVENT_FRAGMENT = gql13`
|
|
1256
|
-
fragment UserActivityEventFields on UserActivityEventType {
|
|
1257
|
-
_id
|
|
1258
|
-
active
|
|
1259
|
-
cover {
|
|
1260
|
-
...ResourceImageFields
|
|
1261
|
-
}
|
|
1262
|
-
dateTime {
|
|
1263
|
-
...EventDateTimeFields
|
|
1264
|
-
}
|
|
1265
|
-
description
|
|
1266
|
-
eventType
|
|
1267
|
-
location {
|
|
1268
|
-
...LocationFields
|
|
1269
|
-
}
|
|
1270
|
-
logo {
|
|
1271
|
-
...ResourceImageFields
|
|
1272
|
-
}
|
|
1273
|
-
name
|
|
1274
|
-
rainOrShine
|
|
1275
|
-
region
|
|
1276
|
-
socialMedia {
|
|
1277
|
-
...SocialMediaFields
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
1281
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
1282
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1283
|
-
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
1284
|
-
`;
|
|
1285
1291
|
var GET_USERS = gql13`
|
|
1286
1292
|
query getUsers {
|
|
1287
1293
|
users {
|
|
@@ -1327,7 +1333,7 @@ var GET_USER_ACTIVITIES = gql13`
|
|
|
1327
1333
|
userActivities {
|
|
1328
1334
|
favourites {
|
|
1329
1335
|
events {
|
|
1330
|
-
...
|
|
1336
|
+
...EventListItemFields
|
|
1331
1337
|
}
|
|
1332
1338
|
vendors {
|
|
1333
1339
|
...VendorFields
|
|
@@ -1335,24 +1341,23 @@ var GET_USER_ACTIVITIES = gql13`
|
|
|
1335
1341
|
}
|
|
1336
1342
|
going {
|
|
1337
1343
|
events {
|
|
1338
|
-
...
|
|
1344
|
+
...EventListItemFields
|
|
1339
1345
|
}
|
|
1340
1346
|
}
|
|
1341
1347
|
interested {
|
|
1342
1348
|
events {
|
|
1343
|
-
...
|
|
1349
|
+
...EventListItemFields
|
|
1344
1350
|
}
|
|
1345
1351
|
}
|
|
1346
1352
|
present {
|
|
1347
1353
|
events {
|
|
1348
|
-
...
|
|
1354
|
+
...EventListItemFields
|
|
1349
1355
|
}
|
|
1350
1356
|
}
|
|
1351
1357
|
}
|
|
1352
1358
|
}
|
|
1353
|
-
${
|
|
1359
|
+
${EVENT_LIST_ITEM}
|
|
1354
1360
|
${VENDOR}
|
|
1355
|
-
${USER_ACTIVITY_EVENT_FRAGMENT}
|
|
1356
1361
|
`;
|
|
1357
1362
|
|
|
1358
1363
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
@@ -1823,7 +1828,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
|
|
|
1823
1828
|
) {
|
|
1824
1829
|
resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
|
|
1825
1830
|
events {
|
|
1826
|
-
...
|
|
1831
|
+
...EventListItemFields
|
|
1827
1832
|
}
|
|
1828
1833
|
vendors {
|
|
1829
1834
|
...VendorFields
|
|
@@ -1831,7 +1836,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
|
|
|
1831
1836
|
}
|
|
1832
1837
|
}
|
|
1833
1838
|
${VENDOR}
|
|
1834
|
-
${
|
|
1839
|
+
${EVENT_LIST_ITEM}
|
|
1835
1840
|
`;
|
|
1836
1841
|
|
|
1837
1842
|
// src/graphql/mutations/relation.ts
|
|
@@ -3259,6 +3264,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql33`
|
|
|
3259
3264
|
updateAppSettings(input: $input)
|
|
3260
3265
|
}
|
|
3261
3266
|
`;
|
|
3267
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
|
|
3268
|
+
mutation crawlGoogleMarkets {
|
|
3269
|
+
crawlGoogleMarkets {
|
|
3270
|
+
message
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
`;
|
|
3262
3274
|
|
|
3263
3275
|
// src/graphql/queries/appSettings.ts
|
|
3264
3276
|
import { gql as gql34 } from "@apollo/client";
|
|
@@ -3291,6 +3303,10 @@ var useUpdateAppSettings = () => {
|
|
|
3291
3303
|
);
|
|
3292
3304
|
return { error, loading, updateAppSettings };
|
|
3293
3305
|
};
|
|
3306
|
+
var useCrawlGoogleMarkets = () => {
|
|
3307
|
+
const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
3308
|
+
return { crawlGoogleMarkets, error, loading };
|
|
3309
|
+
};
|
|
3294
3310
|
|
|
3295
3311
|
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3296
3312
|
import { useQuery as useQuery13 } from "@apollo/client";
|
|
@@ -3301,156 +3317,6 @@ var useGetAppSettings = () => {
|
|
|
3301
3317
|
const appSettings = data?.appSettings || null;
|
|
3302
3318
|
return { appSettings, error, loading, refetch };
|
|
3303
3319
|
};
|
|
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
|
-
dateTime {
|
|
3344
|
-
...EventDateTimeFields
|
|
3345
|
-
}
|
|
3346
|
-
goodForChildren
|
|
3347
|
-
goodForGroups
|
|
3348
|
-
googleMapsUrl
|
|
3349
|
-
googlePlaceId
|
|
3350
|
-
image
|
|
3351
|
-
importedAt
|
|
3352
|
-
liveMusic
|
|
3353
|
-
location {
|
|
3354
|
-
lat
|
|
3355
|
-
lng
|
|
3356
|
-
}
|
|
3357
|
-
name
|
|
3358
|
-
openingHours
|
|
3359
|
-
parkingOptions
|
|
3360
|
-
paymentOptions
|
|
3361
|
-
phone
|
|
3362
|
-
photos
|
|
3363
|
-
rating
|
|
3364
|
-
region
|
|
3365
|
-
restroom
|
|
3366
|
-
reviewCount
|
|
3367
|
-
slug
|
|
3368
|
-
updatedAt
|
|
3369
|
-
website
|
|
3370
|
-
}
|
|
3371
|
-
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
3372
|
-
`;
|
|
3373
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
3374
|
-
query getGoogleImportedMarkets {
|
|
3375
|
-
googleImportedMarkets {
|
|
3376
|
-
...GoogleImportedMarketsFields
|
|
3377
|
-
}
|
|
3378
|
-
}
|
|
3379
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3380
|
-
`;
|
|
3381
|
-
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql36`
|
|
3382
|
-
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
3383
|
-
googleImportedMarketsByRegion(region: $region) {
|
|
3384
|
-
...GoogleImportedMarketsFields
|
|
3385
|
-
}
|
|
3386
|
-
}
|
|
3387
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3388
|
-
`;
|
|
3389
|
-
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
3390
|
-
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
3391
|
-
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
3392
|
-
...GoogleImportedMarketsFields
|
|
3393
|
-
}
|
|
3394
|
-
}
|
|
3395
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3396
|
-
`;
|
|
3397
|
-
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql36`
|
|
3398
|
-
query getGoogleImportedMarketsNearMe(
|
|
3399
|
-
$latitude: Float!
|
|
3400
|
-
$longitude: Float!
|
|
3401
|
-
$radius: Int
|
|
3402
|
-
) {
|
|
3403
|
-
googleImportedMarketsNearMe(
|
|
3404
|
-
lat: $latitude
|
|
3405
|
-
lng: $longitude
|
|
3406
|
-
radius: $radius
|
|
3407
|
-
) {
|
|
3408
|
-
...GoogleImportedMarketsFields
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3412
|
-
`;
|
|
3413
|
-
|
|
3414
|
-
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
3415
|
-
var useGetGoogleImportedMarkets = () => {
|
|
3416
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
|
|
3417
|
-
fetchPolicy: "network-only"
|
|
3418
|
-
});
|
|
3419
|
-
const googleImportedMarkets = data?.googleImportedMarkets || [];
|
|
3420
|
-
return { error, googleImportedMarkets, loading, refetch };
|
|
3421
|
-
};
|
|
3422
|
-
var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
3423
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
|
|
3424
|
-
fetchPolicy: "network-only",
|
|
3425
|
-
skip: !region,
|
|
3426
|
-
variables: { region }
|
|
3427
|
-
});
|
|
3428
|
-
const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
|
|
3429
|
-
return { error, googleImportedMarketsByRegion, loading, refetch };
|
|
3430
|
-
};
|
|
3431
|
-
var useSearchGoogleImportedMarkets = (search, region) => {
|
|
3432
|
-
const { loading, error, data, refetch } = useQuery14(SEARCH_GOOGLE_IMPORTED_MARKETS, {
|
|
3433
|
-
fetchPolicy: "network-only",
|
|
3434
|
-
skip: search.length < 3,
|
|
3435
|
-
variables: { region, search }
|
|
3436
|
-
});
|
|
3437
|
-
const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
|
|
3438
|
-
return { error, googleImportedMarketsSearch, loading, refetch };
|
|
3439
|
-
};
|
|
3440
|
-
var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
|
|
3441
|
-
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
|
|
3442
|
-
fetchPolicy: "network-only",
|
|
3443
|
-
skip: !latitude || !longitude,
|
|
3444
|
-
variables: {
|
|
3445
|
-
latitude,
|
|
3446
|
-
longitude,
|
|
3447
|
-
radius: radius || 1e4
|
|
3448
|
-
// Default to 10km if no radius is provided
|
|
3449
|
-
}
|
|
3450
|
-
});
|
|
3451
|
-
const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
|
|
3452
|
-
return { error, googleImportedMarketsNearMe, loading, refetch };
|
|
3453
|
-
};
|
|
3454
3320
|
export {
|
|
3455
3321
|
useAddParticipantToChat,
|
|
3456
3322
|
useAddUserFavouriteResource,
|
|
@@ -3505,9 +3371,6 @@ export {
|
|
|
3505
3371
|
useGetEvents,
|
|
3506
3372
|
useGetEventsByRegion,
|
|
3507
3373
|
useGetEventsNearMe,
|
|
3508
|
-
useGetGoogleImportedMarkets,
|
|
3509
|
-
useGetGoogleImportedMarketsByRegion,
|
|
3510
|
-
useGetGoogleImportedMarketsNearMe,
|
|
3511
3374
|
useGetNotificationCount,
|
|
3512
3375
|
useGetNotificationCountSubscription,
|
|
3513
3376
|
useGetPartner,
|
|
@@ -3552,7 +3415,6 @@ export {
|
|
|
3552
3415
|
useRequestPasswordReset,
|
|
3553
3416
|
useResetPassword,
|
|
3554
3417
|
useSearchEvents,
|
|
3555
|
-
useSearchGoogleImportedMarkets,
|
|
3556
3418
|
useSearchPartners,
|
|
3557
3419
|
useSearchVendors,
|
|
3558
3420
|
useSelectPackage,
|