hububb-models 1.0.80 → 1.0.82

Sign up to get free protection for your applications and to get access to all the features.
@@ -166,7 +166,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
166
166
  lastName: string;
167
167
  phone: string;
168
168
  }>;
169
- reservations: import("zod").ZodObject<{
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
- reservations: {
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
- reservations: {
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
- reservations: reservationSchema,
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.80",
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",