{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "archExtras",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        },
        {
          "file": "core/converters/record.converter.ts",
          "name": "extrasOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "aliasesOf",
      "signature": "const aliasesOf = function aliasesOf(sources: RecordSources, collection: string, id: string): readonly string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "aliasesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "extrasOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "archExtras",
      "signature": "const archExtras = function archExtras(sources: RecordSources, id: string): object {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "recordIdentities",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "titleOf",
      "signature": "const titleOf = function titleOf(record: ReferenceRecord): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "relationNamesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "withInbound",
      "signature": "const withInbound = function withInbound("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/coordinators/catalog.coordinator.ts",
          "name": "buildCatalog",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-catalog-coordinator-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/catalog.coordinator.ts",
            "label": "core/coordinators/catalog.coordinator.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/catalog.coordinator.ts.md",
            "ref": "anatomy:file-build-scripts-core-coordinators-catalog-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 157,
      "name": "closureLeaves",
      "signature": "export const closureLeaves = function closureLeaves(context: GovlabContext, linker: Linker): readonly Leaf[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "aliasesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        },
        {
          "file": "core/converters/record.converter.ts",
          "name": "archExtras",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        },
        {
          "file": "core/resolvers/catalog.resolver.ts",
          "name": "closureLeaf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-resolvers-catalog-resolver-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/resolvers/catalog.resolver.ts",
            "label": "core/resolvers/catalog.resolver.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/resolvers/catalog.resolver.ts.md",
            "ref": "anatomy:file-build-scripts-core-resolvers-catalog-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 97,
      "name": "extrasOf",
      "signature": "const extrasOf = function extrasOf(sources: RecordSources, collection: string, id: string): object {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "titleOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        },
        {
          "file": "core/resolvers/catalog.resolver.ts",
          "name": "recordLeaf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-resolvers-catalog-resolver-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/resolvers/catalog.resolver.ts",
            "label": "core/resolvers/catalog.resolver.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/resolvers/catalog.resolver.ts.md",
            "ref": "anatomy:file-build-scripts-core-resolvers-catalog-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "recordIdentities",
      "signature": "export const recordIdentities = function recordIdentities("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/record.converter.ts",
          "name": "withInbound",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.converter.ts",
            "label": "core/converters/record.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "relationNamesOf",
      "signature": "export const relationNamesOf = function relationNamesOf("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/record.page.converter.ts",
          "name": "distinctPages",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-page-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.page.converter.ts",
            "label": "core/converters/record.page.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.page.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-record-page-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 107,
      "name": "recordLeaves",
      "signature": "export const recordLeaves = function recordLeaves("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "CLOSURE_KIND",
      "signature": "const CLOSURE_KIND = \"closure\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "stored",
      "signature": "const stored = forward.filter((relation) => relation.relation !== REFERENCED_BY_RELATION);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "listed",
      "signature": "const listed = new Set(stored.flatMap((relation) => relation.edges.map((edge) => edge.ref)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "fresh",
      "signature": "const fresh = new Map<string, readonly EdgeRef[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "unlisted",
      "signature": "const unlisted = relation.edges.filter((edge) => !listed.has(edge.ref));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "merged",
      "signature": "const merged = stored.map((relation) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "names",
      "signature": "const names = new Set(stored.map((relation) => relation.relation));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "added",
      "signature": "const added = [...fresh.entries()]"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "linksOf",
      "signature": "const linksOf = function linksOf(linker: Linker, edges: readonly EdgeRef[]): readonly Link[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "principle",
      "signature": "const principle = sources.context.arch.get(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "{ linker }",
      "signature": "const { linker } = sources;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 112,
      "name": "leaves",
      "signature": "const leaves = [...collections.entries()].flatMap(([collection, index]) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 118,
      "name": "relations",
      "signature": "const relations: readonly Relation[] = relationGroups(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 126,
      "name": "layer",
      "signature": "const layer = record.layer === null ? null : linker.link(record.layer.label, record.layer.ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 127,
      "name": "data",
      "signature": "const data = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 141,
      "name": "page",
      "signature": "const page = recordSubjectOf({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 159,
      "name": "ref",
      "signature": "const ref = refOf(ALGO_FACE, contract.id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 160,
      "name": "closure",
      "signature": "const closure = context.algo.resolveClosure([contract.id]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 161,
      "name": "order",
      "signature": "const order = closure.order.map((id) => linker.link(context.algo.get(id)?.title ?? id, refOf(ALGO_FACE, id)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 162,
      "name": "title",
      "signature": "const title = closureTitle(contract.title);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 163,
      "name": "identity",
      "signature": "const identity: Identity = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "record.converter.ts",
  "path": "core/converters/record.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-record-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-page-converter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.page.converter.ts",
          "label": "core/converters/record.page.converter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.page.converter.ts.md",
          "ref": "anatomy:file-build-scripts-core-converters-record-page-converter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-resolvers-catalog-resolver-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/resolvers/catalog.resolver.ts",
          "label": "core/resolvers/catalog.resolver.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/resolvers/catalog.resolver.ts.md",
          "ref": "anatomy:file-build-scripts-core-resolvers-catalog-resolver-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-catalog-coordinator-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/catalog.coordinator.ts",
          "label": "core/coordinators/catalog.coordinator.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/catalog.coordinator.ts.md",
          "ref": "anatomy:file-build-scripts-core-coordinators-catalog-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-coordinators"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-resolvers",
          "label": "core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-resolvers.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-resolvers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "record",
    "variant": null
  },
  "stats": {
    "bytes": 7485,
    "callable": 10,
    "definitions": 30,
    "edges": 8,
    "exported": 15,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 4,
      "relay": 1,
      "entry": 4,
      "isolated": 21
    },
    "lines": {
      "blank": 11,
      "code": 166,
      "total": 177
    }
  },
  "summary": "166 lines of code and 30 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/record.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-record-page-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/record.page.converter.ts",
      "label": "core/converters/record.page.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/record.page.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-record-page-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-reason-reference-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/reason.reference.converter.ts",
      "label": "core/converters/reason.reference.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/reason.reference.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-reason-reference-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
