@lumeo_hq/openbooks-tax 0.2.0 → 0.2.1
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.md +11 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -5,5 +5,15 @@
|
|
|
5
5
|
`restricted: true`. Detection and proof happen in the Python engine; nothing is re-implemented here.
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
|
-
import {
|
|
8
|
+
import { runJobs } from "@lumeo_hq/openbooks-tax";
|
|
9
|
+
|
|
10
|
+
for await (const result of runJobs([
|
|
11
|
+
{ file: "form-26as.csv" },
|
|
12
|
+
{ file: "trial-balance.xlsx", options: { currency: "INR" } },
|
|
13
|
+
])) {
|
|
14
|
+
console.log(result.file, result.kind);
|
|
15
|
+
}
|
|
9
16
|
```
|
|
17
|
+
Install Python 3.11+ and `python -m pip install openbooks`. Use `LAYOUTS` to inspect the supported Form 26AS, AIS, FIRA, Form 1099-B and trial-balance layout IDs. Keep source totals in exports and use one matching sheet per workbook. Handle refusals in a review queue and preserve each released document's evidence.
|
|
18
|
+
|
|
19
|
+
[Tax and workpaper workflow](https://openbooks.lumeo.co.in/docs/tax-and-workpapers)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type RunOptions, type RunResult } from "@lumeo_hq/openbooks-core";
|
|
2
|
-
export type { RunOptions, RunResult, Released, Refused } from "@lumeo_hq/openbooks-core";
|
|
1
|
+
import { type RunJob, type RunOptions, type RunResult } from "@lumeo_hq/openbooks-core";
|
|
2
|
+
export type { DocumentOptions, RunJob, RunOptions, RunResult, Released, Refused } from "@lumeo_hq/openbooks-core";
|
|
3
3
|
export { isReleased, EngineError } from "@lumeo_hq/openbooks-core";
|
|
4
4
|
/** The layouts this package reads. A file that proves out under any other layout comes back refused (UNKNOWN_LAYOUT). */
|
|
5
5
|
export declare const LAYOUTS: readonly ["tds_26as.v1", "ais.v1", "fira.v1", "form_1099b.v1", "trial_balance.v1"];
|
|
6
6
|
/** Tax and ledger documents: Form 26AS, AIS, FIRA, Form 1099-B, trial balance. All experimental. */
|
|
7
7
|
export declare const runFile: (file: string, opts?: RunOptions) => Promise<RunResult>;
|
|
8
8
|
export declare const runFiles: (files: readonly string[], opts?: RunOptions) => Promise<RunResult[]>;
|
|
9
|
+
export declare const runJobs: (jobs: Iterable<RunJob> | AsyncIterable<RunJob>, opts?: RunOptions) => AsyncGenerator<RunResult>;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { runFile as coreRunFile, runFiles as coreRunFiles } from "@lumeo_hq/openbooks-core";
|
|
1
|
+
import { runFile as coreRunFile, runFiles as coreRunFiles, runJobs as coreRunJobs } from "@lumeo_hq/openbooks-core";
|
|
2
2
|
export { isReleased, EngineError } from "@lumeo_hq/openbooks-core";
|
|
3
3
|
/** The layouts this package reads. A file that proves out under any other layout comes back refused (UNKNOWN_LAYOUT). */
|
|
4
4
|
export const LAYOUTS = ["tds_26as.v1", "ais.v1", "fira.v1", "form_1099b.v1", "trial_balance.v1"];
|
|
5
5
|
/** Tax and ledger documents: Form 26AS, AIS, FIRA, Form 1099-B, trial balance. All experimental. */
|
|
6
6
|
export const runFile = (file, opts = {}) => coreRunFile(file, { ...opts, accept: LAYOUTS });
|
|
7
7
|
export const runFiles = (files, opts = {}) => coreRunFiles(files, { ...opts, accept: LAYOUTS });
|
|
8
|
+
export const runJobs = (jobs, opts = {}) => (coreRunJobs(jobs, { ...opts, accept: LAYOUTS }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumeo_hq/openbooks-tax",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Open Books tax wrapper: typed access to the Python engine, restricted to the tax layouts",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"node": ">=20"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lumeo_hq/openbooks-core": "0.2.
|
|
23
|
+
"@lumeo_hq/openbooks-core": "0.2.1"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,QAAQ,IAAI,YAAY,EAAmC,MAAM,iBAAiB,CAAC;AAGpH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1D,yHAAyH;AACzH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,kBAAkB,CAAU,CAAC;AAE1G,oGAAoG;AACpG,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,OAAmB,EAAE,EAAsB,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AACpI,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAE,OAAmB,EAAE,EAAwB,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC"}
|