plotlink-ows 0.1.13
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/LICENSE +21 -0
- package/README.md +151 -0
- package/app/db.ts +8 -0
- package/app/lib/llm-client.ts +265 -0
- package/app/lib/paths.ts +11 -0
- package/app/lib/publish.ts +204 -0
- package/app/lib/writer-prompt.ts +44 -0
- package/app/node_modules/.prisma/local-client/client.d.ts +1 -0
- package/app/node_modules/.prisma/local-client/client.js +5 -0
- package/app/node_modules/.prisma/local-client/default.d.ts +1 -0
- package/app/node_modules/.prisma/local-client/default.js +5 -0
- package/app/node_modules/.prisma/local-client/edge.d.ts +1 -0
- package/app/node_modules/.prisma/local-client/edge.js +184 -0
- package/app/node_modules/.prisma/local-client/index-browser.js +173 -0
- package/app/node_modules/.prisma/local-client/index.d.ts +3304 -0
- package/app/node_modules/.prisma/local-client/index.js +207 -0
- package/app/node_modules/.prisma/local-client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/app/node_modules/.prisma/local-client/package.json +183 -0
- package/app/node_modules/.prisma/local-client/query_engine_bg.js +2 -0
- package/app/node_modules/.prisma/local-client/query_engine_bg.wasm +0 -0
- package/app/node_modules/.prisma/local-client/runtime/edge-esm.js +35 -0
- package/app/node_modules/.prisma/local-client/runtime/edge.js +35 -0
- package/app/node_modules/.prisma/local-client/runtime/index-browser.d.ts +370 -0
- package/app/node_modules/.prisma/local-client/runtime/index-browser.js +17 -0
- package/app/node_modules/.prisma/local-client/runtime/library.d.ts +3982 -0
- package/app/node_modules/.prisma/local-client/runtime/library.js +147 -0
- package/app/node_modules/.prisma/local-client/runtime/react-native.js +84 -0
- package/app/node_modules/.prisma/local-client/runtime/wasm-compiler-edge.js +85 -0
- package/app/node_modules/.prisma/local-client/runtime/wasm-engine-edge.js +38 -0
- package/app/node_modules/.prisma/local-client/schema.prisma +21 -0
- package/app/node_modules/.prisma/local-client/wasm-edge-light-loader.mjs +5 -0
- package/app/node_modules/.prisma/local-client/wasm-worker-loader.mjs +5 -0
- package/app/node_modules/.prisma/local-client/wasm.d.ts +1 -0
- package/app/node_modules/.prisma/local-client/wasm.js +191 -0
- package/app/prisma/schema.prisma +57 -0
- package/app/routes/auth.ts +173 -0
- package/app/routes/chat.ts +135 -0
- package/app/routes/config.ts +210 -0
- package/app/routes/dashboard.ts +186 -0
- package/app/routes/oauth.ts +150 -0
- package/app/routes/publish.ts +112 -0
- package/app/routes/wallet.ts +99 -0
- package/app/server.ts +154 -0
- package/app/vite.config.ts +19 -0
- package/app/web/App.tsx +102 -0
- package/app/web/components/Chat.tsx +272 -0
- package/app/web/components/Dashboard.tsx +222 -0
- package/app/web/components/LLMSetup.tsx +291 -0
- package/app/web/components/Layout.tsx +235 -0
- package/app/web/components/Login.tsx +62 -0
- package/app/web/components/Publish.tsx +245 -0
- package/app/web/components/Settings.tsx +175 -0
- package/app/web/components/Setup.tsx +84 -0
- package/app/web/components/WalletCard.tsx +117 -0
- package/app/web/dist/assets/index-C9kXlYO_.css +2 -0
- package/app/web/dist/assets/index-CJiiaLHs.js +9 -0
- package/app/web/dist/index.html +16 -0
- package/app/web/index.html +15 -0
- package/app/web/main.tsx +10 -0
- package/app/web/plotlink-logo.svg +5 -0
- package/app/web/styles.css +51 -0
- package/bin/plotlink-ows.js +394 -0
- package/lib/ows/index.ts +3 -0
- package/lib/ows/policy.ts +68 -0
- package/lib/ows/types.ts +14 -0
- package/lib/ows/wallet.ts +70 -0
- package/package.json +79 -0
- package/packages/cli/node_modules/commander/LICENSE +22 -0
- package/packages/cli/node_modules/commander/Readme.md +1149 -0
- package/packages/cli/node_modules/commander/esm.mjs +16 -0
- package/packages/cli/node_modules/commander/index.js +24 -0
- package/packages/cli/node_modules/commander/lib/argument.js +149 -0
- package/packages/cli/node_modules/commander/lib/command.js +2662 -0
- package/packages/cli/node_modules/commander/lib/error.js +39 -0
- package/packages/cli/node_modules/commander/lib/help.js +709 -0
- package/packages/cli/node_modules/commander/lib/option.js +367 -0
- package/packages/cli/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/packages/cli/node_modules/commander/package-support.json +16 -0
- package/packages/cli/node_modules/commander/package.json +82 -0
- package/packages/cli/node_modules/commander/typings/esm.d.mts +3 -0
- package/packages/cli/node_modules/commander/typings/index.d.ts +1045 -0
- package/packages/cli/node_modules/resolve-from/index.d.ts +31 -0
- package/packages/cli/node_modules/resolve-from/index.js +47 -0
- package/packages/cli/node_modules/resolve-from/license +9 -0
- package/packages/cli/node_modules/resolve-from/package.json +36 -0
- package/packages/cli/node_modules/resolve-from/readme.md +72 -0
- package/packages/cli/node_modules/tsup/LICENSE +21 -0
- package/packages/cli/node_modules/tsup/README.md +75 -0
- package/packages/cli/node_modules/tsup/assets/cjs_shims.js +13 -0
- package/packages/cli/node_modules/tsup/assets/esm_shims.js +9 -0
- package/packages/cli/node_modules/tsup/assets/package.json +3 -0
- package/packages/cli/node_modules/tsup/dist/chunk-DI5BO6XE.js +153 -0
- package/packages/cli/node_modules/tsup/dist/chunk-JZ25TPTY.js +42 -0
- package/packages/cli/node_modules/tsup/dist/chunk-PEEXUWMS.js +6 -0
- package/packages/cli/node_modules/tsup/dist/chunk-TWFEYLU4.js +352 -0
- package/packages/cli/node_modules/tsup/dist/chunk-VGC3FXLU.js +203 -0
- package/packages/cli/node_modules/tsup/dist/cli-default.js +12 -0
- package/packages/cli/node_modules/tsup/dist/cli-main.js +8 -0
- package/packages/cli/node_modules/tsup/dist/cli-node.js +14 -0
- package/packages/cli/node_modules/tsup/dist/index.d.ts +511 -0
- package/packages/cli/node_modules/tsup/dist/index.js +1711 -0
- package/packages/cli/node_modules/tsup/dist/rollup.js +6949 -0
- package/packages/cli/node_modules/tsup/package.json +99 -0
- package/packages/cli/node_modules/tsup/schema.json +362 -0
- package/packages/cli/package.json +35 -0
- package/packages/cli/src/commands/agent-register.ts +77 -0
- package/packages/cli/src/commands/chain.ts +29 -0
- package/packages/cli/src/commands/claim.ts +70 -0
- package/packages/cli/src/commands/create.ts +34 -0
- package/packages/cli/src/commands/status.ts +201 -0
- package/packages/cli/src/config.ts +103 -0
- package/packages/cli/src/index.ts +21 -0
- package/packages/cli/src/sdk/abi.ts +222 -0
- package/packages/cli/src/sdk/client.ts +713 -0
- package/packages/cli/src/sdk/constants.ts +56 -0
- package/packages/cli/src/sdk/index.ts +46 -0
- package/packages/cli/src/sdk/ipfs.ts +88 -0
- package/packages/cli/src/sdk.ts +36 -0
- package/packages/cli/tsconfig.json +20 -0
- package/packages/cli/tsup.config.ts +14 -0
- package/public/.well-known/farcaster.json +38 -0
- package/public/basescan-icon.svg +4 -0
- package/public/embed-image.png +0 -0
- package/public/favicon.png +0 -0
- package/public/hunt-token.svg +11 -0
- package/public/icon-192.png +0 -0
- package/public/icon.png +0 -0
- package/public/manifest.json +26 -0
- package/public/mc-icon-light.svg +12 -0
- package/public/og-image.png +0 -0
- package/public/plotlink-logo-symbol.svg +5 -0
- package/public/plotlink-logo.svg +5 -0
- package/public/screenshot-1.png +0 -0
- package/public/screenshot-2.png +0 -0
- package/public/screenshot-3.png +0 -0
- package/public/splash.png +0 -0
- package/public/wide-banner.png +0 -0
- package/scripts/backfill-trade-prices.ts +97 -0
- package/scripts/backfill-usd-rates.ts +220 -0
- package/scripts/e2e-verify.ts +1100 -0
- package/scripts/ows-smoke-test.ts +37 -0
- package/scripts/score-users.mjs +203 -0
|
@@ -0,0 +1,3304 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Client
|
|
4
|
+
**/
|
|
5
|
+
|
|
6
|
+
import * as runtime from './runtime/library.js';
|
|
7
|
+
import $Types = runtime.Types // general types
|
|
8
|
+
import $Public = runtime.Types.Public
|
|
9
|
+
import $Utils = runtime.Types.Utils
|
|
10
|
+
import $Extensions = runtime.Types.Extensions
|
|
11
|
+
import $Result = runtime.Types.Result
|
|
12
|
+
|
|
13
|
+
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Model Session
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
|
|
21
|
+
/**
|
|
22
|
+
* Model Setting
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export type Setting = $Result.DefaultSelection<Prisma.$SettingPayload>
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ## Prisma Client ʲˢ
|
|
29
|
+
*
|
|
30
|
+
* Type-safe database client for TypeScript & Node.js
|
|
31
|
+
* @example
|
|
32
|
+
* ```
|
|
33
|
+
* const prisma = new PrismaClient()
|
|
34
|
+
* // Fetch zero or more Sessions
|
|
35
|
+
* const sessions = await prisma.session.findMany()
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
40
|
+
*/
|
|
41
|
+
export class PrismaClient<
|
|
42
|
+
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
43
|
+
const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
|
|
44
|
+
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
|
|
45
|
+
> {
|
|
46
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* ## Prisma Client ʲˢ
|
|
50
|
+
*
|
|
51
|
+
* Type-safe database client for TypeScript & Node.js
|
|
52
|
+
* @example
|
|
53
|
+
* ```
|
|
54
|
+
* const prisma = new PrismaClient()
|
|
55
|
+
* // Fetch zero or more Sessions
|
|
56
|
+
* const sessions = await prisma.session.findMany()
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
*
|
|
60
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
|
|
64
|
+
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Connect with the database
|
|
68
|
+
*/
|
|
69
|
+
$connect(): $Utils.JsPromise<void>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Disconnect from the database
|
|
73
|
+
*/
|
|
74
|
+
$disconnect(): $Utils.JsPromise<void>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
|
78
|
+
* @example
|
|
79
|
+
* ```
|
|
80
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
84
|
+
*/
|
|
85
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Executes a raw query and returns the number of affected rows.
|
|
89
|
+
* Susceptible to SQL injections, see documentation.
|
|
90
|
+
* @example
|
|
91
|
+
* ```
|
|
92
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
96
|
+
*/
|
|
97
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
107
|
+
*/
|
|
108
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Performs a raw query and returns the `SELECT` data.
|
|
112
|
+
* Susceptible to SQL injections, see documentation.
|
|
113
|
+
* @example
|
|
114
|
+
* ```
|
|
115
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
119
|
+
*/
|
|
120
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
125
|
+
* @example
|
|
126
|
+
* ```
|
|
127
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
|
128
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
|
129
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
130
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
131
|
+
* ])
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
135
|
+
*/
|
|
136
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
137
|
+
|
|
138
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
|
|
142
|
+
extArgs: ExtArgs
|
|
143
|
+
}>>
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* `prisma.session`: Exposes CRUD operations for the **Session** model.
|
|
147
|
+
* Example usage:
|
|
148
|
+
* ```ts
|
|
149
|
+
* // Fetch zero or more Sessions
|
|
150
|
+
* const sessions = await prisma.session.findMany()
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* `prisma.setting`: Exposes CRUD operations for the **Setting** model.
|
|
157
|
+
* Example usage:
|
|
158
|
+
* ```ts
|
|
159
|
+
* // Fetch zero or more Settings
|
|
160
|
+
* const settings = await prisma.setting.findMany()
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
get setting(): Prisma.SettingDelegate<ExtArgs, ClientOptions>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace Prisma {
|
|
167
|
+
export import DMMF = runtime.DMMF
|
|
168
|
+
|
|
169
|
+
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Validator
|
|
173
|
+
*/
|
|
174
|
+
export import validator = runtime.Public.validator
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Prisma Errors
|
|
178
|
+
*/
|
|
179
|
+
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
|
|
180
|
+
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
|
|
181
|
+
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
|
|
182
|
+
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
|
|
183
|
+
export import PrismaClientValidationError = runtime.PrismaClientValidationError
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Re-export of sql-template-tag
|
|
187
|
+
*/
|
|
188
|
+
export import sql = runtime.sqltag
|
|
189
|
+
export import empty = runtime.empty
|
|
190
|
+
export import join = runtime.join
|
|
191
|
+
export import raw = runtime.raw
|
|
192
|
+
export import Sql = runtime.Sql
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Decimal.js
|
|
198
|
+
*/
|
|
199
|
+
export import Decimal = runtime.Decimal
|
|
200
|
+
|
|
201
|
+
export type DecimalJsLike = runtime.DecimalJsLike
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Metrics
|
|
205
|
+
*/
|
|
206
|
+
export type Metrics = runtime.Metrics
|
|
207
|
+
export type Metric<T> = runtime.Metric<T>
|
|
208
|
+
export type MetricHistogram = runtime.MetricHistogram
|
|
209
|
+
export type MetricHistogramBucket = runtime.MetricHistogramBucket
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Extensions
|
|
213
|
+
*/
|
|
214
|
+
export import Extension = $Extensions.UserArgs
|
|
215
|
+
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
|
216
|
+
export import Args = $Public.Args
|
|
217
|
+
export import Payload = $Public.Payload
|
|
218
|
+
export import Result = $Public.Result
|
|
219
|
+
export import Exact = $Public.Exact
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Prisma Client JS version: 6.19.3
|
|
223
|
+
* Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
|
|
224
|
+
*/
|
|
225
|
+
export type PrismaVersion = {
|
|
226
|
+
client: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export const prismaVersion: PrismaVersion
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Utility Types
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
export import Bytes = runtime.Bytes
|
|
237
|
+
export import JsonObject = runtime.JsonObject
|
|
238
|
+
export import JsonArray = runtime.JsonArray
|
|
239
|
+
export import JsonValue = runtime.JsonValue
|
|
240
|
+
export import InputJsonObject = runtime.InputJsonObject
|
|
241
|
+
export import InputJsonArray = runtime.InputJsonArray
|
|
242
|
+
export import InputJsonValue = runtime.InputJsonValue
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
|
|
246
|
+
*
|
|
247
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
248
|
+
*/
|
|
249
|
+
namespace NullTypes {
|
|
250
|
+
/**
|
|
251
|
+
* Type of `Prisma.DbNull`.
|
|
252
|
+
*
|
|
253
|
+
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
|
|
254
|
+
*
|
|
255
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
256
|
+
*/
|
|
257
|
+
class DbNull {
|
|
258
|
+
private DbNull: never
|
|
259
|
+
private constructor()
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Type of `Prisma.JsonNull`.
|
|
264
|
+
*
|
|
265
|
+
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
|
|
266
|
+
*
|
|
267
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
268
|
+
*/
|
|
269
|
+
class JsonNull {
|
|
270
|
+
private JsonNull: never
|
|
271
|
+
private constructor()
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Type of `Prisma.AnyNull`.
|
|
276
|
+
*
|
|
277
|
+
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
|
|
278
|
+
*
|
|
279
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
280
|
+
*/
|
|
281
|
+
class AnyNull {
|
|
282
|
+
private AnyNull: never
|
|
283
|
+
private constructor()
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
289
|
+
*
|
|
290
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
291
|
+
*/
|
|
292
|
+
export const DbNull: NullTypes.DbNull
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
296
|
+
*
|
|
297
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
298
|
+
*/
|
|
299
|
+
export const JsonNull: NullTypes.JsonNull
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
303
|
+
*
|
|
304
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
305
|
+
*/
|
|
306
|
+
export const AnyNull: NullTypes.AnyNull
|
|
307
|
+
|
|
308
|
+
type SelectAndInclude = {
|
|
309
|
+
select: any
|
|
310
|
+
include: any
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
type SelectAndOmit = {
|
|
314
|
+
select: any
|
|
315
|
+
omit: any
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Get the type of the value, that the Promise holds.
|
|
320
|
+
*/
|
|
321
|
+
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Get the return type of a function which returns a Promise.
|
|
325
|
+
*/
|
|
326
|
+
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* From T, pick a set of properties whose keys are in the union K
|
|
330
|
+
*/
|
|
331
|
+
type Prisma__Pick<T, K extends keyof T> = {
|
|
332
|
+
[P in K]: T[P];
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
export type Enumerable<T> = T | Array<T>;
|
|
337
|
+
|
|
338
|
+
export type RequiredKeys<T> = {
|
|
339
|
+
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
|
|
340
|
+
}[keyof T]
|
|
341
|
+
|
|
342
|
+
export type TruthyKeys<T> = keyof {
|
|
343
|
+
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Subset
|
|
350
|
+
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
|
|
351
|
+
*/
|
|
352
|
+
export type Subset<T, U> = {
|
|
353
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* SelectSubset
|
|
358
|
+
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
|
359
|
+
* Additionally, it validates, if both select and include are present. If the case, it errors.
|
|
360
|
+
*/
|
|
361
|
+
export type SelectSubset<T, U> = {
|
|
362
|
+
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
363
|
+
} &
|
|
364
|
+
(T extends SelectAndInclude
|
|
365
|
+
? 'Please either choose `select` or `include`.'
|
|
366
|
+
: T extends SelectAndOmit
|
|
367
|
+
? 'Please either choose `select` or `omit`.'
|
|
368
|
+
: {})
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Subset + Intersection
|
|
372
|
+
* @desc From `T` pick properties that exist in `U` and intersect `K`
|
|
373
|
+
*/
|
|
374
|
+
export type SubsetIntersection<T, U, K> = {
|
|
375
|
+
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
376
|
+
} &
|
|
377
|
+
K
|
|
378
|
+
|
|
379
|
+
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* XOR is needed to have a real mutually exclusive union type
|
|
383
|
+
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
384
|
+
*/
|
|
385
|
+
type XOR<T, U> =
|
|
386
|
+
T extends object ?
|
|
387
|
+
U extends object ?
|
|
388
|
+
(Without<T, U> & U) | (Without<U, T> & T)
|
|
389
|
+
: U : T
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Is T a Record?
|
|
394
|
+
*/
|
|
395
|
+
type IsObject<T extends any> = T extends Array<any>
|
|
396
|
+
? False
|
|
397
|
+
: T extends Date
|
|
398
|
+
? False
|
|
399
|
+
: T extends Uint8Array
|
|
400
|
+
? False
|
|
401
|
+
: T extends BigInt
|
|
402
|
+
? False
|
|
403
|
+
: T extends object
|
|
404
|
+
? True
|
|
405
|
+
: False
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* If it's T[], return T
|
|
410
|
+
*/
|
|
411
|
+
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* From ts-toolbelt
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
type __Either<O extends object, K extends Key> = Omit<O, K> &
|
|
418
|
+
{
|
|
419
|
+
// Merge all but K
|
|
420
|
+
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
|
|
421
|
+
}[K]
|
|
422
|
+
|
|
423
|
+
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
|
|
424
|
+
|
|
425
|
+
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
|
|
426
|
+
|
|
427
|
+
type _Either<
|
|
428
|
+
O extends object,
|
|
429
|
+
K extends Key,
|
|
430
|
+
strict extends Boolean
|
|
431
|
+
> = {
|
|
432
|
+
1: EitherStrict<O, K>
|
|
433
|
+
0: EitherLoose<O, K>
|
|
434
|
+
}[strict]
|
|
435
|
+
|
|
436
|
+
type Either<
|
|
437
|
+
O extends object,
|
|
438
|
+
K extends Key,
|
|
439
|
+
strict extends Boolean = 1
|
|
440
|
+
> = O extends unknown ? _Either<O, K, strict> : never
|
|
441
|
+
|
|
442
|
+
export type Union = any
|
|
443
|
+
|
|
444
|
+
type PatchUndefined<O extends object, O1 extends object> = {
|
|
445
|
+
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
|
|
446
|
+
} & {}
|
|
447
|
+
|
|
448
|
+
/** Helper Types for "Merge" **/
|
|
449
|
+
export type IntersectOf<U extends Union> = (
|
|
450
|
+
U extends unknown ? (k: U) => void : never
|
|
451
|
+
) extends (k: infer I) => void
|
|
452
|
+
? I
|
|
453
|
+
: never
|
|
454
|
+
|
|
455
|
+
export type Overwrite<O extends object, O1 extends object> = {
|
|
456
|
+
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
457
|
+
} & {};
|
|
458
|
+
|
|
459
|
+
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
460
|
+
[K in keyof U]-?: At<U, K>;
|
|
461
|
+
}>>;
|
|
462
|
+
|
|
463
|
+
type Key = string | number | symbol;
|
|
464
|
+
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
|
|
465
|
+
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
466
|
+
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
467
|
+
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
468
|
+
1: AtStrict<O, K>;
|
|
469
|
+
0: AtLoose<O, K>;
|
|
470
|
+
}[strict];
|
|
471
|
+
|
|
472
|
+
export type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
473
|
+
[K in keyof A]: A[K];
|
|
474
|
+
} & {};
|
|
475
|
+
|
|
476
|
+
export type OptionalFlat<O> = {
|
|
477
|
+
[K in keyof O]?: O[K];
|
|
478
|
+
} & {};
|
|
479
|
+
|
|
480
|
+
type _Record<K extends keyof any, T> = {
|
|
481
|
+
[P in K]: T;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
// cause typescript not to expand types and preserve names
|
|
485
|
+
type NoExpand<T> = T extends unknown ? T : never;
|
|
486
|
+
|
|
487
|
+
// this type assumes the passed object is entirely optional
|
|
488
|
+
type AtLeast<O extends object, K extends string> = NoExpand<
|
|
489
|
+
O extends unknown
|
|
490
|
+
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
|
|
491
|
+
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
|
|
492
|
+
: never>;
|
|
493
|
+
|
|
494
|
+
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
495
|
+
|
|
496
|
+
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
497
|
+
/** End Helper Types for "Merge" **/
|
|
498
|
+
|
|
499
|
+
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
A [[Boolean]]
|
|
503
|
+
*/
|
|
504
|
+
export type Boolean = True | False
|
|
505
|
+
|
|
506
|
+
// /**
|
|
507
|
+
// 1
|
|
508
|
+
// */
|
|
509
|
+
export type True = 1
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
0
|
|
513
|
+
*/
|
|
514
|
+
export type False = 0
|
|
515
|
+
|
|
516
|
+
export type Not<B extends Boolean> = {
|
|
517
|
+
0: 1
|
|
518
|
+
1: 0
|
|
519
|
+
}[B]
|
|
520
|
+
|
|
521
|
+
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
|
|
522
|
+
? 0 // anything `never` is false
|
|
523
|
+
: A1 extends A2
|
|
524
|
+
? 1
|
|
525
|
+
: 0
|
|
526
|
+
|
|
527
|
+
export type Has<U extends Union, U1 extends Union> = Not<
|
|
528
|
+
Extends<Exclude<U1, U>, U1>
|
|
529
|
+
>
|
|
530
|
+
|
|
531
|
+
export type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
532
|
+
0: {
|
|
533
|
+
0: 0
|
|
534
|
+
1: 1
|
|
535
|
+
}
|
|
536
|
+
1: {
|
|
537
|
+
0: 1
|
|
538
|
+
1: 1
|
|
539
|
+
}
|
|
540
|
+
}[B1][B2]
|
|
541
|
+
|
|
542
|
+
export type Keys<U extends Union> = U extends unknown ? keyof U : never
|
|
543
|
+
|
|
544
|
+
type Cast<A, B> = A extends B ? A : B;
|
|
545
|
+
|
|
546
|
+
export const type: unique symbol;
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Used by group by
|
|
552
|
+
*/
|
|
553
|
+
|
|
554
|
+
export type GetScalarType<T, O> = O extends object ? {
|
|
555
|
+
[P in keyof T]: P extends keyof O
|
|
556
|
+
? O[P]
|
|
557
|
+
: never
|
|
558
|
+
} : never
|
|
559
|
+
|
|
560
|
+
type FieldPaths<
|
|
561
|
+
T,
|
|
562
|
+
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
|
|
563
|
+
> = IsObject<T> extends True ? U : T
|
|
564
|
+
|
|
565
|
+
type GetHavingFields<T> = {
|
|
566
|
+
[K in keyof T]: Or<
|
|
567
|
+
Or<Extends<'OR', K>, Extends<'AND', K>>,
|
|
568
|
+
Extends<'NOT', K>
|
|
569
|
+
> extends True
|
|
570
|
+
? // infer is only needed to not hit TS limit
|
|
571
|
+
// based on the brilliant idea of Pierre-Antoine Mills
|
|
572
|
+
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
|
|
573
|
+
T[K] extends infer TK
|
|
574
|
+
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
|
|
575
|
+
: never
|
|
576
|
+
: {} extends FieldPaths<T[K]>
|
|
577
|
+
? never
|
|
578
|
+
: K
|
|
579
|
+
}[keyof T]
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Convert tuple to union
|
|
583
|
+
*/
|
|
584
|
+
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
|
|
585
|
+
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
|
|
586
|
+
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Like `Pick`, but additionally can also accept an array of keys
|
|
590
|
+
*/
|
|
591
|
+
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Exclude all keys with underscores
|
|
595
|
+
*/
|
|
596
|
+
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
|
|
600
|
+
|
|
601
|
+
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
export const ModelName: {
|
|
605
|
+
Session: 'Session',
|
|
606
|
+
Setting: 'Setting'
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
export type Datasources = {
|
|
613
|
+
db?: Datasource
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
|
|
617
|
+
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
|
|
621
|
+
globalOmitOptions: {
|
|
622
|
+
omit: GlobalOmitOptions
|
|
623
|
+
}
|
|
624
|
+
meta: {
|
|
625
|
+
modelProps: "session" | "setting"
|
|
626
|
+
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
627
|
+
}
|
|
628
|
+
model: {
|
|
629
|
+
Session: {
|
|
630
|
+
payload: Prisma.$SessionPayload<ExtArgs>
|
|
631
|
+
fields: Prisma.SessionFieldRefs
|
|
632
|
+
operations: {
|
|
633
|
+
findUnique: {
|
|
634
|
+
args: Prisma.SessionFindUniqueArgs<ExtArgs>
|
|
635
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
636
|
+
}
|
|
637
|
+
findUniqueOrThrow: {
|
|
638
|
+
args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
|
|
639
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
640
|
+
}
|
|
641
|
+
findFirst: {
|
|
642
|
+
args: Prisma.SessionFindFirstArgs<ExtArgs>
|
|
643
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
644
|
+
}
|
|
645
|
+
findFirstOrThrow: {
|
|
646
|
+
args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
|
|
647
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
648
|
+
}
|
|
649
|
+
findMany: {
|
|
650
|
+
args: Prisma.SessionFindManyArgs<ExtArgs>
|
|
651
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
652
|
+
}
|
|
653
|
+
create: {
|
|
654
|
+
args: Prisma.SessionCreateArgs<ExtArgs>
|
|
655
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
656
|
+
}
|
|
657
|
+
createMany: {
|
|
658
|
+
args: Prisma.SessionCreateManyArgs<ExtArgs>
|
|
659
|
+
result: BatchPayload
|
|
660
|
+
}
|
|
661
|
+
createManyAndReturn: {
|
|
662
|
+
args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
|
|
663
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
664
|
+
}
|
|
665
|
+
delete: {
|
|
666
|
+
args: Prisma.SessionDeleteArgs<ExtArgs>
|
|
667
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
668
|
+
}
|
|
669
|
+
update: {
|
|
670
|
+
args: Prisma.SessionUpdateArgs<ExtArgs>
|
|
671
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
672
|
+
}
|
|
673
|
+
deleteMany: {
|
|
674
|
+
args: Prisma.SessionDeleteManyArgs<ExtArgs>
|
|
675
|
+
result: BatchPayload
|
|
676
|
+
}
|
|
677
|
+
updateMany: {
|
|
678
|
+
args: Prisma.SessionUpdateManyArgs<ExtArgs>
|
|
679
|
+
result: BatchPayload
|
|
680
|
+
}
|
|
681
|
+
updateManyAndReturn: {
|
|
682
|
+
args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>
|
|
683
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
684
|
+
}
|
|
685
|
+
upsert: {
|
|
686
|
+
args: Prisma.SessionUpsertArgs<ExtArgs>
|
|
687
|
+
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
688
|
+
}
|
|
689
|
+
aggregate: {
|
|
690
|
+
args: Prisma.SessionAggregateArgs<ExtArgs>
|
|
691
|
+
result: $Utils.Optional<AggregateSession>
|
|
692
|
+
}
|
|
693
|
+
groupBy: {
|
|
694
|
+
args: Prisma.SessionGroupByArgs<ExtArgs>
|
|
695
|
+
result: $Utils.Optional<SessionGroupByOutputType>[]
|
|
696
|
+
}
|
|
697
|
+
count: {
|
|
698
|
+
args: Prisma.SessionCountArgs<ExtArgs>
|
|
699
|
+
result: $Utils.Optional<SessionCountAggregateOutputType> | number
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
Setting: {
|
|
704
|
+
payload: Prisma.$SettingPayload<ExtArgs>
|
|
705
|
+
fields: Prisma.SettingFieldRefs
|
|
706
|
+
operations: {
|
|
707
|
+
findUnique: {
|
|
708
|
+
args: Prisma.SettingFindUniqueArgs<ExtArgs>
|
|
709
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload> | null
|
|
710
|
+
}
|
|
711
|
+
findUniqueOrThrow: {
|
|
712
|
+
args: Prisma.SettingFindUniqueOrThrowArgs<ExtArgs>
|
|
713
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
714
|
+
}
|
|
715
|
+
findFirst: {
|
|
716
|
+
args: Prisma.SettingFindFirstArgs<ExtArgs>
|
|
717
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload> | null
|
|
718
|
+
}
|
|
719
|
+
findFirstOrThrow: {
|
|
720
|
+
args: Prisma.SettingFindFirstOrThrowArgs<ExtArgs>
|
|
721
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
722
|
+
}
|
|
723
|
+
findMany: {
|
|
724
|
+
args: Prisma.SettingFindManyArgs<ExtArgs>
|
|
725
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
|
726
|
+
}
|
|
727
|
+
create: {
|
|
728
|
+
args: Prisma.SettingCreateArgs<ExtArgs>
|
|
729
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
730
|
+
}
|
|
731
|
+
createMany: {
|
|
732
|
+
args: Prisma.SettingCreateManyArgs<ExtArgs>
|
|
733
|
+
result: BatchPayload
|
|
734
|
+
}
|
|
735
|
+
createManyAndReturn: {
|
|
736
|
+
args: Prisma.SettingCreateManyAndReturnArgs<ExtArgs>
|
|
737
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
|
738
|
+
}
|
|
739
|
+
delete: {
|
|
740
|
+
args: Prisma.SettingDeleteArgs<ExtArgs>
|
|
741
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
742
|
+
}
|
|
743
|
+
update: {
|
|
744
|
+
args: Prisma.SettingUpdateArgs<ExtArgs>
|
|
745
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
746
|
+
}
|
|
747
|
+
deleteMany: {
|
|
748
|
+
args: Prisma.SettingDeleteManyArgs<ExtArgs>
|
|
749
|
+
result: BatchPayload
|
|
750
|
+
}
|
|
751
|
+
updateMany: {
|
|
752
|
+
args: Prisma.SettingUpdateManyArgs<ExtArgs>
|
|
753
|
+
result: BatchPayload
|
|
754
|
+
}
|
|
755
|
+
updateManyAndReturn: {
|
|
756
|
+
args: Prisma.SettingUpdateManyAndReturnArgs<ExtArgs>
|
|
757
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
|
758
|
+
}
|
|
759
|
+
upsert: {
|
|
760
|
+
args: Prisma.SettingUpsertArgs<ExtArgs>
|
|
761
|
+
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
762
|
+
}
|
|
763
|
+
aggregate: {
|
|
764
|
+
args: Prisma.SettingAggregateArgs<ExtArgs>
|
|
765
|
+
result: $Utils.Optional<AggregateSetting>
|
|
766
|
+
}
|
|
767
|
+
groupBy: {
|
|
768
|
+
args: Prisma.SettingGroupByArgs<ExtArgs>
|
|
769
|
+
result: $Utils.Optional<SettingGroupByOutputType>[]
|
|
770
|
+
}
|
|
771
|
+
count: {
|
|
772
|
+
args: Prisma.SettingCountArgs<ExtArgs>
|
|
773
|
+
result: $Utils.Optional<SettingCountAggregateOutputType> | number
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
} & {
|
|
779
|
+
other: {
|
|
780
|
+
payload: any
|
|
781
|
+
operations: {
|
|
782
|
+
$executeRaw: {
|
|
783
|
+
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
784
|
+
result: any
|
|
785
|
+
}
|
|
786
|
+
$executeRawUnsafe: {
|
|
787
|
+
args: [query: string, ...values: any[]],
|
|
788
|
+
result: any
|
|
789
|
+
}
|
|
790
|
+
$queryRaw: {
|
|
791
|
+
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
792
|
+
result: any
|
|
793
|
+
}
|
|
794
|
+
$queryRawUnsafe: {
|
|
795
|
+
args: [query: string, ...values: any[]],
|
|
796
|
+
result: any
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
|
|
802
|
+
export type DefaultPrismaClient = PrismaClient
|
|
803
|
+
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
|
804
|
+
export interface PrismaClientOptions {
|
|
805
|
+
/**
|
|
806
|
+
* Overwrites the datasource url from your schema.prisma file
|
|
807
|
+
*/
|
|
808
|
+
datasources?: Datasources
|
|
809
|
+
/**
|
|
810
|
+
* Overwrites the datasource url from your schema.prisma file
|
|
811
|
+
*/
|
|
812
|
+
datasourceUrl?: string
|
|
813
|
+
/**
|
|
814
|
+
* @default "colorless"
|
|
815
|
+
*/
|
|
816
|
+
errorFormat?: ErrorFormat
|
|
817
|
+
/**
|
|
818
|
+
* @example
|
|
819
|
+
* ```
|
|
820
|
+
* // Shorthand for `emit: 'stdout'`
|
|
821
|
+
* log: ['query', 'info', 'warn', 'error']
|
|
822
|
+
*
|
|
823
|
+
* // Emit as events only
|
|
824
|
+
* log: [
|
|
825
|
+
* { emit: 'event', level: 'query' },
|
|
826
|
+
* { emit: 'event', level: 'info' },
|
|
827
|
+
* { emit: 'event', level: 'warn' }
|
|
828
|
+
* { emit: 'event', level: 'error' }
|
|
829
|
+
* ]
|
|
830
|
+
*
|
|
831
|
+
* / Emit as events and log to stdout
|
|
832
|
+
* og: [
|
|
833
|
+
* { emit: 'stdout', level: 'query' },
|
|
834
|
+
* { emit: 'stdout', level: 'info' },
|
|
835
|
+
* { emit: 'stdout', level: 'warn' }
|
|
836
|
+
* { emit: 'stdout', level: 'error' }
|
|
837
|
+
*
|
|
838
|
+
* ```
|
|
839
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
840
|
+
*/
|
|
841
|
+
log?: (LogLevel | LogDefinition)[]
|
|
842
|
+
/**
|
|
843
|
+
* The default values for transactionOptions
|
|
844
|
+
* maxWait ?= 2000
|
|
845
|
+
* timeout ?= 5000
|
|
846
|
+
*/
|
|
847
|
+
transactionOptions?: {
|
|
848
|
+
maxWait?: number
|
|
849
|
+
timeout?: number
|
|
850
|
+
isolationLevel?: Prisma.TransactionIsolationLevel
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
|
|
854
|
+
*/
|
|
855
|
+
adapter?: runtime.SqlDriverAdapterFactory | null
|
|
856
|
+
/**
|
|
857
|
+
* Global configuration for omitting model fields by default.
|
|
858
|
+
*
|
|
859
|
+
* @example
|
|
860
|
+
* ```
|
|
861
|
+
* const prisma = new PrismaClient({
|
|
862
|
+
* omit: {
|
|
863
|
+
* user: {
|
|
864
|
+
* password: true
|
|
865
|
+
* }
|
|
866
|
+
* }
|
|
867
|
+
* })
|
|
868
|
+
* ```
|
|
869
|
+
*/
|
|
870
|
+
omit?: Prisma.GlobalOmitConfig
|
|
871
|
+
}
|
|
872
|
+
export type GlobalOmitConfig = {
|
|
873
|
+
session?: SessionOmit
|
|
874
|
+
setting?: SettingOmit
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/* Types for Logging */
|
|
878
|
+
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
|
|
879
|
+
export type LogDefinition = {
|
|
880
|
+
level: LogLevel
|
|
881
|
+
emit: 'stdout' | 'event'
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
885
|
+
|
|
886
|
+
export type GetLogType<T> = CheckIsLogLevel<
|
|
887
|
+
T extends LogDefinition ? T['level'] : T
|
|
888
|
+
>;
|
|
889
|
+
|
|
890
|
+
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
|
|
891
|
+
? GetLogType<T[number]>
|
|
892
|
+
: never;
|
|
893
|
+
|
|
894
|
+
export type QueryEvent = {
|
|
895
|
+
timestamp: Date
|
|
896
|
+
query: string
|
|
897
|
+
params: string
|
|
898
|
+
duration: number
|
|
899
|
+
target: string
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export type LogEvent = {
|
|
903
|
+
timestamp: Date
|
|
904
|
+
message: string
|
|
905
|
+
target: string
|
|
906
|
+
}
|
|
907
|
+
/* End Types for Logging */
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
export type PrismaAction =
|
|
911
|
+
| 'findUnique'
|
|
912
|
+
| 'findUniqueOrThrow'
|
|
913
|
+
| 'findMany'
|
|
914
|
+
| 'findFirst'
|
|
915
|
+
| 'findFirstOrThrow'
|
|
916
|
+
| 'create'
|
|
917
|
+
| 'createMany'
|
|
918
|
+
| 'createManyAndReturn'
|
|
919
|
+
| 'update'
|
|
920
|
+
| 'updateMany'
|
|
921
|
+
| 'updateManyAndReturn'
|
|
922
|
+
| 'upsert'
|
|
923
|
+
| 'delete'
|
|
924
|
+
| 'deleteMany'
|
|
925
|
+
| 'executeRaw'
|
|
926
|
+
| 'queryRaw'
|
|
927
|
+
| 'aggregate'
|
|
928
|
+
| 'count'
|
|
929
|
+
| 'runCommandRaw'
|
|
930
|
+
| 'findRaw'
|
|
931
|
+
| 'groupBy'
|
|
932
|
+
|
|
933
|
+
// tested in getLogLevel.test.ts
|
|
934
|
+
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* `PrismaClient` proxy available in interactive transactions.
|
|
938
|
+
*/
|
|
939
|
+
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
|
|
940
|
+
|
|
941
|
+
export type Datasource = {
|
|
942
|
+
url?: string
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Count Types
|
|
947
|
+
*/
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Models
|
|
953
|
+
*/
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Model Session
|
|
957
|
+
*/
|
|
958
|
+
|
|
959
|
+
export type AggregateSession = {
|
|
960
|
+
_count: SessionCountAggregateOutputType | null
|
|
961
|
+
_min: SessionMinAggregateOutputType | null
|
|
962
|
+
_max: SessionMaxAggregateOutputType | null
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export type SessionMinAggregateOutputType = {
|
|
966
|
+
id: string | null
|
|
967
|
+
token: string | null
|
|
968
|
+
createdAt: Date | null
|
|
969
|
+
expiresAt: Date | null
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export type SessionMaxAggregateOutputType = {
|
|
973
|
+
id: string | null
|
|
974
|
+
token: string | null
|
|
975
|
+
createdAt: Date | null
|
|
976
|
+
expiresAt: Date | null
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export type SessionCountAggregateOutputType = {
|
|
980
|
+
id: number
|
|
981
|
+
token: number
|
|
982
|
+
createdAt: number
|
|
983
|
+
expiresAt: number
|
|
984
|
+
_all: number
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
export type SessionMinAggregateInputType = {
|
|
989
|
+
id?: true
|
|
990
|
+
token?: true
|
|
991
|
+
createdAt?: true
|
|
992
|
+
expiresAt?: true
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export type SessionMaxAggregateInputType = {
|
|
996
|
+
id?: true
|
|
997
|
+
token?: true
|
|
998
|
+
createdAt?: true
|
|
999
|
+
expiresAt?: true
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
export type SessionCountAggregateInputType = {
|
|
1003
|
+
id?: true
|
|
1004
|
+
token?: true
|
|
1005
|
+
createdAt?: true
|
|
1006
|
+
expiresAt?: true
|
|
1007
|
+
_all?: true
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1011
|
+
/**
|
|
1012
|
+
* Filter which Session to aggregate.
|
|
1013
|
+
*/
|
|
1014
|
+
where?: SessionWhereInput
|
|
1015
|
+
/**
|
|
1016
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1017
|
+
*
|
|
1018
|
+
* Determine the order of Sessions to fetch.
|
|
1019
|
+
*/
|
|
1020
|
+
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
1021
|
+
/**
|
|
1022
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1023
|
+
*
|
|
1024
|
+
* Sets the start position
|
|
1025
|
+
*/
|
|
1026
|
+
cursor?: SessionWhereUniqueInput
|
|
1027
|
+
/**
|
|
1028
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1029
|
+
*
|
|
1030
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
1031
|
+
*/
|
|
1032
|
+
take?: number
|
|
1033
|
+
/**
|
|
1034
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1035
|
+
*
|
|
1036
|
+
* Skip the first `n` Sessions.
|
|
1037
|
+
*/
|
|
1038
|
+
skip?: number
|
|
1039
|
+
/**
|
|
1040
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
1041
|
+
*
|
|
1042
|
+
* Count returned Sessions
|
|
1043
|
+
**/
|
|
1044
|
+
_count?: true | SessionCountAggregateInputType
|
|
1045
|
+
/**
|
|
1046
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
1047
|
+
*
|
|
1048
|
+
* Select which fields to find the minimum value
|
|
1049
|
+
**/
|
|
1050
|
+
_min?: SessionMinAggregateInputType
|
|
1051
|
+
/**
|
|
1052
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
1053
|
+
*
|
|
1054
|
+
* Select which fields to find the maximum value
|
|
1055
|
+
**/
|
|
1056
|
+
_max?: SessionMaxAggregateInputType
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
|
|
1060
|
+
[P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
|
|
1061
|
+
? T[P] extends true
|
|
1062
|
+
? number
|
|
1063
|
+
: GetScalarType<T[P], AggregateSession[P]>
|
|
1064
|
+
: GetScalarType<T[P], AggregateSession[P]>
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1071
|
+
where?: SessionWhereInput
|
|
1072
|
+
orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
|
|
1073
|
+
by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
|
|
1074
|
+
having?: SessionScalarWhereWithAggregatesInput
|
|
1075
|
+
take?: number
|
|
1076
|
+
skip?: number
|
|
1077
|
+
_count?: SessionCountAggregateInputType | true
|
|
1078
|
+
_min?: SessionMinAggregateInputType
|
|
1079
|
+
_max?: SessionMaxAggregateInputType
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export type SessionGroupByOutputType = {
|
|
1083
|
+
id: string
|
|
1084
|
+
token: string
|
|
1085
|
+
createdAt: Date
|
|
1086
|
+
expiresAt: Date
|
|
1087
|
+
_count: SessionCountAggregateOutputType | null
|
|
1088
|
+
_min: SessionMinAggregateOutputType | null
|
|
1089
|
+
_max: SessionMaxAggregateOutputType | null
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
|
|
1093
|
+
Array<
|
|
1094
|
+
PickEnumerable<SessionGroupByOutputType, T['by']> &
|
|
1095
|
+
{
|
|
1096
|
+
[P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
|
|
1097
|
+
? T[P] extends boolean
|
|
1098
|
+
? number
|
|
1099
|
+
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
1100
|
+
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
1101
|
+
}
|
|
1102
|
+
>
|
|
1103
|
+
>
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
1107
|
+
id?: boolean
|
|
1108
|
+
token?: boolean
|
|
1109
|
+
createdAt?: boolean
|
|
1110
|
+
expiresAt?: boolean
|
|
1111
|
+
}, ExtArgs["result"]["session"]>
|
|
1112
|
+
|
|
1113
|
+
export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
1114
|
+
id?: boolean
|
|
1115
|
+
token?: boolean
|
|
1116
|
+
createdAt?: boolean
|
|
1117
|
+
expiresAt?: boolean
|
|
1118
|
+
}, ExtArgs["result"]["session"]>
|
|
1119
|
+
|
|
1120
|
+
export type SessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
1121
|
+
id?: boolean
|
|
1122
|
+
token?: boolean
|
|
1123
|
+
createdAt?: boolean
|
|
1124
|
+
expiresAt?: boolean
|
|
1125
|
+
}, ExtArgs["result"]["session"]>
|
|
1126
|
+
|
|
1127
|
+
export type SessionSelectScalar = {
|
|
1128
|
+
id?: boolean
|
|
1129
|
+
token?: boolean
|
|
1130
|
+
createdAt?: boolean
|
|
1131
|
+
expiresAt?: boolean
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "token" | "createdAt" | "expiresAt", ExtArgs["result"]["session"]>
|
|
1135
|
+
|
|
1136
|
+
export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1137
|
+
name: "Session"
|
|
1138
|
+
objects: {}
|
|
1139
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
1140
|
+
id: string
|
|
1141
|
+
token: string
|
|
1142
|
+
createdAt: Date
|
|
1143
|
+
expiresAt: Date
|
|
1144
|
+
}, ExtArgs["result"]["session"]>
|
|
1145
|
+
composites: {}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
|
|
1149
|
+
|
|
1150
|
+
type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
1151
|
+
Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1152
|
+
select?: SessionCountAggregateInputType | true
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1156
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
|
|
1157
|
+
/**
|
|
1158
|
+
* Find zero or one Session that matches the filter.
|
|
1159
|
+
* @param {SessionFindUniqueArgs} args - Arguments to find a Session
|
|
1160
|
+
* @example
|
|
1161
|
+
* // Get one Session
|
|
1162
|
+
* const session = await prisma.session.findUnique({
|
|
1163
|
+
* where: {
|
|
1164
|
+
* // ... provide filter here
|
|
1165
|
+
* }
|
|
1166
|
+
* })
|
|
1167
|
+
*/
|
|
1168
|
+
findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
|
|
1172
|
+
* if no matches were found.
|
|
1173
|
+
* @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
|
|
1174
|
+
* @example
|
|
1175
|
+
* // Get one Session
|
|
1176
|
+
* const session = await prisma.session.findUniqueOrThrow({
|
|
1177
|
+
* where: {
|
|
1178
|
+
* // ... provide filter here
|
|
1179
|
+
* }
|
|
1180
|
+
* })
|
|
1181
|
+
*/
|
|
1182
|
+
findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Find the first Session that matches the filter.
|
|
1186
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1187
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1188
|
+
* @param {SessionFindFirstArgs} args - Arguments to find a Session
|
|
1189
|
+
* @example
|
|
1190
|
+
* // Get one Session
|
|
1191
|
+
* const session = await prisma.session.findFirst({
|
|
1192
|
+
* where: {
|
|
1193
|
+
* // ... provide filter here
|
|
1194
|
+
* }
|
|
1195
|
+
* })
|
|
1196
|
+
*/
|
|
1197
|
+
findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Find the first Session that matches the filter or
|
|
1201
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1202
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1203
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1204
|
+
* @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
|
|
1205
|
+
* @example
|
|
1206
|
+
* // Get one Session
|
|
1207
|
+
* const session = await prisma.session.findFirstOrThrow({
|
|
1208
|
+
* where: {
|
|
1209
|
+
* // ... provide filter here
|
|
1210
|
+
* }
|
|
1211
|
+
* })
|
|
1212
|
+
*/
|
|
1213
|
+
findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Find zero or more Sessions that matches the filter.
|
|
1217
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1218
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1219
|
+
* @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1220
|
+
* @example
|
|
1221
|
+
* // Get all Sessions
|
|
1222
|
+
* const sessions = await prisma.session.findMany()
|
|
1223
|
+
*
|
|
1224
|
+
* // Get first 10 Sessions
|
|
1225
|
+
* const sessions = await prisma.session.findMany({ take: 10 })
|
|
1226
|
+
*
|
|
1227
|
+
* // Only select the `id`
|
|
1228
|
+
* const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
|
|
1229
|
+
*
|
|
1230
|
+
*/
|
|
1231
|
+
findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Create a Session.
|
|
1235
|
+
* @param {SessionCreateArgs} args - Arguments to create a Session.
|
|
1236
|
+
* @example
|
|
1237
|
+
* // Create one Session
|
|
1238
|
+
* const Session = await prisma.session.create({
|
|
1239
|
+
* data: {
|
|
1240
|
+
* // ... data to create a Session
|
|
1241
|
+
* }
|
|
1242
|
+
* })
|
|
1243
|
+
*
|
|
1244
|
+
*/
|
|
1245
|
+
create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Create many Sessions.
|
|
1249
|
+
* @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
|
|
1250
|
+
* @example
|
|
1251
|
+
* // Create many Sessions
|
|
1252
|
+
* const session = await prisma.session.createMany({
|
|
1253
|
+
* data: [
|
|
1254
|
+
* // ... provide data here
|
|
1255
|
+
* ]
|
|
1256
|
+
* })
|
|
1257
|
+
*
|
|
1258
|
+
*/
|
|
1259
|
+
createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Create many Sessions and returns the data saved in the database.
|
|
1263
|
+
* @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
|
|
1264
|
+
* @example
|
|
1265
|
+
* // Create many Sessions
|
|
1266
|
+
* const session = await prisma.session.createManyAndReturn({
|
|
1267
|
+
* data: [
|
|
1268
|
+
* // ... provide data here
|
|
1269
|
+
* ]
|
|
1270
|
+
* })
|
|
1271
|
+
*
|
|
1272
|
+
* // Create many Sessions and only return the `id`
|
|
1273
|
+
* const sessionWithIdOnly = await prisma.session.createManyAndReturn({
|
|
1274
|
+
* select: { id: true },
|
|
1275
|
+
* data: [
|
|
1276
|
+
* // ... provide data here
|
|
1277
|
+
* ]
|
|
1278
|
+
* })
|
|
1279
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1280
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1281
|
+
*
|
|
1282
|
+
*/
|
|
1283
|
+
createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Delete a Session.
|
|
1287
|
+
* @param {SessionDeleteArgs} args - Arguments to delete one Session.
|
|
1288
|
+
* @example
|
|
1289
|
+
* // Delete one Session
|
|
1290
|
+
* const Session = await prisma.session.delete({
|
|
1291
|
+
* where: {
|
|
1292
|
+
* // ... filter to delete one Session
|
|
1293
|
+
* }
|
|
1294
|
+
* })
|
|
1295
|
+
*
|
|
1296
|
+
*/
|
|
1297
|
+
delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Update one Session.
|
|
1301
|
+
* @param {SessionUpdateArgs} args - Arguments to update one Session.
|
|
1302
|
+
* @example
|
|
1303
|
+
* // Update one Session
|
|
1304
|
+
* const session = await prisma.session.update({
|
|
1305
|
+
* where: {
|
|
1306
|
+
* // ... provide filter here
|
|
1307
|
+
* },
|
|
1308
|
+
* data: {
|
|
1309
|
+
* // ... provide data here
|
|
1310
|
+
* }
|
|
1311
|
+
* })
|
|
1312
|
+
*
|
|
1313
|
+
*/
|
|
1314
|
+
update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Delete zero or more Sessions.
|
|
1318
|
+
* @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
1319
|
+
* @example
|
|
1320
|
+
* // Delete a few Sessions
|
|
1321
|
+
* const { count } = await prisma.session.deleteMany({
|
|
1322
|
+
* where: {
|
|
1323
|
+
* // ... provide filter here
|
|
1324
|
+
* }
|
|
1325
|
+
* })
|
|
1326
|
+
*
|
|
1327
|
+
*/
|
|
1328
|
+
deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Update zero or more Sessions.
|
|
1332
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1333
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1334
|
+
* @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1335
|
+
* @example
|
|
1336
|
+
* // Update many Sessions
|
|
1337
|
+
* const session = await prisma.session.updateMany({
|
|
1338
|
+
* where: {
|
|
1339
|
+
* // ... provide filter here
|
|
1340
|
+
* },
|
|
1341
|
+
* data: {
|
|
1342
|
+
* // ... provide data here
|
|
1343
|
+
* }
|
|
1344
|
+
* })
|
|
1345
|
+
*
|
|
1346
|
+
*/
|
|
1347
|
+
updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Update zero or more Sessions and returns the data updated in the database.
|
|
1351
|
+
* @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
|
|
1352
|
+
* @example
|
|
1353
|
+
* // Update many Sessions
|
|
1354
|
+
* const session = await prisma.session.updateManyAndReturn({
|
|
1355
|
+
* where: {
|
|
1356
|
+
* // ... provide filter here
|
|
1357
|
+
* },
|
|
1358
|
+
* data: [
|
|
1359
|
+
* // ... provide data here
|
|
1360
|
+
* ]
|
|
1361
|
+
* })
|
|
1362
|
+
*
|
|
1363
|
+
* // Update zero or more Sessions and only return the `id`
|
|
1364
|
+
* const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
|
|
1365
|
+
* select: { id: true },
|
|
1366
|
+
* where: {
|
|
1367
|
+
* // ... provide filter here
|
|
1368
|
+
* },
|
|
1369
|
+
* data: [
|
|
1370
|
+
* // ... provide data here
|
|
1371
|
+
* ]
|
|
1372
|
+
* })
|
|
1373
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1374
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1375
|
+
*
|
|
1376
|
+
*/
|
|
1377
|
+
updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* Create or update one Session.
|
|
1381
|
+
* @param {SessionUpsertArgs} args - Arguments to update or create a Session.
|
|
1382
|
+
* @example
|
|
1383
|
+
* // Update or create a Session
|
|
1384
|
+
* const session = await prisma.session.upsert({
|
|
1385
|
+
* create: {
|
|
1386
|
+
* // ... data to create a Session
|
|
1387
|
+
* },
|
|
1388
|
+
* update: {
|
|
1389
|
+
* // ... in case it already exists, update
|
|
1390
|
+
* },
|
|
1391
|
+
* where: {
|
|
1392
|
+
* // ... the filter for the Session we want to update
|
|
1393
|
+
* }
|
|
1394
|
+
* })
|
|
1395
|
+
*/
|
|
1396
|
+
upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Count the number of Sessions.
|
|
1401
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1402
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1403
|
+
* @param {SessionCountArgs} args - Arguments to filter Sessions to count.
|
|
1404
|
+
* @example
|
|
1405
|
+
* // Count the number of Sessions
|
|
1406
|
+
* const count = await prisma.session.count({
|
|
1407
|
+
* where: {
|
|
1408
|
+
* // ... the filter for the Sessions we want to count
|
|
1409
|
+
* }
|
|
1410
|
+
* })
|
|
1411
|
+
**/
|
|
1412
|
+
count<T extends SessionCountArgs>(
|
|
1413
|
+
args?: Subset<T, SessionCountArgs>,
|
|
1414
|
+
): Prisma.PrismaPromise<
|
|
1415
|
+
T extends $Utils.Record<'select', any>
|
|
1416
|
+
? T['select'] extends true
|
|
1417
|
+
? number
|
|
1418
|
+
: GetScalarType<T['select'], SessionCountAggregateOutputType>
|
|
1419
|
+
: number
|
|
1420
|
+
>
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Allows you to perform aggregations operations on a Session.
|
|
1424
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1425
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1426
|
+
* @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1427
|
+
* @example
|
|
1428
|
+
* // Ordered by age ascending
|
|
1429
|
+
* // Where email contains prisma.io
|
|
1430
|
+
* // Limited to the 10 users
|
|
1431
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1432
|
+
* _avg: {
|
|
1433
|
+
* age: true,
|
|
1434
|
+
* },
|
|
1435
|
+
* where: {
|
|
1436
|
+
* email: {
|
|
1437
|
+
* contains: "prisma.io",
|
|
1438
|
+
* },
|
|
1439
|
+
* },
|
|
1440
|
+
* orderBy: {
|
|
1441
|
+
* age: "asc",
|
|
1442
|
+
* },
|
|
1443
|
+
* take: 10,
|
|
1444
|
+
* })
|
|
1445
|
+
**/
|
|
1446
|
+
aggregate<T extends SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Group by Session.
|
|
1450
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1451
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1452
|
+
* @param {SessionGroupByArgs} args - Group by arguments.
|
|
1453
|
+
* @example
|
|
1454
|
+
* // Group by city, order by createdAt, get count
|
|
1455
|
+
* const result = await prisma.user.groupBy({
|
|
1456
|
+
* by: ['city', 'createdAt'],
|
|
1457
|
+
* orderBy: {
|
|
1458
|
+
* createdAt: true
|
|
1459
|
+
* },
|
|
1460
|
+
* _count: {
|
|
1461
|
+
* _all: true
|
|
1462
|
+
* },
|
|
1463
|
+
* })
|
|
1464
|
+
*
|
|
1465
|
+
**/
|
|
1466
|
+
groupBy<
|
|
1467
|
+
T extends SessionGroupByArgs,
|
|
1468
|
+
HasSelectOrTake extends Or<
|
|
1469
|
+
Extends<'skip', Keys<T>>,
|
|
1470
|
+
Extends<'take', Keys<T>>
|
|
1471
|
+
>,
|
|
1472
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
1473
|
+
? { orderBy: SessionGroupByArgs['orderBy'] }
|
|
1474
|
+
: { orderBy?: SessionGroupByArgs['orderBy'] },
|
|
1475
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
1476
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
1477
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
1478
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
1479
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
1480
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
1481
|
+
InputErrors extends ByEmpty extends True
|
|
1482
|
+
? `Error: "by" must not be empty.`
|
|
1483
|
+
: HavingValid extends False
|
|
1484
|
+
? {
|
|
1485
|
+
[P in HavingFields]: P extends ByFields
|
|
1486
|
+
? never
|
|
1487
|
+
: P extends string
|
|
1488
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1489
|
+
: [
|
|
1490
|
+
Error,
|
|
1491
|
+
'Field ',
|
|
1492
|
+
P,
|
|
1493
|
+
` in "having" needs to be provided in "by"`,
|
|
1494
|
+
]
|
|
1495
|
+
}[HavingFields]
|
|
1496
|
+
: 'take' extends Keys<T>
|
|
1497
|
+
? 'orderBy' extends Keys<T>
|
|
1498
|
+
? ByValid extends True
|
|
1499
|
+
? {}
|
|
1500
|
+
: {
|
|
1501
|
+
[P in OrderFields]: P extends ByFields
|
|
1502
|
+
? never
|
|
1503
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1504
|
+
}[OrderFields]
|
|
1505
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1506
|
+
: 'skip' extends Keys<T>
|
|
1507
|
+
? 'orderBy' extends Keys<T>
|
|
1508
|
+
? ByValid extends True
|
|
1509
|
+
? {}
|
|
1510
|
+
: {
|
|
1511
|
+
[P in OrderFields]: P extends ByFields
|
|
1512
|
+
? never
|
|
1513
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1514
|
+
}[OrderFields]
|
|
1515
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1516
|
+
: ByValid extends True
|
|
1517
|
+
? {}
|
|
1518
|
+
: {
|
|
1519
|
+
[P in OrderFields]: P extends ByFields
|
|
1520
|
+
? never
|
|
1521
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1522
|
+
}[OrderFields]
|
|
1523
|
+
>(args: SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1524
|
+
/**
|
|
1525
|
+
* Fields of the Session model
|
|
1526
|
+
*/
|
|
1527
|
+
readonly fields: SessionFieldRefs;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* The delegate class that acts as a "Promise-like" for Session.
|
|
1532
|
+
* Why is this prefixed with `Prisma__`?
|
|
1533
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1534
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1535
|
+
*/
|
|
1536
|
+
export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1537
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1538
|
+
/**
|
|
1539
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1540
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1541
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1542
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1543
|
+
*/
|
|
1544
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
1545
|
+
/**
|
|
1546
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1547
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1548
|
+
* @returns A Promise for the completion of the callback.
|
|
1549
|
+
*/
|
|
1550
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
1551
|
+
/**
|
|
1552
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1553
|
+
* resolved value cannot be modified from the callback.
|
|
1554
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1555
|
+
* @returns A Promise for the completion of the callback.
|
|
1556
|
+
*/
|
|
1557
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* Fields of the Session model
|
|
1565
|
+
*/
|
|
1566
|
+
interface SessionFieldRefs {
|
|
1567
|
+
readonly id: FieldRef<"Session", 'String'>
|
|
1568
|
+
readonly token: FieldRef<"Session", 'String'>
|
|
1569
|
+
readonly createdAt: FieldRef<"Session", 'DateTime'>
|
|
1570
|
+
readonly expiresAt: FieldRef<"Session", 'DateTime'>
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
// Custom InputTypes
|
|
1575
|
+
/**
|
|
1576
|
+
* Session findUnique
|
|
1577
|
+
*/
|
|
1578
|
+
export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1579
|
+
/**
|
|
1580
|
+
* Select specific fields to fetch from the Session
|
|
1581
|
+
*/
|
|
1582
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1583
|
+
/**
|
|
1584
|
+
* Omit specific fields from the Session
|
|
1585
|
+
*/
|
|
1586
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1587
|
+
/**
|
|
1588
|
+
* Filter, which Session to fetch.
|
|
1589
|
+
*/
|
|
1590
|
+
where: SessionWhereUniqueInput
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Session findUniqueOrThrow
|
|
1595
|
+
*/
|
|
1596
|
+
export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1597
|
+
/**
|
|
1598
|
+
* Select specific fields to fetch from the Session
|
|
1599
|
+
*/
|
|
1600
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1601
|
+
/**
|
|
1602
|
+
* Omit specific fields from the Session
|
|
1603
|
+
*/
|
|
1604
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1605
|
+
/**
|
|
1606
|
+
* Filter, which Session to fetch.
|
|
1607
|
+
*/
|
|
1608
|
+
where: SessionWhereUniqueInput
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Session findFirst
|
|
1613
|
+
*/
|
|
1614
|
+
export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1615
|
+
/**
|
|
1616
|
+
* Select specific fields to fetch from the Session
|
|
1617
|
+
*/
|
|
1618
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1619
|
+
/**
|
|
1620
|
+
* Omit specific fields from the Session
|
|
1621
|
+
*/
|
|
1622
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1623
|
+
/**
|
|
1624
|
+
* Filter, which Session to fetch.
|
|
1625
|
+
*/
|
|
1626
|
+
where?: SessionWhereInput
|
|
1627
|
+
/**
|
|
1628
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1629
|
+
*
|
|
1630
|
+
* Determine the order of Sessions to fetch.
|
|
1631
|
+
*/
|
|
1632
|
+
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
1633
|
+
/**
|
|
1634
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1635
|
+
*
|
|
1636
|
+
* Sets the position for searching for Sessions.
|
|
1637
|
+
*/
|
|
1638
|
+
cursor?: SessionWhereUniqueInput
|
|
1639
|
+
/**
|
|
1640
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1641
|
+
*
|
|
1642
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
1643
|
+
*/
|
|
1644
|
+
take?: number
|
|
1645
|
+
/**
|
|
1646
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1647
|
+
*
|
|
1648
|
+
* Skip the first `n` Sessions.
|
|
1649
|
+
*/
|
|
1650
|
+
skip?: number
|
|
1651
|
+
/**
|
|
1652
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1653
|
+
*
|
|
1654
|
+
* Filter by unique combinations of Sessions.
|
|
1655
|
+
*/
|
|
1656
|
+
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Session findFirstOrThrow
|
|
1661
|
+
*/
|
|
1662
|
+
export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1663
|
+
/**
|
|
1664
|
+
* Select specific fields to fetch from the Session
|
|
1665
|
+
*/
|
|
1666
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1667
|
+
/**
|
|
1668
|
+
* Omit specific fields from the Session
|
|
1669
|
+
*/
|
|
1670
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1671
|
+
/**
|
|
1672
|
+
* Filter, which Session to fetch.
|
|
1673
|
+
*/
|
|
1674
|
+
where?: SessionWhereInput
|
|
1675
|
+
/**
|
|
1676
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1677
|
+
*
|
|
1678
|
+
* Determine the order of Sessions to fetch.
|
|
1679
|
+
*/
|
|
1680
|
+
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
1681
|
+
/**
|
|
1682
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1683
|
+
*
|
|
1684
|
+
* Sets the position for searching for Sessions.
|
|
1685
|
+
*/
|
|
1686
|
+
cursor?: SessionWhereUniqueInput
|
|
1687
|
+
/**
|
|
1688
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1689
|
+
*
|
|
1690
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
1691
|
+
*/
|
|
1692
|
+
take?: number
|
|
1693
|
+
/**
|
|
1694
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1695
|
+
*
|
|
1696
|
+
* Skip the first `n` Sessions.
|
|
1697
|
+
*/
|
|
1698
|
+
skip?: number
|
|
1699
|
+
/**
|
|
1700
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1701
|
+
*
|
|
1702
|
+
* Filter by unique combinations of Sessions.
|
|
1703
|
+
*/
|
|
1704
|
+
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Session findMany
|
|
1709
|
+
*/
|
|
1710
|
+
export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1711
|
+
/**
|
|
1712
|
+
* Select specific fields to fetch from the Session
|
|
1713
|
+
*/
|
|
1714
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1715
|
+
/**
|
|
1716
|
+
* Omit specific fields from the Session
|
|
1717
|
+
*/
|
|
1718
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1719
|
+
/**
|
|
1720
|
+
* Filter, which Sessions to fetch.
|
|
1721
|
+
*/
|
|
1722
|
+
where?: SessionWhereInput
|
|
1723
|
+
/**
|
|
1724
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1725
|
+
*
|
|
1726
|
+
* Determine the order of Sessions to fetch.
|
|
1727
|
+
*/
|
|
1728
|
+
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
1729
|
+
/**
|
|
1730
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1731
|
+
*
|
|
1732
|
+
* Sets the position for listing Sessions.
|
|
1733
|
+
*/
|
|
1734
|
+
cursor?: SessionWhereUniqueInput
|
|
1735
|
+
/**
|
|
1736
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1737
|
+
*
|
|
1738
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
1739
|
+
*/
|
|
1740
|
+
take?: number
|
|
1741
|
+
/**
|
|
1742
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1743
|
+
*
|
|
1744
|
+
* Skip the first `n` Sessions.
|
|
1745
|
+
*/
|
|
1746
|
+
skip?: number
|
|
1747
|
+
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* Session create
|
|
1752
|
+
*/
|
|
1753
|
+
export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1754
|
+
/**
|
|
1755
|
+
* Select specific fields to fetch from the Session
|
|
1756
|
+
*/
|
|
1757
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1758
|
+
/**
|
|
1759
|
+
* Omit specific fields from the Session
|
|
1760
|
+
*/
|
|
1761
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1762
|
+
/**
|
|
1763
|
+
* The data needed to create a Session.
|
|
1764
|
+
*/
|
|
1765
|
+
data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* Session createMany
|
|
1770
|
+
*/
|
|
1771
|
+
export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1772
|
+
/**
|
|
1773
|
+
* The data used to create many Sessions.
|
|
1774
|
+
*/
|
|
1775
|
+
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Session createManyAndReturn
|
|
1780
|
+
*/
|
|
1781
|
+
export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1782
|
+
/**
|
|
1783
|
+
* Select specific fields to fetch from the Session
|
|
1784
|
+
*/
|
|
1785
|
+
select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
1786
|
+
/**
|
|
1787
|
+
* Omit specific fields from the Session
|
|
1788
|
+
*/
|
|
1789
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1790
|
+
/**
|
|
1791
|
+
* The data used to create many Sessions.
|
|
1792
|
+
*/
|
|
1793
|
+
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Session update
|
|
1798
|
+
*/
|
|
1799
|
+
export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1800
|
+
/**
|
|
1801
|
+
* Select specific fields to fetch from the Session
|
|
1802
|
+
*/
|
|
1803
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1804
|
+
/**
|
|
1805
|
+
* Omit specific fields from the Session
|
|
1806
|
+
*/
|
|
1807
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1808
|
+
/**
|
|
1809
|
+
* The data needed to update a Session.
|
|
1810
|
+
*/
|
|
1811
|
+
data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
1812
|
+
/**
|
|
1813
|
+
* Choose, which Session to update.
|
|
1814
|
+
*/
|
|
1815
|
+
where: SessionWhereUniqueInput
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Session updateMany
|
|
1820
|
+
*/
|
|
1821
|
+
export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1822
|
+
/**
|
|
1823
|
+
* The data used to update Sessions.
|
|
1824
|
+
*/
|
|
1825
|
+
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
|
|
1826
|
+
/**
|
|
1827
|
+
* Filter which Sessions to update
|
|
1828
|
+
*/
|
|
1829
|
+
where?: SessionWhereInput
|
|
1830
|
+
/**
|
|
1831
|
+
* Limit how many Sessions to update.
|
|
1832
|
+
*/
|
|
1833
|
+
limit?: number
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Session updateManyAndReturn
|
|
1838
|
+
*/
|
|
1839
|
+
export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1840
|
+
/**
|
|
1841
|
+
* Select specific fields to fetch from the Session
|
|
1842
|
+
*/
|
|
1843
|
+
select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1844
|
+
/**
|
|
1845
|
+
* Omit specific fields from the Session
|
|
1846
|
+
*/
|
|
1847
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1848
|
+
/**
|
|
1849
|
+
* The data used to update Sessions.
|
|
1850
|
+
*/
|
|
1851
|
+
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
|
|
1852
|
+
/**
|
|
1853
|
+
* Filter which Sessions to update
|
|
1854
|
+
*/
|
|
1855
|
+
where?: SessionWhereInput
|
|
1856
|
+
/**
|
|
1857
|
+
* Limit how many Sessions to update.
|
|
1858
|
+
*/
|
|
1859
|
+
limit?: number
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Session upsert
|
|
1864
|
+
*/
|
|
1865
|
+
export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1866
|
+
/**
|
|
1867
|
+
* Select specific fields to fetch from the Session
|
|
1868
|
+
*/
|
|
1869
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1870
|
+
/**
|
|
1871
|
+
* Omit specific fields from the Session
|
|
1872
|
+
*/
|
|
1873
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1874
|
+
/**
|
|
1875
|
+
* The filter to search for the Session to update in case it exists.
|
|
1876
|
+
*/
|
|
1877
|
+
where: SessionWhereUniqueInput
|
|
1878
|
+
/**
|
|
1879
|
+
* In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
|
|
1880
|
+
*/
|
|
1881
|
+
create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
1882
|
+
/**
|
|
1883
|
+
* In case the Session was found with the provided `where` argument, update it with this data.
|
|
1884
|
+
*/
|
|
1885
|
+
update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Session delete
|
|
1890
|
+
*/
|
|
1891
|
+
export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1892
|
+
/**
|
|
1893
|
+
* Select specific fields to fetch from the Session
|
|
1894
|
+
*/
|
|
1895
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1896
|
+
/**
|
|
1897
|
+
* Omit specific fields from the Session
|
|
1898
|
+
*/
|
|
1899
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1900
|
+
/**
|
|
1901
|
+
* Filter which Session to delete.
|
|
1902
|
+
*/
|
|
1903
|
+
where: SessionWhereUniqueInput
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Session deleteMany
|
|
1908
|
+
*/
|
|
1909
|
+
export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1910
|
+
/**
|
|
1911
|
+
* Filter which Sessions to delete
|
|
1912
|
+
*/
|
|
1913
|
+
where?: SessionWhereInput
|
|
1914
|
+
/**
|
|
1915
|
+
* Limit how many Sessions to delete.
|
|
1916
|
+
*/
|
|
1917
|
+
limit?: number
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Session without action
|
|
1922
|
+
*/
|
|
1923
|
+
export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1924
|
+
/**
|
|
1925
|
+
* Select specific fields to fetch from the Session
|
|
1926
|
+
*/
|
|
1927
|
+
select?: SessionSelect<ExtArgs> | null
|
|
1928
|
+
/**
|
|
1929
|
+
* Omit specific fields from the Session
|
|
1930
|
+
*/
|
|
1931
|
+
omit?: SessionOmit<ExtArgs> | null
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Model Setting
|
|
1937
|
+
*/
|
|
1938
|
+
|
|
1939
|
+
export type AggregateSetting = {
|
|
1940
|
+
_count: SettingCountAggregateOutputType | null
|
|
1941
|
+
_min: SettingMinAggregateOutputType | null
|
|
1942
|
+
_max: SettingMaxAggregateOutputType | null
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
export type SettingMinAggregateOutputType = {
|
|
1946
|
+
key: string | null
|
|
1947
|
+
value: string | null
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
export type SettingMaxAggregateOutputType = {
|
|
1951
|
+
key: string | null
|
|
1952
|
+
value: string | null
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
export type SettingCountAggregateOutputType = {
|
|
1956
|
+
key: number
|
|
1957
|
+
value: number
|
|
1958
|
+
_all: number
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
export type SettingMinAggregateInputType = {
|
|
1963
|
+
key?: true
|
|
1964
|
+
value?: true
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
export type SettingMaxAggregateInputType = {
|
|
1968
|
+
key?: true
|
|
1969
|
+
value?: true
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
export type SettingCountAggregateInputType = {
|
|
1973
|
+
key?: true
|
|
1974
|
+
value?: true
|
|
1975
|
+
_all?: true
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
export type SettingAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1979
|
+
/**
|
|
1980
|
+
* Filter which Setting to aggregate.
|
|
1981
|
+
*/
|
|
1982
|
+
where?: SettingWhereInput
|
|
1983
|
+
/**
|
|
1984
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1985
|
+
*
|
|
1986
|
+
* Determine the order of Settings to fetch.
|
|
1987
|
+
*/
|
|
1988
|
+
orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[]
|
|
1989
|
+
/**
|
|
1990
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1991
|
+
*
|
|
1992
|
+
* Sets the start position
|
|
1993
|
+
*/
|
|
1994
|
+
cursor?: SettingWhereUniqueInput
|
|
1995
|
+
/**
|
|
1996
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1997
|
+
*
|
|
1998
|
+
* Take `±n` Settings from the position of the cursor.
|
|
1999
|
+
*/
|
|
2000
|
+
take?: number
|
|
2001
|
+
/**
|
|
2002
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2003
|
+
*
|
|
2004
|
+
* Skip the first `n` Settings.
|
|
2005
|
+
*/
|
|
2006
|
+
skip?: number
|
|
2007
|
+
/**
|
|
2008
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
2009
|
+
*
|
|
2010
|
+
* Count returned Settings
|
|
2011
|
+
**/
|
|
2012
|
+
_count?: true | SettingCountAggregateInputType
|
|
2013
|
+
/**
|
|
2014
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
2015
|
+
*
|
|
2016
|
+
* Select which fields to find the minimum value
|
|
2017
|
+
**/
|
|
2018
|
+
_min?: SettingMinAggregateInputType
|
|
2019
|
+
/**
|
|
2020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
2021
|
+
*
|
|
2022
|
+
* Select which fields to find the maximum value
|
|
2023
|
+
**/
|
|
2024
|
+
_max?: SettingMaxAggregateInputType
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
export type GetSettingAggregateType<T extends SettingAggregateArgs> = {
|
|
2028
|
+
[P in keyof T & keyof AggregateSetting]: P extends '_count' | 'count'
|
|
2029
|
+
? T[P] extends true
|
|
2030
|
+
? number
|
|
2031
|
+
: GetScalarType<T[P], AggregateSetting[P]>
|
|
2032
|
+
: GetScalarType<T[P], AggregateSetting[P]>
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
export type SettingGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2039
|
+
where?: SettingWhereInput
|
|
2040
|
+
orderBy?: SettingOrderByWithAggregationInput | SettingOrderByWithAggregationInput[]
|
|
2041
|
+
by: SettingScalarFieldEnum[] | SettingScalarFieldEnum
|
|
2042
|
+
having?: SettingScalarWhereWithAggregatesInput
|
|
2043
|
+
take?: number
|
|
2044
|
+
skip?: number
|
|
2045
|
+
_count?: SettingCountAggregateInputType | true
|
|
2046
|
+
_min?: SettingMinAggregateInputType
|
|
2047
|
+
_max?: SettingMaxAggregateInputType
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
export type SettingGroupByOutputType = {
|
|
2051
|
+
key: string
|
|
2052
|
+
value: string
|
|
2053
|
+
_count: SettingCountAggregateOutputType | null
|
|
2054
|
+
_min: SettingMinAggregateOutputType | null
|
|
2055
|
+
_max: SettingMaxAggregateOutputType | null
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
type GetSettingGroupByPayload<T extends SettingGroupByArgs> = Prisma.PrismaPromise<
|
|
2059
|
+
Array<
|
|
2060
|
+
PickEnumerable<SettingGroupByOutputType, T['by']> &
|
|
2061
|
+
{
|
|
2062
|
+
[P in ((keyof T) & (keyof SettingGroupByOutputType))]: P extends '_count'
|
|
2063
|
+
? T[P] extends boolean
|
|
2064
|
+
? number
|
|
2065
|
+
: GetScalarType<T[P], SettingGroupByOutputType[P]>
|
|
2066
|
+
: GetScalarType<T[P], SettingGroupByOutputType[P]>
|
|
2067
|
+
}
|
|
2068
|
+
>
|
|
2069
|
+
>
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
export type SettingSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
2073
|
+
key?: boolean
|
|
2074
|
+
value?: boolean
|
|
2075
|
+
}, ExtArgs["result"]["setting"]>
|
|
2076
|
+
|
|
2077
|
+
export type SettingSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
2078
|
+
key?: boolean
|
|
2079
|
+
value?: boolean
|
|
2080
|
+
}, ExtArgs["result"]["setting"]>
|
|
2081
|
+
|
|
2082
|
+
export type SettingSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
2083
|
+
key?: boolean
|
|
2084
|
+
value?: boolean
|
|
2085
|
+
}, ExtArgs["result"]["setting"]>
|
|
2086
|
+
|
|
2087
|
+
export type SettingSelectScalar = {
|
|
2088
|
+
key?: boolean
|
|
2089
|
+
value?: boolean
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
export type SettingOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"key" | "value", ExtArgs["result"]["setting"]>
|
|
2093
|
+
|
|
2094
|
+
export type $SettingPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2095
|
+
name: "Setting"
|
|
2096
|
+
objects: {}
|
|
2097
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
2098
|
+
key: string
|
|
2099
|
+
value: string
|
|
2100
|
+
}, ExtArgs["result"]["setting"]>
|
|
2101
|
+
composites: {}
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
type SettingGetPayload<S extends boolean | null | undefined | SettingDefaultArgs> = $Result.GetResult<Prisma.$SettingPayload, S>
|
|
2105
|
+
|
|
2106
|
+
type SettingCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
2107
|
+
Omit<SettingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
2108
|
+
select?: SettingCountAggregateInputType | true
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
export interface SettingDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
2112
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Setting'], meta: { name: 'Setting' } }
|
|
2113
|
+
/**
|
|
2114
|
+
* Find zero or one Setting that matches the filter.
|
|
2115
|
+
* @param {SettingFindUniqueArgs} args - Arguments to find a Setting
|
|
2116
|
+
* @example
|
|
2117
|
+
* // Get one Setting
|
|
2118
|
+
* const setting = await prisma.setting.findUnique({
|
|
2119
|
+
* where: {
|
|
2120
|
+
* // ... provide filter here
|
|
2121
|
+
* }
|
|
2122
|
+
* })
|
|
2123
|
+
*/
|
|
2124
|
+
findUnique<T extends SettingFindUniqueArgs>(args: SelectSubset<T, SettingFindUniqueArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Find one Setting that matches the filter or throw an error with `error.code='P2025'`
|
|
2128
|
+
* if no matches were found.
|
|
2129
|
+
* @param {SettingFindUniqueOrThrowArgs} args - Arguments to find a Setting
|
|
2130
|
+
* @example
|
|
2131
|
+
* // Get one Setting
|
|
2132
|
+
* const setting = await prisma.setting.findUniqueOrThrow({
|
|
2133
|
+
* where: {
|
|
2134
|
+
* // ... provide filter here
|
|
2135
|
+
* }
|
|
2136
|
+
* })
|
|
2137
|
+
*/
|
|
2138
|
+
findUniqueOrThrow<T extends SettingFindUniqueOrThrowArgs>(args: SelectSubset<T, SettingFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* Find the first Setting that matches the filter.
|
|
2142
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2143
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2144
|
+
* @param {SettingFindFirstArgs} args - Arguments to find a Setting
|
|
2145
|
+
* @example
|
|
2146
|
+
* // Get one Setting
|
|
2147
|
+
* const setting = await prisma.setting.findFirst({
|
|
2148
|
+
* where: {
|
|
2149
|
+
* // ... provide filter here
|
|
2150
|
+
* }
|
|
2151
|
+
* })
|
|
2152
|
+
*/
|
|
2153
|
+
findFirst<T extends SettingFindFirstArgs>(args?: SelectSubset<T, SettingFindFirstArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* Find the first Setting that matches the filter or
|
|
2157
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
2158
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2159
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2160
|
+
* @param {SettingFindFirstOrThrowArgs} args - Arguments to find a Setting
|
|
2161
|
+
* @example
|
|
2162
|
+
* // Get one Setting
|
|
2163
|
+
* const setting = await prisma.setting.findFirstOrThrow({
|
|
2164
|
+
* where: {
|
|
2165
|
+
* // ... provide filter here
|
|
2166
|
+
* }
|
|
2167
|
+
* })
|
|
2168
|
+
*/
|
|
2169
|
+
findFirstOrThrow<T extends SettingFindFirstOrThrowArgs>(args?: SelectSubset<T, SettingFindFirstOrThrowArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Find zero or more Settings that matches the filter.
|
|
2173
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2174
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2175
|
+
* @param {SettingFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
2176
|
+
* @example
|
|
2177
|
+
* // Get all Settings
|
|
2178
|
+
* const settings = await prisma.setting.findMany()
|
|
2179
|
+
*
|
|
2180
|
+
* // Get first 10 Settings
|
|
2181
|
+
* const settings = await prisma.setting.findMany({ take: 10 })
|
|
2182
|
+
*
|
|
2183
|
+
* // Only select the `key`
|
|
2184
|
+
* const settingWithKeyOnly = await prisma.setting.findMany({ select: { key: true } })
|
|
2185
|
+
*
|
|
2186
|
+
*/
|
|
2187
|
+
findMany<T extends SettingFindManyArgs>(args?: SelectSubset<T, SettingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* Create a Setting.
|
|
2191
|
+
* @param {SettingCreateArgs} args - Arguments to create a Setting.
|
|
2192
|
+
* @example
|
|
2193
|
+
* // Create one Setting
|
|
2194
|
+
* const Setting = await prisma.setting.create({
|
|
2195
|
+
* data: {
|
|
2196
|
+
* // ... data to create a Setting
|
|
2197
|
+
* }
|
|
2198
|
+
* })
|
|
2199
|
+
*
|
|
2200
|
+
*/
|
|
2201
|
+
create<T extends SettingCreateArgs>(args: SelectSubset<T, SettingCreateArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* Create many Settings.
|
|
2205
|
+
* @param {SettingCreateManyArgs} args - Arguments to create many Settings.
|
|
2206
|
+
* @example
|
|
2207
|
+
* // Create many Settings
|
|
2208
|
+
* const setting = await prisma.setting.createMany({
|
|
2209
|
+
* data: [
|
|
2210
|
+
* // ... provide data here
|
|
2211
|
+
* ]
|
|
2212
|
+
* })
|
|
2213
|
+
*
|
|
2214
|
+
*/
|
|
2215
|
+
createMany<T extends SettingCreateManyArgs>(args?: SelectSubset<T, SettingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Create many Settings and returns the data saved in the database.
|
|
2219
|
+
* @param {SettingCreateManyAndReturnArgs} args - Arguments to create many Settings.
|
|
2220
|
+
* @example
|
|
2221
|
+
* // Create many Settings
|
|
2222
|
+
* const setting = await prisma.setting.createManyAndReturn({
|
|
2223
|
+
* data: [
|
|
2224
|
+
* // ... provide data here
|
|
2225
|
+
* ]
|
|
2226
|
+
* })
|
|
2227
|
+
*
|
|
2228
|
+
* // Create many Settings and only return the `key`
|
|
2229
|
+
* const settingWithKeyOnly = await prisma.setting.createManyAndReturn({
|
|
2230
|
+
* select: { key: true },
|
|
2231
|
+
* data: [
|
|
2232
|
+
* // ... provide data here
|
|
2233
|
+
* ]
|
|
2234
|
+
* })
|
|
2235
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2236
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2237
|
+
*
|
|
2238
|
+
*/
|
|
2239
|
+
createManyAndReturn<T extends SettingCreateManyAndReturnArgs>(args?: SelectSubset<T, SettingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* Delete a Setting.
|
|
2243
|
+
* @param {SettingDeleteArgs} args - Arguments to delete one Setting.
|
|
2244
|
+
* @example
|
|
2245
|
+
* // Delete one Setting
|
|
2246
|
+
* const Setting = await prisma.setting.delete({
|
|
2247
|
+
* where: {
|
|
2248
|
+
* // ... filter to delete one Setting
|
|
2249
|
+
* }
|
|
2250
|
+
* })
|
|
2251
|
+
*
|
|
2252
|
+
*/
|
|
2253
|
+
delete<T extends SettingDeleteArgs>(args: SelectSubset<T, SettingDeleteArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* Update one Setting.
|
|
2257
|
+
* @param {SettingUpdateArgs} args - Arguments to update one Setting.
|
|
2258
|
+
* @example
|
|
2259
|
+
* // Update one Setting
|
|
2260
|
+
* const setting = await prisma.setting.update({
|
|
2261
|
+
* where: {
|
|
2262
|
+
* // ... provide filter here
|
|
2263
|
+
* },
|
|
2264
|
+
* data: {
|
|
2265
|
+
* // ... provide data here
|
|
2266
|
+
* }
|
|
2267
|
+
* })
|
|
2268
|
+
*
|
|
2269
|
+
*/
|
|
2270
|
+
update<T extends SettingUpdateArgs>(args: SelectSubset<T, SettingUpdateArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* Delete zero or more Settings.
|
|
2274
|
+
* @param {SettingDeleteManyArgs} args - Arguments to filter Settings to delete.
|
|
2275
|
+
* @example
|
|
2276
|
+
* // Delete a few Settings
|
|
2277
|
+
* const { count } = await prisma.setting.deleteMany({
|
|
2278
|
+
* where: {
|
|
2279
|
+
* // ... provide filter here
|
|
2280
|
+
* }
|
|
2281
|
+
* })
|
|
2282
|
+
*
|
|
2283
|
+
*/
|
|
2284
|
+
deleteMany<T extends SettingDeleteManyArgs>(args?: SelectSubset<T, SettingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* Update zero or more Settings.
|
|
2288
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2289
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2290
|
+
* @param {SettingUpdateManyArgs} args - Arguments to update one or more rows.
|
|
2291
|
+
* @example
|
|
2292
|
+
* // Update many Settings
|
|
2293
|
+
* const setting = await prisma.setting.updateMany({
|
|
2294
|
+
* where: {
|
|
2295
|
+
* // ... provide filter here
|
|
2296
|
+
* },
|
|
2297
|
+
* data: {
|
|
2298
|
+
* // ... provide data here
|
|
2299
|
+
* }
|
|
2300
|
+
* })
|
|
2301
|
+
*
|
|
2302
|
+
*/
|
|
2303
|
+
updateMany<T extends SettingUpdateManyArgs>(args: SelectSubset<T, SettingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* Update zero or more Settings and returns the data updated in the database.
|
|
2307
|
+
* @param {SettingUpdateManyAndReturnArgs} args - Arguments to update many Settings.
|
|
2308
|
+
* @example
|
|
2309
|
+
* // Update many Settings
|
|
2310
|
+
* const setting = await prisma.setting.updateManyAndReturn({
|
|
2311
|
+
* where: {
|
|
2312
|
+
* // ... provide filter here
|
|
2313
|
+
* },
|
|
2314
|
+
* data: [
|
|
2315
|
+
* // ... provide data here
|
|
2316
|
+
* ]
|
|
2317
|
+
* })
|
|
2318
|
+
*
|
|
2319
|
+
* // Update zero or more Settings and only return the `key`
|
|
2320
|
+
* const settingWithKeyOnly = await prisma.setting.updateManyAndReturn({
|
|
2321
|
+
* select: { key: true },
|
|
2322
|
+
* where: {
|
|
2323
|
+
* // ... provide filter here
|
|
2324
|
+
* },
|
|
2325
|
+
* data: [
|
|
2326
|
+
* // ... provide data here
|
|
2327
|
+
* ]
|
|
2328
|
+
* })
|
|
2329
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2330
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2331
|
+
*
|
|
2332
|
+
*/
|
|
2333
|
+
updateManyAndReturn<T extends SettingUpdateManyAndReturnArgs>(args: SelectSubset<T, SettingUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Create or update one Setting.
|
|
2337
|
+
* @param {SettingUpsertArgs} args - Arguments to update or create a Setting.
|
|
2338
|
+
* @example
|
|
2339
|
+
* // Update or create a Setting
|
|
2340
|
+
* const setting = await prisma.setting.upsert({
|
|
2341
|
+
* create: {
|
|
2342
|
+
* // ... data to create a Setting
|
|
2343
|
+
* },
|
|
2344
|
+
* update: {
|
|
2345
|
+
* // ... in case it already exists, update
|
|
2346
|
+
* },
|
|
2347
|
+
* where: {
|
|
2348
|
+
* // ... the filter for the Setting we want to update
|
|
2349
|
+
* }
|
|
2350
|
+
* })
|
|
2351
|
+
*/
|
|
2352
|
+
upsert<T extends SettingUpsertArgs>(args: SelectSubset<T, SettingUpsertArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* Count the number of Settings.
|
|
2357
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2358
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2359
|
+
* @param {SettingCountArgs} args - Arguments to filter Settings to count.
|
|
2360
|
+
* @example
|
|
2361
|
+
* // Count the number of Settings
|
|
2362
|
+
* const count = await prisma.setting.count({
|
|
2363
|
+
* where: {
|
|
2364
|
+
* // ... the filter for the Settings we want to count
|
|
2365
|
+
* }
|
|
2366
|
+
* })
|
|
2367
|
+
**/
|
|
2368
|
+
count<T extends SettingCountArgs>(
|
|
2369
|
+
args?: Subset<T, SettingCountArgs>,
|
|
2370
|
+
): Prisma.PrismaPromise<
|
|
2371
|
+
T extends $Utils.Record<'select', any>
|
|
2372
|
+
? T['select'] extends true
|
|
2373
|
+
? number
|
|
2374
|
+
: GetScalarType<T['select'], SettingCountAggregateOutputType>
|
|
2375
|
+
: number
|
|
2376
|
+
>
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* Allows you to perform aggregations operations on a Setting.
|
|
2380
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2381
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2382
|
+
* @param {SettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
2383
|
+
* @example
|
|
2384
|
+
* // Ordered by age ascending
|
|
2385
|
+
* // Where email contains prisma.io
|
|
2386
|
+
* // Limited to the 10 users
|
|
2387
|
+
* const aggregations = await prisma.user.aggregate({
|
|
2388
|
+
* _avg: {
|
|
2389
|
+
* age: true,
|
|
2390
|
+
* },
|
|
2391
|
+
* where: {
|
|
2392
|
+
* email: {
|
|
2393
|
+
* contains: "prisma.io",
|
|
2394
|
+
* },
|
|
2395
|
+
* },
|
|
2396
|
+
* orderBy: {
|
|
2397
|
+
* age: "asc",
|
|
2398
|
+
* },
|
|
2399
|
+
* take: 10,
|
|
2400
|
+
* })
|
|
2401
|
+
**/
|
|
2402
|
+
aggregate<T extends SettingAggregateArgs>(args: Subset<T, SettingAggregateArgs>): Prisma.PrismaPromise<GetSettingAggregateType<T>>
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Group by Setting.
|
|
2406
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2407
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2408
|
+
* @param {SettingGroupByArgs} args - Group by arguments.
|
|
2409
|
+
* @example
|
|
2410
|
+
* // Group by city, order by createdAt, get count
|
|
2411
|
+
* const result = await prisma.user.groupBy({
|
|
2412
|
+
* by: ['city', 'createdAt'],
|
|
2413
|
+
* orderBy: {
|
|
2414
|
+
* createdAt: true
|
|
2415
|
+
* },
|
|
2416
|
+
* _count: {
|
|
2417
|
+
* _all: true
|
|
2418
|
+
* },
|
|
2419
|
+
* })
|
|
2420
|
+
*
|
|
2421
|
+
**/
|
|
2422
|
+
groupBy<
|
|
2423
|
+
T extends SettingGroupByArgs,
|
|
2424
|
+
HasSelectOrTake extends Or<
|
|
2425
|
+
Extends<'skip', Keys<T>>,
|
|
2426
|
+
Extends<'take', Keys<T>>
|
|
2427
|
+
>,
|
|
2428
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
2429
|
+
? { orderBy: SettingGroupByArgs['orderBy'] }
|
|
2430
|
+
: { orderBy?: SettingGroupByArgs['orderBy'] },
|
|
2431
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
2432
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
2433
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
2434
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
2435
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
2436
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
2437
|
+
InputErrors extends ByEmpty extends True
|
|
2438
|
+
? `Error: "by" must not be empty.`
|
|
2439
|
+
: HavingValid extends False
|
|
2440
|
+
? {
|
|
2441
|
+
[P in HavingFields]: P extends ByFields
|
|
2442
|
+
? never
|
|
2443
|
+
: P extends string
|
|
2444
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
2445
|
+
: [
|
|
2446
|
+
Error,
|
|
2447
|
+
'Field ',
|
|
2448
|
+
P,
|
|
2449
|
+
` in "having" needs to be provided in "by"`,
|
|
2450
|
+
]
|
|
2451
|
+
}[HavingFields]
|
|
2452
|
+
: 'take' extends Keys<T>
|
|
2453
|
+
? 'orderBy' extends Keys<T>
|
|
2454
|
+
? ByValid extends True
|
|
2455
|
+
? {}
|
|
2456
|
+
: {
|
|
2457
|
+
[P in OrderFields]: P extends ByFields
|
|
2458
|
+
? never
|
|
2459
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
2460
|
+
}[OrderFields]
|
|
2461
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
2462
|
+
: 'skip' extends Keys<T>
|
|
2463
|
+
? 'orderBy' extends Keys<T>
|
|
2464
|
+
? ByValid extends True
|
|
2465
|
+
? {}
|
|
2466
|
+
: {
|
|
2467
|
+
[P in OrderFields]: P extends ByFields
|
|
2468
|
+
? never
|
|
2469
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
2470
|
+
}[OrderFields]
|
|
2471
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
2472
|
+
: ByValid extends True
|
|
2473
|
+
? {}
|
|
2474
|
+
: {
|
|
2475
|
+
[P in OrderFields]: P extends ByFields
|
|
2476
|
+
? never
|
|
2477
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
2478
|
+
}[OrderFields]
|
|
2479
|
+
>(args: SubsetIntersection<T, SettingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSettingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
2480
|
+
/**
|
|
2481
|
+
* Fields of the Setting model
|
|
2482
|
+
*/
|
|
2483
|
+
readonly fields: SettingFieldRefs;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* The delegate class that acts as a "Promise-like" for Setting.
|
|
2488
|
+
* Why is this prefixed with `Prisma__`?
|
|
2489
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
2490
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
2491
|
+
*/
|
|
2492
|
+
export interface Prisma__SettingClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
2493
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
2494
|
+
/**
|
|
2495
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
2496
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
2497
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2498
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
2499
|
+
*/
|
|
2500
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
2501
|
+
/**
|
|
2502
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
2503
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2504
|
+
* @returns A Promise for the completion of the callback.
|
|
2505
|
+
*/
|
|
2506
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
2507
|
+
/**
|
|
2508
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
2509
|
+
* resolved value cannot be modified from the callback.
|
|
2510
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
2511
|
+
* @returns A Promise for the completion of the callback.
|
|
2512
|
+
*/
|
|
2513
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Fields of the Setting model
|
|
2521
|
+
*/
|
|
2522
|
+
interface SettingFieldRefs {
|
|
2523
|
+
readonly key: FieldRef<"Setting", 'String'>
|
|
2524
|
+
readonly value: FieldRef<"Setting", 'String'>
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
// Custom InputTypes
|
|
2529
|
+
/**
|
|
2530
|
+
* Setting findUnique
|
|
2531
|
+
*/
|
|
2532
|
+
export type SettingFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2533
|
+
/**
|
|
2534
|
+
* Select specific fields to fetch from the Setting
|
|
2535
|
+
*/
|
|
2536
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2537
|
+
/**
|
|
2538
|
+
* Omit specific fields from the Setting
|
|
2539
|
+
*/
|
|
2540
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2541
|
+
/**
|
|
2542
|
+
* Filter, which Setting to fetch.
|
|
2543
|
+
*/
|
|
2544
|
+
where: SettingWhereUniqueInput
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* Setting findUniqueOrThrow
|
|
2549
|
+
*/
|
|
2550
|
+
export type SettingFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2551
|
+
/**
|
|
2552
|
+
* Select specific fields to fetch from the Setting
|
|
2553
|
+
*/
|
|
2554
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2555
|
+
/**
|
|
2556
|
+
* Omit specific fields from the Setting
|
|
2557
|
+
*/
|
|
2558
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2559
|
+
/**
|
|
2560
|
+
* Filter, which Setting to fetch.
|
|
2561
|
+
*/
|
|
2562
|
+
where: SettingWhereUniqueInput
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* Setting findFirst
|
|
2567
|
+
*/
|
|
2568
|
+
export type SettingFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2569
|
+
/**
|
|
2570
|
+
* Select specific fields to fetch from the Setting
|
|
2571
|
+
*/
|
|
2572
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2573
|
+
/**
|
|
2574
|
+
* Omit specific fields from the Setting
|
|
2575
|
+
*/
|
|
2576
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2577
|
+
/**
|
|
2578
|
+
* Filter, which Setting to fetch.
|
|
2579
|
+
*/
|
|
2580
|
+
where?: SettingWhereInput
|
|
2581
|
+
/**
|
|
2582
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2583
|
+
*
|
|
2584
|
+
* Determine the order of Settings to fetch.
|
|
2585
|
+
*/
|
|
2586
|
+
orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[]
|
|
2587
|
+
/**
|
|
2588
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2589
|
+
*
|
|
2590
|
+
* Sets the position for searching for Settings.
|
|
2591
|
+
*/
|
|
2592
|
+
cursor?: SettingWhereUniqueInput
|
|
2593
|
+
/**
|
|
2594
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2595
|
+
*
|
|
2596
|
+
* Take `±n` Settings from the position of the cursor.
|
|
2597
|
+
*/
|
|
2598
|
+
take?: number
|
|
2599
|
+
/**
|
|
2600
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2601
|
+
*
|
|
2602
|
+
* Skip the first `n` Settings.
|
|
2603
|
+
*/
|
|
2604
|
+
skip?: number
|
|
2605
|
+
/**
|
|
2606
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2607
|
+
*
|
|
2608
|
+
* Filter by unique combinations of Settings.
|
|
2609
|
+
*/
|
|
2610
|
+
distinct?: SettingScalarFieldEnum | SettingScalarFieldEnum[]
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* Setting findFirstOrThrow
|
|
2615
|
+
*/
|
|
2616
|
+
export type SettingFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2617
|
+
/**
|
|
2618
|
+
* Select specific fields to fetch from the Setting
|
|
2619
|
+
*/
|
|
2620
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2621
|
+
/**
|
|
2622
|
+
* Omit specific fields from the Setting
|
|
2623
|
+
*/
|
|
2624
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2625
|
+
/**
|
|
2626
|
+
* Filter, which Setting to fetch.
|
|
2627
|
+
*/
|
|
2628
|
+
where?: SettingWhereInput
|
|
2629
|
+
/**
|
|
2630
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2631
|
+
*
|
|
2632
|
+
* Determine the order of Settings to fetch.
|
|
2633
|
+
*/
|
|
2634
|
+
orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[]
|
|
2635
|
+
/**
|
|
2636
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2637
|
+
*
|
|
2638
|
+
* Sets the position for searching for Settings.
|
|
2639
|
+
*/
|
|
2640
|
+
cursor?: SettingWhereUniqueInput
|
|
2641
|
+
/**
|
|
2642
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2643
|
+
*
|
|
2644
|
+
* Take `±n` Settings from the position of the cursor.
|
|
2645
|
+
*/
|
|
2646
|
+
take?: number
|
|
2647
|
+
/**
|
|
2648
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2649
|
+
*
|
|
2650
|
+
* Skip the first `n` Settings.
|
|
2651
|
+
*/
|
|
2652
|
+
skip?: number
|
|
2653
|
+
/**
|
|
2654
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2655
|
+
*
|
|
2656
|
+
* Filter by unique combinations of Settings.
|
|
2657
|
+
*/
|
|
2658
|
+
distinct?: SettingScalarFieldEnum | SettingScalarFieldEnum[]
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* Setting findMany
|
|
2663
|
+
*/
|
|
2664
|
+
export type SettingFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2665
|
+
/**
|
|
2666
|
+
* Select specific fields to fetch from the Setting
|
|
2667
|
+
*/
|
|
2668
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2669
|
+
/**
|
|
2670
|
+
* Omit specific fields from the Setting
|
|
2671
|
+
*/
|
|
2672
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2673
|
+
/**
|
|
2674
|
+
* Filter, which Settings to fetch.
|
|
2675
|
+
*/
|
|
2676
|
+
where?: SettingWhereInput
|
|
2677
|
+
/**
|
|
2678
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2679
|
+
*
|
|
2680
|
+
* Determine the order of Settings to fetch.
|
|
2681
|
+
*/
|
|
2682
|
+
orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[]
|
|
2683
|
+
/**
|
|
2684
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2685
|
+
*
|
|
2686
|
+
* Sets the position for listing Settings.
|
|
2687
|
+
*/
|
|
2688
|
+
cursor?: SettingWhereUniqueInput
|
|
2689
|
+
/**
|
|
2690
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2691
|
+
*
|
|
2692
|
+
* Take `±n` Settings from the position of the cursor.
|
|
2693
|
+
*/
|
|
2694
|
+
take?: number
|
|
2695
|
+
/**
|
|
2696
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2697
|
+
*
|
|
2698
|
+
* Skip the first `n` Settings.
|
|
2699
|
+
*/
|
|
2700
|
+
skip?: number
|
|
2701
|
+
distinct?: SettingScalarFieldEnum | SettingScalarFieldEnum[]
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Setting create
|
|
2706
|
+
*/
|
|
2707
|
+
export type SettingCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2708
|
+
/**
|
|
2709
|
+
* Select specific fields to fetch from the Setting
|
|
2710
|
+
*/
|
|
2711
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2712
|
+
/**
|
|
2713
|
+
* Omit specific fields from the Setting
|
|
2714
|
+
*/
|
|
2715
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2716
|
+
/**
|
|
2717
|
+
* The data needed to create a Setting.
|
|
2718
|
+
*/
|
|
2719
|
+
data: XOR<SettingCreateInput, SettingUncheckedCreateInput>
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
/**
|
|
2723
|
+
* Setting createMany
|
|
2724
|
+
*/
|
|
2725
|
+
export type SettingCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2726
|
+
/**
|
|
2727
|
+
* The data used to create many Settings.
|
|
2728
|
+
*/
|
|
2729
|
+
data: SettingCreateManyInput | SettingCreateManyInput[]
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* Setting createManyAndReturn
|
|
2734
|
+
*/
|
|
2735
|
+
export type SettingCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2736
|
+
/**
|
|
2737
|
+
* Select specific fields to fetch from the Setting
|
|
2738
|
+
*/
|
|
2739
|
+
select?: SettingSelectCreateManyAndReturn<ExtArgs> | null
|
|
2740
|
+
/**
|
|
2741
|
+
* Omit specific fields from the Setting
|
|
2742
|
+
*/
|
|
2743
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2744
|
+
/**
|
|
2745
|
+
* The data used to create many Settings.
|
|
2746
|
+
*/
|
|
2747
|
+
data: SettingCreateManyInput | SettingCreateManyInput[]
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
/**
|
|
2751
|
+
* Setting update
|
|
2752
|
+
*/
|
|
2753
|
+
export type SettingUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2754
|
+
/**
|
|
2755
|
+
* Select specific fields to fetch from the Setting
|
|
2756
|
+
*/
|
|
2757
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2758
|
+
/**
|
|
2759
|
+
* Omit specific fields from the Setting
|
|
2760
|
+
*/
|
|
2761
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2762
|
+
/**
|
|
2763
|
+
* The data needed to update a Setting.
|
|
2764
|
+
*/
|
|
2765
|
+
data: XOR<SettingUpdateInput, SettingUncheckedUpdateInput>
|
|
2766
|
+
/**
|
|
2767
|
+
* Choose, which Setting to update.
|
|
2768
|
+
*/
|
|
2769
|
+
where: SettingWhereUniqueInput
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
/**
|
|
2773
|
+
* Setting updateMany
|
|
2774
|
+
*/
|
|
2775
|
+
export type SettingUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2776
|
+
/**
|
|
2777
|
+
* The data used to update Settings.
|
|
2778
|
+
*/
|
|
2779
|
+
data: XOR<SettingUpdateManyMutationInput, SettingUncheckedUpdateManyInput>
|
|
2780
|
+
/**
|
|
2781
|
+
* Filter which Settings to update
|
|
2782
|
+
*/
|
|
2783
|
+
where?: SettingWhereInput
|
|
2784
|
+
/**
|
|
2785
|
+
* Limit how many Settings to update.
|
|
2786
|
+
*/
|
|
2787
|
+
limit?: number
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* Setting updateManyAndReturn
|
|
2792
|
+
*/
|
|
2793
|
+
export type SettingUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2794
|
+
/**
|
|
2795
|
+
* Select specific fields to fetch from the Setting
|
|
2796
|
+
*/
|
|
2797
|
+
select?: SettingSelectUpdateManyAndReturn<ExtArgs> | null
|
|
2798
|
+
/**
|
|
2799
|
+
* Omit specific fields from the Setting
|
|
2800
|
+
*/
|
|
2801
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2802
|
+
/**
|
|
2803
|
+
* The data used to update Settings.
|
|
2804
|
+
*/
|
|
2805
|
+
data: XOR<SettingUpdateManyMutationInput, SettingUncheckedUpdateManyInput>
|
|
2806
|
+
/**
|
|
2807
|
+
* Filter which Settings to update
|
|
2808
|
+
*/
|
|
2809
|
+
where?: SettingWhereInput
|
|
2810
|
+
/**
|
|
2811
|
+
* Limit how many Settings to update.
|
|
2812
|
+
*/
|
|
2813
|
+
limit?: number
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Setting upsert
|
|
2818
|
+
*/
|
|
2819
|
+
export type SettingUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2820
|
+
/**
|
|
2821
|
+
* Select specific fields to fetch from the Setting
|
|
2822
|
+
*/
|
|
2823
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2824
|
+
/**
|
|
2825
|
+
* Omit specific fields from the Setting
|
|
2826
|
+
*/
|
|
2827
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2828
|
+
/**
|
|
2829
|
+
* The filter to search for the Setting to update in case it exists.
|
|
2830
|
+
*/
|
|
2831
|
+
where: SettingWhereUniqueInput
|
|
2832
|
+
/**
|
|
2833
|
+
* In case the Setting found by the `where` argument doesn't exist, create a new Setting with this data.
|
|
2834
|
+
*/
|
|
2835
|
+
create: XOR<SettingCreateInput, SettingUncheckedCreateInput>
|
|
2836
|
+
/**
|
|
2837
|
+
* In case the Setting was found with the provided `where` argument, update it with this data.
|
|
2838
|
+
*/
|
|
2839
|
+
update: XOR<SettingUpdateInput, SettingUncheckedUpdateInput>
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* Setting delete
|
|
2844
|
+
*/
|
|
2845
|
+
export type SettingDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2846
|
+
/**
|
|
2847
|
+
* Select specific fields to fetch from the Setting
|
|
2848
|
+
*/
|
|
2849
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2850
|
+
/**
|
|
2851
|
+
* Omit specific fields from the Setting
|
|
2852
|
+
*/
|
|
2853
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2854
|
+
/**
|
|
2855
|
+
* Filter which Setting to delete.
|
|
2856
|
+
*/
|
|
2857
|
+
where: SettingWhereUniqueInput
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* Setting deleteMany
|
|
2862
|
+
*/
|
|
2863
|
+
export type SettingDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2864
|
+
/**
|
|
2865
|
+
* Filter which Settings to delete
|
|
2866
|
+
*/
|
|
2867
|
+
where?: SettingWhereInput
|
|
2868
|
+
/**
|
|
2869
|
+
* Limit how many Settings to delete.
|
|
2870
|
+
*/
|
|
2871
|
+
limit?: number
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
/**
|
|
2875
|
+
* Setting without action
|
|
2876
|
+
*/
|
|
2877
|
+
export type SettingDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2878
|
+
/**
|
|
2879
|
+
* Select specific fields to fetch from the Setting
|
|
2880
|
+
*/
|
|
2881
|
+
select?: SettingSelect<ExtArgs> | null
|
|
2882
|
+
/**
|
|
2883
|
+
* Omit specific fields from the Setting
|
|
2884
|
+
*/
|
|
2885
|
+
omit?: SettingOmit<ExtArgs> | null
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* Enums
|
|
2891
|
+
*/
|
|
2892
|
+
|
|
2893
|
+
export const TransactionIsolationLevel: {
|
|
2894
|
+
Serializable: 'Serializable'
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
export const SessionScalarFieldEnum: {
|
|
2901
|
+
id: 'id',
|
|
2902
|
+
token: 'token',
|
|
2903
|
+
createdAt: 'createdAt',
|
|
2904
|
+
expiresAt: 'expiresAt'
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
export const SettingScalarFieldEnum: {
|
|
2911
|
+
key: 'key',
|
|
2912
|
+
value: 'value'
|
|
2913
|
+
};
|
|
2914
|
+
|
|
2915
|
+
export type SettingScalarFieldEnum = (typeof SettingScalarFieldEnum)[keyof typeof SettingScalarFieldEnum]
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
export const SortOrder: {
|
|
2919
|
+
asc: 'asc',
|
|
2920
|
+
desc: 'desc'
|
|
2921
|
+
};
|
|
2922
|
+
|
|
2923
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* Field references
|
|
2928
|
+
*/
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* Reference to a field of type 'String'
|
|
2933
|
+
*/
|
|
2934
|
+
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
/**
|
|
2939
|
+
* Reference to a field of type 'DateTime'
|
|
2940
|
+
*/
|
|
2941
|
+
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
/**
|
|
2946
|
+
* Reference to a field of type 'Int'
|
|
2947
|
+
*/
|
|
2948
|
+
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* Deep Input Types
|
|
2952
|
+
*/
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
export type SessionWhereInput = {
|
|
2956
|
+
AND?: SessionWhereInput | SessionWhereInput[]
|
|
2957
|
+
OR?: SessionWhereInput[]
|
|
2958
|
+
NOT?: SessionWhereInput | SessionWhereInput[]
|
|
2959
|
+
id?: StringFilter<"Session"> | string
|
|
2960
|
+
token?: StringFilter<"Session"> | string
|
|
2961
|
+
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
2962
|
+
expiresAt?: DateTimeFilter<"Session"> | Date | string
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
export type SessionOrderByWithRelationInput = {
|
|
2966
|
+
id?: SortOrder
|
|
2967
|
+
token?: SortOrder
|
|
2968
|
+
createdAt?: SortOrder
|
|
2969
|
+
expiresAt?: SortOrder
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
export type SessionWhereUniqueInput = Prisma.AtLeast<{
|
|
2973
|
+
id?: string
|
|
2974
|
+
token?: string
|
|
2975
|
+
AND?: SessionWhereInput | SessionWhereInput[]
|
|
2976
|
+
OR?: SessionWhereInput[]
|
|
2977
|
+
NOT?: SessionWhereInput | SessionWhereInput[]
|
|
2978
|
+
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
2979
|
+
expiresAt?: DateTimeFilter<"Session"> | Date | string
|
|
2980
|
+
}, "id" | "token">
|
|
2981
|
+
|
|
2982
|
+
export type SessionOrderByWithAggregationInput = {
|
|
2983
|
+
id?: SortOrder
|
|
2984
|
+
token?: SortOrder
|
|
2985
|
+
createdAt?: SortOrder
|
|
2986
|
+
expiresAt?: SortOrder
|
|
2987
|
+
_count?: SessionCountOrderByAggregateInput
|
|
2988
|
+
_max?: SessionMaxOrderByAggregateInput
|
|
2989
|
+
_min?: SessionMinOrderByAggregateInput
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
export type SessionScalarWhereWithAggregatesInput = {
|
|
2993
|
+
AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
|
|
2994
|
+
OR?: SessionScalarWhereWithAggregatesInput[]
|
|
2995
|
+
NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
|
|
2996
|
+
id?: StringWithAggregatesFilter<"Session"> | string
|
|
2997
|
+
token?: StringWithAggregatesFilter<"Session"> | string
|
|
2998
|
+
createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
2999
|
+
expiresAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
export type SettingWhereInput = {
|
|
3003
|
+
AND?: SettingWhereInput | SettingWhereInput[]
|
|
3004
|
+
OR?: SettingWhereInput[]
|
|
3005
|
+
NOT?: SettingWhereInput | SettingWhereInput[]
|
|
3006
|
+
key?: StringFilter<"Setting"> | string
|
|
3007
|
+
value?: StringFilter<"Setting"> | string
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
export type SettingOrderByWithRelationInput = {
|
|
3011
|
+
key?: SortOrder
|
|
3012
|
+
value?: SortOrder
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
export type SettingWhereUniqueInput = Prisma.AtLeast<{
|
|
3016
|
+
key?: string
|
|
3017
|
+
AND?: SettingWhereInput | SettingWhereInput[]
|
|
3018
|
+
OR?: SettingWhereInput[]
|
|
3019
|
+
NOT?: SettingWhereInput | SettingWhereInput[]
|
|
3020
|
+
value?: StringFilter<"Setting"> | string
|
|
3021
|
+
}, "key">
|
|
3022
|
+
|
|
3023
|
+
export type SettingOrderByWithAggregationInput = {
|
|
3024
|
+
key?: SortOrder
|
|
3025
|
+
value?: SortOrder
|
|
3026
|
+
_count?: SettingCountOrderByAggregateInput
|
|
3027
|
+
_max?: SettingMaxOrderByAggregateInput
|
|
3028
|
+
_min?: SettingMinOrderByAggregateInput
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
export type SettingScalarWhereWithAggregatesInput = {
|
|
3032
|
+
AND?: SettingScalarWhereWithAggregatesInput | SettingScalarWhereWithAggregatesInput[]
|
|
3033
|
+
OR?: SettingScalarWhereWithAggregatesInput[]
|
|
3034
|
+
NOT?: SettingScalarWhereWithAggregatesInput | SettingScalarWhereWithAggregatesInput[]
|
|
3035
|
+
key?: StringWithAggregatesFilter<"Setting"> | string
|
|
3036
|
+
value?: StringWithAggregatesFilter<"Setting"> | string
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
export type SessionCreateInput = {
|
|
3040
|
+
id?: string
|
|
3041
|
+
token: string
|
|
3042
|
+
createdAt?: Date | string
|
|
3043
|
+
expiresAt: Date | string
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
export type SessionUncheckedCreateInput = {
|
|
3047
|
+
id?: string
|
|
3048
|
+
token: string
|
|
3049
|
+
createdAt?: Date | string
|
|
3050
|
+
expiresAt: Date | string
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
export type SessionUpdateInput = {
|
|
3054
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
3055
|
+
token?: StringFieldUpdateOperationsInput | string
|
|
3056
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3057
|
+
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
export type SessionUncheckedUpdateInput = {
|
|
3061
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
3062
|
+
token?: StringFieldUpdateOperationsInput | string
|
|
3063
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3064
|
+
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
export type SessionCreateManyInput = {
|
|
3068
|
+
id?: string
|
|
3069
|
+
token: string
|
|
3070
|
+
createdAt?: Date | string
|
|
3071
|
+
expiresAt: Date | string
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
export type SessionUpdateManyMutationInput = {
|
|
3075
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
3076
|
+
token?: StringFieldUpdateOperationsInput | string
|
|
3077
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3078
|
+
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
export type SessionUncheckedUpdateManyInput = {
|
|
3082
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
3083
|
+
token?: StringFieldUpdateOperationsInput | string
|
|
3084
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3085
|
+
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
export type SettingCreateInput = {
|
|
3089
|
+
key: string
|
|
3090
|
+
value: string
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
export type SettingUncheckedCreateInput = {
|
|
3094
|
+
key: string
|
|
3095
|
+
value: string
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
export type SettingUpdateInput = {
|
|
3099
|
+
key?: StringFieldUpdateOperationsInput | string
|
|
3100
|
+
value?: StringFieldUpdateOperationsInput | string
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
export type SettingUncheckedUpdateInput = {
|
|
3104
|
+
key?: StringFieldUpdateOperationsInput | string
|
|
3105
|
+
value?: StringFieldUpdateOperationsInput | string
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
export type SettingCreateManyInput = {
|
|
3109
|
+
key: string
|
|
3110
|
+
value: string
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
export type SettingUpdateManyMutationInput = {
|
|
3114
|
+
key?: StringFieldUpdateOperationsInput | string
|
|
3115
|
+
value?: StringFieldUpdateOperationsInput | string
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
export type SettingUncheckedUpdateManyInput = {
|
|
3119
|
+
key?: StringFieldUpdateOperationsInput | string
|
|
3120
|
+
value?: StringFieldUpdateOperationsInput | string
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
export type StringFilter<$PrismaModel = never> = {
|
|
3124
|
+
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
3125
|
+
in?: string[]
|
|
3126
|
+
notIn?: string[]
|
|
3127
|
+
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
3128
|
+
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
3129
|
+
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
3130
|
+
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
3131
|
+
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
3132
|
+
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3133
|
+
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3134
|
+
not?: NestedStringFilter<$PrismaModel> | string
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
|
3138
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3139
|
+
in?: Date[] | string[]
|
|
3140
|
+
notIn?: Date[] | string[]
|
|
3141
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3142
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3143
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3144
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3145
|
+
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
export type SessionCountOrderByAggregateInput = {
|
|
3149
|
+
id?: SortOrder
|
|
3150
|
+
token?: SortOrder
|
|
3151
|
+
createdAt?: SortOrder
|
|
3152
|
+
expiresAt?: SortOrder
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
export type SessionMaxOrderByAggregateInput = {
|
|
3156
|
+
id?: SortOrder
|
|
3157
|
+
token?: SortOrder
|
|
3158
|
+
createdAt?: SortOrder
|
|
3159
|
+
expiresAt?: SortOrder
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
export type SessionMinOrderByAggregateInput = {
|
|
3163
|
+
id?: SortOrder
|
|
3164
|
+
token?: SortOrder
|
|
3165
|
+
createdAt?: SortOrder
|
|
3166
|
+
expiresAt?: SortOrder
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
3170
|
+
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
3171
|
+
in?: string[]
|
|
3172
|
+
notIn?: string[]
|
|
3173
|
+
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
3174
|
+
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
3175
|
+
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
3176
|
+
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
3177
|
+
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
3178
|
+
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3179
|
+
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3180
|
+
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
3181
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
3182
|
+
_min?: NestedStringFilter<$PrismaModel>
|
|
3183
|
+
_max?: NestedStringFilter<$PrismaModel>
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
3187
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3188
|
+
in?: Date[] | string[]
|
|
3189
|
+
notIn?: Date[] | string[]
|
|
3190
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3191
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3192
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3193
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3194
|
+
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
3195
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
3196
|
+
_min?: NestedDateTimeFilter<$PrismaModel>
|
|
3197
|
+
_max?: NestedDateTimeFilter<$PrismaModel>
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
export type SettingCountOrderByAggregateInput = {
|
|
3201
|
+
key?: SortOrder
|
|
3202
|
+
value?: SortOrder
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
export type SettingMaxOrderByAggregateInput = {
|
|
3206
|
+
key?: SortOrder
|
|
3207
|
+
value?: SortOrder
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3210
|
+
export type SettingMinOrderByAggregateInput = {
|
|
3211
|
+
key?: SortOrder
|
|
3212
|
+
value?: SortOrder
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
export type StringFieldUpdateOperationsInput = {
|
|
3216
|
+
set?: string
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
export type DateTimeFieldUpdateOperationsInput = {
|
|
3220
|
+
set?: Date | string
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
|
3224
|
+
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
3225
|
+
in?: string[]
|
|
3226
|
+
notIn?: string[]
|
|
3227
|
+
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
3228
|
+
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
3229
|
+
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
3230
|
+
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
3231
|
+
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
3232
|
+
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3233
|
+
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3234
|
+
not?: NestedStringFilter<$PrismaModel> | string
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
3238
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3239
|
+
in?: Date[] | string[]
|
|
3240
|
+
notIn?: Date[] | string[]
|
|
3241
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3242
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3243
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3244
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3245
|
+
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
3249
|
+
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
3250
|
+
in?: string[]
|
|
3251
|
+
notIn?: string[]
|
|
3252
|
+
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
3253
|
+
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
3254
|
+
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
3255
|
+
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
3256
|
+
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
3257
|
+
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3258
|
+
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
3259
|
+
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
3260
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
3261
|
+
_min?: NestedStringFilter<$PrismaModel>
|
|
3262
|
+
_max?: NestedStringFilter<$PrismaModel>
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
|
3266
|
+
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
3267
|
+
in?: number[]
|
|
3268
|
+
notIn?: number[]
|
|
3269
|
+
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
3270
|
+
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
3271
|
+
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
3272
|
+
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
3273
|
+
not?: NestedIntFilter<$PrismaModel> | number
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
3277
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3278
|
+
in?: Date[] | string[]
|
|
3279
|
+
notIn?: Date[] | string[]
|
|
3280
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3281
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3282
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3283
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
3284
|
+
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
3285
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
3286
|
+
_min?: NestedDateTimeFilter<$PrismaModel>
|
|
3287
|
+
_max?: NestedDateTimeFilter<$PrismaModel>
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* Batch Payload for updateMany & deleteMany & createMany
|
|
3294
|
+
*/
|
|
3295
|
+
|
|
3296
|
+
export type BatchPayload = {
|
|
3297
|
+
count: number
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* DMMF
|
|
3302
|
+
*/
|
|
3303
|
+
export const dmmf: runtime.BaseDMMF
|
|
3304
|
+
}
|