/* 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 { DeliverabilityExpectationResultDto, DeliverabilityExpectationResultDtoFromJSON, DeliverabilityExpectationResultDtoFromJSONTyped, DeliverabilityExpectationResultDtoToJSON, } from './'; /** * Entity-level deliverability result * @export * @interface DeliverabilityEntityResultDto */ export interface DeliverabilityEntityResultDto { /** * * @type {string} * @memberof DeliverabilityEntityResultDto */ entityId: string; /** * * @type {string} * @memberof DeliverabilityEntityResultDto */ entityLabel: string; /** * * @type {boolean} * @memberof DeliverabilityEntityResultDto */ matched: boolean; /** * * @type {number} * @memberof DeliverabilityEntityResultDto */ matchedExpectationCount: number; /** * * @type {number} * @memberof DeliverabilityEntityResultDto */ totalExpectationCount: number; /** * * @type {string} * @memberof DeliverabilityEntityResultDto */ phoneCountry?: DeliverabilityEntityResultDtoPhoneCountryEnum; /** * * @type {string} * @memberof DeliverabilityEntityResultDto */ phoneVariant?: DeliverabilityEntityResultDtoPhoneVariantEnum; /** * * @type {Date} * @memberof DeliverabilityEntityResultDto */ evaluatedAt?: Date | null; /** * * @type {Array} * @memberof DeliverabilityEntityResultDto */ expectationResults: Array; } /** * @export * @enum {string} */ export enum DeliverabilityEntityResultDtoPhoneCountryEnum { US = 'US', GB = 'GB', AU = 'AU', CA = 'CA', EE = 'EE', HK = 'HK', PL = 'PL', PT = 'PT', NL = 'NL', IL = 'IL', FI = 'FI', SE = 'SE', } /** * @export * @enum {string} */ export enum DeliverabilityEntityResultDtoPhoneVariantEnum { LOCAL = 'LOCAL', MOBILE = 'MOBILE', TOLL_FREE = 'TOLL_FREE', } export function DeliverabilityEntityResultDtoFromJSON( json: any ): DeliverabilityEntityResultDto { return DeliverabilityEntityResultDtoFromJSONTyped(json, false); } export function DeliverabilityEntityResultDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DeliverabilityEntityResultDto { if (json === undefined || json === null) { return json; } return { entityId: json['entityId'], entityLabel: json['entityLabel'], matched: json['matched'], matchedExpectationCount: json['matchedExpectationCount'], totalExpectationCount: json['totalExpectationCount'], phoneCountry: !exists(json, 'phoneCountry') ? undefined : json['phoneCountry'], phoneVariant: !exists(json, 'phoneVariant') ? undefined : json['phoneVariant'], evaluatedAt: !exists(json, 'evaluatedAt') ? undefined : json['evaluatedAt'] === null ? null : new Date(json['evaluatedAt']), expectationResults: (json['expectationResults'] as Array).map( DeliverabilityExpectationResultDtoFromJSON ), }; } export function DeliverabilityEntityResultDtoToJSON( value?: DeliverabilityEntityResultDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { entityId: value.entityId, entityLabel: value.entityLabel, matched: value.matched, matchedExpectationCount: value.matchedExpectationCount, totalExpectationCount: value.totalExpectationCount, phoneCountry: value.phoneCountry, phoneVariant: value.phoneVariant, evaluatedAt: value.evaluatedAt === undefined ? undefined : value.evaluatedAt === null ? null : value.evaluatedAt.toISOString(), expectationResults: (value.expectationResults as Array).map( DeliverabilityExpectationResultDtoToJSON ), }; }