@boomi/embedkit-sdk 1.2.16 → 1.2.17

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 CHANGED
@@ -7510,9 +7510,14 @@ var IntegrationPackInstanceService = class {
7510
7510
  });
7511
7511
  const allInstances = instResp?.result ?? [];
7512
7512
  const searchLc = search?.toLowerCase();
7513
- const filtered = searchLc ? allInstances.filter(
7513
+ const filtered = (searchLc ? allInstances.filter(
7514
7514
  (inst) => (inst?.integrationPackInstancName?.toLowerCase?.().includes(searchLc) ?? false) || (inst?.integrationPackOverrideName?.toLowerCase?.().includes(searchLc) ?? false)
7515
- ) : allInstances;
7515
+ ) : allInstances).filter((inst) => {
7516
+ const isAgentInstance = hasAgentTag(inst?.integrationPackDescription);
7517
+ if (renderTypeFilter === "agent" && !isAgentInstance) return false;
7518
+ if (renderTypeFilter === "integration" && isAgentInstance) return false;
7519
+ return true;
7520
+ });
7516
7521
  const total = filtered.length;
7517
7522
  const totalPages = Math.max(1, Math.ceil(total / pageSize));
7518
7523
  const clampedPage = Math.min(Math.max(1, page), totalPages);
@@ -7524,11 +7529,6 @@ var IntegrationPackInstanceService = class {
7524
7529
  const ipId = inst.integrationPackId;
7525
7530
  inst.integrationPackDescription = packDescById.get(ipId);
7526
7531
  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
7532
  inst.installed = true;
7533
7533
  const rawType = installationTypeById.get(ipId);
7534
7534
  inst.installationType = rawType === "SINGLE" || rawType === "MULTI" ? rawType : "SINGLE";