/* 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'; /** * One-shot public campaign probe preflight results * @export * @interface CheckCampaignProbeResults */ export interface CheckCampaignProbeResults { /** * * @type {string} * @memberof CheckCampaignProbeResults */ status: CheckCampaignProbeResultsStatusEnum; /** * * @type {number} * @memberof CheckCampaignProbeResults */ healthScore: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ totalChecks: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ passingChecks: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ failingChecks: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ checkedLinks: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ checkedImages: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ linkIssueCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ imageIssueCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ compatibilityWarningCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ compatibilityNotSupportedCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ compatibilityUnknownCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ htmlErrorCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ htmlWarningCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ htmlInfoCount: number; /** * * @type {number} * @memberof CheckCampaignProbeResults */ attachmentMentionIssueCount: number; /** * * @type {Array} * @memberof CheckCampaignProbeResults */ insights: Array; /** * * @type {string} * @memberof CheckCampaignProbeResults */ errorMessage?: string | null; } /** * @export * @enum {string} */ export enum CheckCampaignProbeResultsStatusEnum { HEALTHY = 'HEALTHY', WARNING = 'WARNING', FAILED = 'FAILED', } export function CheckCampaignProbeResultsFromJSON( json: any ): CheckCampaignProbeResults { return CheckCampaignProbeResultsFromJSONTyped(json, false); } export function CheckCampaignProbeResultsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): CheckCampaignProbeResults { if (json === undefined || json === null) { return json; } return { status: json['status'], healthScore: json['healthScore'], totalChecks: json['totalChecks'], passingChecks: json['passingChecks'], failingChecks: json['failingChecks'], checkedLinks: json['checkedLinks'], checkedImages: json['checkedImages'], linkIssueCount: json['linkIssueCount'], imageIssueCount: json['imageIssueCount'], compatibilityWarningCount: json['compatibilityWarningCount'], compatibilityNotSupportedCount: json['compatibilityNotSupportedCount'], compatibilityUnknownCount: json['compatibilityUnknownCount'], htmlErrorCount: json['htmlErrorCount'], htmlWarningCount: json['htmlWarningCount'], htmlInfoCount: json['htmlInfoCount'], attachmentMentionIssueCount: json['attachmentMentionIssueCount'], insights: json['insights'], errorMessage: !exists(json, 'errorMessage') ? undefined : json['errorMessage'], }; } export function CheckCampaignProbeResultsToJSON( value?: CheckCampaignProbeResults | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { status: value.status, healthScore: value.healthScore, totalChecks: value.totalChecks, passingChecks: value.passingChecks, failingChecks: value.failingChecks, checkedLinks: value.checkedLinks, checkedImages: value.checkedImages, linkIssueCount: value.linkIssueCount, imageIssueCount: value.imageIssueCount, compatibilityWarningCount: value.compatibilityWarningCount, compatibilityNotSupportedCount: value.compatibilityNotSupportedCount, compatibilityUnknownCount: value.compatibilityUnknownCount, htmlErrorCount: value.htmlErrorCount, htmlWarningCount: value.htmlWarningCount, htmlInfoCount: value.htmlInfoCount, attachmentMentionIssueCount: value.attachmentMentionIssueCount, insights: value.insights, errorMessage: value.errorMessage, }; }