@hellacardgames/speed 0.7.0 → 0.8.1

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.
@@ -1,5 +1,5 @@
1
- import { g as Card, h as ChatMessage, m as ClientState, p as GameEvent } from "../index-xmcja9Bl.cjs";
2
- import { a as GetJoinableGamesResult, c as PlayCardResult, f as StartGameResult, i as GetEventsAndClearAcknowledgedResult, l as ReportNoPlayableCardsResult, n as DrawCardResult, o as JoinGameResult, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as SendChatResult } from "../index-BvZyhFek.cjs";
1
+ import { g as Card, h as ChatMessage, m as GameEvent, p as ClientState } from "../index-DlRknHKq.cjs";
2
+ import { a as GetJoinableGamesResult, c as PlayCardResult, f as StartGameResult, i as GetEventsAndClearAcknowledgedResult, l as ReportNoPlayableCardsResult, n as DrawCardResult, o as JoinGameResult, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as SendChatResult } from "../index-DOimW07r.cjs";
3
3
  //#region src/client/Client.d.ts
4
4
  declare class Client {
5
5
  private readonly baseUrl;
@@ -1,5 +1,5 @@
1
- import { g as Card, h as ChatMessage, m as ClientState, p as GameEvent } from "../index-xmcja9Bl.mjs";
2
- import { a as GetJoinableGamesResult, c as PlayCardResult, f as StartGameResult, i as GetEventsAndClearAcknowledgedResult, l as ReportNoPlayableCardsResult, n as DrawCardResult, o as JoinGameResult, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as SendChatResult } from "../index-BRtLpRz1.mjs";
1
+ import { g as Card, h as ChatMessage, m as GameEvent, p as ClientState } from "../index-DlRknHKq.mjs";
2
+ import { a as GetJoinableGamesResult, c as PlayCardResult, f as StartGameResult, i as GetEventsAndClearAcknowledgedResult, l as ReportNoPlayableCardsResult, n as DrawCardResult, o as JoinGameResult, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as SendChatResult } from "../index-CVbiOmI3.mjs";
3
3
  //#region src/client/Client.d.ts
4
4
  declare class Client {
5
5
  private readonly baseUrl;
@@ -1,4 +1,4 @@
1
- import { c as Manager, m as ClientState, p as GameEvent } from "./index-xmcja9Bl.mjs";
1
+ import { c as Manager, m as GameEvent, p as ClientState } from "./index-DlRknHKq.mjs";
2
2
  //#region src/server/Server.d.ts
3
3
  type CreateGameResult = {
4
4
  readonly success: true;
@@ -122,4 +122,4 @@ declare class Server {
122
122
  }
123
123
  //#endregion
124
124
  export { GetJoinableGamesResult as a, PlayCardResult as c, Server as d, StartGameResult as f, GetEventsAndClearAcknowledgedResult as i, ReportNoPlayableCardsResult as l, DrawCardResult as n, JoinGameResult as o, GetClientStateAndClearEventsResult as r, LeaveGameResult as s, CreateGameResult as t, SendChatResult as u };
125
- //# sourceMappingURL=index-BRtLpRz1.d.mts.map
125
+ //# sourceMappingURL=index-CVbiOmI3.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BRtLpRz1.d.mts","names":[],"sources":["../src/server/Server.ts"],"mappings":";;KAIY;WAEG;WACA;WACA;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;WACA,OAAO;;WAGP;WACA;;KAGH;WAEG;WACA,iBAAiB;;WAGjB;WACA;;KAGH;WACD;aACE;aACA;;;KAID;WAEG;WACA;;WAGA;WACA;;KAQH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;;WAGA;WACA;;KAWH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;cAiFF;mBACM;WAER;;aA2BkB,SAAA,gBAAM,qBAAqB;;;aAI9B,SAAA,mBAAU;;;aASzB,SAAA,mBACN;;;aAUM,SAAA,mBACN;;;aASyB,cAAA;;;aAKnB,SAAA,gBAAO,gBACA,qBAEb;;;aAQsB,SAAA,mBAAU;;;aAQX,SAAA,mBAAU;;;aAQG,SAAA,mBAAU;;;aAQvB,SAAA,mBAAU;;;aAQT,SAAA,mBAAU;;EAtFvB,eAAG,MAAM,6BAA6B;UAI1C;UAIA;UAQA;UAWA;UAWA;UAIA;UAYA;UAQA;UAQA;UAQA;UAQA"}
1
+ {"version":3,"file":"index-CVbiOmI3.d.mts","names":[],"sources":["../src/server/Server.ts"],"mappings":";;KAIY;WAEG;WACA;WACA;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;WACA,OAAO;;WAGP;WACA;;KAGH;WAEG;WACA,iBAAiB;;WAGjB;WACA;;KAGH;WACD;aACE;aACA;;;KAID;WAEG;WACA;;WAGA;WACA;;KAQH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;;WAGA;WACA;;KAWH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;cAiFF;mBACM;WAER;;aA2BkB,SAAA,gBAAM,qBAAqB;;;aAI9B,SAAA,mBAAU;;;aASzB,SAAA,mBACN;;;aAUM,SAAA,mBACN;;;aASyB,cAAA;;;aAKnB,SAAA,gBAAO,gBACA,qBAEb;;;aAQsB,SAAA,mBAAU;;;aAQX,SAAA,mBAAU;;;aAQG,SAAA,mBAAU;;;aAQvB,SAAA,mBAAU;;;aAQT,SAAA,mBAAU;;EAtFvB,eAAG,MAAM,6BAA6B;UAI1C;UAIA;UAQA;UAWA;UAWA;UAIA;UAYA;UAQA;UAQA;UAQA;UAQA"}
@@ -1,4 +1,4 @@
1
- import { c as Manager, m as ClientState, p as GameEvent } from "./index-xmcja9Bl.cjs";
1
+ import { c as Manager, m as GameEvent, p as ClientState } from "./index-DlRknHKq.cjs";
2
2
  //#region src/server/Server.d.ts
3
3
  type CreateGameResult = {
4
4
  readonly success: true;
@@ -122,4 +122,4 @@ declare class Server {
122
122
  }
123
123
  //#endregion
124
124
  export { GetJoinableGamesResult as a, PlayCardResult as c, Server as d, StartGameResult as f, GetEventsAndClearAcknowledgedResult as i, ReportNoPlayableCardsResult as l, DrawCardResult as n, JoinGameResult as o, GetClientStateAndClearEventsResult as r, LeaveGameResult as s, CreateGameResult as t, SendChatResult as u };
125
- //# sourceMappingURL=index-BvZyhFek.d.cts.map
125
+ //# sourceMappingURL=index-DOimW07r.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BvZyhFek.d.cts","names":[],"sources":["../src/server/Server.ts"],"mappings":";;KAIY;WAEG;WACA;WACA;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;WACA,OAAO;;WAGP;WACA;;KAGH;WAEG;WACA,iBAAiB;;WAGjB;WACA;;KAGH;WACD;aACE;aACA;;;KAID;WAEG;WACA;;WAGA;WACA;;KAQH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;;WAGA;WACA;;KAWH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;cAiFF;mBACM;WAER;;aA2BkB,SAAA,gBAAM,qBAAqB;;;aAI9B,SAAA,mBAAU;;;aASzB,SAAA,mBACN;;;aAUM,SAAA,mBACN;;;aASyB,cAAA;;;aAKnB,SAAA,gBAAO,gBACA,qBAEb;;;aAQsB,SAAA,mBAAU;;;aAQX,SAAA,mBAAU;;;aAQG,SAAA,mBAAU;;;aAQvB,SAAA,mBAAU;;;aAQT,SAAA,mBAAU;;EAtFvB,eAAG,MAAM,6BAA6B;UAI1C;UAIA;UAQA;UAWA;UAWA;UAIA;UAYA;UAQA;UAQA;UAQA;UAQA"}
1
+ {"version":3,"file":"index-DOimW07r.d.cts","names":[],"sources":["../src/server/Server.ts"],"mappings":";;KAIY;WAEG;WACA;WACA;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;WACA,OAAO;;WAGP;WACA;;KAGH;WAEG;WACA,iBAAiB;;WAGjB;WACA;;KAGH;WACD;aACE;aACA;;;KAID;WAEG;WACA;;WAGA;WACA;;KAQH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KAUH;WAEG;;WAGA;WACA;;KAWH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;cAiFF;mBACM;WAER;;aA2BkB,SAAA,gBAAM,qBAAqB;;;aAI9B,SAAA,mBAAU;;;aASzB,SAAA,mBACN;;;aAUM,SAAA,mBACN;;;aASyB,cAAA;;;aAKnB,SAAA,gBAAO,gBACA,qBAEb;;;aAQsB,SAAA,mBAAU;;;aAQX,SAAA,mBAAU;;;aAQG,SAAA,mBAAU;;;aAQvB,SAAA,mBAAU;;;aAQT,SAAA,mBAAU;;EAtFvB,eAAG,MAAM,6BAA6B;UAI1C;UAIA;UAQA;UAWA;UAWA;UAIA;UAYA;UAQA;UAQA;UAQA;UAQA"}
@@ -1,39 +1,19 @@
1
1
  import { ManagerBase } from "@hellacardgames/lib";
2
- //#region src/manager/types/Card.d.ts
2
+ //#region src/game/types/Card.d.ts
3
3
  type Card = {
4
4
  readonly id: string;
5
5
  readonly rank: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
6
6
  readonly suite: "clubs" | "diamonds" | "hearts" | "spades";
7
7
  };
8
8
  //#endregion
9
- //#region src/manager/types/ChatMessage.d.ts
9
+ //#region src/game/types/ChatMessage.d.ts
10
10
  type ChatMessage = {
11
11
  readonly id: string;
12
12
  readonly username: string;
13
13
  readonly text: string;
14
14
  };
15
15
  //#endregion
16
- //#region src/manager/types/ClientState.d.ts
17
- type ClientState = {
18
- readonly status: "open" | "started" | "completed" | "forfeited";
19
- readonly gameId: string;
20
- readonly playerId: string;
21
- readonly username: string;
22
- readonly players: readonly Player$1[];
23
- readonly expiresAt: number;
24
- readonly chatMessages: readonly ChatMessage[];
25
- readonly hand: readonly Card[];
26
- readonly canPlayAt: number | null;
27
- };
28
- type Player$1 = {
29
- readonly username: string;
30
- readonly handSize: number;
31
- readonly drawPileSize: number;
32
- readonly sidePileSize: number;
33
- readonly centerPileTopCard: Card | null;
34
- };
35
- //#endregion
36
- //#region src/manager/types/GameEvent.d.ts
16
+ //#region src/game/types/GameEvent.d.ts
37
17
  type GameEvent = {
38
18
  readonly type: "canPlayAtUpdated";
39
19
  readonly id: string;
@@ -108,8 +88,8 @@ type GameEvent = {
108
88
  readonly numCards: number;
109
89
  };
110
90
  //#endregion
111
- //#region src/manager/types/Player.d.ts
112
- type Player = {
91
+ //#region src/game/types/Player.d.ts
92
+ type Player$1 = {
113
93
  readonly id: string;
114
94
  readonly userId: string;
115
95
  readonly username: string;
@@ -121,23 +101,23 @@ type Player = {
121
101
  hasNoPlayableCards: boolean;
122
102
  };
123
103
  //#endregion
124
- //#region src/manager/types/Game.d.ts
125
- type Game = OpenGame | StartedGame | CompletedGame | ForfeitedGame;
126
- type OpenGame = {
127
- readonly status: "open";
104
+ //#region src/game/types/Game.d.ts
105
+ type Game = CreatedGame | StartedGame | CompletedGame | ForfeitedGame;
106
+ type CreatedGame = {
107
+ readonly status: "created";
128
108
  readonly id: string;
129
109
  readonly createdAt: number;
130
110
  readonly expiresAt: number;
131
- readonly chatMessages: ChatMessage[];
132
- readonly players: Player[];
111
+ readonly chatMessages: readonly ChatMessage[];
112
+ readonly players: Player$1[];
133
113
  };
134
114
  type StartedGame = {
135
115
  readonly status: "started";
136
116
  readonly id: string;
137
117
  readonly createdAt: number;
138
118
  expiresAt: number;
139
- readonly chatMessages: ChatMessage[];
140
- readonly players: Player[];
119
+ readonly chatMessages: readonly ChatMessage[];
120
+ readonly players: Player$1[];
141
121
  canPlayAt: number;
142
122
  };
143
123
  type CompletedGame = {
@@ -145,16 +125,36 @@ type CompletedGame = {
145
125
  readonly id: string;
146
126
  readonly createdAt: number;
147
127
  readonly expiresAt: number;
148
- readonly chatMessages: ChatMessage[];
149
- readonly players: Player[];
128
+ readonly chatMessages: readonly ChatMessage[];
129
+ readonly players: Player$1[];
150
130
  };
151
131
  type ForfeitedGame = {
152
132
  readonly status: "forfeited";
153
133
  readonly id: string;
154
134
  readonly createdAt: number;
155
135
  readonly expiresAt: number;
156
- readonly chatMessages: ChatMessage[];
157
- readonly players: Player[];
136
+ readonly chatMessages: readonly ChatMessage[];
137
+ readonly players: Player$1[];
138
+ };
139
+ //#endregion
140
+ //#region src/game/types/ClientState.d.ts
141
+ type ClientState = {
142
+ readonly status: "created" | "started" | "completed" | "forfeited";
143
+ readonly gameId: string;
144
+ readonly playerId: string;
145
+ readonly username: string;
146
+ readonly players: readonly Player[];
147
+ readonly expiresAt: number;
148
+ readonly chatMessages: readonly ChatMessage[];
149
+ readonly hand: readonly Card[];
150
+ readonly canPlayAt: number | null;
151
+ };
152
+ type Player = {
153
+ readonly username: string;
154
+ readonly handSize: number;
155
+ readonly drawPileSize: number;
156
+ readonly sidePileSize: number;
157
+ readonly centerPileTopCard: Card | null;
158
158
  };
159
159
  //#endregion
160
160
  //#region src/manager/Manager.d.ts
@@ -243,5 +243,5 @@ declare class Manager extends ManagerBase<Game> {
243
243
  startGame(gameId: string, playerId: string): StartGameResult;
244
244
  }
245
245
  //#endregion
246
- export { GetJoinableGamesResult as a, Manager as c, SendChatResult as d, StartGameResult as f, Card as g, ChatMessage as h, GetEventsAndClearAcknowledgedResult as i, PlayCardResult as l, ClientState as m, DrawCardResult as n, JoinGameResult as o, GameEvent as p, GetClientStateAndClearEventsResult as r, LeaveGameResult as s, CreateGameResult as t, ReportNoPlayableCardsResult as u };
247
- //# sourceMappingURL=index-xmcja9Bl.d.cts.map
246
+ export { GetJoinableGamesResult as a, Manager as c, SendChatResult as d, StartGameResult as f, Card as g, ChatMessage as h, GetEventsAndClearAcknowledgedResult as i, PlayCardResult as l, GameEvent as m, DrawCardResult as n, JoinGameResult as o, ClientState as p, GetClientStateAndClearEventsResult as r, LeaveGameResult as s, CreateGameResult as t, ReportNoPlayableCardsResult as u };
247
+ //# sourceMappingURL=index-DlRknHKq.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DlRknHKq.d.cts","names":[],"sources":["../src/game/types/Card.ts","../src/game/types/ChatMessage.ts","../src/game/types/GameEvent.ts","../src/game/types/Player.ts","../src/game/types/Game.ts","../src/game/types/ClientState.ts","../src/manager/Manager.ts"],"mappings":";;KAAY;WACD;WACA;WACA;;;;KCHC;WACD;WACA;WACA;;;;KCAC;WAEG;WACA;WACA;;WAGA;WACA;WACA;WACA,MAAM;;WAGN;WACA;WACA;WACA,MAAM;WACN;;WAGA;WACA;WACA,SAAS;;WAGT;WACA;WACA,MAAM;;WAGN;WACA;WACA;;WAGA;WACA;;WAGA;WACA;;WAGA;WACA;;WAGA;WACA;WACA,gBAAgB;;WAGhB;WACA;WACA;WACA,MAAM;;WAGN;WACA;WACA;WACA;;WAGA;WACA;WACA;;WAGA;WACA;WACA;WACA;;WAGA;WACA;WACA;;WAGA;WACA;WACA;;WAGA;WACA;WACA;WACA;;;;KCxFH;WACD;WACA;WACA;WACA,QAAQ;WACR,MAAM;WACN,UAAU;WACV,UAAU;WACV,YAAY;EACrB;;;;KCTU,OAAO,cAAc,cAAc,gBAAgB;KAEnD;WACD;WACA;WACA;WACA;WACA,uBAAuB;WACvB,SAAS;;KAGR;WACD;WACA;WACA;EACT;WACS,uBAAuB;WACvB,SAAS;EAClB;;KAGU;WACD;WACA;WACA;WACA;WACA,uBAAuB;WACvB,SAAS;;KAGR;WACD;WACA;WACA;WACA;WACA,uBAAuB;WACvB,SAAS;;;;KCpCR;WACD;WACA;WACA;WACA;WACA,kBAAkB;WAClB;WACA,uBAAuB;WACvB,eAAe;WACf;;KAGN;WACM;WACA;WACA;WACA;WACA,mBAAmB;;;;KCJlB;WAEG;WACA;WACA;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KASH;WAEG;WACA,OAAO;;WAGP;WACA;;KAGH;WAEG;WACA,iBAAiB;;WAGjB;WACA;;KAGH;WACD;aACE;aACA;;;KAID;WAEG;WACA;;WAGA;WACA;;KAOH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KASH;WAEG;;WAGA;WACA;;KAUH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;cAQF,gBAAgB,YAAY;EACvC,WAAW,gBAAgB,mBAAmB;EAS9C,SAAS,gBAAgB,mBAAmB;EAgB5C,6BACE,gBACA,mBACC;EAaH,8BACE,gBACA,kBACA,4BACC;EAaH,oBAAoB;EAWpB,SAAS,gBAAgB,gBAAgB,mBAAmB;EAgB5D,UAAU,gBAAgB,mBAAmB;EAiB7C,SACE,gBACA,kBACA,gBACA,gCACC;EAgBH,sBACE,gBACA,mBACC;EAgBH,SAAS,gBAAgB,kBAAkB,eAAe;EAa1D,UAAU,gBAAgB,mBAAmB"}
@@ -1,39 +1,19 @@
1
1
  import { ManagerBase } from "@hellacardgames/lib";
2
- //#region src/manager/types/Card.d.ts
2
+ //#region src/game/types/Card.d.ts
3
3
  type Card = {
4
4
  readonly id: string;
5
5
  readonly rank: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
6
6
  readonly suite: "clubs" | "diamonds" | "hearts" | "spades";
7
7
  };
8
8
  //#endregion
9
- //#region src/manager/types/ChatMessage.d.ts
9
+ //#region src/game/types/ChatMessage.d.ts
10
10
  type ChatMessage = {
11
11
  readonly id: string;
12
12
  readonly username: string;
13
13
  readonly text: string;
14
14
  };
15
15
  //#endregion
16
- //#region src/manager/types/ClientState.d.ts
17
- type ClientState = {
18
- readonly status: "open" | "started" | "completed" | "forfeited";
19
- readonly gameId: string;
20
- readonly playerId: string;
21
- readonly username: string;
22
- readonly players: readonly Player$1[];
23
- readonly expiresAt: number;
24
- readonly chatMessages: readonly ChatMessage[];
25
- readonly hand: readonly Card[];
26
- readonly canPlayAt: number | null;
27
- };
28
- type Player$1 = {
29
- readonly username: string;
30
- readonly handSize: number;
31
- readonly drawPileSize: number;
32
- readonly sidePileSize: number;
33
- readonly centerPileTopCard: Card | null;
34
- };
35
- //#endregion
36
- //#region src/manager/types/GameEvent.d.ts
16
+ //#region src/game/types/GameEvent.d.ts
37
17
  type GameEvent = {
38
18
  readonly type: "canPlayAtUpdated";
39
19
  readonly id: string;
@@ -108,8 +88,8 @@ type GameEvent = {
108
88
  readonly numCards: number;
109
89
  };
110
90
  //#endregion
111
- //#region src/manager/types/Player.d.ts
112
- type Player = {
91
+ //#region src/game/types/Player.d.ts
92
+ type Player$1 = {
113
93
  readonly id: string;
114
94
  readonly userId: string;
115
95
  readonly username: string;
@@ -121,23 +101,23 @@ type Player = {
121
101
  hasNoPlayableCards: boolean;
122
102
  };
123
103
  //#endregion
124
- //#region src/manager/types/Game.d.ts
125
- type Game = OpenGame | StartedGame | CompletedGame | ForfeitedGame;
126
- type OpenGame = {
127
- readonly status: "open";
104
+ //#region src/game/types/Game.d.ts
105
+ type Game = CreatedGame | StartedGame | CompletedGame | ForfeitedGame;
106
+ type CreatedGame = {
107
+ readonly status: "created";
128
108
  readonly id: string;
129
109
  readonly createdAt: number;
130
110
  readonly expiresAt: number;
131
- readonly chatMessages: ChatMessage[];
132
- readonly players: Player[];
111
+ readonly chatMessages: readonly ChatMessage[];
112
+ readonly players: Player$1[];
133
113
  };
134
114
  type StartedGame = {
135
115
  readonly status: "started";
136
116
  readonly id: string;
137
117
  readonly createdAt: number;
138
118
  expiresAt: number;
139
- readonly chatMessages: ChatMessage[];
140
- readonly players: Player[];
119
+ readonly chatMessages: readonly ChatMessage[];
120
+ readonly players: Player$1[];
141
121
  canPlayAt: number;
142
122
  };
143
123
  type CompletedGame = {
@@ -145,16 +125,36 @@ type CompletedGame = {
145
125
  readonly id: string;
146
126
  readonly createdAt: number;
147
127
  readonly expiresAt: number;
148
- readonly chatMessages: ChatMessage[];
149
- readonly players: Player[];
128
+ readonly chatMessages: readonly ChatMessage[];
129
+ readonly players: Player$1[];
150
130
  };
151
131
  type ForfeitedGame = {
152
132
  readonly status: "forfeited";
153
133
  readonly id: string;
154
134
  readonly createdAt: number;
155
135
  readonly expiresAt: number;
156
- readonly chatMessages: ChatMessage[];
157
- readonly players: Player[];
136
+ readonly chatMessages: readonly ChatMessage[];
137
+ readonly players: Player$1[];
138
+ };
139
+ //#endregion
140
+ //#region src/game/types/ClientState.d.ts
141
+ type ClientState = {
142
+ readonly status: "created" | "started" | "completed" | "forfeited";
143
+ readonly gameId: string;
144
+ readonly playerId: string;
145
+ readonly username: string;
146
+ readonly players: readonly Player[];
147
+ readonly expiresAt: number;
148
+ readonly chatMessages: readonly ChatMessage[];
149
+ readonly hand: readonly Card[];
150
+ readonly canPlayAt: number | null;
151
+ };
152
+ type Player = {
153
+ readonly username: string;
154
+ readonly handSize: number;
155
+ readonly drawPileSize: number;
156
+ readonly sidePileSize: number;
157
+ readonly centerPileTopCard: Card | null;
158
158
  };
159
159
  //#endregion
160
160
  //#region src/manager/Manager.d.ts
@@ -243,5 +243,5 @@ declare class Manager extends ManagerBase<Game> {
243
243
  startGame(gameId: string, playerId: string): StartGameResult;
244
244
  }
245
245
  //#endregion
246
- export { GetJoinableGamesResult as a, Manager as c, SendChatResult as d, StartGameResult as f, Card as g, ChatMessage as h, GetEventsAndClearAcknowledgedResult as i, PlayCardResult as l, ClientState as m, DrawCardResult as n, JoinGameResult as o, GameEvent as p, GetClientStateAndClearEventsResult as r, LeaveGameResult as s, CreateGameResult as t, ReportNoPlayableCardsResult as u };
247
- //# sourceMappingURL=index-xmcja9Bl.d.mts.map
246
+ export { GetJoinableGamesResult as a, Manager as c, SendChatResult as d, StartGameResult as f, Card as g, ChatMessage as h, GetEventsAndClearAcknowledgedResult as i, PlayCardResult as l, GameEvent as m, DrawCardResult as n, JoinGameResult as o, ClientState as p, GetClientStateAndClearEventsResult as r, LeaveGameResult as s, CreateGameResult as t, ReportNoPlayableCardsResult as u };
247
+ //# sourceMappingURL=index-DlRknHKq.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DlRknHKq.d.mts","names":[],"sources":["../src/game/types/Card.ts","../src/game/types/ChatMessage.ts","../src/game/types/GameEvent.ts","../src/game/types/Player.ts","../src/game/types/Game.ts","../src/game/types/ClientState.ts","../src/manager/Manager.ts"],"mappings":";;KAAY;WACD;WACA;WACA;;;;KCHC;WACD;WACA;WACA;;;;KCAC;WAEG;WACA;WACA;;WAGA;WACA;WACA;WACA,MAAM;;WAGN;WACA;WACA;WACA,MAAM;WACN;;WAGA;WACA;WACA,SAAS;;WAGT;WACA;WACA,MAAM;;WAGN;WACA;WACA;;WAGA;WACA;;WAGA;WACA;;WAGA;WACA;;WAGA;WACA;WACA,gBAAgB;;WAGhB;WACA;WACA;WACA,MAAM;;WAGN;WACA;WACA;WACA;;WAGA;WACA;WACA;;WAGA;WACA;WACA;WACA;;WAGA;WACA;WACA;;WAGA;WACA;WACA;;WAGA;WACA;WACA;WACA;;;;KCxFH;WACD;WACA;WACA;WACA,QAAQ;WACR,MAAM;WACN,UAAU;WACV,UAAU;WACV,YAAY;EACrB;;;;KCTU,OAAO,cAAc,cAAc,gBAAgB;KAEnD;WACD;WACA;WACA;WACA;WACA,uBAAuB;WACvB,SAAS;;KAGR;WACD;WACA;WACA;EACT;WACS,uBAAuB;WACvB,SAAS;EAClB;;KAGU;WACD;WACA;WACA;WACA;WACA,uBAAuB;WACvB,SAAS;;KAGR;WACD;WACA;WACA;WACA;WACA,uBAAuB;WACvB,SAAS;;;;KCpCR;WACD;WACA;WACA;WACA;WACA,kBAAkB;WAClB;WACA,uBAAuB;WACvB,eAAe;WACf;;KAGN;WACM;WACA;WACA;WACA;WACA,mBAAmB;;;;KCJlB;WAEG;WACA;WACA;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KASH;WAEG;WACA,OAAO;;WAGP;WACA;;KAGH;WAEG;WACA,iBAAiB;;WAGjB;WACA;;KAGH;WACD;aACE;aACA;;;KAID;WAEG;WACA;;WAGA;WACA;;KAOH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;KASH;WAEG;;WAGA;WACA;;KAUH;WAEG;;WAGA;WACA;;KAGH;WAEG;;WAGA;WACA;;cAQF,gBAAgB,YAAY;EACvC,WAAW,gBAAgB,mBAAmB;EAS9C,SAAS,gBAAgB,mBAAmB;EAgB5C,6BACE,gBACA,mBACC;EAaH,8BACE,gBACA,kBACA,4BACC;EAaH,oBAAoB;EAWpB,SAAS,gBAAgB,gBAAgB,mBAAmB;EAgB5D,UAAU,gBAAgB,mBAAmB;EAiB7C,SACE,gBACA,kBACA,gBACA,gCACC;EAgBH,sBACE,gBACA,mBACC;EAgBH,SAAS,gBAAgB,kBAAkB,eAAe;EAa1D,UAAU,gBAAgB,mBAAmB"}
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_manager = require("../manager-BxLMVu_o.cjs");
2
+ const require_manager = require("../manager-0r8lvLRR.cjs");
3
3
  exports.Manager = require_manager.Manager;
@@ -1,2 +1,2 @@
1
- import { a as GetJoinableGamesResult, c as Manager, d as SendChatResult, f as StartGameResult, g as Card, h as ChatMessage, i as GetEventsAndClearAcknowledgedResult, l as PlayCardResult, m as ClientState, n as DrawCardResult, o as JoinGameResult, p as GameEvent, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as ReportNoPlayableCardsResult } from "../index-xmcja9Bl.cjs";
1
+ import { a as GetJoinableGamesResult, c as Manager, d as SendChatResult, f as StartGameResult, g as Card, h as ChatMessage, i as GetEventsAndClearAcknowledgedResult, l as PlayCardResult, m as GameEvent, n as DrawCardResult, o as JoinGameResult, p as ClientState, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as ReportNoPlayableCardsResult } from "../index-DlRknHKq.cjs";
2
2
  export { type Card, type ChatMessage, type ClientState, type CreateGameResult, type DrawCardResult, type GameEvent, type GetClientStateAndClearEventsResult, type GetEventsAndClearAcknowledgedResult, type GetJoinableGamesResult, type JoinGameResult, type LeaveGameResult, Manager, type PlayCardResult, type ReportNoPlayableCardsResult, type SendChatResult, type StartGameResult };
@@ -1,2 +1,2 @@
1
- import { a as GetJoinableGamesResult, c as Manager, d as SendChatResult, f as StartGameResult, g as Card, h as ChatMessage, i as GetEventsAndClearAcknowledgedResult, l as PlayCardResult, m as ClientState, n as DrawCardResult, o as JoinGameResult, p as GameEvent, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as ReportNoPlayableCardsResult } from "../index-xmcja9Bl.mjs";
1
+ import { a as GetJoinableGamesResult, c as Manager, d as SendChatResult, f as StartGameResult, g as Card, h as ChatMessage, i as GetEventsAndClearAcknowledgedResult, l as PlayCardResult, m as GameEvent, n as DrawCardResult, o as JoinGameResult, p as ClientState, r as GetClientStateAndClearEventsResult, s as LeaveGameResult, t as CreateGameResult, u as ReportNoPlayableCardsResult } from "../index-DlRknHKq.mjs";
2
2
  export { type Card, type ChatMessage, type ClientState, type CreateGameResult, type DrawCardResult, type GameEvent, type GetClientStateAndClearEventsResult, type GetEventsAndClearAcknowledgedResult, type GetJoinableGamesResult, type JoinGameResult, type LeaveGameResult, Manager, type PlayCardResult, type ReportNoPlayableCardsResult, type SendChatResult, type StartGameResult };
@@ -1,2 +1,2 @@
1
- import { t as Manager } from "../manager-8x5AFyzq.mjs";
1
+ import { t as Manager } from "../manager-B32oi0dB.mjs";
2
2
  export { Manager };