UNPKG

leumas-universal-preset

Version:

A microservice to declare universal functions packed with reusable props via preset mappings.

31 lines (30 loc) 763 B
/** * Mapping Registry * * Define shareable mappings for functions so that the preset keys are automatically injected into the correct parameter positions. * Each function key holds one or more mapping definitions. * * For example: * - executeCell expects parameters: 0: gridId, 1: layerName, 2: cellId, 3: environment, 4: ownerid, 5: ownerToken. * - getWeather expects parameters: 0: city, 1: unit. */ module.exports = { executeCell: { default: { environment: 3, ownerid: 4, ownerToken: 5 }, alternative: { environment: 3, ownerid: 4, ownerToken: 5 } }, getWeather: { default: { city: 0, unit: 1 } } };