hububb-models 1.1.25 → 1.1.27
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,8 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
656
656
|
parkingSpace?: string | undefined;
|
657
657
|
} | undefined;
|
658
658
|
externalId?: string | undefined;
|
659
|
+
apaleoUnitGroupId?: string | undefined;
|
660
|
+
nickname?: string | undefined;
|
659
661
|
city?: string | undefined;
|
660
662
|
guestyId?: string | undefined;
|
661
663
|
accountId?: string | undefined;
|
@@ -717,13 +719,11 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
717
719
|
aptKey?: string | undefined;
|
718
720
|
keyMethod?: "open" | "unlock" | undefined;
|
719
721
|
requestToBook?: boolean | undefined;
|
720
|
-
nickname?: string | undefined;
|
721
722
|
listingType?: "shared" | "parent" | "child" | undefined;
|
722
723
|
parentId?: string | undefined;
|
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,8 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
805
805
|
parkingSpace?: string | undefined;
|
806
806
|
} | undefined;
|
807
807
|
externalId?: string | undefined;
|
808
|
+
apaleoUnitGroupId?: string | undefined;
|
809
|
+
nickname?: string | undefined;
|
808
810
|
city?: string | undefined;
|
809
811
|
guestyId?: string | undefined;
|
810
812
|
accountId?: string | undefined;
|
@@ -866,13 +868,11 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
866
868
|
aptKey?: string | undefined;
|
867
869
|
keyMethod?: "open" | "unlock" | undefined;
|
868
870
|
requestToBook?: boolean | undefined;
|
869
|
-
nickname?: string | undefined;
|
870
871
|
listingType?: "shared" | "parent" | "child" | undefined;
|
871
872
|
parentId?: string | undefined;
|
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
|
}>;
|
@@ -1097,6 +1097,7 @@ export declare const CreateListingSchema: import("zod").ZodObject<{
|
|
1097
1097
|
large?: string | undefined;
|
1098
1098
|
original?: string | undefined;
|
1099
1099
|
}[];
|
1100
|
+
nickname: string;
|
1100
1101
|
propertyType: string;
|
1101
1102
|
roomType: string;
|
1102
1103
|
accommodates: number;
|
@@ -1123,7 +1124,6 @@ export declare const CreateListingSchema: import("zod").ZodObject<{
|
|
1123
1124
|
securityDepositFee: number;
|
1124
1125
|
cleaningFee: number;
|
1125
1126
|
};
|
1126
|
-
nickname: string;
|
1127
1127
|
source?: string | undefined;
|
1128
1128
|
active?: boolean | undefined;
|
1129
1129
|
externalId?: string | undefined;
|
@@ -1173,6 +1173,7 @@ export declare const CreateListingSchema: import("zod").ZodObject<{
|
|
1173
1173
|
large?: string | undefined;
|
1174
1174
|
original?: string | undefined;
|
1175
1175
|
}[];
|
1176
|
+
nickname: string;
|
1176
1177
|
propertyType: string;
|
1177
1178
|
roomType: string;
|
1178
1179
|
accommodates: number;
|
@@ -1199,7 +1200,6 @@ export declare const CreateListingSchema: import("zod").ZodObject<{
|
|
1199
1200
|
securityDepositFee: number;
|
1200
1201
|
cleaningFee: number;
|
1201
1202
|
};
|
1202
|
-
nickname: string;
|
1203
1203
|
source?: string | undefined;
|
1204
1204
|
active?: boolean | undefined;
|
1205
1205
|
externalId?: string | undefined;
|
@@ -83,9 +83,66 @@ 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
|
+
nickname: import("zod").ZodOptional<import("zod").ZodString>;
|
94
|
+
}, "strip", import("zod").ZodTypeAny, {
|
95
|
+
id: string;
|
96
|
+
picture: string;
|
97
|
+
title: string;
|
98
|
+
externalId: string;
|
99
|
+
apaleoUnitGroupId: string;
|
100
|
+
nickname?: string | undefined;
|
101
|
+
}, {
|
102
|
+
id: string;
|
103
|
+
picture: string;
|
104
|
+
title: string;
|
105
|
+
externalId: string;
|
106
|
+
apaleoUnitGroupId: string;
|
107
|
+
nickname?: string | undefined;
|
108
|
+
}>;
|
109
|
+
timeRanges: import("zod").ZodArray<import("zod").ZodObject<{
|
110
|
+
from: import("zod").ZodString;
|
111
|
+
to: import("zod").ZodString;
|
112
|
+
}, "strip", import("zod").ZodTypeAny, {
|
113
|
+
from: string;
|
114
|
+
to: string;
|
115
|
+
}, {
|
116
|
+
from: string;
|
117
|
+
to: string;
|
118
|
+
}>, "many">;
|
119
|
+
}, "strip", import("zod").ZodTypeAny, {
|
120
|
+
listing: {
|
121
|
+
id: string;
|
122
|
+
picture: string;
|
123
|
+
title: string;
|
124
|
+
externalId: string;
|
125
|
+
apaleoUnitGroupId: string;
|
126
|
+
nickname?: string | undefined;
|
127
|
+
};
|
128
|
+
timeRanges: {
|
129
|
+
from: string;
|
130
|
+
to: string;
|
131
|
+
}[];
|
132
|
+
}, {
|
133
|
+
listing: {
|
134
|
+
id: string;
|
135
|
+
picture: string;
|
136
|
+
title: string;
|
137
|
+
externalId: string;
|
138
|
+
apaleoUnitGroupId: string;
|
139
|
+
nickname?: string | undefined;
|
140
|
+
};
|
141
|
+
timeRanges: {
|
142
|
+
from: string;
|
143
|
+
to: string;
|
144
|
+
}[];
|
145
|
+
}>, "many">>;
|
89
146
|
}, "strip", import("zod").ZodTypeAny, {
|
90
147
|
id: string;
|
91
148
|
source?: string | undefined;
|
@@ -131,9 +188,20 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
131
188
|
channexThreadId?: string | undefined;
|
132
189
|
notes?: string | undefined;
|
133
190
|
integrationSource?: string | undefined;
|
134
|
-
|
135
|
-
|
136
|
-
|
191
|
+
assignedListings?: {
|
192
|
+
listing: {
|
193
|
+
id: string;
|
194
|
+
picture: string;
|
195
|
+
title: string;
|
196
|
+
externalId: string;
|
197
|
+
apaleoUnitGroupId: string;
|
198
|
+
nickname?: string | undefined;
|
199
|
+
};
|
200
|
+
timeRanges: {
|
201
|
+
from: string;
|
202
|
+
to: string;
|
203
|
+
}[];
|
204
|
+
}[] | undefined;
|
137
205
|
}, {
|
138
206
|
id: string;
|
139
207
|
source?: string | undefined;
|
@@ -179,9 +247,20 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
179
247
|
channexThreadId?: string | undefined;
|
180
248
|
notes?: string | undefined;
|
181
249
|
integrationSource?: string | undefined;
|
182
|
-
|
183
|
-
|
184
|
-
|
250
|
+
assignedListings?: {
|
251
|
+
listing: {
|
252
|
+
id: string;
|
253
|
+
picture: string;
|
254
|
+
title: string;
|
255
|
+
externalId: string;
|
256
|
+
apaleoUnitGroupId: string;
|
257
|
+
nickname?: string | undefined;
|
258
|
+
};
|
259
|
+
timeRanges: {
|
260
|
+
from: string;
|
261
|
+
to: string;
|
262
|
+
}[];
|
263
|
+
}[] | undefined;
|
185
264
|
}>;
|
186
265
|
export declare const reservationCreateSchema: import("zod").ZodObject<{
|
187
266
|
booker: import("zod").ZodObject<{
|
@@ -26,6 +26,20 @@ 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
|
+
nickname: (0, zod_1.optional)((0, zod_1.string)()),
|
37
|
+
}),
|
38
|
+
timeRanges: (0, zod_1.array)((0, zod_1.object)({
|
39
|
+
from: (0, zod_1.string)(),
|
40
|
+
to: (0, zod_1.string)(), // ISO date string
|
41
|
+
})),
|
42
|
+
});
|
29
43
|
exports.ReservationSchema = (0, zod_1.object)({
|
30
44
|
id: (0, zod_1.string)(),
|
31
45
|
createdAt: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
|
@@ -51,9 +65,7 @@ exports.ReservationSchema = (0, zod_1.object)({
|
|
51
65
|
channexThreadId: (0, zod_1.optional)((0, zod_1.string)()),
|
52
66
|
notes: (0, zod_1.optional)((0, zod_1.string)()),
|
53
67
|
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)()),
|
68
|
+
assignedListings: (0, zod_1.optional)((0, zod_1.array)(assignedListingSchema)),
|
57
69
|
});
|
58
70
|
const bookerSchema = (0, zod_1.object)({
|
59
71
|
firstName: (0, zod_1.string)().min(1, "First name is required"),
|
package/dist/schemas/thread.d.ts
CHANGED
@@ -769,9 +769,66 @@ 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
|
+
nickname: import("zod").ZodOptional<import("zod").ZodString>;
|
780
|
+
}, "strip", import("zod").ZodTypeAny, {
|
781
|
+
id: string;
|
782
|
+
picture: string;
|
783
|
+
title: string;
|
784
|
+
externalId: string;
|
785
|
+
apaleoUnitGroupId: string;
|
786
|
+
nickname?: string | undefined;
|
787
|
+
}, {
|
788
|
+
id: string;
|
789
|
+
picture: string;
|
790
|
+
title: string;
|
791
|
+
externalId: string;
|
792
|
+
apaleoUnitGroupId: string;
|
793
|
+
nickname?: string | undefined;
|
794
|
+
}>;
|
795
|
+
timeRanges: import("zod").ZodArray<import("zod").ZodObject<{
|
796
|
+
from: import("zod").ZodString;
|
797
|
+
to: import("zod").ZodString;
|
798
|
+
}, "strip", import("zod").ZodTypeAny, {
|
799
|
+
from: string;
|
800
|
+
to: string;
|
801
|
+
}, {
|
802
|
+
from: string;
|
803
|
+
to: string;
|
804
|
+
}>, "many">;
|
805
|
+
}, "strip", import("zod").ZodTypeAny, {
|
806
|
+
listing: {
|
807
|
+
id: string;
|
808
|
+
picture: string;
|
809
|
+
title: string;
|
810
|
+
externalId: string;
|
811
|
+
apaleoUnitGroupId: string;
|
812
|
+
nickname?: string | undefined;
|
813
|
+
};
|
814
|
+
timeRanges: {
|
815
|
+
from: string;
|
816
|
+
to: string;
|
817
|
+
}[];
|
818
|
+
}, {
|
819
|
+
listing: {
|
820
|
+
id: string;
|
821
|
+
picture: string;
|
822
|
+
title: string;
|
823
|
+
externalId: string;
|
824
|
+
apaleoUnitGroupId: string;
|
825
|
+
nickname?: string | undefined;
|
826
|
+
};
|
827
|
+
timeRanges: {
|
828
|
+
from: string;
|
829
|
+
to: string;
|
830
|
+
}[];
|
831
|
+
}>, "many">>;
|
775
832
|
}, "id" | "source" | "listing" | "status" | "checkIn" | "checkOut" | "statusDescription" | "integrationSource">, {
|
776
833
|
listingNickname: import("zod").ZodOptional<import("zod").ZodString>;
|
777
834
|
}>, "strip", import("zod").ZodTypeAny, {
|