@soga/entities 0.0.38 → 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.
@@ -10,7 +10,7 @@ export declare class DownloadChunk {
10
10
  status: ChunkStatus;
11
11
  file_id: number;
12
12
  record_id: number;
13
- chunk_name: string;
13
+ part_name: string;
14
14
  start: number;
15
15
  end: number;
16
16
  ali_host_id: number;
@@ -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;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);
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);
@@ -1,9 +1,12 @@
1
+ import { DownloadStatus } from '@soga/types';
1
2
  export declare class DownloadPart {
2
3
  id: number;
3
4
  uid: number;
4
5
  file_id: number;
5
6
  record_id: number;
6
7
  is_paused: boolean;
8
+ status: DownloadStatus;
9
+ part_name: string;
7
10
  size: number;
8
11
  baidu_host_id: number;
9
12
  baidu_info: {
@@ -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 n=e.length-1;n>=0;n--)(d=e[n])&&(_=(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 typeorm_1=require("typeorm");let DownloadPart=class{id;uid;file_id;record_id;is_paused;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.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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/entities",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },