@boomi/embedkit-sdk 1.2.11 → 1.2.13

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 CHANGED
@@ -7560,6 +7560,7 @@ var IntegrationPackInstanceService = class {
7560
7560
  async createAndAttachIntegrationPackInstance(params) {
7561
7561
  const { integrationPackId, isSingleInstall, environmentId, integrationPackOverrideName, accountGroupName } = params;
7562
7562
  const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
7563
+ let isAgent = false;
7563
7564
  if (!integrationPackId) throw new Error("Code [2001] - integrationPackId is required");
7564
7565
  if (!environmentId) throw new Error("Code [2002] - environmentId is required");
7565
7566
  const instance = await this.httpRequest.request({
@@ -7598,6 +7599,7 @@ var IntegrationPackInstanceService = class {
7598
7599
  if (pack?.Description) integrationPackDescription = pack.Description;
7599
7600
  if (integrationPackDescription && hasAgentTag(integrationPackDescription)) {
7600
7601
  integrationPackDescription = pack.name.replace(/{{\s*AGENT\s*}}/gi, "").trim();
7602
+ isAgent = true;
7601
7603
  }
7602
7604
  if (!integrationPackOverrideName && accountGroupName) {
7603
7605
  integrationPackName = await this.resolvePackNameFromAccountGroup(accountGroupName, integrationPackId);
@@ -7615,7 +7617,7 @@ var IntegrationPackInstanceService = class {
7615
7617
  installationType: isSingleInstall ? "SINGLE" : "MULTI",
7616
7618
  installed: true,
7617
7619
  environmentId,
7618
- isAgent: hasAgentTag(integrationPackDescription)
7620
+ isAgent
7619
7621
  };
7620
7622
  }
7621
7623
  /**
@@ -16059,4 +16061,11 @@ var X12Options;
16059
16061
  redactBody,
16060
16062
  redactHeaders
16061
16063
  });
16064
+ /**
16065
+ * Boomi EmbedKit-SDK Component
16066
+ *
16067
+ * @license BSD-2-Clause
16068
+ * @author Boomi
16069
+ * @support https://bitbucket.org/officialboomi/embedkit
16070
+ */
16062
16071
  //# sourceMappingURL=index.cjs.map