@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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7093,9 +7093,14 @@ var IntegrationPackInstanceService = class {
|
|
|
7093
7093
|
});
|
|
7094
7094
|
const allInstances = instResp?.result ?? [];
|
|
7095
7095
|
const searchLc = search?.toLowerCase();
|
|
7096
|
-
const filtered = searchLc ? allInstances.filter(
|
|
7096
|
+
const filtered = (searchLc ? allInstances.filter(
|
|
7097
7097
|
(inst) => (inst?.integrationPackInstancName?.toLowerCase?.().includes(searchLc) ?? false) || (inst?.integrationPackOverrideName?.toLowerCase?.().includes(searchLc) ?? false)
|
|
7098
|
-
) : allInstances
|
|
7098
|
+
) : allInstances).filter((inst) => {
|
|
7099
|
+
const isAgentInstance = hasAgentTag(inst?.integrationPackDescription);
|
|
7100
|
+
if (renderTypeFilter === "agent" && !isAgentInstance) return false;
|
|
7101
|
+
if (renderTypeFilter === "integration" && isAgentInstance) return false;
|
|
7102
|
+
return true;
|
|
7103
|
+
});
|
|
7099
7104
|
const total = filtered.length;
|
|
7100
7105
|
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
7101
7106
|
const clampedPage = Math.min(Math.max(1, page), totalPages);
|
|
@@ -7107,11 +7112,6 @@ var IntegrationPackInstanceService = class {
|
|
|
7107
7112
|
const ipId = inst.integrationPackId;
|
|
7108
7113
|
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7109
7114
|
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
7115
|
inst.installed = true;
|
|
7116
7116
|
const rawType = installationTypeById.get(ipId);
|
|
7117
7117
|
inst.installationType = rawType === "SINGLE" || rawType === "MULTI" ? rawType : "SINGLE";
|