@timardex/cluemart-shared 1.3.72 → 1.3.73

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.
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
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-BAP95-Jh.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-8m11ia1u.mjs';
4
+ import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-Dcnzbzvv.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-DktxiaUW.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -191,10 +191,10 @@ declare const useUpdateEventInfo: () => {
191
191
 
192
192
  declare const useGetEvents: () => {
193
193
  error: _apollo_client.ApolloError | undefined;
194
- events: EventType[];
194
+ events: EventListItemType[];
195
195
  loading: boolean;
196
196
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
197
- events: EventType[];
197
+ events: EventListItemType[];
198
198
  }>>;
199
199
  };
200
200
  declare const useGetEvent: (_id: string) => {
@@ -207,18 +207,18 @@ declare const useGetEvent: (_id: string) => {
207
207
  };
208
208
  declare const useGetEventsByRegion: (region: string) => {
209
209
  error: _apollo_client.ApolloError | undefined;
210
- eventsByRegion: EventType[];
210
+ eventsByRegion: EventListItemType[];
211
211
  loading: boolean;
212
212
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
213
- eventsByRegion: EventType[];
213
+ eventsByRegion: EventListItemType[];
214
214
  }>>;
215
215
  };
216
216
  declare const useSearchEvents: (search: string, region: string) => {
217
217
  error: _apollo_client.ApolloError | undefined;
218
- eventsSearch: EventType[];
218
+ eventsSearch: EventListItemType[];
219
219
  loading: boolean;
220
220
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
221
- eventsSearch: EventType[];
221
+ eventsSearch: EventListItemType[];
222
222
  }>>;
223
223
  };
224
224
  declare const useGetEventsNearMe: (location: {
@@ -227,10 +227,10 @@ declare const useGetEventsNearMe: (location: {
227
227
  radius?: number;
228
228
  }) => {
229
229
  error: _apollo_client.ApolloError | undefined;
230
- eventsNearMe: EventType[];
230
+ eventsNearMe: EventListItemType[];
231
231
  loading: boolean;
232
232
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
233
- eventsNearMe: EventType[];
233
+ eventsNearMe: EventListItemType[];
234
234
  }>>;
235
235
  };
236
236
  declare const useGetEventInfo: (eventId: string) => {
@@ -636,7 +636,7 @@ declare const useGetUserActivities: () => {
636
636
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
637
637
  userActivities: {
638
638
  favourites: {
639
- events: EventType[];
639
+ events: EventListItemType[];
640
640
  vendors: VendorType[];
641
641
  };
642
642
  going: {
@@ -652,7 +652,7 @@ declare const useGetUserActivities: () => {
652
652
  }>>;
653
653
  userActivities: {
654
654
  favourites: {
655
- events: EventType[];
655
+ events: EventListItemType[];
656
656
  vendors: VendorType[];
657
657
  };
658
658
  going: {
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
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-CZFlP3JK.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-U8yX-D4F.js';
4
+ import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-sRP-50jD.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-Dy8piocE.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -191,10 +191,10 @@ declare const useUpdateEventInfo: () => {
191
191
 
192
192
  declare const useGetEvents: () => {
193
193
  error: _apollo_client.ApolloError | undefined;
194
- events: EventType[];
194
+ events: EventListItemType[];
195
195
  loading: boolean;
196
196
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
197
- events: EventType[];
197
+ events: EventListItemType[];
198
198
  }>>;
199
199
  };
200
200
  declare const useGetEvent: (_id: string) => {
@@ -207,18 +207,18 @@ declare const useGetEvent: (_id: string) => {
207
207
  };
208
208
  declare const useGetEventsByRegion: (region: string) => {
209
209
  error: _apollo_client.ApolloError | undefined;
210
- eventsByRegion: EventType[];
210
+ eventsByRegion: EventListItemType[];
211
211
  loading: boolean;
212
212
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
213
- eventsByRegion: EventType[];
213
+ eventsByRegion: EventListItemType[];
214
214
  }>>;
215
215
  };
216
216
  declare const useSearchEvents: (search: string, region: string) => {
217
217
  error: _apollo_client.ApolloError | undefined;
218
- eventsSearch: EventType[];
218
+ eventsSearch: EventListItemType[];
219
219
  loading: boolean;
220
220
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
221
- eventsSearch: EventType[];
221
+ eventsSearch: EventListItemType[];
222
222
  }>>;
223
223
  };
224
224
  declare const useGetEventsNearMe: (location: {
@@ -227,10 +227,10 @@ declare const useGetEventsNearMe: (location: {
227
227
  radius?: number;
228
228
  }) => {
229
229
  error: _apollo_client.ApolloError | undefined;
230
- eventsNearMe: EventType[];
230
+ eventsNearMe: EventListItemType[];
231
231
  loading: boolean;
232
232
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
233
- eventsNearMe: EventType[];
233
+ eventsNearMe: EventListItemType[];
234
234
  }>>;
235
235
  };
236
236
  declare const useGetEventInfo: (eventId: string) => {
@@ -636,7 +636,7 @@ declare const useGetUserActivities: () => {
636
636
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
637
637
  userActivities: {
638
638
  favourites: {
639
- events: EventType[];
639
+ events: EventListItemType[];
640
640
  vendors: VendorType[];
641
641
  };
642
642
  going: {
@@ -652,7 +652,7 @@ declare const useGetUserActivities: () => {
652
652
  }>>;
653
653
  userActivities: {
654
654
  favourites: {
655
- events: EventType[];
655
+ events: EventListItemType[];
656
656
  vendors: VendorType[];
657
657
  };
658
658
  going: {
@@ -1432,12 +1432,9 @@ var useUpdateEventInfo = () => {
1432
1432
  // src/graphql/hooks/event/hooksQuery.ts
1433
1433
  import { useQuery as useQuery2 } from "@apollo/client";
1434
1434
  var useGetEvents = () => {
1435
- const { loading, error, data, refetch } = useQuery2(
1436
- GET_EVENTS,
1437
- {
1438
- fetchPolicy: "network-only"
1439
- }
1440
- );
1435
+ const { loading, error, data, refetch } = useQuery2(GET_EVENTS, {
1436
+ fetchPolicy: "network-only"
1437
+ });
1441
1438
  const events = data?.events || [];
1442
1439
  return { error, events, loading, refetch };
1443
1440
  };