prisma 6.16.0-integration-feat-orm-1375-web-client-ts.3 → 6.16.0-integration-feat-orm-1074-package-dev-export.2

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.
Files changed (35) hide show
  1. package/build/index.js +745 -733
  2. package/package.json +14 -14
  3. package/prisma-client/extension.d.ts +1 -0
  4. package/prisma-client/extension.js +1 -0
  5. package/prisma-client/generator-build/index.js +10 -3
  6. package/prisma-client/package.json +7 -1
  7. package/prisma-client/runtime/binary.js +105 -114
  8. package/prisma-client/runtime/binary.js.map +4 -4
  9. package/prisma-client/runtime/binary.mjs +105 -114
  10. package/prisma-client/runtime/binary.mjs.map +4 -4
  11. package/prisma-client/runtime/client.js +38 -47
  12. package/prisma-client/runtime/client.js.map +4 -4
  13. package/prisma-client/runtime/client.mjs +38 -47
  14. package/prisma-client/runtime/client.mjs.map +4 -4
  15. package/prisma-client/runtime/edge-esm.js +18 -18
  16. package/prisma-client/runtime/edge-esm.js.map +4 -4
  17. package/prisma-client/runtime/edge.js +18 -18
  18. package/prisma-client/runtime/edge.js.map +4 -4
  19. package/prisma-client/runtime/index-browser.js +1 -12
  20. package/prisma-client/runtime/index-browser.js.map +4 -4
  21. package/prisma-client/runtime/index-browser.mjs +1 -12
  22. package/prisma-client/runtime/index-browser.mjs.map +4 -4
  23. package/prisma-client/runtime/library.js +56 -67
  24. package/prisma-client/runtime/library.js.map +4 -4
  25. package/prisma-client/runtime/library.mjs +56 -67
  26. package/prisma-client/runtime/library.mjs.map +4 -4
  27. package/prisma-client/runtime/react-native.js +31 -31
  28. package/prisma-client/runtime/react-native.js.map +4 -4
  29. package/prisma-client/runtime/utilities.d.mts +414 -0
  30. package/prisma-client/runtime/utilities.d.ts +414 -0
  31. package/prisma-client/runtime/utilities.js +13 -0
  32. package/prisma-client/runtime/utilities.js.map +7 -0
  33. package/prisma-client/runtime/utilities.mjs +13 -0
  34. package/prisma-client/runtime/utilities.mjs.map +7 -0
  35. package/prisma-client/scripts/default-index.js +1 -1
