dymo-api 1.0.94 → 1.0.96

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.
@@ -33,9 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ const config_1 = __importStar(require("./config/index.cjs"));
36
37
  const PublicAPI = __importStar(require("./branches/public.cjs"));
37
38
  const PrivateAPI = __importStar(require("./branches/private.cjs"));
38
- const config_1 = __importStar(require("./config/index.cjs"));
39
39
  const customError = (code, message) => {
40
40
  return Object.assign(new Error(), { code, message: `[${config_1.default.lib.name}] ${message}` });
41
41
  };
@@ -1,6 +1,6 @@
1
+ import config, { setBaseUrl } from "./config/index.js";
1
2
  import * as PublicAPI from "./branches/public.js";
2
3
  import * as PrivateAPI from "./branches/private.js";
3
- import config, { setBaseUrl } from "./config/index.js";
4
4
  const customError = (code, message) => {
5
5
  return Object.assign(new Error(), { code, message: `[${config.lib.name}] ${message}` });
6
6
  };
@@ -192,6 +192,13 @@ export interface DataValidationAnalysis {
192
192
  phone: string;
193
193
  prefix: string;
194
194
  number: string;
195
+ carrierInfo: {
196
+ carrierName: string;
197
+ accuracy: number;
198
+ carrierType: "PREMIUM_RATE" | "TOLL_FREE" | "SHARED_COST" | "VOIP" | "PERSONAL_NUMBER" | "PAGER" | "UAN" | "VOICEMAIL" | "FIXED_LINE_OR_MOBILE" | "FIXED_LINE" | "MOBILE" | "Unknown";
199
+ carrierCountry: string;
200
+ carrierCountryCode: string;
201
+ };
195
202
  country: string;
196
203
  countryCode: string;
197
204
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const axios_1 = __importDefault(require("axios"));
7
- const dymoClient = axios_1.default.create({
8
- baseURL: 'https://api.tpeoficial.com/v1',
9
- headers: {
10
- 'User-Agent': 'DymoAPISDK',
11
- 'Content-Type': 'application/json'
12
- }
13
- });
14
- exports.default = dymoClient;
@@ -1,9 +0,0 @@
1
- import axios from 'axios';
2
- const dymoClient = axios.create({
3
- baseURL: 'https://api.tpeoficial.com/v1',
4
- headers: {
5
- 'User-Agent': 'DymoAPISDK',
6
- 'Content-Type': 'application/json'
7
- }
8
- });
9
- export default dymoClient;
@@ -1,2 +0,0 @@
1
- declare const dymoClient: import("axios").AxiosInstance;
2
- export default dymoClient;