@timardex/cluemart-shared 2.0.10 → 2.0.11
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/hooks/index.mjs
CHANGED
|
@@ -703,7 +703,7 @@ var couponPurchaseOptionSchema = yup10.object().shape({
|
|
|
703
703
|
if (value === void 0 || buy === void 0) return true;
|
|
704
704
|
return value < buy;
|
|
705
705
|
}),
|
|
706
|
-
maxRewardCount: yup10.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Max
|
|
706
|
+
maxRewardCount: yup10.number().transform((_, originalValue) => toOptionalNumber(originalValue)).label("Max coupon count").typeError("Max coupon count must be a number").integer("Max coupon count must be a whole number").min(20, "Max coupon count must be at least 20").max(200, "Max coupon count cannot exceed 200").required("Max coupon count is required"),
|
|
707
707
|
type: yup10.mixed().oneOf(["PURCHASE" /* PURCHASE */], "Type must be PURCHASE").required("Type is required"),
|
|
708
708
|
unit: yup10.string().label("Unit").trim().required("Unit is required")
|
|
709
709
|
}).nullable().defined("Coupon option is required");
|