/* 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 DevicePreviewSharedTargetDto */ export interface DevicePreviewSharedTargetDto { /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ id: string; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ runId: string; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ provider?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ clientProfile?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ deviceType?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ browserFamily?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ platform?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ colorScheme?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ status?: DevicePreviewSharedTargetDtoStatusEnum; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ failureCode?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedTargetDto */ primaryScreenshotId?: string | null; /** * * @type {Date} * @memberof DevicePreviewSharedTargetDto */ createdAt: Date; /** * * @type {Date} * @memberof DevicePreviewSharedTargetDto */ updatedAt: Date; } /** * @export * @enum {string} */ export enum DevicePreviewSharedTargetDtoStatusEnum { WAITING = 'WAITING', READY_TO_CAPTURE = 'READY_TO_CAPTURE', CAPTURING = 'CAPTURING', READY = 'READY', FAILED = 'FAILED', NEEDS_INTERVENTION = 'NEEDS_INTERVENTION', TIMED_OUT = 'TIMED_OUT', SKIPPED_OFFLINE = 'SKIPPED_OFFLINE', SETUP_REQUIRED = 'SETUP_REQUIRED', } export function DevicePreviewSharedTargetDtoFromJSON( json: any ): DevicePreviewSharedTargetDto { return DevicePreviewSharedTargetDtoFromJSONTyped(json, false); } export function DevicePreviewSharedTargetDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DevicePreviewSharedTargetDto { if (json === undefined || json === null) { return json; } return { id: json['id'], runId: json['runId'], provider: !exists(json, 'provider') ? undefined : json['provider'], clientProfile: !exists(json, 'clientProfile') ? undefined : json['clientProfile'], deviceType: !exists(json, 'deviceType') ? undefined : json['deviceType'], browserFamily: !exists(json, 'browserFamily') ? undefined : json['browserFamily'], platform: !exists(json, 'platform') ? undefined : json['platform'], colorScheme: !exists(json, 'colorScheme') ? undefined : json['colorScheme'], status: !exists(json, 'status') ? undefined : json['status'], failureCode: !exists(json, 'failureCode') ? undefined : json['failureCode'], primaryScreenshotId: !exists(json, 'primaryScreenshotId') ? undefined : json['primaryScreenshotId'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function DevicePreviewSharedTargetDtoToJSON( value?: DevicePreviewSharedTargetDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, runId: value.runId, provider: value.provider, clientProfile: value.clientProfile, deviceType: value.deviceType, browserFamily: value.browserFamily, platform: value.platform, colorScheme: value.colorScheme, status: value.status, failureCode: value.failureCode, primaryScreenshotId: value.primaryScreenshotId, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }