@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.js
CHANGED
|
@@ -7092,10 +7092,20 @@ var IntegrationPackInstanceService = class {
|
|
|
7092
7092
|
)
|
|
7093
7093
|
});
|
|
7094
7094
|
const allInstances = instResp?.result ?? [];
|
|
7095
|
-
const searchLc = search?.toLowerCase();
|
|
7096
|
-
const filtered =
|
|
7097
|
-
|
|
7098
|
-
|
|
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
|
+
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);
|
|
7108
|
+
});
|
|
7099
7109
|
const total = filtered.length;
|
|
7100
7110
|
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
7101
7111
|
const clampedPage = Math.min(Math.max(1, page), totalPages);
|
|
@@ -7107,11 +7117,6 @@ var IntegrationPackInstanceService = class {
|
|
|
7107
7117
|
const ipId = inst.integrationPackId;
|
|
7108
7118
|
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7109
7119
|
inst.isAgent = hasAgentTag(inst.integrationPackDescription);
|
|
7110
|
-
if (renderTypeFilter === "agent" && !inst.isAgent) {
|
|
7111
|
-
return null;
|
|
7112
|
-
} else if (renderTypeFilter === "integration" && inst.isAgent) {
|
|
7113
|
-
return null;
|
|
7114
|
-
}
|
|
7115
7120
|
inst.installed = true;
|
|
7116
7121
|
const rawType = installationTypeById.get(ipId);
|
|
7117
7122
|
inst.installationType = rawType === "SINGLE" || rawType === "MULTI" ? rawType : "SINGLE";
|