@timardex/cluemart-shared 1.5.721 → 1.5.722

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.
Files changed (38) hide show
  1. package/dist/{chunk-6B75Q67V.mjs → chunk-4SNW63TJ.mjs} +2 -1
  2. package/dist/{chunk-6B75Q67V.mjs.map → chunk-4SNW63TJ.mjs.map} +1 -1
  3. package/dist/{chunk-KFTS32TG.mjs → chunk-HWLNH6G2.mjs} +43 -14
  4. package/dist/chunk-HWLNH6G2.mjs.map +1 -0
  5. package/dist/{chunk-PWJWWXIP.mjs → chunk-KL533AIU.mjs} +2 -2
  6. package/dist/{chunk-PRAR43V7.mjs → chunk-YAPBZ7DK.mjs} +2 -2
  7. package/dist/{chunk-JZY6HGS7.mjs → chunk-ZN5HT2J4.mjs} +3 -3
  8. package/dist/enums/index.cjs +1 -0
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +2 -1
  11. package/dist/enums/index.d.ts +2 -1
  12. package/dist/enums/index.mjs +1 -1
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/graphql/index.cjs +42 -13
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +5 -5
  18. package/dist/graphql/index.d.ts +5 -5
  19. package/dist/graphql/index.mjs +2 -2
  20. package/dist/hooks/index.cjs +33 -7
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.mjs +5 -5
  23. package/dist/index.cjs +43 -13
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.mts +6 -5
  26. package/dist/index.d.ts +6 -5
  27. package/dist/index.mjs +43 -13
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/sharing/index.cjs.map +1 -1
  30. package/dist/sharing/index.mjs +3 -3
  31. package/dist/types/index.mjs +1 -1
  32. package/dist/utils/index.cjs.map +1 -1
  33. package/dist/utils/index.mjs +2 -2
  34. package/package.json +1 -1
  35. package/dist/chunk-KFTS32TG.mjs.map +0 -1
  36. /package/dist/{chunk-PWJWWXIP.mjs.map → chunk-KL533AIU.mjs.map} +0 -0
  37. /package/dist/{chunk-PRAR43V7.mjs.map → chunk-YAPBZ7DK.mjs.map} +0 -0
  38. /package/dist/{chunk-JZY6HGS7.mjs.map → chunk-ZN5HT2J4.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { EnumResourceType } from '../enums/index.mjs';
2
+ import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
3
3
  import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-C3-IUdTA.mjs';
4
4
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
5
5
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-BEUzBSyY.mjs';
@@ -266,7 +266,7 @@ declare const useUpdateEventInfo: () => {
266
266
  }>>;
267
267
  };
268
268
 
269
- declare const useGetEvents: () => {
269
+ declare const useGetEvents: (dateStatus?: EnumEventDateStatus) => {
270
270
  error: _apollo_client.ApolloError | undefined;
271
271
  events: EventListItemType[];
272
272
  loading: boolean;
@@ -290,7 +290,7 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
290
290
  eventByPlaceId: EventListItemType | null;
291
291
  }>>;
292
292
  };
293
- declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
293
+ declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus) => {
294
294
  error: _apollo_client.ApolloError | undefined;
295
295
  eventsByRegion: EventListItemType[];
296
296
  fetchMore: <TFetchData = {
@@ -310,7 +310,7 @@ declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesBy
310
310
  eventsByRegion: EventListItemType[];
311
311
  }>>;
312
312
  };
313
- declare const useSearchEvents: (region: string, search?: string, tags?: string[]) => {
313
+ declare const useSearchEvents: (region: string, searchQuery?: string, tags?: string[], dateStatus?: EnumEventDateStatus) => {
314
314
  error: _apollo_client.ApolloError | undefined;
315
315
  eventsSearch: EventListItemType[];
316
316
  loading: boolean;
@@ -322,7 +322,7 @@ declare const useGetEventsNearMe: (location: {
322
322
  latitude: number;
323
323
  longitude: number;
324
324
  radius?: number;
325
- }) => {
325
+ }, dateStatus?: EnumEventDateStatus) => {
326
326
  error: _apollo_client.ApolloError | undefined;
327
327
  eventsNearMe: EventListItemType[];
328
328
  loading: boolean;
@@ -1,5 +1,5 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { EnumResourceType } from '../enums/index.js';
2
+ import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
3
3
  import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-DmsQS24-.js';
4
4
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
5
5
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-585slmSH.js';
@@ -266,7 +266,7 @@ declare const useUpdateEventInfo: () => {
266
266
  }>>;
267
267
  };
268
268
 
269
- declare const useGetEvents: () => {
269
+ declare const useGetEvents: (dateStatus?: EnumEventDateStatus) => {
270
270
  error: _apollo_client.ApolloError | undefined;
271
271
  events: EventListItemType[];
272
272
  loading: boolean;
@@ -290,7 +290,7 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
290
290
  eventByPlaceId: EventListItemType | null;
291
291
  }>>;
292
292
  };
293
- declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
293
+ declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus) => {
294
294
  error: _apollo_client.ApolloError | undefined;
295
295
  eventsByRegion: EventListItemType[];
296
296
  fetchMore: <TFetchData = {
@@ -310,7 +310,7 @@ declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesBy
310
310
  eventsByRegion: EventListItemType[];
311
311
  }>>;
312
312
  };
