/* 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'; /** * * @export * @interface DomainMonitorRunDto */ export interface DomainMonitorRunDto { /** * * @type {string} * @memberof DomainMonitorRunDto */ id: string; /** * * @type {string} * @memberof DomainMonitorRunDto */ monitorId: string; /** * * @type {string} * @memberof DomainMonitorRunDto */ userId: string; /** * * @type {string} * @memberof DomainMonitorRunDto */ domain: string; /** * * @type {string} * @memberof DomainMonitorRunDto */ status: DomainMonitorRunDtoStatusEnum; /** * * @type {string} * @memberof DomainMonitorRunDto */ triggerSource: DomainMonitorRunDtoTriggerSourceEnum; /** * * @type {number} * @memberof DomainMonitorRunDto */ healthScore: number; /** * * @type {number} * @memberof DomainMonitorRunDto */ totalChecks: number; /** * * @type {number} * @memberof DomainMonitorRunDto */ passingChecks: number; /** * * @type {number} * @memberof DomainMonitorRunDto */ failingChecks: number; /** * * @type {boolean} * @memberof DomainMonitorRunDto */ spfOk: boolean; /** * * @type {boolean} * @memberof DomainMonitorRunDto */ dmarcOk: boolean; /** * * @type {boolean} * @memberof DomainMonitorRunDto */ dmarcEnforced: boolean; /** * * @type {boolean} * @memberof DomainMonitorRunDto */ mxOk: boolean; /** * * @type {Array} * @memberof DomainMonitorRunDto */ insights: Array; /** * * @type {string} * @memberof DomainMonitorRunDto */ errorMessage?: string; /** * * @type {Date} * @memberof DomainMonitorRunDto */ createdAt: Date; /** * * @type {Date} * @memberof DomainMonitorRunDto */ updatedAt: Date; } /** * @export * @enum {string} */ export enum DomainMonitorRunDtoStatusEnum { HEALTHY = 'HEALTHY', DEGRADED = 'DEGRADED', CRITICAL = 'CRITICAL', FAILED = 'FAILED', } /** * @export * @enum {string} */ export enum DomainMonitorRunDtoTriggerSourceEnum { API = 'API', USER_SCHEDULE = 'USER_SCHEDULE', CRON = 'CRON', SCHEDULER = 'SCHEDULER', } export function DomainMonitorRunDtoFromJSON(json: any): DomainMonitorRunDto { return DomainMonitorRunDtoFromJSONTyped(json, false); } export function DomainMonitorRunDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DomainMonitorRunDto { if (json === undefined || json === null) { return json; } return { id: json['id'], monitorId: json['monitorId'], userId: json['userId'], domain: json['domain'], status: json['status'], triggerSource: json['triggerSource'], healthScore: json['healthScore'], totalChecks: json['totalChecks'], passingChecks: json['passingChecks'], failingChecks: json['failingChecks'], spfOk: json['spfOk'], dmarcOk: json['dmarcOk'], dmarcEnforced: json['dmarcEnforced'], mxOk: json['mxOk'], insights: json['insights'], errorMessage: !exists(json, 'errorMessage') ? undefined : json['errorMessage'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function DomainMonitorRunDtoToJSON( value?: DomainMonitorRunDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, monitorId: value.monitorId, userId: value.userId, domain: value.domain, status: value.status, triggerSource: value.triggerSource, healthScore: value.healthScore, totalChecks: value.totalChecks, passingChecks: value.passingChecks, failingChecks: value.failingChecks, spfOk: value.spfOk, dmarcOk: value.dmarcOk, dmarcEnforced: value.dmarcEnforced, mxOk: value.mxOk, insights: value.insights, errorMessage: value.errorMessage, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }