aivilife-contracts 1.0.0 → 2.0.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/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserRole } from './index-BexwaaJv.mjs';
3
- export { A as AuthUser, a as AuthUserSchema, R as RefreshResponse, b as RefreshResponseSchema, S as SignInRequest, c as SignInRequestSchema, d as SignInResponse, e as SignInResponseSchema, f as SignUpRequest, g as SignUpRequestSchema } from './index-BexwaaJv.mjs';
2
+ import { U as UserRole } from './index-LnrjPFdn.mjs';
3
+ export { A as AuthUser, a as AuthUserSchema, C as ConfirmEmail, b as ConfirmEmailSchema, F as ForgotPassword, c as ForgotPasswordSchema, R as RefreshResponse, d as RefreshResponseSchema, e as RequestEmailVerification, f as RequestEmailVerificationSchema, g as ResetPassword, h as ResetPasswordSchema, S as SignInRequest, i as SignInRequestSchema, j as SignInResponse, k as SignInResponseSchema, l as SignUpRequest, m as SignUpRequestSchema } from './index-LnrjPFdn.mjs';
4
4
 
5
5
  declare const PageSchema: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6
6
  declare const LimitSchema: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -43,6 +43,16 @@ declare const BaseListQuerySchema: z.ZodObject<{
43
43
 
44
44
  type BaseListQuery = z.infer<typeof BaseListQuerySchema>;
45
45
 
46
+ /** Максимум для Postgres int4 (SERIAL первичный ключ). */
47
+ declare const INT4_MAX = 2147483647;
48
+ /**
49
+ * Идентификатор записи в БД (int4 PK).
50
+ * Коэрсит строку из path/query в число и не пропускает значения вне диапазона
51
+ * integer — иначе запрос падает в Postgres с `22003 out of range for type integer`.
52
+ */
53
+ declare const DbIdSchema: z.ZodCoercedNumber<unknown>;
54
+ type DbId = z.infer<typeof DbIdSchema>;
55
+
46
56
  declare const UserSchema: z.ZodObject<{
47
57
  id: z.ZodNumber;
48
58
  firstName: z.ZodString;
@@ -57,6 +67,10 @@ declare const UserSchema: z.ZodObject<{
57
67
  countryCode: z.ZodString;
58
68
  country: z.ZodString;
59
69
  city: z.ZodString;
70
+ whatsappLink: z.ZodNullable<z.ZodString>;
71
+ instagramLink: z.ZodNullable<z.ZodString>;
72
+ telegramLink: z.ZodNullable<z.ZodString>;
73
+ displayCurrency: z.ZodString;
60
74
  role: z.ZodEnum<typeof UserRole>;
61
75
  createdAt: z.ZodISODateTime;
62
76
  updatedAt: z.ZodISODateTime;
@@ -72,6 +86,21 @@ declare const CreateUserRequestSchema: z.ZodObject<{
72
86
  country: z.ZodString;
73
87
  city: z.ZodString;
74
88
  }, z.core.$strip>;
89
+ declare const UpdateUserRequestSchema: z.ZodObject<{
90
+ firstName: z.ZodOptional<z.ZodString>;
91
+ lastName: z.ZodOptional<z.ZodString>;
92
+ countryCode: z.ZodOptional<z.ZodString>;
93
+ country: z.ZodOptional<z.ZodString>;
94
+ city: z.ZodOptional<z.ZodString>;
95
+ whatsappLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ instagramLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ telegramLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ displayCurrency: z.ZodOptional<z.ZodString>;
99
+ }, z.core.$strip>;
100
+ declare const ChangePasswordRequestSchema: z.ZodObject<{
101
+ currentPassword: z.ZodString;
102
+ newPassword: z.ZodString;
103
+ }, z.core.$strip>;
75
104
  declare const UserListResponseSchema: z.ZodArray<z.ZodObject<{
76
105
  id: z.ZodNumber;
77
106
  firstName: z.ZodString;
@@ -86,15 +115,56 @@ declare const UserListResponseSchema: z.ZodArray<z.ZodObject<{
86
115
  countryCode: z.ZodString;
87
116
  country: z.ZodString;
88
117
  city: z.ZodString;
118
+ whatsappLink: z.ZodNullable<z.ZodString>;
119
+ instagramLink: z.ZodNullable<z.ZodString>;
120
+ telegramLink: z.ZodNullable<z.ZodString>;
121
+ displayCurrency: z.ZodString;
89
122
  role: z.ZodEnum<typeof UserRole>;
90
123
  createdAt: z.ZodISODateTime;
91
124
  updatedAt: z.ZodISODateTime;
92
125
  }, z.core.$strip>>;
93
126
 
94
127
  type UserCreateRequest = z.infer<typeof CreateUserRequestSchema>;
128
+ type UserUpdateRequest = z.infer<typeof UpdateUserRequestSchema>;
129
+ type ChangePasswordRequest = z.infer<typeof ChangePasswordRequestSchema>;
95
130
  type UserResponse = z.infer<typeof UserSchema>;
96
131
  type UserListResponse = z.infer<typeof UserListResponseSchema>;
97
132
 
133
+ declare enum UserFileType {
134
+ PHOTO = "PHOTO",
135
+ DOCUMENT = "DOCUMENT"
136
+ }
137
+
138
+ declare const UserFileSchema: z.ZodObject<{
139
+ id: z.ZodNumber;
140
+ userId: z.ZodNumber;
141
+ type: z.ZodEnum<typeof UserFileType>;
142
+ url: z.ZodString;
143
+ originalName: z.ZodNullable<z.ZodString>;
144
+ mimeType: z.ZodNullable<z.ZodString>;
145
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
146
+ createdAt: z.ZodISODateTime;
147
+ updatedAt: z.ZodISODateTime;
148
+ }, z.core.$strip>;
149
+ declare const UserFileListSchema: z.ZodArray<z.ZodObject<{
150
+ id: z.ZodNumber;
151
+ userId: z.ZodNumber;
152
+ type: z.ZodEnum<typeof UserFileType>;
153
+ url: z.ZodString;
154
+ originalName: z.ZodNullable<z.ZodString>;
155
+ mimeType: z.ZodNullable<z.ZodString>;
156
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
157
+ createdAt: z.ZodISODateTime;
158
+ updatedAt: z.ZodISODateTime;
159
+ }, z.core.$strip>>;
160
+ /** Path-параметр `:fileId` для операций с файлами пользователя. */
161
+ declare const FileIdParamSchema: z.ZodObject<{
162
+ fileId: z.ZodCoercedNumber<unknown>;
163
+ }, z.core.$strip>;
164
+ type UserFile = z.infer<typeof UserFileSchema>;
165
+ type UserFileList = z.infer<typeof UserFileListSchema>;
166
+ type FileIdParam = z.infer<typeof FileIdParamSchema>;
167
+
98
168
  declare enum WalletCurrency {
99
169
  PV = "PV",
100
170
  MONEY = "MONEY"
@@ -122,6 +192,11 @@ declare const WalletSchema: z.ZodObject<{
122
192
  blockedBalance: z.ZodString;
123
193
  currency: z.ZodEnum<typeof WalletCurrency>;
124
194
  status: z.ZodEnum<typeof WalletStatus>;
195
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
196
+ currency: z.ZodString;
197
+ amount: z.ZodString;
198
+ rate: z.ZodString;
199
+ }, z.core.$strip>>>;
125
200
  createdAt: z.ZodString;
126
201
  updatedAt: z.ZodString;
127
202
  }, z.core.$strip>;
@@ -133,6 +208,11 @@ declare const WalletListResponseSchema: z.ZodArray<z.ZodObject<{
133
208
  blockedBalance: z.ZodString;
134
209
  currency: z.ZodEnum<typeof WalletCurrency>;
135
210
  status: z.ZodEnum<typeof WalletStatus>;
211
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
212
+ currency: z.ZodString;
213
+ amount: z.ZodString;
214
+ rate: z.ZodString;
215
+ }, z.core.$strip>>>;
136
216
  createdAt: z.ZodString;
137
217
  updatedAt: z.ZodString;
138
218
  }, z.core.$strip>>;
@@ -174,6 +254,7 @@ declare enum WalletTransactionReason {
174
254
  }
175
255
 
176
256
  declare const MoneyAmountSchema: z.ZodString;
257
+ declare const WalletOperationKeySchema: z.ZodString;
177
258
  declare const WalletTransactionDirectionSchema: z.ZodEnum<typeof WalletTransactionDirection>;
178
259
  declare const WalletTransactionStatusSchema: z.ZodEnum<typeof WalletTransactionStatus>;
179
260
  declare const WalletTransactionReasonSchema: z.ZodEnum<typeof WalletTransactionReason>;
@@ -184,6 +265,7 @@ declare const WalletTransactionSourceUserSchema: z.ZodObject<{
184
265
  }, z.core.$strip>;
185
266
  declare const WalletTransactionSchema: z.ZodObject<{
186
267
  id: z.ZodNumber;
268
+ operationKey: z.ZodString;
187
269
  walletId: z.ZodNumber;
188
270
  userId: z.ZodNumber;
189
271
  walletType: z.ZodEnum<typeof WalletType>;
@@ -203,6 +285,7 @@ declare const WalletTransactionSchema: z.ZodObject<{
203
285
  }, z.core.$strip>;
204
286
  declare const WalletTransactionDetailsSchema: z.ZodObject<{
205
287
  id: z.ZodNumber;
288
+ operationKey: z.ZodString;
206
289
  walletId: z.ZodNumber;
207
290
  userId: z.ZodNumber;
208
291
  walletType: z.ZodEnum<typeof WalletType>;
@@ -224,8 +307,14 @@ declare const WalletTransactionDetailsSchema: z.ZodObject<{
224
307
  login: z.ZodNullable<z.ZodString>;
225
308
  fullName: z.ZodNullable<z.ZodString>;
226
309
  }, z.core.$strip>>;
310
+ displayAmount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
311
+ currency: z.ZodString;
312
+ amount: z.ZodString;
313
+ rate: z.ZodString;
314
+ }, z.core.$strip>>>;
227
315
  }, z.core.$strip>;
228
316
  declare const CreateWalletTransactionRequestSchema: z.ZodObject<{
317
+ operationKey: z.ZodString;
229
318
  userId: z.ZodNumber;
230
319
  walletType: z.ZodEnum<typeof WalletType>;
231
320
  direction: z.ZodEnum<typeof WalletTransactionDirection>;
@@ -253,6 +342,7 @@ declare const WalletTransactionsListQuerySchema: z.ZodObject<{
253
342
  }, z.core.$strip>;
254
343
  declare const WalletTransactionListResponseSchema: z.ZodArray<z.ZodObject<{
255
344
  id: z.ZodNumber;
345
+ operationKey: z.ZodString;
256
346
  walletId: z.ZodNumber;
257
347
  userId: z.ZodNumber;
258
348
  walletType: z.ZodEnum<typeof WalletType>;
@@ -272,6 +362,7 @@ declare const WalletTransactionListResponseSchema: z.ZodArray<z.ZodObject<{
272
362
  }, z.core.$strip>>;
273
363
  declare const WalletTransactionDetailsListResponseSchema: z.ZodArray<z.ZodObject<{
274
364
  id: z.ZodNumber;
365
+ operationKey: z.ZodString;
275
366
  walletId: z.ZodNumber;
276
367
  userId: z.ZodNumber;
277
368
  walletType: z.ZodEnum<typeof WalletType>;
@@ -293,6 +384,11 @@ declare const WalletTransactionDetailsListResponseSchema: z.ZodArray<z.ZodObject
293
384
  login: z.ZodNullable<z.ZodString>;
294
385
  fullName: z.ZodNullable<z.ZodString>;
295
386
  }, z.core.$strip>>;
387
+ displayAmount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
388
+ currency: z.ZodString;
389
+ amount: z.ZodString;
390
+ rate: z.ZodString;
391
+ }, z.core.$strip>>>;
296
392
  }, z.core.$strip>>;
297
393
  declare const GetUserWalletTransactionsParamsSchema: z.ZodObject<{
298
394
  userId: z.ZodCoercedNumber<unknown>;
@@ -330,4 +426,93 @@ type CityResponse = z.infer<typeof CityResponseSchema>;
330
426
  type CitiesResponse = z.infer<typeof CitiesResponseSchema>;
331
427
  type GetCitiesQuery = z.infer<typeof GetCitiesQuerySchema>;
332
428
 
333
- export { type BaseListQuery, BaseListQuerySchema, type CitiesResponse, CitiesResponseSchema, type CityResponse, CityResponseSchema, type CountriesResponse, CountriesResponseSchema, type CountryResponse, CountryResponseSchema, CreateUserRequestSchema, type CreateWalletTransactionRequest, CreateWalletTransactionRequestSchema, DateFromSchema, DateToSchema, type GetCitiesQuery, GetCitiesQuerySchema, type GetUserWalletByTypeParams, GetUserWalletByTypeParamsSchema, GetUserWalletTransactionsParamsSchema, type GetUserWalletsParams, GetUserWalletsParamsSchema, LimitSchema, MoneyAmountSchema, PageSchema, type PaginatedResponse, type PaginatedResponseMeta, type PaginationQuery, PaginationQuerySchema, SearchSchema, type SortOrder, SortOrderSchema, type UserCreateRequest, type UserListResponse, UserListResponseSchema, type UserResponse, UserRole, UserSchema, WalletCurrency, WalletCurrencySchema, type WalletListResponse, WalletListResponseSchema, type WalletResponse, WalletSchema, WalletStatus, WalletStatusSchema, WalletTransactionDetailsListResponseSchema, type WalletTransactionDetailsResponse, WalletTransactionDetailsSchema, WalletTransactionDirection, WalletTransactionDirectionSchema, WalletTransactionListResponseSchema, WalletTransactionReason, WalletTransactionReasonSchema, type WalletTransactionResponse, WalletTransactionSchema, WalletTransactionSourceUserSchema, WalletTransactionStatus, WalletTransactionStatusSchema, type WalletTransactionsListQuery, WalletTransactionsListQuerySchema, WalletType, WalletTypeSchema };
429
+ /** Код валюты ISO 4217 (3 заглавные буквы). */
430
+ declare const CurrencyCodeSchema: z.ZodString;
431
+ declare const CurrencyCodeParamSchema: z.ZodObject<{
432
+ code: z.ZodString;
433
+ }, z.core.$strip>;
434
+ declare const CurrencySchema: z.ZodObject<{
435
+ id: z.ZodNumber;
436
+ code: z.ZodString;
437
+ name: z.ZodString;
438
+ symbol: z.ZodString;
439
+ decimalDigits: z.ZodNumber;
440
+ isActive: z.ZodBoolean;
441
+ isBase: z.ZodBoolean;
442
+ createdAt: z.ZodString;
443
+ updatedAt: z.ZodString;
444
+ }, z.core.$strip>;
445
+ declare const CurrencyListResponseSchema: z.ZodArray<z.ZodObject<{
446
+ id: z.ZodNumber;
447
+ code: z.ZodString;
448
+ name: z.ZodString;
449
+ symbol: z.ZodString;
450
+ decimalDigits: z.ZodNumber;
451
+ isActive: z.ZodBoolean;
452
+ isBase: z.ZodBoolean;
453
+ createdAt: z.ZodString;
454
+ updatedAt: z.ZodString;
455
+ }, z.core.$strip>>;
456
+ declare const CreateCurrencyRequestSchema: z.ZodObject<{
457
+ code: z.ZodString;
458
+ name: z.ZodString;
459
+ symbol: z.ZodString;
460
+ decimalDigits: z.ZodDefault<z.ZodNumber>;
461
+ isActive: z.ZodDefault<z.ZodBoolean>;
462
+ ratePerBase: z.ZodString;
463
+ }, z.core.$strip>;
464
+ declare const UpdateCurrencyRequestSchema: z.ZodObject<{
465
+ name: z.ZodOptional<z.ZodString>;
466
+ symbol: z.ZodOptional<z.ZodString>;
467
+ decimalDigits: z.ZodOptional<z.ZodNumber>;
468
+ isActive: z.ZodOptional<z.ZodBoolean>;
469
+ }, z.core.$strip>;
470
+
471
+ /** Денежная сумма как строка (decimal), напр. "1234.56". */
472
+ declare const MoneyAmountStringSchema: z.ZodString;
473
+ /**
474
+ * Представление денежной суммы в валюте отображения.
475
+ * `amount` уже сконвертирован из базовой валюты по `rate`.
476
+ */
477
+ declare const MoneyViewSchema: z.ZodObject<{
478
+ currency: z.ZodString;
479
+ amount: z.ZodString;
480
+ rate: z.ZodString;
481
+ }, z.core.$strip>;
482
+
483
+ declare const ExchangeRateSourceSchema: z.ZodLiteral<"manual">;
484
+ declare const ExchangeRateSchema: z.ZodObject<{
485
+ id: z.ZodNumber;
486
+ currencyCode: z.ZodString;
487
+ ratePerBase: z.ZodString;
488
+ source: z.ZodLiteral<"manual">;
489
+ createdAt: z.ZodString;
490
+ updatedAt: z.ZodString;
491
+ }, z.core.$strip>;
492
+ declare const ExchangeRateListResponseSchema: z.ZodArray<z.ZodObject<{
493
+ id: z.ZodNumber;
494
+ currencyCode: z.ZodString;
495
+ ratePerBase: z.ZodString;
496
+ source: z.ZodLiteral<"manual">;
497
+ createdAt: z.ZodString;
498
+ updatedAt: z.ZodString;
499
+ }, z.core.$strip>>;
500
+ declare const UpdateExchangeRateRequestSchema: z.ZodObject<{
501
+ ratePerBase: z.ZodString;
502
+ }, z.core.$strip>;
503
+
504
+ /** numeric(30,18): up to 12 integer and 18 fractional digits. */
505
+ declare const RatePerBaseSchema: z.ZodString;
506
+
507
+ type Currency = z.infer<typeof CurrencySchema>;
508
+ type CurrencyResponse = Currency;
509
+ type CurrencyListResponse = z.infer<typeof CurrencyListResponseSchema>;
510
+ type CreateCurrencyRequest = z.infer<typeof CreateCurrencyRequestSchema>;
511
+ type UpdateCurrencyRequest = z.infer<typeof UpdateCurrencyRequestSchema>;
512
+ type MoneyView = z.infer<typeof MoneyViewSchema>;
513
+ type ExchangeRate = z.infer<typeof ExchangeRateSchema>;
514
+ type ExchangeRateResponse = ExchangeRate;
515
+ type ExchangeRateListResponse = z.infer<typeof ExchangeRateListResponseSchema>;
516
+ type UpdateExchangeRateRequest = z.infer<typeof UpdateExchangeRateRequestSchema>;
517
+
518
+ export { type BaseListQuery, BaseListQuerySchema, type ChangePasswordRequest, ChangePasswordRequestSchema, type CitiesResponse, CitiesResponseSchema, type CityResponse, CityResponseSchema, type CountriesResponse, CountriesResponseSchema, type CountryResponse, CountryResponseSchema, type CreateCurrencyRequest, CreateCurrencyRequestSchema, CreateUserRequestSchema, type CreateWalletTransactionRequest, CreateWalletTransactionRequestSchema, type Currency, CurrencyCodeParamSchema, CurrencyCodeSchema, type CurrencyListResponse, CurrencyListResponseSchema, type CurrencyResponse, CurrencySchema, DateFromSchema, DateToSchema, type DbId, DbIdSchema, type ExchangeRate, type ExchangeRateListResponse, ExchangeRateListResponseSchema, type ExchangeRateResponse, ExchangeRateSchema, ExchangeRateSourceSchema, type FileIdParam, FileIdParamSchema, type GetCitiesQuery, GetCitiesQuerySchema, type GetUserWalletByTypeParams, GetUserWalletByTypeParamsSchema, GetUserWalletTransactionsParamsSchema, type GetUserWalletsParams, GetUserWalletsParamsSchema, INT4_MAX, LimitSchema, MoneyAmountSchema, MoneyAmountStringSchema, type MoneyView, MoneyViewSchema, PageSchema, type PaginatedResponse, type PaginatedResponseMeta, type PaginationQuery, PaginationQuerySchema, RatePerBaseSchema, SearchSchema, type SortOrder, SortOrderSchema, type UpdateCurrencyRequest, UpdateCurrencyRequestSchema, type UpdateExchangeRateRequest, UpdateExchangeRateRequestSchema, UpdateUserRequestSchema, type UserCreateRequest, type UserFile, type UserFileList, UserFileListSchema, UserFileSchema, UserFileType, type UserListResponse, UserListResponseSchema, type UserResponse, UserRole, UserSchema, type UserUpdateRequest, WalletCurrency, WalletCurrencySchema, type WalletListResponse, WalletListResponseSchema, WalletOperationKeySchema, type WalletResponse, WalletSchema, WalletStatus, WalletStatusSchema, WalletTransactionDetailsListResponseSchema, type WalletTransactionDetailsResponse, WalletTransactionDetailsSchema, WalletTransactionDirection, WalletTransactionDirectionSchema, WalletTransactionListResponseSchema, WalletTransactionReason, WalletTransactionReasonSchema, type WalletTransactionResponse, WalletTransactionSchema, WalletTransactionSourceUserSchema, WalletTransactionStatus, WalletTransactionStatusSchema, type WalletTransactionsListQuery, WalletTransactionsListQuerySchema, WalletType, WalletTypeSchema };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserRole } from './index-BexwaaJv.js';
3
- export { A as AuthUser, a as AuthUserSchema, R as RefreshResponse, b as RefreshResponseSchema, S as SignInRequest, c as SignInRequestSchema, d as SignInResponse, e as SignInResponseSchema, f as SignUpRequest, g as SignUpRequestSchema } from './index-BexwaaJv.js';
2
+ import { U as UserRole } from './index-LnrjPFdn.js';
3
+ export { A as AuthUser, a as AuthUserSchema, C as ConfirmEmail, b as ConfirmEmailSchema, F as ForgotPassword, c as ForgotPasswordSchema, R as RefreshResponse, d as RefreshResponseSchema, e as RequestEmailVerification, f as RequestEmailVerificationSchema, g as ResetPassword, h as ResetPasswordSchema, S as SignInRequest, i as SignInRequestSchema, j as SignInResponse, k as SignInResponseSchema, l as SignUpRequest, m as SignUpRequestSchema } from './index-LnrjPFdn.js';
4
4
 
5
5
  declare const PageSchema: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6
6
  declare const LimitSchema: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -43,6 +43,16 @@ declare const BaseListQuerySchema: z.ZodObject<{
43
43
 
44
44
  type BaseListQuery = z.infer<typeof BaseListQuerySchema>;
45
45
 
46
+ /** Максимум для Postgres int4 (SERIAL первичный ключ). */
47
+ declare const INT4_MAX = 2147483647;
48
+ /**
49
+ * Идентификатор записи в БД (int4 PK).
50
+ * Коэрсит строку из path/query в число и не пропускает значения вне диапазона
51
+ * integer — иначе запрос падает в Postgres с `22003 out of range for type integer`.
52
+ */
53
+ declare const DbIdSchema: z.ZodCoercedNumber<unknown>;
54
+ type DbId = z.infer<typeof DbIdSchema>;
55
+
46
56
  declare const UserSchema: z.ZodObject<{
47
57
  id: z.ZodNumber;
48
58
  firstName: z.ZodString;
@@ -57,6 +67,10 @@ declare const UserSchema: z.ZodObject<{
57
67
  countryCode: z.ZodString;
58
68
  country: z.ZodString;
59
69
  city: z.ZodString;
70
+ whatsappLink: z.ZodNullable<z.ZodString>;
71
+ instagramLink: z.ZodNullable<z.ZodString>;
72
+ telegramLink: z.ZodNullable<z.ZodString>;
73
+ displayCurrency: z.ZodString;
60
74
  role: z.ZodEnum<typeof UserRole>;
61
75
  createdAt: z.ZodISODateTime;
62
76
  updatedAt: z.ZodISODateTime;
@@ -72,6 +86,21 @@ declare const CreateUserRequestSchema: z.ZodObject<{
72
86
  country: z.ZodString;
73
87
  city: z.ZodString;
74
88
  }, z.core.$strip>;
89
+ declare const UpdateUserRequestSchema: z.ZodObject<{
90
+ firstName: z.ZodOptional<z.ZodString>;
91
+ lastName: z.ZodOptional<z.ZodString>;
92
+ countryCode: z.ZodOptional<z.ZodString>;
93
+ country: z.ZodOptional<z.ZodString>;
94
+ city: z.ZodOptional<z.ZodString>;
95
+ whatsappLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ instagramLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ telegramLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ displayCurrency: z.ZodOptional<z.ZodString>;
99
+ }, z.core.$strip>;
100
+ declare const ChangePasswordRequestSchema: z.ZodObject<{
101
+ currentPassword: z.ZodString;
102
+ newPassword: z.ZodString;
103
+ }, z.core.$strip>;
75
104
  declare const UserListResponseSchema: z.ZodArray<z.ZodObject<{
76
105
  id: z.ZodNumber;
77
106
  firstName: z.ZodString;
@@ -86,15 +115,56 @@ declare const UserListResponseSchema: z.ZodArray<z.ZodObject<{
86
115
  countryCode: z.ZodString;
87
116
  country: z.ZodString;
88
117
  city: z.ZodString;
118
+ whatsappLink: z.ZodNullable<z.ZodString>;
119
+ instagramLink: z.ZodNullable<z.ZodString>;
120
+ telegramLink: z.ZodNullable<z.ZodString>;
121
+ displayCurrency: z.ZodString;
89
122
  role: z.ZodEnum<typeof UserRole>;
90
123
  createdAt: z.ZodISODateTime;
91
124
  updatedAt: z.ZodISODateTime;
92
125
  }, z.core.$strip>>;
93
126
 
94
127
  type UserCreateRequest = z.infer<typeof CreateUserRequestSchema>;
128
+ type UserUpdateRequest = z.infer<typeof UpdateUserRequestSchema>;
129
+ type ChangePasswordRequest = z.infer<typeof ChangePasswordRequestSchema>;
95
130
  type UserResponse = z.infer<typeof UserSchema>;
96
131
  type UserListResponse = z.infer<typeof UserListResponseSchema>;
97
132
 
133
+ declare enum UserFileType {
134
+ PHOTO = "PHOTO",
135
+ DOCUMENT = "DOCUMENT"
136
+ }
137
+
138
+ declare const UserFileSchema: z.ZodObject<{
139
+ id: z.ZodNumber;
140
+ userId: z.ZodNumber;
141
+ type: z.ZodEnum<typeof UserFileType>;
142
+ url: z.ZodString;
143
+ originalName: z.ZodNullable<z.ZodString>;
144
+ mimeType: z.ZodNullable<z.ZodString>;
145
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
146
+ createdAt: z.ZodISODateTime;
147
+ updatedAt: z.ZodISODateTime;
148
+ }, z.core.$strip>;
149
+ declare const UserFileListSchema: z.ZodArray<z.ZodObject<{
150
+ id: z.ZodNumber;
151
+ userId: z.ZodNumber;
152
+ type: z.ZodEnum<typeof UserFileType>;
153
+ url: z.ZodString;
154
+ originalName: z.ZodNullable<z.ZodString>;
155
+ mimeType: z.ZodNullable<z.ZodString>;
156
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
157
+ createdAt: z.ZodISODateTime;
158
+ updatedAt: z.ZodISODateTime;
159
+ }, z.core.$strip>>;
160
+ /** Path-параметр `:fileId` для операций с файлами пользователя. */
161
+ declare const FileIdParamSchema: z.ZodObject<{
162
+ fileId: z.ZodCoercedNumber<unknown>;
163
+ }, z.core.$strip>;
164
+ type UserFile = z.infer<typeof UserFileSchema>;
165
+ type UserFileList = z.infer<typeof UserFileListSchema>;
166
+ type FileIdParam = z.infer<typeof FileIdParamSchema>;
167
+
98
168
  declare enum WalletCurrency {
99
169
  PV = "PV",
100
170
  MONEY = "MONEY"
@@ -122,6 +192,11 @@ declare const WalletSchema: z.ZodObject<{
122
192
  blockedBalance: z.ZodString;
123
193
  currency: z.ZodEnum<typeof WalletCurrency>;
124
194
  status: z.ZodEnum<typeof WalletStatus>;
195
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
196
+ currency: z.ZodString;
197
+ amount: z.ZodString;
198
+ rate: z.ZodString;
199
+ }, z.core.$strip>>>;
125
200
  createdAt: z.ZodString;
126
201
  updatedAt: z.ZodString;
127
202
  }, z.core.$strip>;
@@ -133,6 +208,11 @@ declare const WalletListResponseSchema: z.ZodArray<z.ZodObject<{
133
208
  blockedBalance: z.ZodString;
134
209
  currency: z.ZodEnum<typeof WalletCurrency>;
135
210
  status: z.ZodEnum<typeof WalletStatus>;
211
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
212
+ currency: z.ZodString;
213
+ amount: z.ZodString;
214
+ rate: z.ZodString;
215
+ }, z.core.$strip>>>;
136
216
  createdAt: z.ZodString;
137
217
  updatedAt: z.ZodString;
138
218
  }, z.core.$strip>>;
@@ -174,6 +254,7 @@ declare enum WalletTransactionReason {
174
254
  }
175
255
 
176
256
  declare const MoneyAmountSchema: z.ZodString;
257
+ declare const WalletOperationKeySchema: z.ZodString;
177
258
  declare const WalletTransactionDirectionSchema: z.ZodEnum<typeof WalletTransactionDirection>;
178
259
  declare const WalletTransactionStatusSchema: z.ZodEnum<typeof WalletTransactionStatus>;
179
260
  declare const WalletTransactionReasonSchema: z.ZodEnum<typeof WalletTransactionReason>;
@@ -184,6 +265,7 @@ declare const WalletTransactionSourceUserSchema: z.ZodObject<{
184
265
  }, z.core.$strip>;
185
266
  declare const WalletTransactionSchema: z.ZodObject<{
186
267
  id: z.ZodNumber;
268
+ operationKey: z.ZodString;
187
269
  walletId: z.ZodNumber;
188
270
  userId: z.ZodNumber;
189
271
  walletType: z.ZodEnum<typeof WalletType>;
@@ -203,6 +285,7 @@ declare const WalletTransactionSchema: z.ZodObject<{
203
285
  }, z.core.$strip>;
204
286
  declare const WalletTransactionDetailsSchema: z.ZodObject<{
205
287
  id: z.ZodNumber;
288
+ operationKey: z.ZodString;
206
289
  walletId: z.ZodNumber;
207
290
  userId: z.ZodNumber;
208
291
  walletType: z.ZodEnum<typeof WalletType>;
@@ -224,8 +307,14 @@ declare const WalletTransactionDetailsSchema: z.ZodObject<{
224
307
  login: z.ZodNullable<z.ZodString>;
225
308
  fullName: z.ZodNullable<z.ZodString>;
226
309
  }, z.core.$strip>>;
310
+ displayAmount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
311
+ currency: z.ZodString;
312
+ amount: z.ZodString;
313
+ rate: z.ZodString;
314
+ }, z.core.$strip>>>;
227
315
  }, z.core.$strip>;
228
316
  declare const CreateWalletTransactionRequestSchema: z.ZodObject<{
317
+ operationKey: z.ZodString;
229
318
  userId: z.ZodNumber;
230
319
  walletType: z.ZodEnum<typeof WalletType>;
231
320
  direction: z.ZodEnum<typeof WalletTransactionDirection>;
@@ -253,6 +342,7 @@ declare const WalletTransactionsListQuerySchema: z.ZodObject<{
253
342
  }, z.core.$strip>;
254
343
  declare const WalletTransactionListResponseSchema: z.ZodArray<z.ZodObject<{
255
344
  id: z.ZodNumber;
345
+ operationKey: z.ZodString;
256
346
  walletId: z.ZodNumber;
257
347
  userId: z.ZodNumber;
258
348
  walletType: z.ZodEnum<typeof WalletType>;
@@ -272,6 +362,7 @@ declare const WalletTransactionListResponseSchema: z.ZodArray<z.ZodObject<{
272
362
  }, z.core.$strip>>;
273
363
  declare const WalletTransactionDetailsListResponseSchema: z.ZodArray<z.ZodObject<{
274
364
  id: z.ZodNumber;
365
+ operationKey: z.ZodString;
275
366
  walletId: z.ZodNumber;
276
367
  userId: z.ZodNumber;
277
368
  walletType: z.ZodEnum<typeof WalletType>;
@@ -293,6 +384,11 @@ declare const WalletTransactionDetailsListResponseSchema: z.ZodArray<z.ZodObject
293
384
  login: z.ZodNullable<z.ZodString>;
294
385
  fullName: z.ZodNullable<z.ZodString>;
295
386
  }, z.core.$strip>>;
387
+ displayAmount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
388
+ currency: z.ZodString;
389
+ amount: z.ZodString;
390
+ rate: z.ZodString;
391
+ }, z.core.$strip>>>;
296
392
  }, z.core.$strip>>;
297
393
  declare const GetUserWalletTransactionsParamsSchema: z.ZodObject<{
298
394
  userId: z.ZodCoercedNumber<unknown>;
@@ -330,4 +426,93 @@ type CityResponse = z.infer<typeof CityResponseSchema>;
330
426
  type CitiesResponse = z.infer<typeof CitiesResponseSchema>;
331
427
  type GetCitiesQuery = z.infer<typeof GetCitiesQuerySchema>;
332
428
 
333
- export { type BaseListQuery, BaseListQuerySchema, type CitiesResponse, CitiesResponseSchema, type CityResponse, CityResponseSchema, type CountriesResponse, CountriesResponseSchema, type CountryResponse, CountryResponseSchema, CreateUserRequestSchema, type CreateWalletTransactionRequest, CreateWalletTransactionRequestSchema, DateFromSchema, DateToSchema, type GetCitiesQuery, GetCitiesQuerySchema, type GetUserWalletByTypeParams, GetUserWalletByTypeParamsSchema, GetUserWalletTransactionsParamsSchema, type GetUserWalletsParams, GetUserWalletsParamsSchema, LimitSchema, MoneyAmountSchema, PageSchema, type PaginatedResponse, type PaginatedResponseMeta, type PaginationQuery, PaginationQuerySchema, SearchSchema, type SortOrder, SortOrderSchema, type UserCreateRequest, type UserListResponse, UserListResponseSchema, type UserResponse, UserRole, UserSchema, WalletCurrency, WalletCurrencySchema, type WalletListResponse, WalletListResponseSchema, type WalletResponse, WalletSchema, WalletStatus, WalletStatusSchema, WalletTransactionDetailsListResponseSchema, type WalletTransactionDetailsResponse, WalletTransactionDetailsSchema, WalletTransactionDirection, WalletTransactionDirectionSchema, WalletTransactionListResponseSchema, WalletTransactionReason, WalletTransactionReasonSchema, type WalletTransactionResponse, WalletTransactionSchema, WalletTransactionSourceUserSchema, WalletTransactionStatus, WalletTransactionStatusSchema, type WalletTransactionsListQuery, WalletTransactionsListQuerySchema, WalletType, WalletTypeSchema };
429
+ /** Код валюты ISO 4217 (3 заглавные буквы). */
430
+ declare const CurrencyCodeSchema: z.ZodString;
431
+ declare const CurrencyCodeParamSchema: z.ZodObject<{
432
+ code: z.ZodString;
433
+ }, z.core.$strip>;
434
+ declare const CurrencySchema: z.ZodObject<{
435
+ id: z.ZodNumber;
436
+ code: z.ZodString;
437
+ name: z.ZodString;
438
+ symbol: z.ZodString;
439
+ decimalDigits: z.ZodNumber;
440
+ isActive: z.ZodBoolean;
441
+ isBase: z.ZodBoolean;
442
+ createdAt: z.ZodString;
443
+ updatedAt: z.ZodString;
444
+ }, z.core.$strip>;
445
+ declare const CurrencyListResponseSchema: z.ZodArray<z.ZodObject<{
446
+ id: z.ZodNumber;
447
+ code: z.ZodString;
448
+ name: z.ZodString;
449
+ symbol: z.ZodString;
450
+ decimalDigits: z.ZodNumber;
451
+ isActive: z.ZodBoolean;
452
+ isBase: z.ZodBoolean;
453
+ createdAt: z.ZodString;
454
+ updatedAt: z.ZodString;
455
+ }, z.core.$strip>>;
456
+ declare const CreateCurrencyRequestSchema: z.ZodObject<{
457
+ code: z.ZodString;
458
+ name: z.ZodString;
459
+ symbol: z.ZodString;
460
+ decimalDigits: z.ZodDefault<z.ZodNumber>;
461
+ isActive: z.ZodDefault<z.ZodBoolean>;
462
+ ratePerBase: z.ZodString;
463
+ }, z.core.$strip>;
464
+ declare const UpdateCurrencyRequestSchema: z.ZodObject<{
465
+ name: z.ZodOptional<z.ZodString>;
466
+ symbol: z.ZodOptional<z.ZodString>;
467
+ decimalDigits: z.ZodOptional<z.ZodNumber>;
468
+ isActive: z.ZodOptional<z.ZodBoolean>;
469
+ }, z.core.$strip>;
470
+
471
+ /** Денежная сумма как строка (decimal), напр. "1234.56". */
472
+ declare const MoneyAmountStringSchema: z.ZodString;
473
+ /**
474
+ * Представление денежной суммы в валюте отображения.
475
+ * `amount` уже сконвертирован из базовой валюты по `rate`.
476
+ */
477
+ declare const MoneyViewSchema: z.ZodObject<{
478
+ currency: z.ZodString;
479
+ amount: z.ZodString;
480
+ rate: z.ZodString;
481
+ }, z.core.$strip>;
482
+
483
+ declare const ExchangeRateSourceSchema: z.ZodLiteral<"manual">;
484
+ declare const ExchangeRateSchema: z.ZodObject<{
485
+ id: z.ZodNumber;
486
+ currencyCode: z.ZodString;
487
+ ratePerBase: z.ZodString;
488
+ source: z.ZodLiteral<"manual">;
489
+ createdAt: z.ZodString;
490
+ updatedAt: z.ZodString;
491
+ }, z.core.$strip>;
492
+ declare const ExchangeRateListResponseSchema: z.ZodArray<z.ZodObject<{
493
+ id: z.ZodNumber;
494
+ currencyCode: z.ZodString;
495
+ ratePerBase: z.ZodString;
496
+ source: z.ZodLiteral<"manual">;
497
+ createdAt: z.ZodString;
498
+ updatedAt: z.ZodString;
499
+ }, z.core.$strip>>;
500
+ declare const UpdateExchangeRateRequestSchema: z.ZodObject<{
501
+ ratePerBase: z.ZodString;
502
+ }, z.core.$strip>;
503
+
504
+ /** numeric(30,18): up to 12 integer and 18 fractional digits. */
505
+ declare const RatePerBaseSchema: z.ZodString;
506
+
507
+ type Currency = z.infer<typeof CurrencySchema>;
508
+ type CurrencyResponse = Currency;
509
+ type CurrencyListResponse = z.infer<typeof CurrencyListResponseSchema>;
510
+ type CreateCurrencyRequest = z.infer<typeof CreateCurrencyRequestSchema>;
511
+ type UpdateCurrencyRequest = z.infer<typeof UpdateCurrencyRequestSchema>;
512
+ type MoneyView = z.infer<typeof MoneyViewSchema>;
513
+ type ExchangeRate = z.infer<typeof ExchangeRateSchema>;
514
+ type ExchangeRateResponse = ExchangeRate;
515
+ type ExchangeRateListResponse = z.infer<typeof ExchangeRateListResponseSchema>;
516
+ type UpdateExchangeRateRequest = z.infer<typeof UpdateExchangeRateRequestSchema>;
517
+
518
+ export { type BaseListQuery, BaseListQuerySchema, type ChangePasswordRequest, ChangePasswordRequestSchema, type CitiesResponse, CitiesResponseSchema, type CityResponse, CityResponseSchema, type CountriesResponse, CountriesResponseSchema, type CountryResponse, CountryResponseSchema, type CreateCurrencyRequest, CreateCurrencyRequestSchema, CreateUserRequestSchema, type CreateWalletTransactionRequest, CreateWalletTransactionRequestSchema, type Currency, CurrencyCodeParamSchema, CurrencyCodeSchema, type CurrencyListResponse, CurrencyListResponseSchema, type CurrencyResponse, CurrencySchema, DateFromSchema, DateToSchema, type DbId, DbIdSchema, type ExchangeRate, type ExchangeRateListResponse, ExchangeRateListResponseSchema, type ExchangeRateResponse, ExchangeRateSchema, ExchangeRateSourceSchema, type FileIdParam, FileIdParamSchema, type GetCitiesQuery, GetCitiesQuerySchema, type GetUserWalletByTypeParams, GetUserWalletByTypeParamsSchema, GetUserWalletTransactionsParamsSchema, type GetUserWalletsParams, GetUserWalletsParamsSchema, INT4_MAX, LimitSchema, MoneyAmountSchema, MoneyAmountStringSchema, type MoneyView, MoneyViewSchema, PageSchema, type PaginatedResponse, type PaginatedResponseMeta, type PaginationQuery, PaginationQuerySchema, RatePerBaseSchema, SearchSchema, type SortOrder, SortOrderSchema, type UpdateCurrencyRequest, UpdateCurrencyRequestSchema, type UpdateExchangeRateRequest, UpdateExchangeRateRequestSchema, UpdateUserRequestSchema, type UserCreateRequest, type UserFile, type UserFileList, UserFileListSchema, UserFileSchema, UserFileType, type UserListResponse, UserListResponseSchema, type UserResponse, UserRole, UserSchema, type UserUpdateRequest, WalletCurrency, WalletCurrencySchema, type WalletListResponse, WalletListResponseSchema, WalletOperationKeySchema, type WalletResponse, WalletSchema, WalletStatus, WalletStatusSchema, WalletTransactionDetailsListResponseSchema, type WalletTransactionDetailsResponse, WalletTransactionDetailsSchema, WalletTransactionDirection, WalletTransactionDirectionSchema, WalletTransactionListResponseSchema, WalletTransactionReason, WalletTransactionReasonSchema, type WalletTransactionResponse, WalletTransactionSchema, WalletTransactionSourceUserSchema, WalletTransactionStatus, WalletTransactionStatusSchema, type WalletTransactionsListQuery, WalletTransactionsListQuerySchema, WalletType, WalletTypeSchema };