Hierarchy

  • SASjsApiClient

Constructors

Methods

  • Creates the folders and services at the given location appLoc on the given server serverUrl.

    Parameters

    • dataJson: ServicePackSASjs

      the JSON specifying the folders and files to be created, can also includes appLoc, streamServiceName, streamWebFolder, streamLogo

    • appLoc: string

      the base folder in which to create the new folders and services.

    • Optional authConfig: AuthConfig

      (optional) a valid client, secret, refresh and access tokens that are authorised to execute compute jobs.

    Returns Promise<{
        example?: {};
        message: string;
        status: string;
        streamServiceName?: string;
    }>

  • Creates/updates files within SASjs drive using uploaded json compressed file.

    Parameters

    • zipFilePath: string

      Compressed file path; file should only contain one JSON file and should have same name as of compressed file e.g. deploy.JSON should be compressed to deploy.JSON.zip Any other file or JSON file in zipped will be ignored!

    • Optional authConfig: AuthConfig

      (optional) a valid client, secret, refresh and access tokens that are authorised to execute compute jobs.

    Returns Promise<{
        example?: {};
        message: string;
        status: string;
        streamServiceName?: string;
    }>

  • Parameters

    Returns Promise<{
        log: any;
        result: any;
    }>

  • Executes code on a SASJS server.

    Parameters

    • code: string

      a string of code to execute.

    • runTime: string = 'sas'

      a string to representing runTime for code execution

    • Optional authConfig: AuthConfig

      an object for authentication.

    Returns Promise<ScriptExecutionResult>

  • Exchanges the auth code for an access token for the given client.

    Parameters

    • clientId: string

      the client ID to authenticate with.

    • authCode: string

      the auth code received from the server.

    Returns Promise<SASjsAuthResponse>

Generated using TypeDoc