Skip to main content

maximo@0.5.8

fetch(params)
update(params)
update75(params)

This adaptor exports the following from common:

alterState()
dataPath()
dataValue()
each()
field()
fields()
fn()
fnIf()
lastReferenceValue()
merge()
sourceValue()

Functions

fetch

fetch(params) ⇒ Operation

Make a GET request and POST it somewhere else

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',
});

update

update(params) ⇒ Operation

Make an update in Maximo 7.6 and beyond

ParamTypeDescription
paramsobjectdata to make the update

Example

execute(
update(params)
)(state)

update75

update75(params) ⇒ Operation

Make an upadte in Maximo 7.5

ParamTypeDescription
paramsobjectdata to make the update

Example

execute(
update75(params)
)(state)