@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.
@@ -1,4 +1,4 @@
1
- import { z as CreateFormData, T as TermsAgreement } from './global-DjZooB3t.mjs';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-BT6II8Dq.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { z as CreateFormData, T as TermsAgreement } from './global-BKEcBQxZ.js';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-Di91-yYC.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DjZooB3t.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BT6II8Dq.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BKEcBQxZ.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-Di91-yYC.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -85,6 +85,27 @@ interface EventType extends BaseResourceType {
85
85
  relationDates: RelationDate[] | null;
86
86
  }[] | null;
87
87
  }
88
+ interface EventListItemType {
89
+ _id: string;
90
+ active: boolean;
91
+ claimed: boolean;
92
+ cover: ResourceImageType;
93
+ createdAt: Date;
94
+ dateTime: DateTimeType[];
95
+ deletedAt: Date | null;
96
+ description: string | null;
97
+ eventType: EnumEventType;
98
+ googlePlaceId?: string;
99
+ images?: ResourceImageType[] | null;
100
+ location: LocationType;
101
+ logo?: ResourceImageType | null;
102
+ name: string;
103
+ rainOrShine: boolean;
104
+ rating?: number;
105
+ region: string;
106
+ reviewCount?: number;
107
+ updatedAt: Date | null;
108
+ }
88
109
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
89
110
  _id: string;
90
111
  };
@@ -373,4 +394,4 @@ interface CreateFormData<T extends FieldValues> {
373
394
  watch: UseFormWatch<T>;
374
395
  }
375
396
 
376
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserActivityEventType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceContactDetailsType as q, ResourceImageType as r, SocialMediaType as s, OwnerType as t, BaseResourceType as u, DateTimeType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
397
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, EventListItemType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UnregisteredVendorInvitationType as Z, CreateUnregisteredVendorFormData as _, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserActivityEventType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, DeviceInfo as q, ResourceContactDetailsType as r, ResourceImageType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
@@ -85,6 +85,27 @@ interface EventType extends BaseResourceType {
85
85
  relationDates: RelationDate[] | null;
86
86
  }[] | null;
87
87
  }
88
+ interface EventListItemType {
89
+ _id: string;
90
+ active: boolean;
91
+ claimed: boolean;
92
+ cover: ResourceImageType;
93
+ createdAt: Date;
94
+ dateTime: DateTimeType[];
95
+ deletedAt: Date | null;
96
+ description: string | null;
97
+ eventType: EnumEventType;
98
+ googlePlaceId?: string;
99
+ images?: ResourceImageType[] | null;
100
+ location: LocationType;
101
+ logo?: ResourceImageType | null;
102
+ name: string;
103
+ rainOrShine: boolean;
104
+ rating?: number;
105
+ region: string;
106
+ reviewCount?: number;
107
+ updatedAt: Date | null;
108
+ }
88
109
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
89
110
  _id: string;
90
111
  };
@@ -373,4 +394,4 @@ interface CreateFormData<T extends FieldValues> {
373
394
  watch: UseFormWatch<T>;
374
395
  }
375
396
 
