Manta Developers
GitHub
Menu

@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 & (string extends keyof S ? 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?

optional datatype?: object

datatype.value

value: string

language?

optional language?: string

predicate

predicate: object

value

value: string

subject

subject: DocumentTerm


DocumentTerm

DocumentTerm = object

Properties

termType

termType: string

value

value: string


Writable

Writable<T> = T extends readonly infer E[] ? Writable<E>[] : T extends Record<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)[] = []

Returns

GQLExecuteActionUpdateInput