hububb-saas-shared 1.0.13 → 1.0.15

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.
@@ -9,6 +9,7 @@ export declare const addressSchema: import("zod").ZodObject<{
9
9
  longitude: import("zod").ZodNumber;
10
10
  createdAt: import("zod").ZodDate;
11
11
  updatedAt: import("zod").ZodDate;
12
+ full: import("zod").ZodOptional<import("zod").ZodString>;
12
13
  }, "strip", import("zod").ZodTypeAny, {
13
14
  id: number;
14
15
  state: string;
@@ -20,6 +21,7 @@ export declare const addressSchema: import("zod").ZodObject<{
20
21
  zipcode: string;
21
22
  latitude: number;
22
23
  longitude: number;
24
+ full?: string | undefined;
23
25
  }, {
24
26
  id: number;
25
27
  state: string;
@@ -31,4 +33,5 @@ export declare const addressSchema: import("zod").ZodObject<{
31
33
  zipcode: string;
32
34
  latitude: number;
33
35
  longitude: number;
36
+ full?: string | undefined;
34
37
  }>;
@@ -13,4 +13,5 @@ exports.addressSchema = (0, zod_1.object)({
13
13
  longitude: (0, zod_1.number)(),
14
14
  createdAt: (0, zod_1.date)(),
15
15
  updatedAt: (0, zod_1.date)(),
16
+ full: (0, zod_1.string)().optional(),
16
17
  });
@@ -31,8 +31,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
31
31
  address: string | null;
32
32
  country: string | null;
33
33
  language: string | null;
34
- phone: string | null;
35
34
  city: string | null;
35
+ phone: string | null;
36
36
  company: string | null;
37
37
  mail: string;
38
38
  surname: string;
@@ -45,8 +45,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
45
45
  address: string | null;
46
46
  country: string | null;
47
47
  language: string | null;
48
- phone: string | null;
49
48
  city: string | null;
49
+ phone: string | null;
50
50
  company: string | null;
51
51
  mail: string;
52
52
  surname: string;
@@ -421,8 +421,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
421
421
  address: string | null;
422
422
  country: string | null;
423
423
  language: string | null;
424
- phone: string | null;
425
424
  city: string | null;
425
+ phone: string | null;
426
426
  company: string | null;
427
427
  mail: string;
428
428
  surname: string;
@@ -526,8 +526,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
526
526
  address: string | null;
527
527
  country: string | null;
528
528
  language: string | null;
529
- phone: string | null;
530
529
  city: string | null;
530
+ phone: string | null;
531
531
  company: string | null;
532
532
  mail: string;
533
533
  surname: string;
@@ -635,8 +635,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
635
635
  address: string | null;
636
636
  country: string | null;
637
637
  language: string | null;
638
- phone: string | null;
639
638
  city: string | null;
639
+ phone: string | null;
640
640
  company: string | null;
641
641
  mail: string;
642
642
  surname: string;
@@ -744,8 +744,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
744
744
  address: string | null;
745
745
  country: string | null;
746
746
  language: string | null;
747
- phone: string | null;
748
747
  city: string | null;
748
+ phone: string | null;
749
749
  company: string | null;
750
750
  mail: string;
751
751
  surname: string;
@@ -855,8 +855,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
855
855
  address: string | null;
856
856
  country: string | null;
857
857
  language: string | null;
858
- phone: string | null;
859
858
  city: string | null;
859
+ phone: string | null;
860
860
  company: string | null;
861
861
  mail: string;
862
862
  surname: string;
@@ -966,8 +966,8 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
966
966
  address: string | null;
967
967
  country: string | null;
968
968
  language: string | null;
969
- phone: string | null;
970
969
  city: string | null;
970
+ phone: string | null;
971
971
  company: string | null;
972
972
  mail: string;
973
973
  surname: string;
@@ -19,13 +19,13 @@ export declare const PriceSchema: import("zod").ZodObject<{
19
19
  updatedAt: Date;
20
20
  basePrice: number | null;
21
21
  propertyId: number;
22
- cleaningFee: number | null;
23
22
  guestsIncluded: number | null;
24
23
  extraPersonFee: number | null;
25
24
  monthlyPriceFactor: number | null;
26
25
  weeklyPriceFactor: number | null;
27
26
  weekendBasePrice: number | null;
28
27
  securityDeposit: number | null;
28
+ cleaningFee: number | null;
29
29
  }, {
30
30
  currency: string;
31
31
  id: number;
@@ -33,11 +33,11 @@ export declare const PriceSchema: import("zod").ZodObject<{
33
33
  updatedAt: Date;
34
34
  basePrice: number | null;
35
35
  propertyId: number;
36
- cleaningFee: number | null;
37
36
  guestsIncluded: number | null;
38
37
  extraPersonFee: number | null;
39
38
  monthlyPriceFactor: number | null;
40
39
  weeklyPriceFactor: number | null;
41
40
  weekendBasePrice: number | null;
42
41
  securityDeposit: number | null;
42
+ cleaningFee: number | null;
43
43
  }>;
@@ -65,3 +65,229 @@ export declare const propertySchema: import("zod").ZodObject<{
65
65
  minimumNights?: number | null | undefined;
66
66
  maximumNights?: number | null | undefined;
67
67
  }>;
68
+ export declare const updatePropertySchema: import("zod").ZodObject<{
69
+ propertyDetails: import("zod").ZodOptional<import("zod").ZodObject<{
70
+ title: import("zod").ZodOptional<import("zod").ZodString>;
71
+ description: import("zod").ZodOptional<import("zod").ZodString>;
72
+ nickname: import("zod").ZodOptional<import("zod").ZodString>;
73
+ propertyType: import("zod").ZodOptional<import("zod").ZodString>;
74
+ listingType: import("zod").ZodOptional<import("zod").ZodString>;
75
+ bedrooms: import("zod").ZodOptional<import("zod").ZodNumber>;
76
+ bathrooms: import("zod").ZodOptional<import("zod").ZodNumber>;
77
+ capacity: import("zod").ZodOptional<import("zod").ZodNumber>;
78
+ beds: import("zod").ZodOptional<import("zod").ZodNumber>;
79
+ checkInTime: import("zod").ZodOptional<import("zod").ZodString>;
80
+ checkOutTime: import("zod").ZodOptional<import("zod").ZodString>;
81
+ channexId: import("zod").ZodOptional<import("zod").ZodString>;
82
+ airbnbId: import("zod").ZodOptional<import("zod").ZodString>;
83
+ channexRoomTypeId: import("zod").ZodOptional<import("zod").ZodString>;
84
+ minimumNights: import("zod").ZodOptional<import("zod").ZodNumber>;
85
+ maximumNights: import("zod").ZodOptional<import("zod").ZodNumber>;
86
+ area: import("zod").ZodOptional<import("zod").ZodNumber>;
87
+ }, "strip", import("zod").ZodTypeAny, {
88
+ area?: number | undefined;
89
+ title?: string | undefined;
90
+ description?: string | undefined;
91
+ nickname?: string | undefined;
92
+ propertyType?: string | undefined;
93
+ listingType?: string | undefined;
94
+ bedrooms?: number | undefined;
95
+ bathrooms?: number | undefined;
96
+ capacity?: number | undefined;
97
+ beds?: number | undefined;
98
+ checkInTime?: string | undefined;
99
+ checkOutTime?: string | undefined;
100
+ channexId?: string | undefined;
101
+ airbnbId?: string | undefined;
102
+ channexRoomTypeId?: string | undefined;
103
+ minimumNights?: number | undefined;
104
+ maximumNights?: number | undefined;
105
+ }, {
106
+ area?: number | undefined;
107
+ title?: string | undefined;
108
+ description?: string | undefined;
109
+ nickname?: string | undefined;
110
+ propertyType?: string | undefined;
111
+ listingType?: string | undefined;
112
+ bedrooms?: number | undefined;
113
+ bathrooms?: number | undefined;
114
+ capacity?: number | undefined;
115
+ beds?: number | undefined;
116
+ checkInTime?: string | undefined;
117
+ checkOutTime?: string | undefined;
118
+ channexId?: string | undefined;
119
+ airbnbId?: string | undefined;
120
+ channexRoomTypeId?: string | undefined;
121
+ minimumNights?: number | undefined;
122
+ maximumNights?: number | undefined;
123
+ }>>;
124
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
125
+ wifiName: import("zod").ZodOptional<import("zod").ZodString>;
126
+ wifiPassword: import("zod").ZodOptional<import("zod").ZodString>;
127
+ checkInInstructions: import("zod").ZodOptional<import("zod").ZodString>;
128
+ checkOutInstructions: import("zod").ZodOptional<import("zod").ZodString>;
129
+ checkInAgent: import("zod").ZodOptional<import("zod").ZodString>;
130
+ }, "strip", import("zod").ZodTypeAny, {
131
+ wifiName?: string | undefined;
132
+ wifiPassword?: string | undefined;
133
+ checkInInstructions?: string | undefined;
134
+ checkOutInstructions?: string | undefined;
135
+ checkInAgent?: string | undefined;
136
+ }, {
137
+ wifiName?: string | undefined;
138
+ wifiPassword?: string | undefined;
139
+ checkInInstructions?: string | undefined;
140
+ checkOutInstructions?: string | undefined;
141
+ checkInAgent?: string | undefined;
142
+ }>>;
143
+ price: import("zod").ZodOptional<import("zod").ZodObject<{
144
+ guestsIncluded: import("zod").ZodOptional<import("zod").ZodNumber>;
145
+ extraPersonFee: import("zod").ZodOptional<import("zod").ZodNumber>;
146
+ basePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
147
+ monthlyPriceFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
148
+ weeklyPriceFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
149
+ weekendBasePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
150
+ securityDeposit: import("zod").ZodOptional<import("zod").ZodNumber>;
151
+ currency: import("zod").ZodOptional<import("zod").ZodString>;
152
+ cleaningFee: import("zod").ZodOptional<import("zod").ZodNumber>;
153
+ }, "strip", import("zod").ZodTypeAny, {
154
+ currency?: string | undefined;
155
+ basePrice?: number | undefined;
156
+ guestsIncluded?: number | undefined;
157
+ extraPersonFee?: number | undefined;
158
+ monthlyPriceFactor?: number | undefined;
159
+ weeklyPriceFactor?: number | undefined;
160
+ weekendBasePrice?: number | undefined;
161
+ securityDeposit?: number | undefined;
162
+ cleaningFee?: number | undefined;
163
+ }, {
164
+ currency?: string | undefined;
165
+ basePrice?: number | undefined;
166
+ guestsIncluded?: number | undefined;
167
+ extraPersonFee?: number | undefined;
168
+ monthlyPriceFactor?: number | undefined;
169
+ weeklyPriceFactor?: number | undefined;
170
+ weekendBasePrice?: number | undefined;
171
+ securityDeposit?: number | undefined;
172
+ cleaningFee?: number | undefined;
173
+ }>>;
174
+ address: import("zod").ZodOptional<import("zod").ZodObject<{
175
+ street: import("zod").ZodOptional<import("zod").ZodString>;
176
+ city: import("zod").ZodOptional<import("zod").ZodString>;
177
+ state: import("zod").ZodOptional<import("zod").ZodString>;
178
+ zipcode: import("zod").ZodOptional<import("zod").ZodString>;
179
+ latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
180
+ longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
181
+ full: import("zod").ZodOptional<import("zod").ZodString>;
182
+ }, "strip", import("zod").ZodTypeAny, {
183
+ state?: string | undefined;
184
+ full?: string | undefined;
185
+ street?: string | undefined;
186
+ city?: string | undefined;
187
+ zipcode?: string | undefined;
188
+ latitude?: number | undefined;
189
+ longitude?: number | undefined;
190
+ }, {
191
+ state?: string | undefined;
192
+ full?: string | undefined;
193
+ street?: string | undefined;
194
+ city?: string | undefined;
195
+ zipcode?: string | undefined;
196
+ latitude?: number | undefined;
197
+ longitude?: number | undefined;
198
+ }>>;
199
+ }, "strip", import("zod").ZodTypeAny, {
200
+ address?: {
201
+ state?: string | undefined;
202
+ full?: string | undefined;
203
+ street?: string | undefined;
204
+ city?: string | undefined;
205
+ zipcode?: string | undefined;
206
+ latitude?: number | undefined;
207
+ longitude?: number | undefined;
208
+ } | undefined;
209
+ metadata?: {
210
+ wifiName?: string | undefined;
211
+ wifiPassword?: string | undefined;
212
+ checkInInstructions?: string | undefined;
213
+ checkOutInstructions?: string | undefined;
214
+ checkInAgent?: string | undefined;
215
+ } | undefined;
216
+ price?: {
217
+ currency?: string | undefined;
218
+ basePrice?: number | undefined;
219
+ guestsIncluded?: number | undefined;
220
+ extraPersonFee?: number | undefined;
221
+ monthlyPriceFactor?: number | undefined;
222
+ weeklyPriceFactor?: number | undefined;
223
+ weekendBasePrice?: number | undefined;
224
+ securityDeposit?: number | undefined;
225
+ cleaningFee?: number | undefined;
226
+ } | undefined;
227
+ propertyDetails?: {
228
+ area?: number | undefined;
229
+ title?: string | undefined;
230
+ description?: string | undefined;
231
+ nickname?: string | undefined;
232
+ propertyType?: string | undefined;
233
+ listingType?: string | undefined;
234
+ bedrooms?: number | undefined;
235
+ bathrooms?: number | undefined;
236
+ capacity?: number | undefined;
237
+ beds?: number | undefined;
238
+ checkInTime?: string | undefined;
239
+ checkOutTime?: string | undefined;
240
+ channexId?: string | undefined;
241
+ airbnbId?: string | undefined;
242
+ channexRoomTypeId?: string | undefined;
243
+ minimumNights?: number | undefined;
244
+ maximumNights?: number | undefined;
245
+ } | undefined;
246
+ }, {
247
+ address?: {
248
+ state?: string | undefined;
249
+ full?: string | undefined;
250
+ street?: string | undefined;
251
+ city?: string | undefined;
252
+ zipcode?: string | undefined;
253
+ latitude?: number | undefined;
254
+ longitude?: number | undefined;
255
+ } | undefined;
256
+ metadata?: {
257
+ wifiName?: string | undefined;
258
+ wifiPassword?: string | undefined;
259
+ checkInInstructions?: string | undefined;
260
+ checkOutInstructions?: string | undefined;
261
+ checkInAgent?: string | undefined;
262
+ } | undefined;
263
+ price?: {
264
+ currency?: string | undefined;
265
+ basePrice?: number | undefined;
266
+ guestsIncluded?: number | undefined;
267
+ extraPersonFee?: number | undefined;
268
+ monthlyPriceFactor?: number | undefined;
269
+ weeklyPriceFactor?: number | undefined;
270
+ weekendBasePrice?: number | undefined;
271
+ securityDeposit?: number | undefined;
272
+ cleaningFee?: number | undefined;
273
+ } | undefined;
274
+ propertyDetails?: {
275
+ area?: number | undefined;
276
+ title?: string | undefined;
277
+ description?: string | undefined;
278
+ nickname?: string | undefined;
279
+ propertyType?: string | undefined;
280
+ listingType?: string | undefined;
281
+ bedrooms?: number | undefined;
282
+ bathrooms?: number | undefined;
283
+ capacity?: number | undefined;
284
+ beds?: number | undefined;
285
+ checkInTime?: string | undefined;
286
+ checkOutTime?: string | undefined;
287
+ channexId?: string | undefined;
288
+ airbnbId?: string | undefined;
289
+ channexRoomTypeId?: string | undefined;
290
+ minimumNights?: number | undefined;
291
+ maximumNights?: number | undefined;
292
+ } | undefined;
293
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.propertySchema = void 0;
3
+ exports.updatePropertySchema = exports.propertySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.propertySchema = (0, zod_1.object)({
6
6
  id: (0, zod_1.number)().int(),
@@ -25,3 +25,51 @@ exports.propertySchema = (0, zod_1.object)({
25
25
  maximumNights: (0, zod_1.number)().int().nullish(),
26
26
  area: (0, zod_1.number)().int().nullish(),
27
27
  });
28
+ exports.updatePropertySchema = (0, zod_1.object)({
29
+ propertyDetails: (0, zod_1.object)({
30
+ title: (0, zod_1.string)().optional(),
31
+ description: (0, zod_1.string)().optional(),
32
+ nickname: (0, zod_1.string)().optional(),
33
+ propertyType: (0, zod_1.string)().optional(),
34
+ listingType: (0, zod_1.string)().optional(),
35
+ bedrooms: (0, zod_1.number)().int().optional(),
36
+ bathrooms: (0, zod_1.number)().int().optional(),
37
+ capacity: (0, zod_1.number)().int().optional(),
38
+ beds: (0, zod_1.number)().int().optional(),
39
+ checkInTime: (0, zod_1.string)().optional(),
40
+ checkOutTime: (0, zod_1.string)().optional(),
41
+ channexId: (0, zod_1.string)().optional(),
42
+ airbnbId: (0, zod_1.string)().optional(),
43
+ channexRoomTypeId: (0, zod_1.string)().optional(),
44
+ minimumNights: (0, zod_1.number)().int().optional(),
45
+ maximumNights: (0, zod_1.number)().int().optional(),
46
+ area: (0, zod_1.number)().int().optional(),
47
+ }).optional(),
48
+ metadata: (0, zod_1.object)({
49
+ wifiName: (0, zod_1.string)().optional(),
50
+ wifiPassword: (0, zod_1.string)().optional(),
51
+ checkInInstructions: (0, zod_1.string)().optional(),
52
+ checkOutInstructions: (0, zod_1.string)().optional(),
53
+ checkInAgent: (0, zod_1.string)().optional(),
54
+ }).optional(),
55
+ price: (0, zod_1.object)({
56
+ guestsIncluded: (0, zod_1.number)().int().optional(),
57
+ extraPersonFee: (0, zod_1.number)().int().optional(),
58
+ basePrice: (0, zod_1.number)().int().optional(),
59
+ monthlyPriceFactor: (0, zod_1.number)().int().optional(),
60
+ weeklyPriceFactor: (0, zod_1.number)().int().optional(),
61
+ weekendBasePrice: (0, zod_1.number)().int().optional(),
62
+ securityDeposit: (0, zod_1.number)().int().optional(),
63
+ currency: (0, zod_1.string)().optional(),
64
+ cleaningFee: (0, zod_1.number)().int().optional(),
65
+ }).optional(),
66
+ address: (0, zod_1.object)({
67
+ street: (0, zod_1.string)().optional(),
68
+ city: (0, zod_1.string)().optional(),
69
+ state: (0, zod_1.string)().optional(),
70
+ zipcode: (0, zod_1.string)().optional(),
71
+ latitude: (0, zod_1.number)().int().optional(),
72
+ longitude: (0, zod_1.number)().int().optional(),
73
+ full: (0, zod_1.string)().optional(),
74
+ }).optional(),
75
+ });
@@ -15,9 +15,9 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
15
15
  propertyId: number;
16
16
  wifiName?: string | null | undefined;
17
17
  wifiPassword?: string | null | undefined;
18
- checkInAgent?: string | null | undefined;
19
18
  checkInInstructions?: string | null | undefined;
20
19
  checkOutInstructions?: string | null | undefined;
20
+ checkInAgent?: string | null | undefined;
21
21
  }, {
22
22
  id: number;
23
23
  createdAt: Date;
@@ -25,7 +25,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
25
25
  propertyId: number;
26
26
  wifiName?: string | null | undefined;
27
27
  wifiPassword?: string | null | undefined;
28
- checkInAgent?: string | null | undefined;
29
28
  checkInInstructions?: string | null | undefined;
30
29
  checkOutInstructions?: string | null | undefined;
30
+ checkInAgent?: string | null | undefined;
31
31
  }>;
@@ -1,5 +1,5 @@
1
1
  import { infer } from "zod";
2
- import { propertySchema } from "../../schemas/property";
2
+ import { propertySchema, updatePropertySchema } from "../../schemas/property";
3
3
  import { User } from "../user";
4
4
  import { RatePlan } from "../rate-plan";
5
5
  import { Reservation } from "../reservation";
@@ -20,3 +20,5 @@ export interface Property extends infer<typeof propertySchema> {
20
20
  price?: Price;
21
21
  metadata?: PropertyMetadata;
22
22
  }
23
+ export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
24
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.13",
4
+ "version": "1.0.15",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",