/* 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'; import { DevicePreviewRunDto, DevicePreviewRunDtoFromJSON, DevicePreviewRunDtoFromJSONTyped, DevicePreviewRunDtoToJSON, DevicePreviewScreenshotDto, DevicePreviewScreenshotDtoFromJSON, DevicePreviewScreenshotDtoFromJSONTyped, DevicePreviewScreenshotDtoToJSON, DevicePreviewTargetDto, DevicePreviewTargetDtoFromJSON, DevicePreviewTargetDtoFromJSONTyped, DevicePreviewTargetDtoToJSON, } from './'; /** * * @export * @interface DevicePreviewProviderProgressDto */ export interface DevicePreviewProviderProgressDto { /** * * @type {DevicePreviewRunDto} * @memberof DevicePreviewProviderProgressDto */ run: DevicePreviewRunDto; /** * * @type {string} * @memberof DevicePreviewProviderProgressDto */ provider: DevicePreviewProviderProgressDtoProviderEnum; /** * * @type {string} * @memberof DevicePreviewProviderProgressDto */ status: DevicePreviewProviderProgressDtoStatusEnum; /** * * @type {number} * @memberof DevicePreviewProviderProgressDto */ targetCount: number; /** * * @type {number} * @memberof DevicePreviewProviderProgressDto */ readyCount: number; /** * * @type {number} * @memberof DevicePreviewProviderProgressDto */ failedCount: number; /** * * @type {number} * @memberof DevicePreviewProviderProgressDto */ capturingCount: number; /** * * @type {number} * @memberof DevicePreviewProviderProgressDto */ pendingCount: number; /** * * @type {Array} * @memberof DevicePreviewProviderProgressDto */ targets: Array; /** * * @type {Array} * @memberof DevicePreviewProviderProgressDto */ screenshots: Array; } /** * @export * @enum {string} */ export enum DevicePreviewProviderProgressDtoProviderEnum { GMAIL = 'GMAIL', OUTLOOK = 'OUTLOOK', YAHOO = 'YAHOO', } /** * @export * @enum {string} */ export enum DevicePreviewProviderProgressDtoStatusEnum { PENDING = 'PENDING', CAPTURING = 'CAPTURING', PARTIAL_COMPLETE = 'PARTIAL_COMPLETE', COMPLETE = 'COMPLETE', FAILED = 'FAILED', } export function DevicePreviewProviderProgressDtoFromJSON( json: any ): DevicePreviewProviderProgressDto { return DevicePreviewProviderProgressDtoFromJSONTyped(json, false); } export function DevicePreviewProviderProgressDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DevicePreviewProviderProgressDto { if (json === undefined || json === null) { return json; } return { run: DevicePreviewRunDtoFromJSON(json['run']), provider: json['provider'], status: json['status'], targetCount: json['targetCount'], readyCount: json['readyCount'], failedCount: json['failedCount'], capturingCount: json['capturingCount'], pendingCount: json['pendingCount'], targets: (json['targets'] as Array).map( DevicePreviewTargetDtoFromJSON ), screenshots: (json['screenshots'] as Array).map( DevicePreviewScreenshotDtoFromJSON ), }; } export function DevicePreviewProviderProgressDtoToJSON( value?: DevicePreviewProviderProgressDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { run: DevicePreviewRunDtoToJSON(value.run), provider: value.provider, status: value.status, targetCount: value.targetCount, readyCount: value.readyCount, failedCount: value.failedCount, capturingCount: value.capturingCount, pendingCount: value.pendingCount, targets: (value.targets as Array).map(DevicePreviewTargetDtoToJSON), screenshots: (value.screenshots as Array).map( DevicePreviewScreenshotDtoToJSON ), }; }