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

    Class MaximoClient

    Main client class for the Maximo API Provides access to all resource-specific services

    Index

    Properties

    metadata: any

    Methods

    • Gets an AutoscriptService instance. If an objectStructure is provided, a new service instance is created for that specific object structure. If no objectStructure is provided, it returns the default AutoscriptService instance (same as accessing the autoScript getter).

      Parameters

      • OptionalobjectStructure: string

        Optional. The name of the Maximo object structure for automation scripts.

      Returns AutoscriptService

      An AutoscriptService instance.

    • Gets a custom service instance.

      Type Parameters

      • T

      Parameters

      • ServiceClass: new (client: HttpClient, os: string) => T

        The class of the service to instantiate

      • objectStructure: string

        The object structure name

      Returns T

      An instance of the service

    • Generates a Maximo UI URL based on provided options.

      Parameters

      Returns string

      The constructed Maximo UI URL.

    • Checks if the client is authenticated

      Returns boolean

      True if authenticated, false otherwise

    • Sets the log level for the client

      Parameters

      Returns void

    • Gets an MaxAppService instance. If an objectStructure is provided, a new service instance is created for that specific object structure. If no objectStructure is provided, it returns the default MaxAppService instance (same as accessing the appXml getter).

      Parameters

      • OptionalobjectStructure: string

        Optional. The name of the Maximo object structure for AppXml.

      Returns MaxAppService

      An MaxAppService instance.

    • Gets an ObjectStructService instance. If an objectStructure is provided, a new service instance is created for that specific object structure. If no objectStructure is provided, it returns the default ObjectStructService instance (same as accessing the objectStructService getter).

      Parameters

      • OptionalobjectStructure: string

        Optional. The name of the Maximo object structure for Object Structures.

      Returns ObjectStructService

      An ObjectStructService instance.

    • Gets the underlying HttpClient instance. Useful when passing MaximoClient to services instead of HttpClient.

      Returns HttpClient

    • Gets the LoggingService instance for managing logs (lazily initialized).

      Returns LoggingService

      LoggingService instance for managing logs

    • Gets the SystemService instance for managing system-related operations (lazily initialized).

      Returns SystemService

      SystemService instance for managing system-related operations

    • Gets the ApiKeyService instance for managing API keys (lazily initialized).

      Returns ApiKeyService

      ApiKeyService instance for managing API keys

    • Gets the ConditionExpressionService instance for managing condition expressions (lazily initialized).

      Returns ConditionExpressionService

      ConditionExpressionService instance for managing condition expressions

    • Gets default API home based on authentication type

      Parameters

      Returns ApiHome

      Default API home

    • Authenticates with the Maximo server using the configured authentication method

      Returns Promise<AuthenticationResult>

      A promise that resolves to the authentication result

    • Checks if the client is currently authenticated by ensuring cookies exist and optionally making a lightweight request to verify the session.

      Returns Promise<boolean>

      True if authenticated, false otherwise

    • Gets a service instance for a given object structure.

      Type Parameters

      Parameters

      • objectStructure: string

        The object structure name

      • OptionalServiceClass: new (client: HttpClient, os: string) => T

        The class of the service to instantiate (optional, defaults to GenericOslcService)

      Returns T

      An instance of the service (GenericOslcService if no ServiceClass is provided)

    • Gets the generic OSLC service for generic operations

      Parameters

      • objectStructure: string = 'mxapiasset'

        The object structure name (optional, defaults to 'mxapiasset')

      Returns GenericOslcService

      GenericOslcService instance

    • Sets a dedicated logger for a specific service instance.

      Type Parameters

      • T extends { setLogger?: (logger: ILogger) => unknown }

      Parameters

      Returns T

    • Returns string

    • Returns the resolved authentication type for this client.

      Returns AuthType

    • Logs out the user by clearing local cookies and calling the appropriate logout endpoint

      Returns Promise<void>

    Accessors

    • get autoScript(): AutoscriptService

      Service for working with automation scripts (lazily initialized). This instance uses the object structure defined in MaximoClientConfig.autoscriptObjectStructure or defaults to 'mxapiautoscript' if not specified during client initialization.

      Returns AutoscriptService

    • get mmi(): MmiService

      Service for interacting with Manage Monitoring (MMI) APIs (lazily initialized).

      Returns MmiService

    • get schema(): SchemaService

      Service for accessing JSON schemas for Maximo objects (lazily initialized) This provides object structure and MBO schema information

      Returns SchemaService

    Constructors