/* 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 ExportTransformerOptions */ export interface ExportTransformerOptions { /** * * @type {string} * @memberof ExportTransformerOptions */ aiTransformId?: string | null; /** * * @type {string} * @memberof ExportTransformerOptions */ aiMappingId?: string | null; /** * * @type {boolean} * @memberof ExportTransformerOptions */ flattenArrays: boolean; /** * * @type {Date} * @memberof ExportTransformerOptions */ since?: Date | null; /** * * @type {Date} * @memberof ExportTransformerOptions */ before?: Date | null; /** * * @type {string} * @memberof ExportTransformerOptions */ format: ExportTransformerOptionsFormatEnum; /** * * @type {string} * @memberof ExportTransformerOptions */ inboxId?: string | null; /** * * @type {string} * @memberof ExportTransformerOptions */ phoneId?: string | null; /** * * @type {string} * @memberof ExportTransformerOptions */ emailId?: string | null; /** * * @type {string} * @memberof ExportTransformerOptions */ smsId?: string | null; /** * * @type {string} * @memberof ExportTransformerOptions */ attachmentId?: string | null; /** * * @type {boolean} * @memberof ExportTransformerOptions */ includeMetaData: boolean; /** * * @type {string} * @memberof ExportTransformerOptions */ delimiter?: string | null; /** * * @type {string} * @memberof ExportTransformerOptions */ arraySeparator?: string | null; /** * * @type {Array} * @memberof ExportTransformerOptions */ includeMetaDataColumns?: Array | null; } /** * @export * @enum {string} */ export enum ExportTransformerOptionsFormatEnum { CSV = 'CSV', EXCEL = 'EXCEL', XML = 'XML', JSON = 'JSON', } export function ExportTransformerOptionsFromJSON( json: any ): ExportTransformerOptions { return ExportTransformerOptionsFromJSONTyped(json, false); } export function ExportTransformerOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): ExportTransformerOptions { if (json === undefined || json === null) { return json; } return { aiTransformId: !exists(json, 'aiTransformId') ? undefined : json['aiTransformId'], aiMappingId: !exists(json, 'aiMappingId') ? undefined : json['aiMappingId'], flattenArrays: json['flattenArrays'], since: !exists(json, 'since') ? undefined : json['since'] === null ? null : new Date(json['since']), before: !exists(json, 'before') ? undefined : json['before'] === null ? null : new Date(json['before']), format: json['format'], inboxId: !exists(json, 'inboxId') ? undefined : json['inboxId'], phoneId: !exists(json, 'phoneId') ? undefined : json['phoneId'], emailId: !exists(json, 'emailId') ? undefined : json['emailId'], smsId: !exists(json, 'smsId') ? undefined : json['smsId'], attachmentId: !exists(json, 'attachmentId') ? undefined : json['attachmentId'], includeMetaData: json['includeMetaData'], delimiter: !exists(json, 'delimiter') ? undefined : json['delimiter'], arraySeparator: !exists(json, 'arraySeparator') ? undefined : json['arraySeparator'], includeMetaDataColumns: !exists(json, 'includeMetaDataColumns') ? undefined : json['includeMetaDataColumns'], }; } export function ExportTransformerOptionsToJSON( value?: ExportTransformerOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { aiTransformId: value.aiTransformId, aiMappingId: value.aiMappingId, flattenArrays: value.flattenArrays, since: value.since === undefined ? undefined : value.since === null ? null : value.since.toISOString(), before: value.before === undefined ? undefined : value.before === null ? null : value.before.toISOString(), format: value.format, inboxId: value.inboxId, phoneId: value.phoneId, emailId: value.emailId, smsId: value.smsId, attachmentId: value.attachmentId, includeMetaData: value.includeMetaData, delimiter: value.delimiter, arraySeparator: value.arraySeparator, includeMetaDataColumns: value.includeMetaDataColumns, }; }