@soga/entities 0.1.8 → 0.1.13
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 +1 -0
- package/dist/download-chunk.js +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +1 -1
- package/package.json +3 -3
- package/dist/download-best.d.ts +0 -10
- package/dist/download-best.js +0 -1
package/dist/download-chunk.d.ts
CHANGED
package/dist/download-chunk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;part_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,"part_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
|
+
"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;part_id;record_id;part_name;start;end;total;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,"part_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,"total",void 0),__decorate([(0,typeorm_1.Column)({nullable:!0}),__metadata("design:type",Number)],DownloadChunk.prototype,"ali_host_id",void 0),__decorate([(0,typeorm_1.Column)({nullable:!0}),__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/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var i=Object.getOwnPropertyDescriptor(r,t);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,i)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./dlink"),exports),__exportStar(require("./download-chunk"),exports),__exportStar(require("./download-part"),exports),__exportStar(require("./download-file"),exports),__exportStar(require("./host-token"),exports),__exportStar(require("./net-success"),exports),__exportStar(require("./system"),exports),__exportStar(require("./upload-file"),exports),__exportStar(require("./upload-part"),exports),__exportStar(require("./upload-success"),exports),__exportStar(require("./user"),exports),__exportStar(require("./download-url"),exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soga/entities",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript": "^5.1.6"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@soga/types": "^0.1.
|
|
42
|
+
"@soga/types": "^0.1.13"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [],
|
|
45
45
|
"author": "",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"typeorm": "*"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "fd0b51d9ccc8001c61e746974666be04e72e5665"
|
|
51
51
|
}
|
package/dist/download-best.d.ts
DELETED
package/dist/download-best.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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.DownloadBest=void 0;const typeorm_1=require("typeorm");let DownloadBest=class{id;speed;key;dlink;expire;success;fail;created_at};exports.DownloadBest=DownloadBest,__decorate([(0,typeorm_1.PrimaryGeneratedColumn)(),__metadata("design:type",Number)],DownloadBest.prototype,"id",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadBest.prototype,"speed",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",String)],DownloadBest.prototype,"key",void 0),__decorate([(0,typeorm_1.Column)(),__metadata("design:type",String)],DownloadBest.prototype,"dlink",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)(),__metadata("design:type",Number)],DownloadBest.prototype,"expire",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadBest.prototype,"success",void 0),__decorate([(0,typeorm_1.Index)(),(0,typeorm_1.Column)({default:0}),__metadata("design:type",Number)],DownloadBest.prototype,"fail",void 0),__decorate([(0,typeorm_1.CreateDateColumn)(),__metadata("design:type",Date)],DownloadBest.prototype,"created_at",void 0),exports.DownloadBest=DownloadBest=__decorate([(0,typeorm_1.Entity)()],DownloadBest);
|