@boomi/embedkit-sdk 1.2.6 → 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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13573,6 +13573,10 @@ type IntegrationPackInstance = {
|
|
|
13573
13573
|
* Is the integrationpack a single or multi install type?
|
|
13574
13574
|
*/
|
|
13575
13575
|
installationType?: 'SINGLE' | 'MULTI';
|
|
13576
|
+
/**
|
|
13577
|
+
* Is this an Agent?
|
|
13578
|
+
*/
|
|
13579
|
+
isAgent?: boolean;
|
|
13576
13580
|
};
|
|
13577
13581
|
|
|
13578
13582
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -13573,6 +13573,10 @@ type IntegrationPackInstance = {
|
|
|
13573
13573
|
* Is the integrationpack a single or multi install type?
|
|
13574
13574
|
*/
|
|
13575
13575
|
installationType?: 'SINGLE' | 'MULTI';
|
|
13576
|
+
/**
|
|
13577
|
+
* Is this an Agent?
|
|
13578
|
+
*/
|
|
13579
|
+
isAgent?: boolean;
|
|
13576
13580
|
};
|
|
13577
13581
|
|
|
13578
13582
|
/**
|
package/dist/index.js
CHANGED
|
@@ -7039,6 +7039,7 @@ var IntegrationPackInstanceService = class {
|
|
|
7039
7039
|
*/
|
|
7040
7040
|
async fetchIntegrationPackInstances(params) {
|
|
7041
7041
|
const { accountGroup, search, page = 1, pageSize = 12 } = params;
|
|
7042
|
+
const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
|
|
7042
7043
|
const agResp = await this.httpRequest.request({
|
|
7043
7044
|
method: "POST",
|
|
7044
7045
|
url: "/AccountGroup/query",
|
|
@@ -7108,6 +7109,7 @@ var IntegrationPackInstanceService = class {
|
|
|
7108
7109
|
inst.installationType = rawType === "SINGLE" || rawType === "MULTI" ? rawType : "SINGLE";
|
|
7109
7110
|
inst.integrationPackName = packNameById.get(ipId);
|
|
7110
7111
|
inst.integrationPackDescription = packDescById.get(ipId);
|
|
7112
|
+
inst.isAgent = hasAgentTag(inst.integrationPackDescription);
|
|
7111
7113
|
const ipeResp = await this.httpRequest.request({
|
|
7112
7114
|
method: "POST",
|
|
7113
7115
|
url: "/IntegrationPackEnvironmentAttachment/query",
|
|
@@ -7137,6 +7139,7 @@ var IntegrationPackInstanceService = class {
|
|
|
7137
7139
|
*/
|
|
7138
7140
|
async createAndAttachIntegrationPackInstance(params) {
|
|
7139
7141
|
const { integrationPackId, isSingleInstall, environmentId, integrationPackOverrideName, accountGroupName } = params;
|
|
7142
|
+
const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
|
|
7140
7143
|
if (!integrationPackId) throw new Error("Code [2001] - integrationPackId is required");
|
|
7141
7144
|
if (!environmentId) throw new Error("Code [2002] - environmentId is required");
|
|
7142
7145
|
const instance = await this.httpRequest.request({
|
|
@@ -7188,7 +7191,8 @@ var IntegrationPackInstanceService = class {
|
|
|
7188
7191
|
integrationPackDescription: integrationPackDescription || "",
|
|
7189
7192
|
installationType: isSingleInstall ? "SINGLE" : "MULTI",
|
|
7190
7193
|
installed: true,
|
|
7191
|
-
environmentId
|
|
7194
|
+
environmentId,
|
|
7195
|
+
isAgent: hasAgentTag(integrationPackDescription)
|
|
7192
7196
|
};
|
|
7193
7197
|
}
|
|
7194
7198
|
/**
|