From 9e9a4d75887b9316497bcd8177fcfdddc2b05ffe Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Tue, 10 Nov 2020 10:01:06 +0100 Subject: [PATCH] Add locking --- apollo.config.js | 2 +- codegen.yml | 2 +- graphql.schema.json | 8621 +++++++++++++---- src/app/app.module.ts | 3 + src/app/graphql.module.ts | 13 + src/app/graphqlOperations/bike.graphql | 12 + .../fragments/bikeFragment.graphql | 6 +- .../pages/tables/bikes/bikes.component.html | 69 +- .../pages/tables/bikes/bikes.component.scss | 3 + src/app/pages/tables/bikes/bikes.component.ts | 62 +- src/app/services/bikes.service.ts | 66 +- src/generated/graphql.ts | 1755 +++- 12 files changed, 8310 insertions(+), 2304 deletions(-) diff --git a/apollo.config.js b/apollo.config.js index 8c2a69e..8cacc39 100644 --- a/apollo.config.js +++ b/apollo.config.js @@ -3,7 +3,7 @@ module.exports = { excludes: ['src/generated/*'], // ignore the generated files service: { name: "flotte_project", - url: "http://localhost:4000/graphql" + url: "http://173.212.197.169:4000/graphql" } } }; \ No newline at end of file diff --git a/codegen.yml b/codegen.yml index 8747eef..e5aa669 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,6 +1,6 @@ overwrite: true watch: true -schema: "http://localhost:4000/graphql" +schema: "http://173.212.197.169:4002/graphql" documents: "src/app/graphqlOperations/**/*.graphql" generates: src/generated/graphql.ts: diff --git a/graphql.schema.json b/graphql.schema.json index 2106cfc..a1455c4 100644 --- a/graphql.schema.json +++ b/graphql.schema.json @@ -12,7 +12,17 @@ { "kind": "SCALAR", "name": "Date", - "description": null, + "description": "timestamp object YYYY-MM-ddThh:mm:ss.sssZ", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Time", + "description": "only time hh-mm-ss", "fields": null, "inputFields": null, "interfaces": null, @@ -130,7 +140,7 @@ }, { "name": "security", - "description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be calles Security?", + "description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be called Security?", "args": [], "type": { "kind": "NON_NULL", @@ -146,7 +156,7 @@ }, { "name": "technicalEquipment", - "description": "Does not refere to an extra table in the database.", + "description": "Does not refer to an extra table in the database.", "args": [], "type": { "kind": "OBJECT", @@ -158,7 +168,7 @@ }, { "name": "dimensionsAndLoad", - "description": "Does not refere to an extra table in the database.", + "description": "Does not refer to an extra table in the database.", "args": [], "type": { "kind": "NON_NULL", @@ -175,7 +185,28 @@ { "name": "bikeEvents", "description": null, - "args": [], + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], "type": { "kind": "LIST", "name": null, @@ -234,15 +265,15 @@ "deprecationReason": null }, { - "name": "miscellaneousEquipment", + "name": "equipmentType", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", "args": [], "type": { "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "EquipmentType", "ofType": null } }, @@ -286,13 +317,17 @@ "deprecationReason": null }, { - "name": "coordinator", - "description": null, + "name": "participants", + "description": "all participants currently engaged with the cargoBike", "args": [], "type": { - "kind": "OBJECT", - "name": "Participant", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -337,6 +372,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "currentEngagements", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Engagement", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "engagement", "description": null, @@ -382,6 +433,54 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "timeFrames", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "lockedBy", "description": "null if not locked by other user", @@ -455,7 +554,7 @@ { "kind": "INPUT_OBJECT", "name": "CargoBikeCreateInput", - "description": null, + "description": "if you want to add bike to a lending station, create a new timeFrame with to: Date = null", "fields": null, "inputFields": [ { @@ -558,7 +657,7 @@ }, { "name": "security", - "description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be calles Security?", + "description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be called Security?", "type": { "kind": "NON_NULL", "name": null, @@ -572,7 +671,7 @@ }, { "name": "technicalEquipment", - "description": "Does not refere to an extra table in the database.", + "description": "Does not refer to an extra table in the database.", "type": { "kind": "NON_NULL", "name": null, @@ -586,7 +685,7 @@ }, { "name": "dimensionsAndLoad", - "description": "Does not refere to an extra table in the database.", + "description": "Does not refer to an extra table in the database.", "type": { "kind": "NON_NULL", "name": null, @@ -599,14 +698,14 @@ "defaultValue": null }, { - "name": "miscellaneousEquipment", + "name": "equipmentTypeIds", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, @@ -633,11 +732,11 @@ "defaultValue": null }, { - "name": "provider", + "name": "providerId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null @@ -678,7 +777,7 @@ { "kind": "INPUT_OBJECT", "name": "CargoBikeUpdateInput", - "description": null, + "description": "if you want to add bike to a lending station, create a new timeFrame with to: Date = null", "fields": null, "inputFields": [ { @@ -767,7 +866,7 @@ }, { "name": "security", - "description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be calles Security?", + "description": "Safety is a custom type, that stores information about security features.\nTODO: Should this be called Security?", "type": { "kind": "INPUT_OBJECT", "name": "SecurityUpdateInput", @@ -777,7 +876,7 @@ }, { "name": "technicalEquipment", - "description": "Does not refere to an extra table in the database.", + "description": "Does not refer to an extra table in the database.", "type": { "kind": "INPUT_OBJECT", "name": "TechnicalEquipmentUpdateInput", @@ -787,7 +886,7 @@ }, { "name": "dimensionsAndLoad", - "description": "Does not refere to an extra table in the database.", + "description": "Does not refer to an extra table in the database.", "type": { "kind": "INPUT_OBJECT", "name": "DimensionsAndLoadUpdateInput", @@ -796,29 +895,19 @@ "defaultValue": null }, { - "name": "miscellaneousEquipment", - "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", + "name": "equipmentTypeIds", + "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2\nIf set, ols realtions will be over written. Set [] to delete all", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, "defaultValue": null }, - { - "name": "lendingStationId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null - }, { "name": "stickerBikeNameState", "description": "Sticker State", @@ -868,6 +957,16 @@ "ofType": null }, "defaultValue": null + }, + { + "name": "keepLock", + "description": "will keep Bike locked if set to true, default = false", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null, @@ -881,7 +980,7 @@ "fields": [ { "name": "name", - "description": "Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies.", + "description": "Eventually, this field will become an enum or a separate data table and user can choose from a pool of insurance companies.", "args": [], "type": { "kind": "NON_NULL", @@ -944,7 +1043,7 @@ "deprecationReason": null }, { - "name": "maintananceResponsible", + "name": "maintenanceResponsible", "description": "eg. Anbieter, flotte, eigenleistung", "args": [], "type": { @@ -960,7 +1059,7 @@ "deprecationReason": null }, { - "name": "maintananceBenefactor", + "name": "maintenanceBenefactor", "description": null, "args": [], "type": { @@ -976,7 +1075,7 @@ "deprecationReason": null }, { - "name": "maintananceAgreement", + "name": "maintenanceAgreement", "description": null, "args": [], "type": { @@ -1063,7 +1162,7 @@ "inputFields": [ { "name": "name", - "description": "Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies.", + "description": "Eventually, this field will become an enum or a separate data table and user can choose from a pool of insurance companies.", "type": { "kind": "NON_NULL", "name": null, @@ -1118,7 +1217,7 @@ "defaultValue": null }, { - "name": "maintananceResponsible", + "name": "maintenanceResponsible", "description": "eg. Anbieter, flotte, eigenleistung", "type": { "kind": "NON_NULL", @@ -1132,7 +1231,7 @@ "defaultValue": null }, { - "name": "maintananceBenefactor", + "name": "maintenanceBenefactor", "description": null, "type": { "kind": "NON_NULL", @@ -1146,7 +1245,7 @@ "defaultValue": null }, { - "name": "maintananceAgreement", + "name": "maintenanceAgreement", "description": null, "type": { "kind": "SCALAR", @@ -1212,7 +1311,7 @@ "inputFields": [ { "name": "name", - "description": "Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies.", + "description": "Eventually, this field will become an enum or a separate data table and user can choose from a pool of insurance companies.", "type": { "kind": "SCALAR", "name": "String", @@ -1251,7 +1350,7 @@ "defaultValue": null }, { - "name": "maintananceResponsible", + "name": "maintenanceResponsible", "description": "eg. Anbieter, flotte, eigenleistung", "type": { "kind": "SCALAR", @@ -1261,7 +1360,7 @@ "defaultValue": null }, { - "name": "maintananceBenefactor", + "name": "maintenanceBenefactor", "description": null, "type": { "kind": "SCALAR", @@ -1271,7 +1370,7 @@ "defaultValue": null }, { - "name": "maintananceAgreement", + "name": "maintenanceAgreement", "description": null, "type": { "kind": "SCALAR", @@ -1325,72 +1424,13 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "ENUM", - "name": "Group", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "KL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LI", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MH", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SZ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "OBJECT", - "name": "BikeModel", - "description": "The BikeModel can be used for instantiate new bikes with a given model.\nIt should only be used to fill in default values.\nEven bikes of the same model can have different properties.", + "name": "DimensionsAndLoad", + "description": "How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table.", "fields": [ { - "name": "id", + "name": "hasCoverBox", "description": null, "args": [], "type": { @@ -1398,7 +1438,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Boolean", "ofType": null } }, @@ -1406,7 +1446,7 @@ "deprecationReason": null }, { - "name": "name", + "name": "lockable", "description": null, "args": [], "type": { @@ -1414,7 +1454,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, @@ -1422,15 +1462,15 @@ "deprecationReason": null }, { - "name": "dimensionsAndLoad", + "name": "boxLength", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "DimensionsAndLoad", + "kind": "SCALAR", + "name": "Float", "ofType": null } }, @@ -1438,34 +1478,23 @@ "deprecationReason": null }, { - "name": "technicalEquipment", + "name": "boxWidth", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "TechnicalEquipment", + "kind": "SCALAR", + "name": "Float", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Participant", - "description": null, - "fields": [ + }, { - "name": "id", + "name": "boxHeight", "description": null, "args": [], "type": { @@ -1473,7 +1502,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Float", "ofType": null } }, @@ -1481,7 +1510,7 @@ "deprecationReason": null }, { - "name": "start", + "name": "maxWeightBox", "description": null, "args": [], "type": { @@ -1489,7 +1518,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Date", + "name": "Float", "ofType": null } }, @@ -1497,27 +1526,31 @@ "deprecationReason": null }, { - "name": "end", + "name": "maxWeightLuggageRack", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "contactInformation", + "name": "maxWeightTotal", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", + "kind": "SCALAR", + "name": "Float", "ofType": null } }, @@ -1525,65 +1558,72 @@ "deprecationReason": null }, { - "name": "usernamefLotte", + "name": "bikeLength", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "usernameSlack", + "name": "bikeWidth", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "memberADFC", + "name": "bikeHeight", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "locationZIPs", + "name": "bikeWeight", "description": null, "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "DimensionsAndLoadCreateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "memberCoreTeam", + "name": "hasCoverBox", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -1593,13 +1633,11 @@ "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "roleCoordinator", + "name": "lockable", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -1609,283 +1647,267 @@ "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "roleEmployeADFC", + "name": "boxLength", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "roleMentor", - "description": "Wahr, wenn die Person Pate ist.", - "args": [], + "name": "boxWidth", + "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "roleAmbulance", + "name": "boxHeight", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "roleBringer", + "name": "maxWeightBox", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "workshopMentor", - "description": "Date of workshop to become Mentor dt. Pate", - "args": [], + "name": "maxWeightLuggageRack", + "description": null, "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "workshopAmbulance", - "description": "Date of last Erste Hilfe Kurs?", - "args": [], + "name": "maxWeightTotal", + "description": null, "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "distributedActiveBikeParte", - "description": "Note the kommentierte Infodaten Tabelle.\nThis value is calculated form other values.\nIt is true, if the person is not on the black list and not retired\nand is either Mentor dt. Pate or Partner Mentor dt. Partnerpate for at least one bike.", - "args": [], + "name": "bikeLength", + "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "reserve", + "name": "bikeWidth", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "engagement", + "name": "bikeHeight", "description": null, - "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Engagement", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null + }, + { + "name": "bikeWeight", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "defaultValue": null } ], - "inputFields": null, - "interfaces": [], + "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "ParticipantCreateInput", + "name": "DimensionsAndLoadUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "start", + "name": "hasCoverBox", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null }, "defaultValue": null }, { - "name": "end", + "name": "lockable", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "contactInformationId", - "description": "must create contactinformation first, if you want to use new", + "name": "boxLength", + "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "defaultValue": null }, { - "name": "usernamefLotte", + "name": "boxWidth", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "usernameSlack", + "name": "boxHeight", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "memberADFC", + "name": "maxWeightBox", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "defaultValue": null }, { - "name": "locationZIPs", + "name": "maxWeightLuggageRack", "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "defaultValue": null }, { - "name": "memberCoreTeam", + "name": "maxWeightTotal", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "defaultValue": null }, { - "name": "workshopMentor", - "description": "Date of workshop to become Mentor dt. Pate", + "name": "bikeLength", + "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "workshopAmbulance", - "description": "Date of last Erste Hilfe Kurs?", + "name": "bikeWidth", + "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "reserve", + "name": "bikeHeight", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null - } + }, + { + "name": "bikeWeight", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "defaultValue": null + } ], "interfaces": null, "enumValues": null, @@ -1893,79 +1915,11 @@ }, { "kind": "OBJECT", - "name": "Engagement", - "description": null, + "name": "TechnicalEquipment", + "description": "Some Technical Info about the bike.\nThis should be 1-1 Relation with the CargoBike.\nSo no id needed for mutation. One Mutation for the CargoBike will be enough.", "fields": [ { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "from", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "to", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "participant", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Participant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cargoBike", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "roleCoordinator", + "name": "bicycleShift", "description": null, "args": [], "type": { @@ -1973,7 +1927,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, @@ -1981,7 +1935,7 @@ "deprecationReason": null }, { - "name": "roleEmployeADFC", + "name": "isEBike", "description": null, "args": [], "type": { @@ -1997,23 +1951,7 @@ "deprecationReason": null }, { - "name": "roleMentor", - "description": "Wahr, wenn die Person Pate ist.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "roleAmbulance", + "name": "hasLightSystem", "description": null, "args": [], "type": { @@ -2029,17 +1967,13 @@ "deprecationReason": null }, { - "name": "roleBringer", + "name": "specialFeatures", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -2052,129 +1986,110 @@ }, { "kind": "INPUT_OBJECT", - "name": "EngagementCreateInput", + "name": "TechnicalEquipmentCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "from", + "name": "bicycleShift", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null } }, "defaultValue": null }, { - "name": "to", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "participantId", + "name": "isEBike", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Boolean", "ofType": null } }, "defaultValue": null }, { - "name": "cargoBikeId", + "name": "hasLightSystem", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Boolean", "ofType": null } }, "defaultValue": null }, { - "name": "roleCoordinator", + "name": "specialFeatures", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TechnicalEquipmentUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "roleEmployeADFC", + "name": "bicycleShift", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "roleMentor", - "description": "Wahr, wenn die Person Pate ist.", + "name": "isEBike", + "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null }, "defaultValue": null }, { - "name": "roleAmbulance", + "name": "hasLightSystem", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null }, "defaultValue": null }, { - "name": "roleBringer", + "name": "specialFeatures", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null } @@ -2185,11 +2100,11 @@ }, { "kind": "OBJECT", - "name": "Taxes", - "description": null, + "name": "Security", + "description": "The Security Info about the bike.\nhis should be 1-1 Relation with the CargoBike.\nSo no id needed for mutation. One Mutation for the CargoBike will be enough.", "fields": [ { - "name": "costCenter", + "name": "frameNumber", "description": null, "args": [], "type": { @@ -2205,12 +2120,48 @@ "deprecationReason": null }, { - "name": "organizationArea", + "name": "keyNumberFrameLock", "description": null, "args": [], "type": { - "kind": "ENUM", - "name": "OrganizationArea", + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "keyNumberAXAChain", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "policeCoding", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "adfcCoding", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, @@ -2224,12 +2175,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "TaxesCreateInput", + "name": "SecurityCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "costCenter", + "name": "frameNumber", "description": null, "type": { "kind": "NON_NULL", @@ -2243,11 +2194,41 @@ "defaultValue": null }, { - "name": "organizationArea", + "name": "keyNumberFrameLock", "description": null, "type": { - "kind": "ENUM", - "name": "OrganizationArea", + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keyNumberAXAChain", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "policeCoding", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "adfcCoding", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null @@ -2259,12 +2240,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "TaxesUpdateInput", + "name": "SecurityUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "costCenter", + "name": "frameNumber", "description": null, "type": { "kind": "SCALAR", @@ -2274,11 +2255,41 @@ "defaultValue": null }, { - "name": "organizationArea", + "name": "keyNumberFrameLock", "description": null, "type": { - "kind": "ENUM", - "name": "OrganizationArea", + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keyNumberAXAChain", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "policeCoding", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "adfcCoding", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null @@ -2290,20 +2301,44 @@ }, { "kind": "ENUM", - "name": "OrganizationArea", + "name": "StickerBikeNameState", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { - "name": "IB", + "name": "OK", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "ZB", + "name": "IMPROVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRODUCED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NONEED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MISSING", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNKNOWN", "description": null, "isDeprecated": false, "deprecationReason": null @@ -2312,72 +2347,68 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "ChainSwap", + "kind": "ENUM", + "name": "Group", "description": null, - "fields": [ + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ { - "name": "id", + "name": "KL", "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, "isDeprecated": false, "deprecationReason": null }, { - "name": "mechanic", - "description": "TODO why is this a string\"", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, + "name": "LI", + "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "timeOfSwap", + "name": "SP", "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, "isDeprecated": false, "deprecationReason": null }, { - "name": "keyNumberOldAXAChain", + "name": "FK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MH", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SZ", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "TK", "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, "isDeprecated": false, "deprecationReason": null } ], - "inputFields": null, - "interfaces": [], - "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", - "name": "Equipment", - "description": "This type represents a piece of equipment that represents a real physical object.\nThe object must be unique. So it is possible to tell it apart from similar objects by a serial number.", + "name": "Participant", + "description": null, "fields": [ { "name": "id", @@ -2396,7 +2427,7 @@ "deprecationReason": null }, { - "name": "serialNo", + "name": "start", "description": null, "args": [], "type": { @@ -2404,7 +2435,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null } }, @@ -2412,27 +2443,27 @@ "deprecationReason": null }, { - "name": "investable", - "description": "TODO unclear what this means. tomy fragen", + "name": "end", + "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Date", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title", + "name": "contactInformation", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "ContactInformation", "ofType": null } }, @@ -2440,7 +2471,7 @@ "deprecationReason": null }, { - "name": "description", + "name": "usernamefLotte", "description": null, "args": [], "type": { @@ -2452,182 +2483,95 @@ "deprecationReason": null }, { - "name": "cargoBike", + "name": "usernameSlack", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "CargoBike", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "EquipmentCreateInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "serialNo", + "name": "memberADFC", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "title", - "description": "TODO unclear what this means. tomy fragen", + "name": "locationZIPs", + "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "description", + "name": "memberCoreTeam", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "investable", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "cargoBikeId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "EquipmentUpdateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "id", - "description": null, + "name": "distributedActiveBikeParte", + "description": "Note the kommentierte Infodaten Tabelle.\nThis value is calculated form other values.\nIt is true, if the person is not on the black list and not retired\nand is either Mentor dt. Pate or Partner Mentor dt. Partnerpate for at least one bike.", + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Boolean", "ofType": null } }, - "defaultValue": null - }, - { - "name": "serialNo", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "title", - "description": "TODO unclear what this means. tomy fragen", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "description", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "investable", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "cargoBikeId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BikeEvent", - "description": "An Event is a point in time, when the state of the bike somehow changed.", - "fields": [ - { - "name": "id", + "name": "engagement", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "OBJECT", + "name": "Engagement", "ofType": null } }, @@ -2635,15 +2579,15 @@ "deprecationReason": null }, { - "name": "eventType", + "name": "workshops", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "ENUM", - "name": "BikeEventType", + "kind": "OBJECT", + "name": "Workshop", "ofType": null } }, @@ -2651,15 +2595,15 @@ "deprecationReason": null }, { - "name": "cargoBike", + "name": "isLocked", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "CargoBike", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, @@ -2667,7 +2611,7 @@ "deprecationReason": null }, { - "name": "date", + "name": "isLockedByMe", "description": null, "args": [], "type": { @@ -2675,7 +2619,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Date", + "name": "Boolean", "ofType": null } }, @@ -2683,33 +2627,25 @@ "deprecationReason": null }, { - "name": "note", - "description": null, + "name": "lockedBy", + "description": "null if not locked by other user", "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "documents", - "description": "Path to documents", + "name": "lockedUntil", + "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "SCALAR", + "name": "Date", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -2722,27 +2658,33 @@ }, { "kind": "INPUT_OBJECT", - "name": "BikeEventCreateInput", + "name": "ParticipantCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "eventType", + "name": "start", + "description": "if not set, CURRENT_DATE will be used", + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "end", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "BikeEventType", - "ofType": null - } + "kind": "SCALAR", + "name": "Date", + "ofType": null }, "defaultValue": null }, { - "name": "cargoBikeId", - "description": "it is enough to pass the cargoBike id", + "name": "contactInformationId", + "description": "must create contactinformation first, if you want to use new", "type": { "kind": "NON_NULL", "name": null, @@ -2755,21 +2697,17 @@ "defaultValue": null }, { - "name": "date", + "name": "usernamefLotte", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "note", + "name": "usernameSlack", "description": null, "type": { "kind": "SCALAR", @@ -2779,8 +2717,22 @@ "defaultValue": null }, { - "name": "documents", - "description": "Path to documents", + "name": "memberADFC", + "description": "default: false", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "locationZIPs", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2795,76 +2747,176 @@ } }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "BikeEventType", - "description": "TODO: Some eventTypes are missing", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "KAUF", - "description": "The enum EventType can also be represented as an enum in postgresQL.\nIt is possible to add items to an enum in postgresQL without changing the source code.\nHowever, it not possible to change the graphQL schema.\nConcluding we should not use an enum here, if users want to add EventTypes to the enum.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INBETRIEBNAHME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "AUSFALL", - "description": null, - "isDeprecated": false, - "deprecationReason": null }, { - "name": "WARTUNG", - "description": null, - "isDeprecated": false, - "deprecationReason": null + "name": "memberCoreTeam", + "description": "default: false", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null }, { - "name": "ANDERE", + "name": "workshopIds", "description": null, - "isDeprecated": false, - "deprecationReason": null + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null } ], + "interfaces": null, + "enumValues": null, "possibleTypes": null }, { - "kind": "OBJECT", - "name": "DimensionsAndLoad", - "description": "How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table.", - "fields": [ + "kind": "INPUT_OBJECT", + "name": "ParticipantUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "hasCoverBox", + "name": "id", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "lockable", + "name": "start", + "description": "if not set, CURRENT_DATE will be used", + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "end", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationId", + "description": "must create contactinformation first, if you want to use new", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "usernamefLotte", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "usernameSlack", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "memberADFC", + "description": "default: false", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "locationZIPs", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "memberCoreTeam", + "description": "default: false", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "workshopIds", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Workshop", + "description": null, + "fields": [ + { + "name": "id", "description": null, "args": [], "type": { @@ -2872,7 +2924,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null } }, @@ -2880,7 +2932,7 @@ "deprecationReason": null }, { - "name": "boxLength", + "name": "title", "description": null, "args": [], "type": { @@ -2888,7 +2940,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, @@ -2896,7 +2948,7 @@ "deprecationReason": null }, { - "name": "boxWidth", + "name": "description", "description": null, "args": [], "type": { @@ -2904,7 +2956,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, @@ -2912,7 +2964,7 @@ "deprecationReason": null }, { - "name": "boxHeight", + "name": "date", "description": null, "args": [], "type": { @@ -2920,7 +2972,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Date", "ofType": null } }, @@ -2928,15 +2980,15 @@ "deprecationReason": null }, { - "name": "maxWeightBox", + "name": "workshopType", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Float", + "kind": "OBJECT", + "name": "WorkshopType", "ofType": null } }, @@ -2944,15 +2996,15 @@ "deprecationReason": null }, { - "name": "maxWeightLuggageRack", + "name": "trainer1", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Float", + "kind": "OBJECT", + "name": "Participant", "ofType": null } }, @@ -2960,15 +3012,27 @@ "deprecationReason": null }, { - "name": "maxWeightTotal", + "name": "trainer2", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "OBJECT", + "name": "Participant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "participants", + "description": null, + "args": [], + "type": { + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Float", + "kind": "OBJECT", + "name": "Participant", "ofType": null } }, @@ -2976,7 +3040,7 @@ "deprecationReason": null }, { - "name": "bikeLength", + "name": "isLocked", "description": null, "args": [], "type": { @@ -2984,7 +3048,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null } }, @@ -2992,36 +3056,40 @@ "deprecationReason": null }, { - "name": "bikeWidth", + "name": "isLockedByMe", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "bikeHeight", - "description": null, + "name": "lockedBy", + "description": "null if not locked by other user", "args": [], "type": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "bikeWeight", + "name": "lockedUntil", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "Float", + "name": "Date", "ofType": null }, "isDeprecated": false, @@ -3035,293 +3103,340 @@ }, { "kind": "INPUT_OBJECT", - "name": "DimensionsAndLoadCreateInput", + "name": "WorkshopCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "hasCoverBox", + "name": "title", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, "defaultValue": null }, { - "name": "lockable", + "name": "description", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "boxLength", + "name": "date", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Date", "ofType": null } }, "defaultValue": null }, { - "name": "boxWidth", + "name": "workshopTypeId", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "boxHeight", + "name": "trainer1Id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "maxWeightBox", + "name": "trainer2Id", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "kind": "SCALAR", + "name": "ID", + "ofType": null }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "WorkshopUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "maxWeightLuggageRack", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "maxWeightTotal", + "name": "title", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "bikeLength", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "bikeWidth", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "bikeHeight", + "name": "date", "description": null, "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } }, "defaultValue": null }, { - "name": "bikeWeight", + "name": "workshopTypeId", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DimensionsAndLoadUpdateInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "hasCoverBox", + "name": "trainer1Id", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "lockable", + "name": "trainer2Id", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "boxLength", + "name": "keepLock", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "WorkshopType", + "description": null, + "fields": [ { - "name": "boxWidth", + "name": "id", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "boxHeight", + "name": "name", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "maxWeightBox", + "name": "isLocked", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "maxWeightLuggageRack", + "name": "isLockedByMe", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "maxWeightTotal", - "description": null, + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], "type": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "bikeLength", + "name": "lockedUntil", "description": null, + "args": [], "type": { "kind": "SCALAR", - "name": "Float", + "name": "Date", "ofType": null }, - "defaultValue": null - }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "WorkshopTypeCreateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "bikeWidth", + "name": "name", "description": null, "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "WorkshopTypeUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "bikeHeight", + "name": "id", "description": null, "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null }, { - "name": "bikeWeight", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "defaultValue": null @@ -3333,11 +3448,27 @@ }, { "kind": "OBJECT", - "name": "TechnicalEquipment", - "description": "Some Technical Info about the bike.\nThis should be 1-1 Relation with the CargoBike.\nSo no id needed for mutation. One Mutation for the CargoBike will be enough.", + "name": "EngagementType", + "description": null, "fields": [ { - "name": "bicycleShift", + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", "description": null, "args": [], "type": { @@ -3353,7 +3484,23 @@ "deprecationReason": null }, { - "name": "isEBike", + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", "description": null, "args": [], "type": { @@ -3369,7 +3516,7 @@ "deprecationReason": null }, { - "name": "hasLightSystem", + "name": "isLockedByMe", "description": null, "args": [], "type": { @@ -3385,12 +3532,24 @@ "deprecationReason": null }, { - "name": "specialFeatures", + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "isDeprecated": false, @@ -3404,12 +3563,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "TechnicalEquipmentCreateInput", + "name": "EngagementTypeCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "bicycleShift", + "name": "name", "description": null, "type": { "kind": "NON_NULL", @@ -3423,35 +3582,7 @@ "defaultValue": null }, { - "name": "isEBike", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "hasLightSystem", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "specialFeatures", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -3467,46 +3598,50 @@ }, { "kind": "INPUT_OBJECT", - "name": "TechnicalEquipmentUpdateInput", + "name": "EngagementTypeUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "bicycleShift", + "name": "id", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null }, { - "name": "isEBike", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "hasLightSystem", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "specialFeatures", + "name": "keepLock", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "defaultValue": null @@ -3518,11 +3653,11 @@ }, { "kind": "OBJECT", - "name": "Security", - "description": "The Security Info about the bike.\nhis should be 1-1 Relation with the CargoBike.\nSo no id needed for mutation. One Mutation for the CargoBike will be enough.", + "name": "Engagement", + "description": null, "fields": [ { - "name": "frameNumber", + "name": "id", "description": null, "args": [], "type": { @@ -3530,7 +3665,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, @@ -3538,48 +3673,132 @@ "deprecationReason": null }, { - "name": "keyNumberFrameLock", + "name": "engagementType", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EngagementType", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "keyNumberAXAChain", + "name": "from", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "to", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "policeCoding", + "name": "participant", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cargoBike", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", "description": null, "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "adfcCoding", + "name": "lockedUntil", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "isDeprecated": false, @@ -3593,61 +3812,69 @@ }, { "kind": "INPUT_OBJECT", - "name": "SecurityCreateInput", + "name": "EngagementCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "frameNumber", + "name": "engagementTypeId", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "keyNumberFrameLock", - "description": null, + "name": "from", + "description": "will use CURRENT_DATE if not set", "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "defaultValue": null }, { - "name": "keyNumberAXAChain", - "description": null, + "name": "to", + "description": "will use infinit if not set", "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "defaultValue": null }, { - "name": "policeCoding", + "name": "participantId", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null }, { - "name": "adfcCoding", + "name": "cargoBikeId", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null } @@ -3658,56 +3885,80 @@ }, { "kind": "INPUT_OBJECT", - "name": "SecurityUpdateInput", + "name": "EngagementUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "frameNumber", + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "engagementTypeId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "keyNumberFrameLock", + "name": "from", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "defaultValue": null }, { - "name": "keyNumberAXAChain", + "name": "to", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "defaultValue": null }, { - "name": "policeCoding", + "name": "participantId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "adfcCoding", + "name": "cargoBikeId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", "ofType": null }, "defaultValue": null @@ -3718,59 +3969,12 @@ "possibleTypes": null }, { - "kind": "ENUM", - "name": "StickerBikeNameState", + "kind": "OBJECT", + "name": "Taxes", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "OK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, + "fields": [ { - "name": "IMPROVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRODUCED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NONEED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MISSING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNKNOWN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Provider", - "description": "(dt. Anbieter)", - "fields": [ - { - "name": "id", + "name": "costCenter", "description": null, "args": [], "type": { @@ -3778,7 +3982,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null } }, @@ -3786,9 +3990,32 @@ "deprecationReason": null }, { - "name": "name", + "name": "organisationArea", "description": null, "args": [], + "type": { + "kind": "ENUM", + "name": "OrganisationArea", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TaxesCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "costCenter", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -3798,95 +4025,81 @@ "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "formularName", + "name": "organisationArea", "description": null, - "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "OrganisationArea", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null - }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TaxesUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "providerContactPerson", + "name": "costCenter", "description": null, - "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "isPrivatePerson", + "name": "organisationArea", "description": null, - "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "ENUM", + "name": "OrganisationArea", + "ofType": null }, - "isDeprecated": false, - "deprecationReason": null - }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrganisationArea", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ { - "name": "organisation", + "name": "IB", "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Organisation", - "ofType": null - }, "isDeprecated": false, "deprecationReason": null }, { - "name": "cargoBikes", + "name": "ZB", "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - } - } - }, "isDeprecated": false, "deprecationReason": null } ], - "inputFields": null, - "interfaces": [], - "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", - "name": "ContactInformation", - "description": null, + "name": "Equipment", + "description": "This type represents a piece of equipment that represents a real physical object.\nThe object must be unique. So it is possible to tell it apart from similar objects by a serial number.", "fields": [ { "name": "id", @@ -3905,7 +4118,7 @@ "deprecationReason": null }, { - "name": "name", + "name": "serialNo", "description": null, "args": [], "type": { @@ -3921,43 +4134,23 @@ "deprecationReason": null }, { - "name": "firstName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "retiredAt", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phoneExtern", + "name": "title", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "phone2Extern", + "name": "description", "description": null, "args": [], "type": { @@ -3969,60 +4162,68 @@ "deprecationReason": null }, { - "name": "phoneIntern", + "name": "cargoBike", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "CargoBike", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "phone2Intern", + "name": "isLocked", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "emailExtern", + "name": "isLockedByMe", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "emailIntern", - "description": null, + "name": "lockedBy", + "description": "null if not locked by other user", "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "note", + "name": "lockedUntil", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, "isDeprecated": false, @@ -4036,12 +4237,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "ContactInformationCreateInput", + "name": "EquipmentCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "name", + "name": "serialNo", "description": null, "type": { "kind": "NON_NULL", @@ -4055,7 +4256,7 @@ "defaultValue": null }, { - "name": "firstName", + "name": "title", "description": null, "type": { "kind": "NON_NULL", @@ -4069,37 +4270,52 @@ "defaultValue": null }, { - "name": "retiredAt", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "phoneExtern", + "name": "cargoBikeId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "EquipmentUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "phone2Extern", + "name": "id", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null }, { - "name": "phoneIntern", + "name": "serialNo", "description": null, "type": { "kind": "SCALAR", @@ -4109,7 +4325,7 @@ "defaultValue": null }, { - "name": "phone2Intern", + "name": "title", "description": null, "type": { "kind": "SCALAR", @@ -4119,7 +4335,7 @@ "defaultValue": null }, { - "name": "emailExtern", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -4129,21 +4345,21 @@ "defaultValue": null }, { - "name": "emailIntern", + "name": "cargoBikeId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "note", - "description": null, + "name": "keepLock", + "description": "will keep Bike locked if set to true, default = false", "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "defaultValue": null @@ -4154,14 +4370,14 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "ContactInformationUpdateInput", + "kind": "OBJECT", + "name": "EquipmentType", "description": null, - "fields": null, - "inputFields": [ + "fields": [ { "name": "id", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -4171,120 +4387,27 @@ "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { "name": "name", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "firstName", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "retiredAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "phoneExtern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "phone2Extern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "phoneIntern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "phone2Intern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "emailExtern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "emailIntern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "note", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContactPerson", - "description": null, - "fields": [ - { - "name": "id", + "name": "description", "description": null, "args": [], "type": { @@ -4292,7 +4415,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null } }, @@ -4300,7 +4423,7 @@ "deprecationReason": null }, { - "name": "intern", + "name": "isLocked", "description": null, "args": [], "type": { @@ -4316,20 +4439,44 @@ "deprecationReason": null }, { - "name": "contactInformation", + "name": "isLockedByMe", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -4339,35 +4486,27 @@ }, { "kind": "INPUT_OBJECT", - "name": "ContactPersonCreateInput", + "name": "EquipmentTypeCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "intern", + "name": "name", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "contactInformationId", + "name": "description", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null } @@ -4378,7 +4517,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "ContactPersonUpdateInput", + "name": "EquipmentTypeUpdateInput", "description": null, "fields": null, "inputFields": [ @@ -4397,21 +4536,31 @@ "defaultValue": null }, { - "name": "intern", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "contactInformationId", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", "ofType": null }, "defaultValue": null @@ -4423,8 +4572,8 @@ }, { "kind": "OBJECT", - "name": "Organisation", - "description": null, + "name": "BikeEvent", + "description": "An Event is a point in time, when the state of the bike somehow changed.", "fields": [ { "name": "id", @@ -4443,27 +4592,15 @@ "deprecationReason": null }, { - "name": "address", + "name": "bikeEventType", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lendingStations", - "description": "(dt. Ausleihstation)", - "args": [], - "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", - "name": "LendingStation", + "name": "BikeEventType", "ofType": null } }, @@ -4471,66 +4608,47 @@ "deprecationReason": null }, { - "name": "associationNo", - "description": "registration number of association", + "name": "cargoBike", + "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "registeredAt", - "description": "If Club, at what court registered", + "name": "responsible", + "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Participant", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "provider", + "name": "related", "description": null, "args": [], "type": { "kind": "OBJECT", - "name": "Provider", + "name": "Participant", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "otherdata", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "LendingStation", - "description": "(dt. Standort)", - "fields": [ - { - "name": "id", + "name": "date", "description": null, "args": [], "type": { @@ -4538,7 +4656,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Date", "ofType": null } }, @@ -4546,24 +4664,20 @@ "deprecationReason": null }, { - "name": "name", + "name": "description", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "contactPersons", - "description": null, + "name": "documents", + "description": "Path to documents", "args": [], "type": { "kind": "NON_NULL", @@ -4572,8 +4686,8 @@ "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "ContactPerson", + "kind": "SCALAR", + "name": "String", "ofType": null } } @@ -4582,81 +4696,69 @@ "deprecationReason": null }, { - "name": "address", + "name": "remark", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "timeFrames", + "name": "isLocked", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TimeFrame", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "loanPeriods", + "name": "isLockedByMe", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "LoanPeriods", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "cargoBikes", - "description": null, + "name": "lockedBy", + "description": "null if not locked by other user", "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - } + "kind": "SCALAR", + "name": "ID", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "numCargoBikes", - "description": "Totola Amount of cargoBikes currently assigned to the lending station", + "name": "lockedUntil", + "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "Date", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -4669,83 +4771,105 @@ }, { "kind": "INPUT_OBJECT", - "name": "LendingStationCreateInput", + "name": "BikeEventCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "name", + "name": "bikeEventTypeId", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "contactInformation", + "name": "cargoBikeId", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContactInformationCreateInput", - "ofType": null - } + "kind": "SCALAR", + "name": "ID", + "ofType": null } }, "defaultValue": null }, { - "name": "address", + "name": "responsibleId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "relatedId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "date", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressCreateInput", + "kind": "SCALAR", + "name": "Date", "ofType": null } }, "defaultValue": null }, { - "name": "loanPeriods", + "name": "description", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LoanPeriodsInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "timeFrames", - "description": null, + "name": "documents", + "description": "Path to documents", "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TimeFrameCreateInput", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, "defaultValue": null + }, + { + "name": "remark", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null, @@ -4754,7 +4878,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "LendingStationUpdateInput", + "name": "BikeEventUpdateInput", "description": null, "fields": null, "inputFields": [ @@ -4773,62 +4897,98 @@ "defaultValue": null }, { - "name": "name", + "name": "bikeEventTypeId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "contactInformation", + "name": "cargoBikeId", "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContactInformationUpdateInput", - "ofType": null - } + "kind": "SCALAR", + "name": "ID", + "ofType": null }, "defaultValue": null }, { - "name": "address", + "name": "responsibleId", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "AddressUpdateInput", + "kind": "SCALAR", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "loanPeriods", + "name": "relatedId", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LoanPeriodsInput", + "kind": "SCALAR", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "timeFrames", + "name": "date", "description": null, + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "documents", + "description": "Path to documents", "type": { "kind": "LIST", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "TimeFrameUpdateInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, "defaultValue": null + }, + { + "name": "remark", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null, @@ -4837,27 +4997,31 @@ }, { "kind": "OBJECT", - "name": "LoanPeriods", - "description": "(dt. Ausleihzeiten) not implemented", + "name": "BikeEventType", + "description": null, "fields": [ { - "name": "generalRemark", + "name": "id", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "notes", - "description": "notes for each day of the week, starting on Monday", + "name": "name", + "description": null, "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", @@ -4869,20 +5033,48 @@ "deprecationReason": null }, { - "name": "times", - "description": "Loan times from and until for each day of the week.\nStarting with Monday from, Monday to, Tuesday from, ..., Sunday to ", + "name": "isLockedByMe", + "description": null, "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -4892,45 +5084,41 @@ }, { "kind": "INPUT_OBJECT", - "name": "LoanPeriodsInput", - "description": "(dt. Ausleihzeiten)", + "name": "BikeEventTypeUpdateInput", + "description": null, "fields": null, "inputFields": [ { - "name": "generalRemark", + "name": "id", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "notes", - "description": "notes for each day of the week, starting on Monday", - "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "times", - "description": "Loan times from and until for each day of the week.\nStarting with Monday from, Monday to, Tuesday from, ..., Sunday to ", + "name": "name", + "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null }, "defaultValue": null } @@ -4941,8 +5129,8 @@ }, { "kind": "OBJECT", - "name": "TimeFrame", - "description": "(dt. Zeitscheibe)", + "name": "Provider", + "description": "(dt. Anbieter) bezieht sich auf die Beziehung einer Person oder Organisation zum Lastenrad", "fields": [ { "name": "id", @@ -4961,55 +5149,51 @@ "deprecationReason": null }, { - "name": "from", + "name": "formName", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "to", + "name": "privatePerson", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "Date", + "kind": "OBJECT", + "name": "ContactInformation", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "note", + "name": "organisation", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Organisation", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lendingStation", + "name": "cargoBikes", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", - "name": "LendingStation", + "name": "CargoBike", "ofType": null } }, @@ -5017,20 +5201,60 @@ "deprecationReason": null }, { - "name": "cargoBike", + "name": "isLocked", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "CargoBike", + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -5040,57 +5264,55 @@ }, { "kind": "INPUT_OBJECT", - "name": "TimeFrameCreateInput", - "description": null, + "name": "ProviderCreateInput", + "description": "(dt. Anbieter)", "fields": null, "inputFields": [ { - "name": "from", + "name": "formName", "description": null, "type": { - "kind": "SCALAR", - "name": "Date", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null }, { - "name": "to", + "name": "privatePersonId", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "note", + "name": "organisationId", "description": null, "type": { "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "lendingStationID", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "LendingStationCreateInput", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "cargoBikeID", + "name": "cargoBikeIds", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CargoBikeCreateInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null } @@ -5101,7 +5323,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "TimeFrameUpdateInput", + "name": "ProviderUpdateInput", "description": null, "fields": null, "inputFields": [ @@ -5120,51 +5342,55 @@ "defaultValue": null }, { - "name": "from", + "name": "formName", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "to", + "name": "privatePersonId", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "note", + "name": "organisationId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "lendingStation", - "description": null, + "name": "cargoBikeIds", + "description": "cargoBikes are added, you can not take existing relations away. use update cargoBike or add bike to another provider instead", "type": { - "kind": "INPUT_OBJECT", - "name": "LendingStationUpdateInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null }, { - "name": "cargoBike", + "name": "keepLock", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CargoBikeUpdateInput", + "kind": "SCALAR", + "name": "Boolean", "ofType": null }, "defaultValue": null @@ -5176,11 +5402,11 @@ }, { "kind": "OBJECT", - "name": "Address", - "description": null, + "name": "Person", + "description": "A Person can have several instances of contact information.\nThe reason for this is, that some people have info for interns and externals that are different.", "fields": [ { - "name": "street", + "name": "id", "description": null, "args": [], "type": { @@ -5188,7 +5414,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, @@ -5196,7 +5422,7 @@ "deprecationReason": null }, { - "name": "number", + "name": "name", "description": null, "args": [], "type": { @@ -5212,7 +5438,7 @@ "deprecationReason": null }, { - "name": "zip", + "name": "firstName", "description": null, "args": [], "type": { @@ -5226,74 +5452,146 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AddressCreateInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "street", + "name": "contactInformation", "description": null, + "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "ContactInformation", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "number", + "name": "isLocked", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "zip", + "name": "isLockedByMe", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, - "defaultValue": null - } - ], + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "PersonCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "name", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "firstName", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + } + ], "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "AddressUpdateInput", + "name": "PersonUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "street", + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "name", "description": null, "type": { "kind": "SCALAR", @@ -5303,38 +5601,4603 @@ "defaultValue": null }, { - "name": "number", + "name": "firstName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ContactInformation", + "description": null, + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "person", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Person", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "phone", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "phone2", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email2", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "note", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContactInformationCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "personId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "phone", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "phone2", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email2", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "note", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContactInformationUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "personId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "phone", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "phone2", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email2", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "note", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Organisation", + "description": null, + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "address", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lendingStations", + "description": "(dt. Ausleihstation)", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "associationNo", + "description": "registration number of association", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "registeredAt", + "description": "If Club, at what court registered", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "provider", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Provider", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contactInformation", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "otherData", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrganisationCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "address", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressCreateInput", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "associationNo", + "description": "registration number of association", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "registeredAt", + "description": "If Club, at what court registered", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "otherData", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "OrganisationUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "address", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AddressCreateInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "associationNo", + "description": "registration number of association", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "registeredAt", + "description": "If Club, at what court registered", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "otherData", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "LendingStation", + "description": "(dt. Standort)", + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contactInformationIntern", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contactInformationExtern", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "address", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "timeFrames", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "loanPeriod", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "LoanPeriod", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cargoBikes", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "numCargoBikes", + "description": "Total amount of cargoBikes currently assigned to the lending station", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organisation", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Organisation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LendingStationCreateInput", + "description": "If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null", + "fields": null, + "inputFields": [ + { + "name": "name", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "contactInformationInternId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationExternId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "address", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressCreateInput", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "loanPeriod", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LoanPeriodInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "organisationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LendingStationUpdateInput", + "description": "If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null", + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationInternId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationExternId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "address", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AddressUpdateInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "loanPeriod", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LoanPeriodInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "organisationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "LoanPeriod", + "description": "(dt. Ausleihzeiten) not implemented", + "fields": [ + { + "name": "generalRemark", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "notes", + "description": "notes for each day of the week, starting on Monday", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "loanTimes", + "description": "Loan times from and until for each day of the week.\nStarting with Monday from, Monday to, Tuesday from, ..., Sunday to ", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LoanPeriodInput", + "description": "(dt. Ausleihzeiten)", + "fields": null, + "inputFields": [ + { + "name": "generalRemark", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "notes", + "description": "notes for each day of the week, starting on Monday", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "loanTimes", + "description": "Loan times from and until for each day of the week.\nStarting with Monday from, Monday to, Tuesday from, ..., Sunday to ", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TimeFrame", + "description": "(dt. Zeitscheibe) When was a bike where", + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "from", + "description": "format YYYY-MM-dd", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "to", + "description": "format YYYY-MM-dd", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "note", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lendingStation", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cargoBike", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLocked", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isLockedByMe", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedBy", + "description": "null if not locked by other user", + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockedUntil", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TimeFrameCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "from", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "to", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "note", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "lendingStationId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "cargoBikeId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TimeFrameUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "from", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "to", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "note", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "lendingStationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "cargoBikeId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "keepLock", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Address", + "description": null, + "fields": [ + { + "name": "street", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "number", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "zip", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AddressCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "street", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "number", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "zip", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AddressUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "street", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "number", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "zip", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ActionLog", + "description": null, + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "userId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "date", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "action", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entity", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entriesOld", + "description": "in json format", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entriesNew", + "description": "in json format", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Query", + "description": null, + "fields": [ + { + "name": "cargoBikeById", + "description": "Will (eventually) return all properties of cargo bike", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cargoBikes", + "description": "returns cargoBikes ordered by name ascending, relations are not loaded, use cargoBikeById instead", + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "engagementById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Engagement", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "engagements", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Engagement", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "engagementTypeById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "EngagementType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "engagementTypes", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EngagementType", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "equipmentById", + "description": "equipment by id, will return null if id not found", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Equipment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "equipment", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Equipment", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "equipmentTypeById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "EquipmentType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "equipmentTypes", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EquipmentType", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "providerById", + "description": "return null if id not found", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Provider", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "providers", + "description": "unique equipment with pagination, contains relation to bike (with no further joins), so if you wanna know more about the bike, use cargoBikeById", + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Provider", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "participantById", + "description": "participant by id", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "participants", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "workshopTypeById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "WorkshopType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "workshopTypes", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WorkshopType", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "workshopById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Workshop", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "workshops", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Workshop", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lendingStationById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lendingStations", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organisationById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Organisation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organisations", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Organisation", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "timeFrameById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "timeframes", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contactInformationById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contactInformation", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "personById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Person", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "persons", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Person", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeEventTypes", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEventType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeEventTypeByd", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "BikeEventType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeEvents", + "description": null, + "args": [ + { + "name": "offset", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEvent", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeEventById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "BikeEvent", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "actionLog", + "description": "actionLog for current user", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActionLog", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "actionLogByUser", + "description": "actionLog for specific user", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActionLog", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "actionLogAll", + "description": "actionLog form all users", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActionLog", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Mutation", + "description": null, + "fields": [ + { + "name": "createCargoBike", + "description": "CARGO BIKE\ncreates new cargoBike and returns cargobike with new ID", + "args": [ + { + "name": "cargoBike", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CargoBikeCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockCargoBike", + "description": "lock cargoBike returns bike if bike is not locked and locks bike or Error if bike cannot be locked", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockCargoBike", + "description": "unlock cargoBike, returns true if Bike does not exist", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateCargoBike", + "description": "updates cargoBike of given ID with supplied fields and returns updated cargoBike", + "args": [ + { + "name": "cargoBike", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CargoBikeUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteCargoBike", + "description": "true on success", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createEquipment", + "description": "EQUIPMENT\ncreates new peace of unique Equipment", + "args": [ + { + "name": "equipment", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "EquipmentCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Equipment", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockEquipment", + "description": "lock equipment returns true if bike is not locked or if it doesnt exist", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Equipment", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockEquipment", + "description": "unlock Equipment, returns true if Bike does not exist", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Equipment", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateEquipment", + "description": "update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation", + "args": [ + { + "name": "equipment", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "EquipmentUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Equipment", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteEquipment", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createEquipmentType", + "description": null, + "args": [ + { + "name": "equipmentType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "EquipmentTypeCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EquipmentType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockEquipmentType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EquipmentType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockEquipmentType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EquipmentType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateEquipmentType", + "description": null, + "args": [ + { + "name": "equipmentType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "EquipmentTypeUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EquipmentType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteEquipmentType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createLendingStation", + "description": "LENDINGSTATION\ncreates new lendingStation and returns lendingStation with new ID", + "args": [ + { + "name": "lendingStation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LendingStationCreateInput", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockLendingStation", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockLendingStation", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateLendingStation", + "description": "updates lendingStation of given ID with supplied fields and returns updated lendingStation", + "args": [ + { + "name": "lendingStation", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LendingStationUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteLendingStation", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createTimeFrame", + "description": null, + "args": [ + { + "name": "timeFrame", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TimeFrameCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockTimeFrame", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockTimeFrame", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateTimeFrame", + "description": null, + "args": [ + { + "name": "timeFrame", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TimeFrameUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TimeFrame", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteTimeFrame", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createBikeEventType", + "description": "BIKEEVENT", + "args": [ + { + "name": "name", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEventType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockBikeEventType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEventType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockBikeEventType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEventType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateBikeEventType", + "description": null, + "args": [ + { + "name": "bikeEventType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "BikeEventTypeUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEventType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteBikeEventType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createBikeEvent", + "description": "creates new BikeEvent", + "args": [ + { + "name": "bikeEvent", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "BikeEventCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEvent", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockBikeEvent", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEvent", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockBikeEvent", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "BikeEvent", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateBikeEvent", + "description": null, + "args": [ + { + "name": "bikeEvent", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "BikeEventUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "BikeEvent", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteBikeEvent", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createParticipant", + "description": "PARTICIPANTS", + "args": [ + { + "name": "participant", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ParticipantCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockParticipant", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockParticipant", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateParticipant", + "description": null, + "args": [ + { + "name": "participant", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ParticipantUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Participant", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteParticipant", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createWorkshopType", + "description": null, + "args": [ + { + "name": "workshopType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WorkshopTypeCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WorkshopType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockWorkshopType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WorkshopType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockWorkshopType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateWorkshopType", + "description": null, + "args": [ + { + "name": "workshopType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WorkshopTypeUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WorkshopType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteWorkshopType", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createWorkshop", + "description": null, + "args": [ + { + "name": "workshop", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WorkshopCreateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Workshop", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockWorkshop", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Workshop", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "unlockWorkshop", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateWorkshop", + "description": null, + "args": [ + { + "name": "workshop", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WorkshopUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Workshop", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "zip", + "name": "deleteWorkshop", "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Query", - "description": null, - "fields": [ - { - "name": "cargoBikeById", - "description": "Will (evetually) return all properties of cargo bike", "args": [ { "name": "id", @@ -5352,40 +10215,61 @@ } ], "type": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "cargoBikes", - "description": "returns cargoBikes ordered by name ascending, relations are not loaded, use cargoBikeById instead", + "name": "createContactInformation", + "description": "create new contactInfo", "args": [ { - "name": "offset", + "name": "contactInformation", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "ContactInformationCreateInput", "ofType": null } }, "defaultValue": null - }, + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lockContactInformation", + "description": null, + "args": [ { - "name": "limit", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Int", + "name": "ID", "ofType": null } }, @@ -5396,21 +10280,17 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - } + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "providerById", - "description": "return null if id not found", + "name": "unlockContactInformation", + "description": null, "args": [ { "name": "id", @@ -5428,40 +10308,61 @@ } ], "type": { - "kind": "OBJECT", - "name": "Provider", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "equipment", - "description": "unique equipment with pagination, contains relation to bike (with no further joins), so if you wanna know more about the bike, use cargoBikeById", + "name": "updateContactInformation", + "description": null, "args": [ { - "name": "offset", + "name": "contactInformation", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "ContactInformationUpdateInput", "ofType": null } }, "defaultValue": null - }, + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteContactInformation", + "description": null, + "args": [ { - "name": "limit", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Int", + "name": "ID", "ofType": null } }, @@ -5472,31 +10373,27 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Equipment", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "equipmentById", - "description": "equipment by id, will return null if id not found", + "name": "createPerson", + "description": null, "args": [ { - "name": "id", + "name": "person", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "PersonCreateInput", "ofType": null } }, @@ -5504,36 +10401,51 @@ } ], "type": { - "kind": "OBJECT", - "name": "Equipment", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Person", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "providers", + "name": "lockPerson", "description": null, - "args": [], + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Provider", - "ofType": null - } + "kind": "OBJECT", + "name": "Person", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "participantById", - "description": "particcipant by id", + "name": "unlockPerson", + "description": null, "args": [ { "name": "id", @@ -5551,40 +10463,61 @@ } ], "type": { - "kind": "OBJECT", - "name": "Participant", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Person", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "participants", - "description": "p", + "name": "updatePerson", + "description": null, "args": [ { - "name": "offset", + "name": "person", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "PersonUpdateInput", "ofType": null } }, "defaultValue": null - }, + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Person", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deletePerson", + "description": null, + "args": [ { - "name": "limit", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Int", + "name": "ID", "ofType": null } }, @@ -5595,20 +10528,43 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Participant", + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createEngagement", + "description": "create Engagement", + "args": [ + { + "name": "engagement", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "EngagementCreateInput", "ofType": null - } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Engagement", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lendingStationById", + "name": "lockEngagement", "description": null, "args": [ { @@ -5627,40 +10583,61 @@ } ], "type": { - "kind": "OBJECT", - "name": "LendingStation", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Engagement", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lendingStations", + "name": "unlockEngagement", "description": null, "args": [ { - "name": "offset", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Int", + "name": "ID", "ofType": null } }, "defaultValue": null - }, + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateEngagement", + "description": null, + "args": [ { - "name": "limit", + "name": "engagement", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "EngagementUpdateInput", "ofType": null } }, @@ -5671,51 +10648,58 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LendingStation", - "ofType": null - } + "kind": "OBJECT", + "name": "Engagement", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "contactInformation", + "name": "deleteEngagement", "description": null, - "args": [], + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "bikeEventById", - "description": "returns BikeEvent with CargoBike", + "name": "createEngagementType", + "description": null, "args": [ { - "name": "id", + "name": "engagementType", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "EngagementTypeCreateInput", "ofType": null } }, @@ -5727,37 +10711,26 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "BikeEvent", + "name": "EngagementType", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Mutation", - "description": null, - "fields": [ + }, { - "name": "createCargoBike", - "description": "creates new cargoBike and returns cargobike with new ID", + "name": "lockEngagementType", + "description": null, "args": [ { - "name": "cargoBike", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "CargoBikeCreateInput", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, @@ -5769,7 +10742,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CargoBike", + "name": "EngagementType", "ofType": null } }, @@ -5777,8 +10750,8 @@ "deprecationReason": null }, { - "name": "lockCargoBikeById", - "description": "lock cargoBike returns true if bike is not locked or if it doesnt exist", + "name": "unlockEngagementType", + "description": null, "args": [ { "name": "id", @@ -5808,18 +10781,18 @@ "deprecationReason": null }, { - "name": "updateCargoBike", - "description": "updates cargoBike of given ID with supplied fields and returns updated cargoBike", + "name": "updateEngagementType", + "description": null, "args": [ { - "name": "cargoBike", + "name": "engagementType", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CargoBikeUpdateInput", + "name": "EngagementTypeUpdateInput", "ofType": null } }, @@ -5831,7 +10804,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CargoBike", + "name": "EngagementType", "ofType": null } }, @@ -5839,18 +10812,18 @@ "deprecationReason": null }, { - "name": "createEquipment", - "description": "creates new peace of unique Equipment", + "name": "deleteEngagementType", + "description": null, "args": [ { - "name": "equipment", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "EquipmentCreateInput", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, @@ -5861,8 +10834,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Equipment", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, @@ -5870,18 +10843,18 @@ "deprecationReason": null }, { - "name": "lockEquipmentById", - "description": "lock equipment returns true if bike is not locked or if it doesnt exist", + "name": "createProvider", + "description": null, "args": [ { - "name": "id", + "name": "provider", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "ProviderCreateInput", "ofType": null } }, @@ -5892,8 +10865,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "Provider", "ofType": null } }, @@ -5901,18 +10874,18 @@ "deprecationReason": null }, { - "name": "updateEquipment", - "description": "update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation", + "name": "lockProvider", + "description": null, "args": [ { - "name": "equipment", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "EquipmentUpdateInput", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, @@ -5924,7 +10897,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Equipment", + "name": "Provider", "ofType": null } }, @@ -5932,16 +10905,20 @@ "deprecationReason": null }, { - "name": "createLendingStation", - "description": "creates new lendingStation and returns lendingStation with new ID", + "name": "unlockProvider", + "description": null, "args": [ { - "name": "lendingStation", + "name": "id", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LendingStationCreateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null } @@ -5950,8 +10927,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "LendingStation", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, @@ -5959,18 +10936,18 @@ "deprecationReason": null }, { - "name": "updateLendingStation", - "description": "updates lendingStation of given ID with supplied fields and returns updated lendingStation", + "name": "updateProvider", + "description": null, "args": [ { - "name": "lendingstation", + "name": "provider", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "LendingStationUpdateInput", + "name": "ProviderUpdateInput", "ofType": null } }, @@ -5982,7 +10959,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "LendingStation", + "name": "Provider", "ofType": null } }, @@ -5990,16 +10967,20 @@ "deprecationReason": null }, { - "name": "createBikeEvent", - "description": "creates new BikeEvent", + "name": "deleteProvider", + "description": null, "args": [ { - "name": "bikeEvent", + "name": "id", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "BikeEventCreateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null } @@ -6008,8 +10989,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "BikeEvent", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, @@ -6017,18 +10998,18 @@ "deprecationReason": null }, { - "name": "createParticipant", - "description": "create participant", + "name": "createOrganisation", + "description": null, "args": [ { - "name": "participant", + "name": "organisation", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "ParticipantCreateInput", + "name": "OrganisationCreateInput", "ofType": null } }, @@ -6040,7 +11021,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Participant", + "name": "Organisation", "ofType": null } }, @@ -6048,18 +11029,18 @@ "deprecationReason": null }, { - "name": "createContactInformation", - "description": "create new contactInfo", + "name": "lockOrganisation", + "description": null, "args": [ { - "name": "contactInformation", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContactInformationCreateInput", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, @@ -6071,7 +11052,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "ContactInformation", + "name": "Organisation", "ofType": null } }, @@ -6079,16 +11060,20 @@ "deprecationReason": null }, { - "name": "createEngagement", - "description": "create Engagement", + "name": "unlockOrganisation", + "description": null, "args": [ { - "name": "engagement", + "name": "id", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "EngagementCreateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null } @@ -6097,8 +11082,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Engagement", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, @@ -6106,47 +11091,63 @@ "deprecationReason": null }, { - "name": "createContactPerson", - "description": "createContacPerson ,return null if contactInformationId does not exist", + "name": "updateOrganisation", + "description": null, "args": [ { - "name": "contactPerson", + "name": "organisation", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "ContactPersonCreateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OrganisationUpdateInput", + "ofType": null + } }, "defaultValue": null } ], "type": { - "kind": "OBJECT", - "name": "ContactPerson", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Organisation", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updateContactPerson", + "name": "deleteOrganisation", "description": null, "args": [ { - "name": "contactPerson", + "name": "id", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "ContactPersonUpdateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null } ], "type": { - "kind": "OBJECT", - "name": "ContactPerson", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 838ad3b..3928f73 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -21,6 +21,8 @@ import { MatProgressBarModule } from '@angular/material/progress-bar'; import { MatCheckboxModule } from '@angular/material/checkbox'; import {MatCardModule} from '@angular/material/card'; import {MatGridListModule} from '@angular/material/grid-list'; +import {MatTooltipModule} from '@angular/material/tooltip'; + import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; @@ -70,6 +72,7 @@ import { NavService }from './components/menu-list-item/nav.service'; MatCheckboxModule, GraphQLModule, DragDropModule, + MatTooltipModule ], providers: [NavService], bootstrap: [AppComponent], diff --git a/src/app/graphql.module.ts b/src/app/graphql.module.ts index 5632d0a..fd2d0f5 100644 --- a/src/app/graphql.module.ts +++ b/src/app/graphql.module.ts @@ -8,6 +8,7 @@ import { } from '@apollo/client/core'; import { HttpLink } from 'apollo-angular/http'; import { environment } from '../environments/environment'; +import { DefaultOptions } from '@apollo/client/core/ApolloClient'; const uri = environment.apiUrl + '/graphql'; // <-- add the URL of the GraphQL server here @@ -24,10 +25,22 @@ const authMiddleware = new ApolloLink((operation, forward) => { }); }); +const defaultOptions: DefaultOptions = { + watchQuery: { + fetchPolicy: 'no-cache', + errorPolicy: 'ignore', + }, + query: { + fetchPolicy: 'no-cache', + errorPolicy: 'all', + }, +} + export function createApollo(httpLink: HttpLink): ApolloClientOptions { return { link: concat(authMiddleware, httpLink.create({ uri })), cache: new InMemoryCache({}), + defaultOptions: defaultOptions, }; } diff --git a/src/app/graphqlOperations/bike.graphql b/src/app/graphqlOperations/bike.graphql index f394a48..5da5257 100644 --- a/src/app/graphqlOperations/bike.graphql +++ b/src/app/graphqlOperations/bike.graphql @@ -9,3 +9,15 @@ mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) { ...CargoBikeFields } } + +mutation LockCargoBike($id: ID!) { + lockCargoBike(id: $id) { + ...CargoBikeFields + } +} + +mutation UnlockCargoBike($id: ID!) { + unlockCargoBike(id: $id) { + ...CargoBikeFields + } +} diff --git a/src/app/graphqlOperations/fragments/bikeFragment.graphql b/src/app/graphqlOperations/fragments/bikeFragment.graphql index 5da4b7a..7f46a9e 100644 --- a/src/app/graphqlOperations/fragments/bikeFragment.graphql +++ b/src/app/graphqlOperations/fragments/bikeFragment.graphql @@ -6,8 +6,6 @@ fragment CargoBikeFieldsMutable on CargoBike { billing hasFixedRate } - lockedBy - lockedUntil dimensionsAndLoad { bikeLength bikeWeight @@ -43,4 +41,8 @@ fragment CargoBikeFields on CargoBike { date id } + isLocked + isLockedByMe + lockedBy + lockedUntil } diff --git a/src/app/pages/tables/bikes/bikes.component.html b/src/app/pages/tables/bikes/bikes.component.html index d52078a..a3e8b3d 100644 --- a/src/app/pages/tables/bikes/bikes.component.html +++ b/src/app/pages/tables/bikes/bikes.component.html @@ -1,6 +1,18 @@
- + +
Name @@ -54,10 +66,12 @@ - + @@ -65,10 +79,12 @@ - + + diff --git a/src/app/pages/tables/bikes/bikes.component.scss b/src/app/pages/tables/bikes/bikes.component.scss index 23cb5a9..4707531 100644 --- a/src/app/pages/tables/bikes/bikes.component.scss +++ b/src/app/pages/tables/bikes/bikes.component.scss @@ -5,6 +5,9 @@ .table-control { margin: 0.5em; flex: none; + .table-control-button { + margin: 0.25em; + } } .table-container { flex: 1; diff --git a/src/app/pages/tables/bikes/bikes.component.ts b/src/app/pages/tables/bikes/bikes.component.ts index 37c7c59..503c136 100644 --- a/src/app/pages/tables/bikes/bikes.component.ts +++ b/src/app/pages/tables/bikes/bikes.component.ts @@ -4,13 +4,15 @@ import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'; import { BikesService, CargoBikeResult } from 'src/app/services/bikes.service'; import { deepCopy } from 'src/app/helperFunctions/deepCopy'; import { filter } from 'graphql-anywhere'; -import {CargoBikeFieldsMutableFragmentDoc, CargoBikeUpdateInput} from 'src/generated/graphql'; +import { + CargoBikeFieldsMutableFragmentDoc, + CargoBikeUpdateInput, +} from 'src/generated/graphql'; type CargoBikeDataRow = CargoBikeResult & { waitingForEditPermissions: boolean; saving: boolean; - isGettingEdited: boolean; - locked: boolean; + unlocking: boolean; }; @Component({ @@ -32,44 +34,62 @@ export class BikesComponent { bikes = >[]; selection = new SelectionModel(true, []); + reloadingTable = false; + + relockingInterval = null; + relockingDuration = 1000 * 60 * 1; + constructor(private bikesService: BikesService) { bikesService.bikes.subscribe((bikes) => { + this.reloadingTable = false; this.bikes = bikes.map((bike) => { return Object.assign({}, deepCopy(bike), { waitingForEditPermissions: false, - isGettingEdited: false, - locked: false, - saving: false + saving: false, + unlocking: false, }); }); - if (this.bikes.length > 6) { - this.bikes[5].locked = true; - this.bikes[2].locked = true; - } }); bikesService.loadBikes(); } + ngOnInit() { + this.relockingInterval = setInterval(() => { + for (const bike of this.bikes) { + if (bike.isLockedByMe) { + this.bikesService.relockBike({ id: bike.id }); + } + } + }, this.relockingDuration); + } + + ngOnDestroy() { + clearInterval(this.relockingInterval); + } + + reloadTable() { + console.log("reload") + this.reloadingTable = true; + this.bikesService.loadBikes(); + } + edit(row: CargoBikeDataRow) { row.waitingForEditPermissions = true; - setTimeout(() => { - row.waitingForEditPermissions = false; - row.isGettingEdited = true; - }, Math.random()*1000); + this.bikesService.lockBike({ id: row.id }); } save(row: CargoBikeDataRow) { - //TODO: remove lock row.saving = true; - row.isGettingEdited = false; - const bike: CargoBikeUpdateInput = filter(CargoBikeFieldsMutableFragmentDoc, row) - this.bikesService.updateBike({bike}) + const bike: CargoBikeUpdateInput = filter( + CargoBikeFieldsMutableFragmentDoc, + row + ); + this.bikesService.updateBike({ bike }); } cancel(row: CargoBikeDataRow) { - //fetch it again - //TODO: remove lock - this.bikesService.reloadBike({ id: row.id }); + row.unlocking = true; + this.bikesService.unlockBike({ id: row.id }); } drop(event: CdkDragDrop) { diff --git a/src/app/services/bikes.service.ts b/src/app/services/bikes.service.ts index 3eadb57..3d9d25c 100644 --- a/src/app/services/bikes.service.ts +++ b/src/app/services/bikes.service.ts @@ -1,17 +1,37 @@ import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; -import { GetCargoBikesGQL, GetCargoBikesQuery, GetCargoBikeByIdGQL, GetCargoBikeByIdQueryVariables, UpdateCargoBikeGQL, UpdateCargoBikeMutationVariables, UpdateCargoBikeDocument, CargoBikeFieldsFragmentDoc} from 'src/generated/graphql'; +import { + GetCargoBikesGQL, + GetCargoBikesQuery, + GetCargoBikeByIdGQL, + GetCargoBikeByIdQueryVariables, + UpdateCargoBikeGQL, + UpdateCargoBikeMutationVariables, + LockCargoBikeGQL, + LockCargoBikeMutationVariables, + UnlockCargoBikeGQL, + UnlockCargoBikeMutationVariables +} from 'src/generated/graphql'; import { DeepExtractTypeSkipArrays } from 'ts-deep-extract-types'; -export type CargoBikeResult = DeepExtractTypeSkipArrays; +export type CargoBikeResult = DeepExtractTypeSkipArrays< + GetCargoBikesQuery, + ['cargoBikes'] +>; @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class BikesService { bikes: BehaviorSubject = new BehaviorSubject([]); - constructor(private getCargoBikesGQL: GetCargoBikesGQL, private getCargoBikeByIdGQL: GetCargoBikeByIdGQL, private updateCargoBikeGQL: UpdateCargoBikeGQL) { } + constructor( + private getCargoBikesGQL: GetCargoBikesGQL, + private getCargoBikeByIdGQL: GetCargoBikeByIdGQL, + private updateCargoBikeGQL: UpdateCargoBikeGQL, + private lockCargoBikeGQL: LockCargoBikeGQL, + private unlockCargoBikeGQL: UnlockCargoBikeGQL + ) { } loadBikes() { this.getCargoBikesGQL.fetch().subscribe((result) => { @@ -22,14 +42,48 @@ export class BikesService { reloadBike(variables: GetCargoBikeByIdQueryVariables) { this.getCargoBikeByIdGQL.fetch(variables).subscribe((result) => { const newBike = result.data.cargoBikeById; - this.bikes.next(this.bikes.value.map(bike => (newBike.id === bike.id) ? newBike : bike)); + this.bikes.next( + this.bikes.value.map((bike) => + newBike.id === bike.id ? newBike : bike + ) + ); }); } updateBike(variableValues: UpdateCargoBikeMutationVariables) { this.updateCargoBikeGQL.mutate(variableValues).subscribe((result) => { const newBike = result.data.updateCargoBike; - this.bikes.next(this.bikes.value.map(bike => (newBike.id === bike.id) ? newBike : bike)); + this.bikes.next( + this.bikes.value.map((bike) => + newBike.id === bike.id ? newBike : bike + ) + ); + }); + } + + lockBike(variables: LockCargoBikeMutationVariables) { + this.lockCargoBikeGQL.mutate(variables).subscribe((result) => { + const lockedBike = result.data.lockCargoBike; + this.bikes.next( + this.bikes.value.map((bike) => + lockedBike.id === bike.id ? lockedBike : bike + ) + ); + }) + } + + unlockBike(variables: LockCargoBikeMutationVariables) { + this.unlockCargoBikeGQL.mutate(variables).subscribe((result) => { + const unlockedBike = result.data.unlockCargoBike; + this.bikes.next( + this.bikes.value.map((bike) => + unlockedBike.id === bike.id ? unlockedBike : bike + ) + ); }) } + + relockBike(variables: LockCargoBikeMutationVariables) { + this.lockCargoBikeGQL.mutate(variables).subscribe(); + } } diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index 2430b8f..ad3f569 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10,7 +10,10 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + /** timestamp object YYYY-MM-ddThh:mm:ss.sssZ */ Date: any; + /** only time hh-mm-ss */ + Time: any; /** The `Upload` scalar type represents a file upload. */ Upload: any; }; @@ -18,6 +21,7 @@ export type Scalars = { + /** The CargoBike type is central to the graph. You could call it the root. */ export type CargoBike = { __typename?: 'CargoBike'; @@ -32,32 +36,44 @@ export type CargoBike = { numberOfChildren: Scalars['Int']; /** * Safety is a custom type, that stores information about security features. - * TODO: Should this be calles Security? + * TODO: Should this be called Security? */ security: Security; - /** Does not refere to an extra table in the database. */ + /** Does not refer to an extra table in the database. */ technicalEquipment?: Maybe; - /** Does not refere to an extra table in the database. */ + /** Does not refer to an extra table in the database. */ dimensionsAndLoad: DimensionsAndLoad; bikeEvents?: Maybe>>; equipment?: Maybe>>; /** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ - miscellaneousEquipment?: Maybe>>; + equipmentType?: Maybe>>; /** Sticker State */ stickerBikeNameState?: Maybe; note?: Maybe; provider?: Maybe; - coordinator?: Maybe; + /** all participants currently engaged with the cargoBike */ + participants?: Maybe>>; insuranceData: InsuranceData; lendingStation?: Maybe; taxes?: Maybe; + currentEngagements?: Maybe>>; engagement?: Maybe>>; + timeFrames?: Maybe>>; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; lockedUntil?: Maybe; }; +/** The CargoBike type is central to the graph. You could call it the root. */ +export type CargoBikeBikeEventsArgs = { + offset?: Maybe; + limit?: Maybe; +}; + + /** The CargoBike type is central to the graph. You could call it the root. */ export type CargoBikeEquipmentArgs = { offset: Scalars['Int']; @@ -71,6 +87,7 @@ export type CargoBikeEngagementArgs = { limit: Scalars['Int']; }; +/** if you want to add bike to a lending station, create a new timeFrame with to: Date = null */ export type CargoBikeCreateInput = { /** see column A in info tabelle */ group: Group; @@ -82,23 +99,24 @@ export type CargoBikeCreateInput = { numberOfChildren: Scalars['Int']; /** * Safety is a custom type, that stores information about security features. - * TODO: Should this be calles Security? + * TODO: Should this be called Security? */ security: SecurityCreateInput; - /** Does not refere to an extra table in the database. */ + /** Does not refer to an extra table in the database. */ technicalEquipment: TechnicalEquipmentCreateInput; - /** Does not refere to an extra table in the database. */ + /** Does not refer to an extra table in the database. */ dimensionsAndLoad: DimensionsAndLoadCreateInput; /** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ - miscellaneousEquipment?: Maybe>>; + equipmentTypeIds?: Maybe>>; /** Sticker State */ stickerBikeNameState?: Maybe; note?: Maybe; - provider?: Maybe; + providerId?: Maybe; insuranceData: InsuranceDataCreateInput; taxes: TaxesCreateInput; }; +/** if you want to add bike to a lending station, create a new timeFrame with to: Date = null */ export type CargoBikeUpdateInput = { id: Scalars['ID']; /** see column A in info tabelle */ @@ -111,35 +129,39 @@ export type CargoBikeUpdateInput = { numberOfChildren?: Maybe; /** * Safety is a custom type, that stores information about security features. - * TODO: Should this be calles Security? + * TODO: Should this be called Security? */ security?: Maybe; - /** Does not refere to an extra table in the database. */ + /** Does not refer to an extra table in the database. */ technicalEquipment?: Maybe; - /** Does not refere to an extra table in the database. */ + /** Does not refer to an extra table in the database. */ dimensionsAndLoad?: Maybe; - /** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ - miscellaneousEquipment?: Maybe>>; - lendingStationId?: Maybe; + /** + * Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 + * If set, ols realtions will be over written. Set [] to delete all + */ + equipmentTypeIds?: Maybe>>; /** Sticker State */ stickerBikeNameState?: Maybe; note?: Maybe; provider?: Maybe; insuranceData?: Maybe; taxes?: Maybe; + /** will keep Bike locked if set to true, default = false */ + keepLock?: Maybe; }; export type InsuranceData = { __typename?: 'InsuranceData'; - /** Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies. */ + /** Eventually, this field will become an enum or a separate data table and user can choose from a pool of insurance companies. */ name: Scalars['String']; benefactor: Scalars['String']; billing: Scalars['String']; noPnP: Scalars['String']; /** eg. Anbieter, flotte, eigenleistung */ - maintananceResponsible: Scalars['String']; - maintananceBenefactor: Scalars['String']; - maintananceAgreement?: Maybe; + maintenanceResponsible: Scalars['String']; + maintenanceBenefactor: Scalars['String']; + maintenanceAgreement?: Maybe; hasFixedRate: Scalars['Boolean']; fixedRate?: Maybe; /** Projektzuschuss */ @@ -148,15 +170,15 @@ export type InsuranceData = { }; export type InsuranceDataCreateInput = { - /** Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies. */ + /** Eventually, this field will become an enum or a separate data table and user can choose from a pool of insurance companies. */ name: Scalars['String']; benefactor: Scalars['String']; billing: Scalars['String']; noPnP: Scalars['String']; /** eg. Anbieter, flotte, eigenleistung */ - maintananceResponsible: Scalars['String']; - maintananceBenefactor: Scalars['String']; - maintananceAgreement?: Maybe; + maintenanceResponsible: Scalars['String']; + maintenanceBenefactor: Scalars['String']; + maintenanceAgreement?: Maybe; hasFixedRate: Scalars['Boolean']; fixedRate?: Maybe; /** Projektzuschuss */ @@ -165,15 +187,15 @@ export type InsuranceDataCreateInput = { }; export type InsuranceDataUpdateInput = { - /** Eventuelly, this field will become an enum or a seperate data table and user can choose from a pool of insurance companies. */ + /** Eventually, this field will become an enum or a separate data table and user can choose from a pool of insurance companies. */ name?: Maybe; benefactor?: Maybe; billing?: Maybe; noPnP?: Maybe; /** eg. Anbieter, flotte, eigenleistung */ - maintananceResponsible?: Maybe; - maintananceBenefactor?: Maybe; - maintananceAgreement?: Maybe; + maintenanceResponsible?: Maybe; + maintenanceBenefactor?: Maybe; + maintenanceAgreement?: Maybe; hasFixedRate?: Maybe; fixedRate?: Maybe; /** Projektzuschuss */ @@ -181,6 +203,119 @@ export type InsuranceDataUpdateInput = { notes?: Maybe; }; +/** How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table. */ +export type DimensionsAndLoad = { + __typename?: 'DimensionsAndLoad'; + hasCoverBox: Scalars['Boolean']; + lockable: Scalars['Boolean']; + boxLength: Scalars['Float']; + boxWidth: Scalars['Float']; + boxHeight: Scalars['Float']; + maxWeightBox: Scalars['Float']; + maxWeightLuggageRack: Scalars['Float']; + maxWeightTotal: Scalars['Float']; + bikeLength: Scalars['Float']; + bikeWidth?: Maybe; + bikeHeight?: Maybe; + bikeWeight?: Maybe; +}; + +export type DimensionsAndLoadCreateInput = { + hasCoverBox: Scalars['Boolean']; + lockable: Scalars['Boolean']; + boxLength: Scalars['Float']; + boxWidth: Scalars['Float']; + boxHeight: Scalars['Float']; + maxWeightBox: Scalars['Float']; + maxWeightLuggageRack: Scalars['Float']; + maxWeightTotal: Scalars['Float']; + bikeLength: Scalars['Float']; + bikeWidth?: Maybe; + bikeHeight?: Maybe; + bikeWeight?: Maybe; +}; + +export type DimensionsAndLoadUpdateInput = { + hasCoverBox?: Maybe; + lockable?: Maybe; + boxLength?: Maybe; + boxWidth?: Maybe; + boxHeight?: Maybe; + maxWeightBox?: Maybe; + maxWeightLuggageRack?: Maybe; + maxWeightTotal?: Maybe; + bikeLength?: Maybe; + bikeWidth?: Maybe; + bikeHeight?: Maybe; + bikeWeight?: Maybe; +}; + +/** + * Some Technical Info about the bike. + * This should be 1-1 Relation with the CargoBike. + * So no id needed for mutation. One Mutation for the CargoBike will be enough. + */ +export type TechnicalEquipment = { + __typename?: 'TechnicalEquipment'; + bicycleShift: Scalars['String']; + isEBike: Scalars['Boolean']; + hasLightSystem: Scalars['Boolean']; + specialFeatures?: Maybe; +}; + +export type TechnicalEquipmentCreateInput = { + bicycleShift: Scalars['String']; + isEBike: Scalars['Boolean']; + hasLightSystem: Scalars['Boolean']; + specialFeatures?: Maybe; +}; + +export type TechnicalEquipmentUpdateInput = { + bicycleShift?: Maybe; + isEBike?: Maybe; + hasLightSystem?: Maybe; + specialFeatures?: Maybe; +}; + +/** + * The Security Info about the bike. + * his should be 1-1 Relation with the CargoBike. + * So no id needed for mutation. One Mutation for the CargoBike will be enough. + */ +export type Security = { + __typename?: 'Security'; + frameNumber: Scalars['String']; + keyNumberFrameLock?: Maybe; + keyNumberAXAChain?: Maybe; + policeCoding?: Maybe; + adfcCoding?: Maybe; +}; + +export type SecurityCreateInput = { + frameNumber: Scalars['String']; + keyNumberFrameLock?: Maybe; + keyNumberAXAChain?: Maybe; + policeCoding?: Maybe; + adfcCoding?: Maybe; +}; + +export type SecurityUpdateInput = { + frameNumber?: Maybe; + keyNumberFrameLock?: Maybe; + keyNumberAXAChain?: Maybe; + policeCoding?: Maybe; + adfcCoding?: Maybe; +}; + +export enum StickerBikeNameState { + Ok = 'OK', + Improve = 'IMPROVE', + Produced = 'PRODUCED', + Noneed = 'NONEED', + Missing = 'MISSING', + Unknown = 'UNKNOWN' +} + export enum Group { Kl = 'KL', Li = 'LI', @@ -192,19 +327,6 @@ export enum Group { Tk = 'TK' } -/** - * The BikeModel can be used for instantiate new bikes with a given model. - * It should only be used to fill in default values. - * Even bikes of the same model can have different properties. - */ -export type BikeModel = { - __typename?: 'BikeModel'; - id: Scalars['ID']; - name: Scalars['String']; - dimensionsAndLoad: DimensionsAndLoad; - technicalEquipment: TechnicalEquipment; -}; - export type Participant = { __typename?: 'Participant'; id: Scalars['ID']; @@ -214,18 +336,8 @@ export type Participant = { usernamefLotte?: Maybe; usernameSlack?: Maybe; memberADFC: Scalars['Boolean']; - locationZIPs?: Maybe>>; + locationZIPs: Array>; memberCoreTeam: Scalars['Boolean']; - roleCoordinator: Scalars['Boolean']; - roleEmployeADFC: Scalars['Boolean']; - /** Wahr, wenn die Person Pate ist. */ - roleMentor: Scalars['Boolean']; - roleAmbulance: Scalars['Boolean']; - roleBringer: Scalars['Boolean']; - /** Date of workshop to become Mentor dt. Pate */ - workshopMentor?: Maybe; - /** Date of last Erste Hilfe Kurs? */ - workshopAmbulance?: Maybe; /** * Note the kommentierte Infodaten Tabelle. * This value is calculated form other values. @@ -233,85 +345,186 @@ export type Participant = { * and is either Mentor dt. Pate or Partner Mentor dt. Partnerpate for at least one bike. */ distributedActiveBikeParte: Scalars['Boolean']; - reserve?: Maybe; engagement?: Maybe>>; + workshops?: Maybe>>; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; }; export type ParticipantCreateInput = { - start: Scalars['Date']; + /** if not set, CURRENT_DATE will be used */ + start?: Maybe; end?: Maybe; /** must create contactinformation first, if you want to use new */ contactInformationId: Scalars['ID']; usernamefLotte?: Maybe; usernameSlack?: Maybe; + /** default: false */ memberADFC: Scalars['Boolean']; + locationZIPs: Array>; + /** default: false */ + memberCoreTeam?: Maybe; + workshopIds?: Maybe>>; +}; + +export type ParticipantUpdateInput = { + id: Scalars['ID']; + /** if not set, CURRENT_DATE will be used */ + start?: Maybe; + end?: Maybe; + /** must create contactinformation first, if you want to use new */ + contactInformationId?: Maybe; + usernamefLotte?: Maybe; + usernameSlack?: Maybe; + /** default: false */ + memberADFC?: Maybe; locationZIPs?: Maybe>>; - memberCoreTeam: Scalars['Boolean']; - /** Date of workshop to become Mentor dt. Pate */ - workshopMentor?: Maybe; - /** Date of last Erste Hilfe Kurs? */ - workshopAmbulance?: Maybe; - reserve?: Maybe; + /** default: false */ + memberCoreTeam?: Maybe; + workshopIds?: Maybe>>; + keepLock?: Maybe; +}; + +export type Workshop = { + __typename?: 'Workshop'; + id: Scalars['ID']; + title: Scalars['String']; + description: Scalars['String']; + date: Scalars['Date']; + workshopType: WorkshopType; + trainer1: Participant; + trainer2?: Maybe; + participants?: Maybe>>; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +export type WorkshopCreateInput = { + title: Scalars['String']; + description?: Maybe; + date: Scalars['Date']; + workshopTypeId: Scalars['ID']; + trainer1Id: Scalars['ID']; + trainer2Id?: Maybe; +}; + +export type WorkshopUpdateInput = { + id: Scalars['ID']; + title?: Maybe; + description?: Maybe; + date: Scalars['Date']; + workshopTypeId?: Maybe; + trainer1Id?: Maybe; + trainer2Id?: Maybe; + keepLock?: Maybe; +}; + +export type WorkshopType = { + __typename?: 'WorkshopType'; + id: Scalars['ID']; + name: Scalars['String']; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +export type WorkshopTypeCreateInput = { + name: Scalars['String']; +}; + +export type WorkshopTypeUpdateInput = { + id: Scalars['ID']; + name?: Maybe; +}; + +export type EngagementType = { + __typename?: 'EngagementType'; + id: Scalars['ID']; + name: Scalars['String']; + description: Scalars['String']; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +export type EngagementTypeCreateInput = { + name: Scalars['String']; + description?: Maybe; +}; + +export type EngagementTypeUpdateInput = { + id: Scalars['ID']; + name?: Maybe; + description?: Maybe; + keepLock?: Maybe; }; export type Engagement = { __typename?: 'Engagement'; id: Scalars['ID']; + engagementType: EngagementType; from: Scalars['Date']; to?: Maybe; - participant?: Maybe; - cargoBike?: Maybe; - roleCoordinator: Scalars['Boolean']; - roleEmployeADFC: Scalars['Boolean']; - /** Wahr, wenn die Person Pate ist. */ - roleMentor: Scalars['Boolean']; - roleAmbulance: Scalars['Boolean']; - roleBringer: Scalars['Boolean']; + participant: Participant; + cargoBike: CargoBike; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; }; export type EngagementCreateInput = { - from: Scalars['Date']; + engagementTypeId: Scalars['ID']; + /** will use CURRENT_DATE if not set */ + from?: Maybe; + /** will use infinit if not set */ to?: Maybe; participantId: Scalars['ID']; cargoBikeId: Scalars['ID']; - roleCoordinator: Scalars['Boolean']; - roleEmployeADFC: Scalars['Boolean']; - /** Wahr, wenn die Person Pate ist. */ - roleMentor: Scalars['Boolean']; - roleAmbulance: Scalars['Boolean']; - roleBringer: Scalars['Boolean']; +}; + +export type EngagementUpdateInput = { + id: Scalars['ID']; + engagementTypeId?: Maybe; + from?: Maybe; + to?: Maybe; + participantId?: Maybe; + cargoBikeId?: Maybe; + keepLock?: Maybe; }; export type Taxes = { __typename?: 'Taxes'; costCenter: Scalars['String']; - organizationArea?: Maybe; + organisationArea?: Maybe; }; export type TaxesCreateInput = { costCenter: Scalars['String']; - organizationArea?: Maybe; + organisationArea?: Maybe; }; export type TaxesUpdateInput = { costCenter?: Maybe; - organizationArea?: Maybe; + organisationArea?: Maybe; }; -export enum OrganizationArea { +export enum OrganisationArea { Ib = 'IB', Zb = 'ZB' } -export type ChainSwap = { - __typename?: 'ChainSwap'; - id: Scalars['ID']; - /** TODO why is this a string" */ - mechanic?: Maybe; - timeOfSwap?: Maybe; - keyNumberOldAXAChain?: Maybe; -}; - /** * This type represents a piece of equipment that represents a real physical object. * The object must be unique. So it is possible to tell it apart from similar objects by a serial number. @@ -320,548 +533,1133 @@ export type Equipment = { __typename?: 'Equipment'; id: Scalars['ID']; serialNo: Scalars['String']; - /** TODO unclear what this means. tomy fragen */ - investable?: Maybe; title: Scalars['String']; description?: Maybe; cargoBike?: Maybe; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; }; export type EquipmentCreateInput = { serialNo: Scalars['String']; - /** TODO unclear what this means. tomy fragen */ title: Scalars['String']; description?: Maybe; - investable?: Maybe; cargoBikeId?: Maybe; }; export type EquipmentUpdateInput = { id: Scalars['ID']; serialNo?: Maybe; - /** TODO unclear what this means. tomy fragen */ title?: Maybe; description?: Maybe; - investable?: Maybe; cargoBikeId?: Maybe; + /** will keep Bike locked if set to true, default = false */ + keepLock?: Maybe; +}; + +export type EquipmentType = { + __typename?: 'EquipmentType'; + id: Scalars['ID']; + name: Scalars['String']; + description: Scalars['String']; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +export type EquipmentTypeCreateInput = { + name?: Maybe; + description?: Maybe; +}; + +export type EquipmentTypeUpdateInput = { + id: Scalars['ID']; + name?: Maybe; + description?: Maybe; + keepLock?: Maybe; }; /** An Event is a point in time, when the state of the bike somehow changed. */ export type BikeEvent = { __typename?: 'BikeEvent'; id: Scalars['ID']; - eventType: BikeEventType; + bikeEventType: BikeEventType; cargoBike: CargoBike; + responsible?: Maybe; + related?: Maybe; date: Scalars['Date']; - note?: Maybe; + description?: Maybe; /** Path to documents */ documents: Array>; + remark?: Maybe; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; }; export type BikeEventCreateInput = { - eventType: BikeEventType; - /** it is enough to pass the cargoBike id */ + bikeEventTypeId: Scalars['ID']; cargoBikeId: Scalars['ID']; + responsibleId?: Maybe; + relatedId?: Maybe; date: Scalars['Date']; - note?: Maybe; + description?: Maybe; /** Path to documents */ - documents: Array>; + documents?: Maybe>>; + remark?: Maybe; }; -/** TODO: Some eventTypes are missing */ -export enum BikeEventType { - /** - * The enum EventType can also be represented as an enum in postgresQL. - * It is possible to add items to an enum in postgresQL without changing the source code. - * However, it not possible to change the graphQL schema. - * Concluding we should not use an enum here, if users want to add EventTypes to the enum. - */ - Kauf = 'KAUF', - Inbetriebnahme = 'INBETRIEBNAHME', - Ausfall = 'AUSFALL', - Wartung = 'WARTUNG', - Andere = 'ANDERE' -} +export type BikeEventUpdateInput = { + id: Scalars['ID']; + bikeEventTypeId?: Maybe; + cargoBikeId?: Maybe; + responsibleId?: Maybe; + relatedId?: Maybe; + date?: Maybe; + description?: Maybe; + /** Path to documents */ + documents?: Maybe>>; + remark?: Maybe; + keepLock?: Maybe; +}; -/** How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table. */ -export type DimensionsAndLoad = { - __typename?: 'DimensionsAndLoad'; - hasCoverBox: Scalars['Boolean']; - lockable: Scalars['Boolean']; - boxLength: Scalars['Float']; - boxWidth: Scalars['Float']; - boxHeight: Scalars['Float']; - maxWeightBox: Scalars['Float']; - maxWeightLuggageRack: Scalars['Float']; - maxWeightTotal: Scalars['Float']; - bikeLength: Scalars['Float']; - bikeWidth?: Maybe; - bikeHeight?: Maybe; - bikeWeight?: Maybe; +export type BikeEventType = { + __typename?: 'BikeEventType'; + id: Scalars['ID']; + name: Scalars['String']; + isLockedByMe: Scalars['Boolean']; + isLocked: Scalars['Boolean']; + lockedUntil?: Maybe; }; -export type DimensionsAndLoadCreateInput = { - hasCoverBox: Scalars['Boolean']; - lockable: Scalars['Boolean']; - boxLength: Scalars['Float']; - boxWidth: Scalars['Float']; - boxHeight: Scalars['Float']; - maxWeightBox: Scalars['Float']; - maxWeightLuggageRack: Scalars['Float']; - maxWeightTotal: Scalars['Float']; - bikeLength: Scalars['Float']; - bikeWidth?: Maybe; - bikeHeight?: Maybe; - bikeWeight?: Maybe; +export type BikeEventTypeUpdateInput = { + id: Scalars['ID']; + name?: Maybe; + keepLock?: Maybe; }; -export type DimensionsAndLoadUpdateInput = { - hasCoverBox?: Maybe; - lockable?: Maybe; - boxLength?: Maybe; - boxWidth?: Maybe; - boxHeight?: Maybe; - maxWeightBox?: Maybe; - maxWeightLuggageRack?: Maybe; - maxWeightTotal?: Maybe; - bikeLength?: Maybe; - bikeWidth?: Maybe; - bikeHeight?: Maybe; - bikeWeight?: Maybe; +/** (dt. Anbieter) bezieht sich auf die Beziehung einer Person oder Organisation zum Lastenrad */ +export type Provider = { + __typename?: 'Provider'; + id: Scalars['ID']; + formName?: Maybe; + privatePerson?: Maybe; + organisation?: Maybe; + cargoBikes?: Maybe>>; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +/** (dt. Anbieter) */ +export type ProviderCreateInput = { + formName: Scalars['String']; + privatePersonId?: Maybe; + organisationId?: Maybe; + cargoBikeIds?: Maybe>>; +}; + +export type ProviderUpdateInput = { + id: Scalars['ID']; + formName?: Maybe; + privatePersonId?: Maybe; + organisationId?: Maybe; + /** cargoBikes are added, you can not take existing relations away. use update cargoBike or add bike to another provider instead */ + cargoBikeIds?: Maybe>>; + keepLock?: Maybe; }; /** - * Some Technical Info about the bike. - * This should be 1-1 Relation with the CargoBike. - * So no id needed for mutation. One Mutation for the CargoBike will be enough. + * A Person can have several instances of contact information. + * The reason for this is, that some people have info for interns and externals that are different. */ -export type TechnicalEquipment = { - __typename?: 'TechnicalEquipment'; - bicycleShift: Scalars['String']; - isEBike: Scalars['Boolean']; - hasLightSystem: Scalars['Boolean']; - specialFeatures?: Maybe; +export type Person = { + __typename?: 'Person'; + id: Scalars['ID']; + name: Scalars['String']; + firstName: Scalars['String']; + contactInformation?: Maybe>>; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; }; -export type TechnicalEquipmentCreateInput = { - bicycleShift: Scalars['String']; - isEBike: Scalars['Boolean']; - hasLightSystem: Scalars['Boolean']; - specialFeatures?: Maybe; +export type PersonCreateInput = { + name: Scalars['String']; + firstName: Scalars['String']; }; -export type TechnicalEquipmentUpdateInput = { - bicycleShift?: Maybe; - isEBike?: Maybe; - hasLightSystem?: Maybe; - specialFeatures?: Maybe; +export type PersonUpdateInput = { + id: Scalars['ID']; + name?: Maybe; + firstName?: Maybe; + keepLock?: Maybe; }; -/** - * The Security Info about the bike. - * his should be 1-1 Relation with the CargoBike. - * So no id needed for mutation. One Mutation for the CargoBike will be enough. - */ -export type Security = { - __typename?: 'Security'; - frameNumber: Scalars['String']; - keyNumberFrameLock?: Maybe; - keyNumberAXAChain?: Maybe; - policeCoding?: Maybe; - adfcCoding?: Maybe; +export type ContactInformation = { + __typename?: 'ContactInformation'; + id: Scalars['ID']; + person: Person; + phone?: Maybe; + phone2?: Maybe; + email?: Maybe; + email2?: Maybe; + note?: Maybe; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; }; -export type SecurityCreateInput = { - frameNumber: Scalars['String']; - keyNumberFrameLock?: Maybe; - keyNumberAXAChain?: Maybe; - policeCoding?: Maybe; - adfcCoding?: Maybe; +export type ContactInformationCreateInput = { + personId: Scalars['ID']; + phone?: Maybe; + phone2?: Maybe; + email?: Maybe; + email2?: Maybe; + note?: Maybe; }; -export type SecurityUpdateInput = { - frameNumber?: Maybe; - keyNumberFrameLock?: Maybe; - keyNumberAXAChain?: Maybe; - policeCoding?: Maybe; - adfcCoding?: Maybe; +export type ContactInformationUpdateInput = { + id: Scalars['ID']; + personId?: Maybe; + phone?: Maybe; + phone2?: Maybe; + email?: Maybe; + email2?: Maybe; + note?: Maybe; + keepLock?: Maybe; }; -export enum StickerBikeNameState { - Ok = 'OK', - Improve = 'IMPROVE', - Produced = 'PRODUCED', - Noneed = 'NONEED', - Missing = 'MISSING', - Unknown = 'UNKNOWN' -} +export type Organisation = { + __typename?: 'Organisation'; + id: Scalars['ID']; + name: Scalars['String']; + address?: Maybe
; + /** (dt. Ausleihstation) */ + lendingStations?: Maybe>>; + /** registration number of association */ + associationNo?: Maybe; + /** If Club, at what court registered */ + registeredAt?: Maybe; + provider?: Maybe; + contactInformation?: Maybe; + otherData?: Maybe; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; -/** (dt. Anbieter) */ -export type Provider = { - __typename?: 'Provider'; +export type OrganisationCreateInput = { + address: AddressCreateInput; + name: Scalars['String']; + /** registration number of association */ + associationNo: Scalars['String']; + /** If Club, at what court registered */ + registeredAt?: Maybe; + contactInformationId?: Maybe; + otherData?: Maybe; +}; + +export type OrganisationUpdateInput = { + id: Scalars['ID']; + address?: Maybe; + name?: Maybe; + /** registration number of association */ + associationNo?: Maybe; + /** If Club, at what court registered */ + registeredAt?: Maybe; + contactInformationId?: Maybe; + otherData?: Maybe; + keepLock?: Maybe; +}; + +/** (dt. Standort) */ +export type LendingStation = { + __typename?: 'LendingStation'; + id: Scalars['ID']; + name: Scalars['String']; + contactInformationIntern?: Maybe; + contactInformationExtern?: Maybe; + address: Address; + timeFrames: Array>; + loanPeriod?: Maybe; + cargoBikes?: Maybe>>; + /** Total amount of cargoBikes currently assigned to the lending station */ + numCargoBikes: Scalars['Int']; + organisation?: Maybe; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +/** If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null */ +export type LendingStationCreateInput = { + name: Scalars['String']; + contactInformationInternId?: Maybe; + contactInformationExternId?: Maybe; + address: AddressCreateInput; + loanPeriod?: Maybe; + organisationId?: Maybe; +}; + +/** If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null */ +export type LendingStationUpdateInput = { + id: Scalars['ID']; + name?: Maybe; + contactInformationInternId?: Maybe; + contactInformationExternId?: Maybe; + address?: Maybe; + loanPeriod?: Maybe; + organisationId?: Maybe; + keepLock?: Maybe; +}; + +/** (dt. Ausleihzeiten) not implemented */ +export type LoanPeriod = { + __typename?: 'LoanPeriod'; + generalRemark?: Maybe; + /** notes for each day of the week, starting on Monday */ + notes?: Maybe>>; + /** + * Loan times from and until for each day of the week. + * Starting with Monday from, Monday to, Tuesday from, ..., Sunday to + */ + loanTimes?: Maybe>>; +}; + +/** (dt. Ausleihzeiten) */ +export type LoanPeriodInput = { + generalRemark?: Maybe; + /** notes for each day of the week, starting on Monday */ + notes?: Maybe>>; + /** + * Loan times from and until for each day of the week. + * Starting with Monday from, Monday to, Tuesday from, ..., Sunday to + */ + loanTimes?: Maybe>>; +}; + +/** (dt. Zeitscheibe) When was a bike where */ +export type TimeFrame = { + __typename?: 'TimeFrame'; + id: Scalars['ID']; + /** format YYYY-MM-dd */ + from: Scalars['Date']; + /** format YYYY-MM-dd */ + to?: Maybe; + note?: Maybe; + lendingStation: LendingStation; + cargoBike: CargoBike; + isLocked: Scalars['Boolean']; + isLockedByMe: Scalars['Boolean']; + /** null if not locked by other user */ + lockedBy?: Maybe; + lockedUntil?: Maybe; +}; + +export type TimeFrameCreateInput = { + from: Scalars['Date']; + to?: Maybe; + note?: Maybe; + lendingStationId: Scalars['ID']; + cargoBikeId: Scalars['ID']; +}; + +export type TimeFrameUpdateInput = { + id: Scalars['ID']; + from?: Maybe; + to?: Maybe; + note?: Maybe; + lendingStationId?: Maybe; + cargoBikeId?: Maybe; + keepLock?: Maybe; +}; + +export type Address = { + __typename?: 'Address'; + street: Scalars['String']; + number: Scalars['String']; + zip: Scalars['String']; +}; + +export type AddressCreateInput = { + street: Scalars['String']; + number: Scalars['String']; + zip: Scalars['String']; +}; + +export type AddressUpdateInput = { + street?: Maybe; + number?: Maybe; + zip?: Maybe; +}; + +export type ActionLog = { + __typename?: 'ActionLog'; + id: Scalars['ID']; + userId: Scalars['ID']; + date: Scalars['Date']; + action: Scalars['String']; + entity: Scalars['String']; + /** in json format */ + entriesOld: Scalars['String']; + /** in json format */ + entriesNew: Scalars['String']; +}; + +export type Query = { + __typename?: 'Query'; + /** Will (eventually) return all properties of cargo bike */ + cargoBikeById?: Maybe; + /** returns cargoBikes ordered by name ascending, relations are not loaded, use cargoBikeById instead */ + cargoBikes: Array>; + engagementById?: Maybe; + engagements: Array>; + engagementTypeById?: Maybe; + engagementTypes: Array>; + /** equipment by id, will return null if id not found */ + equipmentById?: Maybe; + equipment: Array>; + equipmentTypeById?: Maybe; + equipmentTypes: Array>; + /** return null if id not found */ + providerById?: Maybe; + /** unique equipment with pagination, contains relation to bike (with no further joins), so if you wanna know more about the bike, use cargoBikeById */ + providers: Array>; + /** participant by id */ + participantById?: Maybe; + participants: Array>; + workshopTypeById?: Maybe; + workshopTypes: Array>; + workshopById?: Maybe; + workshops: Array>; + lendingStationById?: Maybe; + lendingStations: Array>; + organisationById?: Maybe; + organisations: Array>; + timeFrameById?: Maybe; + timeframes: Array>; + contactInformationById?: Maybe; + contactInformation: Array>; + personById?: Maybe; + persons?: Maybe>>; + bikeEventTypes?: Maybe>>; + bikeEventTypeByd?: Maybe; + bikeEvents: Array>; + bikeEventById?: Maybe; + /** actionLog for current user */ + actionLog?: Maybe>>; + /** actionLog for specific user */ + actionLogByUser?: Maybe>>; + /** actionLog form all users */ + actionLogAll?: Maybe>>; +}; + + +export type QueryCargoBikeByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryCargoBikesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryEngagementByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryEngagementsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryEngagementTypeByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryEngagementTypesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryEquipmentByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryEquipmentArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryEquipmentTypeByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryEquipmentTypesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryProviderByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryProvidersArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryParticipantByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryParticipantsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryWorkshopTypeByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryWorkshopTypesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryWorkshopByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryWorkshopsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryLendingStationByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryLendingStationsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryOrganisationByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryOrganisationsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryTimeFrameByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryTimeframesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryContactInformationByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryContactInformationArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryPersonByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryPersonsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryBikeEventTypesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryBikeEventTypeBydArgs = { + id: Scalars['ID']; +}; + + +export type QueryBikeEventsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryBikeEventByIdArgs = { + id: Scalars['ID']; +}; + + +export type QueryActionLogByUserArgs = { + id: Scalars['ID']; +}; + +export type Mutation = { + __typename?: 'Mutation'; + /** + * CARGO BIKE + * creates new cargoBike and returns cargobike with new ID + */ + createCargoBike: CargoBike; + /** lock cargoBike returns bike if bike is not locked and locks bike or Error if bike cannot be locked */ + lockCargoBike: CargoBike; + /** unlock cargoBike, returns true if Bike does not exist */ + unlockCargoBike: CargoBike; + /** updates cargoBike of given ID with supplied fields and returns updated cargoBike */ + updateCargoBike: CargoBike; + /** true on success */ + deleteCargoBike: Scalars['Boolean']; + /** + * EQUIPMENT + * creates new peace of unique Equipment + */ + createEquipment: Equipment; + /** lock equipment returns true if bike is not locked or if it doesnt exist */ + lockEquipment: Equipment; + /** unlock Equipment, returns true if Bike does not exist */ + unlockEquipment: Equipment; + /** update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation */ + updateEquipment: Equipment; + deleteEquipment: Scalars['Boolean']; + createEquipmentType: EquipmentType; + lockEquipmentType: EquipmentType; + unlockEquipmentType: EquipmentType; + updateEquipmentType: EquipmentType; + deleteEquipmentType: Scalars['Boolean']; + /** + * LENDINGSTATION + * creates new lendingStation and returns lendingStation with new ID + */ + createLendingStation: LendingStation; + lockLendingStation: LendingStation; + unlockLendingStation: LendingStation; + /** updates lendingStation of given ID with supplied fields and returns updated lendingStation */ + updateLendingStation: LendingStation; + deleteLendingStation: Scalars['Boolean']; + createTimeFrame: TimeFrame; + lockTimeFrame: TimeFrame; + unlockTimeFrame: TimeFrame; + updateTimeFrame: TimeFrame; + deleteTimeFrame: Scalars['Boolean']; + /** BIKEEVENT */ + createBikeEventType: BikeEventType; + lockBikeEventType: BikeEventType; + unlockBikeEventType: BikeEventType; + updateBikeEventType: BikeEventType; + deleteBikeEventType: Scalars['Boolean']; + /** creates new BikeEvent */ + createBikeEvent: BikeEvent; + lockBikeEvent: BikeEvent; + unlockBikeEvent: BikeEvent; + updateBikeEvent?: Maybe; + deleteBikeEvent: Scalars['Boolean']; + /** PARTICIPANTS */ + createParticipant: Participant; + lockParticipant: Participant; + unlockParticipant?: Maybe; + updateParticipant: Participant; + deleteParticipant: Scalars['Boolean']; + createWorkshopType: WorkshopType; + lockWorkshopType: WorkshopType; + unlockWorkshopType: Scalars['Boolean']; + updateWorkshopType: WorkshopType; + deleteWorkshopType: Scalars['Boolean']; + createWorkshop: Workshop; + lockWorkshop: Workshop; + unlockWorkshop: Scalars['Boolean']; + updateWorkshop: Workshop; + deleteWorkshop: Scalars['Boolean']; + /** create new contactInfo */ + createContactInformation: ContactInformation; + lockContactInformation: ContactInformation; + unlockContactInformation: Scalars['Boolean']; + updateContactInformation: ContactInformation; + deleteContactInformation: Scalars['Boolean']; + createPerson: Person; + lockPerson: Person; + unlockPerson: Person; + updatePerson: Person; + deletePerson: Scalars['Boolean']; + /** create Engagement */ + createEngagement: Engagement; + lockEngagement: Engagement; + unlockEngagement: Scalars['Boolean']; + updateEngagement: Engagement; + deleteEngagement: Scalars['Boolean']; + createEngagementType: EngagementType; + lockEngagementType: EngagementType; + unlockEngagementType: Scalars['Boolean']; + updateEngagementType: EngagementType; + deleteEngagementType: Scalars['Boolean']; + createProvider: Provider; + lockProvider: Provider; + unlockProvider: Scalars['Boolean']; + updateProvider: Provider; + deleteProvider: Scalars['Boolean']; + createOrganisation: Organisation; + lockOrganisation: Organisation; + unlockOrganisation: Scalars['Boolean']; + updateOrganisation: Organisation; + deleteOrganisation: Scalars['Boolean']; +}; + + +export type MutationCreateCargoBikeArgs = { + cargoBike: CargoBikeCreateInput; +}; + + +export type MutationLockCargoBikeArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockCargoBikeArgs = { + id: Scalars['ID']; +}; + + +export type MutationUpdateCargoBikeArgs = { + cargoBike: CargoBikeUpdateInput; +}; + + +export type MutationDeleteCargoBikeArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateEquipmentArgs = { + equipment: EquipmentCreateInput; +}; + + +export type MutationLockEquipmentArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockEquipmentArgs = { + id: Scalars['ID']; +}; + + +export type MutationUpdateEquipmentArgs = { + equipment: EquipmentUpdateInput; +}; + + +export type MutationDeleteEquipmentArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateEquipmentTypeArgs = { + equipmentType: EquipmentTypeCreateInput; +}; + + +export type MutationLockEquipmentTypeArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockEquipmentTypeArgs = { + id: Scalars['ID']; +}; + + +export type MutationUpdateEquipmentTypeArgs = { + equipmentType: EquipmentTypeUpdateInput; +}; + + +export type MutationDeleteEquipmentTypeArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateLendingStationArgs = { + lendingStation?: Maybe; +}; + + +export type MutationLockLendingStationArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockLendingStationArgs = { + id: Scalars['ID']; +}; + + +export type MutationUpdateLendingStationArgs = { + lendingStation: LendingStationUpdateInput; +}; + + +export type MutationDeleteLendingStationArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateTimeFrameArgs = { + timeFrame: TimeFrameCreateInput; +}; + + +export type MutationLockTimeFrameArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockTimeFrameArgs = { + id: Scalars['ID']; +}; + + +export type MutationUpdateTimeFrameArgs = { + timeFrame: TimeFrameUpdateInput; +}; + + +export type MutationDeleteTimeFrameArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateBikeEventTypeArgs = { + name: Scalars['String']; +}; + + +export type MutationLockBikeEventTypeArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockBikeEventTypeArgs = { + id: Scalars['ID']; +}; + + +export type MutationUpdateBikeEventTypeArgs = { + bikeEventType: BikeEventTypeUpdateInput; +}; + + +export type MutationDeleteBikeEventTypeArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateBikeEventArgs = { + bikeEvent: BikeEventCreateInput; +}; + + +export type MutationLockBikeEventArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockBikeEventArgs = { id: Scalars['ID']; - name: Scalars['String']; - formularName?: Maybe; - providerContactPerson?: Maybe>>; - isPrivatePerson: Scalars['Boolean']; - organisation?: Maybe; - cargoBikes: Array>; }; -export type ContactInformation = { - __typename?: 'ContactInformation'; + +export type MutationUpdateBikeEventArgs = { + bikeEvent: BikeEventUpdateInput; +}; + + +export type MutationDeleteBikeEventArgs = { id: Scalars['ID']; - name: Scalars['String']; - firstName?: Maybe; - retiredAt?: Maybe; - phoneExtern?: Maybe; - phone2Extern?: Maybe; - phoneIntern?: Maybe; - phone2Intern?: Maybe; - emailExtern?: Maybe; - emailIntern?: Maybe; - note?: Maybe; }; -export type ContactInformationCreateInput = { - name: Scalars['String']; - firstName: Scalars['String']; - retiredAt?: Maybe; - phoneExtern?: Maybe; - phone2Extern?: Maybe; - phoneIntern?: Maybe; - phone2Intern?: Maybe; - emailExtern?: Maybe; - emailIntern?: Maybe; - note?: Maybe; + +export type MutationCreateParticipantArgs = { + participant: ParticipantCreateInput; }; -export type ContactInformationUpdateInput = { + +export type MutationLockParticipantArgs = { id: Scalars['ID']; - name?: Maybe; - firstName?: Maybe; - retiredAt?: Maybe; - phoneExtern?: Maybe; - phone2Extern?: Maybe; - phoneIntern?: Maybe; - phone2Intern?: Maybe; - emailExtern?: Maybe; - emailIntern?: Maybe; - note?: Maybe; }; -export type ContactPerson = { - __typename?: 'ContactPerson'; + +export type MutationUnlockParticipantArgs = { id: Scalars['ID']; - intern: Scalars['Boolean']; - contactInformation: ContactInformation; }; -export type ContactPersonCreateInput = { - intern: Scalars['Boolean']; - contactInformationId: Scalars['ID']; + +export type MutationUpdateParticipantArgs = { + participant: ParticipantUpdateInput; }; -export type ContactPersonUpdateInput = { + +export type MutationDeleteParticipantArgs = { id: Scalars['ID']; - intern?: Maybe; - contactInformationId?: Maybe; }; -export type Organisation = { - __typename?: 'Organisation'; + +export type MutationCreateWorkshopTypeArgs = { + workshopType: WorkshopTypeCreateInput; +}; + + +export type MutationLockWorkshopTypeArgs = { id: Scalars['ID']; - address?: Maybe
; - /** (dt. Ausleihstation) */ - lendingStations?: Maybe>>; - /** registration number of association */ - associationNo?: Maybe; - /** If Club, at what court registered */ - registeredAt?: Maybe; - provider?: Maybe; - otherdata?: Maybe; }; -/** (dt. Standort) */ -export type LendingStation = { - __typename?: 'LendingStation'; + +export type MutationUnlockWorkshopTypeArgs = { id: Scalars['ID']; - name: Scalars['String']; - contactPersons: Array>; - address: Address; - timeFrames: Array>; - loanPeriods?: Maybe; - cargoBikes?: Maybe>>; - /** Totola Amount of cargoBikes currently assigned to the lending station */ - numCargoBikes: Scalars['Int']; }; -export type LendingStationCreateInput = { - name: Scalars['String']; - contactInformation: Array>; - address: AddressCreateInput; - loanPeriods?: Maybe; - timeFrames: Array>; + +export type MutationUpdateWorkshopTypeArgs = { + workshopType: WorkshopTypeUpdateInput; }; -export type LendingStationUpdateInput = { + +export type MutationDeleteWorkshopTypeArgs = { id: Scalars['ID']; - name?: Maybe; - contactInformation?: Maybe>>; - address?: Maybe; - loanPeriods?: Maybe; - timeFrames?: Maybe>>; }; -/** (dt. Ausleihzeiten) not implemented */ -export type LoanPeriods = { - __typename?: 'LoanPeriods'; - generalRemark?: Maybe; - /** notes for each day of the week, starting on Monday */ - notes?: Maybe>>; - /** - * Loan times from and until for each day of the week. - * Starting with Monday from, Monday to, Tuesday from, ..., Sunday to - */ - times?: Maybe>>; -}; -/** (dt. Ausleihzeiten) */ -export type LoanPeriodsInput = { - generalRemark?: Maybe; - /** notes for each day of the week, starting on Monday */ - notes?: Maybe>>; - /** - * Loan times from and until for each day of the week. - * Starting with Monday from, Monday to, Tuesday from, ..., Sunday to - */ - times?: Maybe>>; +export type MutationCreateWorkshopArgs = { + workshop: WorkshopCreateInput; }; -/** (dt. Zeitscheibe) */ -export type TimeFrame = { - __typename?: 'TimeFrame'; + +export type MutationLockWorkshopArgs = { id: Scalars['ID']; - from: Scalars['Date']; - to?: Maybe; - note?: Maybe; - lendingStation: LendingStation; - cargoBike: CargoBike; }; -export type TimeFrameCreateInput = { - from?: Maybe; - to?: Maybe; - note?: Maybe; - lendingStationID?: Maybe; - cargoBikeID?: Maybe; -}; -export type TimeFrameUpdateInput = { +export type MutationUnlockWorkshopArgs = { id: Scalars['ID']; - from?: Maybe; - to?: Maybe; - note?: Maybe; - lendingStation?: Maybe; - cargoBike?: Maybe; }; -export type Address = { - __typename?: 'Address'; - street: Scalars['String']; - number: Scalars['String']; - zip: Scalars['String']; + +export type MutationUpdateWorkshopArgs = { + workshop: WorkshopUpdateInput; }; -export type AddressCreateInput = { - street: Scalars['String']; - number: Scalars['String']; - zip: Scalars['String']; + +export type MutationDeleteWorkshopArgs = { + id: Scalars['ID']; }; -export type AddressUpdateInput = { - street?: Maybe; - number?: Maybe; - zip?: Maybe; + +export type MutationCreateContactInformationArgs = { + contactInformation: ContactInformationCreateInput; }; -export type Query = { - __typename?: 'Query'; - /** Will (evetually) return all properties of cargo bike */ - cargoBikeById?: Maybe; - /** returns cargoBikes ordered by name ascending, relations are not loaded, use cargoBikeById instead */ - cargoBikes: Array>; - /** return null if id not found */ - providerById?: Maybe; - /** unique equipment with pagination, contains relation to bike (with no further joins), so if you wanna know more about the bike, use cargoBikeById */ - equipment: Array>; - /** equipment by id, will return null if id not found */ - equipmentById?: Maybe; - providers: Array>; - /** particcipant by id */ - participantById?: Maybe; - /** p */ - participants: Array>; - lendingStationById?: Maybe; - lendingStations: Array>; - contactInformation: Array>; - /** returns BikeEvent with CargoBike */ - bikeEventById: BikeEvent; + +export type MutationLockContactInformationArgs = { + id: Scalars['ID']; }; -export type QueryCargoBikeByIdArgs = { +export type MutationUnlockContactInformationArgs = { id: Scalars['ID']; }; -export type QueryCargoBikesArgs = { - offset: Scalars['Int']; - limit: Scalars['Int']; +export type MutationUpdateContactInformationArgs = { + contactInformation: ContactInformationUpdateInput; }; -export type QueryProviderByIdArgs = { +export type MutationDeleteContactInformationArgs = { id: Scalars['ID']; }; -export type QueryEquipmentArgs = { - offset: Scalars['Int']; - limit: Scalars['Int']; +export type MutationCreatePersonArgs = { + person: PersonCreateInput; }; -export type QueryEquipmentByIdArgs = { +export type MutationLockPersonArgs = { id: Scalars['ID']; }; -export type QueryParticipantByIdArgs = { +export type MutationUnlockPersonArgs = { id: Scalars['ID']; }; -export type QueryParticipantsArgs = { - offset: Scalars['Int']; - limit: Scalars['Int']; +export type MutationUpdatePersonArgs = { + person: PersonUpdateInput; }; -export type QueryLendingStationByIdArgs = { +export type MutationDeletePersonArgs = { id: Scalars['ID']; }; -export type QueryLendingStationsArgs = { - offset: Scalars['Int']; - limit: Scalars['Int']; +export type MutationCreateEngagementArgs = { + engagement?: Maybe; }; -export type QueryBikeEventByIdArgs = { +export type MutationLockEngagementArgs = { id: Scalars['ID']; }; -export type Mutation = { - __typename?: 'Mutation'; - /** creates new cargoBike and returns cargobike with new ID */ - createCargoBike: CargoBike; - /** lock cargoBike returns true if bike is not locked or if it doesnt exist */ - lockCargoBikeById: Scalars['Boolean']; - /** updates cargoBike of given ID with supplied fields and returns updated cargoBike */ - updateCargoBike: CargoBike; - /** creates new peace of unique Equipment */ - createEquipment: Equipment; - /** lock equipment returns true if bike is not locked or if it doesnt exist */ - lockEquipmentById: Scalars['Boolean']; - /** update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation */ - updateEquipment: Equipment; - /** creates new lendingStation and returns lendingStation with new ID */ - createLendingStation: LendingStation; - /** updates lendingStation of given ID with supplied fields and returns updated lendingStation */ - updateLendingStation: LendingStation; - /** creates new BikeEvent */ - createBikeEvent: BikeEvent; - /** create participant */ - createParticipant: Participant; - /** create new contactInfo */ - createContactInformation: ContactInformation; - /** create Engagement */ - createEngagement: Engagement; - /** createContacPerson ,return null if contactInformationId does not exist */ - createContactPerson?: Maybe; - updateContactPerson?: Maybe; + +export type MutationUnlockEngagementArgs = { + id: Scalars['ID']; }; -export type MutationCreateCargoBikeArgs = { - cargoBike: CargoBikeCreateInput; +export type MutationUpdateEngagementArgs = { + engagement: EngagementUpdateInput; }; -export type MutationLockCargoBikeByIdArgs = { +export type MutationDeleteEngagementArgs = { id: Scalars['ID']; }; -export type MutationUpdateCargoBikeArgs = { - cargoBike: CargoBikeUpdateInput; +export type MutationCreateEngagementTypeArgs = { + engagementType: EngagementTypeCreateInput; }; -export type MutationCreateEquipmentArgs = { - equipment: EquipmentCreateInput; +export type MutationLockEngagementTypeArgs = { + id: Scalars['ID']; }; -export type MutationLockEquipmentByIdArgs = { +export type MutationUnlockEngagementTypeArgs = { id: Scalars['ID']; }; -export type MutationUpdateEquipmentArgs = { - equipment: EquipmentUpdateInput; +export type MutationUpdateEngagementTypeArgs = { + engagementType: EngagementTypeUpdateInput; }; -export type MutationCreateLendingStationArgs = { - lendingStation?: Maybe; +export type MutationDeleteEngagementTypeArgs = { + id: Scalars['ID']; }; -export type MutationUpdateLendingStationArgs = { - lendingstation: LendingStationUpdateInput; +export type MutationCreateProviderArgs = { + provider: ProviderCreateInput; }; -export type MutationCreateBikeEventArgs = { - bikeEvent?: Maybe; +export type MutationLockProviderArgs = { + id: Scalars['ID']; }; -export type MutationCreateParticipantArgs = { - participant: ParticipantCreateInput; +export type MutationUnlockProviderArgs = { + id: Scalars['ID']; }; -export type MutationCreateContactInformationArgs = { - contactInformation: ContactInformationCreateInput; +export type MutationUpdateProviderArgs = { + provider: ProviderUpdateInput; }; -export type MutationCreateEngagementArgs = { - engagement?: Maybe; +export type MutationDeleteProviderArgs = { + id: Scalars['ID']; +}; + + +export type MutationCreateOrganisationArgs = { + organisation: OrganisationCreateInput; +}; + + +export type MutationLockOrganisationArgs = { + id: Scalars['ID']; +}; + + +export type MutationUnlockOrganisationArgs = { + id: Scalars['ID']; }; -export type MutationCreateContactPersonArgs = { - contactPerson?: Maybe; +export type MutationUpdateOrganisationArgs = { + organisation: OrganisationUpdateInput; }; -export type MutationUpdateContactPersonArgs = { - contactPerson?: Maybe; +export type MutationDeleteOrganisationArgs = { + id: Scalars['ID']; }; export enum CacheControlScope { @@ -896,6 +1694,32 @@ export type UpdateCargoBikeMutation = ( ) } ); +export type LockCargoBikeMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type LockCargoBikeMutation = ( + { __typename?: 'Mutation' } + & { lockCargoBike: ( + { __typename?: 'CargoBike' } + & CargoBikeFieldsFragment + ) } +); + +export type UnlockCargoBikeMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type UnlockCargoBikeMutation = ( + { __typename?: 'Mutation' } + & { unlockCargoBike: ( + { __typename?: 'CargoBike' } + & CargoBikeFieldsFragment + ) } +); + export type GetCargoBikesQueryVariables = Exact<{ [key: string]: never; }>; @@ -909,7 +1733,7 @@ export type GetCargoBikesQuery = ( export type CargoBikeFieldsMutableFragment = ( { __typename?: 'CargoBike' } - & Pick + & Pick & { insuranceData: ( { __typename?: 'InsuranceData' } & Pick @@ -924,6 +1748,7 @@ export type CargoBikeFieldsMutableFragment = ( export type CargoBikeFieldsFragment = ( { __typename?: 'CargoBike' } + & Pick & { bikeEvents?: Maybe @@ -986,6 +1811,10 @@ export const CargoBikeFieldsFragmentDoc = gql` date id } + isLocked + isLockedByMe + lockedBy + lockedUntil } ${CargoBikeFieldsMutableFragmentDoc}`; export const GetCargoBikeByIdDocument = gql` @@ -1020,6 +1849,42 @@ export const UpdateCargoBikeDocument = gql` export class UpdateCargoBikeGQL extends Apollo.Mutation { document = UpdateCargoBikeDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const LockCargoBikeDocument = gql` + mutation LockCargoBike($id: ID!) { + lockCargoBike(id: $id) { + ...CargoBikeFields + } +} + ${CargoBikeFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class LockCargoBikeGQL extends Apollo.Mutation { + document = LockCargoBikeDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UnlockCargoBikeDocument = gql` + mutation UnlockCargoBike($id: ID!) { + unlockCargoBike(id: $id) { + ...CargoBikeFields + } +} + ${CargoBikeFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class UnlockCargoBikeGQL extends Apollo.Mutation { + document = UnlockCargoBikeDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); }
Fahrgestellnummer + Fahrgestellnummer + Anzahl Kinder + Anzahl Kinder + @@ -77,10 +93,12 @@ - Räderanzahl + Räderanzahl + @@ -96,10 +114,11 @@ mat-icon-button (click)="edit(element)" *ngIf=" - !element.isGettingEdited && + !element.isLockedByMe && !element.waitingForEditPermissions && - !element.locked && - !element.saving + !element.isLocked && + !element.saving && + !element.unlocking " > edit @@ -107,10 +126,11 @@ - locked + locked