|
|
|
@ -56,7 +56,7 @@ export default gql`
|
|
|
|
|
"""
|
|
|
|
|
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]
|
|
|
|
|
"If offset or limit is not provided, both values are ignored"
|
|
|
|
@ -69,7 +69,7 @@ export default gql`
|
|
|
|
|
provider: Provider
|
|
|
|
|
"all participants currently engaged with the cargoBike"
|
|
|
|
|
participants: [Participant]
|
|
|
|
|
insuranceData: InsuranceData!
|
|
|
|
|
insuranceData: InsuranceData
|
|
|
|
|
lendingStation: LendingStation
|
|
|
|
|
taxes: Taxes
|
|
|
|
|
currentEngagements: [Engagement]
|
|
|
|
@ -102,11 +102,11 @@ export default gql`
|
|
|
|
|
"""
|
|
|
|
|
Does not refer to an extra table in the database.
|
|
|
|
|
"""
|
|
|
|
|
technicalEquipment: TechnicalEquipmentCreateInput!
|
|
|
|
|
technicalEquipment: TechnicalEquipmentCreateInput
|
|
|
|
|
"""
|
|
|
|
|
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
|
|
|
|
|
When set to null or [], no relations will be added.
|
|
|
|
@ -122,8 +122,8 @@ export default gql`
|
|
|
|
|
stickerBikeNameState: StickerBikeNameState
|
|
|
|
|
note: String
|
|
|
|
|
providerId: ID
|
|
|
|
|
insuranceData: InsuranceDataCreateInput!
|
|
|
|
|
taxes: TaxesCreateInput!
|
|
|
|
|
insuranceData: InsuranceDataCreateInput
|
|
|
|
|
taxes: TaxesCreateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
@ -180,15 +180,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.
|
|
|
|
|
"""
|
|
|
|
|
name: String!
|
|
|
|
|
benefactor: String!
|
|
|
|
|
billing: String!
|
|
|
|
|
noPnP: String!
|
|
|
|
|
name: String
|
|
|
|
|
benefactor: String
|
|
|
|
|
billing: String
|
|
|
|
|
noPnP: String
|
|
|
|
|
"eg. Anbieter, flotte, eigenleistung"
|
|
|
|
|
maintenanceResponsible: String!
|
|
|
|
|
maintenanceBenefactor: String!
|
|
|
|
|
maintenanceResponsible: String
|
|
|
|
|
maintenanceBenefactor: String
|
|
|
|
|
maintenanceAgreement: String
|
|
|
|
|
hasFixedRate: Boolean!
|
|
|
|
|
hasFixedRate: Boolean
|
|
|
|
|
fixedRate: Float
|
|
|
|
|
"""
|
|
|
|
|
Projektzuschuss:
|
|
|
|
@ -206,15 +206,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.
|
|
|
|
|
"""
|
|
|
|
|
name: String!
|
|
|
|
|
benefactor: String!
|
|
|
|
|
billing: String!
|
|
|
|
|
noPnP: String!
|
|
|
|
|
name: String
|
|
|
|
|
benefactor: String
|
|
|
|
|
billing: String
|
|
|
|
|
noPnP: String
|
|
|
|
|
"eg. Anbieter, flotte, eigenleistung"
|
|
|
|
|
maintenanceResponsible: String!
|
|
|
|
|
maintenanceBenefactor: String!
|
|
|
|
|
maintenanceResponsible: String
|
|
|
|
|
maintenanceBenefactor: String
|
|
|
|
|
maintenanceAgreement: String
|
|
|
|
|
hasFixedRate: Boolean!
|
|
|
|
|
hasFixedRate: Boolean
|
|
|
|
|
fixedRate: Float
|
|
|
|
|
"""
|
|
|
|
|
Projektzuschuss:
|
|
|
|
@ -256,9 +256,9 @@ export default gql`
|
|
|
|
|
|
|
|
|
|
"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 {
|
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
|
hasCoverBox: Boolean
|
|
|
|
|
"cover box can be locked"
|
|
|
|
|
lockable: Boolean!
|
|
|
|
|
lockable: Boolean
|
|
|
|
|
minBoxLength: Float
|
|
|
|
|
maxBoxLength: Float
|
|
|
|
|
minBoxWidth: Float
|
|
|
|
@ -275,8 +275,8 @@ export default gql`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input DimensionsAndLoadCreateInput {
|
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
|
lockable: Boolean!
|
|
|
|
|
hasCoverBox: Boolean
|
|
|
|
|
lockable: Boolean
|
|
|
|
|
minBoxLength: Float
|
|
|
|
|
maxBoxLength: Float
|
|
|
|
|
minBoxWidth: Float
|
|
|
|
@ -316,16 +316,16 @@ export default gql`
|
|
|
|
|
So no id needed for mutation. One Mutation for the CargoBike will be enough.
|
|
|
|
|
"""
|
|
|
|
|
type TechnicalEquipment {
|
|
|
|
|
bicycleShift: String!
|
|
|
|
|
isEBike: Boolean!
|
|
|
|
|
hasLightSystem: Boolean!
|
|
|
|
|
bicycleShift: String
|
|
|
|
|
isEBike: Boolean
|
|
|
|
|
hasLightSystem: Boolean
|
|
|
|
|
specialFeatures: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input TechnicalEquipmentCreateInput {
|
|
|
|
|
bicycleShift: String!
|
|
|
|
|
isEBike: Boolean!
|
|
|
|
|
hasLightSystem: Boolean!
|
|
|
|
|
bicycleShift: String
|
|
|
|
|
isEBike: Boolean
|
|
|
|
|
hasLightSystem: Boolean
|
|
|
|
|
specialFeatures: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -563,12 +563,12 @@ export default gql`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Taxes {
|
|
|
|
|
costCenter: String!
|
|
|
|
|
costCenter: String
|
|
|
|
|
organisationArea: OrganisationArea
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input TaxesCreateInput {
|
|
|
|
|
costCenter: String!
|
|
|
|
|
costCenter: String
|
|
|
|
|
organisationArea: OrganisationArea
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -643,7 +643,7 @@ export default gql`
|
|
|
|
|
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 {
|
|
|
|
|
id: ID!
|
|
|
|
|
bikeEventType: BikeEventType!
|
|
|
|
|