@tmlmobilidade/types 20260627.17.1 → 20260627.41.35

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.
Files changed (132) hide show
  1. package/dist/alerts/cause.d.ts +1 -1
  2. package/dist/alerts/effect.d.ts +1 -1
  3. package/dist/gtfs/feed-info.d.ts +2 -2
  4. package/dist/gtfs-tml/feed-info.d.ts +2 -2
  5. package/dist/gtfs-validation/gtfs-validation.d.ts +12 -12
  6. package/dist/index.d.ts +1 -2
  7. package/dist/index.js +1 -2
  8. package/dist/locations/queries.d.ts +4 -4
  9. package/dist/offer/pattern.d.ts +72 -72
  10. package/dist/offer/route-path-type.d.ts +2 -2
  11. package/dist/offer/route.d.ts +6 -6
  12. package/dist/offer/rules.d.ts +18 -18
  13. package/dist/offer/typology.d.ts +7 -7
  14. package/dist/offer/vkm.d.ts +15 -15
  15. package/dist/operation/lines/operational-line.d.ts +4 -4
  16. package/dist/operation/stops/operational-stop.d.ts +4 -4
  17. package/dist/organization.d.ts +5 -5
  18. package/dist/plans/plan-app-status.d.ts +2 -2
  19. package/dist/plans/plan.d.ts +94 -94
  20. package/dist/vehicle/vehicle.d.ts +5 -5
  21. package/dist/vehicle-events/raw/ccfl/v1.d.ts +54 -54
  22. package/dist/vehicle-events/raw/ccfl/v1.js +1 -1
  23. package/dist/vehicle-events/raw/cmet/v1-core.d.ts +88 -88
  24. package/dist/vehicle-events/raw/cmet/v1-log.d.ts +88 -88
  25. package/dist/vehicle-events/raw/cp/v1.d.ts +64 -64
  26. package/dist/vehicle-events/raw/cp/v1.js +1 -1
  27. package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +112 -112
  28. package/dist/vehicle-events/raw/crtm-aisa/v1.js +1 -2
  29. package/dist/vehicle-events/raw/crtm-laveloz/v1.d.ts +112 -112
  30. package/dist/vehicle-events/raw/crtm-laveloz/v1.js +1 -1
  31. package/dist/vehicle-events/raw/fertagus/v1.d.ts +64 -64
  32. package/dist/vehicle-events/raw/ml/v1.d.ts +54 -54
  33. package/dist/vehicle-events/raw/mobi/v1.d.ts +84 -84
  34. package/dist/vehicle-events/raw/mobi/v1.js +1 -1
  35. package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
  36. package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +530 -530
  37. package/dist/vehicle-events/raw/tcb/v1.d.ts +84 -84
  38. package/dist/vehicle-events/raw/tcb/v1.js +1 -1
  39. package/dist/vehicle-events/raw/ttsl/v1.d.ts +54 -54
  40. package/dist/vehicle-events/raw/ttsl/v1.js +1 -1
  41. package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
  42. package/package.json +2 -1
  43. package/dist/gtfs-rt/alert.d.ts +0 -347
  44. package/dist/gtfs-rt/alert.js +0 -24
  45. package/dist/gtfs-rt/carriage-details.d.ts +0 -21
  46. package/dist/gtfs-rt/carriage-details.js +0 -11
  47. package/dist/gtfs-rt/cause.d.ts +0 -10
  48. package/dist/gtfs-rt/cause.js +0 -18
  49. package/dist/gtfs-rt/congestion-level.d.ts +0 -4
  50. package/dist/gtfs-rt/congestion-level.js +0 -11
  51. package/dist/gtfs-rt/effect.d.ts +0 -10
  52. package/dist/gtfs-rt/effect.js +0 -17
  53. package/dist/gtfs-rt/entity-selector.d.ts +0 -68
  54. package/dist/gtfs-rt/entity-selector.js +0 -12
  55. package/dist/gtfs-rt/feed-entity.d.ts +0 -729
  56. package/dist/gtfs-rt/feed-entity.js +0 -11
  57. package/dist/gtfs-rt/feed-header.d.ts +0 -18
  58. package/dist/gtfs-rt/feed-header.js +0 -9
  59. package/dist/gtfs-rt/feed-message.d.ts +0 -975
  60. package/dist/gtfs-rt/feed-message.js +0 -9
  61. package/dist/gtfs-rt/index.d.ts +0 -22
  62. package/dist/gtfs-rt/index.js +0 -22
  63. package/dist/gtfs-rt/localized-image.d.ts +0 -15
  64. package/dist/gtfs-rt/localized-image.js +0 -8
  65. package/dist/gtfs-rt/occupancy-status.d.ts +0 -4
  66. package/dist/gtfs-rt/occupancy-status.js +0 -15
  67. package/dist/gtfs-rt/position.d.ts +0 -21
  68. package/dist/gtfs-rt/position.js +0 -10
  69. package/dist/gtfs-rt/severity-level.d.ts +0 -4
  70. package/dist/gtfs-rt/severity-level.js +0 -10
  71. package/dist/gtfs-rt/time-range.d.ts +0 -12
  72. package/dist/gtfs-rt/time-range.js +0 -7
  73. package/dist/gtfs-rt/translated-image.d.ts +0 -29
  74. package/dist/gtfs-rt/translated-image.js +0 -7
  75. package/dist/gtfs-rt/translated-string.d.ts +0 -24
  76. package/dist/gtfs-rt/translated-string.js +0 -7
  77. package/dist/gtfs-rt/translation.d.ts +0 -12
  78. package/dist/gtfs-rt/translation.js +0 -7
  79. package/dist/gtfs-rt/trip-descriptor.d.ts +0 -29
  80. package/dist/gtfs-rt/trip-descriptor.js +0 -13
  81. package/dist/gtfs-rt/vehicle-descriptor.d.ts +0 -18
  82. package/dist/gtfs-rt/vehicle-descriptor.js +0 -10
  83. package/dist/gtfs-rt/vehicle-position.d.ts +0 -168
  84. package/dist/gtfs-rt/vehicle-position.js +0 -23
  85. package/dist/gtfs-rt/vehicle-stop-status.d.ts +0 -4
  86. package/dist/gtfs-rt/vehicle-stop-status.js +0 -9
  87. package/dist/gtfs-rt/wheelchair-accessible.d.ts +0 -4
  88. package/dist/gtfs-rt/wheelchair-accessible.js +0 -10
  89. package/dist/hub/api/alerts/alert.d.ts +0 -82
  90. package/dist/hub/api/alerts/alert.js +0 -20
  91. package/dist/hub/api/alerts/index.d.ts +0 -1
  92. package/dist/hub/api/alerts/index.js +0 -1
  93. package/dist/hub/api/index.d.ts +0 -7
  94. package/dist/hub/api/index.js +0 -7
  95. package/dist/hub/api/network/index.d.ts +0 -7
  96. package/dist/hub/api/network/index.js +0 -7
  97. package/dist/hub/api/network/line.d.ts +0 -66
  98. package/dist/hub/api/network/line.js +0 -24
  99. package/dist/hub/api/network/pattern.d.ts +0 -184
  100. package/dist/hub/api/network/pattern.js +0 -32
  101. package/dist/hub/api/network/route.d.ts +0 -66
  102. package/dist/hub/api/network/route.js +0 -24
  103. package/dist/hub/api/network/scheduled-arrival.d.ts +0 -21
  104. package/dist/hub/api/network/scheduled-arrival.js +0 -9
  105. package/dist/hub/api/network/stop.d.ts +0 -97
  106. package/dist/hub/api/network/stop.js +0 -29
  107. package/dist/hub/api/network/trip.d.ts +0 -49
  108. package/dist/hub/api/network/trip.js +0 -11
  109. package/dist/hub/api/network/waypoint.d.ts +0 -27
  110. package/dist/hub/api/network/waypoint.js +0 -11
  111. package/dist/hub/api/patterns.d.ts +0 -16
  112. package/dist/hub/api/patterns.js +0 -3
  113. package/dist/hub/api/plans/index.d.ts +0 -1
  114. package/dist/hub/api/plans/index.js +0 -1
  115. package/dist/hub/api/plans/plan.d.ts +0 -138
  116. package/dist/hub/api/plans/plan.js +0 -18
  117. package/dist/hub/api/realtime/index.d.ts +0 -1
  118. package/dist/hub/api/realtime/index.js +0 -1
  119. package/dist/hub/api/realtime/vehicle-position.d.ts +0 -66
  120. package/dist/hub/api/realtime/vehicle-position.js +0 -31
  121. package/dist/hub/api/realtime-eta-gtfs.d.ts +0 -41
  122. package/dist/hub/api/realtime-eta-gtfs.js +0 -2
  123. package/dist/hub/api/shapes.d.ts +0 -148
  124. package/dist/hub/api/shapes.js +0 -26
  125. package/dist/hub/api/timetables.d.ts +0 -36
  126. package/dist/hub/api/timetables.js +0 -2
  127. package/dist/hub/gtfs/index.d.ts +0 -1
  128. package/dist/hub/gtfs/index.js +0 -1
  129. package/dist/hub/gtfs/stops.d.ts +0 -66
  130. package/dist/hub/gtfs/stops.js +0 -24
  131. package/dist/hub/index.d.ts +0 -2
  132. package/dist/hub/index.js +0 -2
