@soga/types 0.6.1 → 0.8.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 +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +36 -31
- package/dist/index.mjs +35 -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",
|
|
@@ -574,13 +580,10 @@ declare enum UploadStatus {
|
|
|
574
580
|
ENCODE_SUCCESS = 6,
|
|
575
581
|
UPLOAD_READY = 6,
|
|
576
582
|
UPLOAD_PROCESS = 8,
|
|
577
|
-
UPLOAD_ERROR = 10
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
PROCESS = 1,
|
|
582
|
-
SUCCESS = 2,
|
|
583
|
-
ERROR = 4
|
|
583
|
+
UPLOAD_ERROR = 10,
|
|
584
|
+
UPLOAD_SUCCESS = 12,
|
|
585
|
+
SUBMIT_READY = 12,
|
|
586
|
+
SUBMIT_ERROR = 14
|
|
584
587
|
}
|
|
585
588
|
type UploadInputItem = {
|
|
586
589
|
filename: string;
|
|
@@ -605,7 +608,7 @@ type UploadFileItem = {
|
|
|
605
608
|
inputs: UploadInputItem[];
|
|
606
609
|
filepath: string;
|
|
607
610
|
root_id: number;
|
|
608
|
-
root_status:
|
|
611
|
+
root_status: NormalStatus;
|
|
609
612
|
space_id: number;
|
|
610
613
|
space_name: string;
|
|
611
614
|
is_ready: boolean;
|
|
@@ -842,4 +845,4 @@ type NetSuccessItem = {
|
|
|
842
845
|
created_at: Date;
|
|
843
846
|
};
|
|
844
847
|
|
|
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,
|
|
848
|
+
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",
|
|
@@ -574,13 +580,10 @@ declare enum UploadStatus {
|
|
|
574
580
|
ENCODE_SUCCESS = 6,
|
|
575
581
|
UPLOAD_READY = 6,
|
|
576
582
|
UPLOAD_PROCESS = 8,
|
|
577
|
-
UPLOAD_ERROR = 10
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
PROCESS = 1,
|
|
582
|
-
SUCCESS = 2,
|
|
583
|
-
ERROR = 4
|
|
583
|
+
UPLOAD_ERROR = 10,
|
|
584
|
+
UPLOAD_SUCCESS = 12,
|
|
585
|
+
SUBMIT_READY = 12,
|
|
586
|
+
SUBMIT_ERROR = 14
|
|
584
587
|
}
|
|
585
588
|
type UploadInputItem = {
|
|
586
589
|
filename: string;
|
|
@@ -605,7 +608,7 @@ type UploadFileItem = {
|
|
|
605
608
|
inputs: UploadInputItem[];
|
|
606
609
|
filepath: string;
|
|
607
610
|
root_id: number;
|
|
608
|
-
root_status:
|
|
611
|
+
root_status: NormalStatus;
|
|
609
612
|
space_id: number;
|
|
610
613
|
space_name: string;
|
|
611
614
|
is_ready: boolean;
|
|
@@ -842,4 +845,4 @@ type NetSuccessItem = {
|
|
|
842
845
|
created_at: Date;
|
|
843
846
|
};
|
|
844
847
|
|
|
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,
|
|
848
|
+
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";
|
|
@@ -105,34 +114,30 @@ var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
|
105
114
|
UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
|
|
106
115
|
UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
|
|
107
116
|
UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
|
|
117
|
+
UploadStatus2[UploadStatus2["UPLOAD_SUCCESS"] = 12] = "UPLOAD_SUCCESS";
|
|
118
|
+
UploadStatus2[UploadStatus2["SUBMIT_READY"] = 12] = "SUBMIT_READY";
|
|
119
|
+
UploadStatus2[UploadStatus2["SUBMIT_ERROR"] = 14] = "SUBMIT_ERROR";
|
|
108
120
|
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
|
-
}({});
|
|
121
|
+
})({});
|
|
117
122
|
|
|
118
123
|
// src/download.ts
|
|
119
|
-
var DownloadStatus = /* @__PURE__ */ function(DownloadStatus2) {
|
|
124
|
+
var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
|
|
120
125
|
DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
|
|
121
126
|
DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
|
|
122
127
|
DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
123
128
|
DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
|
|
124
129
|
return DownloadStatus2;
|
|
125
|
-
}({});
|
|
130
|
+
})({});
|
|
126
131
|
|
|
127
132
|
// src/net-success.ts
|
|
128
|
-
var NetType = /* @__PURE__ */ function(NetType2) {
|
|
133
|
+
var NetType = /* @__PURE__ */ (function(NetType2) {
|
|
129
134
|
NetType2["DOWNLOAD"] = "download";
|
|
130
135
|
NetType2["UPLOAD"] = "upload";
|
|
131
136
|
return NetType2;
|
|
132
|
-
}({});
|
|
137
|
+
})({});
|
|
133
138
|
|
|
134
139
|
// src/upload-process.ts
|
|
135
|
-
var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
140
|
+
var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
|
|
136
141
|
UploadProcessStep2["prepare"] = "PREPARE";
|
|
137
142
|
UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
|
|
138
143
|
UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
|
|
@@ -149,19 +154,19 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
149
154
|
UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
|
|
150
155
|
UploadProcessStep2["end"] = "END";
|
|
151
156
|
return UploadProcessStep2;
|
|
152
|
-
}({});
|
|
157
|
+
})({});
|
|
153
158
|
// Annotate the CommonJS export names for ESM import in node:
|
|
154
159
|
0 && (module.exports = {
|
|
155
160
|
CloudType,
|
|
156
161
|
DownloadStatus,
|
|
157
162
|
HostType,
|
|
158
163
|
NetType,
|
|
164
|
+
NormalStatus,
|
|
159
165
|
RecordAdaptResolution,
|
|
160
166
|
RecordFileKeep,
|
|
161
167
|
RecordFtype,
|
|
162
168
|
RecordInsertLast,
|
|
163
169
|
RecordType,
|
|
164
|
-
UploadNormalStatus,
|
|
165
170
|
UploadProcessStep,
|
|
166
171
|
UploadStatus
|
|
167
172
|
});
|
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";
|
|
@@ -69,34 +78,30 @@ var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
|
69
78
|
UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
|
|
70
79
|
UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
|
|
71
80
|
UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
|
|
81
|
+
UploadStatus2[UploadStatus2["UPLOAD_SUCCESS"] = 12] = "UPLOAD_SUCCESS";
|
|
82
|
+
UploadStatus2[UploadStatus2["SUBMIT_READY"] = 12] = "SUBMIT_READY";
|
|
83
|
+
UploadStatus2[UploadStatus2["SUBMIT_ERROR"] = 14] = "SUBMIT_ERROR";
|
|
72
84
|
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
|
-
}({});
|
|
85
|
+
})({});
|
|
81
86
|
|
|
82
87
|
// src/download.ts
|
|
83
|
-
var DownloadStatus = /* @__PURE__ */ function(DownloadStatus2) {
|
|
88
|
+
var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
|
|
84
89
|
DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
|
|
85
90
|
DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
|
|
86
91
|
DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
87
92
|
DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
|
|
88
93
|
return DownloadStatus2;
|
|
89
|
-
}({});
|
|
94
|
+
})({});
|
|
90
95
|
|
|
91
96
|
// src/net-success.ts
|
|
92
|
-
var NetType = /* @__PURE__ */ function(NetType2) {
|
|
97
|
+
var NetType = /* @__PURE__ */ (function(NetType2) {
|
|
93
98
|
NetType2["DOWNLOAD"] = "download";
|
|
94
99
|
NetType2["UPLOAD"] = "upload";
|
|
95
100
|
return NetType2;
|
|
96
|
-
}({});
|
|
101
|
+
})({});
|
|
97
102
|
|
|
98
103
|
// src/upload-process.ts
|
|
99
|
-
var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
104
|
+
var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
|
|
100
105
|
UploadProcessStep2["prepare"] = "PREPARE";
|
|
101
106
|
UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
|
|
102
107
|
UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
|
|
@@ -113,18 +118,18 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
113
118
|
UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
|
|
114
119
|
UploadProcessStep2["end"] = "END";
|
|
115
120
|
return UploadProcessStep2;
|
|
116
|
-
}({});
|
|
121
|
+
})({});
|
|
117
122
|
export {
|
|
118
123
|
CloudType,
|
|
119
124
|
DownloadStatus,
|
|
120
125
|
HostType,
|
|
121
126
|
NetType,
|
|
127
|
+
NormalStatus,
|
|
122
128
|
RecordAdaptResolution,
|
|
123
129
|
RecordFileKeep,
|
|
124
130
|
RecordFtype,
|
|
125
131
|
RecordInsertLast,
|
|
126
132
|
RecordType,
|
|
127
|
-
UploadNormalStatus,
|
|
128
133
|
UploadProcessStep,
|
|
129
134
|
UploadStatus
|
|
130
135
|
};
|