@tmlmobilidade/types 20260518.1500.45 → 20260518.1511.41

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.
@@ -1,5 +1,5 @@
1
1
  /* * */
2
- import { validateGtfsBinary, validateGtfsTernary } from './common.js';
2
+ import { validateGtfsBinary, validateGtfsHasField, validateGtfsTernary } from './common.js';
3
3
  /**
4
4
  * Validates and transforms a value into a GTFS Location Type.
5
5
  * It accepts numeric or string representations of location types.
@@ -77,13 +77,13 @@ export function validateGtfsStopExtended(rawData) {
77
77
  // Transform the raw data into the output format
78
78
  return {
79
79
  ...stop,
80
- has_bench: validateGtfsBinary(rawData.has_bench),
81
- has_network_map: validateGtfsBinary(rawData.has_network_map),
82
- has_pip_real_time: validateGtfsBinary(rawData.has_pip_real_time),
83
- has_schedules: validateGtfsBinary(rawData.has_schedules),
80
+ has_bench: validateGtfsHasField(rawData.has_bench),
81
+ has_network_map: validateGtfsHasField(rawData.has_network_map),
82
+ has_pip_real_time: validateGtfsHasField(rawData.has_pip_real_time),
83
+ has_schedules: validateGtfsHasField(rawData.has_schedules),
84
84
  has_shelter: validateGtfsBinary(rawData.has_shelter),
85
- has_stop_sign: validateGtfsBinary(rawData.has_stop_sign),
86
- has_tariffs_information: validateGtfsBinary(rawData.has_tariffs_information),
85
+ has_stop_sign: validateGtfsHasField(rawData.has_stop_sign),
86
+ has_tariffs_information: validateGtfsHasField(rawData.has_tariffs_information),
87
87
  municipality_id: rawData.municipality_id,
88
88
  parish_id: rawData.parish_id,
89
89
  public_visible: validateGtfsBinary(rawData.public_visible),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260518.1500.45",
3
+ "version": "20260518.1511.41",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"