Skip to content

FieldsAPI

Defined in: namespaces-core-plugins.ts:450

Plugin-attached fields over fn-93 entities. Field TYPE registration is declarative-only (manifest) per AD-FN93-51 — there is no fields.registerType.

fn-93

listTypes(opts?): Promise<AnyJSONValue[]>

Defined in: namespaces-core-plugins.ts:452

Lists field type definitions. [entities.read]

AnyJSONValue

Promise<AnyJSONValue[]>


attach(attachment): Promise<string>

Defined in: namespaces-core-plugins.ts:454

Attaches a field to an entity type. Returns an attachment token. [entities.field.attach.own]

AnyJSONValue

Promise<string>


detach(token): Promise<void>

Defined in: namespaces-core-plugins.ts:456

Detaches by token.

string

Promise<void>


listAttachments(entityType, opts?): Promise<AnyJSONValue[]>

Defined in: namespaces-core-plugins.ts:458

Lists field attachments for a type. [entities.read]

string

AnyJSONValue

Promise<AnyJSONValue[]>


registerComputedProvider(provider): Promise<string>

Defined in: namespaces-core-plugins.ts:460

Registers a computed-field provider. [entities.computedField.provide]

AnyJSONValue

Promise<string>


setValue(entityType, entityId, fieldId, value): Promise<void>

Defined in: namespaces-core-plugins.ts:462

Sets a persisted field value. [entities.write]

string

string

string

AnyJSONValue

Promise<void>


clearValue(entityType, entityId, fieldId): Promise<void>

Defined in: namespaces-core-plugins.ts:464

Clears a persisted field value. [entities.write]

string

string

string

Promise<void>


getValue(entityType, entityId, fieldId): Promise<AnyJSONValue>

Defined in: namespaces-core-plugins.ts:466

Gets a field value (persisted or computed), or null. [entities.read]

string

string

string

Promise<AnyJSONValue>