default: { add: ( project: { id: string }, simulation: { name: string; scheme: IModel }, ) => Promise<INewSimulation>; archive: (simulation: { id: string }, to: string) => Promise<void>; copy: (simulation: { id: string }) => Promise<undefined | INewSimulation>; del: (simulation: { id: string }) => Promise<void>; get: <T extends TSimulationGet>( id: string, data: T, ) => Promise<undefined | ISimulationGet<T>>; getAll: <T extends TSimulationGet>(data: T) => Promise<ISimulation<T>[]>; getLog: (simulation: { id: string }, file: string) => Promise<Buffer>; run: ( user: { id: string }, simulation: { id: string }, keepMesh?: boolean, ) => Promise<void>; stop: (simulation: { id: string }) => Promise<void>; update: (simulation: { id: string }, data: any[]) => Promise<void>;} = ... Type declaration
add: (
project: { id: string },
simulation: { name: string; scheme: IModel },
) => Promise<INewSimulation>
archive: (simulation: { id: string }, to: string) => Promise<void>
copy: (simulation: { id: string }) => Promise<undefined | INewSimulation>
del: (simulation: { id: string }) => Promise<void>
get: <T extends TSimulationGet>(
id: string,
data: T,
) => Promise<undefined | ISimulationGet<T>>
getLog: (simulation: { id: string }, file: string) => Promise<Buffer>
run: (
user: { id: string },
simulation: { id: string },
keepMesh?: boolean,
) => Promise<void>
stop: (simulation: { id: string }) => Promise<void>
update: (simulation: { id: string }, data: any[]) => Promise<void>