kassza 0.1.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/LICENSE +21 -0
- package/README.md +150 -0
- package/agents/README.md +59 -0
- package/agents/api.md +206 -0
- package/agents/pitfalls.md +52 -0
- package/agents/recipes.md +217 -0
- package/agents/skills/kassza/SKILL.md +29 -0
- package/assets/logo-wordmark.svg +25 -0
- package/assets/logo.svg +19 -0
- package/dist/binary-B89HM03_.cjs +63 -0
- package/dist/binary-D0M9U2MD.js +34 -0
- package/dist/client-B9kbKKBf.d.cts +748 -0
- package/dist/client-zv4enyq7.d.ts +748 -0
- package/dist/cookie-stores/index.cjs +153 -0
- package/dist/cookie-stores/index.d.cts +63 -0
- package/dist/cookie-stores/index.d.ts +63 -0
- package/dist/cookie-stores/index.js +144 -0
- package/dist/create-BZd6CUO7.cjs +1160 -0
- package/dist/create-DDZaNlOz.js +939 -0
- package/dist/dates-D2XebOIg.js +34 -0
- package/dist/dates-DtHzwNU6.d.cts +7 -0
- package/dist/dates-DtHzwNU6.d.ts +7 -0
- package/dist/dates-PPxH0n5H.cjs +57 -0
- package/dist/errors-B0QJhUW1.cjs +302 -0
- package/dist/errors-DapdV5DK.js +273 -0
- package/dist/index-CYAGCdKJ.d.cts +56 -0
- package/dist/index-CYAGCdKJ.d.ts +56 -0
- package/dist/index.cjs +1406 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1394 -0
- package/dist/ipn/index.cjs +108 -0
- package/dist/ipn/index.d.cts +32 -0
- package/dist/ipn/index.d.ts +32 -0
- package/dist/ipn/index.js +101 -0
- package/dist/money/index.cjs +15 -0
- package/dist/money/index.d.cts +2 -0
- package/dist/money/index.d.ts +2 -0
- package/dist/money/index.js +2 -0
- package/dist/money-C9j7nBNP.js +258 -0
- package/dist/money-DkiGukAw.cjs +335 -0
- package/dist/session-CRGOuz-R.cjs +100 -0
- package/dist/session-Dm_45x8K.d.cts +11 -0
- package/dist/session-Dm_45x8K.d.ts +11 -0
- package/dist/session-OJMLGufT.js +77 -0
- package/dist/shared-CrxlxI8n.cjs +207 -0
- package/dist/shared-D6DLa4b7.js +100 -0
- package/dist/storage/fs.cjs +88 -0
- package/dist/storage/fs.d.cts +13 -0
- package/dist/storage/fs.d.ts +13 -0
- package/dist/storage/fs.js +87 -0
- package/dist/storage/index.cjs +643 -0
- package/dist/storage/index.d.cts +288 -0
- package/dist/storage/index.d.ts +288 -0
- package/dist/storage/index.js +619 -0
- package/dist/testing/index.cjs +409 -0
- package/dist/testing/index.d.cts +35 -0
- package/dist/testing/index.d.ts +35 -0
- package/dist/testing/index.js +407 -0
- package/dist/types-DVRgwcqg.d.cts +26 -0
- package/dist/types-DVRgwcqg.d.ts +26 -0
- package/dist/validators/index.cjs +296 -0
- package/dist/validators/index.d.cts +51 -0
- package/dist/validators/index.d.ts +51 -0
- package/dist/validators/index.js +278 -0
- package/llms.txt +16 -0
- package/package.json +151 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/money/vat.d.ts
|
|
2
|
+
declare const NUMERIC_VAT_RATES: readonly [0, 1, 2, 2.1, 3, 4, 4.8, 5, 5.5, 6, 7, 7.7, 8, 8.1, 9, 9.5, 10, 11, 12, 13, 13.5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25.5, 26, 27];
|
|
3
|
+
declare const SPECIAL_VAT_CODES: readonly ["TAHK", "TAM", "AAM", "EUT", "EUKT", "F.AFA", "K.AFA", "HO", "EUE", "EUFADE", "EUFAD37", "ATK", "NAM", "EAM", "KBAUK", "KBAET"];
|
|
4
|
+
type NumericVatRate = (typeof NUMERIC_VAT_RATES)[number];
|
|
5
|
+
type SpecialVatCode = (typeof SPECIAL_VAT_CODES)[number];
|
|
6
|
+
type VatRate = NumericVatRate | SpecialVatCode | (number & {});
|
|
7
|
+
declare function isVatRate(value: unknown): value is VatRate;
|
|
8
|
+
declare function vatPercentage(rate: VatRate): number;
|
|
9
|
+
declare function formatVatRate(rate: VatRate): string;
|
|
10
|
+
declare function isHuf(currency: string | undefined): boolean;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/money/items.d.ts
|
|
13
|
+
interface ItemPriceInput {
|
|
14
|
+
readonly quantity?: number;
|
|
15
|
+
readonly vat: VatRate;
|
|
16
|
+
readonly netUnitPrice?: number;
|
|
17
|
+
readonly grossUnitPrice?: number;
|
|
18
|
+
readonly netAmount?: number;
|
|
19
|
+
readonly vatAmount?: number;
|
|
20
|
+
readonly grossAmount?: number;
|
|
21
|
+
}
|
|
22
|
+
interface ItemAmounts {
|
|
23
|
+
readonly quantity: number;
|
|
24
|
+
readonly vat: VatRate;
|
|
25
|
+
readonly netUnitPrice: number;
|
|
26
|
+
readonly netAmount: number;
|
|
27
|
+
readonly vatAmount: number;
|
|
28
|
+
readonly grossAmount: number;
|
|
29
|
+
}
|
|
30
|
+
type DocumentKind = "invoice" | "receipt";
|
|
31
|
+
declare function calculateItemAmounts(input: ItemPriceInput, options: {
|
|
32
|
+
readonly kind: DocumentKind;
|
|
33
|
+
readonly currency?: string | undefined;
|
|
34
|
+
}): ItemAmounts;
|
|
35
|
+
declare function calculateInvoiceItem(input: ItemPriceInput, currency?: string): ItemAmounts;
|
|
36
|
+
declare function calculateReceiptItem(input: ItemPriceInput, currency?: string): ItemAmounts;
|
|
37
|
+
interface VatBreakdown {
|
|
38
|
+
readonly vat: VatRate;
|
|
39
|
+
readonly netAmount: number;
|
|
40
|
+
readonly vatAmount: number;
|
|
41
|
+
readonly grossAmount: number;
|
|
42
|
+
}
|
|
43
|
+
interface DocumentTotals {
|
|
44
|
+
readonly netAmount: number;
|
|
45
|
+
readonly vatAmount: number;
|
|
46
|
+
readonly grossAmount: number;
|
|
47
|
+
readonly byVat: readonly VatBreakdown[];
|
|
48
|
+
}
|
|
49
|
+
declare function summarizeItems(items: readonly ItemAmounts[]): DocumentTotals;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/money/rounding.d.ts
|
|
52
|
+
declare function roundMoney(value: number, decimals?: number): number;
|
|
53
|
+
declare function decimalPlaces(value: number): number;
|
|
54
|
+
declare function addMoney(...values: number[]): number;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { VatRate as _, DocumentTotals as a, isVatRate as b, VatBreakdown as c, calculateReceiptItem as d, summarizeItems as f, SpecialVatCode as g, SPECIAL_VAT_CODES as h, DocumentKind as i, calculateInvoiceItem as l, NumericVatRate as m, decimalPlaces as n, ItemAmounts as o, NUMERIC_VAT_RATES as p, roundMoney as r, ItemPriceInput as s, addMoney as t, calculateItemAmounts as u, formatVatRate as v, vatPercentage as x, isHuf as y };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/money/vat.d.ts
|
|
2
|
+
declare const NUMERIC_VAT_RATES: readonly [0, 1, 2, 2.1, 3, 4, 4.8, 5, 5.5, 6, 7, 7.7, 8, 8.1, 9, 9.5, 10, 11, 12, 13, 13.5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25.5, 26, 27];
|
|
3
|
+
declare const SPECIAL_VAT_CODES: readonly ["TAHK", "TAM", "AAM", "EUT", "EUKT", "F.AFA", "K.AFA", "HO", "EUE", "EUFADE", "EUFAD37", "ATK", "NAM", "EAM", "KBAUK", "KBAET"];
|
|
4
|
+
type NumericVatRate = (typeof NUMERIC_VAT_RATES)[number];
|
|
5
|
+
type SpecialVatCode = (typeof SPECIAL_VAT_CODES)[number];
|
|
6
|
+
type VatRate = NumericVatRate | SpecialVatCode | (number & {});
|
|
7
|
+
declare function isVatRate(value: unknown): value is VatRate;
|
|
8
|
+
declare function vatPercentage(rate: VatRate): number;
|
|
9
|
+
declare function formatVatRate(rate: VatRate): string;
|
|
10
|
+
declare function isHuf(currency: string | undefined): boolean;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/money/items.d.ts
|
|
13
|
+
interface ItemPriceInput {
|
|
14
|
+
readonly quantity?: number;
|
|
15
|
+
readonly vat: VatRate;
|
|
16
|
+
readonly netUnitPrice?: number;
|
|
17
|
+
readonly grossUnitPrice?: number;
|
|
18
|
+
readonly netAmount?: number;
|
|
19
|
+
readonly vatAmount?: number;
|
|
20
|
+
readonly grossAmount?: number;
|
|
21
|
+
}
|
|
22
|
+
interface ItemAmounts {
|
|
23
|
+
readonly quantity: number;
|
|
24
|
+
readonly vat: VatRate;
|
|
25
|
+
readonly netUnitPrice: number;
|
|
26
|
+
readonly netAmount: number;
|
|
27
|
+
readonly vatAmount: number;
|
|
28
|
+
readonly grossAmount: number;
|
|
29
|
+
}
|
|
30
|
+
type DocumentKind = "invoice" | "receipt";
|
|
31
|
+
declare function calculateItemAmounts(input: ItemPriceInput, options: {
|
|
32
|
+
readonly kind: DocumentKind;
|
|
33
|
+
readonly currency?: string | undefined;
|
|
34
|
+
}): ItemAmounts;
|
|
35
|
+
declare function calculateInvoiceItem(input: ItemPriceInput, currency?: string): ItemAmounts;
|
|
36
|
+
declare function calculateReceiptItem(input: ItemPriceInput, currency?: string): ItemAmounts;
|
|
37
|
+
interface VatBreakdown {
|
|
38
|
+
readonly vat: VatRate;
|
|
39
|
+
readonly netAmount: number;
|
|
40
|
+
readonly vatAmount: number;
|
|
41
|
+
readonly grossAmount: number;
|
|
42
|
+
}
|
|
43
|
+
interface DocumentTotals {
|
|
44
|
+
readonly netAmount: number;
|
|
45
|
+
readonly vatAmount: number;
|
|
46
|
+
readonly grossAmount: number;
|
|
47
|
+
readonly byVat: readonly VatBreakdown[];
|
|
48
|
+
}
|
|
49
|
+
declare function summarizeItems(items: readonly ItemAmounts[]): DocumentTotals;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/money/rounding.d.ts
|
|
52
|
+
declare function roundMoney(value: number, decimals?: number): number;
|
|
53
|
+
declare function decimalPlaces(value: number): number;
|
|
54
|
+
declare function addMoney(...values: number[]): number;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { VatRate as _, DocumentTotals as a, isVatRate as b, VatBreakdown as c, calculateReceiptItem as d, summarizeItems as f, SpecialVatCode as g, SPECIAL_VAT_CODES as h, DocumentKind as i, calculateInvoiceItem as l, NumericVatRate as m, decimalPlaces as n, ItemAmounts as o, NUMERIC_VAT_RATES as p, roundMoney as r, ItemPriceInput as s, addMoney as t, calculateItemAmounts as u, formatVatRate as v, vatPercentage as x, isHuf as y };
|