StaticenableThe Prorm instance
The model class to track
Optional configuration
StaticapplyApply hooks to a model for automatic transfer logging. Called automatically by enable() when autoLog is true.
The model class
Optionalconfig: TransferConfig
The transfer configuration
StaticconfigureConfigure custom region settings. Merges with default region configs.
Map of region codes to their configurations
StaticgetGet region configuration.
The region code
StaticlogLog a cross-border data transfer.
Source region code (e.g., 'EU', 'US')
Target region code
Category of data being transferred
Record IDs or array of record data
Optionaloptions: {Additional transfer details
StaticgetGet transfer history for a specific record.
The model class
The record ID to get history for
StaticgetGet all transfer records for a model.
The model class
Optionaloptions: {Filter options (source, target, status, date range)
StaticcheckCheck if a cross-border transfer is allowed. Evaluates based on source/target region configurations.
Source region code
Target region code
OptionaldataType: DataTypeCategory
Optional data type for additional checks
StaticlistGet all regions with their configurations.
StaticgetGet transfer model for a model.
The model class
StaticdisableDisable transfer logging for a model.
The model class
StaticlistList all models with transfer logging enabled.
StaticisCheck if a model has transfer logging enabled.
The model class
StaticresetReset all custom region configurations to defaults.
Enable cross-border transfer logging on a model. Creates necessary tables and registers hooks.