@beel_es/sdk 2.3.0 → 2.5.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.
@@ -300,7 +300,7 @@ Get a short-lived download URL for the invoice PDF.
300
300
  - `invoiceId: string` — Invoice UUID.
301
301
  - `options?: RequestOptions` — Per-call `idempotencyKey`, `signal` and `timeoutMs`. See [`RequestOptions`](types.md#requestoptions).
302
302
  - **Returns:** `download_url`, `expires_in_seconds` and `file_name`. Response `200` `data`: `{ download_url: string; expires_in_seconds: number; file_name: string }`.
303
- - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `429` `BeeLRateLimitError`
303
+ - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `429` `BeeLRateLimitError`
304
304
 
305
305
  <a id="company-invoices-send"></a>
306
306
  ### `send(invoiceId, body, options?)`
@@ -42,7 +42,7 @@ Create a recurring invoice template.
42
42
  - **Parameters:**
43
43
  - `body: operations['createCompanyRecurringInvoice']['requestBody']['content']['application/json']` — Frequency, schedule, recipient and lines.
44
44
  - **Returns:** The recurring invoice. Response `201` `data`: `RecurringInvoiceResponse`.
45
- - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
45
+ - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
46
46
 
47
47
  <a id="company-recurring-invoices-get"></a>
48
48
  ### `get(recurringInvoiceId)`
@@ -89,7 +89,7 @@ Update a draft invoice. Only draft invoices can be updated.
89
89
  - `id: string` — Invoice UUID.
90
90
  - `body: components['schemas']['UpdateInvoiceRequest']` — The draft's new content.
91
91
  - **Returns:** The updated invoice. Response `200` `data`: `Invoice`.
92
- - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
92
+ - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
93
93
 
94
94
  <a id="invoices-delete"></a>
95
95
  ### `delete(id)`
@@ -235,7 +235,7 @@ The URL expires in 5 minutes. Use `beel.downloadPdf(id)` for a simpler Buffer do
235
235
  - **Parameters:**
236
236
  - `id: string` — Invoice UUID.
237
237
  - **Returns:** `download_url`, `expires_in_seconds` and `file_name`. Response `200` `data`: `{ download_url: string; expires_in_seconds: number; file_name: string }`.
238
- - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `429` `BeeLRateLimitError`
238
+ - **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `429` `BeeLRateLimitError`
239
239
 
240
240
  <a id="invoices-send-email"></a>
241
241
  ### `sendEmail(id, options?)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beel_es/sdk",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "Official Node.js SDK for BeeL Public API - Spanish invoicing platform with VeriFactu support",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",