@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
|
@@ -1091,8 +1091,8 @@ async function getModelInfo(model) {
|
|
|
1091
1091
|
|
|
1092
1092
|
//#endregion
|
|
1093
1093
|
//#region recce-source/js/src/lib/api/cll.ts
|
|
1094
|
-
async function getCll(input) {
|
|
1095
|
-
return (await
|
|
1094
|
+
async function getCll(input, client = axiosClient) {
|
|
1095
|
+
return (await client.post("/api/cll", input)).data;
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
1098
|
//#endregion
|
|
@@ -1519,9 +1519,15 @@ function trackColumnLevelLineage(props) {
|
|
|
1519
1519
|
function trackShareState(props) {
|
|
1520
1520
|
track("[Web] share_state", props);
|
|
1521
1521
|
}
|
|
1522
|
+
function trackStateAction(props) {
|
|
1523
|
+
track("[Web] state_action", props);
|
|
1524
|
+
}
|
|
1522
1525
|
function trackCopyToClipboard(props) {
|
|
1523
1526
|
track("[Click] copy_to_clipboard", props);
|
|
1524
1527
|
}
|
|
1528
|
+
function trackNavigation(props) {
|
|
1529
|
+
track("[Web] navigation_change", props);
|
|
1530
|
+
}
|
|
1525
1531
|
function trackLineageViewRender(props) {
|
|
1526
1532
|
track("[Web] lineage_view_render", props);
|
|
1527
1533
|
}
|
|
@@ -1583,37 +1589,37 @@ function mutateAddKey(run) {
|
|
|
1583
1589
|
});
|
|
1584
1590
|
return run;
|
|
1585
1591
|
}
|
|
1586
|
-
async function submitRun(type, params, options) {
|
|
1592
|
+
async function submitRun(type, params, options, client = axiosClient) {
|
|
1587
1593
|
const track_props = options?.trackProps ? { ...options.trackProps } : {};
|
|
1588
1594
|
if (getExperimentTrackingBreakingChangeEnabled()) track_props.breaking_change_analysis = true;
|
|
1589
|
-
return (await
|
|
1595
|
+
return (await client.post("/api/runs", {
|
|
1590
1596
|
type,
|
|
1591
1597
|
params,
|
|
1592
1598
|
nowait: options?.nowait,
|
|
1593
1599
|
track_props
|
|
1594
1600
|
})).data;
|
|
1595
1601
|
}
|
|
1596
|
-
async function getRun(runId) {
|
|
1597
|
-
return (await
|
|
1602
|
+
async function getRun(runId, client = axiosClient) {
|
|
1603
|
+
return (await client.get(`/api/runs/${runId}`)).data;
|
|
1598
1604
|
}
|
|
1599
|
-
async function waitRun(runId, timeout) {
|
|
1600
|
-
return mutateAddKey((await
|
|
1605
|
+
async function waitRun(runId, timeout, client = axiosClient) {
|
|
1606
|
+
return mutateAddKey((await client.get(`/api/runs/${runId}/wait`, { params: { timeout } })).data);
|
|
1601
1607
|
}
|
|
1602
|
-
async function cancelRun(runId) {
|
|
1603
|
-
return await
|
|
1608
|
+
async function cancelRun(runId, client = axiosClient) {
|
|
1609
|
+
return await client.post(`/api/runs/${runId}/cancel`);
|
|
1604
1610
|
}
|
|
1605
|
-
async function submitRunFromCheck(checkId, options) {
|
|
1606
|
-
return (await
|
|
1611
|
+
async function submitRunFromCheck(checkId, options, client = axiosClient) {
|
|
1612
|
+
return (await client.post(`/api/checks/${checkId}/run`, { nowait: options?.nowait })).data;
|
|
1607
1613
|
}
|
|
1608
|
-
async function searchRuns(type, params, limit) {
|
|
1609
|
-
return (await
|
|
1614
|
+
async function searchRuns(type, params, limit, client = axiosClient) {
|
|
1615
|
+
return (await client.post(`/api/runs/search`, {
|
|
1610
1616
|
type,
|
|
1611
1617
|
params,
|
|
1612
1618
|
limit
|
|
1613
1619
|
})).data;
|
|
1614
1620
|
}
|
|
1615
|
-
async function listRuns() {
|
|
1616
|
-
return (await
|
|
1621
|
+
async function listRuns(client = axiosClient) {
|
|
1622
|
+
return (await client.get("/api/runs")).data;
|
|
1617
1623
|
}
|
|
1618
1624
|
async function aggregateRuns(client = axiosClient) {
|
|
1619
1625
|
return (await client.post(`/api/runs/aggregate`, {})).data;
|
|
@@ -1621,20 +1627,20 @@ async function aggregateRuns(client = axiosClient) {
|
|
|
1621
1627
|
|
|
1622
1628
|
//#endregion
|
|
1623
1629
|
//#region recce-source/js/src/lib/api/adhocQuery.ts
|
|
1624
|
-
async function submitQuery(params, options) {
|
|
1625
|
-
return await submitRun("query", params, options);
|
|
1630
|
+
async function submitQuery(params, options, client = axiosClient) {
|
|
1631
|
+
return await submitRun("query", params, options, client);
|
|
1626
1632
|
}
|
|
1627
|
-
async function submitQueryBase(params, options) {
|
|
1628
|
-
return await submitRun("query_base", params, options);
|
|
1633
|
+
async function submitQueryBase(params, options, client = axiosClient) {
|
|
1634
|
+
return await submitRun("query_base", params, options, client);
|
|
1629
1635
|
}
|
|
1630
|
-
async function submitQueryDiff(params, options) {
|
|
1631
|
-
return await submitRun("query_diff", params, options);
|
|
1636
|
+
async function submitQueryDiff(params, options, client = axiosClient) {
|
|
1637
|
+
return await submitRun("query_diff", params, options, client);
|
|
1632
1638
|
}
|
|
1633
1639
|
|
|
1634
1640
|
//#endregion
|
|
1635
1641
|
//#region recce-source/js/src/lib/api/lineagecheck.ts
|
|
1636
|
-
async function createLineageDiffCheck(viewOptions) {
|
|
1637
|
-
return (await
|
|
1642
|
+
async function createLineageDiffCheck(viewOptions, client = axiosClient) {
|
|
1643
|
+
return (await client.post("/api/checks", {
|
|
1638
1644
|
type: "lineage_diff",
|
|
1639
1645
|
params: {},
|
|
1640
1646
|
view_options: viewOptions
|
|
@@ -1643,17 +1649,17 @@ async function createLineageDiffCheck(viewOptions) {
|
|
|
1643
1649
|
|
|
1644
1650
|
//#endregion
|
|
1645
1651
|
//#region recce-source/js/src/lib/api/profile.ts
|
|
1646
|
-
async function submitProfileDiff(params, options) {
|
|
1647
|
-
return await submitRun("profile_diff", params, options);
|
|
1652
|
+
async function submitProfileDiff(params, options, client = axiosClient) {
|
|
1653
|
+
return await submitRun("profile_diff", params, options, client);
|
|
1648
1654
|
}
|
|
1649
1655
|
|
|
1650
1656
|
//#endregion
|
|
1651
1657
|
//#region recce-source/js/src/lib/api/valuediff.ts
|
|
1652
|
-
async function submitValueDiff(params, options) {
|
|
1653
|
-
return await submitRun("value_diff", params, options);
|
|
1658
|
+
async function submitValueDiff(params, options, client = axiosClient) {
|
|
1659
|
+
return await submitRun("value_diff", params, options, client);
|
|
1654
1660
|
}
|
|
1655
|
-
async function submitValueDiffDetail(params, options) {
|
|
1656
|
-
return await submitRun("value_diff_detail", params, options);
|
|
1661
|
+
async function submitValueDiffDetail(params, options, client = axiosClient) {
|
|
1662
|
+
return await submitRun("value_diff_detail", params, options, client);
|
|
1657
1663
|
}
|
|
1658
1664
|
|
|
1659
1665
|
//#endregion
|
|
@@ -2219,14 +2225,15 @@ function setKeepAliveCallback(callback) {
|
|
|
2219
2225
|
* - Minimum 3 seconds between API calls
|
|
2220
2226
|
* - Prevents concurrent API calls with a lock
|
|
2221
2227
|
*
|
|
2228
|
+
* @param client - Optional axios instance for API configuration
|
|
2222
2229
|
* @returns true if keep-alive was sent, false if throttled/skipped
|
|
2223
2230
|
*/
|
|
2224
|
-
async function sendKeepAlive() {
|
|
2231
|
+
async function sendKeepAlive(client = axiosClient) {
|
|
2225
2232
|
if (Date.now() - lastKeepAliveTime < MIN_KEEP_ALIVE_INTERVAL_MS) return false;
|
|
2226
2233
|
if (isSending) return false;
|
|
2227
2234
|
try {
|
|
2228
2235
|
isSending = true;
|
|
2229
|
-
await
|
|
2236
|
+
await client.post("/api/keep-alive");
|
|
2230
2237
|
lastKeepAliveTime = Date.now();
|
|
2231
2238
|
if (onKeepAliveSuccess) onKeepAliveSuccess(lastKeepAliveTime);
|
|
2232
2239
|
return true;
|
|
@@ -2297,6 +2304,7 @@ const IDLE_DETECTION_CONFIG = {
|
|
|
2297
2304
|
function useIdleDetection() {
|
|
2298
2305
|
const { data: instanceInfo, isLoading, isError } = useRecceInstanceInfo();
|
|
2299
2306
|
const isDisconnected = useIdleTimeoutSafe()?.isDisconnected ?? false;
|
|
2307
|
+
const { apiClient } = useApiConfig();
|
|
2300
2308
|
const idleTimeout = instanceInfo?.idle_timeout;
|
|
2301
2309
|
const isEnabled = idleTimeout !== void 0 && idleTimeout > 0 && !isDisconnected;
|
|
2302
2310
|
debugLog("[Idle Detection] Instance info", {
|
|
@@ -2314,8 +2322,8 @@ function useIdleDetection() {
|
|
|
2314
2322
|
*/
|
|
2315
2323
|
const sendKeepAliveNow = (0, react.useCallback)(async () => {
|
|
2316
2324
|
if (document.hidden) return;
|
|
2317
|
-
if (await sendKeepAlive()) debugLog("[Idle Detection] Keep-alive sent successfully", { timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
2318
|
-
}, []);
|
|
2325
|
+
if (await sendKeepAlive(apiClient)) debugLog("[Idle Detection] Keep-alive sent successfully", { timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
2326
|
+
}, [apiClient]);
|
|
2319
2327
|
/**
|
|
2320
2328
|
* Handle any user activity event
|
|
2321
2329
|
* Attempts to send keep-alive (axios layer handles throttling)
|
|
@@ -3351,26 +3359,26 @@ function ProfileDiffForm({ params, onParamsChanged, setIsReadyToExecute }) {
|
|
|
3351
3359
|
|
|
3352
3360
|
//#endregion
|
|
3353
3361
|
//#region recce-source/js/src/lib/api/models.ts
|
|
3354
|
-
async function fetchModelRowCount(modelName) {
|
|
3355
|
-
return (await
|
|
3362
|
+
async function fetchModelRowCount(modelName, client = axiosClient) {
|
|
3363
|
+
return (await client.get(`/api/models/${modelName}/row_count`)).data;
|
|
3356
3364
|
}
|
|
3357
|
-
async function queryModelRowCount(modelName) {
|
|
3358
|
-
const { result } = await queryRowCount([modelName]);
|
|
3365
|
+
async function queryModelRowCount(modelName, client = axiosClient) {
|
|
3366
|
+
const { result } = await queryRowCount([modelName], client);
|
|
3359
3367
|
return result[modelName];
|
|
3360
3368
|
}
|
|
3361
|
-
async function queryRowCount(modelNames) {
|
|
3369
|
+
async function queryRowCount(modelNames, client = axiosClient) {
|
|
3362
3370
|
if (modelNames.length === 0) throw new Error("No model names provided");
|
|
3363
|
-
const { run_id } = await submitRowCountDiff({ node_names: modelNames }, { nowait: true });
|
|
3371
|
+
const { run_id } = await submitRowCountDiff({ node_names: modelNames }, { nowait: true }, client);
|
|
3364
3372
|
return {
|
|
3365
3373
|
runId: run_id,
|
|
3366
|
-
result: (await waitRun(run_id)).result
|
|
3374
|
+
result: (await waitRun(run_id, void 0, client)).result
|
|
3367
3375
|
};
|
|
3368
3376
|
}
|
|
3369
3377
|
|
|
3370
3378
|
//#endregion
|
|
3371
3379
|
//#region recce-source/js/src/lib/api/rowcount.ts
|
|
3372
|
-
async function submitRowCountDiff(params, options) {
|
|
3373
|
-
return await submitRun("row_count_diff", params, options);
|
|
3380
|
+
async function submitRowCountDiff(params, options, client = axiosClient) {
|
|
3381
|
+
return await submitRun("row_count_diff", params, options, client);
|
|
3374
3382
|
}
|
|
3375
3383
|
|
|
3376
3384
|
//#endregion
|
|
@@ -5570,6 +5578,7 @@ const useCloseModalEffect = (onClose) => {
|
|
|
5570
5578
|
}, [onClose, (0, next_navigation.usePathname)()]);
|
|
5571
5579
|
};
|
|
5572
5580
|
function RecceActionContextProvider({ children }) {
|
|
5581
|
+
const { apiClient } = useApiConfig();
|
|
5573
5582
|
const [action, setAction] = (0, react.useState)();
|
|
5574
5583
|
const [isModalOpen, setModalOpen] = (0, react.useState)(false);
|
|
5575
5584
|
const onModalOpen = (0, react.useCallback)(() => setModalOpen(true), []);
|
|
@@ -5597,7 +5606,7 @@ function RecceActionContextProvider({ children }) {
|
|
|
5597
5606
|
const session = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
5598
5607
|
let lastRun = void 0;
|
|
5599
5608
|
if (options?.showLast) {
|
|
5600
|
-
const runs = await searchRuns(type, params, 1);
|
|
5609
|
+
const runs = await searchRuns(type, params, 1, apiClient);
|
|
5601
5610
|
if (runs.length === 1) lastRun = runs[0];
|
|
5602
5611
|
}
|
|
5603
5612
|
const run = findByRunType(type);
|
|
@@ -5608,7 +5617,7 @@ function RecceActionContextProvider({ children }) {
|
|
|
5608
5617
|
const { run_id } = await submitRun(type, params, {
|
|
5609
5618
|
nowait: true,
|
|
5610
5619
|
trackProps: options?.trackProps
|
|
5611
|
-
});
|
|
5620
|
+
}, apiClient);
|
|
5612
5621
|
await showRunId(run_id);
|
|
5613
5622
|
await queryClient.invalidateQueries({ queryKey: cacheKeys.runs() });
|
|
5614
5623
|
if (location.startsWith("/lineage")) setLocation("/lineage");
|
|
@@ -5638,7 +5647,8 @@ function RecceActionContextProvider({ children }) {
|
|
|
5638
5647
|
showRunId,
|
|
5639
5648
|
location,
|
|
5640
5649
|
setLocation,
|
|
5641
|
-
queryClient
|
|
5650
|
+
queryClient,
|
|
5651
|
+
apiClient
|
|
5642
5652
|
]);
|
|
5643
5653
|
useCloseModalEffect(onModalClose);
|
|
5644
5654
|
const handleExecute = async (type, params) => {
|
|
@@ -5647,7 +5657,7 @@ function RecceActionContextProvider({ children }) {
|
|
|
5647
5657
|
const { run_id } = await submitRun(type, params, {
|
|
5648
5658
|
nowait: true,
|
|
5649
5659
|
trackProps: action?.options?.trackProps
|
|
5650
|
-
});
|
|
5660
|
+
}, apiClient);
|
|
5651
5661
|
await showRunId(run_id);
|
|
5652
5662
|
} catch (e) {
|
|
5653
5663
|
toaster.create({
|
|
@@ -8187,66 +8197,67 @@ const findByRunType = (runType) => {
|
|
|
8187
8197
|
|
|
8188
8198
|
//#endregion
|
|
8189
8199
|
//#region recce-source/js/src/lib/api/checks.ts
|
|
8190
|
-
async function createSimpleCheck() {
|
|
8191
|
-
return (await
|
|
8200
|
+
async function createSimpleCheck(client = axiosClient) {
|
|
8201
|
+
return (await client.post("/api/checks", { type: "simple" })).data;
|
|
8192
8202
|
}
|
|
8193
|
-
async function createCheckByRun(runId, viewOptions) {
|
|
8203
|
+
async function createCheckByRun(runId, viewOptions, client = axiosClient) {
|
|
8194
8204
|
const track_props = getExperimentTrackingBreakingChangeEnabled() ? { breaking_change_analysis: true } : {};
|
|
8195
|
-
return (await
|
|
8205
|
+
return (await client.post("/api/checks", {
|
|
8196
8206
|
run_id: runId,
|
|
8197
8207
|
view_options: viewOptions,
|
|
8198
8208
|
track_props
|
|
8199
8209
|
})).data;
|
|
8200
8210
|
}
|
|
8201
|
-
async function listChecks() {
|
|
8202
|
-
return (await
|
|
8211
|
+
async function listChecks(client = axiosClient) {
|
|
8212
|
+
return (await client.get("/api/checks")).data;
|
|
8203
8213
|
}
|
|
8204
8214
|
function useChecks(enabled) {
|
|
8215
|
+
const { apiClient } = useApiConfig();
|
|
8205
8216
|
return (0, _tanstack_react_query.useQuery)({
|
|
8206
8217
|
queryKey: cacheKeys.checks(),
|
|
8207
|
-
queryFn: listChecks,
|
|
8218
|
+
queryFn: () => listChecks(apiClient),
|
|
8208
8219
|
enabled
|
|
8209
8220
|
});
|
|
8210
8221
|
}
|
|
8211
|
-
async function getCheck(checkId) {
|
|
8212
|
-
return (await
|
|
8222
|
+
async function getCheck(checkId, client = axiosClient) {
|
|
8223
|
+
return (await client.get(`/api/checks/${checkId}`)).data;
|
|
8213
8224
|
}
|
|
8214
|
-
async function updateCheck(checkId, payload) {
|
|
8215
|
-
return (await
|
|
8225
|
+
async function updateCheck(checkId, payload, client = axiosClient) {
|
|
8226
|
+
return (await client.patch(`/api/checks/${checkId}`, payload)).data;
|
|
8216
8227
|
}
|
|
8217
|
-
async function deleteCheck(checkId) {
|
|
8218
|
-
return (await
|
|
8228
|
+
async function deleteCheck(checkId, client = axiosClient) {
|
|
8229
|
+
return (await client.delete(`/api/checks/${checkId}`)).data;
|
|
8219
8230
|
}
|
|
8220
|
-
async function reorderChecks(order) {
|
|
8221
|
-
return await
|
|
8231
|
+
async function reorderChecks(order, client = axiosClient) {
|
|
8232
|
+
return await client.post("/api/checks/reorder", order);
|
|
8222
8233
|
}
|
|
8223
|
-
async function markAsPresetCheck(checkId) {
|
|
8224
|
-
await
|
|
8234
|
+
async function markAsPresetCheck(checkId, client = axiosClient) {
|
|
8235
|
+
await client.post(`/api/checks/${checkId}/mark-as-preset`);
|
|
8225
8236
|
}
|
|
8226
8237
|
|
|
8227
8238
|
//#endregion
|
|
8228
8239
|
//#region recce-source/js/src/lib/api/state.ts
|
|
8229
|
-
async function saveAs(input) {
|
|
8230
|
-
return (await
|
|
8240
|
+
async function saveAs(input, client = axiosClient) {
|
|
8241
|
+
return (await client.post("/api/save-as", input)).data;
|
|
8231
8242
|
}
|
|
8232
|
-
async function rename(input) {
|
|
8233
|
-
return (await
|
|
8243
|
+
async function rename(input, client = axiosClient) {
|
|
8244
|
+
return (await client.post("/api/rename", input)).data;
|
|
8234
8245
|
}
|
|
8235
|
-
async function exportState() {
|
|
8236
|
-
return (await
|
|
8246
|
+
async function exportState(client = axiosClient) {
|
|
8247
|
+
return (await client.post("/api/export")).data;
|
|
8237
8248
|
}
|
|
8238
|
-
async function importState(file, checksOnly) {
|
|
8249
|
+
async function importState(file, checksOnly, client = axiosClient) {
|
|
8239
8250
|
const formData = new FormData();
|
|
8240
8251
|
formData.append("file", file);
|
|
8241
8252
|
formData.append("checks_only", (!!checksOnly).toString());
|
|
8242
|
-
return (await
|
|
8253
|
+
return (await client.post("/api/import", formData)).data;
|
|
8243
8254
|
}
|
|
8244
|
-
async function isStateSyncing() {
|
|
8245
|
-
return (await
|
|
8255
|
+
async function isStateSyncing(client = axiosClient) {
|
|
8256
|
+
return (await client.get("/api/sync")).status === 208;
|
|
8246
8257
|
}
|
|
8247
|
-
async function syncState(input) {
|
|
8258
|
+
async function syncState(input, client = axiosClient) {
|
|
8248
8259
|
try {
|
|
8249
|
-
const response = await
|
|
8260
|
+
const response = await client.post("/api/sync", input);
|
|
8250
8261
|
if (response.status === 202) return { status: "accepted" };
|
|
8251
8262
|
if (response.status === 208) return { status: "syncing" };
|
|
8252
8263
|
} catch (error) {
|
|
@@ -8256,8 +8267,8 @@ async function syncState(input) {
|
|
|
8256
8267
|
}
|
|
8257
8268
|
throw new Error("Failed to sync state");
|
|
8258
8269
|
}
|
|
8259
|
-
async function shareState() {
|
|
8260
|
-
return (await
|
|
8270
|
+
async function shareState(client = axiosClient) {
|
|
8271
|
+
return (await client.post("/api/share")).data;
|
|
8261
8272
|
}
|
|
8262
8273
|
|
|
8263
8274
|
//#endregion
|
|
@@ -8411,6 +8422,12 @@ Object.defineProperty(exports, 'QueryResultView', {
|
|
|
8411
8422
|
return QueryResultView;
|
|
8412
8423
|
}
|
|
8413
8424
|
});
|
|
8425
|
+
Object.defineProperty(exports, 'RecceActionContext', {
|
|
8426
|
+
enumerable: true,
|
|
8427
|
+
get: function () {
|
|
8428
|
+
return RecceActionContext;
|
|
8429
|
+
}
|
|
8430
|
+
});
|
|
8414
8431
|
Object.defineProperty(exports, 'RecceActionContextProvider', {
|
|
8415
8432
|
enumerable: true,
|
|
8416
8433
|
get: function () {
|
|
@@ -9011,6 +9028,12 @@ Object.defineProperty(exports, 'trackMultiNodesAction', {
|
|
|
9011
9028
|
return trackMultiNodesAction;
|
|
9012
9029
|
}
|
|
9013
9030
|
});
|
|
9031
|
+
Object.defineProperty(exports, 'trackNavigation', {
|
|
9032
|
+
enumerable: true,
|
|
9033
|
+
get: function () {
|
|
9034
|
+
return trackNavigation;
|
|
9035
|
+
}
|
|
9036
|
+
});
|
|
9014
9037
|
Object.defineProperty(exports, 'trackPreviewChange', {
|
|
9015
9038
|
enumerable: true,
|
|
9016
9039
|
get: function () {
|
|
@@ -9035,6 +9058,12 @@ Object.defineProperty(exports, 'trackSingleEnvironment', {
|
|
|
9035
9058
|
return trackSingleEnvironment;
|
|
9036
9059
|
}
|
|
9037
9060
|
});
|
|
9061
|
+
Object.defineProperty(exports, 'trackStateAction', {
|
|
9062
|
+
enumerable: true,
|
|
9063
|
+
get: function () {
|
|
9064
|
+
return trackStateAction;
|
|
9065
|
+
}
|
|
9066
|
+
});
|
|
9038
9067
|
Object.defineProperty(exports, 'union', {
|
|
9039
9068
|
enumerable: true,
|
|
9040
9069
|
get: function () {
|
|
@@ -9155,4 +9184,4 @@ Object.defineProperty(exports, 'waitRun', {
|
|
|
9155
9184
|
return waitRun;
|
|
9156
9185
|
}
|
|
9157
9186
|
});
|
|
9158
|
-
//# sourceMappingURL=state-
|
|
9187
|
+
//# sourceMappingURL=state-Ct-DP81O.js.map
|