dymo-api 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/dymo-api.cjs
CHANGED
package/dist/esm/dymo-api.js
CHANGED
|
@@ -26,12 +26,21 @@ export type NegativeEmailRules = "FRAUD" | "INVALID" | "NO_MX_RECORDS" | "PROXIE
|
|
|
26
26
|
export interface EmailValidatorRules {
|
|
27
27
|
deny: NegativeEmailRules[];
|
|
28
28
|
}
|
|
29
|
+
export type NegativeSensitiveInfoRules = "EMAIL" | "PHONE" | "CREDIT_CARD" | "URL" | "DOMAIN" | "IP" | "WALLET" | "USER_AGENT";
|
|
30
|
+
export interface SensitiveInfoRules {
|
|
31
|
+
deny: NegativeSensitiveInfoRules[];
|
|
32
|
+
}
|
|
29
33
|
export type EmailValidatorResponse = {
|
|
30
34
|
email: string;
|
|
31
35
|
allow: boolean;
|
|
32
36
|
reasons: NegativeEmailRules[];
|
|
33
37
|
response: DataEmailValidationAnalysis;
|
|
34
38
|
};
|
|
39
|
+
export type SensitiveInfoResponse = {
|
|
40
|
+
input: string;
|
|
41
|
+
allow: boolean;
|
|
42
|
+
reasons: NegativeSensitiveInfoRules[];
|
|
43
|
+
};
|
|
35
44
|
interface DataEmailValidationAnalysis {
|
|
36
45
|
valid: boolean;
|
|
37
46
|
fraud: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { NegativeEmailRules } from "./data-verifier";
|
|
1
|
+
import { NegativeEmailRules, NegativeSensitiveInfoRules } from "./data-verifier";
|
|
2
2
|
export interface Rules {
|
|
3
3
|
email: {
|
|
4
4
|
deny: NegativeEmailRules[];
|
|
5
5
|
};
|
|
6
|
+
sensitiveInfo: {
|
|
7
|
+
deny: NegativeSensitiveInfoRules[];
|
|
8
|
+
};
|
|
6
9
|
}
|