Metadata about a single library that's available for code generation or other purposes.

Hierarchy (view full)

Constructors

Properties

Description: string = null

User readable/AI readable description of the library

ExportedItems: string = null

Comma-delimted list of items that are exported from the library such as classes, functions, types, etc.

ID: string = null

Primary Key

Name: string = null

Name of the library - used for import statements and within package.json

SampleCode: string = null

Sample code that demonstrates how to use the library

Status: "Pending" | "Active" | "Disabled" = null

Only Active libraries are used for new code generation but disabling a library means it won't be used for new code generation, but doesn't remove it from use from previously generated code.

TypeDefinitions: string = null

Code definitions for the types that are exported from the library

__mj_CreatedAt: Date = null
__mj_UpdatedAt: Date = null
_exportItemsArray: string[] = null

Accessors

  • get ExportItemsArray(): string[]
  • Helper method to get the ExportedItems as an array of strings, parsing the comma delimited string in the ExportedItems property

    Returns string[]

Methods

  • Copies initialization data from a plain object to the class instance. Only copies properties that already exist on the class to prevent creating new fields. Special handling for DefaultValue fields to extract actual values from SQL Server syntax.

    Parameters

    • initData: any

      The initialization data object

    Returns void