@vonage/number-insights
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -1,2 +0,5 @@ | ||
export var CallerType; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CallerType = void 0; | ||
var CallerType; | ||
(function (CallerType) { | ||
@@ -6,3 +9,3 @@ CallerType["UNKNOWN"] = "unknown"; | ||
CallerType["CONSUMER"] = "consumer,"; | ||
})(CallerType || (CallerType = {})); | ||
})(CallerType = exports.CallerType || (exports.CallerType = {})); | ||
//# sourceMappingURL=CallerType.js.map |
@@ -1,2 +0,5 @@ | ||
export var LookupOutcome; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LookupOutcome = void 0; | ||
var LookupOutcome; | ||
(function (LookupOutcome) { | ||
@@ -6,3 +9,3 @@ LookupOutcome[LookupOutcome["SUCCESS"] = 0] = "SUCCESS"; | ||
LookupOutcome[LookupOutcome["FAILED"] = 2] = "FAILED"; | ||
})(LookupOutcome || (LookupOutcome = {})); | ||
})(LookupOutcome = exports.LookupOutcome || (exports.LookupOutcome = {})); | ||
//# sourceMappingURL=LookupOutcome.js.map |
@@ -1,2 +0,5 @@ | ||
export var NetworkType; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NetworkType = void 0; | ||
var NetworkType; | ||
(function (NetworkType) { | ||
@@ -10,3 +13,3 @@ NetworkType["MOBILE"] = "mobile"; | ||
NetworkType["PAGER"] = "pager"; | ||
})(NetworkType || (NetworkType = {})); | ||
})(NetworkType = exports.NetworkType || (exports.NetworkType = {})); | ||
//# sourceMappingURL=NetworkType.js.map |
@@ -1,2 +0,5 @@ | ||
export var Reachable; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Reachable = void 0; | ||
var Reachable; | ||
(function (Reachable) { | ||
@@ -9,3 +12,3 @@ Reachable["UNKNOWN"] = "unknown"; | ||
Reachable["BLACKLISTED"] = "blacklisted"; | ||
})(Reachable || (Reachable = {})); | ||
})(Reachable = exports.Reachable || (exports.Reachable = {})); | ||
//# sourceMappingURL=Reachable.js.map |
@@ -1,2 +0,5 @@ | ||
export var ValidNumber; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ValidNumber = void 0; | ||
var ValidNumber; | ||
(function (ValidNumber) { | ||
@@ -8,3 +11,3 @@ ValidNumber["UNKNOWN"] = "unknown"; | ||
ValidNumber["INFERRED_NOT_VALID"] = "inferred_not_valid"; | ||
})(ValidNumber || (ValidNumber = {})); | ||
})(ValidNumber = exports.ValidNumber || (exports.ValidNumber = {})); | ||
//# sourceMappingURL=ValidNumber.js.map |
@@ -1,2 +0,6 @@ | ||
export { NumberInsights } from './number-insights'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NumberInsights = void 0; | ||
var number_insights_1 = require("./number-insights"); | ||
Object.defineProperty(exports, "NumberInsights", { enumerable: true, get: function () { return number_insights_1.NumberInsights; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=AdvancedLookupOptions.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=AsyncAdvancedLookupOptions.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=BasicLookupOptions.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=NumberInsightsResponse.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=AdvancedResponse.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=AsyncAdvancedResponse.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=BasicResponse.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=StandardResponse.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=StandardLookupOptions.js.map |
@@ -1,24 +0,37 @@ | ||
import { Client } from '@vonage/server-client'; | ||
export class NumberInsights extends Client { | ||
async advancedLookup(phoneNumber, options) { | ||
const params = { number: phoneNumber, ...options }; | ||
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/advanced/json`, params); | ||
return resp.data; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NumberInsights = void 0; | ||
const tslib_1 = require("tslib"); | ||
const server_client_1 = require("@vonage/server-client"); | ||
class NumberInsights extends server_client_1.Client { | ||
advancedLookup(phoneNumber, options) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const params = Object.assign({ number: phoneNumber }, options); | ||
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/advanced/json`, params); | ||
return resp.data; | ||
}); | ||
} | ||
async asyncAdvancedLookup(phoneNumber, callback, options) { | ||
const params = { number: phoneNumber, callback, ...options }; | ||
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/advanced/async/json`, params); | ||
return resp.data; | ||
asyncAdvancedLookup(phoneNumber, callback, options) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const params = Object.assign({ number: phoneNumber, callback }, options); | ||
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/advanced/async/json`, params); | ||
return resp.data; | ||
}); | ||
} | ||
async basicLookup(phoneNumber, options) { | ||
const params = { number: phoneNumber, ...options }; | ||
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/basic/json`, params); | ||
return resp.data; | ||
basicLookup(phoneNumber, options) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const params = Object.assign({ number: phoneNumber }, options); | ||
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/basic/json`, params); | ||
return resp.data; | ||
}); | ||
} | ||
async standardLookup(phoneNumber, options) { | ||
const params = { number: phoneNumber, ...options }; | ||
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/standard/json`, params); | ||
return resp.data; | ||
standardLookup(phoneNumber, options) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const params = Object.assign({ number: phoneNumber }, options); | ||
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/standard/json`, params); | ||
return resp.data; | ||
}); | ||
} | ||
} | ||
exports.NumberInsights = NumberInsights; | ||
//# sourceMappingURL=number-insights.js.map |
@@ -1,2 +0,3 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=NumberInsightsClassParameters.js.map |
{ | ||
"name": "@vonage/number-insights", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Vonage Number Insights API", | ||
@@ -30,5 +30,6 @@ "homepage": "https://developer.vonage.com", | ||
"dependencies": { | ||
"@vonage/auth": "^1.0.4", | ||
"@vonage/server-client": "^1.0.7", | ||
"@vonage/vetch": "^1.0.5" | ||
"@vonage/auth": "^1.0.5", | ||
"@vonage/server-client": "^1.0.8", | ||
"@vonage/vetch": "^1.0.6", | ||
"tslib": "^2.4.1" | ||
}, | ||
@@ -35,0 +36,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19714
257
4
+ Addedtslib@^2.4.1
+ Addedtslib@2.7.0(transitive)
Updated@vonage/auth@^1.0.5
Updated@vonage/server-client@^1.0.8
Updated@vonage/vetch@^1.0.6