@moatless/bookkeeping 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moatless/bookkeeping",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,7 +10,9 @@
10
10
  "directory": "packages/bookkeeping"
11
11
  },
12
12
  "main": "dist/index.js",
13
- "files": ["dist"],
13
+ "files": [
14
+ "dist"
15
+ ],
14
16
  "types": "dist/index.d.ts",
15
17
  "scripts": {
16
18
  "build": "tsc",
@@ -20,9 +22,9 @@
20
22
  "test:coverage": "bun test --coverage"
21
23
  },
22
24
  "dependencies": {
23
- "@moatless/api-client": "workspace:*",
24
- "@moatless/fortnox-client": "workspace:*",
25
- "@moatless/bokio-client": "workspace:*",
25
+ "@moatless/api-client": "^0.1.2",
26
+ "@moatless/fortnox-client": "^0.1.2",
27
+ "@moatless/bokio-client": "^0.1.2",
26
28
  "cli-progress": "^3.12.0",
27
29
  "open": "^10.1.0",
28
30
  "simple-git": "^3.22.0",
@@ -1,61 +0,0 @@
1
- /**
2
- * Exported document format - optimized for Git-based workflow
3
- * Using camelCase for TypeScript compatibility
4
- *
5
- * This format is designed for human-readable YAML exports stored in Git repositories.
6
- * It removes database-specific metadata (UUIDs, timestamps, sync data) and focuses
7
- * on the document content and parsed data. Git provides version history and timestamps.
8
- */
9
- /**
10
- * Monetary amount with currency
11
- * Amount is stored as a string to preserve precision
12
- */
13
- export interface ExportedMoneyAmount {
14
- amount: string;
15
- currency: string;
16
- }
17
- /**
18
- * Tax detail line item
19
- */
20
- export interface ExportedTaxDetail {
21
- rate: number;
22
- amount: string;
23
- description?: string;
24
- }
25
- /**
26
- * Document kind/type
27
- */
28
- export type DocumentKind = "RECEIPT" | "SUPPLIER_INVOICE" | "CUSTOMER_INVOICE" | "TRAKTAMENTE" | "OTHER";
29
- /**
30
- * Document status in workflow
31
- */
32
- export type DocumentStatus = "DRAFT" | "REVIEWED" | "READY_TO_EXPORT" | "EXPORTED" | "ERROR" | "DISCARDED" | "POSTED";
33
- /**
34
- * Complete exported document with parsed data
35
- *
36
- * Git-based workflow assumptions:
37
- * - Creation/update timestamps: Use git log
38
- * - Author information: Use git commit author
39
- * - File location: Same directory as YAML file
40
- * - Organization context: Repository structure
41
- */
42
- export interface ExportedDocument {
43
- kind: DocumentKind;
44
- status: DocumentStatus;
45
- fileName: string;
46
- mimeType: string;
47
- documentDate?: string;
48
- documentNumber?: string;
49
- description?: string;
50
- counterparty?: string;
51
- totalAmount?: ExportedMoneyAmount;
52
- totalTaxAmount?: ExportedMoneyAmount;
53
- subTotal?: ExportedMoneyAmount;
54
- taxDetails?: ExportedTaxDetail[];
55
- dueDate?: string;
56
- currencyRate?: number;
57
- vendorTaxId?: string;
58
- interpretationError?: string;
59
- sourceIntegration?: "fortnox" | "bokio";
60
- sourceId?: string;
61
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Exported document format - optimized for Git-based workflow
3
- * Using camelCase for TypeScript compatibility
4
- *
5
- * This format is designed for human-readable YAML exports stored in Git repositories.
6
- * It removes database-specific metadata (UUIDs, timestamps, sync data) and focuses
7
- * on the document content and parsed data. Git provides version history and timestamps.
8
- */
9
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Exported fiscal year structure for Git storage (YAML format)
3
- */
4
- export interface ExportedFiscalYear {
5
- name: string;
6
- startDate: string;
7
- endDate: string;
8
- status: "OPEN" | "CLOSED";
9
- externalId?: string;
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * Exported inbox document format - extends ExportedDocument for Git workflow
3
- *
4
- * Inbox documents are documents that haven't been fully processed yet:
5
- * - Not yet linked to a journal entry (journal_entry_id IS NULL), OR
6
- * - Linked to a DRAFT journal entry (not yet posted)
7
- *
8
- * This format includes source tracking and optional suggested journal entries.
9
- */
10
- import type { ExportedDocument } from "./exported-document";
11
- export interface ExportedInboxDocument extends ExportedDocument {
12
- uploadedAt?: string;
13
- interpretedAt?: string;
14
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Exported inbox document format - extends ExportedDocument for Git workflow
3
- *
4
- * Inbox documents are documents that haven't been fully processed yet:
5
- * - Not yet linked to a journal entry (journal_entry_id IS NULL), OR
6
- * - Linked to a DRAFT journal entry (not yet posted)
7
- *
8
- * This format includes source tracking and optional suggested journal entries.
9
- */
10
- export {};