Skip to content

Commit

Permalink
Add scooter mode (#66)
Browse files Browse the repository at this point in the history
* added scootermode

* added escooter subtype

* added scooter mode and escooter submode
  • Loading branch information
Dahly96 authored Jan 30, 2025
1 parent d468f59 commit 65c0886
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions schema-definitions/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"domesticFlight",
"domesticScheduledFlight",
"dragLift",
"escooter",
"expressBus",
"funicular",
"helicopterService",
Expand Down
6 changes: 4 additions & 2 deletions schema-definitions/stopSignalButtonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
"type": "string",
"enum": [
"air",
"bus",
"foot",
"bicycle",
"bus",
"cableway",
"coach",
"foot",
"funicular",
"lift",
"metro",
"monorail",
"rail",
"scooter",
"taxi",
"tram",
"trolleybus",
Expand Down Expand Up @@ -66,6 +67,7 @@
"domesticFlight",
"domesticScheduledFlight",
"dragLift",
"escooter",
"expressBus",
"funicular",
"helicopterService",
Expand Down
6 changes: 4 additions & 2 deletions schema-definitions/travelSearchFilters.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@
"type": "string",
"enum": [
"air",
"bus",
"foot",
"bicycle",
"bus",
"cableway",
"coach",
"foot",
"funicular",
"lift",
"metro",
"monorail",
"rail",
"scooter",
"taxi",
"tram",
"trolleybus",
Expand Down Expand Up @@ -88,6 +89,7 @@
"domesticFlight",
"domesticScheduledFlight",
"dragLift",
"escooter",
"expressBus",
"funicular",
"helicopterService",
Expand Down
6 changes: 4 additions & 2 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import {z} from 'zod';

export const TransportModeType = z.union([
z.literal('air'),
z.literal('bus'),
z.literal('foot'),
z.literal('bicycle'),
z.literal('bus'),
z.literal('cableway'),
z.literal('coach'),
z.literal('foot'),
z.literal('funicular'),
z.literal('lift'),
z.literal('metro'),
z.literal('monorail'),
z.literal('rail'),
z.literal('scooter'),
z.literal('taxi'),
z.literal('tram'),
z.literal('trolleybus'),
Expand Down Expand Up @@ -46,6 +47,7 @@ export const TransportSubmodeType = z.union([
z.literal('domesticFlight'),
z.literal('domesticScheduledFlight'),
z.literal('dragLift'),
z.literal('escooter'),
z.literal('expressBus'),
z.literal('funicular'),
z.literal('helicopterService'),
Expand Down

0 comments on commit 65c0886

Please sign in to comment.