hububb-models 1.0.86 → 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;
@@ -448,6 +448,34 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
448
448
  arrival: string;
449
449
  departure: string;
450
450
  }>;
451
+ services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
452
+ serviceId: import("zod").ZodString;
453
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
454
+ amount: import("zod").ZodOptional<import("zod").ZodObject<{
455
+ amount: import("zod").ZodNumber;
456
+ currency: import("zod").ZodString;
457
+ }, "strip", import("zod").ZodTypeAny, {
458
+ currency: string;
459
+ amount: number;
460
+ }, {
461
+ currency: string;
462
+ amount: number;
463
+ }>>;
464
+ }, "strip", import("zod").ZodTypeAny, {
465
+ serviceId: string;
466
+ count?: number | undefined;
467
+ amount?: {
468
+ currency: string;
469
+ amount: number;
470
+ } | undefined;
471
+ }, {
472
+ serviceId: string;
473
+ count?: number | undefined;
474
+ amount?: {
475
+ currency: string;
476
+ amount: number;
477
+ } | undefined;
478
+ }>, "many">>;
451
479
  amount: import("zod").ZodNumber;
452
480
  ratePlanId: import("zod").ZodString;
453
481
  }, "strip", import("zod").ZodTypeAny, {
@@ -473,6 +501,14 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
473
501
  };
474
502
  riskData?: any;
475
503
  };
504
+ services?: {
505
+ serviceId: string;
506
+ count?: number | undefined;
507
+ amount?: {
508
+ currency: string;
509
+ amount: number;
510
+ } | undefined;
511
+ }[] | undefined;
476
512
  }, {
477
513
  ratePlanId: string;
478
514
  amount: number;
@@ -496,4 +532,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
496
532
  };
497
533
  riskData?: any;
498
534
  };
535
+ services?: {
536
+ serviceId: string;
537
+ count?: number | undefined;
538
+ amount?: {
539
+ currency: string;
540
+ amount: number;
541
+ } | undefined;
542
+ }[] | undefined;
499
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
  });
@@ -102,6 +102,14 @@ exports.paymentCreateSchema = (0, zod_1.object)({
102
102
  departure: true,
103
103
  adults: true,
104
104
  }),
105
+ services: (0, zod_1.array)((0, zod_1.object)({
106
+ serviceId: (0, zod_1.string)().min(1, "Service ID is required"),
107
+ count: (0, zod_1.number)().optional(),
108
+ amount: (0, zod_1.object)({
109
+ amount: (0, zod_1.number)().positive("Amount must be a positive number"),
110
+ currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
111
+ }).optional(),
112
+ })).optional(),
105
113
  amount: (0, zod_1.number)().positive("Amount must be a positive number"),
106
114
  ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
107
115
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.86",
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",