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.

111 lines (105 loc) 2.95 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 EntityAutomationItemProjection */ export interface EntityAutomationItemProjection { /** * * @type {string} * @memberof EntityAutomationItemProjection */ inboxId?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ phoneId?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ action?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ automationType: EntityAutomationItemProjectionAutomationTypeEnum; /** * * @type {string} * @memberof EntityAutomationItemProjection */ name?: string; /** * * @type {string} * @memberof EntityAutomationItemProjection */ id: string; } /** * @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 { inboxId: !exists(json, 'inboxId') ? undefined : json['inboxId'], phoneId: !exists(json, 'phoneId') ? undefined : json['phoneId'], action: !exists(json, 'action') ? undefined : json['action'], automationType: json['automationType'], name: !exists(json, 'name') ? undefined : json['name'], id: json['id'], }; } export function EntityAutomationItemProjectionToJSON( value?: EntityAutomationItemProjection | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { inboxId: value.inboxId, phoneId: value.phoneId, action: value.action, automationType: value.automationType, name: value.name, id: value.id, }; }