hububb-models 1.0.121 → 1.0.122
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,257 @@
|
|
1
|
+
declare const blockSchema: import("zod").ZodObject<{
|
2
|
+
id: import("zod").ZodString;
|
3
|
+
group: import("zod").ZodObject<{
|
4
|
+
id: import("zod").ZodString;
|
5
|
+
name: import("zod").ZodString;
|
6
|
+
}, "strip", import("zod").ZodTypeAny, {
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
}, {
|
10
|
+
id: string;
|
11
|
+
name: string;
|
12
|
+
}>;
|
13
|
+
status: import("zod").ZodString;
|
14
|
+
property: import("zod").ZodObject<{
|
15
|
+
id: import("zod").ZodString;
|
16
|
+
code: import("zod").ZodString;
|
17
|
+
name: import("zod").ZodString;
|
18
|
+
description: import("zod").ZodString;
|
19
|
+
}, "strip", import("zod").ZodTypeAny, {
|
20
|
+
code: string;
|
21
|
+
id: string;
|
22
|
+
name: string;
|
23
|
+
description: string;
|
24
|
+
}, {
|
25
|
+
code: string;
|
26
|
+
id: string;
|
27
|
+
name: string;
|
28
|
+
description: string;
|
29
|
+
}>;
|
30
|
+
ratePlan: import("zod").ZodObject<{
|
31
|
+
id: import("zod").ZodString;
|
32
|
+
code: import("zod").ZodString;
|
33
|
+
name: import("zod").ZodString;
|
34
|
+
description: import("zod").ZodString;
|
35
|
+
isSubjectToCityTax: import("zod").ZodBoolean;
|
36
|
+
}, "strip", import("zod").ZodTypeAny, {
|
37
|
+
code: string;
|
38
|
+
id: string;
|
39
|
+
name: string;
|
40
|
+
description: string;
|
41
|
+
isSubjectToCityTax: boolean;
|
42
|
+
}, {
|
43
|
+
code: string;
|
44
|
+
id: string;
|
45
|
+
name: string;
|
46
|
+
description: string;
|
47
|
+
isSubjectToCityTax: boolean;
|
48
|
+
}>;
|
49
|
+
unitGroup: import("zod").ZodObject<{
|
50
|
+
id: import("zod").ZodString;
|
51
|
+
code: import("zod").ZodString;
|
52
|
+
name: import("zod").ZodString;
|
53
|
+
description: import("zod").ZodString;
|
54
|
+
type: import("zod").ZodString;
|
55
|
+
}, "strip", import("zod").ZodTypeAny, {
|
56
|
+
type: string;
|
57
|
+
code: string;
|
58
|
+
id: string;
|
59
|
+
name: string;
|
60
|
+
description: string;
|
61
|
+
}, {
|
62
|
+
type: string;
|
63
|
+
code: string;
|
64
|
+
id: string;
|
65
|
+
name: string;
|
66
|
+
description: string;
|
67
|
+
}>;
|
68
|
+
grossDailyRate: import("zod").ZodObject<{
|
69
|
+
amount: import("zod").ZodNumber;
|
70
|
+
currency: import("zod").ZodString;
|
71
|
+
}, "strip", import("zod").ZodTypeAny, {
|
72
|
+
currency: string;
|
73
|
+
amount: number;
|
74
|
+
}, {
|
75
|
+
currency: string;
|
76
|
+
amount: number;
|
77
|
+
}>;
|
78
|
+
from: import("zod").ZodString;
|
79
|
+
to: import("zod").ZodString;
|
80
|
+
pickedReservations: import("zod").ZodNumber;
|
81
|
+
created: import("zod").ZodString;
|
82
|
+
modified: import("zod").ZodString;
|
83
|
+
timeSlices: import("zod").ZodArray<import("zod").ZodObject<{
|
84
|
+
from: import("zod").ZodString;
|
85
|
+
to: import("zod").ZodString;
|
86
|
+
blockedUnits: import("zod").ZodNumber;
|
87
|
+
pickedUnits: import("zod").ZodNumber;
|
88
|
+
baseAmount: import("zod").ZodObject<{
|
89
|
+
grossAmount: import("zod").ZodNumber;
|
90
|
+
netAmount: import("zod").ZodNumber;
|
91
|
+
vatType: import("zod").ZodString;
|
92
|
+
vatPercent: import("zod").ZodNumber;
|
93
|
+
currency: import("zod").ZodString;
|
94
|
+
}, "strip", import("zod").ZodTypeAny, {
|
95
|
+
currency: string;
|
96
|
+
grossAmount: number;
|
97
|
+
netAmount: number;
|
98
|
+
vatType: string;
|
99
|
+
vatPercent: number;
|
100
|
+
}, {
|
101
|
+
currency: string;
|
102
|
+
grossAmount: number;
|
103
|
+
netAmount: number;
|
104
|
+
vatType: string;
|
105
|
+
vatPercent: number;
|
106
|
+
}>;
|
107
|
+
totalGrossAmount: import("zod").ZodObject<{
|
108
|
+
amount: import("zod").ZodNumber;
|
109
|
+
currency: import("zod").ZodString;
|
110
|
+
}, "strip", import("zod").ZodTypeAny, {
|
111
|
+
currency: string;
|
112
|
+
amount: number;
|
113
|
+
}, {
|
114
|
+
currency: string;
|
115
|
+
amount: number;
|
116
|
+
}>;
|
117
|
+
}, "strip", import("zod").ZodTypeAny, {
|
118
|
+
from: string;
|
119
|
+
to: string;
|
120
|
+
baseAmount: {
|
121
|
+
currency: string;
|
122
|
+
grossAmount: number;
|
123
|
+
netAmount: number;
|
124
|
+
vatType: string;
|
125
|
+
vatPercent: number;
|
126
|
+
};
|
127
|
+
totalGrossAmount: {
|
128
|
+
currency: string;
|
129
|
+
amount: number;
|
130
|
+
};
|
131
|
+
blockedUnits: number;
|
132
|
+
pickedUnits: number;
|
133
|
+
}, {
|
134
|
+
from: string;
|
135
|
+
to: string;
|
136
|
+
baseAmount: {
|
137
|
+
currency: string;
|
138
|
+
grossAmount: number;
|
139
|
+
netAmount: number;
|
140
|
+
vatType: string;
|
141
|
+
vatPercent: number;
|
142
|
+
};
|
143
|
+
totalGrossAmount: {
|
144
|
+
currency: string;
|
145
|
+
amount: number;
|
146
|
+
};
|
147
|
+
blockedUnits: number;
|
148
|
+
pickedUnits: number;
|
149
|
+
}>, "many">;
|
150
|
+
}, "strip", import("zod").ZodTypeAny, {
|
151
|
+
id: string;
|
152
|
+
status: string;
|
153
|
+
group: {
|
154
|
+
id: string;
|
155
|
+
name: string;
|
156
|
+
};
|
157
|
+
modified: string;
|
158
|
+
from: string;
|
159
|
+
to: string;
|
160
|
+
timeSlices: {
|
161
|
+
from: string;
|
162
|
+
to: string;
|
163
|
+
baseAmount: {
|
164
|
+
currency: string;
|
165
|
+
grossAmount: number;
|
166
|
+
netAmount: number;
|
167
|
+
vatType: string;
|
168
|
+
vatPercent: number;
|
169
|
+
};
|
170
|
+
totalGrossAmount: {
|
171
|
+
currency: string;
|
172
|
+
amount: number;
|
173
|
+
};
|
174
|
+
blockedUnits: number;
|
175
|
+
pickedUnits: number;
|
176
|
+
}[];
|
177
|
+
unitGroup: {
|
178
|
+
type: string;
|
179
|
+
code: string;
|
180
|
+
id: string;
|
181
|
+
name: string;
|
182
|
+
description: string;
|
183
|
+
};
|
184
|
+
ratePlan: {
|
185
|
+
code: string;
|
186
|
+
id: string;
|
187
|
+
name: string;
|
188
|
+
description: string;
|
189
|
+
isSubjectToCityTax: boolean;
|
190
|
+
};
|
191
|
+
property: {
|
192
|
+
code: string;
|
193
|
+
id: string;
|
194
|
+
name: string;
|
195
|
+
description: string;
|
196
|
+
};
|
197
|
+
created: string;
|
198
|
+
grossDailyRate: {
|
199
|
+
currency: string;
|
200
|
+
amount: number;
|
201
|
+
};
|
202
|
+
pickedReservations: number;
|
203
|
+
}, {
|
204
|
+
id: string;
|
205
|
+
status: string;
|
206
|
+
group: {
|
207
|
+
id: string;
|
208
|
+
name: string;
|
209
|
+
};
|
210
|
+
modified: string;
|
211
|
+
from: string;
|
212
|
+
to: string;
|
213
|
+
timeSlices: {
|
214
|
+
from: string;
|
215
|
+
to: string;
|
216
|
+
baseAmount: {
|
217
|
+
currency: string;
|
218
|
+
grossAmount: number;
|
219
|
+
netAmount: number;
|
220
|
+
vatType: string;
|
221
|
+
vatPercent: number;
|
222
|
+
};
|
223
|
+
totalGrossAmount: {
|
224
|
+
currency: string;
|
225
|
+
amount: number;
|
226
|
+
};
|
227
|
+
blockedUnits: number;
|
228
|
+
pickedUnits: number;
|
229
|
+
}[];
|
230
|
+
unitGroup: {
|
231
|
+
type: string;
|
232
|
+
code: string;
|
233
|
+
id: string;
|
234
|
+
name: string;
|
235
|
+
description: string;
|
236
|
+
};
|
237
|
+
ratePlan: {
|
238
|
+
code: string;
|
239
|
+
id: string;
|
240
|
+
name: string;
|
241
|
+
description: string;
|
242
|
+
isSubjectToCityTax: boolean;
|
243
|
+
};
|
244
|
+
property: {
|
245
|
+
code: string;
|
246
|
+
id: string;
|
247
|
+
name: string;
|
248
|
+
description: string;
|
249
|
+
};
|
250
|
+
created: string;
|
251
|
+
grossDailyRate: {
|
252
|
+
currency: string;
|
253
|
+
amount: number;
|
254
|
+
};
|
255
|
+
pickedReservations: number;
|
256
|
+
}>;
|
257
|
+
export { blockSchema };
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.blockSchema = 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 baseAmountSchema = (0, zod_1.object)({
|
10
|
+
grossAmount: (0, zod_1.number)(),
|
11
|
+
netAmount: (0, zod_1.number)(),
|
12
|
+
vatType: (0, zod_1.string)(),
|
13
|
+
vatPercent: (0, zod_1.number)(),
|
14
|
+
currency: (0, zod_1.string)(),
|
15
|
+
});
|
16
|
+
const propertySchema = (0, zod_1.object)({
|
17
|
+
id: (0, zod_1.string)(),
|
18
|
+
code: (0, zod_1.string)(),
|
19
|
+
name: (0, zod_1.string)(),
|
20
|
+
description: (0, zod_1.string)(),
|
21
|
+
});
|
22
|
+
const ratePlanSchema = (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
|
+
isSubjectToCityTax: (0, zod_1.boolean)(),
|
28
|
+
});
|
29
|
+
const unitGroupSchema = (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
|
+
type: (0, zod_1.string)(),
|
35
|
+
});
|
36
|
+
const timeSliceSchema = (0, zod_1.object)({
|
37
|
+
from: (0, zod_1.string)(),
|
38
|
+
to: (0, zod_1.string)(),
|
39
|
+
blockedUnits: (0, zod_1.number)(),
|
40
|
+
pickedUnits: (0, zod_1.number)(),
|
41
|
+
baseAmount: baseAmountSchema,
|
42
|
+
totalGrossAmount: amountSchema,
|
43
|
+
});
|
44
|
+
const blockSchema = (0, zod_1.object)({
|
45
|
+
id: (0, zod_1.string)(),
|
46
|
+
group: (0, zod_1.object)({
|
47
|
+
id: (0, zod_1.string)(),
|
48
|
+
name: (0, zod_1.string)(),
|
49
|
+
}),
|
50
|
+
status: (0, zod_1.string)(),
|
51
|
+
property: propertySchema,
|
52
|
+
ratePlan: ratePlanSchema,
|
53
|
+
unitGroup: unitGroupSchema,
|
54
|
+
grossDailyRate: amountSchema,
|
55
|
+
from: (0, zod_1.string)(),
|
56
|
+
to: (0, zod_1.string)(),
|
57
|
+
pickedReservations: (0, zod_1.number)(),
|
58
|
+
created: (0, zod_1.string)(),
|
59
|
+
modified: (0, zod_1.string)(),
|
60
|
+
timeSlices: (0, zod_1.array)(timeSliceSchema),
|
61
|
+
});
|
62
|
+
exports.blockSchema = blockSchema;
|