buymeua-api-fe 0.11.0 → 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 CHANGED
@@ -7,6 +7,21 @@ 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
+
10
25
  ## [0.11.0] - 2025-11-27
11
26
 
12
27
  ### Changed
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2SA+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