hububb-models 1.1.25 → 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.
@@ -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, {
|