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.

111 lines (110 loc) 5.21 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.PhoneProvisioningJobDtoToJSON = exports.PhoneProvisioningJobDtoFromJSONTyped = exports.PhoneProvisioningJobDtoFromJSON = exports.PhoneProvisioningJobDtoStatusEnum = exports.PhoneProvisioningJobDtoPhoneVariantEnum = exports.PhoneProvisioningJobDtoPhoneCountryEnum = void 0; var runtime_1 = require("../runtime"); var _1 = require("./"); /** * @export * @enum {string} */ var PhoneProvisioningJobDtoPhoneCountryEnum; (function (PhoneProvisioningJobDtoPhoneCountryEnum) { PhoneProvisioningJobDtoPhoneCountryEnum["US"] = "US"; PhoneProvisioningJobDtoPhoneCountryEnum["GB"] = "GB"; PhoneProvisioningJobDtoPhoneCountryEnum["AU"] = "AU"; PhoneProvisioningJobDtoPhoneCountryEnum["CA"] = "CA"; PhoneProvisioningJobDtoPhoneCountryEnum["EE"] = "EE"; PhoneProvisioningJobDtoPhoneCountryEnum["HK"] = "HK"; PhoneProvisioningJobDtoPhoneCountryEnum["PL"] = "PL"; PhoneProvisioningJobDtoPhoneCountryEnum["PT"] = "PT"; PhoneProvisioningJobDtoPhoneCountryEnum["NL"] = "NL"; PhoneProvisioningJobDtoPhoneCountryEnum["IL"] = "IL"; PhoneProvisioningJobDtoPhoneCountryEnum["FI"] = "FI"; PhoneProvisioningJobDtoPhoneCountryEnum["SE"] = "SE"; })(PhoneProvisioningJobDtoPhoneCountryEnum = exports.PhoneProvisioningJobDtoPhoneCountryEnum || (exports.PhoneProvisioningJobDtoPhoneCountryEnum = {})); /** * @export * @enum {string} */ var PhoneProvisioningJobDtoPhoneVariantEnum; (function (PhoneProvisioningJobDtoPhoneVariantEnum) { PhoneProvisioningJobDtoPhoneVariantEnum["LOCAL"] = "LOCAL"; PhoneProvisioningJobDtoPhoneVariantEnum["MOBILE"] = "MOBILE"; PhoneProvisioningJobDtoPhoneVariantEnum["TOLL_FREE"] = "TOLL_FREE"; })(PhoneProvisioningJobDtoPhoneVariantEnum = exports.PhoneProvisioningJobDtoPhoneVariantEnum || (exports.PhoneProvisioningJobDtoPhoneVariantEnum = {})); /** * @export * @enum {string} */ var PhoneProvisioningJobDtoStatusEnum; (function (PhoneProvisioningJobDtoStatusEnum) { PhoneProvisioningJobDtoStatusEnum["CREATED"] = "CREATED"; PhoneProvisioningJobDtoStatusEnum["RUNNING"] = "RUNNING"; PhoneProvisioningJobDtoStatusEnum["COMPLETED"] = "COMPLETED"; PhoneProvisioningJobDtoStatusEnum["PARTIAL"] = "PARTIAL"; PhoneProvisioningJobDtoStatusEnum["FAILED"] = "FAILED"; })(PhoneProvisioningJobDtoStatusEnum = exports.PhoneProvisioningJobDtoStatusEnum || (exports.PhoneProvisioningJobDtoStatusEnum = {})); function PhoneProvisioningJobDtoFromJSON(json) { return PhoneProvisioningJobDtoFromJSONTyped(json, false); } exports.PhoneProvisioningJobDtoFromJSON = PhoneProvisioningJobDtoFromJSON; function PhoneProvisioningJobDtoFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { id: json['id'], userId: json['userId'], phoneCountry: json['phoneCountry'], phoneVariant: !(0, runtime_1.exists)(json, 'phoneVariant') ? undefined : json['phoneVariant'], status: json['status'], requestedCount: json['requestedCount'], attemptedCount: json['attemptedCount'], succeededCount: json['succeededCount'], failedCount: json['failedCount'], unavailableCount: json['unavailableCount'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), items: json['items'].map(_1.PhoneProvisioningJobItemDtoFromJSON), }; } exports.PhoneProvisioningJobDtoFromJSONTyped = PhoneProvisioningJobDtoFromJSONTyped; function PhoneProvisioningJobDtoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, userId: value.userId, phoneCountry: value.phoneCountry, phoneVariant: value.phoneVariant, status: value.status, requestedCount: value.requestedCount, attemptedCount: value.attemptedCount, succeededCount: value.succeededCount, failedCount: value.failedCount, unavailableCount: value.unavailableCount, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), items: value.items.map(_1.PhoneProvisioningJobItemDtoToJSON), }; } exports.PhoneProvisioningJobDtoToJSON = PhoneProvisioningJobDtoToJSON;