hububb-models 1.0.81 → 1.0.82

Sign up to get free protection for your applications and to get access to all the features.
@@ -221,7 +221,9 @@ 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;
@@ -246,6 +248,7 @@ 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;
@@ -74,4 +74,5 @@ 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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",