@timardex/cluemart-shared 1.5.633 → 1.5.635

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 (42) hide show
  1. package/dist/{auth-CUd-VUEN.d.ts → auth-BHqJ27id.d.ts} +1 -1
  2. package/dist/{auth-BG7u9KHu.d.mts → auth-BJpF_-cS.d.mts} +1 -1
  3. package/dist/{chunk-YJSJHGZT.mjs → chunk-NMN2GAEP.mjs} +46 -17
  4. package/dist/chunk-NMN2GAEP.mjs.map +1 -0
  5. package/dist/{chunk-UXTUWVQB.mjs → chunk-WVUM6765.mjs} +1 -1
  6. package/dist/chunk-WVUM6765.mjs.map +1 -0
  7. package/dist/formFields/index.d.mts +1 -1
  8. package/dist/formFields/index.d.ts +1 -1
  9. package/dist/{global-Brbdg9ob.d.ts → global-C0oWABvh.d.ts} +6 -1
  10. package/dist/{global-CI5OK3U9.d.mts → global-DkXf399E.d.mts} +6 -1
  11. package/dist/graphql/index.cjs +45 -16
  12. package/dist/graphql/index.cjs.map +1 -1
  13. package/dist/graphql/index.d.mts +31 -12
  14. package/dist/graphql/index.d.ts +31 -12
  15. package/dist/graphql/index.mjs +1 -1
  16. package/dist/hooks/index.cjs +16 -7
  17. package/dist/hooks/index.cjs.map +1 -1
  18. package/dist/hooks/index.d.mts +3 -3
  19. package/dist/hooks/index.d.ts +3 -3
  20. package/dist/hooks/index.mjs +3 -3
  21. package/dist/hooks/index.mjs.map +1 -1
  22. package/dist/index.cjs +46 -17
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.mts +33 -9
  25. package/dist/index.d.ts +33 -9
  26. package/dist/index.mjs +46 -17
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/{post-B3XIgDei.d.ts → post-BPn_I16W.d.ts} +1 -1
  29. package/dist/{post-WSgS-zIK.d.mts → post-DUUhy0Rd.d.mts} +1 -1
  30. package/dist/{resourceActivities-Bv3pAH9H.d.ts → resourceActivities-CpGhukwk.d.ts} +1 -1
  31. package/dist/{resourceActivities-Br97kzRe.d.mts → resourceActivities-M-23xcpt.d.mts} +1 -1
  32. package/dist/sharing/index.d.mts +1 -1
  33. package/dist/sharing/index.d.ts +1 -1
  34. package/dist/types/index.cjs.map +1 -1
  35. package/dist/types/index.d.mts +5 -5
  36. package/dist/types/index.d.ts +5 -5
  37. package/dist/types/index.mjs +1 -1
  38. package/dist/utils/index.d.mts +1 -1
  39. package/dist/utils/index.d.ts +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunk-UXTUWVQB.mjs.map +0 -1
  42. package/dist/chunk-YJSJHGZT.mjs.map +0 -1
@@ -389,5 +389,10 @@ interface CreateFormData<T extends FieldValues> {
389
389
  watch: UseFormWatch<T>;
390
390
  getValues: UseFormGetValues<T>;
391
391
  }
392
+ interface UseGetResourcesByRegionOptions {
393
+ onlyClaimed?: boolean;
394
+ limit?: number;
395
+ offset?: number;
396
+ }
392
397
 
