@delopay/sdk 0.277.0 → 0.279.0
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 +2 -0
- package/dist/{chunk-424242UX.js → chunk-5FGSME7D.js} +584 -71
- package/dist/chunk-5FGSME7D.js.map +1 -0
- package/dist/index-BfFLiV95.d.cts +29423 -0
- package/dist/index-BfFLiV95.d.ts +29423 -0
- package/dist/index.cjs +584 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -29117
- package/dist/index.d.ts +1 -29117
- package/dist/index.js +5 -1
- package/dist/internal.cjs +623 -70
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +31 -3
- package/dist/internal.d.ts +31 -3
- package/dist/internal.js +44 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-424242UX.js.map +0 -1
package/README.md
CHANGED
|
@@ -508,6 +508,8 @@ Network timeouts throw `DelopayError` with `code: 'TIMEOUT'`. Network failures t
|
|
|
508
508
|
|
|
509
509
|
An export (`delopay.export.*`, `disputes.workspaceExport`) is held to the record count the server announces in `X-Delopay-Record-Count`: a file that arrives with a different number of records — or ends part-way through a line or a JSON document — throws with `code: 'EXPORT_INCOMPLETE'` (`err.data` is `{ expected_records, received_records }`) instead of resolving to a file that is missing rows. Pass `onProgress` in an export's options to follow the download, and `signal` to cancel it.
|
|
510
510
|
|
|
511
|
+
A live stream (`delopay.live.stream()`, dashboard JWT) throws with `code: 'NOT_EVENT_STREAM'` when the server answers 2xx with something other than `text/event-stream`, and with `code: 'TIMEOUT'` when it stays silent past `idleTimeoutMs` (default 45 s). It is never reconnected by the SDK: see the integration guide's _Live updates for dashboards_.
|
|
512
|
+
|
|
511
513
|
**Structured error context (`err.data`):** populated for a small set of codes that benefit from a machine-readable hint. Currently:
|
|
512
514
|
|
|
513
515
|
| `err.code` | `err.data` shape | Meaning |
|