c6f8e5642e
Fix typing errors in test
2025-11-11 15:44:34 -08:00
75537a9c3a
Update interface and implementation of ETANotificationScheduler
...
Rely on both the ETA repository and the shuttle repository
2025-11-11 14:59:36 -08:00
ca5c7c618a
Update function calls within tests where shuttle repositories are a dependency
2025-11-10 20:22:08 -08:00
4db517d4c0
Ensure shuttle repository uses typed EventEmitter overrides
2025-10-10 19:56:19 -07:00
14fbdc7408
Move testHelpers directory up one level
2025-07-31 22:41:05 -04:00
b7299b8359
Move all tests to subdirectories underneath code to be tested
2025-07-31 22:35:49 -04:00
8ee1f1522e
Change ParkingStructureCountOptions and HistoricalParkingAverageQueryResult to use Date objects
...
This matches the behavior of `updatedTime` on shuttle objects. When returning API data, dates are converted into milliseconds since Epoch by the DateTime scalar implementation.
2025-07-19 12:12:08 -04:00
ed037cf2d2
Move repositories into folders.
2025-07-19 11:58:45 -04:00
f74376c8ed
add test and code for client closure events
2025-04-30 18:17:55 -07:00
06d2a7bb27
extract code to open and close the apns connection
2025-04-30 17:51:28 -07:00
075b35e7ad
reuse the client when sending a notification
2025-04-30 17:40:17 -07:00
bf06c7ed3a
update custom keys passed through notification scheduler
2025-04-23 11:55:15 -07:00
b3cd399e10
fix custom keys so they're spread across payload correctly
2025-04-23 11:54:32 -07:00
12bdd4c631
add stop id, in case app wants to switch stops on notification tap
2025-04-22 11:17:10 -07:00
95f2e6ec29
add system id to the notification payload for good measure
2025-04-22 11:15:35 -07:00
1cb498b150
update custom keys to not be included in alert property
2025-04-22 11:10:00 -07:00
ba0375f582
add link to APNs documentation
2025-04-22 11:01:31 -07:00
44a0f56b93
add shuttleId as custom key in notification alert argument
2025-04-22 11:00:53 -07:00
2741d229f9
rename entities.ts to ShuttleRepositoryEntities.ts
2025-04-08 16:07:48 -07:00
ef94055133
add start and stop methods, move subscribe out of constructor
2025-03-31 19:17:41 -07:00
02b3b77a61
bind apple notification sender methods
2025-03-31 18:56:02 -07:00
f2a2dd74f6
listen to shuttle ETA updates in the scheduler constructor
2025-03-27 10:58:20 -07:00
bba00eb067
remove everything from the scheduler that's in the repository already
2025-03-27 10:30:12 -07:00
fb58414ba3
add notification repository as optional dependency
2025-03-27 10:20:25 -07:00
f007b72d94
add code for in-memory notification repository
2025-03-27 10:19:00 -07:00
7379840070
extract notification repository to interface
2025-03-27 10:06:42 -07:00
09be37cedb
move arguments and notification interfaces to notification repository file
2025-03-27 09:57:49 -07:00
fab99db755
rename existing repository to shuttle repository
2025-03-27 09:32:29 -07:00
3a85f3da8b
bind rest of notification scheduler methods to class
2025-03-27 09:28:47 -07:00
7199adf20e
play the default sound when the notification is sent
2025-03-25 16:21:19 -07:00
14a3738fba
add a public method to get the seconds threshold for a scheduled notification
2025-03-25 15:39:17 -07:00
fb49577cf6
add logic to send notification based on a provided threshold
2025-03-25 15:19:09 -07:00
1f8d4bfbd4
extract tuple.toString to variable
2025-03-25 15:11:47 -07:00
50636e5582
change set of device IDs to object of device IDs to seconds threshold
2025-03-25 15:09:32 -07:00
8874704acb
add optional secondsThreshold value
2025-03-25 14:55:34 -07:00
6251f0e247
move shouldSendNotifications property to the AppleNotificationSender
2025-03-24 10:02:30 -07:00
a6ceeb4dfb
add optional dependency inject for apple notification sender
2025-03-24 09:59:29 -07:00
23dc4c3f59
add getter for the last refreshed token time
2025-03-24 09:44:50 -07:00
9869632a88
change reloadAPNsTokenIfTimePassed method to public for testing
2025-03-24 09:42:41 -07:00
7f1bf005c1
integrate notification sender class into ETA notification scheduler
2025-03-24 09:39:07 -07:00
83766c90c5
add notification sending logic
2025-03-24 09:34:53 -07:00
a58780a37d
add apns token methods
2025-03-24 09:30:22 -07:00
619ef9a27f
update naming of classes and tests
2025-03-24 09:20:10 -07:00