@boomi/embedkit-sdk 1.2.11 → 1.2.12

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.js CHANGED
@@ -7143,6 +7143,7 @@ var IntegrationPackInstanceService = class {
7143
7143
  async createAndAttachIntegrationPackInstance(params) {
7144
7144
  const { integrationPackId, isSingleInstall, environmentId, integrationPackOverrideName, accountGroupName } = params;
7145
7145
  const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
7146
+ let isAgent = false;
7146
7147
  if (!integrationPackId) throw new Error("Code [2001] - integrationPackId is required");
7147
7148
  if (!environmentId) throw new Error("Code [2002] - environmentId is required");
7148
7149
  const instance = await this.httpRequest.request({
@@ -7181,6 +7182,7 @@ var IntegrationPackInstanceService = class {
7181
7182
  if (pack?.Description) integrationPackDescription = pack.Description;
7182
7183
  if (integrationPackDescription && hasAgentTag(integrationPackDescription)) {
7183
7184
  integrationPackDescription = pack.name.replace(/{{\s*AGENT\s*}}/gi, "").trim();
7185
+ isAgent = true;
7184
7186
  }
7185
7187
  if (!integrationPackOverrideName && accountGroupName) {
7186
7188
  integrationPackName = await this.resolvePackNameFromAccountGroup(accountGroupName, integrationPackId);
@@ -7198,7 +7200,7 @@ var IntegrationPackInstanceService = class {
7198
7200
  installationType: isSingleInstall ? "SINGLE" : "MULTI",
7199
7201
  installed: true,
7200
7202
  environmentId,
7201
- isAgent: hasAgentTag(integrationPackDescription)
7203
+ isAgent
7202
7204
  };
7203
7205
  }
7204
7206
  /**