@timardex/cluemart-shared 1.7.43 → 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.
@@ -158,6 +158,7 @@ __export(graphql_exports, {
158
158
  useRequestMarketingMaterial: () => useRequestMarketingMaterial,
159
159
  useRequestPasswordReset: () => useRequestPasswordReset,
160
160
  useResetPassword: () => useResetPassword,
161
+ useScanCoupon: () => useScanCoupon,
161
162
  useSearchEvents: () => useSearchEvents,
162
163
  useSearchPartners: () => useSearchPartners,
163
164
  useSearchVendors: () => useSearchVendors,
@@ -5053,6 +5054,14 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
5053
5054
  }
5054
5055
  }
5055
5056
  `;
5057
+ var SCAN_COUPON_MUTATION = import_client79.gql`
5058
+ mutation scanCoupon($input: ScanCouponInputType!) {
5059
+ scanCoupon(input: $input) {
5060
+ data
5061
+ message
5062
+ }
5063
+ }
5064
+ `;
5056
5065
 
5057
5066
  // src/graphql/hooks/coupon/hooksMutation.ts
5058
5067
  var useCreateCoupon = () => {
@@ -5076,6 +5085,10 @@ var useDeleteCoupon = () => {
5076
5085
  });
5077
5086
  return { deleteCoupon, error, loading };
5078
5087
  };
5088
+ var useScanCoupon = () => {
5089
+ const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
5090
+ return { error, loading, scanCoupon };
5091
+ };
5079
5092
 
5080
5093
  // src/graphql/hooks/coupon/hooksQuery.ts
5081
5094
  var import_client81 = require("@apollo/client");
@@ -5239,6 +5252,7 @@ var useGetCoupon = (_id) => {
5239
5252
  useRequestMarketingMaterial,
5240
5253
  useRequestPasswordReset,
5241
5254
  useResetPassword,
5255
+ useScanCoupon,
5242
5256
  useSearchEvents,
5243
5257
  useSearchPartners,
5244
5258
  useSearchVendors,