@tmlmobilidade/types 20260624.1159.20 → 20260625.1419.32
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/shapes.d.ts +3 -0
- package/dist/hub/api/shapes.js +1 -0
- package/dist/offer/pattern.d.ts +88 -0
- package/dist/offer/pattern.js +17 -0
- package/package.json +1 -1
package/dist/hub/api/shapes.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export type HubShapePoint = z.infer<typeof HubShapePointSchema>;
|
|
|
51
51
|
export declare const HubShapeSchema: z.ZodObject<{
|
|
52
52
|
_id: z.ZodString;
|
|
53
53
|
agency_id: z.ZodString;
|
|
54
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
54
55
|
extension: z.ZodNumber;
|
|
55
56
|
geojson: z.ZodObject<{
|
|
56
57
|
geometry: z.ZodObject<{
|
|
@@ -114,6 +115,7 @@ export declare const HubShapeSchema: z.ZodObject<{
|
|
|
114
115
|
shape_pt_lon: number;
|
|
115
116
|
shape_pt_sequence: number;
|
|
116
117
|
}[];
|
|
118
|
+
encoded_polyline?: string | undefined;
|
|
117
119
|
}, {
|
|
118
120
|
_id: string;
|
|
119
121
|
agency_id: string;
|
|
@@ -132,6 +134,7 @@ export declare const HubShapeSchema: z.ZodObject<{
|
|
|
132
134
|
shape_pt_lon: number;
|
|
133
135
|
shape_pt_sequence: number;
|
|
134
136
|
}[];
|
|
137
|
+
encoded_polyline?: string | undefined;
|
|
135
138
|
}>;
|
|
136
139
|
/**
|
|
137
140
|
* GeoJSON feature for a hub network shape line.
|
package/dist/hub/api/shapes.js
CHANGED
|
@@ -19,6 +19,7 @@ export const HubShapePointSchema = z.object({
|
|
|
19
19
|
export const HubShapeSchema = z.object({
|
|
20
20
|
_id: z.string(),
|
|
21
21
|
agency_id: z.string(),
|
|
22
|
+
encoded_polyline: z.string().optional(),
|
|
22
23
|
extension: z.number(),
|
|
23
24
|
geojson: HubShapeGeoJsonSchema,
|
|
24
25
|
points: z.array(HubShapePointSchema),
|
package/dist/offer/pattern.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
62
62
|
type?: "via" | "through" | undefined;
|
|
63
63
|
sequence?: number | undefined;
|
|
64
64
|
}>, "many">>;
|
|
65
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
65
66
|
extension: z.ZodNumber;
|
|
66
67
|
geojson: z.ZodObject<{
|
|
67
68
|
geometry: z.ZodObject<{
|
|
@@ -94,6 +95,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
94
95
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
96
|
distance: z.ZodNumber;
|
|
96
97
|
duration: z.ZodNumber;
|
|
98
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
97
99
|
from_index: z.ZodNumber;
|
|
98
100
|
geojson: z.ZodObject<{
|
|
99
101
|
geometry: z.ZodObject<{
|
|
@@ -169,6 +171,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
169
171
|
duration: number;
|
|
170
172
|
from_index: number;
|
|
171
173
|
to_index: number;
|
|
174
|
+
encoded_polyline?: string | undefined;
|
|
172
175
|
}, {
|
|
173
176
|
distance: number;
|
|
174
177
|
geometry: [number, number][];
|
|
@@ -188,6 +191,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
188
191
|
duration: number;
|
|
189
192
|
from_index: number;
|
|
190
193
|
to_index: number;
|
|
194
|
+
encoded_polyline?: string | undefined;
|
|
191
195
|
}>, "many">>;
|
|
192
196
|
}, "strip", z.ZodTypeAny, {
|
|
193
197
|
extension: number;
|
|
@@ -199,6 +203,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
199
203
|
};
|
|
200
204
|
properties?: {} | undefined;
|
|
201
205
|
};
|
|
206
|
+
encoded_polyline?: string | undefined;
|
|
202
207
|
anchors?: {
|
|
203
208
|
_id: string;
|
|
204
209
|
type: "via" | "through";
|
|
@@ -227,6 +232,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
227
232
|
duration: number;
|
|
228
233
|
from_index: number;
|
|
229
234
|
to_index: number;
|
|
235
|
+
encoded_polyline?: string | undefined;
|
|
230
236
|
}[] | undefined;
|
|
231
237
|
}, {
|
|
232
238
|
extension: number;
|
|
@@ -238,6 +244,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
238
244
|
type?: string | undefined;
|
|
239
245
|
properties?: {} | undefined;
|
|
240
246
|
};
|
|
247
|
+
encoded_polyline?: string | undefined;
|
|
241
248
|
anchors?: {
|
|
242
249
|
_id: string;
|
|
243
250
|
after_stop_id: number;
|
|
@@ -266,6 +273,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
266
273
|
duration: number;
|
|
267
274
|
from_index: number;
|
|
268
275
|
to_index: number;
|
|
276
|
+
encoded_polyline?: string | undefined;
|
|
269
277
|
}[] | undefined;
|
|
270
278
|
}>;
|
|
271
279
|
export declare const PatternSchema: z.ZodObject<{
|
|
@@ -856,6 +864,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
856
864
|
type?: "via" | "through" | undefined;
|
|
857
865
|
sequence?: number | undefined;
|
|
858
866
|
}>, "many">>;
|
|
867
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
859
868
|
extension: z.ZodNumber;
|
|
860
869
|
geojson: z.ZodObject<{
|
|
861
870
|
geometry: z.ZodObject<{
|
|
@@ -888,6 +897,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
888
897
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
889
898
|
distance: z.ZodNumber;
|
|
890
899
|
duration: z.ZodNumber;
|
|
900
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
891
901
|
from_index: z.ZodNumber;
|
|
892
902
|
geojson: z.ZodObject<{
|
|
893
903
|
geometry: z.ZodObject<{
|
|
@@ -963,6 +973,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
963
973
|
duration: number;
|
|
964
974
|
from_index: number;
|
|
965
975
|
to_index: number;
|
|
976
|
+
encoded_polyline?: string | undefined;
|
|
966
977
|
}, {
|
|
967
978
|
distance: number;
|
|
968
979
|
geometry: [number, number][];
|
|
@@ -982,6 +993,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
982
993
|
duration: number;
|
|
983
994
|
from_index: number;
|
|
984
995
|
to_index: number;
|
|
996
|
+
encoded_polyline?: string | undefined;
|
|
985
997
|
}>, "many">>;
|
|
986
998
|
}, "strip", z.ZodTypeAny, {
|
|
987
999
|
extension: number;
|
|
@@ -993,6 +1005,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
993
1005
|
};
|
|
994
1006
|
properties?: {} | undefined;
|
|
995
1007
|
};
|
|
1008
|
+
encoded_polyline?: string | undefined;
|
|
996
1009
|
anchors?: {
|
|
997
1010
|
_id: string;
|
|
998
1011
|
type: "via" | "through";
|
|
@@ -1021,6 +1034,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1021
1034
|
duration: number;
|
|
1022
1035
|
from_index: number;
|
|
1023
1036
|
to_index: number;
|
|
1037
|
+
encoded_polyline?: string | undefined;
|
|
1024
1038
|
}[] | undefined;
|
|
1025
1039
|
}, {
|
|
1026
1040
|
extension: number;
|
|
@@ -1032,6 +1046,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1032
1046
|
type?: string | undefined;
|
|
1033
1047
|
properties?: {} | undefined;
|
|
1034
1048
|
};
|
|
1049
|
+
encoded_polyline?: string | undefined;
|
|
1035
1050
|
anchors?: {
|
|
1036
1051
|
_id: string;
|
|
1037
1052
|
after_stop_id: number;
|
|
@@ -1060,6 +1075,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1060
1075
|
duration: number;
|
|
1061
1076
|
from_index: number;
|
|
1062
1077
|
to_index: number;
|
|
1078
|
+
encoded_polyline?: string | undefined;
|
|
1063
1079
|
}[] | undefined;
|
|
1064
1080
|
}>>;
|
|
1065
1081
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1188,6 +1204,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1188
1204
|
};
|
|
1189
1205
|
properties?: {} | undefined;
|
|
1190
1206
|
};
|
|
1207
|
+
encoded_polyline?: string | undefined;
|
|
1191
1208
|
anchors?: {
|
|
1192
1209
|
_id: string;
|
|
1193
1210
|
type: "via" | "through";
|
|
@@ -1216,6 +1233,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1216
1233
|
duration: number;
|
|
1217
1234
|
from_index: number;
|
|
1218
1235
|
to_index: number;
|
|
1236
|
+
encoded_polyline?: string | undefined;
|
|
1219
1237
|
}[] | undefined;
|
|
1220
1238
|
} | undefined;
|
|
1221
1239
|
parameters?: ({
|
|
@@ -1274,6 +1292,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1274
1292
|
type?: string | undefined;
|
|
1275
1293
|
properties?: {} | undefined;
|
|
1276
1294
|
};
|
|
1295
|
+
encoded_polyline?: string | undefined;
|
|
1277
1296
|
anchors?: {
|
|
1278
1297
|
_id: string;
|
|
1279
1298
|
after_stop_id: number;
|
|
@@ -1302,6 +1321,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1302
1321
|
duration: number;
|
|
1303
1322
|
from_index: number;
|
|
1304
1323
|
to_index: number;
|
|
1324
|
+
encoded_polyline?: string | undefined;
|
|
1305
1325
|
}[] | undefined;
|
|
1306
1326
|
} | undefined;
|
|
1307
1327
|
rules?: ({
|
|
@@ -1426,6 +1446,49 @@ export declare const PatternSimplifiedSchema: z.ZodObject<{
|
|
|
1426
1446
|
line_id: string;
|
|
1427
1447
|
route_id: string;
|
|
1428
1448
|
}>;
|
|
1449
|
+
export declare const PatternShapeMapItemSchema: z.ZodObject<{
|
|
1450
|
+
agency_id: z.ZodString;
|
|
1451
|
+
color: z.ZodString;
|
|
1452
|
+
destination: z.ZodString;
|
|
1453
|
+
encoded_polyline: z.ZodString;
|
|
1454
|
+
headsign: z.ZodString;
|
|
1455
|
+
line_code: z.ZodString;
|
|
1456
|
+
line_id: z.ZodString;
|
|
1457
|
+
line_name: z.ZodString;
|
|
1458
|
+
line_text_color: z.ZodString;
|
|
1459
|
+
origin: z.ZodString;
|
|
1460
|
+
pattern_code: z.ZodString;
|
|
1461
|
+
pattern_id: z.ZodString;
|
|
1462
|
+
route_id: z.ZodString;
|
|
1463
|
+
}, "strip", z.ZodTypeAny, {
|
|
1464
|
+
agency_id: string;
|
|
1465
|
+
color: string;
|
|
1466
|
+
headsign: string;
|
|
1467
|
+
line_id: string;
|
|
1468
|
+
route_id: string;
|
|
1469
|
+
pattern_id: string;
|
|
1470
|
+
encoded_polyline: string;
|
|
1471
|
+
destination: string;
|
|
1472
|
+
origin: string;
|
|
1473
|
+
line_code: string;
|
|
1474
|
+
line_name: string;
|
|
1475
|
+
line_text_color: string;
|
|
1476
|
+
pattern_code: string;
|
|
1477
|
+
}, {
|
|
1478
|
+
agency_id: string;
|
|
1479
|
+
color: string;
|
|
1480
|
+
headsign: string;
|
|
1481
|
+
line_id: string;
|
|
1482
|
+
route_id: string;
|
|
1483
|
+
pattern_id: string;
|
|
1484
|
+
encoded_polyline: string;
|
|
1485
|
+
destination: string;
|
|
1486
|
+
origin: string;
|
|
1487
|
+
line_code: string;
|
|
1488
|
+
line_name: string;
|
|
1489
|
+
line_text_color: string;
|
|
1490
|
+
pattern_code: string;
|
|
1491
|
+
}>;
|
|
1429
1492
|
export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
1430
1493
|
_id: z.ZodString;
|
|
1431
1494
|
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
@@ -2014,6 +2077,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2014
2077
|
type?: "via" | "through" | undefined;
|
|
2015
2078
|
sequence?: number | undefined;
|
|
2016
2079
|
}>, "many">>;
|
|
2080
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2017
2081
|
extension: z.ZodNumber;
|
|
2018
2082
|
geojson: z.ZodObject<{
|
|
2019
2083
|
geometry: z.ZodObject<{
|
|
@@ -2046,6 +2110,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2046
2110
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2047
2111
|
distance: z.ZodNumber;
|
|
2048
2112
|
duration: z.ZodNumber;
|
|
2113
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2049
2114
|
from_index: z.ZodNumber;
|
|
2050
2115
|
geojson: z.ZodObject<{
|
|
2051
2116
|
geometry: z.ZodObject<{
|
|
@@ -2121,6 +2186,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2121
2186
|
duration: number;
|
|
2122
2187
|
from_index: number;
|
|
2123
2188
|
to_index: number;
|
|
2189
|
+
encoded_polyline?: string | undefined;
|
|
2124
2190
|
}, {
|
|
2125
2191
|
distance: number;
|
|
2126
2192
|
geometry: [number, number][];
|
|
@@ -2140,6 +2206,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2140
2206
|
duration: number;
|
|
2141
2207
|
from_index: number;
|
|
2142
2208
|
to_index: number;
|
|
2209
|
+
encoded_polyline?: string | undefined;
|
|
2143
2210
|
}>, "many">>;
|
|
2144
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2145
2212
|
extension: number;
|
|
@@ -2151,6 +2218,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2151
2218
|
};
|
|
2152
2219
|
properties?: {} | undefined;
|
|
2153
2220
|
};
|
|
2221
|
+
encoded_polyline?: string | undefined;
|
|
2154
2222
|
anchors?: {
|
|
2155
2223
|
_id: string;
|
|
2156
2224
|
type: "via" | "through";
|
|
@@ -2179,6 +2247,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2179
2247
|
duration: number;
|
|
2180
2248
|
from_index: number;
|
|
2181
2249
|
to_index: number;
|
|
2250
|
+
encoded_polyline?: string | undefined;
|
|
2182
2251
|
}[] | undefined;
|
|
2183
2252
|
}, {
|
|
2184
2253
|
extension: number;
|
|
@@ -2190,6 +2259,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2190
2259
|
type?: string | undefined;
|
|
2191
2260
|
properties?: {} | undefined;
|
|
2192
2261
|
};
|
|
2262
|
+
encoded_polyline?: string | undefined;
|
|
2193
2263
|
anchors?: {
|
|
2194
2264
|
_id: string;
|
|
2195
2265
|
after_stop_id: number;
|
|
@@ -2218,6 +2288,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2218
2288
|
duration: number;
|
|
2219
2289
|
from_index: number;
|
|
2220
2290
|
to_index: number;
|
|
2291
|
+
encoded_polyline?: string | undefined;
|
|
2221
2292
|
}[] | undefined;
|
|
2222
2293
|
}>>;
|
|
2223
2294
|
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
@@ -2339,6 +2410,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2339
2410
|
};
|
|
2340
2411
|
properties?: {} | undefined;
|
|
2341
2412
|
};
|
|
2413
|
+
encoded_polyline?: string | undefined;
|
|
2342
2414
|
anchors?: {
|
|
2343
2415
|
_id: string;
|
|
2344
2416
|
type: "via" | "through";
|
|
@@ -2367,6 +2439,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2367
2439
|
duration: number;
|
|
2368
2440
|
from_index: number;
|
|
2369
2441
|
to_index: number;
|
|
2442
|
+
encoded_polyline?: string | undefined;
|
|
2370
2443
|
}[] | undefined;
|
|
2371
2444
|
} | undefined;
|
|
2372
2445
|
parameters?: ({
|
|
@@ -2422,6 +2495,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2422
2495
|
type?: string | undefined;
|
|
2423
2496
|
properties?: {} | undefined;
|
|
2424
2497
|
};
|
|
2498
|
+
encoded_polyline?: string | undefined;
|
|
2425
2499
|
anchors?: {
|
|
2426
2500
|
_id: string;
|
|
2427
2501
|
after_stop_id: number;
|
|
@@ -2450,6 +2524,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2450
2524
|
duration: number;
|
|
2451
2525
|
from_index: number;
|
|
2452
2526
|
to_index: number;
|
|
2527
|
+
encoded_polyline?: string | undefined;
|
|
2453
2528
|
}[] | undefined;
|
|
2454
2529
|
} | undefined;
|
|
2455
2530
|
rules?: ({
|
|
@@ -2610,6 +2685,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2610
2685
|
type?: "via" | "through" | undefined;
|
|
2611
2686
|
sequence?: number | undefined;
|
|
2612
2687
|
}>, "many">>;
|
|
2688
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2613
2689
|
extension: z.ZodNumber;
|
|
2614
2690
|
geojson: z.ZodObject<{
|
|
2615
2691
|
geometry: z.ZodObject<{
|
|
@@ -2642,6 +2718,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2642
2718
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2643
2719
|
distance: z.ZodNumber;
|
|
2644
2720
|
duration: z.ZodNumber;
|
|
2721
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2645
2722
|
from_index: z.ZodNumber;
|
|
2646
2723
|
geojson: z.ZodObject<{
|
|
2647
2724
|
geometry: z.ZodObject<{
|
|
@@ -2717,6 +2794,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2717
2794
|
duration: number;
|
|
2718
2795
|
from_index: number;
|
|
2719
2796
|
to_index: number;
|
|
2797
|
+
encoded_polyline?: string | undefined;
|
|
2720
2798
|
}, {
|
|
2721
2799
|
distance: number;
|
|
2722
2800
|
geometry: [number, number][];
|
|
@@ -2736,6 +2814,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2736
2814
|
duration: number;
|
|
2737
2815
|
from_index: number;
|
|
2738
2816
|
to_index: number;
|
|
2817
|
+
encoded_polyline?: string | undefined;
|
|
2739
2818
|
}>, "many">>;
|
|
2740
2819
|
}, "strip", z.ZodTypeAny, {
|
|
2741
2820
|
extension: number;
|
|
@@ -2747,6 +2826,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2747
2826
|
};
|
|
2748
2827
|
properties?: {} | undefined;
|
|
2749
2828
|
};
|
|
2829
|
+
encoded_polyline?: string | undefined;
|
|
2750
2830
|
anchors?: {
|
|
2751
2831
|
_id: string;
|
|
2752
2832
|
type: "via" | "through";
|
|
@@ -2775,6 +2855,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2775
2855
|
duration: number;
|
|
2776
2856
|
from_index: number;
|
|
2777
2857
|
to_index: number;
|
|
2858
|
+
encoded_polyline?: string | undefined;
|
|
2778
2859
|
}[] | undefined;
|
|
2779
2860
|
}, {
|
|
2780
2861
|
extension: number;
|
|
@@ -2786,6 +2867,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2786
2867
|
type?: string | undefined;
|
|
2787
2868
|
properties?: {} | undefined;
|
|
2788
2869
|
};
|
|
2870
|
+
encoded_polyline?: string | undefined;
|
|
2789
2871
|
anchors?: {
|
|
2790
2872
|
_id: string;
|
|
2791
2873
|
after_stop_id: number;
|
|
@@ -2814,6 +2896,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2814
2896
|
duration: number;
|
|
2815
2897
|
from_index: number;
|
|
2816
2898
|
to_index: number;
|
|
2899
|
+
encoded_polyline?: string | undefined;
|
|
2817
2900
|
}[] | undefined;
|
|
2818
2901
|
}>>>;
|
|
2819
2902
|
headsign: z.ZodOptional<z.ZodString>;
|
|
@@ -3266,6 +3349,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3266
3349
|
};
|
|
3267
3350
|
properties?: {} | undefined;
|
|
3268
3351
|
};
|
|
3352
|
+
encoded_polyline?: string | undefined;
|
|
3269
3353
|
anchors?: {
|
|
3270
3354
|
_id: string;
|
|
3271
3355
|
type: "via" | "through";
|
|
@@ -3294,6 +3378,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3294
3378
|
duration: number;
|
|
3295
3379
|
from_index: number;
|
|
3296
3380
|
to_index: number;
|
|
3381
|
+
encoded_polyline?: string | undefined;
|
|
3297
3382
|
}[] | undefined;
|
|
3298
3383
|
} | undefined;
|
|
3299
3384
|
rules?: {
|
|
@@ -3405,6 +3490,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3405
3490
|
type?: string | undefined;
|
|
3406
3491
|
properties?: {} | undefined;
|
|
3407
3492
|
};
|
|
3493
|
+
encoded_polyline?: string | undefined;
|
|
3408
3494
|
anchors?: {
|
|
3409
3495
|
_id: string;
|
|
3410
3496
|
after_stop_id: number;
|
|
@@ -3433,6 +3519,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3433
3519
|
duration: number;
|
|
3434
3520
|
from_index: number;
|
|
3435
3521
|
to_index: number;
|
|
3522
|
+
encoded_polyline?: string | undefined;
|
|
3436
3523
|
}[] | undefined;
|
|
3437
3524
|
} | undefined;
|
|
3438
3525
|
rules?: {
|
|
@@ -3517,6 +3604,7 @@ export type PopulatedPattern = Omit<Pattern, 'path'> & {
|
|
|
3517
3604
|
path: PopulatedPath[];
|
|
3518
3605
|
};
|
|
3519
3606
|
export type PatternSimplified = z.infer<typeof PatternSimplifiedSchema>;
|
|
3607
|
+
export type PatternShapeMapItem = z.infer<typeof PatternShapeMapItemSchema>;
|
|
3520
3608
|
export type Path = z.infer<typeof PathSchema>;
|
|
3521
3609
|
export type PopulatedPath = Path & {
|
|
3522
3610
|
stop: null | Stop;
|
package/dist/offer/pattern.js
CHANGED
|
@@ -42,6 +42,7 @@ const ShapeAnchorSchema = z.object({
|
|
|
42
42
|
const ShapeLegSchema = z.object({
|
|
43
43
|
distance: z.number(),
|
|
44
44
|
duration: z.number(),
|
|
45
|
+
encoded_polyline: z.string().optional(),
|
|
45
46
|
from_index: z.number(),
|
|
46
47
|
geojson: z.object({
|
|
47
48
|
geometry: z.object({
|
|
@@ -61,6 +62,7 @@ const ShapeLegSchema = z.object({
|
|
|
61
62
|
});
|
|
62
63
|
export const ShapeSchema = z.object({
|
|
63
64
|
anchors: z.array(ShapeAnchorSchema).optional(),
|
|
65
|
+
encoded_polyline: z.string().optional(),
|
|
64
66
|
extension: z.number(),
|
|
65
67
|
geojson: z.object({
|
|
66
68
|
geometry: z.object({
|
|
@@ -96,6 +98,21 @@ export const PatternSimplifiedSchema = z.object({
|
|
|
96
98
|
line_id: z.string(),
|
|
97
99
|
route_id: z.string(),
|
|
98
100
|
});
|
|
101
|
+
export const PatternShapeMapItemSchema = z.object({
|
|
102
|
+
agency_id: z.string(),
|
|
103
|
+
color: z.string(),
|
|
104
|
+
destination: z.string(),
|
|
105
|
+
encoded_polyline: z.string(),
|
|
106
|
+
headsign: z.string(),
|
|
107
|
+
line_code: z.string(),
|
|
108
|
+
line_id: z.string(),
|
|
109
|
+
line_name: z.string(),
|
|
110
|
+
line_text_color: z.string(),
|
|
111
|
+
origin: z.string(),
|
|
112
|
+
pattern_code: z.string(),
|
|
113
|
+
pattern_id: z.string(),
|
|
114
|
+
route_id: z.string(),
|
|
115
|
+
});
|
|
99
116
|
/* * */
|
|
100
117
|
export const CreatePatternSchema = PatternSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
101
118
|
export const UpdatePatternSchema = CreatePatternSchema
|