@lambda-development/erp-core 0.8.21 → 0.8.23

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.
@@ -5,6 +5,52 @@ export declare class ApiError extends Error {
5
5
  constructor(status: number, message: string);
6
6
  }
7
7
  export declare function request<T>(path: string, options?: RequestInit): Promise<T>;
8
+ export interface BankStatementPreview {
9
+ statement_key: string;
10
+ file_name: string;
11
+ schema_version: string;
12
+ statement_id: string;
13
+ account_iban_masked: string;
14
+ account_name: string | null;
15
+ account_currency: string;
16
+ bank_name: string | null;
17
+ bank_bic: string | null;
18
+ from_date: string | null;
19
+ to_date: string | null;
20
+ opening_balance: string | null;
21
+ closing_balance: string | null;
22
+ credit_total: string;
23
+ debit_total: string;
24
+ entry_count: number;
25
+ booked_entry_count: number;
26
+ detail_count: number;
27
+ batch_entry_count: number;
28
+ qr_reference_count: number;
29
+ duplicate_entry_count: number;
30
+ already_imported: boolean;
31
+ existing_import: string | null;
32
+ matched_bank_account: {
33
+ name: string;
34
+ account_name: string;
35
+ company: string;
36
+ account: string;
37
+ currency: string;
38
+ bank_name: string | null;
39
+ iban_masked: string;
40
+ } | null;
41
+ warnings: string[];
42
+ }
43
+ export interface BankStatementImportResult {
44
+ imports: Array<{
45
+ name: string;
46
+ bank_account: string;
47
+ account_iban_masked: string;
48
+ imported_entry_count: number;
49
+ duplicate_entry_count: number;
50
+ skipped_non_booked_count: number;
51
+ }>;
52
+ exact_duplicate_imports: string[];
53
+ }
8
54
  export interface AvailabilityAsset {
9
55
  name: string;
10
56
  asset_tag: string | null;
@@ -64,6 +110,14 @@ export declare const api: {
64
110
  warning?: string;
65
111
  }>;
66
112
  getChatAttachmentUrl: (id: string) => string;
113
+ previewBankStatements: (files: File[]) => Promise<{
114
+ statements: BankStatementPreview[];
115
+ }>;
116
+ importBankStatements: (files: File[], mappings: Record<string, string>) => Promise<BankStatementImportResult>;
117
+ listBankStatementImports: (limit?: number) => Promise<{
118
+ rows: any[];
119
+ }>;
120
+ bankStatementSourceUrl: (name: string) => string;
67
121
  createChatSession: () => Promise<{
68
122
  id: string;
69
123
  title: string;
@@ -7,3 +7,8 @@ export declare function ProtectedRoute({ children }: {
7
7
  export declare function AdminRoute({ children }: {
8
8
  children: React.ReactNode;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
+ /** Restrict operational write workflows to real managers and admins.
11
+ * In particular this excludes the shared public demo manager account. */
12
+ export declare function ManagerRoute({ children }: {
13
+ children: React.ReactNode;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -59,6 +59,39 @@ declare const _default: {
59
59
  "endOfThisYear": "Ende dieses Jahres",
60
60
  "endOfLastYear": "Ende des letzten Jahres"
61
61
  },
62
+ "bankStatements": {
63
+ "title": "Kontoauszug importieren",
64
+ "subtitle": "ISO-20022-CAMT-Kontoauszüge prüfen und ohne automatische Verbuchung importieren.",
65
+ "selectFiles": "CAMT-Dateien",
66
+ "chooseFiles": "XML- oder ZIP-Dateien auswählen",
67
+ "dropFiles": "XML- oder ZIP-Dateien hier ablegen",
68
+ "unsupportedFiles": "Es werden nur CAMT-XML- oder ZIP-Dateien unterstützt: {{files}}",
69
+ "fileHint": "camt.053.001.04 und camt.053.001.08 · mehrere Dateien möglich",
70
+ "preview": "Vorschau anzeigen",
71
+ "noPosting": "Vorschau und Import erzeugen keine Buchungssätze.",
72
+ "alreadyImported": "Bereits importiert",
73
+ "period": "Zeitraum",
74
+ "openingBalance": "Anfangssaldo",
75
+ "closingBalance": "Endsaldo",
76
+ "entries": "Buchungen",
77
+ "credits": "Gutschriften",
78
+ "debits": "Belastungen",
79
+ "details": "Transaktionsdetails",
80
+ "batches": "Sammelbuchungen",
81
+ "qrReferences": "QR-Referenzen",
82
+ "mapping": "Bankkonto-Zuordnung",
83
+ "selectBankAccount": "Bankkonto auswählen…",
84
+ "noBankAccounts": "Es wurde noch kein Bankkonto eingerichtet.",
85
+ "createBankAccount": "Bankkonto einrichten",
86
+ "mappingRequired": "Ordnen Sie vor dem Import jeden neuen Auszug einem Bankkonto zu.",
87
+ "import": "Kontoauszüge importieren",
88
+ "importComplete": "Import abgeschlossen",
89
+ "importCounts": "{{imported}} Buchungen importiert, {{duplicates}} Duplikate übersprungen",
90
+ "history": "Letzte Importe",
91
+ "importId": "Import",
92
+ "bankAccount": "Bankkonto",
93
+ "source": "Quelldatei"
94
+ },
62
95
  "smartSearch": {
63
96
  "placeholder": "Suchen oder Feld:Wert eingeben…",
64
97
  "search": "Suchen",
@@ -153,6 +186,10 @@ declare const _default: {
153
186
  "one": "Banktransaktion",
154
187
  "other": "Banktransaktionen"
155
188
  },
189
+ "bank-account": {
190
+ "one": "Bankkonto",
191
+ "other": "Bankkonten"
192
+ },
156
193
  "budget": {
157
194
  "one": "Budget",
158
195
  "other": "Budgets"
@@ -232,6 +269,8 @@ declare const _default: {
232
269
  "Payment Entry": "Zahlung",
233
270
  "Journal Entry": "Buchungssatz",
234
271
  "Bank Transaction": "Banktransaktion",
272
+ "Bank Account": "Bankkonten",
273
+ "Bank Statement Import": "Kontoauszug importieren",
235
274
  "Budget": "Budget",
236
275
  "Subscription": "Abonnement",
237
276
  "Stock Entry": "Lagerbuchung",
@@ -59,6 +59,39 @@ declare const _default: {
59
59
  "endOfThisYear": "End of This Year",
60
60
  "endOfLastYear": "End of Last Year"
61
61
  },
62
+ "bankStatements": {
63
+ "title": "Bank statement import",
64
+ "subtitle": "Preview and import ISO 20022 CAMT statements without posting to the ledger.",
65
+ "selectFiles": "CAMT files",
66
+ "chooseFiles": "Choose XML or ZIP files",
67
+ "dropFiles": "Drop XML or ZIP files here",
68
+ "unsupportedFiles": "Only CAMT XML or ZIP files are supported: {{files}}",
69
+ "fileHint": "camt.053.001.04 and camt.053.001.08 · multiple files supported",
70
+ "preview": "Show preview",
71
+ "noPosting": "Previewing and importing do not post accounting entries.",
72
+ "alreadyImported": "Already imported",
73
+ "period": "Period",
74
+ "openingBalance": "Opening balance",
75
+ "closingBalance": "Closing balance",
76
+ "entries": "Entries",
77
+ "credits": "Credits",
78
+ "debits": "Debits",
79
+ "details": "Transaction details",
80
+ "batches": "batches",
81
+ "qrReferences": "QR references",
82
+ "mapping": "Bank account mapping",
83
+ "selectBankAccount": "Select a Bank Account…",
84
+ "noBankAccounts": "No Bank Account has been configured yet.",
85
+ "createBankAccount": "Create Bank Account",
86
+ "mappingRequired": "Map every new statement to a Bank Account before importing.",
87
+ "import": "Import bank statements",
88
+ "importComplete": "Import completed",
89
+ "importCounts": "{{imported}} entries imported, {{duplicates}} duplicates skipped",
90
+ "history": "Recent imports",
91
+ "importId": "Import",
92
+ "bankAccount": "Bank account",
93
+ "source": "Source file"
94
+ },
62
95
  "smartSearch": {
63
96
  "placeholder": "Search or enter field:value…",
64
97
  "search": "Search",
@@ -153,6 +186,10 @@ declare const _default: {
153
186
  "one": "Bank Transaction",
154
187
  "other": "Bank Transactions"
155
188
  },
189
+ "bank-account": {
190
+ "one": "Bank Account",
191
+ "other": "Bank Accounts"
192
+ },
156
193
  "budget": {
157
194
  "one": "Budget",
158
195
  "other": "Budgets"
@@ -232,6 +269,8 @@ declare const _default: {
232
269
  "Payment Entry": "Payment Entry",
233
270
  "Journal Entry": "Journal Entry",
234
271
  "Bank Transaction": "Bank Transaction",
272
+ "Bank Account": "Bank Accounts",
273
+ "Bank Statement Import": "Bank Statement Import",
235
274
  "Budget": "Budget",
236
275
  "Subscription": "Subscription",
237
276
  "Stock Entry": "Stock Entry",
@@ -59,6 +59,39 @@ declare const _default: {
59
59
  "endOfThisYear": "Fin de l’année en cours",
60
60
  "endOfLastYear": "Fin de l’année dernière"
61
61
  },
62
+ "bankStatements": {
63
+ "title": "Importer un relevé bancaire",
64
+ "subtitle": "Prévisualisez et importez des relevés ISO 20022 CAMT sans écriture comptable automatique.",
65
+ "selectFiles": "Fichiers CAMT",
66
+ "chooseFiles": "Choisir des fichiers XML ou ZIP",
67
+ "dropFiles": "Déposez les fichiers XML ou ZIP ici",
68
+ "unsupportedFiles": "Seuls les fichiers CAMT XML ou ZIP sont acceptés : {{files}}",
69
+ "fileHint": "camt.053.001.04 et camt.053.001.08 · plusieurs fichiers acceptés",
70
+ "preview": "Afficher l’aperçu",
71
+ "noPosting": "L’aperçu et l’importation ne génèrent aucune écriture comptable.",
72
+ "alreadyImported": "Déjà importé",
73
+ "period": "Période",
74
+ "openingBalance": "Solde initial",
75
+ "closingBalance": "Solde final",
76
+ "entries": "Opérations",
77
+ "credits": "Crédits",
78
+ "debits": "Débits",
79
+ "details": "Détails des transactions",
80
+ "batches": "lots",
81
+ "qrReferences": "Références QR",
82
+ "mapping": "Affectation du compte bancaire",
83
+ "selectBankAccount": "Sélectionner un compte bancaire…",
84
+ "noBankAccounts": "Aucun compte bancaire n’a encore été configuré.",
85
+ "createBankAccount": "Configurer un compte bancaire",
86
+ "mappingRequired": "Affectez chaque nouveau relevé à un compte bancaire avant l’importation.",
87
+ "import": "Importer les relevés",
88
+ "importComplete": "Importation terminée",
89
+ "importCounts": "{{imported}} opérations importées, {{duplicates}} doublons ignorés",
90
+ "history": "Importations récentes",
91
+ "importId": "Importation",
92
+ "bankAccount": "Compte bancaire",
93
+ "source": "Fichier source"
94
+ },
62
95
  "smartSearch": {
63
96
  "placeholder": "Rechercher ou saisir champ:valeur…",
64
97
  "search": "Rechercher",
@@ -153,6 +186,10 @@ declare const _default: {
153
186
  "one": "Transaction bancaire",
154
187
  "other": "Transactions bancaires"
155
188
  },
189
+ "bank-account": {
190
+ "one": "Compte bancaire",
191
+ "other": "Comptes bancaires"
192
+ },
156
193
  "budget": {
157
194
  "one": "Budget",
158
195
  "other": "Budgets"
@@ -232,6 +269,8 @@ declare const _default: {
232
269
  "Payment Entry": "Paiement",
233
270
  "Journal Entry": "Écriture comptable",
234
271
  "Bank Transaction": "Transaction bancaire",
272
+ "Bank Account": "Comptes bancaires",
273
+ "Bank Statement Import": "Importer un relevé bancaire",
235
274
  "Budget": "Budget",
236
275
  "Subscription": "Abonnement",
237
276
  "Stock Entry": "Mouvement de stock",