Maximo API Client - v0.9.01
    Preparing search index...

    Class MaximoClientBuilder

    Builder for creating MaximoClient instances.

    Index

    Methods

    • Sets the base URL for the Maximo server.

      Parameters

      Returns this

    • Sets the port for the connection.

      Parameters

      • port: number

        The port number

      Returns this

    • Sets the context root (default is 'maximo').

      Parameters

      • contextRoot: string

        The context root

      Returns this

    • Sets the API home path (default depends on auth type).

      Parameters

      • apiHome: ApiHome

        The API home (OSLC, API, REST)

      Returns this

    • Configures authentication using username and password. Defaults to MAXIMO_NATIVE auth type if not specified.

      Parameters

      • userName: string

        The username

      • password: string

        The password

      Returns this

    • Configures authentication using an API key. Sets auth type to APIKEY.

      Parameters

      • apiKey: string

        The API key

      Returns this

    • Explicitly sets the authentication type.

      Parameters

      • authType: AuthType

        The authentication type

      Returns this

    • Sets the authentication type. Alias for useAuthType.

      Parameters

      • authType: AuthType

        The authentication type

      Returns this

    • Enables or disables SSL.

      Parameters

      • enabled: boolean

        True to enable SSL

      Returns this

    • Configures whether to reject unauthorized certificates.

      Parameters

      • reject: boolean

        True to reject, false to allow (e.g., self-signed)

      Returns this

    • Alias for rejectUnauthorized(false). Useful for development environments with self-signed certificates.

      Returns this

    • Sets the request timeout.

      Parameters

      • ms: number

        Timeout in milliseconds

      Returns this

    • Enables or disables lean mode (reduced response payload).

      Parameters

      • enabled: boolean

        True to enable lean mode

      Returns this

    • Disables lean mode.

      Returns this

    • Sets the log level.

      Parameters

      Returns this

    • Sets a custom logger.

      Parameters

      • logger: ILogger

        The logger instance

      Returns this

    • Configures the default object structure for AutoscriptService.

      Parameters

      • osName: string

        The object structure name

      Returns this

    • Configures the default object structure for MaxAppService.

      Parameters

      • osName: string

        The object structure name

      Returns this

    • Configures the default object structure for ConditionExpressionService.

      Parameters

      • osName: string

        The object structure name

      Returns this

    • Configures the default object structure for ObjectStructService.

      Parameters

      • osName: string

        The object structure name

      Returns this

    • Sets the maximum number of concurrent requests.

      Parameters

      • max: number

        The maximum number of concurrent requests

      Returns this

    • Configures the proxy settings.

      Parameters

      • proxy:
            | {
                host: string;
                port: number;
                protocol?: string;
                auth?: { username: string; password: string };
            }
            | undefined

        The proxy configuration

      Returns this

    • Enables or disables automatic re-authentication on 401 errors.

      Parameters

      • enabled: boolean

        True to enable auto-authentication

      Returns this

    • Sets the CA certificate content.

      Parameters

      • ca: string

        The CA certificate content

      Returns this

    • Sets the path to the CA certificate file.

      Parameters

      • path: string

        The path to the CA certificate file

      Returns this

    • Sets the client certificate content.

      Parameters

      • cert: string

        The client certificate content

      Returns this

    • Sets the path to the client certificate file.

      Parameters

      • path: string

        The path to the client certificate file

      Returns this

    • Sets the client key content.

      Parameters

      • key: string

        The client key content

      Returns this

    • Sets the path to the client key file.

      Parameters

      • path: string

        The path to the client key file

      Returns this

    • Enables or disables automatic certificate extraction.

      Parameters

      • enabled: boolean

        True to enable auto extraction

      Returns this

    • Enables or disables hostname validation when using autoExtractCert. When enabled, only certificate fingerprint is validated.

      Parameters

      • skip: boolean

        True to skip hostname validation

      Returns this

    • Validates the configuration and builds the MaximoClient.

      Returns MaximoClient

      A new MaximoClient instance

      Error if configuration is invalid

    Constructors