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.

118 lines (112 loc) 2.85 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 AITransformMappingDto */ export interface AITransformMappingDto { /** * * @type {string} * @memberof AITransformMappingDto */ id: string; /** * * @type {string} * @memberof AITransformMappingDto */ aiTransformId: string; /** * * @type {string} * @memberof AITransformMappingDto */ userId: string; /** * * @type {string} * @memberof AITransformMappingDto */ name?: string; /** * * @type {string} * @memberof AITransformMappingDto */ entityId?: string; /** * * @type {string} * @memberof AITransformMappingDto */ entityType: AITransformMappingDtoEntityTypeEnum; /** * * @type {Date} * @memberof AITransformMappingDto */ createdAt: Date; } /** * @export * @enum {string} */ export enum AITransformMappingDtoEntityTypeEnum { INBOX = 'INBOX', PHONE = 'PHONE', } export function AITransformMappingDtoFromJSON( json: any ): AITransformMappingDto { return AITransformMappingDtoFromJSONTyped(json, false); } export function AITransformMappingDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): AITransformMappingDto { if (json === undefined || json === null) { return json; } return { id: json['id'], aiTransformId: json['aiTransformId'], userId: json['userId'], name: !exists(json, 'name') ? undefined : json['name'], entityId: !exists(json, 'entityId') ? undefined : json['entityId'], entityType: json['entityType'], createdAt: new Date(json['createdAt']), }; } export function AITransformMappingDtoToJSON( value?: AITransformMappingDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, aiTransformId: value.aiTransformId, userId: value.userId, name: value.name, entityId: value.entityId, entityType: value.entityType, createdAt: value.createdAt.toISOString(), }; }