WriteUnionInstance
Presents a Union inside a read-write execution, returning writable Items.
Extends
Section titled “Extends”ReadUnionInstance<TWriteItem>
Type Parameters
Section titled “Type Parameters”TWriteItem
Section titled “TWriteItem”TWriteItem extends WriteItem = WriteItem
The writable Item type generated for this Union’s members.
Properties
Section titled “Properties”
readonlyprn:string
The PRN of the resource, for example prn::identity:template/user.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”getItem()
Section titled “getItem()”getItem(
id):Promise<TWriteItem|undefined>
Loads an Item by identifier when it belongs to a member Template, writable in the current execution.
Parameters
Section titled “Parameters”string
The Item identifier.
Returns
Section titled “Returns”Promise<TWriteItem | undefined>
The Item, or undefined when the active principal cannot read it or its Template is not a member.
Overrides
Section titled “Overrides”isMember()
Section titled “isMember()”isMember(
template):boolean
Reports whether a Template belongs to this Union.
Parameters
Section titled “Parameters”template
Section titled “template”The Template, or anything carrying its PRN.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isType()
Section titled “isType()”isType(
value):value is TWriteItem
Reports whether a value is an Item of one of the member Templates, narrowing it to the writable Item type.
Parameters
Section titled “Parameters”unknown
The value to test.
Returns
Section titled “Returns”value is TWriteItem
Overrides
Section titled “Overrides”memberPrns()
Section titled “memberPrns()”memberPrns():
string[]
Lists the PRNs of the member Templates.
Returns
Section titled “Returns”string[]
Overrides
Section titled “Overrides”selectItems()
Section titled “selectItems()”selectItems():
UnionCursorSelector<WriteItem<ItemInstanceTypes>>
Starts a selection over the Items of every member Template, returning writable Items.
Returns
Section titled “Returns”UnionCursorSelector<WriteItem<ItemInstanceTypes>>

