@boomi/embedkit-sdk 1.2.17 → 1.2.18
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.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7092,14 +7092,19 @@ var IntegrationPackInstanceService = class {
|
|
|
7092
7092
|
)
|
|
7093
7093
|
});
|
|
7094
7094
|
const allInstances = instResp?.result ?? [];
|
|
7095
|
-
const searchLc = search?.toLowerCase();
|
|
7096
|
-
const filtered =
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
const isAgentInstance = hasAgentTag(inst
|
|
7100
|
-
if (renderTypeFilter === "agent"
|
|
7101
|
-
if (renderTypeFilter === "integration"
|
|
7095
|
+
const searchLc = search?.toLowerCase().trim() || "";
|
|
7096
|
+
const filtered = allInstances.filter((inst) => {
|
|
7097
|
+
const ipId = inst.integrationPackId;
|
|
7098
|
+
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7099
|
+
const isAgentInstance = hasAgentTag(inst.integrationPackDescription);
|
|
7100
|
+
if (renderTypeFilter === "agent") return isAgentInstance;
|
|
7101
|
+
if (renderTypeFilter === "integration") return !isAgentInstance;
|
|
7102
7102
|
return true;
|
|
7103
|
+
}).filter((inst) => {
|
|
7104
|
+
if (!searchLc) return true;
|
|
7105
|
+
const name = inst?.integrationPackInstanceName?.toLowerCase?.() ?? "";
|
|
7106
|
+
const override = inst?.integrationPackOverrideName?.toLowerCase?.() ?? "";
|
|
7107
|
+
return name.includes(searchLc) || override.includes(searchLc);
|
|
7103
7108
|
});
|
|
7104
7109
|
const total = filtered.length;
|
|
7105
7110
|
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|