/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 2.4.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime.js';
/**
* Insight data from a user
* @export
* @interface OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
export interface OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest {
/**
*
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
id?: string;
/**
* Type of insight
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
type: OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestTypeEnum;
/**
* Source of the insight
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
source: string;
/**
* Title of the insight
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
title: string;
/**
* Description of the insight
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
description: string;
/**
* Detailed feedback content
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
feedback: string;
/**
* ID of the insight owner
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
ownerId?: string;
/**
*
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
organisationId: string;
/**
*
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
workspaceId: string;
/**
*
* @type {boolean}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest
*/
seen?: boolean;
}
/**
* @export
*/
export const OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestTypeEnum = {
Feedback: 'Feedback',
Bug: 'Bug',
FeatureRequest: 'FeatureRequest'
} as const;
export type OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestTypeEnum = typeof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestTypeEnum[keyof typeof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestTypeEnum];
/**
* Check if a given object implements the OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest interface.
*/
export function instanceOfOrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest(value: object): value is OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest {
if (!('type' in value) || value['type'] === undefined) return false;
if (!('source' in value) || value['source'] === undefined) return false;
if (!('title' in value) || value['title'] === undefined) return false;
if (!('description' in value) || value['description'] === undefined) return false;
if (!('feedback' in value) || value['feedback'] === undefined) return false;
if (!('organisationId' in value) || value['organisationId'] === undefined) return false;
if (!('workspaceId' in value) || value['workspaceId'] === undefined) return false;
return true;
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestFromJSON(json: any): OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest {
return OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestFromJSONTyped(json, false);
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'type': json['type'],
'source': json['source'],
'title': json['title'],
'description': json['description'],
'feedback': json['feedback'],
'ownerId': json['ownerId'] == null ? undefined : json['ownerId'],
'organisationId': json['organisationId'],
'workspaceId': json['workspaceId'],
'seen': json['seen'] == null ? undefined : json['seen'],
};
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestToJSON(json: any): OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest {
return OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestToJSONTyped(json, false);
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequestToJSONTyped(value?: OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPostRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': value['type'],
'source': value['source'],
'title': value['title'],
'description': value['description'],
'feedback': value['feedback'],
'ownerId': value['ownerId'],
'organisationId': value['organisationId'],
'workspaceId': value['workspaceId'],
'seen': value['seen'],
};
}