@ -33,12 +33,14 @@ export default gql`
The kind of currency depends on the database .
The kind of currency depends on the database .
"" "
"" "
scalar Money
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
@ -56,7 +58,7 @@ 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"
"If offset or limit is not provided, both values are ignored"
bikeEvents ( offset : Int , limit : Int ) : [ BikeEvent ]
bikeEvents ( offset : Int , limit : Int ) : [ BikeEvent ]
"If offset or limit is not provided, both values are ignored"
"If offset or limit is not provided, both values are ignored"
@ -69,7 +71,7 @@ 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 ]
@ -83,6 +85,15 @@ export default gql`
lockedUntil : Date
lockedUntil : Date
}
}
"" "
Status of the CargoBike . More fields will be added , or removed .
"" "
enum BikeState {
ACTIVE
INACTIVE
INPREPARATION
}
"" "
"" "
if you want to add bike to a lending station , create a new timeFrame with to : Date = null
if you want to add bike to a lending station , create a new timeFrame with to : Date = null
"" "
"" "
@ -90,6 +101,7 @@ export default gql`
"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 !
@ -102,11 +114,11 @@ export default gql`
"" "
"" "
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 .
When set to null or [ ] , no relations will be added .
@ -122,8 +134,8 @@ export default gql`
stickerBikeNameState : StickerBikeNameState
stickerBikeNameState : StickerBikeNameState
note : String
note : String
providerId : ID
providerId : ID
insuranceData : InsuranceDataCreateInput !
insuranceData : InsuranceDataCreateInput
taxes : TaxesCreateInput !
taxes : TaxesCreateInput
}
}
"" "
"" "
@ -134,6 +146,7 @@ export default gql`
"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
@ -180,15 +193,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 :
@ -206,15 +219,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 :
@ -254,17 +267,28 @@ export default gql`
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
minBoxLength : Float
boxLengthRange : NumRange
maxBoxLength : Float
boxWidthRange : NumRange
minBoxWidth : Float
boxHeightRange : NumRange
maxBoxWidth : Float
minBoxHeight : Float
maxBoxHeight : Float
maxWeightBox : Float
maxWeightBox : Float
maxWeightLuggageRack : Float
maxWeightLuggageRack : Float
maxWeightTotal : Float
maxWeightTotal : Float
@ -275,14 +299,11 @@ export default gql`
}
}
input DimensionsAndLoadCreateInput {
input DimensionsAndLoadCreateInput {
hasCoverBox : Boolean !
hasCoverBox : Boolean
lockable : Boolean !
lockable : Boolean
minBoxLength : Float
boxLengthRange : NumRangeInput
maxBoxLength : Float
boxWidthRange : NumRangeInput
minBoxWidth : Float
boxHeightRange : NumRangeInput
maxBoxWidth : Float
minBoxHeight : Float
maxBoxHeight : Float
maxWeightBox : Float
maxWeightBox : Float
maxWeightLuggageRack : Float
maxWeightLuggageRack : Float
maxWeightTotal : Float
maxWeightTotal : Float
@ -295,12 +316,9 @@ export default gql`
input DimensionsAndLoadUpdateInput {
input DimensionsAndLoadUpdateInput {
hasCoverBox : Boolean
hasCoverBox : Boolean
lockable : Boolean
lockable : Boolean
minBoxLength : Float
boxLengthRange : NumRangeInput
maxBoxLength : Float
boxWidthRange : NumRangeInput
minBoxWidth : Float
boxHeightRange : NumRangeInput
maxBoxWidth : Float
minBoxHeight : Float
maxBoxHeight : Float
maxWeightBox : Float
maxWeightBox : Float
maxWeightLuggageRack : Float
maxWeightLuggageRack : Float
maxWeightTotal : Float
maxWeightTotal : Float
@ -316,16 +334,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
}
}
@ -563,12 +581,12 @@ export default gql`
}
}
type Taxes {
type Taxes {
costCenter : String !
costCenter : String
organisationArea : OrganisationArea
organisationArea : OrganisationArea
}
}
input TaxesCreateInput {
input TaxesCreateInput {
costCenter : String !
costCenter : String
organisationArea : OrganisationArea
organisationArea : OrganisationArea
}
}
@ -643,7 +661,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 !
@ -923,13 +941,26 @@ export default gql`
loanTimes : [ String ! ]
loanTimes : [ String ! ]
}
}
"(dt. Zeitscheibe) When was a bike where"
type DateRange {
type TimeFrame {
id : ID !
"format YYYY-MM-dd"
from : Date !
from : Date !
"will be infinity of not omitted"
to : Date
}
input DateRangeInput {
"format YYYY-MM-dd"
"format YYYY-MM-dd"
from : Date !
"" "
format YYYY - MM - dd
will be infinity of not omitted
"" "
to : Date
to : Date
}
"(dt. Zeitscheibe) When was a bike where"
type TimeFrame {
id : ID !
dateRange : DateRange !
note : String
note : String
lendingStation : LendingStation !
lendingStation : LendingStation !
cargoBike : CargoBike !
cargoBike : CargoBike !
@ -941,8 +972,7 @@ export default gql`
}
}
input TimeFrameCreateInput {
input TimeFrameCreateInput {
from : Date !
dateRange : DateRangeInput !
to : Date
note : String
note : String
lendingStationId : ID !
lendingStationId : ID !
cargoBikeId : ID !
cargoBikeId : ID !
@ -950,8 +980,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