@ -21,27 +21,38 @@ import { gql } from 'apollo-server-express';
export default gql `
export default gql `
" tim estamp object YYYY-MM-ddThh:mm:ss.sssZ "
" da te object YYYY-MM-dd"
scalar Date
scalar Date
"timestamp object YYYY-MM-ddThh:mm:ss.sssZ"
scalar DateTime
"only time hh-mm-ss"
"only time hh-mm-ss"
scalar Time
scalar Time
"" "
is of american format [ - ] $ [ 0 - 9 ] + . [ 0 - 9 ] [ 0 - 9 ]
commas every three digits and . for decimals with 2 digits after the .
There can be a leading - .
There is a currency signe at the first position or second position if - is set .
The kind of currency depends on the database .
"" "
scalar Money
"The CargoBike type is central to the graph. You could call it the root."
"The CargoBike type is central to the graph. You could call it the root."
type CargoBike {
type CargoBike {
id : ID !
id : ID !
"see column A in info tabelle"
"see column A in info tabelle"
group : Group
group : Group !
name : String
name : String !
state : BikeState
modelName : String
modelName : String
numberOfWheels : Int
numberOfWheels : Int
forCargo : Boolean
forCargo : Boolean
forChildren : Boolean
forChildren : Boolean
numberOfChildren : Int !
numberOfChildren : Int
"" "
"" "
Safety is a custom type , that stores information about security features .
Safety is a custom type , that stores information about security features .
TODO : Should this be called Security ?
TODO : Should this be called Security ?
"" "
"" "
security : Security !
security : Security
"" "
"" "
Does not refer to an extra table in the database .
Does not refer to an extra table in the database .
"" "
"" "
@ -49,9 +60,11 @@ export default gql`
"" "
"" "
Does not refer to an extra table in the database .
Does not refer to an extra table in the database .
"" "
"" "
dimensionsAndLoad : DimensionsAndLoad !
dimensionsAndLoad : DimensionsAndLoad
"If offset or limit is not provided, both values are ignored"
bikeEvents ( offset : Int , limit : Int ) : [ BikeEvent ]
bikeEvents ( offset : Int , limit : Int ) : [ BikeEvent ]
equipment ( offset : Int ! , limit : Int ! ) : [ Equipment ]
"If offset or limit is not provided, both values are ignored"
equipment ( offset : Int , limit : Int ) : [ Equipment ]
"Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2"
"Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2"
equipmentType : [ EquipmentType ]
equipmentType : [ EquipmentType ]
"Sticker State"
"Sticker State"
@ -60,17 +73,27 @@ export default gql`
provider : Provider
provider : Provider
"all participants currently engaged with the cargoBike"
"all participants currently engaged with the cargoBike"
participants : [ Participant ]
participants : [ Participant ]
insuranceData : InsuranceData !
insuranceData : InsuranceData
lendingStation : LendingStation
lendingStation : LendingStation
taxes : Taxes
taxes : Taxes
currentEngagements : [ Engagement ]
currentEngagements : [ Engagement ]
engagement ( offset : Int ! , limit : Int ! ) : [ Engagement ]
"If offset or limit is not provided, both values are ignored"
engagement ( offset : Int , limit : Int ) : [ Engagement ]
timeFrames : [ TimeFrame ]
timeFrames : [ TimeFrame ]
isLocked : Boolean !
isLocked : Boolean !
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : DateTime
}
"" "
Status of the CargoBike . More fields will be added , or removed .
"" "
enum BikeState {
ACTIVE
INACTIVE
INPREPARATION
}
}
"" "
"" "
@ -80,42 +103,52 @@ export default gql`
"see column A in info tabelle"
"see column A in info tabelle"
group : Group !
group : Group !
name : String !
name : String !
modelName : String !
state : BikeState
numberOfWheels : Int !
modelName : String
forCargo : Boolean !
numberOfWheels : Int
forChildren : Boolean !
forCargo : Boolean
numberOfChildren : Int !
forChildren : Boolean
numberOfChildren : Int
"" "
"" "
Safety is a custom type , that stores information about security features .
Safety is a custom type , that stores information about security features .
TODO : Should this be called Security ?
"" "
"" "
security : SecurityCreateInput !
security : SecurityCreateInput
"" "
"" "
Does not refer to an extra table in the database .
Does not refer to an extra table in the database .
"" "
"" "
technicalEquipment : TechnicalEquipmentCreateInput !
technicalEquipment : TechnicalEquipmentCreateInput
"" "
"" "
Does not refer to an extra table in the database .
Does not refer to an extra table in the database .
"" "
"" "
dimensionsAndLoad : DimensionsAndLoadCreateInput !
dimensionsAndLoad : DimensionsAndLoadCreateInput
"Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2"
"" "
Refers to equipment that is not unique . See kommentierte info tabelle - > Fragen - > Frage 2
When set to null or [ ] , no relations will be added .
"" "
equipmentTypeIds : [ ID ]
equipmentTypeIds : [ ID ]
"" "
Refers to unique equipment
When set to null or [ ] , no relations will be added .
When specified id is in a relation with another bike , this relation will be deleted .
"" "
equipmentIds : [ ID ]
"Sticker State"
"Sticker State"
stickerBikeNameState : StickerBikeNameState
stickerBikeNameState : StickerBikeNameState
note : String
note : String
providerId : ID
providerId : ID
insuranceData : InsuranceDataCreateInput !
insuranceData : InsuranceDataCreateInput
taxes : TaxesCreateInput !
taxes : TaxesCreateInput
}
}
"" "
"" "
i f you want to add bike to a lending station , create a new timeFrame with to : Date = null
I f you want to add bike to a lending station , create a new timeFrame with to : Date = null
"" "
"" "
input CargoBikeUpdateInput {
input CargoBikeUpdateInput {
id : ID !
id : ID !
"see column A in info tabelle"
"see column A in info tabelle"
group : Group
group : Group
name : String
name : String
state : BikeState
modelName : String
modelName : String
numberOfWheels : Int
numberOfWheels : Int
forCargo : Boolean
forCargo : Boolean
@ -123,7 +156,6 @@ export default gql`
numberOfChildren : Int
numberOfChildren : Int
"" "
"" "
Safety is a custom type , that stores information about security features .
Safety is a custom type , that stores information about security features .
TODO : Should this be called Security ?
"" "
"" "
security : SecurityUpdateInput
security : SecurityUpdateInput
"" "
"" "
@ -136,9 +168,19 @@ export default gql`
dimensionsAndLoad : DimensionsAndLoadUpdateInput
dimensionsAndLoad : DimensionsAndLoadUpdateInput
"" "
"" "
Refers to equipment that is not unique . See kommentierte info tabelle - > Fragen - > Frage 2
Refers to equipment that is not unique . See kommentierte info tabelle - > Fragen - > Frage 2
If set , ols relations will be over written . Set [ ] to delete all
When set to null , field will be ignored .
When set to [ ] , all relations will be deleted .
Else all realtions will be deleted and the specified relations will be added .
"" "
"" "
equipmentTypeIds : [ ID ]
equipmentTypeIds : [ ID ]
"" "
Refers to unique equipment
When set to null , field will be ignored .
When set to [ ] , all relations will be deleted .
Else all realtions will be deleted and the specified relations will be added .
When specified id is in a relation with another bike , this relation will be deleted .
"" "
equipmentIds : [ ID ]
"Sticker State"
"Sticker State"
stickerBikeNameState : StickerBikeNameState
stickerBikeNameState : StickerBikeNameState
note : String
note : String
@ -153,15 +195,15 @@ export default gql`
"" "
"" "
Eventually , this field will become an enum or a separate data table and user can choose from a pool of insurance companies .
Eventually , this field will become an enum or a separate data table and user can choose from a pool of insurance companies .
"" "
"" "
name : String !
name : String
benefactor : String !
benefactor : String
billing : String !
billing : String
noPnP : String !
noPnP : String
"eg. Anbieter, flotte, eigenleistung"
"eg. Anbieter, flotte, eigenleistung"
maintenanceResponsible : String !
maintenanceResponsible : String
maintenanceBenefactor : String !
maintenanceBenefactor : String
maintenanceAgreement : String
maintenanceAgreement : String
hasFixedRate : Boolean !
hasFixedRate : Boolean
fixedRate : Float
fixedRate : Float
"" "
"" "
Projektzuschuss :
Projektzuschuss :
@ -171,7 +213,7 @@ export default gql`
There is a currency signe at the first position or second position if - is set .
There is a currency signe at the first position or second position if - is set .
The kind of currency depends on the database .
The kind of currency depends on the database .
"" "
"" "
projectAllowance : String
projectAllowance : Money
notes : String
notes : String
}
}
@ -179,15 +221,15 @@ export default gql`
"" "
"" "
Eventually , this field will become an enum or a separate data table and user can choose from a pool of insurance companies .
Eventually , this field will become an enum or a separate data table and user can choose from a pool of insurance companies .
"" "
"" "
name : String !
name : String
benefactor : String !
benefactor : String
billing : String !
billing : String
noPnP : String !
noPnP : String
"eg. Anbieter, flotte, eigenleistung"
"eg. Anbieter, flotte, eigenleistung"
maintenanceResponsible : String !
maintenanceResponsible : String
maintenanceBenefactor : String !
maintenanceBenefactor : String
maintenanceAgreement : String
maintenanceAgreement : String
hasFixedRate : Boolean !
hasFixedRate : Boolean
fixedRate : Float
fixedRate : Float
"" "
"" "
Projektzuschuss :
Projektzuschuss :
@ -197,7 +239,7 @@ export default gql`
You can pass a currency signe at the first position or second position of + or - is set .
You can pass a currency signe at the first position or second position of + or - is set .
The kind of currency depends on the database .
The kind of currency depends on the database .
"" "
"" "
projectAllowance : String
projectAllowance : Money
notes : String
notes : String
}
}
@ -223,37 +265,51 @@ export default gql`
You can pass a currency signe at the first position or second position of + or - is set .
You can pass a currency signe at the first position or second position of + or - is set .
The kind of currency depends on the database .
The kind of currency depends on the database .
"" "
"" "
projectAllowance : String
projectAllowance : Money
notes : String
notes : String
}
}
type NumRange {
min : Float
max : Float
}
"" "
If min or max is omitted , the omitted value will be the same as the other given value
So if you pass one as null , both values with be over written with null .
"" "
input NumRangeInput {
min : Float
max : Float
}
"How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table."
"How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table."
type DimensionsAndLoad {
type DimensionsAndLoad {
hasCoverBox : Boolean !
hasCoverBox : Boolean
"cover box can be locked"
"cover box can be locked"
lockable : Boolean !
lockable : Boolean
boxLength : Float !
boxLength Range: NumRange
boxWidth : Float !
boxWidth Range: NumRange
boxHeight : Float !
boxHeight Range: NumRange
maxWeightBox : Float !
maxWeightBox : Float
maxWeightLuggageRack : Float !
maxWeightLuggageRack : Float
maxWeightTotal : Float !
maxWeightTotal : Float
bikeLength : Float !
bikeLength : Float
bikeWidth : Float
bikeWidth : Float
bikeHeight : Float
bikeHeight : Float
bikeWeight : Float
bikeWeight : Float
}
}
input DimensionsAndLoadCreateInput {
input DimensionsAndLoadCreateInput {
hasCoverBox : Boolean !
hasCoverBox : Boolean
lockable : Boolean !
lockable : Boolean
boxLength : Float !
boxLength Range: NumRangeInput
boxWidth : Float !
boxWidth Range: NumRangeInput
boxHeight : Float !
boxHeight Range: NumRangeInput
maxWeightBox : Float !
maxWeightBox : Float
maxWeightLuggageRack : Float !
maxWeightLuggageRack : Float
maxWeightTotal : Float !
maxWeightTotal : Float
bikeLength : Float !
bikeLength : Float
bikeWidth : Float
bikeWidth : Float
bikeHeight : Float
bikeHeight : Float
bikeWeight : Float
bikeWeight : Float
@ -262,9 +318,9 @@ export default gql`
input DimensionsAndLoadUpdateInput {
input DimensionsAndLoadUpdateInput {
hasCoverBox : Boolean
hasCoverBox : Boolean
lockable : Boolean
lockable : Boolean
boxLength : Floa t
boxLength Range: NumRangeInpu t
boxWidth : Floa t
boxWidth Range: NumRangeInpu t
boxHeight : Floa t
boxHeight Range: NumRangeInpu t
maxWeightBox : Float
maxWeightBox : Float
maxWeightLuggageRack : Float
maxWeightLuggageRack : Float
maxWeightTotal : Float
maxWeightTotal : Float
@ -280,16 +336,16 @@ export default gql`
So no id needed for mutation . One Mutation for the CargoBike will be enough .
So no id needed for mutation . One Mutation for the CargoBike will be enough .
"" "
"" "
type TechnicalEquipment {
type TechnicalEquipment {
bicycleShift : String !
bicycleShift : String
isEBike : Boolean !
isEBike : Boolean
hasLightSystem : Boolean !
hasLightSystem : Boolean
specialFeatures : String
specialFeatures : String
}
}
input TechnicalEquipmentCreateInput {
input TechnicalEquipmentCreateInput {
bicycleShift : String !
bicycleShift : String
isEBike : Boolean !
isEBike : Boolean
hasLightSystem : Boolean !
hasLightSystem : Boolean
specialFeatures : String
specialFeatures : String
}
}
@ -306,7 +362,7 @@ export default gql`
So no id needed for mutation . One Mutation for the CargoBike will be enough .
So no id needed for mutation . One Mutation for the CargoBike will be enough .
"" "
"" "
type Security {
type Security {
frameNumber : String !
frameNumber : String
keyNumberFrameLock : String
keyNumberFrameLock : String
keyNumberAXAChain : String
keyNumberAXAChain : String
policeCoding : String
policeCoding : String
@ -314,7 +370,7 @@ export default gql`
}
}
input SecurityCreateInput {
input SecurityCreateInput {
frameNumber : String !
frameNumber : String
keyNumberFrameLock : String
keyNumberFrameLock : String
keyNumberAXAChain : String
keyNumberAXAChain : String
policeCoding : String
policeCoding : String
@ -354,8 +410,7 @@ export default gql`
"" "
"" "
type Participant {
type Participant {
id : ID !
id : ID !
start : Date !
dateRange : DateRange !
end : Date
contactInformation : ContactInformation !
contactInformation : ContactInformation !
usernamefLotte : String
usernamefLotte : String
usernameSlack : String
usernameSlack : String
@ -375,13 +430,12 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input ParticipantCreateInput {
input ParticipantCreateInput {
"if not set, CURRENT_DATE will be used"
"if not set, CURRENT_DATE will be used"
start : Date
dateRange : DateRangeInput !
end : Date
"must create contactinformation first, if you want to use new"
"must create contactinformation first, if you want to use new"
contactInformationId : ID !
contactInformationId : ID !
usernamefLotte : String
usernamefLotte : String
@ -396,9 +450,7 @@ export default gql`
input ParticipantUpdateInput {
input ParticipantUpdateInput {
id : ID !
id : ID !
"if not set, CURRENT_DATE will be used"
dateRange : DateRangeInput
start : Date
end : Date
"must create contactinformation first, if you want to use new"
"must create contactinformation first, if you want to use new"
contactInformationId : ID
contactInformationId : ID
usernamefLotte : String
usernamefLotte : String
@ -428,7 +480,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input WorkshopCreateInput {
input WorkshopCreateInput {
@ -458,7 +510,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input WorkshopTypeCreateInput {
input WorkshopTypeCreateInput {
@ -478,7 +530,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input EngagementTypeCreateInput {
input EngagementTypeCreateInput {
@ -496,43 +548,38 @@ export default gql`
type Engagement {
type Engagement {
id : ID !
id : ID !
engagementType : EngagementType !
engagementType : EngagementType !
from : Date !
dateRange : DateRange !
to : Date
participant : Participant !
participant : Participant !
cargoBike : CargoBike !
cargoBike : CargoBike !
isLocked : Boolean !
isLocked : Boolean !
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input EngagementCreateInput {
input EngagementCreateInput {
engagementTypeId : ID !
engagementTypeId : ID !
"will use CURRENT_DATE if not set"
dateRange : DateRangeInput !
from : Date
"will use infinit if not set"
to : Date
participantId : ID !
participantId : ID !
cargoBikeId : ID !
cargoBikeId : ID !
}
}
input EngagementUpdateInput {
input EngagementUpdateInput {
id : ID !
id : ID !
engagementTypeId : ID
engagementTypeId : ID
from : Date
dateRange : DateRangeInput
to : Date
participantId : ID
participantId : ID
cargoBikeId : ID
cargoBikeId : ID
keepLock : Boolean
keepLock : Boolean
}
}
type Taxes {
type Taxes {
costCenter : String !
costCenter : String
organisationArea : OrganisationArea
organisationArea : OrganisationArea
}
}
input TaxesCreateInput {
input TaxesCreateInput {
costCenter : String !
costCenter : String
organisationArea : OrganisationArea
organisationArea : OrganisationArea
}
}
@ -560,7 +607,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input EquipmentCreateInput {
input EquipmentCreateInput {
@ -592,11 +639,11 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input EquipmentTypeCreateInput {
input EquipmentTypeCreateInput {
name : String
name : String !
description : String
description : String
}
}
@ -607,7 +654,7 @@ export default gql`
keepLock : Boolean
keepLock : Boolean
}
}
"An Event is a point in time , when the state of the bike somehow changed ."
"An Event is a point in time concerning one cargo bike of an event type. For example a chain swap ."
type BikeEvent {
type BikeEvent {
id : ID !
id : ID !
bikeEventType : BikeEventType !
bikeEventType : BikeEventType !
@ -625,7 +672,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input BikeEventCreateInput {
input BikeEventCreateInput {
@ -663,7 +710,9 @@ export default gql`
name : String !
name : String !
isLockedByMe : Boolean !
isLockedByMe : Boolean !
isLocked : Boolean !
isLocked : Boolean !
lockedUntil : Date
"null if not locked by other user"
lockedBy : ID
lockedUntil : DateTime
}
}
input BikeEventTypeUpdateInput {
input BikeEventTypeUpdateInput {
@ -683,7 +732,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
"(dt. Anbieter)"
"(dt. Anbieter)"
@ -717,7 +766,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input PersonCreateInput {
input PersonCreateInput {
@ -744,7 +793,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input ContactInformationCreateInput {
input ContactInformationCreateInput {
@ -784,7 +833,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input OrganisationCreateInput {
input OrganisationCreateInput {
@ -828,7 +877,7 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
"" "
"" "
@ -862,13 +911,13 @@ export default gql`
"" "
"" "
type LoanPeriod {
type LoanPeriod {
generalRemark : String
generalRemark : String
"notes for each day of the week, starting on Monday"
mo : String
notes: [ String ]
tu: String
"" "
we : String
Loan times from and until for each day of the week .
th: String
Starting with Monday from , Monday to , Tuesday from , . . . , Sunday to
fr: String
"" "
sa : String
loanTimes: [ String ]
su: String
}
}
"" "
"" "
@ -876,22 +925,35 @@ export default gql`
"" "
"" "
input LoanPeriodInput {
input LoanPeriodInput {
generalRemark : String
generalRemark : String
"notes for each day of the week, starting on Monday"
mo : String
notes : [ String ! ]
tu : String
we : String
th : String
fr : String
sa : String
su : String
}
type DateRange {
from : Date !
"will be infinity of not omitted"
to : Date
}
input DateRangeInput {
"format YYYY-MM-dd"
from : Date !
"" "
"" "
Loan times from and until for each day of the week .
format YYYY - MM - dd
Starting with Monday from , Monday to , Tuesday from , . . . , Sunday to
will be infinity of not omitted
"" "
"" "
loanTimes : [ String ! ]
to: Date
}
}
"(dt. Zeitscheibe) When was a bike where"
"(dt. Zeitscheibe) When was a bike where"
type TimeFrame {
type TimeFrame {
id : ID !
id : ID !
"format YYYY-MM-dd"
dateRange : DateRange !
from : Date !
"format YYYY-MM-dd"
to : Date
note : String
note : String
lendingStation : LendingStation !
lendingStation : LendingStation !
cargoBike : CargoBike !
cargoBike : CargoBike !
@ -899,12 +961,11 @@ export default gql`
isLockedByMe : Boolean !
isLockedByMe : Boolean !
"null if not locked by other user"
"null if not locked by other user"
lockedBy : ID
lockedBy : ID
lockedUntil : Date
lockedUntil : Date Time
}
}
input TimeFrameCreateInput {
input TimeFrameCreateInput {
from : Date !
dateRange : DateRangeInput !
to : Date
note : String
note : String
lendingStationId : ID !
lendingStationId : ID !
cargoBikeId : ID !
cargoBikeId : ID !
@ -912,8 +973,7 @@ export default gql`
input TimeFrameUpdateInput {
input TimeFrameUpdateInput {
id : ID !
id : ID !
from : Date
dateRange : DateRangeInput
to : Date
note : String
note : String
lendingStationId : ID
lendingStationId : ID
cargoBikeId : ID
cargoBikeId : ID
@ -953,41 +1013,55 @@ export default gql`
type Query {
type Query {
"Will (eventually) return all properties of cargo bike"
"Will (eventually) return all properties of cargo bike"
cargoBikeById ( id :ID ! ) : CargoBike
cargoBikeById ( id :ID ! ) : CargoBike
" returns cargoBikes ordered by name ascending, relations are not loaded, use cargoBikeById instead "
" Returns cargoBikes ordered by name ascending. If offset or limit is not provided, both values are ignored. "
cargoBikes ( offset : Int ! , limit : Int ! ) : [ CargoBike ! ] !
cargoBikes ( offset : Int , limit : Int ) : [ CargoBike ! ] !
engagementById ( id : ID ! ) : Engagement
engagementById ( id : ID ! ) : Engagement
engagements ( offset : Int ! , limit : Int ! ) : [ Engagement ! ] !
"If offset or limit is not provided, both values are ignored"
engagements ( offset : Int , limit : Int ) : [ Engagement ! ] !
engagementTypeById ( id : ID ! ) : EngagementType
engagementTypeById ( id : ID ! ) : EngagementType
engagementTypes ( offset : Int ! , limit : Int ! ) : [ EngagementType ! ] !
"If offset or limit is not provided, both values are ignored"
engagementTypes ( offset : Int , limit : Int ) : [ EngagementType ! ] !
"equipment by id, will return null if id not found"
"equipment by id, will return null if id not found"
equipmentById ( id : ID ! ) : Equipment
equipmentById ( id : ID ! ) : Equipment
equipment ( offset : Int ! , limit : Int ! ) : [ Equipment ! ] !
"If offset or limit is not provided, both values are ignored"
equipment ( offset : Int , limit : Int ) : [ Equipment ! ] !
equipmentTypeById ( id : ID ! ) : EquipmentType
equipmentTypeById ( id : ID ! ) : EquipmentType
equipmentTypes ( offset : Int ! , limit : Int ! ) : [ EquipmentType ! ] !
"If offset or limit is not provided, both values are ignored"
equipmentTypes ( offset : Int , limit : Int ) : [ EquipmentType ! ] !
"return null if id not found"
"return null if id not found"
providerById ( id :ID ! ) : Provider
providerById ( id :ID ! ) : Provider
"Returns providers with pagination "
"Returns providers with pagination . If offset or limit is not provided, both values are ignored "
providers ( offset : Int ! , limit : Int ! ) : [ Provider ! ] !
providers ( offset : Int , limit : Int ) : [ Provider ! ] !
"participant by id"
"participant by id"
participantById ( id :ID ! ) : Participant
participantById ( id :ID ! ) : Participant
participants ( offset : Int ! , limit : Int ! ) : [ Participant ! ] !
"If offset or limit is not provided, both values are ignored"
participants ( offset : Int , limit : Int ) : [ Participant ! ] !
workshopTypeById ( id : ID ! ) : WorkshopType
workshopTypeById ( id : ID ! ) : WorkshopType
workshopTypes ( offset : Int ! , limit : Int ! ) : [ WorkshopType ! ] !
"If offset or limit is not provided, both values are ignored"
workshopTypes ( offset : Int , limit : Int ) : [ WorkshopType ! ] !
workshopById ( id : ID ! ) : Workshop
workshopById ( id : ID ! ) : Workshop
workshops ( offset : Int ! , limit : Int ! ) : [ Workshop ! ] !
"If offset or limit is not provided, both values are ignored"
workshops ( offset : Int , limit : Int ) : [ Workshop ! ] !
lendingStationById ( id :ID ! ) : LendingStation
lendingStationById ( id :ID ! ) : LendingStation
lendingStations ( offset : Int ! , limit : Int ! ) : [ LendingStation ! ] !
"If offset or limit is not provided, both values are ignored"
lendingStations ( offset : Int , limit : Int ) : [ LendingStation ! ] !
organisationById ( id : ID ! ) : Organisation
organisationById ( id : ID ! ) : Organisation
organisations ( offset : Int ! , limit : Int ! ) : [ Organisation ! ] !
"If offset or limit is not provided, both values are ignored"
organisations ( offset : Int , limit : Int ) : [ Organisation ! ] !
timeFrameById ( id : ID ! ) : TimeFrame
timeFrameById ( id : ID ! ) : TimeFrame
timeFrames ( offset : Int ! , limit : Int ! ) : [ TimeFrame ! ] !
"If offset or limit is not provided, both values are ignored"
timeFrames ( offset : Int , limit : Int ) : [ TimeFrame ! ] !
contactInformationById ( id : ID ! ) : ContactInformation
contactInformationById ( id : ID ! ) : ContactInformation
contactInformation ( offset : Int ! , limit : Int ! ) : [ ContactInformation ! ] !
"If offset or limit is not provided, both values are ignored"
contactInformation ( offset : Int , limit : Int ) : [ ContactInformation ! ] !
personById ( id : ID ! ) : Person
personById ( id : ID ! ) : Person
persons ( offset : Int ! , limit : Int ! ) : [ Person ! ]
"If offset or limit is not provided, both values are ignored"
bikeEventTypes ( offset : Int ! , limit : Int ! ) : [ BikeEventType ! ]
persons ( offset : Int , limit : Int ) : [ Person ! ]
"If offset or limit is not provided, both values are ignored"
bikeEventTypes ( offset : Int , limit : Int ) : [ BikeEventType ! ]
bikeEventTypeByd ( id : ID ! ) : BikeEventType
bikeEventTypeByd ( id : ID ! ) : BikeEventType
bikeEvents ( offset : Int ! , limit : Int ! ) : [ BikeEvent ! ] !
"If offset or limit is not provided, both values are ignored"
bikeEvents ( offset : Int , limit : Int ) : [ BikeEvent ! ] !
bikeEventById ( id :ID ! ) : BikeEvent
bikeEventById ( id :ID ! ) : BikeEvent
"actionLog for current user"
"actionLog for current user"
actionLog : [ ActionLog ! ]
actionLog : [ ActionLog ! ]
@ -1062,23 +1136,23 @@ export default gql`
"" "
"" "
createParticipant ( participant : ParticipantCreateInput ! ) : Participant !
createParticipant ( participant : ParticipantCreateInput ! ) : Participant !
lockParticipant ( id : ID ! ) : Participant !
lockParticipant ( id : ID ! ) : Participant !
unlockParticipant ( id : ID ! ) : Boolean
unlockParticipant ( id : ID ! ) : Participant
updateParticipant ( participant : ParticipantUpdateInput ! ) : Participant !
updateParticipant ( participant : ParticipantUpdateInput ! ) : Participant !
deleteParticipant ( id : ID ! ) : Boolean !
deleteParticipant ( id : ID ! ) : Boolean !
createWorkshopType ( workshopType : WorkshopTypeCreateInput ! ) : WorkshopType !
createWorkshopType ( workshopType : WorkshopTypeCreateInput ! ) : WorkshopType !
lockWorkshopType ( id : ID ! ) : WorkshopType !
lockWorkshopType ( id : ID ! ) : WorkshopType !
unlockWorkshopType ( id : ID ! ) : Boolean !
unlockWorkshopType ( id : ID ! ) : WorkshopType !
updateWorkshopType ( workshopType : WorkshopTypeUpdateInput ! ) : WorkshopType !
updateWorkshopType ( workshopType : WorkshopTypeUpdateInput ! ) : WorkshopType !
deleteWorkshopType ( id : ID ! ) : Boolean !
deleteWorkshopType ( id : ID ! ) : Boolean !
createWorkshop ( workshop : WorkshopCreateInput ! ) : Workshop !
createWorkshop ( workshop : WorkshopCreateInput ! ) : Workshop !
lockWorkshop ( id : ID ! ) : Workshop !
lockWorkshop ( id : ID ! ) : Workshop !
unlockWorkshop ( id : ID ! ) : Boolean !
unlockWorkshop ( id : ID ! ) : Workshop !
updateWorkshop ( workshop : WorkshopUpdateInput ! ) : Workshop !
updateWorkshop ( workshop : WorkshopUpdateInput ! ) : Workshop !
deleteWorkshop ( id : ID ! ) : Boolean !
deleteWorkshop ( id : ID ! ) : Boolean !
"create new contactInfo"
"create new contactInfo"
createContactInformation ( contactInformation : ContactInformationCreateInput ! ) : ContactInformation !
createContactInformation ( contactInformation : ContactInformationCreateInput ! ) : ContactInformation !
lockContactInformation ( id : ID ! ) : ContactInformation !
lockContactInformation ( id : ID ! ) : ContactInformation !
unlockContactInformation ( id : ID ! ) : Boolea n!
unlockContactInformation ( id : ID ! ) : ContactInformatio n!
updateContactInformation ( contactInformation : ContactInformationUpdateInput ! ) : ContactInformation !
updateContactInformation ( contactInformation : ContactInformationUpdateInput ! ) : ContactInformation !
deleteContactInformation ( id : ID ! ) : Boolean !
deleteContactInformation ( id : ID ! ) : Boolean !
createPerson ( person : PersonCreateInput ! ) : Person !
createPerson ( person : PersonCreateInput ! ) : Person !
@ -1089,22 +1163,22 @@ export default gql`
"create Engagement"
"create Engagement"
createEngagement ( engagement : EngagementCreateInput ) : Engagement !
createEngagement ( engagement : EngagementCreateInput ) : Engagement !
lockEngagement ( id : ID ! ) : Engagement !
lockEngagement ( id : ID ! ) : Engagement !
unlockEngagement ( id : ID ! ) : Boolean !
unlockEngagement ( id : ID ! ) : Engagement !
updateEngagement ( engagement : EngagementUpdateInput ! ) : Engagement !
updateEngagement ( engagement : EngagementUpdateInput ! ) : Engagement !
deleteEngagement ( id : ID ! ) : Boolean !
deleteEngagement ( id : ID ! ) : Boolean !
createEngagementType ( engagementType : EngagementTypeCreateInput ! ) : EngagementType !
createEngagementType ( engagementType : EngagementTypeCreateInput ! ) : EngagementType !
lockEngagementType ( id : ID ! ) : EngagementType !
lockEngagementType ( id : ID ! ) : EngagementType !
unlockEngagementType ( id : ID ! ) : Boolean !
unlockEngagementType ( id : ID ! ) : EngagementType !
updateEngagementType ( engagementType : EngagementTypeUpdateInput ! ) : EngagementType !
updateEngagementType ( engagementType : EngagementTypeUpdateInput ! ) : EngagementType !
deleteEngagementType ( id : ID ! ) : Boolean !
deleteEngagementType ( id : ID ! ) : Boolean !
createProvider ( provider : ProviderCreateInput ! ) : Provider !
createProvider ( provider : ProviderCreateInput ! ) : Provider !
lockProvider ( id : ID ! ) : Provider !
lockProvider ( id : ID ! ) : Provider !
unlockProvider ( id : ID ! ) : Boolean !
unlockProvider ( id : ID ! ) : Provider !
updateProvider ( provider : ProviderUpdateInput ! ) : Provider !
updateProvider ( provider : ProviderUpdateInput ! ) : Provider !
deleteProvider ( id : ID ! ) : Boolean !
deleteProvider ( id : ID ! ) : Boolean !
createOrganisation ( organisation : OrganisationCreateInput ! ) : Organisation !
createOrganisation ( organisation : OrganisationCreateInput ! ) : Organisation !
lockOrganisation ( id : ID ! ) : Organisation !
lockOrganisation ( id : ID ! ) : Organisation !
unlockOrganisation ( id : ID ! ) : Boolea n!
unlockOrganisation ( id : ID ! ) : Organisatio n!
updateOrganisation ( organisation : OrganisationUpdateInput ! ) : Organisation !
updateOrganisation ( organisation : OrganisationUpdateInput ! ) : Organisation !
deleteOrganisation ( id : ID ! ) : Boolean !
deleteOrganisation ( id : ID ! ) : Boolean !
}
}