@soga/types 0.6.0 → 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 +10 -15
- package/dist/index.d.ts +10 -15
- package/dist/index.js +15 -20
- package/dist/index.mjs +14 -19
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -568,20 +568,15 @@ type UploadWorkerMessage = UploadWorkerPercent | WorkerError;
|
|
|
568
568
|
|
|
569
569
|
declare enum UploadStatus {
|
|
570
570
|
NULL = 0,
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
UPLOAD_PROCESS = 18,
|
|
579
|
-
UPLOAD_ERROR = 21,
|
|
580
|
-
UPLOAD_SUCCESS = 24,
|
|
581
|
-
END_READY = 24,
|
|
582
|
-
END_ERROR = 27
|
|
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
|
|
583
578
|
}
|
|
584
|
-
declare enum
|
|
579
|
+
declare enum UploadNormalStatus {
|
|
585
580
|
NULL = 0,
|
|
586
581
|
PROCESS = 1,
|
|
587
582
|
SUCCESS = 2,
|
|
@@ -610,7 +605,7 @@ type UploadFileItem = {
|
|
|
610
605
|
inputs: UploadInputItem[];
|
|
611
606
|
filepath: string;
|
|
612
607
|
root_id: number;
|
|
613
|
-
root_status:
|
|
608
|
+
root_status: UploadNormalStatus;
|
|
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,
|
|
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
|
@@ -568,20 +568,15 @@ type UploadWorkerMessage = UploadWorkerPercent | WorkerError;
|
|
|
568
568
|
|
|
569
569
|
declare enum UploadStatus {
|
|
570
570
|
NULL = 0,
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
UPLOAD_PROCESS = 18,
|
|
579
|
-
UPLOAD_ERROR = 21,
|
|
580
|
-
UPLOAD_SUCCESS = 24,
|
|
581
|
-
END_READY = 24,
|
|
582
|
-
END_ERROR = 27
|
|
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
|
|
583
578
|
}
|
|
584
|
-
declare enum
|
|
579
|
+
declare enum UploadNormalStatus {
|
|
585
580
|
NULL = 0,
|
|
586
581
|
PROCESS = 1,
|
|
587
582
|
SUCCESS = 2,
|
|
@@ -610,7 +605,7 @@ type UploadFileItem = {
|
|
|
610
605
|
inputs: UploadInputItem[];
|
|
611
606
|
filepath: string;
|
|
612
607
|
root_id: number;
|
|
613
|
-
root_status:
|
|
608
|
+
root_status: UploadNormalStatus;
|
|
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,
|
|
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
|
@@ -28,7 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
RecordFtype: () => RecordFtype,
|
|
29
29
|
RecordInsertLast: () => RecordInsertLast,
|
|
30
30
|
RecordType: () => RecordType,
|
|
31
|
-
|
|
31
|
+
UploadNormalStatus: () => UploadNormalStatus,
|
|
32
32
|
UploadProcessStep: () => UploadProcessStep,
|
|
33
33
|
UploadStatus: () => UploadStatus
|
|
34
34
|
});
|
|
@@ -98,26 +98,21 @@ var RecordAdaptResolution = /* @__PURE__ */ function(RecordAdaptResolution2) {
|
|
|
98
98
|
// src/upload.ts
|
|
99
99
|
var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
100
100
|
UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
|
|
101
|
-
UploadStatus2[UploadStatus2["
|
|
102
|
-
UploadStatus2[UploadStatus2["
|
|
103
|
-
UploadStatus2[UploadStatus2["
|
|
104
|
-
UploadStatus2[UploadStatus2["
|
|
105
|
-
UploadStatus2[UploadStatus2["
|
|
106
|
-
UploadStatus2[UploadStatus2["
|
|
107
|
-
UploadStatus2[UploadStatus2["
|
|
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";
|
|
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
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return
|
|
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
|
|
@@ -166,7 +161,7 @@ var UploadProcessStep = /* @__PURE__ */ function(UploadProcessStep2) {
|
|
|
166
161
|
RecordFtype,
|
|
167
162
|
RecordInsertLast,
|
|
168
163
|
RecordType,
|
|
169
|
-
|
|
164
|
+
UploadNormalStatus,
|
|
170
165
|
UploadProcessStep,
|
|
171
166
|
UploadStatus
|
|
172
167
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -62,26 +62,21 @@ var RecordAdaptResolution = /* @__PURE__ */ function(RecordAdaptResolution2) {
|
|
|
62
62
|
// src/upload.ts
|
|
63
63
|
var UploadStatus = /* @__PURE__ */ function(UploadStatus2) {
|
|
64
64
|
UploadStatus2[UploadStatus2["NULL"] = 0] = "NULL";
|
|
65
|
-
UploadStatus2[UploadStatus2["
|
|
66
|
-
UploadStatus2[UploadStatus2["
|
|
67
|
-
UploadStatus2[UploadStatus2["
|
|
68
|
-
UploadStatus2[UploadStatus2["
|
|
69
|
-
UploadStatus2[UploadStatus2["
|
|
70
|
-
UploadStatus2[UploadStatus2["
|
|
71
|
-
UploadStatus2[UploadStatus2["
|
|
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";
|
|
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";
|
|
77
72
|
return UploadStatus2;
|
|
78
73
|
}({});
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
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;
|
|
85
80
|
}({});
|
|
86
81
|
|
|
87
82
|
// src/download.ts
|
|
@@ -129,7 +124,7 @@ export {
|
|
|
129
124
|
RecordFtype,
|
|
130
125
|
RecordInsertLast,
|
|
131
126
|
RecordType,
|
|
132
|
-
|
|
127
|
+
UploadNormalStatus,
|
|
133
128
|
UploadProcessStep,
|
|
134
129
|
UploadStatus
|
|
135
130
|
};
|