/* 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 CreateDevicePreviewFeedbackOptions */ export interface CreateDevicePreviewFeedbackOptions { /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ source: CreateDevicePreviewFeedbackOptionsSourceEnum; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ category: CreateDevicePreviewFeedbackOptionsCategoryEnum; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ status?: CreateDevicePreviewFeedbackOptionsStatusEnum; /** * * @type {number} * @memberof CreateDevicePreviewFeedbackOptions */ rating?: number; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ runId?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ targetId?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ screenshotId?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ provider?: CreateDevicePreviewFeedbackOptionsProviderEnum; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ title?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ comment?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ internalNote?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ sessionId?: string; /** * * @type {string} * @memberof CreateDevicePreviewFeedbackOptions */ liveViewUrl?: string; /** * * @type {{ [key: string]: string; }} * @memberof CreateDevicePreviewFeedbackOptions */ metadata?: { [key: string]: string }; } /** * @export * @enum {string} */ export enum CreateDevicePreviewFeedbackOptionsSourceEnum { API_SERVICE = 'API_SERVICE', LAB_USER = 'LAB_USER', END_USER = 'END_USER', SYSTEM = 'SYSTEM', } /** * @export * @enum {string} */ export enum CreateDevicePreviewFeedbackOptionsCategoryEnum { GENERAL = 'GENERAL', RUN_QUALITY = 'RUN_QUALITY', SCREENSHOT_QUALITY = 'SCREENSHOT_QUALITY', PROVIDER_ISSUE = 'PROVIDER_ISSUE', BUG_REPORT = 'BUG_REPORT', FEATURE_REQUEST = 'FEATURE_REQUEST', NOTE = 'NOTE', } /** * @export * @enum {string} */ export enum CreateDevicePreviewFeedbackOptionsStatusEnum { OPEN = 'OPEN', ACKNOWLEDGED = 'ACKNOWLEDGED', RESOLVED = 'RESOLVED', DISMISSED = 'DISMISSED', } /** * @export * @enum {string} */ export enum CreateDevicePreviewFeedbackOptionsProviderEnum { GMAIL = 'GMAIL', OUTLOOK = 'OUTLOOK', YAHOO = 'YAHOO', } export function CreateDevicePreviewFeedbackOptionsFromJSON( json: any ): CreateDevicePreviewFeedbackOptions { return CreateDevicePreviewFeedbackOptionsFromJSONTyped(json, false); } export function CreateDevicePreviewFeedbackOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): CreateDevicePreviewFeedbackOptions { if (json === undefined || json === null) { return json; } return { source: json['source'], category: json['category'], status: !exists(json, 'status') ? undefined : json['status'], rating: !exists(json, 'rating') ? undefined : json['rating'], runId: !exists(json, 'runId') ? undefined : json['runId'], targetId: !exists(json, 'targetId') ? undefined : json['targetId'], screenshotId: !exists(json, 'screenshotId') ? undefined : json['screenshotId'], provider: !exists(json, 'provider') ? undefined : json['provider'], title: !exists(json, 'title') ? undefined : json['title'], comment: !exists(json, 'comment') ? undefined : json['comment'], internalNote: !exists(json, 'internalNote') ? undefined : json['internalNote'], sessionId: !exists(json, 'sessionId') ? undefined : json['sessionId'], liveViewUrl: !exists(json, 'liveViewUrl') ? undefined : json['liveViewUrl'], metadata: !exists(json, 'metadata') ? undefined : json['metadata'], }; } export function CreateDevicePreviewFeedbackOptionsToJSON( value?: CreateDevicePreviewFeedbackOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { source: value.source, category: value.category, status: value.status, rating: value.rating, runId: value.runId, targetId: value.targetId, screenshotId: value.screenshotId, provider: value.provider, title: value.title, comment: value.comment, internalNote: value.internalNote, sessionId: value.sessionId, liveViewUrl: value.liveViewUrl, metadata: value.metadata, }; }