UNPKG

mailslurp-client

Version:

Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.

326 lines (320 loc) 7.87 kB
/* 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 CampaignProbeRunDto */ export interface CampaignProbeRunDto { /** * * @type {string} * @memberof CampaignProbeRunDto */ id: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ probeId: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ userId: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ status: CampaignProbeRunDtoStatusEnum; /** * * @type {string} * @memberof CampaignProbeRunDto */ source: CampaignProbeRunDtoSourceEnum; /** * * @type {number} * @memberof CampaignProbeRunDto */ healthScore: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ totalChecks: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ passingChecks: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ failingChecks: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ checkedLinks: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ checkedImages: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ linkIssueCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ imageIssueCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ compatibilityWarningCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ compatibilityNotSupportedCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ compatibilityUnknownCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ htmlErrorCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ htmlWarningCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ htmlInfoCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ reputationFailureCount: number; /** * * @type {number} * @memberof CampaignProbeRunDto */ attachmentMentionIssueCount: number; /** * * @type {Array<string>} * @memberof CampaignProbeRunDto */ insights: Array<string>; /** * * @type {string} * @memberof CampaignProbeRunDto */ errorMessage?: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ fromAddress?: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ recipient?: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ subject?: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ messageId?: string; /** * * @type {string} * @memberof CampaignProbeRunDto */ sourceMessageId?: string; /** * * @type {number} * @memberof CampaignProbeRunDto */ processingMs?: number; /** * * @type {Date} * @memberof CampaignProbeRunDto */ createdAt: Date; /** * * @type {Date} * @memberof CampaignProbeRunDto */ updatedAt: Date; } /** * @export * @enum {string} */ export enum CampaignProbeRunDtoStatusEnum { HEALTHY = 'HEALTHY', WARNING = 'WARNING', FAILED = 'FAILED', } /** * @export * @enum {string} */ export enum CampaignProbeRunDtoSourceEnum { DIRECT_API = 'DIRECT_API', SES_MONITOR = 'SES_MONITOR', USER_SCHEDULE = 'USER_SCHEDULE', CRON = 'CRON', SCHEDULER = 'SCHEDULER', } export function CampaignProbeRunDtoFromJSON(json: any): CampaignProbeRunDto { return CampaignProbeRunDtoFromJSONTyped(json, false); } export function CampaignProbeRunDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): CampaignProbeRunDto { if (json === undefined || json === null) { return json; } return { id: json['id'], probeId: json['probeId'], userId: json['userId'], status: json['status'], source: json['source'], 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'], reputationFailureCount: json['reputationFailureCount'], attachmentMentionIssueCount: json['attachmentMentionIssueCount'], insights: json['insights'], errorMessage: !exists(json, 'errorMessage') ? undefined : json['errorMessage'], fromAddress: !exists(json, 'fromAddress') ? undefined : json['fromAddress'], recipient: !exists(json, 'recipient') ? undefined : json['recipient'], subject: !exists(json, 'subject') ? undefined : json['subject'], messageId: !exists(json, 'messageId') ? undefined : json['messageId'], sourceMessageId: !exists(json, 'sourceMessageId') ? undefined : json['sourceMessageId'], processingMs: !exists(json, 'processingMs') ? undefined : json['processingMs'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function CampaignProbeRunDtoToJSON( value?: CampaignProbeRunDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, probeId: value.probeId, userId: value.userId, status: value.status, source: value.source, 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, reputationFailureCount: value.reputationFailureCount, attachmentMentionIssueCount: value.attachmentMentionIssueCount, insights: value.insights, errorMessage: value.errorMessage, fromAddress: value.fromAddress, recipient: value.recipient, subject: value.subject, messageId: value.messageId, sourceMessageId: value.sourceMessageId, processingMs: value.processingMs, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }