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.
128 lines (122 loc) • 3.38 kB
text/typescript
/* 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 AITransformResultProjectionDto
*/
export interface AITransformResultProjectionDto {
/**
*
* @type {string}
* @memberof AITransformResultProjectionDto
*/
id: string;
/**
*
* @type {string}
* @memberof AITransformResultProjectionDto
*/
aiTransformId: string;
/**
*
* @type {string}
* @memberof AITransformResultProjectionDto
*/
aiTransformMappingId?: string | null;
/**
*
* @type {string}
* @memberof AITransformResultProjectionDto
*/
userId: string;
/**
*
* @type {object}
* @memberof AITransformResultProjectionDto
*/
value?: object | null;
/**
*
* @type {string}
* @memberof AITransformResultProjectionDto
*/
entityId?: string | null;
/**
*
* @type {string}
* @memberof AITransformResultProjectionDto
*/
entityType?: AITransformResultProjectionDtoEntityTypeEnum;
/**
*
* @type {Date}
* @memberof AITransformResultProjectionDto
*/
createdAt: Date;
}
/**
* @export
* @enum {string}
*/
export enum AITransformResultProjectionDtoEntityTypeEnum {
INBOX = 'INBOX',
PHONE = 'PHONE',
}
export function AITransformResultProjectionDtoFromJSON(
json: any
): AITransformResultProjectionDto {
return AITransformResultProjectionDtoFromJSONTyped(json, false);
}
export function AITransformResultProjectionDtoFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): AITransformResultProjectionDto {
if (json === undefined || json === null) {
return json;
}
return {
id: json['id'],
aiTransformId: json['aiTransformId'],
aiTransformMappingId: !exists(json, 'aiTransformMappingId')
? undefined
: json['aiTransformMappingId'],
userId: json['userId'],
value: !exists(json, 'value') ? undefined : json['value'],
entityId: !exists(json, 'entityId') ? undefined : json['entityId'],
entityType: !exists(json, 'entityType') ? undefined : json['entityType'],
createdAt: new Date(json['createdAt']),
};
}
export function AITransformResultProjectionDtoToJSON(
value?: AITransformResultProjectionDto | null
): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
id: value.id,
aiTransformId: value.aiTransformId,
aiTransformMappingId: value.aiTransformMappingId,
userId: value.userId,
value: value.value,
entityId: value.entityId,
entityType: value.entityType,
createdAt: value.createdAt.toISOString(),
};
}