@suluk/panel - v0.3.1
    Preparing search index...

    Function fieldsOf

    @suluk/panel — contract-first admin panels, in the spirit of Payload but projected from ONE OpenAPI v4 document. Payload makes you configure collections in a framework-coupled DSL; @suluk/panel INFERS the same field types (text/textarea/richtext/number/boolean/select/date/email/url/json/relationship) straight from the contract's component schemas, renders shadcn/theme-aware forms + data tables, and mounts a role-aware admin — pass a per-role PROJECTED document and you get a per-role dashboard for free. No DB coupling (it drives the contract's REST), no config drift (the contract is the single source). CANDIDATE tooling.

    • Infer the ordered field set for an entity. entities is the set of entity names (for relationship detection).

      Parameters

      • schema: Schema
      • entities: Set<string> = ...
      • opts: FieldsOptions = {}

      Returns Field[]