more-apartments-astro-integration 1.0.1
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/.more-apartments/availability.json +36 -0
- package/.more-apartments/booking-response.json +15 -0
- package/.more-apartments/categories.json +11 -0
- package/.more-apartments/locations.json +3 -0
- package/.more-apartments/pages.json +46 -0
- package/.more-apartments/posts.json +3 -0
- package/.more-apartments/properties.json +1761 -0
- package/.more-apartments/settings-booking.json +13 -0
- package/.more-apartments/settings-main.json +32 -0
- package/.more-apartments/settings-properties.json +36 -0
- package/.more-apartments/settings-theme.json +78 -0
- package/README.md +982 -0
- package/dist/cli/index.js +1010 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.d.mts +2732 -0
- package/dist/index.d.ts +2732 -0
- package/dist/index.js +1009 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +964 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +75 -0
- package/routes/availability.js +40 -0
- package/routes/bookings.js +66 -0
- package/routes/locations.js +28 -0
- package/routes/page.js +27 -0
- package/routes/pages.js +27 -0
- package/routes/post.js +27 -0
- package/routes/posts.js +32 -0
- package/routes/properties.js +31 -0
- package/routes/property.js +27 -0
- package/routes/settings.js +50 -0
- package/src/components/PropertyBookingWidget.astro +169 -0
- package/src/components/PropertySearchGrid.astro +315 -0
- package/src/pages/booking-complete.astro +155 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2732 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AstroIntegration } from 'astro';
|
|
3
|
+
|
|
4
|
+
declare const PaginationLinksSchema: z.ZodObject<{
|
|
5
|
+
first: z.ZodNullable<z.ZodString>;
|
|
6
|
+
last: z.ZodNullable<z.ZodString>;
|
|
7
|
+
prev: z.ZodNullable<z.ZodString>;
|
|
8
|
+
next: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
first: string | null;
|
|
11
|
+
last: string | null;
|
|
12
|
+
prev: string | null;
|
|
13
|
+
next: string | null;
|
|
14
|
+
}, {
|
|
15
|
+
first: string | null;
|
|
16
|
+
last: string | null;
|
|
17
|
+
prev: string | null;
|
|
18
|
+
next: string | null;
|
|
19
|
+
}>;
|
|
20
|
+
declare const PaginationMetaSchema: z.ZodObject<{
|
|
21
|
+
current_page: z.ZodNumber;
|
|
22
|
+
from: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
last_page: z.ZodNumber;
|
|
24
|
+
links: z.ZodArray<z.ZodObject<{
|
|
25
|
+
url: z.ZodNullable<z.ZodString>;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
active: z.ZodBoolean;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
url: string | null;
|
|
30
|
+
label: string;
|
|
31
|
+
active: boolean;
|
|
32
|
+
}, {
|
|
33
|
+
url: string | null;
|
|
34
|
+
label: string;
|
|
35
|
+
active: boolean;
|
|
36
|
+
}>, "many">;
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
per_page: z.ZodNumber;
|
|
39
|
+
to: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
total: z.ZodNumber;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
path: string;
|
|
43
|
+
current_page: number;
|
|
44
|
+
from: number | null;
|
|
45
|
+
last_page: number;
|
|
46
|
+
links: {
|
|
47
|
+
url: string | null;
|
|
48
|
+
label: string;
|
|
49
|
+
active: boolean;
|
|
50
|
+
}[];
|
|
51
|
+
per_page: number;
|
|
52
|
+
to: number | null;
|
|
53
|
+
total: number;
|
|
54
|
+
}, {
|
|
55
|
+
path: string;
|
|
56
|
+
current_page: number;
|
|
57
|
+
from: number | null;
|
|
58
|
+
last_page: number;
|
|
59
|
+
links: {
|
|
60
|
+
url: string | null;
|
|
61
|
+
label: string;
|
|
62
|
+
active: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
per_page: number;
|
|
65
|
+
to: number | null;
|
|
66
|
+
total: number;
|
|
67
|
+
}>;
|
|
68
|
+
declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
69
|
+
data: z.ZodArray<T, "many">;
|
|
70
|
+
links: z.ZodObject<{
|
|
71
|
+
first: z.ZodNullable<z.ZodString>;
|
|
72
|
+
last: z.ZodNullable<z.ZodString>;
|
|
73
|
+
prev: z.ZodNullable<z.ZodString>;
|
|
74
|
+
next: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
first: string | null;
|
|
77
|
+
last: string | null;
|
|
78
|
+
prev: string | null;
|
|
79
|
+
next: string | null;
|
|
80
|
+
}, {
|
|
81
|
+
first: string | null;
|
|
82
|
+
last: string | null;
|
|
83
|
+
prev: string | null;
|
|
84
|
+
next: string | null;
|
|
85
|
+
}>;
|
|
86
|
+
meta: z.ZodObject<{
|
|
87
|
+
current_page: z.ZodNumber;
|
|
88
|
+
from: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
last_page: z.ZodNumber;
|
|
90
|
+
links: z.ZodArray<z.ZodObject<{
|
|
91
|
+
url: z.ZodNullable<z.ZodString>;
|
|
92
|
+
label: z.ZodString;
|
|
93
|
+
active: z.ZodBoolean;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
url: string | null;
|
|
96
|
+
label: string;
|
|
97
|
+
active: boolean;
|
|
98
|
+
}, {
|
|
99
|
+
url: string | null;
|
|
100
|
+
label: string;
|
|
101
|
+
active: boolean;
|
|
102
|
+
}>, "many">;
|
|
103
|
+
path: z.ZodString;
|
|
104
|
+
per_page: z.ZodNumber;
|
|
105
|
+
to: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
total: z.ZodNumber;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
path: string;
|
|
109
|
+
current_page: number;
|
|
110
|
+
from: number | null;
|
|
111
|
+
last_page: number;
|
|
112
|
+
links: {
|
|
113
|
+
url: string | null;
|
|
114
|
+
label: string;
|
|
115
|
+
active: boolean;
|
|
116
|
+
}[];
|
|
117
|
+
per_page: number;
|
|
118
|
+
to: number | null;
|
|
119
|
+
total: number;
|
|
120
|
+
}, {
|
|
121
|
+
path: string;
|
|
122
|
+
current_page: number;
|
|
123
|
+
from: number | null;
|
|
124
|
+
last_page: number;
|
|
125
|
+
links: {
|
|
126
|
+
url: string | null;
|
|
127
|
+
label: string;
|
|
128
|
+
active: boolean;
|
|
129
|
+
}[];
|
|
130
|
+
per_page: number;
|
|
131
|
+
to: number | null;
|
|
132
|
+
total: number;
|
|
133
|
+
}>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
links: {
|
|
136
|
+
first: string | null;
|
|
137
|
+
last: string | null;
|
|
138
|
+
prev: string | null;
|
|
139
|
+
next: string | null;
|
|
140
|
+
};
|
|
141
|
+
data: T["_output"][];
|
|
142
|
+
meta: {
|
|
143
|
+
path: string;
|
|
144
|
+
current_page: number;
|
|
145
|
+
from: number | null;
|
|
146
|
+
last_page: number;
|
|
147
|
+
links: {
|
|
148
|
+
url: string | null;
|
|
149
|
+
label: string;
|
|
150
|
+
active: boolean;
|
|
151
|
+
}[];
|
|
152
|
+
per_page: number;
|
|
153
|
+
to: number | null;
|
|
154
|
+
total: number;
|
|
155
|
+
};
|
|
156
|
+
}, {
|
|
157
|
+
links: {
|
|
158
|
+
first: string | null;
|
|
159
|
+
last: string | null;
|
|
160
|
+
prev: string | null;
|
|
161
|
+
next: string | null;
|
|
162
|
+
};
|
|
163
|
+
data: T["_input"][];
|
|
164
|
+
meta: {
|
|
165
|
+
path: string;
|
|
166
|
+
current_page: number;
|
|
167
|
+
from: number | null;
|
|
168
|
+
last_page: number;
|
|
169
|
+
links: {
|
|
170
|
+
url: string | null;
|
|
171
|
+
label: string;
|
|
172
|
+
active: boolean;
|
|
173
|
+
}[];
|
|
174
|
+
per_page: number;
|
|
175
|
+
to: number | null;
|
|
176
|
+
total: number;
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
declare const ApiErrorSchema: z.ZodObject<{
|
|
180
|
+
message: z.ZodString;
|
|
181
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
message: string;
|
|
184
|
+
errors?: Record<string, string[]> | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
message: string;
|
|
187
|
+
errors?: Record<string, string[]> | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
type PaginationLinks = z.infer<typeof PaginationLinksSchema>;
|
|
190
|
+
type PaginationMeta = z.infer<typeof PaginationMetaSchema>;
|
|
191
|
+
type PaginatedResponse<T> = {
|
|
192
|
+
data: T[];
|
|
193
|
+
links: PaginationLinks;
|
|
194
|
+
meta: PaginationMeta;
|
|
195
|
+
};
|
|
196
|
+
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
197
|
+
|
|
198
|
+
declare const PropertyImageSchema: z.ZodObject<{
|
|
199
|
+
id: z.ZodNumber;
|
|
200
|
+
url: z.ZodString;
|
|
201
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
id: number;
|
|
204
|
+
url: string;
|
|
205
|
+
alt?: string | undefined;
|
|
206
|
+
}, {
|
|
207
|
+
id: number;
|
|
208
|
+
url: string;
|
|
209
|
+
alt?: string | undefined;
|
|
210
|
+
}>;
|
|
211
|
+
declare const PropertySchema: z.ZodObject<{
|
|
212
|
+
id: z.ZodNumber;
|
|
213
|
+
external_id: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
name: z.ZodString;
|
|
215
|
+
slug: z.ZodString;
|
|
216
|
+
short_description: z.ZodNullable<z.ZodString>;
|
|
217
|
+
description: z.ZodString;
|
|
218
|
+
area_description: z.ZodNullable<z.ZodString>;
|
|
219
|
+
arrival_description: z.ZodNullable<z.ZodString>;
|
|
220
|
+
type: z.ZodNullable<z.ZodString>;
|
|
221
|
+
max_persons: z.ZodNullable<z.ZodNumber>;
|
|
222
|
+
bedrooms: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
bathrooms: z.ZodNullable<z.ZodNumber>;
|
|
224
|
+
toilets: z.ZodNullable<z.ZodNumber>;
|
|
225
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
226
|
+
floor: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
street: z.ZodNullable<z.ZodString>;
|
|
228
|
+
zipcode: z.ZodNullable<z.ZodString>;
|
|
229
|
+
area: z.ZodNullable<z.ZodString>;
|
|
230
|
+
city: z.ZodString;
|
|
231
|
+
country: z.ZodString;
|
|
232
|
+
latitude: z.ZodNumber;
|
|
233
|
+
longitude: z.ZodNumber;
|
|
234
|
+
single_bed: z.ZodNullable<z.ZodNumber>;
|
|
235
|
+
double_bed: z.ZodNullable<z.ZodNumber>;
|
|
236
|
+
single_sofa: z.ZodNullable<z.ZodNumber>;
|
|
237
|
+
double_sofa: z.ZodNullable<z.ZodNumber>;
|
|
238
|
+
single_bunk: z.ZodNullable<z.ZodNumber>;
|
|
239
|
+
balcony: z.ZodBoolean;
|
|
240
|
+
terrace: z.ZodBoolean;
|
|
241
|
+
view: z.ZodNullable<z.ZodString>;
|
|
242
|
+
airco: z.ZodBoolean;
|
|
243
|
+
fans: z.ZodBoolean;
|
|
244
|
+
heating: z.ZodBoolean;
|
|
245
|
+
internet: z.ZodNullable<z.ZodString>;
|
|
246
|
+
internet_connection: z.ZodNullable<z.ZodString>;
|
|
247
|
+
tv: z.ZodNullable<z.ZodString>;
|
|
248
|
+
tv_connection: z.ZodNullable<z.ZodString>;
|
|
249
|
+
dvd: z.ZodBoolean;
|
|
250
|
+
computer: z.ZodBoolean;
|
|
251
|
+
printer: z.ZodBoolean;
|
|
252
|
+
dishwasher: z.ZodBoolean;
|
|
253
|
+
oven: z.ZodBoolean;
|
|
254
|
+
microwave: z.ZodBoolean;
|
|
255
|
+
fridge: z.ZodBoolean;
|
|
256
|
+
freezer: z.ZodBoolean;
|
|
257
|
+
toaster: z.ZodBoolean;
|
|
258
|
+
kettle: z.ZodBoolean;
|
|
259
|
+
coffeemachine: z.ZodBoolean;
|
|
260
|
+
washingmachine: z.ZodBoolean;
|
|
261
|
+
dryer: z.ZodBoolean;
|
|
262
|
+
iron: z.ZodBoolean;
|
|
263
|
+
bathtub: z.ZodBoolean;
|
|
264
|
+
jacuzzi: z.ZodBoolean;
|
|
265
|
+
shower_regular: z.ZodBoolean;
|
|
266
|
+
shower_steam: z.ZodBoolean;
|
|
267
|
+
hairdryer: z.ZodBoolean;
|
|
268
|
+
swimmingpool: z.ZodNullable<z.ZodString>;
|
|
269
|
+
sauna: z.ZodNullable<z.ZodString>;
|
|
270
|
+
parking: z.ZodNullable<z.ZodString>;
|
|
271
|
+
entresol: z.ZodBoolean;
|
|
272
|
+
wheelchair_friendly: z.ZodBoolean;
|
|
273
|
+
smoking_allowed: z.ZodBoolean;
|
|
274
|
+
pets_allowed: z.ZodBoolean;
|
|
275
|
+
supplies_coffee: z.ZodBoolean;
|
|
276
|
+
supplies_tea: z.ZodBoolean;
|
|
277
|
+
supplies_milk: z.ZodBoolean;
|
|
278
|
+
supplies_sugar: z.ZodBoolean;
|
|
279
|
+
supplies_dishwasher_tablets: z.ZodBoolean;
|
|
280
|
+
service_linen: z.ZodBoolean;
|
|
281
|
+
service_towels: z.ZodBoolean;
|
|
282
|
+
cleaning_costs: z.ZodNullable<z.ZodNumber>;
|
|
283
|
+
deposit_costs: z.ZodNullable<z.ZodNumber>;
|
|
284
|
+
min_rate: z.ZodNullable<z.ZodNumber>;
|
|
285
|
+
minimal_nights: z.ZodNullable<z.ZodNumber>;
|
|
286
|
+
maximal_nights: z.ZodNullable<z.ZodNumber>;
|
|
287
|
+
check_in: z.ZodNullable<z.ZodString>;
|
|
288
|
+
check_out: z.ZodNullable<z.ZodString>;
|
|
289
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
290
|
+
id: z.ZodNumber;
|
|
291
|
+
url: z.ZodString;
|
|
292
|
+
thumb_url: z.ZodString;
|
|
293
|
+
alt: z.ZodString;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
id: number;
|
|
296
|
+
url: string;
|
|
297
|
+
thumb_url: string;
|
|
298
|
+
alt: string;
|
|
299
|
+
}, {
|
|
300
|
+
id: number;
|
|
301
|
+
url: string;
|
|
302
|
+
thumb_url: string;
|
|
303
|
+
alt: string;
|
|
304
|
+
}>, "many">>;
|
|
305
|
+
status: z.ZodNullable<z.ZodString>;
|
|
306
|
+
provider_name: z.ZodNullable<z.ZodString>;
|
|
307
|
+
created_at: z.ZodString;
|
|
308
|
+
updated_at: z.ZodString;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
type: string | null;
|
|
311
|
+
status: string | null;
|
|
312
|
+
id: number;
|
|
313
|
+
name: string;
|
|
314
|
+
slug: string;
|
|
315
|
+
short_description: string | null;
|
|
316
|
+
description: string;
|
|
317
|
+
area_description: string | null;
|
|
318
|
+
arrival_description: string | null;
|
|
319
|
+
max_persons: number | null;
|
|
320
|
+
bedrooms: number | null;
|
|
321
|
+
bathrooms: number | null;
|
|
322
|
+
toilets: number | null;
|
|
323
|
+
size: number | null;
|
|
324
|
+
floor: number | null;
|
|
325
|
+
street: string | null;
|
|
326
|
+
zipcode: string | null;
|
|
327
|
+
area: string | null;
|
|
328
|
+
city: string;
|
|
329
|
+
country: string;
|
|
330
|
+
latitude: number;
|
|
331
|
+
longitude: number;
|
|
332
|
+
single_bed: number | null;
|
|
333
|
+
double_bed: number | null;
|
|
334
|
+
single_sofa: number | null;
|
|
335
|
+
double_sofa: number | null;
|
|
336
|
+
single_bunk: number | null;
|
|
337
|
+
balcony: boolean;
|
|
338
|
+
terrace: boolean;
|
|
339
|
+
view: string | null;
|
|
340
|
+
airco: boolean;
|
|
341
|
+
fans: boolean;
|
|
342
|
+
heating: boolean;
|
|
343
|
+
internet: string | null;
|
|
344
|
+
internet_connection: string | null;
|
|
345
|
+
tv: string | null;
|
|
346
|
+
tv_connection: string | null;
|
|
347
|
+
dvd: boolean;
|
|
348
|
+
computer: boolean;
|
|
349
|
+
printer: boolean;
|
|
350
|
+
dishwasher: boolean;
|
|
351
|
+
oven: boolean;
|
|
352
|
+
microwave: boolean;
|
|
353
|
+
fridge: boolean;
|
|
354
|
+
freezer: boolean;
|
|
355
|
+
toaster: boolean;
|
|
356
|
+
kettle: boolean;
|
|
357
|
+
coffeemachine: boolean;
|
|
358
|
+
washingmachine: boolean;
|
|
359
|
+
dryer: boolean;
|
|
360
|
+
iron: boolean;
|
|
361
|
+
bathtub: boolean;
|
|
362
|
+
jacuzzi: boolean;
|
|
363
|
+
shower_regular: boolean;
|
|
364
|
+
shower_steam: boolean;
|
|
365
|
+
hairdryer: boolean;
|
|
366
|
+
swimmingpool: string | null;
|
|
367
|
+
sauna: string | null;
|
|
368
|
+
parking: string | null;
|
|
369
|
+
entresol: boolean;
|
|
370
|
+
wheelchair_friendly: boolean;
|
|
371
|
+
smoking_allowed: boolean;
|
|
372
|
+
pets_allowed: boolean;
|
|
373
|
+
supplies_coffee: boolean;
|
|
374
|
+
supplies_tea: boolean;
|
|
375
|
+
supplies_milk: boolean;
|
|
376
|
+
supplies_sugar: boolean;
|
|
377
|
+
supplies_dishwasher_tablets: boolean;
|
|
378
|
+
service_linen: boolean;
|
|
379
|
+
service_towels: boolean;
|
|
380
|
+
cleaning_costs: number | null;
|
|
381
|
+
deposit_costs: number | null;
|
|
382
|
+
min_rate: number | null;
|
|
383
|
+
minimal_nights: number | null;
|
|
384
|
+
maximal_nights: number | null;
|
|
385
|
+
check_in: string | null;
|
|
386
|
+
check_out: string | null;
|
|
387
|
+
provider_name: string | null;
|
|
388
|
+
created_at: string;
|
|
389
|
+
updated_at: string;
|
|
390
|
+
external_id?: number | undefined;
|
|
391
|
+
images?: {
|
|
392
|
+
id: number;
|
|
393
|
+
url: string;
|
|
394
|
+
thumb_url: string;
|
|
395
|
+
alt: string;
|
|
396
|
+
}[] | undefined;
|
|
397
|
+
}, {
|
|
398
|
+
type: string | null;
|
|
399
|
+
status: string | null;
|
|
400
|
+
id: number;
|
|
401
|
+
name: string;
|
|
402
|
+
slug: string;
|
|
403
|
+
short_description: string | null;
|
|
404
|
+
description: string;
|
|
405
|
+
area_description: string | null;
|
|
406
|
+
arrival_description: string | null;
|
|
407
|
+
max_persons: number | null;
|
|
408
|
+
bedrooms: number | null;
|
|
409
|
+
bathrooms: number | null;
|
|
410
|
+
toilets: number | null;
|
|
411
|
+
size: number | null;
|
|
412
|
+
floor: number | null;
|
|
413
|
+
street: string | null;
|
|
414
|
+
zipcode: string | null;
|
|
415
|
+
area: string | null;
|
|
416
|
+
city: string;
|
|
417
|
+
country: string;
|
|
418
|
+
latitude: number;
|
|
419
|
+
longitude: number;
|
|
420
|
+
single_bed: number | null;
|
|
421
|
+
double_bed: number | null;
|
|
422
|
+
single_sofa: number | null;
|
|
423
|
+
double_sofa: number | null;
|
|
424
|
+
single_bunk: number | null;
|
|
425
|
+
balcony: boolean;
|
|
426
|
+
terrace: boolean;
|
|
427
|
+
view: string | null;
|
|
428
|
+
airco: boolean;
|
|
429
|
+
fans: boolean;
|
|
430
|
+
heating: boolean;
|
|
431
|
+
internet: string | null;
|
|
432
|
+
internet_connection: string | null;
|
|
433
|
+
tv: string | null;
|
|
434
|
+
tv_connection: string | null;
|
|
435
|
+
dvd: boolean;
|
|
436
|
+
computer: boolean;
|
|
437
|
+
printer: boolean;
|
|
438
|
+
dishwasher: boolean;
|
|
439
|
+
oven: boolean;
|
|
440
|
+
microwave: boolean;
|
|
441
|
+
fridge: boolean;
|
|
442
|
+
freezer: boolean;
|
|
443
|
+
toaster: boolean;
|
|
444
|
+
kettle: boolean;
|
|
445
|
+
coffeemachine: boolean;
|
|
446
|
+
washingmachine: boolean;
|
|
447
|
+
dryer: boolean;
|
|
448
|
+
iron: boolean;
|
|
449
|
+
bathtub: boolean;
|
|
450
|
+
jacuzzi: boolean;
|
|
451
|
+
shower_regular: boolean;
|
|
452
|
+
shower_steam: boolean;
|
|
453
|
+
hairdryer: boolean;
|
|
454
|
+
swimmingpool: string | null;
|
|
455
|
+
sauna: string | null;
|
|
456
|
+
parking: string | null;
|
|
457
|
+
entresol: boolean;
|
|
458
|
+
wheelchair_friendly: boolean;
|
|
459
|
+
smoking_allowed: boolean;
|
|
460
|
+
pets_allowed: boolean;
|
|
461
|
+
supplies_coffee: boolean;
|
|
462
|
+
supplies_tea: boolean;
|
|
463
|
+
supplies_milk: boolean;
|
|
464
|
+
supplies_sugar: boolean;
|
|
465
|
+
supplies_dishwasher_tablets: boolean;
|
|
466
|
+
service_linen: boolean;
|
|
467
|
+
service_towels: boolean;
|
|
468
|
+
cleaning_costs: number | null;
|
|
469
|
+
deposit_costs: number | null;
|
|
470
|
+
min_rate: number | null;
|
|
471
|
+
minimal_nights: number | null;
|
|
472
|
+
maximal_nights: number | null;
|
|
473
|
+
check_in: string | null;
|
|
474
|
+
check_out: string | null;
|
|
475
|
+
provider_name: string | null;
|
|
476
|
+
created_at: string;
|
|
477
|
+
updated_at: string;
|
|
478
|
+
external_id?: number | undefined;
|
|
479
|
+
images?: {
|
|
480
|
+
id: number;
|
|
481
|
+
url: string;
|
|
482
|
+
thumb_url: string;
|
|
483
|
+
alt: string;
|
|
484
|
+
}[] | undefined;
|
|
485
|
+
}>;
|
|
486
|
+
declare const AvailableDay: z.ZodObject<{
|
|
487
|
+
available: z.ZodBoolean;
|
|
488
|
+
morning_available: z.ZodBoolean;
|
|
489
|
+
date: z.ZodString;
|
|
490
|
+
day: z.ZodNumber;
|
|
491
|
+
}, "strip", z.ZodTypeAny, {
|
|
492
|
+
date: string;
|
|
493
|
+
available: boolean;
|
|
494
|
+
morning_available: boolean;
|
|
495
|
+
day: number;
|
|
496
|
+
}, {
|
|
497
|
+
date: string;
|
|
498
|
+
available: boolean;
|
|
499
|
+
morning_available: boolean;
|
|
500
|
+
day: number;
|
|
501
|
+
}>;
|
|
502
|
+
declare const AvailabilitySchema: z.ZodObject<{
|
|
503
|
+
days: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
504
|
+
available: z.ZodBoolean;
|
|
505
|
+
morning_available: z.ZodBoolean;
|
|
506
|
+
date: z.ZodString;
|
|
507
|
+
day: z.ZodNumber;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
date: string;
|
|
510
|
+
available: boolean;
|
|
511
|
+
morning_available: boolean;
|
|
512
|
+
day: number;
|
|
513
|
+
}, {
|
|
514
|
+
date: string;
|
|
515
|
+
available: boolean;
|
|
516
|
+
morning_available: boolean;
|
|
517
|
+
day: number;
|
|
518
|
+
}>>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
days: Record<string, {
|
|
521
|
+
date: string;
|
|
522
|
+
available: boolean;
|
|
523
|
+
morning_available: boolean;
|
|
524
|
+
day: number;
|
|
525
|
+
}>;
|
|
526
|
+
}, {
|
|
527
|
+
days: Record<string, {
|
|
528
|
+
date: string;
|
|
529
|
+
available: boolean;
|
|
530
|
+
morning_available: boolean;
|
|
531
|
+
day: number;
|
|
532
|
+
}>;
|
|
533
|
+
}>;
|
|
534
|
+
declare const PropertySearchParamsSchema: z.ZodObject<{
|
|
535
|
+
arrival: z.ZodOptional<z.ZodString>;
|
|
536
|
+
departure: z.ZodOptional<z.ZodString>;
|
|
537
|
+
guests: z.ZodOptional<z.ZodNumber>;
|
|
538
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
539
|
+
segment: z.ZodOptional<z.ZodString>;
|
|
540
|
+
city: z.ZodOptional<z.ZodString>;
|
|
541
|
+
area: z.ZodOptional<z.ZodString>;
|
|
542
|
+
propertyType: z.ZodOptional<z.ZodString>;
|
|
543
|
+
bedrooms: z.ZodOptional<z.ZodNumber>;
|
|
544
|
+
bathrooms: z.ZodOptional<z.ZodNumber>;
|
|
545
|
+
maxPersons: z.ZodOptional<z.ZodNumber>;
|
|
546
|
+
elevator: z.ZodOptional<z.ZodBoolean>;
|
|
547
|
+
parking: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
balcony: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
+
}, "strip", z.ZodTypeAny, {
|
|
550
|
+
bedrooms?: number | undefined;
|
|
551
|
+
bathrooms?: number | undefined;
|
|
552
|
+
area?: string | undefined;
|
|
553
|
+
city?: string | undefined;
|
|
554
|
+
balcony?: boolean | undefined;
|
|
555
|
+
parking?: boolean | undefined;
|
|
556
|
+
arrival?: string | undefined;
|
|
557
|
+
departure?: string | undefined;
|
|
558
|
+
guests?: number | undefined;
|
|
559
|
+
destination?: string | undefined;
|
|
560
|
+
segment?: string | undefined;
|
|
561
|
+
propertyType?: string | undefined;
|
|
562
|
+
maxPersons?: number | undefined;
|
|
563
|
+
elevator?: boolean | undefined;
|
|
564
|
+
}, {
|
|
565
|
+
bedrooms?: number | undefined;
|
|
566
|
+
bathrooms?: number | undefined;
|
|
567
|
+
area?: string | undefined;
|
|
568
|
+
city?: string | undefined;
|
|
569
|
+
balcony?: boolean | undefined;
|
|
570
|
+
parking?: boolean | undefined;
|
|
571
|
+
arrival?: string | undefined;
|
|
572
|
+
departure?: string | undefined;
|
|
573
|
+
guests?: number | undefined;
|
|
574
|
+
destination?: string | undefined;
|
|
575
|
+
segment?: string | undefined;
|
|
576
|
+
propertyType?: string | undefined;
|
|
577
|
+
maxPersons?: number | undefined;
|
|
578
|
+
elevator?: boolean | undefined;
|
|
579
|
+
}>;
|
|
580
|
+
declare const PropertySearchResultSchema: z.ZodObject<{
|
|
581
|
+
data: z.ZodArray<z.ZodObject<{
|
|
582
|
+
id: z.ZodNumber;
|
|
583
|
+
external_id: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
name: z.ZodString;
|
|
585
|
+
slug: z.ZodString;
|
|
586
|
+
short_description: z.ZodNullable<z.ZodString>;
|
|
587
|
+
description: z.ZodString;
|
|
588
|
+
area_description: z.ZodNullable<z.ZodString>;
|
|
589
|
+
arrival_description: z.ZodNullable<z.ZodString>;
|
|
590
|
+
type: z.ZodNullable<z.ZodString>;
|
|
591
|
+
max_persons: z.ZodNullable<z.ZodNumber>;
|
|
592
|
+
bedrooms: z.ZodNullable<z.ZodNumber>;
|
|
593
|
+
bathrooms: z.ZodNullable<z.ZodNumber>;
|
|
594
|
+
toilets: z.ZodNullable<z.ZodNumber>;
|
|
595
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
596
|
+
floor: z.ZodNullable<z.ZodNumber>;
|
|
597
|
+
street: z.ZodNullable<z.ZodString>;
|
|
598
|
+
zipcode: z.ZodNullable<z.ZodString>;
|
|
599
|
+
area: z.ZodNullable<z.ZodString>;
|
|
600
|
+
city: z.ZodString;
|
|
601
|
+
country: z.ZodString;
|
|
602
|
+
latitude: z.ZodNumber;
|
|
603
|
+
longitude: z.ZodNumber;
|
|
604
|
+
single_bed: z.ZodNullable<z.ZodNumber>;
|
|
605
|
+
double_bed: z.ZodNullable<z.ZodNumber>;
|
|
606
|
+
single_sofa: z.ZodNullable<z.ZodNumber>;
|
|
607
|
+
double_sofa: z.ZodNullable<z.ZodNumber>;
|
|
608
|
+
single_bunk: z.ZodNullable<z.ZodNumber>;
|
|
609
|
+
balcony: z.ZodBoolean;
|
|
610
|
+
terrace: z.ZodBoolean;
|
|
611
|
+
view: z.ZodNullable<z.ZodString>;
|
|
612
|
+
airco: z.ZodBoolean;
|
|
613
|
+
fans: z.ZodBoolean;
|
|
614
|
+
heating: z.ZodBoolean;
|
|
615
|
+
internet: z.ZodNullable<z.ZodString>;
|
|
616
|
+
internet_connection: z.ZodNullable<z.ZodString>;
|
|
617
|
+
tv: z.ZodNullable<z.ZodString>;
|
|
618
|
+
tv_connection: z.ZodNullable<z.ZodString>;
|
|
619
|
+
dvd: z.ZodBoolean;
|
|
620
|
+
computer: z.ZodBoolean;
|
|
621
|
+
printer: z.ZodBoolean;
|
|
622
|
+
dishwasher: z.ZodBoolean;
|
|
623
|
+
oven: z.ZodBoolean;
|
|
624
|
+
microwave: z.ZodBoolean;
|
|
625
|
+
fridge: z.ZodBoolean;
|
|
626
|
+
freezer: z.ZodBoolean;
|
|
627
|
+
toaster: z.ZodBoolean;
|
|
628
|
+
kettle: z.ZodBoolean;
|
|
629
|
+
coffeemachine: z.ZodBoolean;
|
|
630
|
+
washingmachine: z.ZodBoolean;
|
|
631
|
+
dryer: z.ZodBoolean;
|
|
632
|
+
iron: z.ZodBoolean;
|
|
633
|
+
bathtub: z.ZodBoolean;
|
|
634
|
+
jacuzzi: z.ZodBoolean;
|
|
635
|
+
shower_regular: z.ZodBoolean;
|
|
636
|
+
shower_steam: z.ZodBoolean;
|
|
637
|
+
hairdryer: z.ZodBoolean;
|
|
638
|
+
swimmingpool: z.ZodNullable<z.ZodString>;
|
|
639
|
+
sauna: z.ZodNullable<z.ZodString>;
|
|
640
|
+
parking: z.ZodNullable<z.ZodString>;
|
|
641
|
+
entresol: z.ZodBoolean;
|
|
642
|
+
wheelchair_friendly: z.ZodBoolean;
|
|
643
|
+
smoking_allowed: z.ZodBoolean;
|
|
644
|
+
pets_allowed: z.ZodBoolean;
|
|
645
|
+
supplies_coffee: z.ZodBoolean;
|
|
646
|
+
supplies_tea: z.ZodBoolean;
|
|
647
|
+
supplies_milk: z.ZodBoolean;
|
|
648
|
+
supplies_sugar: z.ZodBoolean;
|
|
649
|
+
supplies_dishwasher_tablets: z.ZodBoolean;
|
|
650
|
+
service_linen: z.ZodBoolean;
|
|
651
|
+
service_towels: z.ZodBoolean;
|
|
652
|
+
cleaning_costs: z.ZodNullable<z.ZodNumber>;
|
|
653
|
+
deposit_costs: z.ZodNullable<z.ZodNumber>;
|
|
654
|
+
min_rate: z.ZodNullable<z.ZodNumber>;
|
|
655
|
+
minimal_nights: z.ZodNullable<z.ZodNumber>;
|
|
656
|
+
maximal_nights: z.ZodNullable<z.ZodNumber>;
|
|
657
|
+
check_in: z.ZodNullable<z.ZodString>;
|
|
658
|
+
check_out: z.ZodNullable<z.ZodString>;
|
|
659
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
660
|
+
id: z.ZodNumber;
|
|
661
|
+
url: z.ZodString;
|
|
662
|
+
thumb_url: z.ZodString;
|
|
663
|
+
alt: z.ZodString;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
|
+
id: number;
|
|
666
|
+
url: string;
|
|
667
|
+
thumb_url: string;
|
|
668
|
+
alt: string;
|
|
669
|
+
}, {
|
|
670
|
+
id: number;
|
|
671
|
+
url: string;
|
|
672
|
+
thumb_url: string;
|
|
673
|
+
alt: string;
|
|
674
|
+
}>, "many">>;
|
|
675
|
+
status: z.ZodNullable<z.ZodString>;
|
|
676
|
+
provider_name: z.ZodNullable<z.ZodString>;
|
|
677
|
+
created_at: z.ZodString;
|
|
678
|
+
updated_at: z.ZodString;
|
|
679
|
+
}, "strip", z.ZodTypeAny, {
|
|
680
|
+
type: string | null;
|
|
681
|
+
status: string | null;
|
|
682
|
+
id: number;
|
|
683
|
+
name: string;
|
|
684
|
+
slug: string;
|
|
685
|
+
short_description: string | null;
|
|
686
|
+
description: string;
|
|
687
|
+
area_description: string | null;
|
|
688
|
+
arrival_description: string | null;
|
|
689
|
+
max_persons: number | null;
|
|
690
|
+
bedrooms: number | null;
|
|
691
|
+
bathrooms: number | null;
|
|
692
|
+
toilets: number | null;
|
|
693
|
+
size: number | null;
|
|
694
|
+
floor: number | null;
|
|
695
|
+
street: string | null;
|
|
696
|
+
zipcode: string | null;
|
|
697
|
+
area: string | null;
|
|
698
|
+
city: string;
|
|
699
|
+
country: string;
|
|
700
|
+
latitude: number;
|
|
701
|
+
longitude: number;
|
|
702
|
+
single_bed: number | null;
|
|
703
|
+
double_bed: number | null;
|
|
704
|
+
single_sofa: number | null;
|
|
705
|
+
double_sofa: number | null;
|
|
706
|
+
single_bunk: number | null;
|
|
707
|
+
balcony: boolean;
|
|
708
|
+
terrace: boolean;
|
|
709
|
+
view: string | null;
|
|
710
|
+
airco: boolean;
|
|
711
|
+
fans: boolean;
|
|
712
|
+
heating: boolean;
|
|
713
|
+
internet: string | null;
|
|
714
|
+
internet_connection: string | null;
|
|
715
|
+
tv: string | null;
|
|
716
|
+
tv_connection: string | null;
|
|
717
|
+
dvd: boolean;
|
|
718
|
+
computer: boolean;
|
|
719
|
+
printer: boolean;
|
|
720
|
+
dishwasher: boolean;
|
|
721
|
+
oven: boolean;
|
|
722
|
+
microwave: boolean;
|
|
723
|
+
fridge: boolean;
|
|
724
|
+
freezer: boolean;
|
|
725
|
+
toaster: boolean;
|
|
726
|
+
kettle: boolean;
|
|
727
|
+
coffeemachine: boolean;
|
|
728
|
+
washingmachine: boolean;
|
|
729
|
+
dryer: boolean;
|
|
730
|
+
iron: boolean;
|
|
731
|
+
bathtub: boolean;
|
|
732
|
+
jacuzzi: boolean;
|
|
733
|
+
shower_regular: boolean;
|
|
734
|
+
shower_steam: boolean;
|
|
735
|
+
hairdryer: boolean;
|
|
736
|
+
swimmingpool: string | null;
|
|
737
|
+
sauna: string | null;
|
|
738
|
+
parking: string | null;
|
|
739
|
+
entresol: boolean;
|
|
740
|
+
wheelchair_friendly: boolean;
|
|
741
|
+
smoking_allowed: boolean;
|
|
742
|
+
pets_allowed: boolean;
|
|
743
|
+
supplies_coffee: boolean;
|
|
744
|
+
supplies_tea: boolean;
|
|
745
|
+
supplies_milk: boolean;
|
|
746
|
+
supplies_sugar: boolean;
|
|
747
|
+
supplies_dishwasher_tablets: boolean;
|
|
748
|
+
service_linen: boolean;
|
|
749
|
+
service_towels: boolean;
|
|
750
|
+
cleaning_costs: number | null;
|
|
751
|
+
deposit_costs: number | null;
|
|
752
|
+
min_rate: number | null;
|
|
753
|
+
minimal_nights: number | null;
|
|
754
|
+
maximal_nights: number | null;
|
|
755
|
+
check_in: string | null;
|
|
756
|
+
check_out: string | null;
|
|
757
|
+
provider_name: string | null;
|
|
758
|
+
created_at: string;
|
|
759
|
+
updated_at: string;
|
|
760
|
+
external_id?: number | undefined;
|
|
761
|
+
images?: {
|
|
762
|
+
id: number;
|
|
763
|
+
url: string;
|
|
764
|
+
thumb_url: string;
|
|
765
|
+
alt: string;
|
|
766
|
+
}[] | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
type: string | null;
|
|
769
|
+
status: string | null;
|
|
770
|
+
id: number;
|
|
771
|
+
name: string;
|
|
772
|
+
slug: string;
|
|
773
|
+
short_description: string | null;
|
|
774
|
+
description: string;
|
|
775
|
+
area_description: string | null;
|
|
776
|
+
arrival_description: string | null;
|
|
777
|
+
max_persons: number | null;
|
|
778
|
+
bedrooms: number | null;
|
|
779
|
+
bathrooms: number | null;
|
|
780
|
+
toilets: number | null;
|
|
781
|
+
size: number | null;
|
|
782
|
+
floor: number | null;
|
|
783
|
+
street: string | null;
|
|
784
|
+
zipcode: string | null;
|
|
785
|
+
area: string | null;
|
|
786
|
+
city: string;
|
|
787
|
+
country: string;
|
|
788
|
+
latitude: number;
|
|
789
|
+
longitude: number;
|
|
790
|
+
single_bed: number | null;
|
|
791
|
+
double_bed: number | null;
|
|
792
|
+
single_sofa: number | null;
|
|
793
|
+
double_sofa: number | null;
|
|
794
|
+
single_bunk: number | null;
|
|
795
|
+
balcony: boolean;
|
|
796
|
+
terrace: boolean;
|
|
797
|
+
view: string | null;
|
|
798
|
+
airco: boolean;
|
|
799
|
+
fans: boolean;
|
|
800
|
+
heating: boolean;
|
|
801
|
+
internet: string | null;
|
|
802
|
+
internet_connection: string | null;
|
|
803
|
+
tv: string | null;
|
|
804
|
+
tv_connection: string | null;
|
|
805
|
+
dvd: boolean;
|
|
806
|
+
computer: boolean;
|
|
807
|
+
printer: boolean;
|
|
808
|
+
dishwasher: boolean;
|
|
809
|
+
oven: boolean;
|
|
810
|
+
microwave: boolean;
|
|
811
|
+
fridge: boolean;
|
|
812
|
+
freezer: boolean;
|
|
813
|
+
toaster: boolean;
|
|
814
|
+
kettle: boolean;
|
|
815
|
+
coffeemachine: boolean;
|
|
816
|
+
washingmachine: boolean;
|
|
817
|
+
dryer: boolean;
|
|
818
|
+
iron: boolean;
|
|
819
|
+
bathtub: boolean;
|
|
820
|
+
jacuzzi: boolean;
|
|
821
|
+
shower_regular: boolean;
|
|
822
|
+
shower_steam: boolean;
|
|
823
|
+
hairdryer: boolean;
|
|
824
|
+
swimmingpool: string | null;
|
|
825
|
+
sauna: string | null;
|
|
826
|
+
parking: string | null;
|
|
827
|
+
entresol: boolean;
|
|
828
|
+
wheelchair_friendly: boolean;
|
|
829
|
+
smoking_allowed: boolean;
|
|
830
|
+
pets_allowed: boolean;
|
|
831
|
+
supplies_coffee: boolean;
|
|
832
|
+
supplies_tea: boolean;
|
|
833
|
+
supplies_milk: boolean;
|
|
834
|
+
supplies_sugar: boolean;
|
|
835
|
+
supplies_dishwasher_tablets: boolean;
|
|
836
|
+
service_linen: boolean;
|
|
837
|
+
service_towels: boolean;
|
|
838
|
+
cleaning_costs: number | null;
|
|
839
|
+
deposit_costs: number | null;
|
|
840
|
+
min_rate: number | null;
|
|
841
|
+
minimal_nights: number | null;
|
|
842
|
+
maximal_nights: number | null;
|
|
843
|
+
check_in: string | null;
|
|
844
|
+
check_out: string | null;
|
|
845
|
+
provider_name: string | null;
|
|
846
|
+
created_at: string;
|
|
847
|
+
updated_at: string;
|
|
848
|
+
external_id?: number | undefined;
|
|
849
|
+
images?: {
|
|
850
|
+
id: number;
|
|
851
|
+
url: string;
|
|
852
|
+
thumb_url: string;
|
|
853
|
+
alt: string;
|
|
854
|
+
}[] | undefined;
|
|
855
|
+
}>, "many">;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
data: {
|
|
858
|
+
type: string | null;
|
|
859
|
+
status: string | null;
|
|
860
|
+
id: number;
|
|
861
|
+
name: string;
|
|
862
|
+
slug: string;
|
|
863
|
+
short_description: string | null;
|
|
864
|
+
description: string;
|
|
865
|
+
area_description: string | null;
|
|
866
|
+
arrival_description: string | null;
|
|
867
|
+
max_persons: number | null;
|
|
868
|
+
bedrooms: number | null;
|
|
869
|
+
bathrooms: number | null;
|
|
870
|
+
toilets: number | null;
|
|
871
|
+
size: number | null;
|
|
872
|
+
floor: number | null;
|
|
873
|
+
street: string | null;
|
|
874
|
+
zipcode: string | null;
|
|
875
|
+
area: string | null;
|
|
876
|
+
city: string;
|
|
877
|
+
country: string;
|
|
878
|
+
latitude: number;
|
|
879
|
+
longitude: number;
|
|
880
|
+
single_bed: number | null;
|
|
881
|
+
double_bed: number | null;
|
|
882
|
+
single_sofa: number | null;
|
|
883
|
+
double_sofa: number | null;
|
|
884
|
+
single_bunk: number | null;
|
|
885
|
+
balcony: boolean;
|
|
886
|
+
terrace: boolean;
|
|
887
|
+
view: string | null;
|
|
888
|
+
airco: boolean;
|
|
889
|
+
fans: boolean;
|
|
890
|
+
heating: boolean;
|
|
891
|
+
internet: string | null;
|
|
892
|
+
internet_connection: string | null;
|
|
893
|
+
tv: string | null;
|
|
894
|
+
tv_connection: string | null;
|
|
895
|
+
dvd: boolean;
|
|
896
|
+
computer: boolean;
|
|
897
|
+
printer: boolean;
|
|
898
|
+
dishwasher: boolean;
|
|
899
|
+
oven: boolean;
|
|
900
|
+
microwave: boolean;
|
|
901
|
+
fridge: boolean;
|
|
902
|
+
freezer: boolean;
|
|
903
|
+
toaster: boolean;
|
|
904
|
+
kettle: boolean;
|
|
905
|
+
coffeemachine: boolean;
|
|
906
|
+
washingmachine: boolean;
|
|
907
|
+
dryer: boolean;
|
|
908
|
+
iron: boolean;
|
|
909
|
+
bathtub: boolean;
|
|
910
|
+
jacuzzi: boolean;
|
|
911
|
+
shower_regular: boolean;
|
|
912
|
+
shower_steam: boolean;
|
|
913
|
+
hairdryer: boolean;
|
|
914
|
+
swimmingpool: string | null;
|
|
915
|
+
sauna: string | null;
|
|
916
|
+
parking: string | null;
|
|
917
|
+
entresol: boolean;
|
|
918
|
+
wheelchair_friendly: boolean;
|
|
919
|
+
smoking_allowed: boolean;
|
|
920
|
+
pets_allowed: boolean;
|
|
921
|
+
supplies_coffee: boolean;
|
|
922
|
+
supplies_tea: boolean;
|
|
923
|
+
supplies_milk: boolean;
|
|
924
|
+
supplies_sugar: boolean;
|
|
925
|
+
supplies_dishwasher_tablets: boolean;
|
|
926
|
+
service_linen: boolean;
|
|
927
|
+
service_towels: boolean;
|
|
928
|
+
cleaning_costs: number | null;
|
|
929
|
+
deposit_costs: number | null;
|
|
930
|
+
min_rate: number | null;
|
|
931
|
+
minimal_nights: number | null;
|
|
932
|
+
maximal_nights: number | null;
|
|
933
|
+
check_in: string | null;
|
|
934
|
+
check_out: string | null;
|
|
935
|
+
provider_name: string | null;
|
|
936
|
+
created_at: string;
|
|
937
|
+
updated_at: string;
|
|
938
|
+
external_id?: number | undefined;
|
|
939
|
+
images?: {
|
|
940
|
+
id: number;
|
|
941
|
+
url: string;
|
|
942
|
+
thumb_url: string;
|
|
943
|
+
alt: string;
|
|
944
|
+
}[] | undefined;
|
|
945
|
+
}[];
|
|
946
|
+
}, {
|
|
947
|
+
data: {
|
|
948
|
+
type: string | null;
|
|
949
|
+
status: string | null;
|
|
950
|
+
id: number;
|
|
951
|
+
name: string;
|
|
952
|
+
slug: string;
|
|
953
|
+
short_description: string | null;
|
|
954
|
+
description: string;
|
|
955
|
+
area_description: string | null;
|
|
956
|
+
arrival_description: string | null;
|
|
957
|
+
max_persons: number | null;
|
|
958
|
+
bedrooms: number | null;
|
|
959
|
+
bathrooms: number | null;
|
|
960
|
+
toilets: number | null;
|
|
961
|
+
size: number | null;
|
|
962
|
+
floor: number | null;
|
|
963
|
+
street: string | null;
|
|
964
|
+
zipcode: string | null;
|
|
965
|
+
area: string | null;
|
|
966
|
+
city: string;
|
|
967
|
+
country: string;
|
|
968
|
+
latitude: number;
|
|
969
|
+
longitude: number;
|
|
970
|
+
single_bed: number | null;
|
|
971
|
+
double_bed: number | null;
|
|
972
|
+
single_sofa: number | null;
|
|
973
|
+
double_sofa: number | null;
|
|
974
|
+
single_bunk: number | null;
|
|
975
|
+
balcony: boolean;
|
|
976
|
+
terrace: boolean;
|
|
977
|
+
view: string | null;
|
|
978
|
+
airco: boolean;
|
|
979
|
+
fans: boolean;
|
|
980
|
+
heating: boolean;
|
|
981
|
+
internet: string | null;
|
|
982
|
+
internet_connection: string | null;
|
|
983
|
+
tv: string | null;
|
|
984
|
+
tv_connection: string | null;
|
|
985
|
+
dvd: boolean;
|
|
986
|
+
computer: boolean;
|
|
987
|
+
printer: boolean;
|
|
988
|
+
dishwasher: boolean;
|
|
989
|
+
oven: boolean;
|
|
990
|
+
microwave: boolean;
|
|
991
|
+
fridge: boolean;
|
|
992
|
+
freezer: boolean;
|
|
993
|
+
toaster: boolean;
|
|
994
|
+
kettle: boolean;
|
|
995
|
+
coffeemachine: boolean;
|
|
996
|
+
washingmachine: boolean;
|
|
997
|
+
dryer: boolean;
|
|
998
|
+
iron: boolean;
|
|
999
|
+
bathtub: boolean;
|
|
1000
|
+
jacuzzi: boolean;
|
|
1001
|
+
shower_regular: boolean;
|
|
1002
|
+
shower_steam: boolean;
|
|
1003
|
+
hairdryer: boolean;
|
|
1004
|
+
swimmingpool: string | null;
|
|
1005
|
+
sauna: string | null;
|
|
1006
|
+
parking: string | null;
|
|
1007
|
+
entresol: boolean;
|
|
1008
|
+
wheelchair_friendly: boolean;
|
|
1009
|
+
smoking_allowed: boolean;
|
|
1010
|
+
pets_allowed: boolean;
|
|
1011
|
+
supplies_coffee: boolean;
|
|
1012
|
+
supplies_tea: boolean;
|
|
1013
|
+
supplies_milk: boolean;
|
|
1014
|
+
supplies_sugar: boolean;
|
|
1015
|
+
supplies_dishwasher_tablets: boolean;
|
|
1016
|
+
service_linen: boolean;
|
|
1017
|
+
service_towels: boolean;
|
|
1018
|
+
cleaning_costs: number | null;
|
|
1019
|
+
deposit_costs: number | null;
|
|
1020
|
+
min_rate: number | null;
|
|
1021
|
+
minimal_nights: number | null;
|
|
1022
|
+
maximal_nights: number | null;
|
|
1023
|
+
check_in: string | null;
|
|
1024
|
+
check_out: string | null;
|
|
1025
|
+
provider_name: string | null;
|
|
1026
|
+
created_at: string;
|
|
1027
|
+
updated_at: string;
|
|
1028
|
+
external_id?: number | undefined;
|
|
1029
|
+
images?: {
|
|
1030
|
+
id: number;
|
|
1031
|
+
url: string;
|
|
1032
|
+
thumb_url: string;
|
|
1033
|
+
alt: string;
|
|
1034
|
+
}[] | undefined;
|
|
1035
|
+
}[];
|
|
1036
|
+
}>;
|
|
1037
|
+
declare const PropertyPageSettingsSchema: z.ZodObject<{
|
|
1038
|
+
routing: z.ZodObject<{
|
|
1039
|
+
base_url: z.ZodString;
|
|
1040
|
+
}, "strip", z.ZodTypeAny, {
|
|
1041
|
+
base_url: string;
|
|
1042
|
+
}, {
|
|
1043
|
+
base_url: string;
|
|
1044
|
+
}>;
|
|
1045
|
+
index: z.ZodObject<{
|
|
1046
|
+
seo: z.ZodObject<{
|
|
1047
|
+
title: z.ZodString;
|
|
1048
|
+
description: z.ZodString;
|
|
1049
|
+
openGraphTitle: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1051
|
+
}, "strip", z.ZodTypeAny, {
|
|
1052
|
+
description: string;
|
|
1053
|
+
title: string;
|
|
1054
|
+
tags?: string[] | undefined;
|
|
1055
|
+
openGraphTitle?: string | undefined;
|
|
1056
|
+
}, {
|
|
1057
|
+
description: string;
|
|
1058
|
+
title: string;
|
|
1059
|
+
tags?: string[] | undefined;
|
|
1060
|
+
openGraphTitle?: string | undefined;
|
|
1061
|
+
}>;
|
|
1062
|
+
}, "strip", z.ZodTypeAny, {
|
|
1063
|
+
seo: {
|
|
1064
|
+
description: string;
|
|
1065
|
+
title: string;
|
|
1066
|
+
tags?: string[] | undefined;
|
|
1067
|
+
openGraphTitle?: string | undefined;
|
|
1068
|
+
};
|
|
1069
|
+
}, {
|
|
1070
|
+
seo: {
|
|
1071
|
+
description: string;
|
|
1072
|
+
title: string;
|
|
1073
|
+
tags?: string[] | undefined;
|
|
1074
|
+
openGraphTitle?: string | undefined;
|
|
1075
|
+
};
|
|
1076
|
+
}>;
|
|
1077
|
+
show: z.ZodOptional<z.ZodObject<{
|
|
1078
|
+
hero: z.ZodOptional<z.ZodObject<{
|
|
1079
|
+
provider: z.ZodOptional<z.ZodBoolean>;
|
|
1080
|
+
address: z.ZodOptional<z.ZodBoolean>;
|
|
1081
|
+
}, "strip", z.ZodTypeAny, {
|
|
1082
|
+
address?: boolean | undefined;
|
|
1083
|
+
provider?: boolean | undefined;
|
|
1084
|
+
}, {
|
|
1085
|
+
address?: boolean | undefined;
|
|
1086
|
+
provider?: boolean | undefined;
|
|
1087
|
+
}>>;
|
|
1088
|
+
cancellation_policy: z.ZodOptional<z.ZodObject<{
|
|
1089
|
+
description: z.ZodString;
|
|
1090
|
+
}, "strip", z.ZodTypeAny, {
|
|
1091
|
+
description: string;
|
|
1092
|
+
}, {
|
|
1093
|
+
description: string;
|
|
1094
|
+
}>>;
|
|
1095
|
+
related_properties: z.ZodOptional<z.ZodObject<{
|
|
1096
|
+
title: z.ZodString;
|
|
1097
|
+
}, "strip", z.ZodTypeAny, {
|
|
1098
|
+
title: string;
|
|
1099
|
+
}, {
|
|
1100
|
+
title: string;
|
|
1101
|
+
}>>;
|
|
1102
|
+
}, "strip", z.ZodTypeAny, {
|
|
1103
|
+
hero?: {
|
|
1104
|
+
address?: boolean | undefined;
|
|
1105
|
+
provider?: boolean | undefined;
|
|
1106
|
+
} | undefined;
|
|
1107
|
+
cancellation_policy?: {
|
|
1108
|
+
description: string;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
related_properties?: {
|
|
1111
|
+
title: string;
|
|
1112
|
+
} | undefined;
|
|
1113
|
+
}, {
|
|
1114
|
+
hero?: {
|
|
1115
|
+
address?: boolean | undefined;
|
|
1116
|
+
provider?: boolean | undefined;
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
cancellation_policy?: {
|
|
1119
|
+
description: string;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
related_properties?: {
|
|
1122
|
+
title: string;
|
|
1123
|
+
} | undefined;
|
|
1124
|
+
}>>;
|
|
1125
|
+
}, "strip", z.ZodTypeAny, {
|
|
1126
|
+
routing: {
|
|
1127
|
+
base_url: string;
|
|
1128
|
+
};
|
|
1129
|
+
index: {
|
|
1130
|
+
seo: {
|
|
1131
|
+
description: string;
|
|
1132
|
+
title: string;
|
|
1133
|
+
tags?: string[] | undefined;
|
|
1134
|
+
openGraphTitle?: string | undefined;
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
show?: {
|
|
1138
|
+
hero?: {
|
|
1139
|
+
address?: boolean | undefined;
|
|
1140
|
+
provider?: boolean | undefined;
|
|
1141
|
+
} | undefined;
|
|
1142
|
+
cancellation_policy?: {
|
|
1143
|
+
description: string;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
related_properties?: {
|
|
1146
|
+
title: string;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
}, {
|
|
1150
|
+
routing: {
|
|
1151
|
+
base_url: string;
|
|
1152
|
+
};
|
|
1153
|
+
index: {
|
|
1154
|
+
seo: {
|
|
1155
|
+
description: string;
|
|
1156
|
+
title: string;
|
|
1157
|
+
tags?: string[] | undefined;
|
|
1158
|
+
openGraphTitle?: string | undefined;
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
show?: {
|
|
1162
|
+
hero?: {
|
|
1163
|
+
address?: boolean | undefined;
|
|
1164
|
+
provider?: boolean | undefined;
|
|
1165
|
+
} | undefined;
|
|
1166
|
+
cancellation_policy?: {
|
|
1167
|
+
description: string;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
related_properties?: {
|
|
1170
|
+
title: string;
|
|
1171
|
+
} | undefined;
|
|
1172
|
+
} | undefined;
|
|
1173
|
+
}>;
|
|
1174
|
+
type PropertyImage = z.infer<typeof PropertyImageSchema>;
|
|
1175
|
+
type Property = z.infer<typeof PropertySchema>;
|
|
1176
|
+
type Availability = z.infer<typeof AvailabilitySchema>;
|
|
1177
|
+
type PropertyPageSettings = z.infer<typeof PropertyPageSettingsSchema>;
|
|
1178
|
+
type PropertySearchParams = z.infer<typeof PropertySearchParamsSchema>;
|
|
1179
|
+
type PropertySearchResult = z.infer<typeof PropertySearchResultSchema>;
|
|
1180
|
+
|
|
1181
|
+
declare const PageSchema: z.ZodObject<{
|
|
1182
|
+
id: z.ZodString;
|
|
1183
|
+
slug: z.ZodString;
|
|
1184
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1185
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1186
|
+
content: z.ZodNullable<z.ZodString>;
|
|
1187
|
+
sections: z.ZodArray<z.ZodAny, "many">;
|
|
1188
|
+
seo: z.ZodObject<{
|
|
1189
|
+
title: z.ZodString;
|
|
1190
|
+
description: z.ZodString;
|
|
1191
|
+
image: z.ZodNullable<z.ZodString>;
|
|
1192
|
+
}, "strip", z.ZodTypeAny, {
|
|
1193
|
+
description: string;
|
|
1194
|
+
title: string;
|
|
1195
|
+
image: string | null;
|
|
1196
|
+
}, {
|
|
1197
|
+
description: string;
|
|
1198
|
+
title: string;
|
|
1199
|
+
image: string | null;
|
|
1200
|
+
}>;
|
|
1201
|
+
route_name: z.ZodString;
|
|
1202
|
+
}, "strip", z.ZodTypeAny, {
|
|
1203
|
+
id: string;
|
|
1204
|
+
slug: string;
|
|
1205
|
+
description: string | null;
|
|
1206
|
+
title: string | null;
|
|
1207
|
+
content: string | null;
|
|
1208
|
+
sections: any[];
|
|
1209
|
+
seo: {
|
|
1210
|
+
description: string;
|
|
1211
|
+
title: string;
|
|
1212
|
+
image: string | null;
|
|
1213
|
+
};
|
|
1214
|
+
route_name: string;
|
|
1215
|
+
}, {
|
|
1216
|
+
id: string;
|
|
1217
|
+
slug: string;
|
|
1218
|
+
description: string | null;
|
|
1219
|
+
title: string | null;
|
|
1220
|
+
content: string | null;
|
|
1221
|
+
sections: any[];
|
|
1222
|
+
seo: {
|
|
1223
|
+
description: string;
|
|
1224
|
+
title: string;
|
|
1225
|
+
image: string | null;
|
|
1226
|
+
};
|
|
1227
|
+
route_name: string;
|
|
1228
|
+
}>;
|
|
1229
|
+
declare const PostSchema: z.ZodObject<{
|
|
1230
|
+
id: z.ZodString;
|
|
1231
|
+
slug: z.ZodString;
|
|
1232
|
+
title: z.ZodString;
|
|
1233
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1234
|
+
content: z.ZodNullable<z.ZodString>;
|
|
1235
|
+
excerpt: z.ZodNullable<z.ZodString>;
|
|
1236
|
+
author: z.ZodNullable<z.ZodString>;
|
|
1237
|
+
date: z.ZodString;
|
|
1238
|
+
image: z.ZodNullable<z.ZodString>;
|
|
1239
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
1240
|
+
reading_time: z.ZodNullable<z.ZodString>;
|
|
1241
|
+
sections: z.ZodArray<z.ZodAny, "many">;
|
|
1242
|
+
seo: z.ZodObject<{
|
|
1243
|
+
title: z.ZodString;
|
|
1244
|
+
description: z.ZodString;
|
|
1245
|
+
image: z.ZodNullable<z.ZodString>;
|
|
1246
|
+
}, "strip", z.ZodTypeAny, {
|
|
1247
|
+
description: string;
|
|
1248
|
+
title: string;
|
|
1249
|
+
image: string | null;
|
|
1250
|
+
}, {
|
|
1251
|
+
description: string;
|
|
1252
|
+
title: string;
|
|
1253
|
+
image: string | null;
|
|
1254
|
+
}>;
|
|
1255
|
+
route_name: z.ZodString;
|
|
1256
|
+
}, "strip", z.ZodTypeAny, {
|
|
1257
|
+
id: string;
|
|
1258
|
+
slug: string;
|
|
1259
|
+
description: string | null;
|
|
1260
|
+
date: string;
|
|
1261
|
+
title: string;
|
|
1262
|
+
content: string | null;
|
|
1263
|
+
sections: any[];
|
|
1264
|
+
seo: {
|
|
1265
|
+
description: string;
|
|
1266
|
+
title: string;
|
|
1267
|
+
image: string | null;
|
|
1268
|
+
};
|
|
1269
|
+
image: string | null;
|
|
1270
|
+
route_name: string;
|
|
1271
|
+
excerpt: string | null;
|
|
1272
|
+
author: string | null;
|
|
1273
|
+
tags: string[];
|
|
1274
|
+
reading_time: string | null;
|
|
1275
|
+
}, {
|
|
1276
|
+
id: string;
|
|
1277
|
+
slug: string;
|
|
1278
|
+
description: string | null;
|
|
1279
|
+
date: string;
|
|
1280
|
+
title: string;
|
|
1281
|
+
content: string | null;
|
|
1282
|
+
sections: any[];
|
|
1283
|
+
seo: {
|
|
1284
|
+
description: string;
|
|
1285
|
+
title: string;
|
|
1286
|
+
image: string | null;
|
|
1287
|
+
};
|
|
1288
|
+
image: string | null;
|
|
1289
|
+
route_name: string;
|
|
1290
|
+
excerpt: string | null;
|
|
1291
|
+
author: string | null;
|
|
1292
|
+
tags: string[];
|
|
1293
|
+
reading_time: string | null;
|
|
1294
|
+
}>;
|
|
1295
|
+
declare const CategorySchema: z.ZodObject<{
|
|
1296
|
+
slug: z.ZodString;
|
|
1297
|
+
name: z.ZodString;
|
|
1298
|
+
title: z.ZodString;
|
|
1299
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1300
|
+
content: z.ZodNullable<z.ZodString>;
|
|
1301
|
+
segments: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNumber]>>;
|
|
1302
|
+
}, "strip", z.ZodTypeAny, {
|
|
1303
|
+
name: string;
|
|
1304
|
+
slug: string;
|
|
1305
|
+
description: string | null;
|
|
1306
|
+
title: string;
|
|
1307
|
+
content: string | null;
|
|
1308
|
+
segments?: number | string[] | undefined;
|
|
1309
|
+
}, {
|
|
1310
|
+
name: string;
|
|
1311
|
+
slug: string;
|
|
1312
|
+
description: string | null;
|
|
1313
|
+
title: string;
|
|
1314
|
+
content: string | null;
|
|
1315
|
+
segments?: number | string[] | undefined;
|
|
1316
|
+
}>;
|
|
1317
|
+
declare const CategorySegmentSchema: z.ZodObject<{
|
|
1318
|
+
name: z.ZodString;
|
|
1319
|
+
slug: z.ZodString;
|
|
1320
|
+
title: z.ZodString;
|
|
1321
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1322
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1323
|
+
sections: z.ZodArray<z.ZodAny, "many">;
|
|
1324
|
+
content: z.ZodNullable<z.ZodString>;
|
|
1325
|
+
image: z.ZodString;
|
|
1326
|
+
}, "strip", z.ZodTypeAny, {
|
|
1327
|
+
name: string;
|
|
1328
|
+
slug: string;
|
|
1329
|
+
description: string | null;
|
|
1330
|
+
title: string;
|
|
1331
|
+
content: string | null;
|
|
1332
|
+
sections: any[];
|
|
1333
|
+
image: string;
|
|
1334
|
+
tags?: string[] | undefined;
|
|
1335
|
+
}, {
|
|
1336
|
+
name: string;
|
|
1337
|
+
slug: string;
|
|
1338
|
+
description: string | null;
|
|
1339
|
+
title: string;
|
|
1340
|
+
content: string | null;
|
|
1341
|
+
sections: any[];
|
|
1342
|
+
image: string;
|
|
1343
|
+
tags?: string[] | undefined;
|
|
1344
|
+
}>;
|
|
1345
|
+
type Page = z.infer<typeof PageSchema>;
|
|
1346
|
+
type Post = z.infer<typeof PostSchema>;
|
|
1347
|
+
type Category = z.infer<typeof CategorySchema>;
|
|
1348
|
+
type CategorySegment = z.infer<typeof CategorySegmentSchema>;
|
|
1349
|
+
|
|
1350
|
+
declare const MainSettingsSchema: z.ZodObject<{
|
|
1351
|
+
site: z.ZodObject<{
|
|
1352
|
+
name: z.ZodString;
|
|
1353
|
+
domain: z.ZodString;
|
|
1354
|
+
locale: z.ZodString;
|
|
1355
|
+
}, "strip", z.ZodTypeAny, {
|
|
1356
|
+
name: string;
|
|
1357
|
+
domain: string;
|
|
1358
|
+
locale: string;
|
|
1359
|
+
}, {
|
|
1360
|
+
name: string;
|
|
1361
|
+
domain: string;
|
|
1362
|
+
locale: string;
|
|
1363
|
+
}>;
|
|
1364
|
+
contact: z.ZodObject<{
|
|
1365
|
+
email: z.ZodString;
|
|
1366
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
}, "strip", z.ZodTypeAny, {
|
|
1368
|
+
email: string;
|
|
1369
|
+
phone?: string | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
email: string;
|
|
1372
|
+
phone?: string | undefined;
|
|
1373
|
+
}>;
|
|
1374
|
+
social: z.ZodOptional<z.ZodObject<{
|
|
1375
|
+
facebook: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
instagram: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
}, "strip", z.ZodTypeAny, {
|
|
1378
|
+
facebook?: string | undefined;
|
|
1379
|
+
instagram?: string | undefined;
|
|
1380
|
+
}, {
|
|
1381
|
+
facebook?: string | undefined;
|
|
1382
|
+
instagram?: string | undefined;
|
|
1383
|
+
}>>;
|
|
1384
|
+
mail: z.ZodOptional<z.ZodObject<{
|
|
1385
|
+
from: z.ZodObject<{
|
|
1386
|
+
address: z.ZodString;
|
|
1387
|
+
name: z.ZodString;
|
|
1388
|
+
}, "strip", z.ZodTypeAny, {
|
|
1389
|
+
name: string;
|
|
1390
|
+
address: string;
|
|
1391
|
+
}, {
|
|
1392
|
+
name: string;
|
|
1393
|
+
address: string;
|
|
1394
|
+
}>;
|
|
1395
|
+
contact_form_to: z.ZodString;
|
|
1396
|
+
}, "strip", z.ZodTypeAny, {
|
|
1397
|
+
from: {
|
|
1398
|
+
name: string;
|
|
1399
|
+
address: string;
|
|
1400
|
+
};
|
|
1401
|
+
contact_form_to: string;
|
|
1402
|
+
}, {
|
|
1403
|
+
from: {
|
|
1404
|
+
name: string;
|
|
1405
|
+
address: string;
|
|
1406
|
+
};
|
|
1407
|
+
contact_form_to: string;
|
|
1408
|
+
}>>;
|
|
1409
|
+
pms: z.ZodOptional<z.ZodObject<{
|
|
1410
|
+
property_providers: z.ZodArray<z.ZodObject<{
|
|
1411
|
+
name: z.ZodString;
|
|
1412
|
+
system: z.ZodString;
|
|
1413
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
1415
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
1416
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1417
|
+
}, "strip", z.ZodTypeAny, {
|
|
1418
|
+
name: string;
|
|
1419
|
+
system: string;
|
|
1420
|
+
enabled?: boolean | undefined;
|
|
1421
|
+
api_key?: string | undefined;
|
|
1422
|
+
base_url?: string | undefined;
|
|
1423
|
+
discount?: number | undefined;
|
|
1424
|
+
}, {
|
|
1425
|
+
name: string;
|
|
1426
|
+
system: string;
|
|
1427
|
+
enabled?: boolean | undefined;
|
|
1428
|
+
api_key?: string | undefined;
|
|
1429
|
+
base_url?: string | undefined;
|
|
1430
|
+
discount?: number | undefined;
|
|
1431
|
+
}>, "many">;
|
|
1432
|
+
}, "strip", z.ZodTypeAny, {
|
|
1433
|
+
property_providers: {
|
|
1434
|
+
name: string;
|
|
1435
|
+
system: string;
|
|
1436
|
+
enabled?: boolean | undefined;
|
|
1437
|
+
api_key?: string | undefined;
|
|
1438
|
+
base_url?: string | undefined;
|
|
1439
|
+
discount?: number | undefined;
|
|
1440
|
+
}[];
|
|
1441
|
+
}, {
|
|
1442
|
+
property_providers: {
|
|
1443
|
+
name: string;
|
|
1444
|
+
system: string;
|
|
1445
|
+
enabled?: boolean | undefined;
|
|
1446
|
+
api_key?: string | undefined;
|
|
1447
|
+
base_url?: string | undefined;
|
|
1448
|
+
discount?: number | undefined;
|
|
1449
|
+
}[];
|
|
1450
|
+
}>>;
|
|
1451
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
1452
|
+
vat: z.ZodNumber;
|
|
1453
|
+
tourist_tax: z.ZodObject<{
|
|
1454
|
+
type: z.ZodString;
|
|
1455
|
+
value: z.ZodNumber;
|
|
1456
|
+
}, "strip", z.ZodTypeAny, {
|
|
1457
|
+
value: number;
|
|
1458
|
+
type: string;
|
|
1459
|
+
}, {
|
|
1460
|
+
value: number;
|
|
1461
|
+
type: string;
|
|
1462
|
+
}>;
|
|
1463
|
+
}, "strip", z.ZodTypeAny, {
|
|
1464
|
+
vat: number;
|
|
1465
|
+
tourist_tax: {
|
|
1466
|
+
value: number;
|
|
1467
|
+
type: string;
|
|
1468
|
+
};
|
|
1469
|
+
}, {
|
|
1470
|
+
vat: number;
|
|
1471
|
+
tourist_tax: {
|
|
1472
|
+
value: number;
|
|
1473
|
+
type: string;
|
|
1474
|
+
};
|
|
1475
|
+
}>>;
|
|
1476
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
1477
|
+
}, "strip", z.ZodTypeAny, {
|
|
1478
|
+
site: {
|
|
1479
|
+
name: string;
|
|
1480
|
+
domain: string;
|
|
1481
|
+
locale: string;
|
|
1482
|
+
};
|
|
1483
|
+
contact: {
|
|
1484
|
+
email: string;
|
|
1485
|
+
phone?: string | undefined;
|
|
1486
|
+
};
|
|
1487
|
+
social?: {
|
|
1488
|
+
facebook?: string | undefined;
|
|
1489
|
+
instagram?: string | undefined;
|
|
1490
|
+
} | undefined;
|
|
1491
|
+
mail?: {
|
|
1492
|
+
from: {
|
|
1493
|
+
name: string;
|
|
1494
|
+
address: string;
|
|
1495
|
+
};
|
|
1496
|
+
contact_form_to: string;
|
|
1497
|
+
} | undefined;
|
|
1498
|
+
discount?: number | undefined;
|
|
1499
|
+
pms?: {
|
|
1500
|
+
property_providers: {
|
|
1501
|
+
name: string;
|
|
1502
|
+
system: string;
|
|
1503
|
+
enabled?: boolean | undefined;
|
|
1504
|
+
api_key?: string | undefined;
|
|
1505
|
+
base_url?: string | undefined;
|
|
1506
|
+
discount?: number | undefined;
|
|
1507
|
+
}[];
|
|
1508
|
+
} | undefined;
|
|
1509
|
+
pricing?: {
|
|
1510
|
+
vat: number;
|
|
1511
|
+
tourist_tax: {
|
|
1512
|
+
value: number;
|
|
1513
|
+
type: string;
|
|
1514
|
+
};
|
|
1515
|
+
} | undefined;
|
|
1516
|
+
}, {
|
|
1517
|
+
site: {
|
|
1518
|
+
name: string;
|
|
1519
|
+
domain: string;
|
|
1520
|
+
locale: string;
|
|
1521
|
+
};
|
|
1522
|
+
contact: {
|
|
1523
|
+
email: string;
|
|
1524
|
+
phone?: string | undefined;
|
|
1525
|
+
};
|
|
1526
|
+
social?: {
|
|
1527
|
+
facebook?: string | undefined;
|
|
1528
|
+
instagram?: string | undefined;
|
|
1529
|
+
} | undefined;
|
|
1530
|
+
mail?: {
|
|
1531
|
+
from: {
|
|
1532
|
+
name: string;
|
|
1533
|
+
address: string;
|
|
1534
|
+
};
|
|
1535
|
+
contact_form_to: string;
|
|
1536
|
+
} | undefined;
|
|
1537
|
+
discount?: number | undefined;
|
|
1538
|
+
pms?: {
|
|
1539
|
+
property_providers: {
|
|
1540
|
+
name: string;
|
|
1541
|
+
system: string;
|
|
1542
|
+
enabled?: boolean | undefined;
|
|
1543
|
+
api_key?: string | undefined;
|
|
1544
|
+
base_url?: string | undefined;
|
|
1545
|
+
discount?: number | undefined;
|
|
1546
|
+
}[];
|
|
1547
|
+
} | undefined;
|
|
1548
|
+
pricing?: {
|
|
1549
|
+
vat: number;
|
|
1550
|
+
tourist_tax: {
|
|
1551
|
+
value: number;
|
|
1552
|
+
type: string;
|
|
1553
|
+
};
|
|
1554
|
+
} | undefined;
|
|
1555
|
+
}>;
|
|
1556
|
+
declare const ThemeSettingsSchema: z.ZodObject<{
|
|
1557
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
path: z.ZodString;
|
|
1559
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1560
|
+
}, "strip", z.ZodTypeAny, {
|
|
1561
|
+
path: string;
|
|
1562
|
+
height?: number | undefined;
|
|
1563
|
+
}, {
|
|
1564
|
+
path: string;
|
|
1565
|
+
height?: number | undefined;
|
|
1566
|
+
}>>;
|
|
1567
|
+
favicon_path: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
colors: z.ZodObject<{
|
|
1569
|
+
primary: z.ZodString;
|
|
1570
|
+
secondary: z.ZodString;
|
|
1571
|
+
}, "strip", z.ZodTypeAny, {
|
|
1572
|
+
primary: string;
|
|
1573
|
+
secondary: string;
|
|
1574
|
+
}, {
|
|
1575
|
+
primary: string;
|
|
1576
|
+
secondary: string;
|
|
1577
|
+
}>;
|
|
1578
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
1579
|
+
homepage_style: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
navigation: z.ZodOptional<z.ZodObject<{
|
|
1581
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
items: z.ZodArray<z.ZodAny, "many">;
|
|
1583
|
+
buttons: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
1584
|
+
}, "strip", z.ZodTypeAny, {
|
|
1585
|
+
items: any[];
|
|
1586
|
+
variant?: string | undefined;
|
|
1587
|
+
buttons?: any[] | undefined;
|
|
1588
|
+
}, {
|
|
1589
|
+
items: any[];
|
|
1590
|
+
variant?: string | undefined;
|
|
1591
|
+
buttons?: any[] | undefined;
|
|
1592
|
+
}>>;
|
|
1593
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
1594
|
+
blog_title: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
contact_title: z.ZodOptional<z.ZodString>;
|
|
1596
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
1597
|
+
}, "strip", z.ZodTypeAny, {
|
|
1598
|
+
blog_title?: string | undefined;
|
|
1599
|
+
contact_title?: string | undefined;
|
|
1600
|
+
categories?: any[] | undefined;
|
|
1601
|
+
}, {
|
|
1602
|
+
blog_title?: string | undefined;
|
|
1603
|
+
contact_title?: string | undefined;
|
|
1604
|
+
categories?: any[] | undefined;
|
|
1605
|
+
}>>;
|
|
1606
|
+
}, "strip", z.ZodTypeAny, {
|
|
1607
|
+
homepage_style?: string | undefined;
|
|
1608
|
+
navigation?: {
|
|
1609
|
+
items: any[];
|
|
1610
|
+
variant?: string | undefined;
|
|
1611
|
+
buttons?: any[] | undefined;
|
|
1612
|
+
} | undefined;
|
|
1613
|
+
footer?: {
|
|
1614
|
+
blog_title?: string | undefined;
|
|
1615
|
+
contact_title?: string | undefined;
|
|
1616
|
+
categories?: any[] | undefined;
|
|
1617
|
+
} | undefined;
|
|
1618
|
+
}, {
|
|
1619
|
+
homepage_style?: string | undefined;
|
|
1620
|
+
navigation?: {
|
|
1621
|
+
items: any[];
|
|
1622
|
+
variant?: string | undefined;
|
|
1623
|
+
buttons?: any[] | undefined;
|
|
1624
|
+
} | undefined;
|
|
1625
|
+
footer?: {
|
|
1626
|
+
blog_title?: string | undefined;
|
|
1627
|
+
contact_title?: string | undefined;
|
|
1628
|
+
categories?: any[] | undefined;
|
|
1629
|
+
} | undefined;
|
|
1630
|
+
}>>;
|
|
1631
|
+
}, "strip", z.ZodTypeAny, {
|
|
1632
|
+
colors: {
|
|
1633
|
+
primary: string;
|
|
1634
|
+
secondary: string;
|
|
1635
|
+
};
|
|
1636
|
+
logo?: {
|
|
1637
|
+
path: string;
|
|
1638
|
+
height?: number | undefined;
|
|
1639
|
+
} | undefined;
|
|
1640
|
+
favicon_path?: string | undefined;
|
|
1641
|
+
layout?: {
|
|
1642
|
+
homepage_style?: string | undefined;
|
|
1643
|
+
navigation?: {
|
|
1644
|
+
items: any[];
|
|
1645
|
+
variant?: string | undefined;
|
|
1646
|
+
buttons?: any[] | undefined;
|
|
1647
|
+
} | undefined;
|
|
1648
|
+
footer?: {
|
|
1649
|
+
blog_title?: string | undefined;
|
|
1650
|
+
contact_title?: string | undefined;
|
|
1651
|
+
categories?: any[] | undefined;
|
|
1652
|
+
} | undefined;
|
|
1653
|
+
} | undefined;
|
|
1654
|
+
}, {
|
|
1655
|
+
colors: {
|
|
1656
|
+
primary: string;
|
|
1657
|
+
secondary: string;
|
|
1658
|
+
};
|
|
1659
|
+
logo?: {
|
|
1660
|
+
path: string;
|
|
1661
|
+
height?: number | undefined;
|
|
1662
|
+
} | undefined;
|
|
1663
|
+
favicon_path?: string | undefined;
|
|
1664
|
+
layout?: {
|
|
1665
|
+
homepage_style?: string | undefined;
|
|
1666
|
+
navigation?: {
|
|
1667
|
+
items: any[];
|
|
1668
|
+
variant?: string | undefined;
|
|
1669
|
+
buttons?: any[] | undefined;
|
|
1670
|
+
} | undefined;
|
|
1671
|
+
footer?: {
|
|
1672
|
+
blog_title?: string | undefined;
|
|
1673
|
+
contact_title?: string | undefined;
|
|
1674
|
+
categories?: any[] | undefined;
|
|
1675
|
+
} | undefined;
|
|
1676
|
+
} | undefined;
|
|
1677
|
+
}>;
|
|
1678
|
+
declare const PropertySettingsSchema: z.ZodObject<{
|
|
1679
|
+
routing: z.ZodObject<{
|
|
1680
|
+
base_url: z.ZodString;
|
|
1681
|
+
}, "strip", z.ZodTypeAny, {
|
|
1682
|
+
base_url: string;
|
|
1683
|
+
}, {
|
|
1684
|
+
base_url: string;
|
|
1685
|
+
}>;
|
|
1686
|
+
seo: z.ZodOptional<z.ZodObject<{
|
|
1687
|
+
title: z.ZodString;
|
|
1688
|
+
description: z.ZodString;
|
|
1689
|
+
openGraphTitle: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1691
|
+
}, "strip", z.ZodTypeAny, {
|
|
1692
|
+
description: string;
|
|
1693
|
+
title: string;
|
|
1694
|
+
tags?: string[] | undefined;
|
|
1695
|
+
openGraphTitle?: string | undefined;
|
|
1696
|
+
}, {
|
|
1697
|
+
description: string;
|
|
1698
|
+
title: string;
|
|
1699
|
+
tags?: string[] | undefined;
|
|
1700
|
+
openGraphTitle?: string | undefined;
|
|
1701
|
+
}>>;
|
|
1702
|
+
index: z.ZodObject<{
|
|
1703
|
+
seo: z.ZodObject<{
|
|
1704
|
+
title: z.ZodString;
|
|
1705
|
+
description: z.ZodString;
|
|
1706
|
+
openGraphTitle: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1708
|
+
}, "strip", z.ZodTypeAny, {
|
|
1709
|
+
description: string;
|
|
1710
|
+
title: string;
|
|
1711
|
+
tags?: string[] | undefined;
|
|
1712
|
+
openGraphTitle?: string | undefined;
|
|
1713
|
+
}, {
|
|
1714
|
+
description: string;
|
|
1715
|
+
title: string;
|
|
1716
|
+
tags?: string[] | undefined;
|
|
1717
|
+
openGraphTitle?: string | undefined;
|
|
1718
|
+
}>;
|
|
1719
|
+
}, "strip", z.ZodTypeAny, {
|
|
1720
|
+
seo: {
|
|
1721
|
+
description: string;
|
|
1722
|
+
title: string;
|
|
1723
|
+
tags?: string[] | undefined;
|
|
1724
|
+
openGraphTitle?: string | undefined;
|
|
1725
|
+
};
|
|
1726
|
+
}, {
|
|
1727
|
+
seo: {
|
|
1728
|
+
description: string;
|
|
1729
|
+
title: string;
|
|
1730
|
+
tags?: string[] | undefined;
|
|
1731
|
+
openGraphTitle?: string | undefined;
|
|
1732
|
+
};
|
|
1733
|
+
}>;
|
|
1734
|
+
show: z.ZodOptional<z.ZodObject<{
|
|
1735
|
+
hero: z.ZodOptional<z.ZodObject<{
|
|
1736
|
+
provider: z.ZodOptional<z.ZodBoolean>;
|
|
1737
|
+
address: z.ZodOptional<z.ZodBoolean>;
|
|
1738
|
+
}, "strip", z.ZodTypeAny, {
|
|
1739
|
+
address?: boolean | undefined;
|
|
1740
|
+
provider?: boolean | undefined;
|
|
1741
|
+
}, {
|
|
1742
|
+
address?: boolean | undefined;
|
|
1743
|
+
provider?: boolean | undefined;
|
|
1744
|
+
}>>;
|
|
1745
|
+
cancellation_policy: z.ZodOptional<z.ZodObject<{
|
|
1746
|
+
description: z.ZodString;
|
|
1747
|
+
}, "strip", z.ZodTypeAny, {
|
|
1748
|
+
description: string;
|
|
1749
|
+
}, {
|
|
1750
|
+
description: string;
|
|
1751
|
+
}>>;
|
|
1752
|
+
related_properties: z.ZodOptional<z.ZodObject<{
|
|
1753
|
+
title: z.ZodString;
|
|
1754
|
+
}, "strip", z.ZodTypeAny, {
|
|
1755
|
+
title: string;
|
|
1756
|
+
}, {
|
|
1757
|
+
title: string;
|
|
1758
|
+
}>>;
|
|
1759
|
+
}, "strip", z.ZodTypeAny, {
|
|
1760
|
+
hero?: {
|
|
1761
|
+
address?: boolean | undefined;
|
|
1762
|
+
provider?: boolean | undefined;
|
|
1763
|
+
} | undefined;
|
|
1764
|
+
cancellation_policy?: {
|
|
1765
|
+
description: string;
|
|
1766
|
+
} | undefined;
|
|
1767
|
+
related_properties?: {
|
|
1768
|
+
title: string;
|
|
1769
|
+
} | undefined;
|
|
1770
|
+
}, {
|
|
1771
|
+
hero?: {
|
|
1772
|
+
address?: boolean | undefined;
|
|
1773
|
+
provider?: boolean | undefined;
|
|
1774
|
+
} | undefined;
|
|
1775
|
+
cancellation_policy?: {
|
|
1776
|
+
description: string;
|
|
1777
|
+
} | undefined;
|
|
1778
|
+
related_properties?: {
|
|
1779
|
+
title: string;
|
|
1780
|
+
} | undefined;
|
|
1781
|
+
}>>;
|
|
1782
|
+
}, "strip", z.ZodTypeAny, {
|
|
1783
|
+
routing: {
|
|
1784
|
+
base_url: string;
|
|
1785
|
+
};
|
|
1786
|
+
index: {
|
|
1787
|
+
seo: {
|
|
1788
|
+
description: string;
|
|
1789
|
+
title: string;
|
|
1790
|
+
tags?: string[] | undefined;
|
|
1791
|
+
openGraphTitle?: string | undefined;
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
seo?: {
|
|
1795
|
+
description: string;
|
|
1796
|
+
title: string;
|
|
1797
|
+
tags?: string[] | undefined;
|
|
1798
|
+
openGraphTitle?: string | undefined;
|
|
1799
|
+
} | undefined;
|
|
1800
|
+
show?: {
|
|
1801
|
+
hero?: {
|
|
1802
|
+
address?: boolean | undefined;
|
|
1803
|
+
provider?: boolean | undefined;
|
|
1804
|
+
} | undefined;
|
|
1805
|
+
cancellation_policy?: {
|
|
1806
|
+
description: string;
|
|
1807
|
+
} | undefined;
|
|
1808
|
+
related_properties?: {
|
|
1809
|
+
title: string;
|
|
1810
|
+
} | undefined;
|
|
1811
|
+
} | undefined;
|
|
1812
|
+
}, {
|
|
1813
|
+
routing: {
|
|
1814
|
+
base_url: string;
|
|
1815
|
+
};
|
|
1816
|
+
index: {
|
|
1817
|
+
seo: {
|
|
1818
|
+
description: string;
|
|
1819
|
+
title: string;
|
|
1820
|
+
tags?: string[] | undefined;
|
|
1821
|
+
openGraphTitle?: string | undefined;
|
|
1822
|
+
};
|
|
1823
|
+
};
|
|
1824
|
+
seo?: {
|
|
1825
|
+
description: string;
|
|
1826
|
+
title: string;
|
|
1827
|
+
tags?: string[] | undefined;
|
|
1828
|
+
openGraphTitle?: string | undefined;
|
|
1829
|
+
} | undefined;
|
|
1830
|
+
show?: {
|
|
1831
|
+
hero?: {
|
|
1832
|
+
address?: boolean | undefined;
|
|
1833
|
+
provider?: boolean | undefined;
|
|
1834
|
+
} | undefined;
|
|
1835
|
+
cancellation_policy?: {
|
|
1836
|
+
description: string;
|
|
1837
|
+
} | undefined;
|
|
1838
|
+
related_properties?: {
|
|
1839
|
+
title: string;
|
|
1840
|
+
} | undefined;
|
|
1841
|
+
} | undefined;
|
|
1842
|
+
}>;
|
|
1843
|
+
declare const BookingSettingsSchema: z.ZodObject<{
|
|
1844
|
+
booking_confirmation: z.ZodOptional<z.ZodObject<{
|
|
1845
|
+
sections: z.ZodOptional<z.ZodObject<{
|
|
1846
|
+
arrival_description: z.ZodOptional<z.ZodBoolean>;
|
|
1847
|
+
}, "strip", z.ZodTypeAny, {
|
|
1848
|
+
arrival_description?: boolean | undefined;
|
|
1849
|
+
}, {
|
|
1850
|
+
arrival_description?: boolean | undefined;
|
|
1851
|
+
}>>;
|
|
1852
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
1853
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
}, "strip", z.ZodTypeAny, {
|
|
1856
|
+
body?: string | undefined;
|
|
1857
|
+
help?: string | undefined;
|
|
1858
|
+
}, {
|
|
1859
|
+
body?: string | undefined;
|
|
1860
|
+
help?: string | undefined;
|
|
1861
|
+
}>>;
|
|
1862
|
+
}, "strip", z.ZodTypeAny, {
|
|
1863
|
+
content?: {
|
|
1864
|
+
body?: string | undefined;
|
|
1865
|
+
help?: string | undefined;
|
|
1866
|
+
} | undefined;
|
|
1867
|
+
sections?: {
|
|
1868
|
+
arrival_description?: boolean | undefined;
|
|
1869
|
+
} | undefined;
|
|
1870
|
+
}, {
|
|
1871
|
+
content?: {
|
|
1872
|
+
body?: string | undefined;
|
|
1873
|
+
help?: string | undefined;
|
|
1874
|
+
} | undefined;
|
|
1875
|
+
sections?: {
|
|
1876
|
+
arrival_description?: boolean | undefined;
|
|
1877
|
+
} | undefined;
|
|
1878
|
+
}>>;
|
|
1879
|
+
}, "strip", z.ZodTypeAny, {
|
|
1880
|
+
booking_confirmation?: {
|
|
1881
|
+
content?: {
|
|
1882
|
+
body?: string | undefined;
|
|
1883
|
+
help?: string | undefined;
|
|
1884
|
+
} | undefined;
|
|
1885
|
+
sections?: {
|
|
1886
|
+
arrival_description?: boolean | undefined;
|
|
1887
|
+
} | undefined;
|
|
1888
|
+
} | undefined;
|
|
1889
|
+
}, {
|
|
1890
|
+
booking_confirmation?: {
|
|
1891
|
+
content?: {
|
|
1892
|
+
body?: string | undefined;
|
|
1893
|
+
help?: string | undefined;
|
|
1894
|
+
} | undefined;
|
|
1895
|
+
sections?: {
|
|
1896
|
+
arrival_description?: boolean | undefined;
|
|
1897
|
+
} | undefined;
|
|
1898
|
+
} | undefined;
|
|
1899
|
+
}>;
|
|
1900
|
+
type MainSettings = z.infer<typeof MainSettingsSchema>;
|
|
1901
|
+
type ThemeSettings = z.infer<typeof ThemeSettingsSchema>;
|
|
1902
|
+
type PropertySettings = z.infer<typeof PropertySettingsSchema>;
|
|
1903
|
+
type BookingSettings = z.infer<typeof BookingSettingsSchema>;
|
|
1904
|
+
|
|
1905
|
+
declare const BookingRequestSchema: z.ZodObject<{
|
|
1906
|
+
property_id: z.ZodNumber;
|
|
1907
|
+
check_in: z.ZodString;
|
|
1908
|
+
check_out: z.ZodString;
|
|
1909
|
+
guests: z.ZodNumber;
|
|
1910
|
+
first_name: z.ZodString;
|
|
1911
|
+
last_name: z.ZodString;
|
|
1912
|
+
email: z.ZodString;
|
|
1913
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1914
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1915
|
+
total_amount: z.ZodNumber;
|
|
1916
|
+
payment_method: z.ZodOptional<z.ZodEnum<["stripe", "cash", "bank_transfer"]>>;
|
|
1917
|
+
}, "strip", z.ZodTypeAny, {
|
|
1918
|
+
check_in: string;
|
|
1919
|
+
check_out: string;
|
|
1920
|
+
email: string;
|
|
1921
|
+
guests: number;
|
|
1922
|
+
property_id: number;
|
|
1923
|
+
first_name: string;
|
|
1924
|
+
last_name: string;
|
|
1925
|
+
total_amount: number;
|
|
1926
|
+
phone?: string | undefined;
|
|
1927
|
+
notes?: string | undefined;
|
|
1928
|
+
payment_method?: "stripe" | "cash" | "bank_transfer" | undefined;
|
|
1929
|
+
}, {
|
|
1930
|
+
check_in: string;
|
|
1931
|
+
check_out: string;
|
|
1932
|
+
email: string;
|
|
1933
|
+
guests: number;
|
|
1934
|
+
property_id: number;
|
|
1935
|
+
first_name: string;
|
|
1936
|
+
last_name: string;
|
|
1937
|
+
total_amount: number;
|
|
1938
|
+
phone?: string | undefined;
|
|
1939
|
+
notes?: string | undefined;
|
|
1940
|
+
payment_method?: "stripe" | "cash" | "bank_transfer" | undefined;
|
|
1941
|
+
}>;
|
|
1942
|
+
declare const BookingResponseSchema: z.ZodObject<{
|
|
1943
|
+
id: z.ZodString;
|
|
1944
|
+
property_id: z.ZodNumber;
|
|
1945
|
+
check_in: z.ZodString;
|
|
1946
|
+
check_out: z.ZodString;
|
|
1947
|
+
guests: z.ZodNumber;
|
|
1948
|
+
status: z.ZodEnum<["pending", "confirmed", "cancelled", "completed"]>;
|
|
1949
|
+
total_amount: z.ZodNumber;
|
|
1950
|
+
payment_status: z.ZodEnum<["pending", "paid", "refunded"]>;
|
|
1951
|
+
confirmation_code: z.ZodString;
|
|
1952
|
+
created_at: z.ZodString;
|
|
1953
|
+
updated_at: z.ZodString;
|
|
1954
|
+
}, "strip", z.ZodTypeAny, {
|
|
1955
|
+
status: "pending" | "confirmed" | "cancelled" | "completed";
|
|
1956
|
+
id: string;
|
|
1957
|
+
check_in: string;
|
|
1958
|
+
check_out: string;
|
|
1959
|
+
created_at: string;
|
|
1960
|
+
updated_at: string;
|
|
1961
|
+
guests: number;
|
|
1962
|
+
property_id: number;
|
|
1963
|
+
total_amount: number;
|
|
1964
|
+
payment_status: "pending" | "paid" | "refunded";
|
|
1965
|
+
confirmation_code: string;
|
|
1966
|
+
}, {
|
|
1967
|
+
status: "pending" | "confirmed" | "cancelled" | "completed";
|
|
1968
|
+
id: string;
|
|
1969
|
+
check_in: string;
|
|
1970
|
+
check_out: string;
|
|
1971
|
+
created_at: string;
|
|
1972
|
+
updated_at: string;
|
|
1973
|
+
guests: number;
|
|
1974
|
+
property_id: number;
|
|
1975
|
+
total_amount: number;
|
|
1976
|
+
payment_status: "pending" | "paid" | "refunded";
|
|
1977
|
+
confirmation_code: string;
|
|
1978
|
+
}>;
|
|
1979
|
+
type BookingRequest = z.infer<typeof BookingRequestSchema>;
|
|
1980
|
+
type BookingResponse = z.infer<typeof BookingResponseSchema>;
|
|
1981
|
+
|
|
1982
|
+
declare const MoreApartmentsConfigSchema: z.ZodObject<{
|
|
1983
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
1985
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
1986
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1987
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1988
|
+
attempts: z.ZodNumber;
|
|
1989
|
+
delay: z.ZodNumber;
|
|
1990
|
+
}, "strip", z.ZodTypeAny, {
|
|
1991
|
+
attempts: number;
|
|
1992
|
+
delay: number;
|
|
1993
|
+
}, {
|
|
1994
|
+
attempts: number;
|
|
1995
|
+
delay: number;
|
|
1996
|
+
}>>;
|
|
1997
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
1998
|
+
enabled: z.ZodBoolean;
|
|
1999
|
+
ttl: z.ZodNumber;
|
|
2000
|
+
}, "strip", z.ZodTypeAny, {
|
|
2001
|
+
enabled: boolean;
|
|
2002
|
+
ttl: number;
|
|
2003
|
+
}, {
|
|
2004
|
+
enabled: boolean;
|
|
2005
|
+
ttl: number;
|
|
2006
|
+
}>>;
|
|
2007
|
+
}, "strip", z.ZodTypeAny, {
|
|
2008
|
+
baseUrl?: string | undefined;
|
|
2009
|
+
apiKey?: string | undefined;
|
|
2010
|
+
instance?: string | undefined;
|
|
2011
|
+
timeout?: number | undefined;
|
|
2012
|
+
retry?: {
|
|
2013
|
+
attempts: number;
|
|
2014
|
+
delay: number;
|
|
2015
|
+
} | undefined;
|
|
2016
|
+
cache?: {
|
|
2017
|
+
enabled: boolean;
|
|
2018
|
+
ttl: number;
|
|
2019
|
+
} | undefined;
|
|
2020
|
+
}, {
|
|
2021
|
+
baseUrl?: string | undefined;
|
|
2022
|
+
apiKey?: string | undefined;
|
|
2023
|
+
instance?: string | undefined;
|
|
2024
|
+
timeout?: number | undefined;
|
|
2025
|
+
retry?: {
|
|
2026
|
+
attempts: number;
|
|
2027
|
+
delay: number;
|
|
2028
|
+
} | undefined;
|
|
2029
|
+
cache?: {
|
|
2030
|
+
enabled: boolean;
|
|
2031
|
+
ttl: number;
|
|
2032
|
+
} | undefined;
|
|
2033
|
+
}>;
|
|
2034
|
+
type MoreApartmentsConfig = z.infer<typeof MoreApartmentsConfigSchema>;
|
|
2035
|
+
|
|
2036
|
+
declare class MoreApartmentsClient {
|
|
2037
|
+
private config;
|
|
2038
|
+
private cache;
|
|
2039
|
+
/**
|
|
2040
|
+
* Clear all cached data
|
|
2041
|
+
*/
|
|
2042
|
+
clearCache(): void;
|
|
2043
|
+
/**
|
|
2044
|
+
* Get cache statistics
|
|
2045
|
+
*/
|
|
2046
|
+
getCacheStats(): {
|
|
2047
|
+
entries: number;
|
|
2048
|
+
size: number;
|
|
2049
|
+
};
|
|
2050
|
+
constructor(config: MoreApartmentsConfig);
|
|
2051
|
+
private fetchWithRetry;
|
|
2052
|
+
getProperties(params?: {
|
|
2053
|
+
page?: number;
|
|
2054
|
+
per_page?: number;
|
|
2055
|
+
}): Promise<PaginatedResponse<Property>>;
|
|
2056
|
+
getProperty(propertyIdOrSlug: number | string): Promise<Property>;
|
|
2057
|
+
getAvailability(propertySlug: string, startDate: string, endDate: string): Promise<Availability>;
|
|
2058
|
+
getPages(): Promise<Page[]>;
|
|
2059
|
+
getPage(slug: string): Promise<Page>;
|
|
2060
|
+
getPosts(params?: {
|
|
2061
|
+
page?: number;
|
|
2062
|
+
per_page?: number;
|
|
2063
|
+
tag?: string;
|
|
2064
|
+
}): Promise<Post[]>;
|
|
2065
|
+
getPost(slug: string): Promise<Post>;
|
|
2066
|
+
getLocations(): Promise<any>;
|
|
2067
|
+
getCategories(): Promise<Category[]>;
|
|
2068
|
+
getCategory(slug: string): Promise<Category>;
|
|
2069
|
+
getCategorySegments(slug: string): Promise<CategorySegment[]>;
|
|
2070
|
+
getCategorySegment(slug: string, segment: string): Promise<CategorySegment>;
|
|
2071
|
+
getMainSettings(): Promise<MainSettings>;
|
|
2072
|
+
getThemeSettings(): Promise<ThemeSettings>;
|
|
2073
|
+
getPropertySettings(): Promise<PropertySettings>;
|
|
2074
|
+
getBookingSettings(): Promise<BookingSettings>;
|
|
2075
|
+
createBooking(booking: BookingRequest): Promise<BookingResponse>;
|
|
2076
|
+
getBooking(bookingId: string): Promise<BookingResponse>;
|
|
2077
|
+
/**
|
|
2078
|
+
* Search properties with advanced filtering
|
|
2079
|
+
*/
|
|
2080
|
+
searchProperties(params: PropertySearchParams): Promise<Property[]>;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* Image utility functions for handling property images
|
|
2085
|
+
* Following Astro best practices for image handling
|
|
2086
|
+
*/
|
|
2087
|
+
/**
|
|
2088
|
+
* Get primary image URL from property
|
|
2089
|
+
* @param property - Property object with optional images array
|
|
2090
|
+
* @param fallbackUrl - Optional fallback image URL
|
|
2091
|
+
* @returns Image URL string
|
|
2092
|
+
*/
|
|
2093
|
+
declare function getPrimaryImageUrl(property: Property, fallbackUrl?: string): string;
|
|
2094
|
+
/**
|
|
2095
|
+
* Get thumbnail image URL from property
|
|
2096
|
+
* @param property - Property object with optional images array
|
|
2097
|
+
* @param fallbackUrl - Optional fallback image URL
|
|
2098
|
+
* @returns Thumbnail URL string
|
|
2099
|
+
*/
|
|
2100
|
+
declare function getThumbnailUrl(property: Property, fallbackUrl?: string): string;
|
|
2101
|
+
/**
|
|
2102
|
+
* Get all image URLs from property
|
|
2103
|
+
* @param property - Property object with optional images array
|
|
2104
|
+
* @returns Array of image URL strings
|
|
2105
|
+
*/
|
|
2106
|
+
declare function getAllImageUrls(property: Property): string[];
|
|
2107
|
+
/**
|
|
2108
|
+
* Get all thumbnail URLs from property
|
|
2109
|
+
* @param property - Property object with optional images array
|
|
2110
|
+
* @returns Array of thumbnail URL strings
|
|
2111
|
+
*/
|
|
2112
|
+
declare function getAllThumbnailUrls(property: Property): string[];
|
|
2113
|
+
/**
|
|
2114
|
+
* Get image with alt text for accessibility
|
|
2115
|
+
* @param property - Property object
|
|
2116
|
+
* @param index - Image index (default 0)
|
|
2117
|
+
* @returns Object with url and alt text
|
|
2118
|
+
*/
|
|
2119
|
+
declare function getImageWithAlt(property: Property, index?: number): {
|
|
2120
|
+
url: string;
|
|
2121
|
+
alt: string;
|
|
2122
|
+
};
|
|
2123
|
+
/**
|
|
2124
|
+
* Get complete image object by index
|
|
2125
|
+
* @param property - Property object
|
|
2126
|
+
* @param index - Image index (default 0)
|
|
2127
|
+
* @returns PropertyImage object or null
|
|
2128
|
+
*/
|
|
2129
|
+
declare function getImage(property: Property, index?: number): PropertyImage | null;
|
|
2130
|
+
/**
|
|
2131
|
+
* Check if property has images
|
|
2132
|
+
* @param property - Property object
|
|
2133
|
+
* @returns Boolean indicating if property has images
|
|
2134
|
+
*/
|
|
2135
|
+
declare function hasImages(property: Property): boolean;
|
|
2136
|
+
/**
|
|
2137
|
+
* Get image count
|
|
2138
|
+
* @param property - Property object
|
|
2139
|
+
* @returns Number of images
|
|
2140
|
+
*/
|
|
2141
|
+
declare function getImageCount(property: Property): number;
|
|
2142
|
+
|
|
2143
|
+
interface MoreApartmentsIntegrationOptions extends MoreApartmentsConfig {
|
|
2144
|
+
/**
|
|
2145
|
+
* Enable virtual modules for importing API data in Astro components
|
|
2146
|
+
* @default true
|
|
2147
|
+
*/
|
|
2148
|
+
virtualModules?: boolean;
|
|
2149
|
+
/**
|
|
2150
|
+
* Inject global API client
|
|
2151
|
+
* @default true
|
|
2152
|
+
*/
|
|
2153
|
+
injectClient?: boolean;
|
|
2154
|
+
/**
|
|
2155
|
+
* Add API routes for proxying requests (recommended for security)
|
|
2156
|
+
* @default true
|
|
2157
|
+
*/
|
|
2158
|
+
addApiRoutes?: boolean;
|
|
2159
|
+
/**
|
|
2160
|
+
* API route prefix when addApiRoutes is true
|
|
2161
|
+
* @default '/api/apartments'
|
|
2162
|
+
*/
|
|
2163
|
+
apiRoutePrefix?: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* Path to instance directory for file watching in development
|
|
2166
|
+
* Enables hot-reload when instance content changes
|
|
2167
|
+
* @example '../prj-more-apartments/instance/stayci.com'
|
|
2168
|
+
*/
|
|
2169
|
+
instancePath?: string;
|
|
2170
|
+
}
|
|
2171
|
+
declare function moreApartmentsIntegration(options: MoreApartmentsIntegrationOptions): AstroIntegration;
|
|
2172
|
+
/**
|
|
2173
|
+
* Helper functions for use in Astro components
|
|
2174
|
+
* These functions provide built-in error handling and return safe defaults on failure
|
|
2175
|
+
*/
|
|
2176
|
+
/**
|
|
2177
|
+
* Fetch paginated properties with error handling
|
|
2178
|
+
* @param client - MoreApartmentsClient instance
|
|
2179
|
+
* @param params - Optional pagination parameters
|
|
2180
|
+
* @returns Properties response with data array, or empty array on error
|
|
2181
|
+
* @example
|
|
2182
|
+
* ```astro
|
|
2183
|
+
* ---
|
|
2184
|
+
* import client from 'virtual:more-apartments/client';
|
|
2185
|
+
* import { fetchProperties } from '@shelfwood/more-apartments-astro-integration';
|
|
2186
|
+
*
|
|
2187
|
+
* const properties = await fetchProperties(client, { page: 1, per_page: 10 });
|
|
2188
|
+
* ---
|
|
2189
|
+
* ```
|
|
2190
|
+
*/
|
|
2191
|
+
declare function fetchProperties(client: MoreApartmentsClient, params?: {
|
|
2192
|
+
page?: number;
|
|
2193
|
+
per_page?: number;
|
|
2194
|
+
}): Promise<PaginatedResponse<{
|
|
2195
|
+
type: string | null;
|
|
2196
|
+
status: string | null;
|
|
2197
|
+
id: number;
|
|
2198
|
+
name: string;
|
|
2199
|
+
slug: string;
|
|
2200
|
+
short_description: string | null;
|
|
2201
|
+
description: string;
|
|
2202
|
+
area_description: string | null;
|
|
2203
|
+
arrival_description: string | null;
|
|
2204
|
+
max_persons: number | null;
|
|
2205
|
+
bedrooms: number | null;
|
|
2206
|
+
bathrooms: number | null;
|
|
2207
|
+
toilets: number | null;
|
|
2208
|
+
size: number | null;
|
|
2209
|
+
floor: number | null;
|
|
2210
|
+
street: string | null;
|
|
2211
|
+
zipcode: string | null;
|
|
2212
|
+
area: string | null;
|
|
2213
|
+
city: string;
|
|
2214
|
+
country: string;
|
|
2215
|
+
latitude: number;
|
|
2216
|
+
longitude: number;
|
|
2217
|
+
single_bed: number | null;
|
|
2218
|
+
double_bed: number | null;
|
|
2219
|
+
single_sofa: number | null;
|
|
2220
|
+
double_sofa: number | null;
|
|
2221
|
+
single_bunk: number | null;
|
|
2222
|
+
balcony: boolean;
|
|
2223
|
+
terrace: boolean;
|
|
2224
|
+
view: string | null;
|
|
2225
|
+
airco: boolean;
|
|
2226
|
+
fans: boolean;
|
|
2227
|
+
heating: boolean;
|
|
2228
|
+
internet: string | null;
|
|
2229
|
+
internet_connection: string | null;
|
|
2230
|
+
tv: string | null;
|
|
2231
|
+
tv_connection: string | null;
|
|
2232
|
+
dvd: boolean;
|
|
2233
|
+
computer: boolean;
|
|
2234
|
+
printer: boolean;
|
|
2235
|
+
dishwasher: boolean;
|
|
2236
|
+
oven: boolean;
|
|
2237
|
+
microwave: boolean;
|
|
2238
|
+
fridge: boolean;
|
|
2239
|
+
freezer: boolean;
|
|
2240
|
+
toaster: boolean;
|
|
2241
|
+
kettle: boolean;
|
|
2242
|
+
coffeemachine: boolean;
|
|
2243
|
+
washingmachine: boolean;
|
|
2244
|
+
dryer: boolean;
|
|
2245
|
+
iron: boolean;
|
|
2246
|
+
bathtub: boolean;
|
|
2247
|
+
jacuzzi: boolean;
|
|
2248
|
+
shower_regular: boolean;
|
|
2249
|
+
shower_steam: boolean;
|
|
2250
|
+
hairdryer: boolean;
|
|
2251
|
+
swimmingpool: string | null;
|
|
2252
|
+
sauna: string | null;
|
|
2253
|
+
parking: string | null;
|
|
2254
|
+
entresol: boolean;
|
|
2255
|
+
wheelchair_friendly: boolean;
|
|
2256
|
+
smoking_allowed: boolean;
|
|
2257
|
+
pets_allowed: boolean;
|
|
2258
|
+
supplies_coffee: boolean;
|
|
2259
|
+
supplies_tea: boolean;
|
|
2260
|
+
supplies_milk: boolean;
|
|
2261
|
+
supplies_sugar: boolean;
|
|
2262
|
+
supplies_dishwasher_tablets: boolean;
|
|
2263
|
+
service_linen: boolean;
|
|
2264
|
+
service_towels: boolean;
|
|
2265
|
+
cleaning_costs: number | null;
|
|
2266
|
+
deposit_costs: number | null;
|
|
2267
|
+
min_rate: number | null;
|
|
2268
|
+
minimal_nights: number | null;
|
|
2269
|
+
maximal_nights: number | null;
|
|
2270
|
+
check_in: string | null;
|
|
2271
|
+
check_out: string | null;
|
|
2272
|
+
provider_name: string | null;
|
|
2273
|
+
created_at: string;
|
|
2274
|
+
updated_at: string;
|
|
2275
|
+
external_id?: number | undefined;
|
|
2276
|
+
images?: {
|
|
2277
|
+
id: number;
|
|
2278
|
+
url: string;
|
|
2279
|
+
thumb_url: string;
|
|
2280
|
+
alt: string;
|
|
2281
|
+
}[] | undefined;
|
|
2282
|
+
}> | {
|
|
2283
|
+
data: never[];
|
|
2284
|
+
links: {};
|
|
2285
|
+
meta: any;
|
|
2286
|
+
}>;
|
|
2287
|
+
/**
|
|
2288
|
+
* Fetch a single property by ID or slug with error handling
|
|
2289
|
+
* @param client - MoreApartmentsClient instance
|
|
2290
|
+
* @param idOrSlug - Property ID or slug identifier
|
|
2291
|
+
* @returns Property object or null on error
|
|
2292
|
+
* @example
|
|
2293
|
+
* ```astro
|
|
2294
|
+
* ---
|
|
2295
|
+
* const property = await fetchProperty(client, 'luxury-apartment-1');
|
|
2296
|
+
* ---
|
|
2297
|
+
* ```
|
|
2298
|
+
*/
|
|
2299
|
+
declare function fetchProperty(client: MoreApartmentsClient, idOrSlug: number | string): Promise<{
|
|
2300
|
+
type: string | null;
|
|
2301
|
+
status: string | null;
|
|
2302
|
+
id: number;
|
|
2303
|
+
name: string;
|
|
2304
|
+
slug: string;
|
|
2305
|
+
short_description: string | null;
|
|
2306
|
+
description: string;
|
|
2307
|
+
area_description: string | null;
|
|
2308
|
+
arrival_description: string | null;
|
|
2309
|
+
max_persons: number | null;
|
|
2310
|
+
bedrooms: number | null;
|
|
2311
|
+
bathrooms: number | null;
|
|
2312
|
+
toilets: number | null;
|
|
2313
|
+
size: number | null;
|
|
2314
|
+
floor: number | null;
|
|
2315
|
+
street: string | null;
|
|
2316
|
+
zipcode: string | null;
|
|
2317
|
+
area: string | null;
|
|
2318
|
+
city: string;
|
|
2319
|
+
country: string;
|
|
2320
|
+
latitude: number;
|
|
2321
|
+
longitude: number;
|
|
2322
|
+
single_bed: number | null;
|
|
2323
|
+
double_bed: number | null;
|
|
2324
|
+
single_sofa: number | null;
|
|
2325
|
+
double_sofa: number | null;
|
|
2326
|
+
single_bunk: number | null;
|
|
2327
|
+
balcony: boolean;
|
|
2328
|
+
terrace: boolean;
|
|
2329
|
+
view: string | null;
|
|
2330
|
+
airco: boolean;
|
|
2331
|
+
fans: boolean;
|
|
2332
|
+
heating: boolean;
|
|
2333
|
+
internet: string | null;
|
|
2334
|
+
internet_connection: string | null;
|
|
2335
|
+
tv: string | null;
|
|
2336
|
+
tv_connection: string | null;
|
|
2337
|
+
dvd: boolean;
|
|
2338
|
+
computer: boolean;
|
|
2339
|
+
printer: boolean;
|
|
2340
|
+
dishwasher: boolean;
|
|
2341
|
+
oven: boolean;
|
|
2342
|
+
microwave: boolean;
|
|
2343
|
+
fridge: boolean;
|
|
2344
|
+
freezer: boolean;
|
|
2345
|
+
toaster: boolean;
|
|
2346
|
+
kettle: boolean;
|
|
2347
|
+
coffeemachine: boolean;
|
|
2348
|
+
washingmachine: boolean;
|
|
2349
|
+
dryer: boolean;
|
|
2350
|
+
iron: boolean;
|
|
2351
|
+
bathtub: boolean;
|
|
2352
|
+
jacuzzi: boolean;
|
|
2353
|
+
shower_regular: boolean;
|
|
2354
|
+
shower_steam: boolean;
|
|
2355
|
+
hairdryer: boolean;
|
|
2356
|
+
swimmingpool: string | null;
|
|
2357
|
+
sauna: string | null;
|
|
2358
|
+
parking: string | null;
|
|
2359
|
+
entresol: boolean;
|
|
2360
|
+
wheelchair_friendly: boolean;
|
|
2361
|
+
smoking_allowed: boolean;
|
|
2362
|
+
pets_allowed: boolean;
|
|
2363
|
+
supplies_coffee: boolean;
|
|
2364
|
+
supplies_tea: boolean;
|
|
2365
|
+
supplies_milk: boolean;
|
|
2366
|
+
supplies_sugar: boolean;
|
|
2367
|
+
supplies_dishwasher_tablets: boolean;
|
|
2368
|
+
service_linen: boolean;
|
|
2369
|
+
service_towels: boolean;
|
|
2370
|
+
cleaning_costs: number | null;
|
|
2371
|
+
deposit_costs: number | null;
|
|
2372
|
+
min_rate: number | null;
|
|
2373
|
+
minimal_nights: number | null;
|
|
2374
|
+
maximal_nights: number | null;
|
|
2375
|
+
check_in: string | null;
|
|
2376
|
+
check_out: string | null;
|
|
2377
|
+
provider_name: string | null;
|
|
2378
|
+
created_at: string;
|
|
2379
|
+
updated_at: string;
|
|
2380
|
+
external_id?: number | undefined;
|
|
2381
|
+
images?: {
|
|
2382
|
+
id: number;
|
|
2383
|
+
url: string;
|
|
2384
|
+
thumb_url: string;
|
|
2385
|
+
alt: string;
|
|
2386
|
+
}[] | undefined;
|
|
2387
|
+
} | null>;
|
|
2388
|
+
/**
|
|
2389
|
+
* Fetch property availability for a date range with error handling
|
|
2390
|
+
* @param client - MoreApartmentsClient instance
|
|
2391
|
+
* @param propertySlug - Property slug identifier
|
|
2392
|
+
* @param startDate - Start date in YYYY-MM-DD format
|
|
2393
|
+
* @param endDate - End date in YYYY-MM-DD format
|
|
2394
|
+
* @returns Availability data or null on error
|
|
2395
|
+
* @example
|
|
2396
|
+
* ```astro
|
|
2397
|
+
* ---
|
|
2398
|
+
* const availability = await fetchAvailability(client, 'apartment-1', '2024-03-01', '2024-03-15');
|
|
2399
|
+
* ---
|
|
2400
|
+
* ```
|
|
2401
|
+
*/
|
|
2402
|
+
declare function fetchAvailability(client: MoreApartmentsClient, propertySlug: string, startDate: string, endDate: string): Promise<{
|
|
2403
|
+
days: Record<string, {
|
|
2404
|
+
date: string;
|
|
2405
|
+
available: boolean;
|
|
2406
|
+
morning_available: boolean;
|
|
2407
|
+
day: number;
|
|
2408
|
+
}>;
|
|
2409
|
+
} | null>;
|
|
2410
|
+
/**
|
|
2411
|
+
* Fetch all pages with error handling
|
|
2412
|
+
* @param client - MoreApartmentsClient instance
|
|
2413
|
+
* @returns Array of pages or empty array on error
|
|
2414
|
+
*/
|
|
2415
|
+
declare function fetchPages(client: MoreApartmentsClient): Promise<{
|
|
2416
|
+
id: string;
|
|
2417
|
+
slug: string;
|
|
2418
|
+
description: string | null;
|
|
2419
|
+
title: string | null;
|
|
2420
|
+
content: string | null;
|
|
2421
|
+
sections: any[];
|
|
2422
|
+
seo: {
|
|
2423
|
+
description: string;
|
|
2424
|
+
title: string;
|
|
2425
|
+
image: string | null;
|
|
2426
|
+
};
|
|
2427
|
+
route_name: string;
|
|
2428
|
+
}[]>;
|
|
2429
|
+
/**
|
|
2430
|
+
* Fetch a single page by slug with error handling
|
|
2431
|
+
* @param client - MoreApartmentsClient instance
|
|
2432
|
+
* @param slug - Page slug identifier
|
|
2433
|
+
* @returns Page object or null on error
|
|
2434
|
+
*/
|
|
2435
|
+
declare function fetchPage(client: MoreApartmentsClient, slug: string): Promise<{
|
|
2436
|
+
id: string;
|
|
2437
|
+
slug: string;
|
|
2438
|
+
description: string | null;
|
|
2439
|
+
title: string | null;
|
|
2440
|
+
content: string | null;
|
|
2441
|
+
sections: any[];
|
|
2442
|
+
seo: {
|
|
2443
|
+
description: string;
|
|
2444
|
+
title: string;
|
|
2445
|
+
image: string | null;
|
|
2446
|
+
};
|
|
2447
|
+
route_name: string;
|
|
2448
|
+
} | null>;
|
|
2449
|
+
/**
|
|
2450
|
+
* Fetch paginated blog posts with error handling
|
|
2451
|
+
* @param client - MoreApartmentsClient instance
|
|
2452
|
+
* @param params - Optional pagination and filtering parameters
|
|
2453
|
+
* @returns Posts response with data array, or empty array on error
|
|
2454
|
+
*/
|
|
2455
|
+
declare function fetchPosts(client: MoreApartmentsClient, params?: {
|
|
2456
|
+
page?: number;
|
|
2457
|
+
per_page?: number;
|
|
2458
|
+
tag?: string;
|
|
2459
|
+
}): Promise<{
|
|
2460
|
+
id: string;
|
|
2461
|
+
slug: string;
|
|
2462
|
+
description: string | null;
|
|
2463
|
+
date: string;
|
|
2464
|
+
title: string;
|
|
2465
|
+
content: string | null;
|
|
2466
|
+
sections: any[];
|
|
2467
|
+
seo: {
|
|
2468
|
+
description: string;
|
|
2469
|
+
title: string;
|
|
2470
|
+
image: string | null;
|
|
2471
|
+
};
|
|
2472
|
+
image: string | null;
|
|
2473
|
+
route_name: string;
|
|
2474
|
+
excerpt: string | null;
|
|
2475
|
+
author: string | null;
|
|
2476
|
+
tags: string[];
|
|
2477
|
+
reading_time: string | null;
|
|
2478
|
+
}[] | {
|
|
2479
|
+
data: never[];
|
|
2480
|
+
links: {};
|
|
2481
|
+
meta: any;
|
|
2482
|
+
}>;
|
|
2483
|
+
/**
|
|
2484
|
+
* Fetch a single blog post by slug with error handling
|
|
2485
|
+
* @param client - MoreApartmentsClient instance
|
|
2486
|
+
* @param slug - Post slug identifier
|
|
2487
|
+
* @returns Post object or null on error
|
|
2488
|
+
*/
|
|
2489
|
+
declare function fetchPost(client: MoreApartmentsClient, slug: string): Promise<{
|
|
2490
|
+
id: string;
|
|
2491
|
+
slug: string;
|
|
2492
|
+
description: string | null;
|
|
2493
|
+
date: string;
|
|
2494
|
+
title: string;
|
|
2495
|
+
content: string | null;
|
|
2496
|
+
sections: any[];
|
|
2497
|
+
seo: {
|
|
2498
|
+
description: string;
|
|
2499
|
+
title: string;
|
|
2500
|
+
image: string | null;
|
|
2501
|
+
};
|
|
2502
|
+
image: string | null;
|
|
2503
|
+
route_name: string;
|
|
2504
|
+
excerpt: string | null;
|
|
2505
|
+
author: string | null;
|
|
2506
|
+
tags: string[];
|
|
2507
|
+
reading_time: string | null;
|
|
2508
|
+
} | null>;
|
|
2509
|
+
/**
|
|
2510
|
+
* Fetch settings by type with error handling
|
|
2511
|
+
* @param client - MoreApartmentsClient instance
|
|
2512
|
+
* @param type - Settings type: 'main', 'theme', 'properties', or 'booking'
|
|
2513
|
+
* @returns Settings object or null on error
|
|
2514
|
+
* @example
|
|
2515
|
+
* ```astro
|
|
2516
|
+
* ---
|
|
2517
|
+
* const mainSettings = await fetchSettings(client, 'main');
|
|
2518
|
+
* const themeSettings = await fetchSettings(client, 'theme');
|
|
2519
|
+
* ---
|
|
2520
|
+
* ```
|
|
2521
|
+
*/
|
|
2522
|
+
declare function fetchSettings(client: MoreApartmentsClient, type: 'main' | 'theme' | 'properties' | 'booking'): Promise<{
|
|
2523
|
+
site: {
|
|
2524
|
+
name: string;
|
|
2525
|
+
domain: string;
|
|
2526
|
+
locale: string;
|
|
2527
|
+
};
|
|
2528
|
+
contact: {
|
|
2529
|
+
email: string;
|
|
2530
|
+
phone?: string | undefined;
|
|
2531
|
+
};
|
|
2532
|
+
social?: {
|
|
2533
|
+
facebook?: string | undefined;
|
|
2534
|
+
instagram?: string | undefined;
|
|
2535
|
+
} | undefined;
|
|
2536
|
+
mail?: {
|
|
2537
|
+
from: {
|
|
2538
|
+
name: string;
|
|
2539
|
+
address: string;
|
|
2540
|
+
};
|
|
2541
|
+
contact_form_to: string;
|
|
2542
|
+
} | undefined;
|
|
2543
|
+
discount?: number | undefined;
|
|
2544
|
+
pms?: {
|
|
2545
|
+
property_providers: {
|
|
2546
|
+
name: string;
|
|
2547
|
+
system: string;
|
|
2548
|
+
enabled?: boolean | undefined;
|
|
2549
|
+
api_key?: string | undefined;
|
|
2550
|
+
base_url?: string | undefined;
|
|
2551
|
+
discount?: number | undefined;
|
|
2552
|
+
}[];
|
|
2553
|
+
} | undefined;
|
|
2554
|
+
pricing?: {
|
|
2555
|
+
vat: number;
|
|
2556
|
+
tourist_tax: {
|
|
2557
|
+
value: number;
|
|
2558
|
+
type: string;
|
|
2559
|
+
};
|
|
2560
|
+
} | undefined;
|
|
2561
|
+
} | {
|
|
2562
|
+
colors: {
|
|
2563
|
+
primary: string;
|
|
2564
|
+
secondary: string;
|
|
2565
|
+
};
|
|
2566
|
+
logo?: {
|
|
2567
|
+
path: string;
|
|
2568
|
+
height?: number | undefined;
|
|
2569
|
+
} | undefined;
|
|
2570
|
+
favicon_path?: string | undefined;
|
|
2571
|
+
layout?: {
|
|
2572
|
+
homepage_style?: string | undefined;
|
|
2573
|
+
navigation?: {
|
|
2574
|
+
items: any[];
|
|
2575
|
+
variant?: string | undefined;
|
|
2576
|
+
buttons?: any[] | undefined;
|
|
2577
|
+
} | undefined;
|
|
2578
|
+
footer?: {
|
|
2579
|
+
blog_title?: string | undefined;
|
|
2580
|
+
contact_title?: string | undefined;
|
|
2581
|
+
categories?: any[] | undefined;
|
|
2582
|
+
} | undefined;
|
|
2583
|
+
} | undefined;
|
|
2584
|
+
} | {
|
|
2585
|
+
routing: {
|
|
2586
|
+
base_url: string;
|
|
2587
|
+
};
|
|
2588
|
+
index: {
|
|
2589
|
+
seo: {
|
|
2590
|
+
description: string;
|
|
2591
|
+
title: string;
|
|
2592
|
+
tags?: string[] | undefined;
|
|
2593
|
+
openGraphTitle?: string | undefined;
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
seo?: {
|
|
2597
|
+
description: string;
|
|
2598
|
+
title: string;
|
|
2599
|
+
tags?: string[] | undefined;
|
|
2600
|
+
openGraphTitle?: string | undefined;
|
|
2601
|
+
} | undefined;
|
|
2602
|
+
show?: {
|
|
2603
|
+
hero?: {
|
|
2604
|
+
address?: boolean | undefined;
|
|
2605
|
+
provider?: boolean | undefined;
|
|
2606
|
+
} | undefined;
|
|
2607
|
+
cancellation_policy?: {
|
|
2608
|
+
description: string;
|
|
2609
|
+
} | undefined;
|
|
2610
|
+
related_properties?: {
|
|
2611
|
+
title: string;
|
|
2612
|
+
} | undefined;
|
|
2613
|
+
} | undefined;
|
|
2614
|
+
} | {
|
|
2615
|
+
booking_confirmation?: {
|
|
2616
|
+
content?: {
|
|
2617
|
+
body?: string | undefined;
|
|
2618
|
+
help?: string | undefined;
|
|
2619
|
+
} | undefined;
|
|
2620
|
+
sections?: {
|
|
2621
|
+
arrival_description?: boolean | undefined;
|
|
2622
|
+
} | undefined;
|
|
2623
|
+
} | undefined;
|
|
2624
|
+
} | null>;
|
|
2625
|
+
/**
|
|
2626
|
+
* Generate a booking initiation URL for the Laravel backend
|
|
2627
|
+
*
|
|
2628
|
+
* @param propertyExternalId - The external_id of the property
|
|
2629
|
+
* @param arrival - Arrival date in YYYY-MM-DD format
|
|
2630
|
+
* @param departure - Departure date in YYYY-MM-DD format
|
|
2631
|
+
* @param guests - Number of guests
|
|
2632
|
+
* @returns The booking URL to redirect to Laravel booking flow
|
|
2633
|
+
*/
|
|
2634
|
+
declare function generateBookingUrl(propertyExternalId: number, arrival: string, departure: string, guests: number, baseUrl?: string): string;
|
|
2635
|
+
/**
|
|
2636
|
+
* Search for properties with advanced filtering
|
|
2637
|
+
*
|
|
2638
|
+
* @param client - The MoreApartmentsClient instance
|
|
2639
|
+
* @param params - Search parameters
|
|
2640
|
+
* @returns Array of matching properties
|
|
2641
|
+
*/
|
|
2642
|
+
declare function searchProperties(client: MoreApartmentsClient, params: PropertySearchParams): Promise<{
|
|
2643
|
+
type: string | null;
|
|
2644
|
+
status: string | null;
|
|
2645
|
+
id: number;
|
|
2646
|
+
name: string;
|
|
2647
|
+
slug: string;
|
|
2648
|
+
short_description: string | null;
|
|
2649
|
+
description: string;
|
|
2650
|
+
area_description: string | null;
|
|
2651
|
+
arrival_description: string | null;
|
|
2652
|
+
max_persons: number | null;
|
|
2653
|
+
bedrooms: number | null;
|
|
2654
|
+
bathrooms: number | null;
|
|
2655
|
+
toilets: number | null;
|
|
2656
|
+
size: number | null;
|
|
2657
|
+
floor: number | null;
|
|
2658
|
+
street: string | null;
|
|
2659
|
+
zipcode: string | null;
|
|
2660
|
+
area: string | null;
|
|
2661
|
+
city: string;
|
|
2662
|
+
country: string;
|
|
2663
|
+
latitude: number;
|
|
2664
|
+
longitude: number;
|
|
2665
|
+
single_bed: number | null;
|
|
2666
|
+
double_bed: number | null;
|
|
2667
|
+
single_sofa: number | null;
|
|
2668
|
+
double_sofa: number | null;
|
|
2669
|
+
single_bunk: number | null;
|
|
2670
|
+
balcony: boolean;
|
|
2671
|
+
terrace: boolean;
|
|
2672
|
+
view: string | null;
|
|
2673
|
+
airco: boolean;
|
|
2674
|
+
fans: boolean;
|
|
2675
|
+
heating: boolean;
|
|
2676
|
+
internet: string | null;
|
|
2677
|
+
internet_connection: string | null;
|
|
2678
|
+
tv: string | null;
|
|
2679
|
+
tv_connection: string | null;
|
|
2680
|
+
dvd: boolean;
|
|
2681
|
+
computer: boolean;
|
|
2682
|
+
printer: boolean;
|
|
2683
|
+
dishwasher: boolean;
|
|
2684
|
+
oven: boolean;
|
|
2685
|
+
microwave: boolean;
|
|
2686
|
+
fridge: boolean;
|
|
2687
|
+
freezer: boolean;
|
|
2688
|
+
toaster: boolean;
|
|
2689
|
+
kettle: boolean;
|
|
2690
|
+
coffeemachine: boolean;
|
|
2691
|
+
washingmachine: boolean;
|
|
2692
|
+
dryer: boolean;
|
|
2693
|
+
iron: boolean;
|
|
2694
|
+
bathtub: boolean;
|
|
2695
|
+
jacuzzi: boolean;
|
|
2696
|
+
shower_regular: boolean;
|
|
2697
|
+
shower_steam: boolean;
|
|
2698
|
+
hairdryer: boolean;
|
|
2699
|
+
swimmingpool: string | null;
|
|
2700
|
+
sauna: string | null;
|
|
2701
|
+
parking: string | null;
|
|
2702
|
+
entresol: boolean;
|
|
2703
|
+
wheelchair_friendly: boolean;
|
|
2704
|
+
smoking_allowed: boolean;
|
|
2705
|
+
pets_allowed: boolean;
|
|
2706
|
+
supplies_coffee: boolean;
|
|
2707
|
+
supplies_tea: boolean;
|
|
2708
|
+
supplies_milk: boolean;
|
|
2709
|
+
supplies_sugar: boolean;
|
|
2710
|
+
supplies_dishwasher_tablets: boolean;
|
|
2711
|
+
service_linen: boolean;
|
|
2712
|
+
service_towels: boolean;
|
|
2713
|
+
cleaning_costs: number | null;
|
|
2714
|
+
deposit_costs: number | null;
|
|
2715
|
+
min_rate: number | null;
|
|
2716
|
+
minimal_nights: number | null;
|
|
2717
|
+
maximal_nights: number | null;
|
|
2718
|
+
check_in: string | null;
|
|
2719
|
+
check_out: string | null;
|
|
2720
|
+
provider_name: string | null;
|
|
2721
|
+
created_at: string;
|
|
2722
|
+
updated_at: string;
|
|
2723
|
+
external_id?: number | undefined;
|
|
2724
|
+
images?: {
|
|
2725
|
+
id: number;
|
|
2726
|
+
url: string;
|
|
2727
|
+
thumb_url: string;
|
|
2728
|
+
alt: string;
|
|
2729
|
+
}[] | undefined;
|
|
2730
|
+
}[]>;
|
|
2731
|
+
|
|
2732
|
+
export { type ApiError, ApiErrorSchema, type Availability, AvailabilitySchema, AvailableDay, type BookingRequest, BookingRequestSchema, type BookingResponse, BookingResponseSchema, type BookingSettings, BookingSettingsSchema, type Category, CategorySchema, type CategorySegment, CategorySegmentSchema, type MainSettings, MainSettingsSchema, MoreApartmentsClient, type MoreApartmentsConfig, MoreApartmentsConfigSchema, type Page, PageSchema, type PaginatedResponse, PaginatedResponseSchema, type PaginationLinks, PaginationLinksSchema, type PaginationMeta, PaginationMetaSchema, type Post, PostSchema, type Property, type PropertyImage, PropertyImageSchema, type PropertyPageSettings, PropertyPageSettingsSchema, PropertySchema, type PropertySearchParams, PropertySearchParamsSchema, type PropertySearchResult, PropertySearchResultSchema, type PropertySettings, PropertySettingsSchema, type ThemeSettings, ThemeSettingsSchema, moreApartmentsIntegration as default, fetchAvailability, fetchPage, fetchPages, fetchPost, fetchPosts, fetchProperties, fetchProperty, fetchSettings, generateBookingUrl, getAllImageUrls, getAllThumbnailUrls, getImage, getImageCount, getImageWithAlt, getPrimaryImageUrl, getThumbnailUrl, hasImages, searchProperties };
|