@timardex/cluemart-shared 2.0.17 → 2.0.18

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.
package/dist/index.d.mts CHANGED
@@ -2997,7 +2997,7 @@ declare const useGetAd: (_id: string) => {
2997
2997
  ad: AdType;
2998
2998
  }>>;
2999
2999
  };
3000
- declare const useGetAdsByRegion: (region: string, platform: EnumAdPlatform) => {
3000
+ declare const useGetAdsByRegion: (region: string, platform: EnumAdPlatform, showOn?: EnumAdShowOn) => {
3001
3001
  adsByRegion: AdType[];
3002
3002
  error: _apollo_client.ApolloError | undefined;
3003
3003
  loading: boolean;
package/dist/index.d.ts CHANGED
@@ -2997,7 +2997,7 @@ declare const useGetAd: (_id: string) => {
2997
2997
  ad: AdType;
2998
2998
  }>>;
2999
2999
  };
3000
- declare const useGetAdsByRegion: (region: string, platform: EnumAdPlatform) => {
3000
+ declare const useGetAdsByRegion: (region: string, platform: EnumAdPlatform, showOn?: EnumAdShowOn) => {
3001
3001
  adsByRegion: AdType[];
3002
3002
  error: _apollo_client.ApolloError | undefined;
3003
3003
  loading: boolean;
package/dist/index.mjs CHANGED
@@ -6873,8 +6873,12 @@ var GET_AD = gql26`
6873
6873
  ${AD_FIELDS_FRAGMENT}
6874
6874
  `;
6875
6875
  var GET_ADS_BY_REGION = gql26`
6876
- query getAdsByRegion($region: String!, $platform: AdPlatformEnum!) {
6877
- adsByRegion(region: $region, platform: $platform) {
6876
+ query getAdsByRegion(
6877
+ $region: String!
6878
+ $platform: AdPlatformEnum!
6879
+ $showOn: AdShowOnEnum
6880
+ ) {
6881
+ adsByRegion(region: $region, platform: $platform, showOn: $showOn) {
6878
6882
  ...AdFields
6879
6883
  }
6880
6884
  }
@@ -6977,11 +6981,11 @@ var useGetAd = (_id) => {
6977
6981
  refetch
6978
6982
  };
6979
6983
  };
6980
- var useGetAdsByRegion = (region, platform) => {
6984
+ var useGetAdsByRegion = (region, platform, showOn) => {
6981
6985
  const { data, loading, error, refetch } = useQuery7(GET_ADS_BY_REGION, {
6982
6986
  fetchPolicy: "no-cache",
6983
6987
  skip: !region || region === "",
6984
- variables: { platform, region }
6988
+ variables: { platform, region, showOn }
6985
6989
  });
6986
6990
  return {
6987
6991
  adsByRegion: data?.adsByRegion || [],