hububb-saas-shared 1.0.91 → 1.0.93
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.
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/property/index.d.ts +3 -0
- package/dist/schemas/property/index.js +1 -0
- package/dist/schemas/property-merge/index.d.ts +25 -0
- package/dist/schemas/property-merge/index.js +13 -0
- package/dist/schemas/thread/index.d.ts +10 -0
- package/dist/schemas/thread/index.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/property/index.d.ts +3 -0
- package/dist/types/property-merge/index.d.ts +7 -0
- package/dist/types/property-merge/index.js +2 -0
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
24
24
|
area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
|
|
27
|
+
isMergedProperty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
28
|
}, "strip", z.ZodTypeAny, {
|
|
28
29
|
id: number;
|
|
29
30
|
title: string;
|
|
@@ -48,6 +49,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
48
49
|
maximumNights?: number | null | undefined;
|
|
49
50
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
50
51
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
52
|
+
isMergedProperty?: boolean | null | undefined;
|
|
51
53
|
}, {
|
|
52
54
|
id: number;
|
|
53
55
|
title: string;
|
|
@@ -72,6 +74,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
72
74
|
maximumNights?: number | null | undefined;
|
|
73
75
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
74
76
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
77
|
+
isMergedProperty?: boolean | null | undefined;
|
|
75
78
|
}>;
|
|
76
79
|
export declare const updatePropertySchema: z.ZodObject<{
|
|
77
80
|
propertyDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -36,6 +36,7 @@ exports.propertySchema = (0, zod_1.object)({
|
|
|
36
36
|
airbnbConnectionStatus: zod_1.z
|
|
37
37
|
.enum(["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"])
|
|
38
38
|
.nullish(),
|
|
39
|
+
isMergedProperty: (0, zod_1.boolean)().nullish(),
|
|
39
40
|
});
|
|
40
41
|
exports.updatePropertySchema = (0, zod_1.object)({
|
|
41
42
|
propertyDetails: (0, zod_1.object)({
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const propertyMergeSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
parentPropertyId: import("zod").ZodNumber;
|
|
4
|
+
childPropertyId: import("zod").ZodNumber;
|
|
5
|
+
mergedAt: import("zod").ZodDate;
|
|
6
|
+
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
parentPropertyId: number;
|
|
14
|
+
childPropertyId: number;
|
|
15
|
+
mergedAt: Date;
|
|
16
|
+
notes?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
parentPropertyId: number;
|
|
22
|
+
childPropertyId: number;
|
|
23
|
+
mergedAt: Date;
|
|
24
|
+
notes?: string | undefined;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyMergeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.propertyMergeSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
parentPropertyId: (0, zod_1.number)().int(),
|
|
8
|
+
childPropertyId: (0, zod_1.number)().int(),
|
|
9
|
+
mergedAt: (0, zod_1.date)(),
|
|
10
|
+
notes: (0, zod_1.string)().optional(),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -416,6 +416,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
416
416
|
area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
417
417
|
isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
418
418
|
airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
|
|
419
|
+
isMergedProperty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
419
420
|
}, "strip", z.ZodTypeAny, {
|
|
420
421
|
id: number;
|
|
421
422
|
title: string;
|
|
@@ -440,6 +441,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
440
441
|
maximumNights?: number | null | undefined;
|
|
441
442
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
442
443
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
444
|
+
isMergedProperty?: boolean | null | undefined;
|
|
443
445
|
}, {
|
|
444
446
|
id: number;
|
|
445
447
|
title: string;
|
|
@@ -464,6 +466,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
464
466
|
maximumNights?: number | null | undefined;
|
|
465
467
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
466
468
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
469
|
+
isMergedProperty?: boolean | null | undefined;
|
|
467
470
|
}>>;
|
|
468
471
|
}>, "strip", z.ZodTypeAny, {
|
|
469
472
|
id: number;
|
|
@@ -496,6 +499,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
496
499
|
maximumNights?: number | null | undefined;
|
|
497
500
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
498
501
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
502
|
+
isMergedProperty?: boolean | null | undefined;
|
|
499
503
|
} | undefined;
|
|
500
504
|
propertyNickname?: string | undefined;
|
|
501
505
|
}, {
|
|
@@ -529,6 +533,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
529
533
|
maximumNights?: number | null | undefined;
|
|
530
534
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
531
535
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
536
|
+
isMergedProperty?: boolean | null | undefined;
|
|
532
537
|
} | undefined;
|
|
533
538
|
propertyNickname?: string | undefined;
|
|
534
539
|
}>>;
|
|
@@ -604,6 +609,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
604
609
|
lastName: string;
|
|
605
610
|
photoUrl?: string | undefined;
|
|
606
611
|
}>>;
|
|
612
|
+
guestCoordinationActive: z.ZodOptional<z.ZodBoolean>;
|
|
607
613
|
}, "strip", z.ZodTypeAny, {
|
|
608
614
|
type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
|
|
609
615
|
createdAt: import("../../helpers").Timestamp;
|
|
@@ -709,6 +715,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
709
715
|
maximumNights?: number | null | undefined;
|
|
710
716
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
711
717
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
718
|
+
isMergedProperty?: boolean | null | undefined;
|
|
712
719
|
} | undefined;
|
|
713
720
|
propertyNickname?: string | undefined;
|
|
714
721
|
} | undefined;
|
|
@@ -733,6 +740,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
733
740
|
lastName: string;
|
|
734
741
|
photoUrl?: string | undefined;
|
|
735
742
|
} | undefined;
|
|
743
|
+
guestCoordinationActive?: boolean | undefined;
|
|
736
744
|
}, {
|
|
737
745
|
type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
|
|
738
746
|
createdAt: import("../../helpers").Timestamp;
|
|
@@ -838,6 +846,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
838
846
|
maximumNights?: number | null | undefined;
|
|
839
847
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
840
848
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
849
|
+
isMergedProperty?: boolean | null | undefined;
|
|
841
850
|
} | undefined;
|
|
842
851
|
propertyNickname?: string | undefined;
|
|
843
852
|
} | undefined;
|
|
@@ -862,6 +871,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
862
871
|
lastName: string;
|
|
863
872
|
photoUrl?: string | undefined;
|
|
864
873
|
} | undefined;
|
|
874
|
+
guestCoordinationActive?: boolean | undefined;
|
|
865
875
|
}>;
|
|
866
876
|
export declare const MessageAutomationTemplateSchema: z.ZodObject<{
|
|
867
877
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -85,6 +85,7 @@ exports.ChatThreadSchema = (0, zod_1.object)({
|
|
|
85
85
|
firstName: true,
|
|
86
86
|
lastName: true,
|
|
87
87
|
})),
|
|
88
|
+
guestCoordinationActive: (0, zod_1.optional)((0, zod_1.boolean)()),
|
|
88
89
|
});
|
|
89
90
|
exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
|
|
90
91
|
id: (0, zod_1.optional)((0, zod_1.string)()),
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { TaskAutomation } from "../task-automation";
|
|
|
14
14
|
import { SubscriptionService } from "../subscription-service";
|
|
15
15
|
import { Purchase } from "../purchase";
|
|
16
16
|
import { BlockedDate } from "../blocked-date";
|
|
17
|
+
import { PropertyMerge } from "../property-merge";
|
|
17
18
|
export interface Property extends infer<typeof propertySchema> {
|
|
18
19
|
user?: User;
|
|
19
20
|
rooms?: Room[];
|
|
@@ -33,6 +34,8 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
33
34
|
subscriptionServices?: SubscriptionService[];
|
|
34
35
|
purchases?: Purchase[];
|
|
35
36
|
blockedDates?: BlockedDate[];
|
|
37
|
+
mergedChildren?: PropertyMerge[];
|
|
38
|
+
mergedParent?: PropertyMerge;
|
|
36
39
|
}
|
|
37
40
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
38
41
|
}
|