@soga/types 0.5.6 → 0.6.1

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
@@ -566,20 +566,17 @@ type WorkerError = {
566
566
  type EncodeWorkerMessage = EncodeWorkerPercent | WorkerError;
567
567
  type UploadWorkerMessage = UploadWorkerPercent | WorkerError;
568
568
 
569
- declare enum EncodeStatus {
570
- NULL = 0,
571
- PROCESS = 1,
572
- SUCCESS = 2,
573
- ERROR = 4
574
- }
575
569
  declare enum UploadStatus {
576
570
  NULL = 0,
577
- PROCESS = 1,
578
- SUCCESS = 2,
579
- PRE_CREATE = 3,
580
- ERROR = 4
571
+ ENCODE_READY = 0,
572
+ ENCODE_PROCESS = 2,
573
+ ENCODE_ERROR = 4,
574
+ ENCODE_SUCCESS = 6,
575
+ UPLOAD_READY = 6,
576
+ UPLOAD_PROCESS = 8,
577
+ UPLOAD_ERROR = 10
581
578
  }
582
- declare enum RootStatus {
579
+ declare enum UploadNormalStatus {
583
580
  NULL = 0,
584
581
  PROCESS = 1,
585
582
  SUCCESS = 2,
@@ -608,18 +605,15 @@ type UploadFileItem = {
608
605
  inputs: UploadInputItem[];
609
606
  filepath: string;
610
607
  root_id: number;
611
- root_status: RootStatus;
608
+ root_status: UploadNormalStatus;
612
609
  space_id: number;
613
610
  space_name: string;
614
611
  is_ready: boolean;
615
612
  config: RecordFolderConfig;
616
613
  uid: number;
617
614
  aid: number;
618
- encode_status: EncodeStatus;
619
615
  baidu_host_id: number;
620
- baidu_upload_status: UploadStatus;
621
616
  ali_host_id: number;
622
- ali_upload_status: UploadStatus;
623
617
  some_parts_uploaded: boolean;
624
618
  upload_status: UploadStatus;
625
619
  is_paused: boolean;
@@ -848,4 +842,4 @@ type NetSuccessItem = {
848
842
  created_at: Date;
849
843
  };
850
844
 
851
- export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, EncodeStatus, 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, 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, UploadNormalStatus, 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
@@ -566,20 +566,17 @@ type WorkerError = {
566
566
  type EncodeWorkerMessage = EncodeWorkerPercent | WorkerError;
567
567
  type UploadWorkerMessage = UploadWorkerPercent | WorkerError;
568
568
 
569
- declare enum EncodeStatus {
570
- NULL = 0,
571
- PROCESS = 1,
572
- SUCCESS = 2,
573
- ERROR = 4
574
- }
575
569
  declare enum UploadStatus {
576
570
  NULL = 0,
577
- PROCESS = 1,
578
- SUCCESS = 2,
579
- PRE_CREATE = 3,
580
- ERROR = 4
571
+ ENCODE_READY = 0,
572
+ ENCODE_PROCESS = 2,
573
+ ENCODE_ERROR = 4,
574
+ ENCODE_SUCCESS = 6,
575
+ UPLOAD_READY = 6,
576
+ UPLOAD_PROCESS = 8,
577
+ UPLOAD_ERROR = 10
581
578
  }
582
- declare enum RootStatus {
579
+ declare enum UploadNormalStatus {
583
580
  NULL = 0,
584
581
  PROCESS = 1,
585
582
  SUCCESS = 2,
@@ -608,18 +605,15 @@ type UploadFileItem = {
608
605
  inputs: UploadInputItem[];
609
606
  filepath: string;
610
607
  root_id: number;
611
- root_status: RootStatus;
608
+ root_status: UploadNormalStatus;
612
609
  space_id: number;
613
610
  space_name: string;
614
611
  is_ready: boolean;
615
612
  config: RecordFolderConfig;
616
613
  uid: number;
617
614
  aid: number;
618
- encode_status: EncodeStatus;
619
615
  baidu_host_id: number;
620
- baidu_upload_status: UploadStatus;
621
616
  ali_host_id: number;
622
- ali_upload_status: UploadStatus;
623
617
  some_parts_uploaded: boolean;
624
618
  upload_status: UploadStatus;
625
619
  is_paused: boolean;
@@ -848,4 +842,4 @@ type NetSuccessItem = {
848
842
  created_at: Date;
849
843
  };
850
844
 
851
- export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, EncodeStatus, 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, 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, UploadNormalStatus, 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
@@ -21,7 +21,6 @@ var index_exports = {};
21
21
  __export(index_exports, {
22
22
  CloudType: () => CloudType,
23
23
  DownloadStatus: () => DownloadStatus,
24
- EncodeStatus: () => EncodeStatus,
25
24
  HostType: () => HostType,
26
25
  NetType: () => NetType,
27
26
  RecordAdaptResolution: () => RecordAdaptResolution,
@@ -29,7 +28,7 @@ __export(index_exports, {
29
28
  RecordFtype: () => RecordFtype,
30
29
  RecordInsertLast: () => RecordInsertLast,
31
30
  RecordType: () => RecordType,
32
- RootStatus: () => RootStatus,
31
+ UploadNormalStatus: () => UploadNormalStatus,
33
32
  UploadProcessStep: () => UploadProcessStep,
34
33
  UploadStatus: () => UploadStatus
35
34
  });
@@ -97,27 +96,23 @@ var RecordAdaptResolution = /* @__PURE__ */ function(RecordAdaptResolution2) {
97
96
  }({});
98
97
 
99
98
  // src/upload.ts
100
- var EncodeStatus = /* @__PURE__ */ function(EncodeStatus2) {
101
- EncodeStatus2[EncodeStatus2["NULL"] = 0] = "NULL";
102
- EncodeStatus2[EncodeStatus2["PROCESS"] = 1] = "PROCESS";
103
- EncodeStatus2[EncodeStatus2["SUCCESS"] = 2] = "SUCCESS";
104
- EncodeStatus2[EncodeStatus2["ERROR"] = 4] = "ERROR";
105
- return EncodeStatus2;
106
- }({});
107
99
  var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
108
100
  UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
109
- UploadStatus2[UploadStatus2["PROCESS"] = 1] = "PROCESS";
110
- UploadStatus2[UploadStatus2["SUCCESS"] = 2] = "SUCCESS";
111
- UploadStatus2[UploadStatus2["PRE_CREATE"] = 3] = "PRE_CREATE";
112
- UploadStatus2[UploadStatus2["ERROR"] = 4] = "ERROR";
101
+ UploadStatus2[UploadStatus2["ENCODE_READY"] = 0] = "ENCODE_READY";
102
+ UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 2] = "ENCODE_PROCESS";
103
+ UploadStatus2[UploadStatus2["ENCODE_ERROR"] = 4] = "ENCODE_ERROR";
104
+ UploadStatus2[UploadStatus2["ENCODE_SUCCESS"] = 6] = "ENCODE_SUCCESS";
105
+ UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
106
+ UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
107
+ UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
113
108
  return UploadStatus2;
114
109
  }({});
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;
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;
121
116
  }({});
122
117
 
123
118
  // src/download.ts
@@ -159,7 +154,6 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
159
154
  0 && (module.exports = {
160
155
  CloudType,
161
156
  DownloadStatus,
162
- EncodeStatus,
163
157
  HostType,
164
158
  NetType,
165
159
  RecordAdaptResolution,
@@ -167,7 +161,7 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
167
161
  RecordFtype,
168
162
  RecordInsertLast,
169
163
  RecordType,
170
- RootStatus,
164
+ UploadNormalStatus,
171
165
  UploadProcessStep,
172
166
  UploadStatus
173
167
  });
package/dist/index.mjs CHANGED
@@ -60,27 +60,23 @@ var RecordAdaptResolution = /* @__PURE__ */ function(RecordAdaptResolution2) {
60
60
  }({});
61
61
 
62
62
  // src/upload.ts
63
- var EncodeStatus = /* @__PURE__ */ function(EncodeStatus2) {
64
- EncodeStatus2[EncodeStatus2["NULL"] = 0] = "NULL";
65
- EncodeStatus2[EncodeStatus2["PROCESS"] = 1] = "PROCESS";
66
- EncodeStatus2[EncodeStatus2["SUCCESS"] = 2] = "SUCCESS";
67
- EncodeStatus2[EncodeStatus2["ERROR"] = 4] = "ERROR";
68
- return EncodeStatus2;
69
- }({});
70
63
  var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
71
64
  UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
72
- UploadStatus2[UploadStatus2["PROCESS"] = 1] = "PROCESS";
73
- UploadStatus2[UploadStatus2["SUCCESS"] = 2] = "SUCCESS";
74
- UploadStatus2[UploadStatus2["PRE_CREATE"] = 3] = "PRE_CREATE";
75
- UploadStatus2[UploadStatus2["ERROR"] = 4] = "ERROR";
65
+ UploadStatus2[UploadStatus2["ENCODE_READY"] = 0] = "ENCODE_READY";
66
+ UploadStatus2[UploadStatus2["ENCODE_PROCESS"] = 2] = "ENCODE_PROCESS";
67
+ UploadStatus2[UploadStatus2["ENCODE_ERROR"] = 4] = "ENCODE_ERROR";
68
+ UploadStatus2[UploadStatus2["ENCODE_SUCCESS"] = 6] = "ENCODE_SUCCESS";
69
+ UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
70
+ UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
71
+ UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
76
72
  return UploadStatus2;
77
73
  }({});
78
- var RootStatus = /* @__PURE__ */ function(RootStatus2) {
79
- RootStatus2[RootStatus2["NULL"] = 0] = "NULL";
80
- RootStatus2[RootStatus2["PROCESS"] = 1] = "PROCESS";
81
- RootStatus2[RootStatus2["SUCCESS"] = 2] = "SUCCESS";
82
- RootStatus2[RootStatus2["ERROR"] = 4] = "ERROR";
83
- return RootStatus2;
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;
84
80
  }({});
85
81
 
86
82
  // src/download.ts
@@ -121,7 +117,6 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
121
117
  export {
122
118
  CloudType,
123
119
  DownloadStatus,
124
- EncodeStatus,
125
120
  HostType,
126
121
  NetType,
127
122
  RecordAdaptResolution,
@@ -129,7 +124,7 @@ export {
129
124
  RecordFtype,
130
125
  RecordInsertLast,
131
126
  RecordType,
132
- RootStatus,
127
+ UploadNormalStatus,
133
128
  UploadProcessStep,
134
129
  UploadStatus
135
130
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/types",
3
- "version": "0.5.6",
3
+ "version": "0.6.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },