ProtectedapiAPI base path (e.g., '/maximo/api')
ProtectedloggerProtectedhttpThe HTTP client for making requests
Returns the current logger used by this service instance.
ProtectedformatOptionalproperties: string | string[]ProtectedhandleError handler
the error to process
Executes a script by name with the provided parameters and method
Name of the script to execute
Configuration options for script execution
Optionalmethod?: ScriptHttpMethodHTTP method to use (default: GET)
OptionalqueryParams?: Record<string, string>Query parameters to pass to the script
Optionalbody?: anyRequest body (for POST/PUT/PATCH requests)
Optionalheaders?: Record<string, string>HTTP headers to send with the request
Promise resolving to the script execution result
Executes an action on an arbitrary endpoint Useful for service endpoints that don't follow the standard resource/ID pattern Supports both GET and POST methods based on payload presence
The endpoint to call the action on (e.g., 'service/logging')
The name of the action to execute (e.g., 'wsmethod:streamLog')
Optionalpayload: anyOptional payload data for the action (if provided, uses POST, otherwise GET)
OptionalreturnProperties: string | string[]Optional properties to return in the response
A promise resolving to a response object containing success status and optional data
Service for executing scripts directly via the Maximo Script Handler API This allows executing scripts without needing to go through the AutoScript service