hububb-saas-shared 1.2.7 → 1.2.9
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/reservation/index.d.ts +16 -0
- package/dist/schemas/reservation/index.js +12 -1
- package/dist/schemas/service/index.d.ts +3 -0
- package/dist/schemas/service/index.js +1 -0
- package/dist/schemas/task-checklist-item/index.d.ts +2 -2
- package/dist/schemas/thread/index.d.ts +11 -6
- package/package.json +1 -1
- package/dist/schemas/enums/index.d.ts +0 -45
- package/dist/schemas/enums/index.js +0 -56
- package/dist/schemas/service-property/index.d.ts +0 -19
- package/dist/schemas/service-property/index.js +0 -11
- package/dist/types/service-property/index.d.ts +0 -8
- package/dist/types/service-property/index.js +0 -2
|
@@ -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;
|
|
1089
1090
|
event: string;
|
|
1090
1091
|
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;
|
|
1099
1100
|
event: string;
|
|
1100
1101
|
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;
|
|
280
281
|
event: string;
|
|
281
282
|
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;
|
|
297
298
|
event: string;
|
|
298
299
|
property_id: string;
|
|
299
|
-
timestamp: string;
|
|
300
300
|
payload: {
|
|
301
301
|
message: string;
|
|
302
302
|
id: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ReservationStatusEnum: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
3
|
+
export declare const XeroSyncStatusEnum: z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>;
|
|
3
4
|
export declare const ReservationCustomerSchema: z.ZodObject<{
|
|
4
5
|
id: z.ZodString;
|
|
5
6
|
firstName: z.ZodString;
|
|
@@ -144,6 +145,11 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
144
145
|
payoutId: z.ZodOptional<z.ZodNumber>;
|
|
145
146
|
payoutAmount: z.ZodOptional<z.ZodNumber>;
|
|
146
147
|
requiresPayout: z.ZodBoolean;
|
|
148
|
+
xeroSyncStatus: z.ZodOptional<z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>>;
|
|
149
|
+
xeroLastAttemptAt: z.ZodOptional<z.ZodDate>;
|
|
150
|
+
xeroLastSuccessAt: z.ZodOptional<z.ZodDate>;
|
|
151
|
+
xeroLastError: z.ZodOptional<z.ZodString>;
|
|
152
|
+
xeroRetryCount: z.ZodOptional<z.ZodNumber>;
|
|
147
153
|
}, "strip", z.ZodTypeAny, {
|
|
148
154
|
currency: string;
|
|
149
155
|
id: number;
|
|
@@ -173,6 +179,11 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
173
179
|
paymentLink?: string | undefined;
|
|
174
180
|
payoutId?: number | undefined;
|
|
175
181
|
payoutAmount?: number | undefined;
|
|
182
|
+
xeroSyncStatus?: "PENDING" | "FAILED" | "SKIPPED" | "SUCCESS" | undefined;
|
|
183
|
+
xeroLastAttemptAt?: Date | undefined;
|
|
184
|
+
xeroLastSuccessAt?: Date | undefined;
|
|
185
|
+
xeroLastError?: string | undefined;
|
|
186
|
+
xeroRetryCount?: number | undefined;
|
|
176
187
|
}, {
|
|
177
188
|
currency: string;
|
|
178
189
|
id: number;
|
|
@@ -202,4 +213,9 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
202
213
|
paymentLink?: string | undefined;
|
|
203
214
|
payoutId?: number | undefined;
|
|
204
215
|
payoutAmount?: number | undefined;
|
|
216
|
+
xeroSyncStatus?: "PENDING" | "FAILED" | "SKIPPED" | "SUCCESS" | undefined;
|
|
217
|
+
xeroLastAttemptAt?: Date | undefined;
|
|
218
|
+
xeroLastSuccessAt?: Date | undefined;
|
|
219
|
+
xeroLastError?: string | undefined;
|
|
220
|
+
xeroRetryCount?: number | undefined;
|
|
205
221
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReservationSchema = exports.ReservationFinanceSchema = exports.ReservationUnitAssignmentSchema = exports.ReservationServiceSchema = exports.ReservationCustomerSchema = exports.ReservationStatusEnum = void 0;
|
|
3
|
+
exports.ReservationSchema = exports.ReservationFinanceSchema = exports.ReservationUnitAssignmentSchema = exports.ReservationServiceSchema = exports.ReservationCustomerSchema = exports.XeroSyncStatusEnum = exports.ReservationStatusEnum = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const prisma_decimal_1 = require("../prisma-decimal");
|
|
6
6
|
exports.ReservationStatusEnum = zod_1.z.enum([
|
|
@@ -8,6 +8,12 @@ exports.ReservationStatusEnum = zod_1.z.enum([
|
|
|
8
8
|
"CANCELLED",
|
|
9
9
|
"PENDING",
|
|
10
10
|
]);
|
|
11
|
+
exports.XeroSyncStatusEnum = zod_1.z.enum([
|
|
12
|
+
"PENDING",
|
|
13
|
+
"SUCCESS",
|
|
14
|
+
"FAILED",
|
|
15
|
+
"SKIPPED",
|
|
16
|
+
]);
|
|
11
17
|
exports.ReservationCustomerSchema = zod_1.z.object({
|
|
12
18
|
id: zod_1.z.string().uuid(),
|
|
13
19
|
firstName: zod_1.z.string(),
|
|
@@ -78,4 +84,9 @@ exports.ReservationSchema = zod_1.z.object({
|
|
|
78
84
|
payoutId: zod_1.z.number().optional(),
|
|
79
85
|
payoutAmount: zod_1.z.number().optional(),
|
|
80
86
|
requiresPayout: zod_1.z.boolean(),
|
|
87
|
+
xeroSyncStatus: exports.XeroSyncStatusEnum.optional(),
|
|
88
|
+
xeroLastAttemptAt: zod_1.z.date().optional(),
|
|
89
|
+
xeroLastSuccessAt: zod_1.z.date().optional(),
|
|
90
|
+
xeroLastError: zod_1.z.string().optional(),
|
|
91
|
+
xeroRetryCount: zod_1.z.number().optional(),
|
|
81
92
|
});
|
|
@@ -9,6 +9,7 @@ export declare const serviceSchema: import("zod").ZodObject<{
|
|
|
9
9
|
integrationName: import("zod").ZodString;
|
|
10
10
|
description: import("zod").ZodString;
|
|
11
11
|
image: import("zod").ZodString;
|
|
12
|
+
originalImageUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
12
13
|
region: import("zod").ZodString;
|
|
13
14
|
rating: import("zod").ZodNumber;
|
|
14
15
|
stripePriceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -35,6 +36,7 @@ export declare const serviceSchema: import("zod").ZodObject<{
|
|
|
35
36
|
rating: number;
|
|
36
37
|
priceType: PriceType;
|
|
37
38
|
display?: boolean | undefined;
|
|
39
|
+
originalImageUrl?: string | null | undefined;
|
|
38
40
|
stripePriceId?: string | undefined;
|
|
39
41
|
startingFromPrice?: number | undefined;
|
|
40
42
|
departmentId?: number | undefined;
|
|
@@ -57,6 +59,7 @@ export declare const serviceSchema: import("zod").ZodObject<{
|
|
|
57
59
|
rating: number;
|
|
58
60
|
priceType: PriceType;
|
|
59
61
|
display?: boolean | undefined;
|
|
62
|
+
originalImageUrl?: string | null | undefined;
|
|
60
63
|
stripePriceId?: string | undefined;
|
|
61
64
|
startingFromPrice?: number | undefined;
|
|
62
65
|
departmentId?: number | undefined;
|
|
@@ -13,6 +13,7 @@ exports.serviceSchema = (0, zod_1.object)({
|
|
|
13
13
|
integrationName: (0, zod_1.string)(),
|
|
14
14
|
description: (0, zod_1.string)(),
|
|
15
15
|
image: (0, zod_1.string)(),
|
|
16
|
+
originalImageUrl: (0, zod_1.string)().nullish(),
|
|
16
17
|
region: (0, zod_1.string)(),
|
|
17
18
|
rating: (0, zod_1.number)(),
|
|
18
19
|
stripePriceId: (0, zod_1.string)().optional(),
|
|
@@ -11,15 +11,15 @@ export declare const taskChecklistItemSchema: import("zod").ZodObject<{
|
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
taskChecklistSpaceId: number;
|
|
14
|
-
content?: string | undefined;
|
|
15
14
|
completed?: boolean | undefined;
|
|
15
|
+
content?: string | 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
|
-
content?: string | undefined;
|
|
23
22
|
completed?: boolean | undefined;
|
|
23
|
+
content?: string | undefined;
|
|
24
24
|
completedAt?: Date | undefined;
|
|
25
25
|
}>;
|
|
@@ -931,7 +931,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
931
931
|
} | undefined;
|
|
932
932
|
}>>;
|
|
933
933
|
participantIds: z.ZodArray<z.ZodString, "many">;
|
|
934
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
934
|
+
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
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<
|
|
1068
|
+
reservation: z.ZodOptional<z.ZodObject<Pick<{
|
|
1069
1069
|
id: z.ZodNumber;
|
|
1070
1070
|
status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
1071
1071
|
currency: z.ZodString;
|
|
@@ -1094,7 +1094,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1094
1094
|
payoutId: z.ZodOptional<z.ZodNumber>;
|
|
1095
1095
|
payoutAmount: z.ZodOptional<z.ZodNumber>;
|
|
1096
1096
|
requiresPayout: z.ZodBoolean;
|
|
1097
|
-
|
|
1097
|
+
xeroSyncStatus: z.ZodOptional<z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>>;
|
|
1098
|
+
xeroLastAttemptAt: z.ZodOptional<z.ZodDate>;
|
|
1099
|
+
xeroLastSuccessAt: z.ZodOptional<z.ZodDate>;
|
|
1100
|
+
xeroLastError: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
xeroRetryCount: z.ZodOptional<z.ZodNumber>;
|
|
1102
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"> & {
|
|
1098
1103
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
1099
1104
|
property: z.ZodOptional<z.ZodObject<{
|
|
1100
1105
|
id: z.ZodNumber;
|
|
@@ -1187,7 +1192,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1187
1192
|
customBundleId?: number | null | undefined;
|
|
1188
1193
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1189
1194
|
}>>;
|
|
1190
|
-
}
|
|
1195
|
+
}, "strip", z.ZodTypeAny, {
|
|
1191
1196
|
id: number;
|
|
1192
1197
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
1193
1198
|
propertyId: number;
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|