@soga/types 0.0.53 → 0.0.54

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- - StageType -> UploadFileStage
2
- - UploadItem -> UploadFileItem
3
- - UploadControlData -> UploadControlConfig
1
+ - StageType -> UploadFileStage
2
+ - UploadItem -> UploadFileItem
3
+ - UploadControlData -> UploadControlConfig
@@ -30,6 +30,7 @@ export type DownloadFileItem = {
30
30
  status: DownloadStatus;
31
31
  file_total: number;
32
32
  file_successed: number;
33
+ file_size: number;
33
34
  percent: number;
34
35
  progress: DownloadProgressData;
35
36
  error: ErrorData;
package/dist/main.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './sub';
9
9
  export * from './space';
10
10
  export * from './error';
11
11
  export * from './download';
12
+ export * from './net-success';
package/dist/main.js CHANGED
@@ -25,3 +25,4 @@ __exportStar(require("./sub"), exports);
25
25
  __exportStar(require("./space"), exports);
26
26
  __exportStar(require("./error"), exports);
27
27
  __exportStar(require("./download"), exports);
28
+ __exportStar(require("./net-success"), exports);
@@ -0,0 +1,20 @@
1
+ import { RecordFtype, RecordType } from './record';
2
+ export declare enum NetType {
3
+ DOWNLOAD = "download",
4
+ UPLOAD = "upload"
5
+ }
6
+ export type NetSuccessItem = {
7
+ id: number;
8
+ uid: number;
9
+ net_type: NetType;
10
+ is_affix: boolean;
11
+ type: RecordType;
12
+ ftype: RecordFtype;
13
+ space_id: number;
14
+ title: string;
15
+ download_path: string;
16
+ record_id: number;
17
+ file_total: number;
18
+ updated_at: Date;
19
+ created_at: Date;
20
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NetType = void 0;
4
+ var NetType;
5
+ (function (NetType) {
6
+ NetType["DOWNLOAD"] = "download";
7
+ NetType["UPLOAD"] = "upload";
8
+ })(NetType || (exports.NetType = NetType = {}));
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@soga/types",
3
- "version": "0.0.53",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "description": "",
8
- "main": "dist/main.js",
9
- "types": "dist/main.d.ts",
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "build": "rimraf dist && tsc",
15
- "dev": "tsc --watch",
16
- "lint": "eslint . --ext .ts",
17
- "prepublishOnly": "npm run build"
18
- },
19
- "devDependencies": {
20
- "@types/node": "^22.5.1",
21
- "@typescript-eslint/eslint-plugin": "^8.3.0",
22
- "@typescript-eslint/parser": "^8.3.0",
23
- "eslint": "^9.9.1",
24
- "eslint-config-prettier": "^9.1.0",
25
- "eslint-plugin-prettier": "^5.2.1",
26
- "prettier": "^3.3.3",
27
- "rimraf": "^6.0.1",
28
- "ts-node": "^10.9.2",
29
- "typescript": "^5.5.4"
30
- },
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/dpan-com/types.git"
34
- },
35
- "keywords": [],
36
- "author": "",
37
- "license": "ISC",
38
- "bugs": {
39
- "url": "https://github.com/dpan-com/types/issues"
40
- },
41
- "homepage": "https://github.com/dpan-com/types#readme"
42
- }
1
+ {
2
+ "name": "@soga/types",
3
+ "version": "0.0.54",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "",
8
+ "main": "dist/main.js",
9
+ "types": "dist/main.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "rimraf dist && tsc",
15
+ "dev": "tsc --watch",
16
+ "lint": "eslint . --ext .ts",
17
+ "prepublishOnly": "npm run build"
18
+ },
19
+ "devDependencies": {
20
+ "@types/node": "^22.5.1",
21
+ "@typescript-eslint/eslint-plugin": "^8.3.0",
22
+ "@typescript-eslint/parser": "^8.3.0",
23
+ "eslint": "^9.9.1",
24
+ "eslint-config-prettier": "^9.1.0",
25
+ "eslint-plugin-prettier": "^5.2.1",
26
+ "prettier": "^3.3.3",
27
+ "rimraf": "^6.0.1",
28
+ "ts-node": "^10.9.2",
29
+ "typescript": "^5.5.4"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/dpan-com/types.git"
34
+ },
35
+ "keywords": [],
36
+ "author": "",
37
+ "license": "ISC",
38
+ "bugs": {
39
+ "url": "https://github.com/dpan-com/types/issues"
40
+ },
41
+ "homepage": "https://github.com/dpan-com/types#readme"
42
+ }