/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { CheckEmailBlacklistResults, CheckEmailBlacklistResultsFromJSON, CheckEmailBlacklistResultsFromJSONTyped, CheckEmailBlacklistResultsToJSON, } from './'; /** * Reputation-oriented result for an email identity or sending domain. * @export * @interface EmailDomainReputationResult */ export interface EmailDomainReputationResult { /** * * @type {string} * @memberof EmailDomainReputationResult */ input: string; /** * * @type {string} * @memberof EmailDomainReputationResult */ normalizedTarget: string; /** * * @type {string} * @memberof EmailDomainReputationResult */ emailAddress?: string | null; /** * * @type {string} * @memberof EmailDomainReputationResult */ domain?: string | null; /** * * @type {string} * @memberof EmailDomainReputationResult */ ipAddress?: string | null; /** * * @type {string} * @memberof EmailDomainReputationResult */ mxHost?: string | null; /** * * @type {string} * @memberof EmailDomainReputationResult */ status: EmailDomainReputationResultStatusEnum; /** * * @type {boolean} * @memberof EmailDomainReputationResult */ listed: boolean; /** * * @type {CheckEmailBlacklistResults} * @memberof EmailDomainReputationResult */ blacklist?: CheckEmailBlacklistResults | null; /** * * @type {Array} * @memberof EmailDomainReputationResult */ insights: Array; /** * * @type {Array} * @memberof EmailDomainReputationResult */ warnings: Array; /** * * @type {Array} * @memberof EmailDomainReputationResult */ errors: Array; } /** * @export * @enum {string} */ export enum EmailDomainReputationResultStatusEnum { HEALTHY = 'HEALTHY', DEGRADED = 'DEGRADED', CRITICAL = 'CRITICAL', FAILED = 'FAILED', } export function EmailDomainReputationResultFromJSON( json: any ): EmailDomainReputationResult { return EmailDomainReputationResultFromJSONTyped(json, false); } export function EmailDomainReputationResultFromJSONTyped( json: any, ignoreDiscriminator: boolean ): EmailDomainReputationResult { if (json === undefined || json === null) { return json; } return { input: json['input'], normalizedTarget: json['normalizedTarget'], emailAddress: !exists(json, 'emailAddress') ? undefined : json['emailAddress'], domain: !exists(json, 'domain') ? undefined : json['domain'], ipAddress: !exists(json, 'ipAddress') ? undefined : json['ipAddress'], mxHost: !exists(json, 'mxHost') ? undefined : json['mxHost'], status: json['status'], listed: json['listed'], blacklist: !exists(json, 'blacklist') ? undefined : CheckEmailBlacklistResultsFromJSON(json['blacklist']), insights: json['insights'], warnings: json['warnings'], errors: json['errors'], }; } export function EmailDomainReputationResultToJSON( value?: EmailDomainReputationResult | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { input: value.input, normalizedTarget: value.normalizedTarget, emailAddress: value.emailAddress, domain: value.domain, ipAddress: value.ipAddress, mxHost: value.mxHost, status: value.status, listed: value.listed, blacklist: CheckEmailBlacklistResultsToJSON(value.blacklist), insights: value.insights, warnings: value.warnings, errors: value.errors, }; }