@tmlmobilidade/types 20260723.2301.15 → 20260723.2334.13
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.
|
@@ -30,6 +30,22 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
30
30
|
vkm_per_month: number[];
|
|
31
31
|
}>;
|
|
32
32
|
name: z.ZodString;
|
|
33
|
+
open_data: z.ZodObject<{
|
|
34
|
+
eta_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
positions_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
eta_enabled: boolean;
|
|
40
|
+
gtfs_enabled: boolean;
|
|
41
|
+
positions_enabled: boolean;
|
|
42
|
+
service_alerts_enabled: boolean;
|
|
43
|
+
}, {
|
|
44
|
+
eta_enabled?: boolean | undefined;
|
|
45
|
+
gtfs_enabled?: boolean | undefined;
|
|
46
|
+
positions_enabled?: boolean | undefined;
|
|
47
|
+
service_alerts_enabled?: boolean | undefined;
|
|
48
|
+
}>;
|
|
33
49
|
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
|
|
34
50
|
phone: z.ZodString;
|
|
35
51
|
pta_name: z.ZodString;
|
|
@@ -62,6 +78,12 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
62
78
|
price_per_km: number;
|
|
63
79
|
vkm_per_month: number[];
|
|
64
80
|
};
|
|
81
|
+
open_data: {
|
|
82
|
+
eta_enabled: boolean;
|
|
83
|
+
gtfs_enabled: boolean;
|
|
84
|
+
positions_enabled: boolean;
|
|
85
|
+
service_alerts_enabled: boolean;
|
|
86
|
+
};
|
|
65
87
|
operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
|
|
66
88
|
phone: string;
|
|
67
89
|
pta_name: string;
|
|
@@ -87,6 +109,12 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
87
109
|
price_per_km: number;
|
|
88
110
|
vkm_per_month: number[];
|
|
89
111
|
};
|
|
112
|
+
open_data: {
|
|
113
|
+
eta_enabled?: boolean | undefined;
|
|
114
|
+
gtfs_enabled?: boolean | undefined;
|
|
115
|
+
positions_enabled?: boolean | undefined;
|
|
116
|
+
service_alerts_enabled?: boolean | undefined;
|
|
117
|
+
};
|
|
90
118
|
phone: string;
|
|
91
119
|
pta_name: string;
|
|
92
120
|
public_email: string;
|
|
@@ -133,6 +161,22 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
133
161
|
vkm_per_month: number[];
|
|
134
162
|
}>;
|
|
135
163
|
name: z.ZodString;
|
|
164
|
+
open_data: z.ZodObject<{
|
|
165
|
+
eta_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
166
|
+
gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
167
|
+
positions_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
+
service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
eta_enabled: boolean;
|
|
171
|
+
gtfs_enabled: boolean;
|
|
172
|
+
positions_enabled: boolean;
|
|
173
|
+
service_alerts_enabled: boolean;
|
|
174
|
+
}, {
|
|
175
|
+
eta_enabled?: boolean | undefined;
|
|
176
|
+
gtfs_enabled?: boolean | undefined;
|
|
177
|
+
positions_enabled?: boolean | undefined;
|
|
178
|
+
service_alerts_enabled?: boolean | undefined;
|
|
179
|
+
}>;
|
|
136
180
|
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
|
|
137
181
|
phone: z.ZodString;
|
|
138
182
|
pta_name: z.ZodString;
|
|
@@ -159,6 +203,12 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
159
203
|
price_per_km: number;
|
|
160
204
|
vkm_per_month: number[];
|
|
161
205
|
};
|
|
206
|
+
open_data: {
|
|
207
|
+
eta_enabled: boolean;
|
|
208
|
+
gtfs_enabled: boolean;
|
|
209
|
+
positions_enabled: boolean;
|
|
210
|
+
service_alerts_enabled: boolean;
|
|
211
|
+
};
|
|
162
212
|
operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
|
|
163
213
|
phone: string;
|
|
164
214
|
pta_name: string;
|
|
@@ -182,6 +232,12 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
182
232
|
price_per_km: number;
|
|
183
233
|
vkm_per_month: number[];
|
|
184
234
|
};
|
|
235
|
+
open_data: {
|
|
236
|
+
eta_enabled?: boolean | undefined;
|
|
237
|
+
gtfs_enabled?: boolean | undefined;
|
|
238
|
+
positions_enabled?: boolean | undefined;
|
|
239
|
+
service_alerts_enabled?: boolean | undefined;
|
|
240
|
+
};
|
|
185
241
|
phone: string;
|
|
186
242
|
pta_name: string;
|
|
187
243
|
public_email: string;
|
|
@@ -224,6 +280,22 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
224
280
|
price_per_km: number;
|
|
225
281
|
vkm_per_month: number[];
|
|
226
282
|
}>>;
|
|
283
|
+
open_data: z.ZodOptional<z.ZodObject<{
|
|
284
|
+
eta_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
285
|
+
gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
286
|
+
positions_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
287
|
+
service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
288
|
+
}, "strip", z.ZodTypeAny, {
|
|
289
|
+
eta_enabled: boolean;
|
|
290
|
+
gtfs_enabled: boolean;
|
|
291
|
+
positions_enabled: boolean;
|
|
292
|
+
service_alerts_enabled: boolean;
|
|
293
|
+
}, {
|
|
294
|
+
eta_enabled?: boolean | undefined;
|
|
295
|
+
gtfs_enabled?: boolean | undefined;
|
|
296
|
+
positions_enabled?: boolean | undefined;
|
|
297
|
+
service_alerts_enabled?: boolean | undefined;
|
|
298
|
+
}>>;
|
|
227
299
|
operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>>;
|
|
228
300
|
phone: z.ZodOptional<z.ZodString>;
|
|
229
301
|
pta_name: z.ZodOptional<z.ZodString>;
|
|
@@ -250,6 +322,12 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
250
322
|
price_per_km: number;
|
|
251
323
|
vkm_per_month: number[];
|
|
252
324
|
} | undefined;
|
|
325
|
+
open_data?: {
|
|
326
|
+
eta_enabled: boolean;
|
|
327
|
+
gtfs_enabled: boolean;
|
|
328
|
+
positions_enabled: boolean;
|
|
329
|
+
service_alerts_enabled: boolean;
|
|
330
|
+
} | undefined;
|
|
253
331
|
operation_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
|
|
254
332
|
phone?: string | undefined;
|
|
255
333
|
pta_name?: string | undefined;
|
|
@@ -276,6 +354,12 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
276
354
|
price_per_km: number;
|
|
277
355
|
vkm_per_month: number[];
|
|
278
356
|
} | undefined;
|
|
357
|
+
open_data?: {
|
|
358
|
+
eta_enabled?: boolean | undefined;
|
|
359
|
+
gtfs_enabled?: boolean | undefined;
|
|
360
|
+
positions_enabled?: boolean | undefined;
|
|
361
|
+
service_alerts_enabled?: boolean | undefined;
|
|
362
|
+
} | undefined;
|
|
279
363
|
operation_start_date?: string | null | undefined;
|
|
280
364
|
phone?: string | undefined;
|
|
281
365
|
pta_name?: string | undefined;
|
package/dist/agencies/agency.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { AgencyAlertMapSchema } from './alert-map.js';
|
|
3
3
|
import { AgencyApexSchema } from './apex.js';
|
|
4
4
|
import { AgencyFinancialsSchema } from './financials.js';
|
|
5
|
+
import { AgencyOpenDataSchema } from './open-data.js';
|
|
5
6
|
import { DocumentSchema, OperationalDateSchema } from '@tmlmobilidade/go-types-shared';
|
|
6
7
|
import { z } from 'zod';
|
|
7
8
|
/* * */
|
|
@@ -14,6 +15,7 @@ export const AgencySchema = DocumentSchema.extend({
|
|
|
14
15
|
fare_url: z.string().url(),
|
|
15
16
|
financials: AgencyFinancialsSchema,
|
|
16
17
|
name: z.string(),
|
|
18
|
+
open_data: AgencyOpenDataSchema,
|
|
17
19
|
operation_start_date: OperationalDateSchema.nullable().default(null),
|
|
18
20
|
phone: z.string(),
|
|
19
21
|
pta_name: z.string(),
|
package/dist/agencies/index.d.ts
CHANGED
package/dist/agencies/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AgencyOpenDataSchema: z.ZodObject<{
|
|
3
|
+
eta_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
positions_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
eta_enabled: boolean;
|
|
9
|
+
gtfs_enabled: boolean;
|
|
10
|
+
positions_enabled: boolean;
|
|
11
|
+
service_alerts_enabled: boolean;
|
|
12
|
+
}, {
|
|
13
|
+
eta_enabled?: boolean | undefined;
|
|
14
|
+
gtfs_enabled?: boolean | undefined;
|
|
15
|
+
positions_enabled?: boolean | undefined;
|
|
16
|
+
service_alerts_enabled?: boolean | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type AgencyOpenData = z.infer<typeof AgencyOpenDataSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
4
|
+
export const AgencyOpenDataSchema = z.object({
|
|
5
|
+
eta_enabled: z.boolean().default(false),
|
|
6
|
+
gtfs_enabled: z.boolean().default(false),
|
|
7
|
+
positions_enabled: z.boolean().default(false),
|
|
8
|
+
service_alerts_enabled: z.boolean().default(false),
|
|
9
|
+
});
|