hububb-models 1.1.24 → 1.1.25

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.
@@ -411,6 +411,56 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
411
411
  checkInTime: import("zod").ZodOptional<import("zod").ZodString>;
412
412
  checkOutTime: import("zod").ZodOptional<import("zod").ZodString>;
413
413
  cancellationTime: import("zod").ZodOptional<import("zod").ZodString>;
414
+ assignedUnits: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
415
+ unit: import("zod").ZodObject<{
416
+ id: import("zod").ZodString;
417
+ name: import("zod").ZodString;
418
+ description: import("zod").ZodString;
419
+ unitGroupId: import("zod").ZodString;
420
+ }, "strip", import("zod").ZodTypeAny, {
421
+ id: string;
422
+ name: string;
423
+ description: string;
424
+ unitGroupId: string;
425
+ }, {
426
+ id: string;
427
+ name: string;
428
+ description: string;
429
+ unitGroupId: string;
430
+ }>;
431
+ timeRanges: import("zod").ZodArray<import("zod").ZodObject<{
432
+ from: import("zod").ZodString;
433
+ to: import("zod").ZodString;
434
+ }, "strip", import("zod").ZodTypeAny, {
435
+ from: string;
436
+ to: string;
437
+ }, {
438
+ from: string;
439
+ to: string;
440
+ }>, "many">;
441
+ }, "strip", import("zod").ZodTypeAny, {
442
+ unit: {
443
+ id: string;
444
+ name: string;
445
+ description: string;
446
+ unitGroupId: string;
447
+ };
448
+ timeRanges: {
449
+ from: string;
450
+ to: string;
451
+ }[];
452
+ }, {
453
+ unit: {
454
+ id: string;
455
+ name: string;
456
+ description: string;
457
+ unitGroupId: string;
458
+ };
459
+ timeRanges: {
460
+ from: string;
461
+ to: string;
462
+ }[];
463
+ }>, "many">>;
414
464
  }, "strip", import("zod").ZodTypeAny, {
415
465
  id: string;
416
466
  status: string;
@@ -534,6 +584,18 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
534
584
  checkInTime?: string | undefined;
535
585
  checkOutTime?: string | undefined;
536
586
  cancellationTime?: string | undefined;
587
+ assignedUnits?: {
588
+ unit: {
589
+ id: string;
590
+ name: string;
591
+ description: string;
592
+ unitGroupId: string;
593
+ };
594
+ timeRanges: {
595
+ from: string;
596
+ to: string;
597
+ }[];
598
+ }[] | undefined;
537
599
  }, {
538
600
  id: string;
539
601
  status: string;
@@ -657,5 +719,17 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
657
719
  checkInTime?: string | undefined;
658
720
  checkOutTime?: string | undefined;
659
721
  cancellationTime?: string | undefined;
722
+ assignedUnits?: {
723
+ unit: {
724
+ id: string;
725
+ name: string;
726
+ description: string;
727
+ unitGroupId: string;
728
+ };
729
+ timeRanges: {
730
+ from: string;
731
+ to: string;
732
+ }[];
733
+ }[] | undefined;
660
734
  }>;
661
735
  export { apaleoReservationSchema };
@@ -87,6 +87,18 @@ const serviceSchema = (0, zod_1.object)({
87
87
  totalAmount: totalAmountSchema,
88
88
  dates: (0, zod_1.array)(serviceDateSchema),
89
89
  });
90
+ const assignedUnitSchema = (0, zod_1.object)({
91
+ unit: (0, zod_1.object)({
92
+ id: (0, zod_1.string)(),
93
+ name: (0, zod_1.string)(),
94
+ description: (0, zod_1.string)(),
95
+ unitGroupId: (0, zod_1.string)(),
96
+ }),
97
+ timeRanges: (0, zod_1.array)((0, zod_1.object)({
98
+ from: (0, zod_1.string)(),
99
+ to: (0, zod_1.string)(), // ISO date string
100
+ })),
101
+ });
90
102
  const apaleoReservationSchema = (0, zod_1.object)({
91
103
  id: (0, zod_1.string)(),
92
104
  bookingId: (0, zod_1.string)(),
@@ -115,6 +127,7 @@ const apaleoReservationSchema = (0, zod_1.object)({
115
127
  services: (0, zod_1.array)(serviceSchema),
116
128
  checkInTime: (0, zod_1.string)().optional(),
117
129
  checkOutTime: (0, zod_1.string)().optional(),
118
- cancellationTime: (0, zod_1.string)().optional(), // ISO date string
130
+ cancellationTime: (0, zod_1.string)().optional(),
131
+ assignedUnits: (0, zod_1.array)(assignedUnitSchema).optional(),
119
132
  });
120
133
  exports.apaleoReservationSchema = apaleoReservationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",