376
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserActivityEventType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceContactDetailsType as q, ResourceImageType as r, SocialMediaType as s, OwnerType as t, BaseResourceType as u, DateTimeType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
397
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, EventListItemType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UnregisteredVendorInvitationType as Z, CreateUnregisteredVendorFormData as _, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserActivityEventType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, DeviceInfo as q, ResourceContactDetailsType as r, ResourceImageType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
@@ -73,9 +73,6 @@ __export(graphql_exports, {
73
73
  useGetEvents: () => useGetEvents,
74
74
  useGetEventsByRegion: () => useGetEventsByRegion,
75
75
  useGetEventsNearMe: () => useGetEventsNearMe,
76
- useGetGoogleImportedMarkets: () => useGetGoogleImportedMarkets,
77
- useGetGoogleImportedMarketsByRegion: () => useGetGoogleImportedMarketsByRegion,
78
- useGetGoogleImportedMarketsNearMe: () => useGetGoogleImportedMarketsNearMe,
79
76
  useGetNotificationCount: () => useGetNotificationCount,
80
77
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
81
78
  useGetPartner: () => useGetPartner,
@@ -120,7 +117,6 @@ __export(graphql_exports, {
120
117
  useRequestPasswordReset: () => useRequestPasswordReset,
121
118
  useResetPassword: () => useResetPassword,
122
119
  useSearchEvents: () => useSearchEvents,
123
- useSearchGoogleImportedMarkets: () => useSearchGoogleImportedMarkets,
124
120
  useSearchPartners: () => useSearchPartners,
125
121
  useSearchVendors: () => useSearchVendors,
126
122
  useSelectPackage: () => useSelectPackage,
@@ -486,13 +482,49 @@ var EVENT = import_client3.gql`
486
482
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
487
483
  ${RELATION_DATES_FRAGMENT}
488
484
  `;
485
+ var EVENT_LIST_ITEM = import_client3.gql`
486
+ fragment EventListItemFields on EventListItemType {
487
+ _id
488
+ active
489
+ claimed
490
+ cover {
491
+ ...ResourceImageFields
492
+ }
493
+ createdAt
494
+ dateTime {
495
+ ...EventDateTimeFields
496
+ }
497
+ deletedAt
498
+ description
499
+ eventType
500
+ googlePlaceId
501
+ images {
502
+ ...ResourceImageFields
503
+ }
504
+ location {
505
+ ...LocationFields
506
+ }
507
+ logo {
508
+ ...ResourceImageFields
509
+ }
510
+ name
511
+ rainOrShine
512
+ rating
513
+ region
514
+ reviewCount
515
+ updatedAt
516
+ }
517
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
518
+ ${LOCATION_FIELDS_FRAGMENT}
519
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
520
+ `;
489
521
  var GET_EVENTS = import_client3.gql`
490
522
  query getEvents {
491
523
  events {
492
524
  ...EventFields
493
525
  }
494
526
  }
495
- ${EVENT}
527
+ ${EVENT_LIST_ITEM}
496
528
  `;
497
529
  var GET_EVENT = import_client3.gql`
498
530
  query getEvent($_id: ID!) {
@@ -508,7 +540,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
508
540
  ...EventFields
509
541
  }
510
542
  }
511
- ${EVENT}
543
+ ${EVENT_LIST_ITEM}
512
544
  `;
513
545
  var SEARCH_EVENTS = import_client3.gql`
514
546
  query searchEvents($search: String!, $region: String) {
@@ -516,7 +548,7 @@ var SEARCH_EVENTS = import_client3.gql`
516
548
  ...EventFields
517
549
  }
518
550
  }
519
- ${EVENT}
551
+ ${EVENT_LIST_ITEM}
520
552
  `;
521
553
  var GET_EVENTS_NEAR_ME = import_client3.gql`
522
554
  query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
@@ -524,7 +556,7 @@ var GET_EVENTS_NEAR_ME = import_client3.gql`
524
556
  ...EventFields
525
557
  }
526
558
  }
527
- ${EVENT}
559
+ ${EVENT_LIST_ITEM}
528
560
  `;
529
561
  var GET_EVENT_INFO = import_client3.gql`
530
562
  query getEventInfo($eventId: ID!) {
@@ -1492,7 +1524,7 @@ var GET_USER_ACTIVITIES = import_client18.gql`
1492
1524
  }
1493
1525
  }
1494
1526
  }
1495
- ${EVENT}
1527
+ ${EVENT_LIST_ITEM}
1496
1528
  ${VENDOR}
1497
1529
  ${USER_ACTIVITY_EVENT_FRAGMENT}
1498
1530
  `;
@@ -1973,7 +2005,7 @@ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
1973
2005
  }
1974
2006
  }
1975
2007
  ${VENDOR}
1976
- ${EVENT}
2008
+ ${EVENT_LIST_ITEM}
1977
2009
  `;
1978
2010
 
1979
2011
  // src/graphql/mutations/relation.ts
@@ -3401,6 +3433,13 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
3401
3433
  updateAppSettings(input: $input)
3402
3434
  }
3403
3435
  `;
3436
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
3437
+ mutation crawlGoogleMarkets {
3438
+ crawlGoogleMarkets {
3439
+ message
3440
+ }
3441
+ }
3442
+ `;
3404
3443
 
3405
3444
  // src/graphql/queries/appSettings.ts
3406
3445
  var import_client64 = require("@apollo/client");
@@ -3433,6 +3472,10 @@ var useUpdateAppSettings = () => {
3433
3472
  );
3434
3473
  return { error, loading, updateAppSettings };
3435
3474
  };
3475
+ var useCrawlGoogleMarkets = () => {
3476
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client65.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
3477
+ return { crawlGoogleMarkets, error, loading };
3478
+ };
3436
3479
 
3437
3480
  // src/graphql/hooks/appSettings/hooksQuery.ts
3438
3481
  var import_client66 = require("@apollo/client");
@@ -3443,152 +3486,6 @@ var useGetAppSettings = () => {
3443
3486
  const appSettings = data?.appSettings || null;
3444
3487
  return { appSettings, error, loading, refetch };
3445
3488
  };
