@overture-stack/lyric
Version:
Data Submission system
17 lines (16 loc) • 622 B
TypeScript
import { BaseDependencies } from '../config/config.js';
declare const validationService: (dependencies: BaseDependencies) => {
/**
* Checks whether a specific record exists in the database based on the given criteria.
* @param param0
* @returns A promise that resolves to `true` if the record exists, or `false` if not.
*/
existsRecord: ({ categoryId, entityName, field, organization, value, }: {
categoryId: number;
entityName: string;
field: string;
organization: string;
value: string;
}) => Promise<boolean>;
};
export default validationService;