export default { argument : ( name , type ) => `Missing a valid ${ type } for the argument "${ name }"` , argumentShape : ( name , props ) => `Argument "${ name }" has an invalid shape. Missing required props: "${ props . join ( ", " ) }"` , fkInvalid : ( table , key ) => `The foreign key ${ table }.${ key } is invalid` , fkInvalidReference : ( table , key , reference ) => `The field schema "${ table }.${ key }" has an invalid reference to unknown table "${ reference }".` , fkReferenceNotInSession : ( key , references ? ) => `The foreign key: "${ key }" references an unregistered table: "${ references }" in the current session.` , fkUndefined : ( table , key ) => `No foreign key named: ${ key } in the schema: "${ table }".` , fkViolation : ( table , key ) => `The insert/update operation violates the unique foreign key "${ table }.${ key }".` , invalidId : ( ) => 'The given value is not a valid "id". An "id" must be a non-empty string or a number.' , normalizeInvalidData : ( ) => "Failed to normalize data. Given argument is not a plain object nor an array." , normalizeInvalidFk : ( table , key , refTable ) => `Invalid schema definition. The field "${ table }.${ key }" is referencing table "${ refTable }", but the given data is an array.` , normalizePk : ( name ) => `Failed to normalize primary key for record of type "${ name }". Make sure record(s) have a primary key value before trying to insert or update a table.` , normalizeFkViolation : ( table , key ) => `The insert/update operation violates the unique foreign key "${ table }.${ key }".` , pkNotFound : ( table ) => `Failed to get primary key for record of type "${ table }".` , recordNotFound : ( table , id ) => `No "${ table }" record with id: ${ id } exists.` , recordUpdateViolation : ( table , id ) => `Failed to apply update. No "${ table }" record with id: ${ id } exists.` , reservedProperty : ( name , prop ) => `The property "${ name }.${ prop }" is a reserved name. Please specify another name using the "propName" definition.` , sessionReadonly : ( ) => "Invalid attempt to alter a readonly session." , stateTableUndefined : ( ) => "Failed to select table. Could not identify table schema." , tableInvalidState : ( table ) => `The table "${ table }" has an invalid state.` , tableNotInSession : ( table ) => `The table: "${ table }" does not exist in the current session.` , uniqueConstraintViolation : ( id ) => `Operation violates unique constraint for id: "${ id }"` , unknownTableState : ( ) => "Failed to identifiy table state." } ;