summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Authentication for endpointsSanto Cariotti2024-08-217-33/+84
|
* Add loginSanto Cariotti2024-08-216-7/+128
| | | | | | | | | | | | | | | | Fields sent are ``` { "query": "mutation Login($input: LoginCredentials!) { login(input: $input) { accessToken tokenType } }", "variables": { "input": { "email": "....", "password": "..." } } } ```
* Reformat types modSanto Cariotti2024-08-214-50/+56
|
* Add usersSanto Cariotti2024-08-213-23/+51
| | | | Query must be something like '{users { id, email, password, isAdmin }}'
* Reformat graphql modSanto Cariotti2024-08-214-15/+16
|
* Add state for databaseSanto Cariotti2024-08-205-26/+70
|
* InitSanto Cariotti2024-08-206-0/+237