Manta Developers
GitHub
Menu

@manta-eu/horns-client/ldkit-source

Reference for @manta-eu/horns-client/ldkit-source in @manta-eu/horns-client 0.2.3.

Type Aliases

LdkitSource

LdkitSource = object

Properties

module

module: object

An LDkit schema module: every …Schema export, as shapeCatalogFromLdkit reads them.

origin

origin: "generated" | "canonical"

Whether this realm’s own shapes were read, or the canonical set stood in for them.

Variables

generatedNotice

const generatedNotice: "built from this realm's own datastore shapes, which are a subset of the canonical set" = "built from this realm's own datastore shapes, which are a subset of the canonical set"


generatedRoot

const generatedRoot: URL

Where just generate writes. A parameter only so a test can point at a fixture tree.

Functions

hasGeneratedSchemas()

hasGeneratedSchemas(realm, root?): boolean

Whether just generate has been run for this realm in this checkout.

Parameters

realm

"hiremanta-com" | "journey-travel"

root?

URL

Returns

boolean


ldkitSchemasFor()

ldkitSchemasFor(realm, root?, preferGenerated?): Promise<LdkitSource>

Node only: it reads the filesystem. hornsShapeCatalog calls it at build time; a worker never does.

Parameters

realm

"hiremanta-com" | "journey-travel"

root?

URL

preferGenerated?

boolean

Returns

Promise<LdkitSource>