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