summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2025-01-20Get the same notifications list for everyoneSanto Cariotti
2025-01-20Check tokens array lengthSanto Cariotti
This is much better than `.filter` because there's already a check on the SQL query
2025-01-20Filter only not-empty tokensSanto Cariotti
2025-01-17Sound as binary stringSanto Cariotti
2025-01-17Create folder for audiosSanto Cariotti
2024-12-21Show possible error on app creationSanto Cariotti
2024-11-29Set audio folderSanto Cariotti
2024-11-29Cache system to avoid duplicated alerts within 10 minsSanto Cariotti
2024-11-29Use Expo on the AppStateSanto Cariotti
This because since Rust 1.83 it is suggested to not use the static reference cloning
2024-10-28Catch errors from audio serverSanto Cariotti
2024-10-20Fix new position creation timeSanto Cariotti
2024-10-20Save notification's position infoSanto Cariotti
Since we save the last user's position only, we can't be able to link a notification to a position. So, the better thing is to save a redundant lat/lng
2024-10-18Filter positions by list of moving activitiesSanto Cariotti
2024-10-18Use only one position per userSanto Cariotti
2024-09-16Use `AppState` instead of `String` using some traitsSanto Cariotti
2024-09-16Use tracing rather than std(out|err)Santo Cariotti
2024-09-13Text-to-speach API for alert sound generationSanto Cariotti
2024-09-12Fix importSanto Cariotti
2024-09-12Each alert has text{1,2,3} for the three possible areaSanto Cariotti
Alert level is moved to the notification struct
2024-09-11doc: Show readme.md in main.rs fileSanto Cariotti
2024-09-10Fix polygon validationSanto Cariotti
2024-09-10Fix notification for alert with no position IDsSanto Cariotti
2024-09-10Remove `OnFoot` moving activitySanto Cariotti
2024-09-09Fix query to get positions for notificationsSanto Cariotti
2024-09-08Mutation for notification updateSanto Cariotti
2024-09-08Filter notifications by optional id and optional seenSanto Cariotti
2024-09-07Add `userEdit` and `userPasswordEdit` mutationsSanto Cariotti
2024-09-07FormattedSanto Cariotti
2024-09-07Use submodules mutations and query for typesSanto Cariotti
2024-09-05Fixs with clippySanto Cariotti
2024-09-05Send notifications by Expo APISanto Cariotti
2024-09-05Create notifications from a new alertSanto Cariotti
2024-09-05Keep a device token for the user notificationSanto Cariotti
2024-09-03Notification must be filtered by seen fieldSanto Cariotti
2024-09-03Add notification typeSanto Cariotti
2024-09-03Fix typoSanto Cariotti
2024-09-03Add user query used to find an user by idSanto Cariotti
2024-09-03Limit `users` query to admins onlySanto Cariotti
2024-09-03Add name and address fields for usersSanto Cariotti
2024-09-03Add examples on docSanto Cariotti
2024-09-01Add extended area field for alertsSanto Cariotti
2024-08-30Add filter for alert by idSanto Cariotti
2024-08-30Use timestamp for `created_at` fieldSanto Cariotti
2024-08-30Return user_id on JWT creationSanto Cariotti
2024-08-29Add CORSSanto Cariotti
2024-08-29Valid the polygon before the alert creationSanto Cariotti
2024-08-26Fix order of lat/lngSanto Cariotti
2024-08-26Add alertsSanto Cariotti
A payload for alert creation can be ``` { "query": "mutation NewAlert($input: AlertInput!) { newAlert(input: $input) { id createdAt level } }", "variables": { "input": { "points": [ { "latitude": 40.73061, "longitude": -73.935242 }, { "latitude": 40.741895, "longitude": -73.989308 }, { "latitude": 40.712776, "longitude": -74.005974 }, { "latitude": 40.73061, "longitude": -73.935242 }, ], "level": "TWO" } } } ```
2024-08-24Add new positionSanto Cariotti
``` curl -X POST http://localhost:8000/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer TOKEN" \ -d '{ "query": "mutation NewPosition($input: PositionInput!) { newPosition(input: $input) { id userId createdAt latitude longitude movingActivity } }", "variables": { "input": { "latitude": 44.502952, "longitude": 11.3114988, "movingActivity": "IN_VEHICLE" } } }' ```
2024-08-23Add `lastPositions` query with filter by `movingActivity` paramSanto Cariotti