leonnicolas
ad3ddf3218
src/dataSource/db/lendingStation.ts: add generalRemark
4 years ago
leonnicolas
8add40cd02
check activity status for engagements
...
when updating or creating engagements or participants dateRange of
particpant must include dateRange of engagement.
4 years ago
leonnicolas
6162758638
src/schema/*: cargoBike group required
4 years ago
leonnicolas
49bc8bdcfc
src/schema/*: explicit time for loanPeriod
...
instead of an array, all day of the week are listed and their type is
string for simplicity incase of several time frames in a day.
4 years ago
leonnicolas
48e6ed2be3
src/schema/*: fixed return type for unlock mutations
4 years ago
leonnicolas
5e6e796fe8
src/schema/*: use dateRange for engagement
4 years ago
leonnicolas
4e33ec2095
src/schema/*: remove mandatory for fields
4 years ago
leonnicolas
8dfa429e22
src/resolvers/*: use reg ex
4 years ago
leonnicolas
4a89b758de
src/dataSource/db/utils.ts: use template strings
4 years ago
leonnicolas
9f032ab0a1
src/datasource/db/utils.ts: code clean up
4 years ago
leonnicolas
f3acf1e3d8
src/datasources/db/utils.ts: clean up
...
clean some unused functions
4 years ago
leonnicolas
b0fc6cabe3
src/* : use numRange for box dimensions
...
instead of minBoxWidth, etc, use range type NumRange
4 years ago
leonnicolas
0754fd5f74
src/*: use type daterange for timeframes
...
Instead of to and from, no type dataRange is used.
Type DateRange still has to and from.
4 years ago
leonnicolas
321dc72123
src/model schema: added bike Status
4 years ago
leonnicolas
2c8a5ea6b7
src/model + src/schema: removed mandatory fields
4 years ago
leonnicolas
1edf15ca24
src/model/cargoBike.ts: fixed data type of bikeWidth
4 years ago
leonnicolas
d83533375f
src/dataSource/ds/utils.ts: corrected comment
4 years ago
leonnicolas
5011a29be8
src: use range for dimensionAndLoad
...
Changes in the schema:
insead of _boxWidth_ etc. min and maxBoxWidth is used
In the postgres db, this is saved as numrange.
4 years ago
leonnicolas
ca96923d3c
src/schema/*: added comment
4 years ago
leonnicolas
9d1ba30e46
src/*: update equipment/type with cargoBike update
...
Now it is possible to to update equipment and equipment type via the
mutations carogBikeUpdate and cargoBikeCreate.
4 years ago
leonnicolas
c193a63785
src/model*: unique fields
...
added unique contraines to some fields. For Example, name of CargoBike,
workshopType and the combination of name and firstName of Person.
4 years ago
leonnicolas
f80f619ed9
src/*: code refactor and comments
...
Some refactoring in the database utilitie functions.
4 years ago
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