@soga/types 0.2.1 → 0.2.7

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/upload.d.ts CHANGED
@@ -11,13 +11,13 @@ export declare enum UploadStatus {
11
11
  NULL = 0,
12
12
  PROCESS = 1,
13
13
  SUCCESS = 2,
14
- SOME_PART_SUCCESS = 3,
15
14
  ERROR = 4
16
15
  }
17
- export declare enum GroupStatus {
16
+ export declare enum RootStatus {
18
17
  NULL = 0,
19
18
  PROCESS = 1,
20
19
  SUCCESS = 2,
20
+ PAUSED = 3,
21
21
  ERROR = 4
22
22
  }
23
23
  export type UploadInputItem = {
@@ -38,14 +38,17 @@ export type EncodedData = {
38
38
  export type UploadedData = Record<HostType, Record<string, object>>;
39
39
  export type UploadFileItem = {
40
40
  id: number;
41
- group_id: number;
42
- group_status: GroupStatus;
41
+ total_count: number;
42
+ completed_count: number;
43
+ filename?: string;
44
+ filepath?: string;
45
+ inputs: UploadInputItem[];
46
+ root_id: number;
47
+ root_status: RootStatus;
43
48
  space_id: number;
44
49
  space_name: string;
45
50
  task_id: string;
46
- handle_paused: boolean;
47
51
  config: RecordFolderConfig;
48
- can_stop: boolean;
49
52
  uid: number;
50
53
  aid: number;
51
54
  encode_status: EncodeStatus;
@@ -53,9 +56,11 @@ export type UploadFileItem = {
53
56
  baidu_upload_status: UploadStatus;
54
57
  ali_host_id: number;
55
58
  ali_upload_status: UploadStatus;
59
+ some_parts_uploaded: boolean;
60
+ upload_status: UploadStatus;
61
+ is_paused: boolean;
56
62
  pid: number;
57
63
  type: RecordType;
58
- inputs: UploadInputItem[];
59
64
  task_record_id: number;
60
65
  cloud_info: CloudInfoField;
61
66
  output_root: string;
@@ -64,11 +69,9 @@ export type UploadFileItem = {
64
69
  percent: number;
65
70
  encoded: EncodedData;
66
71
  uploaded: UploadedData;
67
- first_order: number;
68
- second_order: number;
72
+ order: number;
69
73
  updated_at: string;
70
74
  created_at: string;
71
- is_paused: boolean;
72
75
  };
73
76
  export type UploadFileSuceessItem = {
74
77
  id: number;
package/dist/upload.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroupStatus = exports.UploadStatus = exports.EncodeStatus = void 0;
3
+ exports.RootStatus = exports.UploadStatus = exports.EncodeStatus = void 0;
4
4
  var EncodeStatus;
5
5
  (function (EncodeStatus) {
6
6
  EncodeStatus[EncodeStatus["NULL"] = 0] = "NULL";
@@ -13,13 +13,13 @@ var UploadStatus;
13
13
  UploadStatus[UploadStatus["NULL"] = 0] = "NULL";
14
14
  UploadStatus[UploadStatus["PROCESS"] = 1] = "PROCESS";
15
15
  UploadStatus[UploadStatus["SUCCESS"] = 2] = "SUCCESS";
16
- UploadStatus[UploadStatus["SOME_PART_SUCCESS"] = 3] = "SOME_PART_SUCCESS";
17
16
  UploadStatus[UploadStatus["ERROR"] = 4] = "ERROR";
18
17
  })(UploadStatus || (exports.UploadStatus = UploadStatus = {}));
19
- var GroupStatus;
20
- (function (GroupStatus) {
21
- GroupStatus[GroupStatus["NULL"] = 0] = "NULL";
22
- GroupStatus[GroupStatus["PROCESS"] = 1] = "PROCESS";
23
- GroupStatus[GroupStatus["SUCCESS"] = 2] = "SUCCESS";
24
- GroupStatus[GroupStatus["ERROR"] = 4] = "ERROR";
25
- })(GroupStatus || (exports.GroupStatus = GroupStatus = {}));
18
+ var RootStatus;
19
+ (function (RootStatus) {
20
+ RootStatus[RootStatus["NULL"] = 0] = "NULL";
21
+ RootStatus[RootStatus["PROCESS"] = 1] = "PROCESS";
22
+ RootStatus[RootStatus["SUCCESS"] = 2] = "SUCCESS";
23
+ RootStatus[RootStatus["PAUSED"] = 3] = "PAUSED";
24
+ RootStatus[RootStatus["ERROR"] = 4] = "ERROR";
25
+ })(RootStatus || (exports.RootStatus = RootStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/types",
3
- "version": "0.2.1",
3
+ "version": "0.2.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,5 +31,5 @@
31
31
  "keywords": [],
32
32
  "author": "",
33
33
  "license": "ISC",
34
- "gitHead": "92e93cbd89d863f10407c93b88db5ec5029ed426"
34
+ "gitHead": "527e923683c11ace899c5111d7dcfb38115d4d48"
35
35
  }