@boomi/embedkit-sdk 1.2.16 → 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 +14 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7509,10 +7509,20 @@ var IntegrationPackInstanceService = class {
|
|
|
7509
7509
|
)
|
|
7510
7510
|
});
|
|
7511
7511
|
const allInstances = instResp?.result ?? [];
|
|
7512
|
-
const searchLc = search?.toLowerCase();
|
|
7513
|
-
const filtered =
|
|
7514
|
-
|
|
7515
|
-
|
|
7512
|
+
const searchLc = search?.toLowerCase().trim() || "";
|
|
7513
|
+
const filtered = allInstances.filter((inst) => {
|
|
7514
|
+
const ipId = inst.integrationPackId;
|
|
7515
|
+
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7516
|
+
const isAgentInstance = hasAgentTag(inst.integrationPackDescription);
|
|
7517
|
+
if (renderTypeFilter === "agent") return isAgentInstance;
|
|
7518
|
+
if (renderTypeFilter === "integration") return !isAgentInstance;
|
|
7519
|
+
return true;
|
|
7520
|
+
}).filter((inst) => {
|
|
7521
|
+
if (!searchLc) return true;
|
|
7522
|
+
const name = inst?.integrationPackInstanceName?.toLowerCase?.() ?? "";
|
|
7523
|
+
const override = inst?.integrationPackOverrideName?.toLowerCase?.() ?? "";
|
|
7524
|
+
return name.includes(searchLc) || override.includes(searchLc);
|
|
7525
|
+
});
|
|
7516
7526
|
const total = filtered.length;
|
|
7517
7527
|
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
7518
7528
|
const clampedPage = Math.min(Math.max(1, page), totalPages);
|
|
@@ -7524,11 +7534,6 @@ var IntegrationPackInstanceService = class {
|
|
|
7524
7534
|
const ipId = inst.integrationPackId;
|
|
7525
7535
|
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7526
7536
|
inst.isAgent = hasAgentTag(inst.integrationPackDescription);
|
|
7527
|
-
if (renderTypeFilter === "agent" && !inst.isAgent) {
|
|
7528
|
-
return null;
|
|
7529
|
-
} else if (renderTypeFilter === "integration" && inst.isAgent) {
|
|
7530
|
-
return null;
|
|
7531
|
-
}
|
|
7532
7537
|
inst.installed = true;
|
|
7533
7538
|
const rawType = installationTypeById.get(ipId);
|
|
7534
7539
|
inst.installationType = rawType === "SINGLE" || rawType === "MULTI" ? rawType : "SINGLE";
|