|
|
@ -41,8 +41,10 @@ type CargoBike {
|
|
|
|
coordinator: Participant
|
|
|
|
coordinator: Participant
|
|
|
|
insuranceData: InsuranceData!
|
|
|
|
insuranceData: InsuranceData!
|
|
|
|
lendingstation: LendingStation
|
|
|
|
lendingstation: LendingStation
|
|
|
|
|
|
|
|
taxes: Taxes
|
|
|
|
"null if not locked by other user"
|
|
|
|
"null if not locked by other user"
|
|
|
|
lockedBy: ID
|
|
|
|
lockedBy: ID
|
|
|
|
|
|
|
|
lockedUntil: Date
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type InsuranceData {
|
|
|
|
type InsuranceData {
|
|
|
@ -82,7 +84,7 @@ Even bikes of the same model can have different properties.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
type BikeModel {
|
|
|
|
type BikeModel {
|
|
|
|
id: ID!
|
|
|
|
id: ID!
|
|
|
|
name: String
|
|
|
|
name: String!
|
|
|
|
dimensionsAndLoad: DimensionsAndLoad!
|
|
|
|
dimensionsAndLoad: DimensionsAndLoad!
|
|
|
|
technicalEquipment: TechnicalEquipment!
|
|
|
|
technicalEquipment: TechnicalEquipment!
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -147,7 +149,7 @@ type Equipment {
|
|
|
|
id: ID!
|
|
|
|
id: ID!
|
|
|
|
serialNo: String!
|
|
|
|
serialNo: String!
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
TODO unclear what this means
|
|
|
|
TODO unclear what this means. tomy fragen
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
investable: Boolean
|
|
|
|
investable: Boolean
|
|
|
|
name: String
|
|
|
|
name: String
|
|
|
@ -156,10 +158,8 @@ type Equipment {
|
|
|
|
"An Event is a point in time, when the state of the bike somehow changed."
|
|
|
|
"An Event is a point in time, when the state of the bike somehow changed."
|
|
|
|
type BikeEvent {
|
|
|
|
type BikeEvent {
|
|
|
|
id: ID!
|
|
|
|
id: ID!
|
|
|
|
type: BikeEventType
|
|
|
|
eventType: BikeEventType
|
|
|
|
"""
|
|
|
|
date: Date!
|
|
|
|
TODO: An Event should have a date field (Leon).
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
note: String
|
|
|
|
note: String
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Path to documents
|
|
|
|
Path to documents
|
|
|
@ -238,9 +238,7 @@ type Provider {
|
|
|
|
name: String!
|
|
|
|
name: String!
|
|
|
|
formularName: String
|
|
|
|
formularName: String
|
|
|
|
address: Address
|
|
|
|
address: Address
|
|
|
|
"If Club, at what court registered"
|
|
|
|
|
|
|
|
registeredAt: String
|
|
|
|
|
|
|
|
registerNumber: String
|
|
|
|
|
|
|
|
providerContactPerson: [ContactInformation]
|
|
|
|
providerContactPerson: [ContactInformation]
|
|
|
|
isPrivatePerson: Boolean!
|
|
|
|
isPrivatePerson: Boolean!
|
|
|
|
organisation: Organisation
|
|
|
|
organisation: Organisation
|
|
|
@ -266,15 +264,19 @@ type ContactInformation {
|
|
|
|
type Organisation{
|
|
|
|
type Organisation{
|
|
|
|
id: ID!
|
|
|
|
id: ID!
|
|
|
|
"(dt. Ausleihstation)"
|
|
|
|
"(dt. Ausleihstation)"
|
|
|
|
lendinglocation: [LendingStation]
|
|
|
|
lendingStations: [LendingStation]
|
|
|
|
"registration number of association"
|
|
|
|
"registration number of association"
|
|
|
|
associationNo: String
|
|
|
|
associationNo: String
|
|
|
|
|
|
|
|
"If Club, at what court registered"
|
|
|
|
|
|
|
|
registeredAt: String
|
|
|
|
|
|
|
|
provider: Provider
|
|
|
|
otherdata: String
|
|
|
|
otherdata: String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
"(dt. Standort)"
|
|
|
|
"(dt. Standort)"
|
|
|
|
type LendingStation {
|
|
|
|
type LendingStation {
|
|
|
|
id: ID!
|
|
|
|
id: ID!
|
|
|
|
|
|
|
|
name: String!
|
|
|
|
contactInformation: [ContactInformation]!
|
|
|
|
contactInformation: [ContactInformation]!
|
|
|
|
address: Address
|
|
|
|
address: Address
|
|
|
|
loanTimes: LoanTimes
|
|
|
|
loanTimes: LoanTimes
|
|
|
@ -322,8 +324,8 @@ type Query {
|
|
|
|
CargobikesByProvider(token:String!,providerId:ID!): [CargoBike]!
|
|
|
|
CargobikesByProvider(token:String!,providerId:ID!): [CargoBike]!
|
|
|
|
ProviderById(token:String!,id:ID!): Provider
|
|
|
|
ProviderById(token:String!,id:ID!): Provider
|
|
|
|
Providers(token:String!): [Provider]!
|
|
|
|
Providers(token:String!): [Provider]!
|
|
|
|
ParticipantById(token:String!,id:ID!): Participant
|
|
|
|
ParticipantById(token:String!,id:ID!): Participant
|
|
|
|
Participants(token:String!): [ Participant]!
|
|
|
|
Participants(token:String!): [ Participant]!
|
|
|
|
lendingStationById(token:String!, id:ID!): LendingStation
|
|
|
|
lendingStationById(token:String!, id:ID!): LendingStation
|
|
|
|
lendingStations(token:String!): [LendingStation]!
|
|
|
|
lendingStations(token:String!): [LendingStation]!
|
|
|
|
contactInformation(token:String!): [ContactInformation]!
|
|
|
|
contactInformation(token:String!): [ContactInformation]!
|
|
|
|