colibris-types 1.0.20 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cars.d.ts +206 -0
- package/lib/cars.js +44 -0
- package/lib/computers.d.ts +152 -106
- package/lib/computers.js +2 -2
- package/lib/index.d.ts +530 -94
- package/lib/index.js +5 -1
- package/lib/licenses.d.ts +4 -4
- package/lib/org.d.ts +100 -76
- package/lib/telecom.d.ts +592 -0
- package/lib/telecom.js +186 -0
- package/package.json +6 -6
package/lib/cars.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const CarCategory: z.ZodObject<{
|
|
3
|
+
id_car_category: z.ZodNumber;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
id_car_category: number;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
id_car_category: number;
|
|
11
|
+
}>;
|
|
12
|
+
declare const CarEnegySource: z.ZodObject<{
|
|
13
|
+
id_car_energy_source: z.ZodNumber;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: string;
|
|
17
|
+
id_car_energy_source: number;
|
|
18
|
+
}, {
|
|
19
|
+
name: string;
|
|
20
|
+
id_car_energy_source: number;
|
|
21
|
+
}>;
|
|
22
|
+
declare const CarStatus: z.ZodObject<{
|
|
23
|
+
id_car_status: z.ZodNumber;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
name: string;
|
|
27
|
+
id_car_status: number;
|
|
28
|
+
}, {
|
|
29
|
+
name: string;
|
|
30
|
+
id_car_status: number;
|
|
31
|
+
}>;
|
|
32
|
+
declare const Car: z.ZodObject<z.objectUtil.extendShape<{
|
|
33
|
+
id_company: z.ZodNumber;
|
|
34
|
+
}, {
|
|
35
|
+
id_car: z.ZodNumber;
|
|
36
|
+
reg_country: z.ZodString;
|
|
37
|
+
reg_id_number: z.ZodString;
|
|
38
|
+
brand: z.ZodString;
|
|
39
|
+
model: z.ZodString;
|
|
40
|
+
variant_information: z.ZodOptional<z.ZodString>;
|
|
41
|
+
car_category: z.ZodString;
|
|
42
|
+
car_energy_source: z.ZodString;
|
|
43
|
+
car_status: z.ZodString;
|
|
44
|
+
owner: z.ZodString;
|
|
45
|
+
renter: z.ZodOptional<z.ZodString>;
|
|
46
|
+
renting_subsidiary: z.ZodOptional<z.ZodString>;
|
|
47
|
+
affected_subsidiary: z.ZodOptional<z.ZodString>;
|
|
48
|
+
rent_amount: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
start_date: z.ZodOptional<z.ZodDate>;
|
|
50
|
+
end_date: z.ZodOptional<z.ZodDate>;
|
|
51
|
+
expected_delivery_date: z.ZodOptional<z.ZodDate>;
|
|
52
|
+
expected_return_date: z.ZodOptional<z.ZodDate>;
|
|
53
|
+
expected_duration_months: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
delivery_date: z.ZodOptional<z.ZodDate>;
|
|
55
|
+
return_date: z.ZodOptional<z.ZodDate>;
|
|
56
|
+
}>, "strip", z.ZodTypeAny, {
|
|
57
|
+
brand: string;
|
|
58
|
+
id_company: number;
|
|
59
|
+
id_car: number;
|
|
60
|
+
reg_country: string;
|
|
61
|
+
reg_id_number: string;
|
|
62
|
+
model: string;
|
|
63
|
+
car_category: string;
|
|
64
|
+
car_energy_source: string;
|
|
65
|
+
car_status: string;
|
|
66
|
+
owner: string;
|
|
67
|
+
variant_information?: string | undefined;
|
|
68
|
+
renter?: string | undefined;
|
|
69
|
+
renting_subsidiary?: string | undefined;
|
|
70
|
+
affected_subsidiary?: string | undefined;
|
|
71
|
+
rent_amount?: number | undefined;
|
|
72
|
+
start_date?: Date | undefined;
|
|
73
|
+
end_date?: Date | undefined;
|
|
74
|
+
expected_delivery_date?: Date | undefined;
|
|
75
|
+
expected_return_date?: Date | undefined;
|
|
76
|
+
expected_duration_months?: number | undefined;
|
|
77
|
+
delivery_date?: Date | undefined;
|
|
78
|
+
return_date?: Date | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
brand: string;
|
|
81
|
+
id_company: number;
|
|
82
|
+
id_car: number;
|
|
83
|
+
reg_country: string;
|
|
84
|
+
reg_id_number: string;
|
|
85
|
+
model: string;
|
|
86
|
+
car_category: string;
|
|
87
|
+
car_energy_source: string;
|
|
88
|
+
car_status: string;
|
|
89
|
+
owner: string;
|
|
90
|
+
variant_information?: string | undefined;
|
|
91
|
+
renter?: string | undefined;
|
|
92
|
+
renting_subsidiary?: string | undefined;
|
|
93
|
+
affected_subsidiary?: string | undefined;
|
|
94
|
+
rent_amount?: number | undefined;
|
|
95
|
+
start_date?: Date | undefined;
|
|
96
|
+
end_date?: Date | undefined;
|
|
97
|
+
expected_delivery_date?: Date | undefined;
|
|
98
|
+
expected_return_date?: Date | undefined;
|
|
99
|
+
expected_duration_months?: number | undefined;
|
|
100
|
+
delivery_date?: Date | undefined;
|
|
101
|
+
return_date?: Date | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
export declare const carDefinitions: {
|
|
104
|
+
car_category: z.ZodObject<{
|
|
105
|
+
id_car_category: z.ZodNumber;
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
name: string;
|
|
109
|
+
id_car_category: number;
|
|
110
|
+
}, {
|
|
111
|
+
name: string;
|
|
112
|
+
id_car_category: number;
|
|
113
|
+
}>;
|
|
114
|
+
car_energy_source: z.ZodObject<{
|
|
115
|
+
id_car_energy_source: z.ZodNumber;
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
name: string;
|
|
119
|
+
id_car_energy_source: number;
|
|
120
|
+
}, {
|
|
121
|
+
name: string;
|
|
122
|
+
id_car_energy_source: number;
|
|
123
|
+
}>;
|
|
124
|
+
car_status: z.ZodObject<{
|
|
125
|
+
id_car_status: z.ZodNumber;
|
|
126
|
+
name: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
name: string;
|
|
129
|
+
id_car_status: number;
|
|
130
|
+
}, {
|
|
131
|
+
name: string;
|
|
132
|
+
id_car_status: number;
|
|
133
|
+
}>;
|
|
134
|
+
car: z.ZodObject<z.objectUtil.extendShape<{
|
|
135
|
+
id_company: z.ZodNumber;
|
|
136
|
+
}, {
|
|
137
|
+
id_car: z.ZodNumber;
|
|
138
|
+
reg_country: z.ZodString;
|
|
139
|
+
reg_id_number: z.ZodString;
|
|
140
|
+
brand: z.ZodString;
|
|
141
|
+
model: z.ZodString;
|
|
142
|
+
variant_information: z.ZodOptional<z.ZodString>;
|
|
143
|
+
car_category: z.ZodString;
|
|
144
|
+
car_energy_source: z.ZodString;
|
|
145
|
+
car_status: z.ZodString;
|
|
146
|
+
owner: z.ZodString;
|
|
147
|
+
renter: z.ZodOptional<z.ZodString>;
|
|
148
|
+
renting_subsidiary: z.ZodOptional<z.ZodString>;
|
|
149
|
+
affected_subsidiary: z.ZodOptional<z.ZodString>;
|
|
150
|
+
rent_amount: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
start_date: z.ZodOptional<z.ZodDate>;
|
|
152
|
+
end_date: z.ZodOptional<z.ZodDate>;
|
|
153
|
+
expected_delivery_date: z.ZodOptional<z.ZodDate>;
|
|
154
|
+
expected_return_date: z.ZodOptional<z.ZodDate>;
|
|
155
|
+
expected_duration_months: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
delivery_date: z.ZodOptional<z.ZodDate>;
|
|
157
|
+
return_date: z.ZodOptional<z.ZodDate>;
|
|
158
|
+
}>, "strip", z.ZodTypeAny, {
|
|
159
|
+
brand: string;
|
|
160
|
+
id_company: number;
|
|
161
|
+
id_car: number;
|
|
162
|
+
reg_country: string;
|
|
163
|
+
reg_id_number: string;
|
|
164
|
+
model: string;
|
|
165
|
+
car_category: string;
|
|
166
|
+
car_energy_source: string;
|
|
167
|
+
car_status: string;
|
|
168
|
+
owner: string;
|
|
169
|
+
variant_information?: string | undefined;
|
|
170
|
+
renter?: string | undefined;
|
|
171
|
+
renting_subsidiary?: string | undefined;
|
|
172
|
+
affected_subsidiary?: string | undefined;
|
|
173
|
+
rent_amount?: number | undefined;
|
|
174
|
+
start_date?: Date | undefined;
|
|
175
|
+
end_date?: Date | undefined;
|
|
176
|
+
expected_delivery_date?: Date | undefined;
|
|
177
|
+
expected_return_date?: Date | undefined;
|
|
178
|
+
expected_duration_months?: number | undefined;
|
|
179
|
+
delivery_date?: Date | undefined;
|
|
180
|
+
return_date?: Date | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
brand: string;
|
|
183
|
+
id_company: number;
|
|
184
|
+
id_car: number;
|
|
185
|
+
reg_country: string;
|
|
186
|
+
reg_id_number: string;
|
|
187
|
+
model: string;
|
|
188
|
+
car_category: string;
|
|
189
|
+
car_energy_source: string;
|
|
190
|
+
car_status: string;
|
|
191
|
+
owner: string;
|
|
192
|
+
variant_information?: string | undefined;
|
|
193
|
+
renter?: string | undefined;
|
|
194
|
+
renting_subsidiary?: string | undefined;
|
|
195
|
+
affected_subsidiary?: string | undefined;
|
|
196
|
+
rent_amount?: number | undefined;
|
|
197
|
+
start_date?: Date | undefined;
|
|
198
|
+
end_date?: Date | undefined;
|
|
199
|
+
expected_delivery_date?: Date | undefined;
|
|
200
|
+
expected_return_date?: Date | undefined;
|
|
201
|
+
expected_duration_months?: number | undefined;
|
|
202
|
+
delivery_date?: Date | undefined;
|
|
203
|
+
return_date?: Date | undefined;
|
|
204
|
+
}>;
|
|
205
|
+
};
|
|
206
|
+
export { CarCategory, CarEnegySource, CarStatus, Car };
|
package/lib/cars.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Model } from "./base.js";
|
|
3
|
+
const CarCategory = z.object({
|
|
4
|
+
id_car_category: z.number(),
|
|
5
|
+
name: z.string().max(250),
|
|
6
|
+
});
|
|
7
|
+
const CarEnegySource = z.object({
|
|
8
|
+
id_car_energy_source: z.number(),
|
|
9
|
+
name: z.string().max(250),
|
|
10
|
+
});
|
|
11
|
+
const CarStatus = z.object({
|
|
12
|
+
id_car_status: z.number(),
|
|
13
|
+
name: z.string().max(250),
|
|
14
|
+
});
|
|
15
|
+
const Car = Model.extend({
|
|
16
|
+
id_car: z.number(),
|
|
17
|
+
reg_country: z.string().max(50),
|
|
18
|
+
reg_id_number: z.string().max(20),
|
|
19
|
+
brand: z.string().max(50),
|
|
20
|
+
model: z.string().max(50),
|
|
21
|
+
variant_information: z.string().max(50).optional(),
|
|
22
|
+
car_category: z.string().max(250),
|
|
23
|
+
car_energy_source: z.string().max(250),
|
|
24
|
+
car_status: z.string().max(250),
|
|
25
|
+
owner: z.string().max(250),
|
|
26
|
+
renter: z.string().max(250).optional(),
|
|
27
|
+
renting_subsidiary: z.string().max(250).optional(),
|
|
28
|
+
affected_subsidiary: z.string().max(250).optional(),
|
|
29
|
+
rent_amount: z.number().optional(),
|
|
30
|
+
start_date: z.coerce.date().optional(),
|
|
31
|
+
end_date: z.coerce.date().optional(),
|
|
32
|
+
expected_delivery_date: z.coerce.date().optional(),
|
|
33
|
+
expected_return_date: z.coerce.date().optional(),
|
|
34
|
+
expected_duration_months: z.number().optional(),
|
|
35
|
+
delivery_date: z.coerce.date().optional(),
|
|
36
|
+
return_date: z.coerce.date().optional(),
|
|
37
|
+
});
|
|
38
|
+
export const carDefinitions = {
|
|
39
|
+
car_category: CarCategory,
|
|
40
|
+
car_energy_source: CarEnegySource,
|
|
41
|
+
car_status: CarStatus,
|
|
42
|
+
car: Car,
|
|
43
|
+
};
|
|
44
|
+
export { CarCategory, CarEnegySource, CarStatus, Car };
|