|
|
@ -14,12 +14,12 @@ type CargoBike {
|
|
|
|
numberOfWheels: Int
|
|
|
|
numberOfWheels: Int
|
|
|
|
forCargo: Boolean
|
|
|
|
forCargo: Boolean
|
|
|
|
forChildren: Boolean
|
|
|
|
forChildren: Boolean
|
|
|
|
numberOfChildren: Int
|
|
|
|
numberOfChildren: Int!
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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: Security
|
|
|
|
security: Security!
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -56,7 +56,26 @@ type InsuranceData {
|
|
|
|
noPnP: String!
|
|
|
|
noPnP: String!
|
|
|
|
"eg. Anbieter, flotte, eigenleistung"
|
|
|
|
"eg. Anbieter, flotte, eigenleistung"
|
|
|
|
maintananceResponsible: String!
|
|
|
|
maintananceResponsible: String!
|
|
|
|
maintanceBenefector: String!
|
|
|
|
maintananceBenefactor: String!
|
|
|
|
|
|
|
|
maintananceAgreement: String
|
|
|
|
|
|
|
|
hasFixedRate: Boolean!
|
|
|
|
|
|
|
|
fixedRate: Float
|
|
|
|
|
|
|
|
"Projektzuschuss"
|
|
|
|
|
|
|
|
projectAllowance: Float
|
|
|
|
|
|
|
|
notes: String
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input InsuranceDataInput {
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies.
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
name: String!
|
|
|
|
|
|
|
|
benefactor: String!
|
|
|
|
|
|
|
|
billing: String!
|
|
|
|
|
|
|
|
noPnP: String!
|
|
|
|
|
|
|
|
"eg. Anbieter, flotte, eigenleistung"
|
|
|
|
|
|
|
|
maintananceResponsible: String!
|
|
|
|
|
|
|
|
maintananceBenefactor: String!
|
|
|
|
maintananceAgreement: String
|
|
|
|
maintananceAgreement: String
|
|
|
|
hasFixedRate: Boolean!
|
|
|
|
hasFixedRate: Boolean!
|
|
|
|
fixedRate: Float
|
|
|
|
fixedRate: Float
|
|
|
@ -121,7 +140,12 @@ type Participant {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Taxes {
|
|
|
|
type Taxes {
|
|
|
|
costCenter: String
|
|
|
|
costCenter: String!
|
|
|
|
|
|
|
|
organizationArea: OrganizationArea
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input TaxesInput {
|
|
|
|
|
|
|
|
costCenter: String!
|
|
|
|
organizationArea: OrganizationArea
|
|
|
|
organizationArea: OrganizationArea
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -184,7 +208,7 @@ enum BikeEventType {
|
|
|
|
type DimensionsAndLoad {
|
|
|
|
type DimensionsAndLoad {
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
lockable: Boolean!
|
|
|
|
lockable: Boolean!
|
|
|
|
boxLenght: Float!
|
|
|
|
boxLength: Float!
|
|
|
|
boxWidth: Float!
|
|
|
|
boxWidth: Float!
|
|
|
|
boxHeight: Float!
|
|
|
|
boxHeight: Float!
|
|
|
|
maxWeightBox: Float!
|
|
|
|
maxWeightBox: Float!
|
|
|
@ -199,7 +223,7 @@ type DimensionsAndLoad {
|
|
|
|
input DimensionsAndLoadInput {
|
|
|
|
input DimensionsAndLoadInput {
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
hasCoverBox: Boolean!
|
|
|
|
lockable: Boolean!
|
|
|
|
lockable: Boolean!
|
|
|
|
boxLenght: Float!
|
|
|
|
boxLength: Float!
|
|
|
|
boxWidth: Float!
|
|
|
|
boxWidth: Float!
|
|
|
|
boxHeight: Float!
|
|
|
|
boxHeight: Float!
|
|
|
|
maxWeightBox: Float!
|
|
|
|
maxWeightBox: Float!
|
|
|
@ -217,16 +241,16 @@ This 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 TechnicalEquipment {
|
|
|
|
type TechnicalEquipment {
|
|
|
|
bicycleShift: String
|
|
|
|
bicycleShift: String!
|
|
|
|
isEBike: Boolean
|
|
|
|
isEBike: Boolean!
|
|
|
|
hasLightingSystem: Boolean
|
|
|
|
hasLightSystem: Boolean!
|
|
|
|
specialFeatures: String
|
|
|
|
specialFeatures: String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input TechnicalEquipmentInput {
|
|
|
|
input TechnicalEquipmentInput {
|
|
|
|
bicycleShift: String
|
|
|
|
bicycleShift: String!
|
|
|
|
isEBike: Boolean
|
|
|
|
isEBike: Boolean!
|
|
|
|
hasLightingSystem: Boolean
|
|
|
|
hasLightSystem: Boolean!
|
|
|
|
specialFeatures: String
|
|
|
|
specialFeatures: String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -351,12 +375,6 @@ type Query {
|
|
|
|
contactInformation: [ContactInformation]!
|
|
|
|
contactInformation: [ContactInformation]!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type UpdateBikeResponse {
|
|
|
|
|
|
|
|
success: Boolean!
|
|
|
|
|
|
|
|
message: String
|
|
|
|
|
|
|
|
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
|
|
|
@ -372,22 +390,25 @@ input CargoBikeInput {
|
|
|
|
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: SecurityInput
|
|
|
|
security: SecurityInput!
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
technicalEquipment: TechnicalEquipmentInput
|
|
|
|
technicalEquipment: TechnicalEquipmentInput!
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
Does not refere to an extra table in the database.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
dimensionsAndLoad: DimensionsAndLoadInput
|
|
|
|
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: StickerBikeNameState
|
|
|
|
stickerBikeNameState: StickerBikeNameState
|
|
|
|
note: String
|
|
|
|
note: String
|
|
|
|
provider: String
|
|
|
|
provider: String
|
|
|
|
insuranceData: String
|
|
|
|
insuranceData: InsuranceDataInput!
|
|
|
|
|
|
|
|
taxes: TaxesInput
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input SecurityInput {
|
|
|
|
input SecurityInput {
|
|
|
@ -400,9 +421,9 @@ input SecurityInput {
|
|
|
|
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
type Mutation {
|
|
|
|
"for testing"
|
|
|
|
"for testing"
|
|
|
|
addBike(id: ID!, name: String): UpdateBikeResponse!
|
|
|
|
addBike(id: ID!, name: String): CargoBike!
|
|
|
|
"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!): CargoBike!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|