PropertyBuilder
Configures a declared Property: its label, archive state and emitted Definition.
Remarks
Section titled “Remarks”Properties are declared through TemplatePropertiesBuilder.addProperty; this is the common surface shared by typed, select and JSON Properties.
- PropertyDefinition for the emitted Definition
- PropertyValue for a stored value tagged with its data type
Extended by
Section titled “Extended by”Properties
Section titled “Properties”annotations
Section titled “annotations”
readonlyannotations: readonlyPropertyAnnotation[]
Annotations declared so far, in declaration order.
isArchived
Section titled “isArchived”
readonlyisArchived:boolean
Whether the Property is archived and therefore hidden from new use while its data is kept.
readonlykey:string
Property key within its Template.
readonlylabel:string
Display label, which defaults to the key.
readonlyprn:string
Platform Resource Name of the Property, derived from its Template and key.
readonlytype:PropertyDefinitionType
Declared data type, or json for a Property parsed by a Zod type.
Methods
Section titled “Methods”annotate()
Section titled “annotate()”annotate(…
annotations):this
Adds annotations to the Property, in declaration order; may be called more than once.
Parameters
Section titled “Parameters”annotations
Section titled “annotations”Returns
Section titled “Returns”this
archive()
Section titled “archive()”archive():
this
Archives the Property so it is retired without deleting stored values.
Returns
Section titled “Returns”this
This builder for chaining.
setLabel()
Section titled “setLabel()”setLabel(
label):this
Sets the display label, truncated to 500 characters.
Parameters
Section titled “Parameters”string
Human-readable label.
Returns
Section titled “Returns”this
This builder for chaining.
toDefinition()
Section titled “toDefinition()”toDefinition():
PropertyDefinition
Emits the Definition of this Property.
Returns
Section titled “Returns”unarchive()
Section titled “unarchive()”unarchive():
this
Reverses PropertyBuilder.archive.
Returns
Section titled “Returns”this
This builder for chaining.

