ee7b5eefda
Rename query interface for historical data
2025-07-19 13:14:39 -04:00
182587596c
Change properties to match GraphQL input and query result
2025-07-19 12:15:41 -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
86710657df
Use TLS in production
2025-07-03 16:30:12 -04:00
d1b60772d8
Update RedisParkingRepository.ts to use Redis aggregation functions
2025-07-03 16:00:57 -04:00
f406e3e01d
Add retention period for new time series
2025-07-03 15:53:06 -04:00
b9d5f7b3df
Refactor parking repositories to use dedicated Constants file and smaller functions
2025-07-03 15:19:57 -04:00
53632fe470
Add BaseRedisRepository as parent class of RedisNotificationRepository.ts and RedisParkingRepository.ts
2025-07-02 20:00:44 -04:00
19336ce6ec
Add setLoggingInterval method and implementation for tests and other purposes.
...
Let users control the logging interval of both parking repositories.
2025-07-02 19:48:16 -04:00
868a9f3b1d
Add RedisParkingRepository.ts and convert existing tests to shared tests for both classes
2025-07-02 19:40:45 -04:00
ca2a66509b
Implement getHistoricalAveragesOfParkingStructureCounts for InMemoryParkingRepository.ts, and add tests
2025-07-02 19:10:16 -04:00
2b04ca01a9
Update InMemoryParkingRepository.ts and tests to use the circular queue
2025-07-02 18:48:33 -04:00
4758d566da
Add constant MAX_NUM_ENTRIES and adjust PARKING_LOGGING_INTERVAL_MS
2025-07-01 21:47:15 -04:00
8fb296027d
Fix remaining issues with tests, and add implementation within InMemoryParkingRepository.ts
2025-07-01 21:37:26 -04:00
6759bba2ce
Add properties to determine when the parking repository should log data
2025-07-01 21:23:15 -04:00
81272e94b1
Add getHistoricalAveragesOfParkingStructureCounts stub and update constructor with dependency injection support
2025-07-01 21:20:11 -04:00
1f252ee468
Define new method to get historical averages depending on timestamps and interval
2025-07-01 21:13:55 -04:00
461b1d1a59
implement class
2025-04-08 16:47:41 -07:00
e5c4387cff
add stub methods for repo
2025-04-08 16:39:23 -07:00
922fd7abb8
add repository methods
2025-04-08 16:37:36 -07:00
e5b686f0be
fix import errors
2025-04-08 16:30:43 -07:00
2741d229f9
rename entities.ts to ShuttleRepositoryEntities.ts
2025-04-08 16:07:48 -07:00
4f855a8225
update implementation of repository to get all entities
2025-04-07 19:18:30 -07:00
b6f3e4ccde
update method signatures to not include system id
2025-04-07 19:17:14 -07:00
0076d987ca
rename methods in getter repository
2025-04-07 19:06:18 -07:00
4f7d24acf0
add TODO to be resolved before merge
2025-04-07 13:57:14 -07:00
940d172e87
rename ISystem to IPassioSystem
2025-04-06 10:50:51 -07:00
6d762ce620
remove all system related data from shuttle repository
2025-04-06 10:49:47 -07:00
a144657fa8
update remove implementation and tests
2025-04-06 09:55:23 -07:00
695fec1fce
rename update method and update return types
2025-04-06 09:51:13 -07:00
7e0c1f3539
rename get system method on shuttle repository, update tests
2025-04-06 09:48:55 -07:00
d76740e5e7
add tls config
2025-03-31 23:37:28 -07:00
50148cc2f4
implement RedisNotificationRepository
2025-03-31 20:26:26 -07:00
39066b88bc
have teardown clear all data in redis before starting next test
2025-03-31 20:21:09 -07:00
36359a4caa
add export and getter to check connection status
2025-03-31 19:42:47 -07:00
cc6623404c
add connect/disconnect methods
2025-03-31 19:37:19 -07:00
c98367f12e
add bindings and redis client arg for constructor
2025-03-31 19:35:38 -07:00
1acd12d113
add stub methods for redis notification repository
2025-03-31 19:30:42 -07:00
75a4e133ed
fix failing test for notification deletion
2025-03-27 11:40:32 -07:00
9c22e154be
add bindings for the notifications repository
2025-03-27 11:34:01 -07:00
a84cedd05a
add test and implementation for addOrUpdate listeners
2025-03-27 11:23:07 -07:00
51d66d8886
add tests and implementation for notification deletes
2025-03-27 11:18:43 -07:00
b0f04a9256
add stub methods for subscribe/unsubscribe
2025-03-27 11:10:49 -07:00
b2fb430a38
add notification event subscriber/unsubscriber
2025-03-27 11:08:40 -07:00
a665c29745
add method to check if notification is scheduled
2025-03-27 10:46:38 -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
c517d93e3a
add test cases and rename some methods
2025-03-27 10:02:13 -07:00
09be37cedb
move arguments and notification interfaces to notification repository file
2025-03-27 09:57:49 -07:00