hububb-models 1.0.62 → 1.0.64
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/models/apaleo/offer.d.ts +3 -0
- package/dist/models/apaleo/offer.js +2 -0
- package/dist/models/calendar.d.ts +4 -0
- package/dist/models/calendar.js +2 -0
- package/dist/schemas/apaleo/offer.d.ts +675 -0
- package/dist/schemas/apaleo/offer.js +111 -0
- package/dist/schemas/calendar.d.ts +68 -0
- package/dist/schemas/calendar.js +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -3,8 +3,12 @@ export * from "./schemas/blog";
|
|
3
3
|
export * from "./schemas/thread";
|
4
4
|
export * from "./schemas/reservation";
|
5
5
|
export * from "./schemas/listing";
|
6
|
+
export * from "./schemas/calendar";
|
7
|
+
export * from "./schemas/apaleo/offer";
|
6
8
|
export * from "./models/user";
|
7
9
|
export * from "./models/blog";
|
8
10
|
export * from "./models/thread";
|
9
11
|
export * from "./models/reservation";
|
10
12
|
export * from "./models/listing";
|
13
|
+
export * from "./models/calendar";
|
14
|
+
export * from "./models/apaleo/offer";
|
package/dist/index.js
CHANGED
@@ -19,8 +19,12 @@ __exportStar(require("./schemas/blog"), exports);
|
|
19
19
|
__exportStar(require("./schemas/thread"), exports);
|
20
20
|
__exportStar(require("./schemas/reservation"), exports);
|
21
21
|
__exportStar(require("./schemas/listing"), exports);
|
22
|
+
__exportStar(require("./schemas/calendar"), exports);
|
23
|
+
__exportStar(require("./schemas/apaleo/offer"), exports);
|
22
24
|
__exportStar(require("./models/user"), exports);
|
23
25
|
__exportStar(require("./models/blog"), exports);
|
24
26
|
__exportStar(require("./models/thread"), exports);
|
25
27
|
__exportStar(require("./models/reservation"), exports);
|
26
28
|
__exportStar(require("./models/listing"), exports);
|
29
|
+
__exportStar(require("./models/calendar"), exports);
|
30
|
+
__exportStar(require("./models/apaleo/offer"), exports);
|
@@ -0,0 +1,675 @@
|
|
1
|
+
export declare const ApaleoOfferSchema: import("zod").ZodObject<{
|
2
|
+
property: import("zod").ZodObject<{
|
3
|
+
id: import("zod").ZodString;
|
4
|
+
code: import("zod").ZodString;
|
5
|
+
name: import("zod").ZodString;
|
6
|
+
description: import("zod").ZodString;
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
8
|
+
code: string;
|
9
|
+
id: string;
|
10
|
+
name: string;
|
11
|
+
description: string;
|
12
|
+
}, {
|
13
|
+
code: string;
|
14
|
+
id: string;
|
15
|
+
name: string;
|
16
|
+
description: string;
|
17
|
+
}>;
|
18
|
+
offers: import("zod").ZodArray<import("zod").ZodObject<{
|
19
|
+
arrival: import("zod").ZodString;
|
20
|
+
departure: import("zod").ZodString;
|
21
|
+
unitGroup: import("zod").ZodObject<{
|
22
|
+
id: import("zod").ZodString;
|
23
|
+
code: import("zod").ZodString;
|
24
|
+
name: import("zod").ZodString;
|
25
|
+
description: import("zod").ZodString;
|
26
|
+
maxPersons: import("zod").ZodNumber;
|
27
|
+
type: import("zod").ZodString;
|
28
|
+
}, "strip", import("zod").ZodTypeAny, {
|
29
|
+
type: string;
|
30
|
+
code: string;
|
31
|
+
id: string;
|
32
|
+
name: string;
|
33
|
+
description: string;
|
34
|
+
maxPersons: number;
|
35
|
+
}, {
|
36
|
+
type: string;
|
37
|
+
code: string;
|
38
|
+
id: string;
|
39
|
+
name: string;
|
40
|
+
description: string;
|
41
|
+
maxPersons: number;
|
42
|
+
}>;
|
43
|
+
minGuaranteeType: import("zod").ZodString;
|
44
|
+
availableUnits: import("zod").ZodNumber;
|
45
|
+
ratePlan: import("zod").ZodObject<{
|
46
|
+
id: import("zod").ZodString;
|
47
|
+
code: import("zod").ZodString;
|
48
|
+
name: import("zod").ZodString;
|
49
|
+
description: import("zod").ZodString;
|
50
|
+
isSubjectToCityTax: import("zod").ZodBoolean;
|
51
|
+
}, "strip", import("zod").ZodTypeAny, {
|
52
|
+
code: string;
|
53
|
+
id: string;
|
54
|
+
name: string;
|
55
|
+
description: string;
|
56
|
+
isSubjectToCityTax: boolean;
|
57
|
+
}, {
|
58
|
+
code: string;
|
59
|
+
id: string;
|
60
|
+
name: string;
|
61
|
+
description: string;
|
62
|
+
isSubjectToCityTax: boolean;
|
63
|
+
}>;
|
64
|
+
totalGrossAmount: import("zod").ZodObject<{
|
65
|
+
amount: import("zod").ZodNumber;
|
66
|
+
currency: import("zod").ZodString;
|
67
|
+
}, "strip", import("zod").ZodTypeAny, {
|
68
|
+
currency: string;
|
69
|
+
amount: number;
|
70
|
+
}, {
|
71
|
+
currency: string;
|
72
|
+
amount: number;
|
73
|
+
}>;
|
74
|
+
cancellationFee: import("zod").ZodOptional<import("zod").ZodObject<{
|
75
|
+
code: import("zod").ZodString;
|
76
|
+
name: import("zod").ZodString;
|
77
|
+
description: import("zod").ZodString;
|
78
|
+
dueDateTime: import("zod").ZodString;
|
79
|
+
fee: import("zod").ZodObject<{
|
80
|
+
amount: import("zod").ZodNumber;
|
81
|
+
currency: import("zod").ZodString;
|
82
|
+
}, "strip", import("zod").ZodTypeAny, {
|
83
|
+
currency: string;
|
84
|
+
amount: number;
|
85
|
+
}, {
|
86
|
+
currency: string;
|
87
|
+
amount: number;
|
88
|
+
}>;
|
89
|
+
}, "strip", import("zod").ZodTypeAny, {
|
90
|
+
code: string;
|
91
|
+
name: string;
|
92
|
+
description: string;
|
93
|
+
dueDateTime: string;
|
94
|
+
fee: {
|
95
|
+
currency: string;
|
96
|
+
amount: number;
|
97
|
+
};
|
98
|
+
}, {
|
99
|
+
code: string;
|
100
|
+
name: string;
|
101
|
+
description: string;
|
102
|
+
dueDateTime: string;
|
103
|
+
fee: {
|
104
|
+
currency: string;
|
105
|
+
amount: number;
|
106
|
+
};
|
107
|
+
}>>;
|
108
|
+
noShowFee: import("zod").ZodOptional<import("zod").ZodObject<{
|
109
|
+
code: import("zod").ZodString;
|
110
|
+
name: import("zod").ZodString;
|
111
|
+
description: import("zod").ZodString;
|
112
|
+
fee: import("zod").ZodObject<{
|
113
|
+
amount: import("zod").ZodNumber;
|
114
|
+
currency: import("zod").ZodString;
|
115
|
+
}, "strip", import("zod").ZodTypeAny, {
|
116
|
+
currency: string;
|
117
|
+
amount: number;
|
118
|
+
}, {
|
119
|
+
currency: string;
|
120
|
+
amount: number;
|
121
|
+
}>;
|
122
|
+
}, "strip", import("zod").ZodTypeAny, {
|
123
|
+
code: string;
|
124
|
+
name: string;
|
125
|
+
description: string;
|
126
|
+
fee: {
|
127
|
+
currency: string;
|
128
|
+
amount: number;
|
129
|
+
};
|
130
|
+
}, {
|
131
|
+
code: string;
|
132
|
+
name: string;
|
133
|
+
description: string;
|
134
|
+
fee: {
|
135
|
+
currency: string;
|
136
|
+
amount: number;
|
137
|
+
};
|
138
|
+
}>>;
|
139
|
+
timeSlices: import("zod").ZodArray<import("zod").ZodObject<{
|
140
|
+
from: import("zod").ZodString;
|
141
|
+
to: import("zod").ZodString;
|
142
|
+
availableUnits: import("zod").ZodNumber;
|
143
|
+
baseAmount: import("zod").ZodObject<{
|
144
|
+
grossAmount: import("zod").ZodNumber;
|
145
|
+
netAmount: import("zod").ZodNumber;
|
146
|
+
vatType: import("zod").ZodString;
|
147
|
+
vatPercent: import("zod").ZodNumber;
|
148
|
+
currency: import("zod").ZodString;
|
149
|
+
}, "strip", import("zod").ZodTypeAny, {
|
150
|
+
currency: string;
|
151
|
+
grossAmount: number;
|
152
|
+
netAmount: number;
|
153
|
+
vatType: string;
|
154
|
+
vatPercent: number;
|
155
|
+
}, {
|
156
|
+
currency: string;
|
157
|
+
grossAmount: number;
|
158
|
+
netAmount: number;
|
159
|
+
vatType: string;
|
160
|
+
vatPercent: number;
|
161
|
+
}>;
|
162
|
+
totalGrossAmount: import("zod").ZodObject<{
|
163
|
+
amount: import("zod").ZodNumber;
|
164
|
+
currency: import("zod").ZodString;
|
165
|
+
}, "strip", import("zod").ZodTypeAny, {
|
166
|
+
currency: string;
|
167
|
+
amount: number;
|
168
|
+
}, {
|
169
|
+
currency: string;
|
170
|
+
amount: number;
|
171
|
+
}>;
|
172
|
+
}, "strip", import("zod").ZodTypeAny, {
|
173
|
+
from: string;
|
174
|
+
to: string;
|
175
|
+
availableUnits: number;
|
176
|
+
baseAmount: {
|
177
|
+
currency: string;
|
178
|
+
grossAmount: number;
|
179
|
+
netAmount: number;
|
180
|
+
vatType: string;
|
181
|
+
vatPercent: number;
|
182
|
+
};
|
183
|
+
totalGrossAmount: {
|
184
|
+
currency: string;
|
185
|
+
amount: number;
|
186
|
+
};
|
187
|
+
}, {
|
188
|
+
from: string;
|
189
|
+
to: string;
|
190
|
+
availableUnits: number;
|
191
|
+
baseAmount: {
|
192
|
+
currency: string;
|
193
|
+
grossAmount: number;
|
194
|
+
netAmount: number;
|
195
|
+
vatType: string;
|
196
|
+
vatPercent: number;
|
197
|
+
};
|
198
|
+
totalGrossAmount: {
|
199
|
+
currency: string;
|
200
|
+
amount: number;
|
201
|
+
};
|
202
|
+
}>, "many">;
|
203
|
+
fees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
204
|
+
id: import("zod").ZodString;
|
205
|
+
code: import("zod").ZodString;
|
206
|
+
name: import("zod").ZodString;
|
207
|
+
totalAmount: import("zod").ZodObject<{
|
208
|
+
grossAmount: import("zod").ZodNumber;
|
209
|
+
netAmount: import("zod").ZodNumber;
|
210
|
+
vatType: import("zod").ZodString;
|
211
|
+
vatPercent: import("zod").ZodNumber;
|
212
|
+
currency: import("zod").ZodString;
|
213
|
+
}, "strip", import("zod").ZodTypeAny, {
|
214
|
+
currency: string;
|
215
|
+
grossAmount: number;
|
216
|
+
netAmount: number;
|
217
|
+
vatType: string;
|
218
|
+
vatPercent: number;
|
219
|
+
}, {
|
220
|
+
currency: string;
|
221
|
+
grossAmount: number;
|
222
|
+
netAmount: number;
|
223
|
+
vatType: string;
|
224
|
+
vatPercent: number;
|
225
|
+
}>;
|
226
|
+
}, "strip", import("zod").ZodTypeAny, {
|
227
|
+
code: string;
|
228
|
+
id: string;
|
229
|
+
name: string;
|
230
|
+
totalAmount: {
|
231
|
+
currency: string;
|
232
|
+
grossAmount: number;
|
233
|
+
netAmount: number;
|
234
|
+
vatType: string;
|
235
|
+
vatPercent: number;
|
236
|
+
};
|
237
|
+
}, {
|
238
|
+
code: string;
|
239
|
+
id: string;
|
240
|
+
name: string;
|
241
|
+
totalAmount: {
|
242
|
+
currency: string;
|
243
|
+
grossAmount: number;
|
244
|
+
netAmount: number;
|
245
|
+
vatType: string;
|
246
|
+
vatPercent: number;
|
247
|
+
};
|
248
|
+
}>, "many">>;
|
249
|
+
taxDetails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
250
|
+
vatType: import("zod").ZodString;
|
251
|
+
vatPercent: import("zod").ZodNumber;
|
252
|
+
net: import("zod").ZodObject<{
|
253
|
+
amount: import("zod").ZodNumber;
|
254
|
+
currency: import("zod").ZodString;
|
255
|
+
}, "strip", import("zod").ZodTypeAny, {
|
256
|
+
currency: string;
|
257
|
+
amount: number;
|
258
|
+
}, {
|
259
|
+
currency: string;
|
260
|
+
amount: number;
|
261
|
+
}>;
|
262
|
+
tax: import("zod").ZodObject<{
|
263
|
+
amount: import("zod").ZodNumber;
|
264
|
+
currency: import("zod").ZodString;
|
265
|
+
}, "strip", import("zod").ZodTypeAny, {
|
266
|
+
currency: string;
|
267
|
+
amount: number;
|
268
|
+
}, {
|
269
|
+
currency: string;
|
270
|
+
amount: number;
|
271
|
+
}>;
|
272
|
+
}, "strip", import("zod").ZodTypeAny, {
|
273
|
+
vatType: string;
|
274
|
+
vatPercent: number;
|
275
|
+
net: {
|
276
|
+
currency: string;
|
277
|
+
amount: number;
|
278
|
+
};
|
279
|
+
tax: {
|
280
|
+
currency: string;
|
281
|
+
amount: number;
|
282
|
+
};
|
283
|
+
}, {
|
284
|
+
vatType: string;
|
285
|
+
vatPercent: number;
|
286
|
+
net: {
|
287
|
+
currency: string;
|
288
|
+
amount: number;
|
289
|
+
};
|
290
|
+
tax: {
|
291
|
+
currency: string;
|
292
|
+
amount: number;
|
293
|
+
};
|
294
|
+
}>, "many">>;
|
295
|
+
isCorporate: import("zod").ZodBoolean;
|
296
|
+
prePaymentAmount: import("zod").ZodObject<{
|
297
|
+
amount: import("zod").ZodNumber;
|
298
|
+
currency: import("zod").ZodString;
|
299
|
+
}, "strip", import("zod").ZodTypeAny, {
|
300
|
+
currency: string;
|
301
|
+
amount: number;
|
302
|
+
}, {
|
303
|
+
currency: string;
|
304
|
+
amount: number;
|
305
|
+
}>;
|
306
|
+
}, "strip", import("zod").ZodTypeAny, {
|
307
|
+
availableUnits: number;
|
308
|
+
totalGrossAmount: {
|
309
|
+
currency: string;
|
310
|
+
amount: number;
|
311
|
+
};
|
312
|
+
arrival: string;
|
313
|
+
departure: string;
|
314
|
+
unitGroup: {
|
315
|
+
type: string;
|
316
|
+
code: string;
|
317
|
+
id: string;
|
318
|
+
name: string;
|
319
|
+
description: string;
|
320
|
+
maxPersons: number;
|
321
|
+
};
|
322
|
+
minGuaranteeType: string;
|
323
|
+
ratePlan: {
|
324
|
+
code: string;
|
325
|
+
id: string;
|
326
|
+
name: string;
|
327
|
+
description: string;
|
328
|
+
isSubjectToCityTax: boolean;
|
329
|
+
};
|
330
|
+
timeSlices: {
|
331
|
+
from: string;
|
332
|
+
to: string;
|
333
|
+
availableUnits: number;
|
334
|
+
baseAmount: {
|
335
|
+
currency: string;
|
336
|
+
grossAmount: number;
|
337
|
+
netAmount: number;
|
338
|
+
vatType: string;
|
339
|
+
vatPercent: number;
|
340
|
+
};
|
341
|
+
totalGrossAmount: {
|
342
|
+
currency: string;
|
343
|
+
amount: number;
|
344
|
+
};
|
345
|
+
}[];
|
346
|
+
isCorporate: boolean;
|
347
|
+
prePaymentAmount: {
|
348
|
+
currency: string;
|
349
|
+
amount: number;
|
350
|
+
};
|
351
|
+
cancellationFee?: {
|
352
|
+
code: string;
|
353
|
+
name: string;
|
354
|
+
description: string;
|
355
|
+
dueDateTime: string;
|
356
|
+
fee: {
|
357
|
+
currency: string;
|
358
|
+
amount: number;
|
359
|
+
};
|
360
|
+
} | undefined;
|
361
|
+
noShowFee?: {
|
362
|
+
code: string;
|
363
|
+
name: string;
|
364
|
+
description: string;
|
365
|
+
fee: {
|
366
|
+
currency: string;
|
367
|
+
amount: number;
|
368
|
+
};
|
369
|
+
} | undefined;
|
370
|
+
fees?: {
|
371
|
+
code: string;
|
372
|
+
id: string;
|
373
|
+
name: string;
|
374
|
+
totalAmount: {
|
375
|
+
currency: string;
|
376
|
+
grossAmount: number;
|
377
|
+
netAmount: number;
|
378
|
+
vatType: string;
|
379
|
+
vatPercent: number;
|
380
|
+
};
|
381
|
+
}[] | undefined;
|
382
|
+
taxDetails?: {
|
383
|
+
vatType: string;
|
384
|
+
vatPercent: number;
|
385
|
+
net: {
|
386
|
+
currency: string;
|
387
|
+
amount: number;
|
388
|
+
};
|
389
|
+
tax: {
|
390
|
+
currency: string;
|
391
|
+
amount: number;
|
392
|
+
};
|
393
|
+
}[] | undefined;
|
394
|
+
}, {
|
395
|
+
availableUnits: number;
|
396
|
+
totalGrossAmount: {
|
397
|
+
currency: string;
|
398
|
+
amount: number;
|
399
|
+
};
|
400
|
+
arrival: string;
|
401
|
+
departure: string;
|
402
|
+
unitGroup: {
|
403
|
+
type: string;
|
404
|
+
code: string;
|
405
|
+
id: string;
|
406
|
+
name: string;
|
407
|
+
description: string;
|
408
|
+
maxPersons: number;
|
409
|
+
};
|
410
|
+
minGuaranteeType: string;
|
411
|
+
ratePlan: {
|
412
|
+
code: string;
|
413
|
+
id: string;
|
414
|
+
name: string;
|
415
|
+
description: string;
|
416
|
+
isSubjectToCityTax: boolean;
|
417
|
+
};
|
418
|
+
timeSlices: {
|
419
|
+
from: string;
|
420
|
+
to: string;
|
421
|
+
availableUnits: number;
|
422
|
+
baseAmount: {
|
423
|
+
currency: string;
|
424
|
+
grossAmount: number;
|
425
|
+
netAmount: number;
|
426
|
+
vatType: string;
|
427
|
+
vatPercent: number;
|
428
|
+
};
|
429
|
+
totalGrossAmount: {
|
430
|
+
currency: string;
|
431
|
+
amount: number;
|
432
|
+
};
|
433
|
+
}[];
|
434
|
+
isCorporate: boolean;
|
435
|
+
prePaymentAmount: {
|
436
|
+
currency: string;
|
437
|
+
amount: number;
|
438
|
+
};
|
439
|
+
cancellationFee?: {
|
440
|
+
code: string;
|
441
|
+
name: string;
|
442
|
+
description: string;
|
443
|
+
dueDateTime: string;
|
444
|
+
fee: {
|
445
|
+
currency: string;
|
446
|
+
amount: number;
|
447
|
+
};
|
448
|
+
} | undefined;
|
449
|
+
noShowFee?: {
|
450
|
+
code: string;
|
451
|
+
name: string;
|
452
|
+
description: string;
|
453
|
+
fee: {
|
454
|
+
currency: string;
|
455
|
+
amount: number;
|
456
|
+
};
|
457
|
+
} | undefined;
|
458
|
+
fees?: {
|
459
|
+
code: string;
|
460
|
+
id: string;
|
461
|
+
name: string;
|
462
|
+
totalAmount: {
|
463
|
+
currency: string;
|
464
|
+
grossAmount: number;
|
465
|
+
netAmount: number;
|
466
|
+
vatType: string;
|
467
|
+
vatPercent: number;
|
468
|
+
};
|
469
|
+
}[] | undefined;
|
470
|
+
taxDetails?: {
|
471
|
+
vatType: string;
|
472
|
+
vatPercent: number;
|
473
|
+
net: {
|
474
|
+
currency: string;
|
475
|
+
amount: number;
|
476
|
+
};
|
477
|
+
tax: {
|
478
|
+
currency: string;
|
479
|
+
amount: number;
|
480
|
+
};
|
481
|
+
}[] | undefined;
|
482
|
+
}>, "many">;
|
483
|
+
}, "strip", import("zod").ZodTypeAny, {
|
484
|
+
property: {
|
485
|
+
code: string;
|
486
|
+
id: string;
|
487
|
+
name: string;
|
488
|
+
description: string;
|
489
|
+
};
|
490
|
+
offers: {
|
491
|
+
availableUnits: number;
|
492
|
+
totalGrossAmount: {
|
493
|
+
currency: string;
|
494
|
+
amount: number;
|
495
|
+
};
|
496
|
+
arrival: string;
|
497
|
+
departure: string;
|
498
|
+
unitGroup: {
|
499
|
+
type: string;
|
500
|
+
code: string;
|
501
|
+
id: string;
|
502
|
+
name: string;
|
503
|
+
description: string;
|
504
|
+
maxPersons: number;
|
505
|
+
};
|
506
|
+
minGuaranteeType: string;
|
507
|
+
ratePlan: {
|
508
|
+
code: string;
|
509
|
+
id: string;
|
510
|
+
name: string;
|
511
|
+
description: string;
|
512
|
+
isSubjectToCityTax: boolean;
|
513
|
+
};
|
514
|
+
timeSlices: {
|
515
|
+
from: string;
|
516
|
+
to: string;
|
517
|
+
availableUnits: number;
|
518
|
+
baseAmount: {
|
519
|
+
currency: string;
|
520
|
+
grossAmount: number;
|
521
|
+
netAmount: number;
|
522
|
+
vatType: string;
|
523
|
+
vatPercent: number;
|
524
|
+
};
|
525
|
+
totalGrossAmount: {
|
526
|
+
currency: string;
|
527
|
+
amount: number;
|
528
|
+
};
|
529
|
+
}[];
|
530
|
+
isCorporate: boolean;
|
531
|
+
prePaymentAmount: {
|
532
|
+
currency: string;
|
533
|
+
amount: number;
|
534
|
+
};
|
535
|
+
cancellationFee?: {
|
536
|
+
code: string;
|
537
|
+
name: string;
|
538
|
+
description: string;
|
539
|
+
dueDateTime: string;
|
540
|
+
fee: {
|
541
|
+
currency: string;
|
542
|
+
amount: number;
|
543
|
+
};
|
544
|
+
} | undefined;
|
545
|
+
noShowFee?: {
|
546
|
+
code: string;
|
547
|
+
name: string;
|
548
|
+
description: string;
|
549
|
+
fee: {
|
550
|
+
currency: string;
|
551
|
+
amount: number;
|
552
|
+
};
|
553
|
+
} | undefined;
|
554
|
+
fees?: {
|
555
|
+
code: string;
|
556
|
+
id: string;
|
557
|
+
name: string;
|
558
|
+
totalAmount: {
|
559
|
+
currency: string;
|
560
|
+
grossAmount: number;
|
561
|
+
netAmount: number;
|
562
|
+
vatType: string;
|
563
|
+
vatPercent: number;
|
564
|
+
};
|
565
|
+
}[] | undefined;
|
566
|
+
taxDetails?: {
|
567
|
+
vatType: string;
|
568
|
+
vatPercent: number;
|
569
|
+
net: {
|
570
|
+
currency: string;
|
571
|
+
amount: number;
|
572
|
+
};
|
573
|
+
tax: {
|
574
|
+
currency: string;
|
575
|
+
amount: number;
|
576
|
+
};
|
577
|
+
}[] | undefined;
|
578
|
+
}[];
|
579
|
+
}, {
|
580
|
+
property: {
|
581
|
+
code: string;
|
582
|
+
id: string;
|
583
|
+
name: string;
|
584
|
+
description: string;
|
585
|
+
};
|
586
|
+
offers: {
|
587
|
+
availableUnits: number;
|
588
|
+
totalGrossAmount: {
|
589
|
+
currency: string;
|
590
|
+
amount: number;
|
591
|
+
};
|
592
|
+
arrival: string;
|
593
|
+
departure: string;
|
594
|
+
unitGroup: {
|
595
|
+
type: string;
|
596
|
+
code: string;
|
597
|
+
id: string;
|
598
|
+
name: string;
|
599
|
+
description: string;
|
600
|
+
maxPersons: number;
|
601
|
+
};
|
602
|
+
minGuaranteeType: string;
|
603
|
+
ratePlan: {
|
604
|
+
code: string;
|
605
|
+
id: string;
|
606
|
+
name: string;
|
607
|
+
description: string;
|
608
|
+
isSubjectToCityTax: boolean;
|
609
|
+
};
|
610
|
+
timeSlices: {
|
611
|
+
from: string;
|
612
|
+
to: string;
|
613
|
+
availableUnits: number;
|
614
|
+
baseAmount: {
|
615
|
+
currency: string;
|
616
|
+
grossAmount: number;
|
617
|
+
netAmount: number;
|
618
|
+
vatType: string;
|
619
|
+
vatPercent: number;
|
620
|
+
};
|
621
|
+
totalGrossAmount: {
|
622
|
+
currency: string;
|
623
|
+
amount: number;
|
624
|
+
};
|
625
|
+
}[];
|
626
|
+
isCorporate: boolean;
|
627
|
+
prePaymentAmount: {
|
628
|
+
currency: string;
|
629
|
+
amount: number;
|
630
|
+
};
|
631
|
+
cancellationFee?: {
|
632
|
+
code: string;
|
633
|
+
name: string;
|
634
|
+
description: string;
|
635
|
+
dueDateTime: string;
|
636
|
+
fee: {
|
637
|
+
currency: string;
|
638
|
+
amount: number;
|
639
|
+
};
|
640
|
+
} | undefined;
|
641
|
+
noShowFee?: {
|
642
|
+
code: string;
|
643
|
+
name: string;
|
644
|
+
description: string;
|
645
|
+
fee: {
|
646
|
+
currency: string;
|
647
|
+
amount: number;
|
648
|
+
};
|
649
|
+
} | undefined;
|
650
|
+
fees?: {
|
651
|
+
code: string;
|
652
|
+
id: string;
|
653
|
+
name: string;
|
654
|
+
totalAmount: {
|
655
|
+
currency: string;
|
656
|
+
grossAmount: number;
|
657
|
+
netAmount: number;
|
658
|
+
vatType: string;
|
659
|
+
vatPercent: number;
|
660
|
+
};
|
661
|
+
}[] | undefined;
|
662
|
+
taxDetails?: {
|
663
|
+
vatType: string;
|
664
|
+
vatPercent: number;
|
665
|
+
net: {
|
666
|
+
currency: string;
|
667
|
+
amount: number;
|
668
|
+
};
|
669
|
+
tax: {
|
670
|
+
currency: string;
|
671
|
+
amount: number;
|
672
|
+
};
|
673
|
+
}[] | undefined;
|
674
|
+
}[];
|
675
|
+
}>;
|
@@ -0,0 +1,111 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ApaleoOfferSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const totalAmountSchema = (0, zod_1.object)({
|
6
|
+
grossAmount: (0, zod_1.number)(),
|
7
|
+
netAmount: (0, zod_1.number)(),
|
8
|
+
vatType: (0, zod_1.string)(),
|
9
|
+
vatPercent: (0, zod_1.number)(),
|
10
|
+
currency: (0, zod_1.string)(),
|
11
|
+
});
|
12
|
+
const baseAmountSchema = (0, zod_1.object)({
|
13
|
+
grossAmount: (0, zod_1.number)(),
|
14
|
+
netAmount: (0, zod_1.number)(),
|
15
|
+
vatType: (0, zod_1.string)(),
|
16
|
+
vatPercent: (0, zod_1.number)(),
|
17
|
+
currency: (0, zod_1.string)(),
|
18
|
+
});
|
19
|
+
const timeSliceSchema = (0, zod_1.object)({
|
20
|
+
from: (0, zod_1.string)(),
|
21
|
+
to: (0, zod_1.string)(),
|
22
|
+
availableUnits: (0, zod_1.number)(),
|
23
|
+
baseAmount: baseAmountSchema,
|
24
|
+
totalGrossAmount: (0, zod_1.object)({
|
25
|
+
amount: (0, zod_1.number)(),
|
26
|
+
currency: (0, zod_1.string)(),
|
27
|
+
}),
|
28
|
+
});
|
29
|
+
const feeSchema = (0, zod_1.object)({
|
30
|
+
id: (0, zod_1.string)(),
|
31
|
+
code: (0, zod_1.string)(),
|
32
|
+
name: (0, zod_1.string)(),
|
33
|
+
totalAmount: totalAmountSchema,
|
34
|
+
});
|
35
|
+
const taxDetailsSchema = (0, zod_1.object)({
|
36
|
+
vatType: (0, zod_1.string)(),
|
37
|
+
vatPercent: (0, zod_1.number)(),
|
38
|
+
net: (0, zod_1.object)({
|
39
|
+
amount: (0, zod_1.number)(),
|
40
|
+
currency: (0, zod_1.string)(),
|
41
|
+
}),
|
42
|
+
tax: (0, zod_1.object)({
|
43
|
+
amount: (0, zod_1.number)(),
|
44
|
+
currency: (0, zod_1.string)(),
|
45
|
+
}),
|
46
|
+
});
|
47
|
+
const cancellationFeeSchema = (0, zod_1.object)({
|
48
|
+
code: (0, zod_1.string)(),
|
49
|
+
name: (0, zod_1.string)(),
|
50
|
+
description: (0, zod_1.string)(),
|
51
|
+
dueDateTime: (0, zod_1.string)(),
|
52
|
+
fee: (0, zod_1.object)({
|
53
|
+
amount: (0, zod_1.number)(),
|
54
|
+
currency: (0, zod_1.string)(),
|
55
|
+
}),
|
56
|
+
});
|
57
|
+
const noShowFeeSchema = (0, zod_1.object)({
|
58
|
+
code: (0, zod_1.string)(),
|
59
|
+
name: (0, zod_1.string)(),
|
60
|
+
description: (0, zod_1.string)(),
|
61
|
+
fee: (0, zod_1.object)({
|
62
|
+
amount: (0, zod_1.number)(),
|
63
|
+
currency: (0, zod_1.string)(),
|
64
|
+
}),
|
65
|
+
});
|
66
|
+
const ratePlanSchema = (0, zod_1.object)({
|
67
|
+
id: (0, zod_1.string)(),
|
68
|
+
code: (0, zod_1.string)(),
|
69
|
+
name: (0, zod_1.string)(),
|
70
|
+
description: (0, zod_1.string)(),
|
71
|
+
isSubjectToCityTax: (0, zod_1.boolean)(),
|
72
|
+
});
|
73
|
+
const unitGroupSchema = (0, zod_1.object)({
|
74
|
+
id: (0, zod_1.string)(),
|
75
|
+
code: (0, zod_1.string)(),
|
76
|
+
name: (0, zod_1.string)(),
|
77
|
+
description: (0, zod_1.string)(),
|
78
|
+
maxPersons: (0, zod_1.number)(),
|
79
|
+
type: (0, zod_1.string)(),
|
80
|
+
});
|
81
|
+
const offerSchema = (0, zod_1.object)({
|
82
|
+
arrival: (0, zod_1.string)(),
|
83
|
+
departure: (0, zod_1.string)(),
|
84
|
+
unitGroup: unitGroupSchema,
|
85
|
+
minGuaranteeType: (0, zod_1.string)(),
|
86
|
+
availableUnits: (0, zod_1.number)(),
|
87
|
+
ratePlan: ratePlanSchema,
|
88
|
+
totalGrossAmount: (0, zod_1.object)({
|
89
|
+
amount: (0, zod_1.number)(),
|
90
|
+
currency: (0, zod_1.string)(),
|
91
|
+
}),
|
92
|
+
cancellationFee: cancellationFeeSchema.optional(),
|
93
|
+
noShowFee: noShowFeeSchema.optional(),
|
94
|
+
timeSlices: (0, zod_1.array)(timeSliceSchema),
|
95
|
+
fees: (0, zod_1.array)(feeSchema).optional(),
|
96
|
+
taxDetails: (0, zod_1.array)(taxDetailsSchema).optional(),
|
97
|
+
isCorporate: (0, zod_1.boolean)(),
|
98
|
+
prePaymentAmount: (0, zod_1.object)({
|
99
|
+
amount: (0, zod_1.number)(),
|
100
|
+
currency: (0, zod_1.string)(),
|
101
|
+
}),
|
102
|
+
});
|
103
|
+
exports.ApaleoOfferSchema = (0, zod_1.object)({
|
104
|
+
property: (0, zod_1.object)({
|
105
|
+
id: (0, zod_1.string)(),
|
106
|
+
code: (0, zod_1.string)(),
|
107
|
+
name: (0, zod_1.string)(),
|
108
|
+
description: (0, zod_1.string)(),
|
109
|
+
}),
|
110
|
+
offers: (0, zod_1.array)(offerSchema),
|
111
|
+
});
|
@@ -0,0 +1,68 @@
|
|
1
|
+
export declare const calendarEntrySchema: import("zod").ZodObject<{
|
2
|
+
id: import("zod").ZodNumber;
|
3
|
+
date: import("zod").ZodString;
|
4
|
+
status: import("zod").ZodString;
|
5
|
+
currency: import("zod").ZodString;
|
6
|
+
price: import("zod").ZodNumber;
|
7
|
+
base_price: import("zod").ZodNumber;
|
8
|
+
note: import("zod").ZodNullable<import("zod").ZodString>;
|
9
|
+
reservation_id: import("zod").ZodNullable<import("zod").ZodNumber>;
|
10
|
+
listing_id: import("zod").ZodString;
|
11
|
+
auto_pricing: import("zod").ZodNumber;
|
12
|
+
}, "strip", import("zod").ZodTypeAny, {
|
13
|
+
id: number;
|
14
|
+
status: string;
|
15
|
+
currency: string;
|
16
|
+
date: string;
|
17
|
+
price: number;
|
18
|
+
base_price: number;
|
19
|
+
note: string | null;
|
20
|
+
reservation_id: number | null;
|
21
|
+
listing_id: string;
|
22
|
+
auto_pricing: number;
|
23
|
+
}, {
|
24
|
+
id: number;
|
25
|
+
status: string;
|
26
|
+
currency: string;
|
27
|
+
date: string;
|
28
|
+
price: number;
|
29
|
+
base_price: number;
|
30
|
+
note: string | null;
|
31
|
+
reservation_id: number | null;
|
32
|
+
listing_id: string;
|
33
|
+
auto_pricing: number;
|
34
|
+
}>;
|
35
|
+
export declare const calendarSchema: import("zod").ZodArray<import("zod").ZodObject<{
|
36
|
+
id: import("zod").ZodNumber;
|
37
|
+
date: import("zod").ZodString;
|
38
|
+
status: import("zod").ZodString;
|
39
|
+
currency: import("zod").ZodString;
|
40
|
+
price: import("zod").ZodNumber;
|
41
|
+
base_price: import("zod").ZodNumber;
|
42
|
+
note: import("zod").ZodNullable<import("zod").ZodString>;
|
43
|
+
reservation_id: import("zod").ZodNullable<import("zod").ZodNumber>;
|
44
|
+
listing_id: import("zod").ZodString;
|
45
|
+
auto_pricing: import("zod").ZodNumber;
|
46
|
+
}, "strip", import("zod").ZodTypeAny, {
|
47
|
+
id: number;
|
48
|
+
status: string;
|
49
|
+
currency: string;
|
50
|
+
date: string;
|
51
|
+
price: number;
|
52
|
+
base_price: number;
|
53
|
+
note: string | null;
|
54
|
+
reservation_id: number | null;
|
55
|
+
listing_id: string;
|
56
|
+
auto_pricing: number;
|
57
|
+
}, {
|
58
|
+
id: number;
|
59
|
+
status: string;
|
60
|
+
currency: string;
|
61
|
+
date: string;
|
62
|
+
price: number;
|
63
|
+
base_price: number;
|
64
|
+
note: string | null;
|
65
|
+
reservation_id: number | null;
|
66
|
+
listing_id: string;
|
67
|
+
auto_pricing: number;
|
68
|
+
}>, "many">;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.calendarSchema = exports.calendarEntrySchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.calendarEntrySchema = (0, zod_1.object)({
|
6
|
+
id: (0, zod_1.number)(),
|
7
|
+
date: (0, zod_1.string)(),
|
8
|
+
status: (0, zod_1.string)(),
|
9
|
+
currency: (0, zod_1.string)(),
|
10
|
+
price: (0, zod_1.number)(),
|
11
|
+
base_price: (0, zod_1.number)(),
|
12
|
+
note: (0, zod_1.string)().nullable(),
|
13
|
+
reservation_id: (0, zod_1.number)().nullable(),
|
14
|
+
listing_id: (0, zod_1.string)(),
|
15
|
+
auto_pricing: (0, zod_1.number)().int(),
|
16
|
+
});
|
17
|
+
exports.calendarSchema = (0, zod_1.array)(exports.calendarEntrySchema);
|