buymeua-api-fe 0.23.4 → 0.25.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 +48 -5
- package/dist/entities/auth/api/authApi.d.ts +0 -801
- package/dist/entities/auth/api/authApi.d.ts.map +1 -1
- package/dist/entities/auth/api/authApi.js +6 -5
- package/dist/entities/auth/api/authApi.js.map +1 -1
- package/dist/entities/system/api/systemApi.d.ts +7 -0
- package/dist/entities/system/api/systemApi.d.ts.map +1 -0
- package/dist/entities/system/api/systemApi.js +56 -0
- package/dist/entities/system/api/systemApi.js.map +1 -0
- package/dist/entities/system/index.d.ts +3 -0
- package/dist/entities/system/index.d.ts.map +1 -0
- package/dist/entities/system/index.js +3 -0
- package/dist/entities/system/index.js.map +1 -0
- package/dist/entities/system/model/types.d.ts +55 -0
- package/dist/entities/system/model/types.d.ts.map +1 -0
- package/dist/entities/system/model/types.js +1 -0
- package/dist/entities/system/model/types.js.map +1 -0
- 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 +7 -2
- package/dist/shared/api/api.d.ts.map +1 -1
- package/dist/shared/api/api.js +13 -0
- package/dist/shared/api/api.js.map +1 -1
- package/package.json +3 -2
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.25.0] - 2026-01-29
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix logout endpoint URL (`v1/auth/logout` → `v1/logout`)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Simplify request body spread in auth mutations
|
|
19
|
+
- **BREAKING**: Remove individual hook exports from authApi
|
|
20
|
+
- Migration: Replace `useSignInMutation()` with `authApi.useSignInMutation()`
|
|
21
|
+
|
|
22
|
+
## [0.24.0] - 2026-01-29
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Add Pusher integration with `getPusher()` function for real-time functionality
|
|
27
|
+
- Add `pusher-js` as peer dependency
|
|
28
|
+
- Export `ApiConfig` interface
|
|
29
|
+
- Add System API with endpoints:
|
|
30
|
+
- `getMaintenanceStatus` - system availability with real-time Pusher updates
|
|
31
|
+
- `getVersionCheck` - iOS/Android app versions with real-time Pusher updates
|
|
32
|
+
- `checkTelegramUser` - verify Telegram username existence
|
|
33
|
+
- Add System types with JSDoc documentation
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **BREAKING**: `ApiConfig` now requires `pusher` configuration (`appKey`, `cluster`)
|
|
38
|
+
|
|
10
39
|
## [0.23.4] - 2026-01-26
|
|
11
40
|
|
|
12
41
|
### Fixed
|
package/README.md
CHANGED
|
@@ -36,6 +36,7 @@ pnpm add buymeua-api-fe @reduxjs/toolkit react-redux
|
|
|
36
36
|
- [Ads](#ads)
|
|
37
37
|
- [Countries](#countries)
|
|
38
38
|
- [Store](#store)
|
|
39
|
+
- [System](#system)
|
|
39
40
|
|
|
40
41
|
### 1. Configure API and Setup Redux Store
|
|
41
42
|
|
|
@@ -46,6 +47,10 @@ import { configureBuymeuaApi, Session } from 'buymeua-api-fe';
|
|
|
46
47
|
// Configure API before store setup
|
|
47
48
|
const buymeuaApi = configureBuymeuaApi({
|
|
48
49
|
baseUrl: 'https://api.buymeua.com/',
|
|
50
|
+
pusher: {
|
|
51
|
+
appKey: 'your-pusher-app-key',
|
|
52
|
+
cluster: 'eu',
|
|
53
|
+
},
|
|
49
54
|
prepareHeaders: (headers) => {
|
|
50
55
|
headers.set('Accept', 'application/json');
|
|
51
56
|
headers.set('Content-Type', 'application/json');
|
|
@@ -115,6 +120,21 @@ function ProductList() {
|
|
|
115
120
|
|
|
116
121
|
Configures the global API client.
|
|
117
122
|
|
|
123
|
+
#### `getPusher(): Promise<Pusher>`
|
|
124
|
+
|
|
125
|
+
Returns a shared Pusher instance for real-time subscriptions. Uses lazy initialization.
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import { getPusher } from 'buymeua-api-fe';
|
|
129
|
+
|
|
130
|
+
// Subscribe to a channel
|
|
131
|
+
const pusher = await getPusher();
|
|
132
|
+
const channel = pusher.subscribe('my-channel');
|
|
133
|
+
channel.bind('my-event', (data) => {
|
|
134
|
+
console.log('Received:', data);
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
118
138
|
**Parameters:**
|
|
119
139
|
|
|
120
140
|
- `config.baseUrl` - Base API URL
|
|
@@ -347,21 +367,23 @@ await toggleGift({
|
|
|
347
367
|
### Authentication
|
|
348
368
|
|
|
349
369
|
```typescript
|
|
370
|
+
import { authApi } from 'buymeua-api-fe';
|
|
371
|
+
|
|
350
372
|
// Sign in with phone number
|
|
351
|
-
const [signIn] = useSignInMutation();
|
|
373
|
+
const [signIn] = authApi.useSignInMutation();
|
|
352
374
|
await signIn({
|
|
353
375
|
telephone: string;
|
|
354
376
|
});
|
|
355
377
|
|
|
356
378
|
// Confirm verification code
|
|
357
|
-
const [confirmCode] = useConfirmCodeMutation();
|
|
379
|
+
const [confirmCode] = authApi.useConfirmCodeMutation();
|
|
358
380
|
await confirmCode({
|
|
359
381
|
telephone: string;
|
|
360
382
|
code: string;
|
|
361
383
|
});
|
|
362
384
|
|
|
363
385
|
// Sign up
|
|
364
|
-
const [signUp] = useSignUpMutation();
|
|
386
|
+
const [signUp] = authApi.useSignUpMutation();
|
|
365
387
|
await signUp({
|
|
366
388
|
telephone: string;
|
|
367
389
|
firstname: string;
|
|
@@ -370,11 +392,11 @@ await signUp({
|
|
|
370
392
|
});
|
|
371
393
|
|
|
372
394
|
// Register as guest
|
|
373
|
-
const [registerGuest] = useRegisterGuestMutation();
|
|
395
|
+
const [registerGuest] = authApi.useRegisterGuestMutation();
|
|
374
396
|
const { data } = await registerGuest(); // Returns Customer with token
|
|
375
397
|
|
|
376
398
|
// Logout
|
|
377
|
-
const [logout] = useLogoutMutation();
|
|
399
|
+
const [logout] = authApi.useLogoutMutation();
|
|
378
400
|
await logout();
|
|
379
401
|
```
|
|
380
402
|
|
|
@@ -838,6 +860,27 @@ const { data } = useGetStoreArticlesQuery({
|
|
|
838
860
|
});
|
|
839
861
|
```
|
|
840
862
|
|
|
863
|
+
### System
|
|
864
|
+
|
|
865
|
+
```typescript
|
|
866
|
+
import { systemApi } from 'buymeua-api-fe';
|
|
867
|
+
|
|
868
|
+
// Get maintenance status (with real-time Pusher updates)
|
|
869
|
+
const { data } = systemApi.useGetMaintenanceStatusQuery();
|
|
870
|
+
// data.enable: boolean - true if system is available
|
|
871
|
+
|
|
872
|
+
// Get version check for mobile apps (with real-time Pusher updates)
|
|
873
|
+
const { data } = systemApi.useGetVersionCheckQuery();
|
|
874
|
+
// data.ios.minimumVersion, data.ios.lastUpdatedVersion
|
|
875
|
+
// data.android.minimumVersion, data.android.lastUpdatedVersion
|
|
876
|
+
|
|
877
|
+
// Check if Telegram user exists
|
|
878
|
+
const { data } = systemApi.useCheckTelegramUserQuery({
|
|
879
|
+
telegram_user_name: 'username', // without @
|
|
880
|
+
});
|
|
881
|
+
// data.success: boolean
|
|
882
|
+
```
|
|
883
|
+
|
|
841
884
|
## 📋 TypeScript Types
|
|
842
885
|
|
|
843
886
|
The library is fully typed with TypeScript. Main types:
|
|
@@ -6,805 +6,4 @@ export declare const authApi: import("@reduxjs/toolkit/query").Api<import("@redu
|
|
|
6
6
|
signUp: import("@reduxjs/toolkit/query").MutationDefinition<SignUpRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, SignInResponse, "buymeuaApi", unknown>;
|
|
7
7
|
logout: import("@reduxjs/toolkit/query").MutationDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, undefined, "buymeuaApi", unknown>;
|
|
8
8
|
}, "buymeuaApi", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
9
|
-
export declare const useRegisterGuestMutation: <R extends Record<string, any> = ({
|
|
10
|
-
requestId?: undefined;
|
|
11
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
12
|
-
data?: undefined;
|
|
13
|
-
error?: undefined;
|
|
14
|
-
endpointName?: string;
|
|
15
|
-
startedTimeStamp?: undefined;
|
|
16
|
-
fulfilledTimeStamp?: undefined;
|
|
17
|
-
} & {
|
|
18
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
19
|
-
isUninitialized: true;
|
|
20
|
-
isLoading: false;
|
|
21
|
-
isSuccess: false;
|
|
22
|
-
isError: false;
|
|
23
|
-
}) | ({
|
|
24
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
25
|
-
} & Omit<{
|
|
26
|
-
requestId: string;
|
|
27
|
-
data?: RegisterGuestResponse;
|
|
28
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
29
|
-
endpointName: string;
|
|
30
|
-
startedTimeStamp: number;
|
|
31
|
-
fulfilledTimeStamp?: number;
|
|
32
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
33
|
-
requestId: string;
|
|
34
|
-
data?: RegisterGuestResponse;
|
|
35
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
36
|
-
endpointName: string;
|
|
37
|
-
startedTimeStamp: number;
|
|
38
|
-
fulfilledTimeStamp?: number;
|
|
39
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
40
|
-
error: undefined;
|
|
41
|
-
} & {
|
|
42
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
43
|
-
isUninitialized: false;
|
|
44
|
-
isLoading: false;
|
|
45
|
-
isSuccess: true;
|
|
46
|
-
isError: false;
|
|
47
|
-
}) | ({
|
|
48
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
49
|
-
} & {
|
|
50
|
-
requestId: string;
|
|
51
|
-
data?: RegisterGuestResponse;
|
|
52
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
53
|
-
endpointName: string;
|
|
54
|
-
startedTimeStamp: number;
|
|
55
|
-
fulfilledTimeStamp?: number;
|
|
56
|
-
} & {
|
|
57
|
-
data?: undefined;
|
|
58
|
-
} & {
|
|
59
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
60
|
-
isUninitialized: false;
|
|
61
|
-
isLoading: true;
|
|
62
|
-
isSuccess: false;
|
|
63
|
-
isError: false;
|
|
64
|
-
}) | ({
|
|
65
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
66
|
-
} & Omit<{
|
|
67
|
-
requestId: string;
|
|
68
|
-
data?: RegisterGuestResponse;
|
|
69
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
70
|
-
endpointName: string;
|
|
71
|
-
startedTimeStamp: number;
|
|
72
|
-
fulfilledTimeStamp?: number;
|
|
73
|
-
}, "error"> & Required<Pick<{
|
|
74
|
-
requestId: string;
|
|
75
|
-
data?: RegisterGuestResponse;
|
|
76
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
77
|
-
endpointName: string;
|
|
78
|
-
startedTimeStamp: number;
|
|
79
|
-
fulfilledTimeStamp?: number;
|
|
80
|
-
}, "error">> & {
|
|
81
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
82
|
-
isUninitialized: false;
|
|
83
|
-
isLoading: false;
|
|
84
|
-
isSuccess: false;
|
|
85
|
-
isError: true;
|
|
86
|
-
})>(options?: {
|
|
87
|
-
selectFromResult?: (state: ({
|
|
88
|
-
requestId?: undefined;
|
|
89
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
90
|
-
data?: undefined;
|
|
91
|
-
error?: undefined;
|
|
92
|
-
endpointName?: string;
|
|
93
|
-
startedTimeStamp?: undefined;
|
|
94
|
-
fulfilledTimeStamp?: undefined;
|
|
95
|
-
} & {
|
|
96
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
97
|
-
isUninitialized: true;
|
|
98
|
-
isLoading: false;
|
|
99
|
-
isSuccess: false;
|
|
100
|
-
isError: false;
|
|
101
|
-
}) | ({
|
|
102
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
103
|
-
} & Omit<{
|
|
104
|
-
requestId: string;
|
|
105
|
-
data?: RegisterGuestResponse;
|
|
106
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
107
|
-
endpointName: string;
|
|
108
|
-
startedTimeStamp: number;
|
|
109
|
-
fulfilledTimeStamp?: number;
|
|
110
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
111
|
-
requestId: string;
|
|
112
|
-
data?: RegisterGuestResponse;
|
|
113
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
114
|
-
endpointName: string;
|
|
115
|
-
startedTimeStamp: number;
|
|
116
|
-
fulfilledTimeStamp?: number;
|
|
117
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
118
|
-
error: undefined;
|
|
119
|
-
} & {
|
|
120
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
121
|
-
isUninitialized: false;
|
|
122
|
-
isLoading: false;
|
|
123
|
-
isSuccess: true;
|
|
124
|
-
isError: false;
|
|
125
|
-
}) | ({
|
|
126
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
127
|
-
} & {
|
|
128
|
-
requestId: string;
|
|
129
|
-
data?: RegisterGuestResponse;
|
|
130
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
131
|
-
endpointName: string;
|
|
132
|
-
startedTimeStamp: number;
|
|
133
|
-
fulfilledTimeStamp?: number;
|
|
134
|
-
} & {
|
|
135
|
-
data?: undefined;
|
|
136
|
-
} & {
|
|
137
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
138
|
-
isUninitialized: false;
|
|
139
|
-
isLoading: true;
|
|
140
|
-
isSuccess: false;
|
|
141
|
-
isError: false;
|
|
142
|
-
}) | ({
|
|
143
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
144
|
-
} & Omit<{
|
|
145
|
-
requestId: string;
|
|
146
|
-
data?: RegisterGuestResponse;
|
|
147
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
148
|
-
endpointName: string;
|
|
149
|
-
startedTimeStamp: number;
|
|
150
|
-
fulfilledTimeStamp?: number;
|
|
151
|
-
}, "error"> & Required<Pick<{
|
|
152
|
-
requestId: string;
|
|
153
|
-
data?: RegisterGuestResponse;
|
|
154
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
155
|
-
endpointName: string;
|
|
156
|
-
startedTimeStamp: number;
|
|
157
|
-
fulfilledTimeStamp?: number;
|
|
158
|
-
}, "error">> & {
|
|
159
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
160
|
-
isUninitialized: false;
|
|
161
|
-
isLoading: false;
|
|
162
|
-
isSuccess: false;
|
|
163
|
-
isError: true;
|
|
164
|
-
})) => R;
|
|
165
|
-
fixedCacheKey?: string;
|
|
166
|
-
} | undefined) => readonly [(arg: void) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, RegisterGuestResponse, "buymeuaApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
167
|
-
originalArgs?: void;
|
|
168
|
-
reset: () => void;
|
|
169
|
-
}], useSignInMutation: <R extends Record<string, any> = ({
|
|
170
|
-
requestId?: undefined;
|
|
171
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
172
|
-
data?: undefined;
|
|
173
|
-
error?: undefined;
|
|
174
|
-
endpointName?: string;
|
|
175
|
-
startedTimeStamp?: undefined;
|
|
176
|
-
fulfilledTimeStamp?: undefined;
|
|
177
|
-
} & {
|
|
178
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
179
|
-
isUninitialized: true;
|
|
180
|
-
isLoading: false;
|
|
181
|
-
isSuccess: false;
|
|
182
|
-
isError: false;
|
|
183
|
-
}) | ({
|
|
184
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
185
|
-
} & Omit<{
|
|
186
|
-
requestId: string;
|
|
187
|
-
data?: SignInResponse;
|
|
188
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
189
|
-
endpointName: string;
|
|
190
|
-
startedTimeStamp: number;
|
|
191
|
-
fulfilledTimeStamp?: number;
|
|
192
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
193
|
-
requestId: string;
|
|
194
|
-
data?: SignInResponse;
|
|
195
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
196
|
-
endpointName: string;
|
|
197
|
-
startedTimeStamp: number;
|
|
198
|
-
fulfilledTimeStamp?: number;
|
|
199
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
200
|
-
error: undefined;
|
|
201
|
-
} & {
|
|
202
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
203
|
-
isUninitialized: false;
|
|
204
|
-
isLoading: false;
|
|
205
|
-
isSuccess: true;
|
|
206
|
-
isError: false;
|
|
207
|
-
}) | ({
|
|
208
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
209
|
-
} & {
|
|
210
|
-
requestId: string;
|
|
211
|
-
data?: SignInResponse;
|
|
212
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
213
|
-
endpointName: string;
|
|
214
|
-
startedTimeStamp: number;
|
|
215
|
-
fulfilledTimeStamp?: number;
|
|
216
|
-
} & {
|
|
217
|
-
data?: undefined;
|
|
218
|
-
} & {
|
|
219
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
220
|
-
isUninitialized: false;
|
|
221
|
-
isLoading: true;
|
|
222
|
-
isSuccess: false;
|
|
223
|
-
isError: false;
|
|
224
|
-
}) | ({
|
|
225
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
226
|
-
} & Omit<{
|
|
227
|
-
requestId: string;
|
|
228
|
-
data?: SignInResponse;
|
|
229
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
230
|
-
endpointName: string;
|
|
231
|
-
startedTimeStamp: number;
|
|
232
|
-
fulfilledTimeStamp?: number;
|
|
233
|
-
}, "error"> & Required<Pick<{
|
|
234
|
-
requestId: string;
|
|
235
|
-
data?: SignInResponse;
|
|
236
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
237
|
-
endpointName: string;
|
|
238
|
-
startedTimeStamp: number;
|
|
239
|
-
fulfilledTimeStamp?: number;
|
|
240
|
-
}, "error">> & {
|
|
241
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
242
|
-
isUninitialized: false;
|
|
243
|
-
isLoading: false;
|
|
244
|
-
isSuccess: false;
|
|
245
|
-
isError: true;
|
|
246
|
-
})>(options?: {
|
|
247
|
-
selectFromResult?: (state: ({
|
|
248
|
-
requestId?: undefined;
|
|
249
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
250
|
-
data?: undefined;
|
|
251
|
-
error?: undefined;
|
|
252
|
-
endpointName?: string;
|
|
253
|
-
startedTimeStamp?: undefined;
|
|
254
|
-
fulfilledTimeStamp?: undefined;
|
|
255
|
-
} & {
|
|
256
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
257
|
-
isUninitialized: true;
|
|
258
|
-
isLoading: false;
|
|
259
|
-
isSuccess: false;
|
|
260
|
-
isError: false;
|
|
261
|
-
}) | ({
|
|
262
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
263
|
-
} & Omit<{
|
|
264
|
-
requestId: string;
|
|
265
|
-
data?: SignInResponse;
|
|
266
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
267
|
-
endpointName: string;
|
|
268
|
-
startedTimeStamp: number;
|
|
269
|
-
fulfilledTimeStamp?: number;
|
|
270
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
271
|
-
requestId: string;
|
|
272
|
-
data?: SignInResponse;
|
|
273
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
274
|
-
endpointName: string;
|
|
275
|
-
startedTimeStamp: number;
|
|
276
|
-
fulfilledTimeStamp?: number;
|
|
277
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
278
|
-
error: undefined;
|
|
279
|
-
} & {
|
|
280
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
281
|
-
isUninitialized: false;
|
|
282
|
-
isLoading: false;
|
|
283
|
-
isSuccess: true;
|
|
284
|
-
isError: false;
|
|
285
|
-
}) | ({
|
|
286
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
287
|
-
} & {
|
|
288
|
-
requestId: string;
|
|
289
|
-
data?: SignInResponse;
|
|
290
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
291
|
-
endpointName: string;
|
|
292
|
-
startedTimeStamp: number;
|
|
293
|
-
fulfilledTimeStamp?: number;
|
|
294
|
-
} & {
|
|
295
|
-
data?: undefined;
|
|
296
|
-
} & {
|
|
297
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
298
|
-
isUninitialized: false;
|
|
299
|
-
isLoading: true;
|
|
300
|
-
isSuccess: false;
|
|
301
|
-
isError: false;
|
|
302
|
-
}) | ({
|
|
303
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
304
|
-
} & Omit<{
|
|
305
|
-
requestId: string;
|
|
306
|
-
data?: SignInResponse;
|
|
307
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
308
|
-
endpointName: string;
|
|
309
|
-
startedTimeStamp: number;
|
|
310
|
-
fulfilledTimeStamp?: number;
|
|
311
|
-
}, "error"> & Required<Pick<{
|
|
312
|
-
requestId: string;
|
|
313
|
-
data?: SignInResponse;
|
|
314
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
315
|
-
endpointName: string;
|
|
316
|
-
startedTimeStamp: number;
|
|
317
|
-
fulfilledTimeStamp?: number;
|
|
318
|
-
}, "error">> & {
|
|
319
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
320
|
-
isUninitialized: false;
|
|
321
|
-
isLoading: false;
|
|
322
|
-
isSuccess: false;
|
|
323
|
-
isError: true;
|
|
324
|
-
})) => R;
|
|
325
|
-
fixedCacheKey?: string;
|
|
326
|
-
} | undefined) => readonly [(arg: SignInRequest) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<SignInRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, SignInResponse, "buymeuaApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
327
|
-
originalArgs?: SignInRequest;
|
|
328
|
-
reset: () => void;
|
|
329
|
-
}], useConfirmCodeMutation: <R extends Record<string, any> = ({
|
|
330
|
-
requestId?: undefined;
|
|
331
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
332
|
-
data?: undefined;
|
|
333
|
-
error?: undefined;
|
|
334
|
-
endpointName?: string;
|
|
335
|
-
startedTimeStamp?: undefined;
|
|
336
|
-
fulfilledTimeStamp?: undefined;
|
|
337
|
-
} & {
|
|
338
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
339
|
-
isUninitialized: true;
|
|
340
|
-
isLoading: false;
|
|
341
|
-
isSuccess: false;
|
|
342
|
-
isError: false;
|
|
343
|
-
}) | ({
|
|
344
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
345
|
-
} & Omit<{
|
|
346
|
-
requestId: string;
|
|
347
|
-
data?: ConfirmCodeResponse;
|
|
348
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
349
|
-
endpointName: string;
|
|
350
|
-
startedTimeStamp: number;
|
|
351
|
-
fulfilledTimeStamp?: number;
|
|
352
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
353
|
-
requestId: string;
|
|
354
|
-
data?: ConfirmCodeResponse;
|
|
355
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
356
|
-
endpointName: string;
|
|
357
|
-
startedTimeStamp: number;
|
|
358
|
-
fulfilledTimeStamp?: number;
|
|
359
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
360
|
-
error: undefined;
|
|
361
|
-
} & {
|
|
362
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
363
|
-
isUninitialized: false;
|
|
364
|
-
isLoading: false;
|
|
365
|
-
isSuccess: true;
|
|
366
|
-
isError: false;
|
|
367
|
-
}) | ({
|
|
368
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
369
|
-
} & {
|
|
370
|
-
requestId: string;
|
|
371
|
-
data?: ConfirmCodeResponse;
|
|
372
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
373
|
-
endpointName: string;
|
|
374
|
-
startedTimeStamp: number;
|
|
375
|
-
fulfilledTimeStamp?: number;
|
|
376
|
-
} & {
|
|
377
|
-
data?: undefined;
|
|
378
|
-
} & {
|
|
379
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
380
|
-
isUninitialized: false;
|
|
381
|
-
isLoading: true;
|
|
382
|
-
isSuccess: false;
|
|
383
|
-
isError: false;
|
|
384
|
-
}) | ({
|
|
385
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
386
|
-
} & Omit<{
|
|
387
|
-
requestId: string;
|
|
388
|
-
data?: ConfirmCodeResponse;
|
|
389
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
390
|
-
endpointName: string;
|
|
391
|
-
startedTimeStamp: number;
|
|
392
|
-
fulfilledTimeStamp?: number;
|
|
393
|
-
}, "error"> & Required<Pick<{
|
|
394
|
-
requestId: string;
|
|
395
|
-
data?: ConfirmCodeResponse;
|
|
396
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
397
|
-
endpointName: string;
|
|
398
|
-
startedTimeStamp: number;
|
|
399
|
-
fulfilledTimeStamp?: number;
|
|
400
|
-
}, "error">> & {
|
|
401
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
402
|
-
isUninitialized: false;
|
|
403
|
-
isLoading: false;
|
|
404
|
-
isSuccess: false;
|
|
405
|
-
isError: true;
|
|
406
|
-
})>(options?: {
|
|
407
|
-
selectFromResult?: (state: ({
|
|
408
|
-
requestId?: undefined;
|
|
409
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
410
|
-
data?: undefined;
|
|
411
|
-
error?: undefined;
|
|
412
|
-
endpointName?: string;
|
|
413
|
-
startedTimeStamp?: undefined;
|
|
414
|
-
fulfilledTimeStamp?: undefined;
|
|
415
|
-
} & {
|
|
416
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
417
|
-
isUninitialized: true;
|
|
418
|
-
isLoading: false;
|
|
419
|
-
isSuccess: false;
|
|
420
|
-
isError: false;
|
|
421
|
-
}) | ({
|
|
422
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
423
|
-
} & Omit<{
|
|
424
|
-
requestId: string;
|
|
425
|
-
data?: ConfirmCodeResponse;
|
|
426
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
427
|
-
endpointName: string;
|
|
428
|
-
startedTimeStamp: number;
|
|
429
|
-
fulfilledTimeStamp?: number;
|
|
430
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
431
|
-
requestId: string;
|
|
432
|
-
data?: ConfirmCodeResponse;
|
|
433
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
434
|
-
endpointName: string;
|
|
435
|
-
startedTimeStamp: number;
|
|
436
|
-
fulfilledTimeStamp?: number;
|
|
437
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
438
|
-
error: undefined;
|
|
439
|
-
} & {
|
|
440
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
441
|
-
isUninitialized: false;
|
|
442
|
-
isLoading: false;
|
|
443
|
-
isSuccess: true;
|
|
444
|
-
isError: false;
|
|
445
|
-
}) | ({
|
|
446
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
447
|
-
} & {
|
|
448
|
-
requestId: string;
|
|
449
|
-
data?: ConfirmCodeResponse;
|
|
450
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
451
|
-
endpointName: string;
|
|
452
|
-
startedTimeStamp: number;
|
|
453
|
-
fulfilledTimeStamp?: number;
|
|
454
|
-
} & {
|
|
455
|
-
data?: undefined;
|
|
456
|
-
} & {
|
|
457
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
458
|
-
isUninitialized: false;
|
|
459
|
-
isLoading: true;
|
|
460
|
-
isSuccess: false;
|
|
461
|
-
isError: false;
|
|
462
|
-
}) | ({
|
|
463
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
464
|
-
} & Omit<{
|
|
465
|
-
requestId: string;
|
|
466
|
-
data?: ConfirmCodeResponse;
|
|
467
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
468
|
-
endpointName: string;
|
|
469
|
-
startedTimeStamp: number;
|
|
470
|
-
fulfilledTimeStamp?: number;
|
|
471
|
-
}, "error"> & Required<Pick<{
|
|
472
|
-
requestId: string;
|
|
473
|
-
data?: ConfirmCodeResponse;
|
|
474
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
475
|
-
endpointName: string;
|
|
476
|
-
startedTimeStamp: number;
|
|
477
|
-
fulfilledTimeStamp?: number;
|
|
478
|
-
}, "error">> & {
|
|
479
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
480
|
-
isUninitialized: false;
|
|
481
|
-
isLoading: false;
|
|
482
|
-
isSuccess: false;
|
|
483
|
-
isError: true;
|
|
484
|
-
})) => R;
|
|
485
|
-
fixedCacheKey?: string;
|
|
486
|
-
} | undefined) => readonly [(arg: ConfirmCodeRequest) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<ConfirmCodeRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, ConfirmCodeResponse, "buymeuaApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
487
|
-
originalArgs?: ConfirmCodeRequest;
|
|
488
|
-
reset: () => void;
|
|
489
|
-
}], useSignUpMutation: <R extends Record<string, any> = ({
|
|
490
|
-
requestId?: undefined;
|
|
491
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
492
|
-
data?: undefined;
|
|
493
|
-
error?: undefined;
|
|
494
|
-
endpointName?: string;
|
|
495
|
-
startedTimeStamp?: undefined;
|
|
496
|
-
fulfilledTimeStamp?: undefined;
|
|
497
|
-
} & {
|
|
498
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
499
|
-
isUninitialized: true;
|
|
500
|
-
isLoading: false;
|
|
501
|
-
isSuccess: false;
|
|
502
|
-
isError: false;
|
|
503
|
-
}) | ({
|
|
504
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
505
|
-
} & Omit<{
|
|
506
|
-
requestId: string;
|
|
507
|
-
data?: SignInResponse;
|
|
508
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
509
|
-
endpointName: string;
|
|
510
|
-
startedTimeStamp: number;
|
|
511
|
-
fulfilledTimeStamp?: number;
|
|
512
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
513
|
-
requestId: string;
|
|
514
|
-
data?: SignInResponse;
|
|
515
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
516
|
-
endpointName: string;
|
|
517
|
-
startedTimeStamp: number;
|
|
518
|
-
fulfilledTimeStamp?: number;
|
|
519
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
520
|
-
error: undefined;
|
|
521
|
-
} & {
|
|
522
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
523
|
-
isUninitialized: false;
|
|
524
|
-
isLoading: false;
|
|
525
|
-
isSuccess: true;
|
|
526
|
-
isError: false;
|
|
527
|
-
}) | ({
|
|
528
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
529
|
-
} & {
|
|
530
|
-
requestId: string;
|
|
531
|
-
data?: SignInResponse;
|
|
532
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
533
|
-
endpointName: string;
|
|
534
|
-
startedTimeStamp: number;
|
|
535
|
-
fulfilledTimeStamp?: number;
|
|
536
|
-
} & {
|
|
537
|
-
data?: undefined;
|
|
538
|
-
} & {
|
|
539
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
540
|
-
isUninitialized: false;
|
|
541
|
-
isLoading: true;
|
|
542
|
-
isSuccess: false;
|
|
543
|
-
isError: false;
|
|
544
|
-
}) | ({
|
|
545
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
546
|
-
} & Omit<{
|
|
547
|
-
requestId: string;
|
|
548
|
-
data?: SignInResponse;
|
|
549
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
550
|
-
endpointName: string;
|
|
551
|
-
startedTimeStamp: number;
|
|
552
|
-
fulfilledTimeStamp?: number;
|
|
553
|
-
}, "error"> & Required<Pick<{
|
|
554
|
-
requestId: string;
|
|
555
|
-
data?: SignInResponse;
|
|
556
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
557
|
-
endpointName: string;
|
|
558
|
-
startedTimeStamp: number;
|
|
559
|
-
fulfilledTimeStamp?: number;
|
|
560
|
-
}, "error">> & {
|
|
561
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
562
|
-
isUninitialized: false;
|
|
563
|
-
isLoading: false;
|
|
564
|
-
isSuccess: false;
|
|
565
|
-
isError: true;
|
|
566
|
-
})>(options?: {
|
|
567
|
-
selectFromResult?: (state: ({
|
|
568
|
-
requestId?: undefined;
|
|
569
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
570
|
-
data?: undefined;
|
|
571
|
-
error?: undefined;
|
|
572
|
-
endpointName?: string;
|
|
573
|
-
startedTimeStamp?: undefined;
|
|
574
|
-
fulfilledTimeStamp?: undefined;
|
|
575
|
-
} & {
|
|
576
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
577
|
-
isUninitialized: true;
|
|
578
|
-
isLoading: false;
|
|
579
|
-
isSuccess: false;
|
|
580
|
-
isError: false;
|
|
581
|
-
}) | ({
|
|
582
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
583
|
-
} & Omit<{
|
|
584
|
-
requestId: string;
|
|
585
|
-
data?: SignInResponse;
|
|
586
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
587
|
-
endpointName: string;
|
|
588
|
-
startedTimeStamp: number;
|
|
589
|
-
fulfilledTimeStamp?: number;
|
|
590
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
591
|
-
requestId: string;
|
|
592
|
-
data?: SignInResponse;
|
|
593
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
594
|
-
endpointName: string;
|
|
595
|
-
startedTimeStamp: number;
|
|
596
|
-
fulfilledTimeStamp?: number;
|
|
597
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
598
|
-
error: undefined;
|
|
599
|
-
} & {
|
|
600
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
601
|
-
isUninitialized: false;
|
|
602
|
-
isLoading: false;
|
|
603
|
-
isSuccess: true;
|
|
604
|
-
isError: false;
|
|
605
|
-
}) | ({
|
|
606
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
607
|
-
} & {
|
|
608
|
-
requestId: string;
|
|
609
|
-
data?: SignInResponse;
|
|
610
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
611
|
-
endpointName: string;
|
|
612
|
-
startedTimeStamp: number;
|
|
613
|
-
fulfilledTimeStamp?: number;
|
|
614
|
-
} & {
|
|
615
|
-
data?: undefined;
|
|
616
|
-
} & {
|
|
617
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
618
|
-
isUninitialized: false;
|
|
619
|
-
isLoading: true;
|
|
620
|
-
isSuccess: false;
|
|
621
|
-
isError: false;
|
|
622
|
-
}) | ({
|
|
623
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
624
|
-
} & Omit<{
|
|
625
|
-
requestId: string;
|
|
626
|
-
data?: SignInResponse;
|
|
627
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
628
|
-
endpointName: string;
|
|
629
|
-
startedTimeStamp: number;
|
|
630
|
-
fulfilledTimeStamp?: number;
|
|
631
|
-
}, "error"> & Required<Pick<{
|
|
632
|
-
requestId: string;
|
|
633
|
-
data?: SignInResponse;
|
|
634
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
635
|
-
endpointName: string;
|
|
636
|
-
startedTimeStamp: number;
|
|
637
|
-
fulfilledTimeStamp?: number;
|
|
638
|
-
}, "error">> & {
|
|
639
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
640
|
-
isUninitialized: false;
|
|
641
|
-
isLoading: false;
|
|
642
|
-
isSuccess: false;
|
|
643
|
-
isError: true;
|
|
644
|
-
})) => R;
|
|
645
|
-
fixedCacheKey?: string;
|
|
646
|
-
} | undefined) => readonly [(arg: SignUpRequest) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<SignUpRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, SignInResponse, "buymeuaApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
647
|
-
originalArgs?: SignUpRequest;
|
|
648
|
-
reset: () => void;
|
|
649
|
-
}], useLogoutMutation: <R extends Record<string, any> = ({
|
|
650
|
-
requestId?: undefined;
|
|
651
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
652
|
-
data?: undefined;
|
|
653
|
-
error?: undefined;
|
|
654
|
-
endpointName?: string;
|
|
655
|
-
startedTimeStamp?: undefined;
|
|
656
|
-
fulfilledTimeStamp?: undefined;
|
|
657
|
-
} & {
|
|
658
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
659
|
-
isUninitialized: true;
|
|
660
|
-
isLoading: false;
|
|
661
|
-
isSuccess: false;
|
|
662
|
-
isError: false;
|
|
663
|
-
}) | ({
|
|
664
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
665
|
-
} & Omit<{
|
|
666
|
-
requestId: string;
|
|
667
|
-
data?: undefined;
|
|
668
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
669
|
-
endpointName: string;
|
|
670
|
-
startedTimeStamp: number;
|
|
671
|
-
fulfilledTimeStamp?: number;
|
|
672
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
673
|
-
requestId: string;
|
|
674
|
-
data?: undefined;
|
|
675
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
676
|
-
endpointName: string;
|
|
677
|
-
startedTimeStamp: number;
|
|
678
|
-
fulfilledTimeStamp?: number;
|
|
679
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
680
|
-
error: undefined;
|
|
681
|
-
} & {
|
|
682
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
683
|
-
isUninitialized: false;
|
|
684
|
-
isLoading: false;
|
|
685
|
-
isSuccess: true;
|
|
686
|
-
isError: false;
|
|
687
|
-
}) | ({
|
|
688
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
689
|
-
} & {
|
|
690
|
-
requestId: string;
|
|
691
|
-
data?: undefined;
|
|
692
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
693
|
-
endpointName: string;
|
|
694
|
-
startedTimeStamp: number;
|
|
695
|
-
fulfilledTimeStamp?: number;
|
|
696
|
-
} & {
|
|
697
|
-
data?: undefined;
|
|
698
|
-
} & {
|
|
699
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
700
|
-
isUninitialized: false;
|
|
701
|
-
isLoading: true;
|
|
702
|
-
isSuccess: false;
|
|
703
|
-
isError: false;
|
|
704
|
-
}) | ({
|
|
705
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
706
|
-
} & Omit<{
|
|
707
|
-
requestId: string;
|
|
708
|
-
data?: undefined;
|
|
709
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
710
|
-
endpointName: string;
|
|
711
|
-
startedTimeStamp: number;
|
|
712
|
-
fulfilledTimeStamp?: number;
|
|
713
|
-
}, "error"> & Required<Pick<{
|
|
714
|
-
requestId: string;
|
|
715
|
-
data?: undefined;
|
|
716
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
717
|
-
endpointName: string;
|
|
718
|
-
startedTimeStamp: number;
|
|
719
|
-
fulfilledTimeStamp?: number;
|
|
720
|
-
}, "error">> & {
|
|
721
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
722
|
-
isUninitialized: false;
|
|
723
|
-
isLoading: false;
|
|
724
|
-
isSuccess: false;
|
|
725
|
-
isError: true;
|
|
726
|
-
})>(options?: {
|
|
727
|
-
selectFromResult?: (state: ({
|
|
728
|
-
requestId?: undefined;
|
|
729
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
730
|
-
data?: undefined;
|
|
731
|
-
error?: undefined;
|
|
732
|
-
endpointName?: string;
|
|
733
|
-
startedTimeStamp?: undefined;
|
|
734
|
-
fulfilledTimeStamp?: undefined;
|
|
735
|
-
} & {
|
|
736
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
737
|
-
isUninitialized: true;
|
|
738
|
-
isLoading: false;
|
|
739
|
-
isSuccess: false;
|
|
740
|
-
isError: false;
|
|
741
|
-
}) | ({
|
|
742
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
743
|
-
} & Omit<{
|
|
744
|
-
requestId: string;
|
|
745
|
-
data?: undefined;
|
|
746
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
747
|
-
endpointName: string;
|
|
748
|
-
startedTimeStamp: number;
|
|
749
|
-
fulfilledTimeStamp?: number;
|
|
750
|
-
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
751
|
-
requestId: string;
|
|
752
|
-
data?: undefined;
|
|
753
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
754
|
-
endpointName: string;
|
|
755
|
-
startedTimeStamp: number;
|
|
756
|
-
fulfilledTimeStamp?: number;
|
|
757
|
-
}, "data" | "fulfilledTimeStamp">> & {
|
|
758
|
-
error: undefined;
|
|
759
|
-
} & {
|
|
760
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
761
|
-
isUninitialized: false;
|
|
762
|
-
isLoading: false;
|
|
763
|
-
isSuccess: true;
|
|
764
|
-
isError: false;
|
|
765
|
-
}) | ({
|
|
766
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
767
|
-
} & {
|
|
768
|
-
requestId: string;
|
|
769
|
-
data?: undefined;
|
|
770
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
771
|
-
endpointName: string;
|
|
772
|
-
startedTimeStamp: number;
|
|
773
|
-
fulfilledTimeStamp?: number;
|
|
774
|
-
} & {
|
|
775
|
-
data?: undefined;
|
|
776
|
-
} & {
|
|
777
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
778
|
-
isUninitialized: false;
|
|
779
|
-
isLoading: true;
|
|
780
|
-
isSuccess: false;
|
|
781
|
-
isError: false;
|
|
782
|
-
}) | ({
|
|
783
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
784
|
-
} & Omit<{
|
|
785
|
-
requestId: string;
|
|
786
|
-
data?: undefined;
|
|
787
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
788
|
-
endpointName: string;
|
|
789
|
-
startedTimeStamp: number;
|
|
790
|
-
fulfilledTimeStamp?: number;
|
|
791
|
-
}, "error"> & Required<Pick<{
|
|
792
|
-
requestId: string;
|
|
793
|
-
data?: undefined;
|
|
794
|
-
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError;
|
|
795
|
-
endpointName: string;
|
|
796
|
-
startedTimeStamp: number;
|
|
797
|
-
fulfilledTimeStamp?: number;
|
|
798
|
-
}, "error">> & {
|
|
799
|
-
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
800
|
-
isUninitialized: false;
|
|
801
|
-
isLoading: false;
|
|
802
|
-
isSuccess: false;
|
|
803
|
-
isError: true;
|
|
804
|
-
})) => R;
|
|
805
|
-
fixedCacheKey?: string;
|
|
806
|
-
} | undefined) => readonly [(arg: void) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, undefined, "buymeuaApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
807
|
-
originalArgs?: void;
|
|
808
|
-
reset: () => void;
|
|
809
|
-
}];
|
|
810
9
|
//# sourceMappingURL=authApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/auth/api/authApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,OAAO;;;;;;
|
|
1
|
+
{"version":3,"file":"authApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/auth/api/authApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,OAAO;;;;;;oJAgDlB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { buymeuaApi } from '../../../shared/api';
|
|
|
3
3
|
// TODO: transformResponse
|
|
4
4
|
export const authApi = buymeuaApi.injectEndpoints({
|
|
5
5
|
endpoints: (build) => ({
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
6
7
|
registerGuest: build.mutation({
|
|
7
8
|
query: (_arg) => ({
|
|
8
9
|
url: 'v2/auth/register-guest',
|
|
@@ -13,14 +14,14 @@ export const authApi = buymeuaApi.injectEndpoints({
|
|
|
13
14
|
query: (arg) => ({
|
|
14
15
|
url: 'v5/auth/login',
|
|
15
16
|
method: 'POST',
|
|
16
|
-
body:
|
|
17
|
+
body: arg,
|
|
17
18
|
}),
|
|
18
19
|
}),
|
|
19
20
|
confirmCode: build.mutation({
|
|
20
21
|
query: (arg) => ({
|
|
21
22
|
url: 'v5/auth/confirm-code',
|
|
22
23
|
method: 'POST',
|
|
23
|
-
body:
|
|
24
|
+
body: arg,
|
|
24
25
|
}),
|
|
25
26
|
transformResponse: (baseQueryReturnValue) => {
|
|
26
27
|
return baseQueryReturnValue.data;
|
|
@@ -30,16 +31,16 @@ export const authApi = buymeuaApi.injectEndpoints({
|
|
|
30
31
|
query: (arg) => ({
|
|
31
32
|
url: 'v5/auth/register',
|
|
32
33
|
method: 'POST',
|
|
33
|
-
body:
|
|
34
|
+
body: arg,
|
|
34
35
|
}),
|
|
35
36
|
}),
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
36
38
|
logout: build.mutation({
|
|
37
39
|
query: (_arg) => ({
|
|
38
|
-
url: 'v1/
|
|
40
|
+
url: 'v1/logout',
|
|
39
41
|
method: 'POST',
|
|
40
42
|
}),
|
|
41
43
|
}),
|
|
42
44
|
}),
|
|
43
45
|
});
|
|
44
|
-
export const { useRegisterGuestMutation, useSignInMutation, useConfirmCodeMutation, useSignUpMutation, useLogoutMutation, } = authApi;
|
|
45
46
|
//# sourceMappingURL=authApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authApi.js","sourceRoot":"","sources":["../../../../src/entities/auth/api/authApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAWjD,iBAAiB;AACjB,0BAA0B;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC;IAChD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAA8B;YACzD,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChB,GAAG,EAAE,wBAAwB;gBAC7B,MAAM,EAAE,MAAM;aACf,CAAC;SACH,CAAC;QAEF,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAgC;YACpD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,eAAe;gBACpB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"authApi.js","sourceRoot":"","sources":["../../../../src/entities/auth/api/authApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAWjD,iBAAiB;AACjB,0BAA0B;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC;IAChD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,mEAAmE;QACnE,aAAa,EAAE,KAAK,CAAC,QAAQ,CAA8B;YACzD,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChB,GAAG,EAAE,wBAAwB;gBAC7B,MAAM,EAAE,MAAM;aACf,CAAC;SACH,CAAC;QAEF,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAgC;YACpD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,eAAe;gBACpB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,GAAG;aACV,CAAC;SACH,CAAC;QAEF,WAAW,EAAE,KAAK,CAAC,QAAQ,CAA0C;YACnE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,sBAAsB;gBAC3B,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,GAAG;aACV,CAAC;YAEF,iBAAiB,EAAE,CAAC,oBAEnB,EAAE,EAAE;gBACH,OAAO,oBAAoB,CAAC,IAAI,CAAC;YACnC,CAAC;SACF,CAAC;QAEF,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAgC;YACpD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,kBAAkB;gBACvB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,GAAG;aACV,CAAC;SACH,CAAC;QAEF,mEAAmE;QACnE,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAkB;YACtC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChB,GAAG,EAAE,WAAW;gBAChB,MAAM,EAAE,MAAM;aACf,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckTelegramUserRequest, CheckTelegramUserResponse, GetMaintenanceStatusResponse, GetVersionCheckResponse } from '../model/types';
|
|
2
|
+
export declare const systemApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, {
|
|
3
|
+
getMaintenanceStatus: import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetMaintenanceStatusResponse, "buymeuaApi", unknown>;
|
|
4
|
+
getVersionCheck: import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, GetVersionCheckResponse, "buymeuaApi", unknown>;
|
|
5
|
+
checkTelegramUser: import("@reduxjs/toolkit/query").QueryDefinition<CheckTelegramUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, never, CheckTelegramUserResponse, "buymeuaApi", unknown>;
|
|
6
|
+
}, "buymeuaApi", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
7
|
+
//# sourceMappingURL=systemApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemApi.d.ts","sourceRoot":"","sources":["../../../../src/entities/system/api/systemApi.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EAExB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,SAAS;;;;oJAyEpB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { buymeuaApi } from '../../../shared/api';
|
|
2
|
+
import { getPusher } from '../../../shared/api/api';
|
|
3
|
+
export const systemApi = buymeuaApi.injectEndpoints({
|
|
4
|
+
endpoints: (build) => ({
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
6
|
+
getMaintenanceStatus: build.query({
|
|
7
|
+
query: (_arg) => ({
|
|
8
|
+
url: 'v1/system/maintenance',
|
|
9
|
+
}),
|
|
10
|
+
onCacheEntryAdded: async (_arg, api) => {
|
|
11
|
+
const pusher = await getPusher();
|
|
12
|
+
const channel = pusher.subscribe('system-maintenance');
|
|
13
|
+
await api.cacheDataLoaded;
|
|
14
|
+
channel.bind('system.maintenance', (data) => {
|
|
15
|
+
api.updateCachedData((draft) => {
|
|
16
|
+
draft.enable = data.enable;
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
await api.cacheEntryRemoved;
|
|
20
|
+
// TODO: Check
|
|
21
|
+
channel.unbind('system.maintenance');
|
|
22
|
+
pusher.unsubscribe('system-maintenance');
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
26
|
+
getVersionCheck: build.query({
|
|
27
|
+
query: (_arg) => ({
|
|
28
|
+
url: 'v1/system/version-check',
|
|
29
|
+
}),
|
|
30
|
+
onCacheEntryAdded: async (_arg, api) => {
|
|
31
|
+
const pusher = await getPusher();
|
|
32
|
+
const channel = pusher.subscribe('app.version');
|
|
33
|
+
await api.cacheDataLoaded;
|
|
34
|
+
channel.bind('app.version.changed', (data) => {
|
|
35
|
+
api.updateCachedData((draft) => {
|
|
36
|
+
draft.android = data.android;
|
|
37
|
+
draft.ios = data.ios;
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
await api.cacheEntryRemoved;
|
|
41
|
+
// TODO: Check
|
|
42
|
+
channel.unbind('app.version.changed');
|
|
43
|
+
pusher.unsubscribe('app.version');
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
checkTelegramUser: build.query({
|
|
47
|
+
query: (arg) => ({
|
|
48
|
+
url: 'v1/system/telegram-user-exists',
|
|
49
|
+
method: 'POST',
|
|
50
|
+
body: arg,
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
}),
|
|
54
|
+
overrideExisting: false,
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=systemApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemApi.js","sourceRoot":"","sources":["../../../../src/entities/system/api/systemApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AASpD,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC,eAAe,CAAC;IAClD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,mEAAmE;QACnE,oBAAoB,EAAE,KAAK,CAAC,KAAK,CAAqC;YACpE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChB,GAAG,EAAE,uBAAuB;aAC7B,CAAC;YAEF,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;gBACrC,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;gBAEjC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;gBAEvD,MAAM,GAAG,CAAC,eAAe,CAAC;gBAE1B,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,IAAyB,EAAE,EAAE;oBAC/D,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE;wBAC7B,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;oBAC7B,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,MAAM,GAAG,CAAC,iBAAiB,CAAC;gBAE5B,cAAc;gBACd,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;gBACrC,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;YAC3C,CAAC;SACF,CAAC;QAEF,mEAAmE;QACnE,eAAe,EAAE,KAAK,CAAC,KAAK,CAAgC;YAC1D,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChB,GAAG,EAAE,yBAAyB;aAC/B,CAAC;YAEF,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;gBACrC,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;gBAEjC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;gBAEhD,MAAM,GAAG,CAAC,eAAe,CAAC;gBAE1B,OAAO,CAAC,IAAI,CACV,qBAAqB,EACrB,CAAC,IAAkD,EAAE,EAAE;oBACrD,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE;wBAC7B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;wBAC7B,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;oBACvB,CAAC,CAAC,CAAC;gBACL,CAAC,CACF,CAAC;gBAEF,MAAM,GAAG,CAAC,iBAAiB,CAAC;gBAE5B,cAAc;gBACd,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBACtC,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;YACpC,CAAC;SACF,CAAC;QAEF,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAG5B;YACA,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACf,GAAG,EAAE,gCAAgC;gBACrC,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,GAAG;aACV,CAAC;SACH,CAAC;KACH,CAAC;IAEF,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/system/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/system/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Проверяет статус системы и доступность сервиса. Возвращает флаг enable который показывает доступна ли система для работы. Проверяет лимиты на количество TTN (транспортных накладных) через TtnSumWatcherService. Если лимит превышен - система переходит в режим обслуживания. Используется клиентскими приложениями для определения доступности API.
|
|
3
|
+
*/
|
|
4
|
+
export interface GetMaintenanceStatusResponse {
|
|
5
|
+
/**
|
|
6
|
+
* true - система доступна, false - система в режиме обслуживания (лимит TTN превышен)
|
|
7
|
+
*
|
|
8
|
+
* @example true
|
|
9
|
+
*/
|
|
10
|
+
enable: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface VersionCheck {
|
|
13
|
+
/**
|
|
14
|
+
* Мінімально допустима версія додатку
|
|
15
|
+
*
|
|
16
|
+
* @example "1.0.0"
|
|
17
|
+
*/
|
|
18
|
+
minimumVersion: string;
|
|
19
|
+
/**
|
|
20
|
+
* Остання доступна версія додатку
|
|
21
|
+
*
|
|
22
|
+
* @example "1.2.3"
|
|
23
|
+
*/
|
|
24
|
+
lastUpdatedVersion: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Повертає мінімально допустиму та останню доступну версію для iOS та Android
|
|
28
|
+
*/
|
|
29
|
+
export interface GetVersionCheckResponse {
|
|
30
|
+
ios: VersionCheck;
|
|
31
|
+
android: VersionCheck;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Проверяет существование Telegram аккаунта по username через MadelineProto интеграцию. Используется при регистрации и привязке Telegram аккаунта к профилю пользователя. Проверяет реальное существование пользователя в Telegram для предотвращения ошибок при отправке уведомлений. В случае ошибки взаимодействия с Telegram API возвращает success: false.
|
|
35
|
+
*/
|
|
36
|
+
export interface CheckTelegramUserRequest {
|
|
37
|
+
/**
|
|
38
|
+
* Username пользователя в Telegram (без @)
|
|
39
|
+
*
|
|
40
|
+
* @example "ivan_petrov"
|
|
41
|
+
*/
|
|
42
|
+
telegram_user_name: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Проверка выполнена
|
|
46
|
+
*/
|
|
47
|
+
export interface CheckTelegramUserResponse {
|
|
48
|
+
/**
|
|
49
|
+
* true - пользователь существует в Telegram, false - не существует или ошибка при проверке
|
|
50
|
+
*
|
|
51
|
+
* @example true
|
|
52
|
+
*/
|
|
53
|
+
success: boolean;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/entities/system/model/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,YAAY,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/entities/system/model/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './entities/referral';
|
|
|
14
14
|
export * from './entities/store';
|
|
15
15
|
export * from './entities/stories';
|
|
16
16
|
export * from './entities/supplier';
|
|
17
|
-
export
|
|
17
|
+
export * from './entities/system';
|
|
18
|
+
export { type ApiConfig, configureBuymeuaApi, getPusher, type ValidationError, isValidationError, } from './shared/api';
|
|
18
19
|
export * from './shared/model';
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,KAAK,SAAS,EACd,mBAAmB,EACnB,SAAS,EACT,KAAK,eAAe,EACpB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from './entities/referral';
|
|
|
15
15
|
export * from './entities/store';
|
|
16
16
|
export * from './entities/stories';
|
|
17
17
|
export * from './entities/supplier';
|
|
18
|
-
export
|
|
18
|
+
export * from './entities/system';
|
|
19
|
+
export { configureBuymeuaApi, getPusher, isValidationError, } from './shared/api';
|
|
19
20
|
export * from './shared/model';
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAEL,mBAAmB,EACnB,SAAS,EAET,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
package/dist/shared/api/api.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type BaseQueryApi, type BaseQueryFn, type FetchArgs, type FetchBaseQueryError } from '@reduxjs/toolkit/query/react';
|
|
2
|
-
|
|
2
|
+
import Pusher from 'pusher-js';
|
|
3
|
+
export interface ApiConfig {
|
|
3
4
|
baseUrl: string;
|
|
5
|
+
pusher: {
|
|
6
|
+
appKey: string;
|
|
7
|
+
cluster: string;
|
|
8
|
+
};
|
|
4
9
|
prepareHeaders: (headers: Headers, api: Pick<BaseQueryApi, 'getState' | 'extra' | 'endpoint' | 'type' | 'forced'> & {
|
|
5
10
|
arg: string | FetchArgs;
|
|
6
11
|
extraOptions: unknown;
|
|
@@ -9,5 +14,5 @@ interface ApiConfig {
|
|
|
9
14
|
}
|
|
10
15
|
export declare const buymeuaApi: import("@reduxjs/toolkit/query").Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {}, "buymeuaApi", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
11
16
|
export declare const configureBuymeuaApi: (config: ApiConfig) => import("@reduxjs/toolkit/query").Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {}, "buymeuaApi", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
12
|
-
export
|
|
17
|
+
export declare const getPusher: () => Promise<Pusher>;
|
|
13
18
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/shared/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/shared/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,SAAS;IAExB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,EAAE,CACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,IAAI,CACP,YAAY,EACZ,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CACtD,GAAG;QACF,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;QACxB,YAAY,EAAE,OAAO,CAAC;KACvB,KACE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,CACf,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,OAAO,KAClB,IAAI,CAAC;CACX;AAyCD,eAAO,MAAM,UAAU,2PAIrB,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,8PAOpD,CAAC;AAIF,eAAO,MAAM,SAAS,QAAa,OAAO,CAAC,MAAM,CAYhD,CAAC"}
|
package/dist/shared/api/api.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createApi, fetchBaseQuery, } from '@reduxjs/toolkit/query/react';
|
|
2
|
+
import Pusher from 'pusher-js';
|
|
2
3
|
let currentConfig = null;
|
|
3
4
|
let resolveConfig = null;
|
|
4
5
|
const configReady = new Promise((res) => {
|
|
@@ -32,4 +33,16 @@ export const configureBuymeuaApi = (config) => {
|
|
|
32
33
|
resolveConfig?.(config);
|
|
33
34
|
return buymeuaApi;
|
|
34
35
|
};
|
|
36
|
+
let pusherInstance = null;
|
|
37
|
+
export const getPusher = async () => {
|
|
38
|
+
if (pusherInstance)
|
|
39
|
+
return pusherInstance;
|
|
40
|
+
const apiConfig = await configReady;
|
|
41
|
+
pusherInstance = new Pusher(apiConfig.pusher.appKey, {
|
|
42
|
+
cluster: apiConfig.pusher.cluster,
|
|
43
|
+
authEndpoint: `${apiConfig.baseUrl}broadcasting/auth`,
|
|
44
|
+
// TODO: Auth property?
|
|
45
|
+
});
|
|
46
|
+
return pusherInstance;
|
|
47
|
+
};
|
|
35
48
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/shared/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,GAKf,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/shared/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,GAKf,MAAM,8BAA8B,CAAC;AACtC,OAAO,MAAM,MAAM,WAAW,CAAC;AA0B/B,IAAI,aAAa,GAAqB,IAAI,CAAC;AAC3C,IAAI,aAAa,GAAyC,IAAI,CAAC;AAE/D,MAAM,WAAW,GAAG,IAAI,OAAO,CAAY,CAAC,GAAG,EAAE,EAAE;IACjD,aAAa,GAAG,GAAG,CAAC;AACtB,CAAC,CAAC,CAAC;AAEH,IAAI,eAAe,GAIR,IAAI,CAAC;AAEhB,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;IAC9B,IAAI,eAAe;QAAE,OAAO,eAAe,CAAC;IAE5C,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC;IAEjC,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAEzC,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAIrB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE;IACpC,MAAM,GAAG,GAAG,MAAM,YAAY,EAAE,CAAC,CAAC,iCAAiC;IAEnE,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC;IAElD,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,cAAc,EAAE,CAAC;QAClE,aAAa,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC;IAClC,WAAW,EAAE,YAAY;IACzB,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACvD,IAAI,aAAa;QAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAErE,aAAa,GAAG,MAAM,CAAC;IACvB,aAAa,EAAE,CAAC,MAAM,CAAC,CAAC;IAExB,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,IAAI,cAAc,GAAkB,IAAI,CAAC;AAEzC,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,IAAqB,EAAE;IACnD,IAAI,cAAc;QAAE,OAAO,cAAc,CAAC;IAE1C,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC;IAEpC,cAAc,GAAG,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE;QACnD,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;QACjC,YAAY,EAAE,GAAG,SAAS,CAAC,OAAO,mBAAmB;QACrD,uBAAuB;KACxB,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"CHANGELOG.md"
|
|
13
13
|
],
|
|
14
14
|
"name": "buymeua-api-fe",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.25.0",
|
|
16
16
|
"description": "",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"author": "Denys Hrychulevych",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"typescript-eslint": "^8.46.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@reduxjs/toolkit": "2.11.2"
|
|
33
|
+
"@reduxjs/toolkit": "2.11.2",
|
|
34
|
+
"pusher-js": "^8.4.0"
|
|
34
35
|
}
|
|
35
36
|
}
|