@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.
- package/dist/{chunk-EQZJFFS7.mjs → chunk-2EXN3RAX.mjs} +1 -4
- package/dist/cli.js +1 -4
- package/dist/cli.mjs +1 -1
- package/dist/index.js +1 -4
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +1 -4
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
|
@@ -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
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
package/dist/mcp-config.js
CHANGED
|
@@ -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,
|
package/dist/mcp-config.mjs
CHANGED