3446
-
3447
- // src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
3448
- var import_client68 = require("@apollo/client");
3449
-
3450
- // src/graphql/mutations/googleImportedMarkets.ts
3451
- var import_client67 = require("@apollo/client");
3452
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client67.gql`
3453
- mutation crawlGoogleMarkets {
3454
- crawlGoogleMarkets {
3455
- message
3456
- }
3457
- }
3458
- `;
3459
-
3460
- // src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
3461
- var useCrawlGoogleMarkets = () => {
3462
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client68.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
3463
- return { crawlGoogleMarkets, error, loading };
3464
- };
3465
-
3466
- // src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
3467
- var import_client70 = require("@apollo/client");
3468
-
3469
- // src/graphql/queries/googleImportedMarkets.ts
3470
- var import_client69 = require("@apollo/client");
3471
- var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = import_client69.gql`
3472
- fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
3473
- _id
3474
- accessibilityOptions
3475
- address
3476
- addressComponents {
3477
- longName
3478
- shortName
3479
- types
3480
- }
3481
- allowsDogs
3482
- businessStatus
3483
- claimed
3484
- createdAt
3485
- goodForChildren
3486
- goodForGroups
3487
- googleMapsUrl
3488
- googlePlaceId
3489
- image
3490
- importedAt
3491
- liveMusic
3492
- location {
3493
- lat
3494
- lng
3495
- }
3496
- name
3497
- openingHours
3498
- parkingOptions
3499
- paymentOptions
3500
- phone
3501
- photos
3502
- rating
3503
- region
3504
- restroom
3505
- reviewCount
3506
- slug
3507
- updatedAt
3508
- website
3509
- }
3510
- `;
3511
- var GET_GOOGLE_IMPORTED_MARKETS = import_client69.gql`
3512
- query getGoogleImportedMarkets {
3513
- googleImportedMarkets {
3514
- ...GoogleImportedMarketsFields
3515
- }
3516
- }
3517
- ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3518
- `;
3519
- var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = import_client69.gql`
3520
- query getGoogleImportedMarketsByRegion($region: String!) {
3521
- googleImportedMarketsByRegion(region: $region) {
3522
- ...GoogleImportedMarketsFields
3523
- }
3524
- }
3525
- ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3526
- `;
3527
- var SEARCH_GOOGLE_IMPORTED_MARKETS = import_client69.gql`
3528
- query searchGoogleImportedMarkets($search: String!, $region: String) {
3529
- googleImportedMarketsSearch(search: $search, region: $region) {
3530
- ...GoogleImportedMarketsFields
3531
- }
3532
- }
3533
- ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3534
- `;
3535
- var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = import_client69.gql`
3536
- query getGoogleImportedMarketsNearMe(
3537
- $latitude: Float!
3538
- $longitude: Float!
3539
- $radius: Int
3540
- ) {
3541
- googleImportedMarketsNearMe(
3542
- lat: $latitude
3543
- lng: $longitude
3544
- radius: $radius
3545
- ) {
3546
- ...GoogleImportedMarketsFields
3547
- }
3548
- }
3549
- ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
3550
- `;
3551
-
3552
- // src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
3553
- var useGetGoogleImportedMarkets = () => {
3554
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GOOGLE_IMPORTED_MARKETS, {
3555
- fetchPolicy: "network-only"
3556
- });
3557
- const googleImportedMarkets = data?.googleImportedMarkets || [];
3558
- return { error, googleImportedMarkets, loading, refetch };
3559
- };
3560
- var useGetGoogleImportedMarketsByRegion = (region) => {
3561
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
3562
- fetchPolicy: "network-only",
3563
- skip: !region,
3564
- variables: { region }
3565
- });
3566
- const googleImportedMarketsByRegion = data?.googleImportedMarketsByRegion || [];
3567
- return { error, googleImportedMarketsByRegion, loading, refetch };
3568
- };
3569
- var useSearchGoogleImportedMarkets = (search, region) => {
3570
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(SEARCH_GOOGLE_IMPORTED_MARKETS, {
3571
- fetchPolicy: "network-only",
3572
- skip: search.length < 3,
3573
- variables: { region, search }
3574
- });
3575
- const googleImportedMarketsSearch = data?.googleImportedMarketsSearch || [];
3576
- return { error, googleImportedMarketsSearch, loading, refetch };
3577
- };
3578
- var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
3579
- const { loading, error, data, refetch } = (0, import_client70.useQuery)(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
3580
- fetchPolicy: "network-only",
3581
- skip: !latitude || !longitude,
3582
- variables: {
3583
- latitude,
3584
- longitude,
3585
- radius: radius || 1e4
3586
- // Default to 10km if no radius is provided
3587
- }
3588
- });
3589
- const googleImportedMarketsNearMe = data?.googleImportedMarketsNearMe || [];
3590
- return { error, googleImportedMarketsNearMe, loading, refetch };
3591
- };
3592
3489
  // Annotate the CommonJS export names for ESM import in node:
3593
3490
  0 && (module.exports = {
3594
3491
  useAddParticipantToChat,
@@ -3644,9 +3541,6 @@ var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
3644
3541
  useGetEvents,
3645
3542
  useGetEventsByRegion,
3646
3543
  useGetEventsNearMe,
3647
- useGetGoogleImportedMarkets,
3648
- useGetGoogleImportedMarketsByRegion,
3649
- useGetGoogleImportedMarketsNearMe,
3650
3544
  useGetNotificationCount,
3651
3545
  useGetNotificationCountSubscription,
3652
3546
  useGetPartner,
@@ -3691,7 +3585,6 @@ var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
3691
3585
  useRequestPasswordReset,
3692
3586
  useResetPassword,
3693
3587
  useSearchEvents,
3694
- useSearchGoogleImportedMarkets,
3695
3588
  useSearchPartners,
3696
3589
  useSearchVendors,
3697
3590
  useSelectPackage,