hububb-saas-shared 1.0.92 → 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/enums/index.d.ts +2 -3
- package/dist/schemas/enums/index.js +2 -3
- 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 +7 -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
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
4
|
var ServiceType;
|
|
5
5
|
(function (ServiceType) {
|
|
6
|
-
ServiceType["
|
|
7
|
-
ServiceType["
|
|
8
|
-
ServiceType["RECURRING"] = "RECURRING";
|
|
6
|
+
ServiceType["ON_DEMAND"] = "FULL";
|
|
7
|
+
ServiceType["SUBSCRIPTION"] = "PRORATED";
|
|
9
8
|
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
10
9
|
var TaskStatus;
|
|
11
10
|
(function (TaskStatus) {
|
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
|
}>>;
|
|
@@ -710,6 +715,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
710
715
|
maximumNights?: number | null | undefined;
|
|
711
716
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
712
717
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
718
|
+
isMergedProperty?: boolean | null | undefined;
|
|
713
719
|
} | undefined;
|
|
714
720
|
propertyNickname?: string | undefined;
|
|
715
721
|
} | undefined;
|
|
@@ -840,6 +846,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
840
846
|
maximumNights?: number | null | undefined;
|
|
841
847
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
842
848
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
849
|
+
isMergedProperty?: boolean | null | undefined;
|
|
843
850
|
} | undefined;
|
|
844
851
|
propertyNickname?: string | undefined;
|
|
845
852
|
} | undefined;
|
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
|
}
|