diff --git a/codegen.yml b/codegen.yml index 462ea0a..6266518 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,5 +1,4 @@ overwrite: true -wtach: true schema: "http://localhost:4000/graphql" documents: "src/app/graphqlOperations/**/*" generates: diff --git a/graphql.schema.json b/graphql.schema.json index 1f3d4d9..5a4baa4 100644 --- a/graphql.schema.json +++ b/graphql.schema.json @@ -173,7 +173,7 @@ "deprecationReason": null }, { - "name": "events", + "name": "bikeEvents", "description": null, "args": [], "type": { @@ -191,7 +191,36 @@ { "name": "equipment", "description": null, - "args": [], + "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, @@ -205,7 +234,7 @@ "deprecationReason": null }, { - "name": "otherEquipment", + "name": "miscellaneousEquipment", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", "args": [], "type": { @@ -220,22 +249,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "chainSwaps", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChainSwap", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "stickerBikeNameState", "description": "Sticker State", @@ -301,7 +314,7 @@ "deprecationReason": null }, { - "name": "lendingstation", + "name": "lendingStation", "description": null, "args": [], "type": { @@ -324,6 +337,51 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "engagement", + "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": "Engagement", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "lockedBy", "description": "null if not locked by other user", @@ -541,7 +599,7 @@ "defaultValue": null }, { - "name": "otherEquipment", + "name": "miscellaneousEquipment", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", "type": { "kind": "LIST", @@ -602,9 +660,13 @@ "name": "taxes", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "TaxesCreateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TaxesCreateInput", + "ofType": null + } }, "defaultValue": null } @@ -734,7 +796,7 @@ "defaultValue": null }, { - "name": "otherEquipment", + "name": "miscellaneousEquipment", "description": "Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2", "type": { "kind": "LIST", @@ -747,6 +809,16 @@ }, "defaultValue": null }, + { + "name": "lendingStationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, { "name": "stickerBikeNameState", "description": "Sticker State", @@ -1433,19 +1505,15 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Date", - "ofType": null - } + "kind": "SCALAR", + "name": "Date", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "mentor", + "name": "contactInformation", "description": null, "args": [], "type": { @@ -1517,7 +1585,7 @@ "deprecationReason": null }, { - "name": "roleCoreTeam", + "name": "memberCoreTeam", "description": null, "args": [], "type": { @@ -1663,45 +1731,22 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Taxes", - "description": null, - "fields": [ + }, { - "name": "costCenter", + "name": "engagement", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Engagement", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "organizationArea", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "OrganizationArea", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null } ], "inputFields": null, @@ -1711,47 +1756,50 @@ }, { "kind": "INPUT_OBJECT", - "name": "TaxesCreateInput", + "name": "ParticipantCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "costCenter", + "name": "start", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null } }, "defaultValue": null }, { - "name": "organizationArea", + "name": "end", "description": null, "type": { - "kind": "ENUM", - "name": "OrganizationArea", + "kind": "SCALAR", + "name": "Date", "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TaxesUpdateInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "costCenter", + "name": "contactInformationId", + "description": "must create contactinformation first, if you want to use new", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "usernamefLotte", "description": null, "type": { "kind": "SCALAR", @@ -1761,110 +1809,96 @@ "defaultValue": null }, { - "name": "organizationArea", + "name": "usernameSlack", "description": null, "type": { - "kind": "ENUM", - "name": "OrganizationArea", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OrganizationArea", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + }, { - "name": "IB", + "name": "memberADFC", "description": null, - "isDeprecated": false, - "deprecationReason": null + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null }, { - "name": "ZB", + "name": "locationZIPs", "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChainSwap", - "description": null, - "fields": [ + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, { - "name": "id", + "name": "memberCoreTeam", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Boolean", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "mechanic", - "description": "TODO why is this a string\"", - "args": [], + "name": "workshopMentor", + "description": "Date of workshop to become Mentor dt. Pate", "type": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "timeOfSwap", - "description": null, - "args": [], + "name": "workshopAmbulance", + "description": "Date of last Erste Hilfe Kurs?", "type": { "kind": "SCALAR", "name": "Date", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "keyNumberOldAXAChain", + "name": "reserve", "description": null, - "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null } ], - "inputFields": null, - "interfaces": [], + "interfaces": null, "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": "Engagement", + "description": null, "fields": [ { "name": "id", @@ -1883,7 +1917,7 @@ "deprecationReason": null }, { - "name": "serialNo", + "name": "from", "description": null, "args": [], "type": { @@ -1891,7 +1925,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Date", "ofType": null } }, @@ -1899,42 +1933,43 @@ "deprecationReason": null }, { - "name": "investable", - "description": "TODO unclear what this means. tomy fragen", + "name": "to", + "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Date", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "participant", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Participant", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "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": "cargoBike", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "roleCoordinator", "description": null, "args": [], "type": { @@ -1942,7 +1977,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Boolean", "ofType": null } }, @@ -1950,27 +1985,31 @@ "deprecationReason": null }, { - "name": "eventType", + "name": "roleEmployeADFC", "description": null, "args": [], "type": { - "kind": "ENUM", - "name": "BikeEventType", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "date", - "description": null, + "name": "roleMentor", + "description": "Wahr, wenn die Person Pate ist.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Date", + "name": "Boolean", "ofType": null } }, @@ -1978,27 +2017,31 @@ "deprecationReason": null }, { - "name": "note", + "name": "roleAmbulance", "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": "documents", - "description": "Path to documents", + "name": "roleBringer", + "description": null, "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, @@ -2012,175 +2055,145 @@ "possibleTypes": null }, { - "kind": "ENUM", - "name": "BikeEventType", - "description": "TODO: Some eventTypes are missing (und auf deutsch)", + "kind": "INPUT_OBJECT", + "name": "EngagementCreateInput", + "description": null, "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 - } - ], - "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": [ + "inputFields": [ { - "name": "hasCoverBox", + "name": "from", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Date", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "lockable", + "name": "to", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Date", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "participantId", "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": "boxLength", + "name": "cargoBikeId", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "boxWidth", + "name": "roleCoordinator", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "boxHeight", + "name": "roleEmployeADFC", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "maxWeightBox", - "description": null, - "args": [], + "name": "roleMentor", + "description": "Wahr, wenn die Person Pate ist.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "maxWeightLuggageRack", + "name": "roleAmbulance", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "maxWeightTotal", + "name": "roleBringer", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null - }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Taxes", + "description": null, + "fields": [ { - "name": "bikeLength", + "name": "costCenter", "description": null, "args": [], "type": { @@ -2188,7 +2201,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, @@ -2196,205 +2209,330 @@ "deprecationReason": null }, { - "name": "bikeWidth", + "name": "organizationArea", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "Float", + "kind": "ENUM", + "name": "OrganizationArea", "ofType": null }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TaxesCreateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "bikeHeight", + "name": "costCenter", "description": null, - "args": [], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null }, { - "name": "bikeWeight", + "name": "organizationArea", "description": null, - "args": [], "type": { - "kind": "SCALAR", - "name": "Float", + "kind": "ENUM", + "name": "OrganizationArea", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null } ], - "inputFields": null, - "interfaces": [], + "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "DimensionsAndLoadCreateInput", + "name": "TaxesUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "hasCoverBox", + "name": "costCenter", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "lockable", + "name": "organizationArea", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "ENUM", + "name": "OrganizationArea", + "ofType": null }, "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrganizationArea", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "IB", + "description": null, + "isDeprecated": false, + "deprecationReason": null }, { - "name": "boxLength", + "name": "ZB", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ChainSwap", + "description": null, + "fields": [ + { + "name": "id", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "boxWidth", + "name": "mechanic", + "description": "TODO why is this a string\"", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "timeOfSwap", "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "kind": "SCALAR", + "name": "Date", + "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "boxHeight", + "name": "keyNumberOldAXAChain", + "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.", + "fields": [ + { + "name": "id", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "maxWeightBox", + "name": "serialNo", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "maxWeightLuggageRack", + "name": "investable", + "description": "TODO unclear what this means. tomy fragen", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "maxWeightTotal", + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cargoBike", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CargoBike", + "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", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, "defaultValue": null }, { - "name": "bikeLength", - "description": null, + "name": "title", + "description": "TODO unclear what this means. tomy fragen", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null } }, "defaultValue": null }, { - "name": "bikeWidth", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "bikeHeight", + "name": "investable", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "bikeWeight", + "name": "cargoBikeId", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null }, "defaultValue": null @@ -2406,126 +2544,70 @@ }, { "kind": "INPUT_OBJECT", - "name": "DimensionsAndLoadUpdateInput", + "name": "EquipmentUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "hasCoverBox", + "name": "id", "description": null, "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "defaultValue": null }, { - "name": "lockable", + "name": "serialNo", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "boxLength", - "description": null, + "name": "title", + "description": "TODO unclear what this means. tomy fragen", "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "boxWidth", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "boxHeight", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxWeightBox", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxWeightLuggageRack", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxWeightTotal", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "bikeLength", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "bikeWidth", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "bikeHeight", + "name": "investable", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "bikeWeight", + "name": "cargoBikeId", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "ID", "ofType": null }, "defaultValue": null @@ -2537,11 +2619,11 @@ }, { "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": "BikeEvent", + "description": "An Event is a point in time, when the state of the bike somehow changed.", "fields": [ { - "name": "bicycleShift", + "name": "id", "description": null, "args": [], "type": { @@ -2549,7 +2631,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, @@ -2557,15 +2639,15 @@ "deprecationReason": null }, { - "name": "isEBike", + "name": "eventType", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "ENUM", + "name": "BikeEventType", "ofType": null } }, @@ -2573,7 +2655,23 @@ "deprecationReason": null }, { - "name": "hasLightSystem", + "name": "cargoBike", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "date", "description": null, "args": [], "type": { @@ -2581,7 +2679,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Date", "ofType": null } }, @@ -2589,7 +2687,7 @@ "deprecationReason": null }, { - "name": "specialFeatures", + "name": "note", "description": null, "args": [], "type": { @@ -2599,6 +2697,26 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "documents", + "description": "Path to documents", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -2608,54 +2726,54 @@ }, { "kind": "INPUT_OBJECT", - "name": "TechnicalEquipmentCreateInput", + "name": "BikeEventCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "bicycleShift", + "name": "eventType", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "BikeEventType", "ofType": null } }, "defaultValue": null }, { - "name": "isEBike", - "description": null, + "name": "cargoBikeId", + "description": "it is enough to pass the cargoBike id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null } }, "defaultValue": null }, { - "name": "hasLightSystem", + "name": "date", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "Date", "ofType": null } }, "defaultValue": null }, { - "name": "specialFeatures", + "name": "note", "description": null, "type": { "kind": "SCALAR", @@ -2663,6 +2781,24 @@ "ofType": null }, "defaultValue": null + }, + { + "name": "documents", + "description": "Path to documents", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null } ], "interfaces": null, @@ -2670,63 +2806,53 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "TechnicalEquipmentUpdateInput", - "description": null, + "kind": "ENUM", + "name": "BikeEventType", + "description": "TODO: Some eventTypes are missing", "fields": null, - "inputFields": [ + "inputFields": null, + "interfaces": null, + "enumValues": [ { - "name": "bicycleShift", + "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, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "isEBike", + "name": "AUSFALL", "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "hasLightSystem", + "name": "WARTUNG", "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "specialFeatures", + "name": "ANDERE", "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null } ], - "interfaces": null, - "enumValues": null, "possibleTypes": null }, { "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": "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": "frameNumber", + "name": "hasCoverBox", "description": null, "args": [], "type": { @@ -2734,7 +2860,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, @@ -2742,616 +2868,464 @@ "deprecationReason": null }, { - "name": "keyNumberFrameLock", + "name": "lockable", "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": "keyNumberAXAChain", + "name": "boxLength", "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": "policeCoding", + "name": "boxWidth", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "adfcCoding", + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "boxHeight", "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 - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SecurityCreateInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "frameNumber", + "name": "maxWeightBox", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "keyNumberFrameLock", + "name": "maxWeightLuggageRack", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "keyNumberAXAChain", + "name": "maxWeightTotal", "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeLength", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeWidth", + "description": null, + "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "policeCoding", + "name": "bikeHeight", "description": null, + "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "adfcCoding", + "name": "bikeWeight", "description": null, + "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null } ], - "interfaces": null, + "inputFields": null, + "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "SecurityUpdateInput", + "name": "DimensionsAndLoadCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "frameNumber", + "name": "hasCoverBox", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "defaultValue": null }, { - "name": "keyNumberFrameLock", + "name": "lockable", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "defaultValue": null }, { - "name": "keyNumberAXAChain", + "name": "boxLength", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "defaultValue": null }, { - "name": "policeCoding", + "name": "boxWidth", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "defaultValue": null }, { - "name": "adfcCoding", + "name": "boxHeight", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "StickerBikeNameState", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "OK", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "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": "maxWeightBox", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "name", + "name": "maxWeightLuggageRack", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "formularName", - "description": null, - "args": [], - "type": { - "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": "providerContactPerson", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isPrivatePerson", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "organisation", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Organisation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cargoBikes", - "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, - "fields": [ - { - "name": "id", + "name": "maxWeightTotal", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "name", + "name": "bikeLength", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "retiredAt", + "name": "bikeWidth", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "Float", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "phoneExtern", + "name": "bikeHeight", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "phone2Extern", + "name": "bikeWeight", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null - }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "DimensionsAndLoadUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "phoneIntern", + "name": "hasCoverBox", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "phone2Intern", + "name": "lockable", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "emailExtern", + "name": "boxLength", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "emailIntern", + "name": "boxWidth", "description": null, - "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "note", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ContactInformationCreateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", + "name": "boxHeight", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "firstName", + "name": "maxWeightBox", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "retiredAt", + "name": "maxWeightLuggageRack", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "phoneExtern", + "name": "maxWeightTotal", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "phone2Extern", + "name": "bikeLength", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "phoneIntern", + "name": "bikeWidth", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "phone2Intern", + "name": "bikeHeight", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null }, { - "name": "emailExtern", + "name": "bikeWeight", "description": null, "type": { "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "emailIntern", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "note", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null }, "defaultValue": null @@ -3362,77 +3336,126 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "ContactInformationUpdateInput", - "description": null, - "fields": null, - "inputFields": [ + "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.", + "fields": [ { - "name": "id", + "name": "bicycleShift", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "name", + "name": "isEBike", "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": "firstName", + "name": "hasLightSystem", "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": "retiredAt", + "name": "specialFeatures", "description": null, + "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TechnicalEquipmentCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "bicycleShift", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, "defaultValue": null }, { - "name": "phoneExtern", + "name": "isEBike", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "defaultValue": null }, { - "name": "phone2Extern", + "name": "hasLightSystem", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, "defaultValue": null }, { - "name": "phoneIntern", + "name": "specialFeatures", "description": null, "type": { "kind": "SCALAR", @@ -3440,9 +3463,20 @@ "ofType": null }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TechnicalEquipmentUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "phone2Intern", + "name": "bicycleShift", "description": null, "type": { "kind": "SCALAR", @@ -3452,27 +3486,27 @@ "defaultValue": null }, { - "name": "emailExtern", + "name": "isEBike", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "emailIntern", + "name": "hasLightSystem", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "note", + "name": "specialFeatures", "description": null, "type": { "kind": "SCALAR", @@ -3488,11 +3522,11 @@ }, { "kind": "OBJECT", - "name": "Organisation", - "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": "id", + "name": "frameNumber", "description": null, "args": [], "type": { @@ -3500,23 +3534,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lendingStations", - "description": "(dt. Ausleihstation)", - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LendingStation", + "name": "String", "ofType": null } }, @@ -3524,8 +3542,8 @@ "deprecationReason": null }, { - "name": "associationNo", - "description": "registration number of association", + "name": "keyNumberFrameLock", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3536,8 +3554,8 @@ "deprecationReason": null }, { - "name": "registeredAt", - "description": "If Club, at what court registered", + "name": "keyNumberAXAChain", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3548,19 +3566,19 @@ "deprecationReason": null }, { - "name": "provider", + "name": "policeCoding", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "Provider", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "otherdata", + "name": "adfcCoding", "description": null, "args": [], "type": { @@ -3578,193 +3596,123 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "LendingStation", - "description": "(dt. Standort)", - "fields": [ + "kind": "INPUT_OBJECT", + "name": "SecurityCreateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "id", + "name": "frameNumber", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "name", + "name": "keyNumberFrameLock", "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 + "defaultValue": null }, { - "name": "contactInformation", + "name": "keyNumberAXAChain", "description": null, - "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null }, { - "name": "address", + "name": "policeCoding", "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 + "defaultValue": null }, { - "name": "loanTimes", + "name": "adfcCoding", "description": null, - "args": [], "type": { - "kind": "OBJECT", - "name": "LoanTimes", + "kind": "SCALAR", + "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "loanPeriods", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LoanPeriod", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null } ], - "inputFields": null, - "interfaces": [], + "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "LendingStationCreateInput", + "name": "SecurityUpdateInput", "description": null, "fields": null, "inputFields": [ { - "name": "name", + "name": "frameNumber", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "contactInformation", + "name": "keyNumberFrameLock", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContactInformationCreateInput", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "address", + "name": "keyNumberAXAChain", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressCreateInput", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "loanTimes", + "name": "policeCoding", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LoanTimesInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "loanPeriods", + "name": "adfcCoding", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "LoanPeriodCreateInput", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null } @@ -3774,14 +3722,61 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "LendingStationUpdateInput", + "kind": "ENUM", + "name": "StickerBikeNameState", "description": null, "fields": null, - "inputFields": [ + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "OK", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "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", "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -3791,98 +3786,122 @@ "ofType": null } }, - "defaultValue": 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": "formularName", + "description": null, + "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "contactInformation", + "name": "providerContactPerson", "description": null, + "args": [], "type": { "kind": "LIST", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContactInformationUpdateInput", + "kind": "OBJECT", + "name": "ContactInformation", "ofType": null } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "address", + "name": "isPrivatePerson", "description": null, + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "AddressUpdateInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "loanTimes", + "name": "organisation", "description": null, + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "LoanTimesInput", + "kind": "OBJECT", + "name": "Organisation", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "loanPeriods", + "name": "cargoBikes", "description": null, + "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "LoanPeriodUpdateInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null + } } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null } ], - "interfaces": null, + "inputFields": null, + "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", - "name": "LoanTimes", - "description": "(dt. Ausleihzeiten)", + "name": "ContactInformation", + "description": null, "fields": [ { - "name": "generalRemark", + "name": "id", "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", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, @@ -3890,11 +3909,11 @@ "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": "name", + "description": null, "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", @@ -3904,113 +3923,81 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "LoanTimesInput", - "description": "(dt. Ausleihzeiten)", - "fields": null, - "inputFields": [ + }, { - "name": "generalRemark", + "name": "firstName", "description": null, + "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "notes", - "description": "notes for each day of the week, starting on Monday", + "name": "retiredAt", + "description": null, + "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Date", + "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "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": "phoneExtern", + "description": null, + "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "LoanPeriod", - "description": "(dt. Zeitscheibe)", - "fields": [ + "isDeprecated": false, + "deprecationReason": null + }, { - "name": "id", + "name": "phone2Extern", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "from", + "name": "phoneIntern", "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": "phone2Intern", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "note", + "name": "emailExtern", "description": null, "args": [], "type": { @@ -4022,33 +4009,25 @@ "deprecationReason": null }, { - "name": "lendingStation", + "name": "emailIntern", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LendingStation", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "cargoBike", + "name": "note", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -4061,12 +4040,40 @@ }, { "kind": "INPUT_OBJECT", - "name": "LoanPeriodCreateInput", + "name": "ContactInformationCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "from", + "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 + }, + { + "name": "retiredAt", "description": null, "type": { "kind": "SCALAR", @@ -4076,17 +4083,17 @@ "defaultValue": null }, { - "name": "to", + "name": "phoneExtern", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "note", + "name": "phone2Extern", "description": null, "type": { "kind": "SCALAR", @@ -4096,21 +4103,51 @@ "defaultValue": null }, { - "name": "lendingStationID", + "name": "phoneIntern", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LendingStationCreateInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "cargoBikeID", + "name": "phone2Intern", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CargoBikeCreateInput", + "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 + }, + "defaultValue": null + }, + { + "name": "note", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null @@ -4122,7 +4159,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "LoanPeriodUpdateInput", + "name": "ContactInformationUpdateInput", "description": null, "fields": null, "inputFields": [ @@ -4141,17 +4178,27 @@ "defaultValue": null }, { - "name": "from", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "Date", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "to", + "name": "firstName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "retiredAt", "description": null, "type": { "kind": "SCALAR", @@ -4161,7 +4208,7 @@ "defaultValue": null }, { - "name": "note", + "name": "phoneExtern", "description": null, "type": { "kind": "SCALAR", @@ -4171,61 +4218,85 @@ "defaultValue": null }, { - "name": "lendingStation", + "name": "phone2Extern", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LendingStationUpdateInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "cargoBike", + "name": "phoneIntern", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CargoBikeUpdateInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Address", - "description": null, - "fields": [ + }, { - "name": "street", + "name": "phone2Intern", "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 + "defaultValue": null }, { - "name": "number", + "name": "emailExtern", "description": null, - "args": [], "type": { - "kind": "NON_NULL", - "name": null, + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "emailIntern", + "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": "OBJECT", + "name": "ContactPerson", + "description": null, + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, @@ -4233,7 +4304,7 @@ "deprecationReason": null }, { - "name": "zip", + "name": "intern", "description": null, "args": [], "type": { @@ -4241,7 +4312,23 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contactInformation", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContactInformation", "ofType": null } }, @@ -4256,51 +4343,82 @@ }, { "kind": "INPUT_OBJECT", - "name": "AddressCreateInput", + "name": "ContactPersonCreateInput", "description": null, "fields": null, "inputFields": [ { - "name": "street", + "name": "intern", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, "defaultValue": null }, { - "name": "number", + "name": "contactInformationId", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContactPersonUpdateInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "zip", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } }, "defaultValue": null + }, + { + "name": "intern", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null, @@ -4308,104 +4426,1366 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "AddressUpdateInput", + "kind": "OBJECT", + "name": "Organisation", "description": null, - "fields": null, - "inputFields": [ + "fields": [ { - "name": "street", + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "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 }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "number", - "description": null, + "name": "registeredAt", + "description": "If Club, at what court registered", + "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "zip", + "name": "provider", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Provider", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "otherdata", "description": null, + "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null } ], - "interfaces": null, + "inputFields": null, + "interfaces": [], + "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": "contactPersons", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContactPerson", + "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": "loanPeriods", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "LoanPeriods", + "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": "Totola 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 + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LendingStationCreateInput", + "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": "contactInformation", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContactInformationCreateInput", + "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": "loanPeriods", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LoanPeriodsInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "timeFrames", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TimeFrameCreateInput", + "ofType": null + } + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LendingStationUpdateInput", + "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": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contactInformation", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContactInformationUpdateInput", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "address", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AddressUpdateInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "loanPeriods", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LoanPeriodsInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "timeFrames", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "TimeFrameUpdateInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "LoanPeriods", + "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": "times", + "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": "LoanPeriodsInput", + "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": "times", + "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)", + "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": "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 + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TimeFrameCreateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "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": "INPUT_OBJECT", + "name": "LendingStationCreateInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "cargoBikeID", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CargoBikeCreateInput", + "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": "lendingStation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LendingStationUpdateInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "cargoBike", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "CargoBikeUpdateInput", + "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": "Query", + "description": null, + "fields": [ + { + "name": "cargoBikeById", + "description": "Will (evetually) 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": "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": "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", + "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": "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": "providers", + "description": null, + "args": [], + "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": "particcipant 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": "p", + "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": "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": "contactInformation", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContactInformation", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bikeEventById", + "description": "returns BikeEvent with CargoBike", + "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 + } + ], + "inputFields": null, + "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", - "name": "Query", + "name": "Mutation", "description": null, "fields": [ { - "name": "cargoBikeById", - "description": null, + "name": "createCargoBike", + "description": "creates new cargoBike and returns cargobike with new ID", "args": [ { - "name": "id", + "name": "cargoBike", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "CargoBikeCreateInput", "ofType": null } }, "defaultValue": null } ], - "type": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cargoBikes", - "description": "returns all cargoBikes", - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - } + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "cargoBikesByProvider", - "description": "not important, you can just use providerById {cargoBikes}", + "name": "lockCargoBikeById", + "description": "lock cargoBike - not implemented", "args": [ { - "name": "providerId", + "name": "id", "description": null, "type": { "kind": "NON_NULL", @@ -4423,214 +5803,175 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CargoBike", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "providerById", - "description": null, + "name": "updateCargoBike", + "description": "updates cargoBike of given ID with supplied fields and returns updated cargoBike", "args": [ { - "name": "id", + "name": "cargoBike", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "CargoBikeUpdateInput", "ofType": null } }, "defaultValue": null } ], - "type": { - "kind": "OBJECT", - "name": "Provider", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "providers", - "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Provider", - "ofType": null - } + "kind": "OBJECT", + "name": "CargoBike", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "participantById", - "description": null, + "name": "createEquipment", + "description": "creates new peace of unique Equipment", "args": [ { - "name": "id", + "name": "equipment", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "EquipmentCreateInput", "ofType": null } }, "defaultValue": null } ], - "type": { - "kind": "OBJECT", - "name": "Participant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "participants", - "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Participant", - "ofType": null - } + "kind": "OBJECT", + "name": "Equipment", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lendingStationById", - "description": 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": "id", + "name": "equipment", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "INPUT_OBJECT", + "name": "EquipmentUpdateInput", "ofType": null } }, "defaultValue": null } ], - "type": { - "kind": "OBJECT", - "name": "LendingStation", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lendingStations", - "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LendingStation", - "ofType": null - } + "kind": "OBJECT", + "name": "Equipment", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "contactInformation", - "description": null, - "args": [], + "name": "createLendingStation", + "description": "creates 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": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContactInformation", - "ofType": null - } + "kind": "OBJECT", + "name": "LendingStation", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Mutation", - "description": null, - "fields": [ + }, { - "name": "addBike", - "description": "for testing", + "name": "updateLendingStation", + "description": "updates lendingStation of given ID with supplied fields and returns updated lendingStation", "args": [ { - "name": "id", + "name": "lendingstation", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "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": "createBikeEvent", + "description": "creates new BikeEvent", + "args": [ { - "name": "name", + "name": "bikeEvent", "description": null, "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "BikeEventCreateInput", "ofType": null }, "defaultValue": null @@ -4641,7 +5982,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CargoBike", + "name": "BikeEvent", "ofType": null } }, @@ -4649,18 +5990,18 @@ "deprecationReason": null }, { - "name": "createCargoBike", - "description": "creates new cargoBike and returns cargobike with new ID", + "name": "createParticipant", + "description": "create participant", "args": [ { - "name": "cargoBike", + "name": "participant", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CargoBikeCreateInput", + "name": "ParticipantCreateInput", "ofType": null } }, @@ -4672,7 +6013,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CargoBike", + "name": "Participant", "ofType": null } }, @@ -4680,18 +6021,18 @@ "deprecationReason": null }, { - "name": "updateCargoBike", - "description": "updates cargoBike of given ID with supplied fields and returns updated cargoBike", + "name": "createContactInformation", + "description": "create new contactInfo", "args": [ { - "name": "cargoBike", + "name": "contactInformation", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CargoBikeUpdateInput", + "name": "ContactInformationCreateInput", "ofType": null } }, @@ -4703,7 +6044,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CargoBike", + "name": "ContactInformation", "ofType": null } }, @@ -4711,15 +6052,15 @@ "deprecationReason": null }, { - "name": "createLendingStation", - "description": "creates new lendingStation and returns lendingStation with new ID", + "name": "createEngagement", + "description": "create Engagement", "args": [ { - "name": "lendingStation", + "name": "engagement", "description": null, "type": { "kind": "INPUT_OBJECT", - "name": "LendingStationCreateInput", + "name": "EngagementCreateInput", "ofType": null }, "defaultValue": null @@ -4730,7 +6071,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "LendingStation", + "name": "Engagement", "ofType": null } }, @@ -4738,32 +6079,47 @@ "deprecationReason": null }, { - "name": "updateLendingStation", - "description": "updates lendingStation of given ID with supplied fields and returns updated lendingStation", + "name": "createContactPerson", + "description": "createContacPerson ,return null if contactInformationId does not exist", "args": [ { - "name": "lendingstation", + "name": "contactPerson", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "LendingStationUpdateInput", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "ContactPersonCreateInput", + "ofType": null }, "defaultValue": null } ], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LendingStation", - "ofType": null + "kind": "OBJECT", + "name": "ContactPerson", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateContactPerson", + "description": null, + "args": [ + { + "name": "contactPerson", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "ContactPersonUpdateInput", + "ofType": null + }, + "defaultValue": null } + ], + "type": { + "kind": "OBJECT", + "name": "ContactPerson", + "ofType": null }, "isDeprecated": false, "deprecationReason": null diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 7d3d46b..149b333 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,26 +1,24 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import {FormsModule, ReactiveFormsModule} from '@angular/forms'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; -import {DragDropModule} from '@angular/cdk/drag-drop'; - +import { DragDropModule } from '@angular/cdk/drag-drop'; // Angular Material Components -import {MatToolbarModule} from '@angular/material/toolbar'; -import {MatButtonModule} from '@angular/material/button'; -import {MatTableModule} from '@angular/material/table'; -import {MatInputModule} from '@angular/material/input'; -import {MatMenuModule} from '@angular/material/menu'; -import {MatSlideToggleModule} from '@angular/material/slide-toggle'; -import {MatIconModule} from '@angular/material/icon'; -import {MatSidenavModule} from '@angular/material/sidenav'; -import {MatListModule} from '@angular/material/list'; -import {MatFormFieldModule} from '@angular/material/form-field'; -import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; -import {MatProgressBarModule} from '@angular/material/progress-bar'; -import {MatCheckboxModule} from '@angular/material/checkbox'; - +import { MatToolbarModule } from '@angular/material/toolbar'; +import { MatButtonModule } from '@angular/material/button'; +import { MatTableModule } from '@angular/material/table'; +import { MatInputModule } from '@angular/material/input'; +import { MatMenuModule } from '@angular/material/menu'; +import { MatSlideToggleModule } from '@angular/material/slide-toggle'; +import { MatIconModule } from '@angular/material/icon'; +import { MatSidenavModule } from '@angular/material/sidenav'; +import { MatListModule } from '@angular/material/list'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; +import { MatProgressBarModule } from '@angular/material/progress-bar'; +import { MatCheckboxModule } from '@angular/material/checkbox'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; @@ -33,8 +31,6 @@ import { LendingStationsComponent } from './pages/tables/lending-stations/lendin import { TableOverviewComponent } from './pages/table-overview/table-overview.component'; import { StringCellComponent } from './components/tableComponents/string-cell/string-cell.component'; - - @NgModule({ declarations: [ AppComponent, @@ -43,7 +39,7 @@ import { StringCellComponent } from './components/tableComponents/string-cell/st ParticipantsComponent, LendingStationsComponent, TableOverviewComponent, - StringCellComponent + StringCellComponent, ], imports: [ BrowserModule, @@ -66,9 +62,10 @@ import { StringCellComponent } from './components/tableComponents/string-cell/st MatProgressBarModule, MatCheckboxModule, GraphQLModule, - DragDropModule + DragDropModule, ], providers: [], - bootstrap: [AppComponent] + bootstrap: [AppComponent], }) -export class AppModule { } +export class AppModule { +} diff --git a/src/app/graphql.module.ts b/src/app/graphql.module.ts index a160560..be2adee 100644 --- a/src/app/graphql.module.ts +++ b/src/app/graphql.module.ts @@ -1,6 +1,6 @@ import {NgModule} from '@angular/core'; import {APOLLO_OPTIONS} from 'apollo-angular'; -import {ApolloClientOptions, InMemoryCache} from '@apollo/client/core'; +import {ApolloClientOptions, ApolloLink, InMemoryCache} from '@apollo/client/core'; import {HttpLink} from 'apollo-angular/http'; import { environment } from '../environments/environment'; @@ -8,7 +8,7 @@ const uri = environment.apiUrl + '/graphql'; // <-- add the URL of the GraphQL s export function createApollo(httpLink: HttpLink): ApolloClientOptions { return { link: httpLink.create({uri}), - cache: new InMemoryCache(), + cache: new InMemoryCache({}), }; } @@ -21,4 +21,5 @@ export function createApollo(httpLink: HttpLink): ApolloClientOptions { }, ], }) -export class GraphQLModule {} +export class GraphQLModule { +} \ No newline at end of file diff --git a/src/app/graphqlOperations/bike.graphql b/src/app/graphqlOperations/bike.graphql index f7f60e0..f394a48 100644 --- a/src/app/graphqlOperations/bike.graphql +++ b/src/app/graphqlOperations/bike.graphql @@ -1,5 +1,11 @@ -query GetCargoBikeById($id: ID!){ +query GetCargoBikeById($id: ID!) { cargoBikeById(id: $id) { - ...CargoBikeFragment + ...CargoBikeFields + } +} + +mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) { + updateCargoBike(cargoBike: $bike) { + ...CargoBikeFields } } diff --git a/src/app/graphqlOperations/bikes.graphql b/src/app/graphqlOperations/bikes.graphql index 76d4761..05b0c3b 100644 --- a/src/app/graphqlOperations/bikes.graphql +++ b/src/app/graphqlOperations/bikes.graphql @@ -1,5 +1,5 @@ -query GetCargoBikes{ - cargoBikes { - ...CargoBikeFragment +query GetCargoBikes { + cargoBikes(limit: 100, offset: 0) { + ...CargoBikeFields } } diff --git a/src/app/graphqlOperations/fragments/bikeFragment.graphql b/src/app/graphqlOperations/fragments/bikeFragment.graphql index c4f0cdf..cda4099 100644 --- a/src/app/graphqlOperations/fragments/bikeFragment.graphql +++ b/src/app/graphqlOperations/fragments/bikeFragment.graphql @@ -1,12 +1,14 @@ -fragment CargoBikeFragment on CargoBike { +fragment CargoBikeFields on CargoBike { id group name - events { - date + bikeEvents { + date + id } insuranceData { billing + hasFixedRate } dimensionsAndLoad { bikeLength diff --git a/src/app/services/deepCopy.ts b/src/app/helperFunctions/deepCopy.ts similarity index 100% rename from src/app/services/deepCopy.ts rename to src/app/helperFunctions/deepCopy.ts diff --git a/src/app/helperFunctions/extractType.ts b/src/app/helperFunctions/extractType.ts new file mode 100644 index 0000000..540601a --- /dev/null +++ b/src/app/helperFunctions/extractType.ts @@ -0,0 +1,9 @@ +export function extractType(properties: Record){ + return function(value: TActual){ + let result = {} as T; + for (const property of Object.keys(properties) as Array) { + result[property] = value[property]; + } + return result; + } +} \ No newline at end of file diff --git a/src/app/pages/tables/bikes/bikes.component.html b/src/app/pages/tables/bikes/bikes.component.html index dce6c0f..136ceb7 100644 --- a/src/app/pages/tables/bikes/bikes.component.html +++ b/src/app/pages/tables/bikes/bikes.component.html @@ -114,7 +114,11 @@ > save - diff --git a/src/app/pages/tables/bikes/bikes.component.ts b/src/app/pages/tables/bikes/bikes.component.ts index 5234a18..fee0309 100644 --- a/src/app/pages/tables/bikes/bikes.component.ts +++ b/src/app/pages/tables/bikes/bikes.component.ts @@ -2,7 +2,7 @@ import { SelectionModel } from '@angular/cdk/collections'; import { Component } from '@angular/core'; import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'; import { BikesService, CargoBikeResult } from 'src/app/services/bikes.service'; -import { deepCopy } from 'src/app/services/deepCopy'; +import { deepCopy } from 'src/app/helperFunctions/deepCopy'; type CargoBikeDataRow = CargoBikeResult & { waitingForEditPermissions: boolean; @@ -50,17 +50,19 @@ export class BikesComponent { setTimeout(() => { row.waitingForEditPermissions = false; row.isGettingEdited = true; - }, 800); + }, Math.random()*1000); } save(row: CargoBikeDataRow) { - console.log(row); + //remove lock + this.bikesService.updateBike({bike: row}) } cancel(row: CargoBikeDataRow) { //fetch it again //TODO: remove lock - this.bikesService.reloadBike({id: row.id}); + this.bikesService.reloadBike({ id: row.id }); + console.log('cancel'); } drop(event: CdkDragDrop) { diff --git a/src/app/services/bikes.service.ts b/src/app/services/bikes.service.ts index 7dbc136..3eadb57 100644 --- a/src/app/services/bikes.service.ts +++ b/src/app/services/bikes.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; -import { GetCargoBikesGQL, GetCargoBikesQuery, GetCargoBikeByIdGQL, GetCargoBikeByIdQuery, GetCargoBikeByIdQueryVariables } from 'src/generated/graphql'; +import { GetCargoBikesGQL, GetCargoBikesQuery, GetCargoBikeByIdGQL, GetCargoBikeByIdQueryVariables, UpdateCargoBikeGQL, UpdateCargoBikeMutationVariables, UpdateCargoBikeDocument, CargoBikeFieldsFragmentDoc} from 'src/generated/graphql'; import { DeepExtractTypeSkipArrays } from 'ts-deep-extract-types'; export type CargoBikeResult = DeepExtractTypeSkipArrays; @@ -11,18 +11,25 @@ export type CargoBikeResult = DeepExtractTypeSkipArrays = new BehaviorSubject([]); - constructor(private getCargoBikesGQL: GetCargoBikesGQL, private getCargoBikeByIdGQL: GetCargoBikeByIdGQL) { } + constructor(private getCargoBikesGQL: GetCargoBikesGQL, private getCargoBikeByIdGQL: GetCargoBikeByIdGQL, private updateCargoBikeGQL: UpdateCargoBikeGQL) { } loadBikes() { - this.getCargoBikesGQL.watch().valueChanges.subscribe((result) => { + this.getCargoBikesGQL.fetch().subscribe((result) => { this.bikes.next(result.data.cargoBikes); }); } - reloadBike(parameter: GetCargoBikeByIdQueryVariables) { - this.getCargoBikeByIdGQL.watch().valueChanges.subscribe((result) => { + 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)); }); } + + 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)); + }) + } } diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index 974b46f..fb9b7fa 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -39,24 +39,38 @@ export type CargoBike = { technicalEquipment?: Maybe; /** Does not refere to an extra table in the database. */ dimensionsAndLoad: DimensionsAndLoad; - events?: Maybe>>; + bikeEvents?: Maybe>>; equipment?: Maybe>>; /** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ - otherEquipment?: Maybe>>; - chainSwaps?: Maybe>>; + miscellaneousEquipment?: Maybe>>; /** Sticker State */ stickerBikeNameState?: Maybe; note?: Maybe; provider?: Maybe; coordinator?: Maybe; insuranceData: InsuranceData; - lendingstation?: Maybe; + lendingStation?: Maybe; taxes?: Maybe; + engagement?: Maybe>>; /** 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 CargoBikeEquipmentArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +/** The CargoBike type is central to the graph. You could call it the root. */ +export type CargoBikeEngagementArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + export type CargoBikeCreateInput = { /** see column A in info tabelle */ group: Group; @@ -76,13 +90,13 @@ export type CargoBikeCreateInput = { /** Does not refere to an extra table in the database. */ dimensionsAndLoad: DimensionsAndLoadCreateInput; /** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ - otherEquipment?: Maybe>>; + miscellaneousEquipment?: Maybe>>; /** Sticker State */ stickerBikeNameState?: Maybe; note?: Maybe; provider?: Maybe; insuranceData: InsuranceDataCreateInput; - taxes?: Maybe; + taxes: TaxesCreateInput; }; export type CargoBikeUpdateInput = { @@ -105,7 +119,8 @@ export type CargoBikeUpdateInput = { /** Does not refere to an extra table in the database. */ dimensionsAndLoad?: Maybe; /** Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 */ - otherEquipment?: Maybe>>; + miscellaneousEquipment?: Maybe>>; + lendingStationId?: Maybe; /** Sticker State */ stickerBikeNameState?: Maybe; note?: Maybe; @@ -194,13 +209,13 @@ export type Participant = { __typename?: 'Participant'; id: Scalars['ID']; start: Scalars['Date']; - end: Scalars['Date']; - mentor: ContactInformation; + end?: Maybe; + contactInformation: ContactInformation; usernamefLotte?: Maybe; usernameSlack?: Maybe; memberADFC: Scalars['Boolean']; locationZIPs?: Maybe>>; - roleCoreTeam: Scalars['Boolean']; + memberCoreTeam: Scalars['Boolean']; roleCoordinator: Scalars['Boolean']; roleEmployeADFC: Scalars['Boolean']; /** Wahr, wenn die Person Pate ist. */ @@ -219,6 +234,52 @@ export type Participant = { */ distributedActiveBikeParte: Scalars['Boolean']; reserve?: Maybe; + engagement?: Maybe>>; +}; + +export type ParticipantCreateInput = { + start: Scalars['Date']; + end?: Maybe; + /** must create contactinformation first, if you want to use new */ + contactInformationId: Scalars['ID']; + usernamefLotte?: Maybe; + usernameSlack?: Maybe; + memberADFC: Scalars['Boolean']; + 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; +}; + +export type Engagement = { + __typename?: 'Engagement'; + id: Scalars['ID']; + 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']; +}; + +export type EngagementCreateInput = { + from: Scalars['Date']; + 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 Taxes = { @@ -261,21 +322,53 @@ export type Equipment = { serialNo: Scalars['String']; /** TODO unclear what this means. tomy fragen */ investable?: Maybe; - name?: Maybe; + title: Scalars['String']; + description?: Maybe; + cargoBike?: 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; }; /** An Event is a point in time, when the state of the bike somehow changed. */ export type BikeEvent = { __typename?: 'BikeEvent'; id: Scalars['ID']; - eventType?: Maybe; + eventType: BikeEventType; + cargoBike: CargoBike; date: Scalars['Date']; note?: Maybe; /** Path to documents */ - documents?: Maybe>>; + documents: Array>; }; -/** TODO: Some eventTypes are missing (und auf deutsch) */ +export type BikeEventCreateInput = { + eventType: BikeEventType; + /** it is enough to pass the cargoBike id */ + cargoBikeId: Scalars['ID']; + date: Scalars['Date']; + note?: Maybe; + /** Path to documents */ + documents: Array>; +}; + +/** TODO: Some eventTypes are missing */ export enum BikeEventType { /** * The enum EventType can also be represented as an enum in postgresQL. @@ -286,7 +379,8 @@ export enum BikeEventType { Kauf = 'KAUF', Inbetriebnahme = 'INBETRIEBNAHME', Ausfall = 'AUSFALL', - Wartung = 'WARTUNG' + Wartung = 'WARTUNG', + Andere = 'ANDERE' } /** How are the dimensions and how much weight can handle a bike. This data is merged in the CargoBike table and the BikeModel table. */ @@ -408,7 +502,6 @@ export type Provider = { id: Scalars['ID']; name: Scalars['String']; formularName?: Maybe; - address?: Maybe
; providerContactPerson?: Maybe>>; isPrivatePerson: Scalars['Boolean']; organisation?: Maybe; @@ -431,8 +524,8 @@ export type ContactInformation = { }; export type ContactInformationCreateInput = { - name?: Maybe; - firstName?: Maybe; + name: Scalars['String']; + firstName: Scalars['String']; retiredAt?: Maybe; phoneExtern?: Maybe; phone2Extern?: Maybe; @@ -457,9 +550,28 @@ export type ContactInformationUpdateInput = { note?: Maybe; }; +export type ContactPerson = { + __typename?: 'ContactPerson'; + id: Scalars['ID']; + intern: Scalars['Boolean']; + contactInformation: ContactInformation; +}; + +export type ContactPersonCreateInput = { + intern: Scalars['Boolean']; + contactInformationId: Scalars['ID']; +}; + +export type ContactPersonUpdateInput = { + id: Scalars['ID']; + intern?: Maybe; + contactInformationId?: Maybe; +}; + export type Organisation = { __typename?: 'Organisation'; id: Scalars['ID']; + address?: Maybe
; /** (dt. Ausleihstation) */ lendingStations?: Maybe>>; /** registration number of association */ @@ -475,18 +587,21 @@ export type LendingStation = { __typename?: 'LendingStation'; id: Scalars['ID']; name: Scalars['String']; - contactInformation: Array>; + contactPersons: Array>; address: Address; - loanTimes?: Maybe; - loanPeriods: Array>; + 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; - loanTimes?: Maybe; - loanPeriods: Array>; + loanPeriods?: Maybe; + timeFrames: Array>; }; export type LendingStationUpdateInput = { @@ -494,13 +609,13 @@ export type LendingStationUpdateInput = { name?: Maybe; contactInformation?: Maybe>>; address?: Maybe; - loanTimes?: Maybe; - loanPeriods?: Maybe>>; + loanPeriods?: Maybe; + timeFrames?: Maybe>>; }; -/** (dt. Ausleihzeiten) */ -export type LoanTimes = { - __typename?: 'LoanTimes'; +/** (dt. Ausleihzeiten) not implemented */ +export type LoanPeriods = { + __typename?: 'LoanPeriods'; generalRemark?: Maybe; /** notes for each day of the week, starting on Monday */ notes?: Maybe>>; @@ -512,7 +627,7 @@ export type LoanTimes = { }; /** (dt. Ausleihzeiten) */ -export type LoanTimesInput = { +export type LoanPeriodsInput = { generalRemark?: Maybe; /** notes for each day of the week, starting on Monday */ notes?: Maybe>>; @@ -524,8 +639,8 @@ export type LoanTimesInput = { }; /** (dt. Zeitscheibe) */ -export type LoanPeriod = { - __typename?: 'LoanPeriod'; +export type TimeFrame = { + __typename?: 'TimeFrame'; id: Scalars['ID']; from: Scalars['Date']; to?: Maybe; @@ -534,7 +649,7 @@ export type LoanPeriod = { cargoBike: CargoBike; }; -export type LoanPeriodCreateInput = { +export type TimeFrameCreateInput = { from?: Maybe; to?: Maybe; note?: Maybe; @@ -542,7 +657,7 @@ export type LoanPeriodCreateInput = { cargoBikeID?: Maybe; }; -export type LoanPeriodUpdateInput = { +export type TimeFrameUpdateInput = { id: Scalars['ID']; from?: Maybe; to?: Maybe; @@ -572,18 +687,26 @@ export type AddressUpdateInput = { export type Query = { __typename?: 'Query'; + /** Will (evetually) return all properties of cargo bike */ cargoBikeById?: Maybe; - /** returns all cargoBikes */ + /** returns cargoBikes ordered by name ascending, relations are not loaded, use cargoBikeById instead */ cargoBikes: Array>; - /** not important, you can just use providerById {cargoBikes} */ - cargoBikesByProvider: 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; }; @@ -592,8 +715,9 @@ export type QueryCargoBikeByIdArgs = { }; -export type QueryCargoBikesByProviderArgs = { - providerId: Scalars['ID']; +export type QueryCargoBikesArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; }; @@ -602,38 +726,80 @@ export type QueryProviderByIdArgs = { }; +export type QueryEquipmentArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryEquipmentByIdArgs = { + id: Scalars['ID']; +}; + + export type QueryParticipantByIdArgs = { id: Scalars['ID']; }; +export type QueryParticipantsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + export type QueryLendingStationByIdArgs = { id: Scalars['ID']; }; + +export type QueryLendingStationsArgs = { + offset: Scalars['Int']; + limit: Scalars['Int']; +}; + + +export type QueryBikeEventByIdArgs = { + id: Scalars['ID']; +}; + export type Mutation = { __typename?: 'Mutation'; - /** for testing */ - addBike: CargoBike; /** creates new cargoBike and returns cargobike with new ID */ createCargoBike: CargoBike; + /** lock cargoBike - not implemented */ + 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; + /** 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 MutationAddBikeArgs = { - id: Scalars['ID']; - name?: Maybe; +export type MutationCreateCargoBikeArgs = { + cargoBike: CargoBikeCreateInput; }; -export type MutationCreateCargoBikeArgs = { - cargoBike: CargoBikeCreateInput; +export type MutationLockCargoBikeByIdArgs = { + id: Scalars['ID']; }; @@ -642,6 +808,16 @@ export type MutationUpdateCargoBikeArgs = { }; +export type MutationCreateEquipmentArgs = { + equipment: EquipmentCreateInput; +}; + + +export type MutationUpdateEquipmentArgs = { + equipment: EquipmentUpdateInput; +}; + + export type MutationCreateLendingStationArgs = { lendingStation?: Maybe; }; @@ -651,6 +827,36 @@ export type MutationUpdateLendingStationArgs = { lendingstation: LendingStationUpdateInput; }; + +export type MutationCreateBikeEventArgs = { + bikeEvent?: Maybe; +}; + + +export type MutationCreateParticipantArgs = { + participant: ParticipantCreateInput; +}; + + +export type MutationCreateContactInformationArgs = { + contactInformation: ContactInformationCreateInput; +}; + + +export type MutationCreateEngagementArgs = { + engagement?: Maybe; +}; + + +export type MutationCreateContactPersonArgs = { + contactPerson?: Maybe; +}; + + +export type MutationUpdateContactPersonArgs = { + contactPerson?: Maybe; +}; + export enum CacheControlScope { Public = 'PUBLIC', Private = 'PRIVATE' @@ -666,10 +872,23 @@ export type GetCargoBikeByIdQuery = ( { __typename?: 'Query' } & { cargoBikeById?: Maybe<( { __typename?: 'CargoBike' } - & CargoBikeFragmentFragment + & CargoBikeFieldsFragment )> } ); +export type UpdateCargoBikeMutationVariables = Exact<{ + bike: CargoBikeUpdateInput; +}>; + + +export type UpdateCargoBikeMutation = ( + { __typename?: 'Mutation' } + & { updateCargoBike: ( + { __typename?: 'CargoBike' } + & CargoBikeFieldsFragment + ) } +); + export type GetCargoBikesQueryVariables = Exact<{ [key: string]: never; }>; @@ -677,19 +896,19 @@ export type GetCargoBikesQuery = ( { __typename?: 'Query' } & { cargoBikes: Array> } ); -export type CargoBikeFragmentFragment = ( +export type CargoBikeFieldsFragment = ( { __typename?: 'CargoBike' } & Pick - & { events?: Maybe + & Pick )>>>, insuranceData: ( { __typename?: 'InsuranceData' } - & Pick + & Pick ), dimensionsAndLoad: ( { __typename?: 'DimensionsAndLoad' } & Pick @@ -699,16 +918,18 @@ export type CargoBikeFragmentFragment = ( ) } ); -export const CargoBikeFragmentFragmentDoc = gql` - fragment CargoBikeFragment on CargoBike { +export const CargoBikeFieldsFragmentDoc = gql` + fragment CargoBikeFields on CargoBike { id group name - events { + bikeEvents { date + id } insuranceData { billing + hasFixedRate } dimensionsAndLoad { bikeLength @@ -751,10 +972,10 @@ export const CargoBikeFragmentFragmentDoc = gql` export const GetCargoBikeByIdDocument = gql` query GetCargoBikeById($id: ID!) { cargoBikeById(id: $id) { - ...CargoBikeFragment + ...CargoBikeFields } } - ${CargoBikeFragmentFragmentDoc}`; + ${CargoBikeFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' @@ -762,17 +983,35 @@ export const GetCargoBikeByIdDocument = gql` export class GetCargoBikeByIdGQL extends Apollo.Query { document = GetCargoBikeByIdDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UpdateCargoBikeDocument = gql` + mutation UpdateCargoBike($bike: CargoBikeUpdateInput!) { + updateCargoBike(cargoBike: $bike) { + ...CargoBikeFields + } +} + ${CargoBikeFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class UpdateCargoBikeGQL extends Apollo.Mutation { + document = UpdateCargoBikeDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } } export const GetCargoBikesDocument = gql` query GetCargoBikes { - cargoBikes { - ...CargoBikeFragment + cargoBikes(limit: 100, offset: 0) { + ...CargoBikeFields } } - ${CargoBikeFragmentFragmentDoc}`; + ${CargoBikeFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' diff --git a/tsconfig.base.json b/tsconfig.base.json index afef69c..3cc339d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -9,7 +9,7 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "es2016", + "target": "es2015", "module": "es2020", "lib": [ "es2018",