hububb-models 1.1.23 → 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;
@@ -83,6 +83,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
83
83
  channexThreadId: import("zod").ZodOptional<import("zod").ZodString>;
84
84
  notes: import("zod").ZodOptional<import("zod").ZodString>;
85
85
  integrationSource: import("zod").ZodOptional<import("zod").ZodString>;
86
+ linkedReservations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
87
+ nextReservation: import("zod").ZodOptional<import("zod").ZodString>;
88
+ previousReservation: import("zod").ZodOptional<import("zod").ZodString>;
86
89
  }, "strip", import("zod").ZodTypeAny, {
87
90
  id: string;
88
91
  source?: string | undefined;
@@ -128,6 +131,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
128
131
  channexThreadId?: string | undefined;
129
132
  notes?: string | undefined;
130
133
  integrationSource?: string | undefined;
134
+ linkedReservations?: string[] | undefined;
135
+ nextReservation?: string | undefined;
136
+ previousReservation?: string | undefined;
131
137
  }, {
132
138
  id: string;
133
139
  source?: string | undefined;
@@ -173,6 +179,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
173
179
  channexThreadId?: string | undefined;
174
180
  notes?: string | undefined;
175
181
  integrationSource?: string | undefined;
182
+ linkedReservations?: string[] | undefined;
183
+ nextReservation?: string | undefined;
184
+ previousReservation?: string | undefined;
176
185
  }>;
177
186
  export declare const reservationCreateSchema: import("zod").ZodObject<{
178
187
  booker: import("zod").ZodObject<{
@@ -51,6 +51,9 @@ exports.ReservationSchema = (0, zod_1.object)({
51
51
  channexThreadId: (0, zod_1.optional)((0, zod_1.string)()),
52
52
  notes: (0, zod_1.optional)((0, zod_1.string)()),
53
53
  integrationSource: (0, zod_1.optional)((0, zod_1.string)()),
54
+ linkedReservations: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
55
+ nextReservation: (0, zod_1.optional)((0, zod_1.string)()),
56
+ previousReservation: (0, zod_1.optional)((0, zod_1.string)()),
54
57
  });
55
58
  const bookerSchema = (0, zod_1.object)({
56
59
  firstName: (0, zod_1.string)().min(1, "First name is required"),
@@ -769,6 +769,9 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
769
769
  channexThreadId: import("zod").ZodOptional<import("zod").ZodString>;
770
770
  notes: import("zod").ZodOptional<import("zod").ZodString>;
771
771
  integrationSource: import("zod").ZodOptional<import("zod").ZodString>;
772
+ linkedReservations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
773
+ nextReservation: import("zod").ZodOptional<import("zod").ZodString>;
774
+ previousReservation: import("zod").ZodOptional<import("zod").ZodString>;
772
775
  }, "id" | "source" | "listing" | "status" | "checkIn" | "checkOut" | "statusDescription" | "integrationSource">, {
773
776
  listingNickname: import("zod").ZodOptional<import("zod").ZodString>;
774
777
  }>, "strip", import("zod").ZodTypeAny, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.23",
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",