cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
57 lines (56 loc) • 1.68 kB
JavaScript
;
/* 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 });
/**
* @export
* @enum {string}
*/
var PumpTransferPumpTypeEnum;
(function (PumpTransferPumpTypeEnum) {
PumpTransferPumpTypeEnum["In"] = "IN";
PumpTransferPumpTypeEnum["Out"] = "OUT";
PumpTransferPumpTypeEnum["Below"] = "BELOW";
})(PumpTransferPumpTypeEnum = exports.PumpTransferPumpTypeEnum || (exports.PumpTransferPumpTypeEnum = {}));
function PumpTransferFromJSON(json) {
return PumpTransferFromJSONTyped(json, false);
}
exports.PumpTransferFromJSON = PumpTransferFromJSON;
function PumpTransferFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'pumpType': json['pump-type'],
'transferTypeDisplay': json['transfer-type-display'],
'flow': json['flow'],
'comment': json['comment'],
};
}
exports.PumpTransferFromJSONTyped = PumpTransferFromJSONTyped;
function PumpTransferToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'pump-type': value.pumpType,
'transfer-type-display': value.transferTypeDisplay,
'flow': value.flow,
'comment': value.comment,
};
}
exports.PumpTransferToJSON = PumpTransferToJSON;