Split PLZ and City, Add remark and holiday to loanPeriod, add remark to LS

master
Max 4 years ago
parent 92614daff7
commit 54a6eef2e4

@ -74,7 +74,7 @@ export class DataPageComponent implements OnInit, OnDestroy {
@Output() cancelEvent = new EventEmitter(); @Output() cancelEvent = new EventEmitter();
id: string; id: string;
data: any; data: any = null;
isLoading: boolean = false; isLoading: boolean = false;
isSavingOrLocking: boolean = false; isSavingOrLocking: boolean = false;
@ -88,6 +88,7 @@ export class DataPageComponent implements OnInit, OnDestroy {
ngOnInit(): void { ngOnInit(): void {
this.addPropertiesFromGQLSchemaToObject(this.propertiesInfo); this.addPropertiesFromGQLSchemaToObject(this.propertiesInfo);
console.log(this.propertiesInfo);
this.id = this.route.snapshot.paramMap.get('id'); this.id = this.route.snapshot.paramMap.get('id');
this.reloadPageData(); this.reloadPageData();
this.dataService.pageData.subscribe((data) => { this.dataService.pageData.subscribe((data) => {

@ -4,8 +4,8 @@ query GetBikeEventTypes {
} }
} }
mutation CreateBikeEventType($bikeEventType: String!) { mutation CreateBikeEventType($bikeEventType: BikeEventTypeCreateInput!) {
createBikeEventType(name: $bikeEventType) { createBikeEventType(bikeEventType: $bikeEventType) {
...BikeEventTypeFields ...BikeEventTypeFields
} }
} }

@ -2,4 +2,5 @@ fragment AddressFields on Address {
street street
number number
zip zip
city
} }

@ -24,6 +24,7 @@ fragment LendingStationFieldsForTable on LendingStation {
organisation { organisation {
...OrganisationFieldsGeneral ...OrganisationFieldsGeneral
} }
remark
isLocked isLocked
isLockedByMe isLockedByMe
lockedBy lockedBy
@ -40,6 +41,8 @@ fragment LendingStationFieldsForPage on LendingStation {
...TimeFrameFieldsForLendingStation ...TimeFrameFieldsForLendingStation
} }
loanPeriod { loanPeriod {
generalRemark
holidays
mo mo
tu tu
we we

@ -212,11 +212,17 @@ export class BikeComponent implements OnInit {
type: 'Group', type: 'Group',
title: 'Standort', title: 'Standort',
properties: [ properties: [
{ dataPath: 'lendingStation.id', translation: '' }, {
{ dataPath: 'lendingStation.name', translation: '' }, dataPath: 'lendingStation.name',
{ dataPath: 'lendingStation.address.number', translation: '' }, translation: 'Standort',
{ dataPath: 'lendingStation.address.street', translation: '' }, link: (row: any) => {
{ dataPath: 'lendingStation.address.zip', translation: '' }, return '/lendingStation/' + row['lendingStation.id'];
},
},
{ dataPath: 'lendingStation.address.street', translation: 'Straße' },
{ dataPath: 'lendingStation.address.number', translation: 'Hausnummer' },
{ dataPath: 'lendingStation.address.zip', translation: 'PLZ' },
{ dataPath: 'lendingStation.address.city', translation: 'Ort' },
], ],
}, },
{ {

@ -14,22 +14,25 @@ export class LendingStationComponent implements OnInit {
title: 'Allgemein', title: 'Allgemein',
properties: [ properties: [
{ dataPath: 'name', translation: 'Name' }, { dataPath: 'name', translation: 'Name' },
{ dataPath: 'organisation.name', translation: 'Organisation' }, { dataPath: 'remark', translation: 'Anmerkung' },
], ],
}, },
{ {
type: 'Group', type: 'Group',
title: 'Adresse', title: 'Adresse',
properties: [ properties: [
{ dataPath: 'address.number', translation: 'Hausnummer' },
{ dataPath: 'address.street', translation: 'Straße' }, { dataPath: 'address.street', translation: 'Straße' },
{ dataPath: 'address.number', translation: 'Hausnummer' },
{ dataPath: 'address.zip', translation: 'Postleitzahl' }, { dataPath: 'address.zip', translation: 'Postleitzahl' },
{ dataPath: 'address.city', translation: 'Ort' },
], ],
}, },
{ {
type: 'Group', type: 'Group',
title: 'Ausleihzeiten', title: 'Ausleihzeiten',
properties: [ properties: [
{ dataPath: 'loanPeriod.generalRemark', translation: 'Anmerkung' },
{ dataPath: 'loanPeriod.holidays', translation: 'An Feiertagen' },
{ dataPath: 'loanPeriod.mo', translation: 'Montag' }, { dataPath: 'loanPeriod.mo', translation: 'Montag' },
{ dataPath: 'loanPeriod.tu', translation: 'Dienstag' }, { dataPath: 'loanPeriod.tu', translation: 'Dienstag' },
{ dataPath: 'loanPeriod.we', translation: 'Mittwoch' }, { dataPath: 'loanPeriod.we', translation: 'Mittwoch' },
@ -51,6 +54,7 @@ export class LendingStationComponent implements OnInit {
{ dataPath: 'organisation.address.street', translation: 'Straße' }, { dataPath: 'organisation.address.street', translation: 'Straße' },
{ dataPath: 'organisation.address.number', translation: 'Hausnummer' }, { dataPath: 'organisation.address.number', translation: 'Hausnummer' },
{ dataPath: 'organisation.address.zip', translation: 'Postleitzahl' }, { dataPath: 'organisation.address.zip', translation: 'Postleitzahl' },
{ dataPath: 'organisation.address.city', translation: 'Ort' },
{ dataPath: 'organisation.associationNo', translation: 'Nummer' }, { dataPath: 'organisation.associationNo', translation: 'Nummer' },
], ],
}, },

@ -17,6 +17,7 @@ export class OrganisationComponent implements OnInit {
{ dataPath: 'address.street', translation: 'Straße' }, { dataPath: 'address.street', translation: 'Straße' },
{ dataPath: 'address.number', translation: 'Hausnummer' }, { dataPath: 'address.number', translation: 'Hausnummer' },
{ dataPath: 'address.zip', translation: 'Postleitzahl' }, { dataPath: 'address.zip', translation: 'Postleitzahl' },
{ dataPath: 'address.city', translation: 'Ort' },
{ dataPath: 'associationNo', translation: 'Vereinsnummer' }, { dataPath: 'associationNo', translation: 'Vereinsnummer' },
{ dataPath: 'registeredAt', translation: 'Registergericht' }, { dataPath: 'registeredAt', translation: 'Registergericht' },

@ -17,6 +17,7 @@ export class ProviderComponent implements OnInit {
title: 'Allgemein', title: 'Allgemein',
hideCondition: (data) => data.privatePerson === null, hideCondition: (data) => data.privatePerson === null,
properties: [ properties: [
{ dataPath: 'formName', translation: 'Formular Name' },
{ {
type: 'Link', type: 'Link',
linkText: "Zur Person", linkText: "Zur Person",
@ -47,6 +48,7 @@ export class ProviderComponent implements OnInit {
title: 'Allgemein', title: 'Allgemein',
hideCondition: (data) => data.organisation === null, hideCondition: (data) => data.organisation === null,
properties: [ properties: [
{ dataPath: 'formName', translation: 'Formular Name' },
{ {
type: 'Link', type: 'Link',
linkText: "Zum Organisation", linkText: "Zum Organisation",
@ -54,10 +56,11 @@ export class ProviderComponent implements OnInit {
return '/organisation/' + data['organisation.id']; return '/organisation/' + data['organisation.id'];
}, },
}, },
{ dataPath: 'organisation.name', translation: 'Name' }, { dataPath: 'organisation.name', translation: 'Name Organisation' },
{ dataPath: 'organisation.address.street', translation: 'Straße' },
{ dataPath: 'organisation.address.number', translation: 'Hausnummer' }, { dataPath: 'organisation.address.number', translation: 'Hausnummer' },
{ dataPath: 'organisation.address.street', translation: 'Straße' },
{ dataPath: 'organisation.address.zip', translation: 'Postleitzahl' }, { dataPath: 'organisation.address.zip', translation: 'Postleitzahl' },
{ dataPath: 'organisation.address.city', translation: 'Ort' },
], ],
}, },
{ {

@ -111,17 +111,17 @@ export class BikesComponent implements OnInit {
dataPath: 'provider.privatePerson.person.contactInformation.email', dataPath: 'provider.privatePerson.person.contactInformation.email',
translation: '', translation: '',
}, },
{ dataPath: 'lendingStation.id', translation: '' },
{ {
dataPath: 'lendingStation.name', dataPath: 'lendingStation.name',
translation: '', translation: 'Standort',
link: (row: any) => { link: (row: any) => {
return '/lendingStation/' + row['lendingStation.id']; return '/lendingStation/' + row['lendingStation.id'];
}, },
}, },
{ dataPath: 'lendingStation.address.number', translation: '' }, { dataPath: 'lendingStation.address.street', translation: 'Straße' },
{ dataPath: 'lendingStation.address.street', translation: '' }, { dataPath: 'lendingStation.address.number', translation: 'Hausnummer' },
{ dataPath: 'lendingStation.address.zip', translation: '' }, { dataPath: 'lendingStation.address.zip', translation: 'PLZ' },
{ dataPath: 'lendingStation.address.city', translation: 'Ort' },
]; ];
dataService: any; dataService: any;

@ -19,6 +19,9 @@ export class LendingStationsComponent implements OnInit {
{ dataPath: 'address.number', translation: 'Hausnummer' }, { dataPath: 'address.number', translation: 'Hausnummer' },
{ dataPath: 'address.street', translation: 'Straße' }, { dataPath: 'address.street', translation: 'Straße' },
{ dataPath: 'address.zip', translation: 'Postleitzahl' }, { dataPath: 'address.zip', translation: 'Postleitzahl' },
{ dataPath: 'address.city', translation: 'Ort' },
{ dataPath: 'remark', translation: 'Anmerkung' },
{ dataPath: 'organisation.name', translation: 'Organisation' }, { dataPath: 'organisation.name', translation: 'Organisation' },

@ -19,6 +19,7 @@ export class OrganisationsComponent implements OnInit {
{ dataPath: 'address.number', translation: 'Hausnummer' }, { dataPath: 'address.number', translation: 'Hausnummer' },
{ dataPath: 'address.street', translation: 'Straße' }, { dataPath: 'address.street', translation: 'Straße' },
{ dataPath: 'address.zip', translation: 'Postleitzahl' }, { dataPath: 'address.zip', translation: 'Postleitzahl' },
{ dataPath: 'address.city', translation: 'Ort' },
{ dataPath: 'associationNo', translation: 'Vereinsnummer' }, { dataPath: 'associationNo', translation: 'Vereinsnummer' },
{ dataPath: 'registeredAt', translation: 'Registergericht' }, { dataPath: 'registeredAt', translation: 'Registergericht' },

@ -27,6 +27,7 @@ export class SchemaService {
(type) => type.name === startingObjectName (type) => type.name === startingObjectName
); );
if (!startingObject) { if (!startingObject) {
//console.error("Did't found " + startingObjectName + " in ", startingObject);
return { return {
isPartOfType: false, isPartOfType: false,
type: '', type: '',
@ -36,6 +37,8 @@ export class SchemaService {
} }
const fields = startingObject.fields || startingObject.inputFields; const fields = startingObject.fields || startingObject.inputFields;
if (!fields) { if (!fields) {
//console.error("Did't found fields in ", startingObject);
return { return {
isPartOfType: false, isPartOfType: false,
type: '', type: '',
@ -45,6 +48,8 @@ export class SchemaService {
} }
const field = fields.find((field) => field.name === variablePath[0]); const field = fields.find((field) => field.name === variablePath[0]);
if (!field) { if (!field) {
//console.error("[" + startingObjectName + ", " + variable + "] " + "Did't found field in ", fields);
return { return {
isPartOfType: false, isPartOfType: false,
type: '', type: '',

@ -5044,6 +5044,31 @@
"enumValues": null, "enumValues": null,
"possibleTypes": null "possibleTypes": null
}, },
{
"kind": "INPUT_OBJECT",
"name": "BikeEventTypeCreateInput",
"description": null,
"fields": null,
"inputFields": [
{
"name": "name",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "Provider", "name": "Provider",
@ -6373,6 +6398,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "remark",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "isLocked", "name": "isLocked",
"description": null, "description": null,
@ -6508,6 +6545,16 @@
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue": null
},
{
"name": "remark",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
} }
], ],
"interfaces": null, "interfaces": null,
@ -6594,6 +6641,16 @@
}, },
"defaultValue": null "defaultValue": null
}, },
{
"name": "remark",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{ {
"name": "keepLock", "name": "keepLock",
"description": null, "description": null,
@ -6626,6 +6683,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "holidays",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "mo", "name": "mo",
"description": null, "description": null,
@ -6732,6 +6801,16 @@
}, },
"defaultValue": null "defaultValue": null
}, },
{
"name": "holidays",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{ {
"name": "mo", "name": "mo",
"description": null, "description": null,
@ -7214,6 +7293,18 @@
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
},
{
"name": "city",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
} }
], ],
"inputFields": null, "inputFields": null,
@ -7268,6 +7359,16 @@
} }
}, },
"defaultValue": null "defaultValue": null
},
{
"name": "city",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
} }
], ],
"interfaces": null, "interfaces": null,
@ -7309,6 +7410,16 @@
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue": null
},
{
"name": "city",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
} }
], ],
"interfaces": null, "interfaces": null,
@ -9521,14 +9632,14 @@
"description": "BIKEEVENT", "description": "BIKEEVENT",
"args": [ "args": [
{ {
"name": "name", "name": "bikeEventType",
"description": null, "description": null,
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "INPUT_OBJECT",
"name": "String", "name": "BikeEventTypeCreateInput",
"ofType": null "ofType": null
} }
}, },

