Given the metadata from a document, convert it to an array of Restriction objects that may be passed to the Matching Engine and stored. The default implementation flattens any metadata and includes it as an "allowList". Subclasses can choose to convert some of these to "denyList" items or to add additional restrictions (for example, to format dates into a different structure or to add additional restrictions based on the date).
metadataToRestrictions(documentMetadata: Record<string, any>): Restriction[]| Name | Type | Description |
|---|---|---|
documentMetadata* | Record<string, any> | The metadata from a document |