/* 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'; /** * Domain-monitor style sender-domain summary for an inbox placement run * @export * @interface InboxPlacementDomainMonitorSummaryDto */ export interface InboxPlacementDomainMonitorSummaryDto { /** * Sender-domain monitor state derived while analyzing an inbox placement run * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ state: InboxPlacementDomainMonitorSummaryDtoStateEnum; /** * * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ domain?: string | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ providerManaged: boolean; /** * Source for an inbox-placement domain monitor summary * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ source: InboxPlacementDomainMonitorSummaryDtoSourceEnum; /** * * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ status?: InboxPlacementDomainMonitorSummaryDtoStatusEnum; /** * * @type {number} * @memberof InboxPlacementDomainMonitorSummaryDto */ healthScore?: number | null; /** * * @type {number} * @memberof InboxPlacementDomainMonitorSummaryDto */ totalChecks?: number | null; /** * * @type {number} * @memberof InboxPlacementDomainMonitorSummaryDto */ passingChecks?: number | null; /** * * @type {number} * @memberof InboxPlacementDomainMonitorSummaryDto */ failingChecks?: number | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ spfOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ dmarcOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ dmarcEnforced?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ mxOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ dkimOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ bimiOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ mtaStsOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ tlsReportingOk?: boolean | null; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ blacklistChecked: boolean; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ blacklistOk: boolean; /** * * @type {boolean} * @memberof InboxPlacementDomainMonitorSummaryDto */ blacklistListed: boolean; /** * * @type {Array} * @memberof InboxPlacementDomainMonitorSummaryDto */ insights: Array; /** * * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ errorMessage?: string | null; /** * * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ monitorId?: string | null; /** * * @type {string} * @memberof InboxPlacementDomainMonitorSummaryDto */ runId?: string | null; /** * * @type {Date} * @memberof InboxPlacementDomainMonitorSummaryDto */ checkedAt?: Date | null; } /** * @export * @enum {string} */ export enum InboxPlacementDomainMonitorSummaryDtoStateEnum { UNKNOWN = 'UNKNOWN', QUICK_CHECK_READY = 'QUICK_CHECK_READY', PROVIDER_MANAGED = 'PROVIDER_MANAGED', ERROR = 'ERROR', } /** * @export * @enum {string} */ export enum InboxPlacementDomainMonitorSummaryDtoSourceEnum { NONE = 'NONE', QUICK_CHECK = 'QUICK_CHECK', PERSISTENT_MONITOR = 'PERSISTENT_MONITOR', } /** * @export * @enum {string} */ export enum InboxPlacementDomainMonitorSummaryDtoStatusEnum { HEALTHY = 'HEALTHY', DEGRADED = 'DEGRADED', CRITICAL = 'CRITICAL', FAILED = 'FAILED', } export function InboxPlacementDomainMonitorSummaryDtoFromJSON( json: any ): InboxPlacementDomainMonitorSummaryDto { return InboxPlacementDomainMonitorSummaryDtoFromJSONTyped(json, false); } export function InboxPlacementDomainMonitorSummaryDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): InboxPlacementDomainMonitorSummaryDto { if (json === undefined || json === null) { return json; } return { state: json['state'], domain: !exists(json, 'domain') ? undefined : json['domain'], providerManaged: json['providerManaged'], source: json['source'], status: !exists(json, 'status') ? undefined : json['status'], healthScore: !exists(json, 'healthScore') ? undefined : json['healthScore'], totalChecks: !exists(json, 'totalChecks') ? undefined : json['totalChecks'], passingChecks: !exists(json, 'passingChecks') ? undefined : json['passingChecks'], failingChecks: !exists(json, 'failingChecks') ? undefined : json['failingChecks'], spfOk: !exists(json, 'spfOk') ? undefined : json['spfOk'], dmarcOk: !exists(json, 'dmarcOk') ? undefined : json['dmarcOk'], dmarcEnforced: !exists(json, 'dmarcEnforced') ? undefined : json['dmarcEnforced'], mxOk: !exists(json, 'mxOk') ? undefined : json['mxOk'], dkimOk: !exists(json, 'dkimOk') ? undefined : json['dkimOk'], bimiOk: !exists(json, 'bimiOk') ? undefined : json['bimiOk'], mtaStsOk: !exists(json, 'mtaStsOk') ? undefined : json['mtaStsOk'], tlsReportingOk: !exists(json, 'tlsReportingOk') ? undefined : json['tlsReportingOk'], blacklistChecked: json['blacklistChecked'], blacklistOk: json['blacklistOk'], blacklistListed: json['blacklistListed'], insights: json['insights'], errorMessage: !exists(json, 'errorMessage') ? undefined : json['errorMessage'], monitorId: !exists(json, 'monitorId') ? undefined : json['monitorId'], runId: !exists(json, 'runId') ? undefined : json['runId'], checkedAt: !exists(json, 'checkedAt') ? undefined : json['checkedAt'] === null ? null : new Date(json['checkedAt']), }; } export function InboxPlacementDomainMonitorSummaryDtoToJSON( value?: InboxPlacementDomainMonitorSummaryDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { state: value.state, domain: value.domain, providerManaged: value.providerManaged, source: value.source, status: value.status, healthScore: value.healthScore, totalChecks: value.totalChecks, passingChecks: value.passingChecks, failingChecks: value.failingChecks, spfOk: value.spfOk, dmarcOk: value.dmarcOk, dmarcEnforced: value.dmarcEnforced, mxOk: value.mxOk, dkimOk: value.dkimOk, bimiOk: value.bimiOk, mtaStsOk: value.mtaStsOk, tlsReportingOk: value.tlsReportingOk, blacklistChecked: value.blacklistChecked, blacklistOk: value.blacklistOk, blacklistListed: value.blacklistListed, insights: value.insights, errorMessage: value.errorMessage, monitorId: value.monitorId, runId: value.runId, checkedAt: value.checkedAt === undefined ? undefined : value.checkedAt === null ? null : value.checkedAt.toISOString(), }; }