UNPKG

cwmsjs

Version:

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

54 lines (53 loc) 1.67 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * CWMS Data API * CWMS REST API for Data Retrieval * * The version of the OpenAPI document: 2.4.0-2026.3.16 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); const Location_1 = require("./Location"); /** * @export * @enum {string} */ var WaterSupplyPumpPumpTypeEnum; (function (WaterSupplyPumpPumpTypeEnum) { WaterSupplyPumpPumpTypeEnum["In"] = "IN"; WaterSupplyPumpPumpTypeEnum["Out"] = "OUT"; WaterSupplyPumpPumpTypeEnum["Below"] = "BELOW"; })(WaterSupplyPumpPumpTypeEnum = exports.WaterSupplyPumpPumpTypeEnum || (exports.WaterSupplyPumpPumpTypeEnum = {})); function WaterSupplyPumpFromJSON(json) { return WaterSupplyPumpFromJSONTyped(json, false); } exports.WaterSupplyPumpFromJSON = WaterSupplyPumpFromJSON; function WaterSupplyPumpFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'pumpLocation': Location_1.LocationFromJSON(json['pumpLocation']), 'pumpType': json['pumpType'], }; } exports.WaterSupplyPumpFromJSONTyped = WaterSupplyPumpFromJSONTyped; function WaterSupplyPumpToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'pumpLocation': Location_1.LocationToJSON(value.pumpLocation), 'pumpType': value.pumpType, }; } exports.WaterSupplyPumpToJSON = WaterSupplyPumpToJSON;