@serik_lav/api-fe 0.87.0 → 0.89.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/entities/integrations/api/integrationsApi.d.ts +2427 -0
- package/dist/entities/integrations/api/integrationsApi.d.ts.map +1 -0
- package/dist/entities/integrations/api/integrationsApi.js +132 -0
- package/dist/entities/integrations/api/integrationsApi.js.map +1 -0
- package/dist/entities/integrations/index.d.ts +3 -0
- package/dist/entities/integrations/index.d.ts.map +1 -0
- package/dist/entities/integrations/index.js +3 -0
- package/dist/entities/integrations/index.js.map +1 -0
- package/dist/entities/integrations/model/types.d.ts +199 -0
- package/dist/entities/integrations/model/types.d.ts.map +1 -0
- package/dist/entities/integrations/model/types.js +1 -0
- package/dist/entities/integrations/model/types.js.map +1 -0
- package/dist/entities/order/api/orderApi.d.ts +4 -2
- package/dist/entities/order/api/orderApi.d.ts.map +1 -1
- package/dist/entities/order/api/orderApi.js +24 -0
- package/dist/entities/order/api/orderApi.js.map +1 -1
- package/dist/entities/order/model/types.d.ts +27 -0
- package/dist/entities/order/model/types.d.ts.map +1 -1
- package/dist/entities/order/model/types.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/shared/api/api.d.ts +18 -0
- package/dist/shared/api/api.d.ts.map +1 -1
- package/dist/shared/api/api.js +63 -20
- package/dist/shared/api/api.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.89.0] - 2026-10-21
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `integrationsApi` — інтеграції дропера з площадками (Prom.ua): провайдери, підключення (create/update/delete, sync, import за період), способи оплати площадки, журнал, «Вхідні» замовлення (accept з ручним вибором варіанту, skip). `getIntegrations({ customer_id })` підписується на Reverb-канал `customer.{id}` (`integration.connection.changed`, `integration.inbound-order.changed`) і інвалідує кеш.
|
|
15
|
+
- `orderApi.approveOrder` (`PUT v1/order/{id}/store-approve`) і `orderApi.createIntegrationPaymentLink` (`POST v1/order/{id}/integration-payment-link`); `Order.requires_approval`; тип помилки 402 `ApproveOrderPaymentRequiredError`.
|
|
16
|
+
|
|
17
|
+
## [0.88.0] - 2026-10-19
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `ApiConfig.pusher`: `wsHost` / `wsPort` / `wssPort` / `wsPath` / `forceTLS` / `broadcaster` — підключення до власного Pusher-сумісного сервера (Laravel Reverb). Запит авторизації каналу передає `X-Broadcaster` (за замовчуванням `reverb`), щоб бекенд підписав канал секретом Reverb.
|
|
22
|
+
- `disconnectPusher()` — закрити спільне підключення (вихід з акаунта).
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- `getPusher()`: токен для авторизації каналу береться актуальний на кожен запит (`channelAuthorization.headersProvider`), тож оновлення токена не рве підключення; паралельні виклики отримують один екземпляр.
|
|
27
|
+
|
|
10
28
|
## [0.87.0] - 2026-10-13
|
|
11
29
|
|
|
12
30
|
### Added
|