@isaac-platform/isaac-integration-sdk
Version:
A Typescript SDK for integrating with ISAAC
39 lines • 1.24 kB
TypeScript
import { IsaacVariableType } from "./types.js";
import * as util from "util";
export declare class IsaacVariable {
private definition;
private filterUpdatesForChanges;
constructor(definition: IsaacVariableType);
/**
* Updates the value of a variable internally and publishes to ISAAC
* @param value
*/
setValue: (value: string | boolean | number | object) => Promise<IsaacVariableType>;
/**
* Refresh
* Retrieves the latest copy of the variable information from ISAAC.
* @returns IsaacVariableType
*/
refresh(): Promise<IsaacVariableType>;
/**
* Get
* @returns IsaacVariableType
*/
get(): IsaacVariableType;
/**
* Disable
* Disables the variable in the subsystem.
* This is recommended in place of delete as it does not break any user configuration which uses the variable.
* @returns IsaacVariableType
*/
disable(): Promise<IsaacVariableType>;
/**
* Enable
* Enables the variable in the subsystem.
* @returns IsaacVariableType
*/
enable(): Promise<IsaacVariableType>;
[util.inspect.custom](depth: any, opts: any): string;
private variableToString;
}
//# sourceMappingURL=variable.d.ts.map