buymeua-api-fe 0.10.0 → 0.11.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
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.11.0] - 2025-11-27
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **BREAKING**: Update StoreInfo.banners structure
|
|
15
|
+
- Changed from flat array to object with desktop and mobile arrays
|
|
16
|
+
- Migration: Use `banners.desktop` or `banners.mobile` instead of `banners`
|
|
17
|
+
- **BREAKING**: Update StorePhone interface structure
|
|
18
|
+
- Changed fields: full, code, number (instead of original, el64, international, national, mobile)
|
|
19
|
+
- Migration: Adapt code to use new field names
|
|
20
|
+
- Update getStoreInfo endpoint to use v2 API
|
|
21
|
+
- Change StoreTemplate.type from union type to string for flexibility
|
|
22
|
+
- Make StoreTemplate.product_id nullable
|
|
23
|
+
|
|
24
|
+
## [0.10.1] - 2025-11-26
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Include CHANGELOG.md in published npm package
|
|
29
|
+
|
|
30
|
+
## [0.10.0] - 2025-11-26
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- Add supplier products endpoints (getSupplierProducts, getSupplierProductDetails)
|
|
35
|
+
- Add supplier product types (GetSupplierProductsRequest, SupplierProductDetails, ProductAttribute)
|
|
36
|
+
- Add TODO markers for duplicate endpoints (getProduct/getProductById)
|
|
37
|
+
- Add Countries API documentation to README (useGetCountriesInfiniteQuery)
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- Improve GetProductsRequest type - specify exact price_type values
|
|
42
|
+
- Add TODO for GetProductDetailsRequest refactoring
|
|
43
|
+
- Exclude dist directory from ESLint linting
|
|
44
|
+
- **BREAKING**: Replace undefined with void in RTK Query request parameters
|
|
45
|
+
- Affected endpoints: registerGuest, logout, deleteCustomerAccount, getCartCount,
|
|
46
|
+
getFavoriteCount, getNotificationsCount, getNewSuppliersCount,
|
|
47
|
+
markAllNotificationsAsRead, deleteAllNotifications
|
|
48
|
+
- Affected optional parameters: getAdPlatforms, getReferralStatistics, getStories
|
|
49
|
+
- Migration: Remove explicit undefined arguments from hook calls
|
|
50
|
+
- Example: `useGetCartCountQuery()` instead of `useGetCartCountQuery(undefined)`
|
|
51
|
+
- Remove useless undefined type aliases across multiple modules
|
|
52
|
+
- auth: LogoutRequest, LogoutResponse, RegisterGuestRequest
|
|
53
|
+
- customer: DeleteCustomerAccountRequest, DeleteCustomerAccountResponse
|
|
54
|
+
- cart: GetCartCountRequest, RemoveItemFromCartResponse, RemoveMerchantFromCartResponse
|
|
55
|
+
- supplier: MarkSupplierAsOldResponse
|
|
56
|
+
- notification: GetNotificationsCountRequest, GetNewSuppliersCountRequest,
|
|
57
|
+
MarkAllNotificationsAsReadRequest, DeleteAllNotificationsRequest
|
|
58
|
+
- favorite: GetFavoriteCountRequest, DeleteFavoriteMerchantItemResponse
|
|
59
|
+
- chat: DeleteChatMessageResponse
|
|
60
|
+
- All replaced with inline undefined in RTK Query endpoints
|
|
61
|
+
- Replace `Partial<{}>` type aliases with interface definitions using optional properties
|
|
62
|
+
- ad: GetAdPlatformsRequest
|
|
63
|
+
- cart: GetCartMerchantsRequest
|
|
64
|
+
- novaposhta: GetNovaposhtaCitiesRequest, GetNovaposhtaStreetsRequest, GetNovaposhtaWarehousesRequest
|
|
65
|
+
- product: GetProductsByQrRequest, GetBestsellersRequest
|
|
66
|
+
- stories: GetStoriesRequest
|
|
67
|
+
|
|
68
|
+
## [0.9.3] - 2025-11-24
|
|
69
|
+
|
|
70
|
+
### Added
|
|
71
|
+
|
|
72
|
+
- Enhance Store interfaces with additional properties and types
|
|
73
|
+
|
|
74
|
+
## [0.9.2] - 2025-11-20
|
|
75
|
+
|
|
76
|
+
### Fixed
|
|
77
|
+
|
|
78
|
+
- Missing build
|
|
79
|
+
|
|
80
|
+
## [0.9.1] - 2025-11-20
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
|
|
84
|
+
- Correct URL for bestsellers endpoint
|
|
85
|
+
|
|
86
|
+
## [0.9.0] - 2025-11-20
|
|
87
|
+
|
|
88
|
+
### Added
|
|
89
|
+
|
|
90
|
+
- Add registerGuest mutation and types for guest registration
|
|
91
|
+
- Extend GetProductsRequest with attribute_filter and filter_product_ids
|
|
92
|
+
|
|
93
|
+
### Changed
|
|
94
|
+
|
|
95
|
+
- Update CHANGELOG.md
|
|
96
|
+
- Update README.md
|
|
97
|
+
|
|
98
|
+
## [0.8.0] - 2025-11-18
|
|
99
|
+
|
|
100
|
+
### Added
|
|
101
|
+
|
|
102
|
+
- Add customer api, account management endpoints and types
|
|
103
|
+
|
|
104
|
+
### Changed
|
|
105
|
+
|
|
106
|
+
- Update CHANGELOG.md
|
|
107
|
+
- Update README.md
|
|
108
|
+
|
|
109
|
+
## [0.7.0] - 2025-11-18
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
|
|
113
|
+
- Add getStoreArticles endpoint and related types
|
|
114
|
+
|
|
115
|
+
### Changed
|
|
116
|
+
|
|
117
|
+
- Update CHANGELOG.md
|
|
118
|
+
- Update README.md
|
|
119
|
+
|
|
120
|
+
## [0.6.0] - 2025-11-17
|
|
121
|
+
|
|
122
|
+
### Changed
|
|
123
|
+
|
|
124
|
+
- Update CHANGELOG.md
|
|
125
|
+
- Update StorePhone interface
|
|
126
|
+
|
|
127
|
+
## [0.5.0] - 2025-11-14
|
|
128
|
+
|
|
129
|
+
### Added
|
|
130
|
+
|
|
131
|
+
- Implement getStoreInfo endpoint and related types
|
|
132
|
+
|
|
133
|
+
### Changed
|
|
134
|
+
|
|
135
|
+
- Update README.md
|
|
136
|
+
- Update CHANGELOG.md
|
|
137
|
+
|
|
138
|
+
## [0.4.0] - 2025-11-14
|
|
139
|
+
|
|
140
|
+
### Added
|
|
141
|
+
|
|
142
|
+
- Add logout endpoint
|
|
143
|
+
|
|
144
|
+
### Changed
|
|
145
|
+
|
|
146
|
+
- Update README.md
|
|
147
|
+
- Update CHANGELOG.md
|
|
148
|
+
- Update ESLint and TypeScript dependencies to latest versions
|
|
149
|
+
|
|
150
|
+
## [0.3.0] - 2025-11-07
|
|
151
|
+
|
|
152
|
+
### Added
|
|
153
|
+
|
|
154
|
+
- Add country API
|
|
155
|
+
|
|
156
|
+
### Changed
|
|
157
|
+
|
|
158
|
+
- Add ESLint rule for unused variables
|
|
159
|
+
- Update CHANGELOG.md
|
|
160
|
+
|
|
161
|
+
## [0.2.0] - 2025-11-06
|
|
162
|
+
|
|
163
|
+
### Changed
|
|
164
|
+
|
|
165
|
+
- Move @reduxjs/toolkit to peerDependencies. @reduxjs/toolkit is now a peer dependency and must be installed separately by the user
|
|
166
|
+
|
|
167
|
+
## [0.1.1] - 2025-11-05
|
|
168
|
+
|
|
169
|
+
### Changed
|
|
170
|
+
|
|
171
|
+
- Bump version
|
|
172
|
+
- Update README
|
|
173
|
+
|
|
174
|
+
### Fixed
|
|
175
|
+
|
|
176
|
+
- Add missing export isValidationError and ValidationError type from shared/api
|
|
177
|
+
|
|
178
|
+
## [0.1.0] - 2025-11-05
|
|
179
|
+
|
|
180
|
+
### Added
|
|
181
|
+
|
|
182
|
+
- Create CHANGELOG.md to document project updates
|
|
183
|
+
- Add ValidationError interface and related utility functions
|
|
184
|
+
- Extract getNextPageParam function for reusable pagination logic across APIs
|
|
185
|
+
- Replace PaginationLinks and PaginationMeta with PaginatedResponse in various entities
|
|
186
|
+
|
|
187
|
+
### Changed
|
|
188
|
+
|
|
189
|
+
- Bump version
|
|
190
|
+
- Update README
|
|
191
|
+
|
|
192
|
+
## [0.0.1] - 2025-11-04
|
|
193
|
+
|
|
194
|
+
### Added
|
|
195
|
+
|
|
196
|
+
-
|
|
197
|
+
|
|
198
|
+
[unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/[latest version / v1.1.1]...HEAD
|
|
199
|
+
[0.0.1]: https://github.com/[username]/[repository]/releases/tag/v0.0.1
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Media } from '../../../shared/model';
|
|
2
2
|
export interface StoreTemplate {
|
|
3
3
|
id: number;
|
|
4
|
-
product_id: number;
|
|
4
|
+
product_id: number | null;
|
|
5
5
|
name: string;
|
|
6
6
|
repository: string;
|
|
7
|
-
type:
|
|
7
|
+
type: string;
|
|
8
8
|
placeholder: string;
|
|
9
9
|
gallery: string[];
|
|
10
10
|
}
|
|
@@ -18,11 +18,9 @@ export interface Store {
|
|
|
18
18
|
store_url: string | null;
|
|
19
19
|
}
|
|
20
20
|
export interface StorePhone {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
national: string;
|
|
25
|
-
mobile: string;
|
|
21
|
+
full: string;
|
|
22
|
+
code: string;
|
|
23
|
+
number: string;
|
|
26
24
|
}
|
|
27
25
|
export interface StoreBanner {
|
|
28
26
|
media_id: number;
|
|
@@ -70,14 +68,6 @@ export interface StoreInfo {
|
|
|
70
68
|
link: string;
|
|
71
69
|
head: unknown;
|
|
72
70
|
body: unknown;
|
|
73
|
-
description: string | null;
|
|
74
|
-
status: string;
|
|
75
|
-
banners: StoreBanner[];
|
|
76
|
-
user: StoreUser;
|
|
77
|
-
store_template: StoreTemplate;
|
|
78
|
-
category: StoreCategory;
|
|
79
|
-
domain: StoreDomain;
|
|
80
|
-
instagram_posts: string[];
|
|
81
71
|
facebook_domain_verification: string | null;
|
|
82
72
|
fb_pixel_id: string | null;
|
|
83
73
|
ga_tracking_id: string | null;
|
|
@@ -86,6 +76,17 @@ export interface StoreInfo {
|
|
|
86
76
|
facebook_url: string | null;
|
|
87
77
|
telegram_url: string | null;
|
|
88
78
|
viber_url: string | null;
|
|
79
|
+
description: string | null;
|
|
80
|
+
status: string;
|
|
81
|
+
banners: {
|
|
82
|
+
desktop: StoreBanner[];
|
|
83
|
+
mobile: StoreBanner[];
|
|
84
|
+
};
|
|
85
|
+
user: StoreUser;
|
|
86
|
+
store_template: StoreTemplate;
|
|
87
|
+
category: StoreCategory;
|
|
88
|
+
domain: StoreDomain;
|
|
89
|
+
instagram_posts: string[];
|
|
89
90
|
}
|
|
90
91
|
export interface GetStoreInfoRequest {
|
|
91
92
|
store: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/store/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/store/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,C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