@soga/types 0.8.1 → 0.8.2
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -601,6 +601,13 @@ type EncodedData = {
|
|
|
601
601
|
affix?: AffixItemData[];
|
|
602
602
|
};
|
|
603
603
|
type UploadedData = Record<HostType, Record<string, object>>;
|
|
604
|
+
interface ErrorType {
|
|
605
|
+
type: 'encode' | 'upload';
|
|
606
|
+
message: string;
|
|
607
|
+
stack?: string;
|
|
608
|
+
details?: string[];
|
|
609
|
+
cause?: any;
|
|
610
|
+
}
|
|
604
611
|
type UploadFileItem = {
|
|
605
612
|
id: number;
|
|
606
613
|
total_count: number;
|
|
@@ -630,6 +637,7 @@ type UploadFileItem = {
|
|
|
630
637
|
percent: number;
|
|
631
638
|
encoded: EncodedData;
|
|
632
639
|
uploaded: UploadedData;
|
|
640
|
+
error: ErrorType | null;
|
|
633
641
|
order: number;
|
|
634
642
|
updated_at: string;
|
|
635
643
|
created_at: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -601,6 +601,13 @@ type EncodedData = {
|
|
|
601
601
|
affix?: AffixItemData[];
|
|
602
602
|
};
|
|
603
603
|
type UploadedData = Record<HostType, Record<string, object>>;
|
|
604
|
+
interface ErrorType {
|
|
605
|
+
type: 'encode' | 'upload';
|
|
606
|
+
message: string;
|
|
607
|
+
stack?: string;
|
|
608
|
+
details?: string[];
|
|
609
|
+
cause?: any;
|
|
610
|
+
}
|
|
604
611
|
type UploadFileItem = {
|
|
605
612
|
id: number;
|
|
606
613
|
total_count: number;
|
|
@@ -630,6 +637,7 @@ type UploadFileItem = {
|
|
|
630
637
|
percent: number;
|
|
631
638
|
encoded: EncodedData;
|
|
632
639
|
uploaded: UploadedData;
|
|
640
|
+
error: ErrorType | null;
|
|
633
641
|
order: number;
|
|
634
642
|
updated_at: string;
|
|
635
643
|
created_at: string;
|