hububb-saas-shared 1.0.67 → 1.0.69
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.
|
@@ -22,6 +22,8 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
22
22
|
minimumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
maximumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
|
|
25
27
|
}, "strip", z.ZodTypeAny, {
|
|
26
28
|
id: number;
|
|
27
29
|
title: string;
|
|
@@ -44,6 +46,8 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
44
46
|
channexRoomTypeId?: string | null | undefined;
|
|
45
47
|
minimumNights?: number | null | undefined;
|
|
46
48
|
maximumNights?: number | null | undefined;
|
|
49
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
50
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
47
51
|
}, {
|
|
48
52
|
id: number;
|
|
49
53
|
title: string;
|
|
@@ -66,6 +70,8 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
66
70
|
channexRoomTypeId?: string | null | undefined;
|
|
67
71
|
minimumNights?: number | null | undefined;
|
|
68
72
|
maximumNights?: number | null | undefined;
|
|
73
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
74
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
69
75
|
}>;
|
|
70
76
|
export declare const updatePropertySchema: z.ZodObject<{
|
|
71
77
|
propertyDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -199,6 +205,28 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
199
205
|
longitude?: number | undefined;
|
|
200
206
|
}>>;
|
|
201
207
|
amenities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>;
|
|
208
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
|
+
propertyId: z.ZodNumber;
|
|
210
|
+
smallUrl: z.ZodString;
|
|
211
|
+
mediumUrl: z.ZodString;
|
|
212
|
+
thumbnailUrl: z.ZodString;
|
|
213
|
+
sortOrder: z.ZodNumber;
|
|
214
|
+
caption: z.ZodString;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
caption: string;
|
|
217
|
+
propertyId: number;
|
|
218
|
+
smallUrl: string;
|
|
219
|
+
mediumUrl: string;
|
|
220
|
+
thumbnailUrl: string;
|
|
221
|
+
sortOrder: number;
|
|
222
|
+
}, {
|
|
223
|
+
caption: string;
|
|
224
|
+
propertyId: number;
|
|
225
|
+
smallUrl: string;
|
|
226
|
+
mediumUrl: string;
|
|
227
|
+
thumbnailUrl: string;
|
|
228
|
+
sortOrder: number;
|
|
229
|
+
}>, "many">>;
|
|
202
230
|
}, "strip", z.ZodTypeAny, {
|
|
203
231
|
address?: {
|
|
204
232
|
state?: string | undefined;
|
|
@@ -247,6 +275,14 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
247
275
|
airbnbId?: string | undefined;
|
|
248
276
|
} | undefined;
|
|
249
277
|
amenities?: (string | number)[] | undefined;
|
|
278
|
+
images?: {
|
|
279
|
+
caption: string;
|
|
280
|
+
propertyId: number;
|
|
281
|
+
smallUrl: string;
|
|
282
|
+
mediumUrl: string;
|
|
283
|
+
thumbnailUrl: string;
|
|
284
|
+
sortOrder: number;
|
|
285
|
+
}[] | undefined;
|
|
250
286
|
}, {
|
|
251
287
|
address?: {
|
|
252
288
|
state?: string | undefined;
|
|
@@ -295,4 +331,12 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
295
331
|
airbnbId?: string | undefined;
|
|
296
332
|
} | undefined;
|
|
297
333
|
amenities?: (string | number)[] | undefined;
|
|
334
|
+
images?: {
|
|
335
|
+
caption: string;
|
|
336
|
+
propertyId: number;
|
|
337
|
+
smallUrl: string;
|
|
338
|
+
mediumUrl: string;
|
|
339
|
+
thumbnailUrl: string;
|
|
340
|
+
sortOrder: number;
|
|
341
|
+
}[] | undefined;
|
|
298
342
|
}>;
|
|
@@ -32,6 +32,10 @@ exports.propertySchema = (0, zod_1.object)({
|
|
|
32
32
|
minimumNights: (0, zod_1.number)().int().nullish(),
|
|
33
33
|
maximumNights: (0, zod_1.number)().int().nullish(),
|
|
34
34
|
area: (0, zod_1.number)().int().nullish(),
|
|
35
|
+
isAirbnbConnectionRequest: (0, zod_1.boolean)().nullish(),
|
|
36
|
+
airbnbConnectionStatus: zod_1.z
|
|
37
|
+
.enum(["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"])
|
|
38
|
+
.nullish(),
|
|
35
39
|
});
|
|
36
40
|
exports.updatePropertySchema = (0, zod_1.object)({
|
|
37
41
|
propertyDetails: (0, zod_1.object)({
|
|
@@ -81,4 +85,14 @@ exports.updatePropertySchema = (0, zod_1.object)({
|
|
|
81
85
|
full: (0, zod_1.string)().optional(),
|
|
82
86
|
}).optional(),
|
|
83
87
|
amenities: zod_1.z.array(zod_1.z.union([(0, zod_1.number)(), (0, zod_1.string)()])).optional(),
|
|
88
|
+
images: zod_1.z
|
|
89
|
+
.array(zod_1.z.object({
|
|
90
|
+
propertyId: (0, zod_1.number)(),
|
|
91
|
+
smallUrl: (0, zod_1.string)(),
|
|
92
|
+
mediumUrl: (0, zod_1.string)(),
|
|
93
|
+
thumbnailUrl: (0, zod_1.string)(),
|
|
94
|
+
sortOrder: (0, zod_1.number)(),
|
|
95
|
+
caption: (0, zod_1.string)(),
|
|
96
|
+
}))
|
|
97
|
+
.optional(),
|
|
84
98
|
});
|
|
@@ -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;
|
|
@@ -360,6 +360,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
360
360
|
minimumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
361
361
|
maximumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
362
362
|
area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
363
|
+
isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
364
|
+
airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
|
|
363
365
|
}, "strip", z.ZodTypeAny, {
|
|
364
366
|
id: number;
|
|
365
367
|
title: string;
|
|
@@ -382,6 +384,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
382
384
|
channexRoomTypeId?: string | null | undefined;
|
|
383
385
|
minimumNights?: number | null | undefined;
|
|
384
386
|
maximumNights?: number | null | undefined;
|
|
387
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
388
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
385
389
|
}, {
|
|
386
390
|
id: number;
|
|
387
391
|
title: string;
|
|
@@ -404,12 +408,14 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
404
408
|
channexRoomTypeId?: string | null | undefined;
|
|
405
409
|
minimumNights?: number | null | undefined;
|
|
406
410
|
maximumNights?: number | null | undefined;
|
|
411
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
412
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
407
413
|
}>>;
|
|
408
414
|
}>, "strip", z.ZodTypeAny, {
|
|
409
415
|
id: number;
|
|
410
416
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
411
|
-
otaName: string;
|
|
412
417
|
propertyId: number;
|
|
418
|
+
otaName: string;
|
|
413
419
|
checkIn: Date;
|
|
414
420
|
checkOut: Date;
|
|
415
421
|
property?: {
|
|
@@ -434,13 +440,15 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
434
440
|
channexRoomTypeId?: string | null | undefined;
|
|
435
441
|
minimumNights?: number | null | undefined;
|
|
436
442
|
maximumNights?: number | null | undefined;
|
|
443
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
444
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
437
445
|
} | undefined;
|
|
438
446
|
propertyNickname?: string | undefined;
|
|
439
447
|
}, {
|
|
440
448
|
id: number;
|
|
441
449
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
442
|
-
otaName: string;
|
|
443
450
|
propertyId: number;
|
|
451
|
+
otaName: string;
|
|
444
452
|
checkIn: Date;
|
|
445
453
|
checkOut: Date;
|
|
446
454
|
property?: {
|
|
@@ -465,6 +473,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
465
473
|
channexRoomTypeId?: string | null | undefined;
|
|
466
474
|
minimumNights?: number | null | undefined;
|
|
467
475
|
maximumNights?: number | null | undefined;
|
|
476
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
477
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
468
478
|
} | undefined;
|
|
469
479
|
propertyNickname?: string | undefined;
|
|
470
480
|
}>>;
|
|
@@ -538,8 +548,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
538
548
|
reservation?: {
|
|
539
549
|
id: number;
|
|
540
550
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
541
|
-
otaName: string;
|
|
542
551
|
propertyId: number;
|
|
552
|
+
otaName: string;
|
|
543
553
|
checkIn: Date;
|
|
544
554
|
checkOut: Date;
|
|
545
555
|
property?: {
|
|
@@ -564,6 +574,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
564
574
|
channexRoomTypeId?: string | null | undefined;
|
|
565
575
|
minimumNights?: number | null | undefined;
|
|
566
576
|
maximumNights?: number | null | undefined;
|
|
577
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
578
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
567
579
|
} | undefined;
|
|
568
580
|
propertyNickname?: string | undefined;
|
|
569
581
|
} | undefined;
|
|
@@ -637,8 +649,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
637
649
|
reservation?: {
|
|
638
650
|
id: number;
|
|
639
651
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
640
|
-
otaName: string;
|
|
641
652
|
propertyId: number;
|
|
653
|
+
otaName: string;
|
|
642
654
|
checkIn: Date;
|
|
643
655
|
checkOut: Date;
|
|
644
656
|
property?: {
|
|
@@ -663,6 +675,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
663
675
|
channexRoomTypeId?: string | null | undefined;
|
|
664
676
|
minimumNights?: number | null | undefined;
|
|
665
677
|
maximumNights?: number | null | undefined;
|
|
678
|
+
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
679
|
+
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
666
680
|
} | undefined;
|
|
667
681
|
propertyNickname?: string | undefined;
|
|
668
682
|
} | undefined;
|