Erster Docker-Stand
This commit is contained in:
201
_node_modules/@prisma/client-runtime-utils/LICENSE
generated
Normal file
201
_node_modules/@prisma/client-runtime-utils/LICENSE
generated
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
11
_node_modules/@prisma/client-runtime-utils/README.md
generated
Normal file
11
_node_modules/@prisma/client-runtime-utils/README.md
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
# `@prisma/client-runtime-utils`
|
||||
|
||||
This package provides utility types and singleton instances used by the Prisma Client.
|
||||
These are reexported by the generated clients but can also be directly imported from here.
|
||||
This is useful for cases where one does not want to depend on a specific generated Prisma Client.
|
||||
|
||||
Example usage:
|
||||
|
||||
```
|
||||
import { PrismaClientKnownRequestError, DbNull, Decimal } from '@prisma/client-runtime-utils'
|
||||
```
|
||||
4
_node_modules/@prisma/client-runtime-utils/dist/errors/ErrorWithBatchIndex.d.ts
generated
vendored
Normal file
4
_node_modules/@prisma/client-runtime-utils/dist/errors/ErrorWithBatchIndex.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface ErrorWithBatchIndex {
|
||||
batchRequestIdx?: number;
|
||||
}
|
||||
export declare function hasBatchIndex(value: object): value is Required<ErrorWithBatchIndex>;
|
||||
7
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientInitializationError.d.ts
generated
vendored
Normal file
7
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientInitializationError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare class PrismaClientInitializationError extends Error {
|
||||
clientVersion: string;
|
||||
errorCode?: string;
|
||||
retryable?: boolean;
|
||||
constructor(message: string, clientVersion: string, errorCode?: string);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
16
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientKnownRequestError.d.ts
generated
vendored
Normal file
16
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientKnownRequestError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ErrorWithBatchIndex } from './ErrorWithBatchIndex';
|
||||
type KnownErrorParams = {
|
||||
code: string;
|
||||
clientVersion: string;
|
||||
meta?: Record<string, unknown>;
|
||||
batchRequestIdx?: number;
|
||||
};
|
||||
export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
|
||||
code: string;
|
||||
meta?: Record<string, unknown>;
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
export {};
|
||||
16
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientRustError.d.ts
generated
vendored
Normal file
16
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientRustError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { type RustLog } from './log';
|
||||
export type PrismaClientRustErrorArgs = {
|
||||
clientVersion: string;
|
||||
error: RustLog;
|
||||
};
|
||||
/**
|
||||
* A generic Prisma Client Rust error.
|
||||
* This error is being exposed via the `prisma.$on('error')` interface
|
||||
*/
|
||||
export declare class PrismaClientRustError extends Error {
|
||||
clientVersion: string;
|
||||
private _isPanic;
|
||||
constructor({ clientVersion, error }: PrismaClientRustErrorArgs);
|
||||
get [Symbol.toStringTag](): string;
|
||||
isPanic(): boolean;
|
||||
}
|
||||
5
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientRustPanicError.d.ts
generated
vendored
Normal file
5
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientRustPanicError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export declare class PrismaClientRustPanicError extends Error {
|
||||
clientVersion: string;
|
||||
constructor(message: string, clientVersion: string);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
12
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientUnknownRequestError.d.ts
generated
vendored
Normal file
12
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientUnknownRequestError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ErrorWithBatchIndex } from './ErrorWithBatchIndex';
|
||||
type UnknownErrorParams = {
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
};
|
||||
export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
export {};
|
||||
10
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientValidationError.d.ts
generated
vendored
Normal file
10
_node_modules/@prisma/client-runtime-utils/dist/errors/PrismaClientValidationError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
type Options = {
|
||||
clientVersion: string;
|
||||
};
|
||||
export declare class PrismaClientValidationError extends Error {
|
||||
name: string;
|
||||
clientVersion: string;
|
||||
constructor(message: string, { clientVersion }: Options);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
export {};
|
||||
7
_node_modules/@prisma/client-runtime-utils/dist/errors/index.d.ts
generated
vendored
Normal file
7
_node_modules/@prisma/client-runtime-utils/dist/errors/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export * from './ErrorWithBatchIndex';
|
||||
export * from './PrismaClientInitializationError';
|
||||
export * from './PrismaClientKnownRequestError';
|
||||
export * from './PrismaClientRustError';
|
||||
export * from './PrismaClientRustPanicError';
|
||||
export * from './PrismaClientUnknownRequestError';
|
||||
export * from './PrismaClientValidationError';
|
||||
50
_node_modules/@prisma/client-runtime-utils/dist/errors/log.d.ts
generated
vendored
Normal file
50
_node_modules/@prisma/client-runtime-utils/dist/errors/log.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { PrismaClientRustError } from './PrismaClientRustError';
|
||||
export type LogLevel = 'info' | 'trace' | 'debug' | 'warn' | 'error' | 'query';
|
||||
export interface RawRustLog {
|
||||
timestamp: string;
|
||||
level: LogLevel;
|
||||
target: string;
|
||||
fields: LogFields;
|
||||
}
|
||||
export interface RustLog {
|
||||
timestamp: Date;
|
||||
level: LogLevel;
|
||||
target: string;
|
||||
fields: LogFields;
|
||||
}
|
||||
export declare function getMessage(log: string | PrismaClientRustError): string;
|
||||
export declare function getBacktrace(log: RustLog): string;
|
||||
export declare function isPanic(err: RustLog): boolean;
|
||||
export declare function isRustLog(e: any): e is RustLog;
|
||||
export declare function isRustErrorLog(e: any): e is RustLog;
|
||||
export type LogFields = {
|
||||
[key: string]: any;
|
||||
};
|
||||
export interface PanicLogFields {
|
||||
message: 'PANIC';
|
||||
reason: string;
|
||||
file: string;
|
||||
line: string;
|
||||
column: number;
|
||||
}
|
||||
export interface InfoLogFields {
|
||||
message: string;
|
||||
'log.target': string;
|
||||
'log.module_path': string;
|
||||
'log.file': string;
|
||||
'log.line': number;
|
||||
}
|
||||
export interface QueryLogFields {
|
||||
query: string;
|
||||
item_type: string;
|
||||
params: string;
|
||||
duration_ms: number;
|
||||
}
|
||||
export interface Log {
|
||||
message: string;
|
||||
level: LogLevel;
|
||||
date: Date;
|
||||
application: string;
|
||||
[key: string]: string | Date;
|
||||
}
|
||||
export declare function convertLog(rustLog: RawRustLog): RustLog;
|
||||
9
_node_modules/@prisma/client-runtime-utils/dist/errors/setClassName.d.ts
generated
vendored
Normal file
9
_node_modules/@prisma/client-runtime-utils/dist/errors/setClassName.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Used for preserving class names for minified class instances
|
||||
* Useful for error objects and other classes where public name
|
||||
* actually matters
|
||||
*
|
||||
* @param classObject
|
||||
* @param name
|
||||
*/
|
||||
export declare function setClassName(classObject: Function, name: string): void;
|
||||
460
_node_modules/@prisma/client-runtime-utils/dist/index.d.mts
generated
vendored
Normal file
460
_node_modules/@prisma/client-runtime-utils/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,460 @@
|
||||
export declare const AnyNull: AnyNullClass;
|
||||
|
||||
export declare class AnyNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
export declare const DbNull: DbNullClass;
|
||||
|
||||
export declare class DbNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
export declare function Decimal(n: Decimal.Value): Decimal;
|
||||
|
||||
export declare namespace Decimal {
|
||||
export type Constructor = typeof Decimal;
|
||||
export type Instance = Decimal;
|
||||
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||
export type Modulo = Rounding | 9;
|
||||
export type Value = string | number | Decimal;
|
||||
|
||||
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
||||
export interface Config {
|
||||
precision?: number;
|
||||
rounding?: Rounding;
|
||||
toExpNeg?: number;
|
||||
toExpPos?: number;
|
||||
minE?: number;
|
||||
maxE?: number;
|
||||
crypto?: boolean;
|
||||
modulo?: Modulo;
|
||||
defaults?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export declare class Decimal {
|
||||
readonly d: number[];
|
||||
readonly e: number;
|
||||
readonly s: number;
|
||||
|
||||
constructor(n: Decimal.Value);
|
||||
|
||||
absoluteValue(): Decimal;
|
||||
abs(): Decimal;
|
||||
|
||||
ceil(): Decimal;
|
||||
|
||||
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
|
||||
comparedTo(n: Decimal.Value): number;
|
||||
cmp(n: Decimal.Value): number;
|
||||
|
||||
cosine(): Decimal;
|
||||
cos(): Decimal;
|
||||
|
||||
cubeRoot(): Decimal;
|
||||
cbrt(): Decimal;
|
||||
|
||||
decimalPlaces(): number;
|
||||
dp(): number;
|
||||
|
||||
dividedBy(n: Decimal.Value): Decimal;
|
||||
div(n: Decimal.Value): Decimal;
|
||||
|
||||
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
||||
divToInt(n: Decimal.Value): Decimal;
|
||||
|
||||
equals(n: Decimal.Value): boolean;
|
||||
eq(n: Decimal.Value): boolean;
|
||||
|
||||
floor(): Decimal;
|
||||
|
||||
greaterThan(n: Decimal.Value): boolean;
|
||||
gt(n: Decimal.Value): boolean;
|
||||
|
||||
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
gte(n: Decimal.Value): boolean;
|
||||
|
||||
hyperbolicCosine(): Decimal;
|
||||
cosh(): Decimal;
|
||||
|
||||
hyperbolicSine(): Decimal;
|
||||
sinh(): Decimal;
|
||||
|
||||
hyperbolicTangent(): Decimal;
|
||||
tanh(): Decimal;
|
||||
|
||||
inverseCosine(): Decimal;
|
||||
acos(): Decimal;
|
||||
|
||||
inverseHyperbolicCosine(): Decimal;
|
||||
acosh(): Decimal;
|
||||
|
||||
inverseHyperbolicSine(): Decimal;
|
||||
asinh(): Decimal;
|
||||
|
||||
inverseHyperbolicTangent(): Decimal;
|
||||
atanh(): Decimal;
|
||||
|
||||
inverseSine(): Decimal;
|
||||
asin(): Decimal;
|
||||
|
||||
inverseTangent(): Decimal;
|
||||
atan(): Decimal;
|
||||
|
||||
isFinite(): boolean;
|
||||
|
||||
isInteger(): boolean;
|
||||
isInt(): boolean;
|
||||
|
||||
isNaN(): boolean;
|
||||
|
||||
isNegative(): boolean;
|
||||
isNeg(): boolean;
|
||||
|
||||
isPositive(): boolean;
|
||||
isPos(): boolean;
|
||||
|
||||
isZero(): boolean;
|
||||
|
||||
lessThan(n: Decimal.Value): boolean;
|
||||
lt(n: Decimal.Value): boolean;
|
||||
|
||||
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
lte(n: Decimal.Value): boolean;
|
||||
|
||||
logarithm(n?: Decimal.Value): Decimal;
|
||||
log(n?: Decimal.Value): Decimal;
|
||||
|
||||
minus(n: Decimal.Value): Decimal;
|
||||
sub(n: Decimal.Value): Decimal;
|
||||
|
||||
modulo(n: Decimal.Value): Decimal;
|
||||
mod(n: Decimal.Value): Decimal;
|
||||
|
||||
naturalExponential(): Decimal;
|
||||
exp(): Decimal;
|
||||
|
||||
naturalLogarithm(): Decimal;
|
||||
ln(): Decimal;
|
||||
|
||||
negated(): Decimal;
|
||||
neg(): Decimal;
|
||||
|
||||
plus(n: Decimal.Value): Decimal;
|
||||
add(n: Decimal.Value): Decimal;
|
||||
|
||||
precision(includeZeros?: boolean): number;
|
||||
sd(includeZeros?: boolean): number;
|
||||
|
||||
round(): Decimal;
|
||||
|
||||
sine() : Decimal;
|
||||
sin() : Decimal;
|
||||
|
||||
squareRoot(): Decimal;
|
||||
sqrt(): Decimal;
|
||||
|
||||
tangent() : Decimal;
|
||||
tan() : Decimal;
|
||||
|
||||
times(n: Decimal.Value): Decimal;
|
||||
mul(n: Decimal.Value) : Decimal;
|
||||
|
||||
toBinary(significantDigits?: number): string;
|
||||
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
||||
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
toDP(decimalPlaces?: number): Decimal;
|
||||
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toExponential(decimalPlaces?: number): string;
|
||||
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFixed(decimalPlaces?: number): string;
|
||||
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
||||
|
||||
toHexadecimal(significantDigits?: number): string;
|
||||
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
toHex(significantDigits?: number): string;
|
||||
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
||||
|
||||
toJSON(): string;
|
||||
|
||||
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
||||
|
||||
toNumber(): number;
|
||||
|
||||
toOctal(significantDigits?: number): string;
|
||||
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toPower(n: Decimal.Value): Decimal;
|
||||
pow(n: Decimal.Value): Decimal;
|
||||
|
||||
toPrecision(significantDigits?: number): string;
|
||||
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toSignificantDigits(significantDigits?: number): Decimal;
|
||||
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
toSD(significantDigits?: number): Decimal;
|
||||
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toString(): string;
|
||||
|
||||
truncated(): Decimal;
|
||||
trunc(): Decimal;
|
||||
|
||||
valueOf(): string;
|
||||
|
||||
static abs(n: Decimal.Value): Decimal;
|
||||
static acos(n: Decimal.Value): Decimal;
|
||||
static acosh(n: Decimal.Value): Decimal;
|
||||
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static asin(n: Decimal.Value): Decimal;
|
||||
static asinh(n: Decimal.Value): Decimal;
|
||||
static atan(n: Decimal.Value): Decimal;
|
||||
static atanh(n: Decimal.Value): Decimal;
|
||||
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
||||
static cbrt(n: Decimal.Value): Decimal;
|
||||
static ceil(n: Decimal.Value): Decimal;
|
||||
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
static clone(object?: Decimal.Config): Decimal.Constructor;
|
||||
static config(object: Decimal.Config): Decimal.Constructor;
|
||||
static cos(n: Decimal.Value): Decimal;
|
||||
static cosh(n: Decimal.Value): Decimal;
|
||||
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static exp(n: Decimal.Value): Decimal;
|
||||
static floor(n: Decimal.Value): Decimal;
|
||||
static hypot(...n: Decimal.Value[]): Decimal;
|
||||
static isDecimal(object: any): object is Decimal;
|
||||
static ln(n: Decimal.Value): Decimal;
|
||||
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
||||
static log2(n: Decimal.Value): Decimal;
|
||||
static log10(n: Decimal.Value): Decimal;
|
||||
static max(...n: Decimal.Value[]): Decimal;
|
||||
static min(...n: Decimal.Value[]): Decimal;
|
||||
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static noConflict(): Decimal.Constructor; // Browser only
|
||||
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
||||
static random(significantDigits?: number): Decimal;
|
||||
static round(n: Decimal.Value): Decimal;
|
||||
static set(object: Decimal.Config): Decimal.Constructor;
|
||||
static sign(n: Decimal.Value): number;
|
||||
static sin(n: Decimal.Value): Decimal;
|
||||
static sinh(n: Decimal.Value): Decimal;
|
||||
static sqrt(n: Decimal.Value): Decimal;
|
||||
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static sum(...n: Decimal.Value[]): Decimal;
|
||||
static tan(n: Decimal.Value): Decimal;
|
||||
static tanh(n: Decimal.Value): Decimal;
|
||||
static trunc(n: Decimal.Value): Decimal;
|
||||
|
||||
static readonly default?: Decimal.Constructor;
|
||||
static readonly Decimal?: Decimal.Constructor;
|
||||
|
||||
static readonly precision: number;
|
||||
static readonly rounding: Decimal.Rounding;
|
||||
static readonly toExpNeg: number;
|
||||
static readonly toExpPos: number;
|
||||
static readonly minE: number;
|
||||
static readonly maxE: number;
|
||||
static readonly crypto: boolean;
|
||||
static readonly modulo: Decimal.Modulo;
|
||||
|
||||
static readonly ROUND_UP: 0;
|
||||
static readonly ROUND_DOWN: 1;
|
||||
static readonly ROUND_CEIL: 2;
|
||||
static readonly ROUND_FLOOR: 3;
|
||||
static readonly ROUND_HALF_UP: 4;
|
||||
static readonly ROUND_HALF_DOWN: 5;
|
||||
static readonly ROUND_HALF_EVEN: 6;
|
||||
static readonly ROUND_HALF_CEIL: 7;
|
||||
static readonly ROUND_HALF_FLOOR: 8;
|
||||
static readonly EUCLID: 9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Placeholder value for "no text".
|
||||
*/
|
||||
export declare const empty: Sql;
|
||||
|
||||
export declare interface ErrorWithBatchIndex {
|
||||
batchRequestIdx?: number;
|
||||
}
|
||||
|
||||
export declare function hasBatchIndex(value: object): value is Required<ErrorWithBatchIndex>;
|
||||
|
||||
/**
|
||||
* Check if a value is the AnyNull singleton instance.
|
||||
*/
|
||||
export declare function isAnyNull(value: unknown): value is AnyNullClass;
|
||||
|
||||
/**
|
||||
* Check if a value is the DBNull singleton instance.
|
||||
*/
|
||||
export declare function isDbNull(value: unknown): value is DbNullClass;
|
||||
|
||||
/**
|
||||
* Check if a value is the JsonNull singleton instance.
|
||||
*/
|
||||
export declare function isJsonNull(value: unknown): value is JsonNullClass;
|
||||
|
||||
/**
|
||||
* Create a SQL query for a list of values.
|
||||
*/
|
||||
export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
|
||||
|
||||
export declare const JsonNull: JsonNullClass;
|
||||
|
||||
export declare class JsonNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
declare type KnownErrorParams = {
|
||||
code: string;
|
||||
clientVersion: string;
|
||||
meta?: Record<string, unknown>;
|
||||
batchRequestIdx?: number;
|
||||
};
|
||||
|
||||
declare type LogFields = {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
declare type LogLevel = 'info' | 'trace' | 'debug' | 'warn' | 'error' | 'query';
|
||||
|
||||
export declare const NullTypes: {
|
||||
DbNull: typeof DbNullClass;
|
||||
JsonNull: typeof JsonNullClass;
|
||||
AnyNull: typeof AnyNullClass;
|
||||
};
|
||||
|
||||
declare class NullTypesEnumValue extends ObjectEnumValue {
|
||||
_getNamespace(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class for unique values of object-valued enums.
|
||||
*/
|
||||
export declare abstract class ObjectEnumValue {
|
||||
constructor(arg?: symbol);
|
||||
abstract _getNamespace(): string;
|
||||
_getName(): string;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
declare type Options = {
|
||||
clientVersion: string;
|
||||
};
|
||||
|
||||
export declare class PrismaClientInitializationError extends Error {
|
||||
clientVersion: string;
|
||||
errorCode?: string;
|
||||
retryable?: boolean;
|
||||
constructor(message: string, clientVersion: string, errorCode?: string);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
|
||||
code: string;
|
||||
meta?: Record<string, unknown>;
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A generic Prisma Client Rust error.
|
||||
* This error is being exposed via the `prisma.$on('error')` interface
|
||||
*/
|
||||
export declare class PrismaClientRustError extends Error {
|
||||
clientVersion: string;
|
||||
private _isPanic;
|
||||
constructor({ clientVersion, error }: PrismaClientRustErrorArgs);
|
||||
get [Symbol.toStringTag](): string;
|
||||
isPanic(): boolean;
|
||||
}
|
||||
|
||||
export declare type PrismaClientRustErrorArgs = {
|
||||
clientVersion: string;
|
||||
error: RustLog;
|
||||
};
|
||||
|
||||
export declare class PrismaClientRustPanicError extends Error {
|
||||
clientVersion: string;
|
||||
constructor(message: string, clientVersion: string);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
export declare class PrismaClientValidationError extends Error {
|
||||
name: string;
|
||||
clientVersion: string;
|
||||
constructor(message: string, { clientVersion }: Options);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create raw SQL statement.
|
||||
*/
|
||||
export declare function raw(value: string): Sql;
|
||||
|
||||
/**
|
||||
* Supported value or SQL instance.
|
||||
*/
|
||||
export declare type RawValue = Value | Sql;
|
||||
|
||||
declare interface RustLog {
|
||||
timestamp: Date;
|
||||
level: LogLevel;
|
||||
target: string;
|
||||
fields: LogFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* A SQL instance can be nested within each other to build SQL strings.
|
||||
*/
|
||||
export declare class Sql {
|
||||
readonly values: Value[];
|
||||
readonly strings: string[];
|
||||
constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
|
||||
get sql(): string;
|
||||
get statement(): string;
|
||||
get text(): string;
|
||||
inspect(): {
|
||||
sql: string;
|
||||
statement: string;
|
||||
text: string;
|
||||
values: unknown[];
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a SQL object from a template string.
|
||||
*/
|
||||
export declare function sql(strings: readonly string[], ...values: readonly RawValue[]): Sql;
|
||||
|
||||
declare type UnknownErrorParams = {
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Values supported by SQL engine.
|
||||
*/
|
||||
export declare type Value = unknown;
|
||||
|
||||
export { }
|
||||
460
_node_modules/@prisma/client-runtime-utils/dist/index.d.ts
generated
vendored
Normal file
460
_node_modules/@prisma/client-runtime-utils/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,460 @@
|
||||
export declare const AnyNull: AnyNullClass;
|
||||
|
||||
export declare class AnyNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
export declare const DbNull: DbNullClass;
|
||||
|
||||
export declare class DbNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
export declare function Decimal(n: Decimal.Value): Decimal;
|
||||
|
||||
export declare namespace Decimal {
|
||||
export type Constructor = typeof Decimal;
|
||||
export type Instance = Decimal;
|
||||
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||
export type Modulo = Rounding | 9;
|
||||
export type Value = string | number | Decimal;
|
||||
|
||||
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
||||
export interface Config {
|
||||
precision?: number;
|
||||
rounding?: Rounding;
|
||||
toExpNeg?: number;
|
||||
toExpPos?: number;
|
||||
minE?: number;
|
||||
maxE?: number;
|
||||
crypto?: boolean;
|
||||
modulo?: Modulo;
|
||||
defaults?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export declare class Decimal {
|
||||
readonly d: number[];
|
||||
readonly e: number;
|
||||
readonly s: number;
|
||||
|
||||
constructor(n: Decimal.Value);
|
||||
|
||||
absoluteValue(): Decimal;
|
||||
abs(): Decimal;
|
||||
|
||||
ceil(): Decimal;
|
||||
|
||||
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
|
||||
comparedTo(n: Decimal.Value): number;
|
||||
cmp(n: Decimal.Value): number;
|
||||
|
||||
cosine(): Decimal;
|
||||
cos(): Decimal;
|
||||
|
||||
cubeRoot(): Decimal;
|
||||
cbrt(): Decimal;
|
||||
|
||||
decimalPlaces(): number;
|
||||
dp(): number;
|
||||
|
||||
dividedBy(n: Decimal.Value): Decimal;
|
||||
div(n: Decimal.Value): Decimal;
|
||||
|
||||
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
||||
divToInt(n: Decimal.Value): Decimal;
|
||||
|
||||
equals(n: Decimal.Value): boolean;
|
||||
eq(n: Decimal.Value): boolean;
|
||||
|
||||
floor(): Decimal;
|
||||
|
||||
greaterThan(n: Decimal.Value): boolean;
|
||||
gt(n: Decimal.Value): boolean;
|
||||
|
||||
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
gte(n: Decimal.Value): boolean;
|
||||
|
||||
hyperbolicCosine(): Decimal;
|
||||
cosh(): Decimal;
|
||||
|
||||
hyperbolicSine(): Decimal;
|
||||
sinh(): Decimal;
|
||||
|
||||
hyperbolicTangent(): Decimal;
|
||||
tanh(): Decimal;
|
||||
|
||||
inverseCosine(): Decimal;
|
||||
acos(): Decimal;
|
||||
|
||||
inverseHyperbolicCosine(): Decimal;
|
||||
acosh(): Decimal;
|
||||
|
||||
inverseHyperbolicSine(): Decimal;
|
||||
asinh(): Decimal;
|
||||
|
||||
inverseHyperbolicTangent(): Decimal;
|
||||
atanh(): Decimal;
|
||||
|
||||
inverseSine(): Decimal;
|
||||
asin(): Decimal;
|
||||
|
||||
inverseTangent(): Decimal;
|
||||
atan(): Decimal;
|
||||
|
||||
isFinite(): boolean;
|
||||
|
||||
isInteger(): boolean;
|
||||
isInt(): boolean;
|
||||
|
||||
isNaN(): boolean;
|
||||
|
||||
isNegative(): boolean;
|
||||
isNeg(): boolean;
|
||||
|
||||
isPositive(): boolean;
|
||||
isPos(): boolean;
|
||||
|
||||
isZero(): boolean;
|
||||
|
||||
lessThan(n: Decimal.Value): boolean;
|
||||
lt(n: Decimal.Value): boolean;
|
||||
|
||||
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
lte(n: Decimal.Value): boolean;
|
||||
|
||||
logarithm(n?: Decimal.Value): Decimal;
|
||||
log(n?: Decimal.Value): Decimal;
|
||||
|
||||
minus(n: Decimal.Value): Decimal;
|
||||
sub(n: Decimal.Value): Decimal;
|
||||
|
||||
modulo(n: Decimal.Value): Decimal;
|
||||
mod(n: Decimal.Value): Decimal;
|
||||
|
||||
naturalExponential(): Decimal;
|
||||
exp(): Decimal;
|
||||
|
||||
naturalLogarithm(): Decimal;
|
||||
ln(): Decimal;
|
||||
|
||||
negated(): Decimal;
|
||||
neg(): Decimal;
|
||||
|
||||
plus(n: Decimal.Value): Decimal;
|
||||
add(n: Decimal.Value): Decimal;
|
||||
|
||||
precision(includeZeros?: boolean): number;
|
||||
sd(includeZeros?: boolean): number;
|
||||
|
||||
round(): Decimal;
|
||||
|
||||
sine() : Decimal;
|
||||
sin() : Decimal;
|
||||
|
||||
squareRoot(): Decimal;
|
||||
sqrt(): Decimal;
|
||||
|
||||
tangent() : Decimal;
|
||||
tan() : Decimal;
|
||||
|
||||
times(n: Decimal.Value): Decimal;
|
||||
mul(n: Decimal.Value) : Decimal;
|
||||
|
||||
toBinary(significantDigits?: number): string;
|
||||
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
||||
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
toDP(decimalPlaces?: number): Decimal;
|
||||
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toExponential(decimalPlaces?: number): string;
|
||||
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFixed(decimalPlaces?: number): string;
|
||||
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
||||
|
||||
toHexadecimal(significantDigits?: number): string;
|
||||
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
toHex(significantDigits?: number): string;
|
||||
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
||||
|
||||
toJSON(): string;
|
||||
|
||||
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
||||
|
||||
toNumber(): number;
|
||||
|
||||
toOctal(significantDigits?: number): string;
|
||||
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toPower(n: Decimal.Value): Decimal;
|
||||
pow(n: Decimal.Value): Decimal;
|
||||
|
||||
toPrecision(significantDigits?: number): string;
|
||||
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toSignificantDigits(significantDigits?: number): Decimal;
|
||||
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
toSD(significantDigits?: number): Decimal;
|
||||
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toString(): string;
|
||||
|
||||
truncated(): Decimal;
|
||||
trunc(): Decimal;
|
||||
|
||||
valueOf(): string;
|
||||
|
||||
static abs(n: Decimal.Value): Decimal;
|
||||
static acos(n: Decimal.Value): Decimal;
|
||||
static acosh(n: Decimal.Value): Decimal;
|
||||
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static asin(n: Decimal.Value): Decimal;
|
||||
static asinh(n: Decimal.Value): Decimal;
|
||||
static atan(n: Decimal.Value): Decimal;
|
||||
static atanh(n: Decimal.Value): Decimal;
|
||||
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
||||
static cbrt(n: Decimal.Value): Decimal;
|
||||
static ceil(n: Decimal.Value): Decimal;
|
||||
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
static clone(object?: Decimal.Config): Decimal.Constructor;
|
||||
static config(object: Decimal.Config): Decimal.Constructor;
|
||||
static cos(n: Decimal.Value): Decimal;
|
||||
static cosh(n: Decimal.Value): Decimal;
|
||||
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static exp(n: Decimal.Value): Decimal;
|
||||
static floor(n: Decimal.Value): Decimal;
|
||||
static hypot(...n: Decimal.Value[]): Decimal;
|
||||
static isDecimal(object: any): object is Decimal;
|
||||
static ln(n: Decimal.Value): Decimal;
|
||||
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
||||
static log2(n: Decimal.Value): Decimal;
|
||||
static log10(n: Decimal.Value): Decimal;
|
||||
static max(...n: Decimal.Value[]): Decimal;
|
||||
static min(...n: Decimal.Value[]): Decimal;
|
||||
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static noConflict(): Decimal.Constructor; // Browser only
|
||||
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
||||
static random(significantDigits?: number): Decimal;
|
||||
static round(n: Decimal.Value): Decimal;
|
||||
static set(object: Decimal.Config): Decimal.Constructor;
|
||||
static sign(n: Decimal.Value): number;
|
||||
static sin(n: Decimal.Value): Decimal;
|
||||
static sinh(n: Decimal.Value): Decimal;
|
||||
static sqrt(n: Decimal.Value): Decimal;
|
||||
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static sum(...n: Decimal.Value[]): Decimal;
|
||||
static tan(n: Decimal.Value): Decimal;
|
||||
static tanh(n: Decimal.Value): Decimal;
|
||||
static trunc(n: Decimal.Value): Decimal;
|
||||
|
||||
static readonly default?: Decimal.Constructor;
|
||||
static readonly Decimal?: Decimal.Constructor;
|
||||
|
||||
static readonly precision: number;
|
||||
static readonly rounding: Decimal.Rounding;
|
||||
static readonly toExpNeg: number;
|
||||
static readonly toExpPos: number;
|
||||
static readonly minE: number;
|
||||
static readonly maxE: number;
|
||||
static readonly crypto: boolean;
|
||||
static readonly modulo: Decimal.Modulo;
|
||||
|
||||
static readonly ROUND_UP: 0;
|
||||
static readonly ROUND_DOWN: 1;
|
||||
static readonly ROUND_CEIL: 2;
|
||||
static readonly ROUND_FLOOR: 3;
|
||||
static readonly ROUND_HALF_UP: 4;
|
||||
static readonly ROUND_HALF_DOWN: 5;
|
||||
static readonly ROUND_HALF_EVEN: 6;
|
||||
static readonly ROUND_HALF_CEIL: 7;
|
||||
static readonly ROUND_HALF_FLOOR: 8;
|
||||
static readonly EUCLID: 9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Placeholder value for "no text".
|
||||
*/
|
||||
export declare const empty: Sql;
|
||||
|
||||
export declare interface ErrorWithBatchIndex {
|
||||
batchRequestIdx?: number;
|
||||
}
|
||||
|
||||
export declare function hasBatchIndex(value: object): value is Required<ErrorWithBatchIndex>;
|
||||
|
||||
/**
|
||||
* Check if a value is the AnyNull singleton instance.
|
||||
*/
|
||||
export declare function isAnyNull(value: unknown): value is AnyNullClass;
|
||||
|
||||
/**
|
||||
* Check if a value is the DBNull singleton instance.
|
||||
*/
|
||||
export declare function isDbNull(value: unknown): value is DbNullClass;
|
||||
|
||||
/**
|
||||
* Check if a value is the JsonNull singleton instance.
|
||||
*/
|
||||
export declare function isJsonNull(value: unknown): value is JsonNullClass;
|
||||
|
||||
/**
|
||||
* Create a SQL query for a list of values.
|
||||
*/
|
||||
export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
|
||||
|
||||
export declare const JsonNull: JsonNullClass;
|
||||
|
||||
export declare class JsonNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
declare type KnownErrorParams = {
|
||||
code: string;
|
||||
clientVersion: string;
|
||||
meta?: Record<string, unknown>;
|
||||
batchRequestIdx?: number;
|
||||
};
|
||||
|
||||
declare type LogFields = {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
declare type LogLevel = 'info' | 'trace' | 'debug' | 'warn' | 'error' | 'query';
|
||||
|
||||
export declare const NullTypes: {
|
||||
DbNull: typeof DbNullClass;
|
||||
JsonNull: typeof JsonNullClass;
|
||||
AnyNull: typeof AnyNullClass;
|
||||
};
|
||||
|
||||
declare class NullTypesEnumValue extends ObjectEnumValue {
|
||||
_getNamespace(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class for unique values of object-valued enums.
|
||||
*/
|
||||
export declare abstract class ObjectEnumValue {
|
||||
constructor(arg?: symbol);
|
||||
abstract _getNamespace(): string;
|
||||
_getName(): string;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
declare type Options = {
|
||||
clientVersion: string;
|
||||
};
|
||||
|
||||
export declare class PrismaClientInitializationError extends Error {
|
||||
clientVersion: string;
|
||||
errorCode?: string;
|
||||
retryable?: boolean;
|
||||
constructor(message: string, clientVersion: string, errorCode?: string);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
|
||||
code: string;
|
||||
meta?: Record<string, unknown>;
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A generic Prisma Client Rust error.
|
||||
* This error is being exposed via the `prisma.$on('error')` interface
|
||||
*/
|
||||
export declare class PrismaClientRustError extends Error {
|
||||
clientVersion: string;
|
||||
private _isPanic;
|
||||
constructor({ clientVersion, error }: PrismaClientRustErrorArgs);
|
||||
get [Symbol.toStringTag](): string;
|
||||
isPanic(): boolean;
|
||||
}
|
||||
|
||||
export declare type PrismaClientRustErrorArgs = {
|
||||
clientVersion: string;
|
||||
error: RustLog;
|
||||
};
|
||||
|
||||
export declare class PrismaClientRustPanicError extends Error {
|
||||
clientVersion: string;
|
||||
constructor(message: string, clientVersion: string);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
export declare class PrismaClientValidationError extends Error {
|
||||
name: string;
|
||||
clientVersion: string;
|
||||
constructor(message: string, { clientVersion }: Options);
|
||||
get [Symbol.toStringTag](): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create raw SQL statement.
|
||||
*/
|
||||
export declare function raw(value: string): Sql;
|
||||
|
||||
/**
|
||||
* Supported value or SQL instance.
|
||||
*/
|
||||
export declare type RawValue = Value | Sql;
|
||||
|
||||
declare interface RustLog {
|
||||
timestamp: Date;
|
||||
level: LogLevel;
|
||||
target: string;
|
||||
fields: LogFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* A SQL instance can be nested within each other to build SQL strings.
|
||||
*/
|
||||
export declare class Sql {
|
||||
readonly values: Value[];
|
||||
readonly strings: string[];
|
||||
constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
|
||||
get sql(): string;
|
||||
get statement(): string;
|
||||
get text(): string;
|
||||
inspect(): {
|
||||
sql: string;
|
||||
statement: string;
|
||||
text: string;
|
||||
values: unknown[];
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a SQL object from a template string.
|
||||
*/
|
||||
export declare function sql(strings: readonly string[], ...values: readonly RawValue[]): Sql;
|
||||
|
||||
declare type UnknownErrorParams = {
|
||||
clientVersion: string;
|
||||
batchRequestIdx?: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Values supported by SQL engine.
|
||||
*/
|
||||
export declare type Value = unknown;
|
||||
|
||||
export { }
|
||||
2552
_node_modules/@prisma/client-runtime-utils/dist/index.js
generated
vendored
Normal file
2552
_node_modules/@prisma/client-runtime-utils/dist/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2502
_node_modules/@prisma/client-runtime-utils/dist/index.mjs
generated
vendored
Normal file
2502
_node_modules/@prisma/client-runtime-utils/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
42
_node_modules/@prisma/client-runtime-utils/dist/nullTypes.d.ts
generated
vendored
Normal file
42
_node_modules/@prisma/client-runtime-utils/dist/nullTypes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Base class for unique values of object-valued enums.
|
||||
*/
|
||||
export declare abstract class ObjectEnumValue {
|
||||
constructor(arg?: symbol);
|
||||
abstract _getNamespace(): string;
|
||||
_getName(): string;
|
||||
toString(): string;
|
||||
}
|
||||
declare class NullTypesEnumValue extends ObjectEnumValue {
|
||||
_getNamespace(): string;
|
||||
}
|
||||
export declare class DbNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
export declare class JsonNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
export declare class AnyNullClass extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
export declare const NullTypes: {
|
||||
DbNull: typeof DbNullClass;
|
||||
JsonNull: typeof JsonNullClass;
|
||||
AnyNull: typeof AnyNullClass;
|
||||
};
|
||||
export declare const DbNull: DbNullClass;
|
||||
export declare const JsonNull: JsonNullClass;
|
||||
export declare const AnyNull: AnyNullClass;
|
||||
/**
|
||||
* Check if a value is the DBNull singleton instance.
|
||||
*/
|
||||
export declare function isDbNull(value: unknown): value is DbNullClass;
|
||||
/**
|
||||
* Check if a value is the JsonNull singleton instance.
|
||||
*/
|
||||
export declare function isJsonNull(value: unknown): value is JsonNullClass;
|
||||
/**
|
||||
* Check if a value is the AnyNull singleton instance.
|
||||
*/
|
||||
export declare function isAnyNull(value: unknown): value is AnyNullClass;
|
||||
export {};
|
||||
39
_node_modules/@prisma/client-runtime-utils/package.json
generated
Normal file
39
_node_modules/@prisma/client-runtime-utils/package.json
generated
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "@prisma/client-runtime-utils",
|
||||
"version": "7.4.0",
|
||||
"description": "Utility types and singletons used by the Prisma Client.",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.mjs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/prisma/prisma.git",
|
||||
"directory": "packages/client-runtime-utils"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"decimal.js": "10.5.0",
|
||||
"sql-template-tag": "5.2.1"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"dev": "DEV=true tsx helpers/build.ts",
|
||||
"build": "tsx helpers/build.ts",
|
||||
"test": "vitest run --passWithNoTests"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user