UNPKG

cwmsjs

Version:

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

59 lines (58 loc) 2.05 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.LocationsWithProjectKindToJSON = exports.LocationsWithProjectKindFromJSONTyped = exports.LocationsWithProjectKindFromJSON = exports.instanceOfLocationsWithProjectKind = exports.LocationsWithProjectKindKindEnum = void 0; const CwmsId_1 = require("./CwmsId"); /** * @export */ exports.LocationsWithProjectKindKindEnum = { Embankment: 'EMBANKMENT', Turbine: 'TURBINE', Outlet: 'OUTLET', Lock: 'LOCK', Gate: 'GATE' }; /** * Check if a given object implements the LocationsWithProjectKind interface. */ function instanceOfLocationsWithProjectKind(value) { return true; } exports.instanceOfLocationsWithProjectKind = instanceOfLocationsWithProjectKind; function LocationsWithProjectKindFromJSON(json) { return LocationsWithProjectKindFromJSONTyped(json, false); } exports.LocationsWithProjectKindFromJSON = LocationsWithProjectKindFromJSON; function LocationsWithProjectKindFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'kind': json['kind'] == null ? undefined : json['kind'], 'locationIds': json['location-ids'] == null ? undefined : (json['location-ids'].map(CwmsId_1.CwmsIdFromJSON)), }; } exports.LocationsWithProjectKindFromJSONTyped = LocationsWithProjectKindFromJSONTyped; function LocationsWithProjectKindToJSON(value) { if (value == null) { return value; } return { 'kind': value['kind'], 'location-ids': value['locationIds'] == null ? undefined : (value['locationIds'].map(CwmsId_1.CwmsIdToJSON)), }; } exports.LocationsWithProjectKindToJSON = LocationsWithProjectKindToJSON;