UNPKG

typeorm-pii-compliance

Version:

TypeORM PII Compliance Service: Cascading Personally Identifiable Information Disposal

8 lines (7 loc) 514 B
import { BaseEntity } from 'typeorm'; export declare type PiiMetadataEntityType = Pick<typeof BaseEntity, 'find' | 'delete' | 'save'>; export declare enum PiiDisposalStrategy { DELETE = "DELETE", MASKING = "MASKING" } export declare type PiiMaskingMethod = 'null' | 'zero' | 'blank' | 'edge1' | 'edge2' | 'edge3' | 'edge4' | 'edge5' | 'edge6' | 'edge7' | 'edge8' | 'center1' | 'center2' | 'center3' | 'center4' | 'center5' | 'center6' | 'center7' | 'center8' | 'email' | (<T>(value: T) => Promise<T> | T);