hububb-saas-shared 1.0.92 → 1.0.95
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 +6 -0
- package/dist/schemas/property/index.js +2 -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 +14 -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,8 @@ 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>>;
|
|
28
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ACTIVE", "INACTIVE", "MERGED"]>>>;
|
|
27
29
|
}, "strip", z.ZodTypeAny, {
|
|
28
30
|
id: number;
|
|
29
31
|
title: string;
|
|
@@ -33,6 +35,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
33
35
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
34
36
|
area?: number | null | undefined;
|
|
35
37
|
description?: string | null | undefined;
|
|
38
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
36
39
|
nickname?: string | null | undefined;
|
|
37
40
|
listingType?: string | null | undefined;
|
|
38
41
|
bedrooms?: number | null | undefined;
|
|
@@ -48,6 +51,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
48
51
|
maximumNights?: number | null | undefined;
|
|
49
52
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
50
53
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
54
|
+
isMergedProperty?: boolean | null | undefined;
|
|
51
55
|
}, {
|
|
52
56
|
id: number;
|
|
53
57
|
title: string;
|
|
@@ -57,6 +61,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
57
61
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
58
62
|
area?: number | null | undefined;
|
|
59
63
|
description?: string | null | undefined;
|
|
64
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
60
65
|
nickname?: string | null | undefined;
|
|
61
66
|
listingType?: string | null | undefined;
|
|
62
67
|
bedrooms?: number | null | undefined;
|
|
@@ -72,6 +77,7 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
72
77
|
maximumNights?: number | null | undefined;
|
|
73
78
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
74
79
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
80
|
+
isMergedProperty?: boolean | null | undefined;
|
|
75
81
|
}>;
|
|
76
82
|
export declare const updatePropertySchema: z.ZodObject<{
|
|
77
83
|
propertyDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -36,6 +36,8 @@ 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(),
|
|
40
|
+
status: zod_1.z.enum(["ACTIVE", "INACTIVE", "MERGED"]).nullish(),
|
|
39
41
|
});
|
|
40
42
|
exports.updatePropertySchema = (0, zod_1.object)({
|
|
41
43
|
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,8 @@ 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>>;
|
|
420
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ACTIVE", "INACTIVE", "MERGED"]>>>;
|
|
419
421
|
}, "strip", z.ZodTypeAny, {
|
|
420
422
|
id: number;
|
|
421
423
|
title: string;
|
|
@@ -425,6 +427,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
425
427
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
426
428
|
area?: number | null | undefined;
|
|
427
429
|
description?: string | null | undefined;
|
|
430
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
428
431
|
nickname?: string | null | undefined;
|
|
429
432
|
listingType?: string | null | undefined;
|
|
430
433
|
bedrooms?: number | null | undefined;
|
|
@@ -440,6 +443,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
440
443
|
maximumNights?: number | null | undefined;
|
|
441
444
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
442
445
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
446
|
+
isMergedProperty?: boolean | null | undefined;
|
|
443
447
|
}, {
|
|
444
448
|
id: number;
|
|
445
449
|
title: string;
|
|
@@ -449,6 +453,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
449
453
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
450
454
|
area?: number | null | undefined;
|
|
451
455
|
description?: string | null | undefined;
|
|
456
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
452
457
|
nickname?: string | null | undefined;
|
|
453
458
|
listingType?: string | null | undefined;
|
|
454
459
|
bedrooms?: number | null | undefined;
|
|
@@ -464,6 +469,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
464
469
|
maximumNights?: number | null | undefined;
|
|
465
470
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
466
471
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
472
|
+
isMergedProperty?: boolean | null | undefined;
|
|
467
473
|
}>>;
|
|
468
474
|
}>, "strip", z.ZodTypeAny, {
|
|
469
475
|
id: number;
|
|
@@ -481,6 +487,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
481
487
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
482
488
|
area?: number | null | undefined;
|
|
483
489
|
description?: string | null | undefined;
|
|
490
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
484
491
|
nickname?: string | null | undefined;
|
|
485
492
|
listingType?: string | null | undefined;
|
|
486
493
|
bedrooms?: number | null | undefined;
|
|
@@ -496,6 +503,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
496
503
|
maximumNights?: number | null | undefined;
|
|
497
504
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
498
505
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
506
|
+
isMergedProperty?: boolean | null | undefined;
|
|
499
507
|
} | undefined;
|
|
500
508
|
propertyNickname?: string | undefined;
|
|
501
509
|
}, {
|
|
@@ -514,6 +522,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
514
522
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
515
523
|
area?: number | null | undefined;
|
|
516
524
|
description?: string | null | undefined;
|
|
525
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
517
526
|
nickname?: string | null | undefined;
|
|
518
527
|
listingType?: string | null | undefined;
|
|
519
528
|
bedrooms?: number | null | undefined;
|
|
@@ -529,6 +538,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
529
538
|
maximumNights?: number | null | undefined;
|
|
530
539
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
531
540
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
541
|
+
isMergedProperty?: boolean | null | undefined;
|
|
532
542
|
} | undefined;
|
|
533
543
|
propertyNickname?: string | undefined;
|
|
534
544
|
}>>;
|
|
@@ -695,6 +705,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
695
705
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
696
706
|
area?: number | null | undefined;
|
|
697
707
|
description?: string | null | undefined;
|
|
708
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
698
709
|
nickname?: string | null | undefined;
|
|
699
710
|
listingType?: string | null | undefined;
|
|
700
711
|
bedrooms?: number | null | undefined;
|
|
@@ -710,6 +721,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
710
721
|
maximumNights?: number | null | undefined;
|
|
711
722
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
712
723
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
724
|
+
isMergedProperty?: boolean | null | undefined;
|
|
713
725
|
} | undefined;
|
|
714
726
|
propertyNickname?: string | undefined;
|
|
715
727
|
} | undefined;
|
|
@@ -825,6 +837,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
825
837
|
propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
|
|
826
838
|
area?: number | null | undefined;
|
|
827
839
|
description?: string | null | undefined;
|
|
840
|
+
status?: "ACTIVE" | "INACTIVE" | "MERGED" | null | undefined;
|
|
828
841
|
nickname?: string | null | undefined;
|
|
829
842
|
listingType?: string | null | undefined;
|
|
830
843
|
bedrooms?: number | null | undefined;
|
|
@@ -840,6 +853,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
840
853
|
maximumNights?: number | null | undefined;
|
|
841
854
|
isAirbnbConnectionRequest?: boolean | null | undefined;
|
|
842
855
|
airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
|
|
856
|
+
isMergedProperty?: boolean | null | undefined;
|
|
843
857
|
} | undefined;
|
|
844
858
|
propertyNickname?: string | undefined;
|
|
845
859
|
} | 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
|
}
|