trucoshi 2.2.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +18 -2
- package/dist/types.js +2 -0
- package/package.json +9 -6
- package/prisma/client/index-browser.d.ts +184 -0
- package/prisma/client/index-browser.js +203 -0
- package/prisma/client/index.d.ts +8237 -0
- package/prisma/client/index.js +247 -0
- package/prisma/client/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/prisma/client/package.json +6 -0
- package/prisma/client/runtime/index-browser.d.ts +322 -0
- package/prisma/client/runtime/index-browser.js +2410 -0
- package/prisma/client/runtime/index.d.ts +2716 -0
- package/prisma/client/runtime/library.d.ts +1 -0
- package/prisma/client/runtime/library.js +209 -0
- package/prisma/client/schema.prisma +89 -0
- package/prisma/migrations/20240109031536_init/migration.sql +82 -0
- package/prisma/migrations/20240109033400_truco_winner_optional/migration.sql +2 -0
- package/prisma/migrations/20240110222804_player_session/migration.sql +3 -0
- package/prisma/migrations/20240110222816_remove_default/migration.sql +2 -0
- package/prisma/migrations/20240111032135_match_session_id/migration.sql +2 -0
- package/prisma/migrations/20240111032250_remove_match_session_id/migration.sql +8 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +89 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
PrismaClientKnownRequestError,
|
|
6
|
+
PrismaClientUnknownRequestError,
|
|
7
|
+
PrismaClientRustPanicError,
|
|
8
|
+
PrismaClientInitializationError,
|
|
9
|
+
PrismaClientValidationError,
|
|
10
|
+
NotFoundError,
|
|
11
|
+
decompressFromBase64,
|
|
12
|
+
getPrismaClient,
|
|
13
|
+
sqltag,
|
|
14
|
+
empty,
|
|
15
|
+
join,
|
|
16
|
+
raw,
|
|
17
|
+
Decimal,
|
|
18
|
+
Debug,
|
|
19
|
+
objectEnumValues,
|
|
20
|
+
makeStrictEnum,
|
|
21
|
+
Extensions,
|
|
22
|
+
warnOnce,
|
|
23
|
+
defineDmmfProperty,
|
|
24
|
+
} = require('./runtime/library')
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
const Prisma = {}
|
|
28
|
+
|
|
29
|
+
exports.Prisma = Prisma
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Prisma Client JS version: 4.14.1
|
|
33
|
+
* Query Engine version: d9a4c5988f480fa576d43970d5a23641aa77bc9c
|
|
34
|
+
*/
|
|
35
|
+
Prisma.prismaVersion = {
|
|
36
|
+
client: "4.14.1",
|
|
37
|
+
engine: "d9a4c5988f480fa576d43970d5a23641aa77bc9c"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
41
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
42
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
43
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
44
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
45
|
+
Prisma.NotFoundError = NotFoundError
|
|
46
|
+
Prisma.Decimal = Decimal
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Re-export of sql-template-tag
|
|
50
|
+
*/
|
|
51
|
+
Prisma.sql = sqltag
|
|
52
|
+
Prisma.empty = empty
|
|
53
|
+
Prisma.join = join
|
|
54
|
+
Prisma.raw = raw
|
|
55
|
+
Prisma.validator = () => (val) => val
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Shorthand utilities for JSON filtering
|
|
60
|
+
*/
|
|
61
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
62
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
63
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
64
|
+
|
|
65
|
+
Prisma.NullTypes = {
|
|
66
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
67
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
68
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
const path = require('path')
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Enums
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
79
|
+
DbNull: Prisma.DbNull,
|
|
80
|
+
JsonNull: Prisma.JsonNull,
|
|
81
|
+
AnyNull: Prisma.AnyNull
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
exports.Prisma.JsonNullValueInput = {
|
|
85
|
+
JsonNull: Prisma.JsonNull
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.Prisma.MatchBetScalarFieldEnum = {
|
|
89
|
+
id: 'id',
|
|
90
|
+
createdAt: 'createdAt',
|
|
91
|
+
updatedAt: 'updatedAt',
|
|
92
|
+
matchId: 'matchId',
|
|
93
|
+
satsPerPlayer: 'satsPerPlayer',
|
|
94
|
+
allPlayersPaid: 'allPlayersPaid',
|
|
95
|
+
winnerAwarded: 'winnerAwarded'
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.Prisma.MatchHandScalarFieldEnum = {
|
|
99
|
+
id: 'id',
|
|
100
|
+
createdAt: 'createdAt',
|
|
101
|
+
updatedAt: 'updatedAt',
|
|
102
|
+
idx: 'idx',
|
|
103
|
+
rounds: 'rounds',
|
|
104
|
+
results: 'results',
|
|
105
|
+
matchId: 'matchId',
|
|
106
|
+
trucoWinnerIdx: 'trucoWinnerIdx',
|
|
107
|
+
envidoWinnerIdx: 'envidoWinnerIdx',
|
|
108
|
+
florWinnerIdx: 'florWinnerIdx'
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
exports.Prisma.MatchPlayerScalarFieldEnum = {
|
|
112
|
+
id: 'id',
|
|
113
|
+
createdAt: 'createdAt',
|
|
114
|
+
updatedAt: 'updatedAt',
|
|
115
|
+
idx: 'idx',
|
|
116
|
+
name: 'name',
|
|
117
|
+
accountId: 'accountId',
|
|
118
|
+
session: 'session',
|
|
119
|
+
teamIdx: 'teamIdx',
|
|
120
|
+
satsPaid: 'satsPaid',
|
|
121
|
+
satsReceived: 'satsReceived',
|
|
122
|
+
payRequestId: 'payRequestId',
|
|
123
|
+
matchId: 'matchId'
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
exports.Prisma.MatchScalarFieldEnum = {
|
|
127
|
+
id: 'id',
|
|
128
|
+
createdAt: 'createdAt',
|
|
129
|
+
updatedAt: 'updatedAt',
|
|
130
|
+
sessionId: 'sessionId',
|
|
131
|
+
state: 'state',
|
|
132
|
+
ownerAccountId: 'ownerAccountId',
|
|
133
|
+
options: 'options',
|
|
134
|
+
results: 'results',
|
|
135
|
+
winnerIdx: 'winnerIdx'
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
exports.Prisma.QueryMode = {
|
|
139
|
+
default: 'default',
|
|
140
|
+
insensitive: 'insensitive'
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
exports.Prisma.SortOrder = {
|
|
144
|
+
asc: 'asc',
|
|
145
|
+
desc: 'desc'
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
149
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
150
|
+
ReadCommitted: 'ReadCommitted',
|
|
151
|
+
RepeatableRead: 'RepeatableRead',
|
|
152
|
+
Serializable: 'Serializable'
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
exports.Prisma.UserStatsScalarFieldEnum = {
|
|
156
|
+
id: 'id',
|
|
157
|
+
accountId: 'accountId',
|
|
158
|
+
win: 'win',
|
|
159
|
+
loss: 'loss',
|
|
160
|
+
satsBet: 'satsBet',
|
|
161
|
+
satsWon: 'satsWon',
|
|
162
|
+
satsLost: 'satsLost'
|
|
163
|
+
};
|
|
164
|
+
exports.EMatchState = {
|
|
165
|
+
UNREADY: 'UNREADY',
|
|
166
|
+
READY: 'READY',
|
|
167
|
+
STARTED: 'STARTED',
|
|
168
|
+
FINISHED: 'FINISHED'
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports.Prisma.ModelName = {
|
|
172
|
+
UserStats: 'UserStats',
|
|
173
|
+
Match: 'Match',
|
|
174
|
+
MatchBet: 'MatchBet',
|
|
175
|
+
MatchHand: 'MatchHand',
|
|
176
|
+
MatchPlayer: 'MatchPlayer'
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Create the Client
|
|
180
|
+
*/
|
|
181
|
+
const config = {
|
|
182
|
+
"generator": {
|
|
183
|
+
"name": "distClient",
|
|
184
|
+
"provider": {
|
|
185
|
+
"fromEnvVar": null,
|
|
186
|
+
"value": "prisma-client-js"
|
|
187
|
+
},
|
|
188
|
+
"output": {
|
|
189
|
+
"value": "/home/fran/Workspace/trucoshi/prisma/client",
|
|
190
|
+
"fromEnvVar": null
|
|
191
|
+
},
|
|
192
|
+
"config": {
|
|
193
|
+
"engineType": "library"
|
|
194
|
+
},
|
|
195
|
+
"binaryTargets": [],
|
|
196
|
+
"previewFeatures": [],
|
|
197
|
+
"isCustomOutput": true
|
|
198
|
+
},
|
|
199
|
+
"relativeEnvPaths": {
|
|
200
|
+
"rootEnvPath": "../../.env",
|
|
201
|
+
"schemaEnvPath": "../../.env"
|
|
202
|
+
},
|
|
203
|
+
"relativePath": "..",
|
|
204
|
+
"clientVersion": "4.14.1",
|
|
205
|
+
"engineVersion": "d9a4c5988f480fa576d43970d5a23641aa77bc9c",
|
|
206
|
+
"datasourceNames": [
|
|
207
|
+
"db"
|
|
208
|
+
],
|
|
209
|
+
"activeProvider": "postgresql",
|
|
210
|
+
"dataProxy": false,
|
|
211
|
+
"postinstall": false
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const fs = require('fs')
|
|
215
|
+
|
|
216
|
+
config.dirname = __dirname
|
|
217
|
+
if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
|
218
|
+
warnOnce('bundled-warning-1', 'Your generated Prisma Client could not immediately find its `schema.prisma`, falling back to finding it via the current working directory.')
|
|
219
|
+
warnOnce('bundled-warning-2', 'We are interested in learning about your project setup. We\'d appreciate if you could take the time to share some information with us.')
|
|
220
|
+
warnOnce('bundled-warning-3', 'Please help us by answering a few questions: https://pris.ly/bundler-investigation')
|
|
221
|
+
config.dirname = path.join(process.cwd(), "prisma/client")
|
|
222
|
+
config.isBundled = true
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"UserStats\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"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\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"win\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"loss\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsBet\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsWon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsLost\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Match\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"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\",\"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\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"sessionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"state\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"EMatchState\",\"default\":\"UNREADY\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ownerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"options\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"default\":\"{}\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"results\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"default\":\"[{\\\"buenas\\\": 0,\\\"malas\\\": 0 },{ \\\"buenas\\\": 0,\\\"malas\\\": 0 }]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"winnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"players\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MatchPlayer\",\"relationName\":\"MatchToMatchPlayer\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hands\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MatchHand\",\"relationName\":\"MatchToMatchHand\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"bet\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MatchBet\",\"relationName\":\"MatchToMatchBet\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MatchBet\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"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\",\"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\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"match\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Match\",\"relationName\":\"MatchToMatchBet\",\"relationFromFields\":[\"matchId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"matchId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsPerPlayer\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"allPlayersPaid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"winnerAwarded\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MatchHand\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"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\",\"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\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"idx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"rounds\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"default\":\"[[]]\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"results\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Json\",\"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\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"match\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Match\",\"relationName\":\"MatchToMatchHand\",\"relationFromFields\":[\"matchId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"trucoWinnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"envidoWinnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"florWinnerIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MatchPlayer\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"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\",\"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\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"idx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"Satoshi\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"teamIdx\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsPaid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"satsReceived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"payRequestId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"matchId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"match\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Match\",\"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\":{}}")
|
|
226
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
const { warnEnvConflicts } = require('./runtime/library')
|
|
233
|
+
|
|
234
|
+
warnEnvConflicts({
|
|
235
|
+
rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath),
|
|
236
|
+
schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath)
|
|
237
|
+
})
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
const PrismaClient = getPrismaClient(config)
|
|
241
|
+
exports.PrismaClient = PrismaClient
|
|
242
|
+
Object.assign(exports, Prisma)
|
|
243
|
+
|
|
244
|
+
path.join(__dirname, "libquery_engine-debian-openssl-1.1.x.so.node");
|
|
245
|
+
path.join(process.cwd(), "prisma/client/libquery_engine-debian-openssl-1.1.x.so.node")
|
|
246
|
+
path.join(__dirname, "schema.prisma");
|
|
247
|
+
path.join(process.cwd(), "prisma/client/schema.prisma")
|
|
Binary file
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
declare class AnyNull extends NullTypesEnumValue {
|
|
2
|
+
}
|
|
3
|
+
|
|
4
|
+
declare class DbNull extends NullTypesEnumValue {
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare namespace Decimal {
|
|
8
|
+
export type Constructor = typeof Decimal;
|
|
9
|
+
export type Instance = Decimal;
|
|
10
|
+
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
11
|
+
export type Modulo = Rounding | 9;
|
|
12
|
+
export type Value = string | number | Decimal;
|
|
13
|
+
|
|
14
|
+
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
|
15
|
+
export interface Config {
|
|
16
|
+
precision?: number;
|
|
17
|
+
rounding?: Rounding;
|
|
18
|
+
toExpNeg?: number;
|
|
19
|
+
toExpPos?: number;
|
|
20
|
+
minE?: number;
|
|
21
|
+
maxE?: number;
|
|
22
|
+
crypto?: boolean;
|
|
23
|
+
modulo?: Modulo;
|
|
24
|
+
defaults?: boolean;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare class Decimal {
|
|
29
|
+
readonly d: number[];
|
|
30
|
+
readonly e: number;
|
|
31
|
+
readonly s: number;
|
|
32
|
+
|
|
33
|
+
constructor(n: Decimal.Value);
|
|
34
|
+
|
|
35
|
+
absoluteValue(): Decimal;
|
|
36
|
+
abs(): Decimal;
|
|
37
|
+
|
|
38
|
+
ceil(): Decimal;
|
|
39
|
+
|
|
40
|
+
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
41
|
+
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
42
|
+
|
|
43
|
+
comparedTo(n: Decimal.Value): number;
|
|
44
|
+
cmp(n: Decimal.Value): number;
|
|
45
|
+
|
|
46
|
+
cosine(): Decimal;
|
|
47
|
+
cos(): Decimal;
|
|
48
|
+
|
|
49
|
+
cubeRoot(): Decimal;
|
|
50
|
+
cbrt(): Decimal;
|
|
51
|
+
|
|
52
|
+
decimalPlaces(): number;
|
|
53
|
+
dp(): number;
|
|
54
|
+
|
|
55
|
+
dividedBy(n: Decimal.Value): Decimal;
|
|
56
|
+
div(n: Decimal.Value): Decimal;
|
|
57
|
+
|
|
58
|
+
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
|
59
|
+
divToInt(n: Decimal.Value): Decimal;
|
|
60
|
+
|
|
61
|
+
equals(n: Decimal.Value): boolean;
|
|
62
|
+
eq(n: Decimal.Value): boolean;
|
|
63
|
+
|
|
64
|
+
floor(): Decimal;
|
|
65
|
+
|
|
66
|
+
greaterThan(n: Decimal.Value): boolean;
|
|
67
|
+
gt(n: Decimal.Value): boolean;
|
|
68
|
+
|
|
69
|
+
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
|
70
|
+
gte(n: Decimal.Value): boolean;
|
|
71
|
+
|
|
72
|
+
hyperbolicCosine(): Decimal;
|
|
73
|
+
cosh(): Decimal;
|
|
74
|
+
|
|
75
|
+
hyperbolicSine(): Decimal;
|
|
76
|
+
sinh(): Decimal;
|
|
77
|
+
|
|
78
|
+
hyperbolicTangent(): Decimal;
|
|
79
|
+
tanh(): Decimal;
|
|
80
|
+
|
|
81
|
+
inverseCosine(): Decimal;
|
|
82
|
+
acos(): Decimal;
|
|
83
|
+
|
|
84
|
+
inverseHyperbolicCosine(): Decimal;
|
|
85
|
+
acosh(): Decimal;
|
|
86
|
+
|
|
87
|
+
inverseHyperbolicSine(): Decimal;
|
|
88
|
+
asinh(): Decimal;
|
|
89
|
+
|
|
90
|
+
inverseHyperbolicTangent(): Decimal;
|
|
91
|
+
atanh(): Decimal;
|
|
92
|
+
|
|
93
|
+
inverseSine(): Decimal;
|
|
94
|
+
asin(): Decimal;
|
|
95
|
+
|
|
96
|
+
inverseTangent(): Decimal;
|
|
97
|
+
atan(): Decimal;
|
|
98
|
+
|
|
99
|
+
isFinite(): boolean;
|
|
100
|
+
|
|
101
|
+
isInteger(): boolean;
|
|
102
|
+
isInt(): boolean;
|
|
103
|
+
|
|
104
|
+
isNaN(): boolean;
|
|
105
|
+
|
|
106
|
+
isNegative(): boolean;
|
|
107
|
+
isNeg(): boolean;
|
|
108
|
+
|
|
109
|
+
isPositive(): boolean;
|
|
110
|
+
isPos(): boolean;
|
|
111
|
+
|
|
112
|
+
isZero(): boolean;
|
|
113
|
+
|
|
114
|
+
lessThan(n: Decimal.Value): boolean;
|
|
115
|
+
lt(n: Decimal.Value): boolean;
|
|
116
|
+
|
|
117
|
+
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
|
118
|
+
lte(n: Decimal.Value): boolean;
|
|
119
|
+
|
|
120
|
+
logarithm(n?: Decimal.Value): Decimal;
|
|
121
|
+
log(n?: Decimal.Value): Decimal;
|
|
122
|
+
|
|
123
|
+
minus(n: Decimal.Value): Decimal;
|
|
124
|
+
sub(n: Decimal.Value): Decimal;
|
|
125
|
+
|
|
126
|
+
modulo(n: Decimal.Value): Decimal;
|
|
127
|
+
mod(n: Decimal.Value): Decimal;
|
|
128
|
+
|
|
129
|
+
naturalExponential(): Decimal;
|
|
130
|
+
exp(): Decimal;
|
|
131
|
+
|
|
132
|
+
naturalLogarithm(): Decimal;
|
|
133
|
+
ln(): Decimal;
|
|
134
|
+
|
|
135
|
+
negated(): Decimal;
|
|
136
|
+
neg(): Decimal;
|
|
137
|
+
|
|
138
|
+
plus(n: Decimal.Value): Decimal;
|
|
139
|
+
add(n: Decimal.Value): Decimal;
|
|
140
|
+
|
|
141
|
+
precision(includeZeros?: boolean): number;
|
|
142
|
+
sd(includeZeros?: boolean): number;
|
|
143
|
+
|
|
144
|
+
round(): Decimal;
|
|
145
|
+
|
|
146
|
+
sine() : Decimal;
|
|
147
|
+
sin() : Decimal;
|
|
148
|
+
|
|
149
|
+
squareRoot(): Decimal;
|
|
150
|
+
sqrt(): Decimal;
|
|
151
|
+
|
|
152
|
+
tangent() : Decimal;
|
|
153
|
+
tan() : Decimal;
|
|
154
|
+
|
|
155
|
+
times(n: Decimal.Value): Decimal;
|
|
156
|
+
mul(n: Decimal.Value) : Decimal;
|
|
157
|
+
|
|
158
|
+
toBinary(significantDigits?: number): string;
|
|
159
|
+
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
160
|
+
|
|
161
|
+
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
|
162
|
+
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
163
|
+
toDP(decimalPlaces?: number): Decimal;
|
|
164
|
+
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
165
|
+
|
|
166
|
+
toExponential(decimalPlaces?: number): string;
|
|
167
|
+
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
168
|
+
|
|
169
|
+
toFixed(decimalPlaces?: number): string;
|
|
170
|
+
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
171
|
+
|
|
172
|
+
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
|
173
|
+
|
|
174
|
+
toHexadecimal(significantDigits?: number): string;
|
|
175
|
+
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
176
|
+
toHex(significantDigits?: number): string;
|
|
177
|
+
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
|
178
|
+
|
|
179
|
+
toJSON(): string;
|
|
180
|
+
|
|
181
|
+
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
|
182
|
+
|
|
183
|
+
toNumber(): number;
|
|
184
|
+
|
|
185
|
+
toOctal(significantDigits?: number): string;
|
|
186
|
+
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
187
|
+
|
|
188
|
+
toPower(n: Decimal.Value): Decimal;
|
|
189
|
+
pow(n: Decimal.Value): Decimal;
|
|
190
|
+
|
|
191
|
+
toPrecision(significantDigits?: number): string;
|
|
192
|
+
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
193
|
+
|
|
194
|
+
toSignificantDigits(significantDigits?: number): Decimal;
|
|
195
|
+
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
196
|
+
toSD(significantDigits?: number): Decimal;
|
|
197
|
+
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
198
|
+
|
|
199
|
+
toString(): string;
|
|
200
|
+
|
|
201
|
+
truncated(): Decimal;
|
|
202
|
+
trunc(): Decimal;
|
|
203
|
+
|
|
204
|
+
valueOf(): string;
|
|
205
|
+
|
|
206
|
+
static abs(n: Decimal.Value): Decimal;
|
|
207
|
+
static acos(n: Decimal.Value): Decimal;
|
|
208
|
+
static acosh(n: Decimal.Value): Decimal;
|
|
209
|
+
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
210
|
+
static asin(n: Decimal.Value): Decimal;
|
|
211
|
+
static asinh(n: Decimal.Value): Decimal;
|
|
212
|
+
static atan(n: Decimal.Value): Decimal;
|
|
213
|
+
static atanh(n: Decimal.Value): Decimal;
|
|
214
|
+
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
|
215
|
+
static cbrt(n: Decimal.Value): Decimal;
|
|
216
|
+
static ceil(n: Decimal.Value): Decimal;
|
|
217
|
+
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
218
|
+
static clone(object?: Decimal.Config): Decimal.Constructor;
|
|
219
|
+
static config(object: Decimal.Config): Decimal.Constructor;
|
|
220
|
+
static cos(n: Decimal.Value): Decimal;
|
|
221
|
+
static cosh(n: Decimal.Value): Decimal;
|
|
222
|
+
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
223
|
+
static exp(n: Decimal.Value): Decimal;
|
|
224
|
+
static floor(n: Decimal.Value): Decimal;
|
|
225
|
+
static hypot(...n: Decimal.Value[]): Decimal;
|
|
226
|
+
static isDecimal(object: any): object is Decimal;
|
|
227
|
+
static ln(n: Decimal.Value): Decimal;
|
|
228
|
+
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
|
229
|
+
static log2(n: Decimal.Value): Decimal;
|
|
230
|
+
static log10(n: Decimal.Value): Decimal;
|
|
231
|
+
static max(...n: Decimal.Value[]): Decimal;
|
|
232
|
+
static min(...n: Decimal.Value[]): Decimal;
|
|
233
|
+
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
234
|
+
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
235
|
+
static noConflict(): Decimal.Constructor; // Browser only
|
|
236
|
+
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
|
237
|
+
static random(significantDigits?: number): Decimal;
|
|
238
|
+
static round(n: Decimal.Value): Decimal;
|
|
239
|
+
static set(object: Decimal.Config): Decimal.Constructor;
|
|
240
|
+
static sign(n: Decimal.Value): number;
|
|
241
|
+
static sin(n: Decimal.Value): Decimal;
|
|
242
|
+
static sinh(n: Decimal.Value): Decimal;
|
|
243
|
+
static sqrt(n: Decimal.Value): Decimal;
|
|
244
|
+
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
245
|
+
static sum(...n: Decimal.Value[]): Decimal;
|
|
246
|
+
static tan(n: Decimal.Value): Decimal;
|
|
247
|
+
static tanh(n: Decimal.Value): Decimal;
|
|
248
|
+
static trunc(n: Decimal.Value): Decimal;
|
|
249
|
+
|
|
250
|
+
static readonly default?: Decimal.Constructor;
|
|
251
|
+
static readonly Decimal?: Decimal.Constructor;
|
|
252
|
+
|
|
253
|
+
static readonly precision: number;
|
|
254
|
+
static readonly rounding: Decimal.Rounding;
|
|
255
|
+
static readonly toExpNeg: number;
|
|
256
|
+
static readonly toExpPos: number;
|
|
257
|
+
static readonly minE: number;
|
|
258
|
+
static readonly maxE: number;
|
|
259
|
+
static readonly crypto: boolean;
|
|
260
|
+
static readonly modulo: Decimal.Modulo;
|
|
261
|
+
|
|
262
|
+
static readonly ROUND_UP: 0;
|
|
263
|
+
static readonly ROUND_DOWN: 1;
|
|
264
|
+
static readonly ROUND_CEIL: 2;
|
|
265
|
+
static readonly ROUND_FLOOR: 3;
|
|
266
|
+
static readonly ROUND_HALF_UP: 4;
|
|
267
|
+
static readonly ROUND_HALF_DOWN: 5;
|
|
268
|
+
static readonly ROUND_HALF_EVEN: 6;
|
|
269
|
+
static readonly ROUND_HALF_CEIL: 7;
|
|
270
|
+
static readonly ROUND_HALF_FLOOR: 8;
|
|
271
|
+
static readonly EUCLID: 9;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare class JsonNull extends NullTypesEnumValue {
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Generates more strict variant of an enum which, unlike regular enum,
|
|
279
|
+
* throws on non-existing property access. This can be useful in following situations:
|
|
280
|
+
* - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
|
|
281
|
+
* - enum values are generated dynamically from DMMF.
|
|
282
|
+
*
|
|
283
|
+
* In that case, if using normal enums and no compile-time typechecking, using non-existing property
|
|
284
|
+
* will result in `undefined` value being used, which will be accepted. Using strict enum
|
|
285
|
+
* in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
|
|
286
|
+
*
|
|
287
|
+
* Note: if you need to check for existence of a value in the enum you can still use either
|
|
288
|
+
* `in` operator or `hasOwnProperty` function.
|
|
289
|
+
*
|
|
290
|
+
* @param definition
|
|
291
|
+
* @returns
|
|
292
|
+
*/
|
|
293
|
+
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
|
294
|
+
|
|
295
|
+
declare class NullTypesEnumValue extends ObjectEnumValue {
|
|
296
|
+
_getNamespace(): string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Base class for unique values of object-valued enums.
|
|
301
|
+
*/
|
|
302
|
+
declare abstract class ObjectEnumValue {
|
|
303
|
+
constructor(arg?: symbol);
|
|
304
|
+
abstract _getNamespace(): string;
|
|
305
|
+
_getName(): string;
|
|
306
|
+
toString(): string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export declare const objectEnumValues: {
|
|
310
|
+
classes: {
|
|
311
|
+
DbNull: typeof DbNull;
|
|
312
|
+
JsonNull: typeof JsonNull;
|
|
313
|
+
AnyNull: typeof AnyNull;
|
|
314
|
+
};
|
|
315
|
+
instances: {
|
|
316
|
+
DbNull: DbNull;
|
|
317
|
+
JsonNull: JsonNull;
|
|
318
|
+
AnyNull: AnyNull;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
export { }
|