/* 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'; /** * Computed signals for an email intelligence result. * @export * @interface EmailIntelligenceSignalsDto */ export interface EmailIntelligenceSignalsDto { /** * * @type {string} * @memberof EmailIntelligenceSignalsDto */ normalizedTarget: string; /** * * @type {string} * @memberof EmailIntelligenceSignalsDto */ emailAddress?: string | null; /** * * @type {string} * @memberof EmailIntelligenceSignalsDto */ domain: string; /** * * @type {string} * @memberof EmailIntelligenceSignalsDto */ localPart?: string | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ randomLocalPart?: boolean | null; /** * * @type {number} * @memberof EmailIntelligenceSignalsDto */ localPartEntropy?: number | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ freeEmailProvider?: boolean | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ hasHttpsWebsite?: boolean | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ dnsARecordPresent?: boolean | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ dnsMxRecordPresent?: boolean | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ soaRecordPresent?: boolean | null; /** * * @type {number} * @memberof EmailIntelligenceSignalsDto */ domainAgeHintDays?: number | null; /** * * @type {boolean} * @memberof EmailIntelligenceSignalsDto */ neverBounceSafeToSend?: boolean | null; /** * * @type {Array} * @memberof EmailIntelligenceSignalsDto */ notes: Array; } export function EmailIntelligenceSignalsDtoFromJSON( json: any ): EmailIntelligenceSignalsDto { return EmailIntelligenceSignalsDtoFromJSONTyped(json, false); } export function EmailIntelligenceSignalsDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): EmailIntelligenceSignalsDto { if (json === undefined || json === null) { return json; } return { normalizedTarget: json['normalizedTarget'], emailAddress: !exists(json, 'emailAddress') ? undefined : json['emailAddress'], domain: json['domain'], localPart: !exists(json, 'localPart') ? undefined : json['localPart'], randomLocalPart: !exists(json, 'randomLocalPart') ? undefined : json['randomLocalPart'], localPartEntropy: !exists(json, 'localPartEntropy') ? undefined : json['localPartEntropy'], freeEmailProvider: !exists(json, 'freeEmailProvider') ? undefined : json['freeEmailProvider'], hasHttpsWebsite: !exists(json, 'hasHttpsWebsite') ? undefined : json['hasHttpsWebsite'], dnsARecordPresent: !exists(json, 'dnsARecordPresent') ? undefined : json['dnsARecordPresent'], dnsMxRecordPresent: !exists(json, 'dnsMxRecordPresent') ? undefined : json['dnsMxRecordPresent'], soaRecordPresent: !exists(json, 'soaRecordPresent') ? undefined : json['soaRecordPresent'], domainAgeHintDays: !exists(json, 'domainAgeHintDays') ? undefined : json['domainAgeHintDays'], neverBounceSafeToSend: !exists(json, 'neverBounceSafeToSend') ? undefined : json['neverBounceSafeToSend'], notes: json['notes'], }; } export function EmailIntelligenceSignalsDtoToJSON( value?: EmailIntelligenceSignalsDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { normalizedTarget: value.normalizedTarget, emailAddress: value.emailAddress, domain: value.domain, localPart: value.localPart, randomLocalPart: value.randomLocalPart, localPartEntropy: value.localPartEntropy, freeEmailProvider: value.freeEmailProvider, hasHttpsWebsite: value.hasHttpsWebsite, dnsARecordPresent: value.dnsARecordPresent, dnsMxRecordPresent: value.dnsMxRecordPresent, soaRecordPresent: value.soaRecordPresent, domainAgeHintDays: value.domainAgeHintDays, neverBounceSafeToSend: value.neverBounceSafeToSend, notes: value.notes, }; }