hububb-saas-shared 1.2.33 → 1.2.35
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/channex/booking.d.ts +2 -2
- package/dist/schemas/channex/thread.d.ts +2 -2
- package/dist/schemas/enums/index.d.ts +45 -0
- package/dist/schemas/enums/index.js +56 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/property/index.d.ts +70 -5
- package/dist/schemas/property/index.js +36 -9
- package/dist/schemas/property-inventory-current-state/index.d.ts +16 -0
- package/dist/schemas/property-inventory-current-state/index.js +10 -0
- package/dist/schemas/property-inventory-current-state-item/index.d.ts +26 -0
- package/dist/schemas/property-inventory-current-state-item/index.js +14 -0
- package/dist/schemas/property-metadata/index.d.ts +77 -29
- package/dist/schemas/property-metadata/index.js +13 -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/task-inventory-item/index.d.ts +4 -1
- package/dist/schemas/task-inventory-item/index.js +1 -0
- package/dist/schemas/thread/index.d.ts +6 -6
- package/dist/types/enums/index.d.ts +4 -0
- package/dist/types/enums/index.js +6 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/inventory-item/index.d.ts +2 -0
- package/dist/types/property/index.d.ts +2 -0
- package/dist/types/property-inventory-current-state/index.d.ts +8 -0
- package/dist/types/property-inventory-current-state/index.js +2 -0
- package/dist/types/property-inventory-current-state-item/index.d.ts +8 -0
- package/dist/types/property-inventory-current-state-item/index.js +2 -0
- package/dist/types/service-property/index.d.ts +8 -0
- package/dist/types/service-property/index.js +2 -0
- package/package.json +1 -1
|
@@ -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,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
|
@@ -96,3 +96,5 @@ export * from "./task-pricing";
|
|
|
96
96
|
export * from "./task-estimate";
|
|
97
97
|
export * from "./task-provider-pricing";
|
|
98
98
|
export * from "./reservation-night-fact";
|
|
99
|
+
export * from "./property-inventory-current-state";
|
|
100
|
+
export * from "./property-inventory-current-state-item";
|
package/dist/schemas/index.js
CHANGED
|
@@ -112,3 +112,5 @@ __exportStar(require("./task-pricing"), exports);
|
|
|
112
112
|
__exportStar(require("./task-estimate"), exports);
|
|
113
113
|
__exportStar(require("./task-provider-pricing"), exports);
|
|
114
114
|
__exportStar(require("./reservation-night-fact"), exports);
|
|
115
|
+
__exportStar(require("./property-inventory-current-state"), exports);
|
|
116
|
+
__exportStar(require("./property-inventory-current-state-item"), exports);
|
|
@@ -160,6 +160,36 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
160
160
|
airbnbId?: string | undefined;
|
|
161
161
|
}>>;
|
|
162
162
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
accessType: z.ZodOptional<z.ZodEnum<["SELF_ACCESS", "MEET_AND_GREET", "RECEPTION_CONCIERGE", "KEY_PICKUP_OTHER_LOCATION", "ACCESS_AFTER_BOOKING"]>>;
|
|
164
|
+
otherAccessTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["SELF_ACCESS", "MEET_AND_GREET", "RECEPTION_CONCIERGE", "KEY_PICKUP_OTHER_LOCATION", "ACCESS_AFTER_BOOKING"]>, "many">>;
|
|
165
|
+
otherAccessTypesDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
+
accessType: z.ZodEnum<["SELF_ACCESS", "MEET_AND_GREET", "RECEPTION_CONCIERGE", "KEY_PICKUP_OTHER_LOCATION", "ACCESS_AFTER_BOOKING"]>;
|
|
167
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
|
+
media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
169
|
+
url: z.ZodString;
|
|
170
|
+
kind: z.ZodEnum<["PHOTO", "VIDEO"]>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
url: string;
|
|
173
|
+
kind: "PHOTO" | "VIDEO";
|
|
174
|
+
}, {
|
|
175
|
+
url: string;
|
|
176
|
+
kind: "PHOTO" | "VIDEO";
|
|
177
|
+
}>, "many">>>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
180
|
+
media?: {
|
|
181
|
+
url: string;
|
|
182
|
+
kind: "PHOTO" | "VIDEO";
|
|
183
|
+
}[] | null | undefined;
|
|
184
|
+
description?: string | null | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
187
|
+
media?: {
|
|
188
|
+
url: string;
|
|
189
|
+
kind: "PHOTO" | "VIDEO";
|
|
190
|
+
}[] | null | undefined;
|
|
191
|
+
description?: string | null | undefined;
|
|
192
|
+
}>, "many">>;
|
|
163
193
|
wifiName: z.ZodOptional<z.ZodString>;
|
|
164
194
|
wifiPassword: z.ZodOptional<z.ZodString>;
|
|
165
195
|
checkInInstructions: z.ZodOptional<z.ZodString>;
|
|
@@ -177,7 +207,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
177
207
|
keyPickupLocationAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
208
|
keyPickupLocationLatitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
179
209
|
keyPickupLocationLongitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
180
|
-
accessType: z.ZodOptional<z.ZodEnum<["SELF_ACCESS", "MEET_AND_GREET", "RECEPTION_CONCIERGE", "KEY_PICKUP_OTHER_LOCATION", "ACCESS_AFTER_BOOKING"]>>;
|
|
181
210
|
createdAt: z.ZodDate;
|
|
182
211
|
updatedAt: z.ZodDate;
|
|
183
212
|
stCancellationPolicy: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"FLEXIBLE">, z.ZodLiteral<"MODERATE">]>, z.ZodLiteral<"STRICT">]>, z.ZodLiteral<"BETTER_STRICT_WITH_GRACE_PERIOD">]>, z.ZodLiteral<"STRICT_14_WITH_GRACE_PERIOD">]>, z.ZodLiteral<"SUPER_STRICT_30">]>, z.ZodLiteral<"SUPER_STRICT_60">]>, z.ZodLiteral<"FIRM_14">]>>;
|
|
@@ -185,6 +214,16 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
185
214
|
}, "strip", z.ZodTypeAny, {
|
|
186
215
|
createdAt: Date;
|
|
187
216
|
updatedAt: Date;
|
|
217
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
218
|
+
otherAccessTypes?: ("SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING")[] | undefined;
|
|
219
|
+
otherAccessTypesDetails?: {
|
|
220
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
221
|
+
media?: {
|
|
222
|
+
url: string;
|
|
223
|
+
kind: "PHOTO" | "VIDEO";
|
|
224
|
+
}[] | null | undefined;
|
|
225
|
+
description?: string | null | undefined;
|
|
226
|
+
}[] | undefined;
|
|
188
227
|
wifiName?: string | undefined;
|
|
189
228
|
wifiPassword?: string | undefined;
|
|
190
229
|
checkInInstructions?: string | undefined;
|
|
@@ -202,12 +241,21 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
202
241
|
keyPickupLocationAddress?: string | null | undefined;
|
|
203
242
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
204
243
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
205
|
-
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
206
244
|
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
207
245
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
208
246
|
}, {
|
|
209
247
|
createdAt: Date;
|
|
210
248
|
updatedAt: Date;
|
|
249
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
250
|
+
otherAccessTypes?: ("SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING")[] | undefined;
|
|
251
|
+
otherAccessTypesDetails?: {
|
|
252
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
253
|
+
media?: {
|
|
254
|
+
url: string;
|
|
255
|
+
kind: "PHOTO" | "VIDEO";
|
|
256
|
+
}[] | null | undefined;
|
|
257
|
+
description?: string | null | undefined;
|
|
258
|
+
}[] | undefined;
|
|
211
259
|
wifiName?: string | undefined;
|
|
212
260
|
wifiPassword?: string | undefined;
|
|
213
261
|
checkInInstructions?: string | undefined;
|
|
@@ -225,7 +273,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
225
273
|
keyPickupLocationAddress?: string | null | undefined;
|
|
226
274
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
227
275
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
228
|
-
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
229
276
|
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
230
277
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
231
278
|
}>>;
|
|
@@ -379,6 +426,16 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
379
426
|
metadata?: {
|
|
380
427
|
createdAt: Date;
|
|
381
428
|
updatedAt: Date;
|
|
429
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
430
|
+
otherAccessTypes?: ("SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING")[] | undefined;
|
|
431
|
+
otherAccessTypesDetails?: {
|
|
432
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
433
|
+
media?: {
|
|
434
|
+
url: string;
|
|
435
|
+
kind: "PHOTO" | "VIDEO";
|
|
436
|
+
}[] | null | undefined;
|
|
437
|
+
description?: string | null | undefined;
|
|
438
|
+
}[] | undefined;
|
|
382
439
|
wifiName?: string | undefined;
|
|
383
440
|
wifiPassword?: string | undefined;
|
|
384
441
|
checkInInstructions?: string | undefined;
|
|
@@ -396,7 +453,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
396
453
|
keyPickupLocationAddress?: string | null | undefined;
|
|
397
454
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
398
455
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
399
|
-
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
400
456
|
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
401
457
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
402
458
|
} | undefined;
|
|
@@ -480,6 +536,16 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
480
536
|
metadata?: {
|
|
481
537
|
createdAt: Date;
|
|
482
538
|
updatedAt: Date;
|
|
539
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
540
|
+
otherAccessTypes?: ("SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING")[] | undefined;
|
|
541
|
+
otherAccessTypesDetails?: {
|
|
542
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
543
|
+
media?: {
|
|
544
|
+
url: string;
|
|
545
|
+
kind: "PHOTO" | "VIDEO";
|
|
546
|
+
}[] | null | undefined;
|
|
547
|
+
description?: string | null | undefined;
|
|
548
|
+
}[] | undefined;
|
|
483
549
|
wifiName?: string | undefined;
|
|
484
550
|
wifiPassword?: string | undefined;
|
|
485
551
|
checkInInstructions?: string | undefined;
|
|
@@ -497,7 +563,6 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
497
563
|
keyPickupLocationAddress?: string | null | undefined;
|
|
498
564
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
499
565
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
500
|
-
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
501
566
|
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
502
567
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
503
568
|
} | undefined;
|
|
@@ -68,6 +68,42 @@ exports.updatePropertySchema = (0, zod_1.object)({
|
|
|
68
68
|
onboardingPlanChoice: (0, zod_1.union)([(0, zod_1.literal)("HANDS_FREE_PRO"), (0, zod_1.literal)("CUSTOM_BUILD")]).optional(),
|
|
69
69
|
}).optional(),
|
|
70
70
|
metadata: (0, zod_1.object)({
|
|
71
|
+
accessType: zod_1.z
|
|
72
|
+
.enum([
|
|
73
|
+
"SELF_ACCESS",
|
|
74
|
+
"MEET_AND_GREET",
|
|
75
|
+
"RECEPTION_CONCIERGE",
|
|
76
|
+
"KEY_PICKUP_OTHER_LOCATION",
|
|
77
|
+
"ACCESS_AFTER_BOOKING",
|
|
78
|
+
])
|
|
79
|
+
.optional(),
|
|
80
|
+
otherAccessTypes: zod_1.z
|
|
81
|
+
.array(zod_1.z.enum([
|
|
82
|
+
"SELF_ACCESS",
|
|
83
|
+
"MEET_AND_GREET",
|
|
84
|
+
"RECEPTION_CONCIERGE",
|
|
85
|
+
"KEY_PICKUP_OTHER_LOCATION",
|
|
86
|
+
"ACCESS_AFTER_BOOKING",
|
|
87
|
+
]))
|
|
88
|
+
.optional(),
|
|
89
|
+
otherAccessTypesDetails: zod_1.z
|
|
90
|
+
.array(zod_1.z.object({
|
|
91
|
+
accessType: zod_1.z.enum([
|
|
92
|
+
"SELF_ACCESS",
|
|
93
|
+
"MEET_AND_GREET",
|
|
94
|
+
"RECEPTION_CONCIERGE",
|
|
95
|
+
"KEY_PICKUP_OTHER_LOCATION",
|
|
96
|
+
"ACCESS_AFTER_BOOKING",
|
|
97
|
+
]),
|
|
98
|
+
description: (0, zod_1.string)().nullish(),
|
|
99
|
+
media: zod_1.z
|
|
100
|
+
.array(zod_1.z.object({
|
|
101
|
+
url: (0, zod_1.string)(),
|
|
102
|
+
kind: zod_1.z.enum(["PHOTO", "VIDEO"]),
|
|
103
|
+
}))
|
|
104
|
+
.nullish(),
|
|
105
|
+
}))
|
|
106
|
+
.optional(),
|
|
71
107
|
wifiName: (0, zod_1.string)().optional(),
|
|
72
108
|
wifiPassword: (0, zod_1.string)().optional(),
|
|
73
109
|
checkInInstructions: (0, zod_1.string)().optional(),
|
|
@@ -85,15 +121,6 @@ exports.updatePropertySchema = (0, zod_1.object)({
|
|
|
85
121
|
keyPickupLocationAddress: (0, zod_1.string)().nullish(),
|
|
86
122
|
keyPickupLocationLatitude: zod_1.z.number().nullish(),
|
|
87
123
|
keyPickupLocationLongitude: zod_1.z.number().nullish(),
|
|
88
|
-
accessType: zod_1.z
|
|
89
|
-
.enum([
|
|
90
|
-
"SELF_ACCESS",
|
|
91
|
-
"MEET_AND_GREET",
|
|
92
|
-
"RECEPTION_CONCIERGE",
|
|
93
|
-
"KEY_PICKUP_OTHER_LOCATION",
|
|
94
|
-
"ACCESS_AFTER_BOOKING",
|
|
95
|
-
])
|
|
96
|
-
.optional(),
|
|
97
124
|
createdAt: (0, zod_1.date)(),
|
|
98
125
|
updatedAt: (0, zod_1.date)(),
|
|
99
126
|
stCancellationPolicy: (0, zod_1.literal)("FLEXIBLE")
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const propertyInventoryCurrentStateSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
propertyId: import("zod").ZodNumber;
|
|
4
|
+
createdAt: import("zod").ZodDate;
|
|
5
|
+
updatedAt: import("zod").ZodDate;
|
|
6
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
+
id: number;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
propertyId: number;
|
|
11
|
+
}, {
|
|
12
|
+
id: number;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
propertyId: number;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyInventoryCurrentStateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.propertyInventoryCurrentStateSchema = (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
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TaskInventorySupplyItemFillStateAfterCompletion } from "../../types/enums";
|
|
2
|
+
export declare const propertyInventoryCurrentStateItemSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
propertyInventoryCurrentStateId: import("zod").ZodNumber;
|
|
5
|
+
inventoryItemId: import("zod").ZodNumber;
|
|
6
|
+
supplyFillStateAfterTaskCompletion: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof TaskInventorySupplyItemFillStateAfterCompletion>>;
|
|
7
|
+
isAvailable: import("zod").ZodBoolean;
|
|
8
|
+
createdAt: import("zod").ZodDate;
|
|
9
|
+
updatedAt: import("zod").ZodDate;
|
|
10
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
11
|
+
id: number;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
isAvailable: boolean;
|
|
15
|
+
inventoryItemId: number;
|
|
16
|
+
propertyInventoryCurrentStateId: number;
|
|
17
|
+
supplyFillStateAfterTaskCompletion?: TaskInventorySupplyItemFillStateAfterCompletion | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
id: number;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
isAvailable: boolean;
|
|
23
|
+
inventoryItemId: number;
|
|
24
|
+
propertyInventoryCurrentStateId: number;
|
|
25
|
+
supplyFillStateAfterTaskCompletion?: TaskInventorySupplyItemFillStateAfterCompletion | undefined;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyInventoryCurrentStateItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.propertyInventoryCurrentStateItemSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
propertyInventoryCurrentStateId: (0, zod_1.number)().int(),
|
|
9
|
+
inventoryItemId: (0, zod_1.number)().int(),
|
|
10
|
+
supplyFillStateAfterTaskCompletion: (0, zod_1.nativeEnum)(enums_1.TaskInventorySupplyItemFillStateAfterCompletion).optional(),
|
|
11
|
+
isAvailable: (0, zod_1.boolean)(),
|
|
12
|
+
createdAt: (0, zod_1.date)(),
|
|
13
|
+
updatedAt: (0, zod_1.date)(),
|
|
14
|
+
});
|
|
@@ -1,34 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const accessTypeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"SELF_ACCESS">, z.ZodLiteral<"MEET_AND_GREET">]>, z.ZodLiteral<"RECEPTION_CONCIERGE">]>, z.ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, z.ZodLiteral<"ACCESS_AFTER_BOOKING">]>;
|
|
3
|
+
export declare const propertyMetadataSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
propertyId: z.ZodNumber;
|
|
6
|
+
wifiName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
wifiPassword: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
checkInAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
checkInInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
checkOutInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
checkInMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
rubbishCollection: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
noSmokingFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
noPartyingFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
noUnannouncedGuestsFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
houseManual: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
communalCleanSchedule: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
parkingSpace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
accessArrangements: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
accessType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"SELF_ACCESS">, z.ZodLiteral<"MEET_AND_GREET">]>, z.ZodLiteral<"RECEPTION_CONCIERGE">]>, z.ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, z.ZodLiteral<"ACCESS_AFTER_BOOKING">]>>>;
|
|
21
|
+
otherAccessTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"SELF_ACCESS">, z.ZodLiteral<"MEET_AND_GREET">]>, z.ZodLiteral<"RECEPTION_CONCIERGE">]>, z.ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, z.ZodLiteral<"ACCESS_AFTER_BOOKING">]>, "many">>>;
|
|
22
|
+
otherAccessTypesDetails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
|
+
accessType: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"SELF_ACCESS">, z.ZodLiteral<"MEET_AND_GREET">]>, z.ZodLiteral<"RECEPTION_CONCIERGE">]>, z.ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, z.ZodLiteral<"ACCESS_AFTER_BOOKING">]>;
|
|
24
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
kind: z.ZodEnum<["PHOTO", "VIDEO"]>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
url: string;
|
|
30
|
+
kind: "PHOTO" | "VIDEO";
|
|
31
|
+
}, {
|
|
32
|
+
url: string;
|
|
33
|
+
kind: "PHOTO" | "VIDEO";
|
|
34
|
+
}>, "many">>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
37
|
+
media?: {
|
|
38
|
+
url: string;
|
|
39
|
+
kind: "PHOTO" | "VIDEO";
|
|
40
|
+
}[] | null | undefined;
|
|
41
|
+
description?: string | null | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
44
|
+
media?: {
|
|
45
|
+
url: string;
|
|
46
|
+
kind: "PHOTO" | "VIDEO";
|
|
47
|
+
}[] | null | undefined;
|
|
48
|
+
description?: string | null | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
keyPickupLocationAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
keyPickupLocationLatitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
keyPickupLocationLongitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
createdAt: z.ZodDate;
|
|
54
|
+
updatedAt: z.ZodDate;
|
|
55
|
+
stCancellationPolicy: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"FLEXIBLE">, z.ZodLiteral<"MODERATE">]>, z.ZodLiteral<"STRICT">]>, z.ZodLiteral<"BETTER_STRICT_WITH_GRACE_PERIOD">]>, z.ZodLiteral<"STRICT_14_WITH_GRACE_PERIOD">]>, z.ZodLiteral<"SUPER_STRICT_30">]>, z.ZodLiteral<"SUPER_STRICT_60">]>, z.ZodLiteral<"FIRM_14">]>>;
|
|
56
|
+
ltCancellationPolicy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CANCEL_LONG_TERM_FAIR">, z.ZodLiteral<"CANCEL_LONG_TERM_WITH_GRACE_PERIOD">]>>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
58
|
id: number;
|
|
29
59
|
createdAt: Date;
|
|
30
60
|
updatedAt: Date;
|
|
31
61
|
propertyId: number;
|
|
62
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
63
|
+
otherAccessTypes?: ("SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING")[] | null | undefined;
|
|
64
|
+
otherAccessTypesDetails?: {
|
|
65
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
66
|
+
media?: {
|
|
67
|
+
url: string;
|
|
68
|
+
kind: "PHOTO" | "VIDEO";
|
|
69
|
+
}[] | null | undefined;
|
|
70
|
+
description?: string | null | undefined;
|
|
71
|
+
}[] | null | undefined;
|
|
32
72
|
wifiName?: string | null | undefined;
|
|
33
73
|
wifiPassword?: string | null | undefined;
|
|
34
74
|
checkInInstructions?: string | null | undefined;
|
|
@@ -46,7 +86,6 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
46
86
|
keyPickupLocationAddress?: string | null | undefined;
|
|
47
87
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
48
88
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
49
|
-
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
50
89
|
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
51
90
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
52
91
|
}, {
|
|
@@ -54,6 +93,16 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
54
93
|
createdAt: Date;
|
|
55
94
|
updatedAt: Date;
|
|
56
95
|
propertyId: number;
|
|
96
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
97
|
+
otherAccessTypes?: ("SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING")[] | null | undefined;
|
|
98
|
+
otherAccessTypesDetails?: {
|
|
99
|
+
accessType: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING";
|
|
100
|
+
media?: {
|
|
101
|
+
url: string;
|
|
102
|
+
kind: "PHOTO" | "VIDEO";
|
|
103
|
+
}[] | null | undefined;
|
|
104
|
+
description?: string | null | undefined;
|
|
105
|
+
}[] | null | undefined;
|
|
57
106
|
wifiName?: string | null | undefined;
|
|
58
107
|
wifiPassword?: string | null | undefined;
|
|
59
108
|
checkInInstructions?: string | null | undefined;
|
|
@@ -71,7 +120,6 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
71
120
|
keyPickupLocationAddress?: string | null | undefined;
|
|
72
121
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
73
122
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
74
|
-
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
75
123
|
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
76
124
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
77
125
|
}>;
|
|
@@ -25,6 +25,19 @@ exports.propertyMetadataSchema = (0, zod_1.object)({
|
|
|
25
25
|
parkingSpace: (0, zod_1.string)().nullish(),
|
|
26
26
|
accessArrangements: (0, zod_1.string)().nullish(),
|
|
27
27
|
accessType: exports.accessTypeSchema.nullish(),
|
|
28
|
+
otherAccessTypes: zod_1.z.array(exports.accessTypeSchema).nullish(),
|
|
29
|
+
otherAccessTypesDetails: zod_1.z
|
|
30
|
+
.array(zod_1.z.object({
|
|
31
|
+
accessType: exports.accessTypeSchema,
|
|
32
|
+
description: (0, zod_1.string)().nullish(),
|
|
33
|
+
media: zod_1.z
|
|
34
|
+
.array(zod_1.z.object({
|
|
35
|
+
url: (0, zod_1.string)(),
|
|
36
|
+
kind: zod_1.z.enum(["PHOTO", "VIDEO"]),
|
|
37
|
+
}))
|
|
38
|
+
.nullish(),
|
|
39
|
+
}))
|
|
40
|
+
.nullish(),
|
|
28
41
|
keyPickupLocationAddress: (0, zod_1.string)().nullish(),
|
|
29
42
|
keyPickupLocationLatitude: (0, zod_1.number)().nullish(),
|
|
30
43
|
keyPickupLocationLongitude: (0, zod_1.number)().nullish(),
|
|
@@ -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
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InventoryItemCategory, TaskInventoryItemStatus } from "../../types/enums";
|
|
1
|
+
import { InventoryItemCategory, TaskInventoryItemStatus, TaskInventorySupplyItemFillStateAfterCompletion } from "../../types/enums";
|
|
2
2
|
export declare const taskInventoryItemSchema: import("zod").ZodObject<{
|
|
3
3
|
id: import("zod").ZodNumber;
|
|
4
4
|
taskInventoryId: import("zod").ZodNumber;
|
|
@@ -8,6 +8,7 @@ export declare const taskInventoryItemSchema: import("zod").ZodObject<{
|
|
|
8
8
|
category: import("zod").ZodNativeEnum<typeof InventoryItemCategory>;
|
|
9
9
|
sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
10
10
|
status: import("zod").ZodNativeEnum<typeof TaskInventoryItemStatus>;
|
|
11
|
+
fillStateAfterCompletion: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof TaskInventorySupplyItemFillStateAfterCompletion>>;
|
|
11
12
|
createdAt: import("zod").ZodDate;
|
|
12
13
|
updatedAt: import("zod").ZodDate;
|
|
13
14
|
inventoryItemId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -22,6 +23,7 @@ export declare const taskInventoryItemSchema: import("zod").ZodObject<{
|
|
|
22
23
|
taskInventoryId: number;
|
|
23
24
|
sortOrder?: number | undefined;
|
|
24
25
|
templateItemId?: number | undefined;
|
|
26
|
+
fillStateAfterCompletion?: TaskInventorySupplyItemFillStateAfterCompletion | undefined;
|
|
25
27
|
inventoryItemId?: number | undefined;
|
|
26
28
|
}, {
|
|
27
29
|
code: string;
|
|
@@ -34,5 +36,6 @@ export declare const taskInventoryItemSchema: import("zod").ZodObject<{
|
|
|
34
36
|
taskInventoryId: number;
|
|
35
37
|
sortOrder?: number | undefined;
|
|
36
38
|
templateItemId?: number | undefined;
|
|
39
|
+
fillStateAfterCompletion?: TaskInventorySupplyItemFillStateAfterCompletion | undefined;
|
|
37
40
|
inventoryItemId?: number | undefined;
|
|
38
41
|
}>;
|
|
@@ -12,6 +12,7 @@ exports.taskInventoryItemSchema = (0, zod_1.object)({
|
|
|
12
12
|
category: (0, zod_1.nativeEnum)(enums_1.InventoryItemCategory),
|
|
13
13
|
sortOrder: (0, zod_1.number)().int().optional(),
|
|
14
14
|
status: (0, zod_1.nativeEnum)(enums_1.TaskInventoryItemStatus),
|
|
15
|
+
fillStateAfterCompletion: (0, zod_1.nativeEnum)(enums_1.TaskInventorySupplyItemFillStateAfterCompletion).optional(),
|
|
15
16
|
createdAt: (0, zod_1.date)(),
|
|
16
17
|
updatedAt: (0, zod_1.date)(),
|
|
17
18
|
inventoryItemId: (0, zod_1.number)().int().optional(),
|
|
@@ -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;
|
|
@@ -1100,7 +1100,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1100
1100
|
xeroLastError: z.ZodOptional<z.ZodString>;
|
|
1101
1101
|
xeroRetryCount: z.ZodOptional<z.ZodNumber>;
|
|
1102
1102
|
isUnitChanged: z.ZodBoolean;
|
|
1103
|
-
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"
|
|
1103
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
|
|
1104
1104
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
1105
1105
|
property: z.ZodOptional<z.ZodObject<{
|
|
1106
1106
|
id: z.ZodNumber;
|
|
@@ -1193,7 +1193,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1193
1193
|
customBundleId?: number | null | undefined;
|
|
1194
1194
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1195
1195
|
}>>;
|
|
1196
|
-
}
|
|
1196
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1197
1197
|
id: number;
|
|
1198
1198
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
1199
1199
|
propertyId: number;
|
|
@@ -138,6 +138,10 @@ export declare enum TaskInventoryItemStatus {
|
|
|
138
138
|
AVAILABLE = "AVAILABLE",
|
|
139
139
|
MISSING = "MISSING"
|
|
140
140
|
}
|
|
141
|
+
export declare enum TaskInventorySupplyItemFillStateAfterCompletion {
|
|
142
|
+
MORE_THAN_HALF = "MORE_THAN_HALF",
|
|
143
|
+
LESS_THAN_HALF = "LESS_THAN_HALF"
|
|
144
|
+
}
|
|
141
145
|
export declare enum TaskQuoteStatus {
|
|
142
146
|
PENDING = "PENDING",
|
|
143
147
|
ACCEPTED = "ACCEPTED",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HumanReviewStatus = exports.HumanReviewPriority = exports.TaskPricingStatus = exports.TaskReportingPhotoType = exports.TaskReportingVideoType = exports.TaskQuoteStatus = 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.HumanReviewStatus = exports.HumanReviewPriority = exports.TaskPricingStatus = exports.TaskReportingPhotoType = exports.TaskReportingVideoType = exports.TaskQuoteStatus = exports.TaskInventorySupplyItemFillStateAfterCompletion = 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";
|
|
@@ -170,6 +170,11 @@ var TaskInventoryItemStatus;
|
|
|
170
170
|
TaskInventoryItemStatus["AVAILABLE"] = "AVAILABLE";
|
|
171
171
|
TaskInventoryItemStatus["MISSING"] = "MISSING";
|
|
172
172
|
})(TaskInventoryItemStatus || (exports.TaskInventoryItemStatus = TaskInventoryItemStatus = {}));
|
|
173
|
+
var TaskInventorySupplyItemFillStateAfterCompletion;
|
|
174
|
+
(function (TaskInventorySupplyItemFillStateAfterCompletion) {
|
|
175
|
+
TaskInventorySupplyItemFillStateAfterCompletion["MORE_THAN_HALF"] = "MORE_THAN_HALF";
|
|
176
|
+
TaskInventorySupplyItemFillStateAfterCompletion["LESS_THAN_HALF"] = "LESS_THAN_HALF";
|
|
177
|
+
})(TaskInventorySupplyItemFillStateAfterCompletion || (exports.TaskInventorySupplyItemFillStateAfterCompletion = TaskInventorySupplyItemFillStateAfterCompletion = {}));
|
|
173
178
|
var TaskQuoteStatus;
|
|
174
179
|
(function (TaskQuoteStatus) {
|
|
175
180
|
TaskQuoteStatus["PENDING"] = "PENDING";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -97,4 +97,6 @@ export * from "./task-pricing";
|
|
|
97
97
|
export * from "./task-estimate";
|
|
98
98
|
export * from "./task-provider-pricing";
|
|
99
99
|
export * from "./reservation-night-fact";
|
|
100
|
+
export * from "./property-inventory-current-state";
|
|
101
|
+
export * from "./property-inventory-current-state-item";
|
|
100
102
|
export * from "./guest-verification";
|
package/dist/types/index.js
CHANGED
|
@@ -113,4 +113,6 @@ __exportStar(require("./task-pricing"), exports);
|
|
|
113
113
|
__exportStar(require("./task-estimate"), exports);
|
|
114
114
|
__exportStar(require("./task-provider-pricing"), exports);
|
|
115
115
|
__exportStar(require("./reservation-night-fact"), exports);
|
|
116
|
+
__exportStar(require("./property-inventory-current-state"), exports);
|
|
117
|
+
__exportStar(require("./property-inventory-current-state-item"), exports);
|
|
116
118
|
__exportStar(require("./guest-verification"), exports);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { infer } from "zod";
|
|
2
2
|
import { inventoryItemSchema } from "../../schemas/inventory-item";
|
|
3
3
|
import { TaskInventoryItem } from "../task-inventory-item";
|
|
4
|
+
import { PropertyInventoryCurrentStateItem } from "../property-inventory-current-state-item";
|
|
4
5
|
export interface InventoryItem extends infer<typeof inventoryItemSchema> {
|
|
5
6
|
taskInventoryItems?: TaskInventoryItem[];
|
|
7
|
+
propertyInventoryCurrentStateItems?: PropertyInventoryCurrentStateItem[];
|
|
6
8
|
}
|
|
@@ -31,6 +31,7 @@ import { HumanReviewTask } from "../ai-agent/human-review-task";
|
|
|
31
31
|
import { RevenueManagerRunLog } from "../ai-agent/revenue-manager-run-log";
|
|
32
32
|
import { ReservationOriginalUnit } from "../reservation-original-unit";
|
|
33
33
|
import { ReservationNightFact } from "../reservation-night-fact";
|
|
34
|
+
import { PropertyInventoryCurrentState } from "../property-inventory-current-state";
|
|
34
35
|
export interface Property extends infer<typeof propertySchema> {
|
|
35
36
|
user?: User;
|
|
36
37
|
rooms?: Room[];
|
|
@@ -68,6 +69,7 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
68
69
|
revenueManagerRunLogs?: RevenueManagerRunLog[];
|
|
69
70
|
reservationOriginalUnits?: ReservationOriginalUnit[];
|
|
70
71
|
reservationNightFacts?: ReservationNightFact[];
|
|
72
|
+
propertyInventoryCurrentState?: PropertyInventoryCurrentState;
|
|
71
73
|
}
|
|
72
74
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
73
75
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { propertyInventoryCurrentStateSchema } from "../../schemas/property-inventory-current-state";
|
|
3
|
+
import { Property } from "../property";
|
|
4
|
+
import { PropertyInventoryCurrentStateItem } from "../property-inventory-current-state-item";
|
|
5
|
+
export interface PropertyInventoryCurrentState extends infer<typeof propertyInventoryCurrentStateSchema> {
|
|
6
|
+
property?: Property;
|
|
7
|
+
items?: PropertyInventoryCurrentStateItem[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { propertyInventoryCurrentStateItemSchema } from "../../schemas/property-inventory-current-state-item";
|
|
3
|
+
import { PropertyInventoryCurrentState } from "../property-inventory-current-state";
|
|
4
|
+
import { InventoryItem } from "../inventory-item";
|
|
5
|
+
export interface PropertyInventoryCurrentStateItem extends infer<typeof propertyInventoryCurrentStateItemSchema> {
|
|
6
|
+
propertyInventoryCurrentState?: PropertyInventoryCurrentState;
|
|
7
|
+
inventoryItem?: InventoryItem;
|
|
8
|
+
}
|
|
@@ -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
|
+
}
|