/* 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 { InboxAutomationMatchOptions, InboxAutomationMatchOptionsFromJSON, InboxAutomationMatchOptionsFromJSONTyped, InboxAutomationMatchOptionsToJSON, } from './'; /** * Inbox replier. Will automatically reply to inbound emails that match given field for an inbox. * @export * @interface InboxReplierDto */ export interface InboxReplierDto { /** * * @type {string} * @memberof InboxReplierDto */ id: string; /** * * @type {string} * @memberof InboxReplierDto */ inboxId?: string | null; /** * * @type {string} * @memberof InboxReplierDto */ name?: string | null; /** * * @type {string} * @memberof InboxReplierDto */ field?: InboxReplierDtoFieldEnum; /** * * @type {string} * @memberof InboxReplierDto */ match?: string | null; /** * * @type {string} * @memberof InboxReplierDto */ replyTo?: string | null; /** * * @type {string} * @memberof InboxReplierDto */ subject?: string | null; /** * * @type {string} * @memberof InboxReplierDto */ from?: string | null; /** * * @type {string} * @memberof InboxReplierDto */ charset?: string | null; /** * * @type {boolean} * @memberof InboxReplierDto */ isHTML: boolean; /** * * @type {string} * @memberof InboxReplierDto */ templateId?: string | null; /** * * @type {{ [key: string]: object; }} * @memberof InboxReplierDto */ templateVariables?: { [key: string]: object } | null; /** * * @type {boolean} * @memberof InboxReplierDto */ ignoreReplyTo: boolean; /** * * @type {Date} * @memberof InboxReplierDto */ createdAt: Date; /** * Comparison mode for inbox automation matching. * @type {string} * @memberof InboxReplierDto */ should?: InboxReplierDtoShouldEnum; /** * * @type {InboxAutomationMatchOptions} * @memberof InboxReplierDto */ matchOptions?: InboxAutomationMatchOptions | null; } /** * @export * @enum {string} */ export enum InboxReplierDtoFieldEnum { RECIPIENTS = 'RECIPIENTS', SENDER = 'SENDER', SUBJECT = 'SUBJECT', ATTACHMENTS = 'ATTACHMENTS', ATTACHMENT_FILENAME = 'ATTACHMENT_FILENAME', ATTACHMENT_TEXT = 'ATTACHMENT_TEXT', } /** * @export * @enum {string} */ export enum InboxReplierDtoShouldEnum { WILDCARD = 'WILDCARD', MATCH = 'MATCH', CONTAIN = 'CONTAIN', EQUAL = 'EQUAL', } export function InboxReplierDtoFromJSON(json: any): InboxReplierDto { return InboxReplierDtoFromJSONTyped(json, false); } export function InboxReplierDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): InboxReplierDto { if (json === undefined || json === null) { return json; } return { id: json['id'], inboxId: !exists(json, 'inboxId') ? undefined : json['inboxId'], name: !exists(json, 'name') ? undefined : json['name'], field: !exists(json, 'field') ? undefined : json['field'], match: !exists(json, 'match') ? undefined : json['match'], replyTo: !exists(json, 'replyTo') ? undefined : json['replyTo'], subject: !exists(json, 'subject') ? undefined : json['subject'], from: !exists(json, 'from') ? undefined : json['from'], charset: !exists(json, 'charset') ? undefined : json['charset'], isHTML: json['isHTML'], templateId: !exists(json, 'templateId') ? undefined : json['templateId'], templateVariables: !exists(json, 'templateVariables') ? undefined : json['templateVariables'], ignoreReplyTo: json['ignoreReplyTo'], createdAt: new Date(json['createdAt']), should: !exists(json, 'should') ? undefined : json['should'], matchOptions: !exists(json, 'matchOptions') ? undefined : InboxAutomationMatchOptionsFromJSON(json['matchOptions']), }; } export function InboxReplierDtoToJSON(value?: InboxReplierDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, inboxId: value.inboxId, name: value.name, field: value.field, match: value.match, replyTo: value.replyTo, subject: value.subject, from: value.from, charset: value.charset, isHTML: value.isHTML, templateId: value.templateId, templateVariables: value.templateVariables, ignoreReplyTo: value.ignoreReplyTo, createdAt: value.createdAt.toISOString(), should: value.should, matchOptions: InboxAutomationMatchOptionsToJSON(value.matchOptions), }; }