hububb-models 1.0.99 → 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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.99",
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",