neverbounce
Version:
An API wrapper for the NeverBounce API
51 lines (50 loc) • 1.81 kB
JavaScript
;
/**
* Common type definitions for the NeverBounce API
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorType = exports.JobStatus = exports.JobInputType = exports.VerificationResult = void 0;
/**
* Verification Result Codes
*/
var VerificationResult;
(function (VerificationResult) {
VerificationResult[VerificationResult["Valid"] = 0] = "Valid";
VerificationResult[VerificationResult["Invalid"] = 1] = "Invalid";
VerificationResult[VerificationResult["Disposable"] = 2] = "Disposable";
VerificationResult[VerificationResult["Catchall"] = 3] = "Catchall";
VerificationResult[VerificationResult["Unknown"] = 4] = "Unknown";
})(VerificationResult || (exports.VerificationResult = VerificationResult = {}));
/**
* Job Input Types
*/
var JobInputType;
(function (JobInputType) {
JobInputType["RemoteUrl"] = "remote_url";
JobInputType["Supplied"] = "supplied";
})(JobInputType || (exports.JobInputType = JobInputType = {}));
/**
* Job Status Types
*/
var JobStatus;
(function (JobStatus) {
JobStatus["UnderReview"] = "under_review";
JobStatus["Queued"] = "queued";
JobStatus["Failed"] = "failed";
JobStatus["Complete"] = "complete";
JobStatus["Running"] = "running";
JobStatus["Parsing"] = "parsing";
JobStatus["Waiting"] = "waiting";
JobStatus["WaitingAnalyzed"] = "waiting_analyzed";
JobStatus["Uploading"] = "uploading";
})(JobStatus || (exports.JobStatus = JobStatus = {}));
/**
* Error Types
*/
var ErrorType;
(function (ErrorType) {
ErrorType["AuthError"] = "auth_failure";
ErrorType["BadReferrerError"] = "bad_referrer";
ErrorType["GeneralError"] = "general_failure";
ErrorType["ThrottleError"] = "throttle_triggered";
})(ErrorType || (exports.ErrorType = ErrorType = {}));