393
- export { type UnregisteredVendorInvitationType as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PosterUsageType as H, type ImageObjectType as I, type PromoCodeType as J, type Region as K, type LocationType as L, type RelationDate as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type ResourceContactDetailsType as Q, type RefundPolicy as R, type StallType as S, type ResourceDetails as T, type UnregisteredVendorType as U, type VendorType as V, type ResourceImageType as W, type SocialMediaType as X, type Subcategory as Y, type SubcategoryItems as Z, type TermsAgreement as _, type FormDateField as a, type VendorAttributes as a0, type VendorCalendarData as a1, type VendorProductList as a2, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type UserLicenceType as h, type VendorFormData as i, type CreateVendorFormData as j, type VendorInfoFormData as k, type CreateVendorInfoFormData as l, type UnregisteredVendorFormData as m, type CreateUnregisteredVendorFormData as n, type EventFormData as o, type CreateEventFormData as p, type EventInfoFormData as q, type CreateEventInfoFormData as r, type BaseResourceType as s, type CreateFormData as t, type DateTimeWithPriceType as u, type DeviceInfo as v, type EventStatusType as w, type LocationGeoType as x, type OwnerType as y, type PaymentInfoType as z };
398
+ export { type TermsAgreement as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PaymentInfoType as H, type ImageObjectType as I, type PosterUsageType as J, type PromoCodeType as K, type LocationType as L, type Region as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type RelationDate as Q, type RefundPolicy as R, type StallType as S, type ResourceContactDetailsType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, type ResourceDetails as W, type ResourceImageType as X, type SocialMediaType as Y, type Subcategory as Z, type SubcategoryItems as _, type FormDateField as a, type UnregisteredVendorInvitationType as a0, type VendorAttributes as a1, type VendorCalendarData as a2, type VendorProductList as a3, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type VendorFormData as j, type CreateVendorFormData as k, type VendorInfoFormData as l, type CreateVendorInfoFormData as m, type UnregisteredVendorFormData as n, type CreateUnregisteredVendorFormData as o, type EventFormData as p, type CreateEventFormData as q, type EventInfoFormData as r, type CreateEventInfoFormData as s, type BaseResourceType as t, type CreateFormData as u, type DateTimeWithPriceType as v, type DeviceInfo as w, type EventStatusType as x, type LocationGeoType as y, type OwnerType as z };
@@ -389,5 +389,10 @@ interface CreateFormData<T extends FieldValues> {
389
389
  watch: UseFormWatch<T>;
390
390
  getValues: UseFormGetValues<T>;
391
391
  }
392
+ interface UseGetResourcesByRegionOptions {
393
+ onlyClaimed?: boolean;
394
+ limit?: number;
395
+ offset?: number;
396
+ }
392
397
 
393
- export { type UnregisteredVendorInvitationType as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PosterUsageType as H, type ImageObjectType as I, type PromoCodeType as J, type Region as K, type LocationType as L, type RelationDate as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type ResourceContactDetailsType as Q, type RefundPolicy as R, type StallType as S, type ResourceDetails as T, type UnregisteredVendorType as U, type VendorType as V, type ResourceImageType as W, type SocialMediaType as X, type Subcategory as Y, type SubcategoryItems as Z, type TermsAgreement as _, type FormDateField as a, type VendorAttributes as a0, type VendorCalendarData as a1, type VendorProductList as a2, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type UserLicenceType as h, type VendorFormData as i, type CreateVendorFormData as j, type VendorInfoFormData as k, type CreateVendorInfoFormData as l, type UnregisteredVendorFormData as m, type CreateUnregisteredVendorFormData as n, type EventFormData as o, type CreateEventFormData as p, type EventInfoFormData as q, type CreateEventInfoFormData as r, type BaseResourceType as s, type CreateFormData as t, type DateTimeWithPriceType as u, type DeviceInfo as v, type EventStatusType as w, type LocationGeoType as x, type OwnerType as y, type PaymentInfoType as z };
398
+ export { type TermsAgreement as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PaymentInfoType as H, type ImageObjectType as I, type PosterUsageType as J, type PromoCodeType as K, type LocationType as L, type Region as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type RelationDate as Q, type RefundPolicy as R, type StallType as S, type ResourceContactDetailsType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, type ResourceDetails as W, type ResourceImageType as X, type SocialMediaType as Y, type Subcategory as Z, type SubcategoryItems as _, type FormDateField as a, type UnregisteredVendorInvitationType as a0, type VendorAttributes as a1, type VendorCalendarData as a2, type VendorProductList as a3, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type VendorFormData as j, type CreateVendorFormData as k, type VendorInfoFormData as l, type CreateVendorInfoFormData as m, type UnregisteredVendorFormData as n, type CreateUnregisteredVendorFormData as o, type EventFormData as p, type CreateEventFormData as q, type EventInfoFormData as r, type CreateEventInfoFormData as s, type BaseResourceType as t, type CreateFormData as u, type DateTimeWithPriceType as v, type DeviceInfo as w, type EventStatusType as x, type LocationGeoType as y, type OwnerType as z };
@@ -590,7 +590,10 @@ var GET_EVENT_BY_PLACE_ID = import_client3.gql`
590
590
  ${EVENT_LIST_ITEM}
591
591
  `;
