@kirjapro/mcp-server 0.6.3 → 0.8.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/CHANGELOG.md +115 -0
- package/README.md +73 -9
- package/dist/index.js +1472 -657
- package/package.json +10 -4
- package/server.json +6 -2
- package/tool-fingerprints.json +55 -51
- package/dist/accounts.d.ts +0 -40
- package/dist/accounts.js +0 -45
- package/dist/auth.d.ts +0 -17
- package/dist/auth.js +0 -245
- package/dist/compliance/rates.d.ts +0 -53
- package/dist/compliance/rates.js +0 -57
- package/dist/database.types.d.ts +0 -6525
- package/dist/database.types.js +0 -20
- package/dist/index.d.ts +0 -2
- package/dist/lib/incomeStatementSynthesis.d.ts +0 -47
- package/dist/lib/incomeStatementSynthesis.js +0 -140
- package/dist/resources/company.d.ts +0 -2
- package/dist/resources/company.js +0 -75
- package/dist/resources/compliance.d.ts +0 -2
- package/dist/resources/compliance.js +0 -338
- package/dist/resources/index.d.ts +0 -2
- package/dist/resources/index.js +0 -10
- package/dist/resources/schema.d.ts +0 -2
- package/dist/resources/schema.js +0 -63
- package/dist/resources/security.d.ts +0 -2
- package/dist/resources/security.js +0 -33
- package/dist/schemas.d.ts +0 -12
- package/dist/schemas.js +0 -12
- package/dist/tools/accounts.d.ts +0 -2
- package/dist/tools/accounts.js +0 -48
- package/dist/tools/banking.d.ts +0 -2
- package/dist/tools/banking.js +0 -196
- package/dist/tools/bookings.d.ts +0 -2
- package/dist/tools/bookings.js +0 -294
- package/dist/tools/customers.d.ts +0 -2
- package/dist/tools/customers.js +0 -320
- package/dist/tools/financialNotes.d.ts +0 -2
- package/dist/tools/financialNotes.js +0 -255
- package/dist/tools/fingerprints.d.ts +0 -6
- package/dist/tools/fingerprints.js +0 -28
- package/dist/tools/fiscal-years.d.ts +0 -2
- package/dist/tools/fiscal-years.js +0 -35
- package/dist/tools/index.d.ts +0 -9
- package/dist/tools/index.js +0 -105
- package/dist/tools/invoices.d.ts +0 -2
- package/dist/tools/invoices.js +0 -489
- package/dist/tools/offers.d.ts +0 -2
- package/dist/tools/offers.js +0 -443
- package/dist/tools/received-invoices.d.ts +0 -2
- package/dist/tools/received-invoices.js +0 -134
- package/dist/tools/recurring-invoices.d.ts +0 -2
- package/dist/tools/recurring-invoices.js +0 -348
- package/dist/tools/reports.d.ts +0 -2
- package/dist/tools/reports.js +0 -869
- package/dist/tools/templates.d.ts +0 -89
- package/dist/tools/templates.js +0 -636
- package/dist/tools/transactions.d.ts +0 -2
- package/dist/tools/transactions.js +0 -597
- package/dist/tools/validation.d.ts +0 -26
- package/dist/tools/validation.js +0 -127
- package/dist/types.d.ts +0 -388
- package/dist/types.js +0 -34
- package/dist/utils.d.ts +0 -276
- package/dist/utils.js +0 -637
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -3
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single source of truth for Finnish tax + social insurance rates.
|
|
3
|
-
*
|
|
4
|
-
* Every tool that needs a rate and every compliance resource that publishes
|
|
5
|
-
* a rate MUST import from this module — do NOT re-declare rates elsewhere.
|
|
6
|
-
* When rates change for a new year, update this file and bump `sourcesVerifiedAt`.
|
|
7
|
-
*
|
|
8
|
-
* Sources:
|
|
9
|
-
* - VAT: AVL 1501/1993 §§ 84–85a, vero.fi/syventavat
|
|
10
|
-
* - TyEL: https://www.etk.fi/ajankohtaista/tyoelakemaksut-vuonna-2026/
|
|
11
|
-
* - Elo 2026: https://www.elo.fi/fi-fi/tyonantaja/tyel-vakuuttaminen/tyel-maksu/sosiaalivakuutusmaksut-2026
|
|
12
|
-
* - Sotu/TTV: tyel-vakuutus.fi/tyonantajan-sivukulut/
|
|
13
|
-
*/
|
|
14
|
-
export declare const FINNISH_RATES_2026: {
|
|
15
|
-
readonly year: 2026;
|
|
16
|
-
readonly validFrom: "2026-01-01";
|
|
17
|
-
readonly validUntil: "2026-12-31";
|
|
18
|
-
readonly sourcesVerifiedAt: "2026-03-15";
|
|
19
|
-
readonly source: "AVL 1501/1993, ETK 2026, Elo 2026, vero.fi 2026";
|
|
20
|
-
readonly vat: {
|
|
21
|
-
readonly standard: 25.5;
|
|
22
|
-
readonly reduced: 13.5;
|
|
23
|
-
readonly secondReduced: 10;
|
|
24
|
-
readonly zero: 0;
|
|
25
|
-
};
|
|
26
|
-
readonly social: {
|
|
27
|
-
readonly tyelEmployee: 7.3;
|
|
28
|
-
readonly tyelEmployer: 17.55;
|
|
29
|
-
readonly tyelEmployerAverage: 17.1;
|
|
30
|
-
readonly tyelKeskimaarainen: 24.4;
|
|
31
|
-
readonly tyelPerusmaksu: 24.85;
|
|
32
|
-
readonly sotu: 1.91;
|
|
33
|
-
readonly ttvEmployer: 0.31;
|
|
34
|
-
readonly ttvEmployerLarge: 1.23;
|
|
35
|
-
readonly ttvEmployerLargeThreshold: 2509500;
|
|
36
|
-
readonly ttvEmployee: 0.89;
|
|
37
|
-
readonly tapaturmaAverage: 0.51;
|
|
38
|
-
readonly ryhmahenki: 0.06;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export type FinnishRates = typeof FINNISH_RATES_2026;
|
|
42
|
-
/**
|
|
43
|
-
* Compute freshness metadata for a dated resource. `today` is injectable for
|
|
44
|
-
* tests; production callers pass nothing and get the current date.
|
|
45
|
-
*/
|
|
46
|
-
export declare function freshnessMeta(rates?: FinnishRates, today?: Date): {
|
|
47
|
-
published_at: string;
|
|
48
|
-
valid_from: string;
|
|
49
|
-
valid_through: string;
|
|
50
|
-
sources_verified_at: string;
|
|
51
|
-
stale: boolean;
|
|
52
|
-
days_until_expiry: number;
|
|
53
|
-
};
|
package/dist/compliance/rates.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single source of truth for Finnish tax + social insurance rates.
|
|
3
|
-
*
|
|
4
|
-
* Every tool that needs a rate and every compliance resource that publishes
|
|
5
|
-
* a rate MUST import from this module — do NOT re-declare rates elsewhere.
|
|
6
|
-
* When rates change for a new year, update this file and bump `sourcesVerifiedAt`.
|
|
7
|
-
*
|
|
8
|
-
* Sources:
|
|
9
|
-
* - VAT: AVL 1501/1993 §§ 84–85a, vero.fi/syventavat
|
|
10
|
-
* - TyEL: https://www.etk.fi/ajankohtaista/tyoelakemaksut-vuonna-2026/
|
|
11
|
-
* - Elo 2026: https://www.elo.fi/fi-fi/tyonantaja/tyel-vakuuttaminen/tyel-maksu/sosiaalivakuutusmaksut-2026
|
|
12
|
-
* - Sotu/TTV: tyel-vakuutus.fi/tyonantajan-sivukulut/
|
|
13
|
-
*/
|
|
14
|
-
export const FINNISH_RATES_2026 = {
|
|
15
|
-
year: 2026,
|
|
16
|
-
validFrom: '2026-01-01',
|
|
17
|
-
validUntil: '2026-12-31',
|
|
18
|
-
sourcesVerifiedAt: '2026-03-15',
|
|
19
|
-
source: 'AVL 1501/1993, ETK 2026, Elo 2026, vero.fi 2026',
|
|
20
|
-
vat: {
|
|
21
|
-
standard: 25.5,
|
|
22
|
-
reduced: 13.5,
|
|
23
|
-
secondReduced: 10,
|
|
24
|
-
zero: 0,
|
|
25
|
-
},
|
|
26
|
-
social: {
|
|
27
|
-
tyelEmployee: 7.30,
|
|
28
|
-
tyelEmployer: 17.55,
|
|
29
|
-
tyelEmployerAverage: 17.10,
|
|
30
|
-
tyelKeskimaarainen: 24.40,
|
|
31
|
-
tyelPerusmaksu: 24.85,
|
|
32
|
-
sotu: 1.91,
|
|
33
|
-
ttvEmployer: 0.31,
|
|
34
|
-
ttvEmployerLarge: 1.23,
|
|
35
|
-
ttvEmployerLargeThreshold: 2_509_500,
|
|
36
|
-
ttvEmployee: 0.89,
|
|
37
|
-
tapaturmaAverage: 0.51,
|
|
38
|
-
ryhmahenki: 0.06,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Compute freshness metadata for a dated resource. `today` is injectable for
|
|
43
|
-
* tests; production callers pass nothing and get the current date.
|
|
44
|
-
*/
|
|
45
|
-
export function freshnessMeta(rates = FINNISH_RATES_2026, today = new Date()) {
|
|
46
|
-
const validUntil = new Date(`${rates.validUntil}T23:59:59Z`);
|
|
47
|
-
const msPerDay = 86_400_000;
|
|
48
|
-
const daysUntilExpiry = Math.ceil((validUntil.getTime() - today.getTime()) / msPerDay);
|
|
49
|
-
return {
|
|
50
|
-
published_at: rates.sourcesVerifiedAt,
|
|
51
|
-
valid_from: rates.validFrom,
|
|
52
|
-
valid_through: rates.validUntil,
|
|
53
|
-
sources_verified_at: rates.sourcesVerifiedAt,
|
|
54
|
-
stale: daysUntilExpiry < 0,
|
|
55
|
-
days_until_expiry: daysUntilExpiry,
|
|
56
|
-
};
|
|
57
|
-
}
|