@timardex/cluemart-shared 1.5.767 → 1.5.769

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 (52) hide show
  1. package/dist/{ad-DCHTDsSt.d.mts → ad-8BNpjEcM.d.mts} +2 -1
  2. package/dist/{ad-Y0a_HMGC.d.ts → ad-DZGYiwY-.d.ts} +2 -1
  3. package/dist/{chunk-3U53KFHU.mjs → chunk-AKX2AGMA.mjs} +2 -2
  4. package/dist/{chunk-4YP54WNB.mjs → chunk-EEZUTQ3V.mjs} +40 -10
  5. package/dist/chunk-EEZUTQ3V.mjs.map +1 -0
  6. package/dist/{chunk-W5X2UU26.mjs → chunk-HASLOIIM.mjs} +1 -1
  7. package/dist/chunk-HASLOIIM.mjs.map +1 -0
  8. package/dist/{chunk-XYZO6N7X.mjs → chunk-HPPIA4EM.mjs} +2 -2
  9. package/dist/{chunk-AHL77AVZ.mjs → chunk-VQRZ4OJY.mjs} +2 -2
  10. package/dist/{contactUs-HfiiUgnp.d.mts → contactUs-DGrDzJaM.d.mts} +1 -1
  11. package/dist/{contactUs-kHUGKh4g.d.ts → contactUs-H7799pWe.d.ts} +1 -1
  12. package/dist/formFields/index.d.mts +1 -1
  13. package/dist/formFields/index.d.ts +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/{global-Bw5idRO_.d.mts → global-BUUfmCo7.d.mts} +15 -6
  16. package/dist/{global-CPlgw1lx.d.ts → global-fKbMmluy.d.ts} +15 -6
  17. package/dist/graphql/index.cjs +39 -9
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +3 -3
  20. package/dist/graphql/index.d.ts +3 -3
  21. package/dist/graphql/index.mjs +1 -1
  22. package/dist/hooks/index.cjs +36 -3
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.d.mts +3 -3
  25. package/dist/hooks/index.d.ts +3 -3
  26. package/dist/hooks/index.mjs +5 -5
  27. package/dist/index.cjs +39 -9
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +16 -6
  30. package/dist/index.d.ts +16 -6
  31. package/dist/index.mjs +39 -9
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/map/index.d.mts +1 -1
  34. package/dist/map/index.d.ts +1 -1
  35. package/dist/{resourceActivities-DkHxKIvs.d.ts → resourceActivities-BL_12IAo.d.ts} +1 -1
  36. package/dist/{resourceActivities-BIkkzyzp.d.mts → resourceActivities-zczOntNk.d.mts} +1 -1
  37. package/dist/sharing/index.d.mts +1 -1
  38. package/dist/sharing/index.d.ts +1 -1
  39. package/dist/sharing/index.mjs +3 -3
  40. package/dist/types/index.cjs.map +1 -1
  41. package/dist/types/index.d.mts +5 -5
  42. package/dist/types/index.d.ts +5 -5
  43. package/dist/types/index.mjs +1 -1
  44. package/dist/utils/index.d.mts +1 -1
  45. package/dist/utils/index.d.ts +1 -1
  46. package/dist/utils/index.mjs +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunk-4YP54WNB.mjs.map +0 -1
  49. package/dist/chunk-W5X2UU26.mjs.map +0 -1
  50. /package/dist/{chunk-3U53KFHU.mjs.map → chunk-AKX2AGMA.mjs.map} +0 -0
  51. /package/dist/{chunk-XYZO6N7X.mjs.map → chunk-HPPIA4EM.mjs.map} +0 -0
  52. /package/dist/{chunk-AHL77AVZ.mjs.map → chunk-VQRZ4OJY.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
2
- import { av as ResourceImageType, L as LocationType, az as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-Bw5idRO_.mjs';
2
+ import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-BUUfmCo7.mjs';
3
3
  import { PosterAssetId } from './images/index.mjs';
4
4
 
5
5
  type UserFormData = {
@@ -130,6 +130,7 @@ interface PartnerType extends BaseResourceType {
130
130
  location: LocationType;
131
131
  nzbn: string;
132
132
  partnerType: EnumPartnerType;
133
+ sharePublic?: SocialShareResourceType | null;
133
134
  }
134
135
 
135
136
  interface AppSettingsFormData {
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.js';
2
- import { av as ResourceImageType, L as LocationType, az as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-CPlgw1lx.js';
2
+ import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-fKbMmluy.js';
3
3
  import { PosterAssetId } from './images/index.js';
4
4
 
5
5
  type UserFormData = {
@@ -130,6 +130,7 @@ interface PartnerType extends BaseResourceType {
130
130
  location: LocationType;
131
131
  nzbn: string;
132
132
  partnerType: EnumPartnerType;
133
+ sharePublic?: SocialShareResourceType | null;
133
134
  }
134
135
 
135
136
  interface AppSettingsFormData {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapArrayToOptions
3
- } from "./chunk-AHL77AVZ.mjs";
3
+ } from "./chunk-VQRZ4OJY.mjs";
4
4
  import {
5
5
  EnumFoodFlavor
6
6
  } from "./chunk-4SNW63TJ.mjs";
@@ -955,4 +955,4 @@ export {
955
955
  contactUsFields,
956
956
  partnerBasicInfoFields
957
957
  };
958
- //# sourceMappingURL=chunk-3U53KFHU.mjs.map
958
+ //# sourceMappingURL=chunk-AKX2AGMA.mjs.map
@@ -284,6 +284,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
284
284
  postType
285
285
  }
286
286
  `;
287
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
288
+ fragment SocialShareResourceFields on SocialShareResourceType {
289
+ qrCode {
290
+ ...ResourceImageFields
291
+ }
292
+ socialImage {
293
+ ...ResourceImageFields
294
+ }
295
+ }
296
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
297
+ `;
287
298
 
288
299
  // src/graphql/queries/event.ts
289
300
  var EVENT_INFO = gql2`
@@ -381,6 +392,12 @@ var EVENT = gql2`
381
392
  socialMedia {
382
393
  ...SocialMediaFields
383
394
  }
395
+ sharePublic {
396
+ ...SocialShareResourceFields
397
+ }
398
+ shareRelation {
399
+ ...SocialShareResourceFields
400
+ }
384
401
  slug
385
402
  tags
386
403
  termsAgreement {
@@ -399,6 +416,7 @@ var EVENT = gql2`
399
416
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
400
417
  ${RELATION_DATES_FRAGMENT}
401
418
  ${RELATED_POST_FIELDS_FRAGMENT}
419
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
402
420
  `;
403
421
  var GET_EVENTS = gql2`
404
422
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -442,7 +460,7 @@ var GET_EVENTS_BY_REGION = gql2`
442
460
  `;
443
461
  var SEARCH_EVENTS = gql2`
444
462
  query searchEvents(
445
- $region: String
463
+ $region: String!
446
464
  $search: String
447
465
  $tags: [String]
448
466
  $dateStatus: EventDateStatusEnumType
@@ -581,6 +599,12 @@ var VENDOR = gql3`
581
599
  socialMedia {
582
600
  ...SocialMediaFields
583
601
  }
602
+ sharePublic {
603
+ ...SocialShareResourceFields
604
+ }
605
+ shareRelation {
606
+ ...SocialShareResourceFields
607
+ }
584
608
  termsAgreement {
585
609
  ...TermsAgreementFields
586
610
  }
@@ -601,6 +625,7 @@ var VENDOR = gql3`
601
625
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
602
626
  ${RELATION_DATES_FRAGMENT}
603
627
  ${RELATED_POST_FIELDS_FRAGMENT}
628
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
604
629
  `;
605
630
  var VENDOR_ATTRIBUTES_FRAGMENT = gql3`
606
631
  fragment VendorAttributesFields on VendorAttributesType {
@@ -704,7 +729,7 @@ var GET_VENDORS_BY_REGION = gql3`
704
729
  ${VENDOR}
705
730
  `;
706
731
  var SEARCH_VENDORS = gql3`
707
- query searchVendors($search: String!, $region: String) {
732
+ query searchVendors($search: String!, $region: String!) {
708
733
  vendorSearch(search: $search, region: $region) {
709
734
  ...VendorFields
710
735
  }
@@ -791,6 +816,9 @@ var PARTNER = gql4`
791
816
  ...SocialMediaFields
792
817
  }
793
818
  slug
819
+ sharePublic {
820
+ ...SocialShareResourceFields
821
+ }
794
822
  termsAgreement {
795
823
  ...TermsAgreementFields
796
824
  }
@@ -805,6 +833,7 @@ var PARTNER = gql4`
805
833
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
806
834
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
807
835
  ${RELATED_POST_FIELDS_FRAGMENT}
836
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
808
837
  `;
809
838
  var GET_PARTNERS = gql4`
810
839
  query getPartners {
@@ -834,7 +863,7 @@ var GET_PARTNERS_BY_REGION = gql4`
834
863
  ${PARTNER}
835
864
  `;
836
865
  var SEARCH_PARTNERS = gql4`
837
- query searchPartners($search: String!, $region: String) {
866
+ query searchPartners($search: String!, $region: String!) {
838
867
  partnersSearch(search: $search, region: $region) {
839
868
  ...PartnerFields
840
869
  }
@@ -1012,11 +1041,15 @@ var POST_FIELDS_FRAGMENT = gql7`
1012
1041
  tags
1013
1042
  title
1014
1043
  slug
1044
+ sharePublic {
1045
+ ...SocialShareResourceFields
1046
+ }
1015
1047
  updatedAt
1016
1048
  }
1017
1049
  ${POST_CONTENT_FIELDS_FRAGMENT}
1018
1050
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1019
1051
  ${POST_RESOURCE_FIELDS_FRAGMENT}
1052
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1020
1053
  `;
1021
1054
  var GET_POSTS = gql7`
1022
1055
  query getPosts {
@@ -2492,7 +2525,6 @@ var useGetChatSubscription = () => {
2492
2525
  var useGetChatsByRegion = (region) => {
2493
2526
  const { loading, error, data, refetch } = useQuery(GET_CHATS_BY_REGION, {
2494
2527
  fetchPolicy: "network-only",
2495
- skip: !region || region === "",
2496
2528
  variables: { region }
2497
2529
  });
2498
2530
  const chatsByRegion = data?.chatsByRegion || [];
@@ -2795,7 +2827,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2795
2827
  var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2796
2828
  const normalizedSearch = searchQuery?.trim() ?? "";
2797
2829
  const normalizedTags = (tags ?? []).filter(Boolean);
2798
- const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
2830
+ const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2799
2831
  const { loading, error, data, refetch } = useQuery2(SEARCH_EVENTS, {
2800
2832
  fetchPolicy: "network-only",
2801
2833
  skip: !shouldRunQuery,
@@ -3518,7 +3550,6 @@ var useGetVendorsByRegion = (region, options) => {
3518
3550
  };
3519
3551
  const { loading, error, data, refetch, fetchMore } = useQuery5(GET_VENDORS_BY_REGION, {
3520
3552
  fetchPolicy: "network-only",
3521
- skip: !region || region === "",
3522
3553
  variables
3523
3554
  });
3524
3555
  const vendorsByRegion = data?.vendorsByRegion || [];
@@ -3533,7 +3564,7 @@ var useGetVendorsByRegion = (region, options) => {
3533
3564
  var useSearchVendors = (search, region) => {
3534
3565
  const { loading, error, data, refetch } = useQuery5(SEARCH_VENDORS, {
3535
3566
  fetchPolicy: "network-only",
3536
- skip: search.length < 3 || !region || region === "",
3567
+ skip: search.length < 3,
3537
3568
  variables: { region, search }
3538
3569
  });
3539
3570
  const vendorSearch = data?.vendorSearch || [];
@@ -4410,7 +4441,6 @@ var useGetPartnersByRegion = (region, options) => {
4410
4441
  };
4411
4442
  const { loading, error, data, refetch, fetchMore } = useQuery10(GET_PARTNERS_BY_REGION, {
4412
4443
  fetchPolicy: "network-only",
4413
- skip: !region || region === "",
4414
4444
  variables
4415
4445
  });
4416
4446
  const partnersByRegion = data?.partnersByRegion || [];
@@ -4425,7 +4455,7 @@ var useGetPartnersByRegion = (region, options) => {
4425
4455
  var useSearchPartners = (search, region) => {
4426
4456
  const { loading, error, data, refetch } = useQuery10(SEARCH_PARTNERS, {
4427
4457
  fetchPolicy: "network-only",
4428
- skip: search.length < 3 || !region || region === "",
4458
+ skip: search.length < 3,
4429
4459
  variables: { region, search }
4430
4460
  });
4431
4461
  const partnersSearch = data?.partnersSearch || [];
@@ -5186,4 +5216,4 @@ export {
5186
5216
  useGetSchools,
5187
5217
  useGetSchool
5188
5218
  };
5189
- //# sourceMappingURL=chunk-4YP54WNB.mjs.map
5219
+ //# sourceMappingURL=chunk-EEZUTQ3V.mjs.map