Function: getUbiquitousLanguageFromDomain()
getUbiquitousLanguageFromDomain(
directory): (id,version?) =>Promise<{markdown:any; }>
Defined in: domains.ts:269
Returns the ubiquitous language dictionary from a domain.
Optionally specify a version to get the ubiquitous language dictionary from a specific version of the domain.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
id | string |
version? | string |
Returns
Promise<{ markdown: any; }>
Example
import utils from '@eventcatalog/utils';
const { getUbiquitousLanguageFromDomain } = utils('/path/to/eventcatalog');
const ubiquitousLanguage = await getUbiquitousLanguageFromDomain('Payment');
// Returns the ubiquitous language dictionary from a specific version of the domain
const ubiquitousLanguage = await getUbiquitousLanguageFromDomain('Payment', '0.0.1');