@timardex/cluemart-shared 2.0.13 → 2.0.15

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 (38) hide show
  1. package/dist/{ad-DtHc-l0P.d.ts → ad-CpsTouG6.d.ts} +7 -1
  2. package/dist/{ad-uqMx-9wk.d.mts → ad-DwFDtNp7.d.mts} +7 -1
  3. package/dist/{chunk-DS2Y6BNU.mjs → chunk-6HI3OSCZ.mjs} +18 -7
  4. package/dist/chunk-6HI3OSCZ.mjs.map +1 -0
  5. package/dist/{chunk-XU65BXAM.mjs → chunk-KGPPKS5M.mjs} +1 -1
  6. package/dist/chunk-KGPPKS5M.mjs.map +1 -0
  7. package/dist/{chunk-VHYU2BPC.mjs → chunk-NERMP6D5.mjs} +2 -2
  8. package/dist/{chunk-AUWZYZK5.mjs → chunk-ZUXHEXJU.mjs} +2 -2
  9. package/dist/{chunk-AUWZYZK5.mjs.map → chunk-ZUXHEXJU.mjs.map} +1 -1
  10. package/dist/formFields/index.cjs +1 -1
  11. package/dist/formFields/index.cjs.map +1 -1
  12. package/dist/formFields/index.mjs +3 -3
  13. package/dist/graphql/index.cjs +17 -6
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +5 -3
  16. package/dist/graphql/index.d.ts +5 -3
  17. package/dist/graphql/index.mjs +1 -1
  18. package/dist/hooks/index.cjs +29 -3
  19. package/dist/hooks/index.cjs.map +1 -1
  20. package/dist/hooks/index.d.mts +1 -1
  21. package/dist/hooks/index.d.ts +1 -1
  22. package/dist/hooks/index.mjs +23 -5
  23. package/dist/hooks/index.mjs.map +1 -1
  24. package/dist/index.cjs +18 -7
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.mts +11 -3
  27. package/dist/index.d.ts +11 -3
  28. package/dist/index.mjs +18 -7
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/types/index.cjs.map +1 -1
  31. package/dist/types/index.d.mts +1 -1
  32. package/dist/types/index.d.ts +1 -1
  33. package/dist/types/index.mjs +1 -1
  34. package/dist/utils/index.mjs +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-DS2Y6BNU.mjs.map +0 -1
  37. package/dist/chunk-XU65BXAM.mjs.map +0 -1
  38. /package/dist/{chunk-VHYU2BPC.mjs.map → chunk-NERMP6D5.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -3360,7 +3360,7 @@ var vendorCompliance = [
3360
3360
  },
3361
3361
  {
3362
3362
  name: "compliance.foodBeverageLicense",
3363
- placeholder: "Food and Beverage License"
3363
+ placeholder: "Food and Beverage Licence"
3364
3364
  }
3365
3365
  ];
3366
3366
  var packagingTypes = [
@@ -7371,8 +7371,12 @@ var GET_AD = import_client44.gql`
7371
7371
  ${AD_FIELDS_FRAGMENT}
7372
7372
  `;
7373
7373
  var GET_ADS_BY_REGION = import_client44.gql`
7374
- query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
7375
- adsByRegion(region: $region, status: $status) {
7374
+ query getAdsByRegion(
7375
+ $region: String!
7376
+ $platform: String!
7377
+ $status: AdStatusTypeEnum
7378
+ ) {
7379
+ adsByRegion(region: $region, platform: $platform, status: $status) {
7376
7380
  ...AdFields
7377
7381
  }
7378
7382
  }
@@ -7475,11 +7479,11 @@ var useGetAd = (_id) => {
7475
7479
  refetch
7476
7480
  };
7477
7481
  };
7478
- var useGetAdsByRegion = (region, status) => {
7482
+ var useGetAdsByRegion = (region, platform, status) => {
7479
7483
  const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
7480
7484
  fetchPolicy: "no-cache",
7481
7485
  skip: !region || region === "",
7482
- variables: { region, status }
7486
+ variables: { platform, region, status }
7483
7487
  });
7484
7488
  return {
7485
7489
  adsByRegion: data?.adsByRegion || [],
@@ -8095,6 +8099,10 @@ var import_client65 = require("@apollo/client");
8095
8099
  var APP_SETTINGS_FIELDS_FRAGMENT = import_client65.gql`
8096
8100
  fragment AppSettingsFields on AppSettingsType {
8097
8101
  _id
8102
+ adSettings {
8103
+ mobileDisplayEnabled
8104
+ webDisplayEnabled
8105
+ }
8098
8106
  appVersion
8099
8107
  createdAt
8100
8108
  isOfflineMode
@@ -8131,9 +8139,12 @@ var useUpdateGoogleImportedMarkets = () => {
8131
8139
 
8132
8140
  // src/graphql/hooks/appSettings/hooksQuery.ts
8133
8141
  var import_client67 = require("@apollo/client");
8134
- var useGetAppSettings = () => {
8142
+ var useGetAppSettings = ({
8143
+ skip = false
8144
+ } = {}) => {
8135
8145
  const { loading, error, data, refetch } = (0, import_client67.useQuery)(GET_APP_SETTINGS, {
8136
- fetchPolicy: "network-only"
8146
+ fetchPolicy: "network-only",
8147
+ skip
8137
8148
  });
8138
8149
  const appSettings = data?.appSettings || null;
8139
8150
  return { appSettings, error, loading, refetch };