@timardex/cluemart-shared 1.3.90 → 1.3.92

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.
@@ -199,13 +199,21 @@ declare const useGetEvents: () => {
199
199
  };
200
200
  declare const useGetEvent: (_id: string) => {
201
201
  error: _apollo_client.ApolloError | undefined;
202
- event: EventType | undefined;
202
+ event: EventType | null;
203
203
  loading: boolean;
204
204
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
205
- event: EventType;
205
+ event: EventType | null;
206
206
  }>>;
207
207
  };
208
- declare const useGetEventsByRegion: (region: string) => {
208
+ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
209
+ error: _apollo_client.ApolloError | undefined;
210
+ eventByPlaceId: EventType | null;
211
+ loading: boolean;
212
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
213
+ eventByPlaceId: EventType | null;
214
+ }>>;
215
+ };
216
+ declare const useGetEventsByRegion: (region: string, onlyClaimed?: boolean) => {
209
217
  error: _apollo_client.ApolloError | undefined;
210
218
  eventsByRegion: EventListItemType[];
211
219
  loading: boolean;
@@ -898,4 +906,4 @@ declare const useGetAppSettings: () => {
898
906
  }>>;
899
907
  };
900
908
 
901
- 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, useGetSubscriptionPlans, 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 };
909
+ 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, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, 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 };
@@ -199,13 +199,21 @@ declare const useGetEvents: () => {
199
199
  };
200
200
  declare const useGetEvent: (_id: string) => {
201
201
  error: _apollo_client.ApolloError | undefined;
202
- event: EventType | undefined;
202
+ event: EventType | null;
203
203
  loading: boolean;
204
204
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
205
- event: EventType;
205
+ event: EventType | null;
206
206
  }>>;
207
207
  };
208
- declare const useGetEventsByRegion: (region: string) => {
208
+ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
209
+ error: _apollo_client.ApolloError | undefined;
210
+ eventByPlaceId: EventType | null;
211
+ loading: boolean;
212
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
213
+ eventByPlaceId: EventType | null;
214
+ }>>;
215
+ };
216
+ declare const useGetEventsByRegion: (region: string, onlyClaimed?: boolean) => {
209
217
  error: _apollo_client.ApolloError | undefined;
210
218
  eventsByRegion: EventListItemType[];
211
219
  loading: boolean;
@@ -898,4 +906,4 @@ declare const useGetAppSettings: () => {
898
906
  }>>;
899
907
  };
900
908
 
901
- 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, useGetSubscriptionPlans, 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 };
909
+ 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, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, 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 };
@@ -407,9 +407,17 @@ var GET_EVENT = gql3`
407
407
  }
408
408
  ${EVENT}
409
409
  `;
410
+ var GET_EVENT_BY_PLACE_ID = gql3`
411
+ query getEventByPlaceId($googlePlaceId: String!) {
412
+ eventByPlaceId(googlePlaceId: $googlePlaceId) {
413
+ ...EventFields
414
+ }
415
+ }
416
+ ${EVENT}
417
+ `;
410
418
  var GET_EVENTS_BY_REGION = gql3`
411
- query getEventsByRegion($region: String!) {
412
- eventsByRegion(region: $region) {
419
+ query getEventsByRegion($region: String!, $onlyClaimed: Boolean) {
420
+ eventsByRegion(region: $region, onlyClaimed: $onlyClaimed) {
413
421
  ...EventListItemFields
414
422
  }
415
423
  }
@@ -1454,22 +1462,28 @@ var useGetEvents = () => {
1454
1462
  return { error, events, loading, refetch };
1455
1463
  };
1456
1464
  var useGetEvent = (_id) => {
1457
- const { loading, error, data, refetch } = useQuery2(
1458
- GET_EVENT,
1459
- {
1460
- fetchPolicy: "network-only",
1461
- skip: !_id,
1462
- variables: { _id }
1463
- }
1464
- );
1465
- const event = data?.event;
1465
+ const { loading, error, data, refetch } = useQuery2(GET_EVENT, {
1466
+ fetchPolicy: "network-only",
1467
+ skip: !_id,
1468
+ variables: { _id }
1469
+ });
1470
+ const event = data?.event || null;
1466
1471
  return { error, event, loading, refetch };
1467
1472
  };
1468
- var useGetEventsByRegion = (region) => {
1473
+ var useGetEventByPlaceId = (googlePlaceId) => {
1474
+ const { loading, error, data, refetch } = useQuery2(GET_EVENT_BY_PLACE_ID, {
1475
+ fetchPolicy: "network-only",
1476
+ skip: !googlePlaceId,
1477
+ variables: { googlePlaceId }
1478
+ });
1479
+ const eventByPlaceId = data?.eventByPlaceId || null;
1480
+ return { error, eventByPlaceId, loading, refetch };
1481
+ };
1482
+ var useGetEventsByRegion = (region, onlyClaimed) => {
1469
1483
  const { loading, error, data, refetch } = useQuery2(GET_EVENTS_BY_REGION, {
1470
1484
  fetchPolicy: "no-cache",
1471
1485
  skip: !region,
1472
- variables: { region }
1486
+ variables: { onlyClaimed, region }
1473
1487
  });
1474
1488
  const eventsByRegion = data?.eventsByRegion || [];
1475
1489
  return { error, eventsByRegion, loading, refetch };
@@ -3419,6 +3433,7 @@ export {
3419
3433
  useGetChat,
3420
3434
  useGetChatSubscription,
3421
3435
  useGetEvent,
3436
+ useGetEventByPlaceId,
3422
3437
  useGetEventInfo,
3423
3438
  useGetEventRelations,
3424
3439
  useGetEvents,