Hierarchy

Constructors

Methods

  • Removes an application with given id.

    Returns

    Response wrapped in IResult

    Parameters

    • entityOrId: string | number | IApplication

      entity or id of the application.

      Example


      const removeApp: object = {
      id: 38
      };

      (async () => {
      const {data, res} = await applicationService.delete(removeApp);
      // data will be null
      })();

    Returns Promise<IResult<null>>

  • Extracts instance names of the provided IApplicationManagedObject.

    Returns

    instance names

    Example


    const applicationId: number = 1;

    (async () => {
    const {data, res} = await applicationService.getStatusDetails(applicationId);
    const instances = data.map((appMO) => applicationService.getInstanceNames(appMO));
    })();

    Parameters

    Returns string[]

  • Checks if current user can access specified application.

    Returns

    Response wrapped in IResult

    Parameters

    • application: string | Partial<IApplication>

      Application name or contextPath as a string or Application object.

      Example


      const checkApp: object = {
      name: 'myApplication'
      };

      (async () => {
      const {data, res} = await applicationService.isAvailable(checkApp);
      })();

    Returns Promise<IResult<boolean>>

  • Dynamic options are stored on the API in a specific config: {} object. They can be used to configure the app dynamically.

    Note: To avoids conflicts with the default Config, it is recommended to use a certain namespace.

    Returns

    Returns updated configuration.

    Type Parameters

    • T

    Parameters

    • entityOrId: string | number | IApplication

      Entity or Id of the application.

    • config: T

      Configuration to be updated.

    Returns Promise<IApplication & {
        config: T;
    }>