kassza 0.19.0 → 1.0.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.en.md +6 -2
- package/README.md +6 -2
- package/dist/batch/index.d.cts +3 -3
- package/dist/batch/index.d.ts +3 -3
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/{client-BT2odGYl.d.cts → client-B00WZ3FK.d.cts} +2 -2
- package/dist/{client-C-SYCiOZ.d.ts → client-BJfeFjCM.d.ts} +2 -2
- package/dist/{context-BuX6Eion.d.ts → context-BROX7Krw.d.ts} +1 -1
- package/dist/{context-PwqY4JOK.d.cts → context-zGthvNo2.d.cts} +1 -1
- package/dist/{create-once-CyaVT36b.d.cts → create-once-BA0KAHIB.d.cts} +1 -1
- package/dist/{create-once-CiGUjXut.d.ts → create-once-CoybK69A.d.ts} +1 -1
- package/dist/delegation/index.d.cts +2 -2
- package/dist/delegation/index.d.ts +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/journal/index.d.cts +1 -1
- package/dist/journal/index.d.ts +1 -1
- package/dist/{journal-DI-hOW6N.d.cts → journal-D_ypAW50.d.cts} +2 -2
- package/dist/{journal-BNdo07p5.d.ts → journal-JwiYpBui.d.ts} +2 -2
- package/dist/mcp/index.cjs +1 -1
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/nav/index.d.cts +1 -1
- package/dist/nav/index.d.ts +1 -1
- package/dist/observe/index.d.cts +1 -1
- package/dist/observe/index.d.ts +1 -1
- package/dist/payments/index.d.cts +1 -1
- package/dist/payments/index.d.ts +1 -1
- package/dist/{server-BZ-ySQGx.cjs → server-CGIY7U8C.cjs} +1 -1
- package/dist/{server-CDwsjBWk.js → server-CifvB-FX.js} +1 -1
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/llms.txt +1 -1
- package/package.json +2 -2
package/README.en.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# kassza (English overview)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://kasszajs.hu/docs/alapok/mi-a-kassza#hivatalos-plugin"><img src="readme/assets/hivatalos-szamlazz-plugin.svg" alt="Official Számlázz.hu plugin" height="120"></a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
kassza is the official Számlázz.hu plugin for TypeScript: a zero-dependency client for the [Számlázz.hu](https://www.szamlazz.hu) Számla Agent API, the most widely used Hungarian invoicing service. The full documentation is in Hungarian at [kasszajs.hu](https://kasszajs.hu), because the domain (Hungarian VAT, NAV reporting, receipt rules) is Hungarian. This page is a short entry point for developers who do not read Hungarian.
|
|
4
8
|
|
|
5
9
|
```bash
|
|
6
10
|
npm install kassza
|
|
@@ -43,6 +47,6 @@ English docs for agents ship inside the package: [agents/README.md](agents/READM
|
|
|
43
47
|
|
|
44
48
|
## Status
|
|
45
49
|
|
|
46
|
-
kassza is
|
|
50
|
+
kassza is stable (1.x) and an official Számlázz.hu plugin. It follows semantic versioning, so breaking changes only come with a new major version; see the [changelog](CHANGELOG.md) (in Hungarian).
|
|
47
51
|
|
|
48
52
|
License: MIT.
|
package/README.md
CHANGED
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
<a href="https://kasszajs.hu"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/futozs/kassza/main/readme/assets/hero-dark.svg"><img src="https://raw.githubusercontent.com/futozs/kassza/main/readme/assets/hero-light.svg" alt="kassza: Számlázz.hu, TypeScriptben. Telepítés: npm i kassza" width="100%"></picture></a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://kasszajs.hu/docs/alapok/mi-a-kassza#hivatalos-plugin"><img src="https://raw.githubusercontent.com/futozs/kassza/main/readme/assets/hivatalos-szamlazz-plugin.svg" alt="Hivatalos Számlázz.hu plugin" height="120"></a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
7
11
|
<p align="center">
|
|
8
12
|
<b>Számlázz.hu, TypeScriptben, egyszerűbben.</b><br>
|
|
9
|
-
|
|
13
|
+
Hivatalos Számlázz.hu plugin: TypeScript kliens a Számla Agenthez. Mind a 11 Agent művelet, 0 függőség, nulla runtime kompromisszum.<br>
|
|
10
14
|
<sub><a href="https://github.com/futozs/kassza/blob/main/README.en.md">English overview</a></sub>
|
|
11
15
|
</p>
|
|
12
16
|
|
|
@@ -1294,4 +1298,4 @@ A kassza nem küld semmilyen használati adatot, ezért csak az derül ki, ki ha
|
|
|
1294
1298
|
<a href="https://kasszajs.hu">Weboldal</a> · <a href="https://kasszajs.hu/docs">Dokumentáció</a> · <a href="https://kasszajs.hu/sandbox">Sandbox</a> · <a href="https://kasszajs.hu/docs/receptek">Receptek</a> · <a href="https://www.npmjs.com/package/kassza">npm</a> · <a href="https://github.com/futozs/kassza/blob/main/CHANGELOG.md">Változásnapló</a>
|
|
1295
1299
|
</p>
|
|
1296
1300
|
|
|
1297
|
-
<sub>
|
|
1301
|
+
<sub>A kassza hivatalos Számlázz.hu plugin. A Számla Agent hivatalos dokumentációja a <a href="https://docs.szamlazz.hu/hu/agent/">docs.szamlazz.hu</a> oldalon érhető el. MIT licenc.</sub>
|
package/dist/batch/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as DateInput } from "../dates-nlGEokCf.cjs";
|
|
2
|
-
import { M as CreateInvoiceInput } from "../context-
|
|
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-
|
|
5
|
-
import { n as Journal } from "../journal-
|
|
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;
|
package/dist/batch/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as DateInput } from "../dates-nlGEokCf.js";
|
|
2
|
-
import { M as CreateInvoiceInput } from "../context-
|
|
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-
|
|
5
|
-
import { n as Journal } from "../journal-
|
|
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-
|
|
7
|
+
const require_server = require("./server-CGIY7U8C.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-
|
|
7
|
+
import { n as KASSZA_VERSION, t as createKasszaMcpServer } from "./server-CifvB-FX.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import { i as KasszaOptions, n as Kassza, r as KasszaDefaults } from "../client-
|
|
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-
|
|
3
|
-
import { i as KasszaOptions, n as Kassza, r as KasszaDefaults } from "../client-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/journal/index.d.cts
CHANGED
|
@@ -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-
|
|
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;
|
package/dist/journal/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/mcp/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_server = require("../server-
|
|
2
|
+
const require_server = require("../server-CGIY7U8C.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;
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as KasszaOptions } from "../client-
|
|
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[];
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as KasszaOptions } from "../client-
|
|
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-
|
|
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-CifvB-FX.js";
|
package/dist/nav/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DateInput } from "../dates-nlGEokCf.cjs";
|
|
2
|
-
import { s as RequestOptions } from "../context-
|
|
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>>;
|
package/dist/nav/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DateInput } from "../dates-nlGEokCf.js";
|
|
2
|
-
import { s as RequestOptions } from "../context-
|
|
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>>;
|
package/dist/observe/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SzamlazzHooks } from "../context-
|
|
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;
|
package/dist/observe/index.d.ts
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/payments/index.d.ts
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -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-
|
|
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-
|
|
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 {
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# kassza
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> The official Számlázz.hu plugin for TypeScript: a zero-dependency client for the Számlázz.hu Számla Agent API (Hungarian invoicing): invoices, proformas, receipts, reversals, payments, PDFs, NAV taxpayer lookup, IPN webhooks. Also: exactly-once documents from Stripe, SimplePay, Barion, Revolut and PayPal payments, NAV daily receipt reports, delegated invoicing, the Számlázz.hu data link, a fake Számla Agent for tests, a CLI and an MCP server. Also: cross-process exactly-once locks, a receipt journal for NAV reports, partial refunds as corrective invoices, bulk/recurring invoicing, Express adapter, observability without telemetry. Unofficial.
|
|
4
4
|
|
|
5
5
|
## Docs for coding agents
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kassza",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "futozs",
|
|
6
6
|
"url": "https://github.com/futozs",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"bugs": {
|
|
274
274
|
"url": "https://github.com/futozs/kassza/issues"
|
|
275
275
|
},
|
|
276
|
-
"description": "Számlázz.hu Számla Agent kliens TypeScripthez: számla, díjbekérő, nyugta, sztornó, befizetés, PDF, adószám. 0 függőség.
|
|
276
|
+
"description": "Számlázz.hu Számla Agent kliens TypeScripthez: számla, díjbekérő, nyugta, sztornó, befizetés, PDF, adószám. 0 függőség. Hivatalos Számlázz.hu plugin.",
|
|
277
277
|
"engines": {
|
|
278
278
|
"node": ">=22"
|
|
279
279
|
},
|