@vankosoft/game-platform 0.2.1 → 1.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.
Files changed (139) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/dist/cjs/Dto/Actions/actionDto.d.ts +5 -0
  5. package/dist/cjs/Dto/Actions/announceMadeActionDto.d.ts +7 -0
  6. package/dist/cjs/Dto/Actions/bidMadeActionDto.d.ts +7 -0
  7. package/dist/cjs/Dto/Actions/biddingStartedActionDto.d.ts +13 -0
  8. package/dist/cjs/Dto/Actions/boardGameCreatedActionDto.d.ts +9 -0
  9. package/dist/cjs/Dto/Actions/boardGameEndedActionDto.d.ts +9 -0
  10. package/dist/cjs/Dto/Actions/boardGameRestoreActionDto.d.ts +11 -0
  11. package/dist/cjs/Dto/Actions/cardGameCreatedActionDto.d.ts +9 -0
  12. package/dist/cjs/Dto/Actions/cardGameEndedActionDto.d.ts +9 -0
  13. package/dist/cjs/Dto/Actions/cardGameRestoreActionDto.d.ts +9 -0
  14. package/dist/cjs/Dto/Actions/chessGameStartedActionDto.d.ts +10 -0
  15. package/dist/cjs/Dto/Actions/chessInvalidMoveMadeActionDto.d.ts +7 -0
  16. package/dist/cjs/Dto/Actions/chessMoveMadeActionDto.d.ts +7 -0
  17. package/dist/cjs/Dto/Actions/chessOpponentMoveActionDto.d.ts +13 -0
  18. package/dist/cjs/Dto/Actions/connectionInfoActionDto.d.ts +6 -0
  19. package/dist/cjs/Dto/Actions/dicesRolledActionDto.d.ts +12 -0
  20. package/dist/cjs/Dto/Actions/doublingActionDto.d.ts +7 -0
  21. package/dist/cjs/Dto/Actions/hintMovesActionDto.d.ts +8 -0
  22. package/dist/cjs/Dto/Actions/movesMadeActionDto.d.ts +7 -0
  23. package/dist/cjs/Dto/Actions/opponentBidsActionDto.d.ts +15 -0
  24. package/dist/cjs/Dto/Actions/opponentMoveActionDto.d.ts +7 -0
  25. package/dist/cjs/Dto/Actions/opponentPlayCardActionDto.d.ts +14 -0
  26. package/dist/cjs/Dto/Actions/playCardActionDto.d.ts +11 -0
  27. package/dist/cjs/Dto/Actions/playingStartedActionDto.d.ts +16 -0
  28. package/dist/cjs/Dto/Actions/rolledActionDto.d.ts +5 -0
  29. package/dist/cjs/Dto/Actions/roundEndedActionDto.d.ts +13 -0
  30. package/dist/cjs/Dto/Actions/serverWasTerminatedActionDto.d.ts +4 -0
  31. package/dist/cjs/Dto/Actions/startGamePlayActionDto.d.ts +9 -0
  32. package/dist/cjs/Dto/Actions/startNewGameActionDto.d.ts +5 -0
  33. package/dist/cjs/Dto/Actions/startNewRoundActionDto.d.ts +5 -0
  34. package/dist/cjs/Dto/Actions/trickEndedActionDto.d.ts +7 -0
  35. package/dist/cjs/Dto/Actions/undoActionDto.d.ts +4 -0
  36. package/dist/cjs/Dto/BoardGame/checkerDto.d.ts +5 -0
  37. package/dist/cjs/{Model → Dto}/BoardGame/chessMoveDto.d.ts +3 -3
  38. package/dist/cjs/Dto/BoardGame/chessPieceDto.d.ts +9 -0
  39. package/dist/cjs/{Model → Dto}/BoardGame/gameDto.d.ts +3 -2
  40. package/dist/cjs/Dto/BoardGame/index.d.ts +9 -0
  41. package/dist/cjs/Dto/BoardGame/index.ts +9 -0
  42. package/dist/cjs/{Model → Dto}/BoardGame/moveDto.d.ts +1 -1
  43. package/dist/cjs/{Model → Dto}/BoardGame/playerDto.d.ts +2 -2
  44. package/dist/cjs/{Model → Dto}/CardGame/announceDto.d.ts +2 -2
  45. package/dist/cjs/{Model → Dto}/CardGame/bidDto.d.ts +2 -2
  46. package/dist/cjs/Dto/CardGame/cardDto.d.ts +14 -0
  47. package/dist/cjs/{Model → Dto}/CardGame/gameDto.d.ts +3 -3
  48. package/dist/cjs/Dto/CardGame/index.d.ts +6 -0
  49. package/dist/cjs/Dto/CardGame/index.ts +6 -0
  50. package/dist/cjs/Dto/CardGame/playerDto.d.ts +6 -0
  51. package/dist/cjs/Dto/admin/playedGameDto.d.ts +10 -0
  52. package/dist/cjs/Dto/admin/playedGameListDto.d.ts +7 -0
  53. package/dist/cjs/Dto/chat/chatDto.d.ts +5 -0
  54. package/dist/cjs/Dto/chat/chatMessageDto.d.ts +9 -0
  55. package/dist/cjs/Dto/chat/joinedChatDto.d.ts +7 -0
  56. package/dist/cjs/Dto/chat/leftChatDto.d.ts +7 -0
  57. package/dist/cjs/Dto/editor/gameStringRequest.d.ts +10 -0
  58. package/dist/cjs/Dto/editor/gameStringResponseDto.d.ts +6 -0
  59. package/dist/cjs/Dto/feedback/feedbackDto.d.ts +8 -0
  60. package/dist/cjs/{Model/Core → Dto}/gameCookieDto.d.ts +2 -2
  61. package/dist/cjs/{Model/Core → Dto}/gameDto.d.ts +1 -1
  62. package/dist/cjs/Dto/index.d.ts +9 -0
  63. package/dist/cjs/Dto/index.ts +12 -0
  64. package/dist/cjs/Dto/message/messageDto.d.ts +12 -0
  65. package/dist/cjs/Dto/rest/inviteResponseDto.d.ts +6 -0
  66. package/dist/cjs/Enum/actionNames.d.ts +33 -0
  67. package/dist/cjs/Enum/messageType.d.ts +6 -0
  68. package/dist/cjs/Model/announce.d.ts +4 -0
  69. package/dist/cjs/Model/card-area.d.ts +13 -0
  70. package/dist/cjs/Model/card-drag.d.ts +13 -0
  71. package/dist/cjs/Model/card-game-player-area.d.ts +11 -0
  72. package/dist/cjs/Model/card.d.ts +7 -0
  73. package/dist/cjs/Model/checker-area.d.ts +18 -0
  74. package/dist/cjs/Model/checker-drag.d.ts +10 -0
  75. package/dist/cjs/Model/checker.d.ts +6 -0
  76. package/dist/cjs/Model/index.d.ts +9 -0
  77. package/dist/cjs/Model/move-animation.d.ts +17 -0
  78. package/dist/cjs/Model/pile.d.ts +6 -0
  79. package/dist/cjs/Model/point.d.ts +5 -0
  80. package/dist/cjs/Model/themes.d.ts +91 -0
  81. package/dist/cjs/{Model → Type}/CardGameAnnounceSymbolModel.d.ts +1 -1
  82. package/dist/cjs/Type/GamePlayerModel.d.ts +8 -0
  83. package/dist/cjs/Type/auth.d.ts +15 -0
  84. package/dist/cjs/Type/index.d.ts +8 -0
  85. package/dist/cjs/Type/index.ts +11 -0
  86. package/dist/cjs/Type/mercure-action.d.ts +6 -0
  87. package/dist/cjs/Type/signed-url-response.d.ts +5 -0
  88. package/dist/cjs/Type/toggle-sound-mute-response.d.ts +5 -0
  89. package/dist/cjs/Utils/helper.d.ts +9 -0
  90. package/dist/cjs/Utils/keys.d.ts +5 -0
  91. package/dist/cjs/Utils/status-message.d.ts +15 -0
  92. package/dist/cjs/game.variant.d.ts +10 -0
  93. package/dist/cjs/index.d.ts +108 -46
  94. package/dist/cjs/index.js +751 -56
  95. package/package.json +1 -1
  96. package/rollup.config.mjs +4 -2
  97. package/dist/cjs/Model/BoardGame/checkerDto.d.ts +0 -5
  98. package/dist/cjs/Model/BoardGame/chessMoveType.ts +0 -8
  99. package/dist/cjs/Model/BoardGame/chessPieceDto.d.ts +0 -9
  100. package/dist/cjs/Model/BoardGame/chessPieceType.ts +0 -9
  101. package/dist/cjs/Model/BoardGame/playerColor.ts +0 -6
  102. package/dist/cjs/Model/CardGame/announceType.ts +0 -18
  103. package/dist/cjs/Model/CardGame/bidType.ts +0 -13
  104. package/dist/cjs/Model/CardGame/bridgeBeloteCardType.ts +0 -11
  105. package/dist/cjs/Model/CardGame/cardDto.d.ts +0 -14
  106. package/dist/cjs/Model/CardGame/cardGameTeam.ts +0 -6
  107. package/dist/cjs/Model/CardGame/cardSuit.ts +0 -7
  108. package/dist/cjs/Model/CardGame/contractBridgeCardType.ts +0 -16
  109. package/dist/cjs/Model/CardGame/playerDto.d.ts +0 -6
  110. package/dist/cjs/Model/CardGame/playerPosition.ts +0 -8
  111. package/dist/cjs/Model/Core/gameState.ts +0 -17
  112. package/dist/cjs/Model/GamePlayerModel.d.ts +0 -8
  113. /package/dist/cjs/{Model → Dto}/BoardGame/chessSquareDto.d.ts +0 -0
  114. /package/dist/cjs/{Model → Dto}/BoardGame/diceDto.d.ts +0 -0
  115. /package/dist/cjs/{Model → Dto}/BoardGame/pointDto.d.ts +0 -0
  116. /package/dist/cjs/{Model → Dto}/CardGame/bridgeBeloteScoreDto.d.ts +0 -0
  117. /package/dist/cjs/{Model/Core → Dto}/connectionDto.d.ts +0 -0
  118. /package/dist/cjs/{Model/Core → Dto}/errorReportDto.d.ts +0 -0
  119. /package/dist/cjs/{Model/Core → Dto}/newScoreDto.d.ts +0 -0
  120. /package/dist/cjs/{Model/Core → Dto}/playerDto.d.ts +0 -0
  121. /package/dist/cjs/{Model/Core → Dto}/userDto.d.ts +0 -0
  122. /package/dist/cjs/{Model/CardGame → Enum}/announceType.d.ts +0 -0
  123. /package/dist/cjs/{Model/CardGame → Enum}/bidType.d.ts +0 -0
  124. /package/dist/cjs/{Model/CardGame → Enum}/bridgeBeloteCardType.d.ts +0 -0
  125. /package/dist/cjs/{Model/CardGame → Enum}/cardGameTeam.d.ts +0 -0
  126. /package/dist/cjs/{Model/CardGame → Enum}/cardSuit.d.ts +0 -0
  127. /package/dist/cjs/{Model/BoardGame → Enum}/chessMoveType.d.ts +0 -0
  128. /package/dist/cjs/{Model/BoardGame → Enum}/chessPieceType.d.ts +0 -0
  129. /package/dist/cjs/{Model/CardGame → Enum}/contractBridgeCardType.d.ts +0 -0
  130. /package/dist/cjs/{Model/Core → Enum}/gameState.d.ts +0 -0
  131. /package/dist/cjs/{Model/BoardGame → Enum}/playerColor.d.ts +0 -0
  132. /package/dist/cjs/{Model/CardGame → Enum}/playerPosition.d.ts +0 -0
  133. /package/dist/cjs/{Model → Type}/GameInterface.d.ts +0 -0
  134. /package/dist/cjs/{Model → Type}/GamePlayInterface.d.ts +0 -0
  135. /package/dist/cjs/{Model → Type}/GameRoomInterface.d.ts +0 -0
  136. /package/dist/cjs/{Model → Type}/GameRoomModel.d.ts +0 -0
  137. /package/dist/cjs/{Model → Type}/PlayerInterface.d.ts +0 -0
  138. /package/dist/cjs/{Model/BoardGame → Type}/toplist.d.ts +0 -0
  139. /package/dist/cjs/{Model/BoardGame → Type}/toplistResult.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ 1.0.0 | Release date: **16.08.2026**
