hububb-saas-shared 1.2.44 → 1.2.46
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/availability-settings/index.d.ts +44 -0
- package/dist/schemas/availability-settings/index.js +19 -0
- package/dist/schemas/booking-settings/index.d.ts +71 -0
- package/dist/schemas/booking-settings/index.js +28 -0
- package/dist/schemas/channex/booking.d.ts +2 -2
- package/dist/schemas/channex/thread.d.ts +2 -2
- package/dist/schemas/early-bird-discount/index.d.ts +16 -0
- package/dist/schemas/early-bird-discount/index.js +10 -0
- package/dist/schemas/enums/index.d.ts +45 -0
- package/dist/schemas/enums/index.js +56 -0
- package/dist/schemas/index.d.ts +6 -0
- package/dist/schemas/index.js +6 -0
- package/dist/schemas/klevio/index.d.ts +6 -0
- package/dist/schemas/klevio/index.js +2 -0
- package/dist/schemas/last-minute-discount/index.d.ts +16 -0
- package/dist/schemas/last-minute-discount/index.js +10 -0
- package/dist/schemas/pass-through-tax/index.d.ts +46 -0
- package/dist/schemas/pass-through-tax/index.js +20 -0
- package/dist/schemas/price/index.d.ts +50 -18
- package/dist/schemas/price/index.js +14 -0
- package/dist/schemas/service-property/index.d.ts +19 -0
- package/dist/schemas/service-property/index.js +11 -0
- package/dist/schemas/task-checklist-item/index.d.ts +2 -2
- package/dist/schemas/thread/index.d.ts +6 -6
- package/dist/schemas/trip-length-discount/index.d.ts +16 -0
- package/dist/schemas/trip-length-discount/index.js +10 -0
- package/dist/types/availability-settings/index.d.ts +6 -0
- package/dist/types/availability-settings/index.js +2 -0
- package/dist/types/booking-settings/index.d.ts +6 -0
- package/dist/types/booking-settings/index.js +2 -0
- package/dist/types/early-bird-discount/index.d.ts +6 -0
- package/dist/types/early-bird-discount/index.js +2 -0
- package/dist/types/enums/index.d.ts +32 -0
- package/dist/types/enums/index.js +38 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.js +6 -0
- package/dist/types/klevio/index.d.ts +1 -0
- package/dist/types/last-minute-discount/index.d.ts +6 -0
- package/dist/types/last-minute-discount/index.js +2 -0
- package/dist/types/pass-through-tax/index.d.ts +6 -0
- package/dist/types/pass-through-tax/index.js +2 -0
- package/dist/types/price/index.d.ts +8 -0
- package/dist/types/property/index.d.ts +4 -0
- package/dist/types/service-property/index.d.ts +8 -0
- package/dist/types/service-property/index.js +2 -0
- package/dist/types/trip-length-discount/index.d.ts +6 -0
- package/dist/types/trip-length-discount/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const availabilitySettingsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
propertyId: z.ZodNumber;
|
|
5
|
+
createdAt: z.ZodDate;
|
|
6
|
+
updatedAt: z.ZodDate;
|
|
7
|
+
hasAvailability: z.ZodBoolean;
|
|
8
|
+
bookingLeadTime: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
sameDayBookingCutoffTime: z.ZodOptional<z.ZodString>;
|
|
10
|
+
preparationTimeNights: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
maxDaysNotice: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
restrictedCheckInWeekdays: z.ZodOptional<z.ZodUnknown>;
|
|
13
|
+
restrictedCheckOutWeekdays: z.ZodOptional<z.ZodUnknown>;
|
|
14
|
+
weekdayMinNights: z.ZodOptional<z.ZodUnknown>;
|
|
15
|
+
additionalAvailabilitySettings: z.ZodOptional<z.ZodUnknown>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
id: number;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
propertyId: number;
|
|
21
|
+
hasAvailability: boolean;
|
|
22
|
+
bookingLeadTime?: number | undefined;
|
|
23
|
+
sameDayBookingCutoffTime?: string | undefined;
|
|
24
|
+
preparationTimeNights?: number | undefined;
|
|
25
|
+
maxDaysNotice?: number | undefined;
|
|
26
|
+
restrictedCheckInWeekdays?: unknown;
|
|
27
|
+
restrictedCheckOutWeekdays?: unknown;
|
|
28
|
+
weekdayMinNights?: unknown;
|
|
29
|
+
additionalAvailabilitySettings?: unknown;
|
|
30
|
+
}, {
|
|
31
|
+
id: number;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
propertyId: number;
|
|
35
|
+
hasAvailability: boolean;
|
|
36
|
+
bookingLeadTime?: number | undefined;
|
|
37
|
+
sameDayBookingCutoffTime?: string | undefined;
|
|
38
|
+
preparationTimeNights?: number | undefined;
|
|
39
|
+
maxDaysNotice?: number | undefined;
|
|
40
|
+
restrictedCheckInWeekdays?: unknown;
|
|
41
|
+
restrictedCheckOutWeekdays?: unknown;
|
|
42
|
+
weekdayMinNights?: unknown;
|
|
43
|
+
additionalAvailabilitySettings?: unknown;
|
|
44
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.availabilitySettingsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.availabilitySettingsSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
propertyId: (0, zod_1.number)().int(),
|
|
8
|
+
createdAt: (0, zod_1.date)(),
|
|
9
|
+
updatedAt: (0, zod_1.date)(),
|
|
10
|
+
hasAvailability: (0, zod_1.boolean)(),
|
|
11
|
+
bookingLeadTime: (0, zod_1.number)().int().optional(),
|
|
12
|
+
sameDayBookingCutoffTime: (0, zod_1.string)().optional(),
|
|
13
|
+
preparationTimeNights: (0, zod_1.number)().int().optional(),
|
|
14
|
+
maxDaysNotice: (0, zod_1.number)().int().optional(),
|
|
15
|
+
restrictedCheckInWeekdays: zod_1.z.unknown().optional(),
|
|
16
|
+
restrictedCheckOutWeekdays: zod_1.z.unknown().optional(),
|
|
17
|
+
weekdayMinNights: zod_1.z.unknown().optional(),
|
|
18
|
+
additionalAvailabilitySettings: zod_1.z.unknown().optional(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const bookingSettingsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
propertyId: z.ZodNumber;
|
|
5
|
+
createdAt: z.ZodDate;
|
|
6
|
+
updatedAt: z.ZodDate;
|
|
7
|
+
cancellationPolicyCategory: z.ZodOptional<z.ZodString>;
|
|
8
|
+
nonRefundablePriceFactor: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
ltsCancellationPolicyId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
checkInTimeStart: z.ZodOptional<z.ZodString>;
|
|
11
|
+
checkInTimeEnd: z.ZodOptional<z.ZodString>;
|
|
12
|
+
checkOutTime: z.ZodOptional<z.ZodString>;
|
|
13
|
+
allowsChildrenAsHost: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
allowsEventsAsHost: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
allowsInfantsAsHost: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
allowsPetsAsHost: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
allowsSmokingAsHost: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
childrenNotAllowedDetails: z.ZodOptional<z.ZodString>;
|
|
19
|
+
foreignerEligibleStatusAsHost: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
petCapacity: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
instantBookingAllowedCategory: z.ZodOptional<z.ZodString>;
|
|
22
|
+
instantBookWelcomeMessage: z.ZodOptional<z.ZodString>;
|
|
23
|
+
listingExpectationsForGuests: z.ZodOptional<z.ZodUnknown>;
|
|
24
|
+
additionalBookingSettings: z.ZodOptional<z.ZodUnknown>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
id: number;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
propertyId: number;
|
|
30
|
+
checkOutTime?: string | undefined;
|
|
31
|
+
cancellationPolicyCategory?: string | undefined;
|
|
32
|
+
nonRefundablePriceFactor?: number | undefined;
|
|
33
|
+
ltsCancellationPolicyId?: string | undefined;
|
|
34
|
+
checkInTimeStart?: string | undefined;
|
|
35
|
+
checkInTimeEnd?: string | undefined;
|
|
36
|
+
allowsChildrenAsHost?: boolean | undefined;
|
|
37
|
+
allowsEventsAsHost?: boolean | undefined;
|
|
38
|
+
allowsInfantsAsHost?: boolean | undefined;
|
|
39
|
+
allowsPetsAsHost?: boolean | undefined;
|
|
40
|
+
allowsSmokingAsHost?: boolean | undefined;
|
|
41
|
+
childrenNotAllowedDetails?: string | undefined;
|
|
42
|
+
foreignerEligibleStatusAsHost?: boolean | undefined;
|
|
43
|
+
petCapacity?: number | undefined;
|
|
44
|
+
instantBookingAllowedCategory?: string | undefined;
|
|
45
|
+
instantBookWelcomeMessage?: string | undefined;
|
|
46
|
+
listingExpectationsForGuests?: unknown;
|
|
47
|
+
additionalBookingSettings?: unknown;
|
|
48
|
+
}, {
|
|
49
|
+
id: number;
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
propertyId: number;
|
|
53
|
+
checkOutTime?: string | undefined;
|
|
54
|
+
cancellationPolicyCategory?: string | undefined;
|
|
55
|
+
nonRefundablePriceFactor?: number | undefined;
|
|
56
|
+
ltsCancellationPolicyId?: string | undefined;
|
|
57
|
+
checkInTimeStart?: string | undefined;
|
|
58
|
+
checkInTimeEnd?: string | undefined;
|
|
59
|
+
allowsChildrenAsHost?: boolean | undefined;
|
|
60
|
+
allowsEventsAsHost?: boolean | undefined;
|
|
61
|
+
allowsInfantsAsHost?: boolean | undefined;
|
|
62
|
+
allowsPetsAsHost?: boolean | undefined;
|
|
63
|
+
allowsSmokingAsHost?: boolean | undefined;
|
|
64
|
+
childrenNotAllowedDetails?: string | undefined;
|
|
65
|
+
foreignerEligibleStatusAsHost?: boolean | undefined;
|
|
66
|
+
petCapacity?: number | undefined;
|
|
67
|
+
instantBookingAllowedCategory?: string | undefined;
|
|
68
|
+
instantBookWelcomeMessage?: string | undefined;
|
|
69
|
+
listingExpectationsForGuests?: unknown;
|
|
70
|
+
additionalBookingSettings?: unknown;
|
|
71
|
+
}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bookingSettingsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.bookingSettingsSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
propertyId: (0, zod_1.number)().int(),
|
|
8
|
+
createdAt: (0, zod_1.date)(),
|
|
9
|
+
updatedAt: (0, zod_1.date)(),
|
|
10
|
+
cancellationPolicyCategory: (0, zod_1.string)().optional(),
|
|
11
|
+
nonRefundablePriceFactor: (0, zod_1.number)().optional(),
|
|
12
|
+
ltsCancellationPolicyId: (0, zod_1.string)().optional(),
|
|
13
|
+
checkInTimeStart: (0, zod_1.string)().optional(),
|
|
14
|
+
checkInTimeEnd: (0, zod_1.string)().optional(),
|
|
15
|
+
checkOutTime: (0, zod_1.string)().optional(),
|
|
16
|
+
allowsChildrenAsHost: zod_1.z.boolean().optional(),
|
|
17
|
+
allowsEventsAsHost: zod_1.z.boolean().optional(),
|
|
18
|
+
allowsInfantsAsHost: zod_1.z.boolean().optional(),
|
|
19
|
+
allowsPetsAsHost: zod_1.z.boolean().optional(),
|
|
20
|
+
allowsSmokingAsHost: zod_1.z.boolean().optional(),
|
|
21
|
+
childrenNotAllowedDetails: (0, zod_1.string)().optional(),
|
|
22
|
+
foreignerEligibleStatusAsHost: zod_1.z.boolean().optional(),
|
|
23
|
+
petCapacity: (0, zod_1.number)().int().optional(),
|
|
24
|
+
instantBookingAllowedCategory: (0, zod_1.string)().optional(),
|
|
25
|
+
instantBookWelcomeMessage: (0, zod_1.string)().optional(),
|
|
26
|
+
listingExpectationsForGuests: zod_1.z.unknown().optional(),
|
|
27
|
+
additionalBookingSettings: zod_1.z.unknown().optional(),
|
|
28
|
+
});
|
|
@@ -1086,9 +1086,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
|
|
|
1086
1086
|
}>;
|
|
1087
1087
|
property_id: import("zod").ZodString;
|
|
1088
1088
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1089
|
-
timestamp: string;
|
|
1090
1089
|
event: string;
|
|
1091
1090
|
property_id: string;
|
|
1091
|
+
timestamp: string;
|
|
1092
1092
|
payload: {
|
|
1093
1093
|
property_id: string;
|
|
1094
1094
|
revision_id: string;
|
|
@@ -1096,9 +1096,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
|
|
|
1096
1096
|
};
|
|
1097
1097
|
user_id?: string | null | undefined;
|
|
1098
1098
|
}, {
|
|
1099
|
-
timestamp: string;
|
|
1100
1099
|
event: string;
|
|
1101
1100
|
property_id: string;
|
|
1101
|
+
timestamp: string;
|
|
1102
1102
|
payload: {
|
|
1103
1103
|
property_id: string;
|
|
1104
1104
|
revision_id: string;
|
|
@@ -277,9 +277,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
|
277
277
|
}>;
|
|
278
278
|
property_id: import("zod").ZodString;
|
|
279
279
|
}, "strip", import("zod").ZodTypeAny, {
|
|
280
|
-
timestamp: string;
|
|
281
280
|
event: string;
|
|
282
281
|
property_id: string;
|
|
282
|
+
timestamp: string;
|
|
283
283
|
payload: {
|
|
284
284
|
message: string;
|
|
285
285
|
id: string;
|
|
@@ -294,9 +294,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
|
294
294
|
};
|
|
295
295
|
user_id?: string | null | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
timestamp: string;
|
|
298
297
|
event: string;
|
|
299
298
|
property_id: string;
|
|
299
|
+
timestamp: string;
|
|
300
300
|
payload: {
|
|
301
301
|
message: string;
|
|
302
302
|
id: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const earlyBirdDiscountSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
priceId: import("zod").ZodNumber;
|
|
4
|
+
minDaysBeforeCheckIn: import("zod").ZodNumber;
|
|
5
|
+
pct: import("zod").ZodNumber;
|
|
6
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
+
id: number;
|
|
8
|
+
priceId: number;
|
|
9
|
+
pct: number;
|
|
10
|
+
minDaysBeforeCheckIn: number;
|
|
11
|
+
}, {
|
|
12
|
+
id: number;
|
|
13
|
+
priceId: number;
|
|
14
|
+
pct: number;
|
|
15
|
+
minDaysBeforeCheckIn: number;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.earlyBirdDiscountSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.earlyBirdDiscountSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
priceId: (0, zod_1.number)().int(),
|
|
8
|
+
minDaysBeforeCheckIn: (0, zod_1.number)().int(),
|
|
9
|
+
pct: (0, zod_1.number)(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum ServiceType {
|
|
2
|
+
INTEGRATION = "INTEGRATION",
|
|
3
|
+
ON_DEMAND = "ON_DEMAND",
|
|
4
|
+
RECURRING = "RECURRING"
|
|
5
|
+
}
|
|
6
|
+
export declare enum TaskStatus {
|
|
7
|
+
PENDING = "PENDING",
|
|
8
|
+
CONFIRMED = "CONFIRMED",
|
|
9
|
+
COMPLETED = "COMPLETED",
|
|
10
|
+
CANCELLED = "CANCELLED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum TaskPriority {
|
|
13
|
+
LOW = "LOW",
|
|
14
|
+
MEDIUM = "MEDIUM",
|
|
15
|
+
HIGH = "HIGH"
|
|
16
|
+
}
|
|
17
|
+
export declare enum InvoiceType {
|
|
18
|
+
SUBSCRIPTION = "SUBSCRIPTION",
|
|
19
|
+
PURCHASE = "PURCHASE"
|
|
20
|
+
}
|
|
21
|
+
export declare enum InvoiceStatus {
|
|
22
|
+
PENDING = "PENDING",
|
|
23
|
+
PAID = "PAID",
|
|
24
|
+
CANCELLED = "CANCELLED",
|
|
25
|
+
FAILED = "FAILED"
|
|
26
|
+
}
|
|
27
|
+
export declare enum PriceType {
|
|
28
|
+
PRORATED = "PRORATED",
|
|
29
|
+
FULL = "FULL"
|
|
30
|
+
}
|
|
31
|
+
export declare enum PurchaseStatus {
|
|
32
|
+
ACTIVE = "ACTIVE",
|
|
33
|
+
CANCELLED = "CANCELLED",
|
|
34
|
+
FAILED = "FAILED"
|
|
35
|
+
}
|
|
36
|
+
export declare enum SubscriptionStatus {
|
|
37
|
+
INCOMPLETE = "INCOMPLETE",
|
|
38
|
+
INCOMPLETE_EXPIRED = "INCOMPLETE_EXPIRED",
|
|
39
|
+
TRIALING = "TRIALING",
|
|
40
|
+
ACTIVE = "ACTIVE",
|
|
41
|
+
PAST_DUE = "PAST_DUE",
|
|
42
|
+
CANCELED = "CANCELED",
|
|
43
|
+
UNPAID = "UNPAID",
|
|
44
|
+
PAUSED = "PAUSED"
|
|
45
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
|
+
var ServiceType;
|
|
5
|
+
(function (ServiceType) {
|
|
6
|
+
ServiceType["INTEGRATION"] = "INTEGRATION";
|
|
7
|
+
ServiceType["ON_DEMAND"] = "ON_DEMAND";
|
|
8
|
+
ServiceType["RECURRING"] = "RECURRING";
|
|
9
|
+
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
10
|
+
var TaskStatus;
|
|
11
|
+
(function (TaskStatus) {
|
|
12
|
+
TaskStatus["PENDING"] = "PENDING";
|
|
13
|
+
TaskStatus["CONFIRMED"] = "CONFIRMED";
|
|
14
|
+
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
15
|
+
TaskStatus["CANCELLED"] = "CANCELLED";
|
|
16
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
17
|
+
var TaskPriority;
|
|
18
|
+
(function (TaskPriority) {
|
|
19
|
+
TaskPriority["LOW"] = "LOW";
|
|
20
|
+
TaskPriority["MEDIUM"] = "MEDIUM";
|
|
21
|
+
TaskPriority["HIGH"] = "HIGH";
|
|
22
|
+
})(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
|
|
23
|
+
var InvoiceType;
|
|
24
|
+
(function (InvoiceType) {
|
|
25
|
+
InvoiceType["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
26
|
+
InvoiceType["PURCHASE"] = "PURCHASE";
|
|
27
|
+
})(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
|
|
28
|
+
var InvoiceStatus;
|
|
29
|
+
(function (InvoiceStatus) {
|
|
30
|
+
InvoiceStatus["PENDING"] = "PENDING";
|
|
31
|
+
InvoiceStatus["PAID"] = "PAID";
|
|
32
|
+
InvoiceStatus["CANCELLED"] = "CANCELLED";
|
|
33
|
+
InvoiceStatus["FAILED"] = "FAILED";
|
|
34
|
+
})(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
|
|
35
|
+
var PriceType;
|
|
36
|
+
(function (PriceType) {
|
|
37
|
+
PriceType["PRORATED"] = "PRORATED";
|
|
38
|
+
PriceType["FULL"] = "FULL";
|
|
39
|
+
})(PriceType || (exports.PriceType = PriceType = {}));
|
|
40
|
+
var PurchaseStatus;
|
|
41
|
+
(function (PurchaseStatus) {
|
|
42
|
+
PurchaseStatus["ACTIVE"] = "ACTIVE";
|
|
43
|
+
PurchaseStatus["CANCELLED"] = "CANCELLED";
|
|
44
|
+
PurchaseStatus["FAILED"] = "FAILED";
|
|
45
|
+
})(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
|
|
46
|
+
var SubscriptionStatus;
|
|
47
|
+
(function (SubscriptionStatus) {
|
|
48
|
+
SubscriptionStatus["INCOMPLETE"] = "INCOMPLETE";
|
|
49
|
+
SubscriptionStatus["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
|
|
50
|
+
SubscriptionStatus["TRIALING"] = "TRIALING";
|
|
51
|
+
SubscriptionStatus["ACTIVE"] = "ACTIVE";
|
|
52
|
+
SubscriptionStatus["PAST_DUE"] = "PAST_DUE";
|
|
53
|
+
SubscriptionStatus["CANCELED"] = "CANCELED";
|
|
54
|
+
SubscriptionStatus["UNPAID"] = "UNPAID";
|
|
55
|
+
SubscriptionStatus["PAUSED"] = "PAUSED";
|
|
56
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -102,3 +102,9 @@ export * from "./property-inventory-current-state-item";
|
|
|
102
102
|
export * from "./task-supply-purchase-item";
|
|
103
103
|
export * from "./service-provider-payout-info";
|
|
104
104
|
export * from "./service-provider-payout";
|
|
105
|
+
export * from "./trip-length-discount";
|
|
106
|
+
export * from "./last-minute-discount";
|
|
107
|
+
export * from "./early-bird-discount";
|
|
108
|
+
export * from "./pass-through-tax";
|
|
109
|
+
export * from "./booking-settings";
|
|
110
|
+
export * from "./availability-settings";
|
package/dist/schemas/index.js
CHANGED
|
@@ -118,3 +118,9 @@ __exportStar(require("./property-inventory-current-state-item"), exports);
|
|
|
118
118
|
__exportStar(require("./task-supply-purchase-item"), exports);
|
|
119
119
|
__exportStar(require("./service-provider-payout-info"), exports);
|
|
120
120
|
__exportStar(require("./service-provider-payout"), exports);
|
|
121
|
+
__exportStar(require("./trip-length-discount"), exports);
|
|
122
|
+
__exportStar(require("./last-minute-discount"), exports);
|
|
123
|
+
__exportStar(require("./early-bird-discount"), exports);
|
|
124
|
+
__exportStar(require("./pass-through-tax"), exports);
|
|
125
|
+
__exportStar(require("./booking-settings"), exports);
|
|
126
|
+
__exportStar(require("./availability-settings"), exports);
|
|
@@ -39,6 +39,7 @@ export declare const klevioLockSchema: z.ZodObject<{
|
|
|
39
39
|
klevioAccountId: z.ZodNumber;
|
|
40
40
|
klevioPropertyId: z.ZodString;
|
|
41
41
|
name: z.ZodString;
|
|
42
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
43
|
action: z.ZodEnum<["UNLOCK_LOCK", "OPEN"]>;
|
|
43
44
|
isConnected: z.ZodBoolean;
|
|
44
45
|
availableActions: z.ZodArray<z.ZodString, "many">;
|
|
@@ -57,6 +58,7 @@ export declare const klevioLockSchema: z.ZodObject<{
|
|
|
57
58
|
klevioPropertyId: string;
|
|
58
59
|
availableActions: string[];
|
|
59
60
|
hasKeypad: boolean;
|
|
61
|
+
instruction?: string | null | undefined;
|
|
60
62
|
masterKeyId?: string | null | undefined;
|
|
61
63
|
}, {
|
|
62
64
|
name: string;
|
|
@@ -69,6 +71,7 @@ export declare const klevioLockSchema: z.ZodObject<{
|
|
|
69
71
|
klevioPropertyId: string;
|
|
70
72
|
availableActions: string[];
|
|
71
73
|
hasKeypad: boolean;
|
|
74
|
+
instruction?: string | null | undefined;
|
|
72
75
|
masterKeyId?: string | null | undefined;
|
|
73
76
|
}>;
|
|
74
77
|
export declare const propertyKlevioLockSchema: z.ZodObject<{
|
|
@@ -135,6 +138,7 @@ export declare const klevioKeySchema: z.ZodObject<{
|
|
|
135
138
|
}>;
|
|
136
139
|
export declare const klevioLockPreviewSchema: z.ZodObject<{
|
|
137
140
|
name: z.ZodString;
|
|
141
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
142
|
isConnected: z.ZodBoolean;
|
|
139
143
|
availableActions: z.ZodArray<z.ZodString, "many">;
|
|
140
144
|
hasKeypad: z.ZodBoolean;
|
|
@@ -146,6 +150,7 @@ export declare const klevioLockPreviewSchema: z.ZodObject<{
|
|
|
146
150
|
availableActions: string[];
|
|
147
151
|
hasKeypad: boolean;
|
|
148
152
|
suggestedAction: "UNLOCK_LOCK" | "OPEN";
|
|
153
|
+
instruction?: string | null | undefined;
|
|
149
154
|
masterKeyId?: string | null | undefined;
|
|
150
155
|
}, {
|
|
151
156
|
name: string;
|
|
@@ -153,6 +158,7 @@ export declare const klevioLockPreviewSchema: z.ZodObject<{
|
|
|
153
158
|
availableActions: string[];
|
|
154
159
|
hasKeypad: boolean;
|
|
155
160
|
suggestedAction: "UNLOCK_LOCK" | "OPEN";
|
|
161
|
+
instruction?: string | null | undefined;
|
|
156
162
|
masterKeyId?: string | null | undefined;
|
|
157
163
|
}>;
|
|
158
164
|
export declare const lockControlResponseSchema: z.ZodObject<{
|
|
@@ -20,6 +20,7 @@ exports.klevioLockSchema = zod_1.z.object({
|
|
|
20
20
|
klevioAccountId: zod_1.z.number().int(),
|
|
21
21
|
klevioPropertyId: zod_1.z.string(),
|
|
22
22
|
name: zod_1.z.string(),
|
|
23
|
+
instruction: zod_1.z.string().nullish(),
|
|
23
24
|
action: exports.klevioLockActionSchema,
|
|
24
25
|
isConnected: zod_1.z.boolean(),
|
|
25
26
|
availableActions: zod_1.z.array(zod_1.z.string()),
|
|
@@ -52,6 +53,7 @@ exports.klevioKeySchema = zod_1.z.object({
|
|
|
52
53
|
});
|
|
53
54
|
exports.klevioLockPreviewSchema = zod_1.z.object({
|
|
54
55
|
name: zod_1.z.string(),
|
|
56
|
+
instruction: zod_1.z.string().nullish(),
|
|
55
57
|
isConnected: zod_1.z.boolean(),
|
|
56
58
|
availableActions: zod_1.z.array(zod_1.z.string()),
|
|
57
59
|
hasKeypad: zod_1.z.boolean(),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const lastMinuteDiscountSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
priceId: import("zod").ZodNumber;
|
|
4
|
+
maxDaysBeforeCheckIn: import("zod").ZodNumber;
|
|
5
|
+
pct: import("zod").ZodNumber;
|
|
6
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
+
id: number;
|
|
8
|
+
priceId: number;
|
|
9
|
+
pct: number;
|
|
10
|
+
maxDaysBeforeCheckIn: number;
|
|
11
|
+
}, {
|
|
12
|
+
id: number;
|
|
13
|
+
priceId: number;
|
|
14
|
+
pct: number;
|
|
15
|
+
maxDaysBeforeCheckIn: number;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lastMinuteDiscountSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.lastMinuteDiscountSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
priceId: (0, zod_1.number)().int(),
|
|
8
|
+
maxDaysBeforeCheckIn: (0, zod_1.number)().int(),
|
|
9
|
+
pct: (0, zod_1.number)(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const passThroughTaxSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
priceId: import("zod").ZodNumber;
|
|
4
|
+
taxType: import("zod").ZodString;
|
|
5
|
+
amount: import("zod").ZodNumber;
|
|
6
|
+
amountType: import("zod").ZodString;
|
|
7
|
+
taxableBase: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
8
|
+
businessTaxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
noBusinessTaxIdDeclaration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
10
|
+
totRegistrationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
noTotRegistrationIdDeclaration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
12
|
+
attestation: import("zod").ZodBoolean;
|
|
13
|
+
longTermStayExemption: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
+
onlyFirstNightsExemption: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
15
|
+
maxCapPerPersonPerNight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
16
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
17
|
+
id: number;
|
|
18
|
+
amount: number;
|
|
19
|
+
priceId: number;
|
|
20
|
+
taxType: string;
|
|
21
|
+
amountType: string;
|
|
22
|
+
attestation: boolean;
|
|
23
|
+
taxableBase?: string[] | undefined;
|
|
24
|
+
businessTaxId?: string | undefined;
|
|
25
|
+
noBusinessTaxIdDeclaration?: boolean | undefined;
|
|
26
|
+
totRegistrationId?: string | undefined;
|
|
27
|
+
noTotRegistrationIdDeclaration?: boolean | undefined;
|
|
28
|
+
longTermStayExemption?: number | undefined;
|
|
29
|
+
onlyFirstNightsExemption?: number | undefined;
|
|
30
|
+
maxCapPerPersonPerNight?: number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
id: number;
|
|
33
|
+
amount: number;
|
|
34
|
+
priceId: number;
|
|
35
|
+
taxType: string;
|
|
36
|
+
amountType: string;
|
|
37
|
+
attestation: boolean;
|
|
38
|
+
taxableBase?: string[] | undefined;
|
|
39
|
+
businessTaxId?: string | undefined;
|
|
40
|
+
noBusinessTaxIdDeclaration?: boolean | undefined;
|
|
41
|
+
totRegistrationId?: string | undefined;
|
|
42
|
+
noTotRegistrationIdDeclaration?: boolean | undefined;
|
|
43
|
+
longTermStayExemption?: number | undefined;
|
|
44
|
+
onlyFirstNightsExemption?: number | undefined;
|
|
45
|
+
maxCapPerPersonPerNight?: number | undefined;
|
|
46
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.passThroughTaxSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.passThroughTaxSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
priceId: (0, zod_1.number)().int(),
|
|
8
|
+
taxType: (0, zod_1.string)(), // keep as string for flexibility; maps to PassThroughTaxType
|
|
9
|
+
amount: (0, zod_1.number)(),
|
|
10
|
+
amountType: (0, zod_1.string)(), // maps to PassThroughTaxesAmountType
|
|
11
|
+
taxableBase: (0, zod_1.array)((0, zod_1.string)()).optional(), // array of PassThroughTaxesTaxableBase strings
|
|
12
|
+
businessTaxId: (0, zod_1.string)().optional(),
|
|
13
|
+
noBusinessTaxIdDeclaration: (0, zod_1.boolean)().optional(),
|
|
14
|
+
totRegistrationId: (0, zod_1.string)().optional(),
|
|
15
|
+
noTotRegistrationIdDeclaration: (0, zod_1.boolean)().optional(),
|
|
16
|
+
attestation: (0, zod_1.boolean)(),
|
|
17
|
+
longTermStayExemption: (0, zod_1.number)().int().optional(),
|
|
18
|
+
onlyFirstNightsExemption: (0, zod_1.number)().int().optional(),
|
|
19
|
+
maxCapPerPersonPerNight: (0, zod_1.number)().int().optional(),
|
|
20
|
+
});
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PassThroughTaxesCollectionType } from "../../types/enums";
|
|
3
|
+
export declare const PriceSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
propertyId: z.ZodNumber;
|
|
6
|
+
cleaningFee: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
petFee: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
basePrice: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
guestsIncluded: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
extraPersonFee: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
monthlyPriceFactor: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
weeklyPriceFactor: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
weekendBasePrice: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
securityDeposit: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
currency: z.ZodString;
|
|
16
|
+
createdAt: z.ZodDate;
|
|
17
|
+
updatedAt: z.ZodDate;
|
|
18
|
+
minPrice: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
maxPrice: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
shortStayFee: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
shortStayThresholdNights: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
earlyBirdBookingMinDaysAhead: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
earlyBirdDiscountPct: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
tripLengthDiscountMinNights: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
tripLengthDiscountPct: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
newListingPromotionPct: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
newListingPromotionEndsAt: z.ZodNullable<z.ZodDate>;
|
|
28
|
+
additionalDiscounts: z.ZodOptional<z.ZodUnknown>;
|
|
29
|
+
passThroughTaxesCollectionType: z.ZodOptional<z.ZodNativeEnum<typeof PassThroughTaxesCollectionType>>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
31
|
currency: string;
|
|
20
32
|
id: number;
|
|
21
33
|
createdAt: Date;
|
|
@@ -32,6 +44,16 @@ export declare const PriceSchema: import("zod").ZodObject<{
|
|
|
32
44
|
petFee: number | null;
|
|
33
45
|
minPrice: number | null;
|
|
34
46
|
maxPrice: number | null;
|
|
47
|
+
shortStayFee: number | null;
|
|
48
|
+
shortStayThresholdNights: number | null;
|
|
49
|
+
earlyBirdBookingMinDaysAhead: number | null;
|
|
50
|
+
earlyBirdDiscountPct: number | null;
|
|
51
|
+
tripLengthDiscountMinNights: number | null;
|
|
52
|
+
tripLengthDiscountPct: number | null;
|
|
53
|
+
newListingPromotionPct: number | null;
|
|
54
|
+
newListingPromotionEndsAt: Date | null;
|
|
55
|
+
additionalDiscounts?: unknown;
|
|
56
|
+
passThroughTaxesCollectionType?: PassThroughTaxesCollectionType | undefined;
|
|
35
57
|
}, {
|
|
36
58
|
currency: string;
|
|
37
59
|
id: number;
|
|
@@ -49,4 +71,14 @@ export declare const PriceSchema: import("zod").ZodObject<{
|
|
|
49
71
|
petFee: number | null;
|
|
50
72
|
minPrice: number | null;
|
|
51
73
|
maxPrice: number | null;
|
|
74
|
+
shortStayFee: number | null;
|
|
75
|
+
shortStayThresholdNights: number | null;
|
|
76
|
+
earlyBirdBookingMinDaysAhead: number | null;
|
|
77
|
+
earlyBirdDiscountPct: number | null;
|
|
78
|
+
tripLengthDiscountMinNights: number | null;
|
|
79
|
+
tripLengthDiscountPct: number | null;
|
|
80
|
+
newListingPromotionPct: number | null;
|
|
81
|
+
newListingPromotionEndsAt: Date | null;
|
|
82
|
+
additionalDiscounts?: unknown;
|
|
83
|
+
passThroughTaxesCollectionType?: PassThroughTaxesCollectionType | undefined;
|
|
52
84
|
}>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PriceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
5
6
|
exports.PriceSchema = (0, zod_1.object)({
|
|
6
7
|
id: (0, zod_1.number)(),
|
|
7
8
|
propertyId: (0, zod_1.number)(),
|
|
@@ -19,4 +20,17 @@ exports.PriceSchema = (0, zod_1.object)({
|
|
|
19
20
|
updatedAt: (0, zod_1.date)(),
|
|
20
21
|
minPrice: (0, zod_1.number)().nullable(),
|
|
21
22
|
maxPrice: (0, zod_1.number)().nullable(),
|
|
23
|
+
// New dynamic pricing fields and discounts
|
|
24
|
+
shortStayFee: (0, zod_1.number)().nullable(),
|
|
25
|
+
shortStayThresholdNights: (0, zod_1.number)().nullable(),
|
|
26
|
+
earlyBirdBookingMinDaysAhead: (0, zod_1.number)().nullable(),
|
|
27
|
+
earlyBirdDiscountPct: (0, zod_1.number)().nullable(),
|
|
28
|
+
tripLengthDiscountMinNights: (0, zod_1.number)().nullable(),
|
|
29
|
+
tripLengthDiscountPct: (0, zod_1.number)().nullable(),
|
|
30
|
+
newListingPromotionPct: (0, zod_1.number)().nullable(),
|
|
31
|
+
newListingPromotionEndsAt: (0, zod_1.date)().nullable(),
|
|
32
|
+
additionalDiscounts: zod_1.z.unknown().optional(),
|
|
33
|
+
passThroughTaxesCollectionType: zod_1.z
|
|
34
|
+
.nativeEnum(enums_1.PassThroughTaxesCollectionType)
|
|
35
|
+
.optional(),
|
|
22
36
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const servicePropertySchema: import("zod").ZodObject<{
|
|
2
|
+
propertyId: import("zod").ZodNumber;
|
|
3
|
+
serviceId: import("zod").ZodNumber;
|
|
4
|
+
status: import("zod").ZodString;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
serviceId: number;
|
|
12
|
+
propertyId: number;
|
|
13
|
+
}, {
|
|
14
|
+
status: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
serviceId: number;
|
|
18
|
+
propertyId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.servicePropertySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.servicePropertySchema = (0, zod_1.object)({
|
|
6
|
+
propertyId: (0, zod_1.number)().int(),
|
|
7
|
+
serviceId: (0, zod_1.number)().int(),
|
|
8
|
+
status: (0, zod_1.string)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -11,15 +11,15 @@ export declare const taskChecklistItemSchema: import("zod").ZodObject<{
|
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
taskChecklistSpaceId: number;
|
|
14
|
-
completed?: boolean | undefined;
|
|
15
14
|
content?: string | undefined;
|
|
15
|
+
completed?: boolean | undefined;
|
|
16
16
|
completedAt?: Date | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
id: number;
|
|
19
19
|
createdAt: Date;
|
|
20
20
|
updatedAt: Date;
|
|
21
21
|
taskChecklistSpaceId: number;
|
|
22
|
-
completed?: boolean | undefined;
|
|
23
22
|
content?: string | undefined;
|
|
23
|
+
completed?: boolean | undefined;
|
|
24
24
|
completedAt?: Date | undefined;
|
|
25
25
|
}>;
|
|
@@ -931,7 +931,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
931
931
|
} | undefined;
|
|
932
932
|
}>>;
|
|
933
933
|
participantIds: z.ZodArray<z.ZodString, "many">;
|
|
934
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
934
|
+
participants: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
935
935
|
id: z.ZodString;
|
|
936
936
|
name: z.ZodString;
|
|
937
937
|
email: z.ZodString;
|
|
@@ -962,7 +962,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
962
962
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
963
963
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
964
964
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
965
|
-
}
|
|
965
|
+
}, {
|
|
966
966
|
userRole: z.ZodOptional<z.ZodObject<{
|
|
967
967
|
id: z.ZodNumber;
|
|
968
968
|
name: z.ZodString;
|
|
@@ -979,7 +979,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
979
979
|
createdAt: Date;
|
|
980
980
|
updatedAt: Date;
|
|
981
981
|
}>>;
|
|
982
|
-
}
|
|
982
|
+
}>, "strip", z.ZodTypeAny, {
|
|
983
983
|
name: string;
|
|
984
984
|
id: string;
|
|
985
985
|
email: string;
|
|
@@ -1065,7 +1065,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1065
1065
|
needsAttentionMap: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1066
1066
|
propertyId: z.ZodOptional<z.ZodNumber>;
|
|
1067
1067
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1068
|
-
reservation: z.ZodOptional<z.ZodObject<Pick<{
|
|
1068
|
+
reservation: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
1069
1069
|
id: z.ZodNumber;
|
|
1070
1070
|
status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
1071
1071
|
currency: z.ZodString;
|
|
@@ -1197,7 +1197,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1197
1197
|
}[] | undefined;
|
|
1198
1198
|
}>>;
|
|
1199
1199
|
isUnitChanged: z.ZodBoolean;
|
|
1200
|
-
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"
|
|
1200
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
|
|
1201
1201
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
1202
1202
|
property: z.ZodOptional<z.ZodObject<{
|
|
1203
1203
|
id: z.ZodNumber;
|
|
@@ -1290,7 +1290,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1290
1290
|
customBundleId?: number | null | undefined;
|
|
1291
1291
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1292
1292
|
}>>;
|
|
1293
|
-
}
|
|
1293
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1294
1294
|
id: number;
|
|
1295
1295
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
1296
1296
|
propertyId: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const tripLengthDiscountSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
priceId: import("zod").ZodNumber;
|
|
4
|
+
minNights: import("zod").ZodNumber;
|
|
5
|
+
pct: import("zod").ZodNumber;
|
|
6
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
+
id: number;
|
|
8
|
+
priceId: number;
|
|
9
|
+
minNights: number;
|
|
10
|
+
pct: number;
|
|
11
|
+
}, {
|
|
12
|
+
id: number;
|
|
13
|
+
priceId: number;
|
|
14
|
+
minNights: number;
|
|
15
|
+
pct: number;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tripLengthDiscountSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.tripLengthDiscountSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
priceId: (0, zod_1.number)().int(),
|
|
8
|
+
minNights: (0, zod_1.number)().int(),
|
|
9
|
+
pct: (0, zod_1.number)(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { availabilitySettingsSchema } from "../../schemas/availability-settings";
|
|
3
|
+
import { Property } from "../property";
|
|
4
|
+
export interface AvailabilitySettings extends infer<typeof availabilitySettingsSchema> {
|
|
5
|
+
property?: Property;
|
|
6
|
+
}
|
|
@@ -187,3 +187,35 @@ export declare enum HumanReviewStatus {
|
|
|
187
187
|
RESOLVED = "RESOLVED",
|
|
188
188
|
DISMISSED = "DISMISSED"
|
|
189
189
|
}
|
|
190
|
+
export declare enum PassThroughTaxesCollectionType {
|
|
191
|
+
NO_AIRBNB_COLLECTED_TAX = "NO_AIRBNB_COLLECTED_TAX",
|
|
192
|
+
OVERRIDE_AIRBNB_COLLECTED_TAX = "OVERRIDE_AIRBNB_COLLECTED_TAX",
|
|
193
|
+
STACKED_AIRBNB_COLLECTED_TAX = "STACKED_AIRBNB_COLLECTED_TAX",
|
|
194
|
+
INELIGIBLE = "INELIGIBLE",
|
|
195
|
+
UNDEFINED = "UNDEFINED"
|
|
196
|
+
}
|
|
197
|
+
export declare enum PassThroughTaxType {
|
|
198
|
+
pass_through_hotel_tax = "pass_through_hotel_tax",
|
|
199
|
+
pass_through_lodging_tax = "pass_through_lodging_tax",
|
|
200
|
+
pass_through_room_tax = "pass_through_room_tax",
|
|
201
|
+
pass_through_tourist_tax = "pass_through_tourist_tax",
|
|
202
|
+
pass_through_transient_occupancy_tax = "pass_through_transient_occupancy_tax",
|
|
203
|
+
pass_through_sales_tax = "pass_through_sales_tax",
|
|
204
|
+
pass_through_vat_gst = "pass_through_vat_gst",
|
|
205
|
+
pass_through_tourism_assessment_fee = "pass_through_tourism_assessment_fee"
|
|
206
|
+
}
|
|
207
|
+
export declare enum PassThroughTaxesAmountType {
|
|
208
|
+
percent_per_reservation = "percent_per_reservation",
|
|
209
|
+
flat_per_guest = "flat_per_guest",
|
|
210
|
+
flat_per_guest_per_night = "flat_per_guest_per_night",
|
|
211
|
+
flat_per_night = "flat_per_night"
|
|
212
|
+
}
|
|
213
|
+
export declare enum PassThroughTaxesTaxableBase {
|
|
214
|
+
base_price = "base_price",
|
|
215
|
+
pass_through_resort_fee = "pass_through_resort_fee",
|
|
216
|
+
pass_through_community_fee = "pass_through_community_fee",
|
|
217
|
+
pass_through_management_fee = "pass_through_management_fee",
|
|
218
|
+
pass_through_linen_fee = "pass_through_linen_fee",
|
|
219
|
+
pass_through_cleaning_fee = "pass_through_cleaning_fee",
|
|
220
|
+
pass_through_pet_fee = "pass_through_pet_fee"
|
|
221
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HumanReviewStatus = exports.HumanReviewPriority = exports.TaskPricingStatus = exports.ServiceProviderPayoutStatus = exports.UserRoleType = exports.TaskReportingPhotoType = exports.TaskReportingVideoType = exports.TaskQuoteStatus = exports.TaskInventoryDetergentItemFillStateAfterCompletion = exports.TaskInventoryItemStatus = exports.TaskInventoryStatus = exports.InventoryItemCategory = exports.TaskBlockReason = exports.InvitedServiceProviderPreferencesPriority = exports.InvitedServiceProviderStatus = exports.PropertyManagerSessionType = exports.PropertyManagerSuggestionStatus = exports.PropertyManagerSessionStatus = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
|
|
3
|
+
exports.PassThroughTaxesTaxableBase = exports.PassThroughTaxesAmountType = exports.PassThroughTaxType = exports.PassThroughTaxesCollectionType = exports.HumanReviewStatus = exports.HumanReviewPriority = exports.TaskPricingStatus = exports.ServiceProviderPayoutStatus = exports.UserRoleType = exports.TaskReportingPhotoType = exports.TaskReportingVideoType = exports.TaskQuoteStatus = exports.TaskInventoryDetergentItemFillStateAfterCompletion = exports.TaskInventoryItemStatus = exports.TaskInventoryStatus = exports.InventoryItemCategory = exports.TaskBlockReason = exports.InvitedServiceProviderPreferencesPriority = exports.InvitedServiceProviderStatus = exports.PropertyManagerSessionType = exports.PropertyManagerSuggestionStatus = exports.PropertyManagerSessionStatus = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
|
|
4
4
|
var ServiceType;
|
|
5
5
|
(function (ServiceType) {
|
|
6
6
|
ServiceType["INTEGRATION"] = "INTEGRATION";
|
|
@@ -228,3 +228,40 @@ var HumanReviewStatus;
|
|
|
228
228
|
HumanReviewStatus["RESOLVED"] = "RESOLVED";
|
|
229
229
|
HumanReviewStatus["DISMISSED"] = "DISMISSED";
|
|
230
230
|
})(HumanReviewStatus || (exports.HumanReviewStatus = HumanReviewStatus = {}));
|
|
231
|
+
// Airbnb pass-through tax enums
|
|
232
|
+
var PassThroughTaxesCollectionType;
|
|
233
|
+
(function (PassThroughTaxesCollectionType) {
|
|
234
|
+
PassThroughTaxesCollectionType["NO_AIRBNB_COLLECTED_TAX"] = "NO_AIRBNB_COLLECTED_TAX";
|
|
235
|
+
PassThroughTaxesCollectionType["OVERRIDE_AIRBNB_COLLECTED_TAX"] = "OVERRIDE_AIRBNB_COLLECTED_TAX";
|
|
236
|
+
PassThroughTaxesCollectionType["STACKED_AIRBNB_COLLECTED_TAX"] = "STACKED_AIRBNB_COLLECTED_TAX";
|
|
237
|
+
PassThroughTaxesCollectionType["INELIGIBLE"] = "INELIGIBLE";
|
|
238
|
+
PassThroughTaxesCollectionType["UNDEFINED"] = "UNDEFINED";
|
|
239
|
+
})(PassThroughTaxesCollectionType || (exports.PassThroughTaxesCollectionType = PassThroughTaxesCollectionType = {}));
|
|
240
|
+
var PassThroughTaxType;
|
|
241
|
+
(function (PassThroughTaxType) {
|
|
242
|
+
PassThroughTaxType["pass_through_hotel_tax"] = "pass_through_hotel_tax";
|
|
243
|
+
PassThroughTaxType["pass_through_lodging_tax"] = "pass_through_lodging_tax";
|
|
244
|
+
PassThroughTaxType["pass_through_room_tax"] = "pass_through_room_tax";
|
|
245
|
+
PassThroughTaxType["pass_through_tourist_tax"] = "pass_through_tourist_tax";
|
|
246
|
+
PassThroughTaxType["pass_through_transient_occupancy_tax"] = "pass_through_transient_occupancy_tax";
|
|
247
|
+
PassThroughTaxType["pass_through_sales_tax"] = "pass_through_sales_tax";
|
|
248
|
+
PassThroughTaxType["pass_through_vat_gst"] = "pass_through_vat_gst";
|
|
249
|
+
PassThroughTaxType["pass_through_tourism_assessment_fee"] = "pass_through_tourism_assessment_fee";
|
|
250
|
+
})(PassThroughTaxType || (exports.PassThroughTaxType = PassThroughTaxType = {}));
|
|
251
|
+
var PassThroughTaxesAmountType;
|
|
252
|
+
(function (PassThroughTaxesAmountType) {
|
|
253
|
+
PassThroughTaxesAmountType["percent_per_reservation"] = "percent_per_reservation";
|
|
254
|
+
PassThroughTaxesAmountType["flat_per_guest"] = "flat_per_guest";
|
|
255
|
+
PassThroughTaxesAmountType["flat_per_guest_per_night"] = "flat_per_guest_per_night";
|
|
256
|
+
PassThroughTaxesAmountType["flat_per_night"] = "flat_per_night";
|
|
257
|
+
})(PassThroughTaxesAmountType || (exports.PassThroughTaxesAmountType = PassThroughTaxesAmountType = {}));
|
|
258
|
+
var PassThroughTaxesTaxableBase;
|
|
259
|
+
(function (PassThroughTaxesTaxableBase) {
|
|
260
|
+
PassThroughTaxesTaxableBase["base_price"] = "base_price";
|
|
261
|
+
PassThroughTaxesTaxableBase["pass_through_resort_fee"] = "pass_through_resort_fee";
|
|
262
|
+
PassThroughTaxesTaxableBase["pass_through_community_fee"] = "pass_through_community_fee";
|
|
263
|
+
PassThroughTaxesTaxableBase["pass_through_management_fee"] = "pass_through_management_fee";
|
|
264
|
+
PassThroughTaxesTaxableBase["pass_through_linen_fee"] = "pass_through_linen_fee";
|
|
265
|
+
PassThroughTaxesTaxableBase["pass_through_cleaning_fee"] = "pass_through_cleaning_fee";
|
|
266
|
+
PassThroughTaxesTaxableBase["pass_through_pet_fee"] = "pass_through_pet_fee";
|
|
267
|
+
})(PassThroughTaxesTaxableBase || (exports.PassThroughTaxesTaxableBase = PassThroughTaxesTaxableBase = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -103,4 +103,10 @@ export * from "./property-inventory-current-state-item";
|
|
|
103
103
|
export * from "./task-supply-purchase-item";
|
|
104
104
|
export * from "./service-provider-payout-info";
|
|
105
105
|
export * from "./service-provider-payout";
|
|
106
|
+
export * from "./trip-length-discount";
|
|
107
|
+
export * from "./last-minute-discount";
|
|
108
|
+
export * from "./early-bird-discount";
|
|
109
|
+
export * from "./pass-through-tax";
|
|
110
|
+
export * from "./booking-settings";
|
|
111
|
+
export * from "./availability-settings";
|
|
106
112
|
export * from "./guest-verification";
|
package/dist/types/index.js
CHANGED
|
@@ -119,4 +119,10 @@ __exportStar(require("./property-inventory-current-state-item"), exports);
|
|
|
119
119
|
__exportStar(require("./task-supply-purchase-item"), exports);
|
|
120
120
|
__exportStar(require("./service-provider-payout-info"), exports);
|
|
121
121
|
__exportStar(require("./service-provider-payout"), exports);
|
|
122
|
+
__exportStar(require("./trip-length-discount"), exports);
|
|
123
|
+
__exportStar(require("./last-minute-discount"), exports);
|
|
124
|
+
__exportStar(require("./early-bird-discount"), exports);
|
|
125
|
+
__exportStar(require("./pass-through-tax"), exports);
|
|
126
|
+
__exportStar(require("./booking-settings"), exports);
|
|
127
|
+
__exportStar(require("./availability-settings"), exports);
|
|
122
128
|
__exportStar(require("./guest-verification"), exports);
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { infer } from "zod";
|
|
2
2
|
import { PriceSchema } from "../../schemas";
|
|
3
|
+
import { TripLengthDiscount } from "../trip-length-discount";
|
|
4
|
+
import { LastMinuteDiscount } from "../last-minute-discount";
|
|
5
|
+
import { EarlyBirdDiscount } from "../early-bird-discount";
|
|
6
|
+
import { PassThroughTax } from "../pass-through-tax";
|
|
3
7
|
export interface Price extends infer<typeof PriceSchema> {
|
|
8
|
+
tripLengthDiscounts?: TripLengthDiscount[];
|
|
9
|
+
lastMinuteDiscounts?: LastMinuteDiscount[];
|
|
10
|
+
earlyBirdDiscounts?: EarlyBirdDiscount[];
|
|
11
|
+
passThroughTaxes?: PassThroughTax[];
|
|
4
12
|
}
|
|
@@ -35,6 +35,8 @@ import { PropertyInventoryCurrentState } from "../property-inventory-current-sta
|
|
|
35
35
|
import { ReportingHandbook } from "../reporting-handbook";
|
|
36
36
|
import { CleaningChecklist } from "../cleaning-checklist";
|
|
37
37
|
import { SuppliesAndNotesHandbook } from "../supplies-and-notes-handbook";
|
|
38
|
+
import { AvailabilitySettings } from "../availability-settings";
|
|
39
|
+
import { BookingSettings } from "../booking-settings";
|
|
38
40
|
export interface Property extends infer<typeof propertySchema> {
|
|
39
41
|
user?: User;
|
|
40
42
|
rooms?: Room[];
|
|
@@ -76,6 +78,8 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
76
78
|
reportingHandbook?: ReportingHandbook;
|
|
77
79
|
cleaningChecklists?: CleaningChecklist[];
|
|
78
80
|
suppliesAndNotesHandbook?: SuppliesAndNotesHandbook;
|
|
81
|
+
availabilitySettings?: AvailabilitySettings;
|
|
82
|
+
bookingSettings?: BookingSettings;
|
|
79
83
|
}
|
|
80
84
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
81
85
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { servicePropertySchema } from "../../schemas/service-property";
|
|
3
|
+
import { Property } from "../property";
|
|
4
|
+
import { Service } from "../service";
|
|
5
|
+
export interface ServiceProperty extends infer<typeof servicePropertySchema> {
|
|
6
|
+
property?: Property;
|
|
7
|
+
service?: Service;
|
|
8
|
+
}
|