/* 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 EntityAutomationItemProjection */ export interface EntityAutomationItemProjection { /** * * @type {string} * @memberof EntityAutomationItemProjection */ name?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ id: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ inboxId?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ phoneId?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ action?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ automationType: EntityAutomationItemProjectionAutomationTypeEnum; } /** * @export * @enum {string} */ export enum EntityAutomationItemProjectionAutomationTypeEnum { FORWARDER = 'INBOX_FORWARDER', REPLIER = 'INBOX_REPLIER', RULESET = 'INBOX_RULESET', } export function EntityAutomationItemProjectionFromJSON( json: any ): EntityAutomationItemProjection { return EntityAutomationItemProjectionFromJSONTyped(json, false); } export function EntityAutomationItemProjectionFromJSONTyped( json: any, ignoreDiscriminator: boolean ): EntityAutomationItemProjection { if (json === undefined || json === null) { return json; } return { name: !exists(json, 'name') ? undefined : json['name'], id: json['id'], inboxId: !exists(json, 'inboxId') ? undefined : json['inboxId'], phoneId: !exists(json, 'phoneId') ? undefined : json['phoneId'], action: !exists(json, 'action') ? undefined : json['action'], automationType: json['automationType'], }; } export function EntityAutomationItemProjectionToJSON( value?: EntityAutomationItemProjection | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { name: value.name, id: value.id, inboxId: value.inboxId, phoneId: value.phoneId, action: value.action, automationType: value.automationType, }; }