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.

142 lines (136 loc) 3.76 kB
/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. 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'; /** * Inbox replier event * @export * @interface InboxReplierEventProjection */ export interface InboxReplierEventProjection { /** * * @type {string} * @memberof InboxReplierEventProjection */ message?: string | null; /** * * @type {string} * @memberof InboxReplierEventProjection */ id?: string | null; /** * * @type {Array<string>} * @memberof InboxReplierEventProjection */ recipients?: Array<string> | null; /** * * @type {string} * @memberof InboxReplierEventProjection */ inboxId?: string | null; /** * * @type {string} * @memberof InboxReplierEventProjection */ emailId?: string | null; /** * * @type {string} * @memberof InboxReplierEventProjection */ userId?: string | null; /** * * @type {Date} * @memberof InboxReplierEventProjection */ createdAt: Date; /** * * @type {string} * @memberof InboxReplierEventProjection */ sentId?: string | null; /** * * @type {string} * @memberof InboxReplierEventProjection */ replierId?: string | null; /** * * @type {string} * @memberof InboxReplierEventProjection */ status?: InboxReplierEventProjectionStatusEnum; } /** * @export * @enum {string} */ export enum InboxReplierEventProjectionStatusEnum { SUCCESS = 'SUCCESS', FAILURE = 'FAILURE', } export function InboxReplierEventProjectionFromJSON( json: any ): InboxReplierEventProjection { return InboxReplierEventProjectionFromJSONTyped(json, false); } export function InboxReplierEventProjectionFromJSONTyped( json: any, ignoreDiscriminator: boolean ): InboxReplierEventProjection { if (json === undefined || json === null) { return json; } return { message: !exists(json, 'message') ? undefined : json['message'], id: !exists(json, 'id') ? undefined : json['id'], recipients: !exists(json, 'recipients') ? undefined : json['recipients'], inboxId: !exists(json, 'inboxId') ? undefined : json['inboxId'], emailId: !exists(json, 'emailId') ? undefined : json['emailId'], userId: !exists(json, 'userId') ? undefined : json['userId'], createdAt: new Date(json['createdAt']), sentId: !exists(json, 'sentId') ? undefined : json['sentId'], replierId: !exists(json, 'replierId') ? undefined : json['replierId'], status: !exists(json, 'status') ? undefined : json['status'], }; } export function InboxReplierEventProjectionToJSON( value?: InboxReplierEventProjection | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { message: value.message, id: value.id, recipients: value.recipients, inboxId: value.inboxId, emailId: value.emailId, userId: value.userId, createdAt: value.createdAt.toISOString(), sentId: value.sentId, replierId: value.replierId, status: value.status, }; }