@boomi/embedkit-sdk 1.2.5 → 1.2.7
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 +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7456,6 +7456,7 @@ var IntegrationPackInstanceService = class {
|
|
|
7456
7456
|
*/
|
|
7457
7457
|
async fetchIntegrationPackInstances(params) {
|
|
7458
7458
|
const { accountGroup, search, page = 1, pageSize = 12 } = params;
|
|
7459
|
+
const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
|
|
7459
7460
|
const agResp = await this.httpRequest.request({
|
|
7460
7461
|
method: "POST",
|
|
7461
7462
|
url: "/AccountGroup/query",
|
|
@@ -7525,6 +7526,7 @@ var IntegrationPackInstanceService = class {
|
|
|
7525
7526
|
inst.installationType = rawType === "SINGLE" || rawType === "MULTI" ? rawType : "SINGLE";
|
|
7526
7527
|
inst.integrationPackName = packNameById.get(ipId);
|
|
7527
7528
|
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7529
|
+
inst.isAgent = hasAgentTag(inst.integrationPackDescription);
|
|
7528
7530
|
const ipeResp = await this.httpRequest.request({
|
|
7529
7531
|
method: "POST",
|
|
7530
7532
|
url: "/IntegrationPackEnvironmentAttachment/query",
|
|
@@ -7554,6 +7556,7 @@ var IntegrationPackInstanceService = class {
|
|
|
7554
7556
|
*/
|
|
7555
7557
|
async createAndAttachIntegrationPackInstance(params) {
|
|
7556
7558
|
const { integrationPackId, isSingleInstall, environmentId, integrationPackOverrideName, accountGroupName } = params;
|
|
7559
|
+
const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
|
|
7557
7560
|
if (!integrationPackId) throw new Error("Code [2001] - integrationPackId is required");
|
|
7558
7561
|
if (!environmentId) throw new Error("Code [2002] - environmentId is required");
|
|
7559
7562
|
const instance = await this.httpRequest.request({
|
|
@@ -7605,7 +7608,8 @@ var IntegrationPackInstanceService = class {
|
|
|
7605
7608
|
integrationPackDescription: integrationPackDescription || "",
|
|
7606
7609
|
installationType: isSingleInstall ? "SINGLE" : "MULTI",
|
|
7607
7610
|
installed: true,
|
|
7608
|
-
environmentId
|
|
7611
|
+
environmentId,
|
|
7612
|
+
isAgent: hasAgentTag(integrationPackDescription)
|
|
7609
7613
|
};
|
|
7610
7614
|
}
|
|
7611
7615
|
/**
|