UNPKG

cwmsjs

Version:

CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps

116 lines (106 loc) 3.1 kB
/* tslint:disable */ /* eslint-disable */ /** * CWMS Data API * CWMS REST API for Data Retrieval * * The version of the OpenAPI document: 2.3.2-2025.03.19 * * * 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'; import type { Extents } from './Extents'; import { ExtentsFromJSON, ExtentsFromJSONTyped, ExtentsToJSON, } from './Extents'; /** * * @export * @interface TimeSeriesCatalogEntry */ export interface TimeSeriesCatalogEntry { /** * * @type {string} * @memberof TimeSeriesCatalogEntry */ office?: string; /** * * @type {string} * @memberof TimeSeriesCatalogEntry */ name?: string; /** * * @type {string} * @memberof TimeSeriesCatalogEntry */ units?: string; /** * * @type {string} * @memberof TimeSeriesCatalogEntry */ interval?: string; /** * Offset from top of interval * @type {number} * @memberof TimeSeriesCatalogEntry */ intervalOffset?: number; /** * Only on 21.1.1 Database. The timezone the Interval Offset is from. * @type {string} * @memberof TimeSeriesCatalogEntry */ timeZone?: string; /** * * @type {Array<Extents>} * @memberof TimeSeriesCatalogEntry */ extents?: Array<Extents>; } /** * Check if a given object implements the TimeSeriesCatalogEntry interface. */ export function instanceOfTimeSeriesCatalogEntry(value: object): boolean { return true; } export function TimeSeriesCatalogEntryFromJSON(json: any): TimeSeriesCatalogEntry { return TimeSeriesCatalogEntryFromJSONTyped(json, false); } export function TimeSeriesCatalogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeSeriesCatalogEntry { if (json == null) { return json; } return { 'office': json['office'] == null ? undefined : json['office'], 'name': json['name'] == null ? undefined : json['name'], 'units': json['units'] == null ? undefined : json['units'], 'interval': json['interval'] == null ? undefined : json['interval'], 'intervalOffset': json['interval-offset'] == null ? undefined : json['interval-offset'], 'timeZone': json['time-zone'] == null ? undefined : json['time-zone'], 'extents': json['extents'] == null ? undefined : ((json['extents'] as Array<any>).map(ExtentsFromJSON)), }; } export function TimeSeriesCatalogEntryToJSON(value?: TimeSeriesCatalogEntry | null): any { if (value == null) { return value; } return { 'office': value['office'], 'name': value['name'], 'units': value['units'], 'interval': value['interval'], 'interval-offset': value['intervalOffset'], 'time-zone': value['timeZone'], 'extents': value['extents'] == null ? undefined : ((value['extents'] as Array<any>).map(ExtentsToJSON)), }; }