/* 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 DevicePreviewSharedRunDto */ export interface DevicePreviewSharedRunDto { /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ runId: string; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ sourceType: DevicePreviewSharedRunDtoSourceTypeEnum; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ sourceAlias?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ sourceSubject?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ sourceRecipientLocalPart?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ sourceProfileLocalPart?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ sourceProfileDisplayName?: string | null; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ status: DevicePreviewSharedRunDtoStatusEnum; /** * * @type {string} * @memberof DevicePreviewSharedRunDto */ primaryScreenshotId?: string | null; /** * * @type {number} * @memberof DevicePreviewSharedRunDto */ targetCount: number; /** * * @type {number} * @memberof DevicePreviewSharedRunDto */ screenshotCount: number; /** * * @type {Date} * @memberof DevicePreviewSharedRunDto */ createdAt: Date; /** * * @type {Date} * @memberof DevicePreviewSharedRunDto */ updatedAt: Date; } /** * @export * @enum {string} */ export enum DevicePreviewSharedRunDtoSourceTypeEnum { STORED_EMAIL = 'STORED_EMAIL', RAW_UPLOAD = 'RAW_UPLOAD', DEVICE_PREVIEW_INGEST = 'DEVICE_PREVIEW_INGEST', PUBLIC_FREE_TEST = 'PUBLIC_FREE_TEST', } /** * @export * @enum {string} */ export enum DevicePreviewSharedRunDtoStatusEnum { CREATED = 'CREATED', AWAITING_ARRIVAL = 'AWAITING_ARRIVAL', CAPTURING = 'CAPTURING', PARTIAL_COMPLETE = 'PARTIAL_COMPLETE', COMPLETE = 'COMPLETE', FAILED = 'FAILED', } export function DevicePreviewSharedRunDtoFromJSON( json: any ): DevicePreviewSharedRunDto { return DevicePreviewSharedRunDtoFromJSONTyped(json, false); } export function DevicePreviewSharedRunDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DevicePreviewSharedRunDto { if (json === undefined || json === null) { return json; } return { runId: json['runId'], sourceType: json['sourceType'], sourceAlias: !exists(json, 'sourceAlias') ? undefined : json['sourceAlias'], sourceSubject: !exists(json, 'sourceSubject') ? undefined : json['sourceSubject'], sourceRecipientLocalPart: !exists(json, 'sourceRecipientLocalPart') ? undefined : json['sourceRecipientLocalPart'], sourceProfileLocalPart: !exists(json, 'sourceProfileLocalPart') ? undefined : json['sourceProfileLocalPart'], sourceProfileDisplayName: !exists(json, 'sourceProfileDisplayName') ? undefined : json['sourceProfileDisplayName'], status: json['status'], primaryScreenshotId: !exists(json, 'primaryScreenshotId') ? undefined : json['primaryScreenshotId'], targetCount: json['targetCount'], screenshotCount: json['screenshotCount'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function DevicePreviewSharedRunDtoToJSON( value?: DevicePreviewSharedRunDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { runId: value.runId, sourceType: value.sourceType, sourceAlias: value.sourceAlias, sourceSubject: value.sourceSubject, sourceRecipientLocalPart: value.sourceRecipientLocalPart, sourceProfileLocalPart: value.sourceProfileLocalPart, sourceProfileDisplayName: value.sourceProfileDisplayName, status: value.status, primaryScreenshotId: value.primaryScreenshotId, targetCount: value.targetCount, screenshotCount: value.screenshotCount, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }