hububb-saas-shared 1.0.67 → 1.0.68
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.
|
@@ -199,6 +199,28 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
199
199
|
longitude?: number | undefined;
|
|
200
200
|
}>>;
|
|
201
201
|
amenities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>;
|
|
202
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
+
propertyId: z.ZodNumber;
|
|
204
|
+
smallUrl: z.ZodString;
|
|
205
|
+
mediumUrl: z.ZodString;
|
|
206
|
+
thumbnailUrl: z.ZodString;
|
|
207
|
+
sortOrder: z.ZodNumber;
|
|
208
|
+
caption: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
caption: string;
|
|
211
|
+
propertyId: number;
|
|
212
|
+
smallUrl: string;
|
|
213
|
+
mediumUrl: string;
|
|
214
|
+
thumbnailUrl: string;
|
|
215
|
+
sortOrder: number;
|
|
216
|
+
}, {
|
|
217
|
+
caption: string;
|
|
218
|
+
propertyId: number;
|
|
219
|
+
smallUrl: string;
|
|
220
|
+
mediumUrl: string;
|
|
221
|
+
thumbnailUrl: string;
|
|
222
|
+
sortOrder: number;
|
|
223
|
+
}>, "many">>;
|
|
202
224
|
}, "strip", z.ZodTypeAny, {
|
|
203
225
|
address?: {
|
|
204
226
|
state?: string | undefined;
|
|
@@ -247,6 +269,14 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
247
269
|
airbnbId?: string | undefined;
|
|
248
270
|
} | undefined;
|
|
249
271
|
amenities?: (string | number)[] | undefined;
|
|
272
|
+
images?: {
|
|
273
|
+
caption: string;
|
|
274
|
+
propertyId: number;
|
|
275
|
+
smallUrl: string;
|
|
276
|
+
mediumUrl: string;
|
|
277
|
+
thumbnailUrl: string;
|
|
278
|
+
sortOrder: number;
|
|
279
|
+
}[] | undefined;
|
|
250
280
|
}, {
|
|
251
281
|
address?: {
|
|
252
282
|
state?: string | undefined;
|
|
@@ -295,4 +325,12 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
295
325
|
airbnbId?: string | undefined;
|
|
296
326
|
} | undefined;
|
|
297
327
|
amenities?: (string | number)[] | undefined;
|
|
328
|
+
images?: {
|
|
329
|
+
caption: string;
|
|
330
|
+
propertyId: number;
|
|
331
|
+
smallUrl: string;
|
|
332
|
+
mediumUrl: string;
|
|
333
|
+
thumbnailUrl: string;
|
|
334
|
+
sortOrder: number;
|
|
335
|
+
}[] | undefined;
|
|
298
336
|
}>;
|
|
@@ -81,4 +81,14 @@ exports.updatePropertySchema = (0, zod_1.object)({
|
|
|
81
81
|
full: (0, zod_1.string)().optional(),
|
|
82
82
|
}).optional(),
|
|
83
83
|
amenities: zod_1.z.array(zod_1.z.union([(0, zod_1.number)(), (0, zod_1.string)()])).optional(),
|
|
84
|
+
images: zod_1.z
|
|
85
|
+
.array(zod_1.z.object({
|
|
86
|
+
propertyId: (0, zod_1.number)(),
|
|
87
|
+
smallUrl: (0, zod_1.string)(),
|
|
88
|
+
mediumUrl: (0, zod_1.string)(),
|
|
89
|
+
thumbnailUrl: (0, zod_1.string)(),
|
|
90
|
+
sortOrder: (0, zod_1.number)(),
|
|
91
|
+
caption: (0, zod_1.string)(),
|
|
92
|
+
}))
|
|
93
|
+
.optional(),
|
|
84
94
|
});
|
|
@@ -14,8 +14,8 @@ export declare const propertyChannelSchema: import("zod").ZodObject<{
|
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
updatedAt: Date;
|
|
16
16
|
channexId: string;
|
|
17
|
-
channelId: number;
|
|
18
17
|
propertyId: number;
|
|
18
|
+
channelId: number;
|
|
19
19
|
otaId: string;
|
|
20
20
|
accountName?: string | undefined;
|
|
21
21
|
}, {
|
|
@@ -24,8 +24,8 @@ export declare const propertyChannelSchema: import("zod").ZodObject<{
|
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
26
26
|
channexId: string;
|
|
27
|
-
channelId: number;
|
|
28
27
|
propertyId: number;
|
|
28
|
+
channelId: number;
|
|
29
29
|
otaId: string;
|
|
30
30
|
accountName?: string | undefined;
|
|
31
31
|
}>;
|
|
@@ -73,10 +73,10 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
73
73
|
createdAt: Date;
|
|
74
74
|
updatedAt: Date;
|
|
75
75
|
channexId: string;
|
|
76
|
+
propertyId: number;
|
|
76
77
|
amount: string;
|
|
77
78
|
otaName: string;
|
|
78
79
|
channelId: string;
|
|
79
|
-
propertyId: number;
|
|
80
80
|
channexPropertyId: string;
|
|
81
81
|
adults: number;
|
|
82
82
|
checkIn: Date;
|
|
@@ -97,10 +97,10 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
97
97
|
createdAt: Date;
|
|
98
98
|
updatedAt: Date;
|
|
99
99
|
channexId: string;
|
|
100
|
+
propertyId: number;
|
|
100
101
|
amount: string;
|
|
101
102
|
otaName: string;
|
|
102
103
|
channelId: string;
|
|
103
|
-
propertyId: number;
|
|
104
104
|
channexPropertyId: string;
|
|
105
105
|
adults: number;
|
|
106
106
|
checkIn: Date;
|
|
@@ -336,7 +336,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
336
336
|
checkedOutMark: z.ZodOptional<z.ZodDate>;
|
|
337
337
|
threadId: z.ZodOptional<z.ZodString>;
|
|
338
338
|
paymentLink: z.ZodOptional<z.ZodString>;
|
|
339
|
-
}, "id" | "status" | "
|
|
339
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
|
|
340
340
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
341
341
|
property: z.ZodOptional<z.ZodObject<{
|
|
342
342
|
id: z.ZodNumber;
|
|
@@ -408,8 +408,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
408
408
|
}>, "strip", z.ZodTypeAny, {
|
|
409
409
|
id: number;
|
|
410
410
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
411
|
-
otaName: string;
|
|
412
411
|
propertyId: number;
|
|
412
|
+
otaName: string;
|
|
413
413
|
checkIn: Date;
|
|
414
414
|
checkOut: Date;
|
|
415
415
|
property?: {
|
|
@@ -439,8 +439,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
439
439
|
}, {
|
|
440
440
|
id: number;
|
|
441
441
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
442
|
-
otaName: string;
|
|
443
442
|
propertyId: number;
|
|
443
|
+
otaName: string;
|
|
444
444
|
checkIn: Date;
|
|
445
445
|
checkOut: Date;
|
|
446
446
|
property?: {
|
|
@@ -538,8 +538,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
538
538
|
reservation?: {
|
|
539
539
|
id: number;
|
|
540
540
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
541
|
-
otaName: string;
|
|
542
541
|
propertyId: number;
|
|
542
|
+
otaName: string;
|
|
543
543
|
checkIn: Date;
|
|
544
544
|
checkOut: Date;
|
|
545
545
|
property?: {
|
|
@@ -637,8 +637,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
637
637
|
reservation?: {
|
|
638
638
|
id: number;
|
|
639
639
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
640
|
-
otaName: string;
|
|
641
640
|
propertyId: number;
|
|
641
|
+
otaName: string;
|
|
642
642
|
checkIn: Date;
|
|
643
643
|
checkOut: Date;
|
|
644
644
|
property?: {
|