@signaliz/sdk 1.0.33 → 1.0.34

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/README.md CHANGED
@@ -78,9 +78,9 @@ callers never need an internal Trigger.dev status URL. The SDK follows the
78
78
  server's adaptive polling hints by default and still honors `pollIntervalMs`
79
79
  when a caller explicitly overrides the cadence.
80
80
  Exact duplicate tasks are single-flighted across each full batch without
81
- changing input order or result cardinality. Verify Email batches larger than 25
82
- use one cache-aware recoverable REST job with 500-row result pages; Find Email
83
- and Company Signal Enrichment use 25-row REST chunks. Signal to Copy batches
81
+ changing input order or result cardinality. Find Email and Verify Email batches
82
+ larger than 25 use one cache-aware recoverable REST job with 500-row result
83
+ pages; Company Signal Enrichment uses 25-row REST chunks. Signal to Copy batches
84
84
  larger than 25 use one recoverable REST job when they can reuse available signal
85
85
  data; fresh or deep-search requests keep the 25-row path. Signal to Copy also
86
86
  shares company research across copy recipients.
@@ -698,17 +698,18 @@ var Signaliz = class {
698
698
  const { serverConcurrency, chunkConcurrency } = batchConcurrencyPlan(options);
699
699
  const deduplicated = dedupeExactBatchItems(tasks, (task) => JSON.stringify(task.request));
700
700
  const uniqueTasks = deduplicated.uniqueItems;
701
- if (path === "api/v1/verify-email" && uniqueTasks.length > 25) {
701
+ if ((path === "api/v1/find-email" || path === "api/v1/verify-email") && uniqueTasks.length > 25) {
702
+ const label = path === "api/v1/find-email" ? "Find Email" : "Verify Email";
702
703
  const rows = await this.runRecoverableCoreBatchJob(
703
704
  path,
704
705
  uniqueTasks.map((task) => task.request),
705
- "Verify Email"
706
+ label
706
707
  );
707
708
  const uniqueResults2 = rows.map((raw) => ({
708
709
  index: uniqueTasks[Number(raw.index)].index,
709
710
  success: !recoverableJobRowFailed(raw),
710
711
  raw,
711
- error: recoverableJobRowFailed(raw) ? raw.error || raw._error || raw.message || raw.failure_reason || "Verify Email item failed" : void 0
712
+ error: recoverableJobRowFailed(raw) ? raw.error || raw._error || raw.message || raw.failure_reason || `${label} item failed` : void 0
712
713
  }));
713
714
  return tasks.map((task, index) => ({
714
715
  ...uniqueResults2[deduplicated.sourceIndexByInput[index]],
@@ -773,7 +774,7 @@ var Signaliz = class {
773
774
  }
774
775
  };
775
776
  function recoverableJobRowFailed(row) {
776
- return row.success === false || String(row._status || "").toLowerCase() === "failed";
777
+ return row.success === false || ["failed", "skipped"].includes(String(row._status || "").toLowerCase());
777
778
  }
778
779
  function newBatchIdempotencyKey(label) {
779
780
  const nonce = globalThis.crypto?.randomUUID?.() || `${Date.now()}-${Math.random().toString(16).slice(2)}`;
package/dist/index.js CHANGED
@@ -725,17 +725,18 @@ var Signaliz = class {
725
725
  const { serverConcurrency, chunkConcurrency } = batchConcurrencyPlan(options);
726
726
  const deduplicated = dedupeExactBatchItems(tasks, (task) => JSON.stringify(task.request));
727
727
  const uniqueTasks = deduplicated.uniqueItems;
728
- if (path === "api/v1/verify-email" && uniqueTasks.length > 25) {
728
+ if ((path === "api/v1/find-email" || path === "api/v1/verify-email") && uniqueTasks.length > 25) {
729
+ const label = path === "api/v1/find-email" ? "Find Email" : "Verify Email";
729
730
  const rows = await this.runRecoverableCoreBatchJob(
730
731
  path,
731
732
  uniqueTasks.map((task) => task.request),
732
- "Verify Email"
733
+ label
733
734
  );
734
735
  const uniqueResults2 = rows.map((raw) => ({
735
736
  index: uniqueTasks[Number(raw.index)].index,
736
737
  success: !recoverableJobRowFailed(raw),
737
738
  raw,
738
- error: recoverableJobRowFailed(raw) ? raw.error || raw._error || raw.message || raw.failure_reason || "Verify Email item failed" : void 0
739
+ error: recoverableJobRowFailed(raw) ? raw.error || raw._error || raw.message || raw.failure_reason || `${label} item failed` : void 0
739
740
  }));
740
741
  return tasks.map((task, index) => ({
741
742
  ...uniqueResults2[deduplicated.sourceIndexByInput[index]],
@@ -800,7 +801,7 @@ var Signaliz = class {
800
801
  }
801
802
  };
802
803
  function recoverableJobRowFailed(row) {
803
- return row.success === false || String(row._status || "").toLowerCase() === "failed";
804
+ return row.success === false || ["failed", "skipped"].includes(String(row._status || "").toLowerCase());
804
805
  }
805
806
  function newBatchIdempotencyKey(label) {
806
807
  const nonce = globalThis.crypto?.randomUUID?.() || `${Date.now()}-${Math.random().toString(16).slice(2)}`;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Signaliz,
3
3
  SignalizError
4
- } from "./chunk-H6HOY73X.mjs";
4
+ } from "./chunk-BGVNI5E2.mjs";
5
5
  export {
6
6
  Signaliz,
7
7
  SignalizError
@@ -729,17 +729,18 @@ var Signaliz = class {
729
729
  const { serverConcurrency, chunkConcurrency } = batchConcurrencyPlan(options);
730
730
  const deduplicated = dedupeExactBatchItems(tasks, (task) => JSON.stringify(task.request));
731
731
  const uniqueTasks = deduplicated.uniqueItems;
732
- if (path2 === "api/v1/verify-email" && uniqueTasks.length > 25) {
732
+ if ((path2 === "api/v1/find-email" || path2 === "api/v1/verify-email") && uniqueTasks.length > 25) {
733
+ const label = path2 === "api/v1/find-email" ? "Find Email" : "Verify Email";
733
734
  const rows = await this.runRecoverableCoreBatchJob(
734
735
  path2,
735
736
  uniqueTasks.map((task) => task.request),
736
- "Verify Email"
737
+ label
737
738
  );
738
739
  const uniqueResults2 = rows.map((raw) => ({
739
740
  index: uniqueTasks[Number(raw.index)].index,
740
741
  success: !recoverableJobRowFailed(raw),
741
742
  raw,
742
- error: recoverableJobRowFailed(raw) ? raw.error || raw._error || raw.message || raw.failure_reason || "Verify Email item failed" : void 0
743
+ error: recoverableJobRowFailed(raw) ? raw.error || raw._error || raw.message || raw.failure_reason || `${label} item failed` : void 0
743
744
  }));
744
745
  return tasks.map((task, index) => ({
745
746
  ...uniqueResults2[deduplicated.sourceIndexByInput[index]],
@@ -804,7 +805,7 @@ var Signaliz = class {
804
805
  }
805
806
  };
806
807
  function recoverableJobRowFailed(row) {
807
- return row.success === false || String(row._status || "").toLowerCase() === "failed";
808
+ return row.success === false || ["failed", "skipped"].includes(String(row._status || "").toLowerCase());
808
809
  }
809
810
  function newBatchIdempotencyKey(label) {
810
811
  const nonce = globalThis.crypto?.randomUUID?.() || `${Date.now()}-${Math.random().toString(16).slice(2)}`;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Signaliz
4
- } from "./chunk-H6HOY73X.mjs";
4
+ } from "./chunk-BGVNI5E2.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.33",
3
+ "version": "1.0.34",
4
4
  "description": "Signaliz SDK for Find Email, Verify Email, Company Signal Enrichment, and Signal to Copy AI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",