@iotile/iotile-cloud
Version:
A typescript library for interfacing with the IOTile Cloud API
33 lines • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var iotile_common_1 = require("@iotile/iotile-common");
var DeltaStatus;
(function (DeltaStatus) {
DeltaStatus[DeltaStatus["Applies"] = 0] = "Applies";
DeltaStatus[DeltaStatus["Outdated"] = 1] = "Outdated";
DeltaStatus[DeltaStatus["Conflicted"] = 2] = "Conflicted";
})(DeltaStatus = exports.DeltaStatus || (exports.DeltaStatus = {}));
;
var ModelDelta = /** @class */ (function () {
function ModelDelta(name, slug, guidString) {
if (guidString == null) {
this.id = iotile_common_1.guid();
}
else {
this.id = guidString;
}
this.slug = slug;
this.classname = name;
}
ModelDelta.prototype.serialize = function () {
return {
classname: this.classname,
guid: this.id,
slug: this.slug,
args: this.serializeArguments()
};
};
return ModelDelta;
}());
exports.ModelDelta = ModelDelta;
//# sourceMappingURL=model-delta.js.map