flowcore-fn 9.5.1 → 9.5.2

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/pkg-index.js CHANGED
@@ -5624,7 +5624,8 @@ function DocumentConfigTable({
5624
5624
  try {
5625
5625
  const endpoint = (_c = (_b = (_a = getApiEndpoints()) == null ? void 0 : _a.flowCore) == null ? void 0 : _b.documentConfiguration) == null ? void 0 : _c.getById;
5626
5626
  if (!endpoint) throw new Error("Document Configuration get-by-id endpoint is not configured.");
5627
- const result = await getApiService().get(buildGetByIdUrl(endpoint, item.id));
5627
+ const url = typeof endpoint === "function" ? endpoint(item.id) : buildGetByIdUrl(endpoint, item.id);
5628
+ const result = await getApiService().get(url);
5628
5629
  const value = (_h = (_g = (_f = (_d = result == null ? void 0 : result.data) == null ? void 0 : _d.data) != null ? _f : (_e = result == null ? void 0 : result.data) == null ? void 0 : _e.result) != null ? _g : result == null ? void 0 : result.data) != null ? _h : result;
5629
5630
  setSelectedItem(toUiItem(value != null ? value : item));
5630
5631
  setIsEditOpen(true);
@@ -5482,7 +5482,8 @@ function DocumentConfigTable({
5482
5482
  try {
5483
5483
  const endpoint = (_c = (_b = (_a = getApiEndpoints()) == null ? void 0 : _a.flowCore) == null ? void 0 : _b.documentConfiguration) == null ? void 0 : _c.getById;
5484
5484
  if (!endpoint) throw new Error("Document Configuration get-by-id endpoint is not configured.");
5485
- const result = await getApiService().get(buildGetByIdUrl(endpoint, item.id));
5485
+ const url = typeof endpoint === "function" ? endpoint(item.id) : buildGetByIdUrl(endpoint, item.id);
5486
+ const result = await getApiService().get(url);
5486
5487
  const value = (_h = (_g = (_f = (_d = result == null ? void 0 : result.data) == null ? void 0 : _d.data) != null ? _f : (_e = result == null ? void 0 : result.data) == null ? void 0 : _e.result) != null ? _g : result == null ? void 0 : result.data) != null ? _h : result;
5487
5488
  setSelectedItem(toUiItem(value != null ? value : item));
5488
5489
  setIsEditOpen(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowcore-fn",
3
- "version": "9.5.1",
3
+ "version": "9.5.2",
4
4
  "main": "dist/pkg-index.js",
5
5
  "module": "dist/pkg-index.mjs",
6
6
  "files": [