@timardex/cluemart-shared 2.0.17 → 2.1.0

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 (69) hide show
  1. package/dist/{ad-BaKxf-Rj.d.ts → ad-CUckkB7I.d.ts} +3 -3
  2. package/dist/{ad-B4hhLfL-.d.mts → ad-sqc3JME-.d.mts} +3 -3
  3. package/dist/{affiliate-Bv4PXBXC.d.mts → affiliate-7SDCo04C.d.mts} +2 -2
  4. package/dist/{affiliate-xDFlLdJI.d.ts → affiliate-C03r7ssL.d.ts} +2 -2
  5. package/dist/auth/index.d.mts +3 -3
  6. package/dist/auth/index.d.ts +3 -3
  7. package/dist/auth/index.mjs +4 -15
  8. package/dist/auth/index.mjs.map +1 -1
  9. package/dist/{chunk-RNHDFZIC.mjs → chunk-KUC252SN.mjs} +9 -5
  10. package/dist/chunk-KUC252SN.mjs.map +1 -0
  11. package/dist/chunk-N46DFZ3R.mjs +20 -0
  12. package/dist/chunk-N46DFZ3R.mjs.map +1 -0
  13. package/dist/{chunk-JESR7H4R.mjs → chunk-PIEXGXTD.mjs} +1 -1
  14. package/dist/chunk-PIEXGXTD.mjs.map +1 -0
  15. package/dist/chunk-RE4NZPYY.mjs +43 -0
  16. package/dist/chunk-RE4NZPYY.mjs.map +1 -0
  17. package/dist/{chunk-5G3MQXQX.mjs → chunk-YPT2VOTM.mjs} +2 -2
  18. package/dist/{contactUs-DtKFwekV.d.ts → contactUs-BG3sJ6gc.d.ts} +1 -1
  19. package/dist/{contactUs-0IhAsiDW.d.mts → contactUs-CWFP59_0.d.mts} +1 -1
  20. package/dist/formFields/index.cjs.map +1 -1
  21. package/dist/formFields/index.d.mts +1 -1
  22. package/dist/formFields/index.d.ts +1 -1
  23. package/dist/formFields/index.mjs +3 -2
  24. package/dist/{global-C6w0hQ5Y.d.mts → global-BqeTWrvk.d.ts} +4 -1
  25. package/dist/{global-Coz5Jgi2.d.ts → global-CWo-hWKZ.d.mts} +4 -1
  26. package/dist/graphql/index.cjs +8 -4
  27. package/dist/graphql/index.cjs.map +1 -1
  28. package/dist/graphql/index.d.mts +6 -6
  29. package/dist/graphql/index.d.ts +6 -6
  30. package/dist/graphql/index.mjs +1 -1
  31. package/dist/hooks/index.cjs +6 -2
  32. package/dist/hooks/index.cjs.map +1 -1
  33. package/dist/hooks/index.d.mts +5 -5
  34. package/dist/hooks/index.d.ts +5 -5
  35. package/dist/hooks/index.mjs +4 -3
  36. package/dist/hooks/index.mjs.map +1 -1
  37. package/dist/index.cjs +51 -4
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.mts +9 -2
  40. package/dist/index.d.ts +9 -2
  41. package/dist/index.mjs +48 -4
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/map/index.d.mts +1 -1
  44. package/dist/map/index.d.ts +1 -1
  45. package/dist/region/index.cjs +290 -0
  46. package/dist/region/index.cjs.map +1 -0
  47. package/dist/region/index.d.mts +36 -0
  48. package/dist/region/index.d.ts +36 -0
  49. package/dist/region/index.mjs +220 -0
  50. package/dist/region/index.mjs.map +1 -0
  51. package/dist/{resourceActivities-DScv6fiM.d.ts → resourceActivities-BbhGFtZA.d.ts} +1 -1
  52. package/dist/{resourceActivities-DIK3bwZg.d.mts → resourceActivities-D81u7Mu0.d.mts} +1 -1
  53. package/dist/sharing/index.d.mts +1 -1
  54. package/dist/sharing/index.d.ts +1 -1
  55. package/dist/types/index.cjs.map +1 -1
  56. package/dist/types/index.d.mts +7 -7
  57. package/dist/types/index.d.ts +7 -7
  58. package/dist/types/index.mjs +1 -1
  59. package/dist/{user-DhxdbFT7.d.ts → user-2peJoOeK.d.ts} +1 -1
  60. package/dist/{user-BwcVKK-h.d.mts → user-DKcyf8gn.d.mts} +1 -1
  61. package/dist/utils/index.cjs +43 -0
  62. package/dist/utils/index.cjs.map +1 -1
  63. package/dist/utils/index.d.mts +8 -4
  64. package/dist/utils/index.d.ts +8 -4
  65. package/dist/utils/index.mjs +10 -2
  66. package/package.json +6 -1
  67. package/dist/chunk-JESR7H4R.mjs.map +0 -1
  68. package/dist/chunk-RNHDFZIC.mjs.map +0 -1
  69. /package/dist/{chunk-5G3MQXQX.mjs.map → chunk-YPT2VOTM.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-C6w0hQ5Y.mjs';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-CWo-hWKZ.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-Coz5Jgi2.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-BqeTWrvk.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -46,9 +46,10 @@ import {
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-5G3MQXQX.mjs";
49
+ } from "../chunk-YPT2VOTM.mjs";
50
+ import "../chunk-RE4NZPYY.mjs";
50
51
  import "../chunk-UH6POK3Y.mjs";
