hububb-models 1.0.64 → 1.0.66

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./schemas/reservation";
5
5
  export * from "./schemas/listing";
6
6
  export * from "./schemas/calendar";
7
7
  export * from "./schemas/apaleo/offer";
8
+ export * from "./schemas/apaleo/reservation";
8
9
  export * from "./models/user";
9
10
  export * from "./models/blog";
10
11
  export * from "./models/thread";
@@ -12,3 +13,4 @@ export * from "./models/reservation";
12
13
  export * from "./models/listing";
13
14
  export * from "./models/calendar";
14
15
  export * from "./models/apaleo/offer";
16
+ export * from "./models/apaleo/reservation";
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./schemas/reservation"), exports);
21
21
  __exportStar(require("./schemas/listing"), exports);
22
22
  __exportStar(require("./schemas/calendar"), exports);
23
23
  __exportStar(require("./schemas/apaleo/offer"), exports);
24
+ __exportStar(require("./schemas/apaleo/reservation"), exports);
24
25
  __exportStar(require("./models/user"), exports);
25
26
  __exportStar(require("./models/blog"), exports);
26
27
  __exportStar(require("./models/thread"), exports);
@@ -28,3 +29,4 @@ __exportStar(require("./models/reservation"), exports);
28
29
  __exportStar(require("./models/listing"), exports);
29
30
  __exportStar(require("./models/calendar"), exports);
30
31
  __exportStar(require("./models/apaleo/offer"), exports);
