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.

141 lines (135 loc) 3.33 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 ConnectorEventDto */ export interface ConnectorEventDto { /** * * @type {string} * @memberof ConnectorEventDto */ id: string; /** * * @type {string} * @memberof ConnectorEventDto */ connectorId: string; /** * * @type {string} * @memberof ConnectorEventDto */ status: ConnectorEventDtoStatusEnum; /** * * @type {string} * @memberof ConnectorEventDto */ eventType: ConnectorEventDtoEventTypeEnum; /** * * @type {number} * @memberof ConnectorEventDto */ size: number; /** * * @type {string} * @memberof ConnectorEventDto */ message?: string; /** * * @type {string} * @memberof ConnectorEventDto */ logs?: string; /** * * @type {boolean} * @memberof ConnectorEventDto */ seen?: boolean; /** * * @type {Date} * @memberof ConnectorEventDto */ createdAt: Date; } /** * @export * @enum {string} */ export enum ConnectorEventDtoStatusEnum { SUCCESS = 'SUCCESS', INTERNAL_ERROR = 'INTERNAL_ERROR', SUBSCRIPTION_ERROR = 'SUBSCRIPTION_ERROR', CONNECTION_ERROR = 'CONNECTION_ERROR', NOT_FOUND = 'NOT_FOUND', } /** * @export * @enum {string} */ export enum ConnectorEventDtoEventTypeEnum { SEND = 'SEND', SYNC = 'SYNC', } export function ConnectorEventDtoFromJSON(json: any): ConnectorEventDto { return ConnectorEventDtoFromJSONTyped(json, false); } export function ConnectorEventDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): ConnectorEventDto { if (json === undefined || json === null) { return json; } return { id: json['id'], connectorId: json['connectorId'], status: json['status'], eventType: json['eventType'], size: json['size'], message: !exists(json, 'message') ? undefined : json['message'], logs: !exists(json, 'logs') ? undefined : json['logs'], seen: !exists(json, 'seen') ? undefined : json['seen'], createdAt: new Date(json['createdAt']), }; } export function ConnectorEventDtoToJSON(value?: ConnectorEventDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, connectorId: value.connectorId, status: value.status, eventType: value.eventType, size: value.size, message: value.message, logs: value.logs, seen: value.seen, createdAt: value.createdAt.toISOString(), }; }