hububb-models 1.0.80 → 1.0.82
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.
@@ -166,7 +166,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
166
166
|
lastName: string;
|
167
167
|
phone: string;
|
168
168
|
}>;
|
169
|
-
|
169
|
+
reservation: import("zod").ZodObject<{
|
170
170
|
arrival: import("zod").ZodString;
|
171
171
|
departure: import("zod").ZodString;
|
172
172
|
adults: import("zod").ZodNumber;
|
@@ -221,14 +221,16 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
221
221
|
};
|
222
222
|
}>;
|
223
223
|
transactionReference: import("zod").ZodString;
|
224
|
+
amount: import("zod").ZodNumber;
|
224
225
|
}, "strip", import("zod").ZodTypeAny, {
|
226
|
+
amount: number;
|
225
227
|
booker: {
|
226
228
|
email: string;
|
227
229
|
firstName: string;
|
228
230
|
lastName: string;
|
229
231
|
phone: string;
|
230
232
|
};
|
231
|
-
|
233
|
+
reservation: {
|
232
234
|
adults: number;
|
233
235
|
arrival: string;
|
234
236
|
departure: string;
|
@@ -246,13 +248,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
246
248
|
};
|
247
249
|
transactionReference: string;
|
248
250
|
}, {
|
251
|
+
amount: number;
|
249
252
|
booker: {
|
250
253
|
email: string;
|
251
254
|
firstName: string;
|
252
255
|
lastName: string;
|
253
256
|
phone: string;
|
254
257
|
};
|
255
|
-
|
258
|
+
reservation: {
|
256
259
|
adults: number;
|
257
260
|
arrival: string;
|
258
261
|
departure: string;
|
@@ -72,6 +72,7 @@ const reservationSchema = (0, zod_1.object)({
|
|
72
72
|
});
|
73
73
|
exports.reservationCreateSchema = (0, zod_1.object)({
|
74
74
|
booker: bookerSchema,
|
75
|
-
|
75
|
+
reservation: reservationSchema,
|
76
76
|
transactionReference: (0, zod_1.string)().min(1, "Transaction reference is required"),
|
77
|
+
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
77
78
|
});
|