|
6 | 6 | * LICENSE file in the root directory of this source tree. |
7 | 7 | */ |
8 | 8 |
|
| 9 | +/** |
| 10 | + * Supported PII data types for normalization and hashing |
| 11 | + */ |
| 12 | +export declare const PII_DATA_TYPE: { |
| 13 | + readonly PHONE: 'phone'; |
| 14 | + readonly EMAIL: 'email'; |
| 15 | + readonly FIRST_NAME: 'first_name'; |
| 16 | + readonly LAST_NAME: 'last_name'; |
| 17 | + readonly DATE_OF_BIRTH: 'date_of_birth'; |
| 18 | + readonly GENDER: 'gender'; |
| 19 | + readonly CITY: 'city'; |
| 20 | + readonly STATE: 'state'; |
| 21 | + readonly ZIP_CODE: 'zip_code'; |
| 22 | + readonly COUNTRY: 'country'; |
| 23 | + readonly EXTERNAL_ID: 'external_id'; |
| 24 | +}; |
| 25 | + |
| 26 | +export type PiiDataType = typeof PII_DATA_TYPE[keyof typeof PII_DATA_TYPE]; |
| 27 | + |
9 | 28 | /** |
10 | 29 | * Cookie settings for setting browser cookies |
11 | 30 | */ |
@@ -122,7 +141,7 @@ export declare class ParamBuilder { |
122 | 141 | * @param dataType The type of PII data (e.g., 'email', 'phone', 'first_name') |
123 | 142 | * @returns The normalized and hashed PII value, or null if invalid |
124 | 143 | */ |
125 | | - getNormalizedAndHashedPII(piiValue: string, dataType: string): string | null; |
| 144 | + getNormalizedAndHashedPII(piiValue: string, dataType: PiiDataType | string): string | null; |
126 | 145 |
|
127 | 146 | // Internal used privat methods |
128 | 147 | private _buildParamConfigs(existing_payload: string, query: string, prefix: string, value: string): string; |
|
0 commit comments