UNPKG

nws-client-js

Version:

JavaScript client for the National Weather Service API

972 lines 273 kB
"use strict"; /// <reference path="./custom.d.ts" /> // tslint:disable /** * weather.gov API * weather.gov API * * OpenAPI spec version: 1.8.5 * * * NOTE: This file is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the file manually. */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiFetchParamCreator = exports.Zone = exports.StateTerritoryCode = exports.QuantitativeValue = exports.Point = exports.OfficeAddress = exports.Office = exports.ObservationStation = exports.Observation = exports.NWSZoneType = exports.NWSForecastOfficeId = exports.MetarSkyCoverage = exports.MetarPhenomenon = exports.MarineRegionCode = exports.MarineAreaCode = exports.LandRegionCode = exports.GridpointWeatherValue = exports.GridpointForecastUnits = exports.GridpointForecastPeriod = exports.GeoJsonFeatureCollection = exports.GeoJsonFeature = exports.AlertUrgency = exports.AlertStatus = exports.AlertSeverity = exports.AlertMessageType = exports.AlertCertainty = exports.Alert = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0; var url = require("url"); require("isomorphic-fetch"); var isomorphicFetch = fetch; var BASE_PATH = "https://api.weather.gov".replace(/\/+$/, ""); /** * * @export */ exports.COLLECTION_FORMATS = { csv: ",", ssv: " ", tsv: "\t", pipes: "|", }; /** * * @export * @class BaseAPI */ var BaseAPI = /** @class */ (function () { function BaseAPI(configuration, basePath, fetch) { if (basePath === void 0) { basePath = BASE_PATH; } if (fetch === void 0) { fetch = isomorphicFetch; } this.basePath = basePath; this.fetch = fetch; if (configuration) { this.configuration = configuration; this.basePath = configuration.basePath || this.basePath; } } return BaseAPI; }()); exports.BaseAPI = BaseAPI; /** * * @export * @class RequiredError * @extends {Error} */ var RequiredError = /** @class */ (function (_super) { __extends(RequiredError, _super); function RequiredError(field, msg) { var _this = _super.call(this, msg) || this; _this.field = field; return _this; } return RequiredError; }(Error)); exports.RequiredError = RequiredError; /** * @export * @namespace Alert */ var Alert; (function (Alert) { /** * @export * @enum {string} */ var CategoryEnum; (function (CategoryEnum) { CategoryEnum[CategoryEnum["Met"] = "Met"] = "Met"; CategoryEnum[CategoryEnum["Geo"] = "Geo"] = "Geo"; CategoryEnum[CategoryEnum["Safety"] = "Safety"] = "Safety"; CategoryEnum[CategoryEnum["Security"] = "Security"] = "Security"; CategoryEnum[CategoryEnum["Rescue"] = "Rescue"] = "Rescue"; CategoryEnum[CategoryEnum["Fire"] = "Fire"] = "Fire"; CategoryEnum[CategoryEnum["Health"] = "Health"] = "Health"; CategoryEnum[CategoryEnum["Env"] = "Env"] = "Env"; CategoryEnum[CategoryEnum["Transport"] = "Transport"] = "Transport"; CategoryEnum[CategoryEnum["Infra"] = "Infra"] = "Infra"; CategoryEnum[CategoryEnum["CBRNE"] = "CBRNE"] = "CBRNE"; CategoryEnum[CategoryEnum["Other"] = "Other"] = "Other"; })(CategoryEnum = Alert.CategoryEnum || (Alert.CategoryEnum = {})); /** * @export * @enum {string} */ var ResponseEnum; (function (ResponseEnum) { ResponseEnum[ResponseEnum["Shelter"] = "Shelter"] = "Shelter"; ResponseEnum[ResponseEnum["Evacuate"] = "Evacuate"] = "Evacuate"; ResponseEnum[ResponseEnum["Prepare"] = "Prepare"] = "Prepare"; ResponseEnum[ResponseEnum["Execute"] = "Execute"] = "Execute"; ResponseEnum[ResponseEnum["Avoid"] = "Avoid"] = "Avoid"; ResponseEnum[ResponseEnum["Monitor"] = "Monitor"] = "Monitor"; ResponseEnum[ResponseEnum["Assess"] = "Assess"] = "Assess"; ResponseEnum[ResponseEnum["AllClear"] = "AllClear"] = "AllClear"; ResponseEnum[ResponseEnum["None"] = "None"] = "None"; })(ResponseEnum = Alert.ResponseEnum || (Alert.ResponseEnum = {})); })(Alert = exports.Alert || (exports.Alert = {})); /** * * @export * @enum {string} */ var AlertCertainty; (function (AlertCertainty) { AlertCertainty[AlertCertainty["Observed"] = "Observed"] = "Observed"; AlertCertainty[AlertCertainty["Likely"] = "Likely"] = "Likely"; AlertCertainty[AlertCertainty["Possible"] = "Possible"] = "Possible"; AlertCertainty[AlertCertainty["Unlikely"] = "Unlikely"] = "Unlikely"; AlertCertainty[AlertCertainty["Unknown"] = "Unknown"] = "Unknown"; })(AlertCertainty = exports.AlertCertainty || (exports.AlertCertainty = {})); /** * * @export * @enum {string} */ var AlertMessageType; (function (AlertMessageType) { AlertMessageType[AlertMessageType["Alert"] = "Alert"] = "Alert"; AlertMessageType[AlertMessageType["Update"] = "Update"] = "Update"; AlertMessageType[AlertMessageType["Cancel"] = "Cancel"] = "Cancel"; AlertMessageType[AlertMessageType["Ack"] = "Ack"] = "Ack"; AlertMessageType[AlertMessageType["Error"] = "Error"] = "Error"; })(AlertMessageType = exports.AlertMessageType || (exports.AlertMessageType = {})); /** * * @export * @enum {string} */ var AlertSeverity; (function (AlertSeverity) { AlertSeverity[AlertSeverity["Extreme"] = "Extreme"] = "Extreme"; AlertSeverity[AlertSeverity["Severe"] = "Severe"] = "Severe"; AlertSeverity[AlertSeverity["Moderate"] = "Moderate"] = "Moderate"; AlertSeverity[AlertSeverity["Minor"] = "Minor"] = "Minor"; AlertSeverity[AlertSeverity["Unknown"] = "Unknown"] = "Unknown"; })(AlertSeverity = exports.AlertSeverity || (exports.AlertSeverity = {})); /** * * @export * @enum {string} */ var AlertStatus; (function (AlertStatus) { AlertStatus[AlertStatus["Actual"] = "Actual"] = "Actual"; AlertStatus[AlertStatus["Exercise"] = "Exercise"] = "Exercise"; AlertStatus[AlertStatus["System"] = "System"] = "System"; AlertStatus[AlertStatus["Test"] = "Test"] = "Test"; AlertStatus[AlertStatus["Draft"] = "Draft"] = "Draft"; })(AlertStatus = exports.AlertStatus || (exports.AlertStatus = {})); /** * * @export * @enum {string} */ var AlertUrgency; (function (AlertUrgency) { AlertUrgency[AlertUrgency["Immediate"] = "Immediate"] = "Immediate"; AlertUrgency[AlertUrgency["Expected"] = "Expected"] = "Expected"; AlertUrgency[AlertUrgency["Future"] = "Future"] = "Future"; AlertUrgency[AlertUrgency["Past"] = "Past"] = "Past"; AlertUrgency[AlertUrgency["Unknown"] = "Unknown"] = "Unknown"; })(AlertUrgency = exports.AlertUrgency || (exports.AlertUrgency = {})); /** * @export * @namespace GeoJsonFeature */ var GeoJsonFeature; (function (GeoJsonFeature) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["Feature"] = "Feature"] = "Feature"; })(TypeEnum = GeoJsonFeature.TypeEnum || (GeoJsonFeature.TypeEnum = {})); })(GeoJsonFeature = exports.GeoJsonFeature || (exports.GeoJsonFeature = {})); /** * @export * @namespace GeoJsonFeatureCollection */ var GeoJsonFeatureCollection; (function (GeoJsonFeatureCollection) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["FeatureCollection"] = "FeatureCollection"] = "FeatureCollection"; })(TypeEnum = GeoJsonFeatureCollection.TypeEnum || (GeoJsonFeatureCollection.TypeEnum = {})); })(GeoJsonFeatureCollection = exports.GeoJsonFeatureCollection || (exports.GeoJsonFeatureCollection = {})); /** * @export * @namespace GridpointForecastPeriod */ var GridpointForecastPeriod; (function (GridpointForecastPeriod) { /** * @export * @enum {string} */ var TemperatureUnitEnum; (function (TemperatureUnitEnum) { TemperatureUnitEnum[TemperatureUnitEnum["F"] = "F"] = "F"; TemperatureUnitEnum[TemperatureUnitEnum["C"] = "C"] = "C"; })(TemperatureUnitEnum = GridpointForecastPeriod.TemperatureUnitEnum || (GridpointForecastPeriod.TemperatureUnitEnum = {})); /** * @export * @enum {string} */ var TemperatureTrendEnum; (function (TemperatureTrendEnum) { TemperatureTrendEnum[TemperatureTrendEnum["Rising"] = "rising"] = "Rising"; TemperatureTrendEnum[TemperatureTrendEnum["Falling"] = "falling"] = "Falling"; })(TemperatureTrendEnum = GridpointForecastPeriod.TemperatureTrendEnum || (GridpointForecastPeriod.TemperatureTrendEnum = {})); /** * @export * @enum {string} */ var WindDirectionEnum; (function (WindDirectionEnum) { WindDirectionEnum[WindDirectionEnum["N"] = "N"] = "N"; WindDirectionEnum[WindDirectionEnum["NNE"] = "NNE"] = "NNE"; WindDirectionEnum[WindDirectionEnum["NE"] = "NE"] = "NE"; WindDirectionEnum[WindDirectionEnum["ENE"] = "ENE"] = "ENE"; WindDirectionEnum[WindDirectionEnum["E"] = "E"] = "E"; WindDirectionEnum[WindDirectionEnum["ESE"] = "ESE"] = "ESE"; WindDirectionEnum[WindDirectionEnum["SE"] = "SE"] = "SE"; WindDirectionEnum[WindDirectionEnum["SSE"] = "SSE"] = "SSE"; WindDirectionEnum[WindDirectionEnum["S"] = "S"] = "S"; WindDirectionEnum[WindDirectionEnum["SSW"] = "SSW"] = "SSW"; WindDirectionEnum[WindDirectionEnum["SW"] = "SW"] = "SW"; WindDirectionEnum[WindDirectionEnum["WSW"] = "WSW"] = "WSW"; WindDirectionEnum[WindDirectionEnum["W"] = "W"] = "W"; WindDirectionEnum[WindDirectionEnum["WNW"] = "WNW"] = "WNW"; WindDirectionEnum[WindDirectionEnum["NW"] = "NW"] = "NW"; WindDirectionEnum[WindDirectionEnum["NNW"] = "NNW"] = "NNW"; })(WindDirectionEnum = GridpointForecastPeriod.WindDirectionEnum || (GridpointForecastPeriod.WindDirectionEnum = {})); })(GridpointForecastPeriod = exports.GridpointForecastPeriod || (exports.GridpointForecastPeriod = {})); /** * Denotes the units used in the textual portions of the forecast. * @export * @enum {string} */ var GridpointForecastUnits; (function (GridpointForecastUnits) { GridpointForecastUnits[GridpointForecastUnits["Us"] = "us"] = "Us"; GridpointForecastUnits[GridpointForecastUnits["Si"] = "si"] = "Si"; })(GridpointForecastUnits = exports.GridpointForecastUnits || (exports.GridpointForecastUnits = {})); /** * @export * @namespace GridpointWeatherValue */ var GridpointWeatherValue; (function (GridpointWeatherValue) { /** * @export * @enum {string} */ var CoverageEnum; (function (CoverageEnum) { CoverageEnum[CoverageEnum["Areas"] = "areas"] = "Areas"; CoverageEnum[CoverageEnum["Brief"] = "brief"] = "Brief"; CoverageEnum[CoverageEnum["Chance"] = "chance"] = "Chance"; CoverageEnum[CoverageEnum["Definite"] = "definite"] = "Definite"; CoverageEnum[CoverageEnum["Few"] = "few"] = "Few"; CoverageEnum[CoverageEnum["Frequent"] = "frequent"] = "Frequent"; CoverageEnum[CoverageEnum["Intermittent"] = "intermittent"] = "Intermittent"; CoverageEnum[CoverageEnum["Isolated"] = "isolated"] = "Isolated"; CoverageEnum[CoverageEnum["Likely"] = "likely"] = "Likely"; CoverageEnum[CoverageEnum["Numerous"] = "numerous"] = "Numerous"; CoverageEnum[CoverageEnum["Occasional"] = "occasional"] = "Occasional"; CoverageEnum[CoverageEnum["Patchy"] = "patchy"] = "Patchy"; CoverageEnum[CoverageEnum["Periods"] = "periods"] = "Periods"; CoverageEnum[CoverageEnum["Scattered"] = "scattered"] = "Scattered"; CoverageEnum[CoverageEnum["SlightChance"] = "slight_chance"] = "SlightChance"; CoverageEnum[CoverageEnum["Widespread"] = "widespread"] = "Widespread"; })(CoverageEnum = GridpointWeatherValue.CoverageEnum || (GridpointWeatherValue.CoverageEnum = {})); /** * @export * @enum {string} */ var WeatherEnum; (function (WeatherEnum) { WeatherEnum[WeatherEnum["BlowingDust"] = "blowing_dust"] = "BlowingDust"; WeatherEnum[WeatherEnum["BlowingSand"] = "blowing_sand"] = "BlowingSand"; WeatherEnum[WeatherEnum["BlowingSnow"] = "blowing_snow"] = "BlowingSnow"; WeatherEnum[WeatherEnum["Drizzle"] = "drizzle"] = "Drizzle"; WeatherEnum[WeatherEnum["Fog"] = "fog"] = "Fog"; WeatherEnum[WeatherEnum["FreezingFog"] = "freezing_fog"] = "FreezingFog"; WeatherEnum[WeatherEnum["FreezingDrizzle"] = "freezing_drizzle"] = "FreezingDrizzle"; WeatherEnum[WeatherEnum["FreezingRain"] = "freezing_rain"] = "FreezingRain"; WeatherEnum[WeatherEnum["FreezingSpray"] = "freezing_spray"] = "FreezingSpray"; WeatherEnum[WeatherEnum["Frost"] = "frost"] = "Frost"; WeatherEnum[WeatherEnum["Hail"] = "hail"] = "Hail"; WeatherEnum[WeatherEnum["Haze"] = "haze"] = "Haze"; WeatherEnum[WeatherEnum["IceCrystals"] = "ice_crystals"] = "IceCrystals"; WeatherEnum[WeatherEnum["IceFog"] = "ice_fog"] = "IceFog"; WeatherEnum[WeatherEnum["Rain"] = "rain"] = "Rain"; WeatherEnum[WeatherEnum["RainShowers"] = "rain_showers"] = "RainShowers"; WeatherEnum[WeatherEnum["Sleet"] = "sleet"] = "Sleet"; WeatherEnum[WeatherEnum["Smoke"] = "smoke"] = "Smoke"; WeatherEnum[WeatherEnum["Snow"] = "snow"] = "Snow"; WeatherEnum[WeatherEnum["SnowShowers"] = "snow_showers"] = "SnowShowers"; WeatherEnum[WeatherEnum["Thunderstorms"] = "thunderstorms"] = "Thunderstorms"; WeatherEnum[WeatherEnum["VolcanicAsh"] = "volcanic_ash"] = "VolcanicAsh"; WeatherEnum[WeatherEnum["WaterSpouts"] = "water_spouts"] = "WaterSpouts"; })(WeatherEnum = GridpointWeatherValue.WeatherEnum || (GridpointWeatherValue.WeatherEnum = {})); /** * @export * @enum {string} */ var IntensityEnum; (function (IntensityEnum) { IntensityEnum[IntensityEnum["VeryLight"] = "very_light"] = "VeryLight"; IntensityEnum[IntensityEnum["Light"] = "light"] = "Light"; IntensityEnum[IntensityEnum["Moderate"] = "moderate"] = "Moderate"; IntensityEnum[IntensityEnum["Heavy"] = "heavy"] = "Heavy"; })(IntensityEnum = GridpointWeatherValue.IntensityEnum || (GridpointWeatherValue.IntensityEnum = {})); /** * @export * @enum {string} */ var AttributesEnum; (function (AttributesEnum) { AttributesEnum[AttributesEnum["DamagingWind"] = "damaging_wind"] = "DamagingWind"; AttributesEnum[AttributesEnum["DryThunderstorms"] = "dry_thunderstorms"] = "DryThunderstorms"; AttributesEnum[AttributesEnum["Flooding"] = "flooding"] = "Flooding"; AttributesEnum[AttributesEnum["GustyWind"] = "gusty_wind"] = "GustyWind"; AttributesEnum[AttributesEnum["HeavyRain"] = "heavy_rain"] = "HeavyRain"; AttributesEnum[AttributesEnum["LargeHail"] = "large_hail"] = "LargeHail"; AttributesEnum[AttributesEnum["SmallHail"] = "small_hail"] = "SmallHail"; AttributesEnum[AttributesEnum["Tornadoes"] = "tornadoes"] = "Tornadoes"; })(AttributesEnum = GridpointWeatherValue.AttributesEnum || (GridpointWeatherValue.AttributesEnum = {})); })(GridpointWeatherValue = exports.GridpointWeatherValue || (exports.GridpointWeatherValue = {})); /** * Land region code. These correspond to the six NWS regional headquarters: * AR: Alaska Region * CR: Central Region * ER: Eastern Region * PR: Pacific Region * SR: Southern Region * WR: Western Region * @export * @enum {string} */ var LandRegionCode; (function (LandRegionCode) { LandRegionCode[LandRegionCode["AR"] = "AR"] = "AR"; LandRegionCode[LandRegionCode["CR"] = "CR"] = "CR"; LandRegionCode[LandRegionCode["ER"] = "ER"] = "ER"; LandRegionCode[LandRegionCode["PR"] = "PR"] = "PR"; LandRegionCode[LandRegionCode["SR"] = "SR"] = "SR"; LandRegionCode[LandRegionCode["WR"] = "WR"] = "WR"; })(LandRegionCode = exports.LandRegionCode || (exports.LandRegionCode = {})); /** * Marine area code as defined in NWS Directive 10-302: * AM: Western North Atlantic Ocean and along U.S. East Coast south of Currituck Beach Light NC following the coastline into Gulf of Mexico to Ocean Reef FL including the Caribbean * AN: Western North Atlantic Ocean and along U.S. East Coast from Canadian border south to Currituck Beach Light NC * GM: Gulf of Mexico and along the U.S. Gulf Coast from the Mexican border to Ocean Reef FL * LC: Lake St. Clair * LE: Lake Erie * LH: Lake Huron * LM: Lake Michigan * LO: Lake Ontario * LS: Lake Superior * PH: Central Pacific Ocean including Hawaiian waters * PK: North Pacific Ocean near Alaska and along Alaska coastline including the Bering Sea and the Gulf of Alaska * PM: Western Pacific Ocean including Mariana Island waters * PS: South Central Pacific Ocean including American Samoa waters * PZ: Eastern North Pacific Ocean and along U.S. West Coast from Canadian border to Mexican border * SL: St. Lawrence River above St. Regis * @export * @enum {string} */ var MarineAreaCode; (function (MarineAreaCode) { MarineAreaCode[MarineAreaCode["AM"] = "AM"] = "AM"; MarineAreaCode[MarineAreaCode["AN"] = "AN"] = "AN"; MarineAreaCode[MarineAreaCode["GM"] = "GM"] = "GM"; MarineAreaCode[MarineAreaCode["LC"] = "LC"] = "LC"; MarineAreaCode[MarineAreaCode["LE"] = "LE"] = "LE"; MarineAreaCode[MarineAreaCode["LH"] = "LH"] = "LH"; MarineAreaCode[MarineAreaCode["LM"] = "LM"] = "LM"; MarineAreaCode[MarineAreaCode["LO"] = "LO"] = "LO"; MarineAreaCode[MarineAreaCode["LS"] = "LS"] = "LS"; MarineAreaCode[MarineAreaCode["PH"] = "PH"] = "PH"; MarineAreaCode[MarineAreaCode["PK"] = "PK"] = "PK"; MarineAreaCode[MarineAreaCode["PM"] = "PM"] = "PM"; MarineAreaCode[MarineAreaCode["PS"] = "PS"] = "PS"; MarineAreaCode[MarineAreaCode["PZ"] = "PZ"] = "PZ"; MarineAreaCode[MarineAreaCode["SL"] = "SL"] = "SL"; })(MarineAreaCode = exports.MarineAreaCode || (exports.MarineAreaCode = {})); /** * Marine region code. These are groups of marine areas combined. * AL: Alaska waters (PK) * AT: Atlantic Ocean (AM, AN) * GL: Great Lakes (LC, LE, LH, LM, LO, LS, SL) * GM: Gulf of Mexico (GM) * PA: Eastern Pacific Ocean and U.S. West Coast (PZ) * PI: Central and Western Pacific (PH, PM, PS) * @export * @enum {string} */ var MarineRegionCode; (function (MarineRegionCode) { MarineRegionCode[MarineRegionCode["AL"] = "AL"] = "AL"; MarineRegionCode[MarineRegionCode["AT"] = "AT"] = "AT"; MarineRegionCode[MarineRegionCode["GL"] = "GL"] = "GL"; MarineRegionCode[MarineRegionCode["GM"] = "GM"] = "GM"; MarineRegionCode[MarineRegionCode["PA"] = "PA"] = "PA"; MarineRegionCode[MarineRegionCode["PI"] = "PI"] = "PI"; })(MarineRegionCode = exports.MarineRegionCode || (exports.MarineRegionCode = {})); /** * @export * @namespace MetarPhenomenon */ var MetarPhenomenon; (function (MetarPhenomenon) { /** * @export * @enum {string} */ var IntensityEnum; (function (IntensityEnum) { IntensityEnum[IntensityEnum["Light"] = "light"] = "Light"; IntensityEnum[IntensityEnum["Heavy"] = "heavy"] = "Heavy"; })(IntensityEnum = MetarPhenomenon.IntensityEnum || (MetarPhenomenon.IntensityEnum = {})); /** * @export * @enum {string} */ var ModifierEnum; (function (ModifierEnum) { ModifierEnum[ModifierEnum["Patches"] = "patches"] = "Patches"; ModifierEnum[ModifierEnum["Blowing"] = "blowing"] = "Blowing"; ModifierEnum[ModifierEnum["LowDrifting"] = "low_drifting"] = "LowDrifting"; ModifierEnum[ModifierEnum["Freezing"] = "freezing"] = "Freezing"; ModifierEnum[ModifierEnum["Shallow"] = "shallow"] = "Shallow"; ModifierEnum[ModifierEnum["Partial"] = "partial"] = "Partial"; ModifierEnum[ModifierEnum["Showers"] = "showers"] = "Showers"; })(ModifierEnum = MetarPhenomenon.ModifierEnum || (MetarPhenomenon.ModifierEnum = {})); /** * @export * @enum {string} */ var WeatherEnum; (function (WeatherEnum) { WeatherEnum[WeatherEnum["FogMist"] = "fog_mist"] = "FogMist"; WeatherEnum[WeatherEnum["DustStorm"] = "dust_storm"] = "DustStorm"; WeatherEnum[WeatherEnum["Dust"] = "dust"] = "Dust"; WeatherEnum[WeatherEnum["Drizzle"] = "drizzle"] = "Drizzle"; WeatherEnum[WeatherEnum["FunnelCloud"] = "funnel_cloud"] = "FunnelCloud"; WeatherEnum[WeatherEnum["Fog"] = "fog"] = "Fog"; WeatherEnum[WeatherEnum["Smoke"] = "smoke"] = "Smoke"; WeatherEnum[WeatherEnum["Hail"] = "hail"] = "Hail"; WeatherEnum[WeatherEnum["SnowPellets"] = "snow_pellets"] = "SnowPellets"; WeatherEnum[WeatherEnum["Haze"] = "haze"] = "Haze"; WeatherEnum[WeatherEnum["IceCrystals"] = "ice_crystals"] = "IceCrystals"; WeatherEnum[WeatherEnum["IcePellets"] = "ice_pellets"] = "IcePellets"; WeatherEnum[WeatherEnum["DustWhirls"] = "dust_whirls"] = "DustWhirls"; WeatherEnum[WeatherEnum["Spray"] = "spray"] = "Spray"; WeatherEnum[WeatherEnum["Rain"] = "rain"] = "Rain"; WeatherEnum[WeatherEnum["Sand"] = "sand"] = "Sand"; WeatherEnum[WeatherEnum["SnowGrains"] = "snow_grains"] = "SnowGrains"; WeatherEnum[WeatherEnum["Snow"] = "snow"] = "Snow"; WeatherEnum[WeatherEnum["Squalls"] = "squalls"] = "Squalls"; WeatherEnum[WeatherEnum["SandStorm"] = "sand_storm"] = "SandStorm"; WeatherEnum[WeatherEnum["Thunderstorms"] = "thunderstorms"] = "Thunderstorms"; WeatherEnum[WeatherEnum["Unknown"] = "unknown"] = "Unknown"; WeatherEnum[WeatherEnum["VolcanicAsh"] = "volcanic_ash"] = "VolcanicAsh"; })(WeatherEnum = MetarPhenomenon.WeatherEnum || (MetarPhenomenon.WeatherEnum = {})); })(MetarPhenomenon = exports.MetarPhenomenon || (exports.MetarPhenomenon = {})); /** * * @export * @enum {string} */ var MetarSkyCoverage; (function (MetarSkyCoverage) { MetarSkyCoverage[MetarSkyCoverage["OVC"] = "OVC"] = "OVC"; MetarSkyCoverage[MetarSkyCoverage["BKN"] = "BKN"] = "BKN"; MetarSkyCoverage[MetarSkyCoverage["SCT"] = "SCT"] = "SCT"; MetarSkyCoverage[MetarSkyCoverage["FEW"] = "FEW"] = "FEW"; MetarSkyCoverage[MetarSkyCoverage["SKC"] = "SKC"] = "SKC"; MetarSkyCoverage[MetarSkyCoverage["CLR"] = "CLR"] = "CLR"; MetarSkyCoverage[MetarSkyCoverage["VV"] = "VV"] = "VV"; })(MetarSkyCoverage = exports.MetarSkyCoverage || (exports.MetarSkyCoverage = {})); /** * Three-letter identifier for a NWS office. * @export * @enum {string} */ var NWSForecastOfficeId; (function (NWSForecastOfficeId) { NWSForecastOfficeId[NWSForecastOfficeId["AKQ"] = "AKQ"] = "AKQ"; NWSForecastOfficeId[NWSForecastOfficeId["ALY"] = "ALY"] = "ALY"; NWSForecastOfficeId[NWSForecastOfficeId["BGM"] = "BGM"] = "BGM"; NWSForecastOfficeId[NWSForecastOfficeId["BOX"] = "BOX"] = "BOX"; NWSForecastOfficeId[NWSForecastOfficeId["BTV"] = "BTV"] = "BTV"; NWSForecastOfficeId[NWSForecastOfficeId["BUF"] = "BUF"] = "BUF"; NWSForecastOfficeId[NWSForecastOfficeId["CAE"] = "CAE"] = "CAE"; NWSForecastOfficeId[NWSForecastOfficeId["CAR"] = "CAR"] = "CAR"; NWSForecastOfficeId[NWSForecastOfficeId["CHS"] = "CHS"] = "CHS"; NWSForecastOfficeId[NWSForecastOfficeId["CLE"] = "CLE"] = "CLE"; NWSForecastOfficeId[NWSForecastOfficeId["CTP"] = "CTP"] = "CTP"; NWSForecastOfficeId[NWSForecastOfficeId["GSP"] = "GSP"] = "GSP"; NWSForecastOfficeId[NWSForecastOfficeId["GYX"] = "GYX"] = "GYX"; NWSForecastOfficeId[NWSForecastOfficeId["ILM"] = "ILM"] = "ILM"; NWSForecastOfficeId[NWSForecastOfficeId["ILN"] = "ILN"] = "ILN"; NWSForecastOfficeId[NWSForecastOfficeId["LWX"] = "LWX"] = "LWX"; NWSForecastOfficeId[NWSForecastOfficeId["MHX"] = "MHX"] = "MHX"; NWSForecastOfficeId[NWSForecastOfficeId["OKX"] = "OKX"] = "OKX"; NWSForecastOfficeId[NWSForecastOfficeId["PBZ"] = "PBZ"] = "PBZ"; NWSForecastOfficeId[NWSForecastOfficeId["PHI"] = "PHI"] = "PHI"; NWSForecastOfficeId[NWSForecastOfficeId["RAH"] = "RAH"] = "RAH"; NWSForecastOfficeId[NWSForecastOfficeId["RLX"] = "RLX"] = "RLX"; NWSForecastOfficeId[NWSForecastOfficeId["RNK"] = "RNK"] = "RNK"; NWSForecastOfficeId[NWSForecastOfficeId["ABQ"] = "ABQ"] = "ABQ"; NWSForecastOfficeId[NWSForecastOfficeId["AMA"] = "AMA"] = "AMA"; NWSForecastOfficeId[NWSForecastOfficeId["BMX"] = "BMX"] = "BMX"; NWSForecastOfficeId[NWSForecastOfficeId["BRO"] = "BRO"] = "BRO"; NWSForecastOfficeId[NWSForecastOfficeId["CRP"] = "CRP"] = "CRP"; NWSForecastOfficeId[NWSForecastOfficeId["EPZ"] = "EPZ"] = "EPZ"; NWSForecastOfficeId[NWSForecastOfficeId["EWX"] = "EWX"] = "EWX"; NWSForecastOfficeId[NWSForecastOfficeId["FFC"] = "FFC"] = "FFC"; NWSForecastOfficeId[NWSForecastOfficeId["FWD"] = "FWD"] = "FWD"; NWSForecastOfficeId[NWSForecastOfficeId["HGX"] = "HGX"] = "HGX"; NWSForecastOfficeId[NWSForecastOfficeId["HUN"] = "HUN"] = "HUN"; NWSForecastOfficeId[NWSForecastOfficeId["JAN"] = "JAN"] = "JAN"; NWSForecastOfficeId[NWSForecastOfficeId["JAX"] = "JAX"] = "JAX"; NWSForecastOfficeId[NWSForecastOfficeId["KEY"] = "KEY"] = "KEY"; NWSForecastOfficeId[NWSForecastOfficeId["LCH"] = "LCH"] = "LCH"; NWSForecastOfficeId[NWSForecastOfficeId["LIX"] = "LIX"] = "LIX"; NWSForecastOfficeId[NWSForecastOfficeId["LUB"] = "LUB"] = "LUB"; NWSForecastOfficeId[NWSForecastOfficeId["LZK"] = "LZK"] = "LZK"; NWSForecastOfficeId[NWSForecastOfficeId["MAF"] = "MAF"] = "MAF"; NWSForecastOfficeId[NWSForecastOfficeId["MEG"] = "MEG"] = "MEG"; NWSForecastOfficeId[NWSForecastOfficeId["MFL"] = "MFL"] = "MFL"; NWSForecastOfficeId[NWSForecastOfficeId["MLB"] = "MLB"] = "MLB"; NWSForecastOfficeId[NWSForecastOfficeId["MOB"] = "MOB"] = "MOB"; NWSForecastOfficeId[NWSForecastOfficeId["MRX"] = "MRX"] = "MRX"; NWSForecastOfficeId[NWSForecastOfficeId["OHX"] = "OHX"] = "OHX"; NWSForecastOfficeId[NWSForecastOfficeId["OUN"] = "OUN"] = "OUN"; NWSForecastOfficeId[NWSForecastOfficeId["SHV"] = "SHV"] = "SHV"; NWSForecastOfficeId[NWSForecastOfficeId["SJT"] = "SJT"] = "SJT"; NWSForecastOfficeId[NWSForecastOfficeId["SJU"] = "SJU"] = "SJU"; NWSForecastOfficeId[NWSForecastOfficeId["TAE"] = "TAE"] = "TAE"; NWSForecastOfficeId[NWSForecastOfficeId["TBW"] = "TBW"] = "TBW"; NWSForecastOfficeId[NWSForecastOfficeId["TSA"] = "TSA"] = "TSA"; NWSForecastOfficeId[NWSForecastOfficeId["ABR"] = "ABR"] = "ABR"; NWSForecastOfficeId[NWSForecastOfficeId["APX"] = "APX"] = "APX"; NWSForecastOfficeId[NWSForecastOfficeId["ARX"] = "ARX"] = "ARX"; NWSForecastOfficeId[NWSForecastOfficeId["BIS"] = "BIS"] = "BIS"; NWSForecastOfficeId[NWSForecastOfficeId["BOU"] = "BOU"] = "BOU"; NWSForecastOfficeId[NWSForecastOfficeId["CYS"] = "CYS"] = "CYS"; NWSForecastOfficeId[NWSForecastOfficeId["DDC"] = "DDC"] = "DDC"; NWSForecastOfficeId[NWSForecastOfficeId["DLH"] = "DLH"] = "DLH"; NWSForecastOfficeId[NWSForecastOfficeId["DMX"] = "DMX"] = "DMX"; NWSForecastOfficeId[NWSForecastOfficeId["DTX"] = "DTX"] = "DTX"; NWSForecastOfficeId[NWSForecastOfficeId["DVN"] = "DVN"] = "DVN"; NWSForecastOfficeId[NWSForecastOfficeId["EAX"] = "EAX"] = "EAX"; NWSForecastOfficeId[NWSForecastOfficeId["FGF"] = "FGF"] = "FGF"; NWSForecastOfficeId[NWSForecastOfficeId["FSD"] = "FSD"] = "FSD"; NWSForecastOfficeId[NWSForecastOfficeId["GID"] = "GID"] = "GID"; NWSForecastOfficeId[NWSForecastOfficeId["GJT"] = "GJT"] = "GJT"; NWSForecastOfficeId[NWSForecastOfficeId["GLD"] = "GLD"] = "GLD"; NWSForecastOfficeId[NWSForecastOfficeId["GRB"] = "GRB"] = "GRB"; NWSForecastOfficeId[NWSForecastOfficeId["GRR"] = "GRR"] = "GRR"; NWSForecastOfficeId[NWSForecastOfficeId["ICT"] = "ICT"] = "ICT"; NWSForecastOfficeId[NWSForecastOfficeId["ILX"] = "ILX"] = "ILX"; NWSForecastOfficeId[NWSForecastOfficeId["IND"] = "IND"] = "IND"; NWSForecastOfficeId[NWSForecastOfficeId["IWX"] = "IWX"] = "IWX"; NWSForecastOfficeId[NWSForecastOfficeId["JKL"] = "JKL"] = "JKL"; NWSForecastOfficeId[NWSForecastOfficeId["LBF"] = "LBF"] = "LBF"; NWSForecastOfficeId[NWSForecastOfficeId["LMK"] = "LMK"] = "LMK"; NWSForecastOfficeId[NWSForecastOfficeId["LOT"] = "LOT"] = "LOT"; NWSForecastOfficeId[NWSForecastOfficeId["LSX"] = "LSX"] = "LSX"; NWSForecastOfficeId[NWSForecastOfficeId["MKX"] = "MKX"] = "MKX"; NWSForecastOfficeId[NWSForecastOfficeId["MPX"] = "MPX"] = "MPX"; NWSForecastOfficeId[NWSForecastOfficeId["MQT"] = "MQT"] = "MQT"; NWSForecastOfficeId[NWSForecastOfficeId["OAX"] = "OAX"] = "OAX"; NWSForecastOfficeId[NWSForecastOfficeId["PAH"] = "PAH"] = "PAH"; NWSForecastOfficeId[NWSForecastOfficeId["PUB"] = "PUB"] = "PUB"; NWSForecastOfficeId[NWSForecastOfficeId["RIW"] = "RIW"] = "RIW"; NWSForecastOfficeId[NWSForecastOfficeId["SGF"] = "SGF"] = "SGF"; NWSForecastOfficeId[NWSForecastOfficeId["TOP"] = "TOP"] = "TOP"; NWSForecastOfficeId[NWSForecastOfficeId["UNR"] = "UNR"] = "UNR"; NWSForecastOfficeId[NWSForecastOfficeId["BOI"] = "BOI"] = "BOI"; NWSForecastOfficeId[NWSForecastOfficeId["BYZ"] = "BYZ"] = "BYZ"; NWSForecastOfficeId[NWSForecastOfficeId["EKA"] = "EKA"] = "EKA"; NWSForecastOfficeId[NWSForecastOfficeId["FGZ"] = "FGZ"] = "FGZ"; NWSForecastOfficeId[NWSForecastOfficeId["GGW"] = "GGW"] = "GGW"; NWSForecastOfficeId[NWSForecastOfficeId["HNX"] = "HNX"] = "HNX"; NWSForecastOfficeId[NWSForecastOfficeId["LKN"] = "LKN"] = "LKN"; NWSForecastOfficeId[NWSForecastOfficeId["LOX"] = "LOX"] = "LOX"; NWSForecastOfficeId[NWSForecastOfficeId["MFR"] = "MFR"] = "MFR"; NWSForecastOfficeId[NWSForecastOfficeId["MSO"] = "MSO"] = "MSO"; NWSForecastOfficeId[NWSForecastOfficeId["MTR"] = "MTR"] = "MTR"; NWSForecastOfficeId[NWSForecastOfficeId["OTX"] = "OTX"] = "OTX"; NWSForecastOfficeId[NWSForecastOfficeId["PDT"] = "PDT"] = "PDT"; NWSForecastOfficeId[NWSForecastOfficeId["PIH"] = "PIH"] = "PIH"; NWSForecastOfficeId[NWSForecastOfficeId["PQR"] = "PQR"] = "PQR"; NWSForecastOfficeId[NWSForecastOfficeId["PSR"] = "PSR"] = "PSR"; NWSForecastOfficeId[NWSForecastOfficeId["REV"] = "REV"] = "REV"; NWSForecastOfficeId[NWSForecastOfficeId["SEW"] = "SEW"] = "SEW"; NWSForecastOfficeId[NWSForecastOfficeId["SGX"] = "SGX"] = "SGX"; NWSForecastOfficeId[NWSForecastOfficeId["SLC"] = "SLC"] = "SLC"; NWSForecastOfficeId[NWSForecastOfficeId["STO"] = "STO"] = "STO"; NWSForecastOfficeId[NWSForecastOfficeId["TFX"] = "TFX"] = "TFX"; NWSForecastOfficeId[NWSForecastOfficeId["TWC"] = "TWC"] = "TWC"; NWSForecastOfficeId[NWSForecastOfficeId["VEF"] = "VEF"] = "VEF"; NWSForecastOfficeId[NWSForecastOfficeId["AER"] = "AER"] = "AER"; NWSForecastOfficeId[NWSForecastOfficeId["AFC"] = "AFC"] = "AFC"; NWSForecastOfficeId[NWSForecastOfficeId["AFG"] = "AFG"] = "AFG"; NWSForecastOfficeId[NWSForecastOfficeId["AJK"] = "AJK"] = "AJK"; NWSForecastOfficeId[NWSForecastOfficeId["ALU"] = "ALU"] = "ALU"; NWSForecastOfficeId[NWSForecastOfficeId["GUM"] = "GUM"] = "GUM"; NWSForecastOfficeId[NWSForecastOfficeId["HPA"] = "HPA"] = "HPA"; NWSForecastOfficeId[NWSForecastOfficeId["HFO"] = "HFO"] = "HFO"; NWSForecastOfficeId[NWSForecastOfficeId["PPG"] = "PPG"] = "PPG"; NWSForecastOfficeId[NWSForecastOfficeId["STU"] = "STU"] = "STU"; NWSForecastOfficeId[NWSForecastOfficeId["NH1"] = "NH1"] = "NH1"; NWSForecastOfficeId[NWSForecastOfficeId["NH2"] = "NH2"] = "NH2"; NWSForecastOfficeId[NWSForecastOfficeId["ONA"] = "ONA"] = "ONA"; NWSForecastOfficeId[NWSForecastOfficeId["ONP"] = "ONP"] = "ONP"; })(NWSForecastOfficeId = exports.NWSForecastOfficeId || (exports.NWSForecastOfficeId = {})); /** * * @export * @enum {string} */ var NWSZoneType; (function (NWSZoneType) { NWSZoneType[NWSZoneType["Land"] = "land"] = "Land"; NWSZoneType[NWSZoneType["Marine"] = "marine"] = "Marine"; NWSZoneType[NWSZoneType["Forecast"] = "forecast"] = "Forecast"; NWSZoneType[NWSZoneType["Public"] = "public"] = "Public"; NWSZoneType[NWSZoneType["Coastal"] = "coastal"] = "Coastal"; NWSZoneType[NWSZoneType["Offshore"] = "offshore"] = "Offshore"; NWSZoneType[NWSZoneType["Fire"] = "fire"] = "Fire"; NWSZoneType[NWSZoneType["County"] = "county"] = "County"; })(NWSZoneType = exports.NWSZoneType || (exports.NWSZoneType = {})); /** * @export * @namespace Observation */ var Observation; (function (Observation) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["WxObservationStation"] = "wx:ObservationStation"] = "WxObservationStation"; })(TypeEnum = Observation.TypeEnum || (Observation.TypeEnum = {})); })(Observation = exports.Observation || (exports.Observation = {})); /** * @export * @namespace ObservationStation */ var ObservationStation; (function (ObservationStation) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["WxObservationStation"] = "wx:ObservationStation"] = "WxObservationStation"; })(TypeEnum = ObservationStation.TypeEnum || (ObservationStation.TypeEnum = {})); })(ObservationStation = exports.ObservationStation || (exports.ObservationStation = {})); /** * @export * @namespace Office */ var Office; (function (Office) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["GovernmentOrganization"] = "GovernmentOrganization"] = "GovernmentOrganization"; })(TypeEnum = Office.TypeEnum || (Office.TypeEnum = {})); })(Office = exports.Office || (exports.Office = {})); /** * @export * @namespace OfficeAddress */ var OfficeAddress; (function (OfficeAddress) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["PostalAddress"] = "PostalAddress"] = "PostalAddress"; })(TypeEnum = OfficeAddress.TypeEnum || (OfficeAddress.TypeEnum = {})); })(OfficeAddress = exports.OfficeAddress || (exports.OfficeAddress = {})); /** * @export * @namespace Point */ var Point; (function (Point) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["WxPoint"] = "wx:Point"] = "WxPoint"; })(TypeEnum = Point.TypeEnum || (Point.TypeEnum = {})); })(Point = exports.Point || (exports.Point = {})); /** * @export * @namespace QuantitativeValue */ var QuantitativeValue; (function (QuantitativeValue) { /** * @export * @enum {string} */ var QualityControlEnum; (function (QualityControlEnum) { QualityControlEnum[QualityControlEnum["Z"] = "Z"] = "Z"; QualityControlEnum[QualityControlEnum["C"] = "C"] = "C"; QualityControlEnum[QualityControlEnum["S"] = "S"] = "S"; QualityControlEnum[QualityControlEnum["V"] = "V"] = "V"; QualityControlEnum[QualityControlEnum["X"] = "X"] = "X"; QualityControlEnum[QualityControlEnum["Q"] = "Q"] = "Q"; QualityControlEnum[QualityControlEnum["G"] = "G"] = "G"; QualityControlEnum[QualityControlEnum["B"] = "B"] = "B"; QualityControlEnum[QualityControlEnum["T"] = "T"] = "T"; })(QualityControlEnum = QuantitativeValue.QualityControlEnum || (QuantitativeValue.QualityControlEnum = {})); })(QuantitativeValue = exports.QuantitativeValue || (exports.QuantitativeValue = {})); /** * * @export * @enum {string} */ var StateTerritoryCode; (function (StateTerritoryCode) { StateTerritoryCode[StateTerritoryCode["AL"] = "AL"] = "AL"; StateTerritoryCode[StateTerritoryCode["AK"] = "AK"] = "AK"; StateTerritoryCode[StateTerritoryCode["AS"] = "AS"] = "AS"; StateTerritoryCode[StateTerritoryCode["AR"] = "AR"] = "AR"; StateTerritoryCode[StateTerritoryCode["AZ"] = "AZ"] = "AZ"; StateTerritoryCode[StateTerritoryCode["CA"] = "CA"] = "CA"; StateTerritoryCode[StateTerritoryCode["CO"] = "CO"] = "CO"; StateTerritoryCode[StateTerritoryCode["CT"] = "CT"] = "CT"; StateTerritoryCode[StateTerritoryCode["DE"] = "DE"] = "DE"; StateTerritoryCode[StateTerritoryCode["DC"] = "DC"] = "DC"; StateTerritoryCode[StateTerritoryCode["FL"] = "FL"] = "FL"; StateTerritoryCode[StateTerritoryCode["GA"] = "GA"] = "GA"; StateTerritoryCode[StateTerritoryCode["GU"] = "GU"] = "GU"; StateTerritoryCode[StateTerritoryCode["HI"] = "HI"] = "HI"; StateTerritoryCode[StateTerritoryCode["ID"] = "ID"] = "ID"; StateTerritoryCode[StateTerritoryCode["IL"] = "IL"] = "IL"; StateTerritoryCode[StateTerritoryCode["IN"] = "IN"] = "IN"; StateTerritoryCode[StateTerritoryCode["IA"] = "IA"] = "IA"; StateTerritoryCode[StateTerritoryCode["KS"] = "KS"] = "KS"; StateTerritoryCode[StateTerritoryCode["KY"] = "KY"] = "KY"; StateTerritoryCode[StateTerritoryCode["LA"] = "LA"] = "LA"; StateTerritoryCode[StateTerritoryCode["ME"] = "ME"] = "ME"; StateTerritoryCode[StateTerritoryCode["MD"] = "MD"] = "MD"; StateTerritoryCode[StateTerritoryCode["MA"] = "MA"] = "MA"; StateTerritoryCode[StateTerritoryCode["MI"] = "MI"] = "MI"; StateTerritoryCode[StateTerritoryCode["MN"] = "MN"] = "MN"; StateTerritoryCode[StateTerritoryCode["MS"] = "MS"] = "MS"; StateTerritoryCode[StateTerritoryCode["MO"] = "MO"] = "MO"; StateTerritoryCode[StateTerritoryCode["MT"] = "MT"] = "MT"; StateTerritoryCode[StateTerritoryCode["NE"] = "NE"] = "NE"; StateTerritoryCode[StateTerritoryCode["NV"] = "NV"] = "NV"; StateTerritoryCode[StateTerritoryCode["NH"] = "NH"] = "NH"; StateTerritoryCode[StateTerritoryCode["NJ"] = "NJ"] = "NJ"; StateTerritoryCode[StateTerritoryCode["NM"] = "NM"] = "NM"; StateTerritoryCode[StateTerritoryCode["NY"] = "NY"] = "NY"; StateTerritoryCode[StateTerritoryCode["NC"] = "NC"] = "NC"; StateTerritoryCode[StateTerritoryCode["ND"] = "ND"] = "ND"; StateTerritoryCode[StateTerritoryCode["OH"] = "OH"] = "OH"; StateTerritoryCode[StateTerritoryCode["OK"] = "OK"] = "OK"; StateTerritoryCode[StateTerritoryCode["OR"] = "OR"] = "OR"; StateTerritoryCode[StateTerritoryCode["PA"] = "PA"] = "PA"; StateTerritoryCode[StateTerritoryCode["PR"] = "PR"] = "PR"; StateTerritoryCode[StateTerritoryCode["RI"] = "RI"] = "RI"; StateTerritoryCode[StateTerritoryCode["SC"] = "SC"] = "SC"; StateTerritoryCode[StateTerritoryCode["SD"] = "SD"] = "SD"; StateTerritoryCode[StateTerritoryCode["TN"] = "TN"] = "TN"; StateTerritoryCode[StateTerritoryCode["TX"] = "TX"] = "TX"; StateTerritoryCode[StateTerritoryCode["UT"] = "UT"] = "UT"; StateTerritoryCode[StateTerritoryCode["VT"] = "VT"] = "VT"; StateTerritoryCode[StateTerritoryCode["VI"] = "VI"] = "VI"; StateTerritoryCode[StateTerritoryCode["VA"] = "VA"] = "VA"; StateTerritoryCode[StateTerritoryCode["WA"] = "WA"] = "WA"; StateTerritoryCode[StateTerritoryCode["WV"] = "WV"] = "WV"; StateTerritoryCode[StateTerritoryCode["WI"] = "WI"] = "WI"; StateTerritoryCode[StateTerritoryCode["WY"] = "WY"] = "WY"; StateTerritoryCode[StateTerritoryCode["MP"] = "MP"] = "MP"; StateTerritoryCode[StateTerritoryCode["PW"] = "PW"] = "PW"; StateTerritoryCode[StateTerritoryCode["FM"] = "FM"] = "FM"; StateTerritoryCode[StateTerritoryCode["MH"] = "MH"] = "MH"; })(StateTerritoryCode = exports.StateTerritoryCode || (exports.StateTerritoryCode = {})); /** * @export * @namespace Zone */ var Zone; (function (Zone) { /** * @export * @enum {string} */ var TypeEnum; (function (TypeEnum) { TypeEnum[TypeEnum["WxZone"] = "wx:Zone"] = "WxZone"; })(TypeEnum = Zone.TypeEnum || (Zone.TypeEnum = {})); })(Zone = exports.Zone || (exports.Zone = {})); /** * DefaultApi - fetch parameter creator * @export */ var DefaultApiFetchParamCreator = function (configuration) { return { /** * Returns all currently active alerts * @param {Array<string>} [status] Status (actual, exercise, system, test, draft) * @param {Array<string>} [messageType] Message type (alert, update, cancel) * @param {Array<string>} [event] Event name * @param {Array<string>} [code] Event code * @param {Array<AreaCode>} [area] State/territory code or marine area code This parameter is incompatible with the following parameters: point, region, region_type, zone * @param {PointString} [point] Point (latitude,longitude) This parameter is incompatible with the following parameters: area, region, region_type, zone * @param {Array<MarineRegionCode>} [region] Marine region code This parameter is incompatible with the following parameters: area, point, region_type, zone * @param {string} [regionType] Region type (land or marine) This parameter is incompatible with the following parameters: area, point, region, zone * @param {Array<NWSZoneID>} [zone] Zone ID (forecast or county) This parameter is incompatible with the following parameters: area, point, region, region_type * @param {Array<AlertUrgency>} [urgency] Urgency (immediate, expected, future, past, unknown) * @param {Array<AlertSeverity>} [severity] Severity (extreme, severe, moderate, minor, unknown) * @param {Array<AlertCertainty>} [certainty] Certainty (observed, likely, possible, unlikely, unknown) * @param {number} [limit] Limit * @param {*} [options] Override http request option. * @throws {RequiredError} */ alertsActive: function (status, messageType, event, code, area, point, region, regionType, zone, urgency, severity, certainty, limit, options) { if (options === void 0) { options = {}; } var localVarPath = "/alerts/active"; var localVarUrlObj = url.parse(localVarPath, true); var localVarRequestOptions = Object.assign({ method: "GET" }, options); var localVarHeaderParameter = {}; var localVarQueryParameter = {}; // authentication userAgent required if (configuration && configuration.apiKey) { var localVarApiKeyValue = typeof configuration.apiKey === "function" ? configuration.apiKey("User-Agent") : configuration.apiKey; localVarHeaderParameter["User-Agent"] = localVarApiKeyValue; } if (status) { localVarQueryParameter["status"] = status.join(exports.COLLECTION_FORMATS["csv"]); } if (messageType) { localVarQueryParameter["message_type"] = messageType.join(exports.COLLECTION_FORMATS["csv"]); } if (event) { localVarQueryParameter["event"] = event.join(exports.COLLECTION_FORMATS["csv"]); } if (code) { localVarQueryParameter["code"] = code.join(exports.COLLECTION_FORMATS["csv"]); } if (area) { localVarQueryParameter["area"] = area.join(exports.COLLECTION_FORMATS["csv"]); } if (point !== undefined) { localVarQueryParameter["point"] = point; } if (region) { localVarQueryParameter["region"] = region.join(exports.COLLECTION_FORMATS["csv"]); } if (regionType !== undefined) { localVarQueryParameter["region_type"] = regionType; } if (zone) { localVarQueryParameter["zone"] = zone.join(exports.COLLECTION_FORMATS["csv"]); } if (urgency) { localVarQueryParameter["urgency"] = urgency.join(exports.COLLECTION_FORMATS["csv"]); } if (severity) { localVarQueryParameter["severity"] = severity.join(exports.COLLECTION_FORMATS["csv"]); } if (certainty) { localVarQueryParameter["certainty"] = certainty.join(exports.COLLECTION_FORMATS["csv"]); } if (limit !== undefined) { localVarQueryParameter["limit"] = limit; } localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 localVarUrlObj.search = null; localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); return { url: url.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns active alerts for the given area (state or marine area) * @param {AreaCode} area State/area ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ alertsActiveArea: function (area, options) { if (options === void 0) { options = {}; } // verify required parameter 'area' is not null or undefined if (area === null || area === undefined) { throw new RequiredError("area", "Required parameter area was null or undefined when calling alertsActiveArea."); } var localVarPath = "/alerts/active/area/{area}".replace("{".concat("area", "}"), encodeURIComponent(String(area))); var localVarUrlObj = url.parse(localVarPath, true); var localVarRequestOptions = Object.assign({ method: "GET" }, options); var localVarHeaderParameter = {}; var localVarQueryParameter = {}; // authentication userAgent required if (configuration && configuration.apiKey) { var localVarApiKeyValue = typeof configuration.apiKey === "function" ? configuration.apiKey("User-Agent") : configuration.apiKey; localVarHeaderParameter["User-Agent"] = localVarApiKeyValue; } localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 localVarUrlObj.search = null; localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); return { url: url.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns info on the number of active alerts * @param {*} [options] Override http request option. * @throws {RequiredError} */ alertsActiveCount: function (options) { if (options === void 0) { options = {}; } var localVarPath = "/alerts/active/count"; var localVarUrlObj = url.parse(localVarPath, true); var localVarRequestOptions = Object.assign({ method: "GET" }, options); var localVarHeaderParameter = {}; var localVarQueryParameter = {}; // authentication userAgent required if (configuration && configuration.apiKey) { var localVarApiKeyValue = typeof configuration.apiKey === "function" ? configuration.apiKey("User-Agent") : configuration.apiKey; localVarHeaderParameter["User-Agent"] = localVarApiKeyValue; } localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 localVarUrlObj.search = null; localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); return { url: url.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns active alerts for the given marine region * @param {MarineRegionCode} region Marine