0.5.16 • Published 7 months ago
@openfn/language-maximo v0.5.16
Language Maximo
Language Pack for building expressions and operations to access IBM Maximo EAM.
Documentation
Configuration
View all the required and optional properties for state.configuration in the
official
configuration-schema
definition.
Fetch
sample 'fetch' expression
fetch({
endpoint: 'maxrest/rest/os/mxinventory',
query: {
ITEMNUM: '01226',
_format: 'json',
},
postUrl: 'https://www.openfn.org/inbox/not-real',
});sample 'create' expression
create({
endpoint: 'maxrest/rest/os/mxinvbal/',
body: function (state) {
return {
ITEMNUM: dataValue('form.ITEMNUM')(state),
ITEMSETID: dataValue('form.ITEMSETID')(state),
SITEID: dataValue('form.SITEID')(state),
LOCATION: dataValue('form.LOCATION')(state),
ISSUEUNIT: 'FOO',
PHYSCNT: dataValue('PHYSCNT')(state),
BINNUM: dataValue('form.BINNUM')(state),
};
},
});sample 'update75' expression
update75({
endpoint: state => {
return (
'maxrest/rest/os/mxinvbal/' +
dataValue('form.question1.INVBALANCESID')(state)
);
},
body: state => {
return {
_action: 'AddChange', //this is required for the old Maximo API!
ITEMNUM: dataValue('form.ITEMNUM')(state),
ITEMSETID: dataValue('form.ITEMSETID')(state),
SITEID: dataValue('form.SITEID')(state),
LOCATION: dataValue('form.LOCATION')(state),
PHYSCNT: dataValue('form.PHYSCNT')(state),
BINNUM: dataValue('form.BINNUM')(state),
};
},
});Development
Clone the adaptors monorepo. Follow the
Getting Started guide inside to get set up.
Run tests using pnpm run test or pnpm run test:watch
Build the project using pnpm build.
To just build the docs run pnpm build docs
0.5.10
10 months ago
0.5.11
10 months ago
0.5.9
11 months ago
0.5.16
7 months ago
0.5.14
7 months ago
0.5.15
7 months ago
0.5.12
9 months ago
0.5.13
8 months ago
0.5.8
1 year ago
0.5.7
1 year ago
0.5.6
1 year ago
0.5.5
1 year ago
0.5.4
1 year ago
0.5.3
1 year ago
0.5.0
1 year ago
0.5.2
1 year ago
0.5.1
1 year ago
0.4.1
2 years ago
0.3.5
3 years ago
0.3.4
3 years ago
0.3.2
3 years ago
0.3.3
3 years ago
0.3.1
3 years ago
0.3.0
3 years ago