@soga/types 0.6.0 → 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 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",
@@ -568,24 +574,13 @@ type UploadWorkerMessage = UploadWorkerPercent | WorkerError;
568
574
 
569
575
  declare enum UploadStatus {
570
576
  NULL = 0,
571
- ENCODE_PROCESS = 3,
572
- ENCODE_ERROR = 6,
573
- ENCODE_SUCCESS = 9,
574
- PREPARE_READY = 9,
575
- PREPARE_ERROR = 12,
576
- PREPARE_SUCCESS = 15,
577
- UPLOAD_READY = 15,
578
- UPLOAD_PROCESS = 18,
579
- UPLOAD_ERROR = 21,
580
- UPLOAD_SUCCESS = 24,
581
- END_READY = 24,
582
- END_ERROR = 27
583
- }
584
- declare enum RootStatus {
585
- NULL = 0,
586
- PROCESS = 1,
587
- SUCCESS = 2,
588
- ERROR = 4
577
+ ENCODE_READY = 0,
578
+ ENCODE_PROCESS = 2,
579
+ ENCODE_ERROR = 4,
580
+ ENCODE_SUCCESS = 6,
581
+ UPLOAD_READY = 6,
582
+ UPLOAD_PROCESS = 8,
583
+ UPLOAD_ERROR = 10
589
584
  }
590
585
  type UploadInputItem = {
591
586
  filename: string;
@@ -610,7 +605,7 @@ type UploadFileItem = {
610
605
  inputs: UploadInputItem[];
611
606
  filepath: string;
612
607
  root_id: number;
613
- root_status: RootStatus;
608
+ root_status: NormalStatus;
614
609
  space_id: number;
615
610
  space_name: string;
616
611
  is_ready: boolean;
@@ -847,4 +842,4 @@ type NetSuccessItem = {
847
842
  created_at: Date;
848
843
  };
849
844
 
850
- 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, RootStatus, 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 };
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",
@@ -568,24 +574,13 @@ type UploadWorkerMessage = UploadWorkerPercent | WorkerError;
568
574
 
569
575
  declare enum UploadStatus {
570
576
  NULL = 0,
571
- ENCODE_PROCESS = 3,
572
- ENCODE_ERROR = 6,
573
- ENCODE_SUCCESS = 9,
574
- PREPARE_READY = 9,
575
- PREPARE_ERROR = 12,
576
- PREPARE_SUCCESS = 15,
577
- UPLOAD_READY = 15,
578
- UPLOAD_PROCESS = 18,
579
- UPLOAD_ERROR = 21,
580
- UPLOAD_SUCCESS = 24,
581
- END_READY = 24,
582
- END_ERROR = 27
583
- }
584
- declare enum RootStatus {
585
- NULL = 0,
586
- PROCESS = 1,
587
- SUCCESS = 2,
588
- ERROR = 4
577
+ ENCODE_READY = 0,
578
+ ENCODE_PROCESS = 2,
579
+ ENCODE_ERROR = 4,
580
+ ENCODE_SUCCESS = 6,
581
+ UPLOAD_READY = 6,
582
+ UPLOAD_PROCESS = 8,
583
+ UPLOAD_ERROR = 10
589
584
  }
590
585
  type UploadInputItem = {
591
586
  filename: string;
@@ -610,7 +605,7 @@ type UploadFileItem = {
610
605
  inputs: UploadInputItem[];
611
606
  filepath: string;
612
607
  root_id: number;
613
- root_status: RootStatus;
608
+ root_status: NormalStatus;
614
609
  space_id: number;
615
610
  space_name: string;
616
611
  is_ready: boolean;
@@ -847,4 +842,4 @@ type NetSuccessItem = {
847
842
  created_at: Date;
848
843
  };
849
844
 
850
- 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, RootStatus, 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 };
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
- RootStatus: () => RootStatus,
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,70 +83,58 @@ 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
- UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 3] = "ENCODE_PROCESS";
102
- UploadStatus2[UploadStatus2["ENCODE_ERROR"] = 6] = "ENCODE_ERROR";
103
- UploadStatus2[UploadStatus2["ENCODE_SUCCESS"] = 9] = "ENCODE_SUCCESS";
104
- UploadStatus2[UploadStatus2["PREPARE_READY"] = 9] = "PREPARE_READY";
105
- UploadStatus2[UploadStatus2["PREPARE_ERROR"] = 12] = "PREPARE_ERROR";
106
- UploadStatus2[UploadStatus2["PREPARE_SUCCESS"] = 15] = "PREPARE_SUCCESS";
107
- UploadStatus2[UploadStatus2["UPLOAD_READY"] = 15] = "UPLOAD_READY";
108
- UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 18] = "UPLOAD_PROCESS";
109
- UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 21] = "UPLOAD_ERROR";
110
- UploadStatus2[UploadStatus2["UPLOAD_SUCCESS"] = 24] = "UPLOAD_SUCCESS";
111
- UploadStatus2[UploadStatus2["END_READY"] = 24] = "END_READY";
112
- UploadStatus2[UploadStatus2["END_ERROR"] = 27] = "END_ERROR";
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";
113
117
  return UploadStatus2;
114
- }({});
115
- var RootStatus = /* @__PURE__ */ function(RootStatus2) {
116
- RootStatus2[RootStatus2["NULL"] = 0] = "NULL";
117
- RootStatus2[RootStatus2["PROCESS"] = 1] = "PROCESS";
118
- RootStatus2[RootStatus2["SUCCESS"] = 2] = "SUCCESS";
119
- RootStatus2[RootStatus2["ERROR"] = 4] = "ERROR";
120
- return RootStatus2;
121
- }({});
118
+ })({});
122
119
 
123
120
  // src/download.ts
