From b6f0b188163dbf60d8b800300359e583b68e6efa Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Thu, 3 Dec 2020 00:03:39 +0100 Subject: [PATCH] Add bike status --- .../contactInformation.graphql | 14 +- .../graphqlOperations/fragments/bike.graphql | 1 + .../pages/dataPages/bike/bike.component.ts | 1 + src/app/pages/tables/bikes/bikes.component.ts | 1 + src/generated/graphql.schema.json | 248 ++++++++++++------ src/generated/graphql.ts | 95 ++++--- 6 files changed, 236 insertions(+), 124 deletions(-) diff --git a/src/app/graphqlOperations/contactInformation.graphql b/src/app/graphqlOperations/contactInformation.graphql index cc4a3e3..f489a4c 100644 --- a/src/app/graphqlOperations/contactInformation.graphql +++ b/src/app/graphqlOperations/contactInformation.graphql @@ -4,13 +4,17 @@ query GetContactInformation { } } -mutation CreateContactInformation($contactInformation: ContactInformationCreateInput!) { +mutation CreateContactInformation( + $contactInformation: ContactInformationCreateInput! +) { createContactInformation(contactInformation: $contactInformation) { ...ContactInformationFields } } -mutation UpdateContactInformation($contactInformation: ContactInformationUpdateInput!) { +mutation UpdateContactInformation( + $contactInformation: ContactInformationUpdateInput! +) { updateContactInformation(contactInformation: $contactInformation) { ...ContactInformationFields } @@ -23,9 +27,9 @@ mutation LockContactInformation($id: ID!) { } mutation UnlockContactInformation($id: ID!) { - unlockContactInformation(id: $id) #{ - #add this: ...ContactInformationFields - # } + unlockContactInformation(id: $id) { + ...ContactInformationFields + } } mutation DeleteContactInformation($id: ID!) { diff --git a/src/app/graphqlOperations/fragments/bike.graphql b/src/app/graphqlOperations/fragments/bike.graphql index 79a85cf..035fd08 100644 --- a/src/app/graphqlOperations/fragments/bike.graphql +++ b/src/app/graphqlOperations/fragments/bike.graphql @@ -3,6 +3,7 @@ fragment CargoBikeFieldsForTable on CargoBike { group name modelName + state insuranceData { billing hasFixedRate diff --git a/src/app/pages/dataPages/bike/bike.component.ts b/src/app/pages/dataPages/bike/bike.component.ts index 1dec98b..a9eda96 100644 --- a/src/app/pages/dataPages/bike/bike.component.ts +++ b/src/app/pages/dataPages/bike/bike.component.ts @@ -17,6 +17,7 @@ export class BikeComponent implements OnInit { { dataPath: 'name', translation: 'Name' }, { dataPath: 'Group', translation: 'Gruppe' }, { dataPath: 'modelName', translation: 'Modell' }, + { dataPath: 'state', translation: 'Status' }, ], }, { diff --git a/src/app/pages/tables/bikes/bikes.component.ts b/src/app/pages/tables/bikes/bikes.component.ts index c3fce20..112817e 100644 --- a/src/app/pages/tables/bikes/bikes.component.ts +++ b/src/app/pages/tables/bikes/bikes.component.ts @@ -18,6 +18,7 @@ export class BikesComponent implements OnInit { }, { dataPath: 'group', translation: 'Gruppe' }, { dataPath: 'modelName', translation: 'Modell' }, + { dataPath: 'state', translation: 'Status' }, { dataPath: 'insuranceData.billing', translation: 'Versicherung Abrechnung', diff --git a/src/generated/graphql.schema.json b/src/generated/graphql.schema.json index 66a4b45..ead9c42 100644 --- a/src/generated/graphql.schema.json +++ b/src/generated/graphql.schema.json @@ -12,6 +12,16 @@ { "kind": "SCALAR", "name": "Date", + "description": "date object YYYY-MM-dd", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "DateTime", "description": "timestamp object YYYY-MM-ddThh:mm:ss.sssZ", "fields": null, "inputFields": null, @@ -493,7 +503,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -2581,7 +2591,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -3026,7 +3036,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -3311,7 +3321,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -3486,7 +3496,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -3723,7 +3733,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -4120,7 +4130,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -4369,7 +4379,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -4662,7 +4672,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -4987,7 +4997,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -5171,7 +5181,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -5448,7 +5458,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -5701,7 +5711,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -6062,7 +6072,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -6463,7 +6473,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -6667,33 +6677,85 @@ "deprecationReason": null }, { - "name": "notes", - "description": "notes for each day of the week, starting on Monday", + "name": "mo", + "description": null, "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "loanTimes", - "description": "Loan times from and until for each day of the week.\nStarting with Monday from, Monday to, Tuesday from, ..., Sunday to", + "name": "tu", + "description": null, "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "we", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "th", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fr", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sa", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "su", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -6721,38 +6783,72 @@ "defaultValue": null }, { - "name": "notes", - "description": "notes for each day of the week, starting on Monday", + "name": "mo", + "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "loanTimes", - "description": "Loan times from and until for each day of the week.\nStarting with Monday from, Monday to, Tuesday from, ..., Sunday to", + "name": "tu", + "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "we", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "th", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "fr", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "sa", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "su", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null } @@ -6966,7 +7062,7 @@ "args": [], "type": { "kind": "SCALAR", - "name": "Date", + "name": "DateTime", "ofType": null }, "isDeprecated": false, @@ -9786,8 +9882,8 @@ } ], "type": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "Participant", "ofType": null }, "isDeprecated": false, @@ -9940,8 +10036,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "WorkshopType", "ofType": null } }, @@ -10095,8 +10191,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "Workshop", "ofType": null } }, @@ -10250,8 +10346,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "ContactInformation", "ofType": null } }, @@ -10556,8 +10652,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "Engagement", "ofType": null } }, @@ -10711,8 +10807,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "EngagementType", "ofType": null } }, @@ -10866,8 +10962,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "Provider", "ofType": null } }, @@ -11021,8 +11117,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "OBJECT", + "name": "Organisation", "ofType": null } }, diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index 9a79482..bf95c5d 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10,8 +10,10 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; - /** timestamp object YYYY-MM-ddThh:mm:ss.sssZ */ + /** date object YYYY-MM-dd */ Date: any; + /** timestamp object YYYY-MM-ddThh:mm:ss.sssZ */ + DateTime: any; /** only time hh-mm-ss */ Time: any; /** @@ -31,6 +33,7 @@ export type Scalars = { + /** The CargoBike type is central to the graph. You could call it the root. */ export type CargoBike = { __typename?: 'CargoBike'; @@ -76,7 +79,7 @@ export type CargoBike = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; @@ -424,7 +427,7 @@ export type Participant = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type ParticipantCreateInput = { @@ -476,7 +479,7 @@ export type Workshop = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type WorkshopCreateInput = { @@ -507,7 +510,7 @@ export type WorkshopType = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type WorkshopTypeCreateInput = { @@ -528,7 +531,7 @@ export type EngagementType = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type EngagementTypeCreateInput = { @@ -554,7 +557,7 @@ export type Engagement = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type EngagementCreateInput = { @@ -609,7 +612,7 @@ export type Equipment = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type EquipmentCreateInput = { @@ -642,7 +645,7 @@ export type EquipmentType = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type EquipmentTypeCreateInput = { @@ -674,7 +677,7 @@ export type BikeEvent = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type BikeEventCreateInput = { @@ -711,7 +714,7 @@ export type BikeEventType = { isLocked: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type BikeEventTypeUpdateInput = { @@ -732,7 +735,7 @@ export type Provider = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; /** (dt. Anbieter) */ @@ -767,7 +770,7 @@ export type Person = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type PersonCreateInput = { @@ -795,7 +798,7 @@ export type ContactInformation = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type ContactInformationCreateInput = { @@ -836,7 +839,7 @@ export type Organisation = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type OrganisationCreateInput = { @@ -881,7 +884,7 @@ export type LendingStation = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; /** If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null */ @@ -910,25 +913,25 @@ export type LendingStationUpdateInput = { export type LoanPeriod = { __typename?: 'LoanPeriod'; generalRemark?: Maybe; - /** notes for each day of the week, starting on Monday */ - notes?: Maybe>>; - /** - * Loan times from and until for each day of the week. - * Starting with Monday from, Monday to, Tuesday from, ..., Sunday to - */ - loanTimes?: Maybe>>; + mo?: Maybe; + tu?: Maybe; + we?: Maybe; + th?: Maybe; + fr?: Maybe; + sa?: Maybe; + su?: Maybe; }; /** (dt. Ausleihzeiten) */ export type LoanPeriodInput = { generalRemark?: Maybe; - /** notes for each day of the week, starting on Monday */ - notes?: Maybe>; - /** - * Loan times from and until for each day of the week. - * Starting with Monday from, Monday to, Tuesday from, ..., Sunday to - */ - loanTimes?: Maybe>; + mo?: Maybe; + tu?: Maybe; + we?: Maybe; + th?: Maybe; + fr?: Maybe; + sa?: Maybe; + su?: Maybe; }; export type DateRange = { @@ -960,7 +963,7 @@ export type TimeFrame = { isLockedByMe: Scalars['Boolean']; /** null if not locked by other user */ lockedBy?: Maybe; - lockedUntil?: Maybe; + lockedUntil?: Maybe; }; export type TimeFrameCreateInput = { @@ -1316,23 +1319,23 @@ export type Mutation = { /** PARTICIPANTS */ createParticipant: Participant; lockParticipant: Participant; - unlockParticipant?: Maybe; + unlockParticipant?: Maybe; updateParticipant: Participant; deleteParticipant: Scalars['Boolean']; createWorkshopType: WorkshopType; lockWorkshopType: WorkshopType; - unlockWorkshopType: Scalars['Boolean']; + unlockWorkshopType: WorkshopType; updateWorkshopType: WorkshopType; deleteWorkshopType: Scalars['Boolean']; createWorkshop: Workshop; lockWorkshop: Workshop; - unlockWorkshop: Scalars['Boolean']; + unlockWorkshop: Workshop; updateWorkshop: Workshop; deleteWorkshop: Scalars['Boolean']; /** create new contactInfo */ createContactInformation: ContactInformation; lockContactInformation: ContactInformation; - unlockContactInformation: Scalars['Boolean']; + unlockContactInformation: ContactInformation; updateContactInformation: ContactInformation; deleteContactInformation: Scalars['Boolean']; createPerson: Person; @@ -1343,22 +1346,22 @@ export type Mutation = { /** create Engagement */ createEngagement: Engagement; lockEngagement: Engagement; - unlockEngagement: Scalars['Boolean']; + unlockEngagement: Engagement; updateEngagement: Engagement; deleteEngagement: Scalars['Boolean']; createEngagementType: EngagementType; lockEngagementType: EngagementType; - unlockEngagementType: Scalars['Boolean']; + unlockEngagementType: EngagementType; updateEngagementType: EngagementType; deleteEngagementType: Scalars['Boolean']; createProvider: Provider; lockProvider: Provider; - unlockProvider: Scalars['Boolean']; + unlockProvider: Provider; updateProvider: Provider; deleteProvider: Scalars['Boolean']; createOrganisation: Organisation; lockOrganisation: Organisation; - unlockOrganisation: Scalars['Boolean']; + unlockOrganisation: Organisation; updateOrganisation: Organisation; deleteOrganisation: Scalars['Boolean']; }; @@ -1887,7 +1890,10 @@ export type UnlockContactInformationMutationVariables = Exact<{ }>; -export type UnlockContactInformationMutation = { __typename?: 'Mutation', unlockContactInformation: boolean }; +export type UnlockContactInformationMutation = { __typename?: 'Mutation', unlockContactInformation: ( + { __typename?: 'ContactInformation' } + & ContactInformationFieldsFragment + ) }; export type DeleteContactInformationMutationVariables = Exact<{ id: Scalars['ID']; @@ -2008,7 +2014,7 @@ export type DeleteEquipmentTypeMutation = { __typename?: 'Mutation', deleteEquip export type AddressFieldsFragment = { __typename?: 'Address', street: string, number: string, zip: string }; -export type CargoBikeFieldsForTableFragment = { __typename?: 'CargoBike', id: string, group?: Maybe, name: string, modelName?: Maybe, numberOfChildren?: Maybe, numberOfWheels?: Maybe, forCargo?: Maybe, forChildren?: Maybe, stickerBikeNameState?: Maybe, note?: Maybe, isLocked: boolean, isLockedByMe: boolean, lockedBy?: Maybe, lockedUntil?: Maybe, insuranceData?: Maybe<{ __typename?: 'InsuranceData', billing?: Maybe, hasFixedRate?: Maybe, name?: Maybe, benefactor?: Maybe, noPnP?: Maybe, maintenanceResponsible?: Maybe, maintenanceBenefactor?: Maybe, maintenanceAgreement?: Maybe, fixedRate?: Maybe, projectAllowance?: Maybe, notes?: Maybe }>, dimensionsAndLoad?: Maybe<{ __typename?: 'DimensionsAndLoad', bikeLength?: Maybe, bikeWeight?: Maybe, bikeHeight?: Maybe, bikeWidth?: Maybe, hasCoverBox?: Maybe, lockable?: Maybe, maxWeightBox?: Maybe, maxWeightLuggageRack?: Maybe, maxWeightTotal?: Maybe, boxHeightRange?: Maybe<{ __typename?: 'NumRange', max?: Maybe, min?: Maybe }>, boxLengthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe, max?: Maybe }>, boxWidthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe, max?: Maybe }> }>, security?: Maybe<{ __typename?: 'Security', frameNumber?: Maybe, adfcCoding?: Maybe, keyNumberAXAChain?: Maybe, keyNumberFrameLock?: Maybe, policeCoding?: Maybe }>, technicalEquipment?: Maybe<{ __typename?: 'TechnicalEquipment', bicycleShift?: Maybe, isEBike?: Maybe, hasLightSystem?: Maybe, specialFeatures?: Maybe }>, taxes?: Maybe<{ __typename?: 'Taxes', costCenter?: Maybe, organisationArea?: Maybe }>, provider?: Maybe<( +export type CargoBikeFieldsForTableFragment = { __typename?: 'CargoBike', id: string, group?: Maybe, name: string, modelName?: Maybe, state?: Maybe, numberOfChildren?: Maybe, numberOfWheels?: Maybe, forCargo?: Maybe, forChildren?: Maybe, stickerBikeNameState?: Maybe, note?: Maybe, isLocked: boolean, isLockedByMe: boolean, lockedBy?: Maybe, lockedUntil?: Maybe, insuranceData?: Maybe<{ __typename?: 'InsuranceData', billing?: Maybe, hasFixedRate?: Maybe, name?: Maybe, benefactor?: Maybe, noPnP?: Maybe, maintenanceResponsible?: Maybe, maintenanceBenefactor?: Maybe, maintenanceAgreement?: Maybe, fixedRate?: Maybe, projectAllowance?: Maybe, notes?: Maybe }>, dimensionsAndLoad?: Maybe<{ __typename?: 'DimensionsAndLoad', bikeLength?: Maybe, bikeWeight?: Maybe, bikeHeight?: Maybe, bikeWidth?: Maybe, hasCoverBox?: Maybe, lockable?: Maybe, maxWeightBox?: Maybe, maxWeightLuggageRack?: Maybe, maxWeightTotal?: Maybe, boxHeightRange?: Maybe<{ __typename?: 'NumRange', max?: Maybe, min?: Maybe }>, boxLengthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe, max?: Maybe }>, boxWidthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe, max?: Maybe }> }>, security?: Maybe<{ __typename?: 'Security', frameNumber?: Maybe, adfcCoding?: Maybe, keyNumberAXAChain?: Maybe, keyNumberFrameLock?: Maybe, policeCoding?: Maybe }>, technicalEquipment?: Maybe<{ __typename?: 'TechnicalEquipment', bicycleShift?: Maybe, isEBike?: Maybe, hasLightSystem?: Maybe, specialFeatures?: Maybe }>, taxes?: Maybe<{ __typename?: 'Taxes', costCenter?: Maybe, organisationArea?: Maybe }>, provider?: Maybe<( { __typename?: 'Provider' } & ProviderFieldsGeneralFragment )>, lendingStation?: Maybe<( @@ -2310,6 +2316,7 @@ export const CargoBikeFieldsForTableFragmentDoc = gql` group name modelName + state insuranceData { billing hasFixedRate @@ -2885,9 +2892,11 @@ export const LockContactInformationDocument = gql` } export const UnlockContactInformationDocument = gql` mutation UnlockContactInformation($id: ID!) { - unlockContactInformation(id: $id) + unlockContactInformation(id: $id) { + ...ContactInformationFields + } } - `; + ${ContactInformationFieldsFragmentDoc}`; @Injectable({ providedIn: 'root'