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.
@@ -62,6 +62,11 @@ class DymoAPI {
62
62
  deny: [
63
63
  "FRAUD", "INVALID", "NO_MX_RECORDS", "NO_REPLY_EMAIL"
64
64
  ]
65
+ },
66
+ sensitiveInfo: {
67
+ deny: [
68
+ "EMAIL", "PHONE", "CREDIT_CARD"
69
+ ]
65
70
  }
66
71
  } } = {}) {
67
72
  this.rootApiKey = rootApiKey;
@@ -27,6 +27,11 @@ class DymoAPI {
27
27
  deny: [
28
28
  "FRAUD", "INVALID", "NO_MX_RECORDS", "NO_REPLY_EMAIL"
29
29
  ]
30
+ },
31
+ sensitiveInfo: {
32
+ deny: [
33
+ "EMAIL", "PHONE", "CREDIT_CARD"
34
+ ]
30
35
  }
31
36
  } } = {}) {
32
37
  this.rootApiKey = rootApiKey;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.2.02",
3
+ "version": "1.2.03",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",