leonnicolas
26aed28d8f
src/schema/*: updated comments
4 years ago
leonnicolas
c3fa25fa0d
src/*: dont requiere limit and offset on queries
...
On Queries like cargoBikes(offset: Int, limit: Int), offset and limit
does not need to be passed anymore. When either is not passed, both
values are ignored.
4 years ago
leonnicolas
bba78c5688
schema: added scalar type for project allowance
4 years ago
trivernis
123d8159da
Fix field names, comments and nullables
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
7cc46f053d
Fix graphql schema
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
leonnicolas
1b7a178f4e
src/schema/*: changed type of projectAllowance to string
4 years ago
leonnicolas
8c840319b6
LICENSE.md: added license and copy right notice
...
@trivernis : I put you in the copy right notice in the src/userserver/*
files.
4 years ago
leonnicolas
d31690ab58
src/resolvers: code clean up
4 years ago
leonnicolas
57e369528e
utils.ts: bugs
4 years ago
leonnicolas
85976704fb
bug: providerId in cargoBikeUpdate
4 years ago
leonnicolas
eb0d17a2ad
src/datasources/db/utils: return entity on unlockEntity
4 years ago
leonnicolas
47d71ea827
return locked entity on lockEntity and bug
4 years ago
leonnicolas
5a52f592cb
isLockedByMe
4 years ago
leonnicolas
5f19ddbb1b
index.ts: schema without token
...
Signed-off-by: leonnicolas <leonloechner@gmx.de>
4 years ago
leonnicolas
478b4b688d
index.ts: cors
4 years ago
leonnicolas
d281800251
cors allow all
4 years ago
leonnicolas
2e02920d75
bugs and clean up and retry when db connection failed
4 years ago
leonnicolas
0098d9b3bf
src: bug fix
4 years ago
leonnicolas
3d32d6bcff
src/datasources/db/cargobikeAPI.ts: bug fix
4 years ago
leonnicolas
f037d563b9
src/*: hard delete implemented and code clean up
4 years ago
leonnicolas
660e775de2
src/model/actionlogs.ts: added actions e.g. update, delete
4 years ago
leonnicolas
97ee273ae4
src/*/actionlog*.ts: implemented queries for action log
4 years ago
leonnicolas
98437cc33a
package.json: remove apollo-server dependancy, using apollo-server-express instead
4 years ago
leonnicolas
1b9030c85e
src/*: implemented update and action log on overwrites
4 years ago
leonnicolas
b593465bc3
use ids insteaf of objects
4 years ago
leonnicolas
626f0dc563
src/resolvers/*: check Permissions for each resolver
4 years ago
leonnicolas
d473d745b0
src/datasources/userserver/permission.ts: added new permissions
4 years ago
leonnicolas
813f41ec8e
finished all Queries
4 years ago
leonnicolas
595f66f3dc
new generic lock/unlock functions
4 years ago
leonnicolas
81a7870cbb
bikeevent, bikeeventype read and create
4 years ago
leonnicolas
77fd61194b
workshop, workshop types create and read
4 years ago
leonnicolas
c26e9b78af
datasource/*: code a little clean up
4 years ago
leonnicolas
a67c0ff659
datasource/*: code a little clean up
4 years ago
leonnicolas
45a7fa6ec7
Engagement, EngagementType: read and create
4 years ago
leonnicolas
7b48573eb3
Person, ContactInformation, participant: read and create
4 years ago
leonnicolas
9ba635d943
resolvers for Equipmentypes
4 years ago
leonnicolas
037cd06651
src/model/*: applied more changes from flotte
4 years ago
leonnicolas
e92d379a53
src/model/*: applied changes from flotte
4 years ago
leonnicolas
14b9d3445a
generic methods to lock and unlock Entities
4 years ago
leonnicolas
614f9a652c
removed cargoBike lendingStation relation and use timeFrame instead
4 years ago
leonnicolas
71024bc886
lendingStationAPI.ts: check timeframe overlapping
4 years ago
leonnicolas
b3877664b9
corrected some typos
4 years ago
leonnicolas
e1e2302a1a
resolver cargoBike.timeFramesimplemented
4 years ago
leonnicolas
71e737b1c6
TimeFrame.cargoBike/.lendingStation implemented
4 years ago
leonnicolas
85d8b07856
createTimeFrame implemented
4 years ago
leonnicolas
e1a90670f6
use transaktions for some updates
4 years ago
leonnicolas
80438de4fc
resolvers: contactPerson for lendingStation
4 years ago
leonnicolas
847e78768f
lockBike returns Bike or error, update bike takes keepLock
4 years ago
leonnicolas
cbec1866c4
isLocked in cargoBike
4 years ago
leonnicolas
159e91d5db
lock and unlock for cargoBike
4 years ago
leonnicolas
c8fe5332e5
fixed type adfcCoding
4 years ago
leonnicolas
feeaaa247b
fixed type ploceCod(e)ing
4 years ago
leonnicolas
6f951845cb
fixed ts error
4 years ago
leonnicolas
a73390877b
lock for cargoBike
4 years ago
leonnicolas
6087d3defa
lock for cargoBike
4 years ago
leonnicolas
70815fd9c7
type-defs.ts: bug fix
4 years ago
leonnicolas
c1484e7e77
type-defs.ts: bug fix
4 years ago
leonnicolas
e4a131db8d
.travis.yml: added travis file
4 years ago
leonnicolas
e03bac6f62
added contact* resolvers
4 years ago
leonnicolas
35144d6e73
added cargobike equipment resolvers
4 years ago
leonnicolas
1830107f2b
engagement and participant resolvers
4 years ago
leonnicolas
8f5d98c975
sr/model/* included suggested changes from fLotte
4 years ago
leonnicolas
297b5592e5
implemented bike lendingstation relation
4 years ago
leonnicolas
86eb74fd7f
implemented mutations and queries for equipment
4 years ago
leonnicolas
f87aa84e86
added some resolvers and paging on resolver cargobikes
4 years ago
leonnicolas
91a20704af
src/resolvers: added resolvers and lendingStationAPI
4 years ago
leonnicolas
0c2436ba0d
src/resolvers/* added cargobike and lendingstations resolvers
4 years ago
leonnicolas
cfa0e14f8e
src/model/*: added Workshop and Engagement.
4 years ago
leonnicolas
91e0c8f9e9
src/datasources/db/cargoBikeAPI: added updateCargoBike
4 years ago
leonnicolas
b923aa4c88
src/schema/*: modified mutation and mutation responses
4 years ago
leonnicolas
0bc8934560
src/resolvers/*: startet first resolver
4 years ago
leonnicolas
2499cc526f
src/index.ts: added entities to postgres connection
4 years ago
leonnicolas
ebf51eaa07
Merge branch 'main' into dev-entities
4 years ago
leonnicolas
7bcf3c3c46
src/model/*: finished rough design of entities
4 years ago
leonnicolas
c06bb1d1f1
src/model/*: added insuranceData and participants
4 years ago
leonnicolas
be7c1a0d39
src/model/*: added some orm entities
4 years ago
trivernis
449b6bd9ac
Fix database entity settings
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
13578d8c9b
Switch to environment variables for database url
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
leonnicolas
c8ad2badc2
src/datasource/userservice/userserviceAPI.ts: fix eslint error
4 years ago
trivernis
49e29259bd
Change semi rule to enforce semicolons
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
910e120baf
Bypass role handling in development mode
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
fcbd65d53b
Add createRole method to userServiceAPI
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
96916b0fd1
Add permission management
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
b61dfa8810
Switch to apollo-server-express to enable middleware for authentication
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
d475851bb3
Add RPC Client implementation
...
- Add Message class to serialize and deserialize rpc messages
- Add Method enum for all rpc methods represented as 32 bit unsigned integers
- Add responses file to map rpc responses to types
- Add implementation of userserver api with PromiseSocket
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
leonnicolas
dc36ad431a
type-defs.ts: added types and queries
4 years ago
leonnicolas
85e1d95631
type-des: first test mutation
4 years ago
leonnicolas
bb96724bcd
typeorm: connected to postgres with typeorm
4 years ago
leonnicolas
fd5c293c41
.eslintrc.json: added eslint file
4 years ago
leonnicolas
fa323d414f
gulpfile.js: migrated form tslint to eslint.
4 years ago
leonnicolas
9aa94a33ce
src: added skeleton
4 years ago
leonnicolas
706f11ac41
gulpfile.js: only use gulp and gulp-nodemon (instead of nodemon) for watching file changes
4 years ago
leonnicolas
8711aa3b38
initial commit
4 years ago