hububb-models 1.1.24 → 1.1.26
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(),
|
130
|
+
cancellationTime: (0, zod_1.string)().optional(),
|
131
|
+
assignedUnits: (0, zod_1.array)(assignedUnitSchema).optional(),
|
119
132
|
});
|
120
133
|
exports.apaleoReservationSchema = apaleoReservationSchema;
|
@@ -656,6 +656,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
656
656
|
parkingSpace?: string | undefined;
|
657
657
|
} | undefined;
|
658
658
|
externalId?: string | undefined;
|
659
|
+
apaleoUnitGroupId?: string | undefined;
|
659
660
|
city?: string | undefined;
|
660
661
|
guestyId?: string | undefined;
|
661
662
|
accountId?: string | undefined;
|
@@ -723,7 +724,6 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
723
724
|
childIds?: string[] | undefined;
|
724
725
|
landlordId?: string | undefined;
|
725
726
|
apaleoPropertyId?: string | undefined;
|
726
|
-
apaleoUnitGroupId?: string | undefined;
|
727
727
|
channexPropertyId?: string | undefined;
|
728
728
|
channexRoomTypeId?: string | undefined;
|
729
729
|
}, {
|
@@ -805,6 +805,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
805
805
|
parkingSpace?: string | undefined;
|
806
806
|
} | undefined;
|
807
807
|
externalId?: string | undefined;
|
808
|
+
apaleoUnitGroupId?: string | undefined;
|
808
809
|
city?: string | undefined;
|
809
810
|
guestyId?: string | undefined;
|
810
811
|
accountId?: string | undefined;
|
@@ -872,7 +873,6 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
872
873
|
childIds?: string[] | undefined;
|
873
874
|
landlordId?: string | undefined;
|
874
875
|
apaleoPropertyId?: string | undefined;
|
875
|
-
apaleoUnitGroupId?: string | undefined;
|
876
876
|
channexPropertyId?: string | undefined;
|
877
877
|
channexRoomTypeId?: string | undefined;
|
878
878
|
}>;
|
@@ -83,9 +83,61 @@ 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
|
-
|
87
|
-
|
88
|
-
|
86
|
+
assignedListings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
87
|
+
listing: import("zod").ZodObject<{
|
88
|
+
id: import("zod").ZodString;
|
89
|
+
title: import("zod").ZodString;
|
90
|
+
picture: import("zod").ZodString;
|
91
|
+
externalId: import("zod").ZodString;
|
92
|
+
apaleoUnitGroupId: import("zod").ZodString;
|
93
|
+
}, "strip", import("zod").ZodTypeAny, {
|
94
|
+
id: string;
|
95
|
+
picture: string;
|
96
|
+
title: string;
|
97
|
+
externalId: string;
|
98
|
+
apaleoUnitGroupId: string;
|
99
|
+
}, {
|
100
|
+
id: string;
|
101
|
+
picture: string;
|
102
|
+
title: string;
|
103
|
+
externalId: string;
|
104
|
+
apaleoUnitGroupId: string;
|
105
|
+
}>;
|
106
|
+
timeRanges: import("zod").ZodArray<import("zod").ZodObject<{
|
107
|
+
from: import("zod").ZodString;
|
108
|
+
to: import("zod").ZodString;
|
109
|
+
}, "strip", import("zod").ZodTypeAny, {
|
110
|
+
from: string;
|
111
|
+
to: string;
|
112
|
+
}, {
|
113
|
+
from: string;
|
114
|
+
to: string;
|
115
|
+
}>, "many">;
|
116
|
+
}, "strip", import("zod").ZodTypeAny, {
|
117
|
+
listing: {
|
118
|
+
id: string;
|
119
|
+
picture: string;
|
120
|
+
title: string;
|
121
|
+
externalId: string;
|
122
|
+
apaleoUnitGroupId: string;
|
123
|
+
};
|
124
|
+
timeRanges: {
|
125
|
+
from: string;
|
126
|
+
to: string;
|
127
|
+
}[];
|
128
|
+
}, {
|
129
|
+
listing: {
|
130
|
+
id: string;
|
131
|
+
picture: string;
|
132
|
+
title: string;
|
133
|
+
externalId: string;
|
134
|
+
apaleoUnitGroupId: string;
|
135
|
+
};
|
136
|
+
timeRanges: {
|
137
|
+
from: string;
|
138
|
+
to: string;
|
139
|
+
}[];
|
140
|
+
}>, "many">>;
|
89
141
|
}, "strip", import("zod").ZodTypeAny, {
|
90
142
|
id: string;
|
91
143
|
source?: string | undefined;
|
@@ -131,9 +183,19 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
131
183
|
channexThreadId?: string | undefined;
|
132
184
|
notes?: string | undefined;
|
133
185
|
integrationSource?: string | undefined;
|
134
|
-
|
135
|
-
|
136
|
-
|
186
|
+
assignedListings?: {
|
187
|
+
listing: {
|
188
|
+
id: string;
|
189
|
+
picture: string;
|
190
|
+
title: string;
|
191
|
+
externalId: string;
|
192
|
+
apaleoUnitGroupId: string;
|
193
|
+
};
|
194
|
+
timeRanges: {
|
195
|
+
from: string;
|
196
|
+
to: string;
|
197
|
+
}[];
|
198
|
+
}[] | undefined;
|
137
199
|
}, {
|
138
200
|
id: string;
|
139
201
|
source?: string | undefined;
|
@@ -179,9 +241,19 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
179
241
|
channexThreadId?: string | undefined;
|
180
242
|
notes?: string | undefined;
|
181
243
|
integrationSource?: string | undefined;
|
182
|
-
|
183
|
-
|
184
|
-
|
244
|
+
assignedListings?: {
|
245
|
+
listing: {
|
246
|
+
id: string;
|
247
|
+
picture: string;
|
248
|
+
title: string;
|
249
|
+
externalId: string;
|
250
|
+
apaleoUnitGroupId: string;
|
251
|
+
};
|
252
|
+
timeRanges: {
|
253
|
+
from: string;
|
254
|
+
to: string;
|
255
|
+
}[];
|
256
|
+
}[] | undefined;
|
185
257
|
}>;
|
186
258
|
export declare const reservationCreateSchema: import("zod").ZodObject<{
|
187
259
|
booker: import("zod").ZodObject<{
|
@@ -26,6 +26,19 @@ const KlevioSchema = (0, zod_1.object)({
|
|
26
26
|
keyholderEmail: (0, zod_1.optional)((0, zod_1.string)()),
|
27
27
|
propertyId: (0, zod_1.optional)((0, zod_1.string)()),
|
28
28
|
});
|
29
|
+
const assignedListingSchema = (0, zod_1.object)({
|
30
|
+
listing: (0, zod_1.object)({
|
31
|
+
id: (0, zod_1.string)(),
|
32
|
+
title: (0, zod_1.string)(),
|
33
|
+
picture: (0, zod_1.string)(),
|
34
|
+
externalId: (0, zod_1.string)(),
|
35
|
+
apaleoUnitGroupId: (0, zod_1.string)(),
|
36
|
+
}),
|
37
|
+
timeRanges: (0, zod_1.array)((0, zod_1.object)({
|
38
|
+
from: (0, zod_1.string)(),
|
39
|
+
to: (0, zod_1.string)(), // ISO date string
|
40
|
+
})),
|
41
|
+
});
|
29
42
|
exports.ReservationSchema = (0, zod_1.object)({
|
30
43
|
id: (0, zod_1.string)(),
|
31
44
|
createdAt: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
|
@@ -51,9 +64,7 @@ exports.ReservationSchema = (0, zod_1.object)({
|
|
51
64
|
channexThreadId: (0, zod_1.optional)((0, zod_1.string)()),
|
52
65
|
notes: (0, zod_1.optional)((0, zod_1.string)()),
|
53
66
|
integrationSource: (0, zod_1.optional)((0, zod_1.string)()),
|
54
|
-
|
55
|
-
nextReservation: (0, zod_1.optional)((0, zod_1.string)()),
|
56
|
-
previousReservation: (0, zod_1.optional)((0, zod_1.string)()),
|
67
|
+
assignedListings: (0, zod_1.optional)((0, zod_1.array)(assignedListingSchema)),
|
57
68
|
});
|
58
69
|
const bookerSchema = (0, zod_1.object)({
|
59
70
|
firstName: (0, zod_1.string)().min(1, "First name is required"),
|
package/dist/schemas/thread.d.ts
CHANGED
@@ -769,9 +769,61 @@ 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
|
-
|
773
|
-
|
774
|
-
|
772
|
+
assignedListings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
773
|
+
listing: import("zod").ZodObject<{
|
774
|
+
id: import("zod").ZodString;
|
775
|
+
title: import("zod").ZodString;
|
776
|
+
picture: import("zod").ZodString;
|
777
|
+
externalId: import("zod").ZodString;
|
778
|
+
apaleoUnitGroupId: import("zod").ZodString;
|
779
|
+
}, "strip", import("zod").ZodTypeAny, {
|
780
|
+
id: string;
|
781
|
+
picture: string;
|
782
|
+
title: string;
|
783
|
+
externalId: string;
|
784
|
+
apaleoUnitGroupId: string;
|
785
|
+
}, {
|
786
|
+
id: string;
|
787
|
+
picture: string;
|
788
|
+
title: string;
|
789
|
+
externalId: string;
|
790
|
+
apaleoUnitGroupId: string;
|
791
|
+
}>;
|
792
|
+
timeRanges: import("zod").ZodArray<import("zod").ZodObject<{
|
793
|
+
from: import("zod").ZodString;
|
794
|
+
to: import("zod").ZodString;
|
795
|
+
}, "strip", import("zod").ZodTypeAny, {
|
796
|
+
from: string;
|
797
|
+
to: string;
|
798
|
+
}, {
|
799
|
+
from: string;
|
800
|
+
to: string;
|
801
|
+
}>, "many">;
|
802
|
+
}, "strip", import("zod").ZodTypeAny, {
|
803
|
+
listing: {
|
804
|
+
id: string;
|
805
|
+
picture: string;
|
806
|
+
title: string;
|
807
|
+
externalId: string;
|
808
|
+
apaleoUnitGroupId: string;
|
809
|
+
};
|
810
|
+
timeRanges: {
|
811
|
+
from: string;
|
812
|
+
to: string;
|
813
|
+
}[];
|
814
|
+
}, {
|
815
|
+
listing: {
|
816
|
+
id: string;
|
817
|
+
picture: string;
|
818
|
+
title: string;
|
819
|
+
externalId: string;
|
820
|
+
apaleoUnitGroupId: string;
|
821
|
+
};
|
822
|
+
timeRanges: {
|
823
|
+
from: string;
|
824
|
+
to: string;
|
825
|
+
}[];
|
826
|
+
}>, "many">>;
|
775
827
|
}, "id" | "source" | "listing" | "status" | "checkIn" | "checkOut" | "statusDescription" | "integrationSource">, {
|
776
828
|
listingNickname: import("zod").ZodOptional<import("zod").ZodString>;
|
777
829
|
}>, "strip", import("zod").ZodTypeAny, {
|