ORM service configuration.
ProtectedapplyProtectedbuildType name for field mapping.
Item to extract structured fields from.
Structured fields record for indexing.
ProtectedcleanupCreate a new item of the given type.
Type name to create.
Item payload to create.
Primary field value for the created item.
Create a new relationship between two items.
Relationship item to create.
When DAC is enabled and getOwnerPrefix is configured, relationship
creation requires:
from and to items.Optionalcontext: TypeInfoORMContextTrue when the relationship was created.
Delete an existing item of the given type.
Type name to delete.
Primary field value to delete.
Optionalcontext: TypeInfoORMContextTrue when the delete succeeded.
Delete a relationship between two items.
Relationship item to delete.
When DAC is enabled and getOwnerPrefix is configured, relationship
deletion requires:
from and to items.Optionalcontext: TypeInfoORMContextDeletion results including whether items remain.
ProtectedgetType name used to look up TypeInfo.
Item to clean.
OptionaldacFieldResources: Partial<Record<string, DACAccessResult>>Optional DAC field resource map.
OptionalselectedFields: string[]Optional selected fields to include.
Cleaned item with selected fields and DAC constraints applied.
ProtectedgetType name used to look up TypeInfo.
OptionalselectedFields: string[]Optional selected fields to include.
Sanitized selected fields or undefined for all fields.
ProtectedgetIndexing relationship driver for relation indexing.
ProtectedgetProtectedindexType name for index field resolution.
Item to index.
OptionalindexFieldOverride: stringOptional override for the index field.
Promise resolved once indexing is complete.
ProtectedindexType name for field mapping.
Item to index.
Promise resolved once indexing is complete.
ProtectedisValue to check.
True when the value is a supported structured value.
List items of the given type, with the given criteria.
Type name to list.
List configuration and criteria.
OptionalselectedFields: string[]Optional fields to select.
Optionalcontext: TypeInfoORMContextList results with items and cursor.
List related items for the relationship origin.
Relationship list configuration.
OptionalselectedFields: string[]Optional fields to select on related items.
Optionalcontext: TypeInfoORMContextItems and cursor for related items.
List the relationships for a given item.
Relationship list configuration.
Optionalcontext: TypeInfoORMContextRelationship items and paging cursor.
Read an existing item of the given type.
Type name to read.
Primary field value to fetch.
OptionalselectedFields: string[]Optional fields to select.
Optionalcontext: TypeInfoORMContextCleaned item data.
ProtectedremoveType name for index field resolution.
Item to remove from the index.
OptionalindexFieldOverride: stringOptional override for the index field.
Promise resolved once removal is complete.
ProtectedremoveType name for field mapping.
Item to remove from the structured index.
Promise resolved once removal is complete.
ProtectedreplaceType name for index field resolution.
Previous item state to remove from the index.
Next item state to index.
OptionalindexFieldOverride: stringOptional override for the index field.
Promise resolved once replacement is complete.
ProtectedresolveType name used to resolve the default index field.
Optionaloverride: stringOptional override for the index field.
Resolved index field name, if available.
Update an existing item of the given type.
This update will always act as a patch.
Use null to signify the deletion of a field.
Assign values to all fields to perform a replacement.
The item must always contain its primary field value.
Type name to update.
Item payload to update.
Optionalcontext: TypeInfoORMContextTrue when the update succeeded.
ProtectedvalidateType name to validate.
Item to validate.
Operation being validated.
OptionalitemIsPartial: booleanWhether the item is a partial update.
Nothing (throws on invalid items).
ProtectedvalidateType name to validate for read.
OptionalselectedFields: string[]Optional selected fields to validate.
Nothing (throws on invalid operations).
ProtectedvalidateRelationship item to validate.
Relationship fields to omit from validation.
Nothing (throws on invalid relationships).
TypeInfo-driven ORM service with optional DAC and indexing integrations.