dymo-api 1.2.8 → 1.2.9

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.
@@ -17,7 +17,7 @@ const basics_1 = require("../../../../utils/basics.cjs");
17
17
  const isValidData = async (axiosClient, data) => {
18
18
  if (!axiosClient.defaults.headers?.Authorization)
19
19
  throw (0, basics_1.customError)(3000, "Invalid private token.");
20
- if (!Object.keys(data).some((key) => ["url", "email", "phone", "domain", "creditCard", "ip", "wallet", "userAgent"].includes(key) && data.hasOwnProperty(key)))
20
+ if (!Object.keys(data).some((key) => ["url", "email", "phone", "domain", "creditCard", "ip", "wallet", "userAgent", "iban"].includes(key) && data.hasOwnProperty(key)))
21
21
  throw (0, basics_1.customError)(1500, "You must provide at least one parameter.");
22
22
  try {
23
23
  const response = await axiosClient.post("/private/secure/verify", data, { headers: { "Content-Type": "application/json" } });
@@ -14,7 +14,7 @@ import { customError } from "../../../../utils/basics.js";
14
14
  export const isValidData = async (axiosClient, data) => {
15
15
  if (!axiosClient.defaults.headers?.Authorization)
16
16
  throw customError(3000, "Invalid private token.");
17
- if (!Object.keys(data).some((key) => ["url", "email", "phone", "domain", "creditCard", "ip", "wallet", "userAgent"].includes(key) && data.hasOwnProperty(key)))
17
+ if (!Object.keys(data).some((key) => ["url", "email", "phone", "domain", "creditCard", "ip", "wallet", "userAgent", "iban"].includes(key) && data.hasOwnProperty(key)))
18
18
  throw customError(1500, "You must provide at least one parameter.");
19
19
  try {
20
20
  const response = await axiosClient.post("/private/secure/verify", data, { headers: { "Content-Type": "application/json" } });
@@ -12,6 +12,7 @@ export interface Validator {
12
12
  ip?: string;
13
13
  wallet?: string;
14
14
  userAgent?: string;
15
+ iban?: string;
15
16
  plugins?: VerifyPlugins[];
16
17
  }
17
18
  export type EmailValidator = Email;
@@ -193,5 +194,21 @@ export interface DataValidationAnalysis {
193
194
  riskScore?: number;
194
195
  };
195
196
  };
197
+ iban: {
198
+ valid: boolean;
199
+ fraud?: boolean;
200
+ iban?: string;
201
+ bban?: string;
202
+ bic?: string | "unknown";
203
+ country?: string;
204
+ countryCode?: string;
205
+ accountNumber?: string;
206
+ branchIdentifier?: string;
207
+ bankIdentifier?: string;
208
+ plugins?: {
209
+ blocklist?: boolean;
210
+ riskScore?: number;
211
+ };
212
+ };
196
213
  }
197
214
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",