move arguments and notification interfaces to notification repository file

This commit is contained in:
2025-03-27 09:57:49 -07:00
parent 60b626b64f
commit 09be37cedb
4 changed files with 44 additions and 23 deletions

View File

@@ -0,0 +1,33 @@
export interface NotificationLookupArguments {
deviceId: string;
shuttleId: string;
stopId: string;
}
export interface ScheduledNotification extends NotificationLookupArguments {
/**
* 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.
*/
secondsThreshold: number;
}
export class NotificationRepository {
public async getAllNotificationsForShuttleAndStopId(shuttleId: string, stopId: string) {
}
public async getSecondsThresholdForNotificationIfExists(lookupArguments: NotificationLookupArguments) {
}
public async addNotification(notification: ScheduledNotification) {
}
public async deleteNotification(lookupArguments: NotificationLookupArguments) {
}
}