hububb-models 1.0.98 → 1.0.100

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
1
  import { z } from "zod";
2
- import { ApaleoOfferSchema } from "../../schemas/apaleo/offer";
2
+ import { ApaleoOfferSchema, offerSchema } from "../../schemas/apaleo/offer";
3
3
  export type ApaleoOffer = z.infer<typeof ApaleoOfferSchema>;
4
+ export type ApaleoPropertyOffer = z.infer<typeof offerSchema>;
@@ -1,3 +1,468 @@
1
+ export declare const offerSchema: import("zod").ZodObject<{
2
+ arrival: import("zod").ZodString;
3
+ departure: import("zod").ZodString;
4
+ unitGroup: import("zod").ZodObject<{
5
+ id: import("zod").ZodString;
6
+ code: import("zod").ZodString;
7
+ name: import("zod").ZodString;
8
+ description: import("zod").ZodString;
9
+ maxPersons: import("zod").ZodNumber;
10
+ type: import("zod").ZodString;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ type: string;
13
+ code: string;
14
+ id: string;
15
+ name: string;
16
+ description: string;
17
+ maxPersons: number;
18
+ }, {
19
+ type: string;
20
+ code: string;
21
+ id: string;
22
+ name: string;
23
+ description: string;
24
+ maxPersons: number;
25
+ }>;
26
+ minGuaranteeType: import("zod").ZodString;
27
+ availableUnits: import("zod").ZodNumber;
28
+ ratePlan: import("zod").ZodObject<{
29
+ id: import("zod").ZodString;
30
+ code: import("zod").ZodString;
31
+ name: import("zod").ZodString;
32
+ description: import("zod").ZodString;
33
+ isSubjectToCityTax: import("zod").ZodBoolean;
34
+ }, "strip", import("zod").ZodTypeAny, {
35
+ code: string;
36
+ id: string;
37
+ name: string;
38
+ description: string;
39
+ isSubjectToCityTax: boolean;
40
+ }, {
41
+ code: string;
42
+ id: string;
43
+ name: string;
44
+ description: string;
45
+ isSubjectToCityTax: boolean;
46
+ }>;
47
+ totalGrossAmount: import("zod").ZodObject<{
48
+ amount: import("zod").ZodNumber;
49
+ currency: import("zod").ZodString;
50
+ }, "strip", import("zod").ZodTypeAny, {
51
+ currency: string;
52
+ amount: number;
53
+ }, {
54
+ currency: string;
55
+ amount: number;
56
+ }>;
57
+ cancellationFee: import("zod").ZodOptional<import("zod").ZodObject<{
58
+ code: import("zod").ZodString;
59
+ name: import("zod").ZodString;
60
+ description: import("zod").ZodString;
61
+ dueDateTime: import("zod").ZodString;
62
+ fee: import("zod").ZodObject<{
63
+ amount: import("zod").ZodNumber;
64
+ currency: import("zod").ZodString;
65
+ }, "strip", import("zod").ZodTypeAny, {
66
+ currency: string;
67
+ amount: number;
68
+ }, {
69
+ currency: string;
70
+ amount: number;
71
+ }>;
72
+ }, "strip", import("zod").ZodTypeAny, {
73
+ code: string;
74
+ name: string;
75
+ description: string;
76
+ dueDateTime: string;
77
+ fee: {
78
+ currency: string;
79
+ amount: number;
80
+ };
81
+ }, {
82
+ code: string;
83
+ name: string;
84
+ description: string;
85
+ dueDateTime: string;
86
+ fee: {
87
+ currency: string;
88
+ amount: number;
89
+ };
90
+ }>>;
91
+ noShowFee: import("zod").ZodOptional<import("zod").ZodObject<{
92
+ code: import("zod").ZodString;
93
+ name: import("zod").ZodString;
94
+ description: import("zod").ZodString;
95
+ fee: import("zod").ZodObject<{
96
+ amount: import("zod").ZodNumber;
97
+ currency: import("zod").ZodString;
98
+ }, "strip", import("zod").ZodTypeAny, {
99
+ currency: string;
100
+ amount: number;
101
+ }, {
102
+ currency: string;
103
+ amount: number;
104
+ }>;
105
+ }, "strip", import("zod").ZodTypeAny, {
106
+ code: string;
107
+ name: string;
108
+ description: string;
109
+ fee: {
110
+ currency: string;
111
+ amount: number;
112
+ };
113
+ }, {
114
+ code: string;
115
+ name: string;
116
+ description: string;
117
+ fee: {
118
+ currency: string;
119
+ amount: number;
120
+ };
121
+ }>>;
122
+ timeSlices: import("zod").ZodArray<import("zod").ZodObject<{
123
+ from: import("zod").ZodString;
124
+ to: import("zod").ZodString;
125
+ availableUnits: import("zod").ZodNumber;
126
+ baseAmount: import("zod").ZodObject<{
127
+ grossAmount: import("zod").ZodNumber;
128
+ netAmount: import("zod").ZodNumber;
129
+ vatType: import("zod").ZodString;
130
+ vatPercent: import("zod").ZodNumber;
131
+ currency: import("zod").ZodString;
132
+ }, "strip", import("zod").ZodTypeAny, {
133
+ currency: string;
134
+ grossAmount: number;
135
+ netAmount: number;
136
+ vatType: string;
137
+ vatPercent: number;
138
+ }, {
139
+ currency: string;
140
+ grossAmount: number;
141
+ netAmount: number;
142
+ vatType: string;
143
+ vatPercent: number;
144
+ }>;
145
+ totalGrossAmount: import("zod").ZodObject<{
146
+ amount: import("zod").ZodNumber;
147
+ currency: import("zod").ZodString;
148
+ }, "strip", import("zod").ZodTypeAny, {
149
+ currency: string;
150
+ amount: number;
151
+ }, {
152
+ currency: string;
153
+ amount: number;
154
+ }>;
155
+ }, "strip", import("zod").ZodTypeAny, {
156
+ from: string;
157
+ to: string;
158
+ availableUnits: number;
159
+ baseAmount: {
160
+ currency: string;
161
+ grossAmount: number;
162
+ netAmount: number;
163
+ vatType: string;
164
+ vatPercent: number;
165
+ };
166
+ totalGrossAmount: {
167
+ currency: string;
168
+ amount: number;
169
+ };
170
+ }, {
171
+ from: string;
172
+ to: string;
173
+ availableUnits: number;
174
+ baseAmount: {
175
+ currency: string;
176
+ grossAmount: number;
177
+ netAmount: number;
178
+ vatType: string;
179
+ vatPercent: number;
180
+ };
181
+ totalGrossAmount: {
182
+ currency: string;
183
+ amount: number;
184
+ };
185
+ }>, "many">;
186
+ fees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
187
+ id: import("zod").ZodString;
188
+ code: import("zod").ZodString;
189
+ name: import("zod").ZodString;
190
+ totalAmount: import("zod").ZodObject<{
191
+ grossAmount: import("zod").ZodNumber;
192
+ netAmount: import("zod").ZodNumber;
193
+ vatType: import("zod").ZodString;
194
+ vatPercent: import("zod").ZodNumber;
195
+ currency: import("zod").ZodString;
196
+ }, "strip", import("zod").ZodTypeAny, {
197
+ currency: string;
198
+ grossAmount: number;
199
+ netAmount: number;
200
+ vatType: string;
201
+ vatPercent: number;
202
+ }, {
203
+ currency: string;
204
+ grossAmount: number;
205
+ netAmount: number;
206
+ vatType: string;
207
+ vatPercent: number;
208
+ }>;
209
+ }, "strip", import("zod").ZodTypeAny, {
210
+ code: string;
211
+ id: string;
212
+ name: string;
213
+ totalAmount: {
214
+ currency: string;
215
+ grossAmount: number;
216
+ netAmount: number;
217
+ vatType: string;
218
+ vatPercent: number;
219
+ };
220
+ }, {
221
+ code: string;
222
+ id: string;
223
+ name: string;
224
+ totalAmount: {
225
+ currency: string;
226
+ grossAmount: number;
227
+ netAmount: number;
228
+ vatType: string;
229
+ vatPercent: number;
230
+ };
231
+ }>, "many">>;
232
+ taxDetails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
233
+ vatType: import("zod").ZodString;
234
+ vatPercent: import("zod").ZodNumber;
235
+ net: import("zod").ZodObject<{
236
+ amount: import("zod").ZodNumber;
237
+ currency: import("zod").ZodString;
238
+ }, "strip", import("zod").ZodTypeAny, {
239
+ currency: string;
240
+ amount: number;
241
+ }, {
242
+ currency: string;
243
+ amount: number;
244
+ }>;
245
+ tax: import("zod").ZodObject<{
246
+ amount: import("zod").ZodNumber;
247
+ currency: import("zod").ZodString;
248
+ }, "strip", import("zod").ZodTypeAny, {
249
+ currency: string;
250
+ amount: number;
251
+ }, {
252
+ currency: string;
253
+ amount: number;
254
+ }>;
255
+ }, "strip", import("zod").ZodTypeAny, {
256
+ net: {
257
+ currency: string;
258
+ amount: number;
259
+ };
260
+ vatType: string;
261
+ vatPercent: number;
262
+ tax: {
263
+ currency: string;
264
+ amount: number;
265
+ };
266
+ }, {
267
+ net: {
268
+ currency: string;
269
+ amount: number;
270
+ };
271
+ vatType: string;
272
+ vatPercent: number;
273
+ tax: {
274
+ currency: string;
275
+ amount: number;
276
+ };
277
+ }>, "many">>;
278
+ isCorporate: import("zod").ZodBoolean;
279
+ prePaymentAmount: import("zod").ZodObject<{
280
+ amount: import("zod").ZodNumber;
281
+ currency: import("zod").ZodString;
282
+ }, "strip", import("zod").ZodTypeAny, {
283
+ currency: string;
284
+ amount: number;
285
+ }, {
286
+ currency: string;
287
+ amount: number;
288
+ }>;
289
+ }, "strip", import("zod").ZodTypeAny, {
290
+ arrival: string;
291
+ departure: string;
292
+ timeSlices: {
293
+ from: string;
294
+ to: string;
295
+ availableUnits: number;
296
+ baseAmount: {
297
+ currency: string;
298
+ grossAmount: number;
299
+ netAmount: number;
300
+ vatType: string;
301
+ vatPercent: number;
302
+ };
303
+ totalGrossAmount: {
304
+ currency: string;
305
+ amount: number;
306
+ };
307
+ }[];
308
+ prePaymentAmount: {
309
+ currency: string;
310
+ amount: number;
311
+ };
312
+ availableUnits: number;
313
+ totalGrossAmount: {
314
+ currency: string;
315
+ amount: number;
316
+ };
317
+ unitGroup: {
318
+ type: string;
319
+ code: string;
320
+ id: string;
321
+ name: string;
322
+ description: string;
323
+ maxPersons: number;
324
+ };
325
+ minGuaranteeType: string;
326
+ ratePlan: {
327
+ code: string;
328
+ id: string;
329
+ name: string;
330
+ description: string;
331
+ isSubjectToCityTax: boolean;
332
+ };
333
+ isCorporate: boolean;
334
+ cancellationFee?: {
335
+ code: string;
336
+ name: string;
337
+ description: string;
338
+ dueDateTime: string;
339
+ fee: {
340
+ currency: string;
341
+ amount: number;
342
+ };
343
+ } | undefined;
344
+ noShowFee?: {
345
+ code: string;
346
+ name: string;
347
+ description: string;
348
+ fee: {
349
+ currency: string;
350
+ amount: number;
351
+ };
352
+ } | undefined;
353
+ fees?: {
354
+ code: string;
355
+ id: string;
356
+ name: string;
357
+ totalAmount: {
358
+ currency: string;
359
+ grossAmount: number;
360
+ netAmount: number;
361
+ vatType: string;
362
+ vatPercent: number;
363
+ };
364
+ }[] | undefined;
365
+ taxDetails?: {
366
+ net: {
367
+ currency: string;
368
+ amount: number;
369
+ };
370
+ vatType: string;
371
+ vatPercent: number;
372
+ tax: {
373
+ currency: string;
374
+ amount: number;
375
+ };
376
+ }[] | undefined;
377
+ }, {
378
+ arrival: string;
379
+ departure: string;
380
+ timeSlices: {
381
+ from: string;
382
+ to: string;
383
+ availableUnits: number;
384
+ baseAmount: {
385
+ currency: string;
386
+ grossAmount: number;
387
+ netAmount: number;
388
+ vatType: string;
389
+ vatPercent: number;
390
+ };
391
+ totalGrossAmount: {
392
+ currency: string;
393
+ amount: number;
394
+ };
395
+ }[];
396
+ prePaymentAmount: {
397
+ currency: string;
398
+ amount: number;
399
+ };
400
+ availableUnits: number;
401
+ totalGrossAmount: {
402
+ currency: string;
403
+ amount: number;
404
+ };
405
+ unitGroup: {
406
+ type: string;
407
+ code: string;
408
+ id: string;
409
+ name: string;
410
+ description: string;
411
+ maxPersons: number;
412
+ };
413
+ minGuaranteeType: string;
414
+ ratePlan: {
415
+ code: string;
416
+ id: string;
417
+ name: string;
418
+ description: string;
419
+ isSubjectToCityTax: boolean;
420
+ };
421
+ isCorporate: boolean;
422
+ cancellationFee?: {
423
+ code: string;
424
+ name: string;
425
+ description: string;
426
+ dueDateTime: string;
427
+ fee: {
428
+ currency: string;
429
+ amount: number;
430
+ };
431
+ } | undefined;
432
+ noShowFee?: {
433
+ code: string;
434
+ name: string;
435
+ description: string;
436
+ fee: {
437
+ currency: string;
438
+ amount: number;
439
+ };
440
+ } | undefined;
441
+ fees?: {
442
+ code: string;
443
+ id: string;
444
+ name: string;
445
+ totalAmount: {
446
+ currency: string;
447
+ grossAmount: number;
448
+ netAmount: number;
449
+ vatType: string;
450
+ vatPercent: number;
451
+ };
452
+ }[] | undefined;
453
+ taxDetails?: {
454
+ net: {
455
+ currency: string;
456
+ amount: number;
457
+ };
458
+ vatType: string;
459
+ vatPercent: number;
460
+ tax: {
461
+ currency: string;
462
+ amount: number;
463
+ };
464
+ }[] | undefined;
465
+ }>;
1
466
  export declare const ApaleoOfferSchema: import("zod").ZodObject<{
2
467
  property: import("zod").ZodObject<{
3
468
  id: import("zod").ZodString;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApaleoOfferSchema = void 0;
3
+ exports.ApaleoOfferSchema = exports.offerSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const totalAmountSchema = (0, zod_1.object)({
6
6
  grossAmount: (0, zod_1.number)(),
@@ -78,7 +78,7 @@ const unitGroupSchema = (0, zod_1.object)({
78
78
  maxPersons: (0, zod_1.number)(),
79
79
  type: (0, zod_1.string)(),
80
80
  });
81
- const offerSchema = (0, zod_1.object)({
81
+ exports.offerSchema = (0, zod_1.object)({
82
82
  arrival: (0, zod_1.string)(),
83
83
  departure: (0, zod_1.string)(),
84
84
  unitGroup: unitGroupSchema,
@@ -107,5 +107,5 @@ exports.ApaleoOfferSchema = (0, zod_1.object)({
107
107
  name: (0, zod_1.string)(),
108
108
  description: (0, zod_1.string)(),
109
109
  }),
110
- offers: (0, zod_1.array)(offerSchema),
110
+ offers: (0, zod_1.array)(exports.offerSchema),
111
111
  });
@@ -242,6 +242,172 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
242
242
  };
243
243
  }>;
244
244
  externalCode: import("zod").ZodOptional<import("zod").ZodString>;
245
+ services: import("zod").ZodArray<import("zod").ZodObject<{
246
+ service: import("zod").ZodObject<{
247
+ id: import("zod").ZodString;
248
+ code: import("zod").ZodString;
249
+ name: import("zod").ZodString;
250
+ description: import("zod").ZodString;
251
+ pricingUnit: import("zod").ZodString;
252
+ defaultGrossPrice: 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
+ }, "strip", import("zod").ZodTypeAny, {
263
+ code: string;
264
+ id: string;
265
+ name: string;
266
+ description: string;
267
+ pricingUnit: string;
268
+ defaultGrossPrice: {
269
+ currency: string;
270
+ amount: number;
271
+ };
272
+ }, {
273
+ code: string;
274
+ id: string;
275
+ name: string;
276
+ description: string;
277
+ pricingUnit: string;
278
+ defaultGrossPrice: {
279
+ currency: string;
280
+ amount: number;
281
+ };
282
+ }>;
283
+ totalAmount: import("zod").ZodObject<{
284
+ grossAmount: import("zod").ZodNumber;
285
+ netAmount: import("zod").ZodNumber;
286
+ vatType: import("zod").ZodString;
287
+ vatPercent: import("zod").ZodNumber;
288
+ currency: import("zod").ZodString;
289
+ }, "strip", import("zod").ZodTypeAny, {
290
+ currency: string;
291
+ grossAmount: number;
292
+ netAmount: number;
293
+ vatType: string;
294
+ vatPercent: number;
295
+ }, {
296
+ currency: string;
297
+ grossAmount: number;
298
+ netAmount: number;
299
+ vatType: string;
300
+ vatPercent: number;
301
+ }>;
302
+ dates: import("zod").ZodArray<import("zod").ZodObject<{
303
+ serviceDate: import("zod").ZodString;
304
+ count: import("zod").ZodNumber;
305
+ amount: import("zod").ZodObject<{
306
+ grossAmount: import("zod").ZodNumber;
307
+ netAmount: import("zod").ZodNumber;
308
+ vatType: import("zod").ZodString;
309
+ vatPercent: import("zod").ZodNumber;
310
+ currency: import("zod").ZodString;
311
+ }, "strip", import("zod").ZodTypeAny, {
312
+ currency: string;
313
+ grossAmount: number;
314
+ netAmount: number;
315
+ vatType: string;
316
+ vatPercent: number;
317
+ }, {
318
+ currency: string;
319
+ grossAmount: number;
320
+ netAmount: number;
321
+ vatType: string;
322
+ vatPercent: number;
323
+ }>;
324
+ isMandatory: import("zod").ZodBoolean;
325
+ }, "strip", import("zod").ZodTypeAny, {
326
+ count: number;
327
+ amount: {
328
+ currency: string;
329
+ grossAmount: number;
330
+ netAmount: number;
331
+ vatType: string;
332
+ vatPercent: number;
333
+ };
334
+ serviceDate: string;
335
+ isMandatory: boolean;
336
+ }, {
337
+ count: number;
338
+ amount: {
339
+ currency: string;
340
+ grossAmount: number;
341
+ netAmount: number;
342
+ vatType: string;
343
+ vatPercent: number;
344
+ };
345
+ serviceDate: string;
346
+ isMandatory: boolean;
347
+ }>, "many">;
348
+ }, "strip", import("zod").ZodTypeAny, {
349
+ service: {
350
+ code: string;
351
+ id: string;
352
+ name: string;
353
+ description: string;
354
+ pricingUnit: string;
355
+ defaultGrossPrice: {
356
+ currency: string;
357
+ amount: number;
358
+ };
359
+ };
360
+ totalAmount: {
361
+ currency: string;
362
+ grossAmount: number;
363
+ netAmount: number;
364
+ vatType: string;
365
+ vatPercent: number;
366
+ };
367
+ dates: {
368
+ count: number;
369
+ amount: {
370
+ currency: string;
371
+ grossAmount: number;
372
+ netAmount: number;
373
+ vatType: string;
374
+ vatPercent: number;
375
+ };
376
+ serviceDate: string;
377
+ isMandatory: boolean;
378
+ }[];
379
+ }, {
380
+ service: {
381
+ code: string;
382
+ id: string;
383
+ name: string;
384
+ description: string;
385
+ pricingUnit: string;
386
+ defaultGrossPrice: {
387
+ currency: string;
388
+ amount: number;
389
+ };
390
+ };
391
+ totalAmount: {
392
+ currency: string;
393
+ grossAmount: number;
394
+ netAmount: number;
395
+ vatType: string;
396
+ vatPercent: number;
397
+ };
398
+ dates: {
399
+ count: number;
400
+ amount: {
401
+ currency: string;
402
+ grossAmount: number;
403
+ netAmount: number;
404
+ vatType: string;
405
+ vatPercent: number;
406
+ };
407
+ serviceDate: string;
408
+ isMandatory: boolean;
409
+ }[];
410
+ }>, "many">;
245
411
  }, "strip", import("zod").ZodTypeAny, {
246
412
  id: string;
247
413
  status: string;
@@ -256,6 +422,38 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
256
422
  firstName?: string | undefined;
257
423
  phone?: string | undefined;
258
424
  };
425
+ services: {
426
+ service: {
427
+ code: string;
428
+ id: string;
429
+ name: string;
430
+ description: string;
431
+ pricingUnit: string;
432
+ defaultGrossPrice: {
433
+ currency: string;
434
+ amount: number;
435
+ };
436
+ };
437
+ totalAmount: {
438
+ currency: string;
439
+ grossAmount: number;
440
+ netAmount: number;
441
+ vatType: string;
442
+ vatPercent: number;
443
+ };
444
+ dates: {
445
+ count: number;
446
+ amount: {
447
+ currency: string;
448
+ grossAmount: number;
449
+ netAmount: number;
450
+ vatType: string;
451
+ vatPercent: number;
452
+ };
453
+ serviceDate: string;
454
+ isMandatory: boolean;
455
+ }[];
456
+ }[];
259
457
  totalGrossAmount: {
260
458
  currency: string;
261
459
  amount: number;
@@ -344,6 +542,38 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
344
542
  firstName?: string | undefined;
345
543
  phone?: string | undefined;
346
544
  };
545
+ services: {
546
+ service: {
547
+ code: string;
548
+ id: string;
549
+ name: string;
550
+ description: string;
551
+ pricingUnit: string;
552
+ defaultGrossPrice: {
553
+ currency: string;
554
+ amount: number;
555
+ };
556
+ };
557
+ totalAmount: {
558
+ currency: string;
559
+ grossAmount: number;
560
+ netAmount: number;
561
+ vatType: string;
562
+ vatPercent: number;
563
+ };
564
+ dates: {
565
+ count: number;
566
+ amount: {
567
+ currency: string;
568
+ grossAmount: number;
569
+ netAmount: number;
570
+ vatType: string;
571
+ vatPercent: number;
572
+ };
573
+ serviceDate: string;
574
+ isMandatory: boolean;
575
+ }[];
576
+ }[];
347
577
  totalGrossAmount: {
348
578
  currency: string;
349
579
  amount: number;
@@ -56,6 +56,37 @@ const guestSchema = (0, zod_1.object)({
56
56
  const payableAmountSchema = (0, zod_1.object)({
57
57
  guest: amountSchema,
58
58
  });
59
+ const serviceDateSchema = (0, zod_1.object)({
60
+ serviceDate: (0, zod_1.string)(),
61
+ count: (0, zod_1.number)(),
62
+ amount: (0, zod_1.object)({
63
+ grossAmount: (0, zod_1.number)(),
64
+ netAmount: (0, zod_1.number)(),
65
+ vatType: (0, zod_1.string)(),
66
+ vatPercent: (0, zod_1.number)(),
67
+ currency: (0, zod_1.string)(),
68
+ }),
69
+ isMandatory: (0, zod_1.boolean)(),
70
+ });
71
+ const totalAmountSchema = (0, zod_1.object)({
72
+ grossAmount: (0, zod_1.number)(),
73
+ netAmount: (0, zod_1.number)(),
74
+ vatType: (0, zod_1.string)(),
75
+ vatPercent: (0, zod_1.number)(),
76
+ currency: (0, zod_1.string)(),
77
+ });
78
+ const serviceSchema = (0, zod_1.object)({
79
+ service: (0, zod_1.object)({
80
+ id: (0, zod_1.string)(),
81
+ code: (0, zod_1.string)(),
82
+ name: (0, zod_1.string)(),
83
+ description: (0, zod_1.string)(),
84
+ pricingUnit: (0, zod_1.string)(),
85
+ defaultGrossPrice: amountSchema,
86
+ }),
87
+ totalAmount: totalAmountSchema,
88
+ dates: (0, zod_1.array)(serviceDateSchema),
89
+ });
59
90
  const apaleoReservationSchema = (0, zod_1.object)({
60
91
  id: (0, zod_1.string)(),
61
92
  bookingId: (0, zod_1.string)(),
@@ -81,5 +112,6 @@ const apaleoReservationSchema = (0, zod_1.object)({
81
112
  hasCityTax: (0, zod_1.boolean)(),
82
113
  payableAmount: payableAmountSchema,
83
114
  externalCode: (0, zod_1.string)().optional(),
115
+ services: (0, zod_1.array)(serviceSchema),
84
116
  });
85
117
  exports.apaleoReservationSchema = apaleoReservationSchema;
@@ -18,16 +18,16 @@ export declare const ReservationSchema: import("zod").ZodObject<{
18
18
  id?: string | undefined;
19
19
  email?: string | undefined;
20
20
  fullName?: string | undefined;
21
- phone?: string | undefined;
22
21
  externalId?: string | undefined;
23
22
  ids?: string[] | undefined;
23
+ phone?: string | undefined;
24
24
  }, {
25
25
  id?: string | undefined;
26
26
  email?: string | undefined;
27
27
  fullName?: string | undefined;
28
- phone?: string | undefined;
29
28
  externalId?: string | undefined;
30
29
  ids?: string[] | undefined;
30
+ phone?: string | undefined;
31
31
  }>>;
32
32
  listing: import("zod").ZodOptional<import("zod").ZodObject<{
33
33
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -97,9 +97,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
97
97
  id?: string | undefined;
98
98
  email?: string | undefined;
99
99
  fullName?: string | undefined;
100
- phone?: string | undefined;
101
100
  externalId?: string | undefined;
102
101
  ids?: string[] | undefined;
102
+ phone?: string | undefined;
103
103
  } | undefined;
104
104
  klevio?: {
105
105
  from?: FirebaseFirestore.Timestamp | undefined;
@@ -136,9 +136,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
136
136
  id?: string | undefined;
137
137
  email?: string | undefined;
138
138
  fullName?: string | undefined;
139
- phone?: string | undefined;
140
139
  externalId?: string | undefined;
141
140
  ids?: string[] | undefined;
141
+ phone?: string | undefined;
142
142
  } | undefined;
143
143
  klevio?: {
144
144
  from?: FirebaseFirestore.Timestamp | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",