hububb-models 1.0.64 → 1.0.65

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,401 @@
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
+ }, "strip", import("zod").ZodTypeAny, {
78
+ lastName: string;
79
+ }, {
80
+ lastName: string;
81
+ }>;
82
+ guaranteeType: import("zod").ZodString;
83
+ cancellationFee: import("zod").ZodOptional<import("zod").ZodObject<{
84
+ id: import("zod").ZodString;
85
+ code: import("zod").ZodString;
86
+ name: import("zod").ZodString;
87
+ description: import("zod").ZodString;
88
+ dueDateTime: import("zod").ZodString;
89
+ fee: import("zod").ZodObject<{
90
+ amount: import("zod").ZodNumber;
91
+ currency: import("zod").ZodString;
92
+ }, "strip", import("zod").ZodTypeAny, {
93
+ currency: string;
94
+ amount: number;
95
+ }, {
96
+ currency: string;
97
+ amount: number;
98
+ }>;
99
+ }, "strip", import("zod").ZodTypeAny, {
100
+ code: string;
101
+ id: string;
102
+ name: string;
103
+ description: string;
104
+ dueDateTime: string;
105
+ fee: {
106
+ currency: string;
107
+ amount: number;
108
+ };
109
+ }, {
110
+ code: string;
111
+ id: string;
112
+ name: string;
113
+ description: string;
114
+ dueDateTime: string;
115
+ fee: {
116
+ currency: string;
117
+ amount: number;
118
+ };
119
+ }>>;
120
+ noShowFee: import("zod").ZodOptional<import("zod").ZodObject<{
121
+ id: import("zod").ZodString;
122
+ code: import("zod").ZodString;
123
+ name: import("zod").ZodString;
124
+ description: import("zod").ZodString;
125
+ fee: import("zod").ZodObject<{
126
+ amount: import("zod").ZodNumber;
127
+ currency: import("zod").ZodString;
128
+ }, "strip", import("zod").ZodTypeAny, {
129
+ currency: string;
130
+ amount: number;
131
+ }, {
132
+ currency: string;
133
+ amount: number;
134
+ }>;
135
+ }, "strip", import("zod").ZodTypeAny, {
136
+ code: string;
137
+ id: string;
138
+ name: string;
139
+ description: string;
140
+ fee: {
141
+ currency: string;
142
+ amount: number;
143
+ };
144
+ }, {
145
+ code: string;
146
+ id: string;
147
+ name: string;
148
+ description: string;
149
+ fee: {
150
+ currency: string;
151
+ amount: number;
152
+ };
153
+ }>>;
154
+ balance: import("zod").ZodObject<{
155
+ amount: import("zod").ZodNumber;
156
+ currency: import("zod").ZodString;
157
+ }, "strip", import("zod").ZodTypeAny, {
158
+ currency: string;
159
+ amount: number;
160
+ }, {
161
+ currency: string;
162
+ amount: number;
163
+ }>;
164
+ allFoliosHaveInvoice: import("zod").ZodBoolean;
165
+ taxDetails: import("zod").ZodArray<import("zod").ZodObject<{
166
+ vatType: import("zod").ZodString;
167
+ vatPercent: import("zod").ZodNumber;
168
+ net: import("zod").ZodObject<{
169
+ amount: import("zod").ZodNumber;
170
+ currency: import("zod").ZodString;
171
+ }, "strip", import("zod").ZodTypeAny, {
172
+ currency: string;
173
+ amount: number;
174
+ }, {
175
+ currency: string;
176
+ amount: number;
177
+ }>;
178
+ tax: import("zod").ZodObject<{
179
+ amount: import("zod").ZodNumber;
180
+ currency: import("zod").ZodString;
181
+ }, "strip", import("zod").ZodTypeAny, {
182
+ currency: string;
183
+ amount: number;
184
+ }, {
185
+ currency: string;
186
+ amount: number;
187
+ }>;
188
+ }, "strip", import("zod").ZodTypeAny, {
189
+ vatType: string;
190
+ vatPercent: number;
191
+ net: {
192
+ currency: string;
193
+ amount: number;
194
+ };
195
+ tax: {
196
+ currency: string;
197
+ amount: number;
198
+ };
199
+ }, {
200
+ vatType: string;
201
+ vatPercent: number;
202
+ net: {
203
+ currency: string;
204
+ amount: number;
205
+ };
206
+ tax: {
207
+ currency: string;
208
+ amount: number;
209
+ };
210
+ }>, "many">;
211
+ hasCityTax: import("zod").ZodBoolean;
212
+ payableAmount: import("zod").ZodObject<{
213
+ guest: import("zod").ZodObject<{
214
+ amount: import("zod").ZodNumber;
215
+ currency: import("zod").ZodString;
216
+ }, "strip", import("zod").ZodTypeAny, {
217
+ currency: string;
218
+ amount: number;
219
+ }, {
220
+ currency: string;
221
+ amount: number;
222
+ }>;
223
+ }, "strip", import("zod").ZodTypeAny, {
224
+ guest: {
225
+ currency: string;
226
+ amount: number;
227
+ };
228
+ }, {
229
+ guest: {
230
+ currency: string;
231
+ amount: number;
232
+ };
233
+ }>;
234
+ }, "strip", import("zod").ZodTypeAny, {
235
+ id: string;
236
+ status: string;
237
+ modified: string;
238
+ adults: number;
239
+ totalGrossAmount: {
240
+ currency: string;
241
+ amount: number;
242
+ };
243
+ arrival: string;
244
+ departure: string;
245
+ unitGroup: {
246
+ type: string;
247
+ code: string;
248
+ id: string;
249
+ name: string;
250
+ description: string;
251
+ };
252
+ ratePlan: {
253
+ code: string;
254
+ id: string;
255
+ name: string;
256
+ description: string;
257
+ isSubjectToCityTax: boolean;
258
+ };
259
+ taxDetails: {
260
+ vatType: string;
261
+ vatPercent: number;
262
+ net: {
263
+ currency: string;
264
+ amount: number;
265
+ };
266
+ tax: {
267
+ currency: string;
268
+ amount: number;
269
+ };
270
+ }[];
271
+ property: {
272
+ code: string;
273
+ id: string;
274
+ name: string;
275
+ description: string;
276
+ };
277
+ bookingId: string;
278
+ created: string;
279
+ channelCode: string;
280
+ primaryGuest: {
281
+ lastName: string;
282
+ };
283
+ guaranteeType: string;
284
+ balance: {
285
+ currency: string;
286
+ amount: number;
287
+ };
288
+ allFoliosHaveInvoice: boolean;
289
+ hasCityTax: boolean;
290
+ payableAmount: {
291
+ guest: {
292
+ currency: string;
293
+ amount: number;
294
+ };
295
+ };
296
+ cancellationFee?: {
297
+ code: string;
298
+ id: string;
299
+ name: string;
300
+ description: string;
301
+ dueDateTime: string;
302
+ fee: {
303
+ currency: string;
304
+ amount: number;
305
+ };
306
+ } | undefined;
307
+ noShowFee?: {
308
+ code: string;
309
+ id: string;
310
+ name: string;
311
+ description: string;
312
+ fee: {
313
+ currency: string;
314
+ amount: number;
315
+ };
316
+ } | undefined;
317
+ }, {
318
+ id: string;
319
+ status: string;
320
+ modified: string;
321
+ adults: number;
322
+ totalGrossAmount: {
323
+ currency: string;
324
+ amount: number;
325
+ };
326
+ arrival: string;
327
+ departure: string;
328
+ unitGroup: {
329
+ type: string;
330
+ code: string;
331
+ id: string;
332
+ name: string;
333
+ description: string;
334
+ };
335
+ ratePlan: {
336
+ code: string;
337
+ id: string;
338
+ name: string;
339
+ description: string;
340
+ isSubjectToCityTax: boolean;
341
+ };
342
+ taxDetails: {
343
+ vatType: string;
344
+ vatPercent: number;
345
+ net: {
346
+ currency: string;
347
+ amount: number;
348
+ };
349
+ tax: {
350
+ currency: string;
351
+ amount: number;
352
+ };
353
+ }[];
354
+ property: {
355
+ code: string;
356
+ id: string;
357
+ name: string;
358
+ description: string;
359
+ };
360
+ bookingId: string;
361
+ created: string;
362
+ channelCode: string;
363
+ primaryGuest: {
364
+ lastName: string;
365
+ };
366
+ guaranteeType: string;
367
+ balance: {
368
+ currency: string;
369
+ amount: number;
370
+ };
371
+ allFoliosHaveInvoice: boolean;
372
+ hasCityTax: boolean;
373
+ payableAmount: {
374
+ guest: {
375
+ currency: string;
376
+ amount: number;
377
+ };
378
+ };
379
+ cancellationFee?: {
380
+ code: string;
381
+ id: string;
382
+ name: string;
383
+ description: string;
384
+ dueDateTime: string;
385
+ fee: {
386
+ currency: string;
387
+ amount: number;
388
+ };
389
+ } | undefined;
390
+ noShowFee?: {
391
+ code: string;
392
+ id: string;
393
+ name: string;
394
+ description: string;
395
+ fee: {
396
+ currency: string;
397
+ amount: number;
398
+ };
399
+ } | undefined;
400
+ }>;
401
+ export { apaleoReservationSchema };
@@ -0,0 +1,80 @@
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
+ });
53
+ const payableAmountSchema = (0, zod_1.object)({
54
+ guest: amountSchema,
55
+ });
56
+ const apaleoReservationSchema = (0, zod_1.object)({
57
+ id: (0, zod_1.string)(),
58
+ bookingId: (0, zod_1.string)(),
59
+ status: (0, zod_1.string)(),
60
+ property: propertySchema,
61
+ ratePlan: ratePlanSchema,
62
+ unitGroup: unitGroupSchema,
63
+ totalGrossAmount: amountSchema,
64
+ arrival: (0, zod_1.string)(),
65
+ departure: (0, zod_1.string)(),
66
+ created: (0, zod_1.string)(),
67
+ modified: (0, zod_1.string)(),
68
+ adults: (0, zod_1.number)(),
69
+ channelCode: (0, zod_1.string)(),
70
+ primaryGuest: guestSchema,
71
+ guaranteeType: (0, zod_1.string)(),
72
+ cancellationFee: cancellationFeeSchema.optional(),
73
+ noShowFee: noShowFeeSchema.optional(),
74
+ balance: amountSchema,
75
+ allFoliosHaveInvoice: (0, zod_1.boolean)(),
76
+ taxDetails: (0, zod_1.array)(taxDetailSchema),
77
+ hasCityTax: (0, zod_1.boolean)(),
78
+ payableAmount: payableAmountSchema,
79
+ });
80
+ 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.65",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",