@tmlmobilidade/types 20260601.1657.26 → 20260601.1804.51

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.
@@ -83,7 +83,7 @@ export declare function validateGTFSPathType(value?: number | string): GTFS_Path
83
83
  */
84
84
  export interface GTFS_Route_Extended extends GTFS_Route {
85
85
  circular?: GTFS_Binary;
86
- line_id: number;
86
+ line_id: string;
87
87
  line_long_name: string;
88
88
  line_short_name: string;
89
89
  path_type?: GTFS_PathType;
@@ -108,14 +108,11 @@ export function validateGtfsRouteExtended(rawData) {
108
108
  throw new Error('Missing required field "line_long_name" on GTFS Route.');
109
109
  if (!rawData.line_short_name)
110
110
  throw new Error('Missing required field "line_short_name" on GTFS Route.');
111
- // Validate the type of fields
112
- if (Number.isNaN(rawData.line_id))
113
- throw new Error(`Invalid line_id: "${rawData.line_id}". It must be a valid number.`);
114
111
  // Transform the raw data into the output format
115
112
  return {
116
113
  ...route,
117
114
  circular: validateGtfsBinary(rawData.circular),
118
- line_id: Number(rawData.line_id),
115
+ line_id: rawData.line_id,
119
116
  line_long_name: rawData.line_long_name,
120
117
  line_short_name: rawData.line_short_name,
121
118
  path_type: validateGTFSPathType(rawData.path_type),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260601.1657.26",
3
+ "version": "20260601.1804.51",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"