@datarecce/ui 0.1.22 → 0.1.24
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/{RecceCheckContext-DNKi97uE.js → RecceCheckContext-Cb41gigE.js} +4 -3
- package/dist/RecceCheckContext-Cb41gigE.js.map +1 -0
- package/dist/{RecceCheckContext-BETsmiD5.mjs → RecceCheckContext-CzsuuXxT.mjs} +4 -3
- package/dist/RecceCheckContext-CzsuuXxT.mjs.map +1 -0
- package/dist/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +12 -37
- package/dist/api.mjs +3 -29
- package/dist/{components-C735_oqD.mjs → components-BHxcVq0D.mjs} +1353 -69
- package/dist/components-BHxcVq0D.mjs.map +1 -0
- package/dist/{components-DeA4kqxK.js → components-Bmc5X473.js} +1557 -248
- package/dist/components-Bmc5X473.js.map +1 -0
- package/dist/components.d.mts +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/components.js +8 -4
- package/dist/components.mjs +5 -5
- package/dist/{hooks-Ba-AoxcK.mjs → hooks-B0XGswIh.mjs} +3 -3
- package/dist/{hooks-Ba-AoxcK.mjs.map → hooks-B0XGswIh.mjs.map} +1 -1
- package/dist/{hooks-D6xvNXEc.js → hooks-C99PZcmB.js} +3 -3
- package/dist/{hooks-D6xvNXEc.js.map → hooks-C99PZcmB.js.map} +1 -1
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +4 -3
- package/dist/hooks.mjs +4 -4
- package/dist/{index-Sj_wOmNH.d.mts → index-04n48ic2.d.mts} +129 -105
- package/dist/index-04n48ic2.d.mts.map +1 -0
- package/dist/{index-DYduBYD8.d.ts → index-CgyLTrll.d.ts} +129 -105
- package/dist/index-CgyLTrll.d.ts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -14
- package/dist/index.mjs +7 -7
- package/dist/{state-BjKRZMwY.js → state-Ct-DP81O.js} +108 -79
- package/dist/state-Ct-DP81O.js.map +1 -0
- package/dist/{state-BySLlIE7.mjs → state-CwepO01b.mjs} +91 -80
- package/dist/state-CwepO01b.mjs.map +1 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{user-Dt_n5IJX.js → version-BgsW-hXj.js} +50 -10
- package/dist/version-BgsW-hXj.js.map +1 -0
- package/dist/version-Bz2CiMHD.mjs +93 -0
- package/dist/version-Bz2CiMHD.mjs.map +1 -0
- package/package.json +5 -4
- package/dist/RecceCheckContext-BETsmiD5.mjs.map +0 -1
- package/dist/RecceCheckContext-DNKi97uE.js.map +0 -1
- package/dist/api.js.map +0 -1
- package/dist/api.mjs.map +0 -1
- package/dist/components-C735_oqD.mjs.map +0 -1
- package/dist/components-DeA4kqxK.js.map +0 -1
- package/dist/index-DYduBYD8.d.ts.map +0 -1
- package/dist/index-Sj_wOmNH.d.mts.map +0 -1
- package/dist/state-BjKRZMwY.js.map +0 -1
- package/dist/state-BySLlIE7.mjs.map +0 -1
- package/dist/user-BHOgMaBf.mjs +0 -65
- package/dist/user-BHOgMaBf.mjs.map +0 -1
- package/dist/user-Dt_n5IJX.js.map +0 -1
|
@@ -1030,8 +1030,8 @@ async function getModelInfo(model) {
|
|
|
1030
1030
|
|
|
1031
1031
|
//#endregion
|
|
1032
1032
|
//#region recce-source/js/src/lib/api/cll.ts
|
|
1033
|
-
async function getCll(input) {
|
|
1034
|
-
return (await
|
|
1033
|
+
async function getCll(input, client = axiosClient) {
|
|
1034
|
+
return (await client.post("/api/cll", input)).data;
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
1037
|
//#endregion
|
|
@@ -1458,9 +1458,15 @@ function trackColumnLevelLineage(props) {
|
|
|
1458
1458
|
function trackShareState(props) {
|
|
1459
1459
|
track$1("[Web] share_state", props);
|
|
1460
1460
|
}
|
|
1461
|
+
function trackStateAction(props) {
|
|
1462
|
+
track$1("[Web] state_action", props);
|
|
1463
|
+
}
|
|
1461
1464
|
function trackCopyToClipboard(props) {
|
|
1462
1465
|
track$1("[Click] copy_to_clipboard", props);
|
|
1463
1466
|
}
|
|
1467
|
+
function trackNavigation(props) {
|
|
1468
|
+
track$1("[Web] navigation_change", props);
|
|
1469
|
+
}
|
|
1464
1470
|
function trackLineageViewRender(props) {
|
|
1465
1471
|
track$1("[Web] lineage_view_render", props);
|
|
1466
1472
|
}
|
|
@@ -1522,37 +1528,37 @@ function mutateAddKey(run) {
|
|
|
1522
1528
|
});
|
|
1523
1529
|
return run;
|
|
1524
1530
|
}
|
|
1525
|
-
async function submitRun(type, params, options) {
|
|
1531
|
+
async function submitRun(type, params, options, client = axiosClient) {
|
|
1526
1532
|
const track_props = options?.trackProps ? { ...options.trackProps } : {};
|
|
1527
1533
|
if (getExperimentTrackingBreakingChangeEnabled()) track_props.breaking_change_analysis = true;
|
|
1528
|
-
return (await
|
|
1534
|
+
return (await client.post("/api/runs", {
|
|
1529
1535
|
type,
|
|
1530
1536
|
params,
|
|
1531
1537
|
nowait: options?.nowait,
|
|
1532
1538
|
track_props
|
|
1533
1539
|
})).data;
|
|
1534
1540
|
}
|
|
1535
|
-
async function getRun(runId) {
|
|
1536
|
-
return (await
|
|
1541
|
+
async function getRun(runId, client = axiosClient) {
|
|
1542
|
+
return (await client.get(`/api/runs/${runId}`)).data;
|
|
1537
1543
|
}
|
|
1538
|
-
async function waitRun(runId, timeout) {
|
|
1539
|
-
return mutateAddKey((await
|
|
1544
|
+
async function waitRun(runId, timeout, client = axiosClient) {
|
|
1545
|
+
return mutateAddKey((await client.get(`/api/runs/${runId}/wait`, { params: { timeout } })).data);
|
|
1540
1546
|
}
|
|
1541
|
-
async function cancelRun(runId) {
|
|
1542
|
-
return await
|
|
1547
|
+
async function cancelRun(runId, client = axiosClient) {
|
|
1548
|
+
return await client.post(`/api/runs/${runId}/cancel`);
|
|
1543
1549
|
}
|
|
1544
|
-
async function submitRunFromCheck(checkId, options) {
|
|
1545
|
-
return (await
|
|
1550
|
+
async function submitRunFromCheck(checkId, options, client = axiosClient) {
|
|
1551
|
+
return (await client.post(`/api/checks/${checkId}/run`, { nowait: options?.nowait })).data;
|
|
1546
1552
|
}
|
|
1547
|
-
async function searchRuns(type, params, limit) {
|
|
1548
|
-
return (await
|
|
1553
|
+
async function searchRuns(type, params, limit, client = axiosClient) {
|
|
1554
|
+
return (await client.post(`/api/runs/search`, {
|
|
1549
1555
|
type,
|
|
1550
1556
|
params,
|
|
1551
1557
|
limit
|
|
1552
1558
|
})).data;
|
|
1553
1559
|
}
|
|
1554
|
-
async function listRuns() {
|
|
1555
|
-
return (await
|
|
1560
|
+
async function listRuns(client = axiosClient) {
|
|
1561
|
+
return (await client.get("/api/runs")).data;
|
|
1556
1562
|
}
|
|
1557
1563
|
async function aggregateRuns(client = axiosClient) {
|
|
1558
1564
|
return (await client.post(`/api/runs/aggregate`, {})).data;
|
|
@@ -1560,20 +1566,20 @@ async function aggregateRuns(client = axiosClient) {
|
|
|
1560
1566
|
|
|
1561
1567
|
//#endregion
|
|
1562
1568
|
//#region recce-source/js/src/lib/api/adhocQuery.ts
|
|
1563
|
-
async function submitQuery(params, options) {
|
|
1564
|
-
return await submitRun("query", params, options);
|
|
1569
|
+
async function submitQuery(params, options, client = axiosClient) {
|
|
1570
|
+
return await submitRun("query", params, options, client);
|
|
1565
1571
|
}
|
|
1566
|
-
async function submitQueryBase(params, options) {
|
|
1567
|
-
return await submitRun("query_base", params, options);
|
|
1572
|
+
async function submitQueryBase(params, options, client = axiosClient) {
|
|
1573
|
+
return await submitRun("query_base", params, options, client);
|
|
1568
1574
|
}
|
|
1569
|
-
async function submitQueryDiff(params, options) {
|
|
1570
|
-
return await submitRun("query_diff", params, options);
|
|
1575
|
+
async function submitQueryDiff(params, options, client = axiosClient) {
|
|
1576
|
+
return await submitRun("query_diff", params, options, client);
|
|
1571
1577
|
}
|
|
1572
1578
|
|
|
1573
1579
|
//#endregion
|
|
1574
1580
|
//#region recce-source/js/src/lib/api/lineagecheck.ts
|
|
1575
|
-
async function createLineageDiffCheck(viewOptions) {
|
|
1576
|
-
return (await
|
|
1581
|
+
async function createLineageDiffCheck(viewOptions, client = axiosClient) {
|
|
1582
|
+
return (await client.post("/api/checks", {
|
|
1577
1583
|
type: "lineage_diff",
|
|
1578
1584
|
params: {},
|
|
1579
1585
|
view_options: viewOptions
|
|
@@ -1582,17 +1588,17 @@ async function createLineageDiffCheck(viewOptions) {
|
|
|
1582
1588
|
|
|
1583
1589
|
//#endregion
|
|
1584
1590
|
//#region recce-source/js/src/lib/api/profile.ts
|
|
1585
|
-
async function submitProfileDiff(params, options) {
|
|
1586
|
-
return await submitRun("profile_diff", params, options);
|
|
1591
|
+
async function submitProfileDiff(params, options, client = axiosClient) {
|
|
1592
|
+
return await submitRun("profile_diff", params, options, client);
|
|
1587
1593
|
}
|
|
1588
1594
|
|
|
1589
1595
|
//#endregion
|
|
1590
1596
|
//#region recce-source/js/src/lib/api/valuediff.ts
|
|
1591
|
-
async function submitValueDiff(params, options) {
|
|
1592
|
-
return await submitRun("value_diff", params, options);
|
|
1597
|
+
async function submitValueDiff(params, options, client = axiosClient) {
|
|
1598
|
+
return await submitRun("value_diff", params, options, client);
|
|
1593
1599
|
}
|
|
1594
|
-
async function submitValueDiffDetail(params, options) {
|
|
1595
|
-
return await submitRun("value_diff_detail", params, options);
|
|
1600
|
+
async function submitValueDiffDetail(params, options, client = axiosClient) {
|
|
1601
|
+
return await submitRun("value_diff_detail", params, options, client);
|
|
1596
1602
|
}
|
|
1597
1603
|
|
|
1598
1604
|
//#endregion
|
|
@@ -2158,14 +2164,15 @@ function setKeepAliveCallback(callback) {
|
|
|
2158
2164
|
* - Minimum 3 seconds between API calls
|
|
2159
2165
|
* - Prevents concurrent API calls with a lock
|
|
2160
2166
|
*
|
|
2167
|
+
* @param client - Optional axios instance for API configuration
|
|
2161
2168
|
* @returns true if keep-alive was sent, false if throttled/skipped
|
|
2162
2169
|
*/
|
|
2163
|
-
async function sendKeepAlive() {
|
|
2170
|
+
async function sendKeepAlive(client = axiosClient) {
|
|
2164
2171
|
if (Date.now() - lastKeepAliveTime < MIN_KEEP_ALIVE_INTERVAL_MS) return false;
|
|
2165
2172
|
if (isSending) return false;
|
|
2166
2173
|
try {
|
|
2167
2174
|
isSending = true;
|
|
2168
|
-
await
|
|
2175
|
+
await client.post("/api/keep-alive");
|
|
2169
2176
|
lastKeepAliveTime = Date.now();
|
|
2170
2177
|
if (onKeepAliveSuccess) onKeepAliveSuccess(lastKeepAliveTime);
|
|
2171
2178
|
return true;
|
|
@@ -2236,6 +2243,7 @@ const IDLE_DETECTION_CONFIG = {
|
|
|
2236
2243
|
function useIdleDetection() {
|
|
2237
2244
|
const { data: instanceInfo, isLoading, isError } = useRecceInstanceInfo();
|
|
2238
2245
|
const isDisconnected = useIdleTimeoutSafe()?.isDisconnected ?? false;
|
|
2246
|
+
const { apiClient } = useApiConfig();
|
|
2239
2247
|
const idleTimeout = instanceInfo?.idle_timeout;
|
|
2240
2248
|
const isEnabled = idleTimeout !== void 0 && idleTimeout > 0 && !isDisconnected;
|
|
2241
2249
|
debugLog("[Idle Detection] Instance info", {
|
|
@@ -2253,8 +2261,8 @@ function useIdleDetection() {
|
|
|
2253
2261
|
*/
|
|
2254
2262
|
const sendKeepAliveNow = useCallback(async () => {
|
|
2255
2263
|
if (document.hidden) return;
|
|
2256
|
-
if (await sendKeepAlive()) debugLog("[Idle Detection] Keep-alive sent successfully", { timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
2257
|
-
}, []);
|
|
2264
|
+
if (await sendKeepAlive(apiClient)) debugLog("[Idle Detection] Keep-alive sent successfully", { timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
2265
|
+
}, [apiClient]);
|
|
2258
2266
|
/**
|
|
2259
2267
|
* Handle any user activity event
|
|
2260
2268
|
* Attempts to send keep-alive (axios layer handles throttling)
|
|
@@ -3290,26 +3298,26 @@ function ProfileDiffForm({ params, onParamsChanged, setIsReadyToExecute }) {
|
|
|
3290
3298
|
|
|
3291
3299
|
//#endregion
|
|
3292
3300
|
//#region recce-source/js/src/lib/api/models.ts
|
|
3293
|
-
async function fetchModelRowCount(modelName) {
|
|
3294
|
-
return (await
|
|
3301
|
+
async function fetchModelRowCount(modelName, client = axiosClient) {
|
|
3302
|
+
return (await client.get(`/api/models/${modelName}/row_count`)).data;
|
|
3295
3303
|
}
|
|
3296
|
-
async function queryModelRowCount(modelName) {
|
|
3297
|
-
const { result } = await queryRowCount([modelName]);
|
|
3304
|
+
async function queryModelRowCount(modelName, client = axiosClient) {
|
|
3305
|
+
const { result } = await queryRowCount([modelName], client);
|
|
3298
3306
|
return result[modelName];
|
|
3299
3307
|
}
|
|
3300
|
-
async function queryRowCount(modelNames) {
|
|
3308
|
+
async function queryRowCount(modelNames, client = axiosClient) {
|
|
3301
3309
|
if (modelNames.length === 0) throw new Error("No model names provided");
|
|
3302
|
-
const { run_id } = await submitRowCountDiff({ node_names: modelNames }, { nowait: true });
|
|
3310
|
+
const { run_id } = await submitRowCountDiff({ node_names: modelNames }, { nowait: true }, client);
|
|
3303
3311
|
return {
|
|
3304
3312
|
runId: run_id,
|
|
3305
|
-
result: (await waitRun(run_id)).result
|
|
3313
|
+
result: (await waitRun(run_id, void 0, client)).result
|
|
3306
3314
|
};
|
|
3307
3315
|
}
|
|
3308
3316
|
|
|
3309
3317
|
//#endregion
|
|
3310
3318
|
//#region recce-source/js/src/lib/api/rowcount.ts
|
|
3311
|
-
async function submitRowCountDiff(params, options) {
|
|
3312
|
-
return await submitRun("row_count_diff", params, options);
|
|
3319
|
+
async function submitRowCountDiff(params, options, client = axiosClient) {
|
|
3320
|
+
return await submitRun("row_count_diff", params, options, client);
|
|
3313
3321
|
}
|
|
3314
3322
|
|
|
3315
3323
|
//#endregion
|
|
@@ -5503,6 +5511,7 @@ const useCloseModalEffect = (onClose) => {
|
|
|
5503
5511
|
}, [onClose, usePathname()]);
|
|
5504
5512
|
};
|
|
5505
5513
|
function RecceActionContextProvider({ children }) {
|
|
5514
|
+
const { apiClient } = useApiConfig();
|
|
5506
5515
|
const [action, setAction] = useState();
|
|
5507
5516
|
const [isModalOpen, setModalOpen] = useState(false);
|
|
5508
5517
|
const onModalOpen = useCallback(() => setModalOpen(true), []);
|
|
@@ -5530,7 +5539,7 @@ function RecceActionContextProvider({ children }) {
|
|
|
5530
5539
|
const session = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
5531
5540
|
let lastRun = void 0;
|
|
5532
5541
|
if (options?.showLast) {
|
|
5533
|
-
const runs = await searchRuns(type, params, 1);
|
|
5542
|
+
const runs = await searchRuns(type, params, 1, apiClient);
|
|
5534
5543
|
if (runs.length === 1) lastRun = runs[0];
|
|
5535
5544
|
}
|
|
5536
5545
|
const run = findByRunType(type);
|
|
@@ -5541,7 +5550,7 @@ function RecceActionContextProvider({ children }) {
|
|
|
5541
5550
|
const { run_id } = await submitRun(type, params, {
|
|
5542
5551
|
nowait: true,
|
|
5543
5552
|
trackProps: options?.trackProps
|
|
5544
|
-
});
|
|
5553
|
+
}, apiClient);
|
|
5545
5554
|
await showRunId(run_id);
|
|
5546
5555
|
await queryClient.invalidateQueries({ queryKey: cacheKeys.runs() });
|
|
5547
5556
|
if (location.startsWith("/lineage")) setLocation("/lineage");
|
|
@@ -5571,7 +5580,8 @@ function RecceActionContextProvider({ children }) {
|
|
|
5571
5580
|
showRunId,
|
|
5572
5581
|
location,
|
|
5573
5582
|
setLocation,
|
|
5574
|
-
queryClient
|
|
5583
|
+
queryClient,
|
|
5584
|
+
apiClient
|
|
5575
5585
|
]);
|
|
5576
5586
|
useCloseModalEffect(onModalClose);
|
|
5577
5587
|
const handleExecute = async (type, params) => {
|
|
@@ -5580,7 +5590,7 @@ function RecceActionContextProvider({ children }) {
|
|
|
5580
5590
|
const { run_id } = await submitRun(type, params, {
|
|
5581
5591
|
nowait: true,
|
|
5582
5592
|
trackProps: action?.options?.trackProps
|
|
5583
|
-
});
|
|
5593
|
+
}, apiClient);
|
|
5584
5594
|
await showRunId(run_id);
|
|
5585
5595
|
} catch (e) {
|
|
5586
5596
|
toaster.create({
|
|
@@ -8120,66 +8130,67 @@ const findByRunType = (runType) => {
|
|
|
8120
8130
|
|
|
8121
8131
|
//#endregion
|
|
8122
8132
|
//#region recce-source/js/src/lib/api/checks.ts
|
|
8123
|
-
async function createSimpleCheck() {
|
|
8124
|
-
return (await
|
|
8133
|
+
async function createSimpleCheck(client = axiosClient) {
|
|
8134
|
+
return (await client.post("/api/checks", { type: "simple" })).data;
|
|
8125
8135
|
}
|
|
8126
|
-
async function createCheckByRun(runId, viewOptions) {
|
|
8136
|
+
async function createCheckByRun(runId, viewOptions, client = axiosClient) {
|
|
8127
8137
|
const track_props = getExperimentTrackingBreakingChangeEnabled() ? { breaking_change_analysis: true } : {};
|
|
8128
|
-
return (await
|
|
8138
|
+
return (await client.post("/api/checks", {
|
|
8129
8139
|
run_id: runId,
|
|
8130
8140
|
view_options: viewOptions,
|
|
8131
8141
|
track_props
|
|
8132
8142
|
})).data;
|
|
8133
8143
|
}
|
|
8134
|
-
async function listChecks() {
|
|
8135
|
-
return (await
|
|
8144
|
+
async function listChecks(client = axiosClient) {
|
|
8145
|
+
return (await client.get("/api/checks")).data;
|
|
8136
8146
|
}
|
|
8137
8147
|
function useChecks(enabled) {
|
|
8148
|
+
const { apiClient } = useApiConfig();
|
|
8138
8149
|
return useQuery({
|
|
8139
8150
|
queryKey: cacheKeys.checks(),
|
|
8140
|
-
queryFn: listChecks,
|
|
8151
|
+
queryFn: () => listChecks(apiClient),
|
|
8141
8152
|
enabled
|
|
8142
8153
|
});
|
|
8143
8154
|
}
|
|
8144
|
-
async function getCheck(checkId) {
|
|
8145
|
-
return (await
|
|
8155
|
+
async function getCheck(checkId, client = axiosClient) {
|
|
8156
|
+
return (await client.get(`/api/checks/${checkId}`)).data;
|
|
8146
8157
|
}
|
|
8147
|
-
async function updateCheck(checkId, payload) {
|
|
8148
|
-
return (await
|
|
8158
|
+
async function updateCheck(checkId, payload, client = axiosClient) {
|
|
8159
|
+
return (await client.patch(`/api/checks/${checkId}`, payload)).data;
|
|
8149
8160
|
}
|
|
8150
|
-
async function deleteCheck(checkId) {
|
|
8151
|
-
return (await
|
|
8161
|
+
async function deleteCheck(checkId, client = axiosClient) {
|
|
8162
|
+
return (await client.delete(`/api/checks/${checkId}`)).data;
|
|
8152
8163
|
}
|
|
8153
|
-
async function reorderChecks(order) {
|
|
8154
|
-
return await
|
|
8164
|
+
async function reorderChecks(order, client = axiosClient) {
|
|
8165
|
+
return await client.post("/api/checks/reorder", order);
|
|
8155
8166
|
}
|
|
8156
|
-
async function markAsPresetCheck(checkId) {
|
|
8157
|
-
await
|
|
8167
|
+
async function markAsPresetCheck(checkId, client = axiosClient) {
|
|
8168
|
+
await client.post(`/api/checks/${checkId}/mark-as-preset`);
|
|
8158
8169
|
}
|
|
8159
8170
|
|
|
8160
8171
|
//#endregion
|
|
8161
8172
|
//#region recce-source/js/src/lib/api/state.ts
|
|
8162
|
-
async function saveAs(input) {
|
|
8163
|
-
return (await
|
|
8173
|
+
async function saveAs(input, client = axiosClient) {
|
|
8174
|
+
return (await client.post("/api/save-as", input)).data;
|
|
8164
8175
|
}
|
|
8165
|
-
async function rename(input) {
|
|
8166
|
-
return (await
|
|
8176
|
+
async function rename(input, client = axiosClient) {
|
|
8177
|
+
return (await client.post("/api/rename", input)).data;
|
|
8167
8178
|
}
|
|
8168
|
-
async function exportState() {
|
|
8169
|
-
return (await
|
|
8179
|
+
async function exportState(client = axiosClient) {
|
|
8180
|
+
return (await client.post("/api/export")).data;
|
|
8170
8181
|
}
|
|
8171
|
-
async function importState(file, checksOnly) {
|
|
8182
|
+
async function importState(file, checksOnly, client = axiosClient) {
|
|
8172
8183
|
const formData = new FormData();
|
|
8173
8184
|
formData.append("file", file);
|
|
8174
8185
|
formData.append("checks_only", (!!checksOnly).toString());
|
|
8175
|
-
return (await
|
|
8186
|
+
return (await client.post("/api/import", formData)).data;
|
|
8176
8187
|
}
|
|
8177
|
-
async function isStateSyncing() {
|
|
8178
|
-
return (await
|
|
8188
|
+
async function isStateSyncing(client = axiosClient) {
|
|
8189
|
+
return (await client.get("/api/sync")).status === 208;
|
|
8179
8190
|
}
|
|
8180
|
-
async function syncState(input) {
|
|
8191
|
+
async function syncState(input, client = axiosClient) {
|
|
8181
8192
|
try {
|
|
8182
|
-
const response = await
|
|
8193
|
+
const response = await client.post("/api/sync", input);
|
|
8183
8194
|
if (response.status === 202) return { status: "accepted" };
|
|
8184
8195
|
if (response.status === 208) return { status: "syncing" };
|
|
8185
8196
|
} catch (error) {
|
|
@@ -8189,10 +8200,10 @@ async function syncState(input) {
|
|
|
8189
8200
|
}
|
|
8190
8201
|
throw new Error("Failed to sync state");
|
|
8191
8202
|
}
|
|
8192
|
-
async function shareState() {
|
|
8193
|
-
return (await
|
|
8203
|
+
async function shareState(client = axiosClient) {
|
|
8204
|
+
return (await client.post("/api/share")).data;
|
|
8194
8205
|
}
|
|
8195
8206
|
|
|
8196
8207
|
//#endregion
|
|
8197
|
-
export {
|
|
8198
|
-
//# sourceMappingURL=state-
|
|
8208
|
+
export { queryRowCount as $, trackLineageViewRender as $t, ColumnNameCell as A, getModelInfo as An, createLineageDiffCheck as At, IconExport as B, darkTheme as Bn, submitRunFromCheck as Bt, TopKSummaryList as C, selectUpstream as Cn, useApiConfigSafe as Ct, QueryDiffResultView as D, getLineage as Dn, submitValueDiff as Dt, QueryResultView as E, getCll as En, ScreenshotDataGrid as Et, RecceActionContextProvider as F, Toaster as Fn, cancelRun as Ft, deltaPercentageString as G, LINEAGE_SELECTION_ACTION as Gt, IconInfo as H, token as Hn, EXPLORE_ACTION as Ht, useRecceActionContext as I, ToasterProvider as In, getRun as It, mergeKeys as J, trackEnvironmentConfig as Jt, DiffText as K, trackColumnLevelLineage as Kt, useAppLocation as L, toaster as Ln, listRuns as Lt, useLineageViewContext as M, axiosClient as Mn, submitQueryBase as Mt, useLineageViewContextSafe as N, reactQueryClient as Nn, submitQueryDiff as Nt, ProfileDiffResultView as O, getLineageDiff as On, submitValueDiffDetail as Ot, RecceActionContext as P, ScreenshotBox as Pn, aggregateRuns as Pt, queryModelRowCount as Q, trackLineageSelection as Qt, RunModal as R, useToaster as Rn, searchRuns as Rt, TopKDiffResultView as S, selectDownstream as Sn, useApiConfig as St, RowCountDiffResultView as T, union as Tn, EmptyRowsRenderer as Tt, IconSave as U, EXPLORE_FORM_EVENT as Ut, IconImport as V, lightTheme as Vn, waitRun as Vt, IconSync as W, EXPLORE_SOURCE as Wt, submitRowCountDiff as X, trackExploreActionForm as Xt, mergeKeysWithStatus as Y, trackExploreAction as Yt, fetchModelRowCount as Z, trackHistoryAction as Zt, findByRunType as _, isValueDiffRun as _n, RecceInstanceInfoProvider as _t, saveAs as a, trackSingleEnvironment as an, supportsHistogramDiff as at, ValueDiffForm as b, isLineageGraphNode as bn, ApiConfigProvider as bt, createCheckByRun as c, isHistogramDiffRun as cn, useLineageGraphContext as ct, getCheck as d, isQueryDiffRun as dn, IdleTimeoutProvider as dt, trackMultiNodesAction as en, ProfileDiffForm as et, listChecks as f, isQueryRun as fn, useIdleTimeout as ft, useChecks as g, isValueDiffDetailRun as gn, formatDuration as gt, updateCheck as h, isTopKDiffRun as hn, markRelaunchHintCompleted as ht, rename as i, trackShareState as in, HistogramDiffForm as it, LineageViewContext as j, getServerInfo as jn, submitQuery as jt, createDataGridFromData as k, getLineageWithError as kn, submitProfileDiff as kt, createSimpleCheck as l, isProfileDiffRun as ln, useRunsAggregated as lt, reorderChecks as m, isRowCountRun as mn, markOnboardingCompleted as mt, importState as n, trackPreviewChange as nn, HistogramChart as nt, shareState as o, trackStateAction as on, useModelColumns_default as ot, markAsPresetCheck as p, isRowCountDiffRun as pn, getServerFlag as pt, useClipBoardToast as q, trackCopyToClipboard as qt, isStateSyncing as r, trackPreviewChangeFeedback as rn, SquareIcon as rt, syncState as s, RunToolbar as sn, LineageGraphContextProvider as st, exportState as t, trackNavigation as tn, HistogramDiffResultView as tt, deleteCheck as u, isQueryBaseRun as un, useRecceServerFlag as ut, runTypeHasRef as v, COLUMN_HEIGHT as vn, useRecceInstanceContext as vt, TopKDiffForm as w, toReactFlow as wn, cacheKeys as wt, ValueDiffDetailResultView as x, layout as xn, useApiClient as xt, ValueDiffResultView as y, isLineageGraphColumnNode as yn, useRecceInstanceInfo as yt, IconEdit as z, colors as zn, submitRun as zt };
|
|
8209
|
+
//# sourceMappingURL=state-CwepO01b.mjs.map
|