UNPKG

@rockcarver/frodo-lib

Version:

A library to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.

29 lines 920 B
import { State } from '../shared/State'; export type IdmScript = { /** * Compile a JS script * @returns {Promise<string | object>} a promise resolving to 'true' or an error message */ compileScript(script: string): Promise<string | object>; /** * Run a JS script * @returns {Promise<SystemStatusInterface[]>} a promise resolving to the script result */ evaluateScript(script: string, globals?: { [key: string]: any; }): Promise<any>; }; declare const _default: (state: State) => IdmScript; export default _default; export declare function compileScript({ script, state, }: { script: string; state: State; }): Promise<string | object>; export declare function evaluateScript({ script, globals, state, }: { script: string; globals?: { [key: string]: any; }; state: State; }): Promise<any>; //# sourceMappingURL=IdmScriptOps.d.ts.map