Update graphQL stuff

pull/1/head
Max Ehrlicher-Schmidt 4 years ago
parent 1f191f5984
commit 52973b9ae4

@ -1284,13 +1284,9 @@
"name": "hasFixedRate", "name": "hasFixedRate",
"description": null, "description": null,
"type": { "type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "Boolean", "name": "Boolean",
"ofType": null "ofType": null
}
}, },
"defaultValue": null "defaultValue": null
}, },
@ -5782,7 +5778,7 @@
}, },
{ {
"name": "lockCargoBikeById", "name": "lockCargoBikeById",
"description": "lock cargoBike - not implemented", "description": "lock cargoBike returns true if bike is not locked or if it doesnt exist",
"args": [ "args": [
{ {
"name": "id", "name": "id",
@ -5873,6 +5869,37 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "lockEquipmentById",
"description": "lock equipment returns true if bike is not locked or if it doesnt exist",
"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": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "updateEquipment", "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", "description": "update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation",

@ -6,6 +6,8 @@ fragment CargoBikeFieldsMutable on CargoBike {
billing billing
hasFixedRate hasFixedRate
} }
lockedBy
lockedUntil
dimensionsAndLoad { dimensionsAndLoad {
bikeLength bikeLength
bikeWeight bikeWeight

@ -174,7 +174,7 @@ export type InsuranceDataUpdateInput = {
maintananceResponsible?: Maybe<Scalars['String']>; maintananceResponsible?: Maybe<Scalars['String']>;
maintananceBenefactor?: Maybe<Scalars['String']>; maintananceBenefactor?: Maybe<Scalars['String']>;
maintananceAgreement?: Maybe<Scalars['String']>; maintananceAgreement?: Maybe<Scalars['String']>;
hasFixedRate: Scalars['Boolean']; hasFixedRate?: Maybe<Scalars['Boolean']>;
fixedRate?: Maybe<Scalars['Float']>; fixedRate?: Maybe<Scalars['Float']>;
/** Projektzuschuss */ /** Projektzuschuss */
projectAllowance?: Maybe<Scalars['Float']>; projectAllowance?: Maybe<Scalars['Float']>;
@ -767,12 +767,14 @@ export type Mutation = {
__typename?: 'Mutation'; __typename?: 'Mutation';
/** creates new cargoBike and returns cargobike with new ID */ /** creates new cargoBike and returns cargobike with new ID */
createCargoBike: CargoBike; createCargoBike: CargoBike;
/** lock cargoBike - not implemented */ /** lock cargoBike returns true if bike is not locked or if it doesnt exist */
lockCargoBikeById: Scalars['Boolean']; lockCargoBikeById: Scalars['Boolean'];
/** updates cargoBike of given ID with supplied fields and returns updated cargoBike */ /** updates cargoBike of given ID with supplied fields and returns updated cargoBike */
updateCargoBike: CargoBike; updateCargoBike: CargoBike;
/** creates new peace of unique Equipment */ /** creates new peace of unique Equipment */
createEquipment: Equipment; createEquipment: Equipment;
/** lock equipment returns true if bike is not locked or if it doesnt exist */
lockEquipmentById: Scalars['Boolean'];
/** update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation */ /** update Equipment, returns updated equipment. CargoBike will be null, if cargoBikeId is not set. Pass null for cargoBikeIs to delete the relation */
updateEquipment: Equipment; updateEquipment: Equipment;
/** creates new lendingStation and returns lendingStation with new ID */ /** creates new lendingStation and returns lendingStation with new ID */
@ -813,6 +815,11 @@ export type MutationCreateEquipmentArgs = {
}; };
export type MutationLockEquipmentByIdArgs = {
id: Scalars['ID'];
};
export type MutationUpdateEquipmentArgs = { export type MutationUpdateEquipmentArgs = {
equipment: EquipmentUpdateInput; equipment: EquipmentUpdateInput;
}; };
@ -902,7 +909,7 @@ export type GetCargoBikesQuery = (
export type CargoBikeFieldsMutableFragment = ( export type CargoBikeFieldsMutableFragment = (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& Pick<CargoBike, 'id' | 'group' | 'name' | 'numberOfChildren'> & Pick<CargoBike, 'id' | 'group' | 'name' | 'lockedBy' | 'lockedUntil' | 'numberOfChildren'>
& { insuranceData: ( & { insuranceData: (
{ __typename?: 'InsuranceData' } { __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate'> & Pick<InsuranceData, 'billing' | 'hasFixedRate'>
@ -933,6 +940,8 @@ export const CargoBikeFieldsMutableFragmentDoc = gql`
billing billing
hasFixedRate hasFixedRate
} }
lockedBy
lockedUntil
dimensionsAndLoad { dimensionsAndLoad {
bikeLength bikeLength
bikeWeight bikeWeight

Loading…
Cancel
Save