Auto stash before merge of "master" and "origin/master"

pull/4/head
Max 4 years ago
commit afe3ba5a7a

@ -1,6 +1,5 @@
query GetCargoBikes { query GetCargoBikes {
cargoBikes(limit: 100, offset: 0) { cargoBikes(limit: 100, offset: 0) {
...CargoBikeFields ...CargoBikeFields
} }
} }

@ -9,6 +9,7 @@ import { filter } from 'graphql-anywhere';
import { import {
CargoBikeFieldsMutableFragmentDoc, CargoBikeFieldsMutableFragmentDoc,
CargoBikeUpdateInput, CargoBikeUpdateInput,
GetCargoBikesDocument
} from 'src/generated/graphql'; } from 'src/generated/graphql';
import { SchemaService } from 'src/app/services/schema.service'; import { SchemaService } from 'src/app/services/schema.service';
@ -40,7 +41,7 @@ export class BikesComponent {
loadingRowIds: string[] = []; loadingRowIds: string[] = [];
data = <Array<any>>[]; data = [] as Array<any>;
selection = new SelectionModel<CargoBikeResult>(true, []); selection = new SelectionModel<CargoBikeResult>(true, []);
reloadingTable = false; reloadingTable = false;
@ -68,7 +69,7 @@ export class BikesComponent {
this.displayedColumns = []; this.displayedColumns = [];
this.dataColumns = []; this.dataColumns = [];
for (let index in this.data) { for (const index in this.data) {
this.data[index] = flatten(this.data[index]); this.data[index] = flatten(this.data[index]);
} }
@ -80,11 +81,11 @@ export class BikesComponent {
// sort, so the displayedColumns array is in the same order as the columnInfo // sort, so the displayedColumns array is in the same order as the columnInfo
this.dataColumns.sort((columnA, columnB) => { this.dataColumns.sort((columnA, columnB) => {
const indexA = this.columnInfo.findIndex((c) => c.name == columnA); const indexA = this.columnInfo.findIndex((c) => c.name === columnA);
const indexB = this.columnInfo.findIndex((c) => c.name == columnB); const indexB = this.columnInfo.findIndex((c) => c.name === columnB);
if (indexA == -1) { if (indexA === -1) {
return 1; return 1;
} else if (indexB == -1) { } else if (indexB === -1) {
return -1; return -1;
} else { } else {
return indexA - indexB; return indexA - indexB;
@ -106,6 +107,8 @@ export class BikesComponent {
} }
} }
}, this.relockingDuration); }, this.relockingDuration);
console.log(GetCargoBikesDocument);
} }
ngOnDestroy() { ngOnDestroy() {
@ -122,7 +125,7 @@ export class BikesComponent {
getType(propertyName: string, row) { getType(propertyName: string, row) {
// console.log(propertyName, this.schemaService.getPropertyTypeFromSchema("CargoBike", propertyName)) // console.log(propertyName, this.schemaService.getPropertyTypeFromSchema("CargoBike", propertyName))
return ( return (
this.schemaService.getPropertyTypeFromSchema("CargoBike", propertyName) this.schemaService.getPropertyTypeFromSchema('CargoBike', propertyName)
); );
} }

@ -1677,7 +1677,45 @@ export type GetCargoBikeByIdQuery = (
{ __typename?: 'Query' } { __typename?: 'Query' }
& { cargoBikeById?: Maybe<( & { cargoBikeById?: Maybe<(
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsFragment & Pick<CargoBike, 'id' | 'group' | 'name' | 'modelName' | 'numberOfChildren' | 'numberOfWheels' | 'forCargo' | 'forChildren' | 'stickerBikeNameState' | 'note' | 'isLocked' | 'isLockedByMe' | 'lockedBy' | 'lockedUntil'>
& { insuranceData: (
{ __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate' | 'name' | 'benefactor' | 'noPnP' | 'maintenanceResponsible' | 'maintenanceBenefactor' | 'maintenanceAgreement' | 'fixedRate' | 'projectAllowance' | 'notes'>
), dimensionsAndLoad: (
{ __typename?: 'DimensionsAndLoad' }
& Pick<DimensionsAndLoad, 'bikeLength' | 'bikeWeight' | 'bikeHeight' | 'bikeWidth' | 'boxHeight' | 'boxLength' | 'boxWidth' | 'hasCoverBox' | 'lockable' | 'maxWeightBox' | 'maxWeightLuggageRack' | 'maxWeightTotal'>
), security: (
{ __typename?: 'Security' }
& Pick<Security, 'frameNumber' | 'adfcCoding' | 'keyNumberAXAChain' | 'keyNumberFrameLock' | 'policeCoding'>
), technicalEquipment?: Maybe<(
{ __typename?: 'TechnicalEquipment' }
& Pick<TechnicalEquipment, 'bicycleShift' | 'isEBike' | 'hasLightSystem' | 'specialFeatures'>
)>, taxes?: Maybe<(
{ __typename?: 'Taxes' }
& Pick<Taxes, 'costCenter' | 'organisationArea'>
)>, provider?: Maybe<(
{ __typename?: 'Provider' }
& Pick<Provider, 'id' | 'formName'>
& { privatePerson?: Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'id'>
& { person: (
{ __typename?: 'Person' }
& Pick<Person, 'id' | 'name' | 'firstName'>
& { contactInformation?: Maybe<Array<Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'email'>
)>>> }
) }
)> }
)>, lendingStation?: Maybe<(
{ __typename?: 'LendingStation' }
& Pick<LendingStation, 'id' | 'name'>
& { address: (
{ __typename?: 'Address' }
& Pick<Address, 'number' | 'street' | 'zip'>
) }
)> }
)> } )> }
); );
@ -1690,7 +1728,45 @@ export type UpdateCargoBikeMutation = (
{ __typename?: 'Mutation' } { __typename?: 'Mutation' }
& { updateCargoBike: ( & { updateCargoBike: (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsFragment & Pick<CargoBike, 'id' | 'group' | 'name' | 'modelName' | 'numberOfChildren' | 'numberOfWheels' | 'forCargo' | 'forChildren' | 'stickerBikeNameState' | 'note' | 'isLocked' | 'isLockedByMe' | 'lockedBy' | 'lockedUntil'>
& { insuranceData: (
{ __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate' | 'name' | 'benefactor' | 'noPnP' | 'maintenanceResponsible' | 'maintenanceBenefactor' | 'maintenanceAgreement' | 'fixedRate' | 'projectAllowance' | 'notes'>
), dimensionsAndLoad: (
{ __typename?: 'DimensionsAndLoad' }
& Pick<DimensionsAndLoad, 'bikeLength' | 'bikeWeight' | 'bikeHeight' | 'bikeWidth' | 'boxHeight' | 'boxLength' | 'boxWidth' | 'hasCoverBox' | 'lockable' | 'maxWeightBox' | 'maxWeightLuggageRack' | 'maxWeightTotal'>
), security: (
{ __typename?: 'Security' }
& Pick<Security, 'frameNumber' | 'adfcCoding' | 'keyNumberAXAChain' | 'keyNumberFrameLock' | 'policeCoding'>
), technicalEquipment?: Maybe<(
{ __typename?: 'TechnicalEquipment' }
& Pick<TechnicalEquipment, 'bicycleShift' | 'isEBike' | 'hasLightSystem' | 'specialFeatures'>
)>, taxes?: Maybe<(
{ __typename?: 'Taxes' }
& Pick<Taxes, 'costCenter' | 'organisationArea'>
)>, provider?: Maybe<(
{ __typename?: 'Provider' }
& Pick<Provider, 'id' | 'formName'>
& { privatePerson?: Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'id'>
& { person: (
{ __typename?: 'Person' }
& Pick<Person, 'id' | 'name' | 'firstName'>
& { contactInformation?: Maybe<Array<Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'email'>
)>>> }
) }
)> }
)>, lendingStation?: Maybe<(
{ __typename?: 'LendingStation' }
& Pick<LendingStation, 'id' | 'name'>
& { address: (
{ __typename?: 'Address' }
& Pick<Address, 'number' | 'street' | 'zip'>
) }
)> }
) } ) }
); );
@ -1703,7 +1779,45 @@ export type LockCargoBikeMutation = (
{ __typename?: 'Mutation' } { __typename?: 'Mutation' }
& { lockCargoBike: ( & { lockCargoBike: (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsFragment & Pick<CargoBike, 'id' | 'group' | 'name' | 'modelName' | 'numberOfChildren' | 'numberOfWheels' | 'forCargo' | 'forChildren' | 'stickerBikeNameState' | 'note' | 'isLocked' | 'isLockedByMe' | 'lockedBy' | 'lockedUntil'>
& { insuranceData: (
{ __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate' | 'name' | 'benefactor' | 'noPnP' | 'maintenanceResponsible' | 'maintenanceBenefactor' | 'maintenanceAgreement' | 'fixedRate' | 'projectAllowance' | 'notes'>
), dimensionsAndLoad: (
{ __typename?: 'DimensionsAndLoad' }
& Pick<DimensionsAndLoad, 'bikeLength' | 'bikeWeight' | 'bikeHeight' | 'bikeWidth' | 'boxHeight' | 'boxLength' | 'boxWidth' | 'hasCoverBox' | 'lockable' | 'maxWeightBox' | 'maxWeightLuggageRack' | 'maxWeightTotal'>
), security: (
{ __typename?: 'Security' }
& Pick<Security, 'frameNumber' | 'adfcCoding' | 'keyNumberAXAChain' | 'keyNumberFrameLock' | 'policeCoding'>
), technicalEquipment?: Maybe<(
{ __typename?: 'TechnicalEquipment' }
& Pick<TechnicalEquipment, 'bicycleShift' | 'isEBike' | 'hasLightSystem' | 'specialFeatures'>
)>, taxes?: Maybe<(
{ __typename?: 'Taxes' }
& Pick<Taxes, 'costCenter' | 'organisationArea'>
)>, provider?: Maybe<(
{ __typename?: 'Provider' }
& Pick<Provider, 'id' | 'formName'>
& { privatePerson?: Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'id'>
& { person: (
{ __typename?: 'Person' }
& Pick<Person, 'id' | 'name' | 'firstName'>
& { contactInformation?: Maybe<Array<Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'email'>
)>>> }
) }
)> }
)>, lendingStation?: Maybe<(
{ __typename?: 'LendingStation' }
& Pick<LendingStation, 'id' | 'name'>
& { address: (
{ __typename?: 'Address' }
& Pick<Address, 'number' | 'street' | 'zip'>
) }
)> }
) } ) }
); );
@ -1716,7 +1830,45 @@ export type UnlockCargoBikeMutation = (
{ __typename?: 'Mutation' } { __typename?: 'Mutation' }
& { unlockCargoBike: ( & { unlockCargoBike: (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& CargoBikeFieldsFragment & Pick<CargoBike, 'id' | 'group' | 'name' | 'modelName' | 'numberOfChildren' | 'numberOfWheels' | 'forCargo' | 'forChildren' | 'stickerBikeNameState' | 'note' | 'isLocked' | 'isLockedByMe' | 'lockedBy' | 'lockedUntil'>
& { insuranceData: (
{ __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate' | 'name' | 'benefactor' | 'noPnP' | 'maintenanceResponsible' | 'maintenanceBenefactor' | 'maintenanceAgreement' | 'fixedRate' | 'projectAllowance' | 'notes'>
), dimensionsAndLoad: (
{ __typename?: 'DimensionsAndLoad' }
& Pick<DimensionsAndLoad, 'bikeLength' | 'bikeWeight' | 'bikeHeight' | 'bikeWidth' | 'boxHeight' | 'boxLength' | 'boxWidth' | 'hasCoverBox' | 'lockable' | 'maxWeightBox' | 'maxWeightLuggageRack' | 'maxWeightTotal'>
), security: (
{ __typename?: 'Security' }
& Pick<Security, 'frameNumber' | 'adfcCoding' | 'keyNumberAXAChain' | 'keyNumberFrameLock' | 'policeCoding'>
), technicalEquipment?: Maybe<(
{ __typename?: 'TechnicalEquipment' }
& Pick<TechnicalEquipment, 'bicycleShift' | 'isEBike' | 'hasLightSystem' | 'specialFeatures'>
)>, taxes?: Maybe<(
{ __typename?: 'Taxes' }
& Pick<Taxes, 'costCenter' | 'organisationArea'>
)>, provider?: Maybe<(
{ __typename?: 'Provider' }
& Pick<Provider, 'id' | 'formName'>
& { privatePerson?: Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'id'>
& { person: (
{ __typename?: 'Person' }
& Pick<Person, 'id' | 'name' | 'firstName'>
& { contactInformation?: Maybe<Array<Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'email'>
)>>> }
) }
)> }
)>, lendingStation?: Maybe<(
{ __typename?: 'LendingStation' }
& Pick<LendingStation, 'id' | 'name'>
& { address: (
{ __typename?: 'Address' }
& Pick<Address, 'number' | 'street' | 'zip'>
) }
)> }
) } ) }
); );
@ -1727,6 +1879,48 @@ export type GetCargoBikesQuery = (
{ __typename?: 'Query' } { __typename?: 'Query' }
& { cargoBikes: Array<Maybe<( & { cargoBikes: Array<Maybe<(
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
<<<<<<< HEAD
& Pick<CargoBike, 'id' | 'group' | 'name' | 'modelName' | 'numberOfChildren' | 'numberOfWheels' | 'forCargo' | 'forChildren' | 'stickerBikeNameState' | 'note' | 'isLocked' | 'isLockedByMe' | 'lockedBy' | 'lockedUntil'>
& { insuranceData: (
{ __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate' | 'name' | 'benefactor' | 'noPnP' | 'maintenanceResponsible' | 'maintenanceBenefactor' | 'maintenanceAgreement' | 'fixedRate' | 'projectAllowance' | 'notes'>
), dimensionsAndLoad: (
{ __typename?: 'DimensionsAndLoad' }
& Pick<DimensionsAndLoad, 'bikeLength' | 'bikeWeight' | 'bikeHeight' | 'bikeWidth' | 'boxHeight' | 'boxLength' | 'boxWidth' | 'hasCoverBox' | 'lockable' | 'maxWeightBox' | 'maxWeightLuggageRack' | 'maxWeightTotal'>
), security: (
{ __typename?: 'Security' }
& Pick<Security, 'frameNumber' | 'adfcCoding' | 'keyNumberAXAChain' | 'keyNumberFrameLock' | 'policeCoding'>
), technicalEquipment?: Maybe<(
{ __typename?: 'TechnicalEquipment' }
& Pick<TechnicalEquipment, 'bicycleShift' | 'isEBike' | 'hasLightSystem' | 'specialFeatures'>
)>, taxes?: Maybe<(
{ __typename?: 'Taxes' }
& Pick<Taxes, 'costCenter' | 'organisationArea'>
)>, provider?: Maybe<(
{ __typename?: 'Provider' }
& Pick<Provider, 'id' | 'formName'>
& { privatePerson?: Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'id'>
& { person: (
{ __typename?: 'Person' }
& Pick<Person, 'id' | 'name' | 'firstName'>
& { contactInformation?: Maybe<Array<Maybe<(
{ __typename?: 'ContactInformation' }
& Pick<ContactInformation, 'email'>
)>>> }
) }
)> }
)>, lendingStation?: Maybe<(
{ __typename?: 'LendingStation' }
& Pick<LendingStation, 'id' | 'name'>
& { address: (
{ __typename?: 'Address' }
& Pick<Address, 'number' | 'street' | 'zip'>
) }
)> }
)>> }
=======
& CargoBikeFieldsFragment & CargoBikeFieldsFragment
)>> } )>> }
); );
@ -1801,6 +1995,7 @@ export type ProviderFieldsGeneralFragment = (
)>>> } )>>> }
) } ) }
)> } )> }
>>>>>>> master
); );
export const BikeEventFieldsFragmentDoc = gql` export const BikeEventFieldsFragmentDoc = gql`
@ -1827,29 +2022,10 @@ export const CargoBikeFieldsMutableFragmentDoc = gql`
insuranceData { insuranceData {
billing billing
hasFixedRate hasFixedRate
name
benefactor
noPnP
maintenanceResponsible
maintenanceBenefactor
maintenanceAgreement
fixedRate
projectAllowance
notes
} }
dimensionsAndLoad { dimensionsAndLoad {
bikeLength bikeLength
bikeWeight bikeWeight
bikeHeight
bikeWidth
boxHeight
boxLength
boxWidth
hasCoverBox
lockable
maxWeightBox
maxWeightLuggageRack
maxWeightTotal
} }
numberOfChildren numberOfChildren
numberOfWheels numberOfWheels

Loading…
Cancel
Save