@mframework/layer-shared 0.0.2 → 0.0.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/dist/package.json +6 -11
- package/package.json +3 -2
- package/prisma/generated/browser.ts +0 -44
- package/prisma/generated/client.ts +0 -66
- package/prisma/generated/commonInputTypes.ts +0 -432
- package/prisma/generated/enums.ts +0 -15
- package/prisma/generated/internal/class.ts +0 -232
- package/prisma/generated/internal/prismaNamespace.ts +0 -1154
- package/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -179
- package/prisma/generated/models/Account.ts +0 -1620
- package/prisma/generated/models/Session.ts +0 -1484
- package/prisma/generated/models/Upload.ts +0 -1291
- package/prisma/generated/models/User.ts +0 -1780
- package/prisma/generated/models/Verification.ts +0 -1172
- package/prisma/generated/models.ts +0 -16
- package/prisma/schema.prisma +0 -102
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
|
|
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
|
-
* Please import the `PrismaClient` class from the `client.ts` file instead.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import * as runtime from "@prisma/client/runtime/client"
|
|
15
|
-
import type * as Prisma from "./prismaNamespace"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const config: runtime.GetPrismaClientConfig = {
|
|
19
|
-
"previewFeatures": [],
|
|
20
|
-
"clientVersion": "7.3.0",
|
|
21
|
-
"engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735",
|
|
22
|
-
"activeProvider": "postgresql",
|
|
23
|
-
"inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"./generated\"\n engineType = \"binary\"\n binaryTargets = [\"native\"]\n}\n\ndatasource db {\n provider = \"postgresql\"\n schemas = [\"auth\", \"public\"]\n}\n\nmodel User {\n id String @id\n name String\n email String\n emailVerified Boolean\n image String?\n createdAt DateTime?\n updatedAt DateTime?\n Session Session[]\n Account Account[]\n\n role String?\n banned Boolean?\n banReason String?\n banExpires DateTime?\n\n firstName String?\n lastName String?\n phone String?\n\n @@unique([email])\n @@map(\"user\")\n @@schema(\"auth\")\n}\n\nmodel Session {\n id String @id\n expiresAt DateTime\n token String\n createdAt DateTime?\n updatedAt DateTime?\n ipAddress String?\n userAgent String?\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n impersonatedBy String?\n\n @@unique([token])\n @@map(\"session\")\n @@schema(\"auth\")\n}\n\nmodel Account {\n id String @id\n accountId String\n providerId String\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n accessToken String?\n refreshToken String?\n idToken String?\n accessTokenExpiresAt DateTime?\n refreshTokenExpiresAt DateTime?\n scope String?\n password String?\n createdAt DateTime?\n updatedAt DateTime?\n\n @@map(\"account\")\n @@schema(\"auth\")\n}\n\nmodel Verification {\n id String @id\n identifier String\n value String\n expiresAt DateTime\n createdAt DateTime?\n updatedAt DateTime?\n\n @@map(\"verification\")\n @@schema(\"auth\")\n}\n\nmodel Upload {\n id Int @id @default(autoincrement())\n createdAt DateTime? @default(now())\n updatedAt DateTime? @updatedAt\n\n filename String\n mimetype String?\n encoding String?\n url String\n size Int?\n\n @@map(\"uploads\")\n @@schema(\"public\")\n}\n",
|
|
24
|
-
"runtimeDataModel": {
|
|
25
|
-
"models": {},
|
|
26
|
-
"enums": {},
|
|
27
|
-
"types": {}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"Session\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"Account\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToUser\"},{\"name\":\"role\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"banned\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"banReason\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"banExpires\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"user\"},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ipAddress\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userAgent\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"},{\"name\":\"impersonatedBy\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"session\"},\"Account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accountId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"providerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"AccountToUser\"},{\"name\":\"accessToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refreshToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"idToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accessTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"account\"},\"Verification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"verification\"},\"Upload\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"filename\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mimetype\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"encoding\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"size\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":\"uploads\"}},\"enums\":{},\"types\":{}}")
|
|
32
|
-
|
|
33
|
-
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
34
|
-
const { Buffer } = await import('node:buffer')
|
|
35
|
-
const wasmArray = Buffer.from(wasmBase64, 'base64')
|
|
36
|
-
return new WebAssembly.Module(wasmArray)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
config.compilerWasm = {
|
|
40
|
-
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs"),
|
|
41
|
-
|
|
42
|
-
getQueryCompilerWasmModule: async () => {
|
|
43
|
-
const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.mjs")
|
|
44
|
-
return await decodeBase64AsWasm(wasm)
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
importName: "./query_compiler_fast_bg.js"
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> =
|
|
53
|
-
'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never
|
|
54
|
-
|
|
55
|
-
export interface PrismaClientConstructor {
|
|
56
|
-
/**
|
|
57
|
-
* ## Prisma Client
|
|
58
|
-
*
|
|
59
|
-
* Type-safe database client for TypeScript
|
|
60
|
-
* @example
|
|
61
|
-
* ```
|
|
62
|
-
* const prisma = new PrismaClient()
|
|
63
|
-
* // Fetch zero or more Users
|
|
64
|
-
* const users = await prisma.user.findMany()
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* Read more in our [docs](https://pris.ly/d/client).
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
new <
|
|
71
|
-
Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
72
|
-
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
|
73
|
-
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
|
74
|
-
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
75
|
-
>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* ## Prisma Client
|
|
80
|
-
*
|
|
81
|
-
* Type-safe database client for TypeScript
|
|
82
|
-
* @example
|
|
83
|
-
* ```
|
|
84
|
-
* const prisma = new PrismaClient()
|
|
85
|
-
* // Fetch zero or more Users
|
|
86
|
-
* const users = await prisma.user.findMany()
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
* Read more in our [docs](https://pris.ly/d/client).
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
export interface PrismaClient<
|
|
93
|
-
in LogOpts extends Prisma.LogLevel = never,
|
|
94
|
-
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined,
|
|
95
|
-
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
96
|
-
> {
|
|
97
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
98
|
-
|
|
99
|
-
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Connect with the database
|
|
103
|
-
*/
|
|
104
|
-
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Disconnect from the database
|
|
108
|
-
*/
|
|
109
|
-
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Executes a prepared raw query and returns the number of affected rows.
|
|
113
|
-
* @example
|
|
114
|
-
* ```
|
|
115
|
-
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
116
|
-
* ```
|
|
117
|
-
*
|
|
118
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
119
|
-
*/
|
|
120
|
-
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Executes a raw query and returns the number of affected rows.
|
|
124
|
-
* Susceptible to SQL injections, see documentation.
|
|
125
|
-
* @example
|
|
126
|
-
* ```
|
|
127
|
-
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
128
|
-
* ```
|
|
129
|
-
*
|
|
130
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
131
|
-
*/
|
|
132
|
-
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Performs a prepared raw query and returns the `SELECT` data.
|
|
136
|
-
* @example
|
|
137
|
-
* ```
|
|
138
|
-
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
139
|
-
* ```
|
|
140
|
-
*
|
|
141
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
142
|
-
*/
|
|
143
|
-
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Performs a raw query and returns the `SELECT` data.
|
|
147
|
-
* Susceptible to SQL injections, see documentation.
|
|
148
|
-
* @example
|
|
149
|
-
* ```
|
|
150
|
-
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
151
|
-
* ```
|
|
152
|
-
*
|
|
153
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
154
|
-
*/
|
|
155
|
-
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
160
|
-
* @example
|
|
161
|
-
* ```
|
|
162
|
-
* const [george, bob, alice] = await prisma.$transaction([
|
|
163
|
-
* prisma.user.create({ data: { name: 'George' } }),
|
|
164
|
-
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
165
|
-
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
166
|
-
* ])
|
|
167
|
-
* ```
|
|
168
|
-
*
|
|
169
|
-
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
170
|
-
*/
|
|
171
|
-
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
172
|
-
|
|
173
|
-
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<R>
|
|
174
|
-
|
|
175
|
-
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
176
|
-
extArgs: ExtArgs
|
|
177
|
-
}>>
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
181
|
-
* Example usage:
|
|
182
|
-
* ```ts
|
|
183
|
-
* // Fetch zero or more Users
|
|
184
|
-
* const users = await prisma.user.findMany()
|
|
185
|
-
* ```
|
|
186
|
-
*/
|
|
187
|
-
get user(): Prisma.UserDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* `prisma.session`: Exposes CRUD operations for the **Session** model.
|
|
191
|
-
* Example usage:
|
|
192
|
-
* ```ts
|
|
193
|
-
* // Fetch zero or more Sessions
|
|
194
|
-
* const sessions = await prisma.session.findMany()
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
get session(): Prisma.SessionDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* `prisma.account`: Exposes CRUD operations for the **Account** model.
|
|
201
|
-
* Example usage:
|
|
202
|
-
* ```ts
|
|
203
|
-
* // Fetch zero or more Accounts
|
|
204
|
-
* const accounts = await prisma.account.findMany()
|
|
205
|
-
* ```
|
|
206
|
-
*/
|
|
207
|
-
get account(): Prisma.AccountDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* `prisma.verification`: Exposes CRUD operations for the **Verification** model.
|
|
211
|
-
* Example usage:
|
|
212
|
-
* ```ts
|
|
213
|
-
* // Fetch zero or more Verifications
|
|
214
|
-
* const verifications = await prisma.verification.findMany()
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
get verification(): Prisma.VerificationDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* `prisma.upload`: Exposes CRUD operations for the **Upload** model.
|
|
221
|
-
* Example usage:
|
|
222
|
-
* ```ts
|
|
223
|
-
* // Fetch zero or more Uploads
|
|
224
|
-
* const uploads = await prisma.upload.findMany()
|
|
225
|
-
* ```
|
|
226
|
-
*/
|
|
227
|
-
get upload(): Prisma.UploadDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export function getPrismaClientClass(): PrismaClientConstructor {
|
|
231
|
-
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
|
232
|
-
}
|