hububb-models 1.0.97 → 1.0.99

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.
@@ -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;
@@ -508,6 +508,8 @@ export declare const ListingSchema: import("zod").ZodObject<{
508
508
  childIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
509
509
  city: import("zod").ZodOptional<import("zod").ZodString>;
510
510
  landlordId: import("zod").ZodOptional<import("zod").ZodString>;
511
+ apaleoPropertyId: import("zod").ZodOptional<import("zod").ZodString>;
512
+ apaleoUnitGroupId: import("zod").ZodOptional<import("zod").ZodString>;
511
513
  }, "strip", import("zod").ZodTypeAny, {
512
514
  address: {
513
515
  full: string;
@@ -633,6 +635,8 @@ export declare const ListingSchema: import("zod").ZodObject<{
633
635
  parentId?: string | undefined;
634
636
  childIds?: string[] | undefined;
635
637
  landlordId?: string | undefined;
638
+ apaleoPropertyId?: string | undefined;
639
+ apaleoUnitGroupId?: string | undefined;
636
640
  }, {
637
641
  address: {
638
642
  full: string;
@@ -758,4 +762,6 @@ export declare const ListingSchema: import("zod").ZodObject<{
758
762
  parentId?: string | undefined;
759
763
  childIds?: string[] | undefined;
760
764
  landlordId?: string | undefined;
765
+ apaleoPropertyId?: string | undefined;
766
+ apaleoUnitGroupId?: string | undefined;
761
767
  }>;
@@ -120,4 +120,6 @@ exports.ListingSchema = (0, zod_1.object)({
120
120
  childIds: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
121
121
  city: (0, zod_1.optional)((0, zod_1.string)()),
122
122
  landlordId: (0, zod_1.optional)((0, zod_1.string)()),
123
+ apaleoPropertyId: (0, zod_1.optional)((0, zod_1.string)()),
124
+ apaleoUnitGroupId: (0, zod_1.optional)((0, zod_1.string)()),
123
125
  });
@@ -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.97",
3
+ "version": "1.0.99",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",