@soga/types 0.8.3 → 0.9.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 +151 -346
- package/dist/index.d.ts +151 -346
- package/dist/index.js +1 -172
- package/dist/index.mjs +1 -135
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -1,172 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/index.ts
|
|
20
|
-
var index_exports = {};
|
|
21
|
-
__export(index_exports, {
|
|
22
|
-
CloudType: () => CloudType,
|
|
23
|
-
DownloadStatus: () => DownloadStatus,
|
|
24
|
-
HostType: () => HostType,
|
|
25
|
-
NetType: () => NetType,
|
|
26
|
-
NormalStatus: () => NormalStatus,
|
|
27
|
-
RecordAdaptResolution: () => RecordAdaptResolution,
|
|
28
|
-
RecordFileKeep: () => RecordFileKeep,
|
|
29
|
-
RecordFtype: () => RecordFtype,
|
|
30
|
-
RecordInsertLast: () => RecordInsertLast,
|
|
31
|
-
RecordType: () => RecordType,
|
|
32
|
-
UploadProcessStep: () => UploadProcessStep,
|
|
33
|
-
UploadStatus: () => UploadStatus
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(index_exports);
|
|
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
|
-
|
|
46
|
-
// src/host.ts
|
|
47
|
-
var HostType = /* @__PURE__ */ (function(HostType2) {
|
|
48
|
-
HostType2["BAIDU"] = "baidu";
|
|
49
|
-
HostType2["ALI"] = "ali";
|
|
50
|
-
return HostType2;
|
|
51
|
-
})({});
|
|
52
|
-
var CloudType = /* @__PURE__ */ (function(CloudType2) {
|
|
53
|
-
CloudType2[CloudType2["BAIDU"] = 1] = "BAIDU";
|
|
54
|
-
CloudType2[CloudType2["ALI"] = 2] = "ALI";
|
|
55
|
-
return CloudType2;
|
|
56
|
-
})({});
|
|
57
|
-
|
|
58
|
-
// src/record.ts
|
|
59
|
-
var RecordType = /* @__PURE__ */ (function(RecordType2) {
|
|
60
|
-
RecordType2[RecordType2["FOLDER"] = 0] = "FOLDER";
|
|
61
|
-
RecordType2[RecordType2["VIDEO"] = 1] = "VIDEO";
|
|
62
|
-
RecordType2[RecordType2["AUDIO"] = 2] = "AUDIO";
|
|
63
|
-
RecordType2[RecordType2["IMAGE"] = 3] = "IMAGE";
|
|
64
|
-
RecordType2[RecordType2["DOC"] = 4] = "DOC";
|
|
65
|
-
RecordType2[RecordType2["OTHER"] = 5] = "OTHER";
|
|
66
|
-
RecordType2[RecordType2["AFFIX"] = 9] = "AFFIX";
|
|
67
|
-
return RecordType2;
|
|
68
|
-
})({});
|
|
69
|
-
var RecordFtype = /* @__PURE__ */ (function(RecordFtype2) {
|
|
70
|
-
RecordFtype2[RecordFtype2["NONE"] = 0] = "NONE";
|
|
71
|
-
RecordFtype2[RecordFtype2["VIDEO_NORMAL"] = 10] = "VIDEO_NORMAL";
|
|
72
|
-
RecordFtype2[RecordFtype2["VIDEO_VR"] = 11] = "VIDEO_VR";
|
|
73
|
-
RecordFtype2[RecordFtype2["VIDEO_3D"] = 12] = "VIDEO_3D";
|
|
74
|
-
RecordFtype2[RecordFtype2["AUDIO_NORMAL"] = 20] = "AUDIO_NORMAL";
|
|
75
|
-
RecordFtype2[RecordFtype2["IMAGE_NORMAL"] = 30] = "IMAGE_NORMAL";
|
|
76
|
-
RecordFtype2[RecordFtype2["IMAGE_VR"] = 31] = "IMAGE_VR";
|
|
77
|
-
RecordFtype2[RecordFtype2["DOC_NORMAL"] = 40] = "DOC_NORMAL";
|
|
78
|
-
RecordFtype2[RecordFtype2["DOC_TXT"] = 41] = "DOC_TXT";
|
|
79
|
-
RecordFtype2[RecordFtype2["DOC_CODE"] = 42] = "DOC_CODE";
|
|
80
|
-
RecordFtype2[RecordFtype2["DOC_MD"] = 43] = "DOC_MD";
|
|
81
|
-
RecordFtype2[RecordFtype2["DOC_PDF"] = 44] = "DOC_PDF";
|
|
82
|
-
RecordFtype2[RecordFtype2["DOC_WORD"] = 45] = "DOC_WORD";
|
|
83
|
-
RecordFtype2[RecordFtype2["DOC_EXCEL"] = 46] = "DOC_EXCEL";
|
|
84
|
-
RecordFtype2[RecordFtype2["DOC_PPT"] = 47] = "DOC_PPT";
|
|
85
|
-
return RecordFtype2;
|
|
86
|
-
})({});
|
|
87
|
-
var RecordInsertLast = /* @__PURE__ */ (function(RecordInsertLast2) {
|
|
88
|
-
RecordInsertLast2[RecordInsertLast2["NULL"] = 0] = "NULL";
|
|
89
|
-
RecordInsertLast2[RecordInsertLast2["YES"] = 1] = "YES";
|
|
90
|
-
RecordInsertLast2[RecordInsertLast2["NO"] = -1] = "NO";
|
|
91
|
-
return RecordInsertLast2;
|
|
92
|
-
})({});
|
|
93
|
-
var RecordFileKeep = /* @__PURE__ */ (function(RecordFileKeep2) {
|
|
94
|
-
RecordFileKeep2[RecordFileKeep2["NULL"] = 0] = "NULL";
|
|
95
|
-
RecordFileKeep2[RecordFileKeep2["SOURCE"] = 1] = "SOURCE";
|
|
96
|
-
RecordFileKeep2[RecordFileKeep2["PREVIEW"] = 2] = "PREVIEW";
|
|
97
|
-
RecordFileKeep2[RecordFileKeep2["BOTH"] = 3] = "BOTH";
|
|
98
|
-
return RecordFileKeep2;
|
|
99
|
-
})({});
|
|
100
|
-
var RecordAdaptResolution = /* @__PURE__ */ (function(RecordAdaptResolution2) {
|
|
101
|
-
RecordAdaptResolution2[RecordAdaptResolution2["NULL"] = 0] = "NULL";
|
|
102
|
-
RecordAdaptResolution2[RecordAdaptResolution2["YES"] = 1] = "YES";
|
|
103
|
-
RecordAdaptResolution2[RecordAdaptResolution2["NO"] = -1] = "NO";
|
|
104
|
-
return RecordAdaptResolution2;
|
|
105
|
-
})({});
|
|
106
|
-
|
|
107
|
-
// src/upload.ts
|
|
108
|
-
var UploadStatus = /* @__PURE__ */ (function(UploadStatus2) {
|
|
109
|
-
UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
|
|
110
|
-
UploadStatus2[UploadStatus2["ENCODE_READY"] = 0] = "ENCODE_READY";
|
|
111
|
-
UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 2] = "ENCODE_PROCESS";
|
|
112
|
-
UploadStatus2[UploadStatus2["ENCODE_ERROR"] = 4] = "ENCODE_ERROR";
|
|
113
|
-
UploadStatus2[UploadStatus2["ENCODE_SUCCESS"] = 6] = "ENCODE_SUCCESS";
|
|
114
|
-
UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
|
|
115
|
-
UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
|
|
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";
|
|
120
|
-
return UploadStatus2;
|
|
121
|
-
})({});
|
|
122
|
-
|
|
123
|
-
// src/download.ts
|
|
124
|
-
var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
|
|
125
|
-
DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
|
|
126
|
-
DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
|
|
127
|
-
DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
128
|
-
DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
|
|
129
|
-
return DownloadStatus2;
|
|
130
|
-
})({});
|
|
131
|
-
|
|
132
|
-
// src/net-success.ts
|
|
133
|
-
var NetType = /* @__PURE__ */ (function(NetType2) {
|
|
134
|
-
NetType2["DOWNLOAD"] = "download";
|
|
135
|
-
NetType2["UPLOAD"] = "upload";
|
|
136
|
-
return NetType2;
|
|
137
|
-
})({});
|
|
138
|
-
|
|
139
|
-
// src/upload-process.ts
|
|
140
|
-
var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
|
|
141
|
-
UploadProcessStep2["prepare"] = "PREPARE";
|
|
142
|
-
UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
|
|
143
|
-
UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
|
|
144
|
-
UploadProcessStep2["separate_text"] = "SEPARATE_TEXT";
|
|
145
|
-
UploadProcessStep2["transcode_video"] = "TRANSCODE_VIDEO";
|
|
146
|
-
UploadProcessStep2["transcode_audio"] = "TRANSCODE_AUDIO";
|
|
147
|
-
UploadProcessStep2["transcode_thumbnail"] = "TRANSCODE_THUMBNAIL";
|
|
148
|
-
UploadProcessStep2["transcode_source"] = "TRANSCODE_SOURCE";
|
|
149
|
-
UploadProcessStep2["transcode_txt"] = "TRANSCODE_TXT";
|
|
150
|
-
UploadProcessStep2["transcode_img"] = "TRANSCODE_IMG";
|
|
151
|
-
UploadProcessStep2["transcode_affix"] = "TRANSCODE_AFFIX";
|
|
152
|
-
UploadProcessStep2["group_media"] = "GROUP_MEDIA";
|
|
153
|
-
UploadProcessStep2["upload_baidu"] = "UPLOAD_BAIDU";
|
|
154
|
-
UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
|
|
155
|
-
UploadProcessStep2["end"] = "END";
|
|
156
|
-
return UploadProcessStep2;
|
|
157
|
-
})({});
|
|
158
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
159
|
-
0 && (module.exports = {
|
|
160
|
-
CloudType,
|
|
161
|
-
DownloadStatus,
|
|
162
|
-
HostType,
|
|
163
|
-
NetType,
|
|
164
|
-
NormalStatus,
|
|
165
|
-
RecordAdaptResolution,
|
|
166
|
-
RecordFileKeep,
|
|
167
|
-
RecordFtype,
|
|
168
|
-
RecordInsertLast,
|
|
169
|
-
RecordType,
|
|
170
|
-
UploadProcessStep,
|
|
171
|
-
UploadStatus
|
|
172
|
-
});
|
|
1
|
+
var O,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,e=Object.getOwnPropertyNames,R=Object.prototype.hasOwnProperty,_={};((O,D)=>{for(var e in D)E(O,e,{get:D[e],enumerable:!0})})(_,{CloudType:()=>A,DownloadStatus:()=>u,HostType:()=>r,NetType:()=>a,NormalStatus:()=>t,RecordAdaptResolution:()=>L,RecordFileKeep:()=>n,RecordFtype:()=>S,RecordInsertLast:()=>o,RecordType:()=>C,UploadProgress:()=>N,UploadStatus:()=>U}),module.exports=(O=_,((O,_,t,r)=>{if(_&&"object"==typeof _||"function"==typeof _)for(let A of e(_))R.call(O,A)||A===t||E(O,A,{get:()=>_[A],enumerable:!(r=D(_,A))||r.enumerable});return O})(E({},"__esModule",{value:!0}),O));var t=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),r=function(O){return O.BAIDU="baidu",O.ALI="ali",O}({}),A=function(O){return O[O.BAIDU=1]="BAIDU",O[O.ALI=2]="ALI",O}({}),C=function(O){return O[O.FOLDER=0]="FOLDER",O[O.VIDEO=1]="VIDEO",O[O.AUDIO=2]="AUDIO",O[O.IMAGE=3]="IMAGE",O[O.DOC=4]="DOC",O[O.OTHER=5]="OTHER",O[O.AFFIX=9]="AFFIX",O}({}),S=function(O){return O[O.NONE=0]="NONE",O[O.VIDEO_NORMAL=10]="VIDEO_NORMAL",O[O.VIDEO_VR=11]="VIDEO_VR",O[O.VIDEO_3D=12]="VIDEO_3D",O[O.AUDIO_NORMAL=20]="AUDIO_NORMAL",O[O.IMAGE_NORMAL=30]="IMAGE_NORMAL",O[O.IMAGE_VR=31]="IMAGE_VR",O[O.DOC_NORMAL=40]="DOC_NORMAL",O[O.DOC_TXT=41]="DOC_TXT",O[O.DOC_CODE=42]="DOC_CODE",O[O.DOC_MD=43]="DOC_MD",O[O.DOC_PDF=44]="DOC_PDF",O[O.DOC_WORD=45]="DOC_WORD",O[O.DOC_EXCEL=46]="DOC_EXCEL",O[O.DOC_PPT=47]="DOC_PPT",O}({}),o=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),n=function(O){return O[O.NULL=0]="NULL",O[O.SOURCE=1]="SOURCE",O[O.PREVIEW=2]="PREVIEW",O[O.BOTH=3]="BOTH",O}({}),L=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),U=function(O){return O[O.NULL=0]="NULL",O[O.ENCODE_READY=0]="ENCODE_READY",O[O.ENCODE_PROCESS=2]="ENCODE_PROCESS",O[O.ENCODE_ERROR=4]="ENCODE_ERROR",O[O.ENCODE_SUCCESS=6]="ENCODE_SUCCESS",O[O.UPLOAD_READY=6]="UPLOAD_READY",O[O.UPLOAD_PROCESS=8]="UPLOAD_PROCESS",O[O.UPLOAD_ERROR=10]="UPLOAD_ERROR",O[O.UPLOAD_SUCCESS=12]="UPLOAD_SUCCESS",O[O.SUBMIT_READY=12]="SUBMIT_READY",O[O.SUBMIT_ERROR=14]="SUBMIT_ERROR",O}({}),N=function(O){return O.prepare="PREPARE",O.separate_video="SEPARATE_VIDEO",O.separate_audio="SEPARATE_AUDIO",O.separate_subtitle="SEPARATE_SUBTITLE",O.transcode_video="TRANSCODE_VIDEO",O.transcode_audio="TRANSCODE_AUDIO",O.transcode_thumbnail="TRANSCODE_THUMBNAIL",O.transcode_source="TRANSCODE_SOURCE",O.transcode_txt="TRANSCODE_TXT",O.transcode_img="TRANSCODE_IMG",O.transcode_affix="TRANSCODE_AFFIX",O.group_media="GROUP_MEDIA",O.upload_baidu="UPLOAD_BAIDU",O.upload_ali="UPLOAD_ALI",O.end="END",O}({}),u=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),a=function(O){return O.DOWNLOAD="download",O.UPLOAD="upload",O}({});
|
package/dist/index.mjs
CHANGED
|
@@ -1,135 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
10
|
-
// src/host.ts
|
|
11
|
-
var HostType = /* @__PURE__ */ (function(HostType2) {
|
|
12
|
-
HostType2["BAIDU"] = "baidu";
|
|
13
|
-
HostType2["ALI"] = "ali";
|
|
14
|
-
return HostType2;
|
|
15
|
-
})({});
|
|
16
|
-
var CloudType = /* @__PURE__ */ (function(CloudType2) {
|
|
17
|
-
CloudType2[CloudType2["BAIDU"] = 1] = "BAIDU";
|
|
18
|
-
CloudType2[CloudType2["ALI"] = 2] = "ALI";
|
|
19
|
-
return CloudType2;
|
|
20
|
-
})({});
|
|
21
|
-
|
|
22
|
-
// src/record.ts
|
|
23
|
-
var RecordType = /* @__PURE__ */ (function(RecordType2) {
|
|
24
|
-
RecordType2[RecordType2["FOLDER"] = 0] = "FOLDER";
|
|
25
|
-
RecordType2[RecordType2["VIDEO"] = 1] = "VIDEO";
|
|
26
|
-
RecordType2[RecordType2["AUDIO"] = 2] = "AUDIO";
|
|
27
|
-
RecordType2[RecordType2["IMAGE"] = 3] = "IMAGE";
|
|
28
|
-
RecordType2[RecordType2["DOC"] = 4] = "DOC";
|
|
29
|
-
RecordType2[RecordType2["OTHER"] = 5] = "OTHER";
|
|
30
|
-
RecordType2[RecordType2["AFFIX"] = 9] = "AFFIX";
|
|
31
|
-
return RecordType2;
|
|
32
|
-
})({});
|
|
33
|
-
var RecordFtype = /* @__PURE__ */ (function(RecordFtype2) {
|
|
34
|
-
RecordFtype2[RecordFtype2["NONE"] = 0] = "NONE";
|
|
35
|
-
RecordFtype2[RecordFtype2["VIDEO_NORMAL"] = 10] = "VIDEO_NORMAL";
|
|
36
|
-
RecordFtype2[RecordFtype2["VIDEO_VR"] = 11] = "VIDEO_VR";
|
|
37
|
-
RecordFtype2[RecordFtype2["VIDEO_3D"] = 12] = "VIDEO_3D";
|
|
38
|
-
RecordFtype2[RecordFtype2["AUDIO_NORMAL"] = 20] = "AUDIO_NORMAL";
|
|
39
|
-
RecordFtype2[RecordFtype2["IMAGE_NORMAL"] = 30] = "IMAGE_NORMAL";
|
|
40
|
-
RecordFtype2[RecordFtype2["IMAGE_VR"] = 31] = "IMAGE_VR";
|
|
41
|
-
RecordFtype2[RecordFtype2["DOC_NORMAL"] = 40] = "DOC_NORMAL";
|
|
42
|
-
RecordFtype2[RecordFtype2["DOC_TXT"] = 41] = "DOC_TXT";
|
|
43
|
-
RecordFtype2[RecordFtype2["DOC_CODE"] = 42] = "DOC_CODE";
|
|
44
|
-
RecordFtype2[RecordFtype2["DOC_MD"] = 43] = "DOC_MD";
|
|
45
|
-
RecordFtype2[RecordFtype2["DOC_PDF"] = 44] = "DOC_PDF";
|
|
46
|
-
RecordFtype2[RecordFtype2["DOC_WORD"] = 45] = "DOC_WORD";
|
|
47
|
-
RecordFtype2[RecordFtype2["DOC_EXCEL"] = 46] = "DOC_EXCEL";
|
|
48
|
-
RecordFtype2[RecordFtype2["DOC_PPT"] = 47] = "DOC_PPT";
|
|
49
|
-
return RecordFtype2;
|
|
50
|
-
})({});
|
|
51
|
-
var RecordInsertLast = /* @__PURE__ */ (function(RecordInsertLast2) {
|
|
52
|
-
RecordInsertLast2[RecordInsertLast2["NULL"] = 0] = "NULL";
|
|
53
|
-
RecordInsertLast2[RecordInsertLast2["YES"] = 1] = "YES";
|
|
54
|
-
RecordInsertLast2[RecordInsertLast2["NO"] = -1] = "NO";
|
|
55
|
-
return RecordInsertLast2;
|
|
56
|
-
})({});
|
|
57
|
-
var RecordFileKeep = /* @__PURE__ */ (function(RecordFileKeep2) {
|
|
58
|
-
RecordFileKeep2[RecordFileKeep2["NULL"] = 0] = "NULL";
|
|
59
|
-
RecordFileKeep2[RecordFileKeep2["SOURCE"] = 1] = "SOURCE";
|
|
60
|
-
RecordFileKeep2[RecordFileKeep2["PREVIEW"] = 2] = "PREVIEW";
|
|
61
|
-
RecordFileKeep2[RecordFileKeep2["BOTH"] = 3] = "BOTH";
|
|
62
|
-
return RecordFileKeep2;
|
|
63
|
-
})({});
|
|
64
|
-
var RecordAdaptResolution = /* @__PURE__ */ (function(RecordAdaptResolution2) {
|
|
65
|
-
RecordAdaptResolution2[RecordAdaptResolution2["NULL"] = 0] = "NULL";
|
|
66
|
-
RecordAdaptResolution2[RecordAdaptResolution2["YES"] = 1] = "YES";
|
|
67
|
-
RecordAdaptResolution2[RecordAdaptResolution2["NO"] = -1] = "NO";
|
|
68
|
-
return RecordAdaptResolution2;
|
|
69
|
-
})({});
|
|
70
|
-
|
|
71
|
-
// src/upload.ts
|
|
72
|
-
var UploadStatus = /* @__PURE__ */ (function(UploadStatus2) {
|
|
73
|
-
UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
|
|
74
|
-
UploadStatus2[UploadStatus2["ENCODE_READY"] = 0] = "ENCODE_READY";
|
|
75
|
-
UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 2] = "ENCODE_PROCESS";
|
|
76
|
-
UploadStatus2[UploadStatus2["ENCODE_ERROR"] = 4] = "ENCODE_ERROR";
|
|
77
|
-
UploadStatus2[UploadStatus2["ENCODE_SUCCESS"] = 6] = "ENCODE_SUCCESS";
|
|
78
|
-
UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
|
|
79
|
-
UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
|
|
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";
|
|
84
|
-
return UploadStatus2;
|
|
85
|
-
})({});
|
|
86
|
-
|
|
87
|
-
// src/download.ts
|
|
88
|
-
var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
|
|
89
|
-
DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
|
|
90
|
-
DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
|
|
91
|
-
DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
|
|
92
|
-
DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
|
|
93
|
-
return DownloadStatus2;
|
|
94
|
-
})({});
|
|
95
|
-
|
|
96
|
-
// src/net-success.ts
|
|
97
|
-
var NetType = /* @__PURE__ */ (function(NetType2) {
|
|
98
|
-
NetType2["DOWNLOAD"] = "download";
|
|
99
|
-
NetType2["UPLOAD"] = "upload";
|
|
100
|
-
return NetType2;
|
|
101
|
-
})({});
|
|
102
|
-
|
|
103
|
-
// src/upload-process.ts
|
|
104
|
-
var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
|
|
105
|
-
UploadProcessStep2["prepare"] = "PREPARE";
|
|
106
|
-
UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
|
|
107
|
-
UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
|
|
108
|
-
UploadProcessStep2["separate_text"] = "SEPARATE_TEXT";
|
|
109
|
-
UploadProcessStep2["transcode_video"] = "TRANSCODE_VIDEO";
|
|
110
|
-
UploadProcessStep2["transcode_audio"] = "TRANSCODE_AUDIO";
|
|
111
|
-
UploadProcessStep2["transcode_thumbnail"] = "TRANSCODE_THUMBNAIL";
|
|
112
|
-
UploadProcessStep2["transcode_source"] = "TRANSCODE_SOURCE";
|
|
113
|
-
UploadProcessStep2["transcode_txt"] = "TRANSCODE_TXT";
|
|
114
|
-
UploadProcessStep2["transcode_img"] = "TRANSCODE_IMG";
|
|
115
|
-
UploadProcessStep2["transcode_affix"] = "TRANSCODE_AFFIX";
|
|
116
|
-
UploadProcessStep2["group_media"] = "GROUP_MEDIA";
|
|
117
|
-
UploadProcessStep2["upload_baidu"] = "UPLOAD_BAIDU";
|
|
118
|
-
UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
|
|
119
|
-
UploadProcessStep2["end"] = "END";
|
|
120
|
-
return UploadProcessStep2;
|
|
121
|
-
})({});
|
|
122
|
-
export {
|
|
123
|
-
CloudType,
|
|
124
|
-
DownloadStatus,
|
|
125
|
-
HostType,
|
|
126
|
-
NetType,
|
|
127
|
-
NormalStatus,
|
|
128
|
-
RecordAdaptResolution,
|
|
129
|
-
RecordFileKeep,
|
|
130
|
-
RecordFtype,
|
|
131
|
-
RecordInsertLast,
|
|
132
|
-
RecordType,
|
|
133
|
-
UploadProcessStep,
|
|
134
|
-
UploadStatus
|
|
135
|
-
};
|
|
1
|
+
var O=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),E=function(O){return O.BAIDU="baidu",O.ALI="ali",O}({}),D=function(O){return O[O.BAIDU=1]="BAIDU",O[O.ALI=2]="ALI",O}({}),R=function(O){return O[O.FOLDER=0]="FOLDER",O[O.VIDEO=1]="VIDEO",O[O.AUDIO=2]="AUDIO",O[O.IMAGE=3]="IMAGE",O[O.DOC=4]="DOC",O[O.OTHER=5]="OTHER",O[O.AFFIX=9]="AFFIX",O}({}),_=function(O){return O[O.NONE=0]="NONE",O[O.VIDEO_NORMAL=10]="VIDEO_NORMAL",O[O.VIDEO_VR=11]="VIDEO_VR",O[O.VIDEO_3D=12]="VIDEO_3D",O[O.AUDIO_NORMAL=20]="AUDIO_NORMAL",O[O.IMAGE_NORMAL=30]="IMAGE_NORMAL",O[O.IMAGE_VR=31]="IMAGE_VR",O[O.DOC_NORMAL=40]="DOC_NORMAL",O[O.DOC_TXT=41]="DOC_TXT",O[O.DOC_CODE=42]="DOC_CODE",O[O.DOC_MD=43]="DOC_MD",O[O.DOC_PDF=44]="DOC_PDF",O[O.DOC_WORD=45]="DOC_WORD",O[O.DOC_EXCEL=46]="DOC_EXCEL",O[O.DOC_PPT=47]="DOC_PPT",O}({}),A=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),C=function(O){return O[O.NULL=0]="NULL",O[O.SOURCE=1]="SOURCE",O[O.PREVIEW=2]="PREVIEW",O[O.BOTH=3]="BOTH",O}({}),S=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),L=function(O){return O[O.NULL=0]="NULL",O[O.ENCODE_READY=0]="ENCODE_READY",O[O.ENCODE_PROCESS=2]="ENCODE_PROCESS",O[O.ENCODE_ERROR=4]="ENCODE_ERROR",O[O.ENCODE_SUCCESS=6]="ENCODE_SUCCESS",O[O.UPLOAD_READY=6]="UPLOAD_READY",O[O.UPLOAD_PROCESS=8]="UPLOAD_PROCESS",O[O.UPLOAD_ERROR=10]="UPLOAD_ERROR",O[O.UPLOAD_SUCCESS=12]="UPLOAD_SUCCESS",O[O.SUBMIT_READY=12]="SUBMIT_READY",O[O.SUBMIT_ERROR=14]="SUBMIT_ERROR",O}({}),U=function(O){return O.prepare="PREPARE",O.separate_video="SEPARATE_VIDEO",O.separate_audio="SEPARATE_AUDIO",O.separate_subtitle="SEPARATE_SUBTITLE",O.transcode_video="TRANSCODE_VIDEO",O.transcode_audio="TRANSCODE_AUDIO",O.transcode_thumbnail="TRANSCODE_THUMBNAIL",O.transcode_source="TRANSCODE_SOURCE",O.transcode_txt="TRANSCODE_TXT",O.transcode_img="TRANSCODE_IMG",O.transcode_affix="TRANSCODE_AFFIX",O.group_media="GROUP_MEDIA",O.upload_baidu="UPLOAD_BAIDU",O.upload_ali="UPLOAD_ALI",O.end="END",O}({}),n=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),N=function(O){return O.DOWNLOAD="download",O.UPLOAD="upload",O}({});export{D as CloudType,n as DownloadStatus,E as HostType,N as NetType,O as NormalStatus,S as RecordAdaptResolution,C as RecordFileKeep,_ as RecordFtype,A as RecordInsertLast,R as RecordType,U as UploadProgress,L as UploadStatus};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soga/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,14 +12,17 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "rimraf dist && tsup src/index.ts --format cjs,esm --dts",
|
|
15
|
+
"build": "rimraf dist && tsup src/index.ts --format cjs,esm --dts --minify terser",
|
|
16
16
|
"prepublishOnly": "npm run build"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [],
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"devDependencies": {
|
|
22
|
+
"@configs/typescript-config": "workspace:^",
|
|
22
23
|
"rimraf": "^6.0.1",
|
|
23
|
-
"
|
|
24
|
+
"terser": "^5.43.1",
|
|
25
|
+
"tsup": "^8.5.0",
|
|
26
|
+
"typescript": "^5.8.3"
|
|
24
27
|
}
|
|
25
28
|
}
|