Interface ConfigApi

Configuration-related functionality.

Accessed from the window at window.sas.vi.config.

window.sas.vi.config.getSolutions();
interface ConfigApi {
    getAppConfigBundle<T>(appConfigId: string, bundleName: string): Promise<AppConfigBundle<T>>;
    getCurrentVersions(): VersionSummary;
    getEnabledOptionalServices(): Record<string, boolean>;
    getHardExpansionLimit(): Promise<number>;
    getSharedDialogContainer(): HTMLElement;
    getSoftExpansionLimit(): Promise<number>;
    getSolutionExtension(name: string): Promise<undefined | SolutionExtension | HomepageSolutionExtension>;
    getSolutions(): Map<string, Solution>;
    registerDocumentManager(config: SviDocumentManager): void;
    registerOpenConfigurationCallback(bundleName: string, callback: (() => void)): void;
    registerSolution(key: string, label: string, version?: string): void;
    registerSolutionExtension(config: SolutionExtension | HomepageSolutionExtension): Promise<void>;
    updateAppConfigBundle<T>(bundle: AppConfigBundle<T>): Promise<AppConfigBundle<T>>;
}

Methods

  • Type Parameters

    • T extends object

    Parameters

    • appConfigId: string

      {string} The identifier for the application configuration that the bundle belongs to.

    • bundleName: string

      {string} The name of the configuration bundle.

    Returns Promise<AppConfigBundle<T>>

    Send a GET request to retrieve an application configuration bundle.

  • Returns VersionSummary

    The software version number and the installed version of the API.

    Gets the current software version number and API version of the application.

  • Returns Record<string, boolean>

    A map of service identifiers to their enabled status (true or false).

    Get the services which are an optional part of the SAS Visual Investigator deployment.

  • Returns Promise<number>

    A Promise containing the hard expansion limit.

    Gets the hard expansion limit of the network nodes.

  • Returns HTMLElement

    A reference to the HTML element that is the default container for modal dialog boxes to be spawned within the application.

  • Returns Promise<number>

    A Promise containing the soft expansion limit.

    Gets the soft expansion limit of the network nodes.

  • Returns Map<string, Solution>

    The currently registered solutions.

    Gets the registered solutions and their labels and versions.

  • Parameters

    Returns void

    Registers a document manager with the application.

  • Parameters

    • bundleName: string

      {string} The name of the configuration bundle.

    • callback: (() => void)

      {function(): void} A function which should open a view to allow the user to modify the given configuration bundle.

        • (): void
        • Returns void

    Returns void

    Register a callback to override the default action when selecting the configuration bundle in the administration application.

  • Parameters

    • key: string

      {string} Unique identifier for the solution.

    • label: string

      {string} Localized name of the solution to be displayed.

    • Optionalversion: string

      {string} Version of the solution.

    Returns void

    Registers a new solution and version in the SAS Visual Investigator About dialog box. If a solution with that key already exists it will not be overwritten.

  • Parameters

    Returns Promise<void>

    A Promise that resolves when the solution has been sent to the cache.

    Registers a solution extension with the application.

  • Type Parameters

    • T extends object

    Parameters

    • bundle: AppConfigBundle<T>

      {AppConfigBundle} The updated application configuration bundle.

    Returns Promise<AppConfigBundle<T>>

    A Promise resolving to the saved configuration bundle.

    Send a PUT request to save an application configuration bundle.