bb-api-platforma 0.1.168

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,1742 @@
1
+ export interface IBetslipItems {
2
+ Add1: number | null;
3
+ Add2: number | null;
4
+ BetVarID: number;
5
+ LinesID: number;
6
+ HandSize: number | null;
7
+ IsLive: boolean;
8
+ Odds: number;
9
+ }
10
+ export interface IAddToBasket {
11
+ eId: number;
12
+ bId: number;
13
+ r: number;
14
+ fs: number | null;
15
+ a1: number | null;
16
+ a2: number | null;
17
+ isLive: boolean;
18
+ }
19
+ export interface IRate {
20
+ Rate: string;
21
+ IsEnabled?: boolean;
22
+ SignChange?: string;
23
+ Id?: string;
24
+ TID?: string;
25
+ NameShort?: string;
26
+ NameLong?: string;
27
+ BN?: string;
28
+ BetId?: number;
29
+ AddToBasket?: IAddToBasket;
30
+ S?: number;
31
+ N?: number;
32
+ TotalSize?: number;
33
+ ForaSize?: number;
34
+ }
35
+ export interface IMainBet {
36
+ Id: string;
37
+ Caption?: string;
38
+ Rates?: IRate[];
39
+ }
40
+ export interface IEventKeys {
41
+ ID: number;
42
+ LinesID: number;
43
+ TurnirID: number;
44
+ SportID: number;
45
+ }
46
+ export interface IEventsHeader {
47
+ ExtraBetTypesCount: number;
48
+ MainBets: IMainBet[];
49
+ HomeTeamName: string;
50
+ AwayTeamName: string;
51
+ SportName: string;
52
+ TourneyName: string;
53
+ Comment: string;
54
+ EventKeys: IEventKeys;
55
+ Date: string;
56
+ CountryId: number;
57
+ PriceNum: number;
58
+ }
59
+ export interface GetPrematchTournament {
60
+ EventsHeaders: IEventsHeader[];
61
+ Id: number;
62
+ Name: string;
63
+ }
64
+ export interface IRates {
65
+ S: string;
66
+ IsT: boolean;
67
+ Caption: string;
68
+ Id: string;
69
+ Rates: IRate[];
70
+ State: number;
71
+ GroupName: string | null;
72
+ Comment: string | null;
73
+ }
74
+ export interface IRospisGroup {
75
+ Name: string;
76
+ IsEnabled: boolean;
77
+ State: number;
78
+ Id: number;
79
+ Rates: IRates[];
80
+ }
81
+ export interface IMinMatch {
82
+ Minutes: number;
83
+ Seconds: number;
84
+ TotalMinutes: number;
85
+ }
86
+ export interface ILiveDescription {
87
+ SportId: number;
88
+ CountryId: number;
89
+ TournamentId: number;
90
+ LinesId: number;
91
+ CommentId: null | string;
92
+ PriceNum: number;
93
+ Comment: string;
94
+ Score: string;
95
+ MinMatch: IMinMatch;
96
+ Date: string;
97
+ ServingTeam: number;
98
+ NameTeam1: string;
99
+ NameTeam2: string;
100
+ TName: string;
101
+ SportName: number;
102
+ }
103
+ export interface ILiveData {
104
+ RospisGroups: IRospisGroup[];
105
+ TimeStamp: null | string;
106
+ Id: string;
107
+ Status: number;
108
+ CountRospis: number;
109
+ State: number;
110
+ Description: ILiveDescription;
111
+ Statistic: string;
112
+ ScoreStats: any[];
113
+ TVChannels: any[];
114
+ Markets: any[];
115
+ LineArchive: null | string;
116
+ }
117
+ export interface ILiveDataResponce {
118
+ ts: number;
119
+ events: ILiveData[];
120
+ isFullPackage: boolean;
121
+ Error?: string | null;
122
+ }
123
+ export interface ISport {
124
+ ID: number;
125
+ Name: string;
126
+ }
127
+ export interface IGetLineSportsResponse {
128
+ [index: number]: ISport;
129
+ }
130
+ export interface ICountry {
131
+ ID: number;
132
+ Name: string;
133
+ }
134
+ export interface IGetCountriesListResponse {
135
+ [index: number]: ICountry;
136
+ }
137
+ export interface IChangePassword {
138
+ mailSubject: string;
139
+ userData: {
140
+ UserId: number;
141
+ OldPassword: string;
142
+ NewPassword: string;
143
+ /**
144
+ * offset from GMT in the format
145
+ * new Date().getTimezoneOffset() / 60
146
+ * @type {number}
147
+ */
148
+ Gmt: number;
149
+ /**
150
+ * Блять! Id Языка
151
+ * @type {number}
152
+ */
153
+ Language: number;
154
+ };
155
+ }
156
+ export interface ISearchPrematch {
157
+ SportName: string;
158
+ SportId: number;
159
+ Id: number;
160
+ CountryId: number;
161
+ Name: string;
162
+ Type: number;
163
+ TournamentId?: number;
164
+ Date?: string;
165
+ TournamentName?: string;
166
+ PriceNum?: number;
167
+ }
168
+ export interface ISearchEventsData {
169
+ CountryId: number;
170
+ Date: string;
171
+ Id: number;
172
+ Name: string;
173
+ PriceNum: number;
174
+ SportId: number;
175
+ SportName: string;
176
+ TournamentId: number;
177
+ TournamentName: string;
178
+ /**
179
+ * Types:
180
+ * * 0 = "Sport";
181
+ * * 1 = "Tournament";
182
+ * * 2 = "PrematchEvent";
183
+ * * 3 = "LiveEvent";
184
+ * @type {0|1|2|3}
185
+ */
186
+ Type: 0 | 1 | 2 | 3;
187
+ isLive: boolean;
188
+ to: {
189
+ name: string;
190
+ params: {
191
+ prEventId: string;
192
+ };
193
+ };
194
+ t1: string;
195
+ t2: string;
196
+ }
197
+ export interface IPayloadWithdrawal {
198
+ /**
199
+ * ID платёжной системы (Кассир(5), WebMoney(2), Skrill(10))
200
+ * Всю информацию выяснять у программистов
201
+ * @type {number}
202
+ */
203
+ psType: number;
204
+ amount: string;
205
+ /**
206
+ * Номер кошелька в случае
207
+ * вывода через кассира - номер кассы
208
+ * в случае вывода на карту - номер карты
209
+ * @type {string}
210
+ */
211
+ purse: string;
212
+ password: string;
213
+ /**
214
+ * Хрень
215
+ */
216
+ securityCode?: string;
217
+ secAnswer?: string;
218
+ additionalParams?: Record<string, any>;
219
+ }
220
+ export interface IPayloadCancelOrderedTransaction {
221
+ transactionId: number;
222
+ status: ETransactionInternalStatus;
223
+ }
224
+ /**
225
+ * Represents the payload for retrieving account transactions.
226
+ * "/account/GetAccountTransactions"
227
+ */
228
+ export interface IGetMovementOfMoneyPayload {
229
+ /**
230
+ * Start date format: DDMMYYYY
231
+ */
232
+ begin: string;
233
+ /**
234
+ * End date format: DDMMYYYY
235
+ */
236
+ end: string;
237
+ /**
238
+ * Transactions types:
239
+ */
240
+ type: ETransactionType;
241
+ /**
242
+ * Period types:
243
+ */
244
+ periodType: EPeriodType;
245
+ /**
246
+ * Number of page (default 0)
247
+ */
248
+ page: number;
249
+ /**
250
+ * Count items per page
251
+ */
252
+ count: number;
253
+ /**
254
+ * (optional) Added automatically in the API class
255
+ */
256
+ culture?: string;
257
+ }
258
+ export interface ITransaction {
259
+ Id: number;
260
+ TransactionDate: string;
261
+ TransactionDescription: string;
262
+ TransactionType: number;
263
+ Bonus: number;
264
+ Amount: number;
265
+ Balance: number;
266
+ IsAddition: boolean;
267
+ BetId: number;
268
+ PointName: string;
269
+ PaymentSystemName: string;
270
+ BetCode: string;
271
+ PaymentSystemId: number | null;
272
+ }
273
+ export interface ITransactionsPayload {
274
+ TransactionsCount: number;
275
+ TransactionsAmount: number;
276
+ RakebackTransactionsAmount: number;
277
+ TransactionsDataList: ITransaction[];
278
+ }
279
+ export declare enum ETransactionInternalStatus {
280
+ /** Пустой, значение по умолчанию для всех транзакций (0) */
281
+ None = 0,
282
+ /** Заказано на вывод, транзакция не обработана (1) */
283
+ Ordered = 1,
284
+ /** Транзакция подтверждена (разрешена) админом к выводу на кассе (2) */
285
+ Confirmed = 2,
286
+ /** Авто-отмена транзакции (нужна для отмены пользовательской транзакции и создания нового заказа) (3) */
287
+ AutoReturned = 3,
288
+ /** Авто-заказ денег на вывод (например, перезаказ на другую сумму) (4) */
289
+ AutoOrdered = 4,
290
+ /** Возвращено (отказ/отмена от выплаты) (5) */
291
+ Returned = 5,
292
+ /** Вывод денег пользователю (6) */
293
+ Paid = 6,
294
+ /** Подтвержденная транзакция отменена (7) */
295
+ ConfirmedReturned = 7,
296
+ /**
297
+ * Транзакция находится в ожидании
298
+ * (для платежки DengiOnline транзакция является подстверженной кассиром, но еще находится в ожидании подтверждения/отмены от платежной системы)
299
+ * можно использовать еще для банковских карточек, там ожидание от 3 до 5 рабочих дней
300
+ */
301
+ Pending = 8
302
+ }
303
+ export type TGetUserBetsPayload = {
304
+ /** Date format 'DDMMYYYY' */
305
+ begin: string;
306
+ /** Date format 'DDMMYYYY' */
307
+ end: string;
308
+ /** default: 0 */
309
+ page: number;
310
+ /** default: 500 */
311
+ count: number;
312
+ /** hardware: 0 */
313
+ periodType: number;
314
+ showLossBets: boolean;
315
+ showWinBets: boolean;
316
+ showWorkBets: boolean;
317
+ culture?: string;
318
+ };
319
+ export type TGetGameFrameGoldenRacePayload = {
320
+ /** Идентификатор игры. "gameId" Обязательный параметр. */
321
+ game: number;
322
+ /** URL, на который игра перенаправляет в случае неожиданной ошибки или используется для клиентских конфигураций, таких как URL лобби для мобильных игр. Обязательный параметр. */
323
+ backurl: string;
324
+ /** Режим игры: 0 для виртуального (fun) или 1 для реального (real). По умолчанию: 1. */
325
+ mode: 0 | 1;
326
+ /** Код языка в формате ISO 639-1 alpha-2 для загрузки локализации. По умолчанию: "en". */
327
+ language: string | 'en' | 'fr' | 'es' | 'pt' | 'tr';
328
+ /** Платформа, с которой была запущена игра: "desktop" или "mobile". Укажите "mobile", если хотите открыть мобильный клиент игры. По умолчанию: "desktop". */
329
+ clientPlatform: 'desktop' | 'mobile';
330
+ };
331
+ export type TGetGameListGoldenRacePayload = {
332
+ platforms: 'mobile' | 'desktop' | 'retail';
333
+ gameTitle?: string;
334
+ provider?: string[];
335
+ type?: string;
336
+ sub_type?: string;
337
+ };
338
+ export type TPlaceBetPayload = {
339
+ betAmount: number;
340
+ doAcceptOddsChanges: boolean;
341
+ /**
342
+ * Should look something like this:
343
+ * `{
344
+ * "4084082_132_1.5_null_null": true,
345
+ * "4083927_39_null_276_null": true
346
+ * }`
347
+ */
348
+ statuses: Record<string, boolean>;
349
+ /**
350
+ * Is system (-1) or size of system (number)
351
+ * * (`-1`) not a system
352
+ * * (`system_size`) e.g. 3 events with 2 each, so we pass (2)
353
+ */
354
+ systemIndex: number;
355
+ };
356
+ export type TBetslip = {
357
+ LinesID: number | string;
358
+ BetVarID?: number | string;
359
+ HandSize?: number | string;
360
+ Add1?: number | string;
361
+ Add2?: number | string;
362
+ };
363
+ export type TSignUpPayload = {
364
+ /**
365
+ * UID Сайта партнера, например, "betbooster.win"
366
+ */
367
+ PartnerSiteUid: string;
368
+ FirstName?: string;
369
+ MiddleName?: string;
370
+ EmailOrPhone: string;
371
+ /**
372
+ * @deprecated
373
+ * Устарело, неорбходимо использовать PointId
374
+ */
375
+ CurrencyId?: number;
376
+ /**
377
+ * Новое поле, которое обозначает ID кассы, которое определяет валюту
378
+ */
379
+ PointId?: number;
380
+ Password: string;
381
+ PasswordRepeat: string;
382
+ UrlRedirect?: string;
383
+ /**
384
+ * Subject for e-mail
385
+ */
386
+ EmailSubject?: string;
387
+ /**
388
+ * e-mail text Body.
389
+ * Some text with {userHash}, and {userHash} can be in multiple places in {userHash} of this text.
390
+ * Instead of "{userHash}", the authorisation token must be substituted in all places.
391
+ */
392
+ EmailBody?: string;
393
+ EmailFrom?: string;
394
+ ConfirmUrl?: string;
395
+ Culture?: string;
396
+ };
397
+ export type TGetMovementOfMoney = {
398
+ result: {
399
+ income: boolean;
400
+ sign: string;
401
+ id: number;
402
+ typeId: number;
403
+ typeName: string;
404
+ date: string;
405
+ value: number;
406
+ amount: number;
407
+ bonus: number;
408
+ balance: number;
409
+ }[];
410
+ };
411
+ /**
412
+ * Вырианты вызова API
413
+ * * `v1` - старый API
414
+ * * `v2` - новый API
415
+ * * `lbc` - API для работы с авторизацией
416
+ */
417
+ export declare enum api {
418
+ LINE = "live",
419
+ LIVE = "line",
420
+ V1 = "v1",
421
+ V2 = "v2",
422
+ NV20 = "nv20",
423
+ LBC = "lbc",
424
+ /** /api/v1/office/[LOCALE][/PATH] */
425
+ OFFICE = "office",
426
+ BASE = "base",
427
+ DIRECT = "direct"
428
+ }
429
+ export interface TAddBetslip {
430
+ culture: string;
431
+ /** ID События */
432
+ eId: number;
433
+ /** ID Ставыки */
434
+ bId: number;
435
+ /** Коэфициент */
436
+ r: number;
437
+ /** Размер Форы или Тотала */
438
+ fs: number | null;
439
+ /** Доп. параметр */
440
+ a1: number | null;
441
+ /** Доп. параметр */
442
+ a2: number | null;
443
+ isLive: boolean;
444
+ }
445
+ export interface TCouponEdited {
446
+ BetId: number;
447
+ DoAcceptOddsChanges: boolean;
448
+ BetContentWeb: IBetContentWeb[];
449
+ Culture: string;
450
+ }
451
+ export interface IBetContentWeb {
452
+ BetContent: IOddsEdited;
453
+ IdOldBet: number;
454
+ }
455
+ export interface IOddsEdited {
456
+ Odds: number;
457
+ LinesID: number;
458
+ BetVarID: number;
459
+ Add1: number;
460
+ Add2: number;
461
+ HandSize: number;
462
+ IsBonus: boolean;
463
+ IsLive: boolean;
464
+ }
465
+ export declare enum EBetFlags {
466
+ /** Неопределено. ( !!! Нельзя использовать !!! ) */
467
+ None = 0,
468
+ /** Ординар */
469
+ Single = 1,
470
+ /** Экспресс */
471
+ Multi = 2,
472
+ /** Система */
473
+ System = 4,
474
+ /** Условная ставка */
475
+ Reinvested = 8,
476
+ /** Бонус */
477
+ Bonus = 16,
478
+ /** Обычная ставка (до начала матча) */
479
+ Ordinary = 32,
480
+ /** Ставка лайв (по ходу игры) */
481
+ Live = 64,
482
+ /** Комбинированя ставка (лайв и обычная, ставится только в шапках (ставка, экспресс, система) */
483
+ Combined = 96
484
+ }
485
+ /**
486
+ * Коды ошибок при постановке ставки
487
+ * Значения которые возвращает метод API
488
+ * `/betting/CashOutReturnBet`
489
+ */
490
+ export declare enum PutBetErrors {
491
+ /** Успешно */
492
+ None = 0,
493
+ /** Ставка не найдена */
494
+ BetNotFound = 1,
495
+ /** Событие не найдено */
496
+ EventNotFound = 2,
497
+ /** Событие уже началось (для офлайн событий) */
498
+ EventStarted = 3,
499
+ /** Изменился коэффициент */
500
+ OddsChange = 4,
501
+ /** Изменился размер форы/тотала */
502
+ HandSizeChange = 5,
503
+ /** Внутренняя ошибка сохранения ставки */
504
+ ErrorSave = 6,
505
+ /** Не принята букмекером */
506
+ BlockedBookmaker = 7,
507
+ /** Сумма ставки меньше минимальной */
508
+ MinSizeAmount = 8,
509
+ /** Сумма ставки больше максимальной */
510
+ MaxSizeAmount = 9,
511
+ /** Отсутствует информация об авторе ставки */
512
+ ErrorAuthorBet = 10,
513
+ /** Отсутствует информация о содержимом ставки */
514
+ ErrorContentBet = 11,
515
+ /** Нет денег на счету игрока */
516
+ ErrorBalance = 12,
517
+ /** Остановлен прием на событие */
518
+ EventStopped = 13,
519
+ /** Остановлен прием на вариант ставки */
520
+ VariantStopped = 14,
521
+ /** Ставка пустая (в экспрессе или в системе нет событий) */
522
+ BetEmpty = 15,
523
+ /** Плохое кол-во ординаров (в экспрессе или в системе не ликвидное число событий) */
524
+ BetBadCount = 16,
525
+ /** В экспрессе или системе одно и тоже событие используется больше одного раза */
526
+ MultiUsedEvent = 17,
527
+ /** Взаимосвязанные события */
528
+ ImposibleEvents = 18,
529
+ /** Не пройдено ограничение по максимальной ставке в обычной линии */
530
+ RiskBetMaxBet = 19,
531
+ /** Не пройдено ограничение по максимальной ставке в лайв линии */
532
+ RiskBetMaxBetLive = 20,
533
+ /** Не пройдено ограничение по наносу в обычной линии */
534
+ RiskBetIn = 21,
535
+ /** Не пройдено ограничение по наносу в лайв линии */
536
+ RiskBetInLive = 22,
537
+ /** Не пройдено ограничение по выплате в обычной линии */
538
+ RiskBetOut = 23,
539
+ /** Не пройдено ограничение по выплате в лайв линии */
540
+ RiskBetOutLive = 24,
541
+ /** Не пройдено ограничение по максимальной ставке в обычной линии */
542
+ RiskEventMaxBet = 25,
543
+ /** Не пройдено ограничение по максимальной ставке в лайв линии */
544
+ RiskEventMaxBetLive = 26,
545
+ /** Не пройдено ограничение по наносу в обычной линии */
546
+ RiskEventIn = 27,
547
+ /** Не пройдено ограничение по наносу в лайв линии */
548
+ RiskEventInLive = 28,
549
+ /** Не пройдено ограничение по выплате в обычной линии */
550
+ RiskEventOut = 29,
551
+ /** Не пройдено ограничение по выплате в лайв линии */
552
+ RiskEventOutLive = 30,
553
+ /** Не пройдено ограничение по максимальной ставке в обычной линии */
554
+ RiskTournamentMaxBet = 31,
555
+ /** Не пройдено ограничение по максимальной ставке в лайв линии */
556
+ RiskTournamentMaxBetLive = 32,
557
+ /** Не пройдено ограничение по наносу в обычной линии */
558
+ RiskTournamentIn = 33,
559
+ /** Не пройдено ограничение по наносу в лайв линии */
560
+ RiskTournamentInLive = 34,
561
+ /** Не пройдено ограничение по выплате в обычной линии */
562
+ RiskTournamentOut = 35,
563
+ /** Не пройдено ограничение по выплате в лайв линии */
564
+ RiskTournamentOutLive = 36,
565
+ /** Не пройдено ограничение по максимальной ставке в обычной линии */
566
+ RiskUserMaxBet = 37,
567
+ /** Не пройдено ограничение по максимальной ставке в лайв линии */
568
+ RiskUserMaxBetLive = 38,
569
+ /** Не пройдено ограничение по наносу в обычной линии */
570
+ RiskUserIn = 39,
571
+ /** Не пройдено ограничение по наносу в лайв линии */
572
+ RiskUserInLive = 40,
573
+ /** Не пройдено ограничение по выплате в обычной линии */
574
+ RiskUserOut = 41,
575
+ /** Не пройдено ограничение по выплате в лайв линии */
576
+ RiskUserOutLive = 42,
577
+ /** Не пройдено ограничение по максимальной ставке в обычной линии */
578
+ RiskUserSportMaxBet = 43,
579
+ /** Не пройдено ограничение по максимальной ставке в лайв линии */
580
+ RiskUserSportMaxBetLive = 44,
581
+ /** Не пройдено ограничение по наносу в обычной линии */
582
+ RiskUserSportIn = 45,
583
+ /** Не пройдено ограничение по наносу в лайв линии */
584
+ RiskUserSportInLive = 46,
585
+ /** Не пройдено ограничение по выплате в обычной линии */
586
+ RiskUserSportOut = 47,
587
+ /** Не пройдено ограничение по выплате в лайв линии */
588
+ RiskUserSportOutLive = 48,
589
+ /** Не пройдено ограничение по максимальной выплате по ставке в ставке в обычной линии */
590
+ RiskBetMaxBetOut = 53,
591
+ /** Не пройдено ограничение по максимальной выплате по ставке в ставке в лайв линии */
592
+ RiskBetMaxBetOutLive = 54,
593
+ /** Не пройдено ограничение по максимальной выплате по ставке в событии в обычной линии */
594
+ RiskEventMaxBetOut = 55,
595
+ /** Не пройдено ограничение по максимальной выплате по ставке в событии в лайв линии */
596
+ RiskEventMaxBetOutLive = 56,
597
+ /** Не пройдено ограничение по максимальной выплате по ставке в турнире в обычной линии */
598
+ RiskTournamentMaxBetOut = 57,
599
+ /** Не пройдено ограничение по максимальной выплате по ставке в турнире в лайв линии */
600
+ RiskTournamentMaxBetOutLive = 58,
601
+ /** Не пройдено ограничение по максимальной выплате по ставке в пользователе в обычной линии */
602
+ RiskUserMaxBetOut = 59,
603
+ /** Не пройдено ограничение по максимальной выплате по ставке в пользователе в лайв линии */
604
+ RiskUserMaxBetOutLive = 60,
605
+ /** Не пройдено ограничение по максимальной выплате по ставке в спорте пользователя в обычной линии */
606
+ RiskUserSportMaxBetOut = 61,
607
+ /** Не пройдено ограничение по максимальной выплате по ставке в спорте пользователя в лайв линии */
608
+ RiskUserSportMaxBetOutLive = 62,
609
+ UserNotFound = 49,
610
+ PointNotFound = 50,
611
+ TournamentNotFound = 51,
612
+ PutBetContentIsNull = 52,
613
+ LiveBetOfflineEvent = 63,
614
+ OfflineBetLiveEvent = 64,
615
+ BadKoefMoney = 65,
616
+ MultiPutBet = 66,
617
+ MinMoreThanMax = 67,
618
+ TopMultiNotFound = 68,
619
+ AmountOut = 69,
620
+ BetBadCountExpressOnly = 70,
621
+ SingleOnly = 71,
622
+ BetBadCountExpress3 = 73,
623
+ BetBadCountExpress4 = 74,
624
+ BetBadCountExpress5 = 75,
625
+ BetBadCountExpress6 = 76,
626
+ BetBadCountExpress7 = 77,
627
+ BetBadCountExpress8 = 78,
628
+ BetBadCountExpress9 = 79,
629
+ MaxOddForMulty = 80,
630
+ LimitForPoint = 81,
631
+ LimitForUserBets = 82,
632
+ InvalidSoftType = 777,
633
+ InvalidCurrency = 778,
634
+ MaxBetLimitExpired = 779
635
+ }
636
+ /**
637
+ * Коды ошибок при постановке ставки
638
+ * Значения которые возвращает метод API
639
+ * `/betting/CashOutReturnBet`
640
+ */
641
+ export declare const PutBetErrorsDescriptions: Record<number, string>;
642
+ export interface IUser {
643
+ UserId?: number;
644
+ [key: string]: string | number | null | boolean | object | undefined;
645
+ }
646
+ /**
647
+ * типы закладок
648
+ */
649
+ export declare enum EFavoriteType {
650
+ Tournament = 0,
651
+ Event = 1,
652
+ LiveEvent = 2,
653
+ LineEvent = 3,
654
+ None = 4
655
+ }
656
+ export declare enum EPaymentSystemTypeEnum {
657
+ /** Не указана платёжная система */
658
+ None = 0,
659
+ /** Ручной ввод/вывод денег */
660
+ Manual = 1,
661
+ /** Система WebMoney */
662
+ WebMoney = 2,
663
+ /** SmsProxy */
664
+ SmsProxy = 3,
665
+ /** Ваучеры */
666
+ Voucher = 4,
667
+ /** Ввод/вывод денег через кассу */
668
+ Cashier = 5,
669
+ /** Система LiqPay */
670
+ LiqPay = 6,
671
+ /** Не поддерживаем */
672
+ UnSupported = 7,
673
+ /** OSMP system */
674
+ Osmp = 8,
675
+ /** ePay system */
676
+ EPay = 9,
677
+ /** MoneyBookers */
678
+ MoneyBookers = 10,
679
+ /** PayPal */
680
+ PayPal = 11,
681
+ /** MegaPay */
682
+ MegaPay = 12,
683
+ /** Tandem */
684
+ Tandem = 13,
685
+ /** TelCell */
686
+ TelCell = 14,
687
+ /** WalletOne */
688
+ WalletOne = 15,
689
+ /** OkPay */
690
+ OkPay = 16,
691
+ /** EDram */
692
+ EDram = 17,
693
+ /** ArCa */
694
+ ArCa = 18,
695
+ /** TotoCards */
696
+ ScratchCardsToto = 19,
697
+ /** bonus for register */
698
+ AccountBonus = 20,
699
+ /** Pay2pay */
700
+ Pay2Pay = 21,
701
+ /** InterKassa */
702
+ InterKassa = 22,
703
+ /** AlliedWallet Custom Pay(Bank cards) */
704
+ AlliedWallet = 23,
705
+ /** Terminal kz system */
706
+ CyberPlat = 24,
707
+ /** EasyPay */
708
+ EasyPay = 25,
709
+ /** Terminal kz system */
710
+ Altel = 26,
711
+ /** Партнер Нижний Новгород */
712
+ PartnerNN = 27,
713
+ /** BetsStore скачки */
714
+ BetsstoreHorseRace = 28,
715
+ /** BetsStore ставки */
716
+ BetsstoreBets = 29,
717
+ /** BetsStore бонусы */
718
+ BetsstoreBonus = 30,
719
+ /** www.dengionline.com */
720
+ DengiOnline = 31,
721
+ /** DengiOnlineLiqPay */
722
+ DengiOnlineLiqPay = 32,
723
+ /** DengiOnlineIPayMTS */
724
+ DengiOnlineIPayMTS = 33,
725
+ /** DengiOnlineIPayLife */
726
+ DengiOnlineIPayLife = 34,
727
+ /** DengiOnlineQiwi */
728
+ DengiOnlineQiwi = 35,
729
+ /** Golden Race */
730
+ GoldenRace = 44,
731
+ /** qiwi */
732
+ QiWi = 45,
733
+ /** beeline */
734
+ Beeline = 46,
735
+ /** PayTrio */
736
+ PayTrio = 47,
737
+ /** FcPay */
738
+ FcPay = 48,
739
+ /** слоты http://flashslots.s3.amazonaws.com */
740
+ FlashSlots = 49,
741
+ /** XProGamingCasino */
742
+ XProGamingCasino = 50,
743
+ /** BetsStore Kassa24 */
744
+ BetsstoreKassa24 = 51,
745
+ /** BetsStore Wooppay */
746
+ BetsstoreWooppay = 52,
747
+ /** map attack bets */
748
+ MapAttackBets = 53
749
+ }
750
+ export declare enum EBetslipType {
751
+ Ordinar = 0,
752
+ Express = 1,
753
+ System = 2
754
+ }
755
+ /**Transactions types */
756
+ export declare enum ETransactionType {
757
+ /** (default) all without internal; */
758
+ AllWithoutInternal = 0,
759
+ /** external deposit */
760
+ ExternalDeposit = 1,
761
+ /** external withdraw */
762
+ ExternalWithdraw = 1,
763
+ /** internal win bets */
764
+ InternalWinBets = 3,
765
+ /** Internal loss bets */
766
+ InternalLossBets = 4,
767
+ /** Internal bets in work */
768
+ InternalBetsInWork = 5
769
+ }
770
+ export type TBetslipSettings = {
771
+ UserId: number;
772
+ IsOneClick: boolean;
773
+ OneClickAmount: number;
774
+ IsAgreeChangeUp: boolean;
775
+ IsAgreeChangeDown: boolean;
776
+ IsAgreeChangeTotal: boolean;
777
+ IsDeleteCupons: boolean;
778
+ DeleteCuponsTime: number;
779
+ FavAmount1: number;
780
+ FavAmount2: number;
781
+ FavAmount3: number;
782
+ };
783
+ export type TPersonalData = {
784
+ Country: string;
785
+ TimeZone: string;
786
+ PostalCode: string;
787
+ Region: string;
788
+ City: string;
789
+ Address: string;
790
+ Phone: string;
791
+ Email: string;
792
+ Image: string;
793
+ [key: string]: string;
794
+ };
795
+ export declare enum EPeriodType {
796
+ /** Не определено (используется для выбора даты) */
797
+ None = 0,
798
+ /** За сегодня */
799
+ Today = 1,
800
+ /** За вчера */
801
+ Yesterday = 2,
802
+ /** За последние 7 дней */
803
+ Last7Days = 3,
804
+ /** За последние 14 дней */
805
+ Last14Days = 4,
806
+ /** За последние 30 дней */
807
+ Last30Days = 5,
808
+ /** За последние 2 дня */
809
+ Last2Days = 6,
810
+ /** За последнюю неделю */
811
+ LastWeek = 7,
812
+ /** За сутки(с начальной даты) */
813
+ SelectedDate = 8
814
+ }
815
+ /**
816
+ * Типы внутренних транзакций
817
+ */
818
+ export declare enum ETransactionInternalType {
819
+ None = 0,
820
+ /**
821
+ * Снятие денег под ставку (1)
822
+ */
823
+ WithdrawForBet = 1,
824
+ /**
825
+ * Возврат суммы ставки для расчитаной ставки (2)
826
+ */
827
+ ReturnFromCompiledBet = 2,
828
+ /**
829
+ * Заказ вывода денег из системы (3)
830
+ */
831
+ WithdrawOrder = 3,
832
+ /**
833
+ * Отмена заказа вывода денег из системы (4)
834
+ */
835
+ WithdrawCancel = 4,
836
+ /**
837
+ * Выигрыш ставки (5)
838
+ */
839
+ BetWin = 5,
840
+ /**
841
+ * Проигрыш ставки (6)
842
+ */
843
+ BetLoss = 6,
844
+ /**
845
+ * Бонус пополнения счета (7)
846
+ */
847
+ Bonus = 7,
848
+ /**
849
+ * Подтверждение вывода денег (8)
850
+ */
851
+ WithdrawConfirm = 8,
852
+ /**
853
+ * Возврат проигравшей ставки (возврат просчета) (10)
854
+ */
855
+ ReturnCalcBetWin = 10,
856
+ /**
857
+ * Возврат выигравшей ставки (возврат просчета) (11)
858
+ */
859
+ ReturnCalcBetLoss = 11,
860
+ /**
861
+ * Снятие денег под ставку (возврат просчета) (12)
862
+ */
863
+ ReturnCalcPutBet = 12,
864
+ /**
865
+ * Отмена подтвержденного заказа вывода денег из системы (13)
866
+ */
867
+ ConfirmedWithdrawCancel = 13,
868
+ /**
869
+ * Удаление принятой ставки (14)
870
+ */
871
+ DeleteBet = 14,
872
+ /**
873
+ * Снятие денег под ставку BetgamesTV (15)
874
+ */
875
+ WithdrawForBetgamesTv = 15,
876
+ /**
877
+ * Выигрыш ставки BetgamesTV (16)
878
+ */
879
+ BetWinBetgamesTv = 16,
880
+ /**
881
+ * Проигрыш ставки BetgamesTV (17)
882
+ */
883
+ BetLossBetgamesTv = 17,
884
+ /**
885
+ * Рестарт лимита. (увеличение) (18)
886
+ */
887
+ ResetLimitAdd = 18,
888
+ /**
889
+ * Рестарт лимита. (уменьшение) (19)
890
+ */
891
+ ResetLimitDec = 19,
892
+ /**
893
+ * Изменение лимита. (увеличение) (20)
894
+ */
895
+ ModifyLimitAdd = 20,
896
+ /**
897
+ * Изменение лимита. (уменьшение) (21)
898
+ */
899
+ ModifyLimitDec = 21,
900
+ /**
901
+ * Пополнение счета партнером(Нижний Новгород) (22)
902
+ */
903
+ IncreaseMoneyByPartnerNN = 22,
904
+ /**
905
+ * Снятие денег со счета партнером(Нижний Новгород) (23)
906
+ */
907
+ WithdrawMoneyByPartnerNN = 23,
908
+ /**
909
+ * Снятие денег под ставку GoldenRace (24)
910
+ */
911
+ WithdrawForGoldenRace = 24,
912
+ /**
913
+ * Выигрыш ставки GoldenRace (25)
914
+ */
915
+ BetWinGoldenRace = 25,
916
+ /**
917
+ * Проигрыш ставки GoldenRace (26)
918
+ */
919
+ BetLossGoldenRace = 26,
920
+ /**
921
+ * Проигрыш ставки GoldenRace (27)
922
+ */
923
+ BetCancelGoldenRace = 27,
924
+ /**
925
+ * Ставка проиграла но у неё был бонус кассы 5,7,9 по сути Win
926
+ */
927
+ BetWinPointerBonus = 28,
928
+ /**
929
+ * Возврат просчёта выигрышной ставки с бонусом 5.7.9
930
+ */
931
+ ReturnCalcBetWinPointerBonus = 29,
932
+ /**
933
+ * Снятие денег под ставку FlashSlots (30)
934
+ */
935
+ WithdrawForFlashSlots = 30,
936
+ /**
937
+ * Выигрыш ставки FlashSlots (31)
938
+ */
939
+ BetWinFlashSlots = 31,
940
+ /**
941
+ * Проигрыш ставки FlashSlots (32)
942
+ */
943
+ BetLossFlashSlots = 32,
944
+ /**
945
+ * Проигрыш ставки FlashSlots (33)
946
+ */
947
+ BetCancelFlashSlots = 33,
948
+ /**
949
+ * Игрок отказался от ставки (34)
950
+ * Удержание суммы при отказе от ставки
951
+ */
952
+ BetDeleteFromUser = 34,
953
+ /**
954
+ * Снятие денег под ставку VirtualSport (35)
955
+ */
956
+ WithdrawForVirtualSport = 35,
957
+ /**
958
+ * Выигрыш ставки VirtualSport (36)
959
+ */
960
+ BetWinVirtualSport = 36,
961
+ /**
962
+ * Проигрыш ставки VirtualSport (37)
963
+ */
964
+ BetLossVirtualSport = 37,
965
+ /**
966
+ * Снятие денег под ставку MapAttackBets (38)
967
+ */
968
+ WithdrawForMapAttackBets = 38,
969
+ /**
970
+ * Выигрыш ставки MapAttackBets (39)
971
+ */
972
+ BetWinMapAttackBets = 39,
973
+ /**
974
+ * Проигрыш ставки MapAttackBets (40)
975
+ */
976
+ BetLossMapAttackBets = 40,
977
+ /**
978
+ * Возврат ставки MapAttackBets (41)
979
+ */
980
+ BetCancelMapAttackBets = 41
981
+ }
982
+ /**
983
+ * Типы внешних транзакций
984
+ */
985
+ export declare enum ETransactionExternalType {
986
+ /** Все типы */
987
+ None = 0,
988
+ /**
989
+ * Пополнение счета (1)
990
+ */
991
+ AccountDeposit = 1,
992
+ /**
993
+ * Снятие денег со счета (2)
994
+ */
995
+ WithdrawalFromAccount = 2,
996
+ /**
997
+ * Продажа ваучера (3)
998
+ */
999
+ VoucherSale = 3,
1000
+ /**
1001
+ * Вывод денег клиентом (4)
1002
+ */
1003
+ WithdrawByClient = 4,
1004
+ /**
1005
+ * Инкасация. Ввод денег (5)
1006
+ */
1007
+ EncashmentInput = 5,
1008
+ /**
1009
+ * Инкасация. Вывод денег (6)
1010
+ */
1011
+ EncashmentWithdraw = 6,
1012
+ /**
1013
+ * Пополнение счета клиенту (7)
1014
+ */
1015
+ ClientAccountAdd = 7,
1016
+ /**
1017
+ * Вывод денег клиенту (8)
1018
+ */
1019
+ WithdrawToClient = 8,
1020
+ /**
1021
+ * Отмена пополнения счета (9)
1022
+ */
1023
+ Cancel = 9,
1024
+ /**
1025
+ * Снятие денег со счета (10)
1026
+ * Используется при выплате кассиром игроку денег по подтвержденному заказу.
1027
+ * Нужна
1028
+ */
1029
+ WithdrawalFromAccountByCashier = 10,
1030
+ /**
1031
+ * Снятие денег со счета на счет казино (11)
1032
+ */
1033
+ DepositCasinoAmount = 11,
1034
+ /**
1035
+ * Пополнение счета игрока с счета казино (11)
1036
+ */
1037
+ WithdrawalCasinoAmount = 12
1038
+ }
1039
+ export type TPayBetPayload = {
1040
+ BetId: number;
1041
+ AmountOut: number;
1042
+ };
1043
+ export type TTemplatePayload = {};
1044
+ export interface IRedeemTheBetPayload {
1045
+ BetId: number;
1046
+ AmountOut: number;
1047
+ }
1048
+ export type TOfficeHandbook = 'Roles' | 'AccessRoles' | 'Pointers' | 'PointersGroups' | 'PlayerLevel' | 'Languages' | 'SearchType' | 'All';
1049
+ export interface IGetAllHandbooksPayload {
1050
+ Culture: string;
1051
+ HandBooks: TOfficeHandbook[];
1052
+ }
1053
+ export interface IChangePasswordOfficePayload {
1054
+ UserId: number;
1055
+ OldPassword: string;
1056
+ NewPassword: string;
1057
+ }
1058
+ export interface ISetPasswordOfficePayload {
1059
+ /** ID user */
1060
+ UserId: number;
1061
+ /** Пароль от лица которого делаются изменения */
1062
+ CallerPassword: string;
1063
+ /** Пароль для User ID */
1064
+ NewUserPassword: string;
1065
+ }
1066
+ export type TResponseDataFormat = 'StatusResponse' | null;
1067
+ export interface ILiveResponce {
1068
+ TimeStamp?: number;
1069
+ LEvents?: ILiveData[];
1070
+ IsChanges?: boolean;
1071
+ Data?: object;
1072
+ Error?: string;
1073
+ Ok?: boolean;
1074
+ }
1075
+ export interface ICashPointBalance {
1076
+ /** Лимит кассы на постановку ставки */
1077
+ item1: number | null;
1078
+ /** Frozzen balanse */
1079
+ item2: number | null;
1080
+ [key: string]: any;
1081
+ }
1082
+ export interface IResponseData<T> {
1083
+ data: T;
1084
+ status: number;
1085
+ statusText: string;
1086
+ error?: string | null;
1087
+ }
1088
+ export interface IResponseHandlerData<T = any> {
1089
+ data: T;
1090
+ status: number;
1091
+ error: string;
1092
+ }
1093
+ interface IBetContent {
1094
+ NameBet: string | null;
1095
+ NameTurnir: string | null;
1096
+ TurnirId: number;
1097
+ SportId: number;
1098
+ NameCom1: string;
1099
+ NameCom2: string | null;
1100
+ Result: string | null;
1101
+ CountResults: number;
1102
+ MainResult: string | null;
1103
+ EventStatus: number;
1104
+ OddsDifference: string;
1105
+ DateEvent: string | null;
1106
+ OddsForDisplay: string;
1107
+ ID: number;
1108
+ HeadID: number;
1109
+ ParentID: number | null;
1110
+ LinesID: number;
1111
+ BetFlags: number;
1112
+ Odds: number;
1113
+ OddsOrig: number;
1114
+ HandSize: string | null;
1115
+ BetVarID: number;
1116
+ Add1: number | null;
1117
+ Add2: null;
1118
+ BetStatus: number;
1119
+ AuthorOdds: number;
1120
+ SiteOdds: number | null;
1121
+ AmountIn: number | null;
1122
+ AmountOut: number;
1123
+ AmountItem: number;
1124
+ Score: string;
1125
+ AuthorName: string | null;
1126
+ IsNewRecord: boolean;
1127
+ IsHeadsContent: boolean;
1128
+ LiveFlagForCalcAdditionalBets: number;
1129
+ }
1130
+ interface IBetHead {
1131
+ ID: number;
1132
+ UserID: number;
1133
+ DateID: string;
1134
+ AmountIn: number;
1135
+ AmountOut: number;
1136
+ CashOutUserID: number;
1137
+ DateOut: string;
1138
+ ParentID: number;
1139
+ LiveType: number;
1140
+ BetStatus: number;
1141
+ TranID_In: number;
1142
+ TranID_Return: number;
1143
+ TranID_Calc: number;
1144
+ SoftType: number;
1145
+ BetHash: string;
1146
+ BetHeadFlags: number;
1147
+ CountEvents: number;
1148
+ AmountPosWin: number;
1149
+ StatusCode: number;
1150
+ }
1151
+ export interface IBetCouponeResponse {
1152
+ DomainName: string;
1153
+ LoginName: string;
1154
+ ShortUserName: string;
1155
+ PointName: string;
1156
+ CurrencyName: string;
1157
+ LanguageId: number;
1158
+ BillNumber: string;
1159
+ IsLongNames: boolean;
1160
+ FiscalNumber: null;
1161
+ LocSoftType: number;
1162
+ Head: IBetHead;
1163
+ Content: IBetContent[];
1164
+ PutBetErrors: number;
1165
+ PercentReturnMoney: number;
1166
+ AmaountOutPercent: number;
1167
+ }
1168
+ export interface IGetUserInfoPayload {
1169
+ userAccount?: number | string;
1170
+ userName?: string;
1171
+ userId?: number | string;
1172
+ }
1173
+ export interface IDepositMoneyPayload {
1174
+ userId: number | string;
1175
+ sum: number;
1176
+ }
1177
+ export interface IWithdrawlMoneyPayload {
1178
+ userId: number | string;
1179
+ amount: number;
1180
+ code?: string;
1181
+ }
1182
+ export interface IWithdrawlMoneyByTransactionPayload {
1183
+ userId: number | string;
1184
+ transactionId: number | string;
1185
+ amount?: number;
1186
+ }
1187
+ export interface IGetUserInfoResponse {
1188
+ UserId: number;
1189
+ UserName: string;
1190
+ FirstName: string;
1191
+ MiddleName: string;
1192
+ LastName: string;
1193
+ ActiveAmount: number;
1194
+ CurrencyName: string;
1195
+ CreatedDate: string;
1196
+ TimeZone: string;
1197
+ }
1198
+ export interface IOrderForWithdrawal {
1199
+ TransactionID: number;
1200
+ CreationDate: string;
1201
+ TransactionDateHtml: string;
1202
+ Amount: number;
1203
+ Currency: string;
1204
+ PaymentSystemType: number;
1205
+ PaymentSystemTypeName: string;
1206
+ PaymentAccount: null | string;
1207
+ PointID: number;
1208
+ PointName: string;
1209
+ UserPointID: number;
1210
+ UserPointName: string;
1211
+ UserID: number;
1212
+ UserBalance: number;
1213
+ UserLogin: string;
1214
+ UserFullName: string;
1215
+ UserIP: string;
1216
+ UserAccNumber: number;
1217
+ OutMoneySum: number;
1218
+ AdditionalParam: null | string;
1219
+ Status: number;
1220
+ }
1221
+ export interface ICashierPlayersPayload {
1222
+ CurrentPage: number;
1223
+ CountItemOnPage: number;
1224
+ }
1225
+ export interface ICashierPlayersList {
1226
+ UserId: number;
1227
+ UserName: string;
1228
+ AccountNum: number;
1229
+ Balance: number;
1230
+ }
1231
+ export interface ICashierPlayersResponse {
1232
+ CountPages: number;
1233
+ CurrentPage: number;
1234
+ CountItemOnPage: number;
1235
+ Users: ICashierPlayersList[];
1236
+ }
1237
+ export interface IGetUsersListResponse {
1238
+ UserName: string;
1239
+ ShortUserName: string;
1240
+ LastName: string;
1241
+ FirstName: string;
1242
+ MiddleName: string;
1243
+ BirthDate: string;
1244
+ Email: string;
1245
+ ActiveAmount: number;
1246
+ OutMoneyAmount: number;
1247
+ FrozenAmount: number;
1248
+ ShortMoneyName: string;
1249
+ IsOnLine: boolean;
1250
+ Disabled: boolean;
1251
+ CreationDate: string;
1252
+ LastActivityDate: string | null;
1253
+ LastDateMoneyMove: string | null;
1254
+ PointName: string;
1255
+ CurrencyName: string;
1256
+ Passport: string;
1257
+ IPLast: string | null;
1258
+ UserId: number;
1259
+ PointId: number;
1260
+ MessageDate: string | null;
1261
+ Message: string | null;
1262
+ WorkNote: string | null;
1263
+ UnlockTime: string | null;
1264
+ IsPartner: boolean;
1265
+ IsWorkOffline: boolean;
1266
+ SumMain: number;
1267
+ SumRospis: number;
1268
+ IPBind: string;
1269
+ DisplayBetsFormat: number;
1270
+ AccountNum: number;
1271
+ PlayerType: number;
1272
+ RoleId: number;
1273
+ IsNewRecord: boolean;
1274
+ }
1275
+ export interface IGetUsersListData {
1276
+ Users: IGetUsersListResponse[];
1277
+ CountUsers: number;
1278
+ PageNumber: number;
1279
+ PageSize: number;
1280
+ TotalPages: number;
1281
+ }
1282
+ export interface IApiResponse<T = any> {
1283
+ Data: T;
1284
+ Ok: boolean;
1285
+ Error: string;
1286
+ }
1287
+ export declare enum ESortUser {
1288
+ UserName = 0,
1289
+ CreationDate = 1,
1290
+ UserNameDesc = 2,
1291
+ CreationDateDesc = 3,
1292
+ Balance = 4,
1293
+ BalanceDesc = 5,
1294
+ ID = 6,
1295
+ IDDesc = 7,
1296
+ LastActivityDate = 8,
1297
+ LastActivityDateDesc = 9,
1298
+ Email = 10,
1299
+ EmailDesc = 11
1300
+ }
1301
+ export declare enum EUserRoles {
1302
+ /** Admin */
1303
+ Admin = "Admin",
1304
+ /** Group Admin */
1305
+ SubAdmin = "SubAdmin",
1306
+ /** Owner */
1307
+ Owner = "Owner",
1308
+ /** Cashier */
1309
+ Cashier = "Cashier",
1310
+ /** Office Employee */
1311
+ Office = "Office",
1312
+ /** Content Manager */
1313
+ ContentManager = "ContentManager",
1314
+ /** Point Plaayer */
1315
+ ClientPoint = "ClientPoint",
1316
+ /** Online Player */
1317
+ Client = "Client",
1318
+ /** Risks of point */
1319
+ FinPoint = "FinPoint"
1320
+ }
1321
+ export interface IGetUsersTransactionsFilter {
1322
+ /** Start date */
1323
+ DateBeg: string;
1324
+ /** End date */
1325
+ DateEnd: string;
1326
+ /** User ID */
1327
+ userId?: number;
1328
+ /** Payment system ID */
1329
+ paymentSystemsID?: number | null;
1330
+ /** Creator user ID */
1331
+ creatorUserId?: number | null;
1332
+ /** Cashiers */
1333
+ /** Is addition */
1334
+ IsAddition?: boolean | null;
1335
+ /** Is freezing */
1336
+ IsFreezing?: boolean | null;
1337
+ /** External only */
1338
+ ExternalOnly?: boolean | null;
1339
+ /** Internal only */
1340
+ InternalOnly?: boolean | null;
1341
+ pointersId?: number[] | null;
1342
+ }
1343
+ /** for сonfirmWithdrawalOrder */
1344
+ export interface IConfirmWithdrawalOrderPayload {
1345
+ /** long */
1346
+ transactionId: number;
1347
+ /** double */
1348
+ confirmedAmount: number;
1349
+ }
1350
+ /** for cancelWithdrawalOrder */
1351
+ export interface ICancelWithdrawalOrderPayload {
1352
+ /** long */
1353
+ transactionId: number;
1354
+ /** emum */
1355
+ status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1356
+ }
1357
+ export interface IGetBetContentAdmPayload {
1358
+ id: number;
1359
+ userId: number;
1360
+ culture?: string;
1361
+ }
1362
+ export interface IGetConfirmedWithdrawalOrdersPayload {
1363
+ /** default: pointId = -100 */
1364
+ pointId?: number;
1365
+ /** Format ddMMyyyy */
1366
+ begin: string;
1367
+ /** Format ddMMyyyy */
1368
+ end: string;
1369
+ /** Culture information, e.g., 'en-US'. */
1370
+ culture?: string;
1371
+ /** periodType Default is 0. Today = 1, Yesterday = 2, Last7Days = 3 */
1372
+ periodType?: number;
1373
+ /** Username or userId (optional) */
1374
+ userName?: string | number;
1375
+ }
1376
+ export interface IGetUsersListFilter {
1377
+ /** user ID */
1378
+ userId?: number | null;
1379
+ /** User account number */
1380
+ accountNumber?: number | null;
1381
+ /** User email */
1382
+ emailAddress?: string | null;
1383
+ isMoneyOut?: boolean | null;
1384
+ /** Sort user list */
1385
+ SortUser?: ESortUser;
1386
+ /** User login */
1387
+ login?: string | null;
1388
+ RoleName?: EUserRoles | string | null;
1389
+ pointersId?: number[];
1390
+ pointGroupsId?: number[];
1391
+ }
1392
+ export interface IGetPointsListFilter {
1393
+ groupId: number | null;
1394
+ pointIds: number[] | null;
1395
+ pointName: string | null;
1396
+ }
1397
+ export interface IPaginationPayload<T = any> {
1398
+ Filter: T;
1399
+ PageNumber: number;
1400
+ PageSize: number;
1401
+ }
1402
+ export interface IUsersBetsAdmPayload {
1403
+ /** Format: "2024-11-01T00:00:00", // in 'Europe/Kiev' timezone */
1404
+ DateStart: string;
1405
+ /** Format: "2024-11-01T00:00:00", // in 'Europe/Kiev' timezone */
1406
+ DateEnd: string;
1407
+ UserId?: number | null;
1408
+ PointIds?: number[] | null;
1409
+ RepaymentDate?: number | null;
1410
+ LiveOnly?: number | null;
1411
+ ShowAll?: boolean;
1412
+ ShowWinBets?: boolean | null;
1413
+ ShowLossBets?: boolean | null;
1414
+ ShowWorkBets?: boolean | null;
1415
+ ShowRepaymentBets?: boolean | null;
1416
+ ShowNotRepaymentBets?: boolean | null;
1417
+ ShowPerestavBets?: boolean | null;
1418
+ ShowKontoraBets?: boolean | null;
1419
+ ShowReturnBets?: boolean | null;
1420
+ IsKontoraMoney?: boolean | null;
1421
+ InServerCurrency?: boolean | null;
1422
+ BetSum?: number | null;
1423
+ FiscalBill?: number | null;
1424
+ /** Sort: 0 | null - Date DESC; 1 - Amount DESC */
1425
+ SortType?: 0 | 1 | null;
1426
+ HideRemoved?: boolean | null;
1427
+ Amount?: number | null;
1428
+ ShowRemoved?: boolean;
1429
+ }
1430
+ export interface IGetUsersListPayload {
1431
+ Filter: IGetUsersListFilter;
1432
+ PageNumber: number;
1433
+ PageSize: number;
1434
+ }
1435
+ export interface IAccountMoneyPayload {
1436
+ userId: number;
1437
+ amount: number;
1438
+ comment: string;
1439
+ paySystem: EPaymentSystemTypeEnum;
1440
+ }
1441
+ export interface IBetsPointsPayload {
1442
+ Filter: IBetsPointsFilter;
1443
+ PageNumber: number;
1444
+ PageSize: number;
1445
+ }
1446
+ export interface IBetsStatisticPayload {
1447
+ DateStart: string | Date;
1448
+ DateEnd: string | Date;
1449
+ /** Предоставляет отчёт в валюте сервера
1450
+ * @default false
1451
+ */
1452
+ InServerCurrency?: boolean;
1453
+ /** Список id-касс */
1454
+ PointIds: number[];
1455
+ }
1456
+ export declare enum LiveOnly {
1457
+ All = 0,
1458
+ Live = 1,
1459
+ Prematch = 2
1460
+ }
1461
+ export declare enum EBetsPointsSorts {
1462
+ Date = "Date",
1463
+ Amount = "Amount",
1464
+ PayAsc = "PayAsc",
1465
+ PayDesc = "PayDesc"
1466
+ }
1467
+ export declare enum ELocales {
1468
+ en = "en-US",
1469
+ pt = "pt-PT",
1470
+ fr = "fr-FR",
1471
+ es = "es-ES",
1472
+ tr = "tr-TR",
1473
+ uk = "uk-UA",
1474
+ cr = "cr-HA",
1475
+ ru = "ru-RU"
1476
+ }
1477
+ export interface IBetsPointsFilter {
1478
+ DateStart: string | Date;
1479
+ DateEnd: string | Date;
1480
+ /** Список id-касс */
1481
+ PointIds: number[];
1482
+ /** IsKontoraMoney ХЗ что это
1483
+ * @default false
1484
+ */
1485
+ IsKontoraMoney: boolean;
1486
+ /** @default екгу */
1487
+ ShowAll: boolean;
1488
+ /** Сортировать */
1489
+ SortType: EBetsPointsSorts | number;
1490
+ /** Скрыть удаленные ставки
1491
+ * @default true
1492
+ */
1493
+ HideRemoved: boolean;
1494
+ /** Показывать удаленные ставки default: false*/
1495
+ ShowRemoved: boolean;
1496
+ /** Предоставляет отчёт в валюте сервера
1497
+ * @default false
1498
+ */
1499
+ InServerCurrency: boolean;
1500
+ RepaymentDate?: number;
1501
+ LiveOnly?: LiveOnly;
1502
+ ShowWinBets?: boolean;
1503
+ ShowLossBets?: boolean;
1504
+ ShowWorkBets?: boolean;
1505
+ ShowRepaymentBets?: boolean;
1506
+ ShowNotRepaymentBets?: boolean;
1507
+ ShowPerestavBets?: boolean;
1508
+ ShowKontoraBets?: boolean;
1509
+ ShowReturnBets?: boolean;
1510
+ /** Ищет по сумме если не 0 */
1511
+ BetSum?: number;
1512
+ FiscalBill?: number;
1513
+ /** @default null */
1514
+ Amount?: number;
1515
+ }
1516
+ export type TBRResponceDataFormat1 = {
1517
+ Data: any;
1518
+ Ok: boolean;
1519
+ Error: string[] | string | null;
1520
+ };
1521
+ export type TTakedBetsData = {
1522
+ Items: any[];
1523
+ CountBets: number;
1524
+ BetsSum: number;
1525
+ OutSum: number;
1526
+ PageNumber: number;
1527
+ PageSize: number;
1528
+ TotalPages: number;
1529
+ };
1530
+ export type TTakedBetsResponce = TBRResponceDataFormat1 & {
1531
+ Data: TTakedBetsData;
1532
+ };
1533
+ export interface IPoint {
1534
+ Point_ID: number;
1535
+ GroupID: number;
1536
+ Name: string;
1537
+ TimeZone: number;
1538
+ Koef: number;
1539
+ Nazv: string;
1540
+ Vrwork: string;
1541
+ Adres: string;
1542
+ KoefMoney: number;
1543
+ MaxViplotaForPoint: number;
1544
+ ProcDo: number;
1545
+ ProcPosle: number;
1546
+ ModificationKoef: number;
1547
+ LangPoint: number;
1548
+ IsWork: boolean;
1549
+ IsInternetClient: boolean;
1550
+ IsSiteClient: boolean;
1551
+ CurrencyID: number;
1552
+ CurrencyName: string;
1553
+ MinAmountMulti: number;
1554
+ MinAmountSystem: number;
1555
+ MaxSizeMulti: number;
1556
+ MaxSizeSystem: number;
1557
+ MinCurrencyUnit: number;
1558
+ IsRound: boolean;
1559
+ IsAllowCardsSale: boolean;
1560
+ EntryLimit: number;
1561
+ AutoConfirmAmount: number;
1562
+ IsWithdrawal: boolean;
1563
+ SiteId: number;
1564
+ Franchising: number;
1565
+ FranchisingRate: number;
1566
+ IsUseFinance: boolean;
1567
+ Info: string;
1568
+ PlayerTypeId: number;
1569
+ PercentReturnMoney: number;
1570
+ CityId: number;
1571
+ IsNewRecord: boolean;
1572
+ ChoosePoint: boolean;
1573
+ GeoLocation: string | null;
1574
+ GeoX: number;
1575
+ GeoY: number;
1576
+ }
1577
+ export interface IPointPages {
1578
+ Elements: IPoint[];
1579
+ Count: number;
1580
+ PageNumber: number;
1581
+ PageSize: number;
1582
+ TotalPages: number;
1583
+ }
1584
+ export interface IIntgrGetGamesListPayload {
1585
+ /** Suppliers */
1586
+ suppliers?: number[];
1587
+ /** Group ID to which the site is linked */
1588
+ groupId: number;
1589
+ /** Specific games */
1590
+ games?: string[];
1591
+ /** String to search games by name */
1592
+ searchName?: string;
1593
+ /** List of providers */
1594
+ providers?: {
1595
+ Name: string;
1596
+ CountGames: number;
1597
+ }[];
1598
+ /** List of game types */
1599
+ types?: string[];
1600
+ /** Platform (e.g., mobile, desktop) */
1601
+ platforms: 'mobile' | 'desktop';
1602
+ /** Maximum number of items */
1603
+ maxItems?: number;
1604
+ }
1605
+ export interface IIntgrInitGamePayload {
1606
+ /** ID of the integrator partner SQ:2, SI:1, CH:?, PP:? */
1607
+ suppliers: number;
1608
+ gameid: number | string;
1609
+ /** url to which the page is returned after the game is closed */
1610
+ backurl: string;
1611
+ /** Game mode: 0 for virtual (fun) or 1 for real (real). Default: 1. */
1612
+ mode: number;
1613
+ /** Language code in ISO 639-1 alpha-2 format for downloading localisation. Default: "en". */
1614
+ language: string;
1615
+ /** The platform from which the game was launched: "desktop" or "mobile". Specify "mobile" if you want to open the mobile client of the game. Default: "desktop". */
1616
+ clientPlatform: "mobile" | "desktop" | "retail";
1617
+ }
1618
+ export interface RedisPrematchSearchParams {
1619
+ locale?: string;
1620
+ searchString?: string | null;
1621
+ negativeString?: string | null;
1622
+ sportId?: number | null;
1623
+ tournamentId?: number | null;
1624
+ LIMIT?: {
1625
+ from: number;
1626
+ size: number;
1627
+ } | null;
1628
+ }
1629
+ export {};
1630
+ /**
1631
+ *
1632
+ /// <summary>
1633
+ /// Date start.
1634
+ /// </summary>
1635
+ [Required] public DateTime DateStart = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
1636
+
1637
+ /// <summary>
1638
+ /// Date end.
1639
+ /// </summary>
1640
+ [Required] public DateTime DateEnd = DateTime.Now;
1641
+
1642
+ /// <summary>
1643
+ /// Date of repayment
1644
+ /// </summary>
1645
+ public short? RepaymentDate { get; set; }
1646
+
1647
+ /// <summary>
1648
+ /// Live only. Possible values: None, Ordinary, Live or null by default.
1649
+ /// </summary>
1650
+ public BetLiveType? LiveOnly { get; set; }
1651
+
1652
+ /// <summary>
1653
+ /// ShowAll
1654
+ /// </summary>
1655
+ public bool ShowAll { get; set; }
1656
+
1657
+ /// <summary>
1658
+ /// ShowWinBets.
1659
+ /// </summary>
1660
+ public bool? ShowWinBets { get; set; }
1661
+
1662
+ /// <summary>
1663
+ /// ShowLoseBets. Default value null.
1664
+ /// </summary>
1665
+ public bool? ShowLossBets { get; set; }
1666
+
1667
+ /// <summary>
1668
+ /// ShowWorkBets, show bets in work. Default value null.
1669
+ /// </summary>
1670
+ public bool? ShowWorkBets { get; set; }
1671
+
1672
+ /// <summary>
1673
+ /// ShowRepaymentsBets. Default value null.
1674
+ /// </summary>
1675
+ public bool? ShowRepaymentBets { get; set; }
1676
+
1677
+ /// <summary>
1678
+ /// ShowNotRepaymentBets. Default value null.
1679
+ /// </summary>
1680
+ public bool? ShowNotRepaymentBets { get; set; }
1681
+
1682
+ /// <summary>
1683
+ /// ShowPerestavBets.???? Default null.
1684
+ /// </summary>
1685
+ public bool? ShowPerestavBets { get; set; }
1686
+
1687
+ /// <summary>
1688
+ /// ShowKontoraBets. ???? Default null.
1689
+ /// </summary>
1690
+ public bool? ShowKontoraBets { get; set; }
1691
+
1692
+ /// <summary>
1693
+ /// ShowReturnBets. Default null.
1694
+ /// </summary>
1695
+ public bool? ShowReturnBets { get; set; }
1696
+
1697
+ /// <summary>
1698
+ /// IsKontoraMoney. ????? Default false.
1699
+ /// </summary>
1700
+ public bool IsKontoraMoney { get; set; }
1701
+
1702
+ /// <summary>
1703
+ /// InServerCurrency. Default false.
1704
+ /// </summary>
1705
+ public bool InServerCurrency { get; set; }
1706
+
1707
+ /// <summary>
1708
+ /// BetSum. Filtering AmountIn * KoefMoney >=BetSum". Default value null.
1709
+ /// </summary>
1710
+ public decimal? BetSum { get; set; }
1711
+
1712
+ /// <summary>
1713
+ /// FiscalBill. Default null.
1714
+ /// </summary>
1715
+ public int? FiscalBill { get; set; }
1716
+
1717
+ /// <summary>
1718
+ /// BetSortTypeEnum. Sorting order, possible values: Date, Sum.
1719
+ /// </summary>
1720
+ public BetSortTypeEnum SortType { get; set; }
1721
+
1722
+ /// <summary>
1723
+ /// HideRemoved. Default false.
1724
+ /// </summary>
1725
+ public bool HideRemoved { get; set; }
1726
+
1727
+ private decimal? _amount = null;
1728
+
1729
+ /// <summary>
1730
+ /// Amount. Default null.
1731
+ /// </summary>
1732
+ public decimal? Amount
1733
+ {
1734
+ get => _amount > 0 ? _amount : null;
1735
+ set => _amount = value;
1736
+ }
1737
+
1738
+ /// <summary>
1739
+ /// ShowRemoved. Default false.
1740
+ /// </summary>
1741
+ public bool ShowRemoved { get; set; }
1742
+ */