Variable defaultConst

    default: {
        add: ((project: {
            id: string;
        }, simulation: {
            name: string;
            scheme: object;
        }) => Promise<IFrontNewSimulation>);
        copy: ((simulation: {
            id: string;
        }) => Promise<IFrontNewSimulation>);
        del: ((simulation: {
            id: string;
        }) => Promise<void>);
        log: ((simulation: {
            id: string;
        }, file: string) => Promise<{
            log: Buffer;
        }>);
        run: ((simulation: {
            id: string;
        }, keepMesh?: boolean) => Promise<void>);
        stop: ((simulation: {
            id: string;
        }) => Promise<void>);
        tasks: ((simulation: {
            id: string;
        }) => Promise<IFrontSimulationTask[]>);
        update: ((simulation: {
            id: string;
        }, data: any[]) => Promise<void>);
        useSimulation: ((id?: string, refresh?: number) => [DefaultData | IFrontSimulation, {
            errorSimulation: Error;
            loadingSimulation: boolean;
            mutateSimulation: ((simulation: IFrontMutateSimulation) => Promise<void>);
        }]);
        useSimulations: ((ids?: string[]) => [IFrontSimulations, {
            addOneSimulation: ((simulation: IFrontNewSimulation) => Promise<void>);
            delOneSimulation: ((simulation: IFrontMutateSimulationsItem) => Promise<void>);
            errorSimulations: Error;
            loadingSimulations: boolean;
            mutateOneSimulation: ((simulation: IFrontMutateSimulationsItem, revalidate?: boolean) => Promise<void>);
        }]);
    } = ...

    Type declaration

    • add: ((project: {
          id: string;
      }, simulation: {
          name: string;
          scheme: object;
      }) => Promise<IFrontNewSimulation>)
        • (project, simulation): Promise<IFrontNewSimulation>
        • Add

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • simulation: {
                name: string;
                scheme: object;
            }

            Simulation

            • name: string
            • scheme: object

          Returns Promise<IFrontNewSimulation>

          Simulation

    • copy: ((simulation: {
          id: string;
      }) => Promise<IFrontNewSimulation>)
    • del: ((simulation: {
          id: string;
      }) => Promise<void>)
        • (simulation): Promise<void>
        • Delete

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string

          Returns Promise<void>

    • log: ((simulation: {
          id: string;
      }, file: string) => Promise<{
          log: Buffer;
      }>)
        • (simulation, file): Promise<{
              log: Buffer;
          }>
        • Log

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • file: string

            File

          Returns Promise<{
              log: Buffer;
          }>

          Log

    • run: ((simulation: {
          id: string;
      }, keepMesh?: boolean) => Promise<void>)
        • (simulation, keepMesh?): Promise<void>
        • Run

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • OptionalkeepMesh: boolean

            Keep mesh

          Returns Promise<void>

    • stop: ((simulation: {
          id: string;
      }) => Promise<void>)
        • (simulation): Promise<void>
        • Stop

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string

          Returns Promise<void>

    • tasks: ((simulation: {
          id: string;
      }) => Promise<IFrontSimulationTask[]>)
    • update: ((simulation: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (simulation, data): Promise<void>
        • Update

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    • useSimulation: ((id?: string, refresh?: number) => [DefaultData | IFrontSimulation, {
          errorSimulation: Error;
          loadingSimulation: boolean;
          mutateSimulation: ((simulation: IFrontMutateSimulation) => Promise<void>);
      }])
        • (id?, refresh?): [DefaultData | IFrontSimulation, {
              errorSimulation: Error;
              loadingSimulation: boolean;
              mutateSimulation: ((simulation: IFrontMutateSimulation) => Promise<void>);
          }]
        • Use simulation

          Parameters

          • Optionalid: string

            Simulation id

          • Optionalrefresh: number

          Returns [DefaultData | IFrontSimulation, {
              errorSimulation: Error;
              loadingSimulation: boolean;
              mutateSimulation: ((simulation: IFrontMutateSimulation) => Promise<void>);
          }]

          Simulation

    • useSimulations: ((ids?: string[]) => [IFrontSimulations, {
          addOneSimulation: ((simulation: IFrontNewSimulation) => Promise<void>);
          delOneSimulation: ((simulation: IFrontMutateSimulationsItem) => Promise<void>);
          errorSimulations: Error;
          loadingSimulations: boolean;
          mutateOneSimulation: ((simulation: IFrontMutateSimulationsItem, revalidate?: boolean) => Promise<void>);
      }])

    Generated using TypeDoc and TypeDoc Airthium Plugin