@boomi/embedkit-sdk 1.2.18 → 1.2.19

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 IntegrationPack = {
13573
13573
  * The name of the integration pack.
13574
13574
  */
13575
13575
  name?: string;
13576
+ /**
13577
+ * Is this integration pack an agent type?
13578
+ */
13579
+ isAgent?: boolean;
13576
13580
  };
13577
13581
  declare namespace IntegrationPack {
13578
13582
  /**
@@ -14376,6 +14380,8 @@ declare class IntegrationPackInstanceService {
14376
14380
  */
14377
14381
  listAccountGroupPublisherPacks(params: {
14378
14382
  accountGroup: string;
14383
+ renderType?: string;
14384
+ notAllowedIds?: string[];
14379
14385
  }): Promise<any[]>;
14380
14386
  private resolvePackNameFromAccountGroup;
14381
14387
  }
package/dist/index.d.ts CHANGED
@@ -13573,6 +13573,10 @@ type IntegrationPack = {
13573
13573
  * The name of the integration pack.
13574
13574
  */
13575
13575
  name?: string;
13576
+ /**
13577
+ * Is this integration pack an agent type?
13578
+ */
13579
+ isAgent?: boolean;
13576
13580
  };
13577
13581
  declare namespace IntegrationPack {
13578
13582
  /**
@@ -14376,6 +14380,8 @@ declare class IntegrationPackInstanceService {
14376
14380
  */
14377
14381
  listAccountGroupPublisherPacks(params: {
14378
14382
  accountGroup: string;
14383
+ renderType?: string;
14384
+ notAllowedIds?: string[];
14379
14385
  }): Promise<any[]>;
14380
14386
  private resolvePackNameFromAccountGroup;
14381
14387
  }
package/dist/index.js CHANGED
@@ -7222,7 +7222,9 @@ var IntegrationPackInstanceService = class {
7222
7222
  * @throws ApiError
7223
7223
  */
7224
7224
  async listAccountGroupPublisherPacks(params) {
7225
- const { accountGroup } = params;
7225
+ const { accountGroup, renderType, notAllowedIds } = params;
7226
+ const renderTypeFilter = renderType === "agent" || renderType === "integration" ? renderType : "all";
7227
+ const hasAgentTag = (s) => typeof s === "string" && /{{\s*AGENT\s*}}/i.test(s);
7226
7228
  const agResp = await this.httpRequest.request({
7227
7229
  method: "POST",
7228
7230
  url: "/AccountGroup/query",
@@ -7267,7 +7269,16 @@ var IntegrationPackInstanceService = class {
7267
7269
  });
7268
7270
  const existing = instResp?.result ?? [];
7269
7271
  const existingIds = new Set(existing.map((i) => i.integrationPackId));
7270
- return fetched.filter((pack) => !(typeById.get(pack.id) === "SINGLE" && existingIds.has(pack.id)));
7272
+ const filtered = fetched.filter((pack) => !(typeById.get(pack.id) === "SINGLE" && existingIds.has(pack.id))).filter((pack) => {
7273
+ const isAgent = hasAgentTag(pack.Description);
7274
+ if (renderTypeFilter === "agent") return isAgent;
7275
+ if (renderTypeFilter === "integration") return !isAgent;
7276
+ return true;
7277
+ }).filter((pack) => {
7278
+ if (!notAllowedIds || notAllowedIds.length === 0) return true;
7279
+ return !notAllowedIds.includes(pack.id);
7280
+ });
7281
+ return filtered;
7271
7282
  }
7272
7283
  /* =============== private =============== */
7273
7284
  async resolvePackNameFromAccountGroup(accountGroupName, integrationPackId) {