@9aro/calorie-api 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,1422 @@
1
+ import * as axios from 'axios';
2
+ import { AxiosError, AxiosRequestConfig } from 'axios';
3
+ import { UseMutationOptions, UseQueryOptions, DataTag, QueryKey, QueryClient, UseMutationResult, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult } from '@tanstack/react-query';
4
+
5
+ /** Shared by every generated request. Configure before rendering the app. */
6
+ declare const apiClient: axios.AxiosInstance;
7
+ declare function apiRequest<T>(config: AxiosRequestConfig, options?: AxiosRequestConfig): Promise<T>;
8
+ type ErrorType<T> = AxiosError<T>;
9
+ type BodyType<T> = T;
10
+
11
+ /**
12
+ * Generated by orval 🍺
13
+ * Do not edit manually.
14
+ * Calorie Counter API
15
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
16
+ * OpenAPI spec version: 1.0
17
+ */
18
+ interface AuthTokenPair {
19
+ access_token?: string;
20
+ refresh_token?: string;
21
+ }
22
+
23
+ type AuthTokens = Required<AuthTokenPair>;
24
+ /** Synchronous store; replace both tokens together when possible. */
25
+ interface AuthTokenStore {
26
+ getTokens(): AuthTokens | null;
27
+ setTokens(tokens: AuthTokens): void;
28
+ clearTokens(): void;
29
+ }
30
+ interface ConfigureAuthOptions {
31
+ /** Defaults to localStorage keys access_token and refresh_token. */
32
+ tokenStore?: AuthTokenStore;
33
+ /** Called after credentials are rejected. Use to clear query caches / sign out. */
34
+ onAuthError?: (error: unknown) => void;
35
+ }
36
+ /** Install once before requests; returns cleanup for HMR / teardown. */
37
+ declare function configureAuth(options?: ConfigureAuthOptions): () => void;
38
+
39
+ /**
40
+ * Generated by orval 🍺
41
+ * Do not edit manually.
42
+ * Calorie Counter API
43
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
44
+ * OpenAPI spec version: 1.0
45
+ */
46
+ interface AuthUserResponse {
47
+ created_at?: string;
48
+ email?: string;
49
+ id?: number;
50
+ name?: string;
51
+ /** @nullable */
52
+ username?: string | null;
53
+ }
54
+
55
+ /**
56
+ * Generated by orval 🍺
57
+ * Do not edit manually.
58
+ * Calorie Counter API
59
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
60
+ * OpenAPI spec version: 1.0
61
+ */
62
+
63
+ interface AuthAuthResult {
64
+ access_token?: string;
65
+ refresh_token?: string;
66
+ user?: AuthUserResponse;
67
+ }
68
+
69
+ /**
70
+ * Generated by orval 🍺
71
+ * Do not edit manually.
72
+ * Calorie Counter API
73
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
74
+ * OpenAPI spec version: 1.0
75
+ */
76
+ interface AuthLoginRequest {
77
+ login?: string;
78
+ password?: string;
79
+ }
80
+
81
+ /**
82
+ * Generated by orval 🍺
83
+ * Do not edit manually.
84
+ * Calorie Counter API
85
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
86
+ * OpenAPI spec version: 1.0
87
+ */
88
+ /**
89
+ * @nullable
90
+ */
91
+ type AuthProfileResponseActivityLevel = typeof AuthProfileResponseActivityLevel[keyof typeof AuthProfileResponseActivityLevel] | null;
92
+ declare const AuthProfileResponseActivityLevel: {
93
+ readonly low: "low";
94
+ readonly moderate: "moderate";
95
+ readonly high: "high";
96
+ };
97
+
98
+ /**
99
+ * Generated by orval 🍺
100
+ * Do not edit manually.
101
+ * Calorie Counter API
102
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
103
+ * OpenAPI spec version: 1.0
104
+ */
105
+ /**
106
+ * @nullable
107
+ */
108
+ type AuthProfileResponseSex = typeof AuthProfileResponseSex[keyof typeof AuthProfileResponseSex] | null;
109
+ declare const AuthProfileResponseSex: {
110
+ readonly male: "male";
111
+ readonly female: "female";
112
+ };
113
+
114
+ /**
115
+ * Generated by orval 🍺
116
+ * Do not edit manually.
117
+ * Calorie Counter API
118
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
119
+ * OpenAPI spec version: 1.0
120
+ */
121
+
122
+ interface AuthProfileResponse {
123
+ /** @nullable */
124
+ activity_level?: AuthProfileResponseActivityLevel;
125
+ /** @nullable */
126
+ birth_date?: string | null;
127
+ created_at?: string;
128
+ email?: string;
129
+ /** @nullable */
130
+ height_cm?: number | null;
131
+ id?: number;
132
+ is_need_onboarding: boolean;
133
+ name?: string;
134
+ /** @nullable */
135
+ sex?: AuthProfileResponseSex;
136
+ /** @nullable */
137
+ target_weight_kg?: number | null;
138
+ /** @nullable */
139
+ username?: string | null;
140
+ /** @nullable */
141
+ weekly_rate_kg?: number | null;
142
+ /** @nullable */
143
+ weight_kg?: number | null;
144
+ }
145
+
146
+ /**
147
+ * Generated by orval 🍺
148
+ * Do not edit manually.
149
+ * Calorie Counter API
150
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
151
+ * OpenAPI spec version: 1.0
152
+ */
153
+ interface AuthRegisterRequest {
154
+ email?: string;
155
+ name?: string;
156
+ password?: string;
157
+ username?: string;
158
+ }
159
+
160
+ /**
161
+ * Generated by orval 🍺
162
+ * Do not edit manually.
163
+ * Calorie Counter API
164
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
165
+ * OpenAPI spec version: 1.0
166
+ */
167
+ interface AuthTelegramLoginRequest {
168
+ initData?: string;
169
+ }
170
+
171
+ /**
172
+ * Generated by orval 🍺
173
+ * Do not edit manually.
174
+ * Calorie Counter API
175
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
176
+ * OpenAPI spec version: 1.0
177
+ */
178
+ type AuthUpdateProfileRequestActivityLevel = typeof AuthUpdateProfileRequestActivityLevel[keyof typeof AuthUpdateProfileRequestActivityLevel];
179
+ declare const AuthUpdateProfileRequestActivityLevel: {
180
+ readonly low: "low";
181
+ readonly moderate: "moderate";
182
+ readonly high: "high";
183
+ };
184
+
185
+ /**
186
+ * Generated by orval 🍺
187
+ * Do not edit manually.
188
+ * Calorie Counter API
189
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
190
+ * OpenAPI spec version: 1.0
191
+ */
192
+ type AuthUpdateProfileRequestSex = typeof AuthUpdateProfileRequestSex[keyof typeof AuthUpdateProfileRequestSex];
193
+ declare const AuthUpdateProfileRequestSex: {
194
+ readonly male: "male";
195
+ readonly female: "female";
196
+ };
197
+
198
+ /**
199
+ * Generated by orval 🍺
200
+ * Do not edit manually.
201
+ * Calorie Counter API
202
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
203
+ * OpenAPI spec version: 1.0
204
+ */
205
+
206
+ interface AuthUpdateProfileRequest {
207
+ activity_level?: AuthUpdateProfileRequestActivityLevel;
208
+ birth_date?: string;
209
+ /**
210
+ * @minimum 50
211
+ * @maximum 300
212
+ */
213
+ height_cm?: number;
214
+ name?: string;
215
+ sex?: AuthUpdateProfileRequestSex;
216
+ /**
217
+ * @minimum 0.01
218
+ * @maximum 999.99
219
+ */
220
+ target_weight_kg?: number;
221
+ username?: string;
222
+ /**
223
+ * @minimum 0.1
224
+ * @maximum 1
225
+ */
226
+ weekly_rate_kg?: number;
227
+ /**
228
+ * @minimum 20
229
+ * @maximum 500
230
+ */
231
+ weight_kg?: number;
232
+ }
233
+
234
+ /**
235
+ * Generated by orval 🍺
236
+ * Do not edit manually.
237
+ * Calorie Counter API
238
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
239
+ * OpenAPI spec version: 1.0
240
+ */
241
+ interface DatabaseGetListDayMarksRow {
242
+ activity_days?: string[];
243
+ food_days?: string[];
244
+ }
245
+
246
+ /**
247
+ * Generated by orval 🍺
248
+ * Do not edit manually.
249
+ * Calorie Counter API
250
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
251
+ * OpenAPI spec version: 1.0
252
+ */
253
+ interface DatabaseGetMacrosByDateRow {
254
+ carbs_g?: number;
255
+ fat_g?: number;
256
+ protein_g?: number;
257
+ }
258
+
259
+ /**
260
+ * Generated by orval 🍺
261
+ * Do not edit manually.
262
+ * Calorie Counter API
263
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
264
+ * OpenAPI spec version: 1.0
265
+ */
266
+ interface DiaryDayBalanceResponse {
267
+ burned_kcal?: number;
268
+ date?: string;
269
+ eaten_kcal?: number;
270
+ }
271
+
272
+ /**
273
+ * Generated by orval 🍺
274
+ * Do not edit manually.
275
+ * Calorie Counter API
276
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
277
+ * OpenAPI spec version: 1.0
278
+ */
279
+ interface DiaryDiaryActivityResponse {
280
+ activity_type?: string;
281
+ calories?: number;
282
+ created_at?: string;
283
+ /** @nullable */
284
+ description?: string | null;
285
+ /** @nullable */
286
+ distance_km?: number | null;
287
+ /** @nullable */
288
+ duration_min?: number | null;
289
+ id?: number;
290
+ performed_at?: string;
291
+ /** @nullable */
292
+ steps?: number | null;
293
+ user_id?: number;
294
+ version?: number;
295
+ }
296
+
297
+ /**
298
+ * Generated by orval 🍺
299
+ * Do not edit manually.
300
+ * Calorie Counter API
301
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
302
+ * OpenAPI spec version: 1.0
303
+ */
304
+ interface DiaryDiaryFoodResponse {
305
+ calories?: number;
306
+ /** @nullable */
307
+ carbs_g?: number | null;
308
+ created_at?: string;
309
+ description?: string;
310
+ eaten_at?: string;
311
+ /** @nullable */
312
+ fat_g?: number | null;
313
+ id?: number;
314
+ /** @nullable */
315
+ meal_type?: string | null;
316
+ /** @nullable */
317
+ protein_g?: number | null;
318
+ user_id?: number;
319
+ version?: number;
320
+ }
321
+
322
+ /**
323
+ * Generated by orval 🍺
324
+ * Do not edit manually.
325
+ * Calorie Counter API
326
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
327
+ * OpenAPI spec version: 1.0
328
+ */
329
+
330
+ interface DiaryDiaryEntriesResponse {
331
+ activities?: DiaryDiaryActivityResponse[];
332
+ foods?: DiaryDiaryFoodResponse[];
333
+ }
334
+
335
+ /**
336
+ * Generated by orval 🍺
337
+ * Do not edit manually.
338
+ * Calorie Counter API
339
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
340
+ * OpenAPI spec version: 1.0
341
+ */
342
+ interface DomainFileResponse {
343
+ file_id?: number;
344
+ height?: number;
345
+ position?: number;
346
+ url?: string;
347
+ url_expires_at?: string;
348
+ width?: number;
349
+ }
350
+
351
+ /**
352
+ * Generated by orval 🍺
353
+ * Do not edit manually.
354
+ * Calorie Counter API
355
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
356
+ * OpenAPI spec version: 1.0
357
+ */
358
+
359
+ interface DomainListResponse {
360
+ calories?: number;
361
+ can_delete?: boolean;
362
+ can_edit?: boolean;
363
+ carbs_g?: number;
364
+ created_at?: string;
365
+ description?: string;
366
+ eaten_at?: string;
367
+ fat_g?: number;
368
+ files?: DomainFileResponse[];
369
+ id?: number;
370
+ meal_type?: string;
371
+ protein_g?: number;
372
+ user_id?: number;
373
+ version?: number;
374
+ }
375
+
376
+ /**
377
+ * Generated by orval 🍺
378
+ * Do not edit manually.
379
+ * Calorie Counter API
380
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
381
+ * OpenAPI spec version: 1.0
382
+ */
383
+
384
+ interface DomainResponse {
385
+ calories?: number;
386
+ carbs_g?: number;
387
+ created_at?: string;
388
+ description?: string;
389
+ eaten_at?: string;
390
+ fat_g?: number;
391
+ files?: DomainFileResponse[];
392
+ id?: number;
393
+ meal_type?: string;
394
+ protein_g?: number;
395
+ user_id?: number;
396
+ version?: number;
397
+ }
398
+
399
+ /**
400
+ * Generated by orval 🍺
401
+ * Do not edit manually.
402
+ * Calorie Counter API
403
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
404
+ * OpenAPI spec version: 1.0
405
+ */
406
+ type GetDiaryBalancesHeaders = {
407
+ /** Часовой пояс IANA; при отсутствии или некорректном значении используется UTC */
408
+ 'X-Timezone'?: string;
409
+ };
410
+
411
+ /**
412
+ * Generated by orval 🍺
413
+ * Do not edit manually.
414
+ * Calorie Counter API
415
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
416
+ * OpenAPI spec version: 1.0
417
+ */
418
+ type GetDiaryBalancesParams = {
419
+ /** Начало диапазона, RFC3339 */
420
+ start_time: string;
421
+ /** Конец диапазона, RFC3339 */
422
+ end_time: string;
423
+ };
424
+
425
+ /**
426
+ * Generated by orval 🍺
427
+ * Do not edit manually.
428
+ * Calorie Counter API
429
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
430
+ * OpenAPI spec version: 1.0
431
+ */
432
+ type GetDiaryHeaders = {
433
+ /** Часовой пояс IANA; при отсутствии или некорректном значении используется UTC */
434
+ 'X-Timezone'?: string;
435
+ };
436
+
437
+ /**
438
+ * Generated by orval 🍺
439
+ * Do not edit manually.
440
+ * Calorie Counter API
441
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
442
+ * OpenAPI spec version: 1.0
443
+ */
444
+ type GetDiaryMacrosHeaders = {
445
+ /** Часовой пояс IANA; при отсутствии или некорректном значении используется UTC */
446
+ 'X-Timezone'?: string;
447
+ };
448
+
449
+ /**
450
+ * Generated by orval 🍺
451
+ * Do not edit manually.
452
+ * Calorie Counter API
453
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
454
+ * OpenAPI spec version: 1.0
455
+ */
456
+ type GetDiaryMacrosParams = {
457
+ /** Дата в формате YYYY-MM-DD */
458
+ date: string;
459
+ };
460
+
461
+ /**
462
+ * Generated by orval 🍺
463
+ * Do not edit manually.
464
+ * Calorie Counter API
465
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
466
+ * OpenAPI spec version: 1.0
467
+ */
468
+ type GetDiaryMarksHeaders = {
469
+ /** Часовой пояс IANA; при отсутствии или некорректном значении используется UTC */
470
+ 'X-Timezone'?: string;
471
+ };
472
+
473
+ /**
474
+ * Generated by orval 🍺
475
+ * Do not edit manually.
476
+ * Calorie Counter API
477
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
478
+ * OpenAPI spec version: 1.0
479
+ */
480
+ type GetDiaryMarksParams = {
481
+ /** Начало диапазона, RFC3339 */
482
+ start_time: string;
483
+ /** Конец диапазона, RFC3339 */
484
+ end_time: string;
485
+ };
486
+
487
+ /**
488
+ * Generated by orval 🍺
489
+ * Do not edit manually.
490
+ * Calorie Counter API
491
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
492
+ * OpenAPI spec version: 1.0
493
+ */
494
+ type GetDiaryParams = {
495
+ /** Дата в формате YYYY-MM-DD */
496
+ date: string;
497
+ };
498
+
499
+ /**
500
+ * Generated by orval 🍺
501
+ * Do not edit manually.
502
+ * Calorie Counter API
503
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
504
+ * OpenAPI spec version: 1.0
505
+ */
506
+ /**
507
+ * Тип активности.
508
+ */
509
+ type HandlerActivityCreateRequestActivityType = typeof HandlerActivityCreateRequestActivityType[keyof typeof HandlerActivityCreateRequestActivityType];
510
+ declare const HandlerActivityCreateRequestActivityType: {
511
+ readonly walking: "walking";
512
+ readonly cycling: "cycling";
513
+ readonly swimming: "swimming";
514
+ readonly custom: "custom";
515
+ };
516
+
517
+ /**
518
+ * Generated by orval 🍺
519
+ * Do not edit manually.
520
+ * Calorie Counter API
521
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
522
+ * OpenAPI spec version: 1.0
523
+ */
524
+
525
+ interface HandlerActivityCreateRequest {
526
+ /** Тип активности. */
527
+ activity_type: HandlerActivityCreateRequestActivityType;
528
+ /** Обязательно для custom. */
529
+ description?: string;
530
+ /** Обязательно для cycling, в километрах. */
531
+ distance_km?: number;
532
+ /** Обязательно для swimming, в минутах. */
533
+ duration_min?: number;
534
+ /** Время выполнения в RFC3339. Если не указано, используется текущее время. */
535
+ performed_at?: string;
536
+ /** Обязательно для walking. */
537
+ steps?: number;
538
+ }
539
+
540
+ /**
541
+ * Generated by orval 🍺
542
+ * Do not edit manually.
543
+ * Calorie Counter API
544
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
545
+ * OpenAPI spec version: 1.0
546
+ */
547
+ type HandlerActivityListResponseActivityType = typeof HandlerActivityListResponseActivityType[keyof typeof HandlerActivityListResponseActivityType];
548
+ declare const HandlerActivityListResponseActivityType: {
549
+ readonly walking: "walking";
550
+ readonly cycling: "cycling";
551
+ readonly swimming: "swimming";
552
+ readonly custom: "custom";
553
+ };
554
+
555
+ /**
556
+ * Generated by orval 🍺
557
+ * Do not edit manually.
558
+ * Calorie Counter API
559
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
560
+ * OpenAPI spec version: 1.0
561
+ */
562
+
563
+ interface HandlerActivityListResponse {
564
+ activity_type?: HandlerActivityListResponseActivityType;
565
+ calories?: number;
566
+ can_delete?: boolean;
567
+ can_edit?: boolean;
568
+ created_at?: string;
569
+ /** @nullable */
570
+ description?: string | null;
571
+ /** @nullable */
572
+ distance_km?: number | null;
573
+ /** @nullable */
574
+ duration_min?: number | null;
575
+ id?: number;
576
+ performed_at?: string;
577
+ /** @nullable */
578
+ steps?: number | null;
579
+ user_id?: number;
580
+ version?: number;
581
+ }
582
+
583
+ /**
584
+ * Generated by orval 🍺
585
+ * Do not edit manually.
586
+ * Calorie Counter API
587
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
588
+ * OpenAPI spec version: 1.0
589
+ */
590
+ type HandlerActivityResponseActivityType = typeof HandlerActivityResponseActivityType[keyof typeof HandlerActivityResponseActivityType];
591
+ declare const HandlerActivityResponseActivityType: {
592
+ readonly walking: "walking";
593
+ readonly cycling: "cycling";
594
+ readonly swimming: "swimming";
595
+ readonly custom: "custom";
596
+ };
597
+
598
+ /**
599
+ * Generated by orval 🍺
600
+ * Do not edit manually.
601
+ * Calorie Counter API
602
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
603
+ * OpenAPI spec version: 1.0
604
+ */
605
+
606
+ interface HandlerActivityResponse {
607
+ activity_type?: HandlerActivityResponseActivityType;
608
+ calories?: number;
609
+ created_at?: string;
610
+ /** @nullable */
611
+ description?: string | null;
612
+ /** @nullable */
613
+ distance_km?: number | null;
614
+ /** @nullable */
615
+ duration_min?: number | null;
616
+ id?: number;
617
+ performed_at?: string;
618
+ /** @nullable */
619
+ steps?: number | null;
620
+ user_id?: number;
621
+ version?: number;
622
+ }
623
+
624
+ /**
625
+ * Generated by orval 🍺
626
+ * Do not edit manually.
627
+ * Calorie Counter API
628
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
629
+ * OpenAPI spec version: 1.0
630
+ */
631
+ /**
632
+ * Тип активности; null не допускается.
633
+ */
634
+ type HandlerActivityUpdateRequestActivityType = typeof HandlerActivityUpdateRequestActivityType[keyof typeof HandlerActivityUpdateRequestActivityType];
635
+ declare const HandlerActivityUpdateRequestActivityType: {
636
+ readonly walking: "walking";
637
+ readonly cycling: "cycling";
638
+ readonly swimming: "swimming";
639
+ readonly custom: "custom";
640
+ };
641
+
642
+ /**
643
+ * Generated by orval 🍺
644
+ * Do not edit manually.
645
+ * Calorie Counter API
646
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
647
+ * OpenAPI spec version: 1.0
648
+ */
649
+
650
+ interface HandlerActivityUpdateRequest {
651
+ /** Тип активности; null не допускается. */
652
+ activity_type?: HandlerActivityUpdateRequestActivityType;
653
+ /**
654
+ * Описание; null очищает поле.
655
+ * @nullable
656
+ */
657
+ description?: string | null;
658
+ /**
659
+ * Расстояние в километрах; null очищает поле.
660
+ * @nullable
661
+ */
662
+ distance_km?: number | null;
663
+ /**
664
+ * Длительность в минутах; null очищает поле.
665
+ * @nullable
666
+ */
667
+ duration_min?: number | null;
668
+ /** Время выполнения в RFC3339; null не допускается. */
669
+ performed_at?: string;
670
+ /**
671
+ * Количество шагов; null очищает поле.
672
+ * @nullable
673
+ */
674
+ steps?: number | null;
675
+ }
676
+
677
+ /**
678
+ * Generated by orval 🍺
679
+ * Do not edit manually.
680
+ * Calorie Counter API
681
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
682
+ * OpenAPI spec version: 1.0
683
+ */
684
+ type HandlerFoodCreateRequestMealType = typeof HandlerFoodCreateRequestMealType[keyof typeof HandlerFoodCreateRequestMealType];
685
+ declare const HandlerFoodCreateRequestMealType: {
686
+ readonly breakfast: "breakfast";
687
+ readonly lunch: "lunch";
688
+ readonly dinner: "dinner";
689
+ readonly snack: "snack";
690
+ };
691
+
692
+ /**
693
+ * Generated by orval 🍺
694
+ * Do not edit manually.
695
+ * Calorie Counter API
696
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
697
+ * OpenAPI spec version: 1.0
698
+ */
699
+
700
+ interface HandlerFoodCreateRequest {
701
+ description?: string;
702
+ eaten_at?: string;
703
+ file_ids?: number[];
704
+ meal_type?: HandlerFoodCreateRequestMealType;
705
+ }
706
+
707
+ /**
708
+ * Generated by orval 🍺
709
+ * Do not edit manually.
710
+ * Calorie Counter API
711
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
712
+ * OpenAPI spec version: 1.0
713
+ */
714
+ /**
715
+ * @nullable
716
+ */
717
+ type HandlerFoodUpdateRequestMealType = typeof HandlerFoodUpdateRequestMealType[keyof typeof HandlerFoodUpdateRequestMealType] | null;
718
+ declare const HandlerFoodUpdateRequestMealType: {
719
+ readonly breakfast: "breakfast";
720
+ readonly lunch: "lunch";
721
+ readonly dinner: "dinner";
722
+ readonly snack: "snack";
723
+ };
724
+
725
+ /**
726
+ * Generated by orval 🍺
727
+ * Do not edit manually.
728
+ * Calorie Counter API
729
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
730
+ * OpenAPI spec version: 1.0
731
+ */
732
+
733
+ interface HandlerFoodUpdateRequest {
734
+ /** @nullable */
735
+ description?: string | null;
736
+ eaten_at?: string;
737
+ file_ids?: number[];
738
+ /** @nullable */
739
+ meal_type?: HandlerFoodUpdateRequestMealType;
740
+ version: number;
741
+ }
742
+
743
+ /**
744
+ * Generated by orval 🍺
745
+ * Do not edit manually.
746
+ * Calorie Counter API
747
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
748
+ * OpenAPI spec version: 1.0
749
+ */
750
+ interface HttpresponseFieldError {
751
+ code?: string;
752
+ field?: string;
753
+ message?: string;
754
+ }
755
+
756
+ /**
757
+ * Generated by orval 🍺
758
+ * Do not edit manually.
759
+ * Calorie Counter API
760
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
761
+ * OpenAPI spec version: 1.0
762
+ */
763
+
764
+ interface HttpresponseErrorResponse {
765
+ fields?: HttpresponseFieldError[];
766
+ message?: string;
767
+ status?: string;
768
+ }
769
+
770
+ /**
771
+ * Generated by orval 🍺
772
+ * Do not edit manually.
773
+ * Calorie Counter API
774
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
775
+ * OpenAPI spec version: 1.0
776
+ */
777
+ interface MediaFileResponse {
778
+ created_at?: string;
779
+ file_id?: number;
780
+ height?: number;
781
+ url?: string;
782
+ url_expires_at?: string;
783
+ width?: number;
784
+ }
785
+
786
+ /**
787
+ * Generated by orval 🍺
788
+ * Do not edit manually.
789
+ * Calorie Counter API
790
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
791
+ * OpenAPI spec version: 1.0
792
+ */
793
+ type RefreshTokensHeaders = {
794
+ /** Refresh JWT */
795
+ 'X-Refresh-Token': string;
796
+ };
797
+
798
+ /**
799
+ * Generated by orval 🍺
800
+ * Do not edit manually.
801
+ * Calorie Counter API
802
+ * API сервиса подсчёта калорий. Для проверки защищённых методов выполните /auth/login через Try it out: Swagger UI автоматически установит access_token. Также можно нажать Authorize и ввести Bearer access_token вручную.
803
+ * OpenAPI spec version: 1.0
804
+ */
805
+ type UploadFileBody = {
806
+ /** JPEG, PNG или WebP; максимум 10 МиБ */
807
+ file: Blob | File;
808
+ };
809
+
810
+ type SecondParameter$4<T extends (...args: never) => unknown> = Parameters<T>[1];
811
+ /**
812
+ * Калории рассчитываются автоматически. performed_at задаёт время выполнения в RFC3339; если поле пропущено, используется текущее время. Для walking нужны steps, для cycling — distance_km, для swimming — duration_min, для custom — description. Тело запроса — не более 32 КиБ.
813
+ * @summary Добавить активность
814
+ */
815
+ declare const createActivity: (handlerActivityCreateRequest: BodyType<HandlerActivityCreateRequest>, options?: SecondParameter$4<typeof apiRequest>, signal?: AbortSignal) => Promise<HandlerActivityResponse>;
816
+ declare const getCreateActivityMutationKey: () => readonly ["createActivity"];
817
+ declare const getCreateActivityMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
818
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createActivity>>, TError, CreateActivityMutationVariables, TContext>;
819
+ request?: SecondParameter$4<typeof apiRequest>;
820
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createActivity>>, TError, CreateActivityMutationVariables, TContext>;
821
+ type CreateActivityMutationResult = NonNullable<Awaited<ReturnType<typeof createActivity>>>;
822
+ type CreateActivityMutationBody = BodyType<HandlerActivityCreateRequest>;
823
+ type CreateActivityMutationError = ErrorType<HttpresponseErrorResponse>;
824
+ type CreateActivityMutationVariables = {
825
+ data: BodyType<HandlerActivityCreateRequest>;
826
+ };
827
+ /**
828
+ * Калории рассчитываются автоматически. performed_at задаёт время выполнения в RFC3339; если поле пропущено, используется текущее время. Для walking нужны steps, для cycling — distance_km, для swimming — duration_min, для custom — description. Тело запроса — не более 32 КиБ.
829
+ * @summary Добавить активность
830
+ */
831
+ declare const useCreateActivity: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
832
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createActivity>>, TError, CreateActivityMutationVariables, TContext>;
833
+ request?: SecondParameter$4<typeof apiRequest>;
834
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createActivity>>, TError, CreateActivityMutationVariables, TContext>;
835
+ /**
836
+ * Возвращает активности пользователя по убыванию времени выполнения. Если записей нет, возвращается JSON null. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
837
+ * @summary Получить список активностей
838
+ */
839
+ declare const getActivities: (options?: SecondParameter$4<typeof apiRequest>, signal?: AbortSignal) => Promise<HandlerActivityListResponse[]>;
840
+ declare const getGetActivitiesQueryKey: () => readonly ["/activity/list"];
841
+ declare const getGetActivitiesQueryOptions: <TData = Awaited<ReturnType<typeof getActivities>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
842
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActivities>>, TError, TData>>;
843
+ request?: SecondParameter$4<typeof apiRequest>;
844
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getActivities>>, TError, TData> & {
845
+ queryKey: DataTag<QueryKey, TData, TError>;
846
+ };
847
+ type GetActivitiesQueryResult = NonNullable<Awaited<ReturnType<typeof getActivities>>>;
848
+ type GetActivitiesQueryError = ErrorType<HttpresponseErrorResponse>;
849
+ /**
850
+ * Возвращает активности пользователя по убыванию времени выполнения. Если записей нет, возвращается JSON null. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
851
+ * @summary Получить список активностей
852
+ */
853
+ declare function useGetActivities<TData = Awaited<ReturnType<typeof getActivities>>, TError = ErrorType<HttpresponseErrorResponse>>(options: {
854
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActivities>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getActivities>>, TError, Awaited<ReturnType<typeof getActivities>>>, 'initialData'>;
855
+ request?: SecondParameter$4<typeof apiRequest>;
856
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
857
+ queryKey: DataTag<QueryKey, TData, TError>;
858
+ };
859
+ /**
860
+ * Возвращает активности пользователя по убыванию времени выполнения. Если записей нет, возвращается JSON null. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
861
+ * @summary Получить список активностей
862
+ */
863
+ declare function useGetActivities<TData = Awaited<ReturnType<typeof getActivities>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
864
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActivities>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getActivities>>, TError, Awaited<ReturnType<typeof getActivities>>>, 'initialData'>;
865
+ request?: SecondParameter$4<typeof apiRequest>;
866
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
867
+ queryKey: DataTag<QueryKey, TData, TError>;
868
+ };
869
+ /**
870
+ * Возвращает активности пользователя по убыванию времени выполнения. Если записей нет, возвращается JSON null. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
871
+ * @summary Получить список активностей
872
+ */
873
+ declare function useGetActivities<TData = Awaited<ReturnType<typeof getActivities>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
874
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActivities>>, TError, TData>>;
875
+ request?: SecondParameter$4<typeof apiRequest>;
876
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
877
+ queryKey: DataTag<QueryKey, TData, TError>;
878
+ };
879
+ /**
880
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
881
+ * @summary Удалить активность
882
+ */
883
+ declare const deleteActivity: (id: number, options?: SecondParameter$4<typeof apiRequest>, signal?: AbortSignal) => Promise<void>;
884
+ declare const getDeleteActivityMutationKey: () => readonly ["deleteActivity"];
885
+ declare const getDeleteActivityMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
886
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteActivity>>, TError, DeleteActivityMutationVariables, TContext>;
887
+ request?: SecondParameter$4<typeof apiRequest>;
888
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteActivity>>, TError, DeleteActivityMutationVariables, TContext>;
889
+ type DeleteActivityMutationResult = NonNullable<Awaited<ReturnType<typeof deleteActivity>>>;
890
+ type DeleteActivityMutationError = ErrorType<HttpresponseErrorResponse>;
891
+ type DeleteActivityMutationVariables = {
892
+ id: number;
893
+ };
894
+ /**
895
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
896
+ * @summary Удалить активность
897
+ */
898
+ declare const useDeleteActivity: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
899
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteActivity>>, TError, DeleteActivityMutationVariables, TContext>;
900
+ request?: SecondParameter$4<typeof apiRequest>;
901
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteActivity>>, TError, DeleteActivityMutationVariables, TContext>;
902
+ /**
903
+ * Укажите хотя бы одно поле. Пропущенные поля сохраняются; null очищает необязательное поле. performed_at принимает время в RFC3339 и не допускает null. Калории пересчитываются автоматически. Тело запроса — не более 32 КиБ.
904
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
905
+ * @summary Изменить активность
906
+ */
907
+ declare const updateActivity: (id: number, handlerActivityUpdateRequest: BodyType<HandlerActivityUpdateRequest>, options?: SecondParameter$4<typeof apiRequest>, signal?: AbortSignal) => Promise<HandlerActivityResponse>;
908
+ declare const getUpdateActivityMutationKey: () => readonly ["updateActivity"];
909
+ declare const getUpdateActivityMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
910
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateActivity>>, TError, UpdateActivityMutationVariables, TContext>;
911
+ request?: SecondParameter$4<typeof apiRequest>;
912
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateActivity>>, TError, UpdateActivityMutationVariables, TContext>;
913
+ type UpdateActivityMutationResult = NonNullable<Awaited<ReturnType<typeof updateActivity>>>;
914
+ type UpdateActivityMutationBody = BodyType<HandlerActivityUpdateRequest>;
915
+ type UpdateActivityMutationError = ErrorType<HttpresponseErrorResponse>;
916
+ type UpdateActivityMutationVariables = {
917
+ id: number;
918
+ data: BodyType<HandlerActivityUpdateRequest>;
919
+ };
920
+ /**
921
+ * Укажите хотя бы одно поле. Пропущенные поля сохраняются; null очищает необязательное поле. performed_at принимает время в RFC3339 и не допускает null. Калории пересчитываются автоматически. Тело запроса — не более 32 КиБ.
922
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
923
+ * @summary Изменить активность
924
+ */
925
+ declare const useUpdateActivity: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
926
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateActivity>>, TError, UpdateActivityMutationVariables, TContext>;
927
+ request?: SecondParameter$4<typeof apiRequest>;
928
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateActivity>>, TError, UpdateActivityMutationVariables, TContext>;
929
+
930
+ type SecondParameter$3<T extends (...args: never) => unknown> = Parameters<T>[1];
931
+ /**
932
+ * @summary Войти по email или username
933
+ */
934
+ declare const login: (authLoginRequest: BodyType<AuthLoginRequest>, options?: SecondParameter$3<typeof apiRequest>, signal?: AbortSignal) => Promise<AuthAuthResult>;
935
+ declare const getLoginMutationKey: () => readonly ["login"];
936
+ declare const getLoginMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
937
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof login>>, TError, LoginMutationVariables, TContext>;
938
+ request?: SecondParameter$3<typeof apiRequest>;
939
+ }) => UseMutationOptions<Awaited<ReturnType<typeof login>>, TError, LoginMutationVariables, TContext>;
940
+ type LoginMutationResult = NonNullable<Awaited<ReturnType<typeof login>>>;
941
+ type LoginMutationBody = BodyType<AuthLoginRequest>;
942
+ type LoginMutationError = ErrorType<HttpresponseErrorResponse>;
943
+ type LoginMutationVariables = {
944
+ data: BodyType<AuthLoginRequest>;
945
+ };
946
+ /** @summary Войти по email или username */
947
+ declare const useLogin: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
948
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof login>>, TError, LoginMutationVariables, TContext>;
949
+ request?: SecondParameter$3<typeof apiRequest>;
950
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof login>>, TError, LoginMutationVariables, TContext>;
951
+ /**
952
+ * Возвращает текущие данные профиля. is_need_onboarding равен true, если отсутствует дата рождения, пол, рост, уровень активности или текущий вес. Целевой вес и темп изменения веса необязательны.
953
+ * @summary Получить профиль
954
+ */
955
+ declare const getProfile: (options?: SecondParameter$3<typeof apiRequest>, signal?: AbortSignal) => Promise<AuthProfileResponse>;
956
+ declare const getGetProfileQueryKey: () => readonly ["/auth/profile"];
957
+ declare const getGetProfileQueryOptions: <TData = Awaited<ReturnType<typeof getProfile>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
958
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProfile>>, TError, TData>>;
959
+ request?: SecondParameter$3<typeof apiRequest>;
960
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getProfile>>, TError, TData> & {
961
+ queryKey: DataTag<QueryKey, TData, TError>;
962
+ };
963
+ type GetProfileQueryResult = NonNullable<Awaited<ReturnType<typeof getProfile>>>;
964
+ type GetProfileQueryError = ErrorType<HttpresponseErrorResponse>;
965
+ /**
966
+ * Возвращает текущие данные профиля. is_need_onboarding равен true, если отсутствует дата рождения, пол, рост, уровень активности или текущий вес. Целевой вес и темп изменения веса необязательны.
967
+ * @summary Получить профиль
968
+ */
969
+ declare function useGetProfile<TData = Awaited<ReturnType<typeof getProfile>>, TError = ErrorType<HttpresponseErrorResponse>>(options: {
970
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProfile>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProfile>>, TError, Awaited<ReturnType<typeof getProfile>>>, 'initialData'>;
971
+ request?: SecondParameter$3<typeof apiRequest>;
972
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
973
+ queryKey: DataTag<QueryKey, TData, TError>;
974
+ };
975
+ /**
976
+ * Возвращает текущие данные профиля. is_need_onboarding равен true, если отсутствует дата рождения, пол, рост, уровень активности или текущий вес. Целевой вес и темп изменения веса необязательны.
977
+ * @summary Получить профиль
978
+ */
979
+ declare function useGetProfile<TData = Awaited<ReturnType<typeof getProfile>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
980
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProfile>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProfile>>, TError, Awaited<ReturnType<typeof getProfile>>>, 'initialData'>;
981
+ request?: SecondParameter$3<typeof apiRequest>;
982
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
983
+ queryKey: DataTag<QueryKey, TData, TError>;
984
+ };
985
+ /**
986
+ * Возвращает текущие данные профиля. is_need_onboarding равен true, если отсутствует дата рождения, пол, рост, уровень активности или текущий вес. Целевой вес и темп изменения веса необязательны.
987
+ * @summary Получить профиль
988
+ */
989
+ declare function useGetProfile<TData = Awaited<ReturnType<typeof getProfile>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
990
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProfile>>, TError, TData>>;
991
+ request?: SecondParameter$3<typeof apiRequest>;
992
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
993
+ queryKey: DataTag<QueryKey, TData, TError>;
994
+ };
995
+ /**
996
+ * Обновляет только переданные ненулевые поля; пропущенные поля и null сохраняют прежнее значение. Требуется хотя бы одно поле. Вес сохраняется за текущую дату UTC с точностью до двух знаков, повторное обновление за день заменяет вес. Email, пароль и ID этим методом не меняются. Возвращает обновлённый профиль и is_need_onboarding.
997
+ * @summary Обновить свой профиль
998
+ */
999
+ declare const updateProfile: (authUpdateProfileRequest: BodyType<AuthUpdateProfileRequest>, options?: SecondParameter$3<typeof apiRequest>, signal?: AbortSignal) => Promise<AuthProfileResponse>;
1000
+ declare const getUpdateProfileMutationKey: () => readonly ["updateProfile"];
1001
+ declare const getUpdateProfileMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1002
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProfile>>, TError, UpdateProfileMutationVariables, TContext>;
1003
+ request?: SecondParameter$3<typeof apiRequest>;
1004
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateProfile>>, TError, UpdateProfileMutationVariables, TContext>;
1005
+ type UpdateProfileMutationResult = NonNullable<Awaited<ReturnType<typeof updateProfile>>>;
1006
+ type UpdateProfileMutationBody = BodyType<AuthUpdateProfileRequest>;
1007
+ type UpdateProfileMutationError = ErrorType<HttpresponseErrorResponse>;
1008
+ type UpdateProfileMutationVariables = {
1009
+ data: BodyType<AuthUpdateProfileRequest>;
1010
+ };
1011
+ /**
1012
+ * Обновляет только переданные ненулевые поля; пропущенные поля и null сохраняют прежнее значение. Требуется хотя бы одно поле. Вес сохраняется за текущую дату UTC с точностью до двух знаков, повторное обновление за день заменяет вес. Email, пароль и ID этим методом не меняются. Возвращает обновлённый профиль и is_need_onboarding.
1013
+ * @summary Обновить свой профиль
1014
+ */
1015
+ declare const useUpdateProfile: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1016
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProfile>>, TError, UpdateProfileMutationVariables, TContext>;
1017
+ request?: SecondParameter$3<typeof apiRequest>;
1018
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateProfile>>, TError, UpdateProfileMutationVariables, TContext>;
1019
+ /**
1020
+ * @summary Обновить токены
1021
+ */
1022
+ declare const refreshTokens: (headers: RefreshTokensHeaders, options?: SecondParameter$3<typeof apiRequest>, signal?: AbortSignal) => Promise<AuthTokenPair>;
1023
+ declare const getRefreshTokensMutationKey: () => readonly ["refreshTokens"];
1024
+ declare const getRefreshTokensMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1025
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof refreshTokens>>, TError, RefreshTokensMutationVariables, TContext>;
1026
+ request?: SecondParameter$3<typeof apiRequest>;
1027
+ }) => UseMutationOptions<Awaited<ReturnType<typeof refreshTokens>>, TError, RefreshTokensMutationVariables, TContext>;
1028
+ type RefreshTokensMutationResult = NonNullable<Awaited<ReturnType<typeof refreshTokens>>>;
1029
+ type RefreshTokensMutationError = ErrorType<HttpresponseErrorResponse>;
1030
+ type RefreshTokensMutationVariables = {
1031
+ headers: RefreshTokensHeaders;
1032
+ };
1033
+ /** @summary Обновить токены */
1034
+ declare const useRefreshTokens: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1035
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof refreshTokens>>, TError, RefreshTokensMutationVariables, TContext>;
1036
+ request?: SecondParameter$3<typeof apiRequest>;
1037
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof refreshTokens>>, TError, RefreshTokensMutationVariables, TContext>;
1038
+ /**
1039
+ * @summary Зарегистрировать пользователя
1040
+ */
1041
+ declare const register: (authRegisterRequest: BodyType<AuthRegisterRequest>, options?: SecondParameter$3<typeof apiRequest>, signal?: AbortSignal) => Promise<AuthAuthResult>;
1042
+ declare const getRegisterMutationKey: () => readonly ["register"];
1043
+ declare const getRegisterMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1044
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof register>>, TError, RegisterMutationVariables, TContext>;
1045
+ request?: SecondParameter$3<typeof apiRequest>;
1046
+ }) => UseMutationOptions<Awaited<ReturnType<typeof register>>, TError, RegisterMutationVariables, TContext>;
1047
+ type RegisterMutationResult = NonNullable<Awaited<ReturnType<typeof register>>>;
1048
+ type RegisterMutationBody = BodyType<AuthRegisterRequest>;
1049
+ type RegisterMutationError = ErrorType<HttpresponseErrorResponse>;
1050
+ type RegisterMutationVariables = {
1051
+ data: BodyType<AuthRegisterRequest>;
1052
+ };
1053
+ /** @summary Зарегистрировать пользователя */
1054
+ declare const useRegister: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1055
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof register>>, TError, RegisterMutationVariables, TContext>;
1056
+ request?: SecondParameter$3<typeof apiRequest>;
1057
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof register>>, TError, RegisterMutationVariables, TContext>;
1058
+ /**
1059
+ * Проверяет Telegram initData и возвращает токены авторизации.
1060
+ * @summary Вход через Telegram Mini App
1061
+ */
1062
+ declare const loginWithTelegram: (authTelegramLoginRequest: BodyType<AuthTelegramLoginRequest>, options?: SecondParameter$3<typeof apiRequest>, signal?: AbortSignal) => Promise<AuthAuthResult>;
1063
+ declare const getLoginWithTelegramMutationKey: () => readonly ["loginWithTelegram"];
1064
+ declare const getLoginWithTelegramMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1065
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof loginWithTelegram>>, TError, LoginWithTelegramMutationVariables, TContext>;
1066
+ request?: SecondParameter$3<typeof apiRequest>;
1067
+ }) => UseMutationOptions<Awaited<ReturnType<typeof loginWithTelegram>>, TError, LoginWithTelegramMutationVariables, TContext>;
1068
+ type LoginWithTelegramMutationResult = NonNullable<Awaited<ReturnType<typeof loginWithTelegram>>>;
1069
+ type LoginWithTelegramMutationBody = BodyType<AuthTelegramLoginRequest>;
1070
+ type LoginWithTelegramMutationError = ErrorType<HttpresponseErrorResponse>;
1071
+ type LoginWithTelegramMutationVariables = {
1072
+ data: BodyType<AuthTelegramLoginRequest>;
1073
+ };
1074
+ /**
1075
+ * Проверяет Telegram initData и возвращает токены авторизации.
1076
+ * @summary Вход через Telegram Mini App
1077
+ */
1078
+ declare const useLoginWithTelegram: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1079
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof loginWithTelegram>>, TError, LoginWithTelegramMutationVariables, TContext>;
1080
+ request?: SecondParameter$3<typeof apiRequest>;
1081
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof loginWithTelegram>>, TError, LoginWithTelegramMutationVariables, TContext>;
1082
+
1083
+ type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
1084
+ /**
1085
+ * Съеденные и потраченные калории по дням в часовом поясе пользователя, по возрастанию даты. Возвращаются только дни с записями. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток. При отсутствии записей возвращается null.
1086
+ * @summary Баланс калорий по дням
1087
+ */
1088
+ declare const getDiaryBalances: (params: GetDiaryBalancesParams, headers?: GetDiaryBalancesHeaders, options?: SecondParameter$2<typeof apiRequest>, signal?: AbortSignal) => Promise<DiaryDayBalanceResponse[]>;
1089
+ declare const getGetDiaryBalancesQueryKey: (params?: GetDiaryBalancesParams, headers?: GetDiaryBalancesHeaders) => readonly unknown[];
1090
+ declare const useGetDiaryBalancesQueryOptions: <TData = Awaited<ReturnType<typeof getDiaryBalances>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryBalancesParams, headers?: GetDiaryBalancesHeaders, options?: {
1091
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, TData>>;
1092
+ request?: SecondParameter$2<typeof apiRequest>;
1093
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, TData> & {
1094
+ queryKey: DataTag<QueryKey, TData, TError>;
1095
+ };
1096
+ type GetDiaryBalancesQueryResult = NonNullable<Awaited<ReturnType<typeof getDiaryBalances>>>;
1097
+ type GetDiaryBalancesQueryError = ErrorType<HttpresponseErrorResponse>;
1098
+ /**
1099
+ * Съеденные и потраченные калории по дням в часовом поясе пользователя, по возрастанию даты. Возвращаются только дни с записями. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток. При отсутствии записей возвращается null.
1100
+ * @summary Баланс калорий по дням
1101
+ */
1102
+ declare function useGetDiaryBalances<TData = Awaited<ReturnType<typeof getDiaryBalances>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryBalancesParams, headers: undefined | GetDiaryBalancesHeaders, options: {
1103
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, Awaited<ReturnType<typeof getDiaryBalances>>>, 'initialData'>;
1104
+ request?: SecondParameter$2<typeof apiRequest>;
1105
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1106
+ queryKey: DataTag<QueryKey, TData, TError>;
1107
+ };
1108
+ /**
1109
+ * Съеденные и потраченные калории по дням в часовом поясе пользователя, по возрастанию даты. Возвращаются только дни с записями. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток. При отсутствии записей возвращается null.
1110
+ * @summary Баланс калорий по дням
1111
+ */
1112
+ declare function useGetDiaryBalances<TData = Awaited<ReturnType<typeof getDiaryBalances>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryBalancesParams, headers?: GetDiaryBalancesHeaders, options?: {
1113
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, Awaited<ReturnType<typeof getDiaryBalances>>>, 'initialData'>;
1114
+ request?: SecondParameter$2<typeof apiRequest>;
1115
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1116
+ queryKey: DataTag<QueryKey, TData, TError>;
1117
+ };
1118
+ /**
1119
+ * Съеденные и потраченные калории по дням в часовом поясе пользователя, по возрастанию даты. Возвращаются только дни с записями. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток. При отсутствии записей возвращается null.
1120
+ * @summary Баланс калорий по дням
1121
+ */
1122
+ declare function useGetDiaryBalances<TData = Awaited<ReturnType<typeof getDiaryBalances>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryBalancesParams, headers?: GetDiaryBalancesHeaders, options?: {
1123
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryBalances>>, TError, TData>>;
1124
+ request?: SecondParameter$2<typeof apiRequest>;
1125
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1126
+ queryKey: DataTag<QueryKey, TData, TError>;
1127
+ };
1128
+ /**
1129
+ * Приёмы пищи и активности за выбранный календарный день в часовом поясе пользователя. Дата не может быть в будущем. Каждый список отсортирован по времени записи по убыванию; пустые списки — [].
1130
+ * @summary Записи дневника за дату
1131
+ */
1132
+ declare const getDiary: (params: GetDiaryParams, headers?: GetDiaryHeaders, options?: SecondParameter$2<typeof apiRequest>, signal?: AbortSignal) => Promise<DiaryDiaryEntriesResponse>;
1133
+ declare const getGetDiaryQueryKey: (params?: GetDiaryParams, headers?: GetDiaryHeaders) => readonly unknown[];
1134
+ declare const useGetDiaryQueryOptions: <TData = Awaited<ReturnType<typeof getDiary>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryParams, headers?: GetDiaryHeaders, options?: {
1135
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiary>>, TError, TData>>;
1136
+ request?: SecondParameter$2<typeof apiRequest>;
1137
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getDiary>>, TError, TData> & {
1138
+ queryKey: DataTag<QueryKey, TData, TError>;
1139
+ };
1140
+ type GetDiaryQueryResult = NonNullable<Awaited<ReturnType<typeof getDiary>>>;
1141
+ type GetDiaryQueryError = ErrorType<HttpresponseErrorResponse>;
1142
+ /**
1143
+ * Приёмы пищи и активности за выбранный календарный день в часовом поясе пользователя. Дата не может быть в будущем. Каждый список отсортирован по времени записи по убыванию; пустые списки — [].
1144
+ * @summary Записи дневника за дату
1145
+ */
1146
+ declare function useGetDiary<TData = Awaited<ReturnType<typeof getDiary>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryParams, headers: undefined | GetDiaryHeaders, options: {
1147
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiary>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDiary>>, TError, Awaited<ReturnType<typeof getDiary>>>, 'initialData'>;
1148
+ request?: SecondParameter$2<typeof apiRequest>;
1149
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1150
+ queryKey: DataTag<QueryKey, TData, TError>;
1151
+ };
1152
+ /**
1153
+ * Приёмы пищи и активности за выбранный календарный день в часовом поясе пользователя. Дата не может быть в будущем. Каждый список отсортирован по времени записи по убыванию; пустые списки — [].
1154
+ * @summary Записи дневника за дату
1155
+ */
1156
+ declare function useGetDiary<TData = Awaited<ReturnType<typeof getDiary>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryParams, headers?: GetDiaryHeaders, options?: {
1157
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiary>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDiary>>, TError, Awaited<ReturnType<typeof getDiary>>>, 'initialData'>;
1158
+ request?: SecondParameter$2<typeof apiRequest>;
1159
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1160
+ queryKey: DataTag<QueryKey, TData, TError>;
1161
+ };
1162
+ /**
1163
+ * Приёмы пищи и активности за выбранный календарный день в часовом поясе пользователя. Дата не может быть в будущем. Каждый список отсортирован по времени записи по убыванию; пустые списки — [].
1164
+ * @summary Записи дневника за дату
1165
+ */
1166
+ declare function useGetDiary<TData = Awaited<ReturnType<typeof getDiary>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryParams, headers?: GetDiaryHeaders, options?: {
1167
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiary>>, TError, TData>>;
1168
+ request?: SecondParameter$2<typeof apiRequest>;
1169
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1170
+ queryKey: DataTag<QueryKey, TData, TError>;
1171
+ };
1172
+ /**
1173
+ * Сумма белков, жиров и углеводов в граммах за календарный день в часовом поясе пользователя. Дата не может быть в будущем. При отсутствии записей все значения равны нулю.
1174
+ * @summary Суммарные БЖУ за дату
1175
+ */
1176
+ declare const getDiaryMacros: (params: GetDiaryMacrosParams, headers?: GetDiaryMacrosHeaders, options?: SecondParameter$2<typeof apiRequest>, signal?: AbortSignal) => Promise<DatabaseGetMacrosByDateRow>;
1177
+ declare const getGetDiaryMacrosQueryKey: (params?: GetDiaryMacrosParams, headers?: GetDiaryMacrosHeaders) => readonly unknown[];
1178
+ declare const useGetDiaryMacrosQueryOptions: <TData = Awaited<ReturnType<typeof getDiaryMacros>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMacrosParams, headers?: GetDiaryMacrosHeaders, options?: {
1179
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, TData>>;
1180
+ request?: SecondParameter$2<typeof apiRequest>;
1181
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, TData> & {
1182
+ queryKey: DataTag<QueryKey, TData, TError>;
1183
+ };
1184
+ type GetDiaryMacrosQueryResult = NonNullable<Awaited<ReturnType<typeof getDiaryMacros>>>;
1185
+ type GetDiaryMacrosQueryError = ErrorType<HttpresponseErrorResponse>;
1186
+ /**
1187
+ * Сумма белков, жиров и углеводов в граммах за календарный день в часовом поясе пользователя. Дата не может быть в будущем. При отсутствии записей все значения равны нулю.
1188
+ * @summary Суммарные БЖУ за дату
1189
+ */
1190
+ declare function useGetDiaryMacros<TData = Awaited<ReturnType<typeof getDiaryMacros>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMacrosParams, headers: undefined | GetDiaryMacrosHeaders, options: {
1191
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, Awaited<ReturnType<typeof getDiaryMacros>>>, 'initialData'>;
1192
+ request?: SecondParameter$2<typeof apiRequest>;
1193
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1194
+ queryKey: DataTag<QueryKey, TData, TError>;
1195
+ };
1196
+ /**
1197
+ * Сумма белков, жиров и углеводов в граммах за календарный день в часовом поясе пользователя. Дата не может быть в будущем. При отсутствии записей все значения равны нулю.
1198
+ * @summary Суммарные БЖУ за дату
1199
+ */
1200
+ declare function useGetDiaryMacros<TData = Awaited<ReturnType<typeof getDiaryMacros>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMacrosParams, headers?: GetDiaryMacrosHeaders, options?: {
1201
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, Awaited<ReturnType<typeof getDiaryMacros>>>, 'initialData'>;
1202
+ request?: SecondParameter$2<typeof apiRequest>;
1203
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1204
+ queryKey: DataTag<QueryKey, TData, TError>;
1205
+ };
1206
+ /**
1207
+ * Сумма белков, жиров и углеводов в граммах за календарный день в часовом поясе пользователя. Дата не может быть в будущем. При отсутствии записей все значения равны нулю.
1208
+ * @summary Суммарные БЖУ за дату
1209
+ */
1210
+ declare function useGetDiaryMacros<TData = Awaited<ReturnType<typeof getDiaryMacros>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMacrosParams, headers?: GetDiaryMacrosHeaders, options?: {
1211
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMacros>>, TError, TData>>;
1212
+ request?: SecondParameter$2<typeof apiRequest>;
1213
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1214
+ queryKey: DataTag<QueryKey, TData, TError>;
1215
+ };
1216
+ /**
1217
+ * Возвращает отдельные списки дат в формате YYYY-MM-DD в часовом поясе пользователя. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток.
1218
+ * @summary Даты с записями еды и активности
1219
+ */
1220
+ declare const getDiaryMarks: (params: GetDiaryMarksParams, headers?: GetDiaryMarksHeaders, options?: SecondParameter$2<typeof apiRequest>, signal?: AbortSignal) => Promise<DatabaseGetListDayMarksRow>;
1221
+ declare const getGetDiaryMarksQueryKey: (params?: GetDiaryMarksParams, headers?: GetDiaryMarksHeaders) => readonly unknown[];
1222
+ declare const useGetDiaryMarksQueryOptions: <TData = Awaited<ReturnType<typeof getDiaryMarks>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMarksParams, headers?: GetDiaryMarksHeaders, options?: {
1223
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, TData>>;
1224
+ request?: SecondParameter$2<typeof apiRequest>;
1225
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, TData> & {
1226
+ queryKey: DataTag<QueryKey, TData, TError>;
1227
+ };
1228
+ type GetDiaryMarksQueryResult = NonNullable<Awaited<ReturnType<typeof getDiaryMarks>>>;
1229
+ type GetDiaryMarksQueryError = ErrorType<HttpresponseErrorResponse>;
1230
+ /**
1231
+ * Возвращает отдельные списки дат в формате YYYY-MM-DD в часовом поясе пользователя. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток.
1232
+ * @summary Даты с записями еды и активности
1233
+ */
1234
+ declare function useGetDiaryMarks<TData = Awaited<ReturnType<typeof getDiaryMarks>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMarksParams, headers: undefined | GetDiaryMarksHeaders, options: {
1235
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, Awaited<ReturnType<typeof getDiaryMarks>>>, 'initialData'>;
1236
+ request?: SecondParameter$2<typeof apiRequest>;
1237
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1238
+ queryKey: DataTag<QueryKey, TData, TError>;
1239
+ };
1240
+ /**
1241
+ * Возвращает отдельные списки дат в формате YYYY-MM-DD в часовом поясе пользователя. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток.
1242
+ * @summary Даты с записями еды и активности
1243
+ */
1244
+ declare function useGetDiaryMarks<TData = Awaited<ReturnType<typeof getDiaryMarks>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMarksParams, headers?: GetDiaryMarksHeaders, options?: {
1245
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, Awaited<ReturnType<typeof getDiaryMarks>>>, 'initialData'>;
1246
+ request?: SecondParameter$2<typeof apiRequest>;
1247
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1248
+ queryKey: DataTag<QueryKey, TData, TError>;
1249
+ };
1250
+ /**
1251
+ * Возвращает отдельные списки дат в формате YYYY-MM-DD в часовом поясе пользователя. Начало диапазона включается, конец исключается. Конец должен быть позже начала; максимальная длительность — 365 суток.
1252
+ * @summary Даты с записями еды и активности
1253
+ */
1254
+ declare function useGetDiaryMarks<TData = Awaited<ReturnType<typeof getDiaryMarks>>, TError = ErrorType<HttpresponseErrorResponse>>(params: GetDiaryMarksParams, headers?: GetDiaryMarksHeaders, options?: {
1255
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDiaryMarks>>, TError, TData>>;
1256
+ request?: SecondParameter$2<typeof apiRequest>;
1257
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1258
+ queryKey: DataTag<QueryKey, TData, TError>;
1259
+ };
1260
+
1261
+ type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
1262
+ /**
1263
+ * @summary Загрузить фотографию еды и получить file_id
1264
+ */
1265
+ declare const uploadFile: (uploadFileBody?: BodyType<UploadFileBody>, options?: SecondParameter$1<typeof apiRequest>, signal?: AbortSignal) => Promise<MediaFileResponse>;
1266
+ declare const getUploadFileMutationKey: () => readonly ["uploadFile"];
1267
+ declare const getUploadFileMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1268
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadFile>>, TError, UploadFileMutationVariables, TContext>;
1269
+ request?: SecondParameter$1<typeof apiRequest>;
1270
+ }) => UseMutationOptions<Awaited<ReturnType<typeof uploadFile>>, TError, UploadFileMutationVariables, TContext>;
1271
+ type UploadFileMutationResult = NonNullable<Awaited<ReturnType<typeof uploadFile>>>;
1272
+ type UploadFileMutationBody = BodyType<UploadFileBody> | undefined;
1273
+ type UploadFileMutationError = ErrorType<HttpresponseErrorResponse>;
1274
+ type UploadFileMutationVariables = {
1275
+ data?: BodyType<UploadFileBody>;
1276
+ };
1277
+ /** @summary Загрузить фотографию еды и получить file_id */
1278
+ declare const useUploadFile: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1279
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadFile>>, TError, UploadFileMutationVariables, TContext>;
1280
+ request?: SecondParameter$1<typeof apiRequest>;
1281
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof uploadFile>>, TError, UploadFileMutationVariables, TContext>;
1282
+ /**
1283
+ * @summary Удалить загруженный файл
1284
+ */
1285
+ declare const deleteFile: (id: number, options?: SecondParameter$1<typeof apiRequest>, signal?: AbortSignal) => Promise<void>;
1286
+ declare const getDeleteFileMutationKey: () => readonly ["deleteFile"];
1287
+ declare const getDeleteFileMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1288
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, DeleteFileMutationVariables, TContext>;
1289
+ request?: SecondParameter$1<typeof apiRequest>;
1290
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, DeleteFileMutationVariables, TContext>;
1291
+ type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>;
1292
+ type DeleteFileMutationError = ErrorType<HttpresponseErrorResponse>;
1293
+ type DeleteFileMutationVariables = {
1294
+ id: number;
1295
+ };
1296
+ /** @summary Удалить загруженный файл */
1297
+ declare const useDeleteFile: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1298
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, DeleteFileMutationVariables, TContext>;
1299
+ request?: SecondParameter$1<typeof apiRequest>;
1300
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteFile>>, TError, DeleteFileMutationVariables, TContext>;
1301
+
1302
+ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
1303
+ /**
1304
+ * Укажите описание или до пяти заранее загруженных file_ids. Калории и БЖУ оценивает AI. Если eaten_at пропущено, используется текущее время.
1305
+ * @summary Добавить приём пищи
1306
+ */
1307
+ declare const createFood: (handlerFoodCreateRequest: BodyType<HandlerFoodCreateRequest>, options?: SecondParameter<typeof apiRequest>, signal?: AbortSignal) => Promise<DomainResponse>;
1308
+ declare const getCreateFoodMutationKey: () => readonly ["createFood"];
1309
+ declare const getCreateFoodMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1310
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createFood>>, TError, CreateFoodMutationVariables, TContext>;
1311
+ request?: SecondParameter<typeof apiRequest>;
1312
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createFood>>, TError, CreateFoodMutationVariables, TContext>;
1313
+ type CreateFoodMutationResult = NonNullable<Awaited<ReturnType<typeof createFood>>>;
1314
+ type CreateFoodMutationBody = BodyType<HandlerFoodCreateRequest>;
1315
+ type CreateFoodMutationError = ErrorType<HttpresponseErrorResponse>;
1316
+ type CreateFoodMutationVariables = {
1317
+ data: BodyType<HandlerFoodCreateRequest>;
1318
+ };
1319
+ /**
1320
+ * Укажите описание или до пяти заранее загруженных file_ids. Калории и БЖУ оценивает AI. Если eaten_at пропущено, используется текущее время.
1321
+ * @summary Добавить приём пищи
1322
+ */
1323
+ declare const useCreateFood: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1324
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createFood>>, TError, CreateFoodMutationVariables, TContext>;
1325
+ request?: SecondParameter<typeof apiRequest>;
1326
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createFood>>, TError, CreateFoodMutationVariables, TContext>;
1327
+ /**
1328
+ * Все записи пользователя по убыванию eaten_at; пустой список — []. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
1329
+ * @summary Список приёмов пищи
1330
+ */
1331
+ declare const getFoods: (options?: SecondParameter<typeof apiRequest>, signal?: AbortSignal) => Promise<DomainListResponse[]>;
1332
+ declare const getGetFoodsQueryKey: () => readonly ["/food/list"];
1333
+ declare const getGetFoodsQueryOptions: <TData = Awaited<ReturnType<typeof getFoods>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
1334
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFoods>>, TError, TData>>;
1335
+ request?: SecondParameter<typeof apiRequest>;
1336
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getFoods>>, TError, TData> & {
1337
+ queryKey: DataTag<QueryKey, TData, TError>;
1338
+ };
1339
+ type GetFoodsQueryResult = NonNullable<Awaited<ReturnType<typeof getFoods>>>;
1340
+ type GetFoodsQueryError = ErrorType<HttpresponseErrorResponse>;
1341
+ /**
1342
+ * Все записи пользователя по убыванию eaten_at; пустой список — []. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
1343
+ * @summary Список приёмов пищи
1344
+ */
1345
+ declare function useGetFoods<TData = Awaited<ReturnType<typeof getFoods>>, TError = ErrorType<HttpresponseErrorResponse>>(options: {
1346
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFoods>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getFoods>>, TError, Awaited<ReturnType<typeof getFoods>>>, 'initialData'>;
1347
+ request?: SecondParameter<typeof apiRequest>;
1348
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1349
+ queryKey: DataTag<QueryKey, TData, TError>;
1350
+ };
1351
+ /**
1352
+ * Все записи пользователя по убыванию eaten_at; пустой список — []. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
1353
+ * @summary Список приёмов пищи
1354
+ */
1355
+ declare function useGetFoods<TData = Awaited<ReturnType<typeof getFoods>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
1356
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFoods>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getFoods>>, TError, Awaited<ReturnType<typeof getFoods>>>, 'initialData'>;
1357
+ request?: SecondParameter<typeof apiRequest>;
1358
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1359
+ queryKey: DataTag<QueryKey, TData, TError>;
1360
+ };
1361
+ /**
1362
+ * Все записи пользователя по убыванию eaten_at; пустой список — []. can_edit и can_delete равны true, если с created_at прошло не больше 7 суток (168 часов), иначе false.
1363
+ * @summary Список приёмов пищи
1364
+ */
1365
+ declare function useGetFoods<TData = Awaited<ReturnType<typeof getFoods>>, TError = ErrorType<HttpresponseErrorResponse>>(options?: {
1366
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFoods>>, TError, TData>>;
1367
+ request?: SecondParameter<typeof apiRequest>;
1368
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1369
+ queryKey: DataTag<QueryKey, TData, TError>;
1370
+ };
1371
+ /**
1372
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
1373
+ * @summary Удалить приём пищи и его файлы
1374
+ */
1375
+ declare const deleteFood: (id: number, options?: SecondParameter<typeof apiRequest>, signal?: AbortSignal) => Promise<void>;
1376
+ declare const getDeleteFoodMutationKey: () => readonly ["deleteFood"];
1377
+ declare const getDeleteFoodMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1378
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFood>>, TError, DeleteFoodMutationVariables, TContext>;
1379
+ request?: SecondParameter<typeof apiRequest>;
1380
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteFood>>, TError, DeleteFoodMutationVariables, TContext>;
1381
+ type DeleteFoodMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFood>>>;
1382
+ type DeleteFoodMutationError = ErrorType<HttpresponseErrorResponse>;
1383
+ type DeleteFoodMutationVariables = {
1384
+ id: number;
1385
+ };
1386
+ /**
1387
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
1388
+ * @summary Удалить приём пищи и его файлы
1389
+ */
1390
+ declare const useDeleteFood: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1391
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFood>>, TError, DeleteFoodMutationVariables, TContext>;
1392
+ request?: SecondParameter<typeof apiRequest>;
1393
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteFood>>, TError, DeleteFoodMutationVariables, TContext>;
1394
+ /**
1395
+ * version обязателен. Пропущенные поля сохраняются; file_ids заменяет весь набор, пустой массив удаляет все фото. AI пересчитывает питание при изменении описания или фото.
1396
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
1397
+ * @summary Изменить приём пищи
1398
+ */
1399
+ declare const updateFood: (id: number, handlerFoodUpdateRequest: BodyType<HandlerFoodUpdateRequest>, options?: SecondParameter<typeof apiRequest>, signal?: AbortSignal) => Promise<DomainResponse>;
1400
+ declare const getUpdateFoodMutationKey: () => readonly ["updateFood"];
1401
+ declare const getUpdateFoodMutationOptions: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1402
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateFood>>, TError, UpdateFoodMutationVariables, TContext>;
1403
+ request?: SecondParameter<typeof apiRequest>;
1404
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateFood>>, TError, UpdateFoodMutationVariables, TContext>;
1405
+ type UpdateFoodMutationResult = NonNullable<Awaited<ReturnType<typeof updateFood>>>;
1406
+ type UpdateFoodMutationBody = BodyType<HandlerFoodUpdateRequest>;
1407
+ type UpdateFoodMutationError = ErrorType<HttpresponseErrorResponse>;
1408
+ type UpdateFoodMutationVariables = {
1409
+ id: number;
1410
+ data: BodyType<HandlerFoodUpdateRequest>;
1411
+ };
1412
+ /**
1413
+ * version обязателен. Пропущенные поля сохраняются; file_ids заменяет весь набор, пустой массив удаляет все фото. AI пересчитывает питание при изменении описания или фото.
1414
+ * Записи старше 7 суток (168 часов) по created_at нельзя редактировать или удалять.
1415
+ * @summary Изменить приём пищи
1416
+ */
1417
+ declare const useUpdateFood: <TError = ErrorType<HttpresponseErrorResponse>, TContext = unknown>(options?: {
1418
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateFood>>, TError, UpdateFoodMutationVariables, TContext>;
1419
+ request?: SecondParameter<typeof apiRequest>;
1420
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateFood>>, TError, UpdateFoodMutationVariables, TContext>;
1421
+
1422
+ export { type AuthAuthResult, type AuthLoginRequest, type AuthProfileResponse, AuthProfileResponseActivityLevel, AuthProfileResponseSex, type AuthRegisterRequest, type AuthTelegramLoginRequest, type AuthTokenPair, type AuthTokenStore, type AuthTokens, type AuthUpdateProfileRequest, AuthUpdateProfileRequestActivityLevel, AuthUpdateProfileRequestSex, type AuthUserResponse, type BodyType, type ConfigureAuthOptions, type CreateActivityMutationBody, type CreateActivityMutationError, type CreateActivityMutationResult, type CreateActivityMutationVariables, type CreateFoodMutationBody, type CreateFoodMutationError, type CreateFoodMutationResult, type CreateFoodMutationVariables, type DatabaseGetListDayMarksRow, type DatabaseGetMacrosByDateRow, type DeleteActivityMutationError, type DeleteActivityMutationResult, type DeleteActivityMutationVariables, type DeleteFileMutationError, type DeleteFileMutationResult, type DeleteFileMutationVariables, type DeleteFoodMutationError, type DeleteFoodMutationResult, type DeleteFoodMutationVariables, type DiaryDayBalanceResponse, type DiaryDiaryActivityResponse, type DiaryDiaryEntriesResponse, type DiaryDiaryFoodResponse, type DomainFileResponse, type DomainListResponse, type DomainResponse, type ErrorType, type GetActivitiesQueryError, type GetActivitiesQueryResult, type GetDiaryBalancesHeaders, type GetDiaryBalancesParams, type GetDiaryBalancesQueryError, type GetDiaryBalancesQueryResult, type GetDiaryHeaders, type GetDiaryMacrosHeaders, type GetDiaryMacrosParams, type GetDiaryMacrosQueryError, type GetDiaryMacrosQueryResult, type GetDiaryMarksHeaders, type GetDiaryMarksParams, type GetDiaryMarksQueryError, type GetDiaryMarksQueryResult, type GetDiaryParams, type GetDiaryQueryError, type GetDiaryQueryResult, type GetFoodsQueryError, type GetFoodsQueryResult, type GetProfileQueryError, type GetProfileQueryResult, type HandlerActivityCreateRequest, HandlerActivityCreateRequestActivityType, type HandlerActivityListResponse, HandlerActivityListResponseActivityType, type HandlerActivityResponse, HandlerActivityResponseActivityType, type HandlerActivityUpdateRequest, HandlerActivityUpdateRequestActivityType, type HandlerFoodCreateRequest, HandlerFoodCreateRequestMealType, type HandlerFoodUpdateRequest, HandlerFoodUpdateRequestMealType, type HttpresponseErrorResponse, type HttpresponseFieldError, type LoginMutationBody, type LoginMutationError, type LoginMutationResult, type LoginMutationVariables, type LoginWithTelegramMutationBody, type LoginWithTelegramMutationError, type LoginWithTelegramMutationResult, type LoginWithTelegramMutationVariables, type MediaFileResponse, type RefreshTokensHeaders, type RefreshTokensMutationError, type RefreshTokensMutationResult, type RefreshTokensMutationVariables, type RegisterMutationBody, type RegisterMutationError, type RegisterMutationResult, type RegisterMutationVariables, type UpdateActivityMutationBody, type UpdateActivityMutationError, type UpdateActivityMutationResult, type UpdateActivityMutationVariables, type UpdateFoodMutationBody, type UpdateFoodMutationError, type UpdateFoodMutationResult, type UpdateFoodMutationVariables, type UpdateProfileMutationBody, type UpdateProfileMutationError, type UpdateProfileMutationResult, type UpdateProfileMutationVariables, type UploadFileBody, type UploadFileMutationBody, type UploadFileMutationError, type UploadFileMutationResult, type UploadFileMutationVariables, apiClient, configureAuth, createActivity, createFood, deleteActivity, deleteFile, deleteFood, getActivities, getCreateActivityMutationKey, getCreateActivityMutationOptions, getCreateFoodMutationKey, getCreateFoodMutationOptions, getDeleteActivityMutationKey, getDeleteActivityMutationOptions, getDeleteFileMutationKey, getDeleteFileMutationOptions, getDeleteFoodMutationKey, getDeleteFoodMutationOptions, getDiary, getDiaryBalances, getDiaryMacros, getDiaryMarks, getFoods, getGetActivitiesQueryKey, getGetActivitiesQueryOptions, getGetDiaryBalancesQueryKey, getGetDiaryMacrosQueryKey, getGetDiaryMarksQueryKey, getGetDiaryQueryKey, getGetFoodsQueryKey, getGetFoodsQueryOptions, getGetProfileQueryKey, getGetProfileQueryOptions, getLoginMutationKey, getLoginMutationOptions, getLoginWithTelegramMutationKey, getLoginWithTelegramMutationOptions, getProfile, getRefreshTokensMutationKey, getRefreshTokensMutationOptions, getRegisterMutationKey, getRegisterMutationOptions, getUpdateActivityMutationKey, getUpdateActivityMutationOptions, getUpdateFoodMutationKey, getUpdateFoodMutationOptions, getUpdateProfileMutationKey, getUpdateProfileMutationOptions, getUploadFileMutationKey, getUploadFileMutationOptions, login, loginWithTelegram, refreshTokens, register, updateActivity, updateFood, updateProfile, uploadFile, useCreateActivity, useCreateFood, useDeleteActivity, useDeleteFile, useDeleteFood, useGetActivities, useGetDiary, useGetDiaryBalances, useGetDiaryBalancesQueryOptions, useGetDiaryMacros, useGetDiaryMacrosQueryOptions, useGetDiaryMarks, useGetDiaryMarksQueryOptions, useGetDiaryQueryOptions, useGetFoods, useGetProfile, useLogin, useLoginWithTelegram, useRefreshTokens, useRegister, useUpdateActivity, useUpdateFood, useUpdateProfile, useUploadFile };