hububb-models 1.0.99 → 1.0.101
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/models/apaleo/offer.d.ts +2 -1
- package/dist/models/apaleo/property.d.ts +3 -0
- package/dist/models/apaleo/property.js +2 -0
- package/dist/models/apaleo/unit-group.d.ts +3 -0
- package/dist/models/apaleo/unit-group.js +2 -0
- package/dist/schemas/apaleo/offer.d.ts +465 -0
- package/dist/schemas/apaleo/offer.js +3 -3
- package/dist/schemas/apaleo/property.d.ts +118 -0
- package/dist/schemas/apaleo/property.js +38 -0
- package/dist/schemas/apaleo/unit-group.d.ts +91 -0
- package/dist/schemas/apaleo/unit-group.js +29 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -7,6 +7,8 @@ export * from "./schemas/calendar";
|
|
7
7
|
export * from "./schemas/apaleo/offer";
|
8
8
|
export * from "./schemas/apaleo/reservation";
|
9
9
|
export * from "./schemas/apaleo/service";
|
10
|
+
export * from "./schemas/apaleo/unit-group";
|
11
|
+
export * from "./schemas/apaleo/property";
|
10
12
|
export * from "./schemas/channex/booking";
|
11
13
|
export * from "./schemas/channex/property";
|
12
14
|
export * from "./schemas/channex/thread";
|
@@ -19,6 +21,8 @@ export * from "./models/calendar";
|
|
19
21
|
export * from "./models/apaleo/offer";
|
20
22
|
export * from "./models/apaleo/reservation";
|
21
23
|
export * from "./models/apaleo/service";
|
24
|
+
export * from "./models/apaleo/unit-group";
|
25
|
+
export * from "./models/apaleo/property";
|
22
26
|
export * from "./models/channex/booking";
|
23
27
|
export * from "./models/channex/property";
|
24
28
|
export * from "./models/channex/thread";
|
package/dist/index.js
CHANGED
@@ -23,6 +23,8 @@ __exportStar(require("./schemas/calendar"), exports);
|
|
23
23
|
__exportStar(require("./schemas/apaleo/offer"), exports);
|
24
24
|
__exportStar(require("./schemas/apaleo/reservation"), exports);
|
25
25
|
__exportStar(require("./schemas/apaleo/service"), exports);
|
26
|
+
__exportStar(require("./schemas/apaleo/unit-group"), exports);
|
27
|
+
__exportStar(require("./schemas/apaleo/property"), exports);
|
26
28
|
__exportStar(require("./schemas/channex/booking"), exports);
|
27
29
|
__exportStar(require("./schemas/channex/property"), exports);
|
28
30
|
__exportStar(require("./schemas/channex/thread"), exports);
|
@@ -35,6 +37,8 @@ __exportStar(require("./models/calendar"), exports);
|
|
35
37
|
__exportStar(require("./models/apaleo/offer"), exports);
|
36
38
|
__exportStar(require("./models/apaleo/reservation"), exports);
|
37
39
|
__exportStar(require("./models/apaleo/service"), exports);
|
40
|
+
__exportStar(require("./models/apaleo/unit-group"), exports);
|
41
|
+
__exportStar(require("./models/apaleo/property"), exports);
|
38
42
|
__exportStar(require("./models/channex/booking"), exports);
|
39
43
|
__exportStar(require("./models/channex/property"), exports);
|
40
44
|
__exportStar(require("./models/channex/thread"), exports);
|
@@ -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
|
-
|
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
|
});
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
declare const ApaleoPropertySchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
code: z.ZodString;
|
5
|
+
propertyTemplateId: z.ZodOptional<z.ZodString>;
|
6
|
+
isTemplate: z.ZodBoolean;
|
7
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
8
|
+
description: z.ZodRecord<z.ZodString, z.ZodString>;
|
9
|
+
companyName: z.ZodString;
|
10
|
+
managingDirectors: z.ZodOptional<z.ZodString>;
|
11
|
+
commercialRegisterEntry: z.ZodString;
|
12
|
+
taxId: z.ZodString;
|
13
|
+
location: z.ZodObject<{
|
14
|
+
addressLine1: z.ZodString;
|
15
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
16
|
+
postalCode: z.ZodString;
|
17
|
+
city: z.ZodString;
|
18
|
+
regionCode: z.ZodOptional<z.ZodString>;
|
19
|
+
countryCode: z.ZodString;
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
21
|
+
city: string;
|
22
|
+
addressLine1: string;
|
23
|
+
postalCode: string;
|
24
|
+
countryCode: string;
|
25
|
+
addressLine2?: string | undefined;
|
26
|
+
regionCode?: string | undefined;
|
27
|
+
}, {
|
28
|
+
city: string;
|
29
|
+
addressLine1: string;
|
30
|
+
postalCode: string;
|
31
|
+
countryCode: string;
|
32
|
+
addressLine2?: string | undefined;
|
33
|
+
regionCode?: string | undefined;
|
34
|
+
}>;
|
35
|
+
bankAccount: z.ZodOptional<z.ZodObject<{
|
36
|
+
iban: z.ZodOptional<z.ZodString>;
|
37
|
+
bic: z.ZodOptional<z.ZodString>;
|
38
|
+
bank: z.ZodOptional<z.ZodString>;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
iban?: string | undefined;
|
41
|
+
bic?: string | undefined;
|
42
|
+
bank?: string | undefined;
|
43
|
+
}, {
|
44
|
+
iban?: string | undefined;
|
45
|
+
bic?: string | undefined;
|
46
|
+
bank?: string | undefined;
|
47
|
+
}>>;
|
48
|
+
paymentTerms: z.ZodRecord<z.ZodString, z.ZodString>;
|
49
|
+
timeZone: z.ZodString;
|
50
|
+
currencyCode: z.ZodString;
|
51
|
+
created: z.ZodString;
|
52
|
+
status: z.ZodEnum<["Test", "Live"]>;
|
53
|
+
isArchived: z.ZodBoolean;
|
54
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
56
|
+
code: string;
|
57
|
+
location: {
|
58
|
+
city: string;
|
59
|
+
addressLine1: string;
|
60
|
+
postalCode: string;
|
61
|
+
countryCode: string;
|
62
|
+
addressLine2?: string | undefined;
|
63
|
+
regionCode?: string | undefined;
|
64
|
+
};
|
65
|
+
id: string;
|
66
|
+
name: Record<string, string>;
|
67
|
+
description: Record<string, string>;
|
68
|
+
status: "Test" | "Live";
|
69
|
+
created: string;
|
70
|
+
isTemplate: boolean;
|
71
|
+
companyName: string;
|
72
|
+
commercialRegisterEntry: string;
|
73
|
+
taxId: string;
|
74
|
+
paymentTerms: Record<string, string>;
|
75
|
+
timeZone: string;
|
76
|
+
currencyCode: string;
|
77
|
+
isArchived: boolean;
|
78
|
+
propertyTemplateId?: string | undefined;
|
79
|
+
managingDirectors?: string | undefined;
|
80
|
+
bankAccount?: {
|
81
|
+
iban?: string | undefined;
|
82
|
+
bic?: string | undefined;
|
83
|
+
bank?: string | undefined;
|
84
|
+
} | undefined;
|
85
|
+
actions?: any[] | undefined;
|
86
|
+
}, {
|
87
|
+
code: string;
|
88
|
+
location: {
|
89
|
+
city: string;
|
90
|
+
addressLine1: string;
|
91
|
+
postalCode: string;
|
92
|
+
countryCode: string;
|
93
|
+
addressLine2?: string | undefined;
|
94
|
+
regionCode?: string | undefined;
|
95
|
+
};
|
96
|
+
id: string;
|
97
|
+
name: Record<string, string>;
|
98
|
+
description: Record<string, string>;
|
99
|
+
status: "Test" | "Live";
|
100
|
+
created: string;
|
101
|
+
isTemplate: boolean;
|
102
|
+
companyName: string;
|
103
|
+
commercialRegisterEntry: string;
|
104
|
+
taxId: string;
|
105
|
+
paymentTerms: Record<string, string>;
|
106
|
+
timeZone: string;
|
107
|
+
currencyCode: string;
|
108
|
+
isArchived: boolean;
|
109
|
+
propertyTemplateId?: string | undefined;
|
110
|
+
managingDirectors?: string | undefined;
|
111
|
+
bankAccount?: {
|
112
|
+
iban?: string | undefined;
|
113
|
+
bic?: string | undefined;
|
114
|
+
bank?: string | undefined;
|
115
|
+
} | undefined;
|
116
|
+
actions?: any[] | undefined;
|
117
|
+
}>;
|
118
|
+
export default ApaleoPropertySchema;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const zod_1 = require("zod");
|
4
|
+
const AddressSchema = (0, zod_1.object)({
|
5
|
+
addressLine1: (0, zod_1.string)().min(1),
|
6
|
+
addressLine2: (0, zod_1.string)().optional(),
|
7
|
+
postalCode: (0, zod_1.string)().min(1),
|
8
|
+
city: (0, zod_1.string)().min(1),
|
9
|
+
regionCode: (0, zod_1.string)().optional(),
|
10
|
+
countryCode: (0, zod_1.string)().min(1),
|
11
|
+
});
|
12
|
+
const BankAccountSchema = (0, zod_1.object)({
|
13
|
+
iban: (0, zod_1.string)().optional(),
|
14
|
+
bic: (0, zod_1.string)().optional(),
|
15
|
+
bank: (0, zod_1.string)().optional(),
|
16
|
+
});
|
17
|
+
const ApaleoPropertySchema = (0, zod_1.object)({
|
18
|
+
id: (0, zod_1.string)().min(1),
|
19
|
+
code: (0, zod_1.string)().min(1),
|
20
|
+
propertyTemplateId: (0, zod_1.string)().optional(),
|
21
|
+
isTemplate: (0, zod_1.boolean)(),
|
22
|
+
name: (0, zod_1.record)((0, zod_1.string)()),
|
23
|
+
description: (0, zod_1.record)((0, zod_1.string)()),
|
24
|
+
companyName: (0, zod_1.string)().min(1),
|
25
|
+
managingDirectors: (0, zod_1.string)().optional(),
|
26
|
+
commercialRegisterEntry: (0, zod_1.string)().min(1),
|
27
|
+
taxId: (0, zod_1.string)().min(1),
|
28
|
+
location: AddressSchema,
|
29
|
+
bankAccount: BankAccountSchema.optional(),
|
30
|
+
paymentTerms: (0, zod_1.record)((0, zod_1.string)()),
|
31
|
+
timeZone: (0, zod_1.string)().min(1),
|
32
|
+
currencyCode: (0, zod_1.string)().min(1),
|
33
|
+
created: (0, zod_1.string)().datetime(),
|
34
|
+
status: zod_1.z.enum(["Test", "Live"]),
|
35
|
+
isArchived: (0, zod_1.boolean)(),
|
36
|
+
actions: (0, zod_1.array)((0, zod_1.any)()).optional(),
|
37
|
+
});
|
38
|
+
exports.default = ApaleoPropertySchema;
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
declare const ApaleoUnitGroupSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
code: z.ZodString;
|
5
|
+
property: z.ZodObject<{
|
6
|
+
id: z.ZodString;
|
7
|
+
code: z.ZodOptional<z.ZodString>;
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
id: string;
|
12
|
+
code?: string | undefined;
|
13
|
+
name?: string | undefined;
|
14
|
+
description?: string | undefined;
|
15
|
+
}, {
|
16
|
+
id: string;
|
17
|
+
code?: string | undefined;
|
18
|
+
name?: string | undefined;
|
19
|
+
description?: string | undefined;
|
20
|
+
}>;
|
21
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
22
|
+
memberCount: z.ZodNumber;
|
23
|
+
description: z.ZodRecord<z.ZodString, z.ZodString>;
|
24
|
+
maxPersons: z.ZodNumber;
|
25
|
+
rank: z.ZodOptional<z.ZodNumber>;
|
26
|
+
type: z.ZodEnum<["BedRoom", "MeetingRoom", "EventSpace", "ParkingLot", "Other"]>;
|
27
|
+
connectedUnitGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
28
|
+
id: z.ZodString;
|
29
|
+
name: z.ZodString;
|
30
|
+
description: z.ZodString;
|
31
|
+
memberCount: z.ZodNumber;
|
32
|
+
maxPersons: z.ZodOptional<z.ZodNumber>;
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
34
|
+
id: string;
|
35
|
+
name: string;
|
36
|
+
description: string;
|
37
|
+
memberCount: number;
|
38
|
+
maxPersons?: number | undefined;
|
39
|
+
}, {
|
40
|
+
id: string;
|
41
|
+
name: string;
|
42
|
+
description: string;
|
43
|
+
memberCount: number;
|
44
|
+
maxPersons?: number | undefined;
|
45
|
+
}>, "many">>;
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
47
|
+
type: "BedRoom" | "MeetingRoom" | "EventSpace" | "ParkingLot" | "Other";
|
48
|
+
code: string;
|
49
|
+
id: string;
|
50
|
+
name: Record<string, string>;
|
51
|
+
description: Record<string, string>;
|
52
|
+
maxPersons: number;
|
53
|
+
property: {
|
54
|
+
id: string;
|
55
|
+
code?: string | undefined;
|
56
|
+
name?: string | undefined;
|
57
|
+
description?: string | undefined;
|
58
|
+
};
|
59
|
+
memberCount: number;
|
60
|
+
rank?: number | undefined;
|
61
|
+
connectedUnitGroups?: {
|
62
|
+
id: string;
|
63
|
+
name: string;
|
64
|
+
description: string;
|
65
|
+
memberCount: number;
|
66
|
+
maxPersons?: number | undefined;
|
67
|
+
}[] | undefined;
|
68
|
+
}, {
|
69
|
+
type: "BedRoom" | "MeetingRoom" | "EventSpace" | "ParkingLot" | "Other";
|
70
|
+
code: string;
|
71
|
+
id: string;
|
72
|
+
name: Record<string, string>;
|
73
|
+
description: Record<string, string>;
|
74
|
+
maxPersons: number;
|
75
|
+
property: {
|
76
|
+
id: string;
|
77
|
+
code?: string | undefined;
|
78
|
+
name?: string | undefined;
|
79
|
+
description?: string | undefined;
|
80
|
+
};
|
81
|
+
memberCount: number;
|
82
|
+
rank?: number | undefined;
|
83
|
+
connectedUnitGroups?: {
|
84
|
+
id: string;
|
85
|
+
name: string;
|
86
|
+
description: string;
|
87
|
+
memberCount: number;
|
88
|
+
maxPersons?: number | undefined;
|
89
|
+
}[] | undefined;
|
90
|
+
}>;
|
91
|
+
export default ApaleoUnitGroupSchema;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const zod_1 = require("zod");
|
4
|
+
const EmbeddedPropertySchema = (0, zod_1.object)({
|
5
|
+
id: (0, zod_1.string)().min(1),
|
6
|
+
code: (0, zod_1.string)().optional(),
|
7
|
+
name: (0, zod_1.string)().optional(),
|
8
|
+
description: (0, zod_1.string)().optional(),
|
9
|
+
});
|
10
|
+
const ConnectedUnitGroupSchema = (0, zod_1.object)({
|
11
|
+
id: (0, zod_1.string)().min(1),
|
12
|
+
name: (0, zod_1.string)().min(1),
|
13
|
+
description: (0, zod_1.string)().min(1),
|
14
|
+
memberCount: (0, zod_1.number)().int(),
|
15
|
+
maxPersons: (0, zod_1.number)().int().optional(),
|
16
|
+
});
|
17
|
+
const ApaleoUnitGroupSchema = (0, zod_1.object)({
|
18
|
+
id: (0, zod_1.string)().min(1),
|
19
|
+
code: (0, zod_1.string)().min(1),
|
20
|
+
property: EmbeddedPropertySchema,
|
21
|
+
name: (0, zod_1.record)((0, zod_1.string)()),
|
22
|
+
memberCount: (0, zod_1.number)().int(),
|
23
|
+
description: (0, zod_1.record)((0, zod_1.string)()),
|
24
|
+
maxPersons: (0, zod_1.number)().int(),
|
25
|
+
rank: (0, zod_1.number)().int().optional(),
|
26
|
+
type: zod_1.z.enum(["BedRoom", "MeetingRoom", "EventSpace", "ParkingLot", "Other"]),
|
27
|
+
connectedUnitGroups: (0, zod_1.array)(ConnectedUnitGroupSchema).optional(),
|
28
|
+
});
|
29
|
+
exports.default = ApaleoUnitGroupSchema;
|