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