@signaliz/sdk 1.0.9 → 1.0.10

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.
@@ -1832,10 +1832,7 @@ var CampaignBuilderAgent = class {
1832
1832
  ["completed", "failed", "canceled", "pending_approval"]
1833
1833
  );
1834
1834
  const result = { build, finalStatus };
1835
- if (options.approveDelivery === true) {
1836
- if (finalStatus.status !== "pending_approval") {
1837
- throw new Error(`Campaign build ${campaignBuildId} reached ${finalStatus.status}; delivery approval was not available`);
1838
- }
1835
+ if (options.approveDelivery === true && finalStatus.status === "pending_approval") {
1839
1836
  const destinationType = options.deliveryDestinationType ?? plan.buildRequest.delivery?.destinationType ?? "json";
1840
1837
  result.deliveryApproval = await this.approveCampaignDelivery(campaignBuildId, destinationType, {
1841
1838
  destinationId: options.deliveryDestinationId,
package/dist/cli.js CHANGED
@@ -1838,10 +1838,7 @@ var CampaignBuilderAgent = class {
1838
1838
  ["completed", "failed", "canceled", "pending_approval"]
1839
1839
  );
1840
1840
  const result = { build, finalStatus };
1841
- if (options.approveDelivery === true) {
1842
- if (finalStatus.status !== "pending_approval") {
1843
- throw new Error(`Campaign build ${campaignBuildId} reached ${finalStatus.status}; delivery approval was not available`);
1844
- }
1841
+ if (options.approveDelivery === true && finalStatus.status === "pending_approval") {
1845
1842
  const destinationType = options.deliveryDestinationType ?? plan.buildRequest.delivery?.destinationType ?? "json";
1846
1843
  result.deliveryApproval = await this.approveCampaignDelivery(campaignBuildId, destinationType, {
1847
1844
  destinationId: options.deliveryDestinationId,
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Signaliz,
4
4
  createCampaignBuilderAgentRequestTemplate,
5
5
  createCampaignBuilderApproval
6
- } from "./chunk-EQZJFFS7.mjs";
6
+ } from "./chunk-2EXN3RAX.mjs";
7
7
 
8
8
  // src/cli.ts
9
9
  import { readFileSync, writeFileSync } from "fs";
package/dist/index.js CHANGED
@@ -1881,10 +1881,7 @@ var CampaignBuilderAgent = class {
1881
1881
  ["completed", "failed", "canceled", "pending_approval"]
1882
1882
  );
1883
1883
  const result = { build, finalStatus };
1884
- if (options.approveDelivery === true) {
1885
- if (finalStatus.status !== "pending_approval") {
1886
- throw new Error(`Campaign build ${campaignBuildId} reached ${finalStatus.status}; delivery approval was not available`);
1887
- }
1884
+ if (options.approveDelivery === true && finalStatus.status === "pending_approval") {
1888
1885
  const destinationType = options.deliveryDestinationType ?? plan.buildRequest.delivery?.destinationType ?? "json";
1889
1886
  result.deliveryApproval = await this.approveCampaignDelivery(campaignBuildId, destinationType, {
1890
1887
  destinationId: options.deliveryDestinationId,
package/dist/index.mjs CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  getCampaignBuilderStrategyTemplate,
24
24
  getMissingCampaignBuilderApprovals,
25
25
  normalizeExecutionReference
26
- } from "./chunk-EQZJFFS7.mjs";
26
+ } from "./chunk-2EXN3RAX.mjs";
27
27
  export {
28
28
  Ai,
29
29
  CAMPAIGN_BUILDER_OPERATING_PLAYBOOKS,
@@ -1855,10 +1855,7 @@ var CampaignBuilderAgent = class {
1855
1855
  ["completed", "failed", "canceled", "pending_approval"]
1856
1856
  );
1857
1857
  const result = { build, finalStatus };
1858
- if (options.approveDelivery === true) {
1859
- if (finalStatus.status !== "pending_approval") {
1860
- throw new Error(`Campaign build ${campaignBuildId} reached ${finalStatus.status}; delivery approval was not available`);
1861
- }
1858
+ if (options.approveDelivery === true && finalStatus.status === "pending_approval") {
1862
1859
  const destinationType = options.deliveryDestinationType ?? plan.buildRequest.delivery?.destinationType ?? "json";
1863
1860
  result.deliveryApproval = await this.approveCampaignDelivery(campaignBuildId, destinationType, {
1864
1861
  destinationId: options.deliveryDestinationId,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Signaliz
4
- } from "./chunk-EQZJFFS7.mjs";
4
+ } from "./chunk-2EXN3RAX.mjs";
5
5
 
6
6
  // src/mcp-config.ts
7
7
  import * as fs from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaliz/sdk",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Signaliz SDK — GTM Kernel, Nango routes, MCP, and enrichment for AI agents",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",