@tmlmobilidade/types 20260723.2301.15 → 20260723.2326.22
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,19 @@ 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
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
eta_enabled: boolean;
|
|
39
|
+
gtfs_enabled: boolean;
|
|
40
|
+
positions_enabled: boolean;
|
|
41
|
+
}, {
|
|
42
|
+
eta_enabled?: boolean | undefined;
|
|
43
|
+
gtfs_enabled?: boolean | undefined;
|
|
44
|
+
positions_enabled?: boolean | undefined;
|
|
45
|
+
}>;
|
|
33
46
|
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
|
|
34
47
|
phone: z.ZodString;
|
|
35
48
|
pta_name: z.ZodString;
|
|
@@ -62,6 +75,11 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
62
75
|
price_per_km: number;
|
|
63
76
|
vkm_per_month: number[];
|
|
64
77
|
};
|
|
78
|
+
open_data: {
|
|
79
|
+
eta_enabled: boolean;
|
|
80
|
+
gtfs_enabled: boolean;
|
|
81
|
+
positions_enabled: boolean;
|
|
82
|
+
};
|
|
65
83
|
operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
|
|
66
84
|
phone: string;
|
|
67
85
|
pta_name: string;
|
|
@@ -87,6 +105,11 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
87
105
|
price_per_km: number;
|
|
88
106
|
vkm_per_month: number[];
|
|
89
107
|
};
|
|
108
|
+
open_data: {
|
|
109
|
+
eta_enabled?: boolean | undefined;
|
|
110
|
+
gtfs_enabled?: boolean | undefined;
|
|
111
|
+
positions_enabled?: boolean | undefined;
|
|
112
|
+
};
|
|
90
113
|
phone: string;
|
|
91
114
|
pta_name: string;
|
|
92
115
|
public_email: string;
|
|
@@ -133,6 +156,19 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
133
156
|
vkm_per_month: number[];
|
|
134
157
|
}>;
|
|
135
158
|
name: z.ZodString;
|
|
159
|
+
open_data: z.ZodObject<{
|
|
160
|
+
eta_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
positions_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
eta_enabled: boolean;
|
|
165
|
+
gtfs_enabled: boolean;
|
|
166
|
+
positions_enabled: boolean;
|
|
167
|
+
}, {
|
|
168
|
+
eta_enabled?: boolean | undefined;
|
|
169
|
+
gtfs_enabled?: boolean | undefined;
|
|
170
|
+
positions_enabled?: boolean | undefined;
|
|
171
|
+
}>;
|
|
136
172
|
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
|
|
137
173
|
phone: z.ZodString;
|
|
138
174
|
pta_name: z.ZodString;
|
|
@@ -159,6 +195,11 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
159
195
|
price_per_km: number;
|
|
160
196
|
vkm_per_month: number[];
|
|
161
197
|
};
|
|
198
|
+
open_data: {
|
|
199
|
+
eta_enabled: boolean;
|
|
200
|
+
gtfs_enabled: boolean;
|
|
201
|
+
positions_enabled: boolean;
|
|
202
|
+
};
|
|
162
203
|
operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
|
|
163
204
|
phone: string;
|
|
164
205
|
pta_name: string;
|
|
@@ -182,6 +223,11 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
182
223
|
price_per_km: number;
|
|
183
224
|
vkm_per_month: number[];
|
|
184
225
|
};
|
|
226
|
+
open_data: {
|
|
227
|
+
eta_enabled?: boolean | undefined;
|
|
228
|
+
gtfs_enabled?: boolean | undefined;
|
|
229
|
+
positions_enabled?: boolean | undefined;
|
|
230
|
+
};
|
|
185
231
|
phone: string;
|
|
186
232
|
pta_name: string;
|
|
187
233
|
public_email: string;
|
|
@@ -224,6 +270,19 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
224
270
|
price_per_km: number;
|
|
225
271
|
vkm_per_month: number[];
|
|
226
272
|
}>>;
|
|
273
|
+
open_data: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
eta_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
275
|
+
gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
276
|
+
positions_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
eta_enabled: boolean;
|
|
279
|
+
gtfs_enabled: boolean;
|
|
280
|
+
positions_enabled: boolean;
|
|
281
|
+
}, {
|
|
282
|
+
eta_enabled?: boolean | undefined;
|
|
283
|
+
gtfs_enabled?: boolean | undefined;
|
|
284
|
+
positions_enabled?: boolean | undefined;
|
|
285
|
+
}>>;
|
|
227
286
|
operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>>;
|
|
228
287
|
phone: z.ZodOptional<z.ZodString>;
|
|
229
288
|
pta_name: z.ZodOptional<z.ZodString>;
|
|
@@ -250,6 +309,11 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
250
309
|
price_per_km: number;
|
|
251
310
|
vkm_per_month: number[];
|
|
252
311
|
} | undefined;
|
|
312
|
+
open_data?: {
|
|
313
|
+
eta_enabled: boolean;
|
|
314
|
+
gtfs_enabled: boolean;
|
|
315
|
+
positions_enabled: boolean;
|
|
316
|
+
} | undefined;
|
|
253
317
|
operation_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
|
|
254
318
|
phone?: string | undefined;
|
|
255
319
|
pta_name?: string | undefined;
|
|
@@ -276,6 +340,11 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
276
340
|
price_per_km: number;
|
|
277
341
|
vkm_per_month: number[];
|
|
278
342
|
} | undefined;
|
|
343
|
+
open_data?: {
|
|
344
|
+
eta_enabled?: boolean | undefined;
|
|
345
|
+
gtfs_enabled?: boolean | undefined;
|
|
346
|
+
positions_enabled?: boolean | undefined;
|
|
347
|
+
} | undefined;
|
|
279
348
|
operation_start_date?: string | null | undefined;
|
|
280
349
|
phone?: string | undefined;
|
|
281
350
|
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,15 @@
|
|
|
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
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
eta_enabled: boolean;
|
|
8
|
+
gtfs_enabled: boolean;
|
|
9
|
+
positions_enabled: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
eta_enabled?: boolean | undefined;
|
|
12
|
+
gtfs_enabled?: boolean | undefined;
|
|
13
|
+
positions_enabled?: boolean | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type AgencyOpenData = z.infer<typeof AgencyOpenDataSchema>;
|