@lightdash/sdk 2.434.0 → 2.435.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/sdk.cjs.js +2 -2
- package/dist/sdk.cjs.js.map +2 -2
- package/dist/sdk.d.ts +13 -2
- package/dist/sdk.es.js +2 -2
- package/dist/sdk.es.js.map +2 -2
- package/package.json +1 -1
package/dist/sdk.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/sdk.cjs.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 43232461 bytes
|
|
4
|
+
sha256: d32720c8cce323b9783fd2375dcfee7d5d5ebe829a112a243dc179e6e1cf6319
|
package/dist/sdk.cjs.js.map
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/sdk.cjs.js.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 86299102 bytes
|
|
4
|
+
sha256: 5b2e1745df06ff93aadf68401f8aa6910df55dcca6a6a788156f8917862b60d0
|
package/dist/sdk.d.ts
CHANGED
|
@@ -61,6 +61,16 @@ type SdkFilter = {
|
|
|
61
61
|
|
|
62
62
|
type MetricsCatalogFilter = 'tables' | 'owners' | 'categories';
|
|
63
63
|
|
|
64
|
+
type SdkErrorKind = 'network' | 'token_expired' | 'invalid_token' | 'unauthorized' | 'forbidden' | 'not_found' | 'invalid_request' | 'server' | 'render' | 'unknown';
|
|
65
|
+
type SdkError = {
|
|
66
|
+
kind: SdkErrorKind;
|
|
67
|
+
status: number | null;
|
|
68
|
+
message: string;
|
|
69
|
+
retryable: boolean;
|
|
70
|
+
fatal: boolean;
|
|
71
|
+
};
|
|
72
|
+
type SdkErrorHandler = (error: SdkError) => void;
|
|
73
|
+
|
|
64
74
|
type BaseProps = {
|
|
65
75
|
instanceUrl: string;
|
|
66
76
|
token: Promise<string> | string;
|
|
@@ -75,6 +85,7 @@ type BaseProps = {
|
|
|
75
85
|
onExplore?: (options: {
|
|
76
86
|
chart: SavedChart;
|
|
77
87
|
}) => void;
|
|
88
|
+
onError?: SdkErrorHandler;
|
|
78
89
|
};
|
|
79
90
|
type DashboardProps = BaseProps & {
|
|
80
91
|
paletteUuid?: string;
|
|
@@ -88,7 +99,7 @@ type ChartProps = Omit<BaseProps, 'filters'> & {
|
|
|
88
99
|
id: string;
|
|
89
100
|
isEditMode?: boolean;
|
|
90
101
|
};
|
|
91
|
-
type AiAgentProps = Omit<BaseProps, 'contentOverrides' | 'uiOverrides' | 'filters' | 'onExplore'> & {
|
|
102
|
+
type AiAgentProps = Omit<BaseProps, 'contentOverrides' | 'uiOverrides' | 'filters' | 'onExplore' | 'onError'> & {
|
|
92
103
|
agentUuid: string;
|
|
93
104
|
onThreadChange?: (options: {
|
|
94
105
|
threadUuid: string;
|
|
@@ -131,4 +142,4 @@ declare const Lightdash: {
|
|
|
131
142
|
};
|
|
132
143
|
|
|
133
144
|
export { AiAgent, Chart, Dashboard, DashboardBuilder, Explore, MetricsCatalog, createLightdashApiClient, Lightdash as default, useLightdashAiAgentThreads, useLightdashContent };
|
|
134
|
-
export type { LightdashAiAgentThread, LightdashAiAgentThreadResults, LightdashApiClientConfig, LightdashContentItem, LightdashContentResults, LightdashSdkApiAuth, ListAiAgentThreadsOptions, ListContentOptions, MetricsCatalogFilter };
|
|
145
|
+
export type { LightdashAiAgentThread, LightdashAiAgentThreadResults, LightdashApiClientConfig, LightdashContentItem, LightdashContentResults, LightdashSdkApiAuth, ListAiAgentThreadsOptions, ListContentOptions, MetricsCatalogFilter, SdkError, SdkErrorKind };
|
package/dist/sdk.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/sdk.es.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 43093393 bytes
|
|
4
|
+
sha256: 60c1d4d4154bb6869d4804dbeb4bb86324d93893024884b102b8fbc485880312
|
package/dist/sdk.es.js.map
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/sdk.es.js.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 86287341 bytes
|
|
4
|
+
sha256: b1138958ba9c7e826713e06288acb892a01a3e94a35909de3e4ebc6f808d9c96
|