@soga/entities 0.0.39 → 0.0.40
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.
package/dist/download-chunk.d.ts
CHANGED
package/dist/download-chunk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __decorate=this&&this.__decorate||function(e,
|
|
1
|
+
"use strict";var __decorate=this&&this.__decorate||function(t,e,o,a){var d,n=arguments.length,r=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,a);else for(var _=t.length-1;_>=0;_--)(d=t[_])&&(r=(n<3?d(r):n>3?d(e,o,r):d(e,o))||r);return n>3&&r&&Object.defineProperty(e,o,r),r},__metadata=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DownloadChunk=exports.ChunkStatus=void 0;const typeorm_1=require("typeorm");var ChunkStatus;!function(t){t[t.NULL=0]="NULL",t[t.PROCESS=1]="PROCESS",t[t.SUCCESS=2]="SUCCESS",t[t.ERROR=4]="ERROR"}(ChunkStatus||(exports.ChunkStatus=ChunkStatus={}));let DownloadChunk=class{id;uid;status;file_id;record_id;part_name;start;end;ali_host_id;baidu_host_id;updated_at;created_at};exports.DownloadChunk=DownloadChunk,__decorate([(0,typeorm_1.PrimaryGeneratedColumn)(),__metadata("design:type",Number)],DownloadChunk.prototype,"id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"uid",void 0),__decorate([(0,typeorm_1.Column)({type:"simple-enum",enum:ChunkStatus,default:ChunkStatus.NULL}),__metadata("design:type",Number)],DownloadChunk.prototype,"status",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"file_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"record_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",String)],DownloadChunk.prototype,"part_name",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"start",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"end",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"ali_host_id",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadChunk.prototype,"baidu_host_id",void 0),__decorate([(0,typeorm_1.UpdateDateColumn)(),__metadata("design:type",Date)],DownloadChunk.prototype,"updated_at",void 0),__decorate([(0,typeorm_1.CreateDateColumn)(),__metadata("design:type",Date)],DownloadChunk.prototype,"created_at",void 0),exports.DownloadChunk=DownloadChunk=__decorate([(0,typeorm_1.Entity)()],DownloadChunk);
|
package/dist/download-part.d.ts
CHANGED
package/dist/download-part.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __decorate=this&&this.__decorate||function(e,t,o,a){var d,r=arguments.length,_=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(e,t,o,a);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(_=(r<3?d(_):r>3?d(t,o,_):d(t,o))||_);return r>3&&_&&Object.defineProperty(t,o,_),_},__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.DownloadPart=void 0;const types_1=require("@soga/types"),typeorm_1=require("typeorm");let DownloadPart=class{id;uid;file_id;record_id;is_paused;status;size;baidu_host_id;baidu_info;ali_host_id;ali_info;updated_at;created_at};exports.DownloadPart=DownloadPart,__decorate([(0,typeorm_1.PrimaryGeneratedColumn)(),__metadata("design:type",Number)],DownloadPart.prototype,"id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"uid",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"file_id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"record_id",void 0),__decorate([(0,typeorm_1.Column)({default:!1}),__metadata("design:type",Boolean)],DownloadPart.prototype,"is_paused",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:types_1.DownloadStatus.NULL}),__metadata("design:type",Number)],DownloadPart.prototype,"status",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"size",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({nullable:!0}),__metadata("design:type",Number)],DownloadPart.prototype,"baidu_host_id",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"{}"}),__metadata("design:type",Object)],DownloadPart.prototype,"baidu_info",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({nullable:!0}),__metadata("design:type",Number)],DownloadPart.prototype,"ali_host_id",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"{}"}),__metadata("design:type",Object)],DownloadPart.prototype,"ali_info",void 0),__decorate([(0,typeorm_1.UpdateDateColumn)(),__metadata("design:type",Date)],DownloadPart.prototype,"updated_at",void 0),__decorate([(0,typeorm_1.CreateDateColumn)(),__metadata("design:type",Date)],DownloadPart.prototype,"created_at",void 0),exports.DownloadPart=DownloadPart=__decorate([(0,typeorm_1.Entity)()],DownloadPart);
|
|
1
|
+
"use strict";var __decorate=this&&this.__decorate||function(e,t,o,a){var d,r=arguments.length,_=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(e,t,o,a);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(_=(r<3?d(_):r>3?d(t,o,_):d(t,o))||_);return r>3&&_&&Object.defineProperty(t,o,_),_},__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.DownloadPart=void 0;const types_1=require("@soga/types"),typeorm_1=require("typeorm");let DownloadPart=class{id;uid;file_id;record_id;is_paused;status;part_name;size;baidu_host_id;baidu_info;ali_host_id;ali_info;updated_at;created_at};exports.DownloadPart=DownloadPart,__decorate([(0,typeorm_1.PrimaryGeneratedColumn)(),__metadata("design:type",Number)],DownloadPart.prototype,"id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"uid",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"file_id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"record_id",void 0),__decorate([(0,typeorm_1.Column)({default:!1}),__metadata("design:type",Boolean)],DownloadPart.prototype,"is_paused",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({type:"simple-enum",enum:types_1.DownloadStatus,default:types_1.DownloadStatus.NULL}),__metadata("design:type",Number)],DownloadPart.prototype,"status",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",String)],DownloadPart.prototype,"part_name",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadPart.prototype,"size",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({nullable:!0}),__metadata("design:type",Number)],DownloadPart.prototype,"baidu_host_id",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"{}"}),__metadata("design:type",Object)],DownloadPart.prototype,"baidu_info",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({nullable:!0}),__metadata("design:type",Number)],DownloadPart.prototype,"ali_host_id",void 0),__decorate([(0,typeorm_1.Column)({type:"json",default:"{}"}),__metadata("design:type",Object)],DownloadPart.prototype,"ali_info",void 0),__decorate([(0,typeorm_1.UpdateDateColumn)(),__metadata("design:type",Date)],DownloadPart.prototype,"updated_at",void 0),__decorate([(0,typeorm_1.CreateDateColumn)(),__metadata("design:type",Date)],DownloadPart.prototype,"created_at",void 0),exports.DownloadPart=DownloadPart=__decorate([(0,typeorm_1.Entity)()],DownloadPart);
|