summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Show possible error on app creationSanto Cariotti2024-12-213-21/+24
|
* Set audio folderSanto Cariotti2024-11-292-2/+6
|
* Cache system to avoid duplicated alerts within 10 minsSanto Cariotti2024-11-291-0/+35
|
* Use Expo on the AppStateSanto Cariotti2024-11-295-18/+34
| | | | | This because since Rust 1.83 it is suggested to not use the static reference cloning
* Catch errors from audio serverSanto Cariotti2024-10-281-2/+9
|
* Fix new position creation timeSanto Cariotti2024-10-201-1/+2
|
* Save notification's position infoSanto Cariotti2024-10-203-96/+93
| | | | | 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
* Filter positions by list of moving activitiesSanto Cariotti2024-10-182-22/+52
|
* Use only one position per userSanto Cariotti2024-10-182-131/+89
|
* Use `AppState` instead of `String` using some traitsSanto Cariotti2024-09-169-132/+151
|
* Use tracing rather than std(out|err)Santo Cariotti2024-09-163-5/+5
|
* Text-to-speach API for alert sound generationSanto Cariotti2024-09-134-1/+132
|
* Fix importSanto Cariotti2024-09-121-4/+1
|
* Each alert has text{1,2,3} for the three possible areaSanto Cariotti2024-09-124-192/+256
| | | | Alert level is moved to the notification struct
* doc: Show readme.md in main.rs fileSanto Cariotti2024-09-111-0/+1
|
* Fix polygon validationSanto Cariotti2024-09-101-1/+9
|
* Fix notification for alert with no position IDsSanto Cariotti2024-09-101-24/+28
|
* Remove `OnFoot` moving activitySanto Cariotti2024-09-101-5/+0
|
* Fix query to get positions for notificationsSanto Cariotti2024-09-091-6/+11
|
* Mutation for notification updateSanto Cariotti2024-09-082-1/+134
|
* Filter notifications by optional id and optional seenSanto Cariotti2024-09-082-13/+28
|
* Add `userEdit` and `userPasswordEdit` mutationsSanto Cariotti2024-09-072-0/+148
|
* FormattedSanto Cariotti2024-09-072-2/+2
|
* Use submodules mutations and query for typesSanto Cariotti2024-09-077-538/+599
|
* Fixs with clippySanto Cariotti2024-09-054-6/+10
|
* Send notifications by Expo APISanto Cariotti2024-09-054-2/+70
|
* Create notifications from a new alertSanto Cariotti2024-09-052-68/+97
|
* Keep a device token for the user notificationSanto Cariotti2024-09-052-9/+66
|
* Notification must be filtered by seen fieldSanto Cariotti2024-09-032-13/+17
|
* Add notification typeSanto Cariotti2024-09-033-0/+157
|
* Fix typoSanto Cariotti2024-09-031-2/+2
|
* Add user query used to find an user by idSanto Cariotti2024-09-032-1/+74
|
* Limit `users` query to admins onlySanto Cariotti2024-09-031-1/+9
|
* Add name and address fields for usersSanto Cariotti2024-09-032-3/+17
|
* Add examples on docSanto Cariotti2024-09-032-0/+85
|
* Add extended area field for alertsSanto Cariotti2024-09-012-18/+72
|
* Add filter for alert by idSanto Cariotti2024-08-302-4/+19
|
* Use timestamp for `created_at` fieldSanto Cariotti2024-08-305-58/+17
|
* Return user_id on JWT creationSanto Cariotti2024-08-302-2/+5
|
* Add CORSSanto Cariotti2024-08-291-2/+10
|
* Valid the polygon before the alert creationSanto Cariotti2024-08-292-6/+36
|
* Fix order of lat/lngSanto Cariotti2024-08-261-2/+2
|
* Add alertsSanto Cariotti2024-08-265-30/+206
| | | | | | | | | | | | | | | | | | | | | 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" } } } ```
* Add new positionSanto Cariotti2024-08-242-3/+68
| | | | | | | | | | | | | | | | | | ``` 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" } } }' ```
* Add `lastPositions` query with filter by `movingActivity` paramSanto Cariotti2024-08-232-0/+75
|
* Add docSanto Cariotti2024-08-238-0/+35
|
* Filter positions by user idSanto Cariotti2024-08-233-12/+70
|
* Add field `moving activity`Santo Cariotti2024-08-221-2/+69
| | | | Following https://developers.google.com/android/reference/com/google/android/gms/location/DetectedActivity
* Add position type and query on itSanto Cariotti2024-08-226-2/+123
|
* Add paginationSanto Cariotti2024-08-222-4/+16
| | | | Query is `users(limit: X offset Y)` with defaults X=20 Y=0