AppBuilderTypes
Maps operation, Template and Item keys to the application-specific types an AppBuilder uses in its method signatures.
Remarks
Section titled “Remarks”This base version is broadly typed. The Alpyne compiler generates a specialized version for each
App, keyed by operation key, Template key and Template PRN, so that handlers receive parsed input
and typed Items without casts. Pass the generated interface as the TTypes parameter of
AppBuilder.
Run and test it for compiling an App
Properties
Section titled “Properties”MutationInput
Section titled “MutationInput”
readonlyMutationInput:Record<string,any>
Parsed input type of each Mutation, keyed by Mutation key.
MutationOutput
Section titled “MutationOutput”
readonlyMutationOutput:Record<string,any>
Result type of each Mutation, keyed by Mutation key.
QueryInput
Section titled “QueryInput”
readonlyQueryInput:Record<string,any>
Parsed input type of each Query, keyed by Query key.
QueryOutput
Section titled “QueryOutput”
readonlyQueryOutput:Record<string,any>
Result type of each Query, keyed by Query key.
ReadAppInstance
Section titled “ReadAppInstance”
readonlyReadAppInstance:ReadAppInstance
Read-only App instance handed to Query handlers as current.
ReadItem
Section titled “ReadItem”
readonlyReadItem:Record<string,ReadItem>
Read-only Item type of each Template, keyed by Template PRN.
ReadRuntimeInstance
Section titled “ReadRuntimeInstance”
readonlyReadRuntimeInstance:ReadRuntimeInstance
Read-only Runtime context handed to Query handlers as ctx.
Template
Section titled “Template”
readonlyTemplate:Record<string,TemplateBuilder>
Template builder of each Template, keyed by Template key and by Template PRN.
WriteAppInstance
Section titled “WriteAppInstance”
readonlyWriteAppInstance:WriteAppInstance
Writable App instance handed to Mutation handlers and Event Listeners as current.
WriteItem
Section titled “WriteItem”
readonlyWriteItem:Record<string,WriteItem>
Writable Item type of each Template, keyed by Template PRN.
WriteRuntimeInstance
Section titled “WriteRuntimeInstance”
readonlyWriteRuntimeInstance:WriteRuntimeInstance
Writable Runtime context handed to Mutation handlers and Event Listeners as ctx.

