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.

113 lines (108 loc) 2.76 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'; /** * Sent SMS projection * @export * @interface SentSmsProjection */ export interface SentSmsProjection { /** * * @type {string} * @memberof SentSmsProjection */ body: string; /** * * @type {string} * @memberof SentSmsProjection */ userId: string; /** * * @type {Date} * @memberof SentSmsProjection */ createdAt: Date; /** * * @type {string} * @memberof SentSmsProjection */ phoneNumber: string; /** * * @type {string} * @memberof SentSmsProjection */ fromNumber: string; /** * * @type {string} * @memberof SentSmsProjection */ toNumber: string; /** * * @type {string} * @memberof SentSmsProjection */ replyToId?: string; /** * * @type {string} * @memberof SentSmsProjection */ id: string; } export function SentSmsProjectionFromJSON(json: any): SentSmsProjection { return SentSmsProjectionFromJSONTyped(json, false); } export function SentSmsProjectionFromJSONTyped( json: any, ignoreDiscriminator: boolean ): SentSmsProjection { if (json === undefined || json === null) { return json; } return { body: json['body'], userId: json['userId'], createdAt: new Date(json['createdAt']), phoneNumber: json['phoneNumber'], fromNumber: json['fromNumber'], toNumber: json['toNumber'], replyToId: !exists(json, 'replyToId') ? undefined : json['replyToId'], id: json['id'], }; } export function SentSmsProjectionToJSON(value?: SentSmsProjection | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { body: value.body, userId: value.userId, createdAt: value.createdAt.toISOString(), phoneNumber: value.phoneNumber, fromNumber: value.fromNumber, toNumber: value.toNumber, replyToId: value.replyToId, id: value.id, }; }