@soga/entities 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var __decorate=this&&this.__decorate||function(e,t,o,a){var d,_=arguments.length,r=_<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(d=e[l])&&(r=(_<3?d(r):_>3?d(t,o,r):d(t,o))||r);return _>3&&r&&Object.defineProperty(t,o,r),r},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDownloadResetFields=exports.DownloadFile=exports.DownloadStatus=void 0;const types_1=require("@soga/types"),typeorm_1=require("typeorm");var DownloadStatus;!function(e){e[e.NULL=0]="NULL",e[e.PROCESS=1]="PROCESS",e[e.SUCCESS=2]="SUCCESS",e[e.ERROR=4]="ERROR"}(DownloadStatus||(exports.DownloadStatus=DownloadStatus={}));let DownloadFile=class{id;is_affix;is_paused;type;ftype;baidu_host_id;ali_host_id;routes;download_root;download_temp;download_name;root_id;space_id;uid;record;order;status;file_total;file_successed;file_size;percent;progress;error;updated_at;created_at};exports.DownloadFile=DownloadFile,__decorate([(0,typeorm_1.PrimaryGeneratedColumn)(),__metadata("design:type",Number)],DownloadFile.prototype,"id",void 0),__decorate([(0,typeorm_1.Column)({default:!1}),__metadata("design:type",Boolean)],DownloadFile.prototype,"is_affix",void 0),__decorate([(0,typeorm_1.Column)({default:!1}),__metadata("design:type",Boolean)],DownloadFile.prototype,"is_paused",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:types_1.RecordType}),__metadata("design:type",Number)],DownloadFile.prototype,"type",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:types_1.RecordFtype,default:types_1.RecordFtype.NONE}),__metadata("design:type",Number)],DownloadFile.prototype,"ftype",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"baidu_host_id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"ali_host_id",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"[]"}),__metadata("design:type",Array)],DownloadFile.prototype,"routes",void 0),__decorate([(0,typeorm_1.Column)({default:""}),__metadata("design:type",String)],DownloadFile.prototype,"download_root",void 0),__decorate([(0,typeorm_1.Column)({default:""}),__metadata("design:type",String)],DownloadFile.prototype,"download_temp",void 0),__decorate([(0,typeorm_1.Column)({default:""}),__metadata("design:type",String)],DownloadFile.prototype,"download_name",void 0),__decorate([(0,typeorm_1.Column)({nullable:!0}),__metadata("design:type",Number)],DownloadFile.prototype,"root_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadFile.prototype,"space_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadFile.prototype,"uid",void 0),__decorate([(0,typeorm_1.Column)("json",{default:"{}"}),__metadata("design:type",Object)],DownloadFile.prototype,"record",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"order",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:DownloadStatus,default:DownloadStatus.NULL}),__metadata("design:type",Number)],DownloadFile.prototype,"status",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"file_total",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"file_successed",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"file_size",void 0),__decorate([(0,typeorm_1.Column)({default:0,type:"decimal"}),__metadata("design:type",Number)],DownloadFile.prototype,"percent",void 0),__decorate([(0,typeorm_1.Column)({type:"json",nullable:!0}),__metadata("design:type",Object)],DownloadFile.prototype,"progress",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"{}"}),__metadata("design:type",Object)],DownloadFile.prototype,"error",void 0),__decorate([(0,typeorm_1.UpdateDateColumn)(),__metadata("design:type",Date)],DownloadFile.prototype,"updated_at",void 0),__decorate([(0,typeorm_1.CreateDateColumn)(),__metadata("design:type",Date)],DownloadFile.prototype,"created_at",void 0),exports.DownloadFile=DownloadFile=__decorate([(0,typeorm_1.Entity)()],DownloadFile);const getDownloadResetFields=()=>({error:{},is_paused:!1,status:DownloadStatus.NULL,progress:null,percent:0,download_temp:"",download_root:""});exports.getDownloadResetFields=getDownloadResetFields;
1
+ "use strict";var __decorate=this&&this.__decorate||function(e,t,o,a){var d,_=arguments.length,r=_<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(d=e[l])&&(r=(_<3?d(r):_>3?d(t,o,r):d(t,o))||r);return _>3&&r&&Object.defineProperty(t,o,r),r},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDownloadResetFields=exports.DownloadFile=exports.DownloadStatus=void 0;const types_1=require("@soga/types"),typeorm_1=require("typeorm");var DownloadStatus;!function(e){e[e.NULL=0]="NULL",e[e.PROCESS=1]="PROCESS",e[e.SUCCESS=2]="SUCCESS",e[e.ERROR=4]="ERROR"}(DownloadStatus||(exports.DownloadStatus=DownloadStatus={}));let DownloadFile=class{id;is_affix;is_paused;type;ftype;baidu_host_id;ali_host_id;routes;download_root;download_temp;download_name;root_id;space_id;uid;record;order;status;file_total;file_successed;file_size;percent;progress;error;updated_at;created_at};exports.DownloadFile=DownloadFile,__decorate([(0,typeorm_1.PrimaryGeneratedColumn)(),__metadata("design:type",Number)],DownloadFile.prototype,"id",void 0),__decorate([(0,typeorm_1.Column)({default:!1}),__metadata("design:type",Boolean)],DownloadFile.prototype,"is_affix",void 0),__decorate([(0,typeorm_1.Column)({default:!1}),__metadata("design:type",Boolean)],DownloadFile.prototype,"is_paused",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:types_1.RecordType}),__metadata("design:type",Number)],DownloadFile.prototype,"type",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:types_1.RecordFtype,default:types_1.RecordFtype.NONE}),__metadata("design:type",Number)],DownloadFile.prototype,"ftype",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"baidu_host_id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"ali_host_id",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"[]"}),__metadata("design:type",Array)],DownloadFile.prototype,"routes",void 0),__decorate([(0,typeorm_1.Column)({default:""}),__metadata("design:type",String)],DownloadFile.prototype,"download_root",void 0),__decorate([(0,typeorm_1.Column)({default:""}),__metadata("design:type",String)],DownloadFile.prototype,"download_temp",void 0),__decorate([(0,typeorm_1.Column)({default:""}),__metadata("design:type",String)],DownloadFile.prototype,"download_name",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"root_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadFile.prototype,"space_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadFile.prototype,"uid",void 0),__decorate([(0,typeorm_1.Column)("json",{default:"{}"}),__metadata("design:type",Object)],DownloadFile.prototype,"record",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"order",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:DownloadStatus,default:DownloadStatus.NULL}),__metadata("design:type",Number)],DownloadFile.prototype,"status",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"file_total",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"file_successed",void 0),__decorate([(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadFile.prototype,"file_size",void 0),__decorate([(0,typeorm_1.Column)({default:0,type:"decimal"}),__metadata("design:type",Number)],DownloadFile.prototype,"percent",void 0),__decorate([(0,typeorm_1.Column)({type:"json",nullable:!0}),__metadata("design:type",Object)],DownloadFile.prototype,"progress",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"{}"}),__metadata("design:type",Object)],DownloadFile.prototype,"error",void 0),__decorate([(0,typeorm_1.UpdateDateColumn)(),__metadata("design:type",Date)],DownloadFile.prototype,"updated_at",void 0),__decorate([(0,typeorm_1.CreateDateColumn)(),__metadata("design:type",Date)],DownloadFile.prototype,"created_at",void 0),exports.DownloadFile=DownloadFile=__decorate([(0,typeorm_1.Entity)()],DownloadFile);const getDownloadResetFields=()=>({error:{},is_paused:!1,status:DownloadStatus.NULL,progress:null,percent:0,download_temp:"",download_root:""});exports.getDownloadResetFields=getDownloadResetFields;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/entities",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },