Merge remote-tracking branch 'origin/master'

master
FlayInAHook 4 years ago
commit 7ed5606690

@ -0,0 +1,12 @@
query GetActionLog {
actionLogAll {
...ActionLogFields
}
}
query GetActionLogByUserId($id: ID!) {
actionLogByUser(id: $id) {
...ActionLogFields
}
}

@ -0,0 +1,10 @@
fragment ActionLogFields on ActionLog {
id
action
date
entity
entriesNew
entriesOld
userId
}

@ -0,0 +1,25 @@
import { Injectable } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
import {
GetActionLogByUserIdGQL,
GetActionLogByUserIdQueryVariables,
GetActionLogGQL,
} from '../../generated/graphql';
@Injectable({
providedIn: 'root',
})
export class PersonsService {
constructor(
private getActionLogGQL: GetActionLogGQL,
private getActionLogByUserIdGQL: GetActionLogByUserIdGQL
) {}
getActionLogAll() {
return this.getActionLogGQL.fetch();
}
getActionLogByUserId(variables: GetActionLogByUserIdQueryVariables) {
return this.getActionLogByUserIdGQL.fetch(variables);
}
}

@ -1795,6 +1795,24 @@ export enum CacheControlScope {
} }
export type GetActionLogQueryVariables = Exact<{ [key: string]: never; }>;
export type GetActionLogQuery = { __typename?: 'Query', actionLogAll?: Maybe<Array<(
{ __typename?: 'ActionLog' }
& ActionLogFieldsFragment
)>> };
export type GetActionLogByUserIdQueryVariables = Exact<{
id: Scalars['ID'];
}>;
export type GetActionLogByUserIdQuery = { __typename?: 'Query', actionLogByUser?: Maybe<Array<(
{ __typename?: 'ActionLog' }
& ActionLogFieldsFragment
)>> };
export type GetCargoBikesQueryVariables = Exact<{ [key: string]: never; }>; export type GetCargoBikesQueryVariables = Exact<{ [key: string]: never; }>;
@ -2285,6 +2303,8 @@ export type DeleteEquipmentTypeMutationVariables = Exact<{
export type DeleteEquipmentTypeMutation = { __typename?: 'Mutation', deleteEquipmentType: boolean }; export type DeleteEquipmentTypeMutation = { __typename?: 'Mutation', deleteEquipmentType: boolean };
export type ActionLogFieldsFragment = { __typename?: 'ActionLog', id: string, action: string, date: any, entity: string, entriesNew: string, entriesOld: string, userId: string };
export type AddressFieldsFragment = { __typename?: 'Address', street: string, number: string, zip: string, city?: Maybe<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<(
@ -3085,6 +3105,17 @@ export type DeleteWorkshopTypeMutationVariables = Exact<{
export type DeleteWorkshopTypeMutation = { __typename?: 'Mutation', deleteWorkshopType: boolean }; export type DeleteWorkshopTypeMutation = { __typename?: 'Mutation', deleteWorkshopType: boolean };
export const ActionLogFieldsFragmentDoc = gql`
fragment ActionLogFields on ActionLog {
id
action
date
entity
entriesNew
entriesOld
userId
}
`;
export const PersonFieldsGeneralFragmentDoc = gql` export const PersonFieldsGeneralFragmentDoc = gql`
fragment PersonFieldsGeneral on Person { fragment PersonFieldsGeneral on Person {
id id
@ -3722,6 +3753,42 @@ export const WorkshopTypeFieldsFragmentDoc = gql`
lockedUntil lockedUntil
} }
${WorkshopTypefieldsGeneralFragmentDoc}`; ${WorkshopTypefieldsGeneralFragmentDoc}`;
export const GetActionLogDocument = gql`
query GetActionLog {
actionLogAll {
...ActionLogFields
}
}
${ActionLogFieldsFragmentDoc}`;
@Injectable({
providedIn: 'root'
})
export class GetActionLogGQL extends Apollo.Query<GetActionLogQuery, GetActionLogQueryVariables> {
document = GetActionLogDocument;
constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const GetActionLogByUserIdDocument = gql`
query GetActionLogByUserId($id: ID!) {
actionLogByUser(id: $id) {
...ActionLogFields
}
}
${ActionLogFieldsFragmentDoc}`;
@Injectable({
providedIn: 'root'
})
export class GetActionLogByUserIdGQL extends Apollo.Query<GetActionLogByUserIdQuery, GetActionLogByUserIdQueryVariables> {
document = GetActionLogByUserIdDocument;
constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const GetCargoBikesDocument = gql` export const GetCargoBikesDocument = gql`
query GetCargoBikes { query GetCargoBikes {
cargoBikes { cargoBikes {

Loading…
Cancel
Save