hububb-saas-shared 1.2.56 → 1.2.57
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/price/index.d.ts +3 -0
- package/dist/schemas/price/index.js +4 -0
- package/dist/schemas/property/index.d.ts +0 -5
- package/dist/schemas/property/index.js +0 -1
- package/dist/schemas/property-metadata/index.d.ts +0 -3
- package/dist/schemas/property-metadata/index.js +0 -1
- package/dist/types/enums/index.d.ts +1 -1
- package/dist/types/enums/index.js +1 -1
- package/dist/types/property/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ export declare const PriceSchema: z.ZodObject<{
|
|
|
24
24
|
tripLengthDiscountPct: z.ZodNullable<z.ZodNumber>;
|
|
25
25
|
newListingPromotionPct: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
newListingPromotionEndsAt: z.ZodNullable<z.ZodDate>;
|
|
27
|
+
newListingPromotionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AVAILABLE", "ONGOING", "EXPIRED"]>>>;
|
|
27
28
|
additionalDiscounts: z.ZodOptional<z.ZodUnknown>;
|
|
28
29
|
passThroughTaxesCollectionType: z.ZodOptional<z.ZodEnum<["NO_AIRBNB_COLLECTED_TAX", "OVERRIDE_AIRBNB_COLLECTED_TAX", "STACKED_AIRBNB_COLLECTED_TAX", "INELIGIBLE", "UNDEFINED"]>>;
|
|
29
30
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -51,6 +52,7 @@ export declare const PriceSchema: z.ZodObject<{
|
|
|
51
52
|
tripLengthDiscountPct: number | null;
|
|
52
53
|
newListingPromotionPct: number | null;
|
|
53
54
|
newListingPromotionEndsAt: Date | null;
|
|
55
|
+
newListingPromotionStatus?: "AVAILABLE" | "ONGOING" | "EXPIRED" | null | undefined;
|
|
54
56
|
additionalDiscounts?: unknown;
|
|
55
57
|
passThroughTaxesCollectionType?: "NO_AIRBNB_COLLECTED_TAX" | "OVERRIDE_AIRBNB_COLLECTED_TAX" | "STACKED_AIRBNB_COLLECTED_TAX" | "INELIGIBLE" | "UNDEFINED" | undefined;
|
|
56
58
|
}, {
|
|
@@ -78,6 +80,7 @@ export declare const PriceSchema: z.ZodObject<{
|
|
|
78
80
|
tripLengthDiscountPct: number | null;
|
|
79
81
|
newListingPromotionPct: number | null;
|
|
80
82
|
newListingPromotionEndsAt: Date | null;
|
|
83
|
+
newListingPromotionStatus?: "AVAILABLE" | "ONGOING" | "EXPIRED" | null | undefined;
|
|
81
84
|
additionalDiscounts?: unknown;
|
|
82
85
|
passThroughTaxesCollectionType?: "NO_AIRBNB_COLLECTED_TAX" | "OVERRIDE_AIRBNB_COLLECTED_TAX" | "STACKED_AIRBNB_COLLECTED_TAX" | "INELIGIBLE" | "UNDEFINED" | undefined;
|
|
83
86
|
}>;
|
|
@@ -28,6 +28,10 @@ exports.PriceSchema = (0, zod_1.object)({
|
|
|
28
28
|
tripLengthDiscountPct: (0, zod_1.number)().nullable(),
|
|
29
29
|
newListingPromotionPct: (0, zod_1.number)().nullable(),
|
|
30
30
|
newListingPromotionEndsAt: (0, zod_1.date)().nullable(),
|
|
31
|
+
newListingPromotionStatus: zod_1.z
|
|
32
|
+
.enum(["AVAILABLE", "ONGOING", "EXPIRED"])
|
|
33
|
+
.nullable()
|
|
34
|
+
.optional(),
|
|
31
35
|
additionalDiscounts: zod_1.z.unknown().optional(),
|
|
32
36
|
passThroughTaxesCollectionType: zod_1.z
|
|
33
37
|
.enum([
|
|
@@ -201,7 +201,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
201
201
|
checkInInstructions: z.ZodOptional<z.ZodString>;
|
|
202
202
|
checkOutInstructions: z.ZodOptional<z.ZodString>;
|
|
203
203
|
checkInAgent: z.ZodOptional<z.ZodString>;
|
|
204
|
-
checkInMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
204
|
rubbishCollection: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
205
|
noSmokingFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
206
|
noPartyingFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -235,7 +234,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
235
234
|
checkInInstructions?: string | undefined;
|
|
236
235
|
checkOutInstructions?: string | undefined;
|
|
237
236
|
checkInAgent?: string | undefined;
|
|
238
|
-
checkInMethod?: string | null | undefined;
|
|
239
237
|
rubbishCollection?: string | null | undefined;
|
|
240
238
|
noSmokingFee?: string | null | undefined;
|
|
241
239
|
noPartyingFee?: string | null | undefined;
|
|
@@ -267,7 +265,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
267
265
|
checkInInstructions?: string | undefined;
|
|
268
266
|
checkOutInstructions?: string | undefined;
|
|
269
267
|
checkInAgent?: string | undefined;
|
|
270
|
-
checkInMethod?: string | null | undefined;
|
|
271
268
|
rubbishCollection?: string | null | undefined;
|
|
272
269
|
noSmokingFee?: string | null | undefined;
|
|
273
270
|
noPartyingFee?: string | null | undefined;
|
|
@@ -447,7 +444,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
447
444
|
checkInInstructions?: string | undefined;
|
|
448
445
|
checkOutInstructions?: string | undefined;
|
|
449
446
|
checkInAgent?: string | undefined;
|
|
450
|
-
checkInMethod?: string | null | undefined;
|
|
451
447
|
rubbishCollection?: string | null | undefined;
|
|
452
448
|
noSmokingFee?: string | null | undefined;
|
|
453
449
|
noPartyingFee?: string | null | undefined;
|
|
@@ -557,7 +553,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
557
553
|
checkInInstructions?: string | undefined;
|
|
558
554
|
checkOutInstructions?: string | undefined;
|
|
559
555
|
checkInAgent?: string | undefined;
|
|
560
|
-
checkInMethod?: string | null | undefined;
|
|
561
556
|
rubbishCollection?: string | null | undefined;
|
|
562
557
|
noSmokingFee?: string | null | undefined;
|
|
563
558
|
noPartyingFee?: string | null | undefined;
|
|
@@ -111,7 +111,6 @@ exports.updatePropertySchema = (0, zod_1.object)({
|
|
|
111
111
|
checkInInstructions: (0, zod_1.string)().optional(),
|
|
112
112
|
checkOutInstructions: (0, zod_1.string)().optional(),
|
|
113
113
|
checkInAgent: (0, zod_1.string)().optional(),
|
|
114
|
-
checkInMethod: (0, zod_1.string)().nullish(),
|
|
115
114
|
rubbishCollection: (0, zod_1.string)().nullish(),
|
|
116
115
|
noSmokingFee: (0, zod_1.string)().nullish(),
|
|
117
116
|
noPartyingFee: (0, zod_1.string)().nullish(),
|
|
@@ -8,7 +8,6 @@ export declare const propertyMetadataSchema: z.ZodObject<{
|
|
|
8
8
|
checkInAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
checkInInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
checkOutInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
checkInMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
11
|
rubbishCollection: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
12
|
noSmokingFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
13
|
noPartyingFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -74,7 +73,6 @@ export declare const propertyMetadataSchema: z.ZodObject<{
|
|
|
74
73
|
checkInInstructions?: string | null | undefined;
|
|
75
74
|
checkOutInstructions?: string | null | undefined;
|
|
76
75
|
checkInAgent?: string | null | undefined;
|
|
77
|
-
checkInMethod?: string | null | undefined;
|
|
78
76
|
rubbishCollection?: string | null | undefined;
|
|
79
77
|
noSmokingFee?: string | null | undefined;
|
|
80
78
|
noPartyingFee?: string | null | undefined;
|
|
@@ -108,7 +106,6 @@ export declare const propertyMetadataSchema: z.ZodObject<{
|
|
|
108
106
|
checkInInstructions?: string | null | undefined;
|
|
109
107
|
checkOutInstructions?: string | null | undefined;
|
|
110
108
|
checkInAgent?: string | null | undefined;
|
|
111
|
-
checkInMethod?: string | null | undefined;
|
|
112
109
|
rubbishCollection?: string | null | undefined;
|
|
113
110
|
noSmokingFee?: string | null | undefined;
|
|
114
111
|
noPartyingFee?: string | null | undefined;
|
|
@@ -15,7 +15,6 @@ exports.propertyMetadataSchema = (0, zod_1.object)({
|
|
|
15
15
|
checkInAgent: (0, zod_1.string)().nullish(),
|
|
16
16
|
checkInInstructions: (0, zod_1.string)().nullish(),
|
|
17
17
|
checkOutInstructions: (0, zod_1.string)().nullish(),
|
|
18
|
-
checkInMethod: (0, zod_1.string)().nullish(),
|
|
19
18
|
rubbishCollection: (0, zod_1.string)().nullish(),
|
|
20
19
|
noSmokingFee: (0, zod_1.string)().nullish(),
|
|
21
20
|
noPartyingFee: (0, zod_1.string)().nullish(),
|
|
@@ -314,7 +314,7 @@ export declare enum LTCancellationPolicy {
|
|
|
314
314
|
export declare enum PromotionStatus {
|
|
315
315
|
AVAILABLE = "AVAILABLE",
|
|
316
316
|
ONGOING = "ONGOING",
|
|
317
|
-
|
|
317
|
+
EXPIRED = "EXPIRED"
|
|
318
318
|
}
|
|
319
319
|
export declare enum ListingExpectationType {
|
|
320
320
|
requires_stairs = "requires_stairs",
|
|
@@ -375,7 +375,7 @@ var PromotionStatus;
|
|
|
375
375
|
(function (PromotionStatus) {
|
|
376
376
|
PromotionStatus["AVAILABLE"] = "AVAILABLE";
|
|
377
377
|
PromotionStatus["ONGOING"] = "ONGOING";
|
|
378
|
-
PromotionStatus["
|
|
378
|
+
PromotionStatus["EXPIRED"] = "EXPIRED";
|
|
379
379
|
})(PromotionStatus || (exports.PromotionStatus = PromotionStatus = {}));
|
|
380
380
|
var ListingExpectationType;
|
|
381
381
|
(function (ListingExpectationType) {
|
|
@@ -39,6 +39,7 @@ import { AvailabilitySettings } from "../availability-settings";
|
|
|
39
39
|
import { BookingSettings } from "../booking-settings";
|
|
40
40
|
import { Notification } from "../notification";
|
|
41
41
|
import { TaskExpenseFact } from "../task-expense-fact";
|
|
42
|
+
import { PropertyGuide } from "../property-guide";
|
|
42
43
|
export interface Property extends infer<typeof propertySchema> {
|
|
43
44
|
user?: User;
|
|
44
45
|
rooms?: Room[];
|
|
@@ -84,6 +85,7 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
84
85
|
bookingSettings?: BookingSettings;
|
|
85
86
|
notifications?: Notification[];
|
|
86
87
|
taskExpenseFacts?: TaskExpenseFact[];
|
|
88
|
+
guides?: PropertyGuide[];
|
|
87
89
|
}
|
|
88
90
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
89
91
|
}
|