|
|
|
@ -15,7 +15,6 @@ type CargoBike {
|
|
|
|
|
forCargo: Boolean
|
|
|
|
|
forChildren: Boolean
|
|
|
|
|
numberOfChildren: Int
|
|
|
|
|
serialNo: String
|
|
|
|
|
"""
|
|
|
|
|
Safety is a custom type, that stores information about security features.
|
|
|
|
|
TODO: Should this be calles Security?
|
|
|
|
@ -32,7 +31,7 @@ type CargoBike {
|
|
|
|
|
events: [BikeEvent]
|
|
|
|
|
equipment: [Equipment]
|
|
|
|
|
"Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2"
|
|
|
|
|
otherEquipment: String
|
|
|
|
|
otherEquipment: [String]
|
|
|
|
|
chainSwaps: [ChainSwap]
|
|
|
|
|
"Sticker State"
|
|
|
|
|
stickerBikeNameState: StickerBikeNameState
|
|
|
|
@ -181,18 +180,32 @@ enum BikeEventType {
|
|
|
|
|
WARTUNG
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"How are the dimensions and how much weight can handle a bike."
|
|
|
|
|
"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 {
|
|
|
|
|
id: ID!
|
|
|
|
|
hasCoverBox: Boolean
|
|
|
|
|
lockable: Boolean
|
|
|
|
|
boxLenght: Float
|
|
|
|
|
boxWidth: Float
|
|
|
|
|
boxHeight: Float
|
|
|
|
|
maxWeightBox: Float
|
|
|
|
|
maxWeightLuggageRack: Float
|
|
|
|
|
maxWeightTotal: Float
|
|
|
|
|
bikeLength: Float
|
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
|
lockable: Boolean!
|
|
|
|
|
boxLenght: Float!
|
|
|
|
|
boxWidth: Float!
|
|
|
|
|
boxHeight: Float!
|
|
|
|
|
maxWeightBox: Float!
|
|
|
|
|
maxWeightLuggageRack: Float!
|
|
|
|
|
maxWeightTotal: Float!
|
|
|
|
|
bikeLength: Float!
|
|
|
|
|
bikeWidth: Float
|
|
|
|
|
bikeHeight: Float
|
|
|
|
|
bikeWeight: Float
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input DimensionsAndLoadInput {
|
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
|
lockable: Boolean!
|
|
|
|
|
boxLenght: Float!
|
|
|
|
|
boxWidth: Float!
|
|
|
|
|
boxHeight: Float!
|
|
|
|
|
maxWeightBox: Float!
|
|
|
|
|
maxWeightLuggageRack: Float!
|
|
|
|
|
maxWeightTotal: Float!
|
|
|
|
|
bikeLength: Float!
|
|
|
|
|
bikeWidth: Float
|
|
|
|
|
bikeHeight: Float
|
|
|
|
|
bikeWeight: Float
|
|
|
|
@ -210,13 +223,20 @@ type TechnicalEquipment {
|
|
|
|
|
specialFeatures: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input TechnicalEquipmentInput {
|
|
|
|
|
bicycleShift: String
|
|
|
|
|
isEBike: Boolean
|
|
|
|
|
hasLightingSystem: Boolean
|
|
|
|
|
specialFeatures: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
The Security Info about the bike.
|
|
|
|
|
his should be 1-1 Relation with the CargoBike.
|
|
|
|
|
So no id needed for mutation. One Mutation for the CargoBike will be enough.
|
|
|
|
|
"""
|
|
|
|
|
type Security {
|
|
|
|
|
frameNumber: String
|
|
|
|
|
frameNumber: String!
|
|
|
|
|
keyNumberFrameLock: String
|
|
|
|
|
keyNumberAXAChain: String
|
|
|
|
|
policeCoding: String
|
|
|
|
@ -319,62 +339,70 @@ type Address {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Query {
|
|
|
|
|
CargobikeById(id:ID!): CargoBike
|
|
|
|
|
Cargobikes(token:String!): [CargoBike]!
|
|
|
|
|
CargobikesByProvider(token:String!,providerId:ID!): [CargoBike]!
|
|
|
|
|
ProviderById(token:String!,id:ID!): Provider
|
|
|
|
|
Providers(token:String!): [Provider]!
|
|
|
|
|
ParticipantById(token:String!,id:ID!): Participant
|
|
|
|
|
Participants(token:String!): [ Participant]!
|
|
|
|
|
lendingStationById(token:String!, id:ID!): LendingStation
|
|
|
|
|
lendingStations(token:String!): [LendingStation]!
|
|
|
|
|
contactInformation(token:String!): [ContactInformation]!
|
|
|
|
|
cargobikeById(id:ID!): CargoBike
|
|
|
|
|
cargobikes: [CargoBike]!
|
|
|
|
|
cargobikesByProvider(providerId:ID!): [CargoBike]!
|
|
|
|
|
providerById(id:ID!): Provider
|
|
|
|
|
providers: [Provider]!
|
|
|
|
|
participantById(id:ID!): Participant
|
|
|
|
|
participants: [ Participant]!
|
|
|
|
|
lendingStationById(id:ID!): LendingStation
|
|
|
|
|
lendingStations: [LendingStation]!
|
|
|
|
|
contactInformation: [ContactInformation]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UpdateBikeResponse {
|
|
|
|
|
success: Boolean
|
|
|
|
|
success: Boolean!
|
|
|
|
|
message: String
|
|
|
|
|
bike: CargoBike
|
|
|
|
|
cargoBike: CargoBike
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input CargoBikeInput {
|
|
|
|
|
"if null, then new bike will be created, else old bike will be updated"
|
|
|
|
|
"if null, then new bike will be created, else old bike will be updated."
|
|
|
|
|
id: ID
|
|
|
|
|
"see column A in info tabelle"
|
|
|
|
|
group: Group
|
|
|
|
|
name: String
|
|
|
|
|
modelName: String
|
|
|
|
|
numberOfWheels: Int
|
|
|
|
|
forCargo: Boolean
|
|
|
|
|
forChildren: Boolean
|
|
|
|
|
numberOfChildren: Int
|
|
|
|
|
serialno: String
|
|
|
|
|
group: Group!
|
|
|
|
|
name: String!
|
|
|
|
|
modelName: String!
|
|
|
|
|
numberOfWheels: Int!
|
|
|
|
|
forCargo: Boolean!
|
|
|
|
|
forChildren: Boolean!
|
|
|
|
|
numberOfChildren: Int!
|
|
|
|
|
"""
|
|
|
|
|
Safety is a custom type, that stores information about security features.
|
|
|
|
|
TODO: Should this be calles Security?
|
|
|
|
|
"""
|
|
|
|
|
security: String
|
|
|
|
|
security: SecurityInput
|
|
|
|
|
"""
|
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
|
"""
|
|
|
|
|
technicalEquipment: String
|
|
|
|
|
technicalEquipment: TechnicalEquipmentInput
|
|
|
|
|
"""
|
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
|
"""
|
|
|
|
|
dimensionsAndLoad: String
|
|
|
|
|
dimensionsAndLoad: DimensionsAndLoadInput
|
|
|
|
|
"Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2"
|
|
|
|
|
otherEquipment: String
|
|
|
|
|
otherEquipment: [String]
|
|
|
|
|
"Sticker State"
|
|
|
|
|
stickerBikeNameState: String
|
|
|
|
|
stickerBikeNameState: StickerBikeNameState
|
|
|
|
|
note: String
|
|
|
|
|
provider: String
|
|
|
|
|
insuranceData: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input SecurityInput {
|
|
|
|
|
frameNumber: String!
|
|
|
|
|
keyNumberFrameLock: String
|
|
|
|
|
keyNumberAXAChain: String
|
|
|
|
|
policeCoding: String
|
|
|
|
|
adfcCoding: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
|
"for testing"
|
|
|
|
|
addBike(id: ID!, name: String): UpdateBikeResponse!
|
|
|
|
|
"if id: null, then new bike will be created, else old bike will be updated"
|
|
|
|
|
cargoBike(cargoBike: CargoBikeInput): UpdateBikeResponse!
|
|
|
|
|
cargoBike(cargoBike: CargoBikeInput!): UpdateBikeResponse!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`;
|
|
|
|
|