trucoshi 2.5.4 → 4.0.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.
- package/dist/types.d.ts +27 -104
- package/dist/types.js +1 -55
- package/package.json +7 -2
- package/prisma/client/index.d.ts +73 -0
- package/prisma/client/index.js +3 -1
- package/prisma/client/schema.prisma +2 -0
- package/prisma/client/index-browser.d.ts +0 -184
- package/prisma/client/index-browser.js +0 -203
- package/prisma/client/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/prisma/client/package.json +0 -6
- package/prisma/client/runtime/index-browser.d.ts +0 -322
- package/prisma/client/runtime/index-browser.js +0 -2410
- package/prisma/client/runtime/index.d.ts +0 -2716
- package/prisma/client/runtime/library.d.ts +0 -1
- package/prisma/client/runtime/library.js +0 -209
- package/prisma/migrations/20240109031536_init/migration.sql +0 -82
- package/prisma/migrations/20240109033400_truco_winner_optional/migration.sql +0 -2
- package/prisma/migrations/20240110222804_player_session/migration.sql +0 -3
- package/prisma/migrations/20240110222816_remove_default/migration.sql +0 -2
- package/prisma/migrations/20240111032135_match_session_id/migration.sql +0 -2
- package/prisma/migrations/20240111032250_remove_match_session_id/migration.sql +0 -8
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/schema.prisma +0 -89
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
export * from "./events";
|
|
2
|
+
export { CARDS, CARDS_HUMAN_READABLE, BURNT_CARD } from "./lib/constants";
|
|
1
3
|
import { User } from "lightning-accounts";
|
|
2
|
-
import { CARDS
|
|
3
|
-
import { SocketError } from "./server/classes/SocketError";
|
|
4
|
+
import { CARDS } from "./lib";
|
|
4
5
|
import { Match, MatchPlayer, MatchHand, UserStats } from "@trucoshi/prisma";
|
|
5
|
-
|
|
6
|
+
import { IHand } from "./truco";
|
|
7
|
+
export declare enum EMatchState {
|
|
8
|
+
UNREADY = "UNREADY",
|
|
9
|
+
READY = "READY",
|
|
10
|
+
STARTED = "STARTED",
|
|
11
|
+
FINISHED = "FINISHED"
|
|
12
|
+
}
|
|
6
13
|
export interface IMatchDetails extends Match {
|
|
7
14
|
players: Array<Pick<MatchPlayer, "id" | "accountId" | "teamIdx" | "name" | "idx">>;
|
|
8
15
|
hands: Array<MatchHand>;
|
|
@@ -12,12 +19,6 @@ export interface IAccountDetails {
|
|
|
12
19
|
account: User | null;
|
|
13
20
|
matches: Array<Match>;
|
|
14
21
|
}
|
|
15
|
-
export declare enum EMatchState {
|
|
16
|
-
UNREADY = "UNREADY",
|
|
17
|
-
READY = "READY",
|
|
18
|
-
STARTED = "STARTED",
|
|
19
|
-
FINISHED = "FINISHED"
|
|
20
|
-
}
|
|
21
22
|
export interface IUserData {
|
|
22
23
|
key: string;
|
|
23
24
|
name: string;
|
|
@@ -44,11 +45,13 @@ export interface IMatchPreviousHand {
|
|
|
44
45
|
matchSessionId: string;
|
|
45
46
|
}
|
|
46
47
|
export interface IPublicMatch {
|
|
48
|
+
id?: number;
|
|
47
49
|
options: ILobbyOptions;
|
|
48
50
|
busy: boolean;
|
|
49
51
|
state: EMatchState;
|
|
50
52
|
winner: ITeam | null;
|
|
51
53
|
matchSessionId: string;
|
|
54
|
+
ownerKey: string;
|
|
52
55
|
teams: Array<IPublicTeam>;
|
|
53
56
|
players: Array<IPublicPlayer>;
|
|
54
57
|
me: IPublicPlayer | null;
|
|
@@ -129,94 +132,6 @@ export type ECommand = ESayCommand | EEnvidoCommand | EAnswerCommand | EEnvidoAn
|
|
|
129
132
|
export type IHandCommands = {
|
|
130
133
|
[key in ECommand]: (hand: IHand, player: IPlayer) => void;
|
|
131
134
|
};
|
|
132
|
-
export type IEventCallback<T = {}> = (args: {
|
|
133
|
-
success: boolean;
|
|
134
|
-
error?: SocketError;
|
|
135
|
-
} & T) => void;
|
|
136
|
-
export declare enum EServerEvent {
|
|
137
|
-
PONG = "PONG",
|
|
138
|
-
SET_SESSION = "SET_SESSION",
|
|
139
|
-
PREVIOUS_HAND = "PREVIOUS_HAND",
|
|
140
|
-
UPDATE_MATCH = "UPDATE_MATCH",
|
|
141
|
-
MATCH_DELETED = "MATCH_DELETED",
|
|
142
|
-
WAITING_PLAY = "WAITING_PLAY",
|
|
143
|
-
KICK_PLAYER = "PLAYER_KICKED",
|
|
144
|
-
UPDATE_ACTIVE_MATCHES = "UPDATE_ACTIVE_MATCHES",
|
|
145
|
-
PLAYER_USED_CARD = "PLAYER_USED_CARD",
|
|
146
|
-
PLAYER_SAID_COMMAND = "PLAYER_SAID_COMMAND",
|
|
147
|
-
WAITING_POSSIBLE_SAY = "WAITING_POSSIBLE_SAY",
|
|
148
|
-
UPDATE_CHAT = "UPDAET_CHAT"
|
|
149
|
-
}
|
|
150
|
-
export interface ServerToClientEvents {
|
|
151
|
-
[EServerEvent.PONG]: (serverTime: number, clientTime: number) => void;
|
|
152
|
-
[EServerEvent.PREVIOUS_HAND]: (value: IMatchPreviousHand, callback: () => void) => void;
|
|
153
|
-
[EServerEvent.UPDATE_CHAT]: (room: IPublicChatRoom, message?: IChatMessage) => void;
|
|
154
|
-
[EServerEvent.UPDATE_ACTIVE_MATCHES]: (activeMatches: IPublicMatchInfo[]) => void;
|
|
155
|
-
[EServerEvent.UPDATE_MATCH]: (match: IPublicMatch, callback?: () => void) => void;
|
|
156
|
-
[EServerEvent.PLAYER_USED_CARD]: (match: IPublicMatch, card: IPlayedCard) => void;
|
|
157
|
-
[EServerEvent.PLAYER_SAID_COMMAND]: (match: IPublicMatch, command: ISaidCommand) => void;
|
|
158
|
-
[EServerEvent.KICK_PLAYER]: (match: IPublicMatch, session: string, reason?: string) => void;
|
|
159
|
-
[EServerEvent.MATCH_DELETED]: (matchSessionId: string) => void;
|
|
160
|
-
[EServerEvent.SET_SESSION]: (userData: IUserData, serverVersion: string, activeMatches: Array<IPublicMatchInfo>) => void;
|
|
161
|
-
[EServerEvent.WAITING_POSSIBLE_SAY]: (match: IPublicMatch, callback: (data: IWaitingSayData) => void) => void;
|
|
162
|
-
[EServerEvent.WAITING_PLAY]: (match: IPublicMatch, callback: (data: IWaitingPlayData) => void) => void;
|
|
163
|
-
}
|
|
164
|
-
export declare enum EClientEvent {
|
|
165
|
-
LOGIN = "LOGIN",
|
|
166
|
-
LOGOUT = "LOGOUT",
|
|
167
|
-
LEAVE_MATCH = "LEAVE_MATCH",
|
|
168
|
-
CREATE_MATCH = "CREATE_MATCH",
|
|
169
|
-
FETCH_ACCOUNT_DETAILS = "FETCH_ACCOUNT_DETAILS",
|
|
170
|
-
FETCH_MATCH_DETAILS = "FETCH_MATCH_DETAILS",
|
|
171
|
-
SET_MATCH_OPTIONS = "SET_MATCH_OPTIONS",
|
|
172
|
-
LIST_MATCHES = "LIST_MATCHES",
|
|
173
|
-
JOIN_MATCH = "JOIN_MATCH",
|
|
174
|
-
START_MATCH = "START_MATCH",
|
|
175
|
-
SET_PLAYER_READY = "SET_PLAYER_READY",
|
|
176
|
-
FETCH_MATCH = "FETCH_MATCH",
|
|
177
|
-
CHAT = "CHAT",
|
|
178
|
-
PING = "PING",
|
|
179
|
-
SAY = "SAY"
|
|
180
|
-
}
|
|
181
|
-
export interface ClientToServerEvents {
|
|
182
|
-
[EClientEvent.LOGOUT]: (callback: IEventCallback<{}>) => void;
|
|
183
|
-
[EClientEvent.PING]: (clientTime: number) => void;
|
|
184
|
-
[EClientEvent.CHAT]: (matchId: string, msg: string, callback: () => void) => void;
|
|
185
|
-
[EClientEvent.LEAVE_MATCH]: (matchId: string, callback?: IEventCallback<{}>) => void;
|
|
186
|
-
[EClientEvent.CREATE_MATCH]: (callback: IEventCallback<{
|
|
187
|
-
match?: IPublicMatch;
|
|
188
|
-
activeMatches?: IPublicMatchInfo[];
|
|
189
|
-
}>) => void;
|
|
190
|
-
[EClientEvent.SET_MATCH_OPTIONS]: (identityJwt: string | null, matchSessionId: string, options: Partial<ILobbyOptions>, callback: IEventCallback<{
|
|
191
|
-
match?: IPublicMatch;
|
|
192
|
-
activeMatches?: IPublicMatchInfo[];
|
|
193
|
-
}>) => void;
|
|
194
|
-
[EClientEvent.SET_PLAYER_READY]: (matchSessionId: string, ready: boolean, callback: IEventCallback<{
|
|
195
|
-
match?: IPublicMatch;
|
|
196
|
-
}>) => void;
|
|
197
|
-
[EClientEvent.JOIN_MATCH]: (matchSessionId: string, teamIdx: 0 | 1 | undefined, callback: IEventCallback<{
|
|
198
|
-
match?: IPublicMatch;
|
|
199
|
-
activeMatches?: IPublicMatchInfo[];
|
|
200
|
-
}>) => void;
|
|
201
|
-
[EClientEvent.START_MATCH]: (identityJwt: string | null, matchSessionId: string, callback: IEventCallback<{
|
|
202
|
-
matchSessionId?: string;
|
|
203
|
-
}>) => void;
|
|
204
|
-
[EClientEvent.FETCH_MATCH]: (matchSessionId: string, callback: IEventCallback<{
|
|
205
|
-
match: IPublicMatch | null;
|
|
206
|
-
}>) => void;
|
|
207
|
-
[EClientEvent.FETCH_MATCH_DETAILS]: (matchId: number, callback: IEventCallback<{
|
|
208
|
-
match: IMatchDetails | null;
|
|
209
|
-
}>) => void;
|
|
210
|
-
[EClientEvent.FETCH_ACCOUNT_DETAILS]: (accountId: number, callback: IEventCallback<IAccountDetails>) => void;
|
|
211
|
-
[EClientEvent.LIST_MATCHES]: (filters: {
|
|
212
|
-
state?: Array<EMatchState>;
|
|
213
|
-
}, callback: IEventCallback<{
|
|
214
|
-
matches: Array<IPublicMatchInfo>;
|
|
215
|
-
}>) => void;
|
|
216
|
-
[EClientEvent.LOGIN]: (user: User, identityToken: string, callback: IEventCallback<{
|
|
217
|
-
activeMatches?: IPublicMatchInfo[];
|
|
218
|
-
}>) => void;
|
|
219
|
-
}
|
|
220
135
|
export type IWaitingPlayData = {
|
|
221
136
|
cardIdx: number;
|
|
222
137
|
card: ICard;
|
|
@@ -226,11 +141,6 @@ export type IWaitingSayData = {
|
|
|
226
141
|
command: ECommand | number;
|
|
227
142
|
};
|
|
228
143
|
export type IWaitingSayCallback = (data: IWaitingSayData) => void | null;
|
|
229
|
-
export declare class TMap<K, V> extends Map<K, V> {
|
|
230
|
-
find(finder: (value: V) => boolean): V | void;
|
|
231
|
-
findAll(finder: (value: V) => boolean): V[];
|
|
232
|
-
getOrThrow(key?: K): NonNullable<V>;
|
|
233
|
-
}
|
|
234
144
|
export declare enum GAME_ERROR {
|
|
235
145
|
UNEXPECTED_ERROR = "UNEXPECTED_ERROR",
|
|
236
146
|
FORBIDDEN = "FORBIDDEN",
|
|
@@ -269,11 +179,12 @@ export type IEnvidoCalculator = {
|
|
|
269
179
|
[key in EEnvidoCommand]: (args?: IEnvidoCalculatorArgs) => IEnvidoCalculatorResult;
|
|
270
180
|
};
|
|
271
181
|
export interface IDeck {
|
|
182
|
+
random: IRandom;
|
|
272
183
|
cards: Array<ICard>;
|
|
273
184
|
usedCards: Array<ICard>;
|
|
274
185
|
takeCard(): ICard;
|
|
275
186
|
takeThree(): [ICard, ICard, ICard];
|
|
276
|
-
shuffle(): IDeck;
|
|
187
|
+
shuffle(dealerIdx: number): IDeck;
|
|
277
188
|
}
|
|
278
189
|
export type ICard = keyof typeof CARDS;
|
|
279
190
|
export interface IPlayedCard {
|
|
@@ -285,7 +196,18 @@ export interface IHandPoints {
|
|
|
285
196
|
0: number;
|
|
286
197
|
1: number;
|
|
287
198
|
}
|
|
288
|
-
export
|
|
199
|
+
export interface IRandom {
|
|
200
|
+
secret: string;
|
|
201
|
+
clients: string[];
|
|
202
|
+
nonce: number;
|
|
203
|
+
next(): void;
|
|
204
|
+
pick(idx: number, max: number): number;
|
|
205
|
+
reveal(): {
|
|
206
|
+
secret: string;
|
|
207
|
+
clients: string[];
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export type IPublicPlayer = Pick<IPlayer, "idx" | "key" | "name" | "disabled" | "abandoned" | "ready" | "hand" | "usedHand" | "prevHand" | "teamIdx" | "isTurn" | "turnExpiresAt" | "turnExtensionExpiresAt" | "isEnvidoTurn" | "isOwner"> & ({
|
|
289
211
|
isMe?: true;
|
|
290
212
|
commands: IPlayer["commands"];
|
|
291
213
|
hasFlor: IPlayer["hasFlor"];
|
|
@@ -303,6 +225,7 @@ export type IPublicTeam = Pick<ITeam, "points" | "id" | "name"> & {
|
|
|
303
225
|
};
|
|
304
226
|
export interface IPlayer {
|
|
305
227
|
idx: number;
|
|
228
|
+
secret: string;
|
|
306
229
|
teamIdx: number;
|
|
307
230
|
accountId: number | undefined;
|
|
308
231
|
matchPlayerId: number | undefined;
|
package/dist/types.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./events";
|
|
1
2
|
export { CARDS, CARDS_HUMAN_READABLE, BURNT_CARD } from "./lib/constants";
|
|
2
3
|
export var EMatchState;
|
|
3
4
|
(function (EMatchState) {
|
|
@@ -50,61 +51,6 @@ export var EHandState;
|
|
|
50
51
|
EHandState["WAITING_ENVIDO_POINTS_ANSWER"] = "WAITING_ENVIDO_POINTS_ANSWER";
|
|
51
52
|
EHandState["FINISHED"] = "FINISHED";
|
|
52
53
|
})(EHandState || (EHandState = {}));
|
|
53
|
-
export var EServerEvent;
|
|
54
|
-
(function (EServerEvent) {
|
|
55
|
-
EServerEvent["PONG"] = "PONG";
|
|
56
|
-
EServerEvent["SET_SESSION"] = "SET_SESSION";
|
|
57
|
-
EServerEvent["PREVIOUS_HAND"] = "PREVIOUS_HAND";
|
|
58
|
-
EServerEvent["UPDATE_MATCH"] = "UPDATE_MATCH";
|
|
59
|
-
EServerEvent["MATCH_DELETED"] = "MATCH_DELETED";
|
|
60
|
-
EServerEvent["WAITING_PLAY"] = "WAITING_PLAY";
|
|
61
|
-
EServerEvent["KICK_PLAYER"] = "PLAYER_KICKED";
|
|
62
|
-
EServerEvent["UPDATE_ACTIVE_MATCHES"] = "UPDATE_ACTIVE_MATCHES";
|
|
63
|
-
EServerEvent["PLAYER_USED_CARD"] = "PLAYER_USED_CARD";
|
|
64
|
-
EServerEvent["PLAYER_SAID_COMMAND"] = "PLAYER_SAID_COMMAND";
|
|
65
|
-
EServerEvent["WAITING_POSSIBLE_SAY"] = "WAITING_POSSIBLE_SAY";
|
|
66
|
-
EServerEvent["UPDATE_CHAT"] = "UPDAET_CHAT";
|
|
67
|
-
})(EServerEvent || (EServerEvent = {}));
|
|
68
|
-
export var EClientEvent;
|
|
69
|
-
(function (EClientEvent) {
|
|
70
|
-
EClientEvent["LOGIN"] = "LOGIN";
|
|
71
|
-
EClientEvent["LOGOUT"] = "LOGOUT";
|
|
72
|
-
EClientEvent["LEAVE_MATCH"] = "LEAVE_MATCH";
|
|
73
|
-
EClientEvent["CREATE_MATCH"] = "CREATE_MATCH";
|
|
74
|
-
EClientEvent["FETCH_ACCOUNT_DETAILS"] = "FETCH_ACCOUNT_DETAILS";
|
|
75
|
-
EClientEvent["FETCH_MATCH_DETAILS"] = "FETCH_MATCH_DETAILS";
|
|
76
|
-
EClientEvent["SET_MATCH_OPTIONS"] = "SET_MATCH_OPTIONS";
|
|
77
|
-
EClientEvent["LIST_MATCHES"] = "LIST_MATCHES";
|
|
78
|
-
EClientEvent["JOIN_MATCH"] = "JOIN_MATCH";
|
|
79
|
-
EClientEvent["START_MATCH"] = "START_MATCH";
|
|
80
|
-
EClientEvent["SET_PLAYER_READY"] = "SET_PLAYER_READY";
|
|
81
|
-
EClientEvent["FETCH_MATCH"] = "FETCH_MATCH";
|
|
82
|
-
EClientEvent["CHAT"] = "CHAT";
|
|
83
|
-
EClientEvent["PING"] = "PING";
|
|
84
|
-
EClientEvent["SAY"] = "SAY";
|
|
85
|
-
})(EClientEvent || (EClientEvent = {}));
|
|
86
|
-
export class TMap extends Map {
|
|
87
|
-
find(finder) {
|
|
88
|
-
let result = undefined;
|
|
89
|
-
for (let value of this.values()) {
|
|
90
|
-
const find = finder(value);
|
|
91
|
-
if (!result && find) {
|
|
92
|
-
result = value;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return result;
|
|
96
|
-
}
|
|
97
|
-
findAll(finder) {
|
|
98
|
-
return Array.from(this.values()).filter(finder);
|
|
99
|
-
}
|
|
100
|
-
getOrThrow(key) {
|
|
101
|
-
const result = key && this.get(key);
|
|
102
|
-
if (!result) {
|
|
103
|
-
throw new Error(`getOrThrow(${key}) not found`);
|
|
104
|
-
}
|
|
105
|
-
return result;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
54
|
export var GAME_ERROR;
|
|
109
55
|
(function (GAME_ERROR) {
|
|
110
56
|
GAME_ERROR["UNEXPECTED_ERROR"] = "UNEXPECTED_ERROR";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trucoshi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Lightning Truco Server",
|
|
5
5
|
"main": "dist/types.js",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -55,12 +55,15 @@
|
|
|
55
55
|
"dist/types.d.ts",
|
|
56
56
|
"dist/server/constants.js",
|
|
57
57
|
"dist/server/constants.d.ts",
|
|
58
|
-
"prisma
|
|
58
|
+
"prisma/client/index.js",
|
|
59
|
+
"prisma/client/index.d.ts",
|
|
60
|
+
"prisma/client/schema.prisma"
|
|
59
61
|
],
|
|
60
62
|
"dependencies": {
|
|
61
63
|
"@prisma/client": "^4.14.1",
|
|
62
64
|
"@socket.io/redis-adapter": "^8.2.1",
|
|
63
65
|
"@types/jsonwebtoken": "^9.0.5",
|
|
66
|
+
"@types/node-forge": "^1.3.11",
|
|
64
67
|
"@types/pino": "^7.0.5",
|
|
65
68
|
"@types/redis": "^4.0.11",
|
|
66
69
|
"axios": "^1.6.3",
|
|
@@ -70,10 +73,12 @@
|
|
|
70
73
|
"form-data": "^4.0.0",
|
|
71
74
|
"jsonwebtoken": "^9.0.2",
|
|
72
75
|
"lightning-accounts": "2.2.0",
|
|
76
|
+
"node-forge": "^1.3.1",
|
|
73
77
|
"path-scurry": "^1.9.2",
|
|
74
78
|
"pino": "^8.11.0",
|
|
75
79
|
"pino-pretty": "^10.0.0",
|
|
76
80
|
"rimraf": "^4.1.1",
|
|
81
|
+
"safe-rng": "^1.0.4",
|
|
77
82
|
"socket.io": "^4.5.4",
|
|
78
83
|
"ts-node": "^10.9.1",
|
|
79
84
|
"tsc": "^2.0.4",
|
package/prisma/client/index.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export type MatchHand = {
|
|
|
65
65
|
createdAt: Date
|
|
66
66
|
updatedAt: Date
|
|
67
67
|
idx: number
|
|
68
|
+
secret: string
|
|
69
|
+
clientSecrets: string[]
|
|
68
70
|
rounds: Prisma.JsonValue
|
|
69
71
|
results: Prisma.JsonValue
|
|
70
72
|
matchId: number
|
|
@@ -3995,6 +3997,7 @@ export namespace Prisma {
|
|
|
3995
3997
|
createdAt: Date | null
|
|
3996
3998
|
updatedAt: Date | null
|
|
3997
3999
|
idx: number | null
|
|
4000
|
+
secret: string | null
|
|
3998
4001
|
matchId: number | null
|
|
3999
4002
|
trucoWinnerIdx: number | null
|
|
4000
4003
|
envidoWinnerIdx: number | null
|
|
@@ -4006,6 +4009,7 @@ export namespace Prisma {
|
|
|
4006
4009
|
createdAt: Date | null
|
|
4007
4010
|
updatedAt: Date | null
|
|
4008
4011
|
idx: number | null
|
|
4012
|
+
secret: string | null
|
|
4009
4013
|
matchId: number | null
|
|
4010
4014
|
trucoWinnerIdx: number | null
|
|
4011
4015
|
envidoWinnerIdx: number | null
|
|
@@ -4017,6 +4021,8 @@ export namespace Prisma {
|
|
|
4017
4021
|
createdAt: number
|
|
4018
4022
|
updatedAt: number
|
|
4019
4023
|
idx: number
|
|
4024
|
+
secret: number
|
|
4025
|
+
clientSecrets: number
|
|
4020
4026
|
rounds: number
|
|
4021
4027
|
results: number
|
|
4022
4028
|
matchId: number
|
|
@@ -4050,6 +4056,7 @@ export namespace Prisma {
|
|
|
4050
4056
|
createdAt?: true
|
|
4051
4057
|
updatedAt?: true
|
|
4052
4058
|
idx?: true
|
|
4059
|
+
secret?: true
|
|
4053
4060
|
matchId?: true
|
|
4054
4061
|
trucoWinnerIdx?: true
|
|
4055
4062
|
envidoWinnerIdx?: true
|
|
@@ -4061,6 +4068,7 @@ export namespace Prisma {
|
|
|
4061
4068
|
createdAt?: true
|
|
4062
4069
|
updatedAt?: true
|
|
4063
4070
|
idx?: true
|
|
4071
|
+
secret?: true
|
|
4064
4072
|
matchId?: true
|
|
4065
4073
|
trucoWinnerIdx?: true
|
|
4066
4074
|
envidoWinnerIdx?: true
|
|
@@ -4072,6 +4080,8 @@ export namespace Prisma {
|
|
|
4072
4080
|
createdAt?: true
|
|
4073
4081
|
updatedAt?: true
|
|
4074
4082
|
idx?: true
|
|
4083
|
+
secret?: true
|
|
4084
|
+
clientSecrets?: true
|
|
4075
4085
|
rounds?: true
|
|
4076
4086
|
results?: true
|
|
4077
4087
|
matchId?: true
|
|
@@ -4173,6 +4183,8 @@ export namespace Prisma {
|
|
|
4173
4183
|
createdAt: Date
|
|
4174
4184
|
updatedAt: Date
|
|
4175
4185
|
idx: number
|
|
4186
|
+
secret: string
|
|
4187
|
+
clientSecrets: string[]
|
|
4176
4188
|
rounds: JsonValue
|
|
4177
4189
|
results: JsonValue
|
|
4178
4190
|
matchId: number
|
|
@@ -4205,6 +4217,8 @@ export namespace Prisma {
|
|
|
4205
4217
|
createdAt?: boolean
|
|
4206
4218
|
updatedAt?: boolean
|
|
4207
4219
|
idx?: boolean
|
|
4220
|
+
secret?: boolean
|
|
4221
|
+
clientSecrets?: boolean
|
|
4208
4222
|
rounds?: boolean
|
|
4209
4223
|
results?: boolean
|
|
4210
4224
|
matchId?: boolean
|
|
@@ -6066,6 +6080,8 @@ export namespace Prisma {
|
|
|
6066
6080
|
createdAt: 'createdAt',
|
|
6067
6081
|
updatedAt: 'updatedAt',
|
|
6068
6082
|
idx: 'idx',
|
|
6083
|
+
secret: 'secret',
|
|
6084
|
+
clientSecrets: 'clientSecrets',
|
|
6069
6085
|
rounds: 'rounds',
|
|
6070
6086
|
results: 'results',
|
|
6071
6087
|
matchId: 'matchId',
|
|
@@ -6345,6 +6361,8 @@ export namespace Prisma {
|
|
|
6345
6361
|
createdAt?: DateTimeFilter | Date | string
|
|
6346
6362
|
updatedAt?: DateTimeFilter | Date | string
|
|
6347
6363
|
idx?: IntFilter | number
|
|
6364
|
+
secret?: StringFilter | string
|
|
6365
|
+
clientSecrets?: StringNullableListFilter
|
|
6348
6366
|
rounds?: JsonFilter
|
|
6349
6367
|
results?: JsonFilter
|
|
6350
6368
|
matchId?: IntFilter | number
|
|
@@ -6359,6 +6377,8 @@ export namespace Prisma {
|
|
|
6359
6377
|
createdAt?: SortOrder
|
|
6360
6378
|
updatedAt?: SortOrder
|
|
6361
6379
|
idx?: SortOrder
|
|
6380
|
+
secret?: SortOrder
|
|
6381
|
+
clientSecrets?: SortOrder
|
|
6362
6382
|
rounds?: SortOrder
|
|
6363
6383
|
results?: SortOrder
|
|
6364
6384
|
matchId?: SortOrder
|
|
@@ -6377,6 +6397,8 @@ export namespace Prisma {
|
|
|
6377
6397
|
createdAt?: SortOrder
|
|
6378
6398
|
updatedAt?: SortOrder
|
|
6379
6399
|
idx?: SortOrder
|
|
6400
|
+
secret?: SortOrder
|
|
6401
|
+
clientSecrets?: SortOrder
|
|
6380
6402
|
rounds?: SortOrder
|
|
6381
6403
|
results?: SortOrder
|
|
6382
6404
|
matchId?: SortOrder
|
|
@@ -6398,6 +6420,8 @@ export namespace Prisma {
|
|
|
6398
6420
|
createdAt?: DateTimeWithAggregatesFilter | Date | string
|
|
6399
6421
|
updatedAt?: DateTimeWithAggregatesFilter | Date | string
|
|
6400
6422
|
idx?: IntWithAggregatesFilter | number
|
|
6423
|
+
secret?: StringWithAggregatesFilter | string
|
|
6424
|
+
clientSecrets?: StringNullableListFilter
|
|
6401
6425
|
rounds?: JsonWithAggregatesFilter
|
|
6402
6426
|
results?: JsonWithAggregatesFilter
|
|
6403
6427
|
matchId?: IntWithAggregatesFilter | number
|
|
@@ -6713,6 +6737,8 @@ export namespace Prisma {
|
|
|
6713
6737
|
createdAt?: Date | string
|
|
6714
6738
|
updatedAt?: Date | string
|
|
6715
6739
|
idx: number
|
|
6740
|
+
secret?: string
|
|
6741
|
+
clientSecrets?: MatchHandCreateclientSecretsInput | Enumerable<string>
|
|
6716
6742
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6717
6743
|
results?: JsonNullValueInput | InputJsonValue
|
|
6718
6744
|
trucoWinnerIdx?: number | null
|
|
@@ -6726,6 +6752,8 @@ export namespace Prisma {
|
|
|
6726
6752
|
createdAt?: Date | string
|
|
6727
6753
|
updatedAt?: Date | string
|
|
6728
6754
|
idx: number
|
|
6755
|
+
secret?: string
|
|
6756
|
+
clientSecrets?: MatchHandCreateclientSecretsInput | Enumerable<string>
|
|
6729
6757
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6730
6758
|
results?: JsonNullValueInput | InputJsonValue
|
|
6731
6759
|
matchId: number
|
|
@@ -6738,6 +6766,8 @@ export namespace Prisma {
|
|
|
6738
6766
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6739
6767
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6740
6768
|
idx?: IntFieldUpdateOperationsInput | number
|
|
6769
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
6770
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
6741
6771
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6742
6772
|
results?: JsonNullValueInput | InputJsonValue
|
|
6743
6773
|
trucoWinnerIdx?: NullableIntFieldUpdateOperationsInput | number | null
|
|
@@ -6751,6 +6781,8 @@ export namespace Prisma {
|
|
|
6751
6781
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6752
6782
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6753
6783
|
idx?: IntFieldUpdateOperationsInput | number
|
|
6784
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
6785
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
6754
6786
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6755
6787
|
results?: JsonNullValueInput | InputJsonValue
|
|
6756
6788
|
matchId?: IntFieldUpdateOperationsInput | number
|
|
@@ -6764,6 +6796,8 @@ export namespace Prisma {
|
|
|
6764
6796
|
createdAt?: Date | string
|
|
6765
6797
|
updatedAt?: Date | string
|
|
6766
6798
|
idx: number
|
|
6799
|
+
secret?: string
|
|
6800
|
+
clientSecrets?: MatchHandCreateclientSecretsInput | Enumerable<string>
|
|
6767
6801
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6768
6802
|
results?: JsonNullValueInput | InputJsonValue
|
|
6769
6803
|
matchId: number
|
|
@@ -6776,6 +6810,8 @@ export namespace Prisma {
|
|
|
6776
6810
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6777
6811
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6778
6812
|
idx?: IntFieldUpdateOperationsInput | number
|
|
6813
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
6814
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
6779
6815
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6780
6816
|
results?: JsonNullValueInput | InputJsonValue
|
|
6781
6817
|
trucoWinnerIdx?: NullableIntFieldUpdateOperationsInput | number | null
|
|
@@ -6788,6 +6824,8 @@ export namespace Prisma {
|
|
|
6788
6824
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6789
6825
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6790
6826
|
idx?: IntFieldUpdateOperationsInput | number
|
|
6827
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
6828
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
6791
6829
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
6792
6830
|
results?: JsonNullValueInput | InputJsonValue
|
|
6793
6831
|
matchId?: IntFieldUpdateOperationsInput | number
|
|
@@ -7252,11 +7290,21 @@ export namespace Prisma {
|
|
|
7252
7290
|
_max?: NestedBoolFilter
|
|
7253
7291
|
}
|
|
7254
7292
|
|
|
7293
|
+
export type StringNullableListFilter = {
|
|
7294
|
+
equals?: Enumerable<string> | null
|
|
7295
|
+
has?: string | null
|
|
7296
|
+
hasEvery?: Enumerable<string>
|
|
7297
|
+
hasSome?: Enumerable<string>
|
|
7298
|
+
isEmpty?: boolean
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7255
7301
|
export type MatchHandCountOrderByAggregateInput = {
|
|
7256
7302
|
id?: SortOrder
|
|
7257
7303
|
createdAt?: SortOrder
|
|
7258
7304
|
updatedAt?: SortOrder
|
|
7259
7305
|
idx?: SortOrder
|
|
7306
|
+
secret?: SortOrder
|
|
7307
|
+
clientSecrets?: SortOrder
|
|
7260
7308
|
rounds?: SortOrder
|
|
7261
7309
|
results?: SortOrder
|
|
7262
7310
|
matchId?: SortOrder
|
|
@@ -7279,6 +7327,7 @@ export namespace Prisma {
|
|
|
7279
7327
|
createdAt?: SortOrder
|
|
7280
7328
|
updatedAt?: SortOrder
|
|
7281
7329
|
idx?: SortOrder
|
|
7330
|
+
secret?: SortOrder
|
|
7282
7331
|
matchId?: SortOrder
|
|
7283
7332
|
trucoWinnerIdx?: SortOrder
|
|
7284
7333
|
envidoWinnerIdx?: SortOrder
|
|
@@ -7290,6 +7339,7 @@ export namespace Prisma {
|
|
|
7290
7339
|
createdAt?: SortOrder
|
|
7291
7340
|
updatedAt?: SortOrder
|
|
7292
7341
|
idx?: SortOrder
|
|
7342
|
+
secret?: SortOrder
|
|
7293
7343
|
matchId?: SortOrder
|
|
7294
7344
|
trucoWinnerIdx?: SortOrder
|
|
7295
7345
|
envidoWinnerIdx?: SortOrder
|
|
@@ -7534,12 +7584,21 @@ export namespace Prisma {
|
|
|
7534
7584
|
update?: XOR<MatchUpdateWithoutBetInput, MatchUncheckedUpdateWithoutBetInput>
|
|
7535
7585
|
}
|
|
7536
7586
|
|
|
7587
|
+
export type MatchHandCreateclientSecretsInput = {
|
|
7588
|
+
set: Enumerable<string>
|
|
7589
|
+
}
|
|
7590
|
+
|
|
7537
7591
|
export type MatchCreateNestedOneWithoutHandsInput = {
|
|
7538
7592
|
create?: XOR<MatchCreateWithoutHandsInput, MatchUncheckedCreateWithoutHandsInput>
|
|
7539
7593
|
connectOrCreate?: MatchCreateOrConnectWithoutHandsInput
|
|
7540
7594
|
connect?: MatchWhereUniqueInput
|
|
7541
7595
|
}
|
|
7542
7596
|
|
|
7597
|
+
export type MatchHandUpdateclientSecretsInput = {
|
|
7598
|
+
set?: Enumerable<string>
|
|
7599
|
+
push?: string | Enumerable<string>
|
|
7600
|
+
}
|
|
7601
|
+
|
|
7543
7602
|
export type MatchUpdateOneRequiredWithoutHandsNestedInput = {
|
|
7544
7603
|
create?: XOR<MatchCreateWithoutHandsInput, MatchUncheckedCreateWithoutHandsInput>
|
|
7545
7604
|
connectOrCreate?: MatchCreateOrConnectWithoutHandsInput
|
|
@@ -7787,6 +7846,8 @@ export namespace Prisma {
|
|
|
7787
7846
|
createdAt?: Date | string
|
|
7788
7847
|
updatedAt?: Date | string
|
|
7789
7848
|
idx: number
|
|
7849
|
+
secret?: string
|
|
7850
|
+
clientSecrets?: MatchHandCreateclientSecretsInput | Enumerable<string>
|
|
7790
7851
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
7791
7852
|
results?: JsonNullValueInput | InputJsonValue
|
|
7792
7853
|
trucoWinnerIdx?: number | null
|
|
@@ -7799,6 +7860,8 @@ export namespace Prisma {
|
|
|
7799
7860
|
createdAt?: Date | string
|
|
7800
7861
|
updatedAt?: Date | string
|
|
7801
7862
|
idx: number
|
|
7863
|
+
secret?: string
|
|
7864
|
+
clientSecrets?: MatchHandCreateclientSecretsInput | Enumerable<string>
|
|
7802
7865
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
7803
7866
|
results?: JsonNullValueInput | InputJsonValue
|
|
7804
7867
|
trucoWinnerIdx?: number | null
|
|
@@ -7896,6 +7959,8 @@ export namespace Prisma {
|
|
|
7896
7959
|
createdAt?: DateTimeFilter | Date | string
|
|
7897
7960
|
updatedAt?: DateTimeFilter | Date | string
|
|
7898
7961
|
idx?: IntFilter | number
|
|
7962
|
+
secret?: StringFilter | string
|
|
7963
|
+
clientSecrets?: StringNullableListFilter
|
|
7899
7964
|
rounds?: JsonFilter
|
|
7900
7965
|
results?: JsonFilter
|
|
7901
7966
|
matchId?: IntFilter | number
|
|
@@ -8137,6 +8202,8 @@ export namespace Prisma {
|
|
|
8137
8202
|
createdAt?: Date | string
|
|
8138
8203
|
updatedAt?: Date | string
|
|
8139
8204
|
idx: number
|
|
8205
|
+
secret?: string
|
|
8206
|
+
clientSecrets?: MatchHandCreateclientSecretsInput | Enumerable<string>
|
|
8140
8207
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
8141
8208
|
results?: JsonNullValueInput | InputJsonValue
|
|
8142
8209
|
trucoWinnerIdx?: number | null
|
|
@@ -8189,6 +8256,8 @@ export namespace Prisma {
|
|
|
8189
8256
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8190
8257
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8191
8258
|
idx?: IntFieldUpdateOperationsInput | number
|
|
8259
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
8260
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
8192
8261
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
8193
8262
|
results?: JsonNullValueInput | InputJsonValue
|
|
8194
8263
|
trucoWinnerIdx?: NullableIntFieldUpdateOperationsInput | number | null
|
|
@@ -8201,6 +8270,8 @@ export namespace Prisma {
|
|
|
8201
8270
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8202
8271
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8203
8272
|
idx?: IntFieldUpdateOperationsInput | number
|
|
8273
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
8274
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
8204
8275
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
8205
8276
|
results?: JsonNullValueInput | InputJsonValue
|
|
8206
8277
|
trucoWinnerIdx?: NullableIntFieldUpdateOperationsInput | number | null
|
|
@@ -8213,6 +8284,8 @@ export namespace Prisma {
|
|
|
8213
8284
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8214
8285
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8215
8286
|
idx?: IntFieldUpdateOperationsInput | number
|
|
8287
|
+
secret?: StringFieldUpdateOperationsInput | string
|
|
8288
|
+
clientSecrets?: MatchHandUpdateclientSecretsInput | Enumerable<string>
|
|
8216
8289
|
rounds?: JsonNullValueInput | InputJsonValue
|
|
8217
8290
|
results?: JsonNullValueInput | InputJsonValue
|
|
8218
8291
|
trucoWinnerIdx?: NullableIntFieldUpdateOperationsInput | number | null
|