@quadnix/octo/types
Index
Functions/Dependency
References
Rules
Services/State Management
Types
References
DiffAction
ServiceType
Rules
RuleResult
name
The rule's name.
reason
Why the rule exists.
selected
How many things select chose. A rule choosing nothing holds trivially, and is reported.
staleExceptions
Each exception on a selected thing the rule now holds for, which the rule's author can remove.
subject
What select returns: module for a list of modules, node for a list of models, overlays or resources.
unmatchedExceptions
Each exception naming nothing select returned, such as a misspelled context or a module id where
select returns nodes, which the rule's author must correct or remove.
violations
Each selected thing the rule does not hold for: by its module id or node context, the module that built it, and the exception letting it through if one does.
Services/State Management
ExternalResourceStateFile
resource-state-<resourceId>.json, with each / of the id written as .: what an external
resource's action made of it — the inputs it was given, the properties it was asked for, and the
response it produced. It exists only between the action succeeding and the commit that folds it
into the resource graph, and while it exists it is the truth about that resource.
inputs
The inputs the action was given.
Type declaration
[key string]: unknown
properties
The properties the resource was asked to have.
Type declaration
[key string]: unknown
response
What the action returned, which becomes the resource's response.
Type declaration
[key string]: string
ImportStateFile
imports.json: the sealed state of each app this one extends (extends:<index>) and each store it
reads (stores:<name>), as the last generate read them, so every later command of the run reads
the same.
Type declaration
[importKey string]: { modelState: ModelStateFile; resourceState: ResourceStateFile }
ModelStateFile
models.json: the model graph as it stands after the last commit.
data
The model graph.
userData
What octo records beside the graph: the state's version, the package versions that wrote it, and the terraform folders it generated.
ResourceStateFile
resources-actual.json, the resource graph as it stands after the last commit, and
resources-old.json, the resource graph as intent described it on the last commit.
data
The resource graph.
userData
What octo records beside the graph: the state's version, and the terraform folders and blocks it generated.
Types
ModelSerializedOutput
The model graph as written to models.json.
nodeNamenames the base model an entry extends, and types itsmodelas that base model's schema. A model's own fields beyond it are not typed.modulesrecord inputs before references resolve.
anchors
Every anchor, with its class and the node it sits on.
dependencies
Every edge between two models or overlays.
models
Every model, by its context.
Type declaration
[context string]: { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N } | { className: string; model: BaseModelSchemas[N]; moduleId: string; nodeName: N }
modules
Every module that ran, by its id: its class and the inputs it was given.
Type declaration
[moduleId string]: { className: string; inputs: {} }
overlays
Every overlay.
ResourceSerializedOutput
The resource graph as written to resources-actual.json and resources-old.json.
createdByis the context of the model or overlay whose action created the resource.modelsrecord the context of every model and overlay whose action produced the resource.copiedResourcesholds a copy of every resource of another app that this app's resources stand on, such as a store's, and of their parents in turn, as this app last saw them. They rebuild this app's resources, and are never this app's own.
optionalcopiedResources
Copies of the resources of other apps this app's resources stand on.
dependencies
Every edge between two resources.
resources
Every resource, by its context.
Type declaration
[context string]: { className: string; createdBy?: string; kind: external | terraform; models: string[]; moduleId: string; resource: ResourceSerializedSchema }
What one rule found over the graph.
Rules