@v3finance/core-sdk 0.15.0 → 0.16.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 +18 -0
- package/dist/cjs/generated/operations.js +1 -1
- package/dist/cjs/generated/types.d.ts +4 -2
- package/dist/cjs/generated/types.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/resources/exports.d.ts +19 -10
- package/dist/cjs/resources/exports.d.ts.map +1 -1
- package/dist/cjs/resources/exports.js +17 -10
- package/dist/cjs/resources/exports.js.map +1 -1
- package/dist/cjs/resources/reports.d.ts +3 -2
- package/dist/cjs/resources/reports.d.ts.map +1 -1
- package/dist/cjs/resources/reports.js +3 -2
- package/dist/cjs/resources/reports.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/generated/operations.js +1 -1
- package/dist/esm/generated/types.d.ts +4 -2
- package/dist/esm/generated/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/resources/exports.d.ts +19 -10
- package/dist/esm/resources/exports.d.ts.map +1 -1
- package/dist/esm/resources/exports.js +17 -10
- package/dist/esm/resources/exports.js.map +1 -1
- package/dist/esm/resources/reports.d.ts +3 -2
- package/dist/esm/resources/reports.d.ts.map +1 -1
- package/dist/esm/resources/reports.js +3 -2
- package/dist/esm/resources/reports.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/docs/errors.md +4 -3
- package/package.json +1 -1
- package/src/generated/operations.ts +1 -1
- package/src/generated/types.ts +4 -2
- package/src/index.ts +7 -1
- package/src/resources/exports.ts +30 -12
- package/src/resources/reports.ts +3 -2
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this package are documented in this file. The format is based on
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
|
5
5
|
|
|
6
|
+
## 0.16.0 — 2026-11-25
|
|
7
|
+
|
|
8
|
+
Files in the reader's language and for accounting systems. Spec snapshot from the live API (commit `975e281`,
|
|
9
|
+
[v3-finance/policy-engine#63](https://github.com/v3-finance/policy-engine/pull/63)). No operations added or
|
|
10
|
+
removed (250).
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `ExportOptions.lang` (`en` | `ru`) and `ExportOptions.format` (`xlsx` | `csv`); `reports.createExport` takes `lang`.
|
|
15
|
+
- A workbook now holds a printable document, a register, `Data` (stable English columns, codes, signed amounts) and, for
|
|
16
|
+
a report, `Figures` — every figure as a row. `csv` is the `Data` sheet.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **The default language of a file is English** (it was Russian): pass `lang: 'ru'` for Russian. An unknown one is 400
|
|
21
|
+
`INVALID_LANGUAGE`.
|
|
22
|
+
- `exports.report(type, params, options)` takes the same options as the others.
|
|
23
|
+
|
|
6
24
|
## 0.15.0 — 2026-11-25
|
|
7
25
|
|
|
8
26
|
Excel files of lists and reports. Spec snapshot from the live API (commit `9a81462`,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// the API does not slip in unclassified.
|
|
11
11
|
//
|
|
12
12
|
// Operations: 250 · admin: 45 · both: 1 · member: 201 · service: 3
|
|
13
|
-
// Spec sha256:
|
|
13
|
+
// Spec sha256: 18bd9bc695a90be2d39fb997f81af9df580d054b64736ca2bf9e5c95f28edfe5
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OPERATIONS = void 0;
|
|
16
16
|
exports.isAdminOperation = isAdminOperation;
|
|
@@ -5763,9 +5763,11 @@ export interface BalancesAsOfTotal {
|
|
|
5763
5763
|
ownedTotal: string;
|
|
5764
5764
|
}
|
|
5765
5765
|
export interface CreateReportExportBody {
|
|
5766
|
-
/** json — canonical JSON результата; csv — плоский реестр операций; xlsx — книга Excel:
|
|
5766
|
+
/** json — canonical JSON результата; csv — плоский реестр операций; xlsx — книга Excel: отчёт, операции, листы Data и Figures. pdf схема принимает, а хендлер отклоняет: 400 REPORT_UNSUPPORTED_FORMAT */
|
|
5767
5767
|
format: "json" | "csv" | "xlsx" | "pdf";
|
|
5768
|
-
/**
|
|
5768
|
+
/** Язык файла xlsx; по умолчанию en. На json и csv не влияет */
|
|
5769
|
+
lang?: "en" | "ru";
|
|
5770
|
+
/** Зарезервировано: сейчас не влияет на файл; язык задаёт lang */
|
|
5769
5771
|
locale?: string;
|
|
5770
5772
|
/** IANA-пояс дат в файле xlsx; по умолчанию — пояс отчёта. На json и csv не влияет */
|
|
5771
5773
|
timezone?: string;
|