124
- var DownloadStatus = /* @__PURE__ */ function(DownloadStatus2) {
121
+ var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
125
122
  DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
126
123
  DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
127
124
  DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
128
125
  DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
129
126
  return DownloadStatus2;
130
- }({});
127
+ })({});
131
128
 
132
129
  // src/net-success.ts
133
- var NetType = /* @__PURE__ */ function(NetType2) {
130
+ var NetType = /* @__PURE__ */ (function(NetType2) {
134
131
  NetType2["DOWNLOAD"] = "download";
135
132
  NetType2["UPLOAD"] = "upload";
136
133
  return NetType2;
137
- }({});
134
+ })({});
138
135
 
139
136
  // src/upload-process.ts
140
- var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
137
+ var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
141
138
  UploadProcessStep2["prepare"] = "PREPARE";
142
139
  UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
143
140
  UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
@@ -154,19 +151,19 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
154
151
  UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
155
152
  UploadProcessStep2["end"] = "END";
156
153
  return UploadProcessStep2;
157
- }({});
154
+ })({});
158
155
  // Annotate the CommonJS export names for ESM import in node:
159
156
  0 && (module.exports = {
160
157
  CloudType,
161
158
  DownloadStatus,
162
159
  HostType,
163
160
  NetType,
161
+ NormalStatus,
164
162
  RecordAdaptResolution,
165
163
  RecordFileKeep,
166
164
  RecordFtype,
167
165
  RecordInsertLast,
168
166
  RecordType,
169
- RootStatus,
170
167
  UploadProcessStep,
171
168
  UploadStatus
172
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,70 +47,58 @@ 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
- UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 3] = "ENCODE_PROCESS";
66
- UploadStatus2[UploadStatus2["ENCODE_ERROR"] = 6] = "ENCODE_ERROR";
67
- UploadStatus2[UploadStatus2["ENCODE_SUCCESS"] = 9] = "ENCODE_SUCCESS";
68
- UploadStatus2[UploadStatus2["PREPARE_READY"] = 9] = "PREPARE_READY";
69
- UploadStatus2[UploadStatus2["PREPARE_ERROR"] = 12] = "PREPARE_ERROR";
70
- UploadStatus2[UploadStatus2["PREPARE_SUCCESS"] = 15] = "PREPARE_SUCCESS";
71
- UploadStatus2[UploadStatus2["UPLOAD_READY"] = 15] = "UPLOAD_READY";
72
- UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 18] = "UPLOAD_PROCESS";
73
- UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 21] = "UPLOAD_ERROR";
74
- UploadStatus2[UploadStatus2["UPLOAD_SUCCESS"] = 24] = "UPLOAD_SUCCESS";
75
- UploadStatus2[UploadStatus2["END_READY"] = 24] = "END_READY";
76
- UploadStatus2[UploadStatus2["END_ERROR"] = 27] = "END_ERROR";
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";
77
81
  return UploadStatus2;
78
- }({});
79
- var RootStatus = /* @__PURE__ */ function(RootStatus2) {
80
- RootStatus2[RootStatus2["NULL"] = 0] = "NULL";
81
- RootStatus2[RootStatus2["PROCESS"] = 1] = "PROCESS";
82
- RootStatus2[RootStatus2["SUCCESS"] = 2] = "SUCCESS";
83
- RootStatus2[RootStatus2["ERROR"] = 4] = "ERROR";
84
- return RootStatus2;
85
- }({});
82
+ })({});
86
83
 
87
84
  // src/download.ts
88
- var DownloadStatus = /* @__PURE__ */ function(DownloadStatus2) {
85
+ var DownloadStatus = /* @__PURE__ */ (function(DownloadStatus2) {
89
86
  DownloadStatus2[DownloadStatus2["NULL"] = 0] = "NULL";
90
87
  DownloadStatus2[DownloadStatus2["PROCESS"] = 1] = "PROCESS";
91
88
  DownloadStatus2[DownloadStatus2["SUCCESS"] = 2] = "SUCCESS";
92
89
  DownloadStatus2[DownloadStatus2["ERROR"] = 4] = "ERROR";
93
90
  return DownloadStatus2;
94
- }({});
91
+ })({});
95
92
 
96
93
  // src/net-success.ts
97
- var NetType = /* @__PURE__ */ function(NetType2) {
94
+ var NetType = /* @__PURE__ */ (function(NetType2) {
98
95
  NetType2["DOWNLOAD"] = "download";
99
96
  NetType2["UPLOAD"] = "upload";
100
97
  return NetType2;
101
- }({});
98
+ })({});
102
99
 
103
100
  // src/upload-process.ts
104
- var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
101
+ var UploadProcessStep = /* @__PURE__ */ (function(UploadProcessStep2) {
105
102
  UploadProcessStep2["prepare"] = "PREPARE";
106
103
  UploadProcessStep2["separate_video"] = "SEPARATE_VIDEO";
107
104
  UploadProcessStep2["separate_audio"] = "SEPARATE_AUDIO";
@@ -118,18 +115,18 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
118
115
  UploadProcessStep2["upload_ali"] = "UPLOAD_ALI";
119
116
  UploadProcessStep2["end"] = "END";
120
117
  return UploadProcessStep2;
121
- }({});
118
+ })({});
122
119
  export {
123
120
  CloudType,
124
121
  DownloadStatus,
125
122
  HostType,
126
123
  NetType,
124
+ NormalStatus,
127
125
  RecordAdaptResolution,
128
126
  RecordFileKeep,
129
127
  RecordFtype,
130
128
  RecordInsertLast,
131
129
  RecordType,
132
- RootStatus,
133
130
  UploadProcessStep,
134
131
  UploadStatus
135
132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/types",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },