summaryrefslogtreecommitdiffstats
path: root/src/graphql/types
Commit message (Collapse)AuthorAgeFilesLines
* Check max(id) is uselessSanto Cariotti2025-02-171-5/+1
| | | | Remove condition on SQL query since we have only one position per user
* Fix when alert's reached users is nullSanto Cariotti2025-02-031-12/+14
|
* Show notifications list for alertsSanto Cariotti2025-02-032-68/+124
|
* Get the same notifications list for everyoneSanto Cariotti2025-01-201-22/+10
|
* Check tokens array lengthSanto Cariotti2025-01-201-13/+14
| | | | | This is much better than `.filter` because there's already a check on the SQL query
* Filter only not-empty tokensSanto Cariotti2025-01-201-0/+1
|
* Sound as binary stringSanto Cariotti2025-01-172-42/+68
|
* Show possible error on app creationSanto Cariotti2024-12-211-1/+1
|
* Cache system to avoid duplicated alerts within 10 minsSanto Cariotti2024-11-291-0/+35
|
* Use Expo on the AppStateSanto Cariotti2024-11-291-0/+1
| | | | | This because since Rust 1.83 it is suggested to not use the static reference cloning
* Fix new position creation timeSanto Cariotti2024-10-201-1/+2
|
* Save notification's position infoSanto Cariotti2024-10-202-91/+91
| | | | | 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-181-21/+51
|
* Use only one position per userSanto Cariotti2024-10-181-108/+84
|
* Use `AppState` instead of `String` using some traitsSanto Cariotti2024-09-165-107/+93
|
* Use tracing rather than std(out|err)Santo Cariotti2024-09-162-4/+4
|
* Text-to-speach API for alert sound generationSanto Cariotti2024-09-131-0/+40
|
* Fix importSanto Cariotti2024-09-121-4/+1
|
* Each alert has text{1,2,3} for the three possible areaSanto Cariotti2024-09-122-188/+245
| | | | Alert level is moved to the notification struct
* 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-081-1/+108
|
* Filter notifications by optional id and optional seenSanto Cariotti2024-09-081-11/+25
|
* Add `userEdit` and `userPasswordEdit` mutationsSanto Cariotti2024-09-071-0/+93
|
* FormattedSanto Cariotti2024-09-071-1/+1
|
* Use submodules mutations and query for typesSanto Cariotti2024-09-075-301/+583
|
* Fixs with clippySanto Cariotti2024-09-053-5/+9
|
* Create notifications from a new alertSanto Cariotti2024-09-051-0/+26
|
* Keep a device token for the user notificationSanto Cariotti2024-09-051-8/+21
|
* Notification must be filtered by seen fieldSanto Cariotti2024-09-031-11/+14
|
* Add notification typeSanto Cariotti2024-09-032-0/+136
|
* Fix typoSanto Cariotti2024-09-031-2/+2
|
* Add user query used to find an user by idSanto Cariotti2024-09-031-0/+56
|
* Limit `users` query to admins onlySanto Cariotti2024-09-031-1/+9
|
* Add name and address fields for usersSanto Cariotti2024-09-031-2/+16
|
* Add extended area field for alertsSanto Cariotti2024-09-011-15/+49
|
* Add filter for alert by idSanto Cariotti2024-08-301-3/+17
|
* Use timestamp for `created_at` fieldSanto Cariotti2024-08-302-15/+13
|
* Return user_id on JWT creationSanto Cariotti2024-08-301-1/+4
|
* Valid the polygon before the alert creationSanto Cariotti2024-08-291-0/+5
|
* Add alertsSanto Cariotti2024-08-263-29/+128
| | | | | | | | | | | | | | | | | | | | | 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-241-1/+9
| | | | | | | | | | | | | | | | | | ``` 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-231-0/+63
|
* Add docSanto Cariotti2024-08-232-0/+16
|
* Filter positions by user idSanto Cariotti2024-08-232-11/+68
|
* 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-223-1/+76
|
* Add paginationSanto Cariotti2024-08-221-2/+9
| | | | Query is `users(limit: X offset Y)` with defaults X=20 Y=0