/* 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 { DmarcReportMetadata, DmarcReportMetadataFromJSON, DmarcReportMetadataFromJSONTyped, DmarcReportMetadataToJSON, DmarcReportSourceSummary, DmarcReportSourceSummaryFromJSON, DmarcReportSourceSummaryFromJSONTyped, DmarcReportSourceSummaryToJSON, } from './'; /** * Aggregate analysis results for an uploaded DMARC XML report * @export * @interface AnalyzeDmarcReportResults */ export interface AnalyzeDmarcReportResults { /** * * @type {DmarcReportMetadata} * @memberof AnalyzeDmarcReportResults */ metadata: DmarcReportMetadata; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ recordCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ totalMessages: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ rejectCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ quarantineCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ noneCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ dkimAlignedCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ spfAlignedCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ fullyAlignedCount: number; /** * * @type {number} * @memberof AnalyzeDmarcReportResults */ failedAlignmentCount: number; /** * * @type {Array} * @memberof AnalyzeDmarcReportResults */ topSources: Array; /** * * @type {Array} * @memberof AnalyzeDmarcReportResults */ warnings: Array; /** * * @type {Array} * @memberof AnalyzeDmarcReportResults */ errors: Array; } export function AnalyzeDmarcReportResultsFromJSON( json: any ): AnalyzeDmarcReportResults { return AnalyzeDmarcReportResultsFromJSONTyped(json, false); } export function AnalyzeDmarcReportResultsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): AnalyzeDmarcReportResults { if (json === undefined || json === null) { return json; } return { metadata: DmarcReportMetadataFromJSON(json['metadata']), recordCount: json['recordCount'], totalMessages: json['totalMessages'], rejectCount: json['rejectCount'], quarantineCount: json['quarantineCount'], noneCount: json['noneCount'], dkimAlignedCount: json['dkimAlignedCount'], spfAlignedCount: json['spfAlignedCount'], fullyAlignedCount: json['fullyAlignedCount'], failedAlignmentCount: json['failedAlignmentCount'], topSources: (json['topSources'] as Array).map( DmarcReportSourceSummaryFromJSON ), warnings: json['warnings'], errors: json['errors'], }; } export function AnalyzeDmarcReportResultsToJSON( value?: AnalyzeDmarcReportResults | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { metadata: DmarcReportMetadataToJSON(value.metadata), recordCount: value.recordCount, totalMessages: value.totalMessages, rejectCount: value.rejectCount, quarantineCount: value.quarantineCount, noneCount: value.noneCount, dkimAlignedCount: value.dkimAlignedCount, spfAlignedCount: value.spfAlignedCount, fullyAlignedCount: value.fullyAlignedCount, failedAlignmentCount: value.failedAlignmentCount, topSources: (value.topSources as Array).map( DmarcReportSourceSummaryToJSON ), warnings: value.warnings, errors: value.errors, }; }