kassza 0.19.0 → 0.20.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.
Files changed (33) hide show
  1. package/dist/batch/index.d.cts +3 -3
  2. package/dist/batch/index.d.ts +3 -3
  3. package/dist/cli.cjs +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/{client-BT2odGYl.d.cts → client-B00WZ3FK.d.cts} +2 -2
  6. package/dist/{client-C-SYCiOZ.d.ts → client-BJfeFjCM.d.ts} +2 -2
  7. package/dist/{context-BuX6Eion.d.ts → context-BROX7Krw.d.ts} +1 -1
  8. package/dist/{context-PwqY4JOK.d.cts → context-zGthvNo2.d.cts} +1 -1
  9. package/dist/{create-once-CyaVT36b.d.cts → create-once-BA0KAHIB.d.cts} +1 -1
  10. package/dist/{create-once-CiGUjXut.d.ts → create-once-CoybK69A.d.ts} +1 -1
  11. package/dist/delegation/index.d.cts +2 -2
  12. package/dist/delegation/index.d.ts +2 -2
  13. package/dist/index.d.cts +3 -3
  14. package/dist/index.d.ts +3 -3
  15. package/dist/journal/index.d.cts +1 -1
  16. package/dist/journal/index.d.ts +1 -1
  17. package/dist/{journal-DI-hOW6N.d.cts → journal-D_ypAW50.d.cts} +2 -2
  18. package/dist/{journal-BNdo07p5.d.ts → journal-JwiYpBui.d.ts} +2 -2
  19. package/dist/mcp/index.cjs +1 -1
  20. package/dist/mcp/index.d.cts +1 -1
  21. package/dist/mcp/index.d.ts +1 -1
  22. package/dist/mcp/index.js +1 -1
  23. package/dist/nav/index.d.cts +1 -1
  24. package/dist/nav/index.d.ts +1 -1
  25. package/dist/observe/index.d.cts +1 -1
  26. package/dist/observe/index.d.ts +1 -1
  27. package/dist/payments/index.d.cts +1 -1
  28. package/dist/payments/index.d.ts +1 -1
  29. package/dist/{server-BZ-ySQGx.cjs → server-BKB4KsPn.cjs} +1 -1
  30. package/dist/{server-CDwsjBWk.js → server-CPp6Gpbl.js} +1 -1
  31. package/dist/testing/index.d.cts +2 -2
  32. package/dist/testing/index.d.ts +2 -2
  33. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { t as DateInput } from "../dates-nlGEokCf.cjs";
2
- import { M as CreateInvoiceInput } from "../context-PwqY4JOK.cjs";
2
+ import { M as CreateInvoiceInput } from "../context-zGthvNo2.cjs";
3
3
  import { t as CreateReceiptInput } from "../types-_HKTOCuQ.cjs";
4
- import { a as ReceiptsApi, t as InvoicesApi } from "../client-BT2odGYl.cjs";
5
- import { n as Journal } from "../journal-DI-hOW6N.cjs";
4
+ import { a as ReceiptsApi, t as InvoicesApi } from "../client-B00WZ3FK.cjs";
5
+ import { n as Journal } from "../journal-D_ypAW50.cjs";
6
6
  type BillingInterval = "week" | "month" | "quarter" | "year";