32
+ __exportStar(require("./models/apaleo/reservation"), exports);
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { apaleoReservationSchema } from "../../schemas/apaleo/reservation";
3
+ export type ApaleoReservation = z.infer<typeof apaleoReservationSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,416 @@
1
+ declare const apaleoReservationSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ bookingId: import("zod").ZodString;
4
+ status: import("zod").ZodString;
5
+ property: import("zod").ZodObject<{
6
+ id: import("zod").ZodString;
7
+ code: import("zod").ZodString;
8
+ name: import("zod").ZodString;
9
+ description: import("zod").ZodString;
10
+ }, "strip", import("zod").ZodTypeAny, {
11
+ code: string;
12
+ id: string;
13
+ name: string;
14
+ description: string;
15
+ }, {
16
+ code: string;
17
+ id: string;
18
+ name: string;
19
+ description: string;
20
+ }>;
21
+ ratePlan: import("zod").ZodObject<{
22
+ id: import("zod").ZodString;
23
+ code: import("zod").ZodString;
24
+ name: import("zod").ZodString;
25
+ description: import("zod").ZodString;
26
+ isSubjectToCityTax: import("zod").ZodBoolean;
27
+ }, "strip", import("zod").ZodTypeAny, {
28
+ code: string;
29
+ id: string;
30
+ name: string;
31
+ description: string;
32
+ isSubjectToCityTax: boolean;
33
+ }, {
34
+ code: string;
35
+ id: string;
36
+ name: string;
37
+ description: string;
38
+ isSubjectToCityTax: boolean;
39
+ }>;
40
+ unitGroup: import("zod").ZodObject<{
41
+ id: import("zod").ZodString;
42
+ code: import("zod").ZodString;
43
+ name: import("zod").ZodString;
44
+ description: import("zod").ZodString;
45
+ type: import("zod").ZodString;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ type: string;
48
+ code: string;
49
+ id: string;
50
+ name: string;
51
+ description: string;
52
+ }, {
53
+ type: string;
54
+ code: string;
55
+ id: string;
56
+ name: string;
57
+ description: string;
58
+ }>;
59
+ totalGrossAmount: import("zod").ZodObject<{
60
+ amount: import("zod").ZodNumber;
61
+ currency: import("zod").ZodString;
62
+ }, "strip", import("zod").ZodTypeAny, {
63
+ currency: string;
64
+ amount: number;
65
+ }, {
66
+ currency: string;
67
+ amount: number;
68
+ }>;
69
+ arrival: import("zod").ZodString;
70
+ departure: import("zod").ZodString;
71
+ created: import("zod").ZodString;
72
+ modified: import("zod").ZodString;
73
+ adults: import("zod").ZodNumber;
74
+ channelCode: import("zod").ZodString;
75
+ primaryGuest: import("zod").ZodObject<{
76
+ lastName: import("zod").ZodString;
77
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
78
+ email: import("zod").ZodOptional<import("zod").ZodString>;
79
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
80
+ }, "strip", import("zod").ZodTypeAny, {
81
+ lastName: string;
82
+ email?: string | undefined;
83
+ firstName?: string | undefined;
84
+ phone?: string | undefined;
85
+ }, {
86
+ lastName: string;
87
+ email?: string | undefined;
88
+ firstName?: string | undefined;
89
+ phone?: string | undefined;
90
+ }>;
91
+ guaranteeType: import("zod").ZodString;
92
+ cancellationFee: import("zod").ZodOptional<import("zod").ZodObject<{
93
+ id: import("zod").ZodString;
94
+ code: import("zod").ZodString;
95
+ name: import("zod").ZodString;
96
+ description: import("zod").ZodString;
97
+ dueDateTime: import("zod").ZodString;
98
+ fee: import("zod").ZodObject<{
99
+ amount: import("zod").ZodNumber;
100
+ currency: import("zod").ZodString;
101
+ }, "strip", import("zod").ZodTypeAny, {
102
+ currency: string;
103
+ amount: number;
104
+ }, {
105
+ currency: string;
106
+ amount: number;
107
+ }>;
108
+ }, "strip", import("zod").ZodTypeAny, {
109
+ code: string;
110
+ id: string;
111
+ name: string;
112
+ description: string;
113
+ dueDateTime: string;
114
+ fee: {
115
+ currency: string;
116
+ amount: number;
117
+ };
118
+ }, {
119
+ code: string;
120
+ id: string;
121
+ name: string;
122
+ description: string;
123
+ dueDateTime: string;
124
+ fee: {
125
+ currency: string;
126
+ amount: number;
127
+ };
128
+ }>>;
129
+ noShowFee: import("zod").ZodOptional<import("zod").ZodObject<{
130
+ id: import("zod").ZodString;
131
+ code: import("zod").ZodString;
132
+ name: import("zod").ZodString;
133
+ description: import("zod").ZodString;
134
+ fee: import("zod").ZodObject<{
135
+ amount: import("zod").ZodNumber;
136
+ currency: import("zod").ZodString;
137
+ }, "strip", import("zod").ZodTypeAny, {
138
+ currency: string;
139
+ amount: number;
140
+ }, {
141
+ currency: string;
142
+ amount: number;
143
+ }>;
144
+ }, "strip", import("zod").ZodTypeAny, {
145
+ code: string;
146
+ id: string;
147
+ name: string;
148
+ description: string;
149
+ fee: {
150
+ currency: string;
151
+ amount: number;
152
+ };
153
+ }, {
154
+ code: string;
155
+ id: string;
156
+ name: string;
157
+ description: string;
158
+ fee: {
159
+ currency: string;
160
+ amount: number;
161
+ };
162
+ }>>;
163
+ balance: import("zod").ZodObject<{
164
+ amount: import("zod").ZodNumber;
165
+ currency: import("zod").ZodString;
166
+ }, "strip", import("zod").ZodTypeAny, {
167
+ currency: string;
168
+ amount: number;
169
+ }, {
170
+ currency: string;
171
+ amount: number;
172
+ }>;
173
+ allFoliosHaveInvoice: import("zod").ZodBoolean;
174
+ taxDetails: import("zod").ZodArray<import("zod").ZodObject<{
175
+ vatType: import("zod").ZodString;
176
+ vatPercent: import("zod").ZodNumber;
177
+ net: import("zod").ZodObject<{
178
+ amount: import("zod").ZodNumber;
179
+ currency: import("zod").ZodString;
180
+ }, "strip", import("zod").ZodTypeAny, {
181
+ currency: string;
182
+ amount: number;
183
+ }, {
184
+ currency: string;
185
+ amount: number;
186
+ }>;
187
+ tax: import("zod").ZodObject<{
188
+ amount: import("zod").ZodNumber;
189
+ currency: import("zod").ZodString;
190
+ }, "strip", import("zod").ZodTypeAny, {
191
+ currency: string;
192
+ amount: number;
193
+ }, {
194
+ currency: string;
195
+ amount: number;
196
+ }>;
197
+ }, "strip", import("zod").ZodTypeAny, {
198
+ vatType: string;
199
+ vatPercent: number;
200
+ net: {
201
+ currency: string;
202
+ amount: number;
203
+ };
204
+ tax: {
205
+ currency: string;
206
+ amount: number;
207
+ };
208
+ }, {
209
+ vatType: string;
210
+ vatPercent: number;
211
+ net: {
212
+ currency: string;
213
+ amount: number;
214
+ };
215
+ tax: {
216
+ currency: string;
217
+ amount: number;
218
+ };
219
+ }>, "many">;
220
+ hasCityTax: import("zod").ZodBoolean;
221
+ payableAmount: import("zod").ZodObject<{
222
+ guest: import("zod").ZodObject<{
223
+ amount: import("zod").ZodNumber;
224
+ currency: import("zod").ZodString;
225
+ }, "strip", import("zod").ZodTypeAny, {
226
+ currency: string;
227
+ amount: number;
228
+ }, {
229
+ currency: string;
230
+ amount: number;
231
+ }>;
232
+ }, "strip", import("zod").ZodTypeAny, {
233
+ guest: {
234
+ currency: string;
235
+ amount: number;
236
+ };
237
+ }, {
238
+ guest: {
239
+ currency: string;
240
+ amount: number;
241
+ };
242
+ }>;
243
+ }, "strip", import("zod").ZodTypeAny, {
244
+ id: string;
245
+ status: string;
246
+ modified: string;
247
+ adults: number;
248
+ totalGrossAmount: {
249
+ currency: string;
250
+ amount: number;
251
+ };
252
+ arrival: string;
253
+ departure: string;
254
+ unitGroup: {
255
+ type: string;
256
+ code: string;
257
+ id: string;
258
+ name: string;
259
+ description: string;
260
+ };
261
+ ratePlan: {
262
+ code: string;
263
+ id: string;
264
+ name: string;
265
+ description: string;
266
+ isSubjectToCityTax: boolean;
267
+ };
268
+ taxDetails: {
269
+ vatType: string;
270
+ vatPercent: number;
271
+ net: {
272
+ currency: string;
273
+ amount: number;
274
+ };
275
+ tax: {
276
+ currency: string;
277
+ amount: number;
278
+ };
279
+ }[];
280
+ property: {
281
+ code: string;
282
+ id: string;
283
+ name: string;
284
+ description: string;
285
+ };
286
+ bookingId: string;
287
+ created: string;
288
+ channelCode: string;
289
+ primaryGuest: {
290
+ lastName: string;
291
+ email?: string | undefined;
292
+ firstName?: string | undefined;
293
+ phone?: string | undefined;
294
+ };
295
+ guaranteeType: string;
296
+ balance: {
297
+ currency: string;
298
+ amount: number;
299
+ };
300
+ allFoliosHaveInvoice: boolean;
301
+ hasCityTax: boolean;
302
+ payableAmount: {
303
+ guest: {
304
+ currency: string;
305
+ amount: number;
306
+ };
307
+ };
308
+ cancellationFee?: {
309
+ code: string;
310
+ id: string;
311
+ name: string;
312
+ description: string;
313
+ dueDateTime: string;
314
+ fee: {
315
+ currency: string;
316
+ amount: number;
317
+ };
318
+ } | undefined;
319
+ noShowFee?: {
320
+ code: string;
321
+ id: string;
322
+ name: string;
323
+ description: string;
324
+ fee: {
325
+ currency: string;
326
+ amount: number;
327
+ };
328
+ } | undefined;
329
+ }, {
330
+ id: string;
331
+ status: string;
332
+ modified: string;
333
+ adults: number;
334
+ totalGrossAmount: {
335
+ currency: string;
336
+ amount: number;
337
+ };
338
+ arrival: string;
339
+ departure: string;
340
+ unitGroup: {
341
+ type: string;
342
+ code: string;
343
+ id: string;
344
+ name: string;
345
+ description: string;
346
+ };
347
+ ratePlan: {
348
+ code: string;
349
+ id: string;
350
+ name: string;
351
+ description: string;
352
+ isSubjectToCityTax: boolean;
353
+ };
354
+ taxDetails: {
355
+ vatType: string;
356
+ vatPercent: number;
357
+ net: {
358
+ currency: string;
359
+ amount: number;
360
+ };
361
+ tax: {
362
+ currency: string;
363
+ amount: number;
364
+ };
365
+ }[];
366
+ property: {
367
+ code: string;
368
+ id: string;
369
+ name: string;
370
+ description: string;
371
+ };
372
+ bookingId: string;
373
+ created: string;
374
+ channelCode: string;
375
+ primaryGuest: {
376
+ lastName: string;
377
+ email?: string | undefined;
378
+ firstName?: string | undefined;
379
+ phone?: string | undefined;
380
+ };
381
+ guaranteeType: string;
382
+ balance: {
383
+ currency: string;
384
+ amount: number;
385
+ };
386
+ allFoliosHaveInvoice: boolean;
387
+ hasCityTax: boolean;
388
+ payableAmount: {
389
+ guest: {
390
+ currency: string;
391
+ amount: number;
392
+ };
393
+ };
394
+ cancellationFee?: {
395
+ code: string;
396
+ id: string;
397
+ name: string;
398
+ description: string;
399
+ dueDateTime: string;
400
+ fee: {
401
+ currency: string;
402
+ amount: number;
403
+ };
404
+ } | undefined;
405
+ noShowFee?: {
406
+ code: string;
407
+ id: string;
408
+ name: string;
409
+ description: string;
410
+ fee: {
411
+ currency: string;
412
+ amount: number;
413
+ };
414
+ } | undefined;
415
+ }>;
416
+ export { apaleoReservationSchema };
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apaleoReservationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const amountSchema = (0, zod_1.object)({
6
+ amount: (0, zod_1.number)(),
7
+ currency: (0, zod_1.string)(),
8
+ });
9
+ const propertySchema = (0, zod_1.object)({
10
+ id: (0, zod_1.string)(),
11
+ code: (0, zod_1.string)(),
12
+ name: (0, zod_1.string)(),
13
+ description: (0, zod_1.string)(),
14
+ });
15
+ const ratePlanSchema = (0, zod_1.object)({
16
+ id: (0, zod_1.string)(),
17
+ code: (0, zod_1.string)(),
18
+ name: (0, zod_1.string)(),
19
+ description: (0, zod_1.string)(),
20
+ isSubjectToCityTax: (0, zod_1.boolean)(),
21
+ });
22
+ const unitGroupSchema = (0, zod_1.object)({
23
+ id: (0, zod_1.string)(),
24
+ code: (0, zod_1.string)(),
25
+ name: (0, zod_1.string)(),
26
+ description: (0, zod_1.string)(),
27
+ type: (0, zod_1.string)(),
28
+ });
29
+ const cancellationFeeSchema = (0, zod_1.object)({
30
+ id: (0, zod_1.string)(),
31
+ code: (0, zod_1.string)(),
32
+ name: (0, zod_1.string)(),
33
+ description: (0, zod_1.string)(),
34
+ dueDateTime: (0, zod_1.string)(),
35
+ fee: amountSchema,
36
+ });
37
+ const noShowFeeSchema = (0, zod_1.object)({
38
+ id: (0, zod_1.string)(),
39
+ code: (0, zod_1.string)(),
40
+ name: (0, zod_1.string)(),
41
+ description: (0, zod_1.string)(),
42
+ fee: amountSchema,
43
+ });
44
+ const taxDetailSchema = (0, zod_1.object)({
45
+ vatType: (0, zod_1.string)(),
46
+ vatPercent: (0, zod_1.number)(),
47
+ net: amountSchema,
48
+ tax: amountSchema,
49
+ });
50
+ const guestSchema = (0, zod_1.object)({
51
+ lastName: (0, zod_1.string)(),
52
+ firstName: (0, zod_1.string)().optional(),
53
+ email: (0, zod_1.string)().optional(),
54
+ phone: (0, zod_1.string)().optional(),
55
+ });
56
+ const payableAmountSchema = (0, zod_1.object)({
57
+ guest: amountSchema,
58
+ });
59
+ const apaleoReservationSchema = (0, zod_1.object)({
60
+ id: (0, zod_1.string)(),
61
+ bookingId: (0, zod_1.string)(),
62
+ status: (0, zod_1.string)(),
63
+ property: propertySchema,
64
+ ratePlan: ratePlanSchema,
65
+ unitGroup: unitGroupSchema,
66
+ totalGrossAmount: amountSchema,
67
+ arrival: (0, zod_1.string)(),
68
+ departure: (0, zod_1.string)(),
69
+ created: (0, zod_1.string)(),
70
+ modified: (0, zod_1.string)(),
71
+ adults: (0, zod_1.number)(),
72
+ channelCode: (0, zod_1.string)(),
73
+ primaryGuest: guestSchema,
74
+ guaranteeType: (0, zod_1.string)(),
75
+ cancellationFee: cancellationFeeSchema.optional(),
76
+ noShowFee: noShowFeeSchema.optional(),
77
+ balance: amountSchema,
78
+ allFoliosHaveInvoice: (0, zod_1.boolean)(),
79
+ taxDetails: (0, zod_1.array)(taxDetailSchema),
80
+ hasCityTax: (0, zod_1.boolean)(),
81
+ payableAmount: payableAmountSchema,
82
+ });
83
+ exports.apaleoReservationSchema = apaleoReservationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",