0.1.6 • Published 3 years ago

@faros-ai-test/faros-canonical-models v0.1.6

Weekly downloads
-
License
Apache-2.0
Repository
bitbucket
Last release
3 years ago

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.

0.1.6

3 years ago

0.1.5

3 years ago