@@ -0,0 +1,414 @@
1
+ declare class AnyNull extends NullTypesEnumValue {
2
+ #private;
3
+ }
4
+
5
+ declare class DbNull extends NullTypesEnumValue {
6
+ #private;
7
+ }
8
+
9
+ export declare function Decimal(n: Decimal.Value): Decimal;
10
+
11
+ export declare namespace Decimal {
12
+ export type Constructor = typeof Decimal;
13
+ export type Instance = Decimal;
14
+ export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
15
+ export type Modulo = Rounding | 9;
16
+ export type Value = string | number | Decimal;
17
+
18
+ // http://mikemcl.github.io/decimal.js/#constructor-properties
19
+ export interface Config {
20
+ precision?: number;
21
+ rounding?: Rounding;
22
+ toExpNeg?: number;
23
+ toExpPos?: number;
24
+ minE?: number;
25
+ maxE?: number;
26
+ crypto?: boolean;
27
+ modulo?: Modulo;
28
+ defaults?: boolean;
29
+ }
30
+ }
31
+
32
+ export declare class Decimal {
33
+ readonly d: number[];
34
+ readonly e: number;
35
+ readonly s: number;
36
+
37
+ constructor(n: Decimal.Value);
38
+
39
+ absoluteValue(): Decimal;
40
+ abs(): Decimal;
41
+
42
+ ceil(): Decimal;
43
+
44
+ clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
45
+ clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
46
+
47
+ comparedTo(n: Decimal.Value): number;
48
+ cmp(n: Decimal.Value): number;
49
+
50
+ cosine(): Decimal;
51
+ cos(): Decimal;
52
+
53
+ cubeRoot(): Decimal;
54
+ cbrt(): Decimal;
55
+
56
+ decimalPlaces(): number;
57
+ dp(): number;
58
+
59
+ dividedBy(n: Decimal.Value): Decimal;
60
+ div(n: Decimal.Value): Decimal;
61
+
62
+ dividedToIntegerBy(n: Decimal.Value): Decimal;
63
+ divToInt(n: Decimal.Value): Decimal;
64
+
65
+ equals(n: Decimal.Value): boolean;
66
+ eq(n: Decimal.Value): boolean;
67
+
68
+ floor(): Decimal;
69
+
70
+ greaterThan(n: Decimal.Value): boolean;
71
+ gt(n: Decimal.Value): boolean;
72
+
73
+ greaterThanOrEqualTo(n: Decimal.Value): boolean;
74
+ gte(n: Decimal.Value): boolean;
75
+
76
+ hyperbolicCosine(): Decimal;
77
+ cosh(): Decimal;
78
+
79
+ hyperbolicSine(): Decimal;
80
+ sinh(): Decimal;
81
+
82
+ hyperbolicTangent(): Decimal;
83
+ tanh(): Decimal;
84
+
85
+ inverseCosine(): Decimal;
86
+ acos(): Decimal;
87
+
88
+ inverseHyperbolicCosine(): Decimal;
89
+ acosh(): Decimal;
90
+
91
+ inverseHyperbolicSine(): Decimal;
92
+ asinh(): Decimal;
93
+
94
+ inverseHyperbolicTangent(): Decimal;
95
+ atanh(): Decimal;
96
+
97
+ inverseSine(): Decimal;
98
+ asin(): Decimal;
99
+
100
+ inverseTangent(): Decimal;
101
+ atan(): Decimal;
102
+
103
+ isFinite(): boolean;
104
+
105
+ isInteger(): boolean;
106
+ isInt(): boolean;
107
+
108
+ isNaN(): boolean;
109
+
110
+ isNegative(): boolean;
111
+ isNeg(): boolean;
112
+
113
+ isPositive(): boolean;
114
+ isPos(): boolean;
115
+
116
+ isZero(): boolean;
117
+
118
+ lessThan(n: Decimal.Value): boolean;
119
+ lt(n: Decimal.Value): boolean;
120
+
121
+ lessThanOrEqualTo(n: Decimal.Value): boolean;
122
+ lte(n: Decimal.Value): boolean;
123
+
124
+ logarithm(n?: Decimal.Value): Decimal;
125
+ log(n?: Decimal.Value): Decimal;
126
+
127
+ minus(n: Decimal.Value): Decimal;
128
+ sub(n: Decimal.Value): Decimal;
129
+
130
+ modulo(n: Decimal.Value): Decimal;
131
+ mod(n: Decimal.Value): Decimal;
132
+
133
+ naturalExponential(): Decimal;
134
+ exp(): Decimal;
135
+
136
+ naturalLogarithm(): Decimal;
137
+ ln(): Decimal;
138
+
139
+ negated(): Decimal;
140
+ neg(): Decimal;
141
+
142
+ plus(n: Decimal.Value): Decimal;
143
+ add(n: Decimal.Value): Decimal;
144
+
145
+ precision(includeZeros?: boolean): number;
146
+ sd(includeZeros?: boolean): number;
147
+
148
+ round(): Decimal;
149
+
150
+ sine() : Decimal;
151
+ sin() : Decimal;
152
+
153
+ squareRoot(): Decimal;
154
+ sqrt(): Decimal;
155
+
156
+ tangent() : Decimal;
157
+ tan() : Decimal;
158
+
159
+ times(n: Decimal.Value): Decimal;
160
+ mul(n: Decimal.Value) : Decimal;
161
+
162
+ toBinary(significantDigits?: number): string;
163
+ toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
164
+
165
+ toDecimalPlaces(decimalPlaces?: number): Decimal;
166
+ toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
167
+ toDP(decimalPlaces?: number): Decimal;
168
+ toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
169
+
170
+ toExponential(decimalPlaces?: number): string;
171
+ toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
172
+
173
+ toFixed(decimalPlaces?: number): string;
174
+ toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
175
+
176
+ toFraction(max_denominator?: Decimal.Value): Decimal[];
177
+
178
+ toHexadecimal(significantDigits?: number): string;
179
+ toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
180
+ toHex(significantDigits?: number): string;
181
+ toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
182
+
183
+ toJSON(): string;
184
+
185
+ toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
186
+
187
+ toNumber(): number;
188
+
189
+ toOctal(significantDigits?: number): string;
190
+ toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
191
+
192
+ toPower(n: Decimal.Value): Decimal;
193
+ pow(n: Decimal.Value): Decimal;
194
+
195
+ toPrecision(significantDigits?: number): string;
196
+ toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
197
+
198
+ toSignificantDigits(significantDigits?: number): Decimal;
199
+ toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
200
+ toSD(significantDigits?: number): Decimal;
201
+ toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
202
+
203
+ toString(): string;
204
+
205
+ truncated(): Decimal;
206
+ trunc(): Decimal;
207
+
208
+ valueOf(): string;
209
+
210
+ static abs(n: Decimal.Value): Decimal;
211
+ static acos(n: Decimal.Value): Decimal;
212
+ static acosh(n: Decimal.Value): Decimal;
213
+ static add(x: Decimal.Value, y: Decimal.Value): Decimal;
214
+ static asin(n: Decimal.Value): Decimal;
215
+ static asinh(n: Decimal.Value): Decimal;
216
+ static atan(n: Decimal.Value): Decimal;
217
+ static atanh(n: Decimal.Value): Decimal;
218
+ static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
219
+ static cbrt(n: Decimal.Value): Decimal;
220
+ static ceil(n: Decimal.Value): Decimal;
221
+ static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
222
+ static clone(object?: Decimal.Config): Decimal.Constructor;
223
+ static config(object: Decimal.Config): Decimal.Constructor;
224
+ static cos(n: Decimal.Value): Decimal;
225
+ static cosh(n: Decimal.Value): Decimal;
226
+ static div(x: Decimal.Value, y: Decimal.Value): Decimal;
227
+ static exp(n: Decimal.Value): Decimal;
228
+ static floor(n: Decimal.Value): Decimal;
229
+ static hypot(...n: Decimal.Value[]): Decimal;
230
+ static isDecimal(object: any): object is Decimal;
231
+ static ln(n: Decimal.Value): Decimal;
232
+ static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
233
+ static log2(n: Decimal.Value): Decimal;
234
+ static log10(n: Decimal.Value): Decimal;
235
+ static max(...n: Decimal.Value[]): Decimal;
236
+ static min(...n: Decimal.Value[]): Decimal;
237
+ static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
238
+ static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
239
+ static noConflict(): Decimal.Constructor; // Browser only
240
+ static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
241
+ static random(significantDigits?: number): Decimal;
242
+ static round(n: Decimal.Value): Decimal;
243
+ static set(object: Decimal.Config): Decimal.Constructor;
244
+ static sign(n: Decimal.Value): number;
245
+ static sin(n: Decimal.Value): Decimal;
246
+ static sinh(n: Decimal.Value): Decimal;
247
+ static sqrt(n: Decimal.Value): Decimal;
248
+ static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
249
+ static sum(...n: Decimal.Value[]): Decimal;
250
+ static tan(n: Decimal.Value): Decimal;
251
+ static tanh(n: Decimal.Value): Decimal;
252
+ static trunc(n: Decimal.Value): Decimal;
253
+
254
+ static readonly default?: Decimal.Constructor;
255
+ static readonly Decimal?: Decimal.Constructor;
256
+
257
+ static readonly precision: number;
258
+ static readonly rounding: Decimal.Rounding;
259
+ static readonly toExpNeg: number;
260
+ static readonly toExpPos: number;
261
+ static readonly minE: number;
262
+ static readonly maxE: number;
263
+ static readonly crypto: boolean;
264
+ static readonly modulo: Decimal.Modulo;
265
+
266
+ static readonly ROUND_UP: 0;
267
+ static readonly ROUND_DOWN: 1;
268
+ static readonly ROUND_CEIL: 2;
269
+ static readonly ROUND_FLOOR: 3;
270
+ static readonly ROUND_HALF_UP: 4;
271
+ static readonly ROUND_HALF_DOWN: 5;
272
+ static readonly ROUND_HALF_EVEN: 6;
273
+ static readonly ROUND_HALF_CEIL: 7;
274
+ static readonly ROUND_HALF_FLOOR: 8;
275
+ static readonly EUCLID: 9;
276
+ }
277
+
278
+ /**
279
+ * Placeholder value for "no text".
280
+ */
281
+ export declare const empty: Sql;
282
+
283
+ declare interface ErrorWithBatchIndex {
284
+ batchRequestIdx?: number;
285
+ }
286
+
287
+ /**
288
+ * Create a SQL query for a list of values.
289
+ */
290
+ export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
291
+
292
+ declare class JsonNull extends NullTypesEnumValue {
293
+ #private;
294
+ }
295
+
296
+ declare type KnownErrorParams = {
297
+ code: string;
298
+ clientVersion: string;
299
+ meta?: Record<string, unknown>;
300
+ batchRequestIdx?: number;
301
+ };
302
+
303
+ declare class NullTypesEnumValue extends ObjectEnumValue {
304
+ _getNamespace(): string;
305
+ }
306
+
307
+ /**
308
+ * Base class for unique values of object-valued enums.
309
+ */
310
+ export declare abstract class ObjectEnumValue {
311
+ constructor(arg?: symbol);
312
+ abstract _getNamespace(): string;
313
+ _getName(): string;
314
+ toString(): string;
315
+ }
316
+
317
+ export declare const objectEnumValues: {
318
+ classes: {
319
+ DbNull: typeof DbNull;
320
+ JsonNull: typeof JsonNull;
321
+ AnyNull: typeof AnyNull;
322
+ };
323
+ instances: {
324
+ DbNull: DbNull;
325
+ JsonNull: JsonNull;
326
+ AnyNull: AnyNull;
327
+ };
328
+ };
329
+
330
+ declare type Options = {
331
+ clientVersion: string;
332
+ };
333
+
334
+ export declare class PrismaClientInitializationError extends Error {
335
+ clientVersion: string;
336
+ errorCode?: string;
337
+ retryable?: boolean;
338
+ constructor(message: string, clientVersion: string, errorCode?: string);
339
+ get [Symbol.toStringTag](): string;
340
+ }
341
+
342
+ export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
343
+ code: string;
344
+ meta?: Record<string, unknown>;
345
+ clientVersion: string;
346
+ batchRequestIdx?: number;
347
+ constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
348
+ get [Symbol.toStringTag](): string;
349
+ }
350
+
351
+ export declare class PrismaClientRustPanicError extends Error {
352
+ clientVersion: string;
353
+ constructor(message: string, clientVersion: string);
354
+ get [Symbol.toStringTag](): string;
355
+ }
356
+
357
+ export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
358
+ clientVersion: string;
359
+ batchRequestIdx?: number;
360
+ constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
361
+ get [Symbol.toStringTag](): string;
362
+ }
363
+
364
+ export declare class PrismaClientValidationError extends Error {
365
+ name: string;
366
+ clientVersion: string;
367
+ constructor(message: string, { clientVersion }: Options);
368
+ get [Symbol.toStringTag](): string;
369
+ }
370
+
371
+ /**
372
+ * Create raw SQL statement.
373
+ */
374
+ export declare function raw(value: string): Sql;
375
+
376
+ /**
377
+ * Supported value or SQL instance.
378
+ */
379
+ export declare type RawValue = Value | Sql;
380
+
381
+ /**
382
+ * A SQL instance can be nested within each other to build SQL strings.
383
+ */
384
+ export declare class Sql {
385
+ readonly values: Value[];
386
+ readonly strings: string[];
387
+ constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
388
+ get sql(): string;
389
+ get statement(): string;
390
+ get text(): string;
391
+ inspect(): {
392
+ sql: string;
393
+ statement: string;
394
+ text: string;
395
+ values: unknown[];
396
+ };
397
+ }
398
+
399
+ /**
400
+ * Create a SQL object from a template string.
401
+ */
402
+ export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql;
403
+
404
+ declare type UnknownErrorParams = {
405
+ clientVersion: string;
406
+ batchRequestIdx?: number;
407
+ };
408
+
409
+ /**
410
+ * Values supported by SQL engine.
411
+ */
412
+ export declare type Value = unknown;
413
+
414
+ export { }