@soga/entities 0.0.35 → 0.0.37

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.
@@ -13,6 +13,8 @@ export declare class DownloadChunk {
13
13
  chunk_name: string;
14
14
  start: number;
15
15
  end: number;
16
+ ali_host_id: number;
17
+ baidu_host_id: number;
16
18
  updated_at: Date;
17
19
  created_at: Date;
18
20
  }
@@ -1 +1 @@
1
- "use strict";var __decorate=this&&this.__decorate||function(e,t,o,a){var d,n=arguments.length,r=n<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 _=e.length-1;_>=0;_--)(d=e[_])&&(r=(n<3?d(r):n>3?d(t,o,r):d(t,o))||r);return n>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.DownloadChunk=exports.ChunkStatus=void 0;const typeorm_1=require("typeorm");var ChunkStatus;!function(e){e[e.NULL=0]="NULL",e[e.PROCESS=1]="PROCESS",e[e.SUCCESS=2]="SUCCESS",e[e.ERROR=4]="ERROR"}(ChunkStatus||(exports.ChunkStatus=ChunkStatus={}));let DownloadChunk=class{id;uid;status;file_id;record_id;chunk_name;start;end;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,"chunk_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.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);
1
+ "use strict";var __decorate=this&&this.__decorate||function(e,t,o,a){var d,n=arguments.length,r=n<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 _=e.length-1;_>=0;_--)(d=e[_])&&(r=(n<3?d(r):n>3?d(t,o,r):d(t,o))||r);return n>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.DownloadChunk=exports.ChunkStatus=void 0;const typeorm_1=require("typeorm");var ChunkStatus;!function(e){e[e.NULL=0]="NULL",e[e.PROCESS=1]="PROCESS",e[e.SUCCESS=2]="SUCCESS",e[e.ERROR=4]="ERROR"}(ChunkStatus||(exports.ChunkStatus=ChunkStatus={}));let DownloadChunk=class{id;uid;status;file_id;record_id;chunk_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,"chunk_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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/entities",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },