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.

116 lines (115 loc) 4.93 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.InboxDtoToJSON = exports.InboxDtoFromJSONTyped = exports.InboxDtoFromJSON = exports.InboxDtoAccountRegionEnum = exports.InboxDtoFunctionsAsEnum = exports.InboxDtoInboxTypeEnum = void 0; var runtime_1 = require("../runtime"); /** * @export * @enum {string} */ var InboxDtoInboxTypeEnum; (function (InboxDtoInboxTypeEnum) { InboxDtoInboxTypeEnum["HTTP_INBOX"] = "HTTP_INBOX"; InboxDtoInboxTypeEnum["SMTP_INBOX"] = "SMTP_INBOX"; })(InboxDtoInboxTypeEnum = exports.InboxDtoInboxTypeEnum || (exports.InboxDtoInboxTypeEnum = {})); /** * @export * @enum {string} */ var InboxDtoFunctionsAsEnum; (function (InboxDtoFunctionsAsEnum) { InboxDtoFunctionsAsEnum["ALIAS"] = "ALIAS"; InboxDtoFunctionsAsEnum["THREAD"] = "THREAD"; InboxDtoFunctionsAsEnum["CATCH_ALL"] = "CATCH_ALL"; InboxDtoFunctionsAsEnum["CONNECTOR"] = "CONNECTOR"; InboxDtoFunctionsAsEnum["ACCOUNT"] = "ACCOUNT"; InboxDtoFunctionsAsEnum["GUEST"] = "GUEST"; InboxDtoFunctionsAsEnum["OAUTH_CONNECTION_GMAIL"] = "OAUTH_CONNECTION_GMAIL"; })(InboxDtoFunctionsAsEnum = exports.InboxDtoFunctionsAsEnum || (exports.InboxDtoFunctionsAsEnum = {})); /** * @export * @enum {string} */ var InboxDtoAccountRegionEnum; (function (InboxDtoAccountRegionEnum) { InboxDtoAccountRegionEnum["US_WEST_2"] = "US_WEST_2"; })(InboxDtoAccountRegionEnum = exports.InboxDtoAccountRegionEnum || (exports.InboxDtoAccountRegionEnum = {})); function InboxDtoFromJSON(json) { return InboxDtoFromJSONTyped(json, false); } exports.InboxDtoFromJSON = InboxDtoFromJSON; function InboxDtoFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { id: json['id'], userId: json['userId'], createdAt: new Date(json['createdAt']), name: !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'], domainId: !(0, runtime_1.exists)(json, 'domainId') ? undefined : json['domainId'], description: !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'], emailAddress: json['emailAddress'], expiresAt: !(0, runtime_1.exists)(json, 'expiresAt') ? undefined : json['expiresAt'] === null ? null : new Date(json['expiresAt']), favourite: json['favourite'], tags: !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'], inboxType: !(0, runtime_1.exists)(json, 'inboxType') ? undefined : json['inboxType'], readOnly: json['readOnly'], virtualInbox: json['virtualInbox'], functionsAs: !(0, runtime_1.exists)(json, 'functionsAs') ? undefined : json['functionsAs'], localPart: !(0, runtime_1.exists)(json, 'localPart') ? undefined : json['localPart'], domain: !(0, runtime_1.exists)(json, 'domain') ? undefined : json['domain'], accountRegion: !(0, runtime_1.exists)(json, 'accountRegion') ? undefined : json['accountRegion'], }; } exports.InboxDtoFromJSONTyped = InboxDtoFromJSONTyped; function InboxDtoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, userId: value.userId, createdAt: value.createdAt.toISOString(), name: value.name, domainId: value.domainId, description: value.description, emailAddress: value.emailAddress, expiresAt: value.expiresAt === undefined ? undefined : value.expiresAt === null ? null : value.expiresAt.toISOString(), favourite: value.favourite, tags: value.tags, inboxType: value.inboxType, readOnly: value.readOnly, virtualInbox: value.virtualInbox, functionsAs: value.functionsAs, localPart: value.localPart, domain: value.domain, accountRegion: value.accountRegion, }; } exports.InboxDtoToJSON = InboxDtoToJSON;