@manta-eu/client/shared/action-document
Reference for @manta-eu/client/shared/action-document as it is on main.
Type Aliases
ActionEntity
ActionEntity<
S> =Identity& (stringextends keyofS?Record<string,unknown> :Writable<Omit<SchemaInterface<S>,"$id">>)
Type Parameters
S
S extends Schema
ActionInput
ActionInput =
GQLExecuteActionUpdateInput
ActionSchema
ActionSchema =
Schema&object
Type Declaration
@type
@type:
string
DocumentQuad
DocumentQuad =
object
Properties
object
object:
DocumentTerm&object
Type Declaration
datatype?
optionaldatatype?:object
datatype.value
value:
string
language?
optionallanguage?:string
predicate
predicate:
object
value
value:
string
subject
subject:
DocumentTerm
DocumentTerm
DocumentTerm =
object
Properties
termType
termType:
string
value
value:
string
Writable
Writable<
T> =Textends readonly infer E[] ?Writable<E>[] :TextendsRecord<string,unknown> ?{ [K in keyof T]?: Writable<T[K]> }:T
Type Parameters
T
T
Functions
documentFromQuads()
documentFromQuads(
quads,subjectIri):Record<string,unknown>
Parameters
quads
readonly DocumentQuad[]
subjectIri
string
Returns
Record<string, unknown>
entityActionDocument()
entityActionDocument<
S>(schema,entity):Record<string,unknown>
Type Parameters
S
S extends Schema
Parameters
schema
S
entity
ActionEntity<S>
Returns
Record<string, unknown>
entityActionInput()
entityActionInput<
S>(schema,actionShape,entity,cleared?):GQLExecuteActionUpdateInput
Type Parameters
S
S extends ActionSchema
Parameters
schema
S
actionShape
string
entity
ActionEntity<S>
cleared?
readonly (Exclude<keyof S, "@type"> & string)[] = []