You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.0 KiB
TypeScript
77 lines
2.0 KiB
TypeScript
function gql (strings: TemplateStringsArray) {
|
|
}
|
|
|
|
export const CREATE_CARGO_BIKE = gql`
|
|
mutation {
|
|
createCargoBike(
|
|
cargoBike: {
|
|
group: KL
|
|
name: "Test"
|
|
modelName: "cool"
|
|
numberOfWheels: 1
|
|
forCargo: true
|
|
forChildren: false
|
|
numberOfChildren: 2
|
|
technicalEquipment: {
|
|
bicycleShift: "shift"
|
|
isEBike: false
|
|
hasLightSystem:false
|
|
}
|
|
dimensionsAndLoad: {
|
|
hasCoverBox: true
|
|
lockable:false
|
|
boxLengthRange: {
|
|
min: 0,
|
|
}
|
|
boxWidthRange: {
|
|
min: 0.2
|
|
}
|
|
boxHeightRange: {
|
|
min: 0.3
|
|
}
|
|
maxWeightBox: 1.1
|
|
maxWeightLuggageRack: 1.2
|
|
maxWeightTotal: 1.3
|
|
bikeLength:2.1
|
|
}
|
|
security: {frameNumber: "bla"}
|
|
insuranceData: {name:"in"
|
|
benefactor: "ben"
|
|
billing: "bill"
|
|
noPnP: "noP"
|
|
|
|
maintenanceResponsible: "someone"
|
|
maintenanceBenefactor: "mben"
|
|
hasFixedRate: true}
|
|
taxes: {costCenter:"cost"}
|
|
}
|
|
) {
|
|
id
|
|
insuranceData{
|
|
maintenanceResponsible
|
|
}
|
|
equipmentType {
|
|
id
|
|
name
|
|
}
|
|
provider {
|
|
id
|
|
organisation{
|
|
id
|
|
}
|
|
}
|
|
lendingStation {
|
|
id
|
|
name
|
|
cargoBikes {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
export const GET_CARGO_BIKE = gql`{
|
|
cargoBikes(offset: 0, limit: 1) {
|
|
id
|
|
}
|
|
}`;
|