@ -722,6 +722,10 @@ export type BikeEventTypeUpdateInput = {
keepLock?: Maybe<Scalars['Boolean']>; keepLock?: Maybe<Scalars['Boolean']>;
}; };
export type BikeEventTypeCreateInput = {
name: Scalars['String'];
};
/** (dt. Anbieter) bezieht sich auf die Beziehung einer Person oder Organisation zum Lastenrad */ /** (dt. Anbieter) bezieht sich auf die Beziehung einer Person oder Organisation zum Lastenrad */
export type Provider = { export type Provider = {
__typename?: 'Provider'; __typename?: 'Provider';
@ -876,6 +880,7 @@ export type LendingStation = {
/** Total amount of cargoBikes currently assigned to the lending station */ /** Total amount of cargoBikes currently assigned to the lending station */
numCargoBikes: Scalars['Int']; numCargoBikes: Scalars['Int'];
organisation?: Maybe<Organisation>; organisation?: Maybe<Organisation>;
remark?: Maybe<Scalars['String']>;
isLocked: Scalars['Boolean']; isLocked: Scalars['Boolean'];
isLockedByMe: Scalars['Boolean']; isLockedByMe: Scalars['Boolean'];
/** null if not locked by other user */ /** null if not locked by other user */
@ -891,6 +896,7 @@ export type LendingStationCreateInput = {
address: AddressCreateInput; address: AddressCreateInput;
loanPeriod?: Maybe<LoanPeriodInput>; loanPeriod?: Maybe<LoanPeriodInput>;
organisationId?: Maybe<Scalars['ID']>; organisationId?: Maybe<Scalars['ID']>;
remark?: Maybe<Scalars['String']>;
}; };
/** If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null */ /** If you want to create LendingStation with cargoBikes, use createTimeFrame and set to: Date = null */
@ -902,6 +908,7 @@ export type LendingStationUpdateInput = {
address?: Maybe<AddressUpdateInput>; address?: Maybe<AddressUpdateInput>;
loanPeriod?: Maybe<LoanPeriodInput>; loanPeriod?: Maybe<LoanPeriodInput>;
organisationId?: Maybe<Scalars['ID']>; organisationId?: Maybe<Scalars['ID']>;
remark?: Maybe<Scalars['String']>;
keepLock?: Maybe<Scalars['Boolean']>; keepLock?: Maybe<Scalars['Boolean']>;
}; };
@ -909,6 +916,7 @@ export type LendingStationUpdateInput = {
export type LoanPeriod = { export type LoanPeriod = {
__typename?: 'LoanPeriod'; __typename?: 'LoanPeriod';
generalRemark?: Maybe<Scalars['String']>; generalRemark?: Maybe<Scalars['String']>;
holidays?: Maybe<Scalars['String']>;
mo?: Maybe<Scalars['String']>; mo?: Maybe<Scalars['String']>;
tu?: Maybe<Scalars['String']>; tu?: Maybe<Scalars['String']>;
we?: Maybe<Scalars['String']>; we?: Maybe<Scalars['String']>;
@ -921,6 +929,7 @@ export type LoanPeriod = {
/** (dt. Ausleihzeiten) */ /** (dt. Ausleihzeiten) */
export type LoanPeriodInput = { export type LoanPeriodInput = {
generalRemark?: Maybe<Scalars['String']>; generalRemark?: Maybe<Scalars['String']>;
holidays?: Maybe<Scalars['String']>;
mo?: Maybe<Scalars['String']>; mo?: Maybe<Scalars['String']>;
tu?: Maybe<Scalars['String']>; tu?: Maybe<Scalars['String']>;
we?: Maybe<Scalars['String']>; we?: Maybe<Scalars['String']>;
@ -983,18 +992,21 @@ export type Address = {
street: Scalars['String']; street: Scalars['String'];
number: Scalars['String']; number: Scalars['String'];
zip: Scalars['String']; zip: Scalars['String'];
city?: Maybe<Scalars['String']>;
}; };
export type AddressCreateInput = { export type AddressCreateInput = {
street: Scalars['String']; street: Scalars['String'];
number: Scalars['String']; number: Scalars['String'];
zip: Scalars['String']; zip: Scalars['String'];
city?: Maybe<Scalars['String']>;
}; };
export type AddressUpdateInput = { export type AddressUpdateInput = {
street?: Maybe<Scalars['String']>; street?: Maybe<Scalars['String']>;
number?: Maybe<Scalars['String']>; number?: Maybe<Scalars['String']>;
zip?: Maybe<Scalars['String']>; zip?: Maybe<Scalars['String']>;
city?: Maybe<Scalars['String']>;
}; };
export type ActionLog = { export type ActionLog = {
@ -1504,7 +1516,7 @@ export type MutationDeleteTimeFrameArgs = {
export type MutationCreateBikeEventTypeArgs = { export type MutationCreateBikeEventTypeArgs = {
name: Scalars['String']; bikeEventType: BikeEventTypeCreateInput;
}; };
@ -1942,7 +1954,7 @@ export type GetBikeEventTypesQuery = { __typename?: 'Query', bikeEventTypes?: Ma
)>> }; )>> };
export type CreateBikeEventTypeMutationVariables = Exact<{ export type CreateBikeEventTypeMutationVariables = Exact<{
bikeEventType: Scalars['String']; bikeEventType: BikeEventTypeCreateInput;
}>; }>;
@ -2263,7 +2275,7 @@ export type DeleteEquipmentTypeMutationVariables = Exact<{
export type DeleteEquipmentTypeMutation = { __typename?: 'Mutation', deleteEquipmentType: boolean }; export type DeleteEquipmentTypeMutation = { __typename?: 'Mutation', deleteEquipmentType: boolean };
export type AddressFieldsFragment = { __typename?: 'Address', street: string, number: string, zip: string }; export type AddressFieldsFragment = { __typename?: 'Address', street: string, number: string, zip: string, city?: Maybe<string> };
export type CargoBikeFieldsForTableFragment = { __typename?: 'CargoBike', id: string, group: Group, name: string, modelName?: Maybe<string>, state?: Maybe<BikeState>, numberOfChildren?: Maybe<number>, numberOfWheels?: Maybe<number>, forCargo?: Maybe<boolean>, forChildren?: Maybe<boolean>, stickerBikeNameState?: Maybe<StickerBikeNameState>, note?: Maybe<string>, isLocked: boolean, isLockedByMe: boolean, lockedBy?: Maybe<string>, lockedUntil?: Maybe<any>, insuranceData?: Maybe<{ __typename?: 'InsuranceData', billing?: Maybe<string>, hasFixedRate?: Maybe<boolean>, name?: Maybe<string>, benefactor?: Maybe<string>, noPnP?: Maybe<string>, maintenanceResponsible?: Maybe<string>, maintenanceBenefactor?: Maybe<string>, maintenanceAgreement?: Maybe<string>, fixedRate?: Maybe<number>, projectAllowance?: Maybe<any>, notes?: Maybe<string> }>, dimensionsAndLoad?: Maybe<{ __typename?: 'DimensionsAndLoad', bikeLength?: Maybe<number>, bikeWeight?: Maybe<number>, bikeHeight?: Maybe<number>, bikeWidth?: Maybe<number>, hasCoverBox?: Maybe<boolean>, lockable?: Maybe<boolean>, maxWeightBox?: Maybe<number>, maxWeightLuggageRack?: Maybe<number>, maxWeightTotal?: Maybe<number>, boxHeightRange?: Maybe<{ __typename?: 'NumRange', max?: Maybe<number>, min?: Maybe<number> }>, boxLengthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe<number>, max?: Maybe<number> }>, boxWidthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe<number>, max?: Maybe<number> }> }>, security?: Maybe<{ __typename?: 'Security', frameNumber?: Maybe<string>, adfcCoding?: Maybe<string>, keyNumberAXAChain?: Maybe<string>, keyNumberFrameLock?: Maybe<string>, policeCoding?: Maybe<string> }>, technicalEquipment?: Maybe<{ __typename?: 'TechnicalEquipment', bicycleShift?: Maybe<string>, isEBike?: Maybe<boolean>, hasLightSystem?: Maybe<boolean>, specialFeatures?: Maybe<string> }>, taxes?: Maybe<{ __typename?: 'Taxes', costCenter?: Maybe<string>, organisationArea?: Maybe<OrganisationArea> }>, provider?: Maybe<( export type CargoBikeFieldsForTableFragment = { __typename?: 'CargoBike', id: string, group: Group, name: string, modelName?: Maybe<string>, state?: Maybe<BikeState>, numberOfChildren?: Maybe<number>, numberOfWheels?: Maybe<number>, forCargo?: Maybe<boolean>, forChildren?: Maybe<boolean>, stickerBikeNameState?: Maybe<StickerBikeNameState>, note?: Maybe<string>, isLocked: boolean, isLockedByMe: boolean, lockedBy?: Maybe<string>, lockedUntil?: Maybe<any>, insuranceData?: Maybe<{ __typename?: 'InsuranceData', billing?: Maybe<string>, hasFixedRate?: Maybe<boolean>, name?: Maybe<string>, benefactor?: Maybe<string>, noPnP?: Maybe<string>, maintenanceResponsible?: Maybe<string>, maintenanceBenefactor?: Maybe<string>, maintenanceAgreement?: Maybe<string>, fixedRate?: Maybe<number>, projectAllowance?: Maybe<any>, notes?: Maybe<string> }>, dimensionsAndLoad?: Maybe<{ __typename?: 'DimensionsAndLoad', bikeLength?: Maybe<number>, bikeWeight?: Maybe<number>, bikeHeight?: Maybe<number>, bikeWidth?: Maybe<number>, hasCoverBox?: Maybe<boolean>, lockable?: Maybe<boolean>, maxWeightBox?: Maybe<number>, maxWeightLuggageRack?: Maybe<number>, maxWeightTotal?: Maybe<number>, boxHeightRange?: Maybe<{ __typename?: 'NumRange', max?: Maybe<number>, min?: Maybe<number> }>, boxLengthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe<number>, max?: Maybe<number> }>, boxWidthRange?: Maybe<{ __typename?: 'NumRange', min?: Maybe<number>, max?: Maybe<number> }> }>, security?: Maybe<{ __typename?: 'Security', frameNumber?: Maybe<string>, adfcCoding?: Maybe<string>, keyNumberAXAChain?: Maybe<string>, keyNumberFrameLock?: Maybe<string>, policeCoding?: Maybe<string> }>, technicalEquipment?: Maybe<{ __typename?: 'TechnicalEquipment', bicycleShift?: Maybe<string>, isEBike?: Maybe<boolean>, hasLightSystem?: Maybe<boolean>, specialFeatures?: Maybe<string> }>, taxes?: Maybe<{ __typename?: 'Taxes', costCenter?: Maybe<string>, organisationArea?: Maybe<OrganisationArea> }>, provider?: Maybe<(
{ __typename?: 'Provider' } { __typename?: 'Provider' }
@ -2369,7 +2381,7 @@ export type LendingStationFieldsForBikePageFragment = { __typename?: 'LendingSta
& OrganisationFieldsGeneralFragment & OrganisationFieldsGeneralFragment
)> }; )> };
export type LendingStationFieldsForTableFragment = { __typename?: 'LendingStation', id: string, name: string, isLocked: boolean, isLockedByMe: boolean, lockedBy?: Maybe<string>, lockedUntil?: Maybe<any>, contactInformationIntern?: Maybe<( export type LendingStationFieldsForTableFragment = { __typename?: 'LendingStation', id: string, name: string, remark?: Maybe<string>, isLocked: boolean, isLockedByMe: boolean, lockedBy?: Maybe<string>, lockedUntil?: Maybe<any>, contactInformationIntern?: Maybe<(
{ __typename?: 'ContactInformation' } { __typename?: 'ContactInformation' }
& ContactInformationFieldsGeneralFragment & ContactInformationFieldsGeneralFragment
)>, contactInformationExtern?: Maybe<( )>, contactInformationExtern?: Maybe<(
@ -2387,7 +2399,7 @@ export type LendingStationFieldsForPageFragment = (
{ __typename?: 'LendingStation', cargoBikes?: Maybe<Array<{ __typename?: 'CargoBike', id: string, name: string }>>, timeFrames: Array<( { __typename?: 'LendingStation', cargoBikes?: Maybe<Array<{ __typename?: 'CargoBike', id: string, name: string }>>, timeFrames: Array<(
{ __typename?: 'TimeFrame' } { __typename?: 'TimeFrame' }
& TimeFrameFieldsForLendingStationFragment & TimeFrameFieldsForLendingStationFragment
)>, loanPeriod?: Maybe<{ __typename?: 'LoanPeriod', mo?: Maybe<string>, tu?: Maybe<string>, we?: Maybe<string>, th?: Maybe<string>, fr?: Maybe<string>, sa?: Maybe<string>, su?: Maybe<string> }> } )>, loanPeriod?: Maybe<{ __typename?: 'LoanPeriod', generalRemark?: Maybe<string>, holidays?: Maybe<string>, mo?: Maybe<string>, tu?: Maybe<string>, we?: Maybe<string>, th?: Maybe<string>, fr?: Maybe<string>, sa?: Maybe<string>, su?: Maybe<string> }> }
& LendingStationFieldsForTableFragment & LendingStationFieldsForTableFragment
); );
@ -3104,6 +3116,7 @@ export const AddressFieldsFragmentDoc = gql`
street street
number number
zip zip
city
} }
`; `;
export const OrganisationFieldsGeneralFragmentDoc = gql` export const OrganisationFieldsGeneralFragmentDoc = gql`
@ -3472,6 +3485,7 @@ export const LendingStationFieldsForTableFragmentDoc = gql`
organisation { organisation {
...OrganisationFieldsGeneral ...OrganisationFieldsGeneral
} }
remark
isLocked isLocked
isLockedByMe isLockedByMe
lockedBy lockedBy
@ -3505,6 +3519,8 @@ export const LendingStationFieldsForPageFragmentDoc = gql`
...TimeFrameFieldsForLendingStation ...TimeFrameFieldsForLendingStation
} }
loanPeriod { loanPeriod {
generalRemark
holidays
mo mo
tu tu
we we
@ -3999,8 +4015,8 @@ export const GetBikeEventTypesDocument = gql`
} }
} }
export const CreateBikeEventTypeDocument = gql` export const CreateBikeEventTypeDocument = gql`
mutation CreateBikeEventType($bikeEventType: String!) { mutation CreateBikeEventType($bikeEventType: BikeEventTypeCreateInput!) {
createBikeEventType(name: $bikeEventType) { createBikeEventType(bikeEventType: $bikeEventType) {
...BikeEventTypeFields ...BikeEventTypeFields
} }
} }

Loading…
Cancel
Save