0.1.6 • Published 3 years ago
@faros-ai-test/faros-canonical-models v0.1.6
Canonical Models
A collection of canonical model definitions used by the Faros platform. A small library is included for loading these definitions by their namespace.
Usage
The library is currently just one function: loadModelsSync
. One or more
namespaces, i.e., identifiers for related models, can be loaded in a single
call; loading multiple namespaces will concatenate their definitions. For
example, the call below would load models cicd_Build
, cicd_Deployment
,
vcs_Commit
, vcs_Repository
, etc.
const sdl: string = loadModelsSync(['cicd', 'vcs']);
Refer to the package contents for the full list of namespaces.
Once loaded, the definition string can be passed to the model APIs to create or update models in a graph.