ORM service configuration.
ProtectedapplyProtectedbuildType name for field mapping.
Item to extract structured fields from.
Structured fields record for indexing.
ProtectedcanType being listed.
Optionalcriteria: SearchCriteriaCriteria to evaluate.
True when criteria can be evaluated using structured 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.
ProtecteddecodeOptionalcursor: stringCursor from list config.
Decoded offset for full-scan compare pagination.
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.
ProtectedemitEmit list routing decision observability events without impacting runtime behavior.
Type being listed.
Selected routing path.
Why this path was selected.
Number of criteria considered.
ProtectedemitEmit structured index write observability events without impacting behavior.
Type being indexed.
Indexed document id.
Structured indexing action.
Number of indexed fields in the write payload.
ProtectedencodeNext offset in filtered/sorted results.
Encoded cursor for full-scan compare pagination.
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.
ProtectedgetType name used to clean the item.
Item snapshot to normalize.
Item snapshot normalized for indexing operations.
ProtectedgetIndexing relationship driver for relation indexing.
ProtectedgetProtectedindexType name for index field resolution.
Item to index.
OptionalindexFieldOverride: string | string[]Optional override for the index field.
Promise resolved once indexing is complete.
Write the provided item snapshot into the configured indexes.
Use this when data was created or modified outside TypeInfoORMService.
Type name for the indexed item.
Item snapshot to index.
Optional full-text field overrides.
Promise resolved when manual indexing completes.
ProtectedindexType name for field mapping.
Item to index.
Promise resolved once indexing is complete.
ProtectedisOperator to evaluate.
True when the operator maps to full-text search.
ProtectedisField definition from TypeInfo.
Search operator to evaluate.
True when the field type and operator can be served by structured indexing.
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.
ProtectedlistExecute a criteria list via full scan + in-memory compare.
This is the universal fallback strategy for criteria/operators that are not supported by indexed query planners.
Type name to list.
Original list config.
Selected fields for cleaned response.
Whether DAC checks are enabled.
Optionalcontext: TypeInfoORMContextOptional request context.
List results with 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.
Reindex the current stored item using the configured driver.
When no previous snapshot is supplied, the current stored item is used for
both removal and indexing to refresh existing postings without duplication.
Supply previousItem when an out-of-band update changed indexed field
values, otherwise old full-text tokens cannot be removed safely.
Type name to reindex.
Primary field value for the stored item.
Optional previous snapshot and full-text field overrides.
True when reindexing completed.
Reindex all currently stored items for a type.
This is intended for maintenance passes after out-of-band writes or
schema/index configuration changes. Deleted items still require explicit
cleanup via removeItemIndexes, because full-text token removal
needs a prior snapshot of indexed field values. For out-of-band updates
that changed indexed values, provide previousItemsByPrimaryField.
Type name to reindex.
Paging, previous snapshots, and full-text field overrides.
Count of processed stored items.
ProtectedremoveType name for index field resolution.
Item to remove from the index.
OptionalindexFieldOverride: string | string[]Optional override for the index field.
Promise resolved once removal is complete.
Remove the provided item snapshot from the configured indexes.
Use this when data was deleted outside TypeInfoORMService.
Type name for the indexed item.
Item snapshot to remove from the indexes.
Optional full-text field overrides.
Promise resolved when index cleanup completes.
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: string | string[]Optional override for the index field.
Promise resolved once replacement is complete.
Replace one indexed item snapshot with another.
Use this when an existing stored item changed outside TypeInfoORMService
or when a schema/config change requires removing old full-text fields and
indexing a new field set.
Type name for the indexed item.
Previous item snapshot to remove.
Next item snapshot to index.
Optional previous/next full-text field overrides.
Promise resolved when replacement indexing completes.
ProtectedresolveType being listed.
Optionalcriteria: SearchCriteriaSearch criteria from list config.
Auto full-text search plan for list criteria, if applicable.
ProtectedresolveType name used to resolve the default index field(s).
Optionaloverride: string | string[]Optional override for the index field.
Resolved full-text index field names.
ProtectedresolveType name used to resolve indexed structured fields.
Explicitly indexed structured field names for a type.
ProtectedtoCriterion to map.
Full-text query plan derived from a field criterion.
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.
OptionalupdateConfig: TypeInfoORMUpdateConfigOptional per-field operator config.
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).
ProtectedvalidateValidate update operator config against the target TypeInfo fields.
OptionalupdateConfig: TypeInfoORMUpdateConfig
TypeInfo-driven ORM service with optional DAC and indexing integrations.