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.
106 lines (105 loc) • 5.7 kB
JavaScript
;
/* 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.TenantReputationStatusRowDtoToJSON = exports.TenantReputationStatusRowDtoFromJSONTyped = exports.TenantReputationStatusRowDtoFromJSON = exports.TenantReputationStatusRowDtoAccountRegionEnum = void 0;
var runtime_1 = require("../runtime");
/**
* @export
* @enum {string}
*/
var TenantReputationStatusRowDtoAccountRegionEnum;
(function (TenantReputationStatusRowDtoAccountRegionEnum) {
TenantReputationStatusRowDtoAccountRegionEnum["US_WEST_2_ACCOUNT_STAGING"] = "US_WEST_2_ACCOUNT_STAGING";
TenantReputationStatusRowDtoAccountRegionEnum["US_EAST_1_ACCOUNT_STAGING"] = "US_EAST_1_ACCOUNT_STAGING";
TenantReputationStatusRowDtoAccountRegionEnum["EU_WEST_1_ACCOUNT_STAGING"] = "EU_WEST_1_ACCOUNT_STAGING";
TenantReputationStatusRowDtoAccountRegionEnum["US_WEST_2_ACCOUNT_SES_1"] = "US_WEST_2_ACCOUNT_SES_1";
TenantReputationStatusRowDtoAccountRegionEnum["EU_WEST_1_ACCOUNT_SES_1"] = "EU_WEST_1_ACCOUNT_SES_1";
TenantReputationStatusRowDtoAccountRegionEnum["US_WEST_2_ACCOUNT_SES_2"] = "US_WEST_2_ACCOUNT_SES_2";
TenantReputationStatusRowDtoAccountRegionEnum["EU_WEST_1_ACCOUNT_SES_2"] = "EU_WEST_1_ACCOUNT_SES_2";
TenantReputationStatusRowDtoAccountRegionEnum["US_WEST_2_ACCOUNT_BYTEWISE"] = "US_WEST_2_ACCOUNT_BYTEWISE";
TenantReputationStatusRowDtoAccountRegionEnum["EU_WEST_1_ACCOUNT_BYTEWISE"] = "EU_WEST_1_ACCOUNT_BYTEWISE";
TenantReputationStatusRowDtoAccountRegionEnum["US_WEST_2"] = "US_WEST_2";
TenantReputationStatusRowDtoAccountRegionEnum["EU_WEST_1"] = "EU_WEST_1";
TenantReputationStatusRowDtoAccountRegionEnum["US_EAST_1"] = "US_EAST_1";
})(TenantReputationStatusRowDtoAccountRegionEnum = exports.TenantReputationStatusRowDtoAccountRegionEnum || (exports.TenantReputationStatusRowDtoAccountRegionEnum = {}));
function TenantReputationStatusRowDtoFromJSON(json) {
return TenantReputationStatusRowDtoFromJSONTyped(json, false);
}
exports.TenantReputationStatusRowDtoFromJSON = TenantReputationStatusRowDtoFromJSON;
function TenantReputationStatusRowDtoFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
accountRegion: json['accountRegion'],
tenantName: json['tenantName'],
tenantArn: !(0, runtime_1.exists)(json, 'tenantArn') ? undefined : json['tenantArn'],
sendingStatus: !(0, runtime_1.exists)(json, 'sendingStatus')
? undefined
: json['sendingStatus'],
reputationStatus: !(0, runtime_1.exists)(json, 'reputationStatus')
? undefined
: json['reputationStatus'],
reputationPolicy: !(0, runtime_1.exists)(json, 'reputationPolicy')
? undefined
: json['reputationPolicy'],
customerManagedSendingStatus: !(0, runtime_1.exists)(json, 'customerManagedSendingStatus')
? undefined
: json['customerManagedSendingStatus'],
awsManagedSendingStatus: !(0, runtime_1.exists)(json, 'awsManagedSendingStatus')
? undefined
: json['awsManagedSendingStatus'],
findingCount: json['findingCount'],
bounceRate: !(0, runtime_1.exists)(json, 'bounceRate') ? undefined : json['bounceRate'],
complaintRate: !(0, runtime_1.exists)(json, 'complaintRate')
? undefined
: json['complaintRate'],
sendLastHour: !(0, runtime_1.exists)(json, 'sendLastHour')
? undefined
: json['sendLastHour'],
metricTimestamp: !(0, runtime_1.exists)(json, 'metricTimestamp')
? undefined
: new Date(json['metricTimestamp']),
error: !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
};
}
exports.TenantReputationStatusRowDtoFromJSONTyped = TenantReputationStatusRowDtoFromJSONTyped;
function TenantReputationStatusRowDtoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
accountRegion: value.accountRegion,
tenantName: value.tenantName,
tenantArn: value.tenantArn,
sendingStatus: value.sendingStatus,
reputationStatus: value.reputationStatus,
reputationPolicy: value.reputationPolicy,
customerManagedSendingStatus: value.customerManagedSendingStatus,
awsManagedSendingStatus: value.awsManagedSendingStatus,
findingCount: value.findingCount,
bounceRate: value.bounceRate,
complaintRate: value.complaintRate,
sendLastHour: value.sendLastHour,
metricTimestamp: value.metricTimestamp === undefined
? undefined
: value.metricTimestamp.toISOString(),
error: value.error,
};
}
exports.TenantReputationStatusRowDtoToJSON = TenantReputationStatusRowDtoToJSON;