@timardex/cluemart-shared 1.1.25 → 1.1.26

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/index.d.mts CHANGED
@@ -118,10 +118,10 @@ type StallType = {
118
118
  label: string;
119
119
  price: number;
120
120
  stallCapacity: number;
121
- electricity: {
121
+ electricity?: {
122
122
  price?: number | null;
123
- selected: boolean;
124
- };
123
+ selected?: boolean | null;
124
+ } | null;
125
125
  };
126
126
  interface DateTimeWithPriceType extends DateTimeType {
127
127
  stallTypes: StallType[];
package/dist/index.d.ts CHANGED
@@ -118,10 +118,10 @@ type StallType = {
118
118
  label: string;
119
119
  price: number;
120
120
  stallCapacity: number;
121
- electricity: {
121
+ electricity?: {
122
122
  price?: number | null;
123
- selected: boolean;
124
- };
123
+ selected?: boolean | null;
124
+ } | null;
125
125
  };
126
126
  interface DateTimeWithPriceType extends DateTimeType {
127
127
  stallTypes: StallType[];
package/dist/index.mjs CHANGED
@@ -4024,13 +4024,13 @@ var stallTypesSchema = yup.object({
4024
4024
  ),
4025
4025
  stallCapacity: yup.number().typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity")),
4026
4026
  electricity: yup.object({
4027
- selected: yup.boolean().label("Electricity Available").required("Electricity availability is required"),
4027
+ selected: yup.boolean().nullable().optional().label("Electricity Available"),
4028
4028
  price: yup.number().integer("Electricity price must be a whole number").test(
4029
4029
  "no-leading-zeros",
4030
4030
  "",
4031
4031
  noLeadingZeros("Electricity price", { allowDecimal: true })
4032
- ).nullable()
4033
- }).label("Electricity Information").required("Electricity information is required")
4032
+ ).nullable().optional()
4033
+ }).nullable().optional().label("Electricity Information")
4034
4034
  });
4035
4035
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
4036
4036
  stallTypes: yup.array().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")