channeladvisor-localdb
Version:
library that keeps the local inventory database updated
107 lines (106 loc) • 5.34 kB
JavaScript
// Generated by LiveScript 1.3.1
/*
See docs/info-object.md for info
*/
(function(){
var UpdateContinueInfo, UpdateStatisticsInfo, GenericUpdateInfo, ItemUpdateInfo, UpdatesUpdateInfo, CatalogUpdateInfo, UpdateStartInfo, UpdateStopInfo, UpdateDoneInfo, UpdateProgressInfo, ErrorInfo, out$ = typeof exports != 'undefined' && exports || this;
UpdateContinueInfo = (function(){
UpdateContinueInfo.displayName = 'UpdateContinueInfo';
var prototype = UpdateContinueInfo.prototype, constructor = UpdateContinueInfo;
function UpdateContinueInfo(arg$){
this.dateTo = arg$.dateTo, this.page = arg$.page;
}
return UpdateContinueInfo;
}());
UpdateStatisticsInfo = (function(){
UpdateStatisticsInfo.displayName = 'UpdateStatisticsInfo';
var prototype = UpdateStatisticsInfo.prototype, constructor = UpdateStatisticsInfo;
function UpdateStatisticsInfo(arg$){
this.changed = arg$.changed, this.deleted = arg$.deleted;
this.processed = this.changed + this.deleted;
}
return UpdateStatisticsInfo;
}());
GenericUpdateInfo = (function(superclass){
var prototype = extend$((import$(GenericUpdateInfo, superclass).displayName = 'GenericUpdateInfo', GenericUpdateInfo), superclass).prototype, constructor = GenericUpdateInfo;
function GenericUpdateInfo(arg$){
this.dateFrom = arg$.dateFrom;
GenericUpdateInfo.superclass.apply(this, arguments);
}
return GenericUpdateInfo;
}(UpdateContinueInfo));
out$.ItemUpdateInfo = ItemUpdateInfo = (function(){
ItemUpdateInfo.displayName = 'ItemUpdateInfo';
var prototype = ItemUpdateInfo.prototype, constructor = ItemUpdateInfo;
function ItemUpdateInfo(arg$){
this.type = arg$.type, this.date = arg$.date, this.item = arg$.item;
}
return ItemUpdateInfo;
}());
out$.UpdatesUpdateInfo = UpdatesUpdateInfo = (function(superclass){
var prototype = extend$((import$(UpdatesUpdateInfo, superclass).displayName = 'UpdatesUpdateInfo', UpdatesUpdateInfo), superclass).prototype, constructor = UpdatesUpdateInfo;
function UpdatesUpdateInfo(){
UpdatesUpdateInfo.superclass.apply(this, arguments);
}
return UpdatesUpdateInfo;
}(GenericUpdateInfo));
out$.CatalogUpdateInfo = CatalogUpdateInfo = (function(superclass){
var prototype = extend$((import$(CatalogUpdateInfo, superclass).displayName = 'CatalogUpdateInfo', CatalogUpdateInfo), superclass).prototype, constructor = CatalogUpdateInfo;
function CatalogUpdateInfo(){
CatalogUpdateInfo.superclass.apply(this, arguments);
}
return CatalogUpdateInfo;
}(GenericUpdateInfo));
out$.UpdateStartInfo = UpdateStartInfo = (function(){
UpdateStartInfo.displayName = 'UpdateStartInfo';
var prototype = UpdateStartInfo.prototype, constructor = UpdateStartInfo;
function UpdateStartInfo(arg$){
this.type = arg$.type, this.date = arg$.date, this.info = arg$.info, this.comment = arg$.comment;
}
return UpdateStartInfo;
}());
out$.UpdateStopInfo = UpdateStopInfo = (function(superclass){
var prototype = extend$((import$(UpdateStopInfo, superclass).displayName = 'UpdateStopInfo', UpdateStopInfo), superclass).prototype, constructor = UpdateStopInfo;
function UpdateStopInfo(arg$){
this.type = arg$.type, this.date = arg$.date, this.dateStarted = arg$.dateStarted, this.stopReason = arg$.stopReason, this.comment = arg$.comment;
UpdateStopInfo.superclass.apply(this, arguments);
}
return UpdateStopInfo;
}(UpdateStatisticsInfo));
out$.UpdateDoneInfo = UpdateDoneInfo = (function(superclass){
var prototype = extend$((import$(UpdateDoneInfo, superclass).displayName = 'UpdateDoneInfo', UpdateDoneInfo), superclass).prototype, constructor = UpdateDoneInfo;
function UpdateDoneInfo(arg$){
this.type = arg$.type, this.date = arg$.date, this.comment = arg$.comment;
UpdateDoneInfo.superclass.apply(this, arguments);
}
return UpdateDoneInfo;
}(UpdateStatisticsInfo));
out$.UpdateProgressInfo = UpdateProgressInfo = (function(superclass){
var prototype = extend$((import$(UpdateProgressInfo, superclass).displayName = 'UpdateProgressInfo', UpdateProgressInfo), superclass).prototype, constructor = UpdateProgressInfo;
function UpdateProgressInfo(arg$){
this.type = arg$.type, this.date = arg$.date, this.dateStarted = arg$.dateStarted, this.comment = arg$.comment, this.currentPage = arg$.currentPage;
this.duration = this.date - this.dateStarted;
UpdateProgressInfo.superclass.apply(this, arguments);
}
return UpdateProgressInfo;
}(UpdateStatisticsInfo));
out$.ErrorInfo = ErrorInfo = (function(){
ErrorInfo.displayName = 'ErrorInfo';
var prototype = ErrorInfo.prototype, constructor = ErrorInfo;
function ErrorInfo(arg$){
this.error = arg$.error, this.message = arg$.message, this.stage = arg$.stage, this.fatal = arg$.fatal;
}
return ErrorInfo;
}());
function extend$(sub, sup){
function fun(){} fun.prototype = (sub.superclass = sup).prototype;
(sub.prototype = new fun).constructor = sub;
if (typeof sup.extended == 'function') sup.extended(sub);
return sub;
}
function import$(obj, src){
var own = {}.hasOwnProperty;
for (var key in src) if (own.call(src, key)) obj[key] = src[key];
return obj;
}
}).call(this);