2
+ ============================================
3
+ * New Features:
4
+ - Refactoring of All Types
5
+ - Add Models.
6
+ - Add More Types.
7
+ - Add More DTO Intefaces.
8
+ - Add Some Utils Components.
9
+
10
+
11
+ 0.3.0 | Release date: **15.08.2026**
12
+ ============================================
13
+ * New Features:
14
+ - Refactoring of All Types.
15
+ - Update Package Version.
16
+
17
+
1
18
  0.2.1 | Release date: **14.08.2026**
2
19
  ============================================
3
20
  * New Features:
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # game-platform
1
+ # VankoSoft Game Platform
2
2
 
3
3
  ## I. Build
4
4
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 1.0.0
@@ -0,0 +1,5 @@
1
+ import { ActionNames } from '../../Enum/actionNames';
2
+
3
+ export interface ActionDto {
4
+ actionName: ActionNames;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { AnnounceDto } from '../CardGame/announceDto';
4
+
5
+ export interface AnnounceMadeActionDto extends ActionDto {
6
+ announce: AnnounceDto;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { BidDto } from '../CardGame/bidDto';
4
+
5
+ export interface BidMadeActionDto extends ActionDto {
6
+ bid: BidDto;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { CardDto } from '../CardGame/cardDto';
5
+ import { BidDto } from '../CardGame/bidDto';
6
+
7
+ export interface BiddingStartedActionDto extends ActionDto {
8
+ deck: CardDto[];
9
+ playerCards: Array<CardDto[]>;
10
+ firstToBid: PlayerPosition;
11
+ validBids: BidDto[];
12
+ timer: number;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { BoardGameDto } from '../BoardGame/gameDto';
4
+ import { PlayerColor } from '../../Enum/playerColor';
5
+
6
+ export interface BoardGameCreatedActionDto extends ActionDto {
7
+ game: BoardGameDto;
8
+ myColor: PlayerColor;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { BoardGameDto } from '../BoardGame/gameDto';
4
+ import { NewScoreDto } from '../newScoreDto';
5
+
6
+ export interface BoardGameEndedActionDto extends ActionDto {
7
+ game: BoardGameDto;
8
+ newScore: NewScoreDto;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerColor } from '../../Enum/playerColor';
4
+ import { BoardGameDto } from '../BoardGame/gameDto';
5
+ import { DiceDto } from '../BoardGame/diceDto';
6
+
7
+ export interface BoardGameRestoreActionDto extends ActionDto {
8
+ game: BoardGameDto;
9
+ color: PlayerColor;
10
+ dices: DiceDto[];
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { CardGameDto } from '../CardGame/gameDto';
4
+ import { PlayerPosition } from '../../Enum/playerPosition';
5
+
6
+ export interface CardGameCreatedActionDto extends ActionDto {
7
+ game: CardGameDto;
8
+ myPosition: PlayerPosition;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { CardGameDto } from '../CardGame/gameDto';
4
+ import { NewScoreDto } from '../newScoreDto';
5
+
6
+ export interface CardGameEndedActionDto extends ActionDto {
7
+ game: CardGameDto;
8
+ newScore: NewScoreDto;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { CardGameDto } from '../CardGame/gameDto';
4
+ import { PlayerPosition } from '../../Enum/playerPosition';
5
+
6
+ export interface CardGameRestoreActionDto extends ActionDto {
7
+ game: CardGameDto;
8
+ position: PlayerPosition;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerColor } from '../../Enum/playerColor';
4
+ import { BoardGameDto } from '../BoardGame/gameDto';
5
+
6
+ export interface ChessGameStartedActionDto extends ActionDto {
7
+ playerToMove: PlayerColor;
8
+ moveTimer: number;
9
+ game: BoardGameDto;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { ChessMoveDto } from '../BoardGame/chessMoveDto';
4
+
5
+ export interface ChessInvalidMoveMadeActionDto extends ActionDto {
6
+ move: ChessMoveDto;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { ChessMoveDto } from '../BoardGame/chessMoveDto';
4
+
5
+ export interface ChessMoveMadeActionDto extends ActionDto {
6
+ move?: ChessMoveDto;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { ChessMoveDto } from '../BoardGame/chessMoveDto';
4
+ import { BoardGameDto } from '../BoardGame/gameDto';
5
+ import { PlayerColor } from '../../Enum/playerColor';
6
+
7
+ export interface ChessOpponentMoveActionDto extends ActionDto {
8
+ move?: ChessMoveDto;
9
+ myColor: PlayerColor;
10
+
11
+ game?: BoardGameDto;
12
+ moveTimer?: number;
13
+ }
@@ -0,0 +1,6 @@
1
+ import { ActionDto } from './actionDto';
2
+ import { ConnectionDto } from '../connectionDto';
3
+
4
+ export interface ConnectionInfoActionDto extends ActionDto {
5
+ connection: ConnectionDto;
6
+ }
@@ -0,0 +1,12 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerColor } from '../../Enum/playerColor';
4
+ import { DiceDto } from '../BoardGame/diceDto';
5
+ import { MoveDto } from '../BoardGame/moveDto';
6
+
7
+ export interface DicesRolledActionDto extends ActionDto {
8
+ dices: DiceDto[];
9
+ playerToMove: PlayerColor;
10
+ validMoves: MoveDto[];
11
+ moveTimer: number;
12
+ }
@@ -0,0 +1,7 @@
1
+ /* Auto Generated */
2
+
3
+ import { ActionDto } from './actionDto';
4
+
5
+ export interface DoublingActionDto extends ActionDto {
6
+ moveTimer: number;
7
+ }
@@ -0,0 +1,8 @@
1
+ /* Auto Generated */
2
+
3
+ import { ActionDto } from './actionDto';
4
+ import { MoveDto } from '../BoardGame/moveDto';
5
+
6
+ export interface HintMovesActionDto extends ActionDto {
7
+ moves: MoveDto[];
8
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { MoveDto } from '../BoardGame/moveDto';
4
+
5
+ export interface MovesMadeActionDto extends ActionDto {
6
+ moves: MoveDto[];
7
+ }
@@ -0,0 +1,15 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { GameState } from '../../Enum/gameState';
5
+ import { BidDto } from '../CardGame/bidDto';
6
+ import { CardDto } from '../CardGame/cardDto';
7
+
8
+ export interface OpponentBidsActionDto extends ActionDto {
9
+ bid: BidDto;
10
+ validBids: BidDto[];
11
+ nextPlayer: PlayerPosition;
12
+ playState: GameState;
13
+
14
+ MyCards: CardDto[] | undefined;
15
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { MoveDto } from '../BoardGame/moveDto';
4
+
5
+ export interface OpponentMoveActionDto extends ActionDto {
6
+ move: MoveDto;
7
+ }
@@ -0,0 +1,14 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { CardDto } from '../CardGame/cardDto';
5
+
6
+ export interface OpponentPlayCardActionDto extends ActionDto {
7
+ Card: CardDto;
8
+ Belote: boolean;
9
+ Player: PlayerPosition;
10
+ TrickNumber: number;
11
+
12
+ validCards: CardDto[];
13
+ nextPlayer: PlayerPosition;
14
+ }
@@ -0,0 +1,11 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { CardDto } from '../CardGame/cardDto';
5
+
6
+ export interface PlayCardActionDto extends ActionDto {
7
+ Card: CardDto;
8
+ Belote: boolean;
9
+ Player: PlayerPosition;
10
+ TrickNumber: number;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { CardDto } from '../CardGame/cardDto';
5
+ import { BidDto } from '../CardGame/bidDto';
6
+ import { AnnounceDto } from '../CardGame/announceDto';
7
+
8
+ export interface PlayingStartedActionDto extends ActionDto {
9
+ deck: CardDto[];
10
+ playerCards: Array<CardDto[]>;
11
+ playerAnnounces: Array<AnnounceDto[]>;
12
+ firstToPlay: PlayerPosition;
13
+ contract: BidDto
14
+ validCards: CardDto[];
15
+ timer: number;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ export interface RolledActionDto extends ActionDto {
4
+
5
+ }
@@ -0,0 +1,13 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { CardGameDto } from '../CardGame/gameDto';
4
+ import { BridgeBeloteScoreDto } from '../CardGame/bridgeBeloteScoreDto';
5
+ import { CardDto } from '../CardGame/cardDto';
6
+
7
+ export interface RoundEndedActionDto extends ActionDto {
8
+ game: CardGameDto;
9
+ newScore: BridgeBeloteScoreDto;
10
+
11
+ SouthNorthTricks: CardDto[];
12
+ EastWestTricks: CardDto[];
13
+ }
@@ -0,0 +1,4 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
4
+ export interface ServerWasTerminatedActionDto extends ActionDto {}
@@ -0,0 +1,9 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { BoardGameDto } from '../BoardGame/gameDto';
4
+ import { PlayerColor } from '../../Enum/playerColor';
5
+
6
+ export interface StartGamePlayActionDto extends ActionDto {
7
+ game: BoardGameDto;
8
+ myColor: PlayerColor;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ export interface StartNewGameActionDto extends ActionDto {
4
+
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ export interface StartNewRoundActionDto extends ActionDto {
4
+
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { CardGameDto } from '../CardGame/gameDto';
4
+
5
+ export interface TrickEndedActionDto extends ActionDto {
6
+ game: CardGameDto;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
4
+ export interface UndoActionDto extends ActionDto {}
@@ -0,0 +1,5 @@
1
+ import { PlayerColor } from '../../Enum/playerColor';
2
+
3
+ export interface CheckerDto {
4
+ color: PlayerColor;
5
+ }
@@ -1,6 +1,6 @@
1
- import { PlayerColor } from './playerColor';
2
- import { ChessMoveType } from './chessMoveType';
3
- import { ChessPieceType } from './chessPieceType';
1
+ import { PlayerColor } from '../../Enum/playerColor';
2
+ import { ChessMoveType } from '../../Enum/chessMoveType';
3
+ import { ChessPieceType } from '../../Enum/chessPieceType';
4
4
 
5
5
  export interface ChessMoveDto
6
6
  {
@@ -0,0 +1,9 @@
1
+ import { ChessPieceType } from '../../Enum/chessPieceType';
2
+ import { PlayerColor } from '../../Enum/playerColor';
3
+
4
+ export interface ChessPieceDto
5
+ {
6
+ Type: ChessPieceType;
7
+ Side: PlayerColor;
8
+ Moves: number;
9
+ }
@@ -1,6 +1,7 @@
1
- import { GameDto } from '../Core/gameDto';
1
+ import { PlayerColor } from '../../Enum/playerColor';
2
+
3
+ import { GameDto } from '../gameDto';
2
4
  import { BoardGamePlayerDto } from './playerDto';
3
- import { PlayerColor } from './playerColor';
4
5
  import { PointDto } from './pointDto';
5
6
  import { MoveDto } from './moveDto';
6
7
  import { ChessSquareDto } from './chessSquareDto';
@@ -0,0 +1,9 @@
1
+ export * from "./gameDto";
2
+ export * from "./moveDto";
3
+ export * from "./playerDto";
4
+ export * from "./pointDto";
5
+ export * from "./checkerDto";
6
+ export * from "./diceDto";
7
+ export * from "./chessMoveDto";
8
+ export * from "./chessPieceDto";
9
+ export * from "./chessSquareDto";
@@ -0,0 +1,9 @@
1
+ export * from "./gameDto";
2
+ export * from "./moveDto";
3
+ export * from "./playerDto";
4
+ export * from "./pointDto";
5
+ export * from "./checkerDto";
6
+ export * from "./diceDto";
7
+ export * from "./chessMoveDto";
8
+ export * from "./chessPieceDto";
9
+ export * from "./chessSquareDto";
@@ -1,4 +1,4 @@
1
- import { PlayerColor } from './playerColor';
1
+ import { PlayerColor } from '../../Enum/playerColor';
2
2
 
3
3
  export interface MoveDto
4
4
  {
@@ -1,5 +1,5 @@
1
- import { PlayerDto } from '../Core/playerDto';
2
- import { PlayerColor } from './playerColor';
1
+ import { PlayerColor } from '../../Enum/playerColor';
2
+ import { PlayerDto } from '../playerDto';
3
3
 
4
4
  export interface BoardGamePlayerDto extends PlayerDto {
5
5
  playerColor: PlayerColor;
@@ -1,5 +1,5 @@
1
- import { PlayerPosition } from './playerPosition';
2
- import { AnnounceType } from './announceType';
1
+ import { PlayerPosition } from '../../Enum/playerPosition';
2
+ import { AnnounceType } from '../../Enum/announceType';
3
3
  import { CardDto } from './cardDto';
4
4
 
5
5
  export interface AnnounceDto
@@ -1,5 +1,5 @@
1
- import { PlayerPosition } from './playerPosition';
2
- import { BidType } from './bidType';
1
+ import { PlayerPosition } from '../../Enum/playerPosition';
2
+ import { BidType } from '../../Enum/bidType';
3
3
 
4
4
  export interface BidDto
5
5
  {
@@ -0,0 +1,14 @@
1
+ import { CardSuit } from '../../Enum/cardSuit';
2
+ import { BridgeBeloteCardType } from '../../Enum/bridgeBeloteCardType';
3
+ import { ContractBridgeCardType } from '../../Enum/contractBridgeCardType';
4
+ import { PlayerPosition } from '../../Enum/playerPosition';
5
+
6
+ export interface CardDto
7
+ {
8
+ Suit: CardSuit;
9
+ Type: BridgeBeloteCardType | ContractBridgeCardType;
10
+
11
+ position: PlayerPosition;
12
+ cardIndex: string;
13
+ animate: boolean;
14
+ }
@@ -1,7 +1,7 @@
1
- import { GameDto } from '../Core/gameDto';
1
+ import { GameDto } from '../gameDto';
2
2
  import { CardGamePlayerDto } from './playerDto';
3
- import { PlayerPosition } from './playerPosition';
4
- import { CardGameTeam } from './cardGameTeam'
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { CardGameTeam } from '../../Enum/cardGameTeam'
5
5
 
6
6
  export interface CardGameDto extends GameDto {
7
7
  players: CardGamePlayerDto[];
@@ -0,0 +1,6 @@
1
+ export * from "./gameDto";
2
+ export * from "./playerDto";
3
+ export * from "./cardDto";
4
+ export * from "./bidDto";
5
+ export * from "./bridgeBeloteScoreDto";
6
+ export * from "./announceDto";
@@ -0,0 +1,6 @@
1
+ export * from "./gameDto";
2
+ export * from "./playerDto";
3
+ export * from "./cardDto";
4
+ export * from "./bidDto";
5
+ export * from "./bridgeBeloteScoreDto";
6
+ export * from "./announceDto";
@@ -0,0 +1,6 @@
1
+ import { PlayerDto } from '../playerDto';
2
+ import { PlayerPosition } from '../../Enum/playerPosition';
3
+
4
+ export interface CardGamePlayerDto extends PlayerDto {
5
+ playerPosition: PlayerPosition;
6
+ }
@@ -0,0 +1,10 @@
1
+ /* Auto Generated */
2
+
3
+ import { PlayerColor } from '../../Enum/playerColor';
4
+
5
+ export interface PlayedGameDto {
6
+ utcStarted: Date;
7
+ black: string;
8
+ white: string;
9
+ winner?: PlayerColor;
10
+ }
@@ -0,0 +1,7 @@
1
+ /* Auto Generated */
2
+
3
+ import { PlayedGameDto } from './playedGameDto';
4
+
5
+ export interface PlayedGameListDto {
6
+ games: PlayedGameDto[];
7
+ }
@@ -0,0 +1,5 @@
1
+ /* Auto Generated */
2
+
3
+ export interface ChatDto {
4
+ type: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ /* Auto Generated */
2
+
3
+ import { ChatDto } from './chatDto';
4
+
5
+ export interface ChatMessageDto extends ChatDto {
6
+ fromUser: string;
7
+ message: string;
8
+ utcDateTime: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ /* Auto Generated */
2
+
3
+ import { ChatDto } from './chatDto';
4
+
5
+ export interface ChatUsersDto extends ChatDto {
6
+ users: string[];
7
+ }
@@ -0,0 +1,7 @@
1
+ /* Auto Generated */
2
+
3
+ import { ChatDto } from './chatDto';
4
+
5
+ export interface LeftChatDto extends ChatDto {
6
+ users: string[];
7
+ }
@@ -0,0 +1,10 @@
1
+ /* Auto Generated */
2
+
3
+ import { DiceDto } from '../BoardGame/diceDto';
4
+ import { BoardGameDto } from '../BoardGame/gameDto';
5
+
6
+ export interface GameStringRequest
7
+ {
8
+ dice: DiceDto[];
9
+ game: BoardGameDto;
10
+ }
@@ -0,0 +1,6 @@
1
+ /* Auto Generated */
2
+
3
+ export interface GameStringResponseDto
4
+ {
5
+ value: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ /* Auto Generated */
2
+
3
+ export interface FeedbackDto {
4
+ id: number;
5
+ sent: string;
6
+ text: string;
7
+ senderName: string;
8
+ }
@@ -1,5 +1,5 @@
1
- import { PlayerColor } from '../BoardGame/playerColor';
2
- import { PlayerPosition } from '../CardGame/playerPosition';
1
+ import { PlayerColor } from '../Enum/playerColor';
2
+ import { PlayerPosition } from '../Enum/playerPosition';
3
3
 
4
4
  export interface GameCookieDto
5
5
  {
@@ -1,4 +1,4 @@
1
- import { GameState } from './gameState';
1
+ import { GameState } from '../Enum/gameState';
2
2
 
3
3
  export interface GameDto {
4
4
  id: string;
@@ -0,0 +1,9 @@
1
+ export * from "./connectionDto";
2
+ export * from "./errorReportDto";
3
+ export * from "./userDto";
4
+ export * from "./gameDto";
5
+ export * from "./gameCookieDto";
6
+ export * from "./playerDto";
7
+ export * from "./newScoreDto";
8
+ export * from "./BoardGame";
9
+ export * from "./CardGame";