arcgis-item-engine
Engine for powering ArcGIS item workflows in Node.js and web browsers.
Installation
$ npm install arcgis-item-engine
Example
import { updateItemDescription } from 'arcgis-item-engine';
import { UserSession } from '@esri/arcgis-rest-auth';
updateItemDescription(
{
id: '0123456789abcdef0123456789abcdef',
authentication: new UserSession({
username: 'example_user',
password: 'password',
}),
},
{
title: 'Updated Title',
},
)
.onProgress((progress) => {
console.log(`Progress: ${progress}%`);
})
.then((result) => {
console.log(result);
});