import { LogLevel } from '../common.js' import { Job } from '../common.js' export type EnricherTriggerRequest< TParams = Record, TOptions = { parallelism?: number slots?: number }, > = { enricher: string params?: TParams options?: TOptions jobId?: string idempotencyKey?: string logLevel?: LogLevel } export type EnricherQueueRequest< TRecord = Record, TParams = Record, > = { enricher: string record: TRecord params?: TParams jobId?: string logLevel?: LogLevel } export const enrichers = { triggerWithParams: async < TParams = Record, TOptions = { parallelism?: number; slots?: number }, >( request: EnricherTriggerRequest, ): Promise => { request throw new Error( 'enrichers.triggerWithParams() is a native function implemented by the platform runtime', ) }, queueRecord: async < TRecord = Record, TParams = Record, >( request: EnricherQueueRequest, ): Promise => { request throw new Error( 'enrichers.queue() is a native function implemented by the platform runtime', ) }, }