daytona-wildberries-typescript-sdk 3.11.0 → 3.12.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/README.md CHANGED
@@ -41,6 +41,21 @@ Transform 11 OpenAPI specifications into a production-ready SDK with 14 modules,
41
41
  - **💰 Finance v1 Reports** - Sales Reports and Acquiring Reports with `parseMoneyAmount()` helper and field union types for autocomplete
42
42
  - **🔔 Deprecation Utilities** - `warnOnce()` and `resetDeprecationWarnings()` for clean migration workflows
43
43
 
44
+ ## What's New (v3.12.0) — May 2026
45
+
46
+ ⚠️ **Critical migration deadline: 2026-05-20 13:00 MSK** — Wildberries begins disabling the legacy `sku` parameter on seller-warehouse stock endpoints. Migrate now.
47
+
48
+ 🆕 **3 stock methods on `sdk.products`** now accept `chrtId` / `chrtIds` (size IDs from `POST /content/v2/get/cards/list`):
49
+ - `sdk.products.getStocks(warehouseId, { chrtIds })` — preferred path
50
+ - `sdk.products.updateStock(warehouseId, { stocks: [{ chrtId, amount }] })` — per-item migration
51
+ - `sdk.products.deleteStock(warehouseId, { chrtIds })` — preferred path
52
+
53
+ 🔧 **Deprecation handling**: legacy `sku`/`skus` parameters work until 2026-05-20 but emit a one-time `console.warn`. After the deadline: WB returns HTTP 400.
54
+
55
+ 🆕 **4 new types exported**: `StockItem`, `StocksRequest`, `UpdateStockRequest`, `GetStocksResponse`.
56
+
57
+ See [CHANGELOG v3.12.0](#3120---2026-05-14) and the [migration guide](https://salacoste.github.io/daytona-wildberries-typescript-sdk/guides/stocks-sku-to-chrtid-migration) for full details.
58
+
44
59
  ## What's New (v3.11.0) — May 2026
45
60
 
46
61
  🆕 **4 new DBW methods on `sdk.ordersFBW`** — WB disables legacy single-order DBW endpoints on **2026-06-05**; migrate now:
@@ -293,6 +308,21 @@ This is an unofficial SDK. It is not affiliated with, officially maintained by,
293
308
  - **💰 Финансовые Отчеты v1** - Отчеты о продажах и эквайринге с хелпером `parseMoneyAmount()` и union-типами полей для автодополнения
294
309
  - **🔔 Утилиты Для Устаревших Методов** - `warnOnce()` и `resetDeprecationWarnings()` для удобной миграции
295
310
 
311
+ ## Что нового (v3.12.0) — Май 2026
312
+
313
+ ⚠️ **Критический дедлайн миграции: 2026-05-20 13:00 MSK** — Wildberries начинает отключение legacy-параметра `sku` на эндпоинтах остатков склада продавца. Мигрируйте сейчас.
314
+
315
+ 🆕 **3 метода остатков в `sdk.products`** теперь принимают `chrtId` / `chrtIds` (ID размеров из `POST /content/v2/get/cards/list`):
316
+ - `sdk.products.getStocks(warehouseId, { chrtIds })` — рекомендуемый путь
317
+ - `sdk.products.updateStock(warehouseId, { stocks: [{ chrtId, amount }] })` — миграция per-item
318
+ - `sdk.products.deleteStock(warehouseId, { chrtIds })` — рекомендуемый путь
319
+
320
+ 🔧 **Обработка устаревания**: legacy `sku`/`skus` работают до 2026-05-20, но эмитят одноразовый `console.warn`. После дедлайна: WB возвращает HTTP 400.
321
+
322
+ 🆕 **4 новых экспортируемых типа**: `StockItem`, `StocksRequest`, `UpdateStockRequest`, `GetStocksResponse`.
323
+
324
+ Подробности — в [CHANGELOG v3.12.0](#3120---2026-05-14) и в [руководстве по миграции](https://salacoste.github.io/daytona-wildberries-typescript-sdk/guides/stocks-sku-to-chrtid-migration).
325
+
296
326
  ## Что нового (v3.11.0) — Май 2026
297
327
 
298
328
  🆕 **4 новых DBW-метода в `sdk.ordersFBW`** — WB отключает legacy single-order DBW эндпоинты **2026-06-05**; мигрируйте заранее: