UNPKG

cwmsjs

Version:

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

61 lines (60 loc) 1.97 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 runtime_1 = require("../runtime"); /** * @export * @enum {string} */ var OfficeTypeEnum; (function (OfficeTypeEnum) { OfficeTypeEnum["Unknown"] = "unknown"; OfficeTypeEnum["CorpsHeadquarters"] = "corps headquarters"; OfficeTypeEnum["DivisionHeadquarters"] = "division headquarters"; OfficeTypeEnum["DivisionRegional"] = "division regional"; OfficeTypeEnum["District"] = "district"; OfficeTypeEnum["FiledOperatingActivity"] = "filed operating activity"; })(OfficeTypeEnum = exports.OfficeTypeEnum || (exports.OfficeTypeEnum = {})); function OfficeFromJSON(json) { return OfficeFromJSONTyped(json, false); } exports.OfficeFromJSON = OfficeFromJSON; function OfficeFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'name': !runtime_1.exists(json, 'name') ? undefined : json['name'], 'longName': !runtime_1.exists(json, 'long-name') ? undefined : json['long-name'], 'type': !runtime_1.exists(json, 'type') ? undefined : json['type'], 'reportsTo': !runtime_1.exists(json, 'reports-to') ? undefined : json['reports-to'], }; } exports.OfficeFromJSONTyped = OfficeFromJSONTyped; function OfficeToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'name': value.name, 'long-name': value.longName, 'type': value.type, 'reports-to': value.reportsTo, }; } exports.OfficeToJSON = OfficeToJSON;