@tmlmobilidade/go-types-infrastructure 20261006.1122.0 → 20261007.1248.23
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/simplified-stops/index.d.ts +1 -0
- package/dist/simplified-stops/index.js +1 -0
- package/dist/simplified-stops/simplified-stop.d.ts +98 -0
- package/dist/simplified-stops/simplified-stop.js +36 -0
- package/dist/stops/flag.d.ts +1 -1
- package/dist/stops/parent-station.d.ts +6 -6
- package/dist/stops/stop-area.d.ts +3 -3
- package/dist/stops/stop.d.ts +61 -61
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './simplified-stop.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './simplified-stop.js';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SimplifiedStopSchema: z.ZodObject<{
|
|
3
|
+
_id: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>, string, string | number>;
|
|
4
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
5
|
+
is_deleted: z.ZodBoolean;
|
|
6
|
+
latitude: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-geo").Latitude, number>;
|
|
7
|
+
legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
lifecycle_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
|
|
9
|
+
location_country_admin_level: z.ZodNumber;
|
|
10
|
+
location_country_name: z.ZodString;
|
|
11
|
+
location_country_osm_id: z.ZodNumber;
|
|
12
|
+
location_neighbourhood_admin_level: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
location_neighbourhood_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
location_neighbourhood_osm_id: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
location_primary_admin_level: z.ZodNumber;
|
|
16
|
+
location_primary_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
location_primary_name: z.ZodString;
|
|
18
|
+
location_primary_osm_id: z.ZodNumber;
|
|
19
|
+
location_secondary_admin_level: z.ZodNumber;
|
|
20
|
+
location_secondary_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
location_secondary_name: z.ZodString;
|
|
22
|
+
location_secondary_osm_id: z.ZodNumber;
|
|
23
|
+
location_tertiary_admin_level: z.ZodNumber;
|
|
24
|
+
location_tertiary_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
location_tertiary_name: z.ZodString;
|
|
26
|
+
location_tertiary_osm_id: z.ZodNumber;
|
|
27
|
+
longitude: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-geo").Longitude, number>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
short_name: z.ZodString;
|
|
30
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
_id: string;
|
|
33
|
+
created_at: number & {
|
|
34
|
+
__brand: "UnixMilliseconds";
|
|
35
|
+
};
|
|
36
|
+
is_deleted: boolean;
|
|
37
|
+
latitude: number & {
|
|
38
|
+
__brand: "Latitude";
|
|
39
|
+
};
|
|
40
|
+
legacy_ids: string[];
|
|
41
|
+
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
42
|
+
location_country_admin_level: number;
|
|
43
|
+
location_country_name: string;
|
|
44
|
+
location_country_osm_id: number;
|
|
45
|
+
location_neighbourhood_admin_level: string | null;
|
|
46
|
+
location_neighbourhood_name: string | null;
|
|
47
|
+
location_neighbourhood_osm_id: number | null;
|
|
48
|
+
location_primary_admin_level: number;
|
|
49
|
+
location_primary_code: string | null;
|
|
50
|
+
location_primary_name: string;
|
|
51
|
+
location_primary_osm_id: number;
|
|
52
|
+
location_secondary_admin_level: number;
|
|
53
|
+
location_secondary_code: string | null;
|
|
54
|
+
location_secondary_name: string;
|
|
55
|
+
location_secondary_osm_id: number;
|
|
56
|
+
location_tertiary_admin_level: number;
|
|
57
|
+
location_tertiary_code: string | null;
|
|
58
|
+
location_tertiary_name: string;
|
|
59
|
+
location_tertiary_osm_id: number;
|
|
60
|
+
longitude: number & {
|
|
61
|
+
__brand: "Longitude";
|
|
62
|
+
};
|
|
63
|
+
name: string;
|
|
64
|
+
short_name: string;
|
|
65
|
+
updated_at: number & {
|
|
66
|
+
__brand: "UnixMilliseconds";
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
_id: string | number;
|
|
70
|
+
created_at: string | number;
|
|
71
|
+
is_deleted: boolean;
|
|
72
|
+
latitude: number;
|
|
73
|
+
lifecycle_status: string;
|
|
74
|
+
location_country_admin_level: number;
|
|
75
|
+
location_country_name: string;
|
|
76
|
+
location_country_osm_id: number;
|
|
77
|
+
location_primary_admin_level: number;
|
|
78
|
+
location_primary_name: string;
|
|
79
|
+
location_primary_osm_id: number;
|
|
80
|
+
location_secondary_admin_level: number;
|
|
81
|
+
location_secondary_name: string;
|
|
82
|
+
location_secondary_osm_id: number;
|
|
83
|
+
location_tertiary_admin_level: number;
|
|
84
|
+
location_tertiary_name: string;
|
|
85
|
+
location_tertiary_osm_id: number;
|
|
86
|
+
longitude: number;
|
|
87
|
+
name: string;
|
|
88
|
+
short_name: string;
|
|
89
|
+
updated_at: string | number;
|
|
90
|
+
legacy_ids?: string[] | undefined;
|
|
91
|
+
location_neighbourhood_admin_level?: string | null | undefined;
|
|
92
|
+
location_neighbourhood_name?: string | null | undefined;
|
|
93
|
+
location_neighbourhood_osm_id?: number | null | undefined;
|
|
94
|
+
location_primary_code?: string | null | undefined;
|
|
95
|
+
location_secondary_code?: string | null | undefined;
|
|
96
|
+
location_tertiary_code?: string | null | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
export type SimplifiedStop = z.infer<typeof SimplifiedStopSchema>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { StopIdSchema } from '../stops/stop-id.js';
|
|
3
|
+
import { LatitudeSchema, LongitudeSchema } from '@tmlmobilidade/go-types-geo';
|
|
4
|
+
import { LifecycleStatusSchema, UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/* * */
|
|
7
|
+
export const SimplifiedStopSchema = z.object({
|
|
8
|
+
_id: StopIdSchema,
|
|
9
|
+
created_at: UnixMillisecondsSchema,
|
|
10
|
+
is_deleted: z.boolean(),
|
|
11
|
+
latitude: LatitudeSchema,
|
|
12
|
+
legacy_ids: z.array(z.string()).default([]),
|
|
13
|
+
lifecycle_status: LifecycleStatusSchema,
|
|
14
|
+
location_country_admin_level: z.number(),
|
|
15
|
+
location_country_name: z.string(),
|
|
16
|
+
location_country_osm_id: z.number(),
|
|
17
|
+
location_neighbourhood_admin_level: z.string().nullable().default(null),
|
|
18
|
+
location_neighbourhood_name: z.string().nullable().default(null),
|
|
19
|
+
location_neighbourhood_osm_id: z.number().nullable().default(null),
|
|
20
|
+
location_primary_admin_level: z.number(),
|
|
21
|
+
location_primary_code: z.string().nullable().default(null),
|
|
22
|
+
location_primary_name: z.string(),
|
|
23
|
+
location_primary_osm_id: z.number(),
|
|
24
|
+
location_secondary_admin_level: z.number(),
|
|
25
|
+
location_secondary_code: z.string().nullable().default(null),
|
|
26
|
+
location_secondary_name: z.string(),
|
|
27
|
+
location_secondary_osm_id: z.number(),
|
|
28
|
+
location_tertiary_admin_level: z.number(),
|
|
29
|
+
location_tertiary_code: z.string().nullable().default(null),
|
|
30
|
+
location_tertiary_name: z.string(),
|
|
31
|
+
location_tertiary_osm_id: z.number(),
|
|
32
|
+
longitude: LongitudeSchema,
|
|
33
|
+
name: z.string(),
|
|
34
|
+
short_name: z.string(),
|
|
35
|
+
updated_at: UnixMillisecondsSchema,
|
|
36
|
+
});
|
package/dist/stops/flag.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export declare const StopFlagSchema: z.ZodObject<{
|
|
|
5
5
|
short_name: z.ZodString;
|
|
6
6
|
stop_id: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
short_name: string;
|
|
8
9
|
agency_ids: string[];
|
|
9
10
|
is_harmonized: boolean;
|
|
10
|
-
short_name: string;
|
|
11
11
|
stop_id: string;
|
|
12
12
|
}, {
|
|
13
13
|
short_name: string;
|
|
@@ -11,24 +11,24 @@ export declare const ParentStationSchema: z.ZodObject<{
|
|
|
11
11
|
title: z.ZodString;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
_id: string;
|
|
14
|
-
stop_ids: string[];
|
|
15
|
-
title: string;
|
|
16
14
|
created_at: number & {
|
|
17
15
|
__brand: "UnixMilliseconds";
|
|
18
16
|
};
|
|
19
|
-
created_by: string;
|
|
20
|
-
is_locked: boolean;
|
|
21
17
|
updated_at: number & {
|
|
22
18
|
__brand: "UnixMilliseconds";
|
|
23
19
|
};
|
|
20
|
+
stop_ids: string[];
|
|
21
|
+
title: string;
|
|
22
|
+
created_by: string;
|
|
23
|
+
is_locked: boolean;
|
|
24
24
|
updated_by?: string | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
_id: string;
|
|
27
|
+
created_at: string | number;
|
|
28
|
+
updated_at: string | number;
|
|
27
29
|
stop_ids: string[];
|
|
28
30
|
title: string;
|
|
29
|
-
created_at: string | number;
|
|
30
31
|
created_by: string;
|
|
31
|
-
updated_at: string | number;
|
|
32
32
|
is_locked?: boolean | undefined;
|
|
33
33
|
updated_by?: string | undefined;
|
|
34
34
|
}>;
|
|
@@ -13,18 +13,18 @@ export declare const StopAreaSchema: z.ZodObject<{
|
|
|
13
13
|
created_at: number & {
|
|
14
14
|
__brand: "UnixMilliseconds";
|
|
15
15
|
};
|
|
16
|
-
created_by: string;
|
|
17
|
-
is_locked: boolean;
|
|
18
16
|
updated_at: number & {
|
|
19
17
|
__brand: "UnixMilliseconds";
|
|
20
18
|
};
|
|
19
|
+
created_by: string;
|
|
20
|
+
is_locked: boolean;
|
|
21
21
|
parent_station_ids: string[];
|
|
22
22
|
updated_by?: string | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
_id: string;
|
|
25
25
|
created_at: string | number;
|
|
26
|
-
created_by: string;
|
|
27
26
|
updated_at: string | number;
|
|
27
|
+
created_by: string;
|
|
28
28
|
parent_station_ids: string[];
|
|
29
29
|
is_locked?: boolean | undefined;
|
|
30
30
|
updated_by?: string | undefined;
|
package/dist/stops/stop.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
13
13
|
short_name: z.ZodString;
|
|
14
14
|
stop_id: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
short_name: string;
|
|
16
17
|
agency_ids: string[];
|
|
17
18
|
is_harmonized: boolean;
|
|
18
|
-
short_name: string;
|
|
19
19
|
stop_id: string;
|
|
20
20
|
}, {
|
|
21
21
|
short_name: string;
|
|
@@ -437,35 +437,38 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
437
437
|
route_id: string;
|
|
438
438
|
}>, "many">>;
|
|
439
439
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
short_name: string;
|
|
441
440
|
_id: string;
|
|
442
441
|
created_at: number & {
|
|
443
442
|
__brand: "UnixMilliseconds";
|
|
444
443
|
};
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
is_deleted: boolean;
|
|
445
|
+
latitude: number & {
|
|
446
|
+
__brand: "Latitude";
|
|
447
|
+
};
|
|
448
|
+
legacy_ids: string[];
|
|
449
|
+
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
450
|
+
longitude: number & {
|
|
451
|
+
__brand: "Longitude";
|
|
452
|
+
};
|
|
453
|
+
name: string;
|
|
454
|
+
short_name: string;
|
|
447
455
|
updated_at: number & {
|
|
448
456
|
__brand: "UnixMilliseconds";
|
|
449
457
|
};
|
|
458
|
+
created_by: string;
|
|
459
|
+
is_locked: boolean;
|
|
450
460
|
flags: {
|
|
461
|
+
short_name: string;
|
|
451
462
|
agency_ids: string[];
|
|
452
463
|
is_harmonized: boolean;
|
|
453
|
-
short_name: string;
|
|
454
464
|
stop_id: string;
|
|
455
465
|
}[];
|
|
456
|
-
is_deleted: boolean;
|
|
457
466
|
jurisdiction: "ip" | "municipality" | "other" | "unknown";
|
|
458
467
|
legacy_id: string | null;
|
|
459
|
-
legacy_ids: string[];
|
|
460
|
-
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
461
|
-
name: string;
|
|
462
468
|
new_name: string | null;
|
|
463
469
|
previous_go_id: string | null;
|
|
464
470
|
tts_hash: string | null;
|
|
465
471
|
tts_name: string | null;
|
|
466
|
-
latitude: number & {
|
|
467
|
-
__brand: "Latitude";
|
|
468
|
-
};
|
|
469
472
|
location: {
|
|
470
473
|
country: {
|
|
471
474
|
admin_level: string;
|
|
@@ -498,9 +501,6 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
498
501
|
code?: string | undefined;
|
|
499
502
|
} | undefined;
|
|
500
503
|
};
|
|
501
|
-
longitude: number & {
|
|
502
|
-
__brand: "Longitude";
|
|
503
|
-
};
|
|
504
504
|
shelter: {
|
|
505
505
|
code: string | null;
|
|
506
506
|
status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
|
|
@@ -569,13 +569,14 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
569
569
|
}[];
|
|
570
570
|
updated_by?: string | undefined;
|
|
571
571
|
}, {
|
|
572
|
-
short_name: string;
|
|
573
572
|
_id: string | number;
|
|
574
573
|
created_at: string | number;
|
|
575
|
-
created_by: string;
|
|
576
|
-
updated_at: string | number;
|
|
577
|
-
name: string;
|
|
578
574
|
latitude: number;
|
|
575
|
+
longitude: number;
|
|
576
|
+
name: string;
|
|
577
|
+
short_name: string;
|
|
578
|
+
updated_at: string | number;
|
|
579
|
+
created_by: string;
|
|
579
580
|
location: {
|
|
580
581
|
country: {
|
|
581
582
|
admin_level: string;
|
|
@@ -608,7 +609,9 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
608
609
|
code?: string | undefined;
|
|
609
610
|
} | undefined;
|
|
610
611
|
};
|
|
611
|
-
|
|
612
|
+
is_deleted?: boolean | undefined;
|
|
613
|
+
legacy_ids?: string[] | undefined;
|
|
614
|
+
lifecycle_status?: string | undefined;
|
|
612
615
|
is_locked?: boolean | undefined;
|
|
613
616
|
updated_by?: string | undefined;
|
|
614
617
|
flags?: {
|
|
@@ -617,11 +620,8 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
617
620
|
agency_ids?: string[] | undefined;
|
|
618
621
|
is_harmonized?: boolean | undefined;
|
|
619
622
|
}[] | undefined;
|
|
620
|
-
is_deleted?: boolean | undefined;
|
|
621
623
|
jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
|
|
622
624
|
legacy_id?: string | null | undefined;
|
|
623
|
-
legacy_ids?: string[] | undefined;
|
|
624
|
-
lifecycle_status?: string | undefined;
|
|
625
625
|
new_name?: string | null | undefined;
|
|
626
626
|
previous_go_id?: string | null | undefined;
|
|
627
627
|
tts_hash?: string | null | undefined;
|
|
@@ -695,9 +695,9 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
695
695
|
short_name: z.ZodString;
|
|
696
696
|
stop_id: z.ZodString;
|
|
697
697
|
}, "strip", z.ZodTypeAny, {
|
|
698
|
+
short_name: string;
|
|
698
699
|
agency_ids: string[];
|
|
699
700
|
is_harmonized: boolean;
|
|
700
|
-
short_name: string;
|
|
701
701
|
stop_id: string;
|
|
702
702
|
}, {
|
|
703
703
|
short_name: string;
|
|
@@ -1119,28 +1119,31 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
1119
1119
|
route_id: string;
|
|
1120
1120
|
}>, "many">>;
|
|
1121
1121
|
}, "_id" | "created_at" | "updated_at" | "associated_patterns">, "strip", z.ZodTypeAny, {
|
|
1122
|
+
is_deleted: boolean;
|
|
1123
|
+
latitude: number & {
|
|
1124
|
+
__brand: "Latitude";
|
|
1125
|
+
};
|
|
1126
|
+
legacy_ids: string[];
|
|
1127
|
+
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
1128
|
+
longitude: number & {
|
|
1129
|
+
__brand: "Longitude";
|
|
1130
|
+
};
|
|
1131
|
+
name: string;
|
|
1122
1132
|
short_name: string;
|
|
1123
1133
|
created_by: string;
|
|
1124
1134
|
is_locked: boolean;
|
|
1125
1135
|
flags: {
|
|
1136
|
+
short_name: string;
|
|
1126
1137
|
agency_ids: string[];
|
|
1127
1138
|
is_harmonized: boolean;
|
|
1128
|
-
short_name: string;
|
|
1129
1139
|
stop_id: string;
|
|
1130
1140
|
}[];
|
|
1131
|
-
is_deleted: boolean;
|
|
1132
1141
|
jurisdiction: "ip" | "municipality" | "other" | "unknown";
|
|
1133
1142
|
legacy_id: string | null;
|
|
1134
|
-
legacy_ids: string[];
|
|
1135
|
-
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
1136
|
-
name: string;
|
|
1137
1143
|
new_name: string | null;
|
|
1138
1144
|
previous_go_id: string | null;
|
|
1139
1145
|
tts_hash: string | null;
|
|
1140
1146
|
tts_name: string | null;
|
|
1141
|
-
latitude: number & {
|
|
1142
|
-
__brand: "Latitude";
|
|
1143
|
-
};
|
|
1144
1147
|
location: {
|
|
1145
1148
|
country: {
|
|
1146
1149
|
admin_level: string;
|
|
@@ -1173,9 +1176,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
1173
1176
|
code?: string | undefined;
|
|
1174
1177
|
} | undefined;
|
|
1175
1178
|
};
|
|
1176
|
-
longitude: number & {
|
|
1177
|
-
__brand: "Longitude";
|
|
1178
|
-
};
|
|
1179
1179
|
shelter: {
|
|
1180
1180
|
code: string | null;
|
|
1181
1181
|
status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
|
|
@@ -1237,10 +1237,11 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
1237
1237
|
observations: string | null;
|
|
1238
1238
|
updated_by?: string | undefined;
|
|
1239
1239
|
}, {
|
|
1240
|
+
latitude: number;
|
|
1241
|
+
longitude: number;
|
|
1242
|
+
name: string;
|
|
1240
1243
|
short_name: string;
|
|
1241
1244
|
created_by: string;
|
|
1242
|
-
name: string;
|
|
1243
|
-
latitude: number;
|
|
1244
1245
|
location: {
|
|
1245
1246
|
country: {
|
|
1246
1247
|
admin_level: string;
|
|
@@ -1273,7 +1274,9 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
1273
1274
|
code?: string | undefined;
|
|
1274
1275
|
} | undefined;
|
|
1275
1276
|
};
|
|
1276
|
-
|
|
1277
|
+
is_deleted?: boolean | undefined;
|
|
1278
|
+
legacy_ids?: string[] | undefined;
|
|
1279
|
+
lifecycle_status?: string | undefined;
|
|
1277
1280
|
is_locked?: boolean | undefined;
|
|
1278
1281
|
updated_by?: string | undefined;
|
|
1279
1282
|
flags?: {
|
|
@@ -1282,11 +1285,8 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
1282
1285
|
agency_ids?: string[] | undefined;
|
|
1283
1286
|
is_harmonized?: boolean | undefined;
|
|
1284
1287
|
}[] | undefined;
|
|
1285
|
-
is_deleted?: boolean | undefined;
|
|
1286
1288
|
jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
|
|
1287
1289
|
legacy_id?: string | null | undefined;
|
|
1288
|
-
legacy_ids?: string[] | undefined;
|
|
1289
|
-
lifecycle_status?: string | undefined;
|
|
1290
1290
|
new_name?: string | null | undefined;
|
|
1291
1291
|
previous_go_id?: string | null | undefined;
|
|
1292
1292
|
tts_hash?: string | null | undefined;
|
|
@@ -1340,6 +1340,12 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
1340
1340
|
observations?: string | null | undefined;
|
|
1341
1341
|
}>;
|
|
1342
1342
|
export declare const UpdateStopSchema: z.ZodObject<{
|
|
1343
|
+
is_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1344
|
+
latitude: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-geo").Latitude, number>>;
|
|
1345
|
+
legacy_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1346
|
+
lifecycle_status: z.ZodOptional<z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>>>;
|
|
1347
|
+
longitude: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-geo").Longitude, number>>;
|
|
1348
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1343
1349
|
short_name: z.ZodOptional<z.ZodString>;
|
|
1344
1350
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1345
1351
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1349,9 +1355,9 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1349
1355
|
short_name: z.ZodString;
|
|
1350
1356
|
stop_id: z.ZodString;
|
|
1351
1357
|
}, "strip", z.ZodTypeAny, {
|
|
1358
|
+
short_name: string;
|
|
1352
1359
|
agency_ids: string[];
|
|
1353
1360
|
is_harmonized: boolean;
|
|
1354
|
-
short_name: string;
|
|
1355
1361
|
stop_id: string;
|
|
1356
1362
|
}, {
|
|
1357
1363
|
short_name: string;
|
|
@@ -1359,17 +1365,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1359
1365
|
agency_ids?: string[] | undefined;
|
|
1360
1366
|
is_harmonized?: boolean | undefined;
|
|
1361
1367
|
}>, "many">>>;
|
|
1362
|
-
is_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1363
1368
|
jurisdiction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>>;
|
|
1364
1369
|
legacy_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1365
|
-
legacy_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1366
|
-
lifecycle_status: z.ZodOptional<z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>>>;
|
|
1367
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1368
1370
|
new_name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1369
1371
|
previous_go_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1370
1372
|
tts_hash: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1371
1373
|
tts_name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1372
|
-
latitude: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-geo").Latitude, number>>;
|
|
1373
1374
|
location: z.ZodOptional<z.ZodObject<{
|
|
1374
1375
|
country: z.ZodObject<{
|
|
1375
1376
|
admin_level: z.ZodString;
|
|
@@ -1514,7 +1515,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1514
1515
|
code?: string | undefined;
|
|
1515
1516
|
} | undefined;
|
|
1516
1517
|
}>>;
|
|
1517
|
-
longitude: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-geo").Longitude, number>>;
|
|
1518
1518
|
shelter: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1519
1519
|
code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1520
1520
|
installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
|
|
@@ -1753,26 +1753,27 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1753
1753
|
image_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1754
1754
|
observations: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1755
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1756
|
+
is_deleted?: boolean | undefined;
|
|
1757
|
+
latitude?: import("@tmlmobilidade/go-types-geo").Latitude | undefined;
|
|
1758
|
+
legacy_ids?: string[] | undefined;
|
|
1759
|
+
lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
|
|
1760
|
+
longitude?: import("@tmlmobilidade/go-types-geo").Longitude | undefined;
|
|
1761
|
+
name?: string | undefined;
|
|
1756
1762
|
short_name?: string | undefined;
|
|
1757
1763
|
is_locked?: boolean | undefined;
|
|
1758
1764
|
updated_by?: string | undefined;
|
|
1759
1765
|
flags?: {
|
|
1766
|
+
short_name: string;
|
|
1760
1767
|
agency_ids: string[];
|
|
1761
1768
|
is_harmonized: boolean;
|
|
1762
|
-
short_name: string;
|
|
1763
1769
|
stop_id: string;
|
|
1764
1770
|
}[] | undefined;
|
|
1765
|
-
is_deleted?: boolean | undefined;
|
|
1766
1771
|
jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
|
|
1767
1772
|
legacy_id?: string | null | undefined;
|
|
1768
|
-
legacy_ids?: string[] | undefined;
|
|
1769
|
-
lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
|
|
1770
|
-
name?: string | undefined;
|
|
1771
1773
|
new_name?: string | null | undefined;
|
|
1772
1774
|
previous_go_id?: string | null | undefined;
|
|
1773
1775
|
tts_hash?: string | null | undefined;
|
|
1774
1776
|
tts_name?: string | null | undefined;
|
|
1775
|
-
latitude?: import("@tmlmobilidade/go-types-geo").Latitude | undefined;
|
|
1776
1777
|
location?: {
|
|
1777
1778
|
country: {
|
|
1778
1779
|
admin_level: string;
|
|
@@ -1805,7 +1806,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1805
1806
|
code?: string | undefined;
|
|
1806
1807
|
} | undefined;
|
|
1807
1808
|
} | undefined;
|
|
1808
|
-
longitude?: import("@tmlmobilidade/go-types-geo").Longitude | undefined;
|
|
1809
1809
|
shelter?: {
|
|
1810
1810
|
code: string | null;
|
|
1811
1811
|
status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
|
|
@@ -1866,6 +1866,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1866
1866
|
image_ids?: string[] | undefined;
|
|
1867
1867
|
observations?: string | null | undefined;
|
|
1868
1868
|
}, {
|
|
1869
|
+
is_deleted?: boolean | undefined;
|
|
1870
|
+
latitude?: number | undefined;
|
|
1871
|
+
legacy_ids?: string[] | undefined;
|
|
1872
|
+
lifecycle_status?: string | undefined;
|
|
1873
|
+
longitude?: number | undefined;
|
|
1874
|
+
name?: string | undefined;
|
|
1869
1875
|
short_name?: string | undefined;
|
|
1870
1876
|
is_locked?: boolean | undefined;
|
|
1871
1877
|
updated_by?: string | undefined;
|
|
@@ -1875,17 +1881,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1875
1881
|
agency_ids?: string[] | undefined;
|
|
1876
1882
|
is_harmonized?: boolean | undefined;
|
|
1877
1883
|
}[] | undefined;
|
|
1878
|
-
is_deleted?: boolean | undefined;
|
|
1879
1884
|
jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
|
|
1880
1885
|
legacy_id?: string | null | undefined;
|
|
1881
|
-
legacy_ids?: string[] | undefined;
|
|
1882
|
-
lifecycle_status?: string | undefined;
|
|
1883
|
-
name?: string | undefined;
|
|
1884
1886
|
new_name?: string | null | undefined;
|
|
1885
1887
|
previous_go_id?: string | null | undefined;
|
|
1886
1888
|
tts_hash?: string | null | undefined;
|
|
1887
1889
|
tts_name?: string | null | undefined;
|
|
1888
|
-
latitude?: number | undefined;
|
|
1889
1890
|
location?: {
|
|
1890
1891
|
country: {
|
|
1891
1892
|
admin_level: string;
|
|
@@ -1918,7 +1919,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1918
1919
|
code?: string | undefined;
|
|
1919
1920
|
} | undefined;
|
|
1920
1921
|
} | undefined;
|
|
1921
|
-
longitude?: number | undefined;
|
|
1922
1922
|
shelter?: {
|
|
1923
1923
|
code?: string | null | undefined;
|
|
1924
1924
|
status?: string | undefined;
|