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