592
592
  var GET_EVENTS_BY_REGION = import_client3.gql`
593
- query getEventsByRegion($region: String!, $options: EventsByRegionOptions) {
593
+ query getEventsByRegion(
594
+ $region: String!
595
+ $options: ResourcesByRegionOptions
596
+ ) {
594
597
  eventsByRegion(region: $region, options: $options) {
595
598
  ...EventListItemFields
596
599
  }
@@ -598,7 +601,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
598
601
  ${EVENT_LIST_ITEM}
599
602
  `;
600
603
  var SEARCH_EVENTS = import_client3.gql`
601
- query searchEvents($region: String, $search: String,$tags: [String]) {
604
+ query searchEvents($region: String, $search: String, $tags: [String]) {
602
605
  eventsSearch(region: $region, search: $search, tags: $tags) {
603
606
  ...EventListItemFields
604
607
  }
@@ -825,8 +828,11 @@ var GET_VENDOR = import_client4.gql`
825
828
  ${VENDOR}
826
829
  `;
827
830
  var GET_VENDORS_BY_REGION = import_client4.gql`
828
- query getVendorsByRegion($region: String!) {
829
- vendorsByRegion(region: $region) {
831
+ query getVendorsByRegion(
832
+ $region: String!
833
+ $options: ResourcesByRegionOptions
834
+ ) {
835
+ vendorsByRegion(region: $region, options: $options) {
830
836
  ...VendorFields
831
837
  }
832
838
  }
@@ -1498,8 +1504,11 @@ var GET_PARTNER = import_client16.gql`
1498
1504
  ${PARTNER}
1499
1505
  `;
1500
1506
  var GET_PARTNERS_BY_REGION = import_client16.gql`
1501
- query getPartnersByRegion($region: String!) {
1502
- partnersByRegion(region: $region) {
1507
+ query getPartnersByRegion(
1508
+ $region: String!
1509
+ $options: ResourcesByRegionOptions
1510
+ ) {
1511
+ partnersByRegion(region: $region, options: $options) {
1503
1512
  ...PartnerFields
1504
1513
  }
1505
1514
  }
@@ -2520,14 +2529,24 @@ var useGetVendor = (_id) => {
2520
2529
  const vendor = data?.vendor;
2521
2530
  return { error, loading, refetch, vendor };
2522
2531
  };
2523
- var useGetVendorsByRegion = (region) => {
2524
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
2525
- fetchPolicy: "no-cache",
2532
+ var useGetVendorsByRegion = (region, options) => {
2533
+ const variables = {
2534
+ options,
2535
+ region
2536
+ };
2537
+ const { loading, error, data, refetch, fetchMore } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
2538
+ fetchPolicy: "network-only",
2526
2539
  skip: !region || region === "",
2527
- variables: { region }
2540
+ variables
2528
2541
  });
2529
2542
  const vendorsByRegion = data?.vendorsByRegion || [];
2530
- return { error, loading, refetch, vendorsByRegion };
2543
+ return {
2544
+ error,
2545
+ fetchMore,
2546
+ loading,
2547
+ refetch,
2548
+ vendorsByRegion
2549
+ };
2531
2550
  };
2532
2551
  var useSearchVendors = (search, region) => {
2533
2552
  const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
@@ -3376,14 +3395,24 @@ var useGetPartner = (_id) => {
3376
3395
  const partner = data?.partner;
3377
3396
  return { error, loading, partner, refetch };
3378
3397
  };
3379
- var useGetPartnersByRegion = (region) => {
3380
- const { loading, error, data, refetch } = (0, import_client54.useQuery)(GET_PARTNERS_BY_REGION, {
3381
- fetchPolicy: "no-cache",
3398
+ var useGetPartnersByRegion = (region, options) => {
3399
+ const variables = {
3400
+ options,
3401
+ region
3402
+ };
3403
+ const { loading, error, data, refetch, fetchMore } = (0, import_client54.useQuery)(GET_PARTNERS_BY_REGION, {
3404
+ fetchPolicy: "network-only",
3382
3405
  skip: !region || region === "",
3383
- variables: { region }
3406
+ variables
3384
3407
  });
3385
3408
  const partnersByRegion = data?.partnersByRegion || [];
3386
- return { error, loading, partnersByRegion, refetch };
3409
+ return {
3410
+ error,
3411
+ fetchMore,
3412
+ loading,
3413
+ partnersByRegion,
3414
+ refetch
3415
+ };
3387
3416
  };
3388
3417
  var useSearchPartners = (search, region) => {
3389
3418
  const { loading, error, data, refetch } = (0, import_client54.useQuery)(SEARCH_PARTNERS, {