@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/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-BI45aMM7.d.ts → global-DGG9Aa9z.d.ts} +3 -3
- package/dist/{global-DngaZAJJ.d.mts → global-DdBqL4Ex.d.mts} +3 -3
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-BLYlP2sN.d.ts → notification-BMEOmr-5.d.ts} +1 -1
- package/dist/{notification-DXTh8rEQ.d.mts → notification-CuGRv2TU.d.mts} +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{user-Cyy1U6lx.d.mts → user-DZmjLKJA.d.mts} +1 -1
- package/dist/{user-ZFpAFRD-.d.ts → user-DqeHWR7o.d.ts} +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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().
|
|
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
|
-
}).
|
|
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")
|