trucoshi 8.10.4 → 8.10.5
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/lib/classes/Deck.d.ts +2 -2
- package/dist/lib/constants.d.ts +1 -2
- package/dist/lib/utils.d.ts +6 -2
- package/package.json +2 -4
- package/prisma/client/client.d.ts +1 -0
- package/prisma/client/client.js +4 -0
- package/prisma/client/default.d.ts +1 -0
- package/prisma/client/default.js +4 -0
- package/prisma/client/edge.d.ts +1 -0
- package/prisma/client/edge.js +270 -0
- package/prisma/client/index-browser.js +256 -0
- package/prisma/client/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/prisma/client/package.json +150 -0
- package/prisma/client/runtime/edge-esm.js +34 -0
- package/prisma/client/runtime/edge.js +34 -0
- package/prisma/client/runtime/index-browser.d.ts +370 -0
- package/prisma/client/runtime/index-browser.js +16 -0
- package/prisma/client/runtime/index.d.ts +3057 -0
- package/prisma/client/runtime/library.d.ts +3697 -0
- package/prisma/client/runtime/library.js +146 -0
- package/prisma/client/runtime/react-native.js +83 -0
- package/prisma/client/runtime/wasm-compiler-edge.js +83 -0
- package/prisma/client/runtime/wasm-engine-edge.js +35 -0
- package/prisma/client/wasm.d.ts +1 -0
- package/prisma/client/wasm.js +256 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ICard, IDeck, IPlayedCard, IPlayer, IPublicPlayer } from "../../types";
|
|
2
2
|
import { ITable } from "./Table";
|
|
3
3
|
export declare function Deck(): IDeck;
|
|
4
|
-
export declare const getAllCards: () =>
|
|
4
|
+
export declare const getAllCards: () => ("rb" | "1e" | "1b" | "7e" | "7o" | "3e" | "3o" | "3b" | "3c" | "2e" | "2o" | "2b" | "2c" | "1o" | "1c" | "re" | "ro" | "rc" | "ce" | "co" | "cb" | "cc" | "pe" | "po" | "pb" | "pc" | "7b" | "7c" | "6e" | "6o" | "6b" | "6c" | "5e" | "5o" | "5b" | "5c" | "4e" | "4o" | "4b" | "4c")[];
|
|
5
5
|
export declare function dealCards<TPlayer extends {
|
|
6
6
|
key: string;
|
|
7
7
|
idx: number;
|
|
8
8
|
setHand(h: Array<ICard>): void;
|
|
9
9
|
} = IPlayer>(table: ITable<TPlayer>, deck: IDeck): void;
|
|
10
|
-
export declare function shuffleArray<T = unknown>(array: Array<T>, getRandom?: (max: number) => number):
|
|
10
|
+
export declare function shuffleArray<T = unknown>(array: Array<T>, getRandom?: (max: number) => number): T[];
|
|
11
11
|
export declare function PlayedCard(player: IPlayer | IPublicPlayer, card: ICard, burn?: boolean): IPlayedCard;
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ICard } from "../types";
|
|
2
1
|
export declare const PLAYER_ABANDON_TIMEOUT: number;
|
|
3
2
|
export declare const PLAYER_TURN_TIMEOUT: number;
|
|
4
3
|
export declare const PREVIOUS_HAND_ACK_TIMEOUT: number;
|
|
@@ -44,7 +43,7 @@ export declare const CARDS: {
|
|
|
44
43
|
"4b": number;
|
|
45
44
|
"4c": number;
|
|
46
45
|
};
|
|
47
|
-
export declare const BURNT_CARD:
|
|
46
|
+
export declare const BURNT_CARD: "rb" | "1e" | "1b" | "7e" | "7o" | "3e" | "3o" | "3b" | "3c" | "2e" | "2o" | "2b" | "2c" | "1o" | "1c" | "re" | "ro" | "rc" | "ce" | "co" | "cb" | "cc" | "pe" | "po" | "pb" | "pc" | "7b" | "7c" | "6e" | "6o" | "6b" | "6c" | "5e" | "5o" | "5b" | "5c" | "4e" | "4o" | "4b" | "4c";
|
|
48
47
|
export declare const CARDS_HUMAN_READABLE: {
|
|
49
48
|
"1e": string;
|
|
50
49
|
"1b": string;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
/// <reference types="lodash" />
|
|
1
3
|
import { IHand } from "../truco";
|
|
2
4
|
import { ICard } from "../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
export declare const memoizeMinute: {
|
|
6
|
+
<T extends (...args: any) => any>(func: T, resolver?: ((...args: Parameters<T>) => any) | undefined): T & import("lodash").MemoizedFunction;
|
|
7
|
+
Cache: import("lodash").MapCacheConstructor;
|
|
8
|
+
};
|
|
5
9
|
export declare function getMaxNumberIndex<T = number>(array: Array<T>): number;
|
|
6
10
|
export declare function getMinNumberIndex<T = number>(array: Array<T>): number;
|
|
7
11
|
export declare function getCardValue(card: ICard): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trucoshi",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.5",
|
|
4
4
|
"description": "Lightning Truco Server",
|
|
5
5
|
"main": "dist/types.js",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -62,9 +62,7 @@
|
|
|
62
62
|
"dist/events.d.ts",
|
|
63
63
|
"dist/server/constants.js",
|
|
64
64
|
"dist/server/constants.d.ts",
|
|
65
|
-
"prisma/client
|
|
66
|
-
"prisma/client/index.d.ts",
|
|
67
|
-
"prisma/client/schema.prisma"
|
|
65
|
+
"prisma/client/*"
|
|
68
66
|
],
|
|
69
67
|
"dependencies": {
|
|
70
68
|
"@prisma/client": "^6.13.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./default"
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
|
|
7
|
+
const {
|
|
8
|
+
PrismaClientKnownRequestError,
|
|
9
|
+
PrismaClientUnknownRequestError,
|
|
10
|
+
PrismaClientRustPanicError,
|
|
11
|
+
PrismaClientInitializationError,
|
|
12
|
+
PrismaClientValidationError,
|
|
13
|
+
getPrismaClient,
|
|
14
|
+
sqltag,
|
|
15
|
+
empty,
|
|
16
|
+
join,
|
|
17
|
+
raw,
|
|
18
|
+
skip,
|
|
19
|
+
Decimal,
|
|
20
|
+
Debug,
|
|
21
|
+
objectEnumValues,
|
|
22
|
+
makeStrictEnum,
|
|
23
|
+
Extensions,
|
|
24
|
+
warnOnce,
|
|
25
|
+
defineDmmfProperty,
|
|
26
|
+
Public,
|
|
27
|
+
getRuntime,
|
|
28
|
+
createParam,
|
|
29
|
+
} = require('./runtime/edge.js')
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const Prisma = {}
|
|
33
|
+
|
|
34
|
+
exports.Prisma = Prisma
|
|
35
|
+
exports.$Enums = {}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Prisma Client JS version: 6.13.0
|
|
39
|
+
* Query Engine version: 361e86d0ea4987e9f53a565309b3eed797a6bcbd
|
|
40
|
+
*/
|
|
41
|
+
Prisma.prismaVersion = {
|
|
42
|
+
client: "6.13.0",
|
|
43
|
+
engine: "361e86d0ea4987e9f53a565309b3eed797a6bcbd"
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
47
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
48
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
49
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
50
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
51
|
+
Prisma.Decimal = Decimal
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Re-export of sql-template-tag
|
|
55
|
+
*/
|
|
56
|
+
Prisma.sql = sqltag
|
|
57
|
+
Prisma.empty = empty
|
|
58
|
+
Prisma.join = join
|
|
59
|
+
Prisma.raw = raw
|
|
60
|
+
Prisma.validator = Public.validator
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Extensions
|
|
64
|
+
*/
|
|
65
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
66
|
+
Prisma.defineExtension = Extensions.defineExtension
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Shorthand utilities for JSON filtering
|
|
70
|
+
*/
|
|
71
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
72
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
73
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
74
|
+
|
|
75
|
+
Prisma.NullTypes = {
|
|
76
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
77
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
78
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Enums
|
|
87
|
+
*/
|
|
88
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
89
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
90
|
+
ReadCommitted: 'ReadCommitted',
|
|
91
|
+
RepeatableRead: 'RepeatableRead',
|
|
92
|
+
Serializable: 'Serializable'
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
exports.Prisma.UserStatsScalarFieldEnum = {
|
|
96
|
+
id: 'id',
|
|
97
|
+
accountId: 'accountId',
|
|
98
|
+
win: 'win',
|
|
99
|
+
loss: 'loss',
|
|
100
|
+
satsBet: 'satsBet',
|
|
101
|
+
satsWon: 'satsWon',
|
|
102
|
+
satsLost: 'satsLost'
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
exports.Prisma.MatchScalarFieldEnum = {
|
|
106
|
+
id: 'id',
|
|
107
|
+
createdAt: 'createdAt',
|
|
108
|
+
updatedAt: 'updatedAt',
|
|
109
|
+
sessionId: 'sessionId',
|
|
110
|
+
state: 'state',
|
|
111
|
+
ownerAccountId: 'ownerAccountId',
|
|
112
|
+
options: 'options',
|
|
113
|
+
results: 'results',
|
|
114
|
+
winnerIdx: 'winnerIdx'
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
exports.Prisma.MatchBetScalarFieldEnum = {
|
|
118
|
+
id: 'id',
|
|
119
|
+
createdAt: 'createdAt',
|
|
120
|
+
updatedAt: 'updatedAt',
|
|
121
|
+
matchId: 'matchId',
|
|
122
|
+
satsPerPlayer: 'satsPerPlayer',
|
|
123
|
+
allPlayersPaid: 'allPlayersPaid',
|
|
124
|
+
winnerAwarded: 'winnerAwarded'
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
exports.Prisma.MatchHandScalarFieldEnum = {
|
|
128
|
+
id: 'id',
|
|
129
|
+
createdAt: 'createdAt',
|
|
130
|
+
updatedAt: 'updatedAt',
|
|
131
|
+
idx: 'idx',
|
|
132
|
+
secret: 'secret',
|
|
133
|
+
clientSecrets: 'clientSecrets',
|
|
134
|
+
rounds: 'rounds',
|
|
135
|
+
results: 'results',
|
|
136
|
+
matchId: 'matchId',
|
|
137
|
+
trucoWinnerIdx: 'trucoWinnerIdx',
|
|
138
|
+
envidoWinnerIdx: 'envidoWinnerIdx',
|
|
139
|
+
florWinnerIdx: 'florWinnerIdx',
|
|
140
|
+
bitcoinHash: 'bitcoinHash',
|
|
141
|
+
bitcoinHeight: 'bitcoinHeight'
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
exports.Prisma.MatchPlayerScalarFieldEnum = {
|
|
145
|
+
id: 'id',
|
|
146
|
+
createdAt: 'createdAt',
|
|
147
|
+
updatedAt: 'updatedAt',
|
|
148
|
+
idx: 'idx',
|
|
149
|
+
name: 'name',
|
|
150
|
+
accountId: 'accountId',
|
|
151
|
+
session: 'session',
|
|
152
|
+
teamIdx: 'teamIdx',
|
|
153
|
+
satsPaid: 'satsPaid',
|
|
154
|
+
satsReceived: 'satsReceived',
|
|
155
|
+
payRequestId: 'payRequestId',
|
|
156
|
+
bot: 'bot',
|
|
157
|
+
matchId: 'matchId'
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
exports.Prisma.SortOrder = {
|
|
161
|
+
asc: 'asc',
|
|
162
|
+
desc: 'desc'
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
exports.Prisma.JsonNullValueInput = {
|
|
166
|
+
JsonNull: Prisma.JsonNull
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
exports.Prisma.NullsOrder = {
|
|
170
|
+
first: 'first',
|
|
171
|
+
last: 'last'
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
exports.Prisma.QueryMode = {
|
|
175
|
+
default: 'default',
|
|
176
|
+
insensitive: 'insensitive'
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
180
|
+
DbNull: Prisma.DbNull,
|
|
181
|
+
JsonNull: Prisma.JsonNull,
|
|
182
|
+
AnyNull: Prisma.AnyNull
|
|
183
|
+
};
|
|
184
|
+
exports.EMatchState = exports.$Enums.EMatchState = {
|
|
185
|
+
UNREADY: 'UNREADY',
|
|
186
|
+
READY: 'READY',
|
|
187
|
+
STARTED: 'STARTED',
|
|
188
|
+
FINISHED: 'FINISHED'
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
exports.Prisma.ModelName = {
|
|
192
|
+
UserStats: 'UserStats',
|
|
193
|
+
Match: 'Match',
|
|
194
|
+
MatchBet: 'MatchBet',
|
|
195
|
+
MatchHand: 'MatchHand',
|
|
196
|
+
MatchPlayer: 'MatchPlayer'
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Create the Client
|
|
200
|
+
*/
|
|
201
|
+
const config = {
|
|
202
|
+
"generator": {
|
|
203
|
+
"name": "distClient",
|
|
204
|
+
"provider": {
|
|
205
|
+
"fromEnvVar": null,
|
|
206
|
+
"value": "prisma-client-js"
|
|
207
|
+
},
|
|
208
|
+
"output": {
|
|
209
|
+
"value": "/home/fran/Workspace/trucoshi/prisma/client",
|
|
210
|
+
"fromEnvVar": null
|
|
211
|
+
},
|
|
212
|
+
"config": {
|
|
213
|
+
"engineType": "library"
|
|
214
|
+
},
|
|
215
|
+
"binaryTargets": [
|
|
216
|
+
{
|
|
217
|
+
"fromEnvVar": null,
|
|
218
|
+
"value": "debian-openssl-1.1.x",
|
|
219
|
+
"native": true
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"previewFeatures": [],
|
|
223
|
+
"sourceFilePath": "/home/fran/Workspace/trucoshi/prisma/schema.prisma",
|
|
224
|
+
"isCustomOutput": true
|
|
225
|
+
},
|
|
226
|
+
"relativeEnvPaths": {
|
|
227
|
+
"rootEnvPath": null,
|
|
228
|
+
"schemaEnvPath": "../../.env"
|
|
229
|
+
},
|
|
230
|
+
"relativePath": "..",
|
|
231
|
+
"clientVersion": "6.13.0",
|
|
232
|
+
"engineVersion": "361e86d0ea4987e9f53a565309b3eed797a6bcbd",
|
|
233
|
+
"datasourceNames": [
|
|
234
|
+
"db"
|
|
235
|
+
],
|
|
236
|
+
"activeProvider": "postgresql",
|
|
237
|
+
"postinstall": false,
|
|
238
|
+
"inlineDatasources": {
|
|
239
|
+
"db": {
|
|
240
|
+
"url": {
|
|
241
|
+
"fromEnvVar": "DATABASE_URL",
|
|
242
|
+
"value": null
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ngenerator distClient {\n provider = \"prisma-client-js\"\n output = \"./client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel UserStats {\n id Int @id @default(autoincrement())\n accountId Int? @unique\n win Int @default(0)\n loss Int @default(0)\n satsBet Int @default(0)\n satsWon Int @default(0)\n satsLost Int @default(0)\n}\n\nmodel Match {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sessionId String\n state EMatchState @default(UNREADY)\n ownerAccountId Int?\n options Json @default(\"{}\")\n results Json @default(\"[{\\\"malas\\\": 0, \\\"buenas\\\": 0}, {\\\"malas\\\": 0, \\\"buenas\\\": 0}]\")\n winnerIdx Int?\n bet MatchBet?\n hands MatchHand[]\n players MatchPlayer[]\n}\n\nmodel MatchBet {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n matchId Int @unique\n satsPerPlayer Int\n allPlayersPaid Boolean\n winnerAwarded Boolean\n match Match @relation(fields: [matchId], references: [id])\n}\n\nmodel MatchHand {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n idx Int\n secret String @default(\"\")\n clientSecrets String[] @default([])\n rounds Json @default(\"[[]]\")\n results Json @default(\"[0, 0]\")\n matchId Int\n trucoWinnerIdx Int?\n envidoWinnerIdx Int?\n florWinnerIdx Int?\n bitcoinHash String @default(\"\")\n bitcoinHeight Int @default(0)\n match Match @relation(fields: [matchId], references: [id])\n}\n\nmodel MatchPlayer {\n id Int @id @default(autoincrement())\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n idx Int?\n name String @default(\"Satoshi\")\n accountId Int?\n session String\n teamIdx Int\n satsPaid Int @default(0)\n satsReceived Int @default(0)\n payRequestId Int?\n bot Boolean @default(false)\n matchId Int\n match Match @relation(fields: [matchId], references: [id])\n}\n\nenum EMatchState {\n UNREADY\n READY\n STARTED\n FINISHED\n}\n",
|
|
247
|
+
"inlineSchemaHash": "8c383bd9b3a85e4dcae40ea4a9e7ae0bb9e8fc0c12d6312f3f05d9d76b5caaee",
|
|
248
|
+
"copyEngine": true
|
|
249
|
+
}
|
|
250
|
+
config.dirname = '/'
|
|
251
|
+
|
|
252
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"UserStats\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"win\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"loss\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsBet\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsWon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsLost\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Match\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"sessionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"state\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"EMatchState\",\"nativeType\":null,\"default\":\"UNREADY\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ownerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"options\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"{}\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"results\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[{\\\"malas\\\": 0, \\\"buenas\\\": 0}, {\\\"malas\\\": 0, \\\"buenas\\\": 0}]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"winnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"bet\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MatchBet\",\"nativeType\":null,\"relationName\":\"MatchToMatchBet\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hands\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MatchHand\",\"nativeType\":null,\"relationName\":\"MatchToMatchHand\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"players\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MatchPlayer\",\"nativeType\":null,\"relationName\":\"MatchToMatchPlayer\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MatchBet\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"matchId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsPerPlayer\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"allPlayersPaid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"winnerAwarded\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"match\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Match\",\"nativeType\":null,\"relationName\":\"MatchToMatchBet\",\"relationFromFields\":[\"matchId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MatchHand\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"idx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"secret\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"clientSecrets\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"rounds\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[[]]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"results\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"nativeType\":null,\"default\":\"[0, 0]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"matchId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"trucoWinnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"envidoWinnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"florWinnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"bitcoinHash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"bitcoinHeight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"match\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Match\",\"nativeType\":null,\"relationName\":\"MatchToMatchHand\",\"relationFromFields\":[\"matchId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MatchPlayer\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"idx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"Satoshi\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"teamIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsPaid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsReceived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"payRequestId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"bot\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"matchId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"match\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Match\",\"nativeType\":null,\"relationName\":\"MatchToMatchPlayer\",\"relationFromFields\":[\"matchId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"EMatchState\":{\"values\":[{\"name\":\"UNREADY\",\"dbName\":null},{\"name\":\"READY\",\"dbName\":null},{\"name\":\"STARTED\",\"dbName\":null},{\"name\":\"FINISHED\",\"dbName\":null}],\"dbName\":null}},\"types\":{}}")
|
|
253
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
254
|
+
config.engineWasm = undefined
|
|
255
|
+
config.compilerWasm = undefined
|
|
256
|
+
|
|
257
|
+
config.injectableEdgeEnv = () => ({
|
|
258
|
+
parsed: {
|
|
259
|
+
DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
|
|
260
|
+
}
|
|
261
|
+
})
|
|
262
|
+
|
|
263
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
|
|
264
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const PrismaClient = getPrismaClient(config)
|
|
268
|
+
exports.PrismaClient = PrismaClient
|
|
269
|
+
Object.assign(exports, Prisma)
|
|
270
|
+
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
|
|
7
|
+
const {
|
|
8
|
+
Decimal,
|
|
9
|
+
objectEnumValues,
|
|
10
|
+
makeStrictEnum,
|
|
11
|
+
Public,
|
|
12
|
+
getRuntime,
|
|
13
|
+
skip
|
|
14
|
+
} = require('./runtime/index-browser.js')
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const Prisma = {}
|
|
18
|
+
|
|
19
|
+
exports.Prisma = Prisma
|
|
20
|
+
exports.$Enums = {}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Prisma Client JS version: 6.13.0
|
|
24
|
+
* Query Engine version: 361e86d0ea4987e9f53a565309b3eed797a6bcbd
|
|
25
|
+
*/
|
|
26
|
+
Prisma.prismaVersion = {
|
|
27
|
+
client: "6.13.0",
|
|
28
|
+
engine: "361e86d0ea4987e9f53a565309b3eed797a6bcbd"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
32
|
+
const runtimeName = getRuntime().prettyName;
|
|
33
|
+
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
34
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
35
|
+
)};
|
|
36
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
37
|
+
const runtimeName = getRuntime().prettyName;
|
|
38
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
39
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
40
|
+
)}
|
|
41
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
42
|
+
const runtimeName = getRuntime().prettyName;
|
|
43
|
+
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
44
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
45
|
+
)}
|
|
46
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
47
|
+
const runtimeName = getRuntime().prettyName;
|
|
48
|
+
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
49
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
50
|
+
)}
|
|
51
|
+
Prisma.PrismaClientValidationError = () => {
|
|
52
|
+
const runtimeName = getRuntime().prettyName;
|
|
53
|
+
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
54
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
55
|
+
)}
|
|
56
|
+
Prisma.Decimal = Decimal
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Re-export of sql-template-tag
|
|
60
|
+
*/
|
|
61
|
+
Prisma.sql = () => {
|
|
62
|
+
const runtimeName = getRuntime().prettyName;
|
|
63
|
+
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
64
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
65
|
+
)}
|
|
66
|
+
Prisma.empty = () => {
|
|
67
|
+
const runtimeName = getRuntime().prettyName;
|
|
68
|
+
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
69
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
70
|
+
)}
|
|
71
|
+
Prisma.join = () => {
|
|
72
|
+
const runtimeName = getRuntime().prettyName;
|
|
73
|
+
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
74
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
75
|
+
)}
|
|
76
|
+
Prisma.raw = () => {
|
|
77
|
+
const runtimeName = getRuntime().prettyName;
|
|
78
|
+
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
79
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
80
|
+
)}
|
|
81
|
+
Prisma.validator = Public.validator
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Extensions
|
|
85
|
+
*/
|
|
86
|
+
Prisma.getExtensionContext = () => {
|
|
87
|
+
const runtimeName = getRuntime().prettyName;
|
|
88
|
+
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
89
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
90
|
+
)}
|
|
91
|
+
Prisma.defineExtension = () => {
|
|
92
|
+
const runtimeName = getRuntime().prettyName;
|
|
93
|
+
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
94
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
95
|
+
)}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Shorthand utilities for JSON filtering
|
|
99
|
+
*/
|
|
100
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
101
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
102
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
103
|
+
|
|
104
|
+
Prisma.NullTypes = {
|
|
105
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
106
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
107
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Enums
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
117
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
118
|
+
ReadCommitted: 'ReadCommitted',
|
|
119
|
+
RepeatableRead: 'RepeatableRead',
|
|
120
|
+
Serializable: 'Serializable'
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
exports.Prisma.UserStatsScalarFieldEnum = {
|
|
124
|
+
id: 'id',
|
|
125
|
+
accountId: 'accountId',
|
|
126
|
+
win: 'win',
|
|
127
|
+
loss: 'loss',
|
|
128
|
+
satsBet: 'satsBet',
|
|
129
|
+
satsWon: 'satsWon',
|
|
130
|
+
satsLost: 'satsLost'
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
exports.Prisma.MatchScalarFieldEnum = {
|
|
134
|
+
id: 'id',
|
|
135
|
+
createdAt: 'createdAt',
|
|
136
|
+
updatedAt: 'updatedAt',
|
|
137
|
+
sessionId: 'sessionId',
|
|
138
|
+
state: 'state',
|
|
139
|
+
ownerAccountId: 'ownerAccountId',
|
|
140
|
+
options: 'options',
|
|
141
|
+
results: 'results',
|
|
142
|
+
winnerIdx: 'winnerIdx'
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
exports.Prisma.MatchBetScalarFieldEnum = {
|
|
146
|
+
id: 'id',
|
|
147
|
+
createdAt: 'createdAt',
|
|
148
|
+
updatedAt: 'updatedAt',
|
|
149
|
+
matchId: 'matchId',
|
|
150
|
+
satsPerPlayer: 'satsPerPlayer',
|
|
151
|
+
allPlayersPaid: 'allPlayersPaid',
|
|
152
|
+
winnerAwarded: 'winnerAwarded'
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
exports.Prisma.MatchHandScalarFieldEnum = {
|
|
156
|
+
id: 'id',
|
|
157
|
+
createdAt: 'createdAt',
|
|
158
|
+
updatedAt: 'updatedAt',
|
|
159
|
+
idx: 'idx',
|
|
160
|
+
secret: 'secret',
|
|
161
|
+
clientSecrets: 'clientSecrets',
|
|
162
|
+
rounds: 'rounds',
|
|
163
|
+
results: 'results',
|
|
164
|
+
matchId: 'matchId',
|
|
165
|
+
trucoWinnerIdx: 'trucoWinnerIdx',
|
|
166
|
+
envidoWinnerIdx: 'envidoWinnerIdx',
|
|
167
|
+
florWinnerIdx: 'florWinnerIdx',
|
|
168
|
+
bitcoinHash: 'bitcoinHash',
|
|
169
|
+
bitcoinHeight: 'bitcoinHeight'
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
exports.Prisma.MatchPlayerScalarFieldEnum = {
|
|
173
|
+
id: 'id',
|
|
174
|
+
createdAt: 'createdAt',
|
|
175
|
+
updatedAt: 'updatedAt',
|
|
176
|
+
idx: 'idx',
|
|
177
|
+
name: 'name',
|
|
178
|
+
accountId: 'accountId',
|
|
179
|
+
session: 'session',
|
|
180
|
+
teamIdx: 'teamIdx',
|
|
181
|
+
satsPaid: 'satsPaid',
|
|
182
|
+
satsReceived: 'satsReceived',
|
|
183
|
+
payRequestId: 'payRequestId',
|
|
184
|
+
bot: 'bot',
|
|
185
|
+
matchId: 'matchId'
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
exports.Prisma.SortOrder = {
|
|
189
|
+
asc: 'asc',
|
|
190
|
+
desc: 'desc'
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
exports.Prisma.JsonNullValueInput = {
|
|
194
|
+
JsonNull: Prisma.JsonNull
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
exports.Prisma.NullsOrder = {
|
|
198
|
+
first: 'first',
|
|
199
|
+
last: 'last'
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
exports.Prisma.QueryMode = {
|
|
203
|
+
default: 'default',
|
|
204
|
+
insensitive: 'insensitive'
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
208
|
+
DbNull: Prisma.DbNull,
|
|
209
|
+
JsonNull: Prisma.JsonNull,
|
|
210
|
+
AnyNull: Prisma.AnyNull
|
|
211
|
+
};
|
|
212
|
+
exports.EMatchState = exports.$Enums.EMatchState = {
|
|
213
|
+
UNREADY: 'UNREADY',
|
|
214
|
+
READY: 'READY',
|
|
215
|
+
STARTED: 'STARTED',
|
|
216
|
+
FINISHED: 'FINISHED'
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
exports.Prisma.ModelName = {
|
|
220
|
+
UserStats: 'UserStats',
|
|
221
|
+
Match: 'Match',
|
|
222
|
+
MatchBet: 'MatchBet',
|
|
223
|
+
MatchHand: 'MatchHand',
|
|
224
|
+
MatchPlayer: 'MatchPlayer'
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* This is a stub Prisma Client that will error at runtime if called.
|
|
229
|
+
*/
|
|
230
|
+
class PrismaClient {
|
|
231
|
+
constructor() {
|
|
232
|
+
return new Proxy(this, {
|
|
233
|
+
get(target, prop) {
|
|
234
|
+
let message
|
|
235
|
+
const runtime = getRuntime()
|
|
236
|
+
if (runtime.isEdge) {
|
|
237
|
+
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
238
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
239
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
240
|
+
`;
|
|
241
|
+
} else {
|
|
242
|
+
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message += `
|
|
246
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
|
247
|
+
|
|
248
|
+
throw new Error(message)
|
|
249
|
+
}
|
|
250
|
+
})
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
exports.PrismaClient = PrismaClient
|
|
255
|
+
|
|
256
|
+
Object.assign(exports, Prisma)
|
|
Binary file
|