@soga/types 0.1.24 → 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/record-manifest.d.ts +11 -2
- package/dist/upload.d.ts +17 -14
- package/dist/upload.js +12 -12
- package/package.json +2 -2
|
@@ -51,8 +51,6 @@ export type ManifestMetaType = {
|
|
|
51
51
|
filename: string;
|
|
52
52
|
filesize: number;
|
|
53
53
|
host_size: number;
|
|
54
|
-
preview_size: number;
|
|
55
|
-
source_size: number;
|
|
56
54
|
};
|
|
57
55
|
export type ManifestCoverInfo = {
|
|
58
56
|
file: string;
|
|
@@ -158,6 +156,16 @@ export type ManifestMediaType = {
|
|
|
158
156
|
video_meta: ManifestVideoMetaInfo;
|
|
159
157
|
parts: string[];
|
|
160
158
|
};
|
|
159
|
+
export type ManifestAffixItem = {
|
|
160
|
+
filename: string;
|
|
161
|
+
head: string;
|
|
162
|
+
size: number;
|
|
163
|
+
uuid: string;
|
|
164
|
+
parts: string[];
|
|
165
|
+
btime: number;
|
|
166
|
+
ctime: number;
|
|
167
|
+
mtime: number;
|
|
168
|
+
};
|
|
161
169
|
export type Manifest = {
|
|
162
170
|
baidu: ManifestBaiduType;
|
|
163
171
|
ali: ManifestAliType;
|
|
@@ -166,5 +174,6 @@ export type Manifest = {
|
|
|
166
174
|
img?: ManifestImgType;
|
|
167
175
|
media?: ManifestMediaType;
|
|
168
176
|
txt?: ManifestTxtType;
|
|
177
|
+
affix?: ManifestAffixItem[];
|
|
169
178
|
meta: ManifestMetaType;
|
|
170
179
|
};
|
package/dist/upload.d.ts
CHANGED
|
@@ -2,22 +2,22 @@ import { HostType } from './host';
|
|
|
2
2
|
import { CloudInfoField, RecordFolderConfig, RecordType } from './record';
|
|
3
3
|
import { AffixItemData, ImgGroupData, MediaGroupData, SourceGroupData, TxtGroupData, UploadPrepareData } from './upload-process';
|
|
4
4
|
export declare enum EncodeStatus {
|
|
5
|
-
NULL,
|
|
5
|
+
NULL = 0,
|
|
6
6
|
PROCESS = 1,
|
|
7
7
|
SUCCESS = 2,
|
|
8
8
|
ERROR = 4
|
|
9
9
|
}
|
|
10
10
|
export declare enum UploadStatus {
|
|
11
|
-
NULL,
|
|
11
|
+
NULL = 0,
|
|
12
12
|
PROCESS = 1,
|
|
13
|
-
|
|
14
|
-
SUCCESS = 3,
|
|
13
|
+
SUCCESS = 2,
|
|
15
14
|
ERROR = 4
|
|
16
15
|
}
|
|
17
|
-
export declare enum
|
|
18
|
-
NULL,
|
|
16
|
+
export declare enum RootStatus {
|
|
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
|
-
|
|
42
|
-
|
|
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
|
-
|
|
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,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RootStatus = exports.UploadStatus = exports.EncodeStatus = void 0;
|
|
4
4
|
var EncodeStatus;
|
|
5
5
|
(function (EncodeStatus) {
|
|
6
|
-
EncodeStatus[EncodeStatus["NULL"] =
|
|
6
|
+
EncodeStatus[EncodeStatus["NULL"] = 0] = "NULL";
|
|
7
7
|
EncodeStatus[EncodeStatus["PROCESS"] = 1] = "PROCESS";
|
|
8
8
|
EncodeStatus[EncodeStatus["SUCCESS"] = 2] = "SUCCESS";
|
|
9
9
|
EncodeStatus[EncodeStatus["ERROR"] = 4] = "ERROR";
|
|
10
10
|
})(EncodeStatus || (exports.EncodeStatus = EncodeStatus = {}));
|
|
11
11
|
var UploadStatus;
|
|
12
12
|
(function (UploadStatus) {
|
|
13
|
-
UploadStatus[UploadStatus["NULL"] =
|
|
13
|
+
UploadStatus[UploadStatus["NULL"] = 0] = "NULL";
|
|
14
14
|
UploadStatus[UploadStatus["PROCESS"] = 1] = "PROCESS";
|
|
15
|
-
UploadStatus[UploadStatus["
|
|
16
|
-
UploadStatus[UploadStatus["SUCCESS"] = 3] = "SUCCESS";
|
|
15
|
+
UploadStatus[UploadStatus["SUCCESS"] = 2] = "SUCCESS";
|
|
17
16
|
UploadStatus[UploadStatus["ERROR"] = 4] = "ERROR";
|
|
18
17
|
})(UploadStatus || (exports.UploadStatus = UploadStatus = {}));
|
|
19
|
-
var
|
|
20
|
-
(function (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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.
|
|
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": "
|
|
34
|
+
"gitHead": "527e923683c11ace899c5111d7dcfb38115d4d48"
|
|
35
35
|
}
|