trucoshi 11.0.1 → 11.1.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/types.d.ts +7 -2
- package/package.json +3 -1
package/dist/types.d.ts
CHANGED
|
@@ -45,15 +45,16 @@ export interface ILobbyOptions {
|
|
|
45
45
|
satsPerPlayer: number;
|
|
46
46
|
}
|
|
47
47
|
export interface IJoinQueueOptions {
|
|
48
|
-
maxPlayers: 2 | 4 | 6;
|
|
48
|
+
maxPlayers: 0 | 2 | 4 | 6;
|
|
49
49
|
allowBots: boolean;
|
|
50
50
|
}
|
|
51
51
|
export interface IQueueStatus {
|
|
52
52
|
requestId: string;
|
|
53
|
-
maxPlayers: 2 | 4 | 6;
|
|
53
|
+
maxPlayers: 0 | 2 | 4 | 6;
|
|
54
54
|
queuedPlayers: number;
|
|
55
55
|
requiredPlayers: number;
|
|
56
56
|
position: number;
|
|
57
|
+
queuedAt: number;
|
|
57
58
|
botFallbackAt?: number;
|
|
58
59
|
}
|
|
59
60
|
export interface IQueueMatchFound {
|
|
@@ -101,6 +102,8 @@ export interface IMatchPreviousHand {
|
|
|
101
102
|
export interface IPublicMatch {
|
|
102
103
|
id?: number;
|
|
103
104
|
options: ILobbyOptions;
|
|
105
|
+
createdFromQueue: boolean;
|
|
106
|
+
queueOptions?: IJoinQueueOptions;
|
|
104
107
|
busy: boolean;
|
|
105
108
|
state: EMatchState;
|
|
106
109
|
handState: EHandState | null;
|
|
@@ -129,6 +132,8 @@ export interface IPublicMatchInfo {
|
|
|
129
132
|
options: ILobbyOptions;
|
|
130
133
|
state: EMatchState;
|
|
131
134
|
winnerTeamIdx: 0 | 1 | undefined;
|
|
135
|
+
createdFromQueue: boolean;
|
|
136
|
+
queueOptions?: IJoinQueueOptions;
|
|
132
137
|
}
|
|
133
138
|
export type IPublicChatRoom = Pick<IChatRoom, "id" | "messages">;
|
|
134
139
|
export interface IChatMessage {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trucoshi",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Truco Game Server",
|
|
5
5
|
"main": "dist/types.js",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"start:prod": "node bin/trucoshi-server",
|
|
26
26
|
"start:prod:migrate": "prisma migrate deploy && yarn start:prod",
|
|
27
27
|
"docker": "NODE_ENV=development ./init-dev.sh",
|
|
28
|
+
"dev:all": "NODE_ENV=development ./init-dev-all.sh",
|
|
29
|
+
"dev:all:sudo-docker": "DEV_ALL_DOCKER_SUDO=1 NODE_ENV=development ./init-dev-all.sh",
|
|
28
30
|
"docker:exec": "docker compose exec -i server yarn",
|
|
29
31
|
"docker:prod": "NODE_ENV=production && docker compose -f docker-compose.prod.yml down && docker compose -f docker-compose.prod.yml --env-file .env up --build",
|
|
30
32
|
"docker:staging": "docker compose -f docker-compose.staging.yml down && docker compose -f docker-compose.staging.yml --env-file .env up --build",
|