@soga/types 0.6.1 → 0.7.0
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/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +33 -31
- package/dist/index.mjs +32 -30
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,6 +39,12 @@ type WithP<T = never> = {
|
|
|
39
39
|
type WithPK<T = never> = WithP<{
|
|
40
40
|
keyword: string;
|
|
41
41
|
}> & T;
|
|
42
|
+
declare enum NormalStatus {
|
|
43
|
+
NULL = 0,
|
|
44
|
+
PROCESS = 1,
|
|
45
|
+
SUCCESS = 2,
|
|
46
|
+
ERROR = 4
|
|
47
|
+
}
|
|
42
48
|
|
|
43
49
|
declare enum HostType {
|
|
44
50
|
BAIDU = "baidu",
|
|
@@ -576,12 +582,6 @@ declare enum UploadStatus {
|
|
|
576
582
|
UPLOAD_PROCESS = 8,
|
|
577
583
|
UPLOAD_ERROR = 10
|
|
578
584
|
}
|
|
579
|
-
declare enum UploadNormalStatus {
|
|
580
|
-
NULL = 0,
|
|
581
|
-
PROCESS = 1,
|
|
582
|
-
SUCCESS = 2,
|
|
583
|
-
ERROR = 4
|
|
584
|
-
}
|
|
585
585
|
type UploadInputItem = {
|
|
586
586
|
filename: string;
|
|
587
587
|
filepath: string;
|
|
@@ -605,7 +605,7 @@ type UploadFileItem = {
|
|
|
605
605
|
inputs: UploadInputItem[];
|
|
606
606
|
filepath: string;
|
|
607
607
|
root_id: number;
|
|
608
|
-
root_status:
|
|
608
|
+
root_status: NormalStatus;
|
|
609
609
|
space_id: number;
|
|
610
610
|
space_name: string;
|
|
611
611
|
is_ready: boolean;
|
|
@@ -842,4 +842,4 @@ type NetSuccessItem = {
|
|
|
842
842
|
created_at: Date;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
-
export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem,
|
|
845
|
+
export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, type UploadPrepareData, type UploadPrepareOptions, UploadProcessStep, UploadStatus, type UploadWorkerMessage, type UploadWorkerPercent, type UploadedData, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK, type WorkerError };
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ type WithP<T = never> = {
|
|
|
39
39
|
type WithPK<T = never> = WithP<{
|
|
40
40
|
keyword: string;
|
|
41
41
|
}> & T;
|
|
42
|
+
declare enum NormalStatus {
|
|
43
|
+
NULL = 0,
|
|
44
|
+
PROCESS = 1,
|
|
45
|
+
SUCCESS = 2,
|
|
46
|
+
ERROR = 4
|
|
47
|
+
}
|
|
42
48
|
|
|
43
49
|
declare enum HostType {
|
|
44
50
|
BAIDU = "baidu",
|
|
@@ -576,12 +582,6 @@ declare enum UploadStatus {
|
|
|
576
582
|
UPLOAD_PROCESS = 8,
|
|
577
583
|
UPLOAD_ERROR = 10
|
|
578
584
|
}
|
|
579
|
-
declare enum UploadNormalStatus {
|
|
580
|
-
NULL = 0,
|
|
581
|
-
PROCESS = 1,
|
|
582
|
-
SUCCESS = 2,
|
|
583
|
-
ERROR = 4
|
|
584
|
-
}
|
|
585
585
|
type UploadInputItem = {
|
|
586
586
|
filename: string;
|
|
587
587
|
filepath: string;
|
|
@@ -605,7 +605,7 @@ type UploadFileItem = {
|
|
|
605
605
|
inputs: UploadInputItem[];
|
|
606
606
|
filepath: string;
|
|
607
607
|
root_id: number;
|
|
608
|
-
root_status:
|
|
608
|
+
root_status: NormalStatus;
|
|
609
609
|
space_id: number;
|
|
610
610
|
space_name: string;
|
|
611
611
|
is_ready: boolean;
|
|
@@ -842,4 +842,4 @@ type NetSuccessItem = {
|
|
|
842
842
|
created_at: Date;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
-
export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem,
|
|
845
|
+
export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, type UploadPrepareData, type UploadPrepareOptions, UploadProcessStep, UploadStatus, type UploadWorkerMessage, type UploadWorkerPercent, type UploadedData, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK, type WorkerError };
|
package/dist/index.js
CHANGED
|
@@ -23,31 +23,40 @@ __export(index_exports, {
|
|
|
23
23
|
DownloadStatus: () => DownloadStatus,
|
|
24
24
|
HostType: () => HostType,
|
|
25
25
|
NetType: () => NetType,
|
|
26
|
+
NormalStatus: () => NormalStatus,
|
|
26
27
|
RecordAdaptResolution: () => RecordAdaptResolution,
|
|
27
28
|
RecordFileKeep: () => RecordFileKeep,
|
|
28
29
|
RecordFtype: () => RecordFtype,
|
|
29
30
|
RecordInsertLast: () => RecordInsertLast,
|
|
30
31
|
RecordType: () => RecordType,
|
|
31
|
-
UploadNormalStatus: () => UploadNormalStatus,
|
|
32
32
|
UploadProcessStep: () => UploadProcessStep,
|
|
33
33
|
UploadStatus: () => UploadStatus
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
|
|
37
|
+
// src/common.ts
|
|
38
|
+
var NormalStatus = /* @__PURE__ */ (function(NormalStatus2) {
|
|
39
|
+
NormalStatus2[NormalStatus2["NULL"] = 0] = "NULL";
|
|
40
|
+
NormalStatus2[NormalStatus2["PROCESS"] = 1] = "PROCESS";
|
|
41
|
+
NormalStatus2[NormalStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
42
|
+
NormalStatus2[NormalStatus2["ERROR"] = 4] = "ERROR";
|
|
43
|
+
return NormalStatus2;
|
|
44
|
+
})({});
|
|
45
|
+
|
|
37
46
|
// src/host.ts
|
|
38
|
-
var HostType = /* @__PURE__ */ function(HostType2) {
|
|
47
|
+
var HostType = /* @__PURE__ */ (function(HostType2) {
|
|
39
48
|
HostType2["BAIDU"] = "baidu";
|
|
40
49
|
HostType2["ALI"] = "ali";
|
|
41
50
|
return HostType2;
|
|
42
|
-
}({});
|
|
43
|
-
var CloudType = /* @__PURE__ */ function(CloudType2) {
|
|
51
|
+
})({});
|
|
52
|
+
var CloudType = /* @__PURE__ */ (function(CloudType2) {
|
|
44
53
|
CloudType2[CloudType2["BAIDU"] = 1] = "BAIDU";
|
|
45
54
|
CloudType2[CloudType2["ALI"] = 2] = "ALI";
|
|
46
55
|
return CloudType2;
|
|
47
|
-
}({});
|
|
56
|
+
})({});
|
|
48
57
|
|
|
49
58
|
// src/record.ts
|
|
50
|
-
var RecordType = /* @__PURE__ */ function(RecordType2) {
|
|
59
|
+
var RecordType = /* @__PURE__ */ (function(RecordType2) {
|
|
51
60
|
RecordType2[RecordType2["FOLDER"] = 0] = "FOLDER";
|
|
52
61
|
RecordType2[RecordType2["VIDEO"] = 1] = "VIDEO";
|
|
53
62
|
RecordType2[RecordType2["AUDIO"] = 2] = "AUDIO";
|
|
@@ -56,8 +65,8 @@ var RecordType = /* @__PURE__ */ function(RecordType2) {
|
|
|
56
65
|
RecordType2[RecordType2["OTHER"] = 5] = "OTHER";
|
|
57
66
|
RecordType2[RecordType2["AFFIX"] = 9] = "AFFIX";
|
|
58
67
|
return RecordType2;
|
|
59
|
-
}({});
|
|
60
|
-
var RecordFtype = /* @__PURE__ */ function(RecordFtype2) {
|
|
68
|
+
})({});
|
|
69
|
+
var RecordFtype = /* @__PURE__ */ (function(RecordFtype2) {
|
|
61
70
|
RecordFtype2[RecordFtype2["NONE"] = 0] = "NONE";
|
|
62
71
|
RecordFtype2[RecordFtype2["VIDEO_NORMAL"] = 10] = "VIDEO_NORMAL";
|
|
63
72
|
RecordFtype2[RecordFtype2["VIDEO_VR"] = 11] = "VIDEO_VR";
|
|
@@ -74,29 +83,29 @@ var RecordFtype = /* @__PURE__ */ function(RecordFtype2) {
|
|
|
74
83
|
RecordFtype2[RecordFtype2["DOC_EXCEL"] = 46] = "DOC_EXCEL";
|
|
75
84
|
RecordFtype2[RecordFtype2["DOC_PPT"] = 47] = "DOC_PPT";
|
|
76
85
|
return RecordFtype2;
|
|
77
|
-
}({});
|
|
78
|
-
var RecordInsertLast = /* @__PURE__ */ function(RecordInsertLast2) {
|
|
86
|
+
})({});
|
|
87
|
+
var RecordInsertLast = /* @__PURE__ */ (function(RecordInsertLast2) {
|
|
79
88
|
RecordInsertLast2[RecordInsertLast2["NULL"] = 0] = "NULL";
|
|
80
89
|
RecordInsertLast2[RecordInsertLast2["YES"] = 1] = "YES";
|
|
81
90
|
RecordInsertLast2[RecordInsertLast2["NO"] = -1] = "NO";
|
|
82
91
|
return RecordInsertLast2;
|
|
83
|
-
}({});
|
|
84
|
-
var RecordFileKeep = /* @__PURE__ */ function(RecordFileKeep2) {
|
|
92
|
+
})({});
|
|
93
|
+
var RecordFileKeep = /* @__PURE__ */ (function(RecordFileKeep2) {
|
|
85
94
|
RecordFileKeep2[RecordFileKeep2["NULL"] = 0] = "NULL";
|
|
86
95
|
RecordFileKeep2[RecordFileKeep2["SOURCE"] = 1] = "SOURCE";
|
|
87
96
|
RecordFileKeep2[RecordFileKeep2["PREVIEW"] = 2] = "PREVIEW";
|
|
88
97
|
RecordFileKeep2[RecordFileKeep2["BOTH"] = 3] = "BOTH";
|
|
89
98
|
return RecordFileKeep2;
|
|
90
|
-
}({});
|
|
91
|
-
var RecordAdaptResolution = /* @__PURE__ */ function(RecordAdaptResolution2) {
|
|
99
|
+
})({});
|
|
100
|
+
var RecordAdaptResolution = /* @__PURE__ */ (function(RecordAdaptResolution2) {
|
|
92
101
|
RecordAdaptResolution2[RecordAdaptResolution2["NULL"] = 0] = "NULL";
|
|
93
102
|
RecordAdaptResolution2[RecordAdaptResolution2["YES"] = 1] = "YES";
|
|
94
103
|
RecordAdaptResolution2[RecordAdaptResolution2["NO"] = -1] = "NO";
|
|
95
104
|
return RecordAdaptResolution2;
|
|
96
|
-
}({});
|
|
105
|
+
})({});
|
|
97
106
|
|
|
98
107
|
// src/upload.ts
|
|
99
|
-
var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
108
|
+
var UploadStatus = /* @__PURE__ */ (function(UploadStatus2) {
|
|
100
109
|
UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
|
|
101
110
|
UploadStatus2[UploadStatus2["ENCODE_READY"] = 0] = "ENCODE_READY";
|
|
102
111
|
UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 2] = "ENCODE_PROCESS";
|
|
@@ -106,33 +115,26 @@ var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
|
106
115
|
UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
|
|
107
116
|
UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
|
|
108
117
|
return UploadStatus2;
|
|
109
|
-
}({});
|
|
110
|
-
var UploadNormalStatus = /* @__PURE__ */ function(UploadNormalStatus2) {
|
|
111
|
-
UploadNormalStatus2[UploadNormalStatus2["NULL"] = 0] = "NULL";
|
|
112
|
-
UploadNormalStatus2[UploadNormalStatus2["PROCESS"] = 1] = "PROCESS";
|
|
113
|
-
UploadNormalStatus2[UploadNormalStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
114
|
-
UploadNormalStatus2[UploadNormalStatus2["ERROR"] = 4] = "ERROR";
|
|
115
|
-
return UploadNormalStatus2;
|
|
116
|
-
}({});
|
|
118
|
+
})({});
|
|
117
119
|
|
|
118
120
|
// src/download.ts
|
|
119
|
-
var DownloadStatus = /* @__PURE__ */ function(DownloadStatus2) {
|
|
121
|
+
var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
|
|
120
122
|
DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
|
|
121
123
|
DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
|
|
122
124
|
DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
123
125
|
DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
|
|
124
126
|
return DownloadStatus2;
|
|
125
|
-
}({});
|
|
127
|
+
})({});
|
|
126
128
|
|
|
127
129
|
// src/net-success.ts
|
|
128
|
-
var NetType = /* @__PURE__ */ function(NetType2) {
|
|
130
|
+
var NetType = /* @__PURE__ */ (function(NetType2) {
|
|
129
131
|
NetType2["DOWNLOAD"] = "download";
|
|
130
132
|
NetType2["UPLOAD"] = "upload";
|
|
131
133
|
return NetType2;
|
|
132
|
-
}({});
|
|
134
|
+
})({});
|
|
133
135
|
|
|
134
136
|
// src/upload-process.ts
|
|
135
|
-
var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
137
|
+
var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
|
|
136
138
|
UploadProcessStep2["prepare"] = "PREPARE";
|
|
137
139
|
UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
|
|
138
140
|
UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
|
|
@@ -149,19 +151,19 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
149
151
|
UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
|
|
150
152
|
UploadProcessStep2["end"] = "END";
|
|
151
153
|
return UploadProcessStep2;
|
|
152
|
-
}({});
|
|
154
|
+
})({});
|
|
153
155
|
// Annotate the CommonJS export names for ESM import in node:
|
|
154
156
|
0 && (module.exports = {
|
|
155
157
|
CloudType,
|
|
156
158
|
DownloadStatus,
|
|
157
159
|
HostType,
|
|
158
160
|
NetType,
|
|
161
|
+
NormalStatus,
|
|
159
162
|
RecordAdaptResolution,
|
|
160
163
|
RecordFileKeep,
|
|
161
164
|
RecordFtype,
|
|
162
165
|
RecordInsertLast,
|
|
163
166
|
RecordType,
|
|
164
|
-
UploadNormalStatus,
|
|
165
167
|
UploadProcessStep,
|
|
166
168
|
UploadStatus
|
|
167
169
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
|
+
// src/common.ts
|
|
2
|
+
var NormalStatus = /* @__PURE__ */ (function(NormalStatus2) {
|
|
3
|
+
NormalStatus2[NormalStatus2["NULL"] = 0] = "NULL";
|
|
4
|
+
NormalStatus2[NormalStatus2["PROCESS"] = 1] = "PROCESS";
|
|
5
|
+
NormalStatus2[NormalStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
6
|
+
NormalStatus2[NormalStatus2["ERROR"] = 4] = "ERROR";
|
|
7
|
+
return NormalStatus2;
|
|
8
|
+
})({});
|
|
9
|
+
|
|
1
10
|
// src/host.ts
|
|
2
|
-
var HostType = /* @__PURE__ */ function(HostType2) {
|
|
11
|
+
var HostType = /* @__PURE__ */ (function(HostType2) {
|
|
3
12
|
HostType2["BAIDU"] = "baidu";
|
|
4
13
|
HostType2["ALI"] = "ali";
|
|
5
14
|
return HostType2;
|
|
6
|
-
}({});
|
|
7
|
-
var CloudType = /* @__PURE__ */ function(CloudType2) {
|
|
15
|
+
})({});
|
|
16
|
+
var CloudType = /* @__PURE__ */ (function(CloudType2) {
|
|
8
17
|
CloudType2[CloudType2["BAIDU"] = 1] = "BAIDU";
|
|
9
18
|
CloudType2[CloudType2["ALI"] = 2] = "ALI";
|
|
10
19
|
return CloudType2;
|
|
11
|
-
}({});
|
|
20
|
+
})({});
|
|
12
21
|
|
|
13
22
|
// src/record.ts
|
|
14
|
-
var RecordType = /* @__PURE__ */ function(RecordType2) {
|
|
23
|
+
var RecordType = /* @__PURE__ */ (function(RecordType2) {
|
|
15
24
|
RecordType2[RecordType2["FOLDER"] = 0] = "FOLDER";
|
|
16
25
|
RecordType2[RecordType2["VIDEO"] = 1] = "VIDEO";
|
|
17
26
|
RecordType2[RecordType2["AUDIO"] = 2] = "AUDIO";
|
|
@@ -20,8 +29,8 @@ var RecordType = /* @__PURE__ */ function(RecordType2) {
|
|
|
20
29
|
RecordType2[RecordType2["OTHER"] = 5] = "OTHER";
|
|
21
30
|
RecordType2[RecordType2["AFFIX"] = 9] = "AFFIX";
|
|
22
31
|
return RecordType2;
|
|
23
|
-
}({});
|
|
24
|
-
var RecordFtype = /* @__PURE__ */ function(RecordFtype2) {
|
|
32
|
+
})({});
|
|
33
|
+
var RecordFtype = /* @__PURE__ */ (function(RecordFtype2) {
|
|
25
34
|
RecordFtype2[RecordFtype2["NONE"] = 0] = "NONE";
|
|
26
35
|
RecordFtype2[RecordFtype2["VIDEO_NORMAL"] = 10] = "VIDEO_NORMAL";
|
|
27
36
|
RecordFtype2[RecordFtype2["VIDEO_VR"] = 11] = "VIDEO_VR";
|
|
@@ -38,29 +47,29 @@ var RecordFtype = /* @__PURE__ */ function(RecordFtype2) {
|
|
|
38
47
|
RecordFtype2[RecordFtype2["DOC_EXCEL"] = 46] = "DOC_EXCEL";
|
|
39
48
|
RecordFtype2[RecordFtype2["DOC_PPT"] = 47] = "DOC_PPT";
|
|
40
49
|
return RecordFtype2;
|
|
41
|
-
}({});
|
|
42
|
-
var RecordInsertLast = /* @__PURE__ */ function(RecordInsertLast2) {
|
|
50
|
+
})({});
|
|
51
|
+
var RecordInsertLast = /* @__PURE__ */ (function(RecordInsertLast2) {
|
|
43
52
|
RecordInsertLast2[RecordInsertLast2["NULL"] = 0] = "NULL";
|
|
44
53
|
RecordInsertLast2[RecordInsertLast2["YES"] = 1] = "YES";
|
|
45
54
|
RecordInsertLast2[RecordInsertLast2["NO"] = -1] = "NO";
|
|
46
55
|
return RecordInsertLast2;
|
|
47
|
-
}({});
|
|
48
|
-
var RecordFileKeep = /* @__PURE__ */ function(RecordFileKeep2) {
|
|
56
|
+
})({});
|
|
57
|
+
var RecordFileKeep = /* @__PURE__ */ (function(RecordFileKeep2) {
|
|
49
58
|
RecordFileKeep2[RecordFileKeep2["NULL"] = 0] = "NULL";
|
|
50
59
|
RecordFileKeep2[RecordFileKeep2["SOURCE"] = 1] = "SOURCE";
|
|
51
60
|
RecordFileKeep2[RecordFileKeep2["PREVIEW"] = 2] = "PREVIEW";
|
|
52
61
|
RecordFileKeep2[RecordFileKeep2["BOTH"] = 3] = "BOTH";
|
|
53
62
|
return RecordFileKeep2;
|
|
54
|
-
}({});
|
|
55
|
-
var RecordAdaptResolution = /* @__PURE__ */ function(RecordAdaptResolution2) {
|
|
63
|
+
})({});
|
|
64
|
+
var RecordAdaptResolution = /* @__PURE__ */ (function(RecordAdaptResolution2) {
|
|
56
65
|
RecordAdaptResolution2[RecordAdaptResolution2["NULL"] = 0] = "NULL";
|
|
57
66
|
RecordAdaptResolution2[RecordAdaptResolution2["YES"] = 1] = "YES";
|
|
58
67
|
RecordAdaptResolution2[RecordAdaptResolution2["NO"] = -1] = "NO";
|
|
59
68
|
return RecordAdaptResolution2;
|
|
60
|
-
}({});
|
|
69
|
+
})({});
|
|
61
70
|
|
|
62
71
|
// src/upload.ts
|
|
63
|
-
var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
72
|
+
var UploadStatus = /* @__PURE__ */ (function(UploadStatus2) {
|
|
64
73
|
UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
|
|
65
74
|
UploadStatus2[UploadStatus2["ENCODE_READY"] = 0] = "ENCODE_READY";
|
|
66
75
|
UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 2] = "ENCODE_PROCESS";
|
|
@@ -70,33 +79,26 @@ var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
|
70
79
|
UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
|
|
71
80
|
UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
|
|
72
81
|
return UploadStatus2;
|
|
73
|
-
}({});
|
|
74
|
-
var UploadNormalStatus = /* @__PURE__ */ function(UploadNormalStatus2) {
|
|
75
|
-
UploadNormalStatus2[UploadNormalStatus2["NULL"] = 0] = "NULL";
|
|
76
|
-
UploadNormalStatus2[UploadNormalStatus2["PROCESS"] = 1] = "PROCESS";
|
|
77
|
-
UploadNormalStatus2[UploadNormalStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
78
|
-
UploadNormalStatus2[UploadNormalStatus2["ERROR"] = 4] = "ERROR";
|
|
79
|
-
return UploadNormalStatus2;
|
|
80
|
-
}({});
|
|
82
|
+
})({});
|
|
81
83
|
|
|
82
84
|
// src/download.ts
|
|
83
|
-
var DownloadStatus = /* @__PURE__ */ function(DownloadStatus2) {
|
|
85
|
+
var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
|
|
84
86
|
DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
|
|
85
87
|
DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
|
|
86
88
|
DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
87
89
|
DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
|
|
88
90
|
return DownloadStatus2;
|
|
89
|
-
}({});
|
|
91
|
+
})({});
|
|
90
92
|
|
|
91
93
|
// src/net-success.ts
|
|
92
|
-
var NetType = /* @__PURE__ */ function(NetType2) {
|
|
94
|
+
var NetType = /* @__PURE__ */ (function(NetType2) {
|
|
93
95
|
NetType2["DOWNLOAD"] = "download";
|
|
94
96
|
NetType2["UPLOAD"] = "upload";
|
|
95
97
|
return NetType2;
|
|
96
|
-
}({});
|
|
98
|
+
})({});
|
|
97
99
|
|
|
98
100
|
// src/upload-process.ts
|
|
99
|
-
var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
101
|
+
var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
|
|
100
102
|
UploadProcessStep2["prepare"] = "PREPARE";
|
|
101
103
|
UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
|
|
102
104
|
UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
|
|
@@ -113,18 +115,18 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
113
115
|
UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
|
|
114
116
|
UploadProcessStep2["end"] = "END";
|
|
115
117
|
return UploadProcessStep2;
|
|
116
|
-
}({});
|
|
118
|
+
})({});
|
|
117
119
|
export {
|
|
118
120
|
CloudType,
|
|
119
121
|
DownloadStatus,
|
|
120
122
|
HostType,
|
|
121
123
|
NetType,
|
|
124
|
+
NormalStatus,
|
|
122
125
|
RecordAdaptResolution,
|
|
123
126
|
RecordFileKeep,
|
|
124
127
|
RecordFtype,
|
|
125
128
|
RecordInsertLast,
|
|
126
129
|
RecordType,
|
|
127
|
-
UploadNormalStatus,
|
|
128
130
|
UploadProcessStep,
|
|
129
131
|
UploadStatus
|
|
130
132
|
};
|