@tmlmobilidade/types 20260615.1640.33 → 20260616.54.25
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/dist/hub/api/network/line.d.ts +15 -3
- package/dist/hub/api/network/line.js +5 -1
- package/dist/hub/api/network/pattern.d.ts +15 -3
- package/dist/hub/api/network/pattern.js +5 -1
- package/dist/hub/api/network/route.d.ts +15 -3
- package/dist/hub/api/network/route.js +5 -1
- package/dist/locations/queries.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,12 +4,16 @@ export declare const HubLineSchema: z.ZodObject<{
|
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
5
|
color: z.ZodString;
|
|
6
6
|
district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
district_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
8
|
facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
9
|
locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
locality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9
11
|
long_name: z.ZodString;
|
|
10
12
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
+
municipality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
+
parish_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
15
|
+
parish_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
16
|
pattern_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
-
region_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13
17
|
route_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
18
|
short_name: z.ZodString;
|
|
15
19
|
stop_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -25,10 +29,14 @@ export declare const HubLineSchema: z.ZodObject<{
|
|
|
25
29
|
tts_name: string;
|
|
26
30
|
facilities: string[];
|
|
27
31
|
district_ids: string[];
|
|
32
|
+
district_names: string[];
|
|
28
33
|
locality_ids: string[];
|
|
34
|
+
locality_names: string[];
|
|
29
35
|
long_name: string;
|
|
36
|
+
municipality_names: string[];
|
|
37
|
+
parish_ids: string[];
|
|
38
|
+
parish_names: string[];
|
|
30
39
|
pattern_ids: string[];
|
|
31
|
-
region_ids: string[];
|
|
32
40
|
route_ids: string[];
|
|
33
41
|
text_color: string;
|
|
34
42
|
}, {
|
|
@@ -43,9 +51,13 @@ export declare const HubLineSchema: z.ZodObject<{
|
|
|
43
51
|
stop_ids?: string[] | undefined;
|
|
44
52
|
facilities?: string[] | undefined;
|
|
45
53
|
district_ids?: string[] | undefined;
|
|
54
|
+
district_names?: string[] | undefined;
|
|
46
55
|
locality_ids?: string[] | undefined;
|
|
56
|
+
locality_names?: string[] | undefined;
|
|
57
|
+
municipality_names?: string[] | undefined;
|
|
58
|
+
parish_ids?: string[] | undefined;
|
|
59
|
+
parish_names?: string[] | undefined;
|
|
47
60
|
pattern_ids?: string[] | undefined;
|
|
48
|
-
region_ids?: string[] | undefined;
|
|
49
61
|
route_ids?: string[] | undefined;
|
|
50
62
|
}>;
|
|
51
63
|
/**
|
|
@@ -6,12 +6,16 @@ export const HubLineSchema = z.object({
|
|
|
6
6
|
agency_id: z.string(),
|
|
7
7
|
color: z.string(),
|
|
8
8
|
district_ids: z.array(z.string()).default([]),
|
|
9
|
+
district_names: z.array(z.string()).default([]),
|
|
9
10
|
facilities: z.array(z.string()).default([]),
|
|
10
11
|
locality_ids: z.array(z.string()).default([]),
|
|
12
|
+
locality_names: z.array(z.string()).default([]),
|
|
11
13
|
long_name: z.string(),
|
|
12
14
|
municipality_ids: z.array(z.string()).default([]),
|
|
15
|
+
municipality_names: z.array(z.string()).default([]),
|
|
16
|
+
parish_ids: z.array(z.string()).default([]),
|
|
17
|
+
parish_names: z.array(z.string()).default([]),
|
|
13
18
|
pattern_ids: z.array(z.string()).default([]),
|
|
14
|
-
region_ids: z.array(z.string()).default([]),
|
|
15
19
|
route_ids: z.array(z.string()).default([]),
|
|
16
20
|
short_name: z.string(),
|
|
17
21
|
stop_ids: z.array(z.string()).default([]),
|
|
@@ -5,12 +5,17 @@ export declare const HubPatternSchema: z.ZodObject<{
|
|
|
5
5
|
color: z.ZodString;
|
|
6
6
|
direction_id: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
7
7
|
district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
district_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
9
|
facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9
10
|
headsign: z.ZodString;
|
|
10
11
|
line_id: z.ZodString;
|
|
11
12
|
locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
+
locality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
14
|
long_name: z.ZodString;
|
|
13
15
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
municipality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
+
parish_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
parish_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
19
|
path: z.ZodArray<z.ZodObject<{
|
|
15
20
|
allow_drop_off: z.ZodBoolean;
|
|
16
21
|
allow_pickup: z.ZodBoolean;
|
|
@@ -33,7 +38,6 @@ export declare const HubPatternSchema: z.ZodObject<{
|
|
|
33
38
|
distance: number;
|
|
34
39
|
distance_delta: number;
|
|
35
40
|
}>, "many">;
|
|
36
|
-
region_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
37
41
|
route_id: z.ZodString;
|
|
38
42
|
shape_id: z.ZodString;
|
|
39
43
|
short_name: z.ZodString;
|
|
@@ -106,9 +110,13 @@ export declare const HubPatternSchema: z.ZodObject<{
|
|
|
106
110
|
direction_id: 0 | 1;
|
|
107
111
|
shape_id: string;
|
|
108
112
|
district_ids: string[];
|
|
113
|
+
district_names: string[];
|
|
109
114
|
locality_ids: string[];
|
|
115
|
+
locality_names: string[];
|
|
110
116
|
long_name: string;
|
|
111
|
-
|
|
117
|
+
municipality_names: string[];
|
|
118
|
+
parish_ids: string[];
|
|
119
|
+
parish_names: string[];
|
|
112
120
|
text_color: string;
|
|
113
121
|
valid_on: string[];
|
|
114
122
|
version_id: string;
|
|
@@ -162,8 +170,12 @@ export declare const HubPatternSchema: z.ZodObject<{
|
|
|
162
170
|
municipality_ids?: string[] | undefined;
|
|
163
171
|
facilities?: string[] | undefined;
|
|
164
172
|
district_ids?: string[] | undefined;
|
|
173
|
+
district_names?: string[] | undefined;
|
|
165
174
|
locality_ids?: string[] | undefined;
|
|
166
|
-
|
|
175
|
+
locality_names?: string[] | undefined;
|
|
176
|
+
municipality_names?: string[] | undefined;
|
|
177
|
+
parish_ids?: string[] | undefined;
|
|
178
|
+
parish_names?: string[] | undefined;
|
|
167
179
|
valid_on?: string[] | undefined;
|
|
168
180
|
}>;
|
|
169
181
|
/**
|
|
@@ -9,14 +9,18 @@ export const HubPatternSchema = z.object({
|
|
|
9
9
|
color: z.string(),
|
|
10
10
|
direction_id: z.union([z.literal(0), z.literal(1)]),
|
|
11
11
|
district_ids: z.array(z.string()).default([]),
|
|
12
|
+
district_names: z.array(z.string()).default([]),
|
|
12
13
|
facilities: z.array(z.string()).default([]),
|
|
13
14
|
headsign: z.string(),
|
|
14
15
|
line_id: z.string(),
|
|
15
16
|
locality_ids: z.array(z.string()).default([]),
|
|
17
|
+
locality_names: z.array(z.string()).default([]),
|
|
16
18
|
long_name: z.string(),
|
|
17
19
|
municipality_ids: z.array(z.string()).default([]),
|
|
20
|
+
municipality_names: z.array(z.string()).default([]),
|
|
21
|
+
parish_ids: z.array(z.string()).default([]),
|
|
22
|
+
parish_names: z.array(z.string()).default([]),
|
|
18
23
|
path: z.array(HubWaypointSchema),
|
|
19
|
-
region_ids: z.array(z.string()).default([]),
|
|
20
24
|
route_id: z.string(),
|
|
21
25
|
shape_id: z.string(),
|
|
22
26
|
short_name: z.string(),
|
|
@@ -4,13 +4,17 @@ export declare const HubRouteSchema: z.ZodObject<{
|
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
5
|
color: z.ZodString;
|
|
6
6
|
district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
district_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
8
|
facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
9
|
line_id: z.ZodString;
|
|
9
10
|
locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
locality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
10
12
|
long_name: z.ZodString;
|
|
11
13
|
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
+
municipality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
15
|
+
parish_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
parish_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
17
|
pattern_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
-
region_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
18
|
short_name: z.ZodString;
|
|
15
19
|
stop_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
16
20
|
text_color: z.ZodString;
|
|
@@ -26,10 +30,14 @@ export declare const HubRouteSchema: z.ZodObject<{
|
|
|
26
30
|
tts_name: string;
|
|
27
31
|
facilities: string[];
|
|
28
32
|
district_ids: string[];
|
|
33
|
+
district_names: string[];
|
|
29
34
|
locality_ids: string[];
|
|
35
|
+
locality_names: string[];
|
|
30
36
|
long_name: string;
|
|
37
|
+
municipality_names: string[];
|
|
38
|
+
parish_ids: string[];
|
|
39
|
+
parish_names: string[];
|
|
31
40
|
pattern_ids: string[];
|
|
32
|
-
region_ids: string[];
|
|
33
41
|
text_color: string;
|
|
34
42
|
}, {
|
|
35
43
|
_id: string;
|
|
@@ -44,9 +52,13 @@ export declare const HubRouteSchema: z.ZodObject<{
|
|
|
44
52
|
stop_ids?: string[] | undefined;
|
|
45
53
|
facilities?: string[] | undefined;
|
|
46
54
|
district_ids?: string[] | undefined;
|
|
55
|
+
district_names?: string[] | undefined;
|
|
47
56
|
locality_ids?: string[] | undefined;
|
|
57
|
+
locality_names?: string[] | undefined;
|
|
58
|
+
municipality_names?: string[] | undefined;
|
|
59
|
+
parish_ids?: string[] | undefined;
|
|
60
|
+
parish_names?: string[] | undefined;
|
|
48
61
|
pattern_ids?: string[] | undefined;
|
|
49
|
-
region_ids?: string[] | undefined;
|
|
50
62
|
}>;
|
|
51
63
|
/**
|
|
52
64
|
* Publishable route data for the Hub Network API.
|
|
@@ -6,13 +6,17 @@ export const HubRouteSchema = z.object({
|
|
|
6
6
|
agency_id: z.string(),
|
|
7
7
|
color: z.string(),
|
|
8
8
|
district_ids: z.array(z.string()).default([]),
|
|
9
|
+
district_names: z.array(z.string()).default([]),
|
|
9
10
|
facilities: z.array(z.string()).default([]),
|
|
10
11
|
line_id: z.string(),
|
|
11
12
|
locality_ids: z.array(z.string()).default([]),
|
|
13
|
+
locality_names: z.array(z.string()).default([]),
|
|
12
14
|
long_name: z.string(),
|
|
13
15
|
municipality_ids: z.array(z.string()).default([]),
|
|
16
|
+
municipality_names: z.array(z.string()).default([]),
|
|
17
|
+
parish_ids: z.array(z.string()).default([]),
|
|
18
|
+
parish_names: z.array(z.string()).default([]),
|
|
14
19
|
pattern_ids: z.array(z.string()).default([]),
|
|
15
|
-
region_ids: z.array(z.string()).default([]),
|
|
16
20
|
short_name: z.string(),
|
|
17
21
|
stop_ids: z.array(z.string()).default([]),
|
|
18
22
|
text_color: z.string(),
|
|
@@ -104,10 +104,10 @@ export declare const GetAllLocalitiesQuerySchema: z.ZodObject<{
|
|
|
104
104
|
}, {
|
|
105
105
|
municipality_ids?: unknown;
|
|
106
106
|
district_ids?: unknown;
|
|
107
|
+
parish_ids?: unknown;
|
|
107
108
|
geojson?: unknown;
|
|
108
109
|
limit?: number | undefined;
|
|
109
110
|
page?: number | undefined;
|
|
110
|
-
parish_ids?: unknown;
|
|
111
111
|
}>;
|
|
112
112
|
/**
|
|
113
113
|
* This type represents the query parameters for fetching all Localities
|