hububb-saas-shared 1.2.45 → 1.2.47

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.
Files changed (49) hide show
  1. package/dist/schemas/availability-settings/index.d.ts +47 -0
  2. package/dist/schemas/availability-settings/index.js +20 -0
  3. package/dist/schemas/booking-settings/index.d.ts +71 -0
  4. package/dist/schemas/booking-settings/index.js +28 -0
  5. package/dist/schemas/channex/booking.d.ts +2 -2
  6. package/dist/schemas/channex/thread.d.ts +2 -2
  7. package/dist/schemas/early-bird-discount/index.d.ts +16 -0
  8. package/dist/schemas/early-bird-discount/index.js +10 -0
  9. package/dist/schemas/enums/index.d.ts +45 -0
  10. package/dist/schemas/enums/index.js +56 -0
  11. package/dist/schemas/index.d.ts +7 -0
  12. package/dist/schemas/index.js +7 -0
  13. package/dist/schemas/last-minute-discount/index.d.ts +16 -0
  14. package/dist/schemas/last-minute-discount/index.js +10 -0
  15. package/dist/schemas/pass-through-tax/index.d.ts +46 -0
  16. package/dist/schemas/pass-through-tax/index.js +20 -0
  17. package/dist/schemas/price/index.d.ts +50 -18
  18. package/dist/schemas/price/index.js +14 -0
  19. package/dist/schemas/seasonal-min-nights/index.d.ts +19 -0
  20. package/dist/schemas/seasonal-min-nights/index.js +11 -0
  21. package/dist/schemas/service-property/index.d.ts +19 -0
  22. package/dist/schemas/service-property/index.js +11 -0
  23. package/dist/schemas/task-checklist-item/index.d.ts +2 -2
  24. package/dist/schemas/thread/index.d.ts +6 -6
  25. package/dist/schemas/trip-length-discount/index.d.ts +16 -0
  26. package/dist/schemas/trip-length-discount/index.js +10 -0
  27. package/dist/types/availability-settings/index.d.ts +8 -0
  28. package/dist/types/availability-settings/index.js +2 -0
  29. package/dist/types/booking-settings/index.d.ts +6 -0
  30. package/dist/types/booking-settings/index.js +2 -0
  31. package/dist/types/early-bird-discount/index.d.ts +6 -0
  32. package/dist/types/early-bird-discount/index.js +2 -0
  33. package/dist/types/enums/index.d.ts +32 -0
  34. package/dist/types/enums/index.js +38 -1
  35. package/dist/types/index.d.ts +7 -0
  36. package/dist/types/index.js +7 -0
  37. package/dist/types/last-minute-discount/index.d.ts +6 -0
  38. package/dist/types/last-minute-discount/index.js +2 -0
  39. package/dist/types/pass-through-tax/index.d.ts +6 -0
  40. package/dist/types/pass-through-tax/index.js +2 -0
  41. package/dist/types/price/index.d.ts +8 -0
  42. package/dist/types/property/index.d.ts +4 -0
  43. package/dist/types/seasonal-min-nights/index.d.ts +6 -0
  44. package/dist/types/seasonal-min-nights/index.js +2 -0
  45. package/dist/types/service-property/index.d.ts +8 -0
  46. package/dist/types/service-property/index.js +2 -0
  47. package/dist/types/trip-length-discount/index.d.ts +6 -0
  48. package/dist/types/trip-length-discount/index.js +2 -0
  49. package/package.json +1 -1