7
7
  interface BillingPeriodOptions {
8
8
  readonly interval: BillingInterval;
@@ -1,8 +1,8 @@
1
1
  import { t as DateInput } from "../dates-nlGEokCf.js";
2
- import { M as CreateInvoiceInput } from "../context-BuX6Eion.js";
2
+ import { M as CreateInvoiceInput } from "../context-BROX7Krw.js";
3
3
  import { t as CreateReceiptInput } from "../types-Z6rQoqHn.js";
4
- import { a as ReceiptsApi, t as InvoicesApi } from "../client-C-SYCiOZ.js";
5
- import { n as Journal } from "../journal-BNdo07p5.js";
4
+ import { a as ReceiptsApi, t as InvoicesApi } from "../client-BJfeFjCM.js";
5
+ import { n as Journal } from "../journal-JwiYpBui.js";
6
6
  type BillingInterval = "week" | "month" | "quarter" | "year";
7
7
  interface BillingPeriodOptions {
8
8
  readonly interval: BillingInterval;
package/dist/cli.cjs CHANGED
@@ -4,7 +4,7 @@ const require_client = require("./client-I_29IPMh.cjs");
4
4
  const require_serialize = require("./serialize-DEU7r6Bk.cjs");
5
5
  const require_create = require("./create-DH5jiZPA.cjs");
6
6
  const require_nav = require("./nav-VShZkjg8.cjs");
7
- const require_server = require("./server-BZ-ySQGx.cjs");
7
+ const require_server = require("./server-BKB4KsPn.cjs");
8
8
  let node_fs_promises = require("node:fs/promises");
9
9
  let node_readline = require("node:readline");
10
10
  // src/cli/args.ts
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import { s as buildCreateInvoiceXml, t as createKassza } from "./client-JZ1M1sZX
4
4
  import { r as el } from "./serialize-CjymGkJj.js";
5
5
  import { t as buildCreateReceiptXml } from "./create-BwRslos0.js";
6
6
  import { i as navDailyReports, n as describeNavReport } from "./nav-NvNgaONz.js";
7
- import { n as KASSZA_VERSION, t as createKasszaMcpServer } from "./server-CDwsjBWk.js";
7
+ import { n as KASSZA_VERSION, t as createKasszaMcpServer } from "./server-CPp6Gpbl.js";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { createInterface } from "node:readline";
10
10
  // src/cli/args.ts
@@ -1,10 +1,10 @@
1
1
  import { t as DateInput } from "./dates-nlGEokCf.cjs";
2
- import { B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, H as InvoicePreview, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, W as InvoiceTemplate, X as StandardInvoiceInput, l as SzamlazzOptions, s as RequestOptions, st as SzamlazzError, x as ReverseInvoiceInput } from "./context-PwqY4JOK.cjs";
2
+ import { B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, H as InvoicePreview, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, W as InvoiceTemplate, X as StandardInvoiceInput, l as SzamlazzOptions, s as RequestOptions, st as SzamlazzError, x as ReverseInvoiceInput } from "./context-zGthvNo2.cjs";
3
3
  import { n as KeyValueStore } from "./store-BkaZ8qkU.cjs";
4
4
  import { S as VatRate, a as RefundAllocation, s as RefundableItem } from "./index-CinpAhQM.cjs";
5
5
  import { h as SendReceiptInput, i as ReceiptDefaults, m as ReverseReceiptInput, n as GetReceiptInput, p as ReceiptVatRate, r as Receipt, s as ReceiptOnlyVatCode, t as CreateReceiptInput } from "./types-_HKTOCuQ.cjs";
6
6
  import { n as InvoiceDetails, o as InvoiceDetailsPayment, t as GetInvoiceOptions } from "./get-BL4Fr8-P.cjs";
7
- import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-CyaVT36b.cjs";
7
+ import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-BA0KAHIB.cjs";
8
8
  import { i as PaymentEvent, l as PaymentRefund, r as PaymentCustomer, s as PaymentLineItem } from "./types-DeuUqIvU.cjs";
9
9
  declare const ONCE_LOCK_KEY_PREFIX = "szamlazz:once:";
10
10
  declare const DEFAULT_LOCK_TTL_SECONDS = 600;
@@ -1,10 +1,10 @@
1
1
  import { t as DateInput } from "./dates-nlGEokCf.js";
2
- import { B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, H as InvoicePreview, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, W as InvoiceTemplate, X as StandardInvoiceInput, l as SzamlazzOptions, s as RequestOptions, st as SzamlazzError, x as ReverseInvoiceInput } from "./context-BuX6Eion.js";
2
+ import { B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, H as InvoicePreview, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, W as InvoiceTemplate, X as StandardInvoiceInput, l as SzamlazzOptions, s as RequestOptions, st as SzamlazzError, x as ReverseInvoiceInput } from "./context-BROX7Krw.js";
3
3
  import { n as KeyValueStore } from "./store-BkaZ8qkU.js";
4
4
  import { S as VatRate, a as RefundAllocation, s as RefundableItem } from "./index-CinpAhQM.js";
5
5
  import { h as SendReceiptInput, i as ReceiptDefaults, m as ReverseReceiptInput, n as GetReceiptInput, p as ReceiptVatRate, r as Receipt, s as ReceiptOnlyVatCode, t as CreateReceiptInput } from "./types-Z6rQoqHn.js";
6
6
  import { n as InvoiceDetails, o as InvoiceDetailsPayment, t as GetInvoiceOptions } from "./get-BL4Fr8-P.js";
7
- import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-CiGUjXut.js";
7
+ import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-CoybK69A.js";
8
8
  import { i as PaymentEvent, l as PaymentRefund, r as PaymentCustomer, s as PaymentLineItem } from "./types-oiDulesz.js";
9
9
  declare const ONCE_LOCK_KEY_PREFIX = "szamlazz:once:";
10
10
  declare const DEFAULT_LOCK_TTL_SECONDS = 600;
@@ -57,7 +57,7 @@ declare const INVOICE_LANGUAGES: readonly ["hu", "en", "de", "it", "ro", "sk", "
57
57
  type InvoiceLanguage = (typeof INVOICE_LANGUAGES)[number];
58
58
  declare const INVOICE_TEMPLATES: readonly ["SzlaMost", "SzlaAlap", "SzlaNoEnv", "Szla8cm", "SzlaTomb", "SzlaFuvarlevelesAlap"];
59
59
  type InvoiceTemplate = (typeof INVOICE_TEMPLATES)[number];
60
- declare const CURRENCIES: readonly ["HUF", "Ft", "EUR", "CHF", "USD", "AED", "ALL", "AUD", "BAM", "BGN", "BRL", "CAD", "CNY", "CZK", "DKK", "EEK", "GBP", "HKD", "HRK", "IDR", "ILS", "INR", "ISK", "JPY", "KRW", "KWD", "KSH", "KZT", "LTL", "LVL", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", "RON", "RSD", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "UAH", "VND", "ZAR"];
60
+ declare const CURRENCIES: readonly ["HUF", "Ft", "EUR", "CHF", "USD", "AED", "ALL", "AUD", "BAM", "BGN", "BRL", "CAD", "CNY", "CZK", "DKK", "EEK", "GBP", "HKD", "HRK", "IDR", "ILS", "INR", "ISK", "JPY", "KRW", "KWD", "KSH", "KZT", "LTL", "LVL", "MDL", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", "RON", "RSD", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "UAH", "VND", "ZAR"];
61
61
  type Currency = (typeof CURRENCIES)[number] | (string & {});
62
62
  type TaxpayerType = "nonEuBusiness" | "euBusiness" | "hungarianTaxNumber" | "unknown" | "noTaxNumber";
63
63
  type CourierService = "TOF" | "PPP" | "SPRINTER" | "FOXPOST" | "MPL" | "GLS" | "EMPTY" | (string & {});
@@ -57,7 +57,7 @@ declare const INVOICE_LANGUAGES: readonly ["hu", "en", "de", "it", "ro", "sk", "
57
57
  type InvoiceLanguage = (typeof INVOICE_LANGUAGES)[number];
58
58
  declare const INVOICE_TEMPLATES: readonly ["SzlaMost", "SzlaAlap", "SzlaNoEnv", "Szla8cm", "SzlaTomb", "SzlaFuvarlevelesAlap"];
59
59
  type InvoiceTemplate = (typeof INVOICE_TEMPLATES)[number];
60
- declare const CURRENCIES: readonly ["HUF", "Ft", "EUR", "CHF", "USD", "AED", "ALL", "AUD", "BAM", "BGN", "BRL", "CAD", "CNY", "CZK", "DKK", "EEK", "GBP", "HKD", "HRK", "IDR", "ILS", "INR", "ISK", "JPY", "KRW", "KWD", "KSH", "KZT", "LTL", "LVL", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", "RON", "RSD", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "UAH", "VND", "ZAR"];
60
+ declare const CURRENCIES: readonly ["HUF", "Ft", "EUR", "CHF", "USD", "AED", "ALL", "AUD", "BAM", "BGN", "BRL", "CAD", "CNY", "CZK", "DKK", "EEK", "GBP", "HKD", "HRK", "IDR", "ILS", "INR", "ISK", "JPY", "KRW", "KWD", "KSH", "KZT", "LTL", "LVL", "MDL", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", "RON", "RSD", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "UAH", "VND", "ZAR"];
61
61
  type Currency = (typeof CURRENCIES)[number] | (string & {});
62
62
  type TaxpayerType = "nonEuBusiness" | "euBusiness" | "hungarianTaxNumber" | "unknown" | "noTaxNumber";
63
63
  type CourierService = "TOF" | "PPP" | "SPRINTER" | "FOXPOST" | "MPL" | "GLS" | "EMPTY" | (string & {});
@@ -1,4 +1,4 @@
1
- import { G as InvoiceType, N as CreatedInvoice } from "./context-PwqY4JOK.cjs";
1
+ import { G as InvoiceType, N as CreatedInvoice } from "./context-zGthvNo2.cjs";
2
2
  import { r as Receipt } from "./types-_HKTOCuQ.cjs";
3
3
  import { n as InvoiceDetails } from "./get-BL4Fr8-P.cjs";
4
4
  interface InvoiceOnceResult {
@@ -1,4 +1,4 @@
1
- import { G as InvoiceType, N as CreatedInvoice } from "./context-BuX6Eion.js";
1
+ import { G as InvoiceType, N as CreatedInvoice } from "./context-BROX7Krw.js";
2
2
  import { r as Receipt } from "./types-Z6rQoqHn.js";
3
3
  import { n as InvoiceDetails } from "./get-BL4Fr8-P.js";
4
4
  interface InvoiceOnceResult {
@@ -1,6 +1,6 @@
1
1
  import { t as DateInput } from "../dates-nlGEokCf.cjs";
2
- import { D as XmlNode, O as AgentResponse, dt as suggestedPrefix, l as SzamlazzOptions, r as AgentContext, s as RequestOptions, st as SzamlazzError } from "../context-PwqY4JOK.cjs";
3
- import { i as KasszaOptions, n as Kassza, r as KasszaDefaults } from "../client-BT2odGYl.cjs";
2
+ import { D as XmlNode, O as AgentResponse, dt as suggestedPrefix, l as SzamlazzOptions, r as AgentContext, s as RequestOptions, st as SzamlazzError } from "../context-zGthvNo2.cjs";
3
+ import { i as KasszaOptions, n as Kassza, r as KasszaDefaults } from "../client-B00WZ3FK.cjs";
4
4
  export declare const CONNECT_PRINCIPAL_NAMESPACE = "http://www.szamlazz.hu/xmlcegmb";
5
5
  export declare const CONNECT_PRINCIPAL_SCHEMA_LOCATION = "http://www.szamlazz.hu/docs/xsds/agentmb/xmlcegmb.xsd";
6
6
  export declare const DELEGATE_PREFIX_PATTERN: RegExp;
@@ -1,6 +1,6 @@
1
1
  import { t as DateInput } from "../dates-nlGEokCf.js";
2
- import { D as XmlNode, O as AgentResponse, dt as suggestedPrefix, l as SzamlazzOptions, r as AgentContext, s as RequestOptions, st as SzamlazzError } from "../context-BuX6Eion.js";
3
- import { i as KasszaOptions, n as Kassza, r as KasszaDefaults } from "../client-C-SYCiOZ.js";
2
+ import { D as XmlNode, O as AgentResponse, dt as suggestedPrefix, l as SzamlazzOptions, r as AgentContext, s as RequestOptions, st as SzamlazzError } from "../context-BROX7Krw.js";
3
+ import { i as KasszaOptions, n as Kassza, r as KasszaDefaults } from "../client-BJfeFjCM.js";
4
4
  export declare const CONNECT_PRINCIPAL_NAMESPACE = "http://www.szamlazz.hu/xmlcegmb";
5
5
  export declare const CONNECT_PRINCIPAL_SCHEMA_LOCATION = "http://www.szamlazz.hu/docs/xsds/agentmb/xmlcegmb.xsd";
6
6
  export declare const DELEGATE_PREFIX_PATTERN: RegExp;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as todayInBudapest, i as toBudapestTimestamp, n as addBudapestDays, r as toBudapestDate, t as DateInput } from "./dates-nlGEokCf.cjs";
2
2
  import { a as AgentAction, i as AGENT_ACTIONS, n as KasszaWarningKind, o as MAX_INVOICE_ATTACHMENTS, r as WarningHook, s as SZAMLAZZ_AGENT_URL, t as KasszaWarning } from "./warnings-DpuYhn39.cjs";
3
- import { $ as Waybill, A as CorrectiveInvoiceInput, B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, F as Currency, G as InvoiceType, H as InvoicePreview, I as FinalInvoiceInput, J as PickPackPointWaybill, K as ItemLedger, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, P as CreatedInvoiceItem, Q as TransOFlexWaybill, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, V as InvoicePostalAddress, W as InvoiceTemplate, X as StandardInvoiceInput, Y as SprinterWaybill, Z as TaxpayerType, _ as InvoiceReversedEvent, a as AgentRequestEvent, at as AgentErrorCodeInfo, b as isDocumentHookError, c as SzamlazzHooks, ct as SzamlazzErrorCategory, d as DocumentErrorMode, dt as suggestedPrefix, et as ATTEMPT_LEDGER_KEY_PREFIX, f as DocumentEvent, g as InvoicePaymentEvent, h as InvoiceCreatedEvent, i as AgentErrorEvent, it as AGENT_ERROR_CODES, j as CourierService, k as BuyerLedger, l as SzamlazzOptions, lt as errorCodeDocsUrl, m as DocumentHookError, n as AgentCompleteEvent, nt as AttemptLedgerMode, o as AgentResponseEvent, ot as KASSZA_ERROR_DOCS_URL, p as DocumentHook, q as MplWaybill, rt as attemptLedgerKey, s as RequestOptions, st as SzamlazzError, t as AgentAttachment, tt as ATTEMPT_LEDGER_TTL_SECONDS, u as DocumentErrorHandler, ut as isSzamlazzError, v as ReceiptCreatedEvent, w as PaymentEntry, x as ReverseInvoiceInput, y as ReceiptReversedEvent, z as InvoiceItemInput } from "./context-PwqY4JOK.cjs";
3
+ import { $ as Waybill, A as CorrectiveInvoiceInput, B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, F as Currency, G as InvoiceType, H as InvoicePreview, I as FinalInvoiceInput, J as PickPackPointWaybill, K as ItemLedger, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, P as CreatedInvoiceItem, Q as TransOFlexWaybill, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, V as InvoicePostalAddress, W as InvoiceTemplate, X as StandardInvoiceInput, Y as SprinterWaybill, Z as TaxpayerType, _ as InvoiceReversedEvent, a as AgentRequestEvent, at as AgentErrorCodeInfo, b as isDocumentHookError, c as SzamlazzHooks, ct as SzamlazzErrorCategory, d as DocumentErrorMode, dt as suggestedPrefix, et as ATTEMPT_LEDGER_KEY_PREFIX, f as DocumentEvent, g as InvoicePaymentEvent, h as InvoiceCreatedEvent, i as AgentErrorEvent, it as AGENT_ERROR_CODES, j as CourierService, k as BuyerLedger, l as SzamlazzOptions, lt as errorCodeDocsUrl, m as DocumentHookError, n as AgentCompleteEvent, nt as AttemptLedgerMode, o as AgentResponseEvent, ot as KASSZA_ERROR_DOCS_URL, p as DocumentHook, q as MplWaybill, rt as attemptLedgerKey, s as RequestOptions, st as SzamlazzError, t as AgentAttachment, tt as ATTEMPT_LEDGER_TTL_SECONDS, u as DocumentErrorHandler, ut as isSzamlazzError, v as ReceiptCreatedEvent, w as PaymentEntry, x as ReverseInvoiceInput, y as ReceiptReversedEvent, z as InvoiceItemInput } from "./context-zGthvNo2.cjs";
4
4
  import { a as storeCapabilities, i as memoryStore, n as KeyValueStore, r as StoreCapabilities, t as Awaitable } from "./store-BkaZ8qkU.cjs";
5
5
  import { S as VatRate, d as ItemAmounts, f as ItemPriceInput } from "./index-CinpAhQM.cjs";
6
6
  import { a as ReceiptItem, c as ReceiptPayment, d as ReceiptTotals, f as ReceiptType, h as SendReceiptInput, i as ReceiptDefaults, l as ReceiptPaymentInput, m as ReverseReceiptInput, n as GetReceiptInput, o as ReceiptItemInput, p as ReceiptVatRate, r as Receipt, s as ReceiptOnlyVatCode, t as CreateReceiptInput, u as ReceiptPdfTemplate } from "./types-_HKTOCuQ.cjs";
7
7
  import { r as memoryCookieStore, t as CookieStore } from "./session-BBbSXlx3.cjs";
8
- import { $ as ONCE_LOCK_KEY_PREFIX, A as IssuedRefundCorrection, B as DocumentDecision, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, G as RegisterPaymentOnceInput, H as chooseDocument, I as correctionExternalId, J as InvoiceReference, K as RegisteredPaymentOnce, L as ChooseDocumentBuyer, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, Q as LockFailureMode, R as ChooseDocumentInput, S as IssuedReversal, T as SkippedPayment, U as ProformaReference, V as RECEIPT_MAX_GROSS_HUF, W as InvoicePdf, X as DEFAULT_LOCK_TTL_SECONDS, Y as CreateOnceOptions, Z as DEFAULT_LOCK_WAIT_MS, _ as conversionExternalId, a as ReceiptsApi, b as IssuedInvoice, c as DEFAULT_TAXPAYER_INVALID_TTL_SECONDS, d as TaxpayerCacheOptions, et as OnceLockOptions, f as TaxpayerInfo, g as ConvertedReceipt, h as ConvertReceiptInput, i as KasszaOptions, j as IssuedRefundProposal, k as IssuedCorrection, l as DEFAULT_TAXPAYER_TTL_SECONDS, m as TaxpayerAddress, n as Kassza, o as TaxpayerApi, p as TaxpayerTaxNumber, q as paymentMarker, r as KasszaDefaults, s as createKassza, t as InvoicesApi, u as TAXPAYER_CACHE_KEY_PREFIX, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument, z as DocumentChoice } from "./client-BT2odGYl.cjs";
8
+ import { $ as ONCE_LOCK_KEY_PREFIX, A as IssuedRefundCorrection, B as DocumentDecision, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, G as RegisterPaymentOnceInput, H as chooseDocument, I as correctionExternalId, J as InvoiceReference, K as RegisteredPaymentOnce, L as ChooseDocumentBuyer, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, Q as LockFailureMode, R as ChooseDocumentInput, S as IssuedReversal, T as SkippedPayment, U as ProformaReference, V as RECEIPT_MAX_GROSS_HUF, W as InvoicePdf, X as DEFAULT_LOCK_TTL_SECONDS, Y as CreateOnceOptions, Z as DEFAULT_LOCK_WAIT_MS, _ as conversionExternalId, a as ReceiptsApi, b as IssuedInvoice, c as DEFAULT_TAXPAYER_INVALID_TTL_SECONDS, d as TaxpayerCacheOptions, et as OnceLockOptions, f as TaxpayerInfo, g as ConvertedReceipt, h as ConvertReceiptInput, i as KasszaOptions, j as IssuedRefundProposal, k as IssuedCorrection, l as DEFAULT_TAXPAYER_TTL_SECONDS, m as TaxpayerAddress, n as Kassza, o as TaxpayerApi, p as TaxpayerTaxNumber, q as paymentMarker, r as KasszaDefaults, s as createKassza, t as InvoicesApi, u as TAXPAYER_CACHE_KEY_PREFIX, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument, z as DocumentChoice } from "./client-B00WZ3FK.cjs";
9
9
  import { a as InvoiceDetailsItem, c as InvoiceDetailsTotals, i as InvoiceDetailsHeader, l as InvoiceDocumentType, n as InvoiceDetails, o as InvoiceDetailsPayment, r as InvoiceDetailsBuyer, s as InvoiceDetailsSeller, t as GetInvoiceOptions } from "./get-BL4Fr8-P.cjs";
10
- import { n as InvoiceOnceResult, r as invoiceOnceExternalId, t as ReceiptOnceResult } from "./create-once-CyaVT36b.cjs";
10
+ import { n as InvoiceOnceResult, r as invoiceOnceExternalId, t as ReceiptOnceResult } from "./create-once-BA0KAHIB.cjs";
11
11
  import { a as PaymentEventKind, c as PaymentProvider, i as PaymentEvent, l as PaymentRefund, n as PaymentAmount, r as PaymentCustomer, s as PaymentLineItem, t as PaymentAddress } from "./types-DeuUqIvU.cjs";
12
12
  export declare function bytesToBase64(bytes: Uint8Array): string;
13
13
  export { AGENT_ACTIONS, AGENT_ERROR_CODES, ATTEMPT_LEDGER_KEY_PREFIX, ATTEMPT_LEDGER_TTL_SECONDS, type AgentAction, type AgentAttachment, type AgentCompleteEvent, type AgentErrorCodeInfo, type AgentErrorEvent, type AgentRequestEvent, type AgentResponseEvent, type AttemptLedgerMode, type Awaitable, type BuyerLedger, type ChooseDocumentBuyer, type ChooseDocumentInput, type ClearPaymentsInput, type ConvertReceiptInput, type ConvertedReceipt, type CookieStore, type CorrectiveInvoiceInput, type CourierService, type CreateInvoiceInput, type CreateOnceOptions, type CreateReceiptInput, type CreatedInvoice, type CreatedInvoiceItem, type Currency, DEFAULT_LOCK_TTL_SECONDS, DEFAULT_LOCK_WAIT_MS, DEFAULT_TAXPAYER_INVALID_TTL_SECONDS, DEFAULT_TAXPAYER_TTL_SECONDS, type DateInput, type DocumentChoice, type DocumentDecision, type DocumentErrorHandler, type DocumentErrorMode, type DocumentEvent, type DocumentHook, DocumentHookError, type FinalInvoiceInput, type GetInvoiceOptions, type GetReceiptInput, type InvoiceBuyer, type InvoiceCreatedEvent, type InvoiceDefaults, type InvoiceDetails, type InvoiceDetailsBuyer, type InvoiceDetailsHeader, type InvoiceDetailsItem, type InvoiceDetailsPayment, type InvoiceDetailsSeller, type InvoiceDetailsTotals, type InvoiceDocumentType, type InvoiceItemInput, type InvoiceLanguage, type InvoiceOnceResult, type InvoicePaymentEvent, type InvoicePdf, type InvoicePostalAddress, type InvoicePreview, type InvoiceReference, type InvoiceReversedEvent, type InvoiceSeller, type InvoiceTemplate, type InvoiceType, type InvoicesApi, type IssueForPaymentOptions, type IssuedCorrection, type IssuedDocument, type IssuedInvoice, type IssuedReceipt, type IssuedRefundCorrection, type IssuedRefundProposal, type IssuedReversal, type ItemAmounts, type ItemLedger, type ItemPriceInput, KASSZA_ERROR_DOCS_URL, type Kassza, type KasszaDefaults, type KasszaOptions, type KasszaWarning, type KasszaWarningKind, type KeyValueStore, type LockFailureMode, MAX_INVOICE_ATTACHMENTS, type MplWaybill, ONCE_LOCK_KEY_PREFIX, type OnceLockOptions, type PartialRefundMode, type PaymentAddress, type PaymentAmount, type PaymentCustomer, type PaymentDocumentItem, type PaymentDocumentsApi, type PaymentEntry, type PaymentEvent, type PaymentEventKind, type PaymentLineItem, type PaymentProvider, type PaymentRefund, type PickPackPointWaybill, type ProformaReference, RECEIPT_MAX_GROSS_HUF, type Receipt, type ReceiptCreatedEvent, type ReceiptDefaults, type ReceiptItem, type ReceiptItemInput, type ReceiptOnceResult, type ReceiptOnlyVatCode, type ReceiptPayment, type ReceiptPaymentInput, type ReceiptPdfTemplate, type ReceiptReversedEvent, type ReceiptTotals, type ReceiptType, type ReceiptVatRate, type ReceiptsApi, type RefundItemsContext, type RefundItemsResolver, type RefundProposalLine, type RegisterPaymentInput, type RegisterPaymentOnceInput, type RegisteredPayment, type RegisteredPaymentOnce, type RequestOptions, type ReverseInvoiceInput, type ReverseReceiptInput, type ReversedInvoice, SZAMLAZZ_AGENT_URL, type SendReceiptInput, type SkippedPayment, type SprinterWaybill, type StandardInvoiceInput, type StoreCapabilities, SzamlazzError, type SzamlazzErrorCategory, type SzamlazzHooks, type SzamlazzOptions, TAXPAYER_CACHE_KEY_PREFIX, type TaxpayerAddress, type TaxpayerApi, type TaxpayerCacheOptions, type TaxpayerInfo, type TaxpayerTaxNumber, type TaxpayerType, type TransOFlexWaybill, type VatRate, type WarningHook, type Waybill, addBudapestDays, attemptLedgerKey, buyerFromCustomer, chooseDocument, conversionExternalId, correctionExternalId, createKassza, errorCodeDocsUrl, invoiceOnceExternalId, isDocumentHookError, isSzamlazzError, issueForPayment, memoryCookieStore, memoryStore, paymentMarker, paymentOrderNumber, storeCapabilities, suggestedPrefix, toBudapestDate, toBudapestTimestamp, todayInBudapest };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as todayInBudapest, i as toBudapestTimestamp, n as addBudapestDays, r as toBudapestDate, t as DateInput } from "./dates-nlGEokCf.js";
2
2
  import { a as AgentAction, i as AGENT_ACTIONS, n as KasszaWarningKind, o as MAX_INVOICE_ATTACHMENTS, r as WarningHook, s as SZAMLAZZ_AGENT_URL, t as KasszaWarning } from "./warnings-DpuYhn39.js";
3
- import { $ as Waybill, A as CorrectiveInvoiceInput, B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, F as Currency, G as InvoiceType, H as InvoicePreview, I as FinalInvoiceInput, J as PickPackPointWaybill, K as ItemLedger, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, P as CreatedInvoiceItem, Q as TransOFlexWaybill, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, V as InvoicePostalAddress, W as InvoiceTemplate, X as StandardInvoiceInput, Y as SprinterWaybill, Z as TaxpayerType, _ as InvoiceReversedEvent, a as AgentRequestEvent, at as AgentErrorCodeInfo, b as isDocumentHookError, c as SzamlazzHooks, ct as SzamlazzErrorCategory, d as DocumentErrorMode, dt as suggestedPrefix, et as ATTEMPT_LEDGER_KEY_PREFIX, f as DocumentEvent, g as InvoicePaymentEvent, h as InvoiceCreatedEvent, i as AgentErrorEvent, it as AGENT_ERROR_CODES, j as CourierService, k as BuyerLedger, l as SzamlazzOptions, lt as errorCodeDocsUrl, m as DocumentHookError, n as AgentCompleteEvent, nt as AttemptLedgerMode, o as AgentResponseEvent, ot as KASSZA_ERROR_DOCS_URL, p as DocumentHook, q as MplWaybill, rt as attemptLedgerKey, s as RequestOptions, st as SzamlazzError, t as AgentAttachment, tt as ATTEMPT_LEDGER_TTL_SECONDS, u as DocumentErrorHandler, ut as isSzamlazzError, v as ReceiptCreatedEvent, w as PaymentEntry, x as ReverseInvoiceInput, y as ReceiptReversedEvent, z as InvoiceItemInput } from "./context-BuX6Eion.js";
3
+ import { $ as Waybill, A as CorrectiveInvoiceInput, B as InvoiceLanguage, C as ClearPaymentsInput, E as RegisteredPayment, F as Currency, G as InvoiceType, H as InvoicePreview, I as FinalInvoiceInput, J as PickPackPointWaybill, K as ItemLedger, L as InvoiceBuyer, M as CreateInvoiceInput, N as CreatedInvoice, P as CreatedInvoiceItem, Q as TransOFlexWaybill, R as InvoiceDefaults, S as ReversedInvoice, T as RegisterPaymentInput, U as InvoiceSeller, V as InvoicePostalAddress, W as InvoiceTemplate, X as StandardInvoiceInput, Y as SprinterWaybill, Z as TaxpayerType, _ as InvoiceReversedEvent, a as AgentRequestEvent, at as AgentErrorCodeInfo, b as isDocumentHookError, c as SzamlazzHooks, ct as SzamlazzErrorCategory, d as DocumentErrorMode, dt as suggestedPrefix, et as ATTEMPT_LEDGER_KEY_PREFIX, f as DocumentEvent, g as InvoicePaymentEvent, h as InvoiceCreatedEvent, i as AgentErrorEvent, it as AGENT_ERROR_CODES, j as CourierService, k as BuyerLedger, l as SzamlazzOptions, lt as errorCodeDocsUrl, m as DocumentHookError, n as AgentCompleteEvent, nt as AttemptLedgerMode, o as AgentResponseEvent, ot as KASSZA_ERROR_DOCS_URL, p as DocumentHook, q as MplWaybill, rt as attemptLedgerKey, s as RequestOptions, st as SzamlazzError, t as AgentAttachment, tt as ATTEMPT_LEDGER_TTL_SECONDS, u as DocumentErrorHandler, ut as isSzamlazzError, v as ReceiptCreatedEvent, w as PaymentEntry, x as ReverseInvoiceInput, y as ReceiptReversedEvent, z as InvoiceItemInput } from "./context-BROX7Krw.js";
4
4
  import { a as storeCapabilities, i as memoryStore, n as KeyValueStore, r as StoreCapabilities, t as Awaitable } from "./store-BkaZ8qkU.js";
5
5
  import { S as VatRate, d as ItemAmounts, f as ItemPriceInput } from "./index-CinpAhQM.js";
6
6
  import { a as ReceiptItem, c as ReceiptPayment, d as ReceiptTotals, f as ReceiptType, h as SendReceiptInput, i as ReceiptDefaults, l as ReceiptPaymentInput, m as ReverseReceiptInput, n as GetReceiptInput, o as ReceiptItemInput, p as ReceiptVatRate, r as Receipt, s as ReceiptOnlyVatCode, t as CreateReceiptInput, u as ReceiptPdfTemplate } from "./types-Z6rQoqHn.js";
7
7
  import { r as memoryCookieStore, t as CookieStore } from "./session-mKtpAeUB.js";
8
- import { $ as ONCE_LOCK_KEY_PREFIX, A as IssuedRefundCorrection, B as DocumentDecision, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, G as RegisterPaymentOnceInput, H as chooseDocument, I as correctionExternalId, J as InvoiceReference, K as RegisteredPaymentOnce, L as ChooseDocumentBuyer, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, Q as LockFailureMode, R as ChooseDocumentInput, S as IssuedReversal, T as SkippedPayment, U as ProformaReference, V as RECEIPT_MAX_GROSS_HUF, W as InvoicePdf, X as DEFAULT_LOCK_TTL_SECONDS, Y as CreateOnceOptions, Z as DEFAULT_LOCK_WAIT_MS, _ as conversionExternalId, a as ReceiptsApi, b as IssuedInvoice, c as DEFAULT_TAXPAYER_INVALID_TTL_SECONDS, d as TaxpayerCacheOptions, et as OnceLockOptions, f as TaxpayerInfo, g as ConvertedReceipt, h as ConvertReceiptInput, i as KasszaOptions, j as IssuedRefundProposal, k as IssuedCorrection, l as DEFAULT_TAXPAYER_TTL_SECONDS, m as TaxpayerAddress, n as Kassza, o as TaxpayerApi, p as TaxpayerTaxNumber, q as paymentMarker, r as KasszaDefaults, s as createKassza, t as InvoicesApi, u as TAXPAYER_CACHE_KEY_PREFIX, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument, z as DocumentChoice } from "./client-C-SYCiOZ.js";
8
+ import { $ as ONCE_LOCK_KEY_PREFIX, A as IssuedRefundCorrection, B as DocumentDecision, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, G as RegisterPaymentOnceInput, H as chooseDocument, I as correctionExternalId, J as InvoiceReference, K as RegisteredPaymentOnce, L as ChooseDocumentBuyer, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, Q as LockFailureMode, R as ChooseDocumentInput, S as IssuedReversal, T as SkippedPayment, U as ProformaReference, V as RECEIPT_MAX_GROSS_HUF, W as InvoicePdf, X as DEFAULT_LOCK_TTL_SECONDS, Y as CreateOnceOptions, Z as DEFAULT_LOCK_WAIT_MS, _ as conversionExternalId, a as ReceiptsApi, b as IssuedInvoice, c as DEFAULT_TAXPAYER_INVALID_TTL_SECONDS, d as TaxpayerCacheOptions, et as OnceLockOptions, f as TaxpayerInfo, g as ConvertedReceipt, h as ConvertReceiptInput, i as KasszaOptions, j as IssuedRefundProposal, k as IssuedCorrection, l as DEFAULT_TAXPAYER_TTL_SECONDS, m as TaxpayerAddress, n as Kassza, o as TaxpayerApi, p as TaxpayerTaxNumber, q as paymentMarker, r as KasszaDefaults, s as createKassza, t as InvoicesApi, u as TAXPAYER_CACHE_KEY_PREFIX, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument, z as DocumentChoice } from "./client-BJfeFjCM.js";
9
9
  import { a as InvoiceDetailsItem, c as InvoiceDetailsTotals, i as InvoiceDetailsHeader, l as InvoiceDocumentType, n as InvoiceDetails, o as InvoiceDetailsPayment, r as InvoiceDetailsBuyer, s as InvoiceDetailsSeller, t as GetInvoiceOptions } from "./get-BL4Fr8-P.js";
10
- import { n as InvoiceOnceResult, r as invoiceOnceExternalId, t as ReceiptOnceResult } from "./create-once-CiGUjXut.js";
10
+ import { n as InvoiceOnceResult, r as invoiceOnceExternalId, t as ReceiptOnceResult } from "./create-once-CoybK69A.js";
11
11
  import { a as PaymentEventKind, c as PaymentProvider, i as PaymentEvent, l as PaymentRefund, n as PaymentAmount, r as PaymentCustomer, s as PaymentLineItem, t as PaymentAddress } from "./types-oiDulesz.js";
12
12
  export declare function bytesToBase64(bytes: Uint8Array): string;
13
13
  export { AGENT_ACTIONS, AGENT_ERROR_CODES, ATTEMPT_LEDGER_KEY_PREFIX, ATTEMPT_LEDGER_TTL_SECONDS, type AgentAction, type AgentAttachment, type AgentCompleteEvent, type AgentErrorCodeInfo, type AgentErrorEvent, type AgentRequestEvent, type AgentResponseEvent, type AttemptLedgerMode, type Awaitable, type BuyerLedger, type ChooseDocumentBuyer, type ChooseDocumentInput, type ClearPaymentsInput, type ConvertReceiptInput, type ConvertedReceipt, type CookieStore, type CorrectiveInvoiceInput, type CourierService, type CreateInvoiceInput, type CreateOnceOptions, type CreateReceiptInput, type CreatedInvoice, type CreatedInvoiceItem, type Currency, DEFAULT_LOCK_TTL_SECONDS, DEFAULT_LOCK_WAIT_MS, DEFAULT_TAXPAYER_INVALID_TTL_SECONDS, DEFAULT_TAXPAYER_TTL_SECONDS, type DateInput, type DocumentChoice, type DocumentDecision, type DocumentErrorHandler, type DocumentErrorMode, type DocumentEvent, type DocumentHook, DocumentHookError, type FinalInvoiceInput, type GetInvoiceOptions, type GetReceiptInput, type InvoiceBuyer, type InvoiceCreatedEvent, type InvoiceDefaults, type InvoiceDetails, type InvoiceDetailsBuyer, type InvoiceDetailsHeader, type InvoiceDetailsItem, type InvoiceDetailsPayment, type InvoiceDetailsSeller, type InvoiceDetailsTotals, type InvoiceDocumentType, type InvoiceItemInput, type InvoiceLanguage, type InvoiceOnceResult, type InvoicePaymentEvent, type InvoicePdf, type InvoicePostalAddress, type InvoicePreview, type InvoiceReference, type InvoiceReversedEvent, type InvoiceSeller, type InvoiceTemplate, type InvoiceType, type InvoicesApi, type IssueForPaymentOptions, type IssuedCorrection, type IssuedDocument, type IssuedInvoice, type IssuedReceipt, type IssuedRefundCorrection, type IssuedRefundProposal, type IssuedReversal, type ItemAmounts, type ItemLedger, type ItemPriceInput, KASSZA_ERROR_DOCS_URL, type Kassza, type KasszaDefaults, type KasszaOptions, type KasszaWarning, type KasszaWarningKind, type KeyValueStore, type LockFailureMode, MAX_INVOICE_ATTACHMENTS, type MplWaybill, ONCE_LOCK_KEY_PREFIX, type OnceLockOptions, type PartialRefundMode, type PaymentAddress, type PaymentAmount, type PaymentCustomer, type PaymentDocumentItem, type PaymentDocumentsApi, type PaymentEntry, type PaymentEvent, type PaymentEventKind, type PaymentLineItem, type PaymentProvider, type PaymentRefund, type PickPackPointWaybill, type ProformaReference, RECEIPT_MAX_GROSS_HUF, type Receipt, type ReceiptCreatedEvent, type ReceiptDefaults, type ReceiptItem, type ReceiptItemInput, type ReceiptOnceResult, type ReceiptOnlyVatCode, type ReceiptPayment, type ReceiptPaymentInput, type ReceiptPdfTemplate, type ReceiptReversedEvent, type ReceiptTotals, type ReceiptType, type ReceiptVatRate, type ReceiptsApi, type RefundItemsContext, type RefundItemsResolver, type RefundProposalLine, type RegisterPaymentInput, type RegisterPaymentOnceInput, type RegisteredPayment, type RegisteredPaymentOnce, type RequestOptions, type ReverseInvoiceInput, type ReverseReceiptInput, type ReversedInvoice, SZAMLAZZ_AGENT_URL, type SendReceiptInput, type SkippedPayment, type SprinterWaybill, type StandardInvoiceInput, type StoreCapabilities, SzamlazzError, type SzamlazzErrorCategory, type SzamlazzHooks, type SzamlazzOptions, TAXPAYER_CACHE_KEY_PREFIX, type TaxpayerAddress, type TaxpayerApi, type TaxpayerCacheOptions, type TaxpayerInfo, type TaxpayerTaxNumber, type TaxpayerType, type TransOFlexWaybill, type VatRate, type WarningHook, type Waybill, addBudapestDays, attemptLedgerKey, buyerFromCustomer, chooseDocument, conversionExternalId, correctionExternalId, createKassza, errorCodeDocsUrl, invoiceOnceExternalId, isDocumentHookError, isSzamlazzError, issueForPayment, memoryCookieStore, memoryStore, paymentMarker, paymentOrderNumber, storeCapabilities, suggestedPrefix, toBudapestDate, toBudapestTimestamp, todayInBudapest };
@@ -1,5 +1,5 @@
1
1
  import { n as KeyValueStore } from "../store-BkaZ8qkU.cjs";
2
- import { _ as JournalRange, a as JournalReceiptQuery, c as JournalSettleApi, d as JournalWriteError, f as createJournal, g as JournalEntryType, h as JournalEntrySource, i as JournalOptions, l as JournalSettleOptions, m as JournalEntry, n as Journal, o as JournalReconcileOptions, p as JournalDocumentKind, r as JournalEntryQuery, s as JournalReconciliation, t as DEFAULT_PENDING_DAYS, u as JournalSettlement, v as JournalReservation, y as JournalStorage } from "../journal-DI-hOW6N.cjs";
2
+ import { _ as JournalRange, a as JournalReceiptQuery, c as JournalSettleApi, d as JournalWriteError, f as createJournal, g as JournalEntryType, h as JournalEntrySource, i as JournalOptions, l as JournalSettleOptions, m as JournalEntry, n as Journal, o as JournalReconcileOptions, p as JournalDocumentKind, r as JournalEntryQuery, s as JournalReconciliation, t as DEFAULT_PENDING_DAYS, u as JournalSettlement, v as JournalReservation, y as JournalStorage } from "../journal-D_ypAW50.cjs";
3
3
  export declare const MAX_JOURNAL_RANGE_DAYS = 366;
4
4
  export declare const JOURNAL_KEY_PREFIX = "szamlazz:journal:";
5
5
  export declare const DEFAULT_JOURNAL_RETENTION_DAYS = 400;
@@ -1,5 +1,5 @@
1
1
  import { n as KeyValueStore } from "../store-BkaZ8qkU.js";
2
- import { _ as JournalRange, a as JournalReceiptQuery, c as JournalSettleApi, d as JournalWriteError, f as createJournal, g as JournalEntryType, h as JournalEntrySource, i as JournalOptions, l as JournalSettleOptions, m as JournalEntry, n as Journal, o as JournalReconcileOptions, p as JournalDocumentKind, r as JournalEntryQuery, s as JournalReconciliation, t as DEFAULT_PENDING_DAYS, u as JournalSettlement, v as JournalReservation, y as JournalStorage } from "../journal-BNdo07p5.js";
2
+ import { _ as JournalRange, a as JournalReceiptQuery, c as JournalSettleApi, d as JournalWriteError, f as createJournal, g as JournalEntryType, h as JournalEntrySource, i as JournalOptions, l as JournalSettleOptions, m as JournalEntry, n as Journal, o as JournalReconcileOptions, p as JournalDocumentKind, r as JournalEntryQuery, s as JournalReconciliation, t as DEFAULT_PENDING_DAYS, u as JournalSettlement, v as JournalReservation, y as JournalStorage } from "../journal-JwiYpBui.js";
3
3
  export declare const MAX_JOURNAL_RANGE_DAYS = 366;
4
4
  export declare const JOURNAL_KEY_PREFIX = "szamlazz:journal:";
5
5
  export declare const DEFAULT_JOURNAL_RETENTION_DAYS = 400;
@@ -1,7 +1,7 @@
1
- import { f as DocumentEvent } from "./context-PwqY4JOK.cjs";
1
+ import { f as DocumentEvent } from "./context-zGthvNo2.cjs";
2
2
  import { r as Receipt } from "./types-_HKTOCuQ.cjs";
3
3
  import { n as InvoiceDetails } from "./get-BL4Fr8-P.cjs";
4
- import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-CyaVT36b.cjs";
4
+ import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-BA0KAHIB.cjs";
5
5
  import { t as DataLinkArchivedReceipt } from "./push-CTxDD3yJ.cjs";
6
6
  type JournalDocumentKind = "invoice" | "receipt";
7
7
  type JournalEntryType = "document" | "reversal";
@@ -1,7 +1,7 @@
1
- import { f as DocumentEvent } from "./context-BuX6Eion.js";
1
+ import { f as DocumentEvent } from "./context-BROX7Krw.js";
2
2
  import { r as Receipt } from "./types-Z6rQoqHn.js";
3
3
  import { n as InvoiceDetails } from "./get-BL4Fr8-P.js";
4
- import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-CiGUjXut.js";
4
+ import { n as InvoiceOnceResult, t as ReceiptOnceResult } from "./create-once-CoybK69A.js";
5
5
  import { t as DataLinkArchivedReceipt } from "./push-DJh5YkyV.js";
6
6
  type JournalDocumentKind = "invoice" | "receipt";
7
7
  type JournalEntryType = "document" | "reversal";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_server = require("../server-BZ-ySQGx.cjs");
2
+ const require_server = require("../server-BKB4KsPn.cjs");
3
3
  exports.DEFAULT_CONFIRMATION_TTL_MS = require_server.DEFAULT_CONFIRMATION_TTL_MS;
4
4
  exports.MCP_LEGACY_VERSIONS = require_server.MCP_LEGACY_VERSIONS;
5
5
  exports.MCP_MODERN_VERSIONS = require_server.MCP_MODERN_VERSIONS;
@@ -1,4 +1,4 @@
1
- import { i as KasszaOptions } from "../client-BT2odGYl.cjs";
1
+ import { i as KasszaOptions } from "../client-B00WZ3FK.cjs";
2
2
  export declare const MCP_MODERN_VERSIONS: readonly string[];
3
3
  export declare const MCP_LEGACY_VERSIONS: readonly string[];
4
4
  export declare const MCP_SUPPORTED_VERSIONS: readonly string[];
@@ -1,4 +1,4 @@
1
- import { i as KasszaOptions } from "../client-C-SYCiOZ.js";
1
+ import { i as KasszaOptions } from "../client-BJfeFjCM.js";
2
2
  export declare const MCP_MODERN_VERSIONS: readonly string[];
3
3
  export declare const MCP_LEGACY_VERSIONS: readonly string[];
4
4
  export declare const MCP_SUPPORTED_VERSIONS: readonly string[];
package/dist/mcp/index.js CHANGED
@@ -1 +1 @@
1
- export { r as DEFAULT_CONFIRMATION_TTL_MS, s as MCP_LEGACY_VERSIONS, c as MCP_MODERN_VERSIONS, l as MCP_SUPPORTED_VERSIONS, o as ToolInputError, i as canonicalJson, a as createConfirmations, t as createKasszaMcpServer } from "../server-CDwsjBWk.js";
1
+ export { r as DEFAULT_CONFIRMATION_TTL_MS, s as MCP_LEGACY_VERSIONS, c as MCP_MODERN_VERSIONS, l as MCP_SUPPORTED_VERSIONS, o as ToolInputError, i as canonicalJson, a as createConfirmations, t as createKasszaMcpServer } from "../server-CPp6Gpbl.js";
@@ -1,5 +1,5 @@
1
1
  import { t as DateInput } from "../dates-nlGEokCf.cjs";
2
- import { s as RequestOptions } from "../context-PwqY4JOK.cjs";
2
+ import { s as RequestOptions } from "../context-zGthvNo2.cjs";
3
3
  interface XmlElement {
4
4
  readonly name: string;
5
5
  readonly attributes: Readonly<Record<string, string>>;
@@ -1,5 +1,5 @@
1
1
  import { t as DateInput } from "../dates-nlGEokCf.js";
2
- import { s as RequestOptions } from "../context-BuX6Eion.js";
2
+ import { s as RequestOptions } from "../context-BROX7Krw.js";
3
3
  interface XmlElement {
4
4
  readonly name: string;
5
5
  readonly attributes: Readonly<Record<string, string>>;
@@ -1,4 +1,4 @@
1
- import { c as SzamlazzHooks } from "../context-PwqY4JOK.cjs";
1
+ import { c as SzamlazzHooks } from "../context-zGthvNo2.cjs";
2
2
  type MetricLabels = Readonly<Record<string, string>>;
3
3
  interface Metrics {
4
4
  counter(name: string, labels?: MetricLabels, value?: number): void;
@@ -1,4 +1,4 @@
1
- import { c as SzamlazzHooks } from "../context-BuX6Eion.js";
1
+ import { c as SzamlazzHooks } from "../context-BROX7Krw.js";
2
2
  type MetricLabels = Readonly<Record<string, string>>;
3
3
  interface Metrics {
4
4
  counter(name: string, labels?: MetricLabels, value?: number): void;
@@ -1,4 +1,4 @@
1
- import { A as IssuedRefundCorrection, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, I as correctionExternalId, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, S as IssuedReversal, T as SkippedPayment, b as IssuedInvoice, j as IssuedRefundProposal, k as IssuedCorrection, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument } from "../client-BT2odGYl.cjs";
1
+ import { A as IssuedRefundCorrection, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, I as correctionExternalId, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, S as IssuedReversal, T as SkippedPayment, b as IssuedInvoice, j as IssuedRefundProposal, k as IssuedCorrection, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument } from "../client-B00WZ3FK.cjs";
2
2
  import { a as PaymentEventKind, c as PaymentProvider, i as PaymentEvent, l as PaymentRefund, n as PaymentAmount, o as PaymentHandler, r as PaymentCustomer, s as PaymentLineItem, t as PaymentAddress, u as PaymentWebhookBaseOptions } from "../types-DeuUqIvU.cjs";
3
3
  import { a as respondToWebhook, i as deliverPayment, n as WEBHOOK_DEDUPE_KEY_PREFIX, o as webhookDedupeKey, r as WebhookHandler, t as DEFAULT_DEDUPE_TTL_SECONDS } from "../webhook-DF2p_m2Q.cjs";
4
4
  type MinorUnitConvention = "iso4217" | "stripe";
@@ -1,4 +1,4 @@
1
- import { A as IssuedRefundCorrection, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, I as correctionExternalId, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, S as IssuedReversal, T as SkippedPayment, b as IssuedInvoice, j as IssuedRefundProposal, k as IssuedCorrection, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument } from "../client-C-SYCiOZ.js";
1
+ import { A as IssuedRefundCorrection, C as PaymentDocumentItem, D as issueForPayment, E as buyerFromCustomer, F as RefundProposalLine, I as correctionExternalId, M as PartialRefundMode, N as RefundItemsContext, O as paymentOrderNumber, P as RefundItemsResolver, S as IssuedReversal, T as SkippedPayment, b as IssuedInvoice, j as IssuedRefundProposal, k as IssuedCorrection, v as IssueForPaymentOptions, w as PaymentDocumentsApi, x as IssuedReceipt, y as IssuedDocument } from "../client-BJfeFjCM.js";
2
2
  import { a as PaymentEventKind, c as PaymentProvider, i as PaymentEvent, l as PaymentRefund, n as PaymentAmount, o as PaymentHandler, r as PaymentCustomer, s as PaymentLineItem, t as PaymentAddress, u as PaymentWebhookBaseOptions } from "../types-oiDulesz.js";
3
3
  import { a as respondToWebhook, i as deliverPayment, n as WEBHOOK_DEDUPE_KEY_PREFIX, o as webhookDedupeKey, r as WebhookHandler, t as DEFAULT_DEDUPE_TTL_SECONDS } from "../webhook-C9IBUdeT.js";
4
4
  type MinorUnitConvention = "iso4217" | "stripe";
@@ -232,7 +232,7 @@ function createConfirmations(options) {
232
232
  };
233
233
  }
234
234
  // src/core/version.ts
235
- const KASSZA_VERSION = "0.18.1";
235
+ const KASSZA_VERSION = "0.19.0";
236
236
  // src/mcp/tool-kit.ts
237
237
  const LOCAL_READ = {
238
238
  readOnlyHint: true,
@@ -232,7 +232,7 @@ function createConfirmations(options) {
232
232
  };
233
233
  }
234
234
  // src/core/version.ts
235
- const KASSZA_VERSION = "0.18.1";
235
+ const KASSZA_VERSION = "0.19.0";
236
236
  // src/mcp/tool-kit.ts
237
237
  const LOCAL_READ = {
238
238
  readOnlyHint: true,
@@ -1,7 +1,7 @@
1
1
  import { a as AgentAction, t as KasszaWarning } from "../warnings-DpuYhn39.cjs";
2
- import { G as InvoiceType, M as CreateInvoiceInput, d as DocumentErrorMode, p as DocumentHook, st as SzamlazzError } from "../context-PwqY4JOK.cjs";
2
+ import { G as InvoiceType, M as CreateInvoiceInput, d as DocumentErrorMode, p as DocumentHook, st as SzamlazzError } from "../context-zGthvNo2.cjs";
3
3
  import { r as Receipt } from "../types-_HKTOCuQ.cjs";
4
- import { f as TaxpayerInfo, n as Kassza, r as KasszaDefaults } from "../client-BT2odGYl.cjs";
4
+ import { f as TaxpayerInfo, n as Kassza, r as KasszaDefaults } from "../client-B00WZ3FK.cjs";
5
5
  import { n as InvoiceDetails, o as InvoiceDetailsPayment } from "../get-BL4Fr8-P.cjs";
6
6
  type FakeInvoiceTypeCode = "SZ" | "D" | "ES" | "VS" | "HS" | "SS" | "SL";
7
7
  interface FakeAgentSeller {
@@ -1,7 +1,7 @@
1
1
  import { a as AgentAction, t as KasszaWarning } from "../warnings-DpuYhn39.js";
2
- import { G as InvoiceType, M as CreateInvoiceInput, d as DocumentErrorMode, p as DocumentHook, st as SzamlazzError } from "../context-BuX6Eion.js";
2
+ import { G as InvoiceType, M as CreateInvoiceInput, d as DocumentErrorMode, p as DocumentHook, st as SzamlazzError } from "../context-BROX7Krw.js";
3
3
  import { r as Receipt } from "../types-Z6rQoqHn.js";
4
- import { f as TaxpayerInfo, n as Kassza, r as KasszaDefaults } from "../client-C-SYCiOZ.js";
4
+ import { f as TaxpayerInfo, n as Kassza, r as KasszaDefaults } from "../client-BJfeFjCM.js";
5
5
  import { n as InvoiceDetails, o as InvoiceDetailsPayment } from "../get-BL4Fr8-P.js";
6
6
  type FakeInvoiceTypeCode = "SZ" | "D" | "ES" | "VS" | "HS" | "SS" | "SL";
7
7
  interface FakeAgentSeller {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kassza",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "author": {
5
5
  "name": "futozs",
6
6
  "url": "https://github.com/futozs",