export type LogLevel = 'ERROR' | 'WARN' | 'INFO' | 'DEBUG' | 'TRACE' export type Horizon = { blockNumber: number forkIndex: number transactionIndex?: number logIndex?: number localIndex?: number } export type Entity< T = { [key: string]: any }, > = { namespace: string entityId: string entityType: string horizon?: Horizon blockNumber?: string forkIndex?: number transactionIndex?: number logIndex?: number localIndex?: number } & T export enum JobState { CREATED = 'CREATED', SCHEDULED = 'SCHEDULED', PROVISIONING = 'PROVISIONING', STARTED = 'STARTED', PROCESSING = 'PROCESSING', FINISHED = 'FINISHED', CANCELLED = 'CANCELLED', FAILED = 'FAILED', } export type Job = { id: string state: JobState error?: string }