@@ -0,0 +1,47 @@
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
+ allowRtbAboveMaxNights: z.ZodOptional<z.ZodBoolean>;
9
+ bookingLeadTime: z.ZodOptional<z.ZodNumber>;
10
+ sameDayBookingCutoffTime: z.ZodOptional<z.ZodString>;
11
+ preparationTimeNights: z.ZodOptional<z.ZodNumber>;
12
+ maxDaysNotice: z.ZodOptional<z.ZodNumber>;
13
+ restrictedCheckInWeekdays: z.ZodOptional<z.ZodUnknown>;
14
+ restrictedCheckOutWeekdays: z.ZodOptional<z.ZodUnknown>;
15
+ weekdayMinNights: z.ZodOptional<z.ZodUnknown>;
16
+ additionalAvailabilitySettings: z.ZodOptional<z.ZodUnknown>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: number;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ propertyId: number;
22
+ hasAvailability: boolean;
23
+ allowRtbAboveMaxNights?: boolean | undefined;
24
+ bookingLeadTime?: number | undefined;
25
+ sameDayBookingCutoffTime?: string | undefined;
26
+ preparationTimeNights?: number | undefined;
27
+ maxDaysNotice?: number | undefined;
28
+ restrictedCheckInWeekdays?: unknown;
29
+ restrictedCheckOutWeekdays?: unknown;
30
+ weekdayMinNights?: unknown;
31
+ additionalAvailabilitySettings?: unknown;
32
+ }, {
33
+ id: number;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ propertyId: number;
37
+ hasAvailability: boolean;
38
+ allowRtbAboveMaxNights?: boolean | undefined;
39
+ bookingLeadTime?: number | undefined;
40
+ sameDayBookingCutoffTime?: string | undefined;
41
+ preparationTimeNights?: number | undefined;
42
+ maxDaysNotice?: number | undefined;
43
+ restrictedCheckInWeekdays?: unknown;
44
+ restrictedCheckOutWeekdays?: unknown;
45
+ weekdayMinNights?: unknown;
46
+ additionalAvailabilitySettings?: unknown;
47
+ }>;
@@ -0,0 +1,20 @@
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
+ allowRtbAboveMaxNights: (0, zod_1.boolean)().optional(),
12
+ bookingLeadTime: (0, zod_1.number)().int().optional(),
13
+ sameDayBookingCutoffTime: (0, zod_1.string)().optional(),
14
+ preparationTimeNights: (0, zod_1.number)().int().optional(),
15
+ maxDaysNotice: (0, zod_1.number)().int().optional(),
16
+ restrictedCheckInWeekdays: zod_1.z.unknown().optional(),
17
+ restrictedCheckOutWeekdays: zod_1.z.unknown().optional(),
18
+ weekdayMinNights: zod_1.z.unknown().optional(),
19
+ additionalAvailabilitySettings: zod_1.z.unknown().optional(),
20
+ });
@@ -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 = {}));
@@ -102,3 +102,10 @@ 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";
111
+ export * from "./seasonal-min-nights";
@@ -118,3 +118,10 @@ __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);
127
+ __exportStar(require("./seasonal-min-nights"), exports);
@@ -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
- export declare const PriceSchema: import("zod").ZodObject<{
2
- id: import("zod").ZodNumber;
3
- propertyId: import("zod").ZodNumber;
4
- cleaningFee: import("zod").ZodNullable<import("zod").ZodNumber>;
5
- petFee: import("zod").ZodNullable<import("zod").ZodNumber>;
6
- basePrice: import("zod").ZodNullable<import("zod").ZodNumber>;
7
- guestsIncluded: import("zod").ZodNullable<import("zod").ZodNumber>;
8
- extraPersonFee: import("zod").ZodNullable<import("zod").ZodNumber>;
9
- monthlyPriceFactor: import("zod").ZodNullable<import("zod").ZodNumber>;
10
- weeklyPriceFactor: import("zod").ZodNullable<import("zod").ZodNumber>;
11
- weekendBasePrice: import("zod").ZodNullable<import("zod").ZodNumber>;
12
- securityDeposit: import("zod").ZodNullable<import("zod").ZodNumber>;
13
- currency: import("zod").ZodString;
14
- createdAt: import("zod").ZodDate;
15
- updatedAt: import("zod").ZodDate;
16
- minPrice: import("zod").ZodNullable<import("zod").ZodNumber>;
17
- maxPrice: import("zod").ZodNullable<import("zod").ZodNumber>;
18
- }, "strip", import("zod").ZodTypeAny, {
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 seasonalMinNightsSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ availabilitySettingsId: import("zod").ZodNumber;
4
+ startDate: import("zod").ZodDate;
5
+ endDate: import("zod").ZodDate;
6
+ minNights: import("zod").ZodNumber;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ id: number;
9
+ startDate: Date;
10
+ endDate: Date;
11
+ minNights: number;
12
+ availabilitySettingsId: number;
13
+ }, {
14
+ id: number;
15
+ startDate: Date;
16
+ endDate: Date;
17
+ minNights: number;
18
+ availabilitySettingsId: number;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.seasonalMinNightsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.seasonalMinNightsSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ availabilitySettingsId: (0, zod_1.number)().int(),
8
+ startDate: (0, zod_1.date)(),
9
+ endDate: (0, zod_1.date)(),
10
+ minNights: (0, zod_1.number)().int(),
11
+ });
@@ -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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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,8 @@
1
+ import { infer } from "zod";
2
+ import { availabilitySettingsSchema } from "../../schemas/availability-settings";
3
+ import { Property } from "../property";
4
+ import { SeasonalMinNights } from "../seasonal-min-nights";
5
+ export interface AvailabilitySettings extends infer<typeof availabilitySettingsSchema> {
6
+ property?: Property;
7
+ seasonalMinNights?: SeasonalMinNights[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { bookingSettingsSchema } from "../../schemas/booking-settings";
3
+ import { Property } from "../property";
4
+ export interface BookingSettings extends infer<typeof bookingSettingsSchema> {
5
+ property?: Property;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { earlyBirdDiscountSchema } from "../../schemas/early-bird-discount";
3
+ import { Price } from "../price";
4
+ export interface EarlyBirdDiscount extends infer<typeof earlyBirdDiscountSchema> {
5
+ price?: Price;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 = {}));
@@ -103,4 +103,11 @@ 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";
112
+ export * from "./seasonal-min-nights";
106
113
  export * from "./guest-verification";
@@ -119,4 +119,11 @@ __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);
128
+ __exportStar(require("./seasonal-min-nights"), exports);
122
129
  __exportStar(require("./guest-verification"), exports);
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { lastMinuteDiscountSchema } from "../../schemas/last-minute-discount";
3
+ import { Price } from "../price";
4
+ export interface LastMinuteDiscount extends infer<typeof lastMinuteDiscountSchema> {
5
+ price?: Price;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { passThroughTaxSchema } from "../../schemas/pass-through-tax";
3
+ import { Price } from "../price";
4
+ export interface PassThroughTax extends infer<typeof passThroughTaxSchema> {
5
+ price?: Price;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,6 @@
1
+ import { infer } from "zod";
2
+ import { seasonalMinNightsSchema } from "../../schemas/seasonal-min-nights";
3
+ import { AvailabilitySettings } from "../availability-settings";
4
+ export interface SeasonalMinNights extends infer<typeof seasonalMinNightsSchema> {
5
+ availabilitySettings?: AvailabilitySettings;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { tripLengthDiscountSchema } from "../../schemas/trip-length-discount";
3
+ import { Price } from "../price";
4
+ export interface TripLengthDiscount extends infer<typeof tripLengthDiscountSchema> {
5
+ price?: Price;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.45",
4
+ "version": "1.2.47",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",