From 8874704acbcee22022026883b06aeae4302e905b Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Tue, 25 Mar 2025 14:55:34 -0700 Subject: [PATCH] add optional secondsThreshold value --- .../schedulers/ETANotificationScheduler.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/notifications/schedulers/ETANotificationScheduler.ts b/src/notifications/schedulers/ETANotificationScheduler.ts index 4ccf110..480fc2b 100644 --- a/src/notifications/schedulers/ETANotificationScheduler.ts +++ b/src/notifications/schedulers/ETANotificationScheduler.ts @@ -7,6 +7,17 @@ export interface ScheduledNotificationData { deviceId: string; shuttleId: 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 {