add optional secondsThreshold value

This commit is contained in:
2025-03-25 14:55:34 -07:00
parent 9e6e20503d
commit 8874704acb

View File

@@ -7,6 +7,17 @@ export interface ScheduledNotificationData {
deviceId: string; deviceId: string;
shuttleId: string; shuttleId: string;
stopId: string; stopId: string;
/**
* Value which specifies the ETA of the shuttle for when
* the notification should fire.
* For example, a secondsThreshold of 180 would mean that the notification
* fires when the ETA drops below 3 minutes.
*
* Optional to retain backwards compatibility with devices on the
* older API version.
*/
secondsThreshold?: number;
} }
export class ETANotificationScheduler { export class ETANotificationScheduler {