Skip to main content

maximo@0.3.0

Adaptor

Adaptor.execute(operations) ⇒ Operation

Execute a sequence of operations. Wraps @openfn/language-common/execute, and prepends initial state for http.

Kind: static method of Adaptor

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.fetch(params) ⇒ Operation

Make a GET request and POST it somewhere else

Kind: static method of Adaptor

ParamTypeDescription
paramsobjectdata to make the fetch

Example

fetch({
endpoint: 'maxrest/rest/os/mxinventory',
query: {
ITEMNUM: '01226',
_format: 'json',
},
postUrl: 'https://www.openfn.org/inbox/not-real',
});

Adaptor.update(params) ⇒ Operation

Make an update in Maximo 7.6 and beyond

Kind: static method of Adaptor

ParamTypeDescription
paramsobjectdata to make the update

Example

execute(
update(params)
)(state)

Adaptor.update75(params) ⇒ Operation

Make an upadte in Maximo 7.5

Kind: static method of Adaptor

ParamTypeDescription
paramsobjectdata to make the update

Example

execute(
update75(params)
)(state)