@dismissible/nestjs-postgres-storage 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +309 -0
- package/bin/dismissible-prisma.js +57 -0
- package/package.json +67 -0
- package/prisma/generated/prisma/client.d.ts +26 -0
- package/prisma/generated/prisma/client.js +34 -0
- package/prisma/generated/prisma/client.js.map +1 -0
- package/prisma/generated/prisma/commonInputTypes.d.ts +177 -0
- package/prisma/generated/prisma/commonInputTypes.js +12 -0
- package/prisma/generated/prisma/commonInputTypes.js.map +1 -0
- package/prisma/generated/prisma/enums.d.ts +1 -0
- package/prisma/generated/prisma/enums.js +12 -0
- package/prisma/generated/prisma/enums.js.map +1 -0
- package/prisma/generated/prisma/internal/class.d.ts +126 -0
- package/prisma/generated/prisma/internal/class.js +45 -0
- package/prisma/generated/prisma/internal/class.js.map +1 -0
- package/prisma/generated/prisma/internal/prismaNamespace.d.ts +528 -0
- package/prisma/generated/prisma/internal/prismaNamespace.js +104 -0
- package/prisma/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/prisma/generated/prisma/models/DismissibleItem.d.ts +979 -0
- package/prisma/generated/prisma/models/DismissibleItem.js +3 -0
- package/prisma/generated/prisma/models/DismissibleItem.js.map +1 -0
- package/prisma/generated/prisma/models.d.ts +2 -0
- package/prisma/generated/prisma/models.js +3 -0
- package/prisma/generated/prisma/models.js.map +1 -0
- package/prisma/migrations/20251219094936_init/migration.sql +12 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +23 -0
- package/prisma.config.mjs +33 -0
- package/src/index.d.ts +6 -0
- package/src/index.js +10 -0
- package/src/index.js.map +1 -0
- package/src/postgres-storage.adapter.d.ts +21 -0
- package/src/postgres-storage.adapter.js +81 -0
- package/src/postgres-storage.adapter.js.map +1 -0
- package/src/postgres-storage.config.d.ts +7 -0
- package/src/postgres-storage.config.js +17 -0
- package/src/postgres-storage.config.js.map +1 -0
- package/src/postgres-storage.module.d.ts +12 -0
- package/src/postgres-storage.module.js +72 -0
- package/src/postgres-storage.module.js.map +1 -0
- package/src/prisma-config.d.ts +61 -0
- package/src/prisma-config.js +65 -0
- package/src/prisma-config.js.map +1 -0
- package/src/prisma.service.d.ts +15 -0
- package/src/prisma.service.js +48 -0
- package/src/prisma.service.js.map +1 -0
- package/src/schema-path.d.ts +13 -0
- package/src/schema-path.js +20 -0
- package/src/schema-path.js.map +1 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../models";
|
|
3
|
+
import { type PrismaClient } from "./class";
|
|
4
|
+
export type * from '../models';
|
|
5
|
+
export type DMMF = typeof runtime.DMMF;
|
|
6
|
+
export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
|
|
7
|
+
/**
|
|
8
|
+
* Prisma Errors
|
|
9
|
+
*/
|
|
10
|
+
export declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError;
|
|
11
|
+
export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
|
|
12
|
+
export declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError;
|
|
13
|
+
export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
|
|
14
|
+
export declare const PrismaClientRustPanicError: typeof runtime.PrismaClientRustPanicError;
|
|
15
|
+
export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
|
|
16
|
+
export declare const PrismaClientInitializationError: typeof runtime.PrismaClientInitializationError;
|
|
17
|
+
export type PrismaClientInitializationError = runtime.PrismaClientInitializationError;
|
|
18
|
+
export declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError;
|
|
19
|
+
export type PrismaClientValidationError = runtime.PrismaClientValidationError;
|
|
20
|
+
/**
|
|
21
|
+
* Re-export of sql-template-tag
|
|
22
|
+
*/
|
|
23
|
+
export declare const sql: typeof runtime.sqltag;
|
|
24
|
+
export declare const empty: runtime.Sql;
|
|
25
|
+
export declare const join: typeof runtime.join;
|
|
26
|
+
export declare const raw: typeof runtime.raw;
|
|
27
|
+
export declare const Sql: typeof runtime.Sql;
|
|
28
|
+
export type Sql = runtime.Sql;
|
|
29
|
+
/**
|
|
30
|
+
* Decimal.js
|
|
31
|
+
*/
|
|
32
|
+
export declare const Decimal: typeof runtime.Decimal;
|
|
33
|
+
export type Decimal = runtime.Decimal;
|
|
34
|
+
export type DecimalJsLike = runtime.DecimalJsLike;
|
|
35
|
+
/**
|
|
36
|
+
* Extensions
|
|
37
|
+
*/
|
|
38
|
+
export type Extension = runtime.Types.Extensions.UserArgs;
|
|
39
|
+
export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
|
|
40
|
+
export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
|
|
41
|
+
export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>;
|
|
42
|
+
export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>;
|
|
43
|
+
export type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
|
|
44
|
+
export type PrismaVersion = {
|
|
45
|
+
client: string;
|
|
46
|
+
engine: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Prisma Client JS version: 7.2.0
|
|
50
|
+
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
51
|
+
*/
|
|
52
|
+
export declare const prismaVersion: PrismaVersion;
|
|
53
|
+
/**
|
|
54
|
+
* Utility Types
|
|
55
|
+
*/
|
|
56
|
+
export type Bytes = runtime.Bytes;
|
|
57
|
+
export type JsonObject = runtime.JsonObject;
|
|
58
|
+
export type JsonArray = runtime.JsonArray;
|
|
59
|
+
export type JsonValue = runtime.JsonValue;
|
|
60
|
+
export type InputJsonObject = runtime.InputJsonObject;
|
|
61
|
+
export type InputJsonArray = runtime.InputJsonArray;
|
|
62
|
+
export type InputJsonValue = runtime.InputJsonValue;
|
|
63
|
+
export declare const NullTypes: {
|
|
64
|
+
DbNull: (new (secret: never) => typeof runtime.DbNull);
|
|
65
|
+
JsonNull: (new (secret: never) => typeof runtime.JsonNull);
|
|
66
|
+
AnyNull: (new (secret: never) => typeof runtime.AnyNull);
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
70
|
+
*
|
|
71
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
72
|
+
*/
|
|
73
|
+
export declare const DbNull: runtime.DbNullClass;
|
|
74
|
+
/**
|
|
75
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
76
|
+
*
|
|
77
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
78
|
+
*/
|
|
79
|
+
export declare const JsonNull: runtime.JsonNullClass;
|
|
80
|
+
/**
|
|
81
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
82
|
+
*
|
|
83
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
84
|
+
*/
|
|
85
|
+
export declare const AnyNull: runtime.AnyNullClass;
|
|
86
|
+
type SelectAndInclude = {
|
|
87
|
+
select: any;
|
|
88
|
+
include: any;
|
|
89
|
+
};
|
|
90
|
+
type SelectAndOmit = {
|
|
91
|
+
select: any;
|
|
92
|
+
omit: any;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* From T, pick a set of properties whose keys are in the union K
|
|
96
|
+
*/
|
|
97
|
+
type Prisma__Pick<T, K extends keyof T> = {
|
|
98
|
+
[P in K]: T[P];
|
|
99
|
+
};
|
|
100
|
+
export type Enumerable<T> = T | Array<T>;
|
|
101
|
+
/**
|
|
102
|
+
* Subset
|
|
103
|
+
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
|
|
104
|
+
*/
|
|
105
|
+
export type Subset<T, U> = {
|
|
106
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* SelectSubset
|
|
110
|
+
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
|
111
|
+
* Additionally, it validates, if both select and include are present. If the case, it errors.
|
|
112
|
+
*/
|
|
113
|
+
export type SelectSubset<T, U> = {
|
|
114
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
115
|
+
} & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
|
|
116
|
+
/**
|
|
117
|
+
* Subset + Intersection
|
|
118
|
+
* @desc From `T` pick properties that exist in `U` and intersect `K`
|
|
119
|
+
*/
|
|
120
|
+
export type SubsetIntersection<T, U, K> = {
|
|
121
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
122
|
+
} & K;
|
|
123
|
+
type Without<T, U> = {
|
|
124
|
+
[P in Exclude<keyof T, keyof U>]?: never;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* XOR is needed to have a real mutually exclusive union type
|
|
128
|
+
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
129
|
+
*/
|
|
130
|
+
export type XOR<T, U> = T extends object ? U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : U : T;
|
|
131
|
+
/**
|
|
132
|
+
* Is T a Record?
|
|
133
|
+
*/
|
|
134
|
+
type IsObject<T extends any> = T extends Array<any> ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False;
|
|
135
|
+
/**
|
|
136
|
+
* If it's T[], return T
|
|
137
|
+
*/
|
|
138
|
+
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
|
|
139
|
+
/**
|
|
140
|
+
* From ts-toolbelt
|
|
141
|
+
*/
|
|
142
|
+
type __Either<O extends object, K extends Key> = Omit<O, K> & {
|
|
143
|
+
[P in K]: Prisma__Pick<O, P & keyof O>;
|
|
144
|
+
}[K];
|
|
145
|
+
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
|
|
146
|
+
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
|
|
147
|
+
type _Either<O extends object, K extends Key, strict extends Boolean> = {
|
|
148
|
+
1: EitherStrict<O, K>;
|
|
149
|
+
0: EitherLoose<O, K>;
|
|
150
|
+
}[strict];
|
|
151
|
+
export type Either<O extends object, K extends Key, strict extends Boolean = 1> = O extends unknown ? _Either<O, K, strict> : never;
|
|
152
|
+
export type Union = any;
|
|
153
|
+
export type PatchUndefined<O extends object, O1 extends object> = {
|
|
154
|
+
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
|
|
155
|
+
} & {};
|
|
156
|
+
/** Helper Types for "Merge" **/
|
|
157
|
+
export type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
158
|
+
export type Overwrite<O extends object, O1 extends object> = {
|
|
159
|
+
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
160
|
+
} & {};
|
|
161
|
+
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
162
|
+
[K in keyof U]-?: At<U, K>;
|
|
163
|
+
}>>;
|
|
164
|
+
type Key = string | number | symbol;
|
|
165
|
+
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
166
|
+
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
167
|
+
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
168
|
+
1: AtStrict<O, K>;
|
|
169
|
+
0: AtLoose<O, K>;
|
|
170
|
+
}[strict];
|
|
171
|
+
export type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
172
|
+
[K in keyof A]: A[K];
|
|
173
|
+
} & {};
|
|
174
|
+
export type OptionalFlat<O> = {
|
|
175
|
+
[K in keyof O]?: O[K];
|
|
176
|
+
} & {};
|
|
177
|
+
type _Record<K extends keyof any, T> = {
|
|
178
|
+
[P in K]: T;
|
|
179
|
+
};
|
|
180
|
+
type NoExpand<T> = T extends unknown ? T : never;
|
|
181
|
+
export type AtLeast<O extends object, K extends string> = NoExpand<O extends unknown ? (K extends keyof O ? {
|
|
182
|
+
[P in K]: O[P];
|
|
183
|
+
} & O : O) | {
|
|
184
|
+
[P in keyof O as P extends K ? P : never]-?: O[P];
|
|
185
|
+
} & O : never>;
|
|
186
|
+
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
187
|
+
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
188
|
+
/** End Helper Types for "Merge" **/
|
|
189
|
+
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
190
|
+
export type Boolean = True | False;
|
|
191
|
+
export type True = 1;
|
|
192
|
+
export type False = 0;
|
|
193
|
+
export type Not<B extends Boolean> = {
|
|
194
|
+
0: 1;
|
|
195
|
+
1: 0;
|
|
196
|
+
}[B];
|
|
197
|
+
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0;
|
|
198
|
+
export type Has<U extends Union, U1 extends Union> = Not<Extends<Exclude<U1, U>, U1>>;
|
|
199
|
+
export type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
200
|
+
0: {
|
|
201
|
+
0: 0;
|
|
202
|
+
1: 1;
|
|
203
|
+
};
|
|
204
|
+
1: {
|
|
205
|
+
0: 1;
|
|
206
|
+
1: 1;
|
|
207
|
+
};
|
|
208
|
+
}[B1][B2];
|
|
209
|
+
export type Keys<U extends Union> = U extends unknown ? keyof U : never;
|
|
210
|
+
export type GetScalarType<T, O> = O extends object ? {
|
|
211
|
+
[P in keyof T]: P extends keyof O ? O[P] : never;
|
|
212
|
+
} : never;
|
|
213
|
+
type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> = IsObject<T> extends True ? U : T;
|
|
214
|
+
export type GetHavingFields<T> = {
|
|
215
|
+
[K in keyof T]: Or<Or<Extends<'OR', K>, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? T[K] extends infer TK ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> : never : {} extends FieldPaths<T[K]> ? never : K;
|
|
216
|
+
}[keyof T];
|
|
217
|
+
/**
|
|
218
|
+
* Convert tuple to union
|
|
219
|
+
*/
|
|
220
|
+
type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
|
|
221
|
+
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
|
|
222
|
+
export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
|
|
223
|
+
/**
|
|
224
|
+
* Like `Pick`, but additionally can also accept an array of keys
|
|
225
|
+
*/
|
|
226
|
+
export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
|
|
227
|
+
/**
|
|
228
|
+
* Exclude all keys with underscores
|
|
229
|
+
*/
|
|
230
|
+
export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
|
|
231
|
+
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
|
|
232
|
+
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>;
|
|
233
|
+
export declare const ModelName: {
|
|
234
|
+
readonly DismissibleItem: "DismissibleItem";
|
|
235
|
+
};
|
|
236
|
+
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
237
|
+
export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
|
|
238
|
+
extArgs: runtime.Types.Extensions.InternalArgs;
|
|
239
|
+
}, runtime.Types.Utils.Record<string, any>> {
|
|
240
|
+
returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
|
|
241
|
+
}
|
|
242
|
+
export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
|
|
243
|
+
globalOmitOptions: {
|
|
244
|
+
omit: GlobalOmitOptions;
|
|
245
|
+
};
|
|
246
|
+
meta: {
|
|
247
|
+
modelProps: "dismissibleItem";
|
|
248
|
+
txIsolationLevel: TransactionIsolationLevel;
|
|
249
|
+
};
|
|
250
|
+
model: {
|
|
251
|
+
DismissibleItem: {
|
|
252
|
+
payload: Prisma.$DismissibleItemPayload<ExtArgs>;
|
|
253
|
+
fields: Prisma.DismissibleItemFieldRefs;
|
|
254
|
+
operations: {
|
|
255
|
+
findUnique: {
|
|
256
|
+
args: Prisma.DismissibleItemFindUniqueArgs<ExtArgs>;
|
|
257
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload> | null;
|
|
258
|
+
};
|
|
259
|
+
findUniqueOrThrow: {
|
|
260
|
+
args: Prisma.DismissibleItemFindUniqueOrThrowArgs<ExtArgs>;
|
|
261
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>;
|
|
262
|
+
};
|
|
263
|
+
findFirst: {
|
|
264
|
+
args: Prisma.DismissibleItemFindFirstArgs<ExtArgs>;
|
|
265
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload> | null;
|
|
266
|
+
};
|
|
267
|
+
findFirstOrThrow: {
|
|
268
|
+
args: Prisma.DismissibleItemFindFirstOrThrowArgs<ExtArgs>;
|
|
269
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>;
|
|
270
|
+
};
|
|
271
|
+
findMany: {
|
|
272
|
+
args: Prisma.DismissibleItemFindManyArgs<ExtArgs>;
|
|
273
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>[];
|
|
274
|
+
};
|
|
275
|
+
create: {
|
|
276
|
+
args: Prisma.DismissibleItemCreateArgs<ExtArgs>;
|
|
277
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>;
|
|
278
|
+
};
|
|
279
|
+
createMany: {
|
|
280
|
+
args: Prisma.DismissibleItemCreateManyArgs<ExtArgs>;
|
|
281
|
+
result: BatchPayload;
|
|
282
|
+
};
|
|
283
|
+
createManyAndReturn: {
|
|
284
|
+
args: Prisma.DismissibleItemCreateManyAndReturnArgs<ExtArgs>;
|
|
285
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>[];
|
|
286
|
+
};
|
|
287
|
+
delete: {
|
|
288
|
+
args: Prisma.DismissibleItemDeleteArgs<ExtArgs>;
|
|
289
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>;
|
|
290
|
+
};
|
|
291
|
+
update: {
|
|
292
|
+
args: Prisma.DismissibleItemUpdateArgs<ExtArgs>;
|
|
293
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>;
|
|
294
|
+
};
|
|
295
|
+
deleteMany: {
|
|
296
|
+
args: Prisma.DismissibleItemDeleteManyArgs<ExtArgs>;
|
|
297
|
+
result: BatchPayload;
|
|
298
|
+
};
|
|
299
|
+
updateMany: {
|
|
300
|
+
args: Prisma.DismissibleItemUpdateManyArgs<ExtArgs>;
|
|
301
|
+
result: BatchPayload;
|
|
302
|
+
};
|
|
303
|
+
updateManyAndReturn: {
|
|
304
|
+
args: Prisma.DismissibleItemUpdateManyAndReturnArgs<ExtArgs>;
|
|
305
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>[];
|
|
306
|
+
};
|
|
307
|
+
upsert: {
|
|
308
|
+
args: Prisma.DismissibleItemUpsertArgs<ExtArgs>;
|
|
309
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$DismissibleItemPayload>;
|
|
310
|
+
};
|
|
311
|
+
aggregate: {
|
|
312
|
+
args: Prisma.DismissibleItemAggregateArgs<ExtArgs>;
|
|
313
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateDismissibleItem>;
|
|
314
|
+
};
|
|
315
|
+
groupBy: {
|
|
316
|
+
args: Prisma.DismissibleItemGroupByArgs<ExtArgs>;
|
|
317
|
+
result: runtime.Types.Utils.Optional<Prisma.DismissibleItemGroupByOutputType>[];
|
|
318
|
+
};
|
|
319
|
+
count: {
|
|
320
|
+
args: Prisma.DismissibleItemCountArgs<ExtArgs>;
|
|
321
|
+
result: runtime.Types.Utils.Optional<Prisma.DismissibleItemCountAggregateOutputType> | number;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
} & {
|
|
327
|
+
other: {
|
|
328
|
+
payload: any;
|
|
329
|
+
operations: {
|
|
330
|
+
$executeRaw: {
|
|
331
|
+
args: [query: TemplateStringsArray | Sql, ...values: any[]];
|
|
332
|
+
result: any;
|
|
333
|
+
};
|
|
334
|
+
$executeRawUnsafe: {
|
|
335
|
+
args: [query: string, ...values: any[]];
|
|
336
|
+
result: any;
|
|
337
|
+
};
|
|
338
|
+
$queryRaw: {
|
|
339
|
+
args: [query: TemplateStringsArray | Sql, ...values: any[]];
|
|
340
|
+
result: any;
|
|
341
|
+
};
|
|
342
|
+
$queryRawUnsafe: {
|
|
343
|
+
args: [query: string, ...values: any[]];
|
|
344
|
+
result: any;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Enums
|
|
351
|
+
*/
|
|
352
|
+
export declare const TransactionIsolationLevel: {
|
|
353
|
+
readonly ReadUncommitted: "ReadUncommitted";
|
|
354
|
+
readonly ReadCommitted: "ReadCommitted";
|
|
355
|
+
readonly RepeatableRead: "RepeatableRead";
|
|
356
|
+
readonly Serializable: "Serializable";
|
|
357
|
+
};
|
|
358
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
|
|
359
|
+
export declare const DismissibleItemScalarFieldEnum: {
|
|
360
|
+
readonly id: "id";
|
|
361
|
+
readonly userId: "userId";
|
|
362
|
+
readonly createdAt: "createdAt";
|
|
363
|
+
readonly dismissedAt: "dismissedAt";
|
|
364
|
+
};
|
|
365
|
+
export type DismissibleItemScalarFieldEnum = (typeof DismissibleItemScalarFieldEnum)[keyof typeof DismissibleItemScalarFieldEnum];
|
|
366
|
+
export declare const SortOrder: {
|
|
367
|
+
readonly asc: "asc";
|
|
368
|
+
readonly desc: "desc";
|
|
369
|
+
};
|
|
370
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
371
|
+
export declare const QueryMode: {
|
|
372
|
+
readonly default: "default";
|
|
373
|
+
readonly insensitive: "insensitive";
|
|
374
|
+
};
|
|
375
|
+
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
|
|
376
|
+
export declare const NullsOrder: {
|
|
377
|
+
readonly first: "first";
|
|
378
|
+
readonly last: "last";
|
|
379
|
+
};
|
|
380
|
+
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
|
|
381
|
+
/**
|
|
382
|
+
* Field references
|
|
383
|
+
*/
|
|
384
|
+
/**
|
|
385
|
+
* Reference to a field of type 'String'
|
|
386
|
+
*/
|
|
387
|
+
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>;
|
|
388
|
+
/**
|
|
389
|
+
* Reference to a field of type 'String[]'
|
|
390
|
+
*/
|
|
391
|
+
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>;
|
|
392
|
+
/**
|
|
393
|
+
* Reference to a field of type 'DateTime'
|
|
394
|
+
*/
|
|
395
|
+
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>;
|
|
396
|
+
/**
|
|
397
|
+
* Reference to a field of type 'DateTime[]'
|
|
398
|
+
*/
|
|
399
|
+
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>;
|
|
400
|
+
/**
|
|
401
|
+
* Reference to a field of type 'Int'
|
|
402
|
+
*/
|
|
403
|
+
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
|
|
404
|
+
/**
|
|
405
|
+
* Reference to a field of type 'Int[]'
|
|
406
|
+
*/
|
|
407
|
+
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>;
|
|
408
|
+
/**
|
|
409
|
+
* Batch Payload for updateMany & deleteMany & createMany
|
|
410
|
+
*/
|
|
411
|
+
export type BatchPayload = {
|
|
412
|
+
count: number;
|
|
413
|
+
};
|
|
414
|
+
export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
|
|
415
|
+
export type DefaultPrismaClient = PrismaClient;
|
|
416
|
+
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
|
|
417
|
+
export type PrismaClientOptions = ({
|
|
418
|
+
/**
|
|
419
|
+
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
|
|
420
|
+
*/
|
|
421
|
+
adapter: runtime.SqlDriverAdapterFactory;
|
|
422
|
+
accelerateUrl?: never;
|
|
423
|
+
} | {
|
|
424
|
+
/**
|
|
425
|
+
* Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
|
|
426
|
+
*/
|
|
427
|
+
accelerateUrl: string;
|
|
428
|
+
adapter?: never;
|
|
429
|
+
}) & {
|
|
430
|
+
/**
|
|
431
|
+
* @default "colorless"
|
|
432
|
+
*/
|
|
433
|
+
errorFormat?: ErrorFormat;
|
|
434
|
+
/**
|
|
435
|
+
* @example
|
|
436
|
+
* ```
|
|
437
|
+
* // Shorthand for `emit: 'stdout'`
|
|
438
|
+
* log: ['query', 'info', 'warn', 'error']
|
|
439
|
+
*
|
|
440
|
+
* // Emit as events only
|
|
441
|
+
* log: [
|
|
442
|
+
* { emit: 'event', level: 'query' },
|
|
443
|
+
* { emit: 'event', level: 'info' },
|
|
444
|
+
* { emit: 'event', level: 'warn' }
|
|
445
|
+
* { emit: 'event', level: 'error' }
|
|
446
|
+
* ]
|
|
447
|
+
*
|
|
448
|
+
* / Emit as events and log to stdout
|
|
449
|
+
* og: [
|
|
450
|
+
* { emit: 'stdout', level: 'query' },
|
|
451
|
+
* { emit: 'stdout', level: 'info' },
|
|
452
|
+
* { emit: 'stdout', level: 'warn' }
|
|
453
|
+
* { emit: 'stdout', level: 'error' }
|
|
454
|
+
*
|
|
455
|
+
* ```
|
|
456
|
+
* Read more in our [docs](https://pris.ly/d/logging).
|
|
457
|
+
*/
|
|
458
|
+
log?: (LogLevel | LogDefinition)[];
|
|
459
|
+
/**
|
|
460
|
+
* The default values for transactionOptions
|
|
461
|
+
* maxWait ?= 2000
|
|
462
|
+
* timeout ?= 5000
|
|
463
|
+
*/
|
|
464
|
+
transactionOptions?: {
|
|
465
|
+
maxWait?: number;
|
|
466
|
+
timeout?: number;
|
|
467
|
+
isolationLevel?: TransactionIsolationLevel;
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Global configuration for omitting model fields by default.
|
|
471
|
+
*
|
|
472
|
+
* @example
|
|
473
|
+
* ```
|
|
474
|
+
* const prisma = new PrismaClient({
|
|
475
|
+
* omit: {
|
|
476
|
+
* user: {
|
|
477
|
+
* password: true
|
|
478
|
+
* }
|
|
479
|
+
* }
|
|
480
|
+
* })
|
|
481
|
+
* ```
|
|
482
|
+
*/
|
|
483
|
+
omit?: GlobalOmitConfig;
|
|
484
|
+
/**
|
|
485
|
+
* SQL commenter plugins that add metadata to SQL queries as comments.
|
|
486
|
+
* Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```
|
|
490
|
+
* const prisma = new PrismaClient({
|
|
491
|
+
* adapter,
|
|
492
|
+
* comments: [
|
|
493
|
+
* traceContext(),
|
|
494
|
+
* queryInsights(),
|
|
495
|
+
* ],
|
|
496
|
+
* })
|
|
497
|
+
* ```
|
|
498
|
+
*/
|
|
499
|
+
comments?: runtime.SqlCommenterPlugin[];
|
|
500
|
+
};
|
|
501
|
+
export type GlobalOmitConfig = {
|
|
502
|
+
dismissibleItem?: Prisma.DismissibleItemOmit;
|
|
503
|
+
};
|
|
504
|
+
export type LogLevel = 'info' | 'query' | 'warn' | 'error';
|
|
505
|
+
export type LogDefinition = {
|
|
506
|
+
level: LogLevel;
|
|
507
|
+
emit: 'stdout' | 'event';
|
|
508
|
+
};
|
|
509
|
+
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
510
|
+
export type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
|
|
511
|
+
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
|
|
512
|
+
export type QueryEvent = {
|
|
513
|
+
timestamp: Date;
|
|
514
|
+
query: string;
|
|
515
|
+
params: string;
|
|
516
|
+
duration: number;
|
|
517
|
+
target: string;
|
|
518
|
+
};
|
|
519
|
+
export type LogEvent = {
|
|
520
|
+
timestamp: Date;
|
|
521
|
+
message: string;
|
|
522
|
+
target: string;
|
|
523
|
+
};
|
|
524
|
+
export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
|
|
525
|
+
/**
|
|
526
|
+
* `PrismaClient` proxy available in interactive transactions.
|
|
527
|
+
*/
|
|
528
|
+
export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* WARNING: This is an internal file that is subject to change!
|
|
8
|
+
*
|
|
9
|
+
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
10
|
+
*
|
|
11
|
+
* All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
|
|
12
|
+
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
13
|
+
*
|
|
14
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
15
|
+
* model files in the `model` directory!
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.defineExtension = exports.NullsOrder = exports.QueryMode = exports.SortOrder = exports.DismissibleItemScalarFieldEnum = exports.TransactionIsolationLevel = exports.ModelName = exports.AnyNull = exports.JsonNull = exports.DbNull = exports.NullTypes = exports.prismaVersion = exports.getExtensionContext = exports.Decimal = exports.Sql = exports.raw = exports.join = exports.empty = exports.sql = exports.PrismaClientValidationError = exports.PrismaClientInitializationError = exports.PrismaClientRustPanicError = exports.PrismaClientUnknownRequestError = exports.PrismaClientKnownRequestError = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const runtime = tslib_1.__importStar(require("@prisma/client/runtime/client"));
|
|
21
|
+
/**
|
|
22
|
+
* Prisma Errors
|
|
23
|
+
*/
|
|
24
|
+
exports.PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
|
|
25
|
+
exports.PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
|
|
26
|
+
exports.PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
|
|
27
|
+
exports.PrismaClientInitializationError = runtime.PrismaClientInitializationError;
|
|
28
|
+
exports.PrismaClientValidationError = runtime.PrismaClientValidationError;
|
|
29
|
+
/**
|
|
30
|
+
* Re-export of sql-template-tag
|
|
31
|
+
*/
|
|
32
|
+
exports.sql = runtime.sqltag;
|
|
33
|
+
exports.empty = runtime.empty;
|
|
34
|
+
exports.join = runtime.join;
|
|
35
|
+
exports.raw = runtime.raw;
|
|
36
|
+
exports.Sql = runtime.Sql;
|
|
37
|
+
/**
|
|
38
|
+
* Decimal.js
|
|
39
|
+
*/
|
|
40
|
+
exports.Decimal = runtime.Decimal;
|
|
41
|
+
exports.getExtensionContext = runtime.Extensions.getExtensionContext;
|
|
42
|
+
/**
|
|
43
|
+
* Prisma Client JS version: 7.2.0
|
|
44
|
+
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
45
|
+
*/
|
|
46
|
+
exports.prismaVersion = {
|
|
47
|
+
client: "7.2.0",
|
|
48
|
+
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
|
|
49
|
+
};
|
|
50
|
+
exports.NullTypes = {
|
|
51
|
+
DbNull: runtime.NullTypes.DbNull,
|
|
52
|
+
JsonNull: runtime.NullTypes.JsonNull,
|
|
53
|
+
AnyNull: runtime.NullTypes.AnyNull,
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
57
|
+
*
|
|
58
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
59
|
+
*/
|
|
60
|
+
exports.DbNull = runtime.DbNull;
|
|
61
|
+
/**
|
|
62
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
63
|
+
*
|
|
64
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
65
|
+
*/
|
|
66
|
+
exports.JsonNull = runtime.JsonNull;
|
|
67
|
+
/**
|
|
68
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
69
|
+
*
|
|
70
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
71
|
+
*/
|
|
72
|
+
exports.AnyNull = runtime.AnyNull;
|
|
73
|
+
exports.ModelName = {
|
|
74
|
+
DismissibleItem: 'DismissibleItem'
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Enums
|
|
78
|
+
*/
|
|
79
|
+
exports.TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
80
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
81
|
+
ReadCommitted: 'ReadCommitted',
|
|
82
|
+
RepeatableRead: 'RepeatableRead',
|
|
83
|
+
Serializable: 'Serializable'
|
|
84
|
+
});
|
|
85
|
+
exports.DismissibleItemScalarFieldEnum = {
|
|
86
|
+
id: 'id',
|
|
87
|
+
userId: 'userId',
|
|
88
|
+
createdAt: 'createdAt',
|
|
89
|
+
dismissedAt: 'dismissedAt'
|
|
90
|
+
};
|
|
91
|
+
exports.SortOrder = {
|
|
92
|
+
asc: 'asc',
|
|
93
|
+
desc: 'desc'
|
|
94
|
+
};
|
|
95
|
+
exports.QueryMode = {
|
|
96
|
+
default: 'default',
|
|
97
|
+
insensitive: 'insensitive'
|
|
98
|
+
};
|
|
99
|
+
exports.NullsOrder = {
|
|
100
|
+
first: 'first',
|
|
101
|
+
last: 'last'
|
|
102
|
+
};
|
|
103
|
+
exports.defineExtension = runtime.Extensions.defineExtension;
|
|
104
|
+
//# sourceMappingURL=prismaNamespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prismaNamespace.js","sourceRoot":"","sources":["../../../../../../../libs/postgres-storage/prisma/generated/prisma/internal/prismaNamespace.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;;;;;;GAUG;;;;AAEH,+EAAwD;AAUxD;;GAEG;AAEU,QAAA,6BAA6B,GAAG,OAAO,CAAC,6BAA6B,CAAA;AAGrE,QAAA,+BAA+B,GAAG,OAAO,CAAC,+BAA+B,CAAA;AAGzE,QAAA,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAA;AAG/D,QAAA,+BAA+B,GAAG,OAAO,CAAC,+BAA+B,CAAA;AAGzE,QAAA,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAA;AAG9E;;GAEG;AACU,QAAA,GAAG,GAAG,OAAO,CAAC,MAAM,CAAA;AACpB,QAAA,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;AACrB,QAAA,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;AACnB,QAAA,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;AACjB,QAAA,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;AAK9B;;GAEG;AACU,QAAA,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AASzB,QAAA,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAA;AAWzE;;;GAGG;AACU,QAAA,aAAa,GAAkB;IAC1C,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,0CAA0C;CACnD,CAAA;AAeY,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,MAAwD;IAClF,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAC,QAA4D;IACxF,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,OAA0D;CACtF,CAAA;AACD;;;;GAIG;AACU,QAAA,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;AAEpC;;;;GAIG;AACU,QAAA,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;AAExC;;;;GAIG;AACU,QAAA,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AAkQzB,QAAA,SAAS,GAAG;IACvB,eAAe,EAAE,iBAAiB;CAC1B,CAAA;AAsHV;;GAEG;AAEU,QAAA,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;IAC9D,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;CACpB,CAAC,CAAA;AAKE,QAAA,8BAA8B,GAAG;IAC5C,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAA;AAKG,QAAA,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAA;AAKG,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;CAClB,CAAA;AAKG,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAA;AA2DG,QAAA,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,eAA6H,CAAA"}
|