@fileverse-dev/dsheet 1.0.43 → 1.0.44-patch-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.es.js +29030 -26285
- package/dist/package/types.d.ts +24 -6
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/package/types.d.ts
CHANGED
|
@@ -65,20 +65,38 @@ export interface DsheetProps {
|
|
|
65
65
|
onDuneChartEmbed?: () => void;
|
|
66
66
|
onSheetCountChange?: (sheetCount: number) => void;
|
|
67
67
|
}
|
|
68
|
-
type BaseError = {
|
|
68
|
+
export type BaseError = {
|
|
69
69
|
message: string;
|
|
70
70
|
functionName?: string;
|
|
71
|
-
type:
|
|
71
|
+
type: `${ERROR_MESSAGES_FLAG}`;
|
|
72
72
|
};
|
|
73
|
-
type CustomError = BaseError & {
|
|
73
|
+
export type CustomError = BaseError & {
|
|
74
74
|
type: typeof ERROR_MESSAGES_FLAG.CUSTOM;
|
|
75
75
|
reason: string;
|
|
76
76
|
};
|
|
77
|
+
export type InvalidParamError = BaseError & {
|
|
78
|
+
type: typeof ERROR_MESSAGES_FLAG.INVALID_PARAM;
|
|
79
|
+
};
|
|
80
|
+
export type MissingKeyError = BaseError & {
|
|
81
|
+
type: typeof ERROR_MESSAGES_FLAG.MISSING_KEY;
|
|
82
|
+
};
|
|
83
|
+
export type EnsResolveError = BaseError & {
|
|
84
|
+
type: typeof ERROR_MESSAGES_FLAG.ENS;
|
|
85
|
+
};
|
|
86
|
+
export type InvalidApiKeyError = BaseError & {
|
|
87
|
+
type: typeof ERROR_MESSAGES_FLAG.INVALID_API_KEY;
|
|
88
|
+
apiKeyName?: string;
|
|
89
|
+
};
|
|
90
|
+
export type RateLimitError = BaseError & {
|
|
91
|
+
type: typeof ERROR_MESSAGES_FLAG.RATE_LIMIT;
|
|
92
|
+
apiKeyName?: string;
|
|
93
|
+
};
|
|
77
94
|
export type NetworkError = BaseError & {
|
|
78
|
-
type: typeof ERROR_MESSAGES_FLAG.NETWORK_ERROR
|
|
95
|
+
type: typeof ERROR_MESSAGES_FLAG.NETWORK_ERROR;
|
|
96
|
+
apiKeyName?: string;
|
|
79
97
|
};
|
|
80
98
|
export type DefaultError = BaseError & {
|
|
99
|
+
type: typeof ERROR_MESSAGES_FLAG.DEFAULT;
|
|
81
100
|
reason: string;
|
|
82
101
|
};
|
|
83
|
-
export type ErrorMessageHandlerReturnType =
|
|
84
|
-
export {};
|
|
102
|
+
export type ErrorMessageHandlerReturnType = InvalidParamError | MissingKeyError | RateLimitError | NetworkError | EnsResolveError | InvalidApiKeyError | CustomError | DefaultError;
|