@blob-solutions/vcr-am-sdk 0.10.0 → 0.11.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 +16 -0
- package/lib/index.d.cts +10 -0
- package/lib/index.d.ts +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@blob-solutions/vcr-am-sdk`. The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project follows [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [0.11.0] — 2026-05-13
|
|
6
|
+
|
|
7
|
+
### Breaking
|
|
8
|
+
|
|
9
|
+
- `CreateDepartmentInput` now requires `title: { value: LocalizedName; localizationStrategy }` (mirroring `CreateCashierInput.name` and `CreateOfferInput.title`). `value.hy` is required, `value.ru`/`value.en` are optional. The server-side endpoint previously persisted departments without a title, which crashed X/Z reports for any sale that referenced one — the 0.10.0 call shape (`{ taxRegime, externalId? }`) is no longer accepted. Update calls to:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
await client.createDepartment({
|
|
13
|
+
taxRegime: "vat",
|
|
14
|
+
title: {
|
|
15
|
+
value: { hy: "Մթերք", ru: "Продукты", en: "Groceries" },
|
|
16
|
+
localizationStrategy: "translation",
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
5
21
|
## [0.10.0] — 2026-05-02
|
|
6
22
|
|
|
7
23
|
### Breaking
|
package/lib/index.d.cts
CHANGED
|
@@ -436,6 +436,16 @@ type CreateCashierInput = {
|
|
|
436
436
|
type CreateDepartmentInput = {
|
|
437
437
|
externalId?: string;
|
|
438
438
|
taxRegime: TaxRegime;
|
|
439
|
+
/**
|
|
440
|
+
* Department title shown on reports and receipts. `value.hy` is required;
|
|
441
|
+
* `value.ru` and `value.en` are optional and auto-transliterated from
|
|
442
|
+
* `hy` at render time when missing. `localizationStrategy` follows the
|
|
443
|
+
* same shape used by `CreateCashierInput.name` and `CreateOfferInput.title`.
|
|
444
|
+
*/
|
|
445
|
+
title: {
|
|
446
|
+
value: LocalizedName;
|
|
447
|
+
localizationStrategy: "translation" | "transliteration";
|
|
448
|
+
};
|
|
439
449
|
};
|
|
440
450
|
type CreateOfferInputProduct = {
|
|
441
451
|
type: "product";
|
package/lib/index.d.ts
CHANGED
|
@@ -436,6 +436,16 @@ type CreateCashierInput = {
|
|
|
436
436
|
type CreateDepartmentInput = {
|
|
437
437
|
externalId?: string;
|
|
438
438
|
taxRegime: TaxRegime;
|
|
439
|
+
/**
|
|
440
|
+
* Department title shown on reports and receipts. `value.hy` is required;
|
|
441
|
+
* `value.ru` and `value.en` are optional and auto-transliterated from
|
|
442
|
+
* `hy` at render time when missing. `localizationStrategy` follows the
|
|
443
|
+
* same shape used by `CreateCashierInput.name` and `CreateOfferInput.title`.
|
|
444
|
+
*/
|
|
445
|
+
title: {
|
|
446
|
+
value: LocalizedName;
|
|
447
|
+
localizationStrategy: "translation" | "transliteration";
|
|
448
|
+
};
|
|
439
449
|
};
|
|
440
450
|
type CreateOfferInputProduct = {
|
|
441
451
|
type: "product";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blob-solutions/vcr-am-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Official TypeScript/JavaScript SDK for the VCR.AM Virtual Cash Register API — fiscalize sales, refunds, and prepayments through Armenia's State Revenue Committee.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vcr",
|