buymeua-api-fe 0.19.3 → 0.20.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 +25 -0
- package/README.md +22 -0
- package/dist/entities/order/api/orderApi.d.ts +885 -49
- package/dist/entities/order/api/orderApi.d.ts.map +1 -1
- package/dist/entities/order/api/orderApi.js +33 -3
- package/dist/entities/order/api/orderApi.js.map +1 -1
- package/dist/entities/order/model/types.d.ts +469 -3
- package/dist/entities/order/model/types.d.ts.map +1 -1
- package/dist/entities/product/model/types.d.ts +112 -1
- package/dist/entities/product/model/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.20.0] - 2025-12-30
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add getOrders endpoint for fetching customer orders
|
|
15
|
+
- Add Order, OrderProduct, OrderProductOption types
|
|
16
|
+
- Add GetOrdersRequest and GetOrdersResponse types
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **BREAKING**: Update CreateOrderResponse types
|
|
21
|
+
- Change payment type from number to string | null
|
|
22
|
+
- Change ttn type from string to string | null
|
|
23
|
+
- Add payment_transaction_id field for online payments tracking
|
|
24
|
+
- Add url field for payment redirect
|
|
25
|
+
- Add order_id field for store orders
|
|
26
|
+
- Add products array with order items details
|
|
27
|
+
- Add address field with full delivery address
|
|
28
|
+
- Add estimate field with delivery timeframe
|
|
29
|
+
- Add total and total_formatted fields with order amount
|
|
30
|
+
- **BREAKING**: Update PaymentMethod type to include description field (changed from type alias to interface)
|
|
31
|
+
- Add JSDoc documentation with examples for order types
|
|
32
|
+
- Fix attribute_filter type in GetProductsRequest (remove template literal type)
|
|
33
|
+
- Fix filter_order_status_id field name in GetOrdersRequest (remove brackets from field name)
|
|
34
|
+
|
|
10
35
|
## [0.19.3] - 2025-12-22
|
|
11
36
|
|
|
12
37
|
### Changed
|
package/README.md
CHANGED
|
@@ -647,6 +647,28 @@ const { data, fetchNextPage, hasNextPage } = useGetNovaposhtaWarehousesInfiniteQ
|
|
|
647
647
|
### Orders
|
|
648
648
|
|
|
649
649
|
```typescript
|
|
650
|
+
// Get orders list with infinite scroll
|
|
651
|
+
const { data, fetchNextPage, hasNextPage } = useGetOrdersInfiniteQuery({
|
|
652
|
+
search?: string;
|
|
653
|
+
filter_order_id?: number;
|
|
654
|
+
filter_customer_id?: number;
|
|
655
|
+
filter_is_ttn_custom?: boolean;
|
|
656
|
+
filter_drop_name?: string;
|
|
657
|
+
filter_date_added?: string;
|
|
658
|
+
filter_drop_email?: string;
|
|
659
|
+
filter_customer_telephone?: string;
|
|
660
|
+
filter_customer_name?: string;
|
|
661
|
+
filter_drop_telephone?: string;
|
|
662
|
+
filter_email?: string;
|
|
663
|
+
filter_old_novaposhta_cn_number?: string;
|
|
664
|
+
filter_novaposhta_cn_number?: string;
|
|
665
|
+
filter_order_status_id?: number[];
|
|
666
|
+
filter_products_model?: string;
|
|
667
|
+
filter_products_name?: string;
|
|
668
|
+
filter_with_store?: boolean;
|
|
669
|
+
filter_without_store?: boolean;
|
|
670
|
+
});
|
|
671
|
+
|
|
650
672
|
// Check telephone number (blacklist, duplicates)
|
|
651
673
|
const { data } = useCheckTelephoneQuery({
|
|
652
674
|
telephone: string;
|