import { Entity } from '@backstage/catalog-model'; /** * Unprocessed entity data stored in the database. * @public */ export type UnprocessedEntity = { entity_id: string; entity_ref: string; unprocessed_entity: Entity; unprocessed_hash?: string; processed_entity?: Entity; result_hash?: string; cache?: UnprocessedEntityCache; next_update_at: string | Date; last_discovery_at: string | Date; errors?: UnprocessedEntityError[]; location_key?: string; }; /** * Unprocessed entity cache stored in the database. * @public */ export type UnprocessedEntityCache = { ttl: number; cache: object; }; /** * Unprocessed entity error information stored in the database. * @public */ export type UnprocessedEntityError = { name: string; message: string; cause: { name: string; message: string; stack: string; }; };