@@ -1,82 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const HubAlertSchema: z.ZodObject<Omit<{
3
- _id: z.ZodString;
4
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
5
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
- is_locked: z.ZodDefault<z.ZodBoolean>;
7
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
8
- updated_by: z.ZodOptional<z.ZodString>;
9
- } & {
10
- active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
11
- active_period_start_date: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
12
- agency_id: z.ZodString;
13
- auto_texts: z.ZodDefault<z.ZodBoolean>;
14
- cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>;
15
- coordinates: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
16
- description: z.ZodString;
17
- effect: z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>;
18
- external_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19
- file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
- info_url: z.ZodDefault<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
21
- municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
- publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
23
- publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
24
- publish_status: z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>;
25
- reference_type: z.ZodEnum<["agency", "lines", "stops", "rides"]>;
26
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
27
- child_ids: z.ZodArray<z.ZodString, "many">;
28
- parent_id: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- child_ids: string[];
31
- parent_id: string;
32
- }, {
33
- child_ids: string[];
34
- parent_id: string;
35
- }>, "many">>;
36
- title: z.ZodString;
37
- user_instructions: z.ZodDefault<z.ZodString>;
38
- }, "created_at" | "created_by" | "is_locked" | "updated_at" | "updated_by" | "auto_texts" | "external_id" | "file_id" | "publish_end_date" | "publish_start_date" | "publish_status" | "user_instructions"> & {
39
- image_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40
- }, "strip", z.ZodTypeAny, {
41
- _id: string;
42
- description: string;
43
- active_period_end_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
44
- active_period_start_date: number & {
45
- __brand: "UnixTimestamp";
46
- };
47
- agency_id: string;
48
- cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE";
49
- coordinates: [number, number] | null;
50
- effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
51
- info_url: string | null;
52
- municipality_ids: string[];
53
- reference_type: "agency" | "lines" | "stops" | "rides";
54
- references: {
55
- child_ids: string[];
56
- parent_id: string;
57
- }[];
58
- title: string;
59
- image_url: string | null;
60
- }, {
61
- _id: string;
62
- description: string;
63
- active_period_start_date: number;
64
- agency_id: string;
65
- cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE";
66
- effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
67
- reference_type: "agency" | "lines" | "stops" | "rides";
68
- title: string;
69
- active_period_end_date?: number | null | undefined;
70
- coordinates?: [number, number] | null | undefined;
71
- info_url?: string | null | undefined;
72
- municipality_ids?: string[] | undefined;
73
- references?: {
74
- child_ids: string[];
75
- parent_id: string;
76
- }[] | undefined;
77
- image_url?: string | null | undefined;
78
- }>;
79
- /**
80
- * Publishable alert data for the Hub Alerts API.
81
- */
82
- export type HubAlert = z.infer<typeof HubAlertSchema>;
@@ -1,20 +0,0 @@
1
- /* * */
2
- import { AlertSchema } from '../../../alerts/alert.js';
3
- import { z } from 'zod';
4
- /* * */
5
- export const HubAlertSchema = AlertSchema.omit({
6
- auto_texts: true,
7
- created_at: true,
8
- created_by: true,
9
- external_id: true,
10
- file_id: true,
11
- is_locked: true,
12
- publish_end_date: true,
13
- publish_start_date: true,
14
- publish_status: true,
15
- updated_at: true,
16
- updated_by: true,
17
- user_instructions: true,
18
- }).extend({
19
- image_url: z.string().nullable().default(null),
20
- });
@@ -1 +0,0 @@
1
- export * from './alert.js';
@@ -1 +0,0 @@
1
- export * from './alert.js';
@@ -1,7 +0,0 @@
1
- export * from './alerts/index.js';
2
- export * from './network/index.js';
3
- export * from './plans/index.js';
4
- export * from './realtime-eta-gtfs.js';
5
- export * from './realtime/index.js';
6
- export * from './shapes.js';
7
- export * from './timetables.js';
@@ -1,7 +0,0 @@
1
- export * from './alerts/index.js';
2
- export * from './network/index.js';
3
- export * from './plans/index.js';
4
- export * from './realtime-eta-gtfs.js';
5
- export * from './realtime/index.js';
6
- export * from './shapes.js';
7
- export * from './timetables.js';
@@ -1,7 +0,0 @@
1
- export * from './line.js';
2
- export * from './pattern.js';
3
- export * from './route.js';
4
- export * from './scheduled-arrival.js';
5
- export * from './stop.js';
6
- export * from './trip.js';
7
- export * from './waypoint.js';
@@ -1,7 +0,0 @@
1
- export * from './line.js';
2
- export * from './pattern.js';
3
- export * from './route.js';
4
- export * from './scheduled-arrival.js';
5
- export * from './stop.js';
6
- export * from './trip.js';
7
- export * from './waypoint.js';
@@ -1,66 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const HubLineSchema: z.ZodObject<{
3
- _id: z.ZodString;
4
- agency_id: z.ZodString;
5
- color: z.ZodString;
6
- district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7
- district_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8
- facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
- locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10
- locality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
- long_name: z.ZodString;
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">>;
16
- pattern_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
17
- route_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
18
- short_name: z.ZodString;
19
- stop_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
20
- text_color: z.ZodString;
21
- tts_name: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- _id: string;
24
- short_name: string;
25
- agency_id: string;
26
- municipality_ids: string[];
27
- color: string;
28
- stop_ids: string[];
29
- tts_name: string;
30
- facilities: string[];
31
- district_ids: string[];
32
- district_names: string[];
33
- locality_ids: string[];
34
- locality_names: string[];
35
- long_name: string;
36
- municipality_names: string[];
37
- parish_ids: string[];
38
- parish_names: string[];
39
- pattern_ids: string[];
40
- route_ids: string[];
41
- text_color: string;
42
- }, {
43
- _id: string;
44
- short_name: string;
45
- agency_id: string;
46
- color: string;
47
- tts_name: string;
48
- long_name: string;
49
- text_color: string;
50
- municipality_ids?: string[] | undefined;
51
- stop_ids?: string[] | undefined;
52
- facilities?: string[] | undefined;
53
- district_ids?: string[] | undefined;
54
- district_names?: string[] | undefined;
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;
60
- pattern_ids?: string[] | undefined;
61
- route_ids?: string[] | undefined;
62
- }>;
63
- /**
64
- * Publishable line data for the Hub Network API.
65
- */
66
- export type HubLine = z.infer<typeof HubLineSchema>;
@@ -1,24 +0,0 @@
1
- /* * */
2
- import { z } from 'zod';
3
- /* * */
4
- export const HubLineSchema = z.object({
5
- _id: z.string(),
6
- agency_id: z.string(),
7
- color: z.string(),
8
- district_ids: z.array(z.string()).default([]),
9
- district_names: z.array(z.string()).default([]),
10
- facilities: z.array(z.string()).default([]),
11
- locality_ids: z.array(z.string()).default([]),
12
- locality_names: z.array(z.string()).default([]),
13
- long_name: z.string(),
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([]),
18
- pattern_ids: z.array(z.string()).default([]),
19
- route_ids: z.array(z.string()).default([]),
20
- short_name: z.string(),
21
- stop_ids: z.array(z.string()).default([]),
22
- text_color: z.string(),
23
- tts_name: z.string(),
24
- });
@@ -1,184 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const HubPatternSchema: z.ZodObject<{
3
- _id: z.ZodString;
4
- agency_id: z.ZodString;
5
- color: z.ZodString;
6
- direction_id: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
7
- district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8
- district_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
- facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10
- headsign: z.ZodString;
11
- line_id: z.ZodString;
12
- locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
- locality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
14
- long_name: z.ZodString;
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">>;
19
- path: z.ZodArray<z.ZodObject<{
20
- allow_drop_off: z.ZodBoolean;
21
- allow_pickup: z.ZodBoolean;
22
- distance: z.ZodNumber;
23
- distance_delta: z.ZodNumber;
24
- stop_id: z.ZodString;
25
- stop_sequence: z.ZodNumber;
26
- }, "strip", z.ZodTypeAny, {
27
- stop_id: string;
28
- stop_sequence: number;
29
- allow_drop_off: boolean;
30
- allow_pickup: boolean;
31
- distance: number;
32
- distance_delta: number;
33
- }, {
34
- stop_id: string;
35
- stop_sequence: number;
36
- allow_drop_off: boolean;
37
- allow_pickup: boolean;
38
- distance: number;
39
- distance_delta: number;
40
- }>, "many">;
41
- route_id: z.ZodString;
42
- shape_id: z.ZodString;
43
- short_name: z.ZodString;
44
- text_color: z.ZodString;
45
- trips: z.ZodArray<z.ZodObject<{
46
- schedule: z.ZodArray<z.ZodObject<{
47
- arrival_time: z.ZodString;
48
- arrival_time_24h: z.ZodString;
49
- stop_id: z.ZodString;
50
- stop_sequence: z.ZodNumber;
51
- }, "strip", z.ZodTypeAny, {
52
- stop_id: string;
53
- arrival_time: string;
54
- stop_sequence: number;
55
- arrival_time_24h: string;
56
- }, {
57
- stop_id: string;
58
- arrival_time: string;
59
- stop_sequence: number;
60
- arrival_time_24h: string;
61
- }>, "many">;
62
- service_ids: z.ZodArray<z.ZodString, "many">;
63
- trip_ids: z.ZodArray<z.ZodString, "many">;
64
- valid_on: z.ZodArray<z.ZodString, "many">;
65
- version_id: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- schedule: {
68
- stop_id: string;
69
- arrival_time: string;
70
- stop_sequence: number;
71
- arrival_time_24h: string;
72
- }[];
73
- service_ids: string[];
74
- trip_ids: string[];
75
- valid_on: string[];
76
- version_id: string;
77
- }, {
78
- schedule: {
79
- stop_id: string;
80
- arrival_time: string;
81
- stop_sequence: number;
82
- arrival_time_24h: string;
83
- }[];
84
- service_ids: string[];
85
- trip_ids: string[];
86
- valid_on: string[];
87
- version_id: string;
88
- }>, "many">;
89
- tts_headsign: z.ZodString;
90
- valid_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
91
- version_id: z.ZodString;
92
- }, "strip", z.ZodTypeAny, {
93
- _id: string;
94
- path: {
95
- stop_id: string;
96
- stop_sequence: number;
97
- allow_drop_off: boolean;
98
- allow_pickup: boolean;
99
- distance: number;
100
- distance_delta: number;
101
- }[];
102
- short_name: string;
103
- agency_id: string;
104
- municipality_ids: string[];
105
- color: string;
106
- headsign: string;
107
- line_id: string;
108
- route_id: string;
109
- facilities: string[];
110
- direction_id: 0 | 1;
111
- shape_id: string;
112
- district_ids: string[];
113
- district_names: string[];
114
- locality_ids: string[];
115
- locality_names: string[];
116
- long_name: string;
117
- municipality_names: string[];
118
- parish_ids: string[];
119
- parish_names: string[];
120
- text_color: string;
121
- valid_on: string[];
122
- version_id: string;
123
- trips: {
124
- schedule: {
125
- stop_id: string;
126
- arrival_time: string;
127
- stop_sequence: number;
128
- arrival_time_24h: string;
129
- }[];
130
- service_ids: string[];
131
- trip_ids: string[];
132
- valid_on: string[];
133
- version_id: string;
134
- }[];
135
- tts_headsign: string;
136
- }, {
137
- _id: string;
138
- path: {
139
- stop_id: string;
140
- stop_sequence: number;
141
- allow_drop_off: boolean;
142
- allow_pickup: boolean;
143
- distance: number;
144
- distance_delta: number;
145
- }[];
146
- short_name: string;
147
- agency_id: string;
148
- color: string;
149
- headsign: string;
150
- line_id: string;
151
- route_id: string;
152
- direction_id: 0 | 1;
153
- shape_id: string;
154
- long_name: string;
155
- text_color: string;
156
- version_id: string;
157
- trips: {
158
- schedule: {
159
- stop_id: string;
160
- arrival_time: string;
161
- stop_sequence: number;
162
- arrival_time_24h: string;
163
- }[];
164
- service_ids: string[];
165
- trip_ids: string[];
166
- valid_on: string[];
167
- version_id: string;
168
- }[];
169
- tts_headsign: string;
170
- municipality_ids?: string[] | undefined;
171
- facilities?: string[] | undefined;
172
- district_ids?: string[] | undefined;
173
- district_names?: string[] | undefined;
174
- locality_ids?: string[] | undefined;
175
- locality_names?: string[] | undefined;
176
- municipality_names?: string[] | undefined;
177
- parish_ids?: string[] | undefined;
178
- parish_names?: string[] | undefined;
179
- valid_on?: string[] | undefined;
180
- }>;
181
- /**
182
- * Publishable pattern data for the Hub Network API.
183
- */
184
- export type HubPattern = z.infer<typeof HubPatternSchema>;
@@ -1,32 +0,0 @@
1
- /* * */
2
- import { HubTripSchema } from './trip.js';
3
- import { HubWaypointSchema } from './waypoint.js';
4
- import { z } from 'zod';
5
- /* * */
6
- export const HubPatternSchema = z.object({
7
- _id: z.string(),
8
- agency_id: z.string(),
9
- color: z.string(),
10
- direction_id: z.union([z.literal(0), z.literal(1)]),
11
- district_ids: z.array(z.string()).default([]),
12
- district_names: z.array(z.string()).default([]),
13
- facilities: z.array(z.string()).default([]),
14
- headsign: z.string(),
15
- line_id: z.string(),
16
- locality_ids: z.array(z.string()).default([]),
17
- locality_names: z.array(z.string()).default([]),
18
- long_name: z.string(),
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([]),
23
- path: z.array(HubWaypointSchema),
24
- route_id: z.string(),
25
- shape_id: z.string(),
26
- short_name: z.string(),
27
- text_color: z.string(),
28
- trips: z.array(HubTripSchema),
29
- tts_headsign: z.string(),
30
- valid_on: z.array(z.string()).default([]),
31
- version_id: z.string(),
32
- });
@@ -1,66 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const HubRouteSchema: z.ZodObject<{
3
- _id: z.ZodString;
4
- agency_id: z.ZodString;
5
- color: z.ZodString;
6
- district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7
- district_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8
- facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
- line_id: z.ZodString;
10
- locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
- locality_names: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12
- long_name: z.ZodString;
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">>;
17
- pattern_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
18
- short_name: z.ZodString;
19
- stop_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
20
- text_color: z.ZodString;
21
- tts_name: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- _id: string;
24
- short_name: string;
25
- agency_id: string;
26
- municipality_ids: string[];
27
- color: string;
28
- line_id: string;
29
- stop_ids: string[];
30
- tts_name: string;
31
- facilities: string[];
32
- district_ids: string[];
33
- district_names: string[];
34
- locality_ids: string[];
35
- locality_names: string[];
36
- long_name: string;
37
- municipality_names: string[];
38
- parish_ids: string[];
39
- parish_names: string[];
40
- pattern_ids: string[];
41
- text_color: string;
42
- }, {
43
- _id: string;
44
- short_name: string;
45
- agency_id: string;
46
- color: string;
47
- line_id: string;
48
- tts_name: string;
49
- long_name: string;
50
- text_color: string;
51
- municipality_ids?: string[] | undefined;
52
- stop_ids?: string[] | undefined;
53
- facilities?: string[] | undefined;
54
- district_ids?: string[] | undefined;
55
- district_names?: string[] | undefined;
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;
61
- pattern_ids?: string[] | undefined;
62
- }>;
63
- /**
64
- * Publishable route data for the Hub Network API.
65
- */
66
- export type HubRoute = z.infer<typeof HubRouteSchema>;
@@ -1,24 +0,0 @@
1
- /* * */
2
- import { z } from 'zod';
3
- /* * */
4
- export const HubRouteSchema = z.object({
5
- _id: z.string(),
6
- agency_id: z.string(),
7
- color: z.string(),
8
- district_ids: z.array(z.string()).default([]),
9
- district_names: z.array(z.string()).default([]),
10
- facilities: z.array(z.string()).default([]),
11
- line_id: z.string(),
12
- locality_ids: z.array(z.string()).default([]),
13
- locality_names: z.array(z.string()).default([]),
14
- long_name: z.string(),
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([]),
19
- pattern_ids: z.array(z.string()).default([]),
20
- short_name: z.string(),
21
- stop_ids: z.array(z.string()).default([]),
22
- text_color: z.string(),
23
- tts_name: z.string(),
24
- });
@@ -1,21 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const HubScheduledArrivalSchema: z.ZodObject<{
3
- arrival_time: z.ZodString;
4
- arrival_time_24h: z.ZodString;
5
- stop_id: z.ZodString;
6
- stop_sequence: z.ZodNumber;
7
- }, "strip", z.ZodTypeAny, {
8
- stop_id: string;
9
- arrival_time: string;
10
- stop_sequence: number;
11
- arrival_time_24h: string;
12
- }, {
13
- stop_id: string;
14
- arrival_time: string;
15
- stop_sequence: number;
16
- arrival_time_24h: string;
17
- }>;
18
- /**
19
- * Publishable scheduled arrival data for the Hub Network API.
20
- */
21
- export type HubScheduledArrival = z.infer<typeof HubScheduledArrivalSchema>;
@@ -1,9 +0,0 @@
1
- /* * */
2
- import { z } from 'zod';
3
- /* * */
4
- export const HubScheduledArrivalSchema = z.object({
5
- arrival_time: z.string(),
6
- arrival_time_24h: z.string(),
7
- stop_id: z.string(),
8
- stop_sequence: z.number(),
9
- });
@@ -1,97 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const HubStopSchema: z.ZodObject<{
3
- _id: z.ZodNumber;
4
- agency_ids: z.ZodArray<z.ZodString, "many">;
5
- district_id: z.ZodString;
6
- district_name: z.ZodString;
7
- flags: z.ZodArray<z.ZodObject<{
8
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
- is_harmonized: z.ZodDefault<z.ZodBoolean>;
10
- short_name: z.ZodString;
11
- stop_id: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- short_name: string;
14
- agency_ids: string[];
15
- is_harmonized: boolean;
16
- stop_id: string;
17
- }, {
18
- short_name: string;
19
- stop_id: string;
20
- agency_ids?: string[] | undefined;
21
- is_harmonized?: boolean | undefined;
22
- }>, "many">;
23
- latitude: z.ZodNumber;
24
- legacy_ids: z.ZodArray<z.ZodString, "many">;
25
- lifecycle_status: z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>;
26
- line_ids: z.ZodArray<z.ZodString, "many">;
27
- locality_id: z.ZodNullable<z.ZodString>;
28
- locality_name: z.ZodNullable<z.ZodString>;
29
- longitude: z.ZodNumber;
30
- municipality_id: z.ZodString;
31
- municipality_name: z.ZodString;
32
- name: z.ZodString;
33
- parish_id: z.ZodString;
34
- parish_name: z.ZodString;
35
- pattern_ids: z.ZodArray<z.ZodString, "many">;
36
- route_ids: z.ZodArray<z.ZodString, "many">;
37
- short_name: z.ZodString;
38
- tts_name: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- _id: number;
41
- name: string;
42
- short_name: string;
43
- agency_ids: string[];
44
- line_ids: string[];
45
- flags: {
46
- short_name: string;
47
- agency_ids: string[];
48
- is_harmonized: boolean;
49
- stop_id: string;
50
- }[];
51
- legacy_ids: string[];
52
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
53
- tts_name: string;
54
- district_id: string;
55
- latitude: number;
56
- locality_id: string | null;
57
- longitude: number;
58
- municipality_id: string;
59
- parish_id: string;
60
- district_name: string;
61
- locality_name: string | null;
62
- municipality_name: string;
63
- parish_name: string;
64
- pattern_ids: string[];
65
- route_ids: string[];
66
- }, {
67
- _id: number;
68
- name: string;
69
- short_name: string;
70
- agency_ids: string[];
71
- line_ids: string[];
72
- flags: {
73
- short_name: string;
74
- stop_id: string;
75
- agency_ids?: string[] | undefined;
76
- is_harmonized?: boolean | undefined;
77
- }[];
78
- legacy_ids: string[];
79
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
80
- tts_name: string;
81
- district_id: string;
82
- latitude: number;
83
- locality_id: string | null;
84
- longitude: number;
85
- municipality_id: string;
86
- parish_id: string;
87
- district_name: string;
88
- locality_name: string | null;
89
- municipality_name: string;
90
- parish_name: string;
91
- pattern_ids: string[];
92
- route_ids: string[];
93
- }>;
94
- /**
95
- * Publishable stop data for the Hub Stops API.
96
- */
97
- export type HubStop = z.infer<typeof HubStopSchema>;