@timardex/cluemart-shared 1.7.44 → 1.7.45

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.
@@ -23,7 +23,7 @@ import {
23
23
  } from "../chunk-Q3X2EHHF.mjs";
24
24
  import "../chunk-RAYUJODN.mjs";
25
25
  import "../chunk-DQ7ZHIXW.mjs";
26
- import "../chunk-ZJ5ZNUEB.mjs";
26
+ import "../chunk-CT2SGB4K.mjs";
27
27
  import "../chunk-VBQ5RF7L.mjs";
28
28
  import {
29
29
  EnumEventDateStatus,
package/dist/index.cjs CHANGED
@@ -443,6 +443,7 @@ __export(index_exports, {
443
443
  useRequestMarketingMaterial: () => useRequestMarketingMaterial,
444
444
  useRequestPasswordReset: () => useRequestPasswordReset,
445
445
  useResetPassword: () => useResetPassword,
446
+ useScanCoupon: () => useScanCoupon,
446
447
  useSearchEvents: () => useSearchEvents,
447
448
  useSearchPartners: () => useSearchPartners,
448
449
  useSearchVendors: () => useSearchVendors,
@@ -8660,6 +8661,14 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
8660
8661
  }
8661
8662
  }
8662
8663
  `;
8664
+ var SCAN_COUPON_MUTATION = import_client79.gql`
8665
+ mutation scanCoupon($input: ScanCouponInputType!) {
8666
+ scanCoupon(input: $input) {
8667
+ data
8668
+ message
8669
+ }
8670
+ }
8671
+ `;
8663
8672
 
8664
8673
  // src/graphql/hooks/coupon/hooksMutation.ts
8665
8674
  var useCreateCoupon = () => {
@@ -8683,6 +8692,10 @@ var useDeleteCoupon = () => {
8683
8692
  });
8684
8693
  return { deleteCoupon, error, loading };
8685
8694
  };
8695
+ var useScanCoupon = () => {
8696
+ const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
8697
+ return { error, loading, scanCoupon };
8698
+ };
8686
8699
 
8687
8700
  // src/graphql/hooks/coupon/hooksQuery.ts
8688
8701
  var import_client81 = require("@apollo/client");
@@ -9675,6 +9688,7 @@ function canAccessAdminPath(roles, pathname) {
9675
9688
  useRequestMarketingMaterial,
9676
9689
  useRequestPasswordReset,
9677
9690
  useResetPassword,
9691
+ useScanCoupon,
9678
9692
  useSearchEvents,
9679
9693
  useSearchPartners,
9680
9694
  useSearchVendors,