front-back-poker-types 5.0.221 → 5.0.223

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.
@@ -39,7 +39,14 @@ export type Tournament = {
39
39
  * в таймстемпе
40
40
  */
41
41
  lateRegUntil: number;
42
+ /**
43
+ * Сумма которую игрок заплатил за вход в турнир
44
+ */
42
45
  buyIn: number;
46
+ /**
47
+ * Сумма которую игрок заплатил за вход в турнир, обновленная в из-за тикета
48
+ */
49
+ playerBuyIn: Nullable<number>;
43
50
  /**
44
51
  * Текущее количество игроков в турнире
45
52
  */
@@ -40,6 +40,10 @@ export type GetTournamentMainInfoResponse = {
40
40
  export type GetTournamentGeneralInfoResponse = {
41
41
  type: TournamentType;
42
42
  buyIn: number;
43
+ /**
44
+ * Сумма которую игрок заплатил за вход в турнир, обновленная в из-за тикета
45
+ */
46
+ playerBuyIn: Nullable<number>;
43
47
  playersCount: number;
44
48
  totalPrize: number;
45
49
  maxTablePlaces: number;
@@ -32,12 +32,13 @@ export type Card = {
32
32
  rank: CardRank;
33
33
  };
34
34
  export type Cards = Card[];
35
+ export type UserId = number;
35
36
  export type Winners = {
36
- userId: number;
37
+ userId: UserId;
37
38
  chipsCount: number;
38
39
  }[][];
39
40
  export type GameStartUser = {
40
- userId: number;
41
+ id: UserId;
41
42
  /**
42
43
  * Оставшееся время резерва места
43
44
  */
@@ -55,7 +56,7 @@ export type GameStartUser = {
55
56
  export type User = {
56
57
  avatarId: number;
57
58
  nickname: string;
58
- id: number;
59
+ id: UserId;
59
60
  cards?: Cards;
60
61
  chipsCount: number;
61
62
  place: number;
@@ -144,7 +145,6 @@ export type TournamentData = {
144
145
  */
145
146
  topUsers: Record<UserId, number> | undefined;
146
147
  };
147
- export type UserId = User['id'];
148
148
  type Showdown = Record<UserId, Cards>;
149
149
  export type ActionMessageContentToFront = {
150
150
  userId: UserId;
@@ -39,7 +39,14 @@ export type Tournament = {
39
39
  * в таймстемпе
40
40
  */
41
41
  lateRegUntil: number;
42
+ /**
43
+ * Сумма которую игрок заплатил за вход в турнир
44
+ */
42
45
  buyIn: number;
46
+ /**
47
+ * Сумма которую игрок заплатил за вход в турнир, обновленная в из-за тикета
48
+ */
49
+ playerBuyIn: Nullable<number>;
43
50
  /**
44
51
  * Текущее количество игроков в турнире
45
52
  */
@@ -40,6 +40,10 @@ export type GetTournamentMainInfoResponse = {
40
40
  export type GetTournamentGeneralInfoResponse = {
41
41
  type: TournamentType;
42
42
  buyIn: number;
43
+ /**
44
+ * Сумма которую игрок заплатил за вход в турнир, обновленная в из-за тикета
45
+ */
46
+ playerBuyIn: Nullable<number>;
43
47
  playersCount: number;
44
48
  totalPrize: number;
45
49
  maxTablePlaces: number;
@@ -32,12 +32,13 @@ export type Card = {
32
32
  rank: CardRank;
33
33
  };
34
34
  export type Cards = Card[];
35
+ export type UserId = number;
35
36
  export type Winners = {
36
- userId: number;
37
+ userId: UserId;
37
38
  chipsCount: number;
38
39
  }[][];
39
40
  export type GameStartUser = {
40
- userId: number;
41
+ id: UserId;
41
42
  /**
42
43
  * Оставшееся время резерва места
43
44
  */
@@ -55,7 +56,7 @@ export type GameStartUser = {
55
56
  export type User = {
56
57
  avatarId: number;
57
58
  nickname: string;
58
- id: number;
59
+ id: UserId;
59
60
  cards?: Cards;
60
61
  chipsCount: number;
61
62
  place: number;
@@ -144,7 +145,6 @@ export type TournamentData = {
144
145
  */
145
146
  topUsers: Record<UserId, number> | undefined;
146
147
  };
147
- export type UserId = User['id'];
148
148
  type Showdown = Record<UserId, Cards>;
149
149
  export type ActionMessageContentToFront = {
150
150
  userId: UserId;
package/dist/index.d.ts CHANGED
@@ -259,7 +259,14 @@ type Tournament = {
259
259
  * в таймстемпе
260
260
  */
261
261
  lateRegUntil: number;
262
+ /**
263
+ * Сумма которую игрок заплатил за вход в турнир
264
+ */
262
265
  buyIn: number;
266
+ /**
267
+ * Сумма которую игрок заплатил за вход в турнир, обновленная в из-за тикета
268
+ */
269
+ playerBuyIn: Nullable<number>;
263
270
  /**
264
271
  * Текущее количество игроков в турнире
265
272
  */
@@ -326,6 +333,10 @@ type GetTournamentMainInfoResponse = {
326
333
  type GetTournamentGeneralInfoResponse = {
327
334
  type: TournamentType;
328
335
  buyIn: number;
336
+ /**
337
+ * Сумма которую игрок заплатил за вход в турнир, обновленная в из-за тикета
338
+ */
339
+ playerBuyIn: Nullable<number>;
329
340
  playersCount: number;
330
341
  totalPrize: number;
331
342
  maxTablePlaces: number;
@@ -621,12 +632,13 @@ type Card = {
621
632
  rank: CardRank;
622
633
  };
623
634
  type Cards = Card[];
635
+ type UserId = number;
624
636
  type Winners = {
625
- userId: number;
637
+ userId: UserId;
626
638
  chipsCount: number;
627
639
  }[][];
628
640
  type GameStartUser = {
629
- userId: number;
641
+ id: UserId;
630
642
  /**
631
643
  * Оставшееся время резерва места
632
644
  */
@@ -644,7 +656,7 @@ type GameStartUser = {
644
656
  type User = {
645
657
  avatarId: number;
646
658
  nickname: string;
647
- id: number;
659
+ id: UserId;
648
660
  cards?: Cards;
649
661
  chipsCount: number;
650
662
  place: number;
@@ -733,7 +745,6 @@ type TournamentData = {
733
745
  */
734
746
  topUsers: Record<UserId, number> | undefined;
735
747
  };
736
- type UserId = User['id'];
737
748
  type Showdown = Record<UserId, Cards>;
738
749
  type ActionMessageContentToFront = {
739
750
  userId: UserId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "front-back-poker-types",
3
- "version": "5.0.221",
3
+ "version": "5.0.223",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "files": [