@superatomai/sdk-node 0.0.37-mds → 0.0.38-mds

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.mjs CHANGED
@@ -2018,6 +2018,10 @@ function getCacheKey(collection, op, params) {
2018
2018
  const paramsKey = params.params ? JSON.stringify(params.params) : "";
2019
2019
  return sqlKey ? `et:${toolId}:${sqlKey}:${paramsKey}` : "";
2020
2020
  }
2021
+ if (collection === "external-tools" && op === "execute" && params?.toolId && !params?.sql) {
2022
+ const dataKey = params.data ? JSON.stringify(params.data) : "";
2023
+ return `et-direct:${params.toolId}:${dataKey}`;
2024
+ }
2021
2025
  if (collection === "external-tools" && op === "executeByQueryId" && params?.queryId) {
2022
2026
  const toolId = params.toolId || "";
2023
2027
  const filterKey = params.filterParams ? JSON.stringify(params.filterParams) : "";