trucoshi 3.0.0 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,205 +0,0 @@
1
-
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
4
- const {
5
- Decimal,
6
- objectEnumValues,
7
- makeStrictEnum
8
- } = require('./runtime/index-browser')
9
-
10
-
11
- const Prisma = {}
12
-
13
- exports.Prisma = Prisma
14
-
15
- /**
16
- * Prisma Client JS version: 4.14.1
17
- * Query Engine version: d9a4c5988f480fa576d43970d5a23641aa77bc9c
18
- */
19
- Prisma.prismaVersion = {
20
- client: "4.14.1",
21
- engine: "d9a4c5988f480fa576d43970d5a23641aa77bc9c"
22
- }
23
-
24
- Prisma.PrismaClientKnownRequestError = () => {
25
- throw new Error(`PrismaClientKnownRequestError is unable to be run in the browser.
26
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
27
- )};
28
- Prisma.PrismaClientUnknownRequestError = () => {
29
- throw new Error(`PrismaClientUnknownRequestError is unable to be run in the browser.
30
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
31
- )}
32
- Prisma.PrismaClientRustPanicError = () => {
33
- throw new Error(`PrismaClientRustPanicError is unable to be run in the browser.
34
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
35
- )}
36
- Prisma.PrismaClientInitializationError = () => {
37
- throw new Error(`PrismaClientInitializationError is unable to be run in the browser.
38
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
39
- )}
40
- Prisma.PrismaClientValidationError = () => {
41
- throw new Error(`PrismaClientValidationError is unable to be run in the browser.
42
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
43
- )}
44
- Prisma.NotFoundError = () => {
45
- throw new Error(`NotFoundError is unable to be run in the browser.
46
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
47
- )}
48
- Prisma.Decimal = Decimal
49
-
50
- /**
51
- * Re-export of sql-template-tag
52
- */
53
- Prisma.sql = () => {
54
- throw new Error(`sqltag is unable to be run in the browser.
55
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
56
- )}
57
- Prisma.empty = () => {
58
- throw new Error(`empty is unable to be run in the browser.
59
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
60
- )}
61
- Prisma.join = () => {
62
- throw new Error(`join is unable to be run in the browser.
63
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
64
- )}
65
- Prisma.raw = () => {
66
- throw new Error(`raw is unable to be run in the browser.
67
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
68
- )}
69
- Prisma.validator = () => (val) => val
70
-
71
-
72
- /**
73
- * Shorthand utilities for JSON filtering
74
- */
75
- Prisma.DbNull = objectEnumValues.instances.DbNull
76
- Prisma.JsonNull = objectEnumValues.instances.JsonNull
77
- Prisma.AnyNull = objectEnumValues.instances.AnyNull
78
-
79
- Prisma.NullTypes = {
80
- DbNull: objectEnumValues.classes.DbNull,
81
- JsonNull: objectEnumValues.classes.JsonNull,
82
- AnyNull: objectEnumValues.classes.AnyNull
83
- }
84
-
85
- /**
86
- * Enums
87
- */
88
-
89
- exports.Prisma.JsonNullValueFilter = {
90
- DbNull: Prisma.DbNull,
91
- JsonNull: Prisma.JsonNull,
92
- AnyNull: Prisma.AnyNull
93
- };
94
-
95
- exports.Prisma.JsonNullValueInput = {
96
- JsonNull: Prisma.JsonNull
97
- };
98
-
99
- exports.Prisma.MatchBetScalarFieldEnum = {
100
- id: 'id',
101
- createdAt: 'createdAt',
102
- updatedAt: 'updatedAt',
103
- matchId: 'matchId',
104
- satsPerPlayer: 'satsPerPlayer',
105
- allPlayersPaid: 'allPlayersPaid',
106
- winnerAwarded: 'winnerAwarded'
107
- };
108
-
109
- exports.Prisma.MatchHandScalarFieldEnum = {
110
- id: 'id',
111
- createdAt: 'createdAt',
112
- updatedAt: 'updatedAt',
113
- idx: 'idx',
114
- secret: 'secret',
115
- clientSecrets: 'clientSecrets',
116
- rounds: 'rounds',
117
- results: 'results',
118
- matchId: 'matchId',
119
- trucoWinnerIdx: 'trucoWinnerIdx',
120
- envidoWinnerIdx: 'envidoWinnerIdx',
121
- florWinnerIdx: 'florWinnerIdx'
122
- };
123
-
124
- exports.Prisma.MatchPlayerScalarFieldEnum = {
125
- id: 'id',
126
- createdAt: 'createdAt',
127
- updatedAt: 'updatedAt',
128
- idx: 'idx',
129
- name: 'name',
130
- accountId: 'accountId',
131
- session: 'session',
132
- teamIdx: 'teamIdx',
133
- satsPaid: 'satsPaid',
134
- satsReceived: 'satsReceived',
135
- payRequestId: 'payRequestId',
136
- matchId: 'matchId'
137
- };
138
-
139
- exports.Prisma.MatchScalarFieldEnum = {
140
- id: 'id',
141
- createdAt: 'createdAt',
142
- updatedAt: 'updatedAt',
143
- sessionId: 'sessionId',
144
- state: 'state',
145
- ownerAccountId: 'ownerAccountId',
146
- options: 'options',
147
- results: 'results',
148
- winnerIdx: 'winnerIdx'
149
- };
150
-
151
- exports.Prisma.QueryMode = {
152
- default: 'default',
153
- insensitive: 'insensitive'
154
- };
155
-
156
- exports.Prisma.SortOrder = {
157
- asc: 'asc',
158
- desc: 'desc'
159
- };
160
-
161
- exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
162
- ReadUncommitted: 'ReadUncommitted',
163
- ReadCommitted: 'ReadCommitted',
164
- RepeatableRead: 'RepeatableRead',
165
- Serializable: 'Serializable'
166
- });
167
-
168
- exports.Prisma.UserStatsScalarFieldEnum = {
169
- id: 'id',
170
- accountId: 'accountId',
171
- win: 'win',
172
- loss: 'loss',
173
- satsBet: 'satsBet',
174
- satsWon: 'satsWon',
175
- satsLost: 'satsLost'
176
- };
177
- exports.EMatchState = {
178
- UNREADY: 'UNREADY',
179
- READY: 'READY',
180
- STARTED: 'STARTED',
181
- FINISHED: 'FINISHED'
182
- };
183
-
184
- exports.Prisma.ModelName = {
185
- UserStats: 'UserStats',
186
- Match: 'Match',
187
- MatchBet: 'MatchBet',
188
- MatchHand: 'MatchHand',
189
- MatchPlayer: 'MatchPlayer'
190
- };
191
-
192
- /**
193
- * Create the Client
194
- */
195
- class PrismaClient {
196
- constructor() {
197
- throw new Error(
198
- `PrismaClient is unable to be run in the browser.
199
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
200
- )
201
- }
202
- }
203
- exports.PrismaClient = PrismaClient
204
-
205
- Object.assign(exports, Prisma)
@@ -1,6 +0,0 @@
1
- {
2
- "name": ".prisma/client",
3
- "main": "index.js",
4
- "types": "index.d.ts",
5
- "browser": "index-browser.js"
6
- }
@@ -1,322 +0,0 @@
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 { }