@soga/types 0.0.61 → 0.0.63

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
package/dist/record.d.ts CHANGED
@@ -256,4 +256,21 @@ export type RecordDetail = RecordCommonFields & {
256
256
  name: string;
257
257
  }[];
258
258
  };
259
+ export type CloudInfoField = {
260
+ id: number;
261
+ hosts: {
262
+ ali?: {
263
+ id: number;
264
+ name: string;
265
+ drive_id: string;
266
+ file_id: string;
267
+ };
268
+ baidu?: {
269
+ id: number;
270
+ name: string;
271
+ fs_id: number;
272
+ path: string;
273
+ };
274
+ };
275
+ };
259
276
  export {};
package/dist/upload.d.ts CHANGED
@@ -29,6 +29,13 @@ export declare enum RootStatus {
29
29
  SUCCESS = 2,
30
30
  ERROR = 4
31
31
  }
32
+ export declare enum UploadStep {
33
+ NULL = 0,
34
+ PROCESS = 1,
35
+ PRESUCCESS = 2,
36
+ SUCCESS = 3,
37
+ ERROR = 4
38
+ }
32
39
  export declare enum UploadTaskStage {
33
40
  ALL = 0,
34
41
  NULL = 1,
package/dist/upload.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UploadTaskStage = exports.RootStatus = exports.UploadStatus = exports.EncodeStatus = exports.UploadFileStage = void 0;
3
+ exports.UploadTaskStage = exports.UploadStep = exports.RootStatus = exports.UploadStatus = exports.EncodeStatus = exports.UploadFileStage = void 0;
4
4
  var UploadFileStage;
5
5
  (function (UploadFileStage) {
6
6
  UploadFileStage[UploadFileStage["ALL"] = 0] = "ALL";
@@ -35,6 +35,14 @@ var RootStatus;
35
35
  RootStatus[RootStatus["SUCCESS"] = 2] = "SUCCESS";
36
36
  RootStatus[RootStatus["ERROR"] = 4] = "ERROR";
37
37
  })(RootStatus || (exports.RootStatus = RootStatus = {}));
38
+ var UploadStep;
39
+ (function (UploadStep) {
40
+ UploadStep[UploadStep["NULL"] = 0] = "NULL";
41
+ UploadStep[UploadStep["PROCESS"] = 1] = "PROCESS";
42
+ UploadStep[UploadStep["PRESUCCESS"] = 2] = "PRESUCCESS";
43
+ UploadStep[UploadStep["SUCCESS"] = 3] = "SUCCESS";
44
+ UploadStep[UploadStep["ERROR"] = 4] = "ERROR";
45
+ })(UploadStep || (exports.UploadStep = UploadStep = {}));
38
46
  var UploadTaskStage;
39
47
  (function (UploadTaskStage) {
40
48
  UploadTaskStage[UploadTaskStage["ALL"] = 0] = "ALL";
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@soga/types",
3
- "version": "0.0.61",
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.63",
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
+ }