hububb-saas-shared 1.2.16 → 1.2.18
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 +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/invited-service-provider/index.d.ts +35 -0
- package/dist/schemas/invited-service-provider/index.js +17 -0
- package/dist/schemas/invited-service-provider-preferences/index.d.ts +23 -0
- package/dist/schemas/invited-service-provider-preferences/index.js +13 -0
- package/dist/schemas/property/index.d.ts +4 -4
- package/dist/schemas/property-metadata/index.d.ts +2 -2
- 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-photography-space/index.d.ts +25 -0
- package/dist/schemas/task-photography-space/index.js +24 -0
- package/dist/schemas/thread/index.d.ts +6 -6
- package/dist/types/enums/index.d.ts +9 -0
- package/dist/types/enums/index.js +12 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -0
- package/dist/types/invited-service-provider/index.d.ts +8 -0
- package/dist/types/invited-service-provider/index.js +2 -0
- package/dist/types/invited-service-provider-preferences/index.d.ts +8 -0
- package/dist/types/invited-service-provider-preferences/index.js +2 -0
- package/dist/types/property-room/index.d.ts +2 -0
- package/dist/types/service-property/index.d.ts +8 -0
- package/dist/types/service-property/index.js +2 -0
- package/dist/types/task/index.d.ts +2 -0
- package/dist/types/task-photography-space/index.d.ts +8 -0
- package/dist/types/task-photography-space/index.js +2 -0
- package/dist/types/user/index.d.ts +4 -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
|
@@ -80,3 +80,6 @@ export * from "./cleaning-checklist";
|
|
|
80
80
|
export * from './reporting-handbook';
|
|
81
81
|
export * from './supplies-and-notes-handbook';
|
|
82
82
|
export * from "./ai-agent";
|
|
83
|
+
export * from "./task-photography-space";
|
|
84
|
+
export * from "./invited-service-provider";
|
|
85
|
+
export * from "./invited-service-provider-preferences";
|
package/dist/schemas/index.js
CHANGED
|
@@ -96,3 +96,6 @@ __exportStar(require("./cleaning-checklist"), exports);
|
|
|
96
96
|
__exportStar(require("./reporting-handbook"), exports);
|
|
97
97
|
__exportStar(require("./supplies-and-notes-handbook"), exports);
|
|
98
98
|
__exportStar(require("./ai-agent"), exports);
|
|
99
|
+
__exportStar(require("./task-photography-space"), exports);
|
|
100
|
+
__exportStar(require("./invited-service-provider"), exports);
|
|
101
|
+
__exportStar(require("./invited-service-provider-preferences"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InvitedServiceProviderStatus } from "../../types/enums";
|
|
2
|
+
export declare const invitedServiceProviderSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
phone: import("zod").ZodString;
|
|
5
|
+
phoneCountryCode: import("zod").ZodString;
|
|
6
|
+
phoneLocalNumber: import("zod").ZodString;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
invitedBy: import("zod").ZodString;
|
|
10
|
+
invitedAt: import("zod").ZodDate;
|
|
11
|
+
registeredAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
12
|
+
status: import("zod").ZodNativeEnum<typeof InvitedServiceProviderStatus>;
|
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
14
|
+
id: number;
|
|
15
|
+
status: InvitedServiceProviderStatus;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
phone: string;
|
|
19
|
+
phoneCountryCode: string;
|
|
20
|
+
phoneLocalNumber: string;
|
|
21
|
+
invitedBy: string;
|
|
22
|
+
invitedAt: Date;
|
|
23
|
+
registeredAt?: Date | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
id: number;
|
|
26
|
+
status: InvitedServiceProviderStatus;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
phone: string;
|
|
30
|
+
phoneCountryCode: string;
|
|
31
|
+
phoneLocalNumber: string;
|
|
32
|
+
invitedBy: string;
|
|
33
|
+
invitedAt: Date;
|
|
34
|
+
registeredAt?: Date | undefined;
|
|
35
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invitedServiceProviderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.invitedServiceProviderSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
phone: (0, zod_1.string)(),
|
|
9
|
+
phoneCountryCode: (0, zod_1.string)(),
|
|
10
|
+
phoneLocalNumber: (0, zod_1.string)(),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
invitedBy: (0, zod_1.string)(),
|
|
14
|
+
invitedAt: (0, zod_1.date)(),
|
|
15
|
+
registeredAt: (0, zod_1.date)().optional(),
|
|
16
|
+
status: (0, zod_1.nativeEnum)(enums_1.InvitedServiceProviderStatus),
|
|
17
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InvitedServiceProviderPreferencesPriority } from "../../types/enums";
|
|
2
|
+
export declare const invitedServiceProviderPreferencesSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
userId: import("zod").ZodString;
|
|
5
|
+
invitedServiceProviderId: import("zod").ZodNumber;
|
|
6
|
+
priority: import("zod").ZodNativeEnum<typeof InvitedServiceProviderPreferencesPriority>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
priority: InvitedServiceProviderPreferencesPriority;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
userId: string;
|
|
15
|
+
invitedServiceProviderId: number;
|
|
16
|
+
}, {
|
|
17
|
+
id: number;
|
|
18
|
+
priority: InvitedServiceProviderPreferencesPriority;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
userId: string;
|
|
22
|
+
invitedServiceProviderId: number;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invitedServiceProviderPreferencesSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.invitedServiceProviderPreferencesSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
userId: (0, zod_1.string)(),
|
|
9
|
+
invitedServiceProviderId: (0, zod_1.number)().int(),
|
|
10
|
+
priority: (0, zod_1.nativeEnum)(enums_1.InvitedServiceProviderPreferencesPriority),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -203,7 +203,7 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
203
203
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
204
204
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
205
205
|
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
206
|
-
stCancellationPolicy?: "
|
|
206
|
+
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
207
207
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
createdAt: Date;
|
|
@@ -226,7 +226,7 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
226
226
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
227
227
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
228
228
|
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
229
|
-
stCancellationPolicy?: "
|
|
229
|
+
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
230
230
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
231
231
|
}>>;
|
|
232
232
|
safetyDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -396,7 +396,7 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
396
396
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
397
397
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
398
398
|
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
399
|
-
stCancellationPolicy?: "
|
|
399
|
+
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
400
400
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
401
401
|
} | undefined;
|
|
402
402
|
price?: {
|
|
@@ -496,7 +496,7 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
496
496
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
497
497
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
498
498
|
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
|
|
499
|
-
stCancellationPolicy?: "
|
|
499
|
+
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
500
500
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
501
501
|
} | undefined;
|
|
502
502
|
price?: {
|
|
@@ -47,7 +47,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
47
47
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
48
48
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
49
49
|
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
50
|
-
stCancellationPolicy?: "
|
|
50
|
+
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
51
51
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
id: number;
|
|
@@ -72,6 +72,6 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
72
72
|
keyPickupLocationLatitude?: number | null | undefined;
|
|
73
73
|
keyPickupLocationLongitude?: number | null | undefined;
|
|
74
74
|
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
75
|
-
stCancellationPolicy?: "
|
|
75
|
+
stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
76
76
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
77
77
|
}>;
|
|
@@ -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
|
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const taskPhotographySpaceSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
createdAt: import("zod").ZodDate;
|
|
5
|
+
updatedAt: import("zod").ZodDate;
|
|
6
|
+
propertyRoomId: import("zod").ZodNumber;
|
|
7
|
+
roomName: import("zod").ZodString;
|
|
8
|
+
roomType: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"LIVING_ROOM">, import("zod").ZodLiteral<"BEDROOM">]>, import("zod").ZodLiteral<"KITCHEN">]>, import("zod").ZodLiteral<"BATHROOM">]>, import("zod").ZodLiteral<"BALCONY">]>, import("zod").ZodLiteral<"TOILET">]>, import("zod").ZodLiteral<"OTHER">]>, import("zod").ZodLiteral<"DINING_ROOM">]>, import("zod").ZodLiteral<"OUTDOOR">]>, import("zod").ZodLiteral<"WORKSPACE">]>, import("zod").ZodLiteral<"STORAGE">]>, import("zod").ZodLiteral<"COMMON_SPACE">]>;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
propertyRoomId: number;
|
|
14
|
+
taskId: number;
|
|
15
|
+
roomName: string;
|
|
16
|
+
roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
propertyRoomId: number;
|
|
22
|
+
taskId: number;
|
|
23
|
+
roomName: string;
|
|
24
|
+
roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskPhotographySpaceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskPhotographySpaceSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)().int(),
|
|
8
|
+
createdAt: (0, zod_1.date)(),
|
|
9
|
+
updatedAt: (0, zod_1.date)(),
|
|
10
|
+
propertyRoomId: (0, zod_1.number)().int(),
|
|
11
|
+
roomName: (0, zod_1.string)(),
|
|
12
|
+
roomType: (0, zod_1.literal)("LIVING_ROOM")
|
|
13
|
+
.or((0, zod_1.literal)("BEDROOM"))
|
|
14
|
+
.or((0, zod_1.literal)("KITCHEN"))
|
|
15
|
+
.or((0, zod_1.literal)("BATHROOM"))
|
|
16
|
+
.or((0, zod_1.literal)("BALCONY"))
|
|
17
|
+
.or((0, zod_1.literal)("TOILET"))
|
|
18
|
+
.or((0, zod_1.literal)("OTHER"))
|
|
19
|
+
.or((0, zod_1.literal)("DINING_ROOM"))
|
|
20
|
+
.or((0, zod_1.literal)("OUTDOOR"))
|
|
21
|
+
.or((0, zod_1.literal)("WORKSPACE"))
|
|
22
|
+
.or((0, zod_1.literal)("STORAGE"))
|
|
23
|
+
.or((0, zod_1.literal)("COMMON_SPACE")),
|
|
24
|
+
});
|
|
@@ -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;
|
|
@@ -1099,7 +1099,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1099
1099
|
xeroLastSuccessAt: z.ZodOptional<z.ZodDate>;
|
|
1100
1100
|
xeroLastError: z.ZodOptional<z.ZodString>;
|
|
1101
1101
|
xeroRetryCount: z.ZodOptional<z.ZodNumber>;
|
|
1102
|
-
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"
|
|
1102
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
|
|
1103
1103
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
1104
1104
|
property: z.ZodOptional<z.ZodObject<{
|
|
1105
1105
|
id: z.ZodNumber;
|
|
@@ -1192,7 +1192,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1192
1192
|
customBundleId?: number | null | undefined;
|
|
1193
1193
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1194
1194
|
}>>;
|
|
1195
|
-
}
|
|
1195
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1196
1196
|
id: number;
|
|
1197
1197
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
1198
1198
|
propertyId: number;
|
|
@@ -113,6 +113,15 @@ export declare enum PropertyManagerSessionType {
|
|
|
113
113
|
DOCUMENT_ANALYSIS = "DOCUMENT_ANALYSIS",
|
|
114
114
|
PROPERTY_AUDIT = "PROPERTY_AUDIT"
|
|
115
115
|
}
|
|
116
|
+
export declare enum InvitedServiceProviderStatus {
|
|
117
|
+
PENDING = "PENDING",
|
|
118
|
+
REGISTERED = "REGISTERED"
|
|
119
|
+
}
|
|
120
|
+
export declare enum InvitedServiceProviderPreferencesPriority {
|
|
121
|
+
STRICT = "STRICT",
|
|
122
|
+
FLEXIBLE = "FLEXIBLE",
|
|
123
|
+
INDIFFERENT = "INDIFFERENT"
|
|
124
|
+
}
|
|
116
125
|
export declare enum HumanReviewPriority {
|
|
117
126
|
LOW = "LOW",
|
|
118
127
|
NORMAL = "NORMAL",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HumanReviewStatus = exports.HumanReviewPriority = 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.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";
|
|
@@ -139,6 +139,17 @@ var PropertyManagerSessionType;
|
|
|
139
139
|
PropertyManagerSessionType["DOCUMENT_ANALYSIS"] = "DOCUMENT_ANALYSIS";
|
|
140
140
|
PropertyManagerSessionType["PROPERTY_AUDIT"] = "PROPERTY_AUDIT";
|
|
141
141
|
})(PropertyManagerSessionType || (exports.PropertyManagerSessionType = PropertyManagerSessionType = {}));
|
|
142
|
+
var InvitedServiceProviderStatus;
|
|
143
|
+
(function (InvitedServiceProviderStatus) {
|
|
144
|
+
InvitedServiceProviderStatus["PENDING"] = "PENDING";
|
|
145
|
+
InvitedServiceProviderStatus["REGISTERED"] = "REGISTERED";
|
|
146
|
+
})(InvitedServiceProviderStatus || (exports.InvitedServiceProviderStatus = InvitedServiceProviderStatus = {}));
|
|
147
|
+
var InvitedServiceProviderPreferencesPriority;
|
|
148
|
+
(function (InvitedServiceProviderPreferencesPriority) {
|
|
149
|
+
InvitedServiceProviderPreferencesPriority["STRICT"] = "STRICT";
|
|
150
|
+
InvitedServiceProviderPreferencesPriority["FLEXIBLE"] = "FLEXIBLE";
|
|
151
|
+
InvitedServiceProviderPreferencesPriority["INDIFFERENT"] = "INDIFFERENT";
|
|
152
|
+
})(InvitedServiceProviderPreferencesPriority || (exports.InvitedServiceProviderPreferencesPriority = InvitedServiceProviderPreferencesPriority = {}));
|
|
142
153
|
var HumanReviewPriority;
|
|
143
154
|
(function (HumanReviewPriority) {
|
|
144
155
|
HumanReviewPriority["LOW"] = "LOW";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -81,3 +81,6 @@ export * from "./cleaning-checklist";
|
|
|
81
81
|
export * from './reporting-handbook';
|
|
82
82
|
export * from './supplies-and-notes-handbook';
|
|
83
83
|
export * from "./ai-agent";
|
|
84
|
+
export * from "./task-photography-space";
|
|
85
|
+
export * from "./invited-service-provider";
|
|
86
|
+
export * from "./invited-service-provider-preferences";
|
package/dist/types/index.js
CHANGED
|
@@ -97,3 +97,6 @@ __exportStar(require("./cleaning-checklist"), exports);
|
|
|
97
97
|
__exportStar(require("./reporting-handbook"), exports);
|
|
98
98
|
__exportStar(require("./supplies-and-notes-handbook"), exports);
|
|
99
99
|
__exportStar(require("./ai-agent"), exports);
|
|
100
|
+
__exportStar(require("./task-photography-space"), exports);
|
|
101
|
+
__exportStar(require("./invited-service-provider"), exports);
|
|
102
|
+
__exportStar(require("./invited-service-provider-preferences"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { invitedServiceProviderSchema } from "../../schemas/invited-service-provider";
|
|
3
|
+
import { User } from "../user";
|
|
4
|
+
import { InvitedServiceProviderPreferences } from "../invited-service-provider-preferences";
|
|
5
|
+
export interface InvitedServiceProvider extends infer<typeof invitedServiceProviderSchema> {
|
|
6
|
+
invitedByUser?: User;
|
|
7
|
+
invitedServiceProviderPreferences?: InvitedServiceProviderPreferences[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { invitedServiceProviderPreferencesSchema } from "../../schemas/invited-service-provider-preferences";
|
|
3
|
+
import { User } from "../user";
|
|
4
|
+
import { InvitedServiceProvider } from "../invited-service-provider";
|
|
5
|
+
export interface InvitedServiceProviderPreferences extends infer<typeof invitedServiceProviderPreferencesSchema> {
|
|
6
|
+
user?: User;
|
|
7
|
+
invitedServiceProvider?: InvitedServiceProvider;
|
|
8
|
+
}
|
|
@@ -3,8 +3,10 @@ import { Property } from "../property";
|
|
|
3
3
|
import { Image } from "../image";
|
|
4
4
|
import { propertyRoomSchema } from "../../schemas";
|
|
5
5
|
import { PropertyRoomBed } from "../property-room-bed";
|
|
6
|
+
import { TaskPhotographySpace } from "../task-photography-space";
|
|
6
7
|
export interface PropertyRoom extends infer<typeof propertyRoomSchema> {
|
|
7
8
|
images?: Image[];
|
|
8
9
|
property?: Property;
|
|
9
10
|
propertyRoomBeds?: PropertyRoomBed[];
|
|
11
|
+
taskPhotographySpaces?: TaskPhotographySpace[];
|
|
10
12
|
}
|
|
@@ -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
|
+
}
|
|
@@ -21,6 +21,7 @@ import { TaskSupplyReceipt } from "../task-supply-receipt";
|
|
|
21
21
|
import { TaskChecklist } from "../task-checklist";
|
|
22
22
|
import { TaskDamagePhoto } from "../task-damage-photo";
|
|
23
23
|
import { TaskAssignment } from "../task-assignment";
|
|
24
|
+
import { TaskPhotographySpace } from "../task-photography-space";
|
|
24
25
|
export interface Task extends infer<typeof taskSchema> {
|
|
25
26
|
property?: Property;
|
|
26
27
|
department?: TaskDepartment;
|
|
@@ -46,4 +47,5 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
46
47
|
taskChecklist?: TaskChecklist;
|
|
47
48
|
damagePhotos?: TaskDamagePhoto[];
|
|
48
49
|
taskAssignments?: TaskAssignment[];
|
|
50
|
+
taskPhotographySpaces?: TaskPhotographySpace[];
|
|
49
51
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskPhotographySpaceSchema } from "../../schemas/task-photography-space";
|
|
3
|
+
import { Task } from "../task";
|
|
4
|
+
import { PropertyRoom } from "../property-room";
|
|
5
|
+
export interface TaskPhotographySpace extends infer<typeof taskPhotographySpaceSchema> {
|
|
6
|
+
task?: Task;
|
|
7
|
+
propertyRoom?: PropertyRoom;
|
|
8
|
+
}
|
|
@@ -17,6 +17,8 @@ import { CustomBundle } from "../custom-bundle";
|
|
|
17
17
|
import { BundleCoupon } from "../custom-bundle-coupon";
|
|
18
18
|
import { PendingPaymentAction } from "../pending-payment-action";
|
|
19
19
|
import { UserAiAgentSubscription } from "../ai-agent/user-ai-agent-subscription";
|
|
20
|
+
import { InvitedServiceProvider } from "../invited-service-provider";
|
|
21
|
+
import { InvitedServiceProviderPreferences } from "../invited-service-provider-preferences";
|
|
20
22
|
export interface User extends infer<typeof userSchema> {
|
|
21
23
|
tier?: Tier;
|
|
22
24
|
properties?: Property[];
|
|
@@ -39,4 +41,6 @@ export interface User extends infer<typeof userSchema> {
|
|
|
39
41
|
createdCoupons?: BundleCoupon[];
|
|
40
42
|
pendingPaymentActions?: PendingPaymentAction[];
|
|
41
43
|
aiAgentSubscriptions?: UserAiAgentSubscription[];
|
|
44
|
+
invitedServiceProviders?: InvitedServiceProvider[];
|
|
45
|
+
invitedServiceProviderPreferences?: InvitedServiceProviderPreferences[];
|
|
42
46
|
}
|