@soga/types 0.5.5 → 0.6.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 +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -566,17 +566,20 @@ 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
|
-
|
|
578
|
-
|
|
579
|
-
|
|
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
|
|
580
583
|
}
|
|
581
584
|
declare enum RootStatus {
|
|
582
585
|
NULL = 0,
|
|
@@ -614,11 +617,8 @@ type UploadFileItem = {
|
|
|
614
617
|
config: RecordFolderConfig;
|
|
615
618
|
uid: number;
|
|
616
619
|
aid: number;
|
|
617
|
-
encode_status: EncodeStatus;
|
|
618
620
|
baidu_host_id: number;
|
|
619
|
-
baidu_upload_status: UploadStatus;
|
|
620
621
|
ali_host_id: number;
|
|
621
|
-
ali_upload_status: UploadStatus;
|
|
622
622
|
some_parts_uploaded: boolean;
|
|
623
623
|
upload_status: UploadStatus;
|
|
624
624
|
is_paused: boolean;
|
|
@@ -847,4 +847,4 @@ type NetSuccessItem = {
|
|
|
847
847
|
created_at: Date;
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
-
export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -566,17 +566,20 @@ 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
|
-
|
|
578
|
-
|
|
579
|
-
|
|
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
|
|
580
583
|
}
|
|
581
584
|
declare enum RootStatus {
|
|
582
585
|
NULL = 0,
|
|
@@ -614,11 +617,8 @@ type UploadFileItem = {
|
|
|
614
617
|
config: RecordFolderConfig;
|
|
615
618
|
uid: number;
|
|
616
619
|
aid: number;
|
|
617
|
-
encode_status: EncodeStatus;
|
|
618
620
|
baidu_host_id: number;
|
|
619
|
-
baidu_upload_status: UploadStatus;
|
|
620
621
|
ali_host_id: number;
|
|
621
|
-
ali_upload_status: UploadStatus;
|
|
622
622
|
some_parts_uploaded: boolean;
|
|
623
623
|
upload_status: UploadStatus;
|
|
624
624
|
is_paused: boolean;
|
|
@@ -847,4 +847,4 @@ type NetSuccessItem = {
|
|
|
847
847
|
created_at: Date;
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
-
export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult,
|
|
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 };
|
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,
|
|
@@ -97,18 +96,20 @@ 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["
|
|
110
|
-
UploadStatus2[UploadStatus2["
|
|
111
|
-
UploadStatus2[UploadStatus2["
|
|
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";
|
|
112
113
|
return UploadStatus2;
|
|
113
114
|
}({});
|
|
114
115
|
var RootStatus = /* @__PURE__ */ function(RootStatus2) {
|
|
@@ -158,7 +159,6 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
158
159
|
0 && (module.exports = {
|
|
159
160
|
CloudType,
|
|
160
161
|
DownloadStatus,
|
|
161
|
-
EncodeStatus,
|
|
162
162
|
HostType,
|
|
163
163
|
NetType,
|
|
164
164
|
RecordAdaptResolution,
|
package/dist/index.mjs
CHANGED
|
@@ -60,18 +60,20 @@ 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["
|
|
73
|
-
UploadStatus2[UploadStatus2["
|
|
74
|
-
UploadStatus2[UploadStatus2["
|
|
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";
|
|
75
77
|
return UploadStatus2;
|
|
76
78
|
}({});
|
|
77
79
|
var RootStatus = /* @__PURE__ */ function(RootStatus2) {
|
|
@@ -120,7 +122,6 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
120
122
|
export {
|
|
121
123
|
CloudType,
|
|
122
124
|
DownloadStatus,
|
|
123
|
-
EncodeStatus,
|
|
124
125
|
HostType,
|
|
125
126
|
NetType,
|
|
126
127
|
RecordAdaptResolution,
|