ngx-octoprint-api-types
Version:
Octoprint API wrapper for angular
51 lines (42 loc) • 2.26 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('ngx-octoprint-api-types', ['exports'], factory) :
(global = global || self, factory(global['ngx-octoprint-api-types'] = {}));
}(this, (function (exports) { 'use strict';
/**
* Connection Commands.
* http://docs.octoprint.org/en/master/api/connection.html#get-connection-settings
*/
(function (ConnectionCommand) {
ConnectionCommand["connect"] = "connnect";
ConnectionCommand["disconnect"] = "disconnect";
ConnectionCommand["fake_ack"] = "fake_ack";
})(exports.ConnectionCommand || (exports.ConnectionCommand = {}));
/**
* A textual representation of the current state of the printer, e.g. Operational" or Printing"
*/
(function (PrinterState) {
PrinterState["Operational"] = "Operational";
PrinterState["Printing"] = "Printing";
})(exports.PrinterState || (exports.PrinterState = {}));
/**
* Origin of the current time left estimate.
* http://docs.octoprint.org/en/master/api/datamodel.html#progress-information
* linear: based on an linear approximation of the progress in file in bytes vs time
* analysis: based on an analysis of the file
* estimate: calculated estimate after stabilization of linear estimation
* average: based on the average total from past prints of the same model against the same printer profile
* mixed-analysis: mixture of estimate and analysis
* mixed-average: mixture of estimate and average
*/
(function (PrintTimeLeftOrigin) {
PrintTimeLeftOrigin["linear"] = "linear";
PrintTimeLeftOrigin["analysis"] = "analysis";
PrintTimeLeftOrigin["estimate"] = "estimate";
PrintTimeLeftOrigin["average"] = "average";
PrintTimeLeftOrigin["mixedAnalysis"] = "mixed-analysis";
PrintTimeLeftOrigin["mixedAverage"] = "mixed-average";
})(exports.PrintTimeLeftOrigin || (exports.PrintTimeLeftOrigin = {}));
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ngx-octoprint-api-types.umd.js.map