@boomi/embedkit-sdk 1.2.6 → 1.2.8

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.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,10 @@ 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);
7113
+ if (inst.integrationPackName && hasAgentTag(inst.integrationPackName)) {
7114
+ inst.integrationPackName = inst.integrationPackName.replace(/{{\s*AGENT\s*}}/gi, "").trim();
7115
+ }
7111
7116
  const ipeResp = await this.httpRequest.request({
7112
7117
  method: "POST",
7113
7118
  url: "/IntegrationPackEnvironmentAttachment/query",
@@ -7137,6 +7142,7 @@ var IntegrationPackInstanceService = class {
7137
7142
  */
7138
7143
  async createAndAttachIntegrationPackInstance(params) {
7139
7144
  const { integrationPackId, isSingleInstall, environmentId, integrationPackOverrideName, accountGroupName } = params;
7145
+ const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
7140
7146
  if (!integrationPackId) throw new Error("Code [2001] - integrationPackId is required");
7141
7147
  if (!environmentId) throw new Error("Code [2002] - environmentId is required");
7142
7148
  const instance = await this.httpRequest.request({
@@ -7173,6 +7179,9 @@ var IntegrationPackInstanceService = class {
7173
7179
  });
7174
7180
  const pack = ipResp?.result?.[0];
7175
7181
  if (pack?.Description) integrationPackDescription = pack.Description;
7182
+ if (pack?.description && hasAgentTag(pack.description)) {
7183
+ integrationPackName = pack.name.replace(/{{\s*AGENT\s*}}/gi, "").trim();
7184
+ }
7176
7185
  if (!integrationPackOverrideName && accountGroupName) {
7177
7186
  integrationPackName = await this.resolvePackNameFromAccountGroup(accountGroupName, integrationPackId);
7178
7187
  if (!integrationPackName) integrationPackName = pack?.name || "";
@@ -7188,7 +7197,8 @@ var IntegrationPackInstanceService = class {
7188
7197
  integrationPackDescription: integrationPackDescription || "",
7189
7198
  installationType: isSingleInstall ? "SINGLE" : "MULTI",
7190
7199
  installed: true,
7191
- environmentId
7200
+ environmentId,
7201
+ isAgent: hasAgentTag(integrationPackDescription)
7192
7202
  };
7193
7203
  }
7194
7204
  /**