@iota/industry_4.0_language
v1.0.6
Published
Industry_4.0_Language
Downloads
10
Readme
Industry 4.0 Language Library
Usage
Add the package name to your package.json
dependencies list
Import functions and call it within your application
import { operations, submodel } from 'SeMarket/industry_4.0_language';
const eClassOperations = operations();
const eClassSubmodel = submodel(eClassOperations[0].id);
API Description:
operations
- For CfP message type returns list of operations (plain text)
submodel
- Performs lookup in the eCl@ss catalog, retrieves submodel
- Returns submodel
evaluate
- Evaluates values
- Returns success or failure notification
generate
- Generates conversationId, messageId,
- Fills placeholder JSON for selected message type with provided values, appends submodel
- Returns generated message of the selected type (CfP, Proposal, etc.)