@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.
- package/dist/{chunk-ZJ5ZNUEB.mjs → chunk-CT2SGB4K.mjs} +14 -1
- package/dist/{chunk-ZJ5ZNUEB.mjs.map → chunk-CT2SGB4K.mjs.map} +1 -1
- package/dist/graphql/index.cjs +14 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -1
- package/dist/graphql/index.d.ts +10 -1
- package/dist/graphql/index.mjs +3 -1
- package/dist/hooks/index.cjs +8 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.mjs
CHANGED
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,
|