// tslint:disable /** * 3Di API * 3Di simulation API (latest stable version: v3) Framework release: 3.0.1 3Di core release: 2.3.0.dev0 deployed on: 10:42AM (UTC) on October 04, 2022 * * The version of the OpenAPI document: v3 * Contact: info@nelen-schuurmans.nl * * 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'; import { Point, PointFromJSON, PointToJSON, } from './'; /** * * @export * @interface TimeseriesLateral */ export interface TimeseriesLateral { /** * * @type {string} * @memberof TimeseriesLateral */ readonly url?: string; /** * * @type {string} * @memberof TimeseriesLateral */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof TimeseriesLateral */ offset: number; /** * * @type {boolean} * @memberof TimeseriesLateral */ interpolate?: boolean; /** * Timeseries provided as a nested list. The inner list consists of exactly 2 values: timestamp, value * @type {Array>} * @memberof TimeseriesLateral */ values: Array>; /** * \'m3/s\' (only option for now) * @type {string} * @memberof TimeseriesLateral */ units: TimeseriesLateralUnitsEnum; /** * * @type {Point} * @memberof TimeseriesLateral */ point?: Point; /** * * @type {number} * @memberof TimeseriesLateral */ connectionNode?: number | null; /** * * @type {string} * @memberof TimeseriesLateral */ readonly state?: TimeseriesLateralStateEnum; /** * * @type {object} * @memberof TimeseriesLateral */ readonly stateDetail?: object; /** * * @type {number} * @memberof TimeseriesLateral */ readonly gridId?: number; /** * * @type {number} * @memberof TimeseriesLateral */ readonly id?: number; /** * * @type {string} * @memberof TimeseriesLateral */ readonly uid?: string; } export function TimeseriesLateralFromJSON(json: any): TimeseriesLateral { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': json['offset'], 'interpolate': !exists(json, 'interpolate') ? undefined : json['interpolate'], 'values': json['values'], 'units': json['units'], 'point': !exists(json, 'point') ? undefined : PointFromJSON(json['point']), 'connectionNode': !exists(json, 'connection_node') ? undefined : json['connection_node'], 'state': !exists(json, 'state') ? undefined : json['state'], 'stateDetail': !exists(json, 'state_detail') ? undefined : json['state_detail'], 'gridId': !exists(json, 'grid_id') ? undefined : json['grid_id'], 'id': !exists(json, 'id') ? undefined : json['id'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], }; } export function TimeseriesLateralToJSON(value?: TimeseriesLateral): any { if (value === undefined) { return undefined; } return { 'offset': value.offset, 'interpolate': value.interpolate, 'values': value.values, 'units': value.units, 'point': PointToJSON(value.point), 'connection_node': value.connectionNode, }; } /** * @export * @enum {string} */ export enum TimeseriesLateralUnitsEnum { M3S = 'm3/s' } /** * @export * @enum {string} */ export enum TimeseriesLateralStateEnum { Processing = 'processing', Valid = 'valid', Invalid = 'invalid' }