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.

94 lines (88 loc) 2.54 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'; /** * A single spelling or content-quality issue discovered during email audit checks * @export * @interface EmailAuditSpellingIssue */ export interface EmailAuditSpellingIssue { /** * * @type {string} * @memberof EmailAuditSpellingIssue */ group?: string | null; /** * * @type {string} * @memberof EmailAuditSpellingIssue */ suggestion?: string | null; /** * * @type {string} * @memberof EmailAuditSpellingIssue */ severity?: EmailAuditSpellingIssueSeverityEnum; /** * * @type {string} * @memberof EmailAuditSpellingIssue */ message: string; } /** * @export * @enum {string} */ export enum EmailAuditSpellingIssueSeverityEnum { Warning = 'Warning', Error = 'Error', } export function EmailAuditSpellingIssueFromJSON( json: any ): EmailAuditSpellingIssue { return EmailAuditSpellingIssueFromJSONTyped(json, false); } export function EmailAuditSpellingIssueFromJSONTyped( json: any, ignoreDiscriminator: boolean ): EmailAuditSpellingIssue { if (json === undefined || json === null) { return json; } return { group: !exists(json, 'group') ? undefined : json['group'], suggestion: !exists(json, 'suggestion') ? undefined : json['suggestion'], severity: !exists(json, 'severity') ? undefined : json['severity'], message: json['message'], }; } export function EmailAuditSpellingIssueToJSON( value?: EmailAuditSpellingIssue | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { group: value.group, suggestion: value.suggestion, severity: value.severity, message: value.message, }; }