hububb-saas-shared 1.1.39 → 1.1.41
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/enums/index.d.ts +2 -3
- package/dist/schemas/enums/index.js +2 -3
- package/dist/schemas/purchase/index.d.ts +3 -0
- package/dist/schemas/purchase/index.js +1 -0
- package/dist/schemas/reservation/index.d.ts +3 -0
- package/dist/schemas/reservation/index.js +1 -0
- package/dist/schemas/room-image/index.d.ts +19 -0
- package/dist/schemas/room-image/index.js +17 -0
- package/dist/schemas/thread/index.d.ts +1 -0
- package/dist/types/room-image/index.d.ts +6 -0
- package/dist/types/room-image/index.js +2 -0
- package/package.json +1 -1
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
4
|
var ServiceType;
|
|
5
5
|
(function (ServiceType) {
|
|
6
|
-
ServiceType["
|
|
7
|
-
ServiceType["
|
|
8
|
-
ServiceType["RECURRING"] = "RECURRING";
|
|
6
|
+
ServiceType["ON_DEMAND"] = "FULL";
|
|
7
|
+
ServiceType["SUBSCRIPTION"] = "PRORATED";
|
|
9
8
|
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
10
9
|
var TaskStatus;
|
|
11
10
|
(function (TaskStatus) {
|
|
@@ -9,6 +9,7 @@ export declare const purchaseSchema: import("zod").ZodObject<{
|
|
|
9
9
|
purchaseDate: import("zod").ZodDate;
|
|
10
10
|
createdAt: import("zod").ZodDate;
|
|
11
11
|
updatedAt: import("zod").ZodDate;
|
|
12
|
+
receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
13
|
}, "strip", import("zod").ZodTypeAny, {
|
|
13
14
|
id: string;
|
|
14
15
|
status: PurchaseStatus;
|
|
@@ -19,6 +20,7 @@ export declare const purchaseSchema: import("zod").ZodObject<{
|
|
|
19
20
|
priceType: PriceType;
|
|
20
21
|
propertyId: number;
|
|
21
22
|
purchaseDate: Date;
|
|
23
|
+
receiptUrl?: string | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
id: string;
|
|
24
26
|
status: PurchaseStatus;
|
|
@@ -29,4 +31,5 @@ export declare const purchaseSchema: import("zod").ZodObject<{
|
|
|
29
31
|
priceType: PriceType;
|
|
30
32
|
propertyId: number;
|
|
31
33
|
purchaseDate: Date;
|
|
34
|
+
receiptUrl?: string | undefined;
|
|
32
35
|
}>;
|
|
@@ -94,6 +94,7 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
94
94
|
paidOut: z.ZodBoolean;
|
|
95
95
|
payoutId: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
payoutAmount: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
requiresPayout: z.ZodBoolean;
|
|
97
98
|
}, "strip", z.ZodTypeAny, {
|
|
98
99
|
currency: string;
|
|
99
100
|
id: number;
|
|
@@ -115,6 +116,7 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
115
116
|
otaCommission: string;
|
|
116
117
|
readyForPayout: boolean;
|
|
117
118
|
paidOut: boolean;
|
|
119
|
+
requiresPayout: boolean;
|
|
118
120
|
notes?: string | undefined;
|
|
119
121
|
checkedInMark?: Date | undefined;
|
|
120
122
|
checkedOutMark?: Date | undefined;
|
|
@@ -143,6 +145,7 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
143
145
|
otaCommission: string;
|
|
144
146
|
readyForPayout: boolean;
|
|
145
147
|
paidOut: boolean;
|
|
148
|
+
requiresPayout: boolean;
|
|
146
149
|
notes?: string | undefined;
|
|
147
150
|
checkedInMark?: Date | undefined;
|
|
148
151
|
checkedOutMark?: Date | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const roomImageSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
type: 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">]>;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
type: "LIVING_ROOM" | "BEDROOM" | "KITCHEN" | "BATHROOM" | "BALCONY" | "TOILET" | "OTHER";
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
type: "LIVING_ROOM" | "BEDROOM" | "KITCHEN" | "BATHROOM" | "BALCONY" | "TOILET" | "OTHER";
|
|
16
|
+
id: number;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.roomImageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.roomImageSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
type: (0, zod_1.literal)("LIVING_ROOM")
|
|
9
|
+
.or((0, zod_1.literal)("BEDROOM"))
|
|
10
|
+
.or((0, zod_1.literal)("KITCHEN"))
|
|
11
|
+
.or((0, zod_1.literal)("BATHROOM"))
|
|
12
|
+
.or((0, zod_1.literal)("BALCONY"))
|
|
13
|
+
.or((0, zod_1.literal)("TOILET"))
|
|
14
|
+
.or((0, zod_1.literal)("OTHER")),
|
|
15
|
+
createdAt: (0, zod_1.date)(),
|
|
16
|
+
updatedAt: (0, zod_1.date)(),
|
|
17
|
+
});
|
|
@@ -963,6 +963,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
963
963
|
paidOut: z.ZodBoolean;
|
|
964
964
|
payoutId: z.ZodOptional<z.ZodNumber>;
|
|
965
965
|
payoutAmount: z.ZodOptional<z.ZodNumber>;
|
|
966
|
+
requiresPayout: z.ZodBoolean;
|
|
966
967
|
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
|
|
967
968
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
968
969
|
property: z.ZodOptional<z.ZodObject<{
|