/* 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 UpdateDevicePreviewFeedbackOptions */ export interface UpdateDevicePreviewFeedbackOptions { /** * * @type {string} * @memberof UpdateDevicePreviewFeedbackOptions */ status?: UpdateDevicePreviewFeedbackOptionsStatusEnum; /** * * @type {number} * @memberof UpdateDevicePreviewFeedbackOptions */ rating?: number; /** * * @type {string} * @memberof UpdateDevicePreviewFeedbackOptions */ title?: string; /** * * @type {string} * @memberof UpdateDevicePreviewFeedbackOptions */ comment?: string; /** * * @type {string} * @memberof UpdateDevicePreviewFeedbackOptions */ internalNote?: string; /** * * @type {boolean} * @memberof UpdateDevicePreviewFeedbackOptions */ appendInternalNote?: boolean; /** * * @type {string} * @memberof UpdateDevicePreviewFeedbackOptions */ sessionId?: string; /** * * @type {string} * @memberof UpdateDevicePreviewFeedbackOptions */ liveViewUrl?: string; /** * * @type {{ [key: string]: string; }} * @memberof UpdateDevicePreviewFeedbackOptions */ metadata?: { [key: string]: string }; } /** * @export * @enum {string} */ export enum UpdateDevicePreviewFeedbackOptionsStatusEnum { OPEN = 'OPEN', ACKNOWLEDGED = 'ACKNOWLEDGED', RESOLVED = 'RESOLVED', DISMISSED = 'DISMISSED', } export function UpdateDevicePreviewFeedbackOptionsFromJSON( json: any ): UpdateDevicePreviewFeedbackOptions { return UpdateDevicePreviewFeedbackOptionsFromJSONTyped(json, false); } export function UpdateDevicePreviewFeedbackOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): UpdateDevicePreviewFeedbackOptions { if (json === undefined || json === null) { return json; } return { status: !exists(json, 'status') ? undefined : json['status'], rating: !exists(json, 'rating') ? undefined : json['rating'], title: !exists(json, 'title') ? undefined : json['title'], comment: !exists(json, 'comment') ? undefined : json['comment'], internalNote: !exists(json, 'internalNote') ? undefined : json['internalNote'], appendInternalNote: !exists(json, 'appendInternalNote') ? undefined : json['appendInternalNote'], sessionId: !exists(json, 'sessionId') ? undefined : json['sessionId'], liveViewUrl: !exists(json, 'liveViewUrl') ? undefined : json['liveViewUrl'], metadata: !exists(json, 'metadata') ? undefined : json['metadata'], }; } export function UpdateDevicePreviewFeedbackOptionsToJSON( value?: UpdateDevicePreviewFeedbackOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { status: value.status, rating: value.rating, title: value.title, comment: value.comment, internalNote: value.internalNote, appendInternalNote: value.appendInternalNote, sessionId: value.sessionId, liveViewUrl: value.liveViewUrl, metadata: value.metadata, }; }