51
- import "../chunk-JESR7H4R.mjs";
52
+ import "../chunk-PIEXGXTD.mjs";
52
53
  import "../chunk-RAYUJODN.mjs";
53
54
  import "../chunk-DQ7ZHIXW.mjs";
54
55
  import "../chunk-7DQBUZXY.mjs";
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumPartnerType, EnumUserRole } from './enums/index.mjs';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumRegions, EnumPartnerType, EnumUserRole } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -847,17 +847,20 @@ interface UserListFilter {
847
847
  interface PartnerListFilter {
848
848
  active?: boolean | null;
849
849
  partnerType?: EnumPartnerType | null;
850
+ region?: EnumRegions | null;
850
851
  search?: string | null;
851
852
  }
852
853
  /** Server-side filter input for the admin vendors list query. */
853
854
  interface VendorListFilter {
854
855
  active?: boolean | null;
856
+ region?: EnumRegions | null;
855
857
  search?: string | null;
856
858
  }
857
859
  /** Server-side filter input for the admin events list query. */
858
860
  interface EventListFilter {
859
861
  active?: boolean | null;
860
862
  claimed?: boolean | null;
863
+ region?: EnumRegions | null;
861
864
  search?: string | null;
862
865
  }
863
866
  /** Server-side filter input for the admin posts list query. */
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumPartnerType, EnumUserRole } from './enums/index.js';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumRegions, EnumPartnerType, EnumUserRole } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -847,17 +847,20 @@ interface UserListFilter {
847
847
  interface PartnerListFilter {
848
848
  active?: boolean | null;
849
849
  partnerType?: EnumPartnerType | null;
850
+ region?: EnumRegions | null;
850
851
  search?: string | null;
851
852
  }
852
853
  /** Server-side filter input for the admin vendors list query. */
853
854
  interface VendorListFilter {
854
855
  active?: boolean | null;
856
+ region?: EnumRegions | null;
855
857
  search?: string | null;
856
858
  }
857
859
  /** Server-side filter input for the admin events list query. */
858
860
  interface EventListFilter {
859
861
  active?: boolean | null;
860
862
  claimed?: boolean | null;
863
+ region?: EnumRegions | null;
861
864
  search?: string | null;
862
865
  }
863
866
  /** Server-side filter input for the admin posts list query. */
@@ -3582,8 +3582,12 @@ var GET_AD = import_client44.gql`
3582
3582
  ${AD_FIELDS_FRAGMENT}
3583
3583
  `;
3584
3584
  var GET_ADS_BY_REGION = import_client44.gql`
3585
- query getAdsByRegion($region: String!, $platform: AdPlatformEnum!) {
3586
- adsByRegion(region: $region, platform: $platform) {
3585
+ query getAdsByRegion(
3586
+ $region: String!
3587
+ $platform: AdPlatformEnum!
3588
+ $showOn: AdShowOnEnum
3589
+ ) {
3590
+ adsByRegion(region: $region, platform: $platform, showOn: $showOn) {
3587
3591
  ...AdFields
3588
3592
  }
3589
3593
  }
@@ -3686,11 +3690,11 @@ var useGetAd = (_id) => {
3686
3690
  refetch
3687
3691
  };
3688
3692
  };
3689
- var useGetAdsByRegion = (region, platform) => {
3693
+ var useGetAdsByRegion = (region, platform, showOn) => {
3690
3694
  const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
3691
3695
  fetchPolicy: "no-cache",
3692
3696
  skip: !region || region === "",
3693
- variables: { platform, region }
3697
+ variables: { platform, region, showOn }
3694
3698
  });
3695
3699
  return {
3696
3700
  adsByRegion: data?.adsByRegion || [],