hububb-models 1.0.87 → 1.0.88

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.
@@ -182,7 +182,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
182
182
  services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
183
183
  serviceId: import("zod").ZodString;
184
184
  count: import("zod").ZodOptional<import("zod").ZodNumber>;
185
- amount: import("zod").ZodObject<{
185
+ amount: import("zod").ZodOptional<import("zod").ZodObject<{
186
186
  amount: import("zod").ZodNumber;
187
187
  currency: import("zod").ZodString;
188
188
  }, "strip", import("zod").ZodTypeAny, {
@@ -191,21 +191,21 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
191
191
  }, {
192
192
  currency: string;
193
193
  amount: number;
194
- }>;
194
+ }>>;
195
195
  }, "strip", import("zod").ZodTypeAny, {
196
- amount: {
197
- currency: string;
198
- amount: number;
199
- };
200
196
  serviceId: string;
201
197
  count?: number | undefined;
202
- }, {
203
- amount: {
198
+ amount?: {
204
199
  currency: string;
205
200
  amount: number;
206
- };
201
+ } | undefined;
202
+ }, {
207
203
  serviceId: string;
208
204
  count?: number | undefined;
205
+ amount?: {
206
+ currency: string;
207
+ amount: number;
208
+ } | undefined;
209
209
  }>, "many">>;
210
210
  prePaymentAmount: import("zod").ZodObject<{
211
211
  amount: import("zod").ZodNumber;
@@ -233,12 +233,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
233
233
  amount: number;
234
234
  };
235
235
  services?: {
236
- amount: {
237
- currency: string;
238
- amount: number;
239
- };
240
236
  serviceId: string;
241
237
  count?: number | undefined;
238
+ amount?: {
239
+ currency: string;
240
+ amount: number;
241
+ } | undefined;
242
242
  }[] | undefined;
243
243
  }, {
244
244
  adults: number;
@@ -256,12 +256,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
256
256
  amount: number;
257
257
  };
258
258
  services?: {
259
- amount: {
260
- currency: string;
261
- amount: number;
262
- };
263
259
  serviceId: string;
264
260
  count?: number | undefined;
261
+ amount?: {
262
+ currency: string;
263
+ amount: number;
264
+ } | undefined;
265
265
  }[] | undefined;
266
266
  }>;
267
267
  transactionReference: import("zod").ZodString;
@@ -292,12 +292,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
292
292
  amount: number;
293
293
  };
294
294
  services?: {
295
- amount: {
296
- currency: string;
297
- amount: number;
298
- };
299
295
  serviceId: string;
300
296
  count?: number | undefined;
297
+ amount?: {
298
+ currency: string;
299
+ amount: number;
300
+ } | undefined;
301
301
  }[] | undefined;
302
302
  };
303
303
  transactionReference: string;
@@ -326,12 +326,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
326
326
  amount: number;
327
327
  };
328
328
  services?: {
329
- amount: {
330
- currency: string;
331
- amount: number;
332
- };
333
329
  serviceId: string;
334
330
  count?: number | undefined;
331
+ amount?: {
332
+ currency: string;
333
+ amount: number;
334
+ } | undefined;
335
335
  }[] | undefined;
336
336
  };
337
337
  transactionReference: string;
@@ -404,7 +404,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
404
404
  services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
405
405
  serviceId: import("zod").ZodString;
406
406
  count: import("zod").ZodOptional<import("zod").ZodNumber>;
407
- amount: import("zod").ZodObject<{
407
+ amount: import("zod").ZodOptional<import("zod").ZodObject<{
408
408
  amount: import("zod").ZodNumber;
409
409
  currency: import("zod").ZodString;
410
410
  }, "strip", import("zod").ZodTypeAny, {
@@ -413,21 +413,21 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
413
413
  }, {
414
414
  currency: string;
415
415
  amount: number;
416
- }>;
416
+ }>>;
417
417
  }, "strip", import("zod").ZodTypeAny, {
418
- amount: {
419
- currency: string;
420
- amount: number;
421
- };
422
418
  serviceId: string;
423
419
  count?: number | undefined;
424
- }, {
425
- amount: {
420
+ amount?: {
426
421
  currency: string;
427
422
  amount: number;
428
- };
423
+ } | undefined;
424
+ }, {
429
425
  serviceId: string;
430
426
  count?: number | undefined;
427
+ amount?: {
428
+ currency: string;
429
+ amount: number;
430
+ } | undefined;
431
431
  }>, "many">>;
432
432
  prePaymentAmount: import("zod").ZodObject<{
433
433
  amount: import("zod").ZodNumber;
@@ -451,7 +451,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
451
451
  services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
452
452
  serviceId: import("zod").ZodString;
453
453
  count: import("zod").ZodOptional<import("zod").ZodNumber>;
454
- amount: import("zod").ZodObject<{
454
+ amount: import("zod").ZodOptional<import("zod").ZodObject<{
455
455
  amount: import("zod").ZodNumber;
456
456
  currency: import("zod").ZodString;
457
457
  }, "strip", import("zod").ZodTypeAny, {
@@ -460,21 +460,21 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
460
460
  }, {
461
461
  currency: string;
462
462
  amount: number;
463
- }>;
463
+ }>>;
464
464
  }, "strip", import("zod").ZodTypeAny, {
465
- amount: {
466
- currency: string;
467
- amount: number;
468
- };
469
465
  serviceId: string;
470
466
  count?: number | undefined;
471
- }, {
472
- amount: {
467
+ amount?: {
473
468
  currency: string;
474
469
  amount: number;
475
- };
470
+ } | undefined;
471
+ }, {
476
472
  serviceId: string;
477
473
  count?: number | undefined;
474
+ amount?: {
475
+ currency: string;
476
+ amount: number;
477
+ } | undefined;
478
478
  }>, "many">>;
479
479
  amount: import("zod").ZodNumber;
480
480
  ratePlanId: import("zod").ZodString;
@@ -502,12 +502,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
502
502
  riskData?: any;
503
503
  };
504
504
  services?: {
505
- amount: {
506
- currency: string;
507
- amount: number;
508
- };
509
505
  serviceId: string;
510
506
  count?: number | undefined;
507
+ amount?: {
508
+ currency: string;
509
+ amount: number;
510
+ } | undefined;
511
511
  }[] | undefined;
512
512
  }, {
513
513
  ratePlanId: string;
@@ -533,11 +533,11 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
533
533
  riskData?: any;
534
534
  };
535
535
  services?: {
536
- amount: {
537
- currency: string;
538
- amount: number;
539
- };
540
536
  serviceId: string;
541
537
  count?: number | undefined;
538
+ amount?: {
539
+ currency: string;
540
+ amount: number;
541
+ } | undefined;
542
542
  }[] | undefined;
543
543
  }>;
@@ -74,7 +74,7 @@ const reservationSchema = (0, zod_1.object)({
74
74
  amount: (0, zod_1.object)({
75
75
  amount: (0, zod_1.number)().positive("Amount must be a positive number"),
76
76
  currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
77
- }),
77
+ }).optional(),
78
78
  })).optional(),
79
79
  prePaymentAmount: prePaymentAmountSchema,
80
80
  });
@@ -108,7 +108,7 @@ exports.paymentCreateSchema = (0, zod_1.object)({
108
108
  amount: (0, zod_1.object)({
109
109
  amount: (0, zod_1.number)().positive("Amount must be a positive number"),
110
110
  currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
111
- }),
111
+ }).optional(),
112
112
  })).optional(),
113
113
  amount: (0, zod_1.number)().positive("Amount must be a positive number"),
114
114
  ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",