@delopay/sdk 0.164.0 → 0.166.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-GCJDY4KX.js → chunk-W57MOHOE.js} +740 -50
- package/dist/chunk-W57MOHOE.js.map +1 -0
- package/dist/index.cjs +756 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +349 -44
- package/dist/index.d.ts +349 -44
- package/dist/index.js +37 -1
- package/dist/internal.cjs +778 -60
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +77 -7
- package/dist/internal.d.ts +77 -7
- package/dist/internal.js +60 -12
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GCJDY4KX.js.map +0 -1
package/README.md
CHANGED
|
@@ -403,6 +403,8 @@ try {
|
|
|
403
403
|
|
|
404
404
|
Network timeouts throw `DelopayError` with `code: 'TIMEOUT'`. Network failures throw with `code: 'NETWORK'`.
|
|
405
405
|
|
|
406
|
+
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.
|
|
407
|
+
|
|
406
408
|
**Structured error context (`err.data`):** populated for a small set of codes that benefit from a machine-readable hint. Currently:
|
|
407
409
|
|
|
408
410
|
| `err.code` | `err.data` shape | Meaning |
|