hububb-models 1.0.107 → 1.0.109
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.
@@ -7,6 +7,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
|
|
7
7
|
country: import("zod").ZodString;
|
8
8
|
state: import("zod").ZodOptional<import("zod").ZodString>;
|
9
9
|
zipcode: import("zod").ZodOptional<import("zod").ZodString>;
|
10
|
+
unit: import("zod").ZodOptional<import("zod").ZodString>;
|
10
11
|
}, "strip", import("zod").ZodTypeAny, {
|
11
12
|
full: string;
|
12
13
|
country: string;
|
@@ -15,6 +16,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
|
|
15
16
|
street: string;
|
16
17
|
city: string;
|
17
18
|
state?: string | undefined;
|
19
|
+
unit?: string | undefined;
|
18
20
|
zipcode?: string | undefined;
|
19
21
|
}, {
|
20
22
|
full: string;
|
@@ -24,6 +26,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
|
|
24
26
|
street: string;
|
25
27
|
city: string;
|
26
28
|
state?: string | undefined;
|
29
|
+
unit?: string | undefined;
|
27
30
|
zipcode?: string | undefined;
|
28
31
|
}>;
|
29
32
|
export declare const PictureSchema: import("zod").ZodObject<{
|
@@ -192,6 +195,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
192
195
|
country: import("zod").ZodString;
|
193
196
|
state: import("zod").ZodOptional<import("zod").ZodString>;
|
194
197
|
zipcode: import("zod").ZodOptional<import("zod").ZodString>;
|
198
|
+
unit: import("zod").ZodOptional<import("zod").ZodString>;
|
195
199
|
}, "strip", import("zod").ZodTypeAny, {
|
196
200
|
full: string;
|
197
201
|
country: string;
|
@@ -200,6 +204,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
200
204
|
street: string;
|
201
205
|
city: string;
|
202
206
|
state?: string | undefined;
|
207
|
+
unit?: string | undefined;
|
203
208
|
zipcode?: string | undefined;
|
204
209
|
}, {
|
205
210
|
full: string;
|
@@ -209,6 +214,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
209
214
|
street: string;
|
210
215
|
city: string;
|
211
216
|
state?: string | undefined;
|
217
|
+
unit?: string | undefined;
|
212
218
|
zipcode?: string | undefined;
|
213
219
|
}>;
|
214
220
|
publishedAddress: import("zod").ZodOptional<import("zod").ZodObject<{
|
@@ -519,6 +525,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
519
525
|
street: string;
|
520
526
|
city: string;
|
521
527
|
state?: string | undefined;
|
528
|
+
unit?: string | undefined;
|
522
529
|
zipcode?: string | undefined;
|
523
530
|
};
|
524
531
|
active: boolean;
|
@@ -646,6 +653,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
646
653
|
street: string;
|
647
654
|
city: string;
|
648
655
|
state?: string | undefined;
|
656
|
+
unit?: string | undefined;
|
649
657
|
zipcode?: string | undefined;
|
650
658
|
};
|
651
659
|
active: boolean;
|
package/dist/schemas/listing.js
CHANGED
@@ -12,6 +12,7 @@ exports.AddressSchema = (0, zod_1.object)({
|
|
12
12
|
country: (0, zod_1.string)(),
|
13
13
|
state: (0, zod_1.optional)((0, zod_1.string)()),
|
14
14
|
zipcode: (0, zod_1.optional)((0, zod_1.string)()),
|
15
|
+
unit: (0, zod_1.optional)((0, zod_1.string)()),
|
15
16
|
});
|
16
17
|
exports.PictureSchema = (0, zod_1.object)({
|
17
18
|
regular: (0, zod_1.optional)((0, zod_1.string)()),
|
@@ -534,7 +534,9 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
534
534
|
amount: import("zod").ZodNumber;
|
535
535
|
ratePlanId: import("zod").ZodString;
|
536
536
|
userId: import("zod").ZodString;
|
537
|
+
propertyId: import("zod").ZodString;
|
537
538
|
}, "strip", import("zod").ZodTypeAny, {
|
539
|
+
propertyId: string;
|
538
540
|
ratePlanId: string;
|
539
541
|
amount: number;
|
540
542
|
booker: {
|
@@ -567,6 +569,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
567
569
|
count?: number | undefined;
|
568
570
|
}[] | undefined;
|
569
571
|
}, {
|
572
|
+
propertyId: string;
|
570
573
|
ratePlanId: string;
|
571
574
|
amount: number;
|
572
575
|
booker: {
|
@@ -113,4 +113,5 @@ exports.paymentCreateSchema = (0, zod_1.object)({
|
|
113
113
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
114
114
|
ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
|
115
115
|
userId: (0, zod_1.string)().min(1, "User ID is required"),
|
116
|
+
propertyId: (0, zod_1.string)().min(1, "Property ID is required"),
|
116
117
|
});
|