313
- declare const useSearchEvents: (region: string, search?: string, tags?: string[]) => {
313
+ declare const useSearchEvents: (region: string, searchQuery?: string, tags?: string[], dateStatus?: EnumEventDateStatus) => {
314
314
  error: _apollo_client.ApolloError | undefined;
315
315
  eventsSearch: EventListItemType[];
316
316
  loading: boolean;
@@ -322,7 +322,7 @@ declare const useGetEventsNearMe: (location: {
322
322
  latitude: number;
323
323
  longitude: number;
324
324
  radius?: number;
325
- }) => {
325
+ }, dateStatus?: EnumEventDateStatus) => {
326
326
  error: _apollo_client.ApolloError | undefined;
327
327
  eventsNearMe: EventListItemType[];
328
328
  loading: boolean;
@@ -136,8 +136,8 @@ import {
136
136
  useUpdateVendor,
137
137
  useUpdateVendorInfo,
138
138
  useValidateVerificationToken
139
- } from "../chunk-KFTS32TG.mjs";
140
- import "../chunk-6B75Q67V.mjs";
139
+ } from "../chunk-HWLNH6G2.mjs";
140
+ import "../chunk-4SNW63TJ.mjs";
141
141
  export {
142
142
  useAddParticipantToChat,
143
143
  useAddUserFavouriteResource,
@@ -276,6 +276,7 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
276
276
  EnumEventDateStatus2["ENDED"] = "Ended";
277
277
  EnumEventDateStatus2["RE_SCHEDULED"] = "Rescheduled";
278
278
  EnumEventDateStatus2["CANCELED"] = "Canceled";
279
+ EnumEventDateStatus2["INVALID"] = "Invalid";
279
280
  return EnumEventDateStatus2;
280
281
  })(EnumEventDateStatus || {});
281
282
 
@@ -2693,8 +2694,8 @@ var EVENT = import_client3.gql`
2693
2694
  ${RELATION_DATES_FRAGMENT}
2694
2695
  `;
2695
2696
  var GET_EVENTS = import_client3.gql`
2696
- query getEvents {
2697
- events {
2697
+ query getEvents($dateStatus: EnumEventDateStatus) {
2698
+ events(dateStatus: $dateStatus) {
2698
2699
  ...EventListItemFields
2699
2700
  }
2700
2701
  }
@@ -2720,24 +2721,49 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
2720
2721
  query getEventsByRegion(
2721
2722
  $region: String!
2722
2723
  $options: ResourcesByRegionOptions
2724
+ $dateStatus: EnumEventDateStatus
2723
2725
  ) {
2724
- eventsByRegion(region: $region, options: $options) {
2726
+ eventsByRegion(
2727
+ region: $region
2728
+ options: $options
2729
+ dateStatus: $dateStatus
2730
+ ) {
2725
2731
  ...EventListItemFields
2726
2732
  }
2727
2733
  }
2728
2734
  ${EVENT_LIST_ITEM}
2729
2735
  `;
2730
2736
  var SEARCH_EVENTS = import_client3.gql`
2731
- query searchEvents($region: String, $search: String, $tags: [String]) {
2732
- eventsSearch(region: $region, search: $search, tags: $tags) {
2737
+ query searchEvents(
2738
+ $region: String
2739
+ $search: String
2740
+ $tags: [String]
2741
+ $dateStatus: EnumEventDateStatus
2742
+ ) {
2743
+ eventsSearch(
2744
+ region: $region
2745
+ search: $search
2746
+ tags: $tags
2747
+ dateStatus: $dateStatus
2748
+ ) {
2733
2749
  ...EventListItemFields
2734
2750
  }
2735
2751
  }
2736
2752
  ${EVENT_LIST_ITEM}
2737
2753
  `;
2738
2754
  var GET_EVENTS_NEAR_ME = import_client3.gql`
2739
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
2740
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
2755
+ query getEventsNearMe(
2756
+ $latitude: Float!
2757
+ $longitude: Float!
2758
+ $radius: Int
2759
+ $dateStatus: EnumEventDateStatus
2760
+ ) {
2761
+ eventsNearMe(
2762
+ latitude: $latitude
2763
+ longitude: $longitude
2764
+ radius: $radius
2765
+ dateStatus: $dateStatus
2766
+ ) {
2741
2767
  ...EventListItemFields
2742
2768
  }
2743
2769
  }