buymeua-api-fe 0.10.1 → 0.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/CHANGELOG.md +29 -0
- package/README.md +51 -0
- package/dist/entities/favorite/api/favoriteApi.d.ts +2 -0
- package/dist/entities/favorite/api/favoriteApi.d.ts.map +1 -1
- package/dist/entities/order/api/orderApi.d.ts +560 -0
- package/dist/entities/order/api/orderApi.d.ts.map +1 -0
- package/dist/entities/order/api/orderApi.js +56 -0
- package/dist/entities/order/api/orderApi.js.map +1 -0
- package/dist/entities/order/index.d.ts +3 -0
- package/dist/entities/order/index.d.ts.map +1 -0
- package/dist/entities/order/index.js +3 -0
- package/dist/entities/order/index.js.map +1 -0
- package/dist/entities/order/model/types.d.ts +36 -0
- package/dist/entities/order/model/types.d.ts.map +1 -0
- package/dist/entities/order/model/types.js +32 -0
- package/dist/entities/order/model/types.js.map +1 -0
- package/dist/entities/product/api/productApi.d.ts +371 -1
- package/dist/entities/product/api/productApi.d.ts.map +1 -1
- package/dist/entities/product/api/productApi.js +15 -1
- package/dist/entities/product/api/productApi.js.map +1 -1
- package/dist/entities/product/model/types.d.ts +49 -0
- package/dist/entities/product/model/types.d.ts.map +1 -1
- package/dist/entities/store/api/storeApi.js +1 -1
- package/dist/entities/store/model/types.d.ts +16 -15
- package/dist/entities/store/model/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.12.0] - 2025-11-28
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add Order API endpoints:
|
|
15
|
+
- checkTelephone - Validate phone number (blacklist, duplicates)
|
|
16
|
+
- getDeliveryMethods - Get available delivery methods for merchant
|
|
17
|
+
- getPaymentMethods - Get available payment methods for merchant
|
|
18
|
+
- Add Order API types (CheckTelephoneRequest/Response, DeliveryMethod, PaymentMethod, GetDeliveryMethodsRequest/Response, GetPaymentMethodsRequest/Response)
|
|
19
|
+
- Export Order API from main package entry point
|
|
20
|
+
- Add Product filtering endpoints:
|
|
21
|
+
- getProductAttributes - Search product attributes with filtering
|
|
22
|
+
- getProductOptions - Search product options with filtering
|
|
23
|
+
- Add Product filtering types (GetProductAttributesRequest/Response, GetProductOptionsRequest/Response)
|
|
24
|
+
|
|
25
|
+
## [0.11.0] - 2025-11-27
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- **BREAKING**: Update StoreInfo.banners structure
|
|
30
|
+
- Changed from flat array to object with desktop and mobile arrays
|
|
31
|
+
- Migration: Use `banners.desktop` or `banners.mobile` instead of `banners`
|
|
32
|
+
- **BREAKING**: Update StorePhone interface structure
|
|
33
|
+
- Changed fields: full, code, number (instead of original, el64, international, national, mobile)
|
|
34
|
+
- Migration: Adapt code to use new field names
|
|
35
|
+
- Update getStoreInfo endpoint to use v2 API
|
|
36
|
+
- Change StoreTemplate.type from union type to string for flexibility
|
|
37
|
+
- Make StoreTemplate.product_id nullable
|
|
38
|
+
|
|
10
39
|
## [0.10.1] - 2025-11-26
|
|
11
40
|
|
|
12
41
|
### Added
|
package/README.md
CHANGED
|
@@ -158,6 +158,36 @@ const { data } = useGetBestSellersQuery({
|
|
|
158
158
|
// Get product details
|
|
159
159
|
const { data } = useGetProductDetailsQuery({ product: number });
|
|
160
160
|
|
|
161
|
+
// Get product attributes for filtering
|
|
162
|
+
const { data } = useGetProductAttributesQuery({
|
|
163
|
+
search?: string;
|
|
164
|
+
product_id?: number;
|
|
165
|
+
category_id?: number;
|
|
166
|
+
attribute_ids?: number[];
|
|
167
|
+
option_value_filter?: {
|
|
168
|
+
option_value_ids?: number[];
|
|
169
|
+
warehouse_ids?: number[];
|
|
170
|
+
};
|
|
171
|
+
attribute_filter?: {
|
|
172
|
+
attribute_ids?: number[];
|
|
173
|
+
attribute_values?: `${number}:${string}`[];
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
// Get product options for filtering
|
|
178
|
+
const { data } = useGetProductOptionsQuery({
|
|
179
|
+
search?: string;
|
|
180
|
+
product_id?: number;
|
|
181
|
+
category_id?: number;
|
|
182
|
+
option_id?: number;
|
|
183
|
+
option_value_ids?: number[];
|
|
184
|
+
warehouse_ids?: number[];
|
|
185
|
+
attribute_filter?: {
|
|
186
|
+
attribute_ids?: number[];
|
|
187
|
+
attribute_values?: `${number}:${string}`[];
|
|
188
|
+
};
|
|
189
|
+
});
|
|
190
|
+
|
|
161
191
|
// Get supplier products with infinite scroll
|
|
162
192
|
const { data, fetchNextPage, hasNextPage } = useGetSupplierProductsInfiniteQuery({
|
|
163
193
|
core_filter?: string;
|
|
@@ -579,6 +609,27 @@ const { data, fetchNextPage, hasNextPage } = useGetNovaposhtaWarehousesInfiniteQ
|
|
|
579
609
|
});
|
|
580
610
|
```
|
|
581
611
|
|
|
612
|
+
### Orders
|
|
613
|
+
|
|
614
|
+
```typescript
|
|
615
|
+
// Check telephone number (blacklist, duplicates)
|
|
616
|
+
const { data } = useCheckTelephoneQuery({
|
|
617
|
+
telephone: string;
|
|
618
|
+
});
|
|
619
|
+
|
|
620
|
+
// Get delivery methods for merchant
|
|
621
|
+
const { data } = useGetDeliveryMethodsQuery({
|
|
622
|
+
merchant_id: number;
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
// Get payment methods for merchant
|
|
626
|
+
const { data } = useGetPaymentMethodsQuery({
|
|
627
|
+
merchant_id: number;
|
|
628
|
+
custom_ttn?: string;
|
|
629
|
+
delivery_method_code?: string;
|
|
630
|
+
});
|
|
631
|
+
```
|
|
632
|
+
|
|
582
633
|
### Referrals
|
|
583
634
|
|
|
584
635
|
```typescript
|
|
@@ -29,6 +29,8 @@ export declare const favoriteApi: import("@reduxjs/toolkit/query").Api<import("@
|
|
|
29
29
|
getProductStatistics: import("@reduxjs/toolkit/query").QueryDefinition<import("../../product").GetProductStatisticsRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetProductStatisticsResponse, "buymeuaApi", unknown>;
|
|
30
30
|
getBestSellers: import("@reduxjs/toolkit/query").QueryDefinition<import("../../product").GetBestsellersRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetBestsellersResponse, "buymeuaApi", unknown>;
|
|
31
31
|
getProductDetails: import("@reduxjs/toolkit/query").QueryDefinition<import("../../product").GetProductDetailsRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetProductDetailsResponse, "buymeuaApi", unknown>;
|
|
32
|
+
getProductAttributes: import("@reduxjs/toolkit/query").QueryDefinition<void | import("../../product").GetProductAttributesRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetProductAttributesResponse, "buymeuaApi", unknown>;
|
|
33
|
+
getProductOptions: import("@reduxjs/toolkit/query").QueryDefinition<void | import("../../product").GetProductOptionsRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetProductOptionsResponse, "buymeuaApi", unknown>;
|
|
32
34
|
getSupplierProducts: import("@reduxjs/toolkit/query").InfiniteQueryDefinition<import("../../product").GetSupplierProductsRequest, number, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetSupplierProductsResponse, "buymeuaApi", unknown>;
|
|
33
35
|
getSupplierProductDetails: import("@reduxjs/toolkit/query").QueryDefinition<import("../../product").GetSupplierProductDetailsRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, import("../../product").GetSupplierProductDetailsResponse, "buymeuaApi", unknown>;
|
|
34
36
|
}, "Product", never> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favoriteApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/favorite/api/favoriteApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,8BAA8B,EAC9B,+BAA+B,EAE/B,wBAAwB,EACxB,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"favoriteApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/favorite/api/favoriteApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,8BAA8B,EAC9B,+BAA+B,EAE/B,wBAAwB,EACxB,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2SA+ZpB,CAAC;AAEL,eAAO,MACL,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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