@tmlmobilidade/types 20260424.1050.20 → 20260424.1352.48
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/offer/pattern.d.ts +230 -0
- package/dist/stops/stop.d.ts +53 -1
- package/dist/stops/stop.js +10 -1
- package/package.json +1 -1
package/dist/offer/pattern.d.ts
CHANGED
|
@@ -292,6 +292,25 @@ export declare const PathSchema: z.ZodObject<{
|
|
|
292
292
|
updated_by?: string | undefined;
|
|
293
293
|
}>, "many">>;
|
|
294
294
|
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
296
|
+
_id: z.ZodString;
|
|
297
|
+
code: z.ZodString;
|
|
298
|
+
headsign: z.ZodString;
|
|
299
|
+
line_id: z.ZodString;
|
|
300
|
+
route_id: z.ZodString;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
_id: string;
|
|
303
|
+
code: string;
|
|
304
|
+
line_id: string;
|
|
305
|
+
headsign: string;
|
|
306
|
+
route_id: string;
|
|
307
|
+
}, {
|
|
308
|
+
_id: string;
|
|
309
|
+
code: string;
|
|
310
|
+
line_id: string;
|
|
311
|
+
headsign: string;
|
|
312
|
+
route_id: string;
|
|
313
|
+
}>, "many">>;
|
|
295
314
|
}, "strip", z.ZodTypeAny, {
|
|
296
315
|
_id: number;
|
|
297
316
|
created_at: number & {
|
|
@@ -306,6 +325,13 @@ export declare const PathSchema: z.ZodObject<{
|
|
|
306
325
|
short_name: string;
|
|
307
326
|
latitude: number;
|
|
308
327
|
longitude: number;
|
|
328
|
+
associated_patterns: {
|
|
329
|
+
_id: string;
|
|
330
|
+
code: string;
|
|
331
|
+
line_id: string;
|
|
332
|
+
headsign: string;
|
|
333
|
+
route_id: string;
|
|
334
|
+
}[];
|
|
309
335
|
comments: ({
|
|
310
336
|
created_at: number & {
|
|
311
337
|
__brand: "UnixTimestamp";
|
|
@@ -412,6 +438,13 @@ export declare const PathSchema: z.ZodObject<{
|
|
|
412
438
|
created_by?: string | null | undefined;
|
|
413
439
|
is_locked?: boolean | undefined;
|
|
414
440
|
updated_by?: string | undefined;
|
|
441
|
+
associated_patterns?: {
|
|
442
|
+
_id: string;
|
|
443
|
+
code: string;
|
|
444
|
+
line_id: string;
|
|
445
|
+
headsign: string;
|
|
446
|
+
route_id: string;
|
|
447
|
+
}[] | undefined;
|
|
415
448
|
comments?: ({
|
|
416
449
|
created_at: number;
|
|
417
450
|
updated_at: number;
|
|
@@ -514,6 +547,13 @@ export declare const PathSchema: z.ZodObject<{
|
|
|
514
547
|
short_name: string;
|
|
515
548
|
latitude: number;
|
|
516
549
|
longitude: number;
|
|
550
|
+
associated_patterns: {
|
|
551
|
+
_id: string;
|
|
552
|
+
code: string;
|
|
553
|
+
line_id: string;
|
|
554
|
+
headsign: string;
|
|
555
|
+
route_id: string;
|
|
556
|
+
}[];
|
|
517
557
|
comments: ({
|
|
518
558
|
created_at: number & {
|
|
519
559
|
__brand: "UnixTimestamp";
|
|
@@ -629,6 +669,13 @@ export declare const PathSchema: z.ZodObject<{
|
|
|
629
669
|
created_by?: string | null | undefined;
|
|
630
670
|
is_locked?: boolean | undefined;
|
|
631
671
|
updated_by?: string | undefined;
|
|
672
|
+
associated_patterns?: {
|
|
673
|
+
_id: string;
|
|
674
|
+
code: string;
|
|
675
|
+
line_id: string;
|
|
676
|
+
headsign: string;
|
|
677
|
+
route_id: string;
|
|
678
|
+
}[] | undefined;
|
|
632
679
|
comments?: ({
|
|
633
680
|
created_at: number;
|
|
634
681
|
updated_at: number;
|
|
@@ -1406,6 +1453,25 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1406
1453
|
updated_by?: string | undefined;
|
|
1407
1454
|
}>, "many">>;
|
|
1408
1455
|
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1456
|
+
associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1457
|
+
_id: z.ZodString;
|
|
1458
|
+
code: z.ZodString;
|
|
1459
|
+
headsign: z.ZodString;
|
|
1460
|
+
line_id: z.ZodString;
|
|
1461
|
+
route_id: z.ZodString;
|
|
1462
|
+
}, "strip", z.ZodTypeAny, {
|
|
1463
|
+
_id: string;
|
|
1464
|
+
code: string;
|
|
1465
|
+
line_id: string;
|
|
1466
|
+
headsign: string;
|
|
1467
|
+
route_id: string;
|
|
1468
|
+
}, {
|
|
1469
|
+
_id: string;
|
|
1470
|
+
code: string;
|
|
1471
|
+
line_id: string;
|
|
1472
|
+
headsign: string;
|
|
1473
|
+
route_id: string;
|
|
1474
|
+
}>, "many">>;
|
|
1409
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1410
1476
|
_id: number;
|
|
1411
1477
|
created_at: number & {
|
|
@@ -1420,6 +1486,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1420
1486
|
short_name: string;
|
|
1421
1487
|
latitude: number;
|
|
1422
1488
|
longitude: number;
|
|
1489
|
+
associated_patterns: {
|
|
1490
|
+
_id: string;
|
|
1491
|
+
code: string;
|
|
1492
|
+
line_id: string;
|
|
1493
|
+
headsign: string;
|
|
1494
|
+
route_id: string;
|
|
1495
|
+
}[];
|
|
1423
1496
|
comments: ({
|
|
1424
1497
|
created_at: number & {
|
|
1425
1498
|
__brand: "UnixTimestamp";
|
|
@@ -1526,6 +1599,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1526
1599
|
created_by?: string | null | undefined;
|
|
1527
1600
|
is_locked?: boolean | undefined;
|
|
1528
1601
|
updated_by?: string | undefined;
|
|
1602
|
+
associated_patterns?: {
|
|
1603
|
+
_id: string;
|
|
1604
|
+
code: string;
|
|
1605
|
+
line_id: string;
|
|
1606
|
+
headsign: string;
|
|
1607
|
+
route_id: string;
|
|
1608
|
+
}[] | undefined;
|
|
1529
1609
|
comments?: ({
|
|
1530
1610
|
created_at: number;
|
|
1531
1611
|
updated_at: number;
|
|
@@ -1628,6 +1708,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1628
1708
|
short_name: string;
|
|
1629
1709
|
latitude: number;
|
|
1630
1710
|
longitude: number;
|
|
1711
|
+
associated_patterns: {
|
|
1712
|
+
_id: string;
|
|
1713
|
+
code: string;
|
|
1714
|
+
line_id: string;
|
|
1715
|
+
headsign: string;
|
|
1716
|
+
route_id: string;
|
|
1717
|
+
}[];
|
|
1631
1718
|
comments: ({
|
|
1632
1719
|
created_at: number & {
|
|
1633
1720
|
__brand: "UnixTimestamp";
|
|
@@ -1743,6 +1830,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1743
1830
|
created_by?: string | null | undefined;
|
|
1744
1831
|
is_locked?: boolean | undefined;
|
|
1745
1832
|
updated_by?: string | undefined;
|
|
1833
|
+
associated_patterns?: {
|
|
1834
|
+
_id: string;
|
|
1835
|
+
code: string;
|
|
1836
|
+
line_id: string;
|
|
1837
|
+
headsign: string;
|
|
1838
|
+
route_id: string;
|
|
1839
|
+
}[] | undefined;
|
|
1746
1840
|
comments?: ({
|
|
1747
1841
|
created_at: number;
|
|
1748
1842
|
updated_at: number;
|
|
@@ -2172,6 +2266,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2172
2266
|
short_name: string;
|
|
2173
2267
|
latitude: number;
|
|
2174
2268
|
longitude: number;
|
|
2269
|
+
associated_patterns: {
|
|
2270
|
+
_id: string;
|
|
2271
|
+
code: string;
|
|
2272
|
+
line_id: string;
|
|
2273
|
+
headsign: string;
|
|
2274
|
+
route_id: string;
|
|
2275
|
+
}[];
|
|
2175
2276
|
comments: ({
|
|
2176
2277
|
created_at: number & {
|
|
2177
2278
|
__brand: "UnixTimestamp";
|
|
@@ -2336,6 +2437,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2336
2437
|
created_by?: string | null | undefined;
|
|
2337
2438
|
is_locked?: boolean | undefined;
|
|
2338
2439
|
updated_by?: string | undefined;
|
|
2440
|
+
associated_patterns?: {
|
|
2441
|
+
_id: string;
|
|
2442
|
+
code: string;
|
|
2443
|
+
line_id: string;
|
|
2444
|
+
headsign: string;
|
|
2445
|
+
route_id: string;
|
|
2446
|
+
}[] | undefined;
|
|
2339
2447
|
comments?: ({
|
|
2340
2448
|
created_at: number;
|
|
2341
2449
|
updated_at: number;
|
|
@@ -3195,6 +3303,25 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3195
3303
|
updated_by?: string | undefined;
|
|
3196
3304
|
}>, "many">>;
|
|
3197
3305
|
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3306
|
+
associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3307
|
+
_id: z.ZodString;
|
|
3308
|
+
code: z.ZodString;
|
|
3309
|
+
headsign: z.ZodString;
|
|
3310
|
+
line_id: z.ZodString;
|
|
3311
|
+
route_id: z.ZodString;
|
|
3312
|
+
}, "strip", z.ZodTypeAny, {
|
|
3313
|
+
_id: string;
|
|
3314
|
+
code: string;
|
|
3315
|
+
line_id: string;
|
|
3316
|
+
headsign: string;
|
|
3317
|
+
route_id: string;
|
|
3318
|
+
}, {
|
|
3319
|
+
_id: string;
|
|
3320
|
+
code: string;
|
|
3321
|
+
line_id: string;
|
|
3322
|
+
headsign: string;
|
|
3323
|
+
route_id: string;
|
|
3324
|
+
}>, "many">>;
|
|
3198
3325
|
}, "strip", z.ZodTypeAny, {
|
|
3199
3326
|
_id: number;
|
|
3200
3327
|
created_at: number & {
|
|
@@ -3209,6 +3336,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3209
3336
|
short_name: string;
|
|
3210
3337
|
latitude: number;
|
|
3211
3338
|
longitude: number;
|
|
3339
|
+
associated_patterns: {
|
|
3340
|
+
_id: string;
|
|
3341
|
+
code: string;
|
|
3342
|
+
line_id: string;
|
|
3343
|
+
headsign: string;
|
|
3344
|
+
route_id: string;
|
|
3345
|
+
}[];
|
|
3212
3346
|
comments: ({
|
|
3213
3347
|
created_at: number & {
|
|
3214
3348
|
__brand: "UnixTimestamp";
|
|
@@ -3315,6 +3449,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3315
3449
|
created_by?: string | null | undefined;
|
|
3316
3450
|
is_locked?: boolean | undefined;
|
|
3317
3451
|
updated_by?: string | undefined;
|
|
3452
|
+
associated_patterns?: {
|
|
3453
|
+
_id: string;
|
|
3454
|
+
code: string;
|
|
3455
|
+
line_id: string;
|
|
3456
|
+
headsign: string;
|
|
3457
|
+
route_id: string;
|
|
3458
|
+
}[] | undefined;
|
|
3318
3459
|
comments?: ({
|
|
3319
3460
|
created_at: number;
|
|
3320
3461
|
updated_at: number;
|
|
@@ -3417,6 +3558,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3417
3558
|
short_name: string;
|
|
3418
3559
|
latitude: number;
|
|
3419
3560
|
longitude: number;
|
|
3561
|
+
associated_patterns: {
|
|
3562
|
+
_id: string;
|
|
3563
|
+
code: string;
|
|
3564
|
+
line_id: string;
|
|
3565
|
+
headsign: string;
|
|
3566
|
+
route_id: string;
|
|
3567
|
+
}[];
|
|
3420
3568
|
comments: ({
|
|
3421
3569
|
created_at: number & {
|
|
3422
3570
|
__brand: "UnixTimestamp";
|
|
@@ -3532,6 +3680,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3532
3680
|
created_by?: string | null | undefined;
|
|
3533
3681
|
is_locked?: boolean | undefined;
|
|
3534
3682
|
updated_by?: string | undefined;
|
|
3683
|
+
associated_patterns?: {
|
|
3684
|
+
_id: string;
|
|
3685
|
+
code: string;
|
|
3686
|
+
line_id: string;
|
|
3687
|
+
headsign: string;
|
|
3688
|
+
route_id: string;
|
|
3689
|
+
}[] | undefined;
|
|
3535
3690
|
comments?: ({
|
|
3536
3691
|
created_at: number;
|
|
3537
3692
|
updated_at: number;
|
|
@@ -3954,6 +4109,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3954
4109
|
short_name: string;
|
|
3955
4110
|
latitude: number;
|
|
3956
4111
|
longitude: number;
|
|
4112
|
+
associated_patterns: {
|
|
4113
|
+
_id: string;
|
|
4114
|
+
code: string;
|
|
4115
|
+
line_id: string;
|
|
4116
|
+
headsign: string;
|
|
4117
|
+
route_id: string;
|
|
4118
|
+
}[];
|
|
3957
4119
|
comments: ({
|
|
3958
4120
|
created_at: number & {
|
|
3959
4121
|
__brand: "UnixTimestamp";
|
|
@@ -4115,6 +4277,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
4115
4277
|
created_by?: string | null | undefined;
|
|
4116
4278
|
is_locked?: boolean | undefined;
|
|
4117
4279
|
updated_by?: string | undefined;
|
|
4280
|
+
associated_patterns?: {
|
|
4281
|
+
_id: string;
|
|
4282
|
+
code: string;
|
|
4283
|
+
line_id: string;
|
|
4284
|
+
headsign: string;
|
|
4285
|
+
route_id: string;
|
|
4286
|
+
}[] | undefined;
|
|
4118
4287
|
comments?: ({
|
|
4119
4288
|
created_at: number;
|
|
4120
4289
|
updated_at: number;
|
|
@@ -4593,6 +4762,25 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
4593
4762
|
updated_by?: string | undefined;
|
|
4594
4763
|
}>, "many">>;
|
|
4595
4764
|
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4765
|
+
associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4766
|
+
_id: z.ZodString;
|
|
4767
|
+
code: z.ZodString;
|
|
4768
|
+
headsign: z.ZodString;
|
|
4769
|
+
line_id: z.ZodString;
|
|
4770
|
+
route_id: z.ZodString;
|
|
4771
|
+
}, "strip", z.ZodTypeAny, {
|
|
4772
|
+
_id: string;
|
|
4773
|
+
code: string;
|
|
4774
|
+
line_id: string;
|
|
4775
|
+
headsign: string;
|
|
4776
|
+
route_id: string;
|
|
4777
|
+
}, {
|
|
4778
|
+
_id: string;
|
|
4779
|
+
code: string;
|
|
4780
|
+
line_id: string;
|
|
4781
|
+
headsign: string;
|
|
4782
|
+
route_id: string;
|
|
4783
|
+
}>, "many">>;
|
|
4596
4784
|
}, "strip", z.ZodTypeAny, {
|
|
4597
4785
|
_id: number;
|
|
4598
4786
|
created_at: number & {
|
|
@@ -4607,6 +4795,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
4607
4795
|
short_name: string;
|
|
4608
4796
|
latitude: number;
|
|
4609
4797
|
longitude: number;
|
|
4798
|
+
associated_patterns: {
|
|
4799
|
+
_id: string;
|
|
4800
|
+
code: string;
|
|
4801
|
+
line_id: string;
|
|
4802
|
+
headsign: string;
|
|
4803
|
+
route_id: string;
|
|
4804
|
+
}[];
|
|
4610
4805
|
comments: ({
|
|
4611
4806
|
created_at: number & {
|
|
4612
4807
|
__brand: "UnixTimestamp";
|
|
@@ -4713,6 +4908,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
4713
4908
|
created_by?: string | null | undefined;
|
|
4714
4909
|
is_locked?: boolean | undefined;
|
|
4715
4910
|
updated_by?: string | undefined;
|
|
4911
|
+
associated_patterns?: {
|
|
4912
|
+
_id: string;
|
|
4913
|
+
code: string;
|
|
4914
|
+
line_id: string;
|
|
4915
|
+
headsign: string;
|
|
4916
|
+
route_id: string;
|
|
4917
|
+
}[] | undefined;
|
|
4716
4918
|
comments?: ({
|
|
4717
4919
|
created_at: number;
|
|
4718
4920
|
updated_at: number;
|
|
@@ -4815,6 +5017,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
4815
5017
|
short_name: string;
|
|
4816
5018
|
latitude: number;
|
|
4817
5019
|
longitude: number;
|
|
5020
|
+
associated_patterns: {
|
|
5021
|
+
_id: string;
|
|
5022
|
+
code: string;
|
|
5023
|
+
line_id: string;
|
|
5024
|
+
headsign: string;
|
|
5025
|
+
route_id: string;
|
|
5026
|
+
}[];
|
|
4818
5027
|
comments: ({
|
|
4819
5028
|
created_at: number & {
|
|
4820
5029
|
__brand: "UnixTimestamp";
|
|
@@ -4930,6 +5139,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
4930
5139
|
created_by?: string | null | undefined;
|
|
4931
5140
|
is_locked?: boolean | undefined;
|
|
4932
5141
|
updated_by?: string | undefined;
|
|
5142
|
+
associated_patterns?: {
|
|
5143
|
+
_id: string;
|
|
5144
|
+
code: string;
|
|
5145
|
+
line_id: string;
|
|
5146
|
+
headsign: string;
|
|
5147
|
+
route_id: string;
|
|
5148
|
+
}[] | undefined;
|
|
4933
5149
|
comments?: ({
|
|
4934
5150
|
created_at: number;
|
|
4935
5151
|
updated_at: number;
|
|
@@ -5512,6 +5728,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5512
5728
|
short_name: string;
|
|
5513
5729
|
latitude: number;
|
|
5514
5730
|
longitude: number;
|
|
5731
|
+
associated_patterns: {
|
|
5732
|
+
_id: string;
|
|
5733
|
+
code: string;
|
|
5734
|
+
line_id: string;
|
|
5735
|
+
headsign: string;
|
|
5736
|
+
route_id: string;
|
|
5737
|
+
}[];
|
|
5515
5738
|
comments: ({
|
|
5516
5739
|
created_at: number & {
|
|
5517
5740
|
__brand: "UnixTimestamp";
|
|
@@ -5729,6 +5952,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5729
5952
|
created_by?: string | null | undefined;
|
|
5730
5953
|
is_locked?: boolean | undefined;
|
|
5731
5954
|
updated_by?: string | undefined;
|
|
5955
|
+
associated_patterns?: {
|
|
5956
|
+
_id: string;
|
|
5957
|
+
code: string;
|
|
5958
|
+
line_id: string;
|
|
5959
|
+
headsign: string;
|
|
5960
|
+
route_id: string;
|
|
5961
|
+
}[] | undefined;
|
|
5732
5962
|
comments?: ({
|
|
5733
5963
|
created_at: number;
|
|
5734
5964
|
updated_at: number;
|
package/dist/stops/stop.d.ts
CHANGED
|
@@ -276,6 +276,25 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
276
276
|
updated_by?: string | undefined;
|
|
277
277
|
}>, "many">>;
|
|
278
278
|
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
280
|
+
_id: z.ZodString;
|
|
281
|
+
code: z.ZodString;
|
|
282
|
+
headsign: z.ZodString;
|
|
283
|
+
line_id: z.ZodString;
|
|
284
|
+
route_id: z.ZodString;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
_id: string;
|
|
287
|
+
code: string;
|
|
288
|
+
line_id: string;
|
|
289
|
+
headsign: string;
|
|
290
|
+
route_id: string;
|
|
291
|
+
}, {
|
|
292
|
+
_id: string;
|
|
293
|
+
code: string;
|
|
294
|
+
line_id: string;
|
|
295
|
+
headsign: string;
|
|
296
|
+
route_id: string;
|
|
297
|
+
}>, "many">>;
|
|
279
298
|
}, "strip", z.ZodTypeAny, {
|
|
280
299
|
_id: number;
|
|
281
300
|
created_at: number & {
|
|
@@ -290,6 +309,13 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
290
309
|
short_name: string;
|
|
291
310
|
latitude: number;
|
|
292
311
|
longitude: number;
|
|
312
|
+
associated_patterns: {
|
|
313
|
+
_id: string;
|
|
314
|
+
code: string;
|
|
315
|
+
line_id: string;
|
|
316
|
+
headsign: string;
|
|
317
|
+
route_id: string;
|
|
318
|
+
}[];
|
|
293
319
|
comments: ({
|
|
294
320
|
created_at: number & {
|
|
295
321
|
__brand: "UnixTimestamp";
|
|
@@ -396,6 +422,13 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
396
422
|
created_by?: string | null | undefined;
|
|
397
423
|
is_locked?: boolean | undefined;
|
|
398
424
|
updated_by?: string | undefined;
|
|
425
|
+
associated_patterns?: {
|
|
426
|
+
_id: string;
|
|
427
|
+
code: string;
|
|
428
|
+
line_id: string;
|
|
429
|
+
headsign: string;
|
|
430
|
+
route_id: string;
|
|
431
|
+
}[] | undefined;
|
|
399
432
|
comments?: ({
|
|
400
433
|
created_at: number;
|
|
401
434
|
updated_at: number;
|
|
@@ -750,7 +783,26 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
750
783
|
updated_by?: string | undefined;
|
|
751
784
|
}>, "many">>;
|
|
752
785
|
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
753
|
-
|
|
786
|
+
associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
787
|
+
_id: z.ZodString;
|
|
788
|
+
code: z.ZodString;
|
|
789
|
+
headsign: z.ZodString;
|
|
790
|
+
line_id: z.ZodString;
|
|
791
|
+
route_id: z.ZodString;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
_id: string;
|
|
794
|
+
code: string;
|
|
795
|
+
line_id: string;
|
|
796
|
+
headsign: string;
|
|
797
|
+
route_id: string;
|
|
798
|
+
}, {
|
|
799
|
+
_id: string;
|
|
800
|
+
code: string;
|
|
801
|
+
line_id: string;
|
|
802
|
+
headsign: string;
|
|
803
|
+
route_id: string;
|
|
804
|
+
}>, "many">>;
|
|
805
|
+
}, "_id" | "created_at" | "updated_at" | "associated_patterns">, "strip", z.ZodTypeAny, {
|
|
754
806
|
created_by: string | null;
|
|
755
807
|
is_locked: boolean;
|
|
756
808
|
name: string;
|
package/dist/stops/stop.js
CHANGED
|
@@ -78,6 +78,15 @@ export const StopSchema = DocumentSchema.extend({
|
|
|
78
78
|
// Notes & Comments
|
|
79
79
|
comments: z.array(CommentSchema).default([]),
|
|
80
80
|
observations: z.string().nullable().default(null),
|
|
81
|
+
//
|
|
82
|
+
// This field is not sent by the backend, but is useful to have in the frontend for easier access to the associated patterns of an event
|
|
83
|
+
associated_patterns: z.array(z.object({
|
|
84
|
+
_id: z.string(),
|
|
85
|
+
code: z.string(),
|
|
86
|
+
headsign: z.string(),
|
|
87
|
+
line_id: z.string(),
|
|
88
|
+
route_id: z.string(),
|
|
89
|
+
})).default([]),
|
|
81
90
|
});
|
|
82
|
-
export const CreateStopSchema = StopSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
91
|
+
export const CreateStopSchema = StopSchema.omit({ _id: true, associated_patterns: true, created_at: true, updated_at: true });
|
|
83
92
|
export const UpdateStopSchema = CreateStopSchema.omit({ created_by: true }).partial();
|