trucoshi 2.5.4 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +27 -104
- package/dist/types.js +1 -55
- package/package.json +7 -2
- package/prisma/client/index.d.ts +73 -0
- package/prisma/client/index.js +3 -1
- package/prisma/client/schema.prisma +2 -0
- package/prisma/client/index-browser.d.ts +0 -184
- package/prisma/client/index-browser.js +0 -203
- package/prisma/client/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/prisma/client/package.json +0 -6
- package/prisma/client/runtime/index-browser.d.ts +0 -322
- package/prisma/client/runtime/index-browser.js +0 -2410
- package/prisma/client/runtime/index.d.ts +0 -2716
- package/prisma/client/runtime/library.d.ts +0 -1
- package/prisma/client/runtime/library.js +0 -209
- package/prisma/migrations/20240109031536_init/migration.sql +0 -82
- package/prisma/migrations/20240109033400_truco_winner_optional/migration.sql +0 -2
- package/prisma/migrations/20240110222804_player_session/migration.sql +0 -3
- package/prisma/migrations/20240110222816_remove_default/migration.sql +0 -2
- package/prisma/migrations/20240111032135_match_session_id/migration.sql +0 -2
- package/prisma/migrations/20240111032250_remove_match_session_id/migration.sql +0 -8
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/schema.prisma +0 -89
|
@@ -1,2716 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TODO
|
|
3
|
-
* @param this
|
|
4
|
-
*/
|
|
5
|
-
declare function $extends(this: Client, extension: Args | ((client: Client) => Client)): Client;
|
|
6
|
-
|
|
7
|
-
declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
|
|
8
|
-
|
|
9
|
-
declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
|
|
10
|
-
|
|
11
|
-
declare class AnyNull extends NullTypesEnumValue {
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare type ApplyExtensionsParams = {
|
|
15
|
-
result: object;
|
|
16
|
-
modelName: string;
|
|
17
|
-
args: JsArgs;
|
|
18
|
-
extensions: MergedExtensionsList;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
declare class Arg {
|
|
22
|
-
key: string;
|
|
23
|
-
value: ArgValue;
|
|
24
|
-
error?: InvalidArgError;
|
|
25
|
-
hasError: boolean;
|
|
26
|
-
isEnum: boolean;
|
|
27
|
-
schemaArg?: DMMF.SchemaArg;
|
|
28
|
-
isNullable: boolean;
|
|
29
|
-
inputType?: DMMF.SchemaArgInputType;
|
|
30
|
-
constructor({ key, value, isEnum, error, schemaArg, inputType }: ArgOptions);
|
|
31
|
-
get [Symbol.toStringTag](): string;
|
|
32
|
-
_toString(value: ArgValue, key: string): string | undefined;
|
|
33
|
-
toString(): string | undefined;
|
|
34
|
-
collectErrors(): ArgError[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare interface ArgError {
|
|
38
|
-
path: string[];
|
|
39
|
-
id?: string;
|
|
40
|
-
error: InvalidArgError;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare interface ArgOptions {
|
|
44
|
-
key: string;
|
|
45
|
-
value: ArgValue;
|
|
46
|
-
isEnum?: boolean;
|
|
47
|
-
error?: InvalidArgError;
|
|
48
|
-
schemaArg?: DMMF.SchemaArg;
|
|
49
|
-
inputType?: DMMF.SchemaArgInputType;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare type Args = OptionalFlat<RequiredArgs>;
|
|
53
|
-
|
|
54
|
-
declare class Args_2 {
|
|
55
|
-
args: Arg[];
|
|
56
|
-
readonly hasInvalidArg: boolean;
|
|
57
|
-
constructor(args?: Arg[]);
|
|
58
|
-
get [Symbol.toStringTag](): string;
|
|
59
|
-
toString(): string;
|
|
60
|
-
collectErrors(): ArgError[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare type Args_3 = InternalArgs;
|
|
64
|
-
|
|
65
|
-
declare type Args_4<T, F extends Operation> = T extends {
|
|
66
|
-
[K: symbol]: {
|
|
67
|
-
types: {
|
|
68
|
-
[K in F]: {
|
|
69
|
-
args: any;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
} ? T[symbol]['types'][F]['args'] : never;
|
|
74
|
-
|
|
75
|
-
declare type ArgValue = string | boolean | number | undefined | Args_2 | string[] | boolean[] | number[] | Args_2[] | null;
|
|
76
|
-
|
|
77
|
-
declare interface AtLeastOneError {
|
|
78
|
-
type: 'atLeastOne';
|
|
79
|
-
key: string;
|
|
80
|
-
inputType: DMMF.InputType;
|
|
81
|
-
atLeastFields?: string[];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare interface AtMostOneError {
|
|
85
|
-
type: 'atMostOne';
|
|
86
|
-
key: string;
|
|
87
|
-
inputType: DMMF.InputType;
|
|
88
|
-
providedKeys: string[];
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Attributes is a map from string to attribute values.
|
|
93
|
-
*
|
|
94
|
-
* Note: only the own enumerable keys are counted as valid attribute keys.
|
|
95
|
-
*/
|
|
96
|
-
declare interface Attributes {
|
|
97
|
-
[attributeKey: string]: AttributeValue | undefined;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Attribute values may be any non-nullish primitive value except an object.
|
|
102
|
-
*
|
|
103
|
-
* null or undefined attribute values are invalid and will result in undefined behavior.
|
|
104
|
-
*/
|
|
105
|
-
declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
106
|
-
|
|
107
|
-
export declare type BaseDMMF = Pick<DMMF.Document, 'datamodel'>;
|
|
108
|
-
|
|
109
|
-
declare type BatchQueryEngineResult<T> = QueryEngineResult<T> | Error;
|
|
110
|
-
|
|
111
|
-
declare type BatchTransactionOptions = {
|
|
112
|
-
isolationLevel?: Transaction.IsolationLevel;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
declare interface BinaryTargetsEnvValue {
|
|
116
|
-
fromEnvVar: null | string;
|
|
117
|
-
value: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
declare interface CallSite {
|
|
121
|
-
getLocation(): LocationInFile | null;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
declare type Cast<A, W> = A extends W ? A : W;
|
|
125
|
-
|
|
126
|
-
declare type Client = ReturnType<typeof getPrismaClient> extends new () => infer T ? T : never;
|
|
127
|
-
|
|
128
|
-
declare type ClientArg = {
|
|
129
|
-
[MethodName in string]: Function;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
declare type ClientArgs = {
|
|
133
|
-
client: ClientArg;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
declare enum ClientEngineType {
|
|
137
|
-
Library = "library",
|
|
138
|
-
Binary = "binary"
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
declare type Compute<T> = T extends Function ? T : {
|
|
142
|
-
[K in keyof T]: T[K];
|
|
143
|
-
} & unknown;
|
|
144
|
-
|
|
145
|
-
declare type ComputedField = {
|
|
146
|
-
name: string;
|
|
147
|
-
needs: string[];
|
|
148
|
-
compute: ResultArgsFieldCompute;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
declare type ComputedFieldsMap = {
|
|
152
|
-
[fieldName: string]: ComputedField;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'sqlserver' | 'jdbc:sqlserver' | 'cockroachdb';
|
|
156
|
-
|
|
157
|
-
declare interface Context {
|
|
158
|
-
/**
|
|
159
|
-
* Get a value from the context.
|
|
160
|
-
*
|
|
161
|
-
* @param key key which identifies a context value
|
|
162
|
-
*/
|
|
163
|
-
getValue(key: symbol): unknown;
|
|
164
|
-
/**
|
|
165
|
-
* Create a new context which inherits from this context and has
|
|
166
|
-
* the given key set to the given value.
|
|
167
|
-
*
|
|
168
|
-
* @param key context key for which to set the value
|
|
169
|
-
* @param value value to set for the given key
|
|
170
|
-
*/
|
|
171
|
-
setValue(key: symbol, value: unknown): Context;
|
|
172
|
-
/**
|
|
173
|
-
* Return a new context which inherits from this context but does
|
|
174
|
-
* not contain a value for the given key.
|
|
175
|
-
*
|
|
176
|
-
* @param key context key for which to clear a value
|
|
177
|
-
*/
|
|
178
|
-
deleteValue(key: symbol): Context;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
declare type Context_2<T> = T extends {
|
|
182
|
-
[K: symbol]: {
|
|
183
|
-
ctx: infer C;
|
|
184
|
-
};
|
|
185
|
-
} ? C & {
|
|
186
|
-
[K in Exclude<keyof T, keyof C> & string]: T[K];
|
|
187
|
-
} & ContextMeta : T & ContextMeta;
|
|
188
|
-
|
|
189
|
-
declare type ContextMeta = {
|
|
190
|
-
name: string;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
declare type Count<O> = {
|
|
194
|
-
[K in keyof O]: Count<number>;
|
|
195
|
-
} & {};
|
|
196
|
-
|
|
197
|
-
declare type CreateMessageOptions = {
|
|
198
|
-
action: Action;
|
|
199
|
-
modelName?: string;
|
|
200
|
-
args?: JsArgs;
|
|
201
|
-
extensions: MergedExtensionsList;
|
|
202
|
-
clientMethod: string;
|
|
203
|
-
callsite?: CallSite;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
declare class DataLoader<T = unknown> {
|
|
207
|
-
private options;
|
|
208
|
-
batches: {
|
|
209
|
-
[key: string]: Job[];
|
|
210
|
-
};
|
|
211
|
-
private tickActive;
|
|
212
|
-
constructor(options: DataLoaderOptions<T>);
|
|
213
|
-
request(request: T): Promise<any>;
|
|
214
|
-
private dispatchBatches;
|
|
215
|
-
get [Symbol.toStringTag](): string;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
declare type DataLoaderOptions<T> = {
|
|
219
|
-
singleLoader: (request: T) => Promise<any>;
|
|
220
|
-
batchLoader: (request: T[]) => Promise<any[]>;
|
|
221
|
-
batchBy: (request: T) => string | undefined;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
declare type Datasource = {
|
|
225
|
-
url?: string;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
declare interface DatasourceOverwrite {
|
|
229
|
-
name: string;
|
|
230
|
-
url?: string;
|
|
231
|
-
env?: string;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
declare type Datasources = {
|
|
235
|
-
[name in string]: Datasource;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
declare class DbNull extends NullTypesEnumValue {
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export declare interface Debug {
|
|
242
|
-
(namespace: string): Debugger;
|
|
243
|
-
disable: () => string;
|
|
244
|
-
enable: (namespace: string) => void;
|
|
245
|
-
enabled: (namespace: string) => boolean;
|
|
246
|
-
log: (...args: any[]) => any;
|
|
247
|
-
formatters: Record<string, ((value: any) => string) | undefined>;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
declare interface Debugger {
|
|
251
|
-
(format: any, ...args: any[]): void;
|
|
252
|
-
log: (...args: any[]) => any;
|
|
253
|
-
extend: (namespace: string, delimiter?: string) => Debugger;
|
|
254
|
-
color: string | number;
|
|
255
|
-
enabled: boolean;
|
|
256
|
-
namespace: string;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export declare namespace Decimal {
|
|
260
|
-
export type Constructor = typeof Decimal;
|
|
261
|
-
export type Instance = Decimal;
|
|
262
|
-
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
263
|
-
export type Modulo = Rounding | 9;
|
|
264
|
-
export type Value = string | number | Decimal;
|
|
265
|
-
|
|
266
|
-
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
|
267
|
-
export interface Config {
|
|
268
|
-
precision?: number;
|
|
269
|
-
rounding?: Rounding;
|
|
270
|
-
toExpNeg?: number;
|
|
271
|
-
toExpPos?: number;
|
|
272
|
-
minE?: number;
|
|
273
|
-
maxE?: number;
|
|
274
|
-
crypto?: boolean;
|
|
275
|
-
modulo?: Modulo;
|
|
276
|
-
defaults?: boolean;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export declare class Decimal {
|
|
281
|
-
readonly d: number[];
|
|
282
|
-
readonly e: number;
|
|
283
|
-
readonly s: number;
|
|
284
|
-
|
|
285
|
-
constructor(n: Decimal.Value);
|
|
286
|
-
|
|
287
|
-
absoluteValue(): Decimal;
|
|
288
|
-
abs(): Decimal;
|
|
289
|
-
|
|
290
|
-
ceil(): Decimal;
|
|
291
|
-
|
|
292
|
-
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
293
|
-
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
294
|
-
|
|
295
|
-
comparedTo(n: Decimal.Value): number;
|
|
296
|
-
cmp(n: Decimal.Value): number;
|
|
297
|
-
|
|
298
|
-
cosine(): Decimal;
|
|
299
|
-
cos(): Decimal;
|
|
300
|
-
|
|
301
|
-
cubeRoot(): Decimal;
|
|
302
|
-
cbrt(): Decimal;
|
|
303
|
-
|
|
304
|
-
decimalPlaces(): number;
|
|
305
|
-
dp(): number;
|
|
306
|
-
|
|
307
|
-
dividedBy(n: Decimal.Value): Decimal;
|
|
308
|
-
div(n: Decimal.Value): Decimal;
|
|
309
|
-
|
|
310
|
-
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
|
311
|
-
divToInt(n: Decimal.Value): Decimal;
|
|
312
|
-
|
|
313
|
-
equals(n: Decimal.Value): boolean;
|
|
314
|
-
eq(n: Decimal.Value): boolean;
|
|
315
|
-
|
|
316
|
-
floor(): Decimal;
|
|
317
|
-
|
|
318
|
-
greaterThan(n: Decimal.Value): boolean;
|
|
319
|
-
gt(n: Decimal.Value): boolean;
|
|
320
|
-
|
|
321
|
-
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
|
322
|
-
gte(n: Decimal.Value): boolean;
|
|
323
|
-
|
|
324
|
-
hyperbolicCosine(): Decimal;
|
|
325
|
-
cosh(): Decimal;
|
|
326
|
-
|
|
327
|
-
hyperbolicSine(): Decimal;
|
|
328
|
-
sinh(): Decimal;
|
|
329
|
-
|
|
330
|
-
hyperbolicTangent(): Decimal;
|
|
331
|
-
tanh(): Decimal;
|
|
332
|
-
|
|
333
|
-
inverseCosine(): Decimal;
|
|
334
|
-
acos(): Decimal;
|
|
335
|
-
|
|
336
|
-
inverseHyperbolicCosine(): Decimal;
|
|
337
|
-
acosh(): Decimal;
|
|
338
|
-
|
|
339
|
-
inverseHyperbolicSine(): Decimal;
|
|
340
|
-
asinh(): Decimal;
|
|
341
|
-
|
|
342
|
-
inverseHyperbolicTangent(): Decimal;
|
|
343
|
-
atanh(): Decimal;
|
|
344
|
-
|
|
345
|
-
inverseSine(): Decimal;
|
|
346
|
-
asin(): Decimal;
|
|
347
|
-
|
|
348
|
-
inverseTangent(): Decimal;
|
|
349
|
-
atan(): Decimal;
|
|
350
|
-
|
|
351
|
-
isFinite(): boolean;
|
|
352
|
-
|
|
353
|
-
isInteger(): boolean;
|
|
354
|
-
isInt(): boolean;
|
|
355
|
-
|
|
356
|
-
isNaN(): boolean;
|
|
357
|
-
|
|
358
|
-
isNegative(): boolean;
|
|
359
|
-
isNeg(): boolean;
|
|
360
|
-
|
|
361
|
-
isPositive(): boolean;
|
|
362
|
-
isPos(): boolean;
|
|
363
|
-
|
|
364
|
-
isZero(): boolean;
|
|
365
|
-
|
|
366
|
-
lessThan(n: Decimal.Value): boolean;
|
|
367
|
-
lt(n: Decimal.Value): boolean;
|
|
368
|
-
|
|
369
|
-
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
|
370
|
-
lte(n: Decimal.Value): boolean;
|
|
371
|
-
|
|
372
|
-
logarithm(n?: Decimal.Value): Decimal;
|
|
373
|
-
log(n?: Decimal.Value): Decimal;
|
|
374
|
-
|
|
375
|
-
minus(n: Decimal.Value): Decimal;
|
|
376
|
-
sub(n: Decimal.Value): Decimal;
|
|
377
|
-
|
|
378
|
-
modulo(n: Decimal.Value): Decimal;
|
|
379
|
-
mod(n: Decimal.Value): Decimal;
|
|
380
|
-
|
|
381
|
-
naturalExponential(): Decimal;
|
|
382
|
-
exp(): Decimal;
|
|
383
|
-
|
|
384
|
-
naturalLogarithm(): Decimal;
|
|
385
|
-
ln(): Decimal;
|
|
386
|
-
|
|
387
|
-
negated(): Decimal;
|
|
388
|
-
neg(): Decimal;
|
|
389
|
-
|
|
390
|
-
plus(n: Decimal.Value): Decimal;
|
|
391
|
-
add(n: Decimal.Value): Decimal;
|
|
392
|
-
|
|
393
|
-
precision(includeZeros?: boolean): number;
|
|
394
|
-
sd(includeZeros?: boolean): number;
|
|
395
|
-
|
|
396
|
-
round(): Decimal;
|
|
397
|
-
|
|
398
|
-
sine() : Decimal;
|
|
399
|
-
sin() : Decimal;
|
|
400
|
-
|
|
401
|
-
squareRoot(): Decimal;
|
|
402
|
-
sqrt(): Decimal;
|
|
403
|
-
|
|
404
|
-
tangent() : Decimal;
|
|
405
|
-
tan() : Decimal;
|
|
406
|
-
|
|
407
|
-
times(n: Decimal.Value): Decimal;
|
|
408
|
-
mul(n: Decimal.Value) : Decimal;
|
|
409
|
-
|
|
410
|
-
toBinary(significantDigits?: number): string;
|
|
411
|
-
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
412
|
-
|
|
413
|
-
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
|
414
|
-
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
415
|
-
toDP(decimalPlaces?: number): Decimal;
|
|
416
|
-
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
417
|
-
|
|
418
|
-
toExponential(decimalPlaces?: number): string;
|
|
419
|
-
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
420
|
-
|
|
421
|
-
toFixed(decimalPlaces?: number): string;
|
|
422
|
-
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
423
|
-
|
|
424
|
-
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
|
425
|
-
|
|
426
|
-
toHexadecimal(significantDigits?: number): string;
|
|
427
|
-
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
428
|
-
toHex(significantDigits?: number): string;
|
|
429
|
-
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
|
430
|
-
|
|
431
|
-
toJSON(): string;
|
|
432
|
-
|
|
433
|
-
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
|
434
|
-
|
|
435
|
-
toNumber(): number;
|
|
436
|
-
|
|
437
|
-
toOctal(significantDigits?: number): string;
|
|
438
|
-
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
439
|
-
|
|
440
|
-
toPower(n: Decimal.Value): Decimal;
|
|
441
|
-
pow(n: Decimal.Value): Decimal;
|
|
442
|
-
|
|
443
|
-
toPrecision(significantDigits?: number): string;
|
|
444
|
-
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
445
|
-
|
|
446
|
-
toSignificantDigits(significantDigits?: number): Decimal;
|
|
447
|
-
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
448
|
-
toSD(significantDigits?: number): Decimal;
|
|
449
|
-
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
450
|
-
|
|
451
|
-
toString(): string;
|
|
452
|
-
|
|
453
|
-
truncated(): Decimal;
|
|
454
|
-
trunc(): Decimal;
|
|
455
|
-
|
|
456
|
-
valueOf(): string;
|
|
457
|
-
|
|
458
|
-
static abs(n: Decimal.Value): Decimal;
|
|
459
|
-
static acos(n: Decimal.Value): Decimal;
|
|
460
|
-
static acosh(n: Decimal.Value): Decimal;
|
|
461
|
-
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
462
|
-
static asin(n: Decimal.Value): Decimal;
|
|
463
|
-
static asinh(n: Decimal.Value): Decimal;
|
|
464
|
-
static atan(n: Decimal.Value): Decimal;
|
|
465
|
-
static atanh(n: Decimal.Value): Decimal;
|
|
466
|
-
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
|
467
|
-
static cbrt(n: Decimal.Value): Decimal;
|
|
468
|
-
static ceil(n: Decimal.Value): Decimal;
|
|
469
|
-
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
470
|
-
static clone(object?: Decimal.Config): Decimal.Constructor;
|
|
471
|
-
static config(object: Decimal.Config): Decimal.Constructor;
|
|
472
|
-
static cos(n: Decimal.Value): Decimal;
|
|
473
|
-
static cosh(n: Decimal.Value): Decimal;
|
|
474
|
-
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
475
|
-
static exp(n: Decimal.Value): Decimal;
|
|
476
|
-
static floor(n: Decimal.Value): Decimal;
|
|
477
|
-
static hypot(...n: Decimal.Value[]): Decimal;
|
|
478
|
-
static isDecimal(object: any): object is Decimal;
|
|
479
|
-
static ln(n: Decimal.Value): Decimal;
|
|
480
|
-
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
|
481
|
-
static log2(n: Decimal.Value): Decimal;
|
|
482
|
-
static log10(n: Decimal.Value): Decimal;
|
|
483
|
-
static max(...n: Decimal.Value[]): Decimal;
|
|
484
|
-
static min(...n: Decimal.Value[]): Decimal;
|
|
485
|
-
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
486
|
-
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
487
|
-
static noConflict(): Decimal.Constructor; // Browser only
|
|
488
|
-
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
|
489
|
-
static random(significantDigits?: number): Decimal;
|
|
490
|
-
static round(n: Decimal.Value): Decimal;
|
|
491
|
-
static set(object: Decimal.Config): Decimal.Constructor;
|
|
492
|
-
static sign(n: Decimal.Value): number;
|
|
493
|
-
static sin(n: Decimal.Value): Decimal;
|
|
494
|
-
static sinh(n: Decimal.Value): Decimal;
|
|
495
|
-
static sqrt(n: Decimal.Value): Decimal;
|
|
496
|
-
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
497
|
-
static sum(...n: Decimal.Value[]): Decimal;
|
|
498
|
-
static tan(n: Decimal.Value): Decimal;
|
|
499
|
-
static tanh(n: Decimal.Value): Decimal;
|
|
500
|
-
static trunc(n: Decimal.Value): Decimal;
|
|
501
|
-
|
|
502
|
-
static readonly default?: Decimal.Constructor;
|
|
503
|
-
static readonly Decimal?: Decimal.Constructor;
|
|
504
|
-
|
|
505
|
-
static readonly precision: number;
|
|
506
|
-
static readonly rounding: Decimal.Rounding;
|
|
507
|
-
static readonly toExpNeg: number;
|
|
508
|
-
static readonly toExpPos: number;
|
|
509
|
-
static readonly minE: number;
|
|
510
|
-
static readonly maxE: number;
|
|
511
|
-
static readonly crypto: boolean;
|
|
512
|
-
static readonly modulo: Decimal.Modulo;
|
|
513
|
-
|
|
514
|
-
static readonly ROUND_UP: 0;
|
|
515
|
-
static readonly ROUND_DOWN: 1;
|
|
516
|
-
static readonly ROUND_CEIL: 2;
|
|
517
|
-
static readonly ROUND_FLOOR: 3;
|
|
518
|
-
static readonly ROUND_HALF_UP: 4;
|
|
519
|
-
static readonly ROUND_HALF_DOWN: 5;
|
|
520
|
-
static readonly ROUND_HALF_EVEN: 6;
|
|
521
|
-
static readonly ROUND_HALF_CEIL: 7;
|
|
522
|
-
static readonly ROUND_HALF_FLOOR: 8;
|
|
523
|
-
static readonly EUCLID: 9;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Interface for any Decimal.js-like library
|
|
528
|
-
* Allows us to accept Decimal.js from different
|
|
529
|
-
* versions and some compatible alternatives
|
|
530
|
-
*/
|
|
531
|
-
export declare interface DecimalJsLike {
|
|
532
|
-
d: number[];
|
|
533
|
-
e: number;
|
|
534
|
-
s: number;
|
|
535
|
-
toFixed(): string;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
export declare const decompressFromBase64: (str: string) => any;
|
|
539
|
-
|
|
540
|
-
declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>;
|
|
541
|
-
|
|
542
|
-
export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void;
|
|
543
|
-
|
|
544
|
-
declare function defineExtension(ext: Args | ((client: Client) => Client)): (client: Client) => Client;
|
|
545
|
-
|
|
546
|
-
declare interface Dictionary<T> {
|
|
547
|
-
[key: string]: T;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
declare type Dictionary_2<T> = {
|
|
551
|
-
[key: string]: T;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
export declare namespace DMMF {
|
|
555
|
-
export interface Document {
|
|
556
|
-
datamodel: Datamodel;
|
|
557
|
-
schema: Schema;
|
|
558
|
-
mappings: Mappings;
|
|
559
|
-
}
|
|
560
|
-
export interface Mappings {
|
|
561
|
-
modelOperations: ModelMapping[];
|
|
562
|
-
otherOperations: {
|
|
563
|
-
read: string[];
|
|
564
|
-
write: string[];
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
export interface OtherOperationMappings {
|
|
568
|
-
read: string[];
|
|
569
|
-
write: string[];
|
|
570
|
-
}
|
|
571
|
-
export interface DatamodelEnum {
|
|
572
|
-
name: string;
|
|
573
|
-
values: EnumValue[];
|
|
574
|
-
dbName?: string | null;
|
|
575
|
-
documentation?: string;
|
|
576
|
-
}
|
|
577
|
-
export interface SchemaEnum {
|
|
578
|
-
name: string;
|
|
579
|
-
values: string[];
|
|
580
|
-
}
|
|
581
|
-
export interface EnumValue {
|
|
582
|
-
name: string;
|
|
583
|
-
dbName: string | null;
|
|
584
|
-
}
|
|
585
|
-
export interface Datamodel {
|
|
586
|
-
models: Model[];
|
|
587
|
-
enums: DatamodelEnum[];
|
|
588
|
-
types: Model[];
|
|
589
|
-
}
|
|
590
|
-
export interface uniqueIndex {
|
|
591
|
-
name: string;
|
|
592
|
-
fields: string[];
|
|
593
|
-
}
|
|
594
|
-
export interface PrimaryKey {
|
|
595
|
-
name: string | null;
|
|
596
|
-
fields: string[];
|
|
597
|
-
}
|
|
598
|
-
export interface Model {
|
|
599
|
-
name: string;
|
|
600
|
-
dbName: string | null;
|
|
601
|
-
fields: Field[];
|
|
602
|
-
uniqueFields: string[][];
|
|
603
|
-
uniqueIndexes: uniqueIndex[];
|
|
604
|
-
documentation?: string;
|
|
605
|
-
primaryKey: PrimaryKey | null;
|
|
606
|
-
isGenerated?: boolean;
|
|
607
|
-
}
|
|
608
|
-
export type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported';
|
|
609
|
-
export type FieldNamespace = 'model' | 'prisma';
|
|
610
|
-
export type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes';
|
|
611
|
-
export interface Field {
|
|
612
|
-
kind: FieldKind;
|
|
613
|
-
name: string;
|
|
614
|
-
isRequired: boolean;
|
|
615
|
-
isList: boolean;
|
|
616
|
-
isUnique: boolean;
|
|
617
|
-
isId: boolean;
|
|
618
|
-
isReadOnly: boolean;
|
|
619
|
-
isGenerated?: boolean;
|
|
620
|
-
isUpdatedAt?: boolean;
|
|
621
|
-
/**
|
|
622
|
-
* Describes the data type in the same the way is is defined in the Prisma schema:
|
|
623
|
-
* BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
|
|
624
|
-
*/
|
|
625
|
-
type: string;
|
|
626
|
-
dbName?: string | null;
|
|
627
|
-
hasDefaultValue: boolean;
|
|
628
|
-
default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
|
|
629
|
-
relationFromFields?: string[];
|
|
630
|
-
relationToFields?: any[];
|
|
631
|
-
relationOnDelete?: string;
|
|
632
|
-
relationName?: string;
|
|
633
|
-
documentation?: string;
|
|
634
|
-
[key: string]: any;
|
|
635
|
-
}
|
|
636
|
-
export interface FieldDefault {
|
|
637
|
-
name: string;
|
|
638
|
-
args: any[];
|
|
639
|
-
}
|
|
640
|
-
export type FieldDefaultScalar = string | boolean | number;
|
|
641
|
-
export interface Schema {
|
|
642
|
-
rootQueryType?: string;
|
|
643
|
-
rootMutationType?: string;
|
|
644
|
-
inputObjectTypes: {
|
|
645
|
-
model?: InputType[];
|
|
646
|
-
prisma: InputType[];
|
|
647
|
-
};
|
|
648
|
-
outputObjectTypes: {
|
|
649
|
-
model: OutputType[];
|
|
650
|
-
prisma: OutputType[];
|
|
651
|
-
};
|
|
652
|
-
enumTypes: {
|
|
653
|
-
model?: SchemaEnum[];
|
|
654
|
-
prisma: SchemaEnum[];
|
|
655
|
-
};
|
|
656
|
-
fieldRefTypes: {
|
|
657
|
-
prisma?: FieldRefType[];
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
export interface Query {
|
|
661
|
-
name: string;
|
|
662
|
-
args: SchemaArg[];
|
|
663
|
-
output: QueryOutput;
|
|
664
|
-
}
|
|
665
|
-
export interface QueryOutput {
|
|
666
|
-
name: string;
|
|
667
|
-
isRequired: boolean;
|
|
668
|
-
isList: boolean;
|
|
669
|
-
}
|
|
670
|
-
export type ArgType = string | InputType | SchemaEnum;
|
|
671
|
-
export interface SchemaArgInputType {
|
|
672
|
-
isList: boolean;
|
|
673
|
-
type: ArgType;
|
|
674
|
-
location: FieldLocation;
|
|
675
|
-
namespace?: FieldNamespace;
|
|
676
|
-
}
|
|
677
|
-
export interface SchemaArg {
|
|
678
|
-
name: string;
|
|
679
|
-
comment?: string;
|
|
680
|
-
isNullable: boolean;
|
|
681
|
-
isRequired: boolean;
|
|
682
|
-
inputTypes: SchemaArgInputType[];
|
|
683
|
-
deprecation?: Deprecation;
|
|
684
|
-
}
|
|
685
|
-
export interface OutputType {
|
|
686
|
-
name: string;
|
|
687
|
-
fields: SchemaField[];
|
|
688
|
-
fieldMap?: Record<string, SchemaField>;
|
|
689
|
-
}
|
|
690
|
-
export interface SchemaField {
|
|
691
|
-
name: string;
|
|
692
|
-
isNullable?: boolean;
|
|
693
|
-
outputType: OutputTypeRef;
|
|
694
|
-
args: SchemaArg[];
|
|
695
|
-
deprecation?: Deprecation;
|
|
696
|
-
documentation?: string;
|
|
697
|
-
}
|
|
698
|
-
export type TypeRefCommon = {
|
|
699
|
-
isList: boolean;
|
|
700
|
-
namespace?: FieldNamespace;
|
|
701
|
-
};
|
|
702
|
-
export type TypeRefScalar = TypeRefCommon & {
|
|
703
|
-
location: 'scalar';
|
|
704
|
-
type: string;
|
|
705
|
-
};
|
|
706
|
-
export type TypeRefOutputObject = TypeRefCommon & {
|
|
707
|
-
location: 'outputObjectTypes';
|
|
708
|
-
type: OutputType | string;
|
|
709
|
-
};
|
|
710
|
-
export type TypeRefEnum = TypeRefCommon & {
|
|
711
|
-
location: 'enumTypes';
|
|
712
|
-
type: SchemaEnum | string;
|
|
713
|
-
};
|
|
714
|
-
export type OutputTypeRef = TypeRefScalar | TypeRefOutputObject | TypeRefEnum;
|
|
715
|
-
export interface Deprecation {
|
|
716
|
-
sinceVersion: string;
|
|
717
|
-
reason: string;
|
|
718
|
-
plannedRemovalVersion?: string;
|
|
719
|
-
}
|
|
720
|
-
export interface InputType {
|
|
721
|
-
name: string;
|
|
722
|
-
constraints: {
|
|
723
|
-
maxNumFields: number | null;
|
|
724
|
-
minNumFields: number | null;
|
|
725
|
-
fields?: string[];
|
|
726
|
-
};
|
|
727
|
-
meta?: {
|
|
728
|
-
source?: string;
|
|
729
|
-
};
|
|
730
|
-
fields: SchemaArg[];
|
|
731
|
-
fieldMap?: Record<string, SchemaArg>;
|
|
732
|
-
}
|
|
733
|
-
export interface FieldRefType {
|
|
734
|
-
name: string;
|
|
735
|
-
allowTypes: FieldRefAllowType[];
|
|
736
|
-
fields: SchemaArg[];
|
|
737
|
-
}
|
|
738
|
-
export type FieldRefAllowType = TypeRefScalar | TypeRefEnum;
|
|
739
|
-
export interface ModelMapping {
|
|
740
|
-
model: string;
|
|
741
|
-
plural: string;
|
|
742
|
-
findUnique?: string | null;
|
|
743
|
-
findUniqueOrThrow?: string | null;
|
|
744
|
-
findFirst?: string | null;
|
|
745
|
-
findFirstOrThrow?: string | null;
|
|
746
|
-
findMany?: string | null;
|
|
747
|
-
create?: string | null;
|
|
748
|
-
createMany?: string | null;
|
|
749
|
-
update?: string | null;
|
|
750
|
-
updateMany?: string | null;
|
|
751
|
-
upsert?: string | null;
|
|
752
|
-
delete?: string | null;
|
|
753
|
-
deleteMany?: string | null;
|
|
754
|
-
aggregate?: string | null;
|
|
755
|
-
groupBy?: string | null;
|
|
756
|
-
count?: string | null;
|
|
757
|
-
findRaw?: string | null;
|
|
758
|
-
aggregateRaw?: string | null;
|
|
759
|
-
}
|
|
760
|
-
export enum ModelAction {
|
|
761
|
-
findUnique = "findUnique",
|
|
762
|
-
findUniqueOrThrow = "findUniqueOrThrow",
|
|
763
|
-
findFirst = "findFirst",
|
|
764
|
-
findFirstOrThrow = "findFirstOrThrow",
|
|
765
|
-
findMany = "findMany",
|
|
766
|
-
create = "create",
|
|
767
|
-
createMany = "createMany",
|
|
768
|
-
update = "update",
|
|
769
|
-
updateMany = "updateMany",
|
|
770
|
-
upsert = "upsert",
|
|
771
|
-
delete = "delete",
|
|
772
|
-
deleteMany = "deleteMany",
|
|
773
|
-
groupBy = "groupBy",
|
|
774
|
-
count = "count",
|
|
775
|
-
aggregate = "aggregate",
|
|
776
|
-
findRaw = "findRaw",
|
|
777
|
-
aggregateRaw = "aggregateRaw"
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
export declare interface DMMFClass extends DMMFDatamodelHelper, DMMFMappingsHelper, DMMFSchemaHelper {
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
export declare class DMMFClass {
|
|
785
|
-
constructor(dmmf: DMMF.Document);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
declare class DMMFDatamodelHelper implements Pick<DMMF.Document, 'datamodel'> {
|
|
789
|
-
datamodel: DMMF.Datamodel;
|
|
790
|
-
datamodelEnumMap: Dictionary<DMMF.DatamodelEnum>;
|
|
791
|
-
modelMap: Dictionary<DMMF.Model>;
|
|
792
|
-
typeMap: Dictionary<DMMF.Model>;
|
|
793
|
-
typeAndModelMap: Dictionary<DMMF.Model>;
|
|
794
|
-
constructor({ datamodel }: Pick<DMMF.Document, 'datamodel'>);
|
|
795
|
-
getDatamodelEnumMap(): Dictionary<DMMF.DatamodelEnum>;
|
|
796
|
-
getModelMap(): Dictionary<DMMF.Model>;
|
|
797
|
-
getTypeMap(): Dictionary<DMMF.Model>;
|
|
798
|
-
getTypeModelMap(): Dictionary<DMMF.Model>;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
declare class DMMFMappingsHelper implements Pick<DMMF.Document, 'mappings'> {
|
|
802
|
-
mappings: DMMF.Mappings;
|
|
803
|
-
mappingsMap: Dictionary<DMMF.ModelMapping>;
|
|
804
|
-
constructor({ mappings }: Pick<DMMF.Document, 'mappings'>);
|
|
805
|
-
getMappingsMap(): Dictionary<DMMF.ModelMapping>;
|
|
806
|
-
getOtherOperationNames(): string[];
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
declare class DMMFSchemaHelper implements Pick<DMMF.Document, 'schema'> {
|
|
810
|
-
schema: DMMF.Schema;
|
|
811
|
-
queryType: DMMF.OutputType;
|
|
812
|
-
mutationType: DMMF.OutputType;
|
|
813
|
-
outputTypes: {
|
|
814
|
-
model: DMMF.OutputType[];
|
|
815
|
-
prisma: DMMF.OutputType[];
|
|
816
|
-
};
|
|
817
|
-
outputTypeMap: Dictionary<DMMF.OutputType>;
|
|
818
|
-
inputObjectTypes: {
|
|
819
|
-
model?: DMMF.InputType[];
|
|
820
|
-
prisma: DMMF.InputType[];
|
|
821
|
-
};
|
|
822
|
-
inputTypeMap: Dictionary<DMMF.InputType>;
|
|
823
|
-
enumMap: Dictionary<DMMF.SchemaEnum>;
|
|
824
|
-
rootFieldMap: Dictionary<DMMF.SchemaField>;
|
|
825
|
-
constructor({ schema }: Pick<DMMF.Document, 'schema'>);
|
|
826
|
-
get [Symbol.toStringTag](): string;
|
|
827
|
-
outputTypeToMergedOutputType: (outputType: DMMF.OutputType) => DMMF.OutputType;
|
|
828
|
-
resolveOutputTypes(): void;
|
|
829
|
-
resolveInputTypes(): void;
|
|
830
|
-
resolveFieldArgumentTypes(): void;
|
|
831
|
-
getQueryType(): DMMF.OutputType;
|
|
832
|
-
getMutationType(): DMMF.OutputType;
|
|
833
|
-
getOutputTypes(): {
|
|
834
|
-
model: DMMF.OutputType[];
|
|
835
|
-
prisma: DMMF.OutputType[];
|
|
836
|
-
};
|
|
837
|
-
getEnumMap(): Dictionary<DMMF.SchemaEnum>;
|
|
838
|
-
hasEnumInNamespace(enumName: string, namespace: 'prisma' | 'model'): boolean;
|
|
839
|
-
getMergedOutputTypeMap(): Dictionary<DMMF.OutputType>;
|
|
840
|
-
getInputTypeMap(): Dictionary<DMMF.InputType>;
|
|
841
|
-
getRootFieldMap(): Dictionary<DMMF.SchemaField>;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
declare class Document_2 {
|
|
845
|
-
readonly type: 'query' | 'mutation';
|
|
846
|
-
readonly children: Field[];
|
|
847
|
-
constructor(type: 'query' | 'mutation', children: Field[]);
|
|
848
|
-
get [Symbol.toStringTag](): string;
|
|
849
|
-
toString(): string;
|
|
850
|
-
validate(select?: any, isTopLevelQuery?: boolean, originalMethod?: string, errorFormat?: 'pretty' | 'minimal' | 'colorless', validationCallsite?: any): void;
|
|
851
|
-
protected printFieldError: ({ error }: FieldError, missingItems: MissingItem[], minimal: boolean) => string | undefined;
|
|
852
|
-
protected printArgError: ({ error, path }: ArgError, hasMissingItems: boolean, minimal: boolean) => string | undefined;
|
|
853
|
-
/**
|
|
854
|
-
* As we're allowing both single objects and array of objects for list inputs, we need to remove incorrect
|
|
855
|
-
* zero indexes from the path
|
|
856
|
-
* @param inputPath e.g. ['where', 'AND', 0, 'id']
|
|
857
|
-
* @param select select object
|
|
858
|
-
*/
|
|
859
|
-
private normalizePath;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
declare interface DocumentInput {
|
|
863
|
-
dmmf: DMMFClass;
|
|
864
|
-
rootTypeName: 'query' | 'mutation';
|
|
865
|
-
rootField: string;
|
|
866
|
-
select?: any;
|
|
867
|
-
modelName?: string;
|
|
868
|
-
extensions: MergedExtensionsList;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* Placeholder value for "no text".
|
|
873
|
-
*/
|
|
874
|
-
export declare const empty: Sql;
|
|
875
|
-
|
|
876
|
-
declare interface EmptyIncludeError {
|
|
877
|
-
type: 'emptyInclude';
|
|
878
|
-
field: DMMF.SchemaField;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
declare interface EmptySelectError {
|
|
882
|
-
type: 'emptySelect';
|
|
883
|
-
field: DMMF.SchemaField;
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
declare type EmptyToUnknown<T> = T;
|
|
887
|
-
|
|
888
|
-
declare abstract class Engine<InteractiveTransactionPayload = unknown> {
|
|
889
|
-
abstract on(event: EngineEventType, listener: (args?: any) => any): void;
|
|
890
|
-
abstract start(): Promise<void>;
|
|
891
|
-
abstract stop(): Promise<void>;
|
|
892
|
-
abstract getDmmf(): Promise<DMMF.Document>;
|
|
893
|
-
abstract version(forceRun?: boolean): Promise<string> | string;
|
|
894
|
-
abstract request<T>(query: EngineQuery, options: RequestOptions<InteractiveTransactionPayload>): Promise<QueryEngineResult<T>>;
|
|
895
|
-
abstract requestBatch<T>(queries: EngineBatchQueries, options: RequestBatchOptions<InteractiveTransactionPayload>): Promise<BatchQueryEngineResult<T>[]>;
|
|
896
|
-
abstract transaction(action: 'start', headers: Transaction.TransactionHeaders, options?: Transaction.Options): Promise<Transaction.InteractiveTransactionInfo<unknown>>;
|
|
897
|
-
abstract transaction(action: 'commit', headers: Transaction.TransactionHeaders, info: Transaction.InteractiveTransactionInfo<unknown>): Promise<void>;
|
|
898
|
-
abstract transaction(action: 'rollback', headers: Transaction.TransactionHeaders, info: Transaction.InteractiveTransactionInfo<unknown>): Promise<void>;
|
|
899
|
-
abstract metrics(options: MetricsOptionsJson): Promise<Metrics>;
|
|
900
|
-
abstract metrics(options: MetricsOptionsPrometheus): Promise<string>;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
declare type EngineBatchQueries = GraphQLQuery[] | JsonQuery[];
|
|
904
|
-
|
|
905
|
-
declare interface EngineConfig {
|
|
906
|
-
cwd: string;
|
|
907
|
-
dirname?: string;
|
|
908
|
-
datamodelPath: string;
|
|
909
|
-
enableDebugLogs?: boolean;
|
|
910
|
-
allowTriggerPanic?: boolean;
|
|
911
|
-
prismaPath?: string;
|
|
912
|
-
generator?: GeneratorConfig;
|
|
913
|
-
datasources?: DatasourceOverwrite[];
|
|
914
|
-
showColors?: boolean;
|
|
915
|
-
logQueries?: boolean;
|
|
916
|
-
logLevel?: 'info' | 'warn';
|
|
917
|
-
env: Record<string, string>;
|
|
918
|
-
flags?: string[];
|
|
919
|
-
clientVersion?: string;
|
|
920
|
-
previewFeatures?: string[];
|
|
921
|
-
engineEndpoint?: string;
|
|
922
|
-
activeProvider?: string;
|
|
923
|
-
logEmitter: EventEmitter;
|
|
924
|
-
engineProtocol: EngineProtocol;
|
|
925
|
-
/**
|
|
926
|
-
* The contents of the schema encoded into a string
|
|
927
|
-
* @remarks only used for the purpose of data proxy
|
|
928
|
-
*/
|
|
929
|
-
inlineSchema?: string;
|
|
930
|
-
/**
|
|
931
|
-
* The contents of the datasource url saved in a string
|
|
932
|
-
* @remarks only used for the purpose of data proxy
|
|
933
|
-
*/
|
|
934
|
-
inlineDatasources?: Record<string, InlineDatasource>;
|
|
935
|
-
/**
|
|
936
|
-
* The string hash that was produced for a given schema
|
|
937
|
-
* @remarks only used for the purpose of data proxy
|
|
938
|
-
*/
|
|
939
|
-
inlineSchemaHash?: string;
|
|
940
|
-
/**
|
|
941
|
-
* The helper for interaction with OTEL tracing
|
|
942
|
-
* @remarks enabling is determined by the client and @prisma/instrumentation package
|
|
943
|
-
*/
|
|
944
|
-
tracingHelper: TracingHelper;
|
|
945
|
-
/**
|
|
946
|
-
* Information about whether we have not found a schema.prisma file in the
|
|
947
|
-
* default location, and that we fell back to finding the schema.prisma file
|
|
948
|
-
* in the current working directory. This usually means it has been bundled.
|
|
949
|
-
*/
|
|
950
|
-
isBundled?: boolean;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
declare type EngineEventType = 'query' | 'info' | 'warn' | 'error' | 'beforeExit';
|
|
954
|
-
|
|
955
|
-
declare type EngineProtocol = 'graphql' | 'json';
|
|
956
|
-
|
|
957
|
-
declare type EngineQuery = GraphQLQuery | JsonQuery;
|
|
958
|
-
|
|
959
|
-
declare type EngineSpan = {
|
|
960
|
-
span: boolean;
|
|
961
|
-
name: string;
|
|
962
|
-
trace_id: string;
|
|
963
|
-
span_id: string;
|
|
964
|
-
parent_span_id: string;
|
|
965
|
-
start_time: [number, number];
|
|
966
|
-
end_time: [number, number];
|
|
967
|
-
attributes?: Record<string, string>;
|
|
968
|
-
links?: {
|
|
969
|
-
trace_id: string;
|
|
970
|
-
span_id: string;
|
|
971
|
-
}[];
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
declare type EngineSpanEvent = {
|
|
975
|
-
span: boolean;
|
|
976
|
-
spans: EngineSpan[];
|
|
977
|
-
};
|
|
978
|
-
|
|
979
|
-
declare interface EnvValue {
|
|
980
|
-
fromEnvVar: null | string;
|
|
981
|
-
value: null | string;
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
declare interface EnvValue_2 {
|
|
985
|
-
fromEnvVar: string | null;
|
|
986
|
-
value: string | null;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
|
|
990
|
-
|
|
991
|
-
declare interface ErrorWithBatchIndex {
|
|
992
|
-
batchRequestIdx?: number;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
declare interface EventEmitter {
|
|
996
|
-
on(event: string, listener: (...args: any[]) => void): unknown;
|
|
997
|
-
emit(event: string, args?: any): boolean;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
declare type Exact<A, W> = (W extends A ? {
|
|
1001
|
-
[K in keyof W]: K extends keyof A ? Exact<A[K], W[K]> : never;
|
|
1002
|
-
} : W) | (A extends Narrowable ? A : never);
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* Defines Exception.
|
|
1006
|
-
*
|
|
1007
|
-
* string or an object with one of (message or name or code) and optional stack
|
|
1008
|
-
*/
|
|
1009
|
-
declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string;
|
|
1010
|
-
|
|
1011
|
-
declare interface ExceptionWithCode {
|
|
1012
|
-
code: string | number;
|
|
1013
|
-
name?: string;
|
|
1014
|
-
message?: string;
|
|
1015
|
-
stack?: string;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
declare interface ExceptionWithMessage {
|
|
1019
|
-
code?: string | number;
|
|
1020
|
-
message: string;
|
|
1021
|
-
name?: string;
|
|
1022
|
-
stack?: string;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
declare interface ExceptionWithName {
|
|
1026
|
-
code?: string | number;
|
|
1027
|
-
message?: string;
|
|
1028
|
-
name: string;
|
|
1029
|
-
stack?: string;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
declare type ExtendedSpanOptions = SpanOptions & {
|
|
1033
|
-
/** The name of the span */
|
|
1034
|
-
name: string;
|
|
1035
|
-
internal?: boolean;
|
|
1036
|
-
middleware?: boolean;
|
|
1037
|
-
/** Whether it propagates context (?=true) */
|
|
1038
|
-
active?: boolean;
|
|
1039
|
-
/** The context to append the span to */
|
|
1040
|
-
context?: Context;
|
|
1041
|
-
};
|
|
1042
|
-
|
|
1043
|
-
declare namespace Extensions {
|
|
1044
|
-
export {
|
|
1045
|
-
defineExtension,
|
|
1046
|
-
getExtensionContext
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
export { Extensions }
|
|
1050
|
-
|
|
1051
|
-
declare namespace Extensions_2 {
|
|
1052
|
-
export {
|
|
1053
|
-
InternalArgs,
|
|
1054
|
-
Args_3 as Args,
|
|
1055
|
-
DefaultArgs,
|
|
1056
|
-
GetResult,
|
|
1057
|
-
GetSelect,
|
|
1058
|
-
GetModel,
|
|
1059
|
-
GetClient,
|
|
1060
|
-
ReadonlySelector,
|
|
1061
|
-
RequiredArgs as UserArgs
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
declare type Fetch = typeof nodeFetch;
|
|
1066
|
-
|
|
1067
|
-
declare class Field {
|
|
1068
|
-
readonly name: string;
|
|
1069
|
-
readonly args?: Args_2;
|
|
1070
|
-
readonly children?: Field[];
|
|
1071
|
-
readonly error?: InvalidFieldError;
|
|
1072
|
-
readonly hasInvalidChild: boolean;
|
|
1073
|
-
readonly hasInvalidArg: boolean;
|
|
1074
|
-
readonly schemaField?: DMMF.SchemaField;
|
|
1075
|
-
constructor({ name, args, children, error, schemaField }: FieldArgs);
|
|
1076
|
-
get [Symbol.toStringTag](): string;
|
|
1077
|
-
toString(): string;
|
|
1078
|
-
collectErrors(prefix?: string): {
|
|
1079
|
-
fieldErrors: FieldError[];
|
|
1080
|
-
argErrors: ArgError[];
|
|
1081
|
-
};
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
declare interface FieldArgs {
|
|
1085
|
-
name: string;
|
|
1086
|
-
schemaField?: DMMF.SchemaField;
|
|
1087
|
-
args?: Args_2;
|
|
1088
|
-
children?: Field[];
|
|
1089
|
-
error?: InvalidFieldError;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
declare interface FieldError {
|
|
1093
|
-
path: string[];
|
|
1094
|
-
error: InvalidFieldError;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* A reference to a specific field of a specific model
|
|
1099
|
-
*/
|
|
1100
|
-
export declare interface FieldRef<Model, FieldType> {
|
|
1101
|
-
readonly modelName: Model;
|
|
1102
|
-
readonly name: string;
|
|
1103
|
-
readonly typeName: FieldType;
|
|
1104
|
-
readonly isList: boolean;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
declare interface GeneratorConfig {
|
|
1108
|
-
name: string;
|
|
1109
|
-
output: EnvValue | null;
|
|
1110
|
-
isCustomOutput?: boolean;
|
|
1111
|
-
provider: EnvValue;
|
|
1112
|
-
config: Dictionary_2<string>;
|
|
1113
|
-
binaryTargets: BinaryTargetsEnvValue[];
|
|
1114
|
-
previewFeatures: string[];
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
declare type GetAggregateResult<A> = {
|
|
1118
|
-
[K in keyof A as K extends Aggregate ? K : never]: K extends '_count' ? A[K] extends true ? number : Count<A[K]> : Count<A[K]>;
|
|
1119
|
-
};
|
|
1120
|
-
|
|
1121
|
-
declare type GetBatchResult = {
|
|
1122
|
-
count: number;
|
|
1123
|
-
};
|
|
1124
|
-
|
|
1125
|
-
declare type GetClient<Base extends Record<any, any>, C extends Args_3['client']> = Omit<Base, keyof C | '$use'> & {
|
|
1126
|
-
[K in keyof C]: ReturnType<C[K]>;
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
declare type GetCountResult<A> = A extends {
|
|
1130
|
-
select: infer S;
|
|
1131
|
-
} ? S extends true ? number : Count<S> : number;
|
|
1132
|
-
|
|
1133
|
-
declare function getExtensionContext<T>(that: T): Context_2<T>;
|
|
1134
|
-
|
|
1135
|
-
declare type GetFindResult<P extends Payload, A> = A extends {
|
|
1136
|
-
select: infer S;
|
|
1137
|
-
} & Record<string, unknown> | {
|
|
1138
|
-
include: infer S;
|
|
1139
|
-
} & Record<string, unknown> ? {
|
|
1140
|
-
[K in keyof S as S[K] extends false | undefined | null ? never : K]: S[K] extends true ? P extends {
|
|
1141
|
-
objects: {
|
|
1142
|
-
[k in K]: (infer O)[];
|
|
1143
|
-
};
|
|
1144
|
-
} ? O extends Payload ? O['scalars'][] : never : P extends {
|
|
1145
|
-
objects: {
|
|
1146
|
-
[k in K]: (infer O) | null;
|
|
1147
|
-
};
|
|
1148
|
-
} ? O extends Payload ? O['scalars'] | P['objects'][K] & null : never : P extends {
|
|
1149
|
-
scalars: {
|
|
1150
|
-
[k in K]: infer O;
|
|
1151
|
-
};
|
|
1152
|
-
} ? O : K extends '_count' ? Count<P['objects']> : never : P extends {
|
|
1153
|
-
objects: {
|
|
1154
|
-
[k in K]: (infer O)[];
|
|
1155
|
-
};
|
|
1156
|
-
} ? O extends Payload ? GetFindResult<O, S[K]>[] : never : P extends {
|
|
1157
|
-
objects: {
|
|
1158
|
-
[k in K]: (infer O) | null;
|
|
1159
|
-
};
|
|
1160
|
-
} ? O extends Payload ? GetFindResult<O, S[K]> | P['objects'][K] & null : never : K extends '_count' ? Count<GetFindResult<P, S[K]>> : never;
|
|
1161
|
-
} & (A extends {
|
|
1162
|
-
include: any;
|
|
1163
|
-
} & Record<string, unknown> ? P['scalars'] : unknown) : P['scalars'];
|
|
1164
|
-
|
|
1165
|
-
declare type GetGroupByResult<P, A> = P extends Payload ? A extends {
|
|
1166
|
-
by: string[];
|
|
1167
|
-
} ? Array<GetAggregateResult<A> & {
|
|
1168
|
-
[K in A['by'][number]]: P['scalars'][K];
|
|
1169
|
-
}> : never : never;
|
|
1170
|
-
|
|
1171
|
-
declare type GetModel<Base extends Record<any, any>, M extends Args_3['model'][string]> = {
|
|
1172
|
-
[K in keyof M | keyof Base]: K extends keyof M ? ReturnType<M[K]> : Base[K];
|
|
1173
|
-
};
|
|
1174
|
-
|
|
1175
|
-
export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
1176
|
-
new (optionsArg?: PrismaClientOptions): {
|
|
1177
|
-
_runtimeDataModel: RuntimeDataModel;
|
|
1178
|
-
_dmmf?: DMMFClass | undefined;
|
|
1179
|
-
_engine: Engine;
|
|
1180
|
-
_fetcher: RequestHandler;
|
|
1181
|
-
_connectionPromise?: Promise<any> | undefined;
|
|
1182
|
-
_disconnectionPromise?: Promise<any> | undefined;
|
|
1183
|
-
_engineConfig: EngineConfig;
|
|
1184
|
-
_clientVersion: string;
|
|
1185
|
-
_errorFormat: ErrorFormat;
|
|
1186
|
-
_clientEngineType: ClientEngineType;
|
|
1187
|
-
_tracingHelper: TracingHelper;
|
|
1188
|
-
_metrics: MetricsClient;
|
|
1189
|
-
_middlewares: MiddlewareHandler<QueryMiddleware>;
|
|
1190
|
-
_previewFeatures: string[];
|
|
1191
|
-
_activeProvider: string;
|
|
1192
|
-
_rejectOnNotFound?: InstanceRejectOnNotFound;
|
|
1193
|
-
_dataProxy: boolean;
|
|
1194
|
-
_extensions: MergedExtensionsList;
|
|
1195
|
-
getEngine(): Engine;
|
|
1196
|
-
/**
|
|
1197
|
-
* Hook a middleware into the client
|
|
1198
|
-
* @param middleware to hook
|
|
1199
|
-
*/
|
|
1200
|
-
$use(middleware: QueryMiddleware): void;
|
|
1201
|
-
$on(eventType: EngineEventType, callback: (event: any) => void): void;
|
|
1202
|
-
$connect(): Promise<void>;
|
|
1203
|
-
/**
|
|
1204
|
-
* @private
|
|
1205
|
-
*/
|
|
1206
|
-
_runDisconnect(): Promise<void>;
|
|
1207
|
-
/**
|
|
1208
|
-
* Disconnect from the database
|
|
1209
|
-
*/
|
|
1210
|
-
$disconnect(): Promise<void>;
|
|
1211
|
-
/**
|
|
1212
|
-
* Executes a raw query and always returns a number
|
|
1213
|
-
*/
|
|
1214
|
-
$executeRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs): Promise<number>;
|
|
1215
|
-
/**
|
|
1216
|
-
* Executes a raw query provided through a safe tag function
|
|
1217
|
-
* @see https://github.com/prisma/prisma/issues/7142
|
|
1218
|
-
*
|
|
1219
|
-
* @param query
|
|
1220
|
-
* @param values
|
|
1221
|
-
* @returns
|
|
1222
|
-
*/
|
|
1223
|
-
$executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<unknown>;
|
|
1224
|
-
/**
|
|
1225
|
-
* Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections
|
|
1226
|
-
* @see https://github.com/prisma/prisma/issues/7142
|
|
1227
|
-
*
|
|
1228
|
-
* @param query
|
|
1229
|
-
* @param values
|
|
1230
|
-
* @returns
|
|
1231
|
-
*/
|
|
1232
|
-
$executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise<unknown>;
|
|
1233
|
-
/**
|
|
1234
|
-
* Executes a raw command only for MongoDB
|
|
1235
|
-
*
|
|
1236
|
-
* @param command
|
|
1237
|
-
* @returns
|
|
1238
|
-
*/
|
|
1239
|
-
$runCommandRaw(command: object): PrismaPromise<unknown>;
|
|
1240
|
-
/**
|
|
1241
|
-
* Executes a raw query and returns selected data
|
|
1242
|
-
*/
|
|
1243
|
-
$queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs): Promise<unknown[]>;
|
|
1244
|
-
/**
|
|
1245
|
-
* Executes a raw query provided through a safe tag function
|
|
1246
|
-
* @see https://github.com/prisma/prisma/issues/7142
|
|
1247
|
-
*
|
|
1248
|
-
* @param query
|
|
1249
|
-
* @param values
|
|
1250
|
-
* @returns
|
|
1251
|
-
*/
|
|
1252
|
-
$queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<unknown>;
|
|
1253
|
-
/**
|
|
1254
|
-
* Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
|
|
1255
|
-
* @see https://github.com/prisma/prisma/issues/7142
|
|
1256
|
-
*
|
|
1257
|
-
* @param query
|
|
1258
|
-
* @param values
|
|
1259
|
-
* @returns
|
|
1260
|
-
*/
|
|
1261
|
-
$queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise<unknown>;
|
|
1262
|
-
/**
|
|
1263
|
-
* Execute a batch of requests in a transaction
|
|
1264
|
-
* @param requests
|
|
1265
|
-
* @param options
|
|
1266
|
-
*/
|
|
1267
|
-
_transactionWithArray({ promises, options, }: {
|
|
1268
|
-
promises: Array<PrismaPromise<any>>;
|
|
1269
|
-
options?: BatchTransactionOptions | undefined;
|
|
1270
|
-
}): Promise<any>;
|
|
1271
|
-
/**
|
|
1272
|
-
* Perform a long-running transaction
|
|
1273
|
-
* @param callback
|
|
1274
|
-
* @param options
|
|
1275
|
-
* @returns
|
|
1276
|
-
*/
|
|
1277
|
-
_transactionWithCallback({ callback, options, }: {
|
|
1278
|
-
callback: (client: Client) => Promise<unknown>;
|
|
1279
|
-
options?: Options | undefined;
|
|
1280
|
-
}): Promise<unknown>;
|
|
1281
|
-
/**
|
|
1282
|
-
* Execute queries within a transaction
|
|
1283
|
-
* @param input a callback or a query list
|
|
1284
|
-
* @param options to set timeouts (callback)
|
|
1285
|
-
* @returns
|
|
1286
|
-
*/
|
|
1287
|
-
$transaction(input: any, options?: any): Promise<any>;
|
|
1288
|
-
/**
|
|
1289
|
-
* Runs the middlewares over params before executing a request
|
|
1290
|
-
* @param internalParams
|
|
1291
|
-
* @returns
|
|
1292
|
-
*/
|
|
1293
|
-
_request(internalParams: InternalRequestParams): Promise<any>;
|
|
1294
|
-
_executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
|
|
1295
|
-
_getDmmf: (params: Pick<InternalRequestParams, "callsite" | "clientMethod">) => Promise<DMMFClass>;
|
|
1296
|
-
_getProtocolEncoder: (params: Pick<InternalRequestParams, "callsite" | "clientMethod">) => Promise<ProtocolEncoder<EngineQuery>>;
|
|
1297
|
-
readonly $metrics: MetricsClient;
|
|
1298
|
-
/**
|
|
1299
|
-
* Shortcut for checking a preview flag
|
|
1300
|
-
* @param feature preview flag
|
|
1301
|
-
* @returns
|
|
1302
|
-
*/
|
|
1303
|
-
_hasPreviewFlag(feature: string): boolean;
|
|
1304
|
-
$extends: typeof $extends;
|
|
1305
|
-
readonly [Symbol.toStringTag]: string;
|
|
1306
|
-
};
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* Config that is stored into the generated client. When the generated client is
|
|
1311
|
-
* loaded, this same config is passed to {@link getPrismaClient} which creates a
|
|
1312
|
-
* closure with that config around a non-instantiated [[PrismaClient]].
|
|
1313
|
-
*/
|
|
1314
|
-
declare type GetPrismaClientConfig = ({
|
|
1315
|
-
runtimeDataModel: RuntimeDataModel;
|
|
1316
|
-
document?: undefined;
|
|
1317
|
-
} | {
|
|
1318
|
-
runtimeDataModel?: undefined;
|
|
1319
|
-
document: DMMF.Document;
|
|
1320
|
-
}) & {
|
|
1321
|
-
generator?: GeneratorConfig;
|
|
1322
|
-
sqliteDatasourceOverrides?: DatasourceOverwrite[];
|
|
1323
|
-
relativeEnvPaths: {
|
|
1324
|
-
rootEnvPath?: string | null;
|
|
1325
|
-
schemaEnvPath?: string | null;
|
|
1326
|
-
};
|
|
1327
|
-
relativePath: string;
|
|
1328
|
-
dirname: string;
|
|
1329
|
-
filename?: string;
|
|
1330
|
-
clientVersion: string;
|
|
1331
|
-
engineVersion?: string;
|
|
1332
|
-
datasourceNames: string[];
|
|
1333
|
-
activeProvider: string;
|
|
1334
|
-
/**
|
|
1335
|
-
* True when `--data-proxy` is passed to `prisma generate`
|
|
1336
|
-
* If enabled, we disregard the generator config engineType.
|
|
1337
|
-
* It means that `--data-proxy` binds you to the Data Proxy.
|
|
1338
|
-
*/
|
|
1339
|
-
dataProxy: boolean;
|
|
1340
|
-
/**
|
|
1341
|
-
* The contents of the schema encoded into a string
|
|
1342
|
-
* @remarks only used for the purpose of data proxy
|
|
1343
|
-
*/
|
|
1344
|
-
inlineSchema?: string;
|
|
1345
|
-
/**
|
|
1346
|
-
* A special env object just for the data proxy edge runtime.
|
|
1347
|
-
* Allows bundlers to inject their own env variables (Vercel).
|
|
1348
|
-
* Allows platforms to declare global variables as env (Workers).
|
|
1349
|
-
* @remarks only used for the purpose of data proxy
|
|
1350
|
-
*/
|
|
1351
|
-
injectableEdgeEnv?: LoadedEnv;
|
|
1352
|
-
/**
|
|
1353
|
-
* Engine protocol to use within edge runtime. Passed
|
|
1354
|
-
* through config because edge client can not read env variables
|
|
1355
|
-
* @remarks only used for the purpose of data proxy
|
|
1356
|
-
*/
|
|
1357
|
-
edgeClientProtocol?: QueryEngineProtocol;
|
|
1358
|
-
/**
|
|
1359
|
-
* The contents of the datasource url saved in a string.
|
|
1360
|
-
* This can either be an env var name or connection string.
|
|
1361
|
-
* It is needed by the client to connect to the Data Proxy.
|
|
1362
|
-
* @remarks only used for the purpose of data proxy
|
|
1363
|
-
*/
|
|
1364
|
-
inlineDatasources?: InlineDatasources;
|
|
1365
|
-
/**
|
|
1366
|
-
* The string hash that was produced for a given schema
|
|
1367
|
-
* @remarks only used for the purpose of data proxy
|
|
1368
|
-
*/
|
|
1369
|
-
inlineSchemaHash?: string;
|
|
1370
|
-
/**
|
|
1371
|
-
* A marker to indicate that the client was not generated via `prisma
|
|
1372
|
-
* generate` but was generated via `generate --postinstall` script instead.
|
|
1373
|
-
* @remarks used to error for Vercel/Netlify for schema caching issues
|
|
1374
|
-
*/
|
|
1375
|
-
postinstall?: boolean;
|
|
1376
|
-
/**
|
|
1377
|
-
* Information about the CI where the Prisma Client has been generated. The
|
|
1378
|
-
* name of the CI environment is stored at generation time because CI
|
|
1379
|
-
* information is not always available at runtime. Moreover, the edge client
|
|
1380
|
-
* has no notion of environment variables, so this works around that.
|
|
1381
|
-
* @remarks used to error for Vercel/Netlify for schema caching issues
|
|
1382
|
-
*/
|
|
1383
|
-
ciName?: string;
|
|
1384
|
-
/**
|
|
1385
|
-
* Information about whether we have not found a schema.prisma file in the
|
|
1386
|
-
* default location, and that we fell back to finding the schema.prisma file
|
|
1387
|
-
* in the current working directory. This usually means it has been bundled.
|
|
1388
|
-
*/
|
|
1389
|
-
isBundled?: boolean;
|
|
1390
|
-
};
|
|
1391
|
-
|
|
1392
|
-
declare type GetResult<Base extends Record<any, any>, R extends Args_3['result'][string]> = {
|
|
1393
|
-
[K in keyof R | keyof Base]: K extends keyof R ? ReturnType<ReturnType<R[K]>['compute']> : Base[K];
|
|
1394
|
-
} & unknown;
|
|
1395
|
-
|
|
1396
|
-
declare type GetResult_2<P extends Payload, A, O extends Operation> = {
|
|
1397
|
-
findUnique: GetFindResult<P, A>;
|
|
1398
|
-
findUniqueOrThrow: GetFindResult<P, A>;
|
|
1399
|
-
findFirst: GetFindResult<P, A>;
|
|
1400
|
-
findFirstOrThrow: GetFindResult<P, A>;
|
|
1401
|
-
findMany: GetFindResult<P, A>[];
|
|
1402
|
-
create: GetFindResult<P, A>;
|
|
1403
|
-
createMany: GetBatchResult;
|
|
1404
|
-
update: GetFindResult<P, A>;
|
|
1405
|
-
updateMany: GetBatchResult;
|
|
1406
|
-
upsert: GetFindResult<P, A>;
|
|
1407
|
-
delete: GetFindResult<P, A>;
|
|
1408
|
-
deleteMany: GetBatchResult;
|
|
1409
|
-
aggregate: GetAggregateResult<A>;
|
|
1410
|
-
count: GetCountResult<A>;
|
|
1411
|
-
groupBy: GetGroupByResult<P, A>;
|
|
1412
|
-
$queryRaw: any;
|
|
1413
|
-
$executeRaw: any;
|
|
1414
|
-
$queryRawUnsafe: any;
|
|
1415
|
-
$executeRawUnsafe: any;
|
|
1416
|
-
$runCommandRaw: object;
|
|
1417
|
-
}[O];
|
|
1418
|
-
|
|
1419
|
-
declare type GetSelect<Base extends Record<any, any>, R extends Args_3['result'][string]> = {
|
|
1420
|
-
[K in keyof R | keyof Base]?: K extends keyof R ? boolean : Base[K];
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
declare type GraphQLQuery = {
|
|
1424
|
-
query: string;
|
|
1425
|
-
variables: object;
|
|
1426
|
-
};
|
|
1427
|
-
|
|
1428
|
-
declare type HandleErrorParams = {
|
|
1429
|
-
args: JsArgs;
|
|
1430
|
-
error: any;
|
|
1431
|
-
clientMethod: string;
|
|
1432
|
-
callsite?: CallSite;
|
|
1433
|
-
transaction?: PrismaPromiseTransaction;
|
|
1434
|
-
};
|
|
1435
|
-
|
|
1436
|
-
declare type Headers_2 = Record<string, string | string[] | undefined>;
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
* Defines High-Resolution Time.
|
|
1440
|
-
*
|
|
1441
|
-
* The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970.
|
|
1442
|
-
* The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds.
|
|
1443
|
-
* For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150.
|
|
1444
|
-
* The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds:
|
|
1445
|
-
* HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210.
|
|
1446
|
-
* The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds:
|
|
1447
|
-
* HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
|
|
1448
|
-
* This is represented in HrTime format as [1609504210, 150000000].
|
|
1449
|
-
*/
|
|
1450
|
-
declare type HrTime = [number, number];
|
|
1451
|
-
|
|
1452
|
-
declare interface IncludeAndSelectError {
|
|
1453
|
-
type: 'includeAndSelect';
|
|
1454
|
-
field: DMMF.SchemaField;
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
declare type InlineDatasource = {
|
|
1458
|
-
url: NullableEnvValue;
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
|
-
declare type InlineDatasources = {
|
|
1462
|
-
[name in InternalDatasource['name']]: {
|
|
1463
|
-
url: InternalDatasource['url'];
|
|
1464
|
-
};
|
|
1465
|
-
};
|
|
1466
|
-
|
|
1467
|
-
declare type InstanceRejectOnNotFound = RejectOnNotFound | Record<string, RejectOnNotFound> | Record<string, Record<string, RejectOnNotFound>>;
|
|
1468
|
-
|
|
1469
|
-
declare type InteractiveTransactionInfo<Payload = unknown> = {
|
|
1470
|
-
/**
|
|
1471
|
-
* Transaction ID returned by the query engine.
|
|
1472
|
-
*/
|
|
1473
|
-
id: string;
|
|
1474
|
-
/**
|
|
1475
|
-
* Arbitrary payload the meaning of which depends on the `Engine` implementation.
|
|
1476
|
-
* For example, `DataProxyEngine` needs to associate different API endpoints with transactions.
|
|
1477
|
-
* In `LibraryEngine` and `BinaryEngine` it is currently not used.
|
|
1478
|
-
*/
|
|
1479
|
-
payload: Payload;
|
|
1480
|
-
};
|
|
1481
|
-
|
|
1482
|
-
declare type InteractiveTransactionOptions<Payload> = Transaction.InteractiveTransactionInfo<Payload>;
|
|
1483
|
-
|
|
1484
|
-
declare type InternalArgs<R extends RequiredArgs['result'] = RequiredArgs['result'], M extends RequiredArgs['model'] = RequiredArgs['model'], Q extends RequiredArgs['query'] = RequiredArgs['query'], C extends RequiredArgs['client'] = RequiredArgs['client']> = {
|
|
1485
|
-
result: {
|
|
1486
|
-
[K in keyof R]: {
|
|
1487
|
-
[P in keyof R[K]]: () => R[K][P];
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
model: {
|
|
1491
|
-
[K in keyof M]: {
|
|
1492
|
-
[P in keyof M[K]]: () => M[K][P];
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
query: {
|
|
1496
|
-
[K in keyof Q]: {
|
|
1497
|
-
[P in keyof Q[K]]: () => Q[K][P];
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
client: {
|
|
1501
|
-
[K in keyof C]: () => C[K];
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
|
|
1505
|
-
declare interface InternalDatasource {
|
|
1506
|
-
name: string;
|
|
1507
|
-
activeProvider: ConnectorType;
|
|
1508
|
-
provider: ConnectorType;
|
|
1509
|
-
url: EnvValue_2;
|
|
1510
|
-
config: any;
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
declare type InternalRequestParams = {
|
|
1514
|
-
/**
|
|
1515
|
-
* The original client method being called.
|
|
1516
|
-
* Even though the rootField / operation can be changed,
|
|
1517
|
-
* this method stays as it is, as it's what the user's
|
|
1518
|
-
* code looks like
|
|
1519
|
-
*/
|
|
1520
|
-
clientMethod: string;
|
|
1521
|
-
/**
|
|
1522
|
-
* Name of js model that triggered the request. Might be used
|
|
1523
|
-
* for warnings or error messages
|
|
1524
|
-
*/
|
|
1525
|
-
jsModelName?: string;
|
|
1526
|
-
callsite?: CallSite;
|
|
1527
|
-
transaction?: PrismaPromiseTransaction;
|
|
1528
|
-
unpacker?: Unpacker;
|
|
1529
|
-
otelParentCtx?: Context;
|
|
1530
|
-
/** Used to "desugar" a user input into an "expanded" one */
|
|
1531
|
-
argsMapper?: (args?: UserArgs) => UserArgs;
|
|
1532
|
-
/** Used for Accelerate client extension via Data Proxy */
|
|
1533
|
-
customDataProxyFetch?: (fetch: Fetch) => Fetch;
|
|
1534
|
-
} & Omit<QueryMiddlewareParams, 'runInTransaction'>;
|
|
1535
|
-
|
|
1536
|
-
declare type InvalidArgError = InvalidArgNameError | MissingArgError | InvalidArgTypeError | AtLeastOneError | AtMostOneError | InvalidNullArgError;
|
|
1537
|
-
|
|
1538
|
-
/**
|
|
1539
|
-
* This error occurs if the user provides an arg name that doesn't exist
|
|
1540
|
-
*/
|
|
1541
|
-
declare interface InvalidArgNameError {
|
|
1542
|
-
type: 'invalidName';
|
|
1543
|
-
providedName: string;
|
|
1544
|
-
providedValue: any;
|
|
1545
|
-
didYouMeanArg?: string;
|
|
1546
|
-
didYouMeanField?: string;
|
|
1547
|
-
originalType: DMMF.ArgType;
|
|
1548
|
-
possibilities?: DMMF.SchemaArgInputType[];
|
|
1549
|
-
outputType?: DMMF.OutputType;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
/**
|
|
1553
|
-
* If the scalar type of an arg is not matching what is required
|
|
1554
|
-
*/
|
|
1555
|
-
declare interface InvalidArgTypeError {
|
|
1556
|
-
type: 'invalidType';
|
|
1557
|
-
argName: string;
|
|
1558
|
-
requiredType: {
|
|
1559
|
-
bestFittingType: DMMF.SchemaArgInputType;
|
|
1560
|
-
inputType: DMMF.SchemaArgInputType[];
|
|
1561
|
-
};
|
|
1562
|
-
providedValue: any;
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
declare type InvalidFieldError = InvalidFieldNameError | InvalidFieldTypeError | EmptySelectError | NoTrueSelectError | IncludeAndSelectError | EmptyIncludeError;
|
|
1566
|
-
|
|
1567
|
-
declare interface InvalidFieldNameError {
|
|
1568
|
-
type: 'invalidFieldName';
|
|
1569
|
-
modelName: string;
|
|
1570
|
-
didYouMean?: string | null;
|
|
1571
|
-
providedName: string;
|
|
1572
|
-
isInclude?: boolean;
|
|
1573
|
-
isIncludeScalar?: boolean;
|
|
1574
|
-
outputType: DMMF.OutputType;
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
declare interface InvalidFieldTypeError {
|
|
1578
|
-
type: 'invalidFieldType';
|
|
1579
|
-
modelName: string;
|
|
1580
|
-
fieldName: string;
|
|
1581
|
-
providedValue: any;
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
/**
|
|
1585
|
-
* If a user incorrectly provided null where she shouldn't have
|
|
1586
|
-
*/
|
|
1587
|
-
declare interface InvalidNullArgError {
|
|
1588
|
-
type: 'invalidNullArg';
|
|
1589
|
-
name: string;
|
|
1590
|
-
invalidType: DMMF.SchemaArgInputType[];
|
|
1591
|
-
atLeastOne: boolean;
|
|
1592
|
-
atMostOne: boolean;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
declare enum IsolationLevel {
|
|
1596
|
-
ReadUncommitted = "ReadUncommitted",
|
|
1597
|
-
ReadCommitted = "ReadCommitted",
|
|
1598
|
-
RepeatableRead = "RepeatableRead",
|
|
1599
|
-
Snapshot = "Snapshot",
|
|
1600
|
-
Serializable = "Serializable"
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
declare interface Job {
|
|
1604
|
-
resolve: (data: any) => void;
|
|
1605
|
-
reject: (data: any) => void;
|
|
1606
|
-
request: any;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
/**
|
|
1610
|
-
* Create a SQL query for a list of values.
|
|
1611
|
-
*/
|
|
1612
|
-
export declare function join(values: RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
|
|
1613
|
-
|
|
1614
|
-
declare type JsArgs = {
|
|
1615
|
-
select?: Selection_2;
|
|
1616
|
-
include?: Selection_2;
|
|
1617
|
-
[argName: string]: JsInputValue;
|
|
1618
|
-
};
|
|
1619
|
-
|
|
1620
|
-
declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | FieldRef<string, unknown> | JsInputValue[] | {
|
|
1621
|
-
[key: string]: JsInputValue;
|
|
1622
|
-
};
|
|
1623
|
-
|
|
1624
|
-
declare type JsonArgumentValue = number | string | boolean | null | JsonTaggedValue | JsonArgumentValue[] | {
|
|
1625
|
-
[key: string]: JsonArgumentValue;
|
|
1626
|
-
};
|
|
1627
|
-
|
|
1628
|
-
declare type JsonFieldSelection = {
|
|
1629
|
-
arguments?: Record<string, JsonArgumentValue>;
|
|
1630
|
-
selection: JsonSelectionSet;
|
|
1631
|
-
};
|
|
1632
|
-
|
|
1633
|
-
declare class JsonNull extends NullTypesEnumValue {
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
declare type JsonQuery = {
|
|
1637
|
-
modelName?: string;
|
|
1638
|
-
action: JsonQueryAction;
|
|
1639
|
-
query: JsonFieldSelection;
|
|
1640
|
-
};
|
|
1641
|
-
|
|
1642
|
-
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1643
|
-
|
|
1644
|
-
declare type JsonSelectionSet = {
|
|
1645
|
-
$scalars?: boolean;
|
|
1646
|
-
$composites?: boolean;
|
|
1647
|
-
} & {
|
|
1648
|
-
[fieldName: string]: boolean | JsonFieldSelection;
|
|
1649
|
-
};
|
|
1650
|
-
|
|
1651
|
-
declare type JsonTaggedValue = {
|
|
1652
|
-
$type: 'Json';
|
|
1653
|
-
value: string;
|
|
1654
|
-
};
|
|
1655
|
-
|
|
1656
|
-
declare type KnownErrorParams = {
|
|
1657
|
-
code: string;
|
|
1658
|
-
clientVersion: string;
|
|
1659
|
-
meta?: Record<string, unknown>;
|
|
1660
|
-
batchRequestIdx?: number;
|
|
1661
|
-
};
|
|
1662
|
-
|
|
1663
|
-
declare type LegacyExact<A, W = unknown> = W extends unknown ? A extends LegacyNarrowable ? Cast<A, W> : Cast<{
|
|
1664
|
-
[K in keyof A]: K extends keyof W ? LegacyExact<A[K], W[K]> : never;
|
|
1665
|
-
}, {
|
|
1666
|
-
[K in keyof W]: K extends keyof A ? LegacyExact<A[K], W[K]> : W[K];
|
|
1667
|
-
}> : never;
|
|
1668
|
-
|
|
1669
|
-
declare type LegacyNarrowable = string | number | boolean | bigint;
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* A pointer from the current {@link Span} to another span in the same trace or
|
|
1673
|
-
* in a different trace.
|
|
1674
|
-
* Few examples of Link usage.
|
|
1675
|
-
* 1. Batch Processing: A batch of elements may contain elements associated
|
|
1676
|
-
* with one or more traces/spans. Since there can only be one parent
|
|
1677
|
-
* SpanContext, Link is used to keep reference to SpanContext of all
|
|
1678
|
-
* elements in the batch.
|
|
1679
|
-
* 2. Public Endpoint: A SpanContext in incoming client request on a public
|
|
1680
|
-
* endpoint is untrusted from service provider perspective. In such case it
|
|
1681
|
-
* is advisable to start a new trace with appropriate sampling decision.
|
|
1682
|
-
* However, it is desirable to associate incoming SpanContext to new trace
|
|
1683
|
-
* initiated on service provider side so two traces (from Client and from
|
|
1684
|
-
* Service Provider) can be correlated.
|
|
1685
|
-
*/
|
|
1686
|
-
declare interface Link {
|
|
1687
|
-
/** The {@link SpanContext} of a linked span. */
|
|
1688
|
-
context: SpanContext;
|
|
1689
|
-
/** A set of {@link SpanAttributes} on the link. */
|
|
1690
|
-
attributes?: SpanAttributes;
|
|
1691
|
-
/** Count of attributes of the link that were dropped due to collection limits */
|
|
1692
|
-
droppedAttributesCount?: number;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
declare type LoadedEnv = {
|
|
1696
|
-
message?: string;
|
|
1697
|
-
parsed: {
|
|
1698
|
-
[x: string]: string;
|
|
1699
|
-
};
|
|
1700
|
-
} | undefined;
|
|
1701
|
-
|
|
1702
|
-
declare type LocationInFile = {
|
|
1703
|
-
fileName: string;
|
|
1704
|
-
lineNumber: number | null;
|
|
1705
|
-
columnNumber: number | null;
|
|
1706
|
-
};
|
|
1707
|
-
|
|
1708
|
-
declare type LogDefinition = {
|
|
1709
|
-
level: LogLevel;
|
|
1710
|
-
emit: 'stdout' | 'event';
|
|
1711
|
-
};
|
|
1712
|
-
|
|
1713
|
-
declare type LogLevel = 'info' | 'query' | 'warn' | 'error';
|
|
1714
|
-
|
|
1715
|
-
export declare function makeDocument({ dmmf, rootTypeName, rootField, select, modelName, extensions, }: DocumentInput): Document_2;
|
|
1716
|
-
|
|
1717
|
-
/**
|
|
1718
|
-
* Generates more strict variant of an enum which, unlike regular enum,
|
|
1719
|
-
* throws on non-existing property access. This can be useful in following situations:
|
|
1720
|
-
* - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
|
|
1721
|
-
* - enum values are generated dynamically from DMMF.
|
|
1722
|
-
*
|
|
1723
|
-
* In that case, if using normal enums and no compile-time typechecking, using non-existing property
|
|
1724
|
-
* will result in `undefined` value being used, which will be accepted. Using strict enum
|
|
1725
|
-
* in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
|
|
1726
|
-
*
|
|
1727
|
-
* Note: if you need to check for existence of a value in the enum you can still use either
|
|
1728
|
-
* `in` operator or `hasOwnProperty` function.
|
|
1729
|
-
*
|
|
1730
|
-
* @param definition
|
|
1731
|
-
* @returns
|
|
1732
|
-
*/
|
|
1733
|
-
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
|
1734
|
-
|
|
1735
|
-
/**
|
|
1736
|
-
* Class that holds the list of all extensions, applied to particular instance, as well
|
|
1737
|
-
* as resolved versions of the components that need to apply on different levels. Main idea
|
|
1738
|
-
* of this class: avoid re-resolving as much of the stuff as possible when new extensions are added while also
|
|
1739
|
-
* delaying the resolve until the point it is actually needed. For example, computed fields of the model won't be resolved unless
|
|
1740
|
-
* the model is actually queried. Neither adding extensions with `client` component only cause other components to
|
|
1741
|
-
* recompute.
|
|
1742
|
-
*/
|
|
1743
|
-
declare class MergedExtensionsList {
|
|
1744
|
-
private head?;
|
|
1745
|
-
private constructor();
|
|
1746
|
-
static empty(): MergedExtensionsList;
|
|
1747
|
-
static single(extension: Args): MergedExtensionsList;
|
|
1748
|
-
isEmpty(): boolean;
|
|
1749
|
-
append(extension: Args): MergedExtensionsList;
|
|
1750
|
-
getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined;
|
|
1751
|
-
getAllClientExtensions(): ClientArg | undefined;
|
|
1752
|
-
getAllModelExtensions(dmmfModelName: string): ModelArg | undefined;
|
|
1753
|
-
getAllQueryCallbacks(jsModelName: string, operation: string): any;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
export declare type Metric<T> = {
|
|
1757
|
-
key: string;
|
|
1758
|
-
value: T;
|
|
1759
|
-
labels: Record<string, string>;
|
|
1760
|
-
description: string;
|
|
1761
|
-
};
|
|
1762
|
-
|
|
1763
|
-
export declare type MetricHistogram = {
|
|
1764
|
-
buckets: MetricHistogramBucket[];
|
|
1765
|
-
sum: number;
|
|
1766
|
-
count: number;
|
|
1767
|
-
};
|
|
1768
|
-
|
|
1769
|
-
export declare type MetricHistogramBucket = [maxValue: number, count: number];
|
|
1770
|
-
|
|
1771
|
-
export declare type Metrics = {
|
|
1772
|
-
counters: Metric<number>[];
|
|
1773
|
-
gauges: Metric<number>[];
|
|
1774
|
-
histograms: Metric<MetricHistogram>[];
|
|
1775
|
-
};
|
|
1776
|
-
|
|
1777
|
-
export declare class MetricsClient {
|
|
1778
|
-
private _engine;
|
|
1779
|
-
constructor(engine: Engine);
|
|
1780
|
-
/**
|
|
1781
|
-
* Returns all metrics gathered up to this point in prometheus format.
|
|
1782
|
-
* Result of this call can be exposed directly to prometheus scraping endpoint
|
|
1783
|
-
*
|
|
1784
|
-
* @param options
|
|
1785
|
-
* @returns
|
|
1786
|
-
*/
|
|
1787
|
-
prometheus(options?: MetricsOptions): Promise<string>;
|
|
1788
|
-
/**
|
|
1789
|
-
* Returns all metrics gathered up to this point in prometheus format.
|
|
1790
|
-
*
|
|
1791
|
-
* @param options
|
|
1792
|
-
* @returns
|
|
1793
|
-
*/
|
|
1794
|
-
json(options?: MetricsOptions): Promise<Metrics>;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
declare type MetricsOptions = {
|
|
1798
|
-
/**
|
|
1799
|
-
* Labels to add to every metrics in key-value format
|
|
1800
|
-
*/
|
|
1801
|
-
globalLabels?: Record<string, string>;
|
|
1802
|
-
};
|
|
1803
|
-
|
|
1804
|
-
declare type MetricsOptionsCommon = {
|
|
1805
|
-
globalLabels?: Record<string, string>;
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
declare type MetricsOptionsJson = {
|
|
1809
|
-
format: 'json';
|
|
1810
|
-
} & MetricsOptionsCommon;
|
|
1811
|
-
|
|
1812
|
-
declare type MetricsOptionsPrometheus = {
|
|
1813
|
-
format: 'prometheus';
|
|
1814
|
-
} & MetricsOptionsCommon;
|
|
1815
|
-
|
|
1816
|
-
declare class MiddlewareHandler<M extends Function> {
|
|
1817
|
-
private _middlewares;
|
|
1818
|
-
use(middleware: M): void;
|
|
1819
|
-
get(id: number): M | undefined;
|
|
1820
|
-
has(id: number): boolean;
|
|
1821
|
-
length(): number;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* Opposite of InvalidArgNameError - if the user *doesn't* provide an arg that should be provided
|
|
1826
|
-
* This error both happens with an implicit and explicit `undefined`
|
|
1827
|
-
*/
|
|
1828
|
-
declare interface MissingArgError {
|
|
1829
|
-
type: 'missingArg';
|
|
1830
|
-
missingName: string;
|
|
1831
|
-
missingArg: DMMF.SchemaArg;
|
|
1832
|
-
atLeastOne: boolean;
|
|
1833
|
-
atMostOne: boolean;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
declare interface MissingItem {
|
|
1837
|
-
path: string;
|
|
1838
|
-
isRequired: boolean;
|
|
1839
|
-
type: string | object;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
declare type ModelArg = {
|
|
1843
|
-
[MethodName in string]: Function;
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
declare type ModelArgs = {
|
|
1847
|
-
model: {
|
|
1848
|
-
[ModelName in string]: ModelArg;
|
|
1849
|
-
};
|
|
1850
|
-
};
|
|
1851
|
-
|
|
1852
|
-
declare type NameArgs = {
|
|
1853
|
-
name?: string;
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
|
-
declare type Narrow<A> = {
|
|
1857
|
-
[K in keyof A]: A[K] extends Function ? A[K] : Narrow<A[K]>;
|
|
1858
|
-
} | (A extends Narrowable ? A : never);
|
|
1859
|
-
|
|
1860
|
-
declare type Narrowable = string | number | bigint | boolean | [];
|
|
1861
|
-
|
|
1862
|
-
declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
|
|
1863
|
-
|
|
1864
|
-
/**
|
|
1865
|
-
* Imitates `fetch` via `https` to only suit our needs, it does nothing more.
|
|
1866
|
-
* This is because we cannot bundle `node-fetch` as it uses many other Node.js
|
|
1867
|
-
* utilities, while also bloating our bundles. This approach is much leaner.
|
|
1868
|
-
* @param url
|
|
1869
|
-
* @param options
|
|
1870
|
-
* @returns
|
|
1871
|
-
*/
|
|
1872
|
-
declare function nodeFetch(url: string, options?: RequestOptions_2): Promise<RequestResponse>;
|
|
1873
|
-
|
|
1874
|
-
/**
|
|
1875
|
-
* @deprecated please don´t rely on type checks to this error anymore.
|
|
1876
|
-
* This will become a PrismaClientKnownRequestError with code P2025
|
|
1877
|
-
* in the future major version of the client
|
|
1878
|
-
*/
|
|
1879
|
-
export declare class NotFoundError extends PrismaClientKnownRequestError {
|
|
1880
|
-
constructor(message: string);
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
declare interface NoTrueSelectError {
|
|
1884
|
-
type: 'noTrueSelect';
|
|
1885
|
-
field: DMMF.SchemaField;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
declare type NullableEnvValue = {
|
|
1889
|
-
fromEnvVar: string | null;
|
|
1890
|
-
value?: string | null;
|
|
1891
|
-
};
|
|
1892
|
-
|
|
1893
|
-
declare class NullTypesEnumValue extends ObjectEnumValue {
|
|
1894
|
-
_getNamespace(): string;
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
/**
|
|
1898
|
-
* Base class for unique values of object-valued enums.
|
|
1899
|
-
*/
|
|
1900
|
-
declare abstract class ObjectEnumValue {
|
|
1901
|
-
constructor(arg?: symbol);
|
|
1902
|
-
abstract _getNamespace(): string;
|
|
1903
|
-
_getName(): string;
|
|
1904
|
-
toString(): string;
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
export declare const objectEnumValues: {
|
|
1908
|
-
classes: {
|
|
1909
|
-
DbNull: typeof DbNull;
|
|
1910
|
-
JsonNull: typeof JsonNull;
|
|
1911
|
-
AnyNull: typeof AnyNull;
|
|
1912
|
-
};
|
|
1913
|
-
instances: {
|
|
1914
|
-
DbNull: DbNull;
|
|
1915
|
-
JsonNull: JsonNull;
|
|
1916
|
-
AnyNull: AnyNull;
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
|
|
1920
|
-
declare type Omit_2<T, K extends string | number | symbol> = {
|
|
1921
|
-
[P in keyof T as P extends K ? never : P]: T[P];
|
|
1922
|
-
};
|
|
1923
|
-
|
|
1924
|
-
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | '$runCommandRaw';
|
|
1925
|
-
|
|
1926
|
-
declare type OptionalFlat<T> = {
|
|
1927
|
-
[K in keyof T]?: T[K];
|
|
1928
|
-
};
|
|
1929
|
-
|
|
1930
|
-
/**
|
|
1931
|
-
* maxWait ?= 2000
|
|
1932
|
-
* timeout ?= 5000
|
|
1933
|
-
*/
|
|
1934
|
-
declare type Options = {
|
|
1935
|
-
maxWait?: number;
|
|
1936
|
-
timeout?: number;
|
|
1937
|
-
isolationLevel?: IsolationLevel;
|
|
1938
|
-
};
|
|
1939
|
-
|
|
1940
|
-
declare type PatchDeep<O1, O2, O = O1 & O2> = {
|
|
1941
|
-
[K in keyof O]: K extends keyof O1 ? K extends keyof O2 ? O1[K] extends object ? O2[K] extends object ? O1[K] extends Function ? O1[K] : O2[K] extends Function ? O1[K] : PatchDeep<O1[K], O2[K]> : O1[K] : O1[K] : O1[K] : O2[K & keyof O2];
|
|
1942
|
-
};
|
|
1943
|
-
|
|
1944
|
-
declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
|
|
1945
|
-
|
|
1946
|
-
/**
|
|
1947
|
-
* Patches 3 objects on top of each other with minimal looping.
|
|
1948
|
-
* This is a more efficient way of doing `PatchFlat<A, PatchFlat<B, C>>`
|
|
1949
|
-
*/
|
|
1950
|
-
declare type PatchFlat3<A, B, C> = A & {
|
|
1951
|
-
[K in Exclude<keyof B | keyof C, keyof A>]: K extends keyof B ? B[K] : C[K & keyof C];
|
|
1952
|
-
};
|
|
1953
|
-
|
|
1954
|
-
export declare type Payload = {
|
|
1955
|
-
scalars: {
|
|
1956
|
-
[ScalarName in string]: unknown;
|
|
1957
|
-
};
|
|
1958
|
-
objects: {
|
|
1959
|
-
[ObjectName in string]: unknown;
|
|
1960
|
-
};
|
|
1961
|
-
};
|
|
1962
|
-
|
|
1963
|
-
declare type Payload_2<T, F extends Operation> = T extends {
|
|
1964
|
-
[K: symbol]: {
|
|
1965
|
-
types: {
|
|
1966
|
-
[K in F]: {
|
|
1967
|
-
payload: any;
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
};
|
|
1971
|
-
} ? T[symbol]['types'][F]['payload'] : never;
|
|
1972
|
-
|
|
1973
|
-
declare type Pick_2<T, K extends string | number | symbol> = {
|
|
1974
|
-
[P in keyof T as P extends K ? P : never]: T[P];
|
|
1975
|
-
};
|
|
1976
|
-
|
|
1977
|
-
export declare class PrismaClientInitializationError extends Error {
|
|
1978
|
-
clientVersion: string;
|
|
1979
|
-
errorCode?: string;
|
|
1980
|
-
retryable?: boolean;
|
|
1981
|
-
constructor(message: string, clientVersion: string, errorCode?: string);
|
|
1982
|
-
get [Symbol.toStringTag](): string;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
|
|
1986
|
-
code: string;
|
|
1987
|
-
meta?: Record<string, unknown>;
|
|
1988
|
-
clientVersion: string;
|
|
1989
|
-
batchRequestIdx?: number;
|
|
1990
|
-
constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
|
|
1991
|
-
get [Symbol.toStringTag](): string;
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
export declare interface PrismaClientOptions {
|
|
1995
|
-
/**
|
|
1996
|
-
* Will throw an Error if findUnique returns null
|
|
1997
|
-
*/
|
|
1998
|
-
rejectOnNotFound?: InstanceRejectOnNotFound;
|
|
1999
|
-
/**
|
|
2000
|
-
* Overwrites the datasource url from your schema.prisma file
|
|
2001
|
-
*/
|
|
2002
|
-
datasources?: Datasources;
|
|
2003
|
-
/**
|
|
2004
|
-
* @default "colorless"
|
|
2005
|
-
*/
|
|
2006
|
-
errorFormat?: ErrorFormat;
|
|
2007
|
-
/**
|
|
2008
|
-
* @example
|
|
2009
|
-
* \`\`\`
|
|
2010
|
-
* // Defaults to stdout
|
|
2011
|
-
* log: ['query', 'info', 'warn']
|
|
2012
|
-
*
|
|
2013
|
-
* // Emit as events
|
|
2014
|
-
* log: [
|
|
2015
|
-
* { emit: 'stdout', level: 'query' },
|
|
2016
|
-
* { emit: 'stdout', level: 'info' },
|
|
2017
|
-
* { emit: 'stdout', level: 'warn' }
|
|
2018
|
-
* ]
|
|
2019
|
-
* \`\`\`
|
|
2020
|
-
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
2021
|
-
*/
|
|
2022
|
-
log?: Array<LogLevel | LogDefinition>;
|
|
2023
|
-
/**
|
|
2024
|
-
* @internal
|
|
2025
|
-
* You probably don't want to use this. \`__internal\` is used by internal tooling.
|
|
2026
|
-
*/
|
|
2027
|
-
__internal?: {
|
|
2028
|
-
debug?: boolean;
|
|
2029
|
-
engine?: {
|
|
2030
|
-
cwd?: string;
|
|
2031
|
-
binaryPath?: string;
|
|
2032
|
-
endpoint?: string;
|
|
2033
|
-
allowTriggerPanic?: boolean;
|
|
2034
|
-
};
|
|
2035
|
-
};
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
export declare class PrismaClientRustPanicError extends Error {
|
|
2039
|
-
clientVersion: string;
|
|
2040
|
-
constructor(message: string, clientVersion: string);
|
|
2041
|
-
get [Symbol.toStringTag](): string;
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
|
|
2045
|
-
clientVersion: string;
|
|
2046
|
-
batchRequestIdx?: number;
|
|
2047
|
-
constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
|
|
2048
|
-
get [Symbol.toStringTag](): string;
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
export declare class PrismaClientValidationError extends Error {
|
|
2052
|
-
get [Symbol.toStringTag](): string;
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
/**
|
|
2056
|
-
* Prisma's `Promise` that is backwards-compatible. All additions on top of the
|
|
2057
|
-
* original `Promise` are optional so that it can be backwards-compatible.
|
|
2058
|
-
* @see [[createPrismaPromise]]
|
|
2059
|
-
*/
|
|
2060
|
-
declare interface PrismaPromise<A> extends Promise<A> {
|
|
2061
|
-
/**
|
|
2062
|
-
* Extension of the original `.then` function
|
|
2063
|
-
* @param onfulfilled same as regular promises
|
|
2064
|
-
* @param onrejected same as regular promises
|
|
2065
|
-
* @param transaction transaction options
|
|
2066
|
-
*/
|
|
2067
|
-
then<R1 = A, R2 = never>(onfulfilled?: (value: A) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
|
|
2068
|
-
/**
|
|
2069
|
-
* Extension of the original `.catch` function
|
|
2070
|
-
* @param onrejected same as regular promises
|
|
2071
|
-
* @param transaction transaction options
|
|
2072
|
-
*/
|
|
2073
|
-
catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A | R>;
|
|
2074
|
-
/**
|
|
2075
|
-
* Extension of the original `.finally` function
|
|
2076
|
-
* @param onfinally same as regular promises
|
|
2077
|
-
* @param transaction transaction options
|
|
2078
|
-
*/
|
|
2079
|
-
finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A>;
|
|
2080
|
-
/**
|
|
2081
|
-
* Called when executing a batch of regular tx
|
|
2082
|
-
* @param transaction transaction options for batch tx
|
|
2083
|
-
*/
|
|
2084
|
-
requestTransaction?(transaction: PrismaPromiseBatchTransaction): PromiseLike<unknown>;
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
declare interface PrismaPromise_2<T> extends Promise<T> {
|
|
2088
|
-
[Symbol.toStringTag]: 'PrismaPromise';
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
declare type PrismaPromiseBatchTransaction = {
|
|
2092
|
-
kind: 'batch';
|
|
2093
|
-
id: number;
|
|
2094
|
-
isolationLevel?: IsolationLevel;
|
|
2095
|
-
index: number;
|
|
2096
|
-
lock: PromiseLike<void>;
|
|
2097
|
-
};
|
|
2098
|
-
|
|
2099
|
-
declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
|
|
2100
|
-
kind: 'itx';
|
|
2101
|
-
id: string;
|
|
2102
|
-
payload: PayloadType;
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
|
|
2106
|
-
|
|
2107
|
-
declare interface ProtocolEncoder<EngineQueryType extends EngineQuery = EngineQuery> {
|
|
2108
|
-
createMessage(options: CreateMessageOptions): ProtocolMessage<EngineQueryType>;
|
|
2109
|
-
createBatch(messages: ProtocolMessage<EngineQueryType>[]): EngineBatchQueries;
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
declare interface ProtocolMessage<EngineQueryType extends EngineQuery = EngineQuery> {
|
|
2113
|
-
isWrite(): boolean;
|
|
2114
|
-
getBatchId(): string | undefined;
|
|
2115
|
-
toDebugString(): string;
|
|
2116
|
-
toEngineQuery(): EngineQueryType;
|
|
2117
|
-
deserializeResponse(data: unknown, dataPath: string[]): unknown;
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
declare namespace Public {
|
|
2121
|
-
export {
|
|
2122
|
-
Args_4 as Args,
|
|
2123
|
-
Result,
|
|
2124
|
-
Payload_2 as Payload,
|
|
2125
|
-
PrismaPromise_2 as PrismaPromise,
|
|
2126
|
-
Operation,
|
|
2127
|
-
Exact
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
declare type QueryEngineProtocol = 'graphql' | 'json';
|
|
2132
|
-
|
|
2133
|
-
declare type QueryEngineResult<T> = {
|
|
2134
|
-
data: T;
|
|
2135
|
-
elapsed: number;
|
|
2136
|
-
};
|
|
2137
|
-
|
|
2138
|
-
declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
|
|
2139
|
-
|
|
2140
|
-
declare type QueryMiddlewareParams = {
|
|
2141
|
-
/** The model this is executed on */
|
|
2142
|
-
model?: string;
|
|
2143
|
-
/** The action that is being handled */
|
|
2144
|
-
action: Action;
|
|
2145
|
-
/** TODO what is this */
|
|
2146
|
-
dataPath: string[];
|
|
2147
|
-
/** TODO what is this */
|
|
2148
|
-
runInTransaction: boolean;
|
|
2149
|
-
args?: UserArgs;
|
|
2150
|
-
};
|
|
2151
|
-
|
|
2152
|
-
declare type QueryOptions = {
|
|
2153
|
-
query: {
|
|
2154
|
-
[ModelName in string]: {
|
|
2155
|
-
[ModelAction in string]: QueryOptionsCb;
|
|
2156
|
-
} | QueryOptionsCb;
|
|
2157
|
-
};
|
|
2158
|
-
};
|
|
2159
|
-
|
|
2160
|
-
declare type QueryOptionsCb = (args: QueryOptionsCbArgs) => Promise<any>;
|
|
2161
|
-
|
|
2162
|
-
declare type QueryOptionsCbArgs = {
|
|
2163
|
-
model?: string;
|
|
2164
|
-
operation: string;
|
|
2165
|
-
args: object;
|
|
2166
|
-
query: (args: object) => Promise<unknown>;
|
|
2167
|
-
};
|
|
2168
|
-
|
|
2169
|
-
/**
|
|
2170
|
-
* Create raw SQL statement.
|
|
2171
|
-
*/
|
|
2172
|
-
export declare function raw(value: string): Sql;
|
|
2173
|
-
|
|
2174
|
-
declare type RawParameters = {
|
|
2175
|
-
__prismaRawParameters__: true;
|
|
2176
|
-
values: string;
|
|
2177
|
-
};
|
|
2178
|
-
|
|
2179
|
-
declare type RawQueryArgs = [query: string | TemplateStringsArray | Sql, ...values: RawValue[]];
|
|
2180
|
-
|
|
2181
|
-
/**
|
|
2182
|
-
* Supported value or SQL instance.
|
|
2183
|
-
*/
|
|
2184
|
-
export declare type RawValue = Value | Sql;
|
|
2185
|
-
|
|
2186
|
-
declare type ReadonlyDeep<T> = {
|
|
2187
|
-
readonly [K in keyof T]: ReadonlyDeep<T[K]>;
|
|
2188
|
-
};
|
|
2189
|
-
|
|
2190
|
-
declare type ReadonlySelector<T> = T extends unknown ? {
|
|
2191
|
-
readonly [K in keyof T as K extends 'include' | 'select' ? K : never]: ReadonlyDeep<T[K]>;
|
|
2192
|
-
} & {
|
|
2193
|
-
[K in keyof T as K extends 'include' | 'select' ? never : K]: T[K];
|
|
2194
|
-
} : never;
|
|
2195
|
-
|
|
2196
|
-
declare type RejectOnNotFound = boolean | ((error: Error) => Error) | undefined;
|
|
2197
|
-
|
|
2198
|
-
declare type Request_2 = {
|
|
2199
|
-
protocolMessage: ProtocolMessage;
|
|
2200
|
-
protocolEncoder: ProtocolEncoder;
|
|
2201
|
-
transaction?: PrismaPromiseTransaction;
|
|
2202
|
-
otelParentCtx?: Context;
|
|
2203
|
-
otelChildCtx?: Context;
|
|
2204
|
-
customDataProxyFetch?: (fetch: Fetch) => Fetch;
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
|
-
declare type RequestBatchOptions<InteractiveTransactionPayload> = {
|
|
2208
|
-
transaction?: TransactionOptions<InteractiveTransactionPayload>;
|
|
2209
|
-
traceparent?: string;
|
|
2210
|
-
numTry?: number;
|
|
2211
|
-
containsWrite: boolean;
|
|
2212
|
-
customDataProxyFetch?: (fetch: Fetch) => Fetch;
|
|
2213
|
-
};
|
|
2214
|
-
|
|
2215
|
-
declare class RequestHandler {
|
|
2216
|
-
client: Client;
|
|
2217
|
-
dataloader: DataLoader<Request_2>;
|
|
2218
|
-
private logEmitter?;
|
|
2219
|
-
constructor(client: Client, logEmitter?: EventEmitter);
|
|
2220
|
-
request({ protocolMessage, protocolEncoder, dataPath, callsite, modelName, rejectOnNotFound, clientMethod, args, transaction, unpacker, extensions, otelParentCtx, otelChildCtx, customDataProxyFetch, }: RequestParams): Promise<any>;
|
|
2221
|
-
/**
|
|
2222
|
-
* Handles the error and logs it, logging the error is done synchronously waiting for the event
|
|
2223
|
-
* handlers to finish.
|
|
2224
|
-
*/
|
|
2225
|
-
handleAndLogRequestError(params: HandleErrorParams): never;
|
|
2226
|
-
handleRequestError({ error, clientMethod, callsite, transaction, args }: HandleErrorParams): never;
|
|
2227
|
-
sanitizeMessage(message: any): any;
|
|
2228
|
-
unpack(message: ProtocolMessage, data: unknown, dataPath: string[], unpacker?: Unpacker): any;
|
|
2229
|
-
applyResultExtensions({ result, modelName, args, extensions }: ApplyExtensionsParams): object;
|
|
2230
|
-
get [Symbol.toStringTag](): string;
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
declare type RequestOptions<InteractiveTransactionPayload> = {
|
|
2234
|
-
traceparent?: string;
|
|
2235
|
-
numTry?: number;
|
|
2236
|
-
interactiveTransaction?: InteractiveTransactionOptions<InteractiveTransactionPayload>;
|
|
2237
|
-
isWrite: boolean;
|
|
2238
|
-
customDataProxyFetch?: (fetch: Fetch) => Fetch;
|
|
2239
|
-
};
|
|
2240
|
-
|
|
2241
|
-
declare type RequestOptions_2 = {
|
|
2242
|
-
method?: string;
|
|
2243
|
-
headers?: Record<string, string>;
|
|
2244
|
-
body?: string;
|
|
2245
|
-
};
|
|
2246
|
-
|
|
2247
|
-
declare type RequestParams = {
|
|
2248
|
-
modelName?: string;
|
|
2249
|
-
protocolMessage: ProtocolMessage;
|
|
2250
|
-
protocolEncoder: ProtocolEncoder;
|
|
2251
|
-
dataPath: string[];
|
|
2252
|
-
clientMethod: string;
|
|
2253
|
-
callsite?: CallSite;
|
|
2254
|
-
rejectOnNotFound?: RejectOnNotFound;
|
|
2255
|
-
transaction?: PrismaPromiseTransaction;
|
|
2256
|
-
extensions: MergedExtensionsList;
|
|
2257
|
-
args?: any;
|
|
2258
|
-
headers?: Record<string, string>;
|
|
2259
|
-
unpacker?: Unpacker;
|
|
2260
|
-
otelParentCtx?: Context;
|
|
2261
|
-
otelChildCtx?: Context;
|
|
2262
|
-
customDataProxyFetch?: (fetch: Fetch) => Fetch;
|
|
2263
|
-
};
|
|
2264
|
-
|
|
2265
|
-
declare type RequestResponse = {
|
|
2266
|
-
ok: boolean;
|
|
2267
|
-
url: string;
|
|
2268
|
-
statusText?: string;
|
|
2269
|
-
status: number;
|
|
2270
|
-
headers: Headers_2;
|
|
2271
|
-
text: () => Promise<string>;
|
|
2272
|
-
json: () => Promise<any>;
|
|
2273
|
-
};
|
|
2274
|
-
|
|
2275
|
-
declare type RequiredArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions;
|
|
2276
|
-
|
|
2277
|
-
declare type Result<T, A, F extends Operation> = T extends {
|
|
2278
|
-
[K: symbol]: {
|
|
2279
|
-
types: {
|
|
2280
|
-
[K in F]: {
|
|
2281
|
-
payload: any;
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
|
-
};
|
|
2285
|
-
} ? GetResult_2<T[symbol]['types'][F]['payload'], A, F> : never;
|
|
2286
|
-
|
|
2287
|
-
declare type ResultArg = {
|
|
2288
|
-
[FieldName in string]: ResultFieldDefinition;
|
|
2289
|
-
};
|
|
2290
|
-
|
|
2291
|
-
declare type ResultArgs = {
|
|
2292
|
-
result: {
|
|
2293
|
-
[ModelName in string]: ResultArg;
|
|
2294
|
-
};
|
|
2295
|
-
};
|
|
2296
|
-
|
|
2297
|
-
declare type ResultArgsFieldCompute = (model: any) => unknown;
|
|
2298
|
-
|
|
2299
|
-
declare type ResultFieldDefinition = {
|
|
2300
|
-
needs?: {
|
|
2301
|
-
[FieldName in string]: boolean;
|
|
2302
|
-
};
|
|
2303
|
-
compute: ResultArgsFieldCompute;
|
|
2304
|
-
};
|
|
2305
|
-
|
|
2306
|
-
declare type RuntimeDataModel = {
|
|
2307
|
-
readonly models: Record<string, RuntimeModel>;
|
|
2308
|
-
readonly enums: Record<string, RuntimeEnum>;
|
|
2309
|
-
readonly types: Record<string, RuntimeModel>;
|
|
2310
|
-
};
|
|
2311
|
-
|
|
2312
|
-
declare type RuntimeEnum = Omit<DMMF.DatamodelEnum, 'name'>;
|
|
2313
|
-
|
|
2314
|
-
declare type RuntimeModel = Omit<DMMF.Model, 'name'>;
|
|
2315
|
-
|
|
2316
|
-
declare type Selection_2 = Record<string, boolean | JsArgs>;
|
|
2317
|
-
|
|
2318
|
-
/**
|
|
2319
|
-
* An interface that represents a span. A span represents a single operation
|
|
2320
|
-
* within a trace. Examples of span might include remote procedure calls or a
|
|
2321
|
-
* in-process function calls to sub-components. A Trace has a single, top-level
|
|
2322
|
-
* "root" Span that in turn may have zero or more child Spans, which in turn
|
|
2323
|
-
* may have children.
|
|
2324
|
-
*
|
|
2325
|
-
* Spans are created by the {@link Tracer.startSpan} method.
|
|
2326
|
-
*/
|
|
2327
|
-
declare interface Span {
|
|
2328
|
-
/**
|
|
2329
|
-
* Returns the {@link SpanContext} object associated with this Span.
|
|
2330
|
-
*
|
|
2331
|
-
* Get an immutable, serializable identifier for this span that can be used
|
|
2332
|
-
* to create new child spans. Returned SpanContext is usable even after the
|
|
2333
|
-
* span ends.
|
|
2334
|
-
*
|
|
2335
|
-
* @returns the SpanContext object associated with this Span.
|
|
2336
|
-
*/
|
|
2337
|
-
spanContext(): SpanContext;
|
|
2338
|
-
/**
|
|
2339
|
-
* Sets an attribute to the span.
|
|
2340
|
-
*
|
|
2341
|
-
* Sets a single Attribute with the key and value passed as arguments.
|
|
2342
|
-
*
|
|
2343
|
-
* @param key the key for this attribute.
|
|
2344
|
-
* @param value the value for this attribute. Setting a value null or
|
|
2345
|
-
* undefined is invalid and will result in undefined behavior.
|
|
2346
|
-
*/
|
|
2347
|
-
setAttribute(key: string, value: SpanAttributeValue): this;
|
|
2348
|
-
/**
|
|
2349
|
-
* Sets attributes to the span.
|
|
2350
|
-
*
|
|
2351
|
-
* @param attributes the attributes that will be added.
|
|
2352
|
-
* null or undefined attribute values
|
|
2353
|
-
* are invalid and will result in undefined behavior.
|
|
2354
|
-
*/
|
|
2355
|
-
setAttributes(attributes: SpanAttributes): this;
|
|
2356
|
-
/**
|
|
2357
|
-
* Adds an event to the Span.
|
|
2358
|
-
*
|
|
2359
|
-
* @param name the name of the event.
|
|
2360
|
-
* @param [attributesOrStartTime] the attributes that will be added; these are
|
|
2361
|
-
* associated with this event. Can be also a start time
|
|
2362
|
-
* if type is {@type TimeInput} and 3rd param is undefined
|
|
2363
|
-
* @param [startTime] start time of the event.
|
|
2364
|
-
*/
|
|
2365
|
-
addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this;
|
|
2366
|
-
/**
|
|
2367
|
-
* Sets a status to the span. If used, this will override the default Span
|
|
2368
|
-
* status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
|
|
2369
|
-
* of previous calls to SetStatus on the Span.
|
|
2370
|
-
*
|
|
2371
|
-
* @param status the SpanStatus to set.
|
|
2372
|
-
*/
|
|
2373
|
-
setStatus(status: SpanStatus): this;
|
|
2374
|
-
/**
|
|
2375
|
-
* Updates the Span name.
|
|
2376
|
-
*
|
|
2377
|
-
* This will override the name provided via {@link Tracer.startSpan}.
|
|
2378
|
-
*
|
|
2379
|
-
* Upon this update, any sampling behavior based on Span name will depend on
|
|
2380
|
-
* the implementation.
|
|
2381
|
-
*
|
|
2382
|
-
* @param name the Span name.
|
|
2383
|
-
*/
|
|
2384
|
-
updateName(name: string): this;
|
|
2385
|
-
/**
|
|
2386
|
-
* Marks the end of Span execution.
|
|
2387
|
-
*
|
|
2388
|
-
* Call to End of a Span MUST not have any effects on child spans. Those may
|
|
2389
|
-
* still be running and can be ended later.
|
|
2390
|
-
*
|
|
2391
|
-
* Do not return `this`. The Span generally should not be used after it
|
|
2392
|
-
* is ended so chaining is not desired in this context.
|
|
2393
|
-
*
|
|
2394
|
-
* @param [endTime] the time to set as Span's end time. If not provided,
|
|
2395
|
-
* use the current time as the span's end time.
|
|
2396
|
-
*/
|
|
2397
|
-
end(endTime?: TimeInput): void;
|
|
2398
|
-
/**
|
|
2399
|
-
* Returns the flag whether this span will be recorded.
|
|
2400
|
-
*
|
|
2401
|
-
* @returns true if this Span is active and recording information like events
|
|
2402
|
-
* with the `AddEvent` operation and attributes using `setAttributes`.
|
|
2403
|
-
*/
|
|
2404
|
-
isRecording(): boolean;
|
|
2405
|
-
/**
|
|
2406
|
-
* Sets exception as a span event
|
|
2407
|
-
* @param exception the exception the only accepted values are string or Error
|
|
2408
|
-
* @param [time] the time to set as Span's event time. If not provided,
|
|
2409
|
-
* use the current time.
|
|
2410
|
-
*/
|
|
2411
|
-
recordException(exception: Exception, time?: TimeInput): void;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
/**
|
|
2415
|
-
* @deprecated please use {@link Attributes}
|
|
2416
|
-
*/
|
|
2417
|
-
declare type SpanAttributes = Attributes;
|
|
2418
|
-
|
|
2419
|
-
/**
|
|
2420
|
-
* @deprecated please use {@link AttributeValue}
|
|
2421
|
-
*/
|
|
2422
|
-
declare type SpanAttributeValue = AttributeValue;
|
|
2423
|
-
|
|
2424
|
-
declare type SpanCallback<R> = (span?: Span, context?: Context) => R;
|
|
2425
|
-
|
|
2426
|
-
/**
|
|
2427
|
-
* A SpanContext represents the portion of a {@link Span} which must be
|
|
2428
|
-
* serialized and propagated along side of a {@link Baggage}.
|
|
2429
|
-
*/
|
|
2430
|
-
declare interface SpanContext {
|
|
2431
|
-
/**
|
|
2432
|
-
* The ID of the trace that this span belongs to. It is worldwide unique
|
|
2433
|
-
* with practically sufficient probability by being made as 16 randomly
|
|
2434
|
-
* generated bytes, encoded as a 32 lowercase hex characters corresponding to
|
|
2435
|
-
* 128 bits.
|
|
2436
|
-
*/
|
|
2437
|
-
traceId: string;
|
|
2438
|
-
/**
|
|
2439
|
-
* The ID of the Span. It is globally unique with practically sufficient
|
|
2440
|
-
* probability by being made as 8 randomly generated bytes, encoded as a 16
|
|
2441
|
-
* lowercase hex characters corresponding to 64 bits.
|
|
2442
|
-
*/
|
|
2443
|
-
spanId: string;
|
|
2444
|
-
/**
|
|
2445
|
-
* Only true if the SpanContext was propagated from a remote parent.
|
|
2446
|
-
*/
|
|
2447
|
-
isRemote?: boolean;
|
|
2448
|
-
/**
|
|
2449
|
-
* Trace flags to propagate.
|
|
2450
|
-
*
|
|
2451
|
-
* It is represented as 1 byte (bitmap). Bit to represent whether trace is
|
|
2452
|
-
* sampled or not. When set, the least significant bit documents that the
|
|
2453
|
-
* caller may have recorded trace data. A caller who does not record trace
|
|
2454
|
-
* data out-of-band leaves this flag unset.
|
|
2455
|
-
*
|
|
2456
|
-
* see {@link TraceFlags} for valid flag values.
|
|
2457
|
-
*/
|
|
2458
|
-
traceFlags: number;
|
|
2459
|
-
/**
|
|
2460
|
-
* Tracing-system-specific info to propagate.
|
|
2461
|
-
*
|
|
2462
|
-
* The tracestate field value is a `list` as defined below. The `list` is a
|
|
2463
|
-
* series of `list-members` separated by commas `,`, and a list-member is a
|
|
2464
|
-
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
|
|
2465
|
-
* surrounding `list-members` are ignored. There can be a maximum of 32
|
|
2466
|
-
* `list-members` in a `list`.
|
|
2467
|
-
* More Info: https://www.w3.org/TR/trace-context/#tracestate-field
|
|
2468
|
-
*
|
|
2469
|
-
* Examples:
|
|
2470
|
-
* Single tracing system (generic format):
|
|
2471
|
-
* tracestate: rojo=00f067aa0ba902b7
|
|
2472
|
-
* Multiple tracing systems (with different formatting):
|
|
2473
|
-
* tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE
|
|
2474
|
-
*/
|
|
2475
|
-
traceState?: TraceState;
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
|
-
declare enum SpanKind {
|
|
2479
|
-
/** Default value. Indicates that the span is used internally. */
|
|
2480
|
-
INTERNAL = 0,
|
|
2481
|
-
/**
|
|
2482
|
-
* Indicates that the span covers server-side handling of an RPC or other
|
|
2483
|
-
* remote request.
|
|
2484
|
-
*/
|
|
2485
|
-
SERVER = 1,
|
|
2486
|
-
/**
|
|
2487
|
-
* Indicates that the span covers the client-side wrapper around an RPC or
|
|
2488
|
-
* other remote request.
|
|
2489
|
-
*/
|
|
2490
|
-
CLIENT = 2,
|
|
2491
|
-
/**
|
|
2492
|
-
* Indicates that the span describes producer sending a message to a
|
|
2493
|
-
* broker. Unlike client and server, there is no direct critical path latency
|
|
2494
|
-
* relationship between producer and consumer spans.
|
|
2495
|
-
*/
|
|
2496
|
-
PRODUCER = 3,
|
|
2497
|
-
/**
|
|
2498
|
-
* Indicates that the span describes consumer receiving a message from a
|
|
2499
|
-
* broker. Unlike client and server, there is no direct critical path latency
|
|
2500
|
-
* relationship between producer and consumer spans.
|
|
2501
|
-
*/
|
|
2502
|
-
CONSUMER = 4
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
/**
|
|
2506
|
-
* Options needed for span creation
|
|
2507
|
-
*/
|
|
2508
|
-
declare interface SpanOptions {
|
|
2509
|
-
/**
|
|
2510
|
-
* The SpanKind of a span
|
|
2511
|
-
* @default {@link SpanKind.INTERNAL}
|
|
2512
|
-
*/
|
|
2513
|
-
kind?: SpanKind;
|
|
2514
|
-
/** A span's attributes */
|
|
2515
|
-
attributes?: SpanAttributes;
|
|
2516
|
-
/** {@link Link}s span to other spans */
|
|
2517
|
-
links?: Link[];
|
|
2518
|
-
/** A manually specified start time for the created `Span` object. */
|
|
2519
|
-
startTime?: TimeInput;
|
|
2520
|
-
/** The new span should be a root span. (Ignore parent from context). */
|
|
2521
|
-
root?: boolean;
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
declare interface SpanStatus {
|
|
2525
|
-
/** The status code of this message. */
|
|
2526
|
-
code: SpanStatusCode;
|
|
2527
|
-
/** A developer-facing error message. */
|
|
2528
|
-
message?: string;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* An enumeration of status codes.
|
|
2533
|
-
*/
|
|
2534
|
-
declare enum SpanStatusCode {
|
|
2535
|
-
/**
|
|
2536
|
-
* The default status.
|
|
2537
|
-
*/
|
|
2538
|
-
UNSET = 0,
|
|
2539
|
-
/**
|
|
2540
|
-
* The operation has been validated by an Application developer or
|
|
2541
|
-
* Operator to have completed successfully.
|
|
2542
|
-
*/
|
|
2543
|
-
OK = 1,
|
|
2544
|
-
/**
|
|
2545
|
-
* The operation contains an error.
|
|
2546
|
-
*/
|
|
2547
|
-
ERROR = 2
|
|
2548
|
-
}
|
|
2549
|
-
|
|
2550
|
-
/**
|
|
2551
|
-
* A SQL instance can be nested within each other to build SQL strings.
|
|
2552
|
-
*/
|
|
2553
|
-
export declare class Sql {
|
|
2554
|
-
values: Value[];
|
|
2555
|
-
strings: string[];
|
|
2556
|
-
constructor(rawStrings: ReadonlyArray<string>, rawValues: ReadonlyArray<RawValue>);
|
|
2557
|
-
get text(): string;
|
|
2558
|
-
get sql(): string;
|
|
2559
|
-
inspect(): {
|
|
2560
|
-
text: string;
|
|
2561
|
-
sql: string;
|
|
2562
|
-
values: unknown[];
|
|
2563
|
-
};
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
/**
|
|
2567
|
-
* Create a SQL object from a template string.
|
|
2568
|
-
*/
|
|
2569
|
-
export declare function sqltag(strings: ReadonlyArray<string>, ...values: RawValue[]): Sql;
|
|
2570
|
-
|
|
2571
|
-
/**
|
|
2572
|
-
* Defines TimeInput.
|
|
2573
|
-
*
|
|
2574
|
-
* hrtime, epoch milliseconds, performance.now() or Date
|
|
2575
|
-
*/
|
|
2576
|
-
declare type TimeInput = HrTime | number | Date;
|
|
2577
|
-
|
|
2578
|
-
declare interface TraceState {
|
|
2579
|
-
/**
|
|
2580
|
-
* Create a new TraceState which inherits from this TraceState and has the
|
|
2581
|
-
* given key set.
|
|
2582
|
-
* The new entry will always be added in the front of the list of states.
|
|
2583
|
-
*
|
|
2584
|
-
* @param key key of the TraceState entry.
|
|
2585
|
-
* @param value value of the TraceState entry.
|
|
2586
|
-
*/
|
|
2587
|
-
set(key: string, value: string): TraceState;
|
|
2588
|
-
/**
|
|
2589
|
-
* Return a new TraceState which inherits from this TraceState but does not
|
|
2590
|
-
* contain the given key.
|
|
2591
|
-
*
|
|
2592
|
-
* @param key the key for the TraceState entry to be removed.
|
|
2593
|
-
*/
|
|
2594
|
-
unset(key: string): TraceState;
|
|
2595
|
-
/**
|
|
2596
|
-
* Returns the value to which the specified key is mapped, or `undefined` if
|
|
2597
|
-
* this map contains no mapping for the key.
|
|
2598
|
-
*
|
|
2599
|
-
* @param key with which the specified value is to be associated.
|
|
2600
|
-
* @returns the value to which the specified key is mapped, or `undefined` if
|
|
2601
|
-
* this map contains no mapping for the key.
|
|
2602
|
-
*/
|
|
2603
|
-
get(key: string): string | undefined;
|
|
2604
|
-
/**
|
|
2605
|
-
* Serializes the TraceState to a `list` as defined below. The `list` is a
|
|
2606
|
-
* series of `list-members` separated by commas `,`, and a list-member is a
|
|
2607
|
-
* key/value pair separated by an equals sign `=`. Spaces and horizontal tabs
|
|
2608
|
-
* surrounding `list-members` are ignored. There can be a maximum of 32
|
|
2609
|
-
* `list-members` in a `list`.
|
|
2610
|
-
*
|
|
2611
|
-
* @returns the serialized string.
|
|
2612
|
-
*/
|
|
2613
|
-
serialize(): string;
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
declare interface TracingHelper {
|
|
2617
|
-
isEnabled(): boolean;
|
|
2618
|
-
getTraceParent(context?: Context): string;
|
|
2619
|
-
createEngineSpan(engineSpanEvent: EngineSpanEvent): Promise<void>;
|
|
2620
|
-
getActiveContext(): Context | undefined;
|
|
2621
|
-
runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
declare namespace Transaction {
|
|
2625
|
-
export {
|
|
2626
|
-
IsolationLevel,
|
|
2627
|
-
Options,
|
|
2628
|
-
InteractiveTransactionInfo,
|
|
2629
|
-
TransactionHeaders
|
|
2630
|
-
}
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
declare type TransactionHeaders = {
|
|
2634
|
-
traceparent?: string;
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
|
-
declare type TransactionOptions<InteractiveTransactionPayload> = {
|
|
2638
|
-
kind: 'itx';
|
|
2639
|
-
options: InteractiveTransactionOptions<InteractiveTransactionPayload>;
|
|
2640
|
-
} | {
|
|
2641
|
-
kind: 'batch';
|
|
2642
|
-
options: BatchTransactionOptions;
|
|
2643
|
-
};
|
|
2644
|
-
|
|
2645
|
-
export declare function transformDocument(document: Document_2): Document_2;
|
|
2646
|
-
|
|
2647
|
-
declare namespace Types {
|
|
2648
|
-
export {
|
|
2649
|
-
Extensions_2 as Extensions,
|
|
2650
|
-
Utils,
|
|
2651
|
-
Public,
|
|
2652
|
-
GetResult_2 as GetResult,
|
|
2653
|
-
GetFindResult,
|
|
2654
|
-
Payload
|
|
2655
|
-
}
|
|
2656
|
-
}
|
|
2657
|
-
export { Types }
|
|
2658
|
-
|
|
2659
|
-
declare type UnknownErrorParams = {
|
|
2660
|
-
clientVersion: string;
|
|
2661
|
-
batchRequestIdx?: number;
|
|
2662
|
-
};
|
|
2663
|
-
|
|
2664
|
-
/**
|
|
2665
|
-
* Unpacks the result of a data object and maps DateTime fields to instances of `Date` in-place
|
|
2666
|
-
* @param options: UnpackOptions
|
|
2667
|
-
*/
|
|
2668
|
-
export declare function unpack({ document, path, data }: UnpackOptions): any;
|
|
2669
|
-
|
|
2670
|
-
declare type Unpacker = (data: any) => any;
|
|
2671
|
-
|
|
2672
|
-
declare interface UnpackOptions {
|
|
2673
|
-
document: Document_2;
|
|
2674
|
-
path: string[];
|
|
2675
|
-
data: any;
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
/**
|
|
2679
|
-
* Input that flows from the user into the Client.
|
|
2680
|
-
*/
|
|
2681
|
-
declare type UserArgs = any;
|
|
2682
|
-
|
|
2683
|
-
declare namespace Utils {
|
|
2684
|
-
export {
|
|
2685
|
-
EmptyToUnknown,
|
|
2686
|
-
NeverToUnknown,
|
|
2687
|
-
PatchFlat,
|
|
2688
|
-
PatchDeep,
|
|
2689
|
-
Omit_2 as Omit,
|
|
2690
|
-
Pick_2 as Pick,
|
|
2691
|
-
PatchFlat3,
|
|
2692
|
-
Compute,
|
|
2693
|
-
OptionalFlat,
|
|
2694
|
-
ReadonlyDeep,
|
|
2695
|
-
Narrow,
|
|
2696
|
-
Exact,
|
|
2697
|
-
Cast,
|
|
2698
|
-
LegacyExact,
|
|
2699
|
-
WrapPropsInFnDeep
|
|
2700
|
-
}
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
/**
|
|
2704
|
-
* Values supported by SQL engine.
|
|
2705
|
-
*/
|
|
2706
|
-
export declare type Value = unknown;
|
|
2707
|
-
|
|
2708
|
-
export declare function warnEnvConflicts(envPaths: any): void;
|
|
2709
|
-
|
|
2710
|
-
export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void;
|
|
2711
|
-
|
|
2712
|
-
declare type WrapPropsInFnDeep<T> = {
|
|
2713
|
-
[K in keyof T]: T[K] extends Function ? T[K] : T[K] extends object ? WrapPropsInFnDeep<T[K]> : () => T[K];
|
|
2714
|
-
} & {};
|
|
2715
|
-
|
|
2716
|
-
export { }
|