"use strict";
/**
 * Token abstraction
 *
 *  Copyright (C) 2010-2019 R-T Specialty, LLC.
 *
 *  This file is part of the Liza Data Collection Framework.
 *
 *  liza is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * A token represents some sort of long-running asynchronous process.  It
 * was designed to handle HTTP requests.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TokenState = void 0;
/**
 * Token states
 *
 * States are listed as strings for ease of {de,}serialization for storage.
 *
 * - `ACTIVE` - an outstanding token that has not yet been processed.
 * - `DONE` - a token has finished processing and result data may be
 *   available.
 * - `ACCEPTED` - a `DONE` token has been acknowledged by the requester.
 * - `DEAD` - a token has been killed and should no longer be used.
 *
 * For valid state transitions, see `TokenTransition`.
 */
var TokenState;
(function (TokenState) {
    TokenState["ACTIVE"] = "ACTIVE";
    TokenState["DONE"] = "DONE";
    TokenState["ACCEPTED"] = "ACCEPTED";
    TokenState["DEAD"] = "DEAD";
})(TokenState = exports.TokenState || (exports.TokenState = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJUb2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FzQkc7OztBQVFIOzs7Ozs7Ozs7Ozs7R0FZRztBQUNILElBQVksVUFLWDtBQUxELFdBQVksVUFBVTtJQUNwQiwrQkFBaUIsQ0FBQTtJQUNqQiwyQkFBYSxDQUFBO0lBQ2IsbUNBQXFCLENBQUE7SUFDckIsMkJBQWEsQ0FBQTtBQUNmLENBQUMsRUFMVyxVQUFVLEdBQVYsa0JBQVUsS0FBVixrQkFBVSxRQUtyQiJ9