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.
132 lines (126 loc) • 3.19 kB
text/typescript
/* 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';
/**
* Connector
* @export
* @interface ConnectorProjection
*/
export interface ConnectorProjection {
/**
*
* @type {string}
* @memberof ConnectorProjection
*/
id?: string;
/**
*
* @type {string}
* @memberof ConnectorProjection
*/
inboxId: string;
/**
*
* @type {string}
* @memberof ConnectorProjection
*/
userId: string;
/**
*
* @type {Date}
* @memberof ConnectorProjection
*/
createdAt: Date;
/**
*
* @type {boolean}
* @memberof ConnectorProjection
*/
syncEnabled: boolean;
/**
*
* @type {string}
* @memberof ConnectorProjection
*/
connectorType: ConnectorProjectionConnectorTypeEnum;
/**
*
* @type {string}
* @memberof ConnectorProjection
*/
syncScheduleType: ConnectorProjectionSyncScheduleTypeEnum;
/**
*
* @type {number}
* @memberof ConnectorProjection
*/
syncInterval?: number;
}
/**
* @export
* @enum {string}
*/
export enum ConnectorProjectionConnectorTypeEnum {
IMAP = 'IMAP',
}
/**
* @export
* @enum {string}
*/
export enum ConnectorProjectionSyncScheduleTypeEnum {
INTERVAL = 'INTERVAL',
}
export function ConnectorProjectionFromJSON(json: any): ConnectorProjection {
return ConnectorProjectionFromJSONTyped(json, false);
}
export function ConnectorProjectionFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): ConnectorProjection {
if (json === undefined || json === null) {
return json;
}
return {
id: !exists(json, 'id') ? undefined : json['id'],
inboxId: json['inboxId'],
userId: json['userId'],
createdAt: new Date(json['createdAt']),
syncEnabled: json['syncEnabled'],
connectorType: json['connectorType'],
syncScheduleType: json['syncScheduleType'],
syncInterval: !exists(json, 'syncInterval')
? undefined
: json['syncInterval'],
};
}
export function ConnectorProjectionToJSON(
value?: ConnectorProjection | null
): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
id: value.id,
inboxId: value.inboxId,
userId: value.userId,
createdAt: value.createdAt.toISOString(),
syncEnabled: value.syncEnabled,
connectorType: value.connectorType,
syncScheduleType: value.syncScheduleType,
syncInterval: value.syncInterval,
};
}