@s-hirano-ist/s-database 1.5.1 → 1.6.0
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/package.json +3 -3
- package/prisma/schema.prisma +2 -2
- package/src/generated/client.d.ts +1 -0
- package/src/generated/client.js +5 -0
- package/src/generated/default.d.ts +1 -0
- package/src/generated/default.js +5 -0
- package/src/generated/edge.d.ts +1 -0
- package/src/generated/edge.js +220 -0
- package/src/generated/index-browser.js +251 -0
- package/src/generated/index.d.ts +8915 -0
- package/src/generated/index.js +220 -0
- package/src/generated/package.json +144 -0
- package/src/generated/query_compiler_bg.js +2 -0
- package/src/generated/query_compiler_bg.wasm +0 -0
- package/src/generated/query_compiler_bg.wasm-base64.js +2 -0
- package/src/generated/runtime/client.d.ts +3317 -0
- package/src/generated/runtime/client.js +86 -0
- package/src/generated/runtime/index-browser.d.ts +87 -0
- package/src/generated/runtime/index-browser.js +6 -0
- package/src/generated/runtime/wasm-compiler-edge.js +76 -0
- package/src/generated/schema.prisma +126 -0
- package/src/generated/wasm-edge-light-loader.mjs +5 -0
- package/src/generated/wasm-worker-loader.mjs +5 -0
- package/src/index.ts +2 -13
- package/src/generated/prisma/browser.ts +0 -44
- package/src/generated/prisma/client.ts +0 -66
- package/src/generated/prisma/commonInputTypes.ts +0 -360
- package/src/generated/prisma/enums.ts +0 -18
- package/src/generated/prisma/internal/class.ts +0 -230
- package/src/generated/prisma/internal/prismaNamespace.ts +0 -1167
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -185
- package/src/generated/prisma/models/Article.ts +0 -1638
- package/src/generated/prisma/models/Book.ts +0 -1536
- package/src/generated/prisma/models/Category.ts +0 -1336
- package/src/generated/prisma/models/Image.ts +0 -1449
- package/src/generated/prisma/models/Note.ts +0 -1234
- package/src/generated/prisma/models.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-hirano-ist/s-database",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Prisma database schema and client for s-private project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"types": "./src/index.ts",
|
|
11
11
|
"default": "./src/index.ts"
|
|
12
12
|
},
|
|
13
|
-
"./generated": "./src/generated/
|
|
14
|
-
"./generated/*": "./src/generated
|
|
13
|
+
"./generated": "./src/generated/index.js",
|
|
14
|
+
"./generated/*": "./src/generated/*"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
package/prisma/schema.prisma
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./default"
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
PrismaClientKnownRequestError,
|
|
10
|
+
PrismaClientUnknownRequestError,
|
|
11
|
+
PrismaClientRustPanicError,
|
|
12
|
+
PrismaClientInitializationError,
|
|
13
|
+
PrismaClientValidationError,
|
|
14
|
+
getPrismaClient,
|
|
15
|
+
sqltag,
|
|
16
|
+
empty,
|
|
17
|
+
join,
|
|
18
|
+
raw,
|
|
19
|
+
skip,
|
|
20
|
+
Decimal,
|
|
21
|
+
Debug,
|
|
22
|
+
DbNull,
|
|
23
|
+
JsonNull,
|
|
24
|
+
AnyNull,
|
|
25
|
+
NullTypes,
|
|
26
|
+
makeStrictEnum,
|
|
27
|
+
Extensions,
|
|
28
|
+
warnOnce,
|
|
29
|
+
defineDmmfProperty,
|
|
30
|
+
Public,
|
|
31
|
+
getRuntime,
|
|
32
|
+
createParam,
|
|
33
|
+
} = require('./runtime/wasm-compiler-edge.js')
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
const Prisma = {}
|
|
37
|
+
|
|
38
|
+
exports.Prisma = Prisma
|
|
39
|
+
exports.$Enums = {}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Prisma Client JS version: 7.2.0
|
|
43
|
+
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
44
|
+
*/
|
|
45
|
+
Prisma.prismaVersion = {
|
|
46
|
+
client: "7.2.0",
|
|
47
|
+
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
51
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
52
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
53
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
54
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
55
|
+
Prisma.Decimal = Decimal
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Re-export of sql-template-tag
|
|
59
|
+
*/
|
|
60
|
+
Prisma.sql = sqltag
|
|
61
|
+
Prisma.empty = empty
|
|
62
|
+
Prisma.join = join
|
|
63
|
+
Prisma.raw = raw
|
|
64
|
+
Prisma.validator = Public.validator
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Extensions
|
|
68
|
+
*/
|
|
69
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
70
|
+
Prisma.defineExtension = Extensions.defineExtension
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Shorthand utilities for JSON filtering
|
|
74
|
+
*/
|
|
75
|
+
Prisma.DbNull = DbNull
|
|
76
|
+
Prisma.JsonNull = JsonNull
|
|
77
|
+
Prisma.AnyNull = AnyNull
|
|
78
|
+
|
|
79
|
+
Prisma.NullTypes = NullTypes
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Enums
|
|
87
|
+
*/
|
|
88
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
89
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
90
|
+
ReadCommitted: 'ReadCommitted',
|
|
91
|
+
RepeatableRead: 'RepeatableRead',
|
|
92
|
+
Serializable: 'Serializable'
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
exports.Prisma.CategoryScalarFieldEnum = {
|
|
96
|
+
id: 'id',
|
|
97
|
+
name: 'name',
|
|
98
|
+
createdAt: 'createdAt',
|
|
99
|
+
updatedAt: 'updatedAt',
|
|
100
|
+
userId: 'userId'
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
exports.Prisma.ArticleScalarFieldEnum = {
|
|
104
|
+
id: 'id',
|
|
105
|
+
title: 'title',
|
|
106
|
+
url: 'url',
|
|
107
|
+
quote: 'quote',
|
|
108
|
+
ogImageUrl: 'ogImageUrl',
|
|
109
|
+
ogTitle: 'ogTitle',
|
|
110
|
+
ogDescription: 'ogDescription',
|
|
111
|
+
categoryId: 'categoryId',
|
|
112
|
+
status: 'status',
|
|
113
|
+
userId: 'userId',
|
|
114
|
+
createdAt: 'createdAt',
|
|
115
|
+
updatedAt: 'updatedAt',
|
|
116
|
+
exportedAt: 'exportedAt'
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
exports.Prisma.NoteScalarFieldEnum = {
|
|
120
|
+
id: 'id',
|
|
121
|
+
title: 'title',
|
|
122
|
+
markdown: 'markdown',
|
|
123
|
+
status: 'status',
|
|
124
|
+
userId: 'userId',
|
|
125
|
+
createdAt: 'createdAt',
|
|
126
|
+
updatedAt: 'updatedAt',
|
|
127
|
+
exportedAt: 'exportedAt'
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
exports.Prisma.ImageScalarFieldEnum = {
|
|
131
|
+
id: 'id',
|
|
132
|
+
path: 'path',
|
|
133
|
+
contentType: 'contentType',
|
|
134
|
+
fileSize: 'fileSize',
|
|
135
|
+
width: 'width',
|
|
136
|
+
height: 'height',
|
|
137
|
+
tags: 'tags',
|
|
138
|
+
description: 'description',
|
|
139
|
+
status: 'status',
|
|
140
|
+
userId: 'userId',
|
|
141
|
+
createdAt: 'createdAt',
|
|
142
|
+
updatedAt: 'updatedAt',
|
|
143
|
+
exportedAt: 'exportedAt'
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
exports.Prisma.BookScalarFieldEnum = {
|
|
147
|
+
id: 'id',
|
|
148
|
+
ISBN: 'ISBN',
|
|
149
|
+
title: 'title',
|
|
150
|
+
googleTitle: 'googleTitle',
|
|
151
|
+
googleSubTitle: 'googleSubTitle',
|
|
152
|
+
googleAuthors: 'googleAuthors',
|
|
153
|
+
googleDescription: 'googleDescription',
|
|
154
|
+
googleImgSrc: 'googleImgSrc',
|
|
155
|
+
googleHref: 'googleHref',
|
|
156
|
+
markdown: 'markdown',
|
|
157
|
+
rating: 'rating',
|
|
158
|
+
tags: 'tags',
|
|
159
|
+
status: 'status',
|
|
160
|
+
userId: 'userId',
|
|
161
|
+
createdAt: 'createdAt',
|
|
162
|
+
updatedAt: 'updatedAt',
|
|
163
|
+
exportedAt: 'exportedAt'
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
exports.Prisma.SortOrder = {
|
|
167
|
+
asc: 'asc',
|
|
168
|
+
desc: 'desc'
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports.Prisma.QueryMode = {
|
|
172
|
+
default: 'default',
|
|
173
|
+
insensitive: 'insensitive'
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
exports.Prisma.NullsOrder = {
|
|
177
|
+
first: 'first',
|
|
178
|
+
last: 'last'
|
|
179
|
+
};
|
|
180
|
+
exports.Status = exports.$Enums.Status = {
|
|
181
|
+
UNEXPORTED: 'UNEXPORTED',
|
|
182
|
+
LAST_UPDATED: 'LAST_UPDATED',
|
|
183
|
+
EXPORTED: 'EXPORTED'
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
exports.Prisma.ModelName = {
|
|
187
|
+
Category: 'Category',
|
|
188
|
+
Article: 'Article',
|
|
189
|
+
Note: 'Note',
|
|
190
|
+
Image: 'Image',
|
|
191
|
+
Book: 'Book'
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Create the Client
|
|
195
|
+
*/
|
|
196
|
+
const config = {
|
|
197
|
+
"previewFeatures": [],
|
|
198
|
+
"clientVersion": "7.2.0",
|
|
199
|
+
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
200
|
+
"activeProvider": "postgresql",
|
|
201
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum Status {\n UNEXPORTED\n LAST_UPDATED\n EXPORTED\n}\n\nmodel Category {\n id String @id\n\n name String\n\n Articles Article[]\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n userId String @map(\"user_id\")\n\n @@unique([name, userId])\n @@map(\"categories\")\n}\n\nmodel Article {\n id String @id\n\n title String\n url String\n quote String?\n\n ogImageUrl String? @map(\"og_image_url\")\n ogTitle String? @map(\"og_title\")\n ogDescription String? @map(\"og_description\")\n\n Category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n categoryId String @map(\"category_id\")\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([url, userId])\n @@map(\"articles\")\n}\n\nmodel Note {\n id String @id\n\n title String\n markdown String\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([title, userId])\n @@map(\"notes\")\n}\n\nmodel Image {\n id String @id\n\n path String\n contentType String @map(\"content_type\") // e.g.: image/jpeg, image/png\n fileSize Int? @map(\"file_size\") // byte\n width Int? // pixel\n height Int? // pixel\n tags String[]\n description String?\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([path, userId])\n @@map(\"images\")\n}\n\nmodel Book {\n id String @id\n ISBN String @map(\"isbn\")\n title String\n\n googleTitle String? @map(\"google_title\")\n googleSubTitle String? @map(\"google_subtitle\")\n googleAuthors String[] @map(\"google_authors\")\n googleDescription String? @map(\"google_description\")\n googleImgSrc String? @map(\"google_img_src\")\n googleHref String? @map(\"google_href\")\n\n markdown String?\n\n rating Int? // 1-5\n tags String[]\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([ISBN, userId])\n @@map(\"books\")\n}\n"
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"Category\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"Articles\",\"kind\":\"object\",\"type\":\"Article\",\"relationName\":\"ArticleToCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"}],\"dbName\":\"categories\"},\"Article\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quote\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ogImageUrl\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_image_url\"},{\"name\":\"ogTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_title\"},{\"name\":\"ogDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_description\"},{\"name\":\"Category\",\"kind\":\"object\",\"type\":\"Category\",\"relationName\":\"ArticleToCategory\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"articles\"},\"Note\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"markdown\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"notes\"},\"Image\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"path\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contentType\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"content_type\"},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"file_size\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"images\"},\"Book\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ISBN\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"isbn\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"googleTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_title\"},{\"name\":\"googleSubTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_subtitle\"},{\"name\":\"googleAuthors\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_authors\"},{\"name\":\"googleDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_description\"},{\"name\":\"googleImgSrc\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_img_src\"},{\"name\":\"googleHref\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_href\"},{\"name\":\"markdown\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rating\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"books\"}},\"enums\":{},\"types\":{}}")
|
|
205
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
206
|
+
config.compilerWasm = {
|
|
207
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
208
|
+
getQueryCompilerWasmModule: async () => {
|
|
209
|
+
const loader = (await import('#wasm-compiler-loader')).default
|
|
210
|
+
const compiler = (await loader).default
|
|
211
|
+
return compiler
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || (typeof process !== 'undefined' && process.env && process.env.DEBUG) || undefined) {
|
|
215
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || (typeof process !== 'undefined' && process.env && process.env.DEBUG) || undefined)
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const PrismaClient = getPrismaClient(config)
|
|
219
|
+
exports.PrismaClient = PrismaClient
|
|
220
|
+
Object.assign(exports, Prisma)
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
Decimal,
|
|
10
|
+
DbNull,
|
|
11
|
+
JsonNull,
|
|
12
|
+
AnyNull,
|
|
13
|
+
NullTypes,
|
|
14
|
+
makeStrictEnum,
|
|
15
|
+
Public,
|
|
16
|
+
getRuntime,
|
|
17
|
+
skip
|
|
18
|
+
} = require('./runtime/index-browser.js')
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
const Prisma = {}
|
|
22
|
+
|
|
23
|
+
exports.Prisma = Prisma
|
|
24
|
+
exports.$Enums = {}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Prisma Client JS version: 7.2.0
|
|
28
|
+
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
29
|
+
*/
|
|
30
|
+
Prisma.prismaVersion = {
|
|
31
|
+
client: "7.2.0",
|
|
32
|
+
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
36
|
+
const runtimeName = getRuntime().prettyName;
|
|
37
|
+
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
38
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
39
|
+
)};
|
|
40
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
41
|
+
const runtimeName = getRuntime().prettyName;
|
|
42
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
43
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
44
|
+
)}
|
|
45
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
46
|
+
const runtimeName = getRuntime().prettyName;
|
|
47
|
+
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
48
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
49
|
+
)}
|
|
50
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
51
|
+
const runtimeName = getRuntime().prettyName;
|
|
52
|
+
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
53
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
54
|
+
)}
|
|
55
|
+
Prisma.PrismaClientValidationError = () => {
|
|
56
|
+
const runtimeName = getRuntime().prettyName;
|
|
57
|
+
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
58
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
59
|
+
)}
|
|
60
|
+
Prisma.Decimal = Decimal
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Re-export of sql-template-tag
|
|
64
|
+
*/
|
|
65
|
+
Prisma.sql = () => {
|
|
66
|
+
const runtimeName = getRuntime().prettyName;
|
|
67
|
+
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
68
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
69
|
+
)}
|
|
70
|
+
Prisma.empty = () => {
|
|
71
|
+
const runtimeName = getRuntime().prettyName;
|
|
72
|
+
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
73
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
74
|
+
)}
|
|
75
|
+
Prisma.join = () => {
|
|
76
|
+
const runtimeName = getRuntime().prettyName;
|
|
77
|
+
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
78
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
79
|
+
)}
|
|
80
|
+
Prisma.raw = () => {
|
|
81
|
+
const runtimeName = getRuntime().prettyName;
|
|
82
|
+
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
83
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
84
|
+
)}
|
|
85
|
+
Prisma.validator = Public.validator
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Extensions
|
|
89
|
+
*/
|
|
90
|
+
Prisma.getExtensionContext = () => {
|
|
91
|
+
const runtimeName = getRuntime().prettyName;
|
|
92
|
+
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
93
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
94
|
+
)}
|
|
95
|
+
Prisma.defineExtension = () => {
|
|
96
|
+
const runtimeName = getRuntime().prettyName;
|
|
97
|
+
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
98
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
99
|
+
)}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Shorthand utilities for JSON filtering
|
|
103
|
+
*/
|
|
104
|
+
Prisma.DbNull = DbNull
|
|
105
|
+
Prisma.JsonNull = JsonNull
|
|
106
|
+
Prisma.AnyNull = AnyNull
|
|
107
|
+
|
|
108
|
+
Prisma.NullTypes = NullTypes
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Enums
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
117
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
118
|
+
ReadCommitted: 'ReadCommitted',
|
|
119
|
+
RepeatableRead: 'RepeatableRead',
|
|
120
|
+
Serializable: 'Serializable'
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
exports.Prisma.CategoryScalarFieldEnum = {
|
|
124
|
+
id: 'id',
|
|
125
|
+
name: 'name',
|
|
126
|
+
createdAt: 'createdAt',
|
|
127
|
+
updatedAt: 'updatedAt',
|
|
128
|
+
userId: 'userId'
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
exports.Prisma.ArticleScalarFieldEnum = {
|
|
132
|
+
id: 'id',
|
|
133
|
+
title: 'title',
|
|
134
|
+
url: 'url',
|
|
135
|
+
quote: 'quote',
|
|
136
|
+
ogImageUrl: 'ogImageUrl',
|
|
137
|
+
ogTitle: 'ogTitle',
|
|
138
|
+
ogDescription: 'ogDescription',
|
|
139
|
+
categoryId: 'categoryId',
|
|
140
|
+
status: 'status',
|
|
141
|
+
userId: 'userId',
|
|
142
|
+
createdAt: 'createdAt',
|
|
143
|
+
updatedAt: 'updatedAt',
|
|
144
|
+
exportedAt: 'exportedAt'
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
exports.Prisma.NoteScalarFieldEnum = {
|
|
148
|
+
id: 'id',
|
|
149
|
+
title: 'title',
|
|
150
|
+
markdown: 'markdown',
|
|
151
|
+
status: 'status',
|
|
152
|
+
userId: 'userId',
|
|
153
|
+
createdAt: 'createdAt',
|
|
154
|
+
updatedAt: 'updatedAt',
|
|
155
|
+
exportedAt: 'exportedAt'
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
exports.Prisma.ImageScalarFieldEnum = {
|
|
159
|
+
id: 'id',
|
|
160
|
+
path: 'path',
|
|
161
|
+
contentType: 'contentType',
|
|
162
|
+
fileSize: 'fileSize',
|
|
163
|
+
width: 'width',
|
|
164
|
+
height: 'height',
|
|
165
|
+
tags: 'tags',
|
|
166
|
+
description: 'description',
|
|
167
|
+
status: 'status',
|
|
168
|
+
userId: 'userId',
|
|
169
|
+
createdAt: 'createdAt',
|
|
170
|
+
updatedAt: 'updatedAt',
|
|
171
|
+
exportedAt: 'exportedAt'
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
exports.Prisma.BookScalarFieldEnum = {
|
|
175
|
+
id: 'id',
|
|
176
|
+
ISBN: 'ISBN',
|
|
177
|
+
title: 'title',
|
|
178
|
+
googleTitle: 'googleTitle',
|
|
179
|
+
googleSubTitle: 'googleSubTitle',
|
|
180
|
+
googleAuthors: 'googleAuthors',
|
|
181
|
+
googleDescription: 'googleDescription',
|
|
182
|
+
googleImgSrc: 'googleImgSrc',
|
|
183
|
+
googleHref: 'googleHref',
|
|
184
|
+
markdown: 'markdown',
|
|
185
|
+
rating: 'rating',
|
|
186
|
+
tags: 'tags',
|
|
187
|
+
status: 'status',
|
|
188
|
+
userId: 'userId',
|
|
189
|
+
createdAt: 'createdAt',
|
|
190
|
+
updatedAt: 'updatedAt',
|
|
191
|
+
exportedAt: 'exportedAt'
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
exports.Prisma.SortOrder = {
|
|
195
|
+
asc: 'asc',
|
|
196
|
+
desc: 'desc'
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
exports.Prisma.QueryMode = {
|
|
200
|
+
default: 'default',
|
|
201
|
+
insensitive: 'insensitive'
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
exports.Prisma.NullsOrder = {
|
|
205
|
+
first: 'first',
|
|
206
|
+
last: 'last'
|
|
207
|
+
};
|
|
208
|
+
exports.Status = exports.$Enums.Status = {
|
|
209
|
+
UNEXPORTED: 'UNEXPORTED',
|
|
210
|
+
LAST_UPDATED: 'LAST_UPDATED',
|
|
211
|
+
EXPORTED: 'EXPORTED'
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
exports.Prisma.ModelName = {
|
|
215
|
+
Category: 'Category',
|
|
216
|
+
Article: 'Article',
|
|
217
|
+
Note: 'Note',
|
|
218
|
+
Image: 'Image',
|
|
219
|
+
Book: 'Book'
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* This is a stub Prisma Client that will error at runtime if called.
|
|
224
|
+
*/
|
|
225
|
+
class PrismaClient {
|
|
226
|
+
constructor() {
|
|
227
|
+
return new Proxy(this, {
|
|
228
|
+
get(target, prop) {
|
|
229
|
+
let message
|
|
230
|
+
const runtime = getRuntime()
|
|
231
|
+
if (runtime.isEdge) {
|
|
232
|
+
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
233
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
234
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
235
|
+
`;
|
|
236
|
+
} else {
|
|
237
|
+
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message += `
|
|
241
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
|
242
|
+
|
|
243
|
+
throw new Error(message)
|
|
244
|
+
}
|
|
245
|
+
})
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
exports.PrismaClient = PrismaClient
|
|
250
|
+
|
|
251
|
+
Object.assign(exports, Prisma)
|