@s-hirano-ist/s-database 1.5.1 → 1.5.2
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
|
@@ -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/client.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
|
+
const path = require('path')
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Enums
|
|
88
|
+
*/
|
|
89
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
90
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
91
|
+
ReadCommitted: 'ReadCommitted',
|
|
92
|
+
RepeatableRead: 'RepeatableRead',
|
|
93
|
+
Serializable: 'Serializable'
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
exports.Prisma.CategoryScalarFieldEnum = {
|
|
97
|
+
id: 'id',
|
|
98
|
+
name: 'name',
|
|
99
|
+
createdAt: 'createdAt',
|
|
100
|
+
updatedAt: 'updatedAt',
|
|
101
|
+
userId: 'userId'
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.Prisma.ArticleScalarFieldEnum = {
|
|
105
|
+
id: 'id',
|
|
106
|
+
title: 'title',
|
|
107
|
+
url: 'url',
|
|
108
|
+
quote: 'quote',
|
|
109
|
+
ogImageUrl: 'ogImageUrl',
|
|
110
|
+
ogTitle: 'ogTitle',
|
|
111
|
+
ogDescription: 'ogDescription',
|
|
112
|
+
categoryId: 'categoryId',
|
|
113
|
+
status: 'status',
|
|
114
|
+
userId: 'userId',
|
|
115
|
+
createdAt: 'createdAt',
|
|
116
|
+
updatedAt: 'updatedAt',
|
|
117
|
+
exportedAt: 'exportedAt'
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
exports.Prisma.NoteScalarFieldEnum = {
|
|
121
|
+
id: 'id',
|
|
122
|
+
title: 'title',
|
|
123
|
+
markdown: 'markdown',
|
|
124
|
+
status: 'status',
|
|
125
|
+
userId: 'userId',
|
|
126
|
+
createdAt: 'createdAt',
|
|
127
|
+
updatedAt: 'updatedAt',
|
|
128
|
+
exportedAt: 'exportedAt'
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
exports.Prisma.ImageScalarFieldEnum = {
|
|
132
|
+
id: 'id',
|
|
133
|
+
path: 'path',
|
|
134
|
+
contentType: 'contentType',
|
|
135
|
+
fileSize: 'fileSize',
|
|
136
|
+
width: 'width',
|
|
137
|
+
height: 'height',
|
|
138
|
+
tags: 'tags',
|
|
139
|
+
description: 'description',
|
|
140
|
+
status: 'status',
|
|
141
|
+
userId: 'userId',
|
|
142
|
+
createdAt: 'createdAt',
|
|
143
|
+
updatedAt: 'updatedAt',
|
|
144
|
+
exportedAt: 'exportedAt'
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
exports.Prisma.BookScalarFieldEnum = {
|
|
148
|
+
id: 'id',
|
|
149
|
+
ISBN: 'ISBN',
|
|
150
|
+
title: 'title',
|
|
151
|
+
googleTitle: 'googleTitle',
|
|
152
|
+
googleSubTitle: 'googleSubTitle',
|
|
153
|
+
googleAuthors: 'googleAuthors',
|
|
154
|
+
googleDescription: 'googleDescription',
|
|
155
|
+
googleImgSrc: 'googleImgSrc',
|
|
156
|
+
googleHref: 'googleHref',
|
|
157
|
+
markdown: 'markdown',
|
|
158
|
+
rating: 'rating',
|
|
159
|
+
tags: 'tags',
|
|
160
|
+
status: 'status',
|
|
161
|
+
userId: 'userId',
|
|
162
|
+
createdAt: 'createdAt',
|
|
163
|
+
updatedAt: 'updatedAt',
|
|
164
|
+
exportedAt: 'exportedAt'
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
exports.Prisma.SortOrder = {
|
|
168
|
+
asc: 'asc',
|
|
169
|
+
desc: 'desc'
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
exports.Prisma.QueryMode = {
|
|
173
|
+
default: 'default',
|
|
174
|
+
insensitive: 'insensitive'
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.Prisma.NullsOrder = {
|
|
178
|
+
first: 'first',
|
|
179
|
+
last: 'last'
|
|
180
|
+
};
|
|
181
|
+
exports.Status = exports.$Enums.Status = {
|
|
182
|
+
UNEXPORTED: 'UNEXPORTED',
|
|
183
|
+
LAST_UPDATED: 'LAST_UPDATED',
|
|
184
|
+
EXPORTED: 'EXPORTED'
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
exports.Prisma.ModelName = {
|
|
188
|
+
Category: 'Category',
|
|
189
|
+
Article: 'Article',
|
|
190
|
+
Note: 'Note',
|
|
191
|
+
Image: 'Image',
|
|
192
|
+
Book: 'Book'
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Create the Client
|
|
196
|
+
*/
|
|
197
|
+
const config = {
|
|
198
|
+
"previewFeatures": [],
|
|
199
|
+
"clientVersion": "7.2.0",
|
|
200
|
+
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
201
|
+
"activeProvider": "postgresql",
|
|
202
|
+
"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"
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
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\":{}}")
|
|
206
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
207
|
+
config.compilerWasm = {
|
|
208
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
209
|
+
getQueryCompilerWasmModule: async () => {
|
|
210
|
+
const { Buffer } = require('node:buffer')
|
|
211
|
+
const { wasm } = require('./query_compiler_bg.wasm-base64.js')
|
|
212
|
+
const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64')
|
|
213
|
+
|
|
214
|
+
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const PrismaClient = getPrismaClient(config)
|
|
219
|
+
exports.PrismaClient = PrismaClient
|
|
220
|
+
Object.assign(exports, Prisma)
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "prisma-client-7c660d358a6dbbd02540719fead88e547a55bcbf604882cd19893a25f1c8789e",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"types": "index.d.ts",
|
|
5
|
+
"browser": "default.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./client": {
|
|
8
|
+
"require": {
|
|
9
|
+
"node": "./index.js",
|
|
10
|
+
"edge-light": "./edge.js",
|
|
11
|
+
"workerd": "./edge.js",
|
|
12
|
+
"worker": "./edge.js",
|
|
13
|
+
"browser": "./index-browser.js",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"import": {
|
|
17
|
+
"node": "./index.js",
|
|
18
|
+
"edge-light": "./edge.js",
|
|
19
|
+
"workerd": "./edge.js",
|
|
20
|
+
"worker": "./edge.js",
|
|
21
|
+
"browser": "./index-browser.js",
|
|
22
|
+
"default": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"default": "./index.js"
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
".": {
|
|
28
|
+
"require": {
|
|
29
|
+
"node": "./index.js",
|
|
30
|
+
"edge-light": "./edge.js",
|
|
31
|
+
"workerd": "./edge.js",
|
|
32
|
+
"worker": "./edge.js",
|
|
33
|
+
"browser": "./index-browser.js",
|
|
34
|
+
"default": "./index.js"
|
|
35
|
+
},
|
|
36
|
+
"import": {
|
|
37
|
+
"node": "./index.js",
|
|
38
|
+
"edge-light": "./edge.js",
|
|
39
|
+
"workerd": "./edge.js",
|
|
40
|
+
"worker": "./edge.js",
|
|
41
|
+
"browser": "./index-browser.js",
|
|
42
|
+
"default": "./index.js"
|
|
43
|
+
},
|
|
44
|
+
"default": "./index.js"
|
|
45
|
+
},
|
|
46
|
+
"./extension": {
|
|
47
|
+
"types": "./extension.d.ts",
|
|
48
|
+
"require": "./extension.js",
|
|
49
|
+
"import": "./extension.js",
|
|
50
|
+
"default": "./extension.js"
|
|
51
|
+
},
|
|
52
|
+
"./index-browser": {
|
|
53
|
+
"types": "./index.d.ts",
|
|
54
|
+
"require": "./index-browser.js",
|
|
55
|
+
"import": "./index-browser.js",
|
|
56
|
+
"default": "./index-browser.js"
|
|
57
|
+
},
|
|
58
|
+
"./index": {
|
|
59
|
+
"types": "./index.d.ts",
|
|
60
|
+
"require": "./index.js",
|
|
61
|
+
"import": "./index.js",
|
|
62
|
+
"default": "./index.js"
|
|
63
|
+
},
|
|
64
|
+
"./edge": {
|
|
65
|
+
"types": "./edge.d.ts",
|
|
66
|
+
"require": "./edge.js",
|
|
67
|
+
"import": "./edge.js",
|
|
68
|
+
"default": "./edge.js"
|
|
69
|
+
},
|
|
70
|
+
"./runtime/client": {
|
|
71
|
+
"types": "./runtime/client.d.ts",
|
|
72
|
+
"node": {
|
|
73
|
+
"require": "./runtime/client.js",
|
|
74
|
+
"default": "./runtime/client.js"
|
|
75
|
+
},
|
|
76
|
+
"require": "./runtime/client.js",
|
|
77
|
+
"import": "./runtime/client.mjs",
|
|
78
|
+
"default": "./runtime/client.mjs"
|
|
79
|
+
},
|
|
80
|
+
"./runtime/wasm-compiler-edge": {
|
|
81
|
+
"types": "./runtime/wasm-compiler-edge.d.ts",
|
|
82
|
+
"require": "./runtime/wasm-compiler-edge.js",
|
|
83
|
+
"import": "./runtime/wasm-compiler-edge.mjs",
|
|
84
|
+
"default": "./runtime/wasm-compiler-edge.mjs"
|
|
85
|
+
},
|
|
86
|
+
"./runtime/index-browser": {
|
|
87
|
+
"types": "./runtime/index-browser.d.ts",
|
|
88
|
+
"require": "./runtime/index-browser.js",
|
|
89
|
+
"import": "./runtime/index-browser.mjs",
|
|
90
|
+
"default": "./runtime/index-browser.mjs"
|
|
91
|
+
},
|
|
92
|
+
"./generator-build": {
|
|
93
|
+
"require": "./generator-build/index.js",
|
|
94
|
+
"import": "./generator-build/index.js",
|
|
95
|
+
"default": "./generator-build/index.js"
|
|
96
|
+
},
|
|
97
|
+
"./sql": {
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./sql.d.ts",
|
|
100
|
+
"node": "./sql.js",
|
|
101
|
+
"default": "./sql.js"
|
|
102
|
+
},
|
|
103
|
+
"import": {
|
|
104
|
+
"types": "./sql.d.ts",
|
|
105
|
+
"node": "./sql.mjs",
|
|
106
|
+
"default": "./sql.mjs"
|
|
107
|
+
},
|
|
108
|
+
"default": "./sql.js"
|
|
109
|
+
},
|
|
110
|
+
"./*": "./*"
|
|
111
|
+
},
|
|
112
|
+
"version": "7.2.0",
|
|
113
|
+
"sideEffects": false,
|
|
114
|
+
"dependencies": {
|
|
115
|
+
"@prisma/client-runtime-utils": "7.2.0"
|
|
116
|
+
},
|
|
117
|
+
"imports": {
|
|
118
|
+
"#wasm-compiler-loader": {
|
|
119
|
+
"edge-light": "./wasm-edge-light-loader.mjs",
|
|
120
|
+
"workerd": "./wasm-worker-loader.mjs",
|
|
121
|
+
"worker": "./wasm-worker-loader.mjs",
|
|
122
|
+
"default": "./wasm-worker-loader.mjs"
|
|
123
|
+
},
|
|
124
|
+
"#main-entry-point": {
|
|
125
|
+
"require": {
|
|
126
|
+
"node": "./index.js",
|
|
127
|
+
"edge-light": "./edge.js",
|
|
128
|
+
"workerd": "./edge.js",
|
|
129
|
+
"worker": "./edge.js",
|
|
130
|
+
"browser": "./index-browser.js",
|
|
131
|
+
"default": "./index.js"
|
|
132
|
+
},
|
|
133
|
+
"import": {
|
|
134
|
+
"node": "./index.js",
|
|
135
|
+
"edge-light": "./edge.js",
|
|
136
|
+
"workerd": "./edge.js",
|
|
137
|
+
"worker": "./edge.js",
|
|
138
|
+
"browser": "./index-browser.js",
|
|
139
|
+
"default": "./index.js"
|
|
140
|
+
},
|
|
141
|
+
"default": "./index.js"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var h=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var n in t)h(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of M(t))!j.call(e,r)&&r!==n&&h(e,r,{get:()=>t[r],enumerable:!(_=T(t,r))||_.enumerable});return e};var B=e=>O(h({},"__esModule",{value:!0}),e);var xe={};D(xe,{QueryCompiler:()=>F,__wbg_Error_e83987f665cf5504:()=>q,__wbg_Number_bb48ca12f395cd08:()=>C,__wbg_String_8f0eb39a4a4c2f66:()=>k,__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68:()=>W,__wbg___wbindgen_debug_string_df47ffb5e35e6763:()=>V,__wbg___wbindgen_in_bb933bd9e1b3bc0f:()=>z,__wbg___wbindgen_is_object_c818261d21f283a4:()=>L,__wbg___wbindgen_is_string_fbb76cb2940daafd:()=>P,__wbg___wbindgen_is_undefined_2d472862bd29a478:()=>Q,__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147:()=>Y,__wbg___wbindgen_number_get_a20bf9b85341449d:()=>G,__wbg___wbindgen_string_get_e4f06c90489ad01b:()=>J,__wbg___wbindgen_throw_b855445ff6a94295:()=>X,__wbg_entries_e171b586f8f6bdbf:()=>H,__wbg_getTime_14776bfb48a1bff9:()=>K,__wbg_get_7bed016f185add81:()=>Z,__wbg_get_with_ref_key_1dc361bd10053bfe:()=>v,__wbg_instanceof_ArrayBuffer_70beb1189ca63b38:()=>ee,__wbg_instanceof_Uint8Array_20c8e73002f7af98:()=>te,__wbg_isSafeInteger_d216eda7911dde36:()=>ne,__wbg_length_69bca3cb64fc8748:()=>re,__wbg_length_cdd215e10d9dd507:()=>_e,__wbg_new_0_f9740686d739025c:()=>oe,__wbg_new_1acc0b6eea89d040:()=>ce,__wbg_new_5a79be3ab53b8aa5:()=>ie,__wbg_new_68651c719dcda04e:()=>se,__wbg_new_e17d9f43105b08be:()=>ue,__wbg_prototypesetcall_2a6620b6922694b2:()=>fe,__wbg_set_3f1d0b984ed272ed:()=>be,__wbg_set_907fb406c34a251d:()=>de,__wbg_set_c213c871859d6500:()=>ae,__wbg_set_message_82ae475bb413aa5c:()=>ge,__wbg_set_wasm:()=>N,__wbindgen_cast_2241b6af4c4b2941:()=>le,__wbindgen_cast_4625c577ab2ec9ee:()=>we,__wbindgen_cast_9ae0607507abb057:()=>pe,__wbindgen_cast_d6cd19b81560fd6e:()=>ye,__wbindgen_init_externref_table:()=>me});module.exports=B(xe);var A=()=>{};A.prototype=A;let o;function N(e){o=e}let p=null;function a(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(o.memory.buffer)),p}let y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});y.decode();const U=2146435072;let S=0;function R(e,t){return S+=t,S>=U&&(y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),y.decode(),S=t),y.decode(a().subarray(e,e+t))}function m(e,t){return e=e>>>0,R(e,t)}let f=0;const g=new TextEncoder;"encodeInto"in g||(g.encodeInto=function(e,t){const n=g.encode(e);return t.set(n),{read:e.length,written:n.length}});function l(e,t,n){if(n===void 0){const i=g.encode(e),d=t(i.length,1)>>>0;return a().subarray(d,d+i.length).set(i),f=i.length,d}let _=e.length,r=t(_,1)>>>0;const s=a();let c=0;for(;c<_;c++){const i=e.charCodeAt(c);if(i>127)break;s[r+c]=i}if(c!==_){c!==0&&(e=e.slice(c)),r=n(r,_,_=c+e.length*3,1)>>>0;const i=a().subarray(r+c,r+_),d=g.encodeInto(e,i);c+=d.written,r=n(r,_,c,1)>>>0}return f=c,r}let b=null;function u(){return(b===null||b.buffer.detached===!0||b.buffer.detached===void 0&&b.buffer!==o.memory.buffer)&&(b=new DataView(o.memory.buffer)),b}function x(e){return e==null}function I(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const r=e.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){const r=e.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(e)){const r=e.length;let s="[";r>0&&(s+=I(e[0]));for(let c=1;c<r;c++)s+=", "+I(e[c]);return s+="]",s}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(n&&n.length>1)_=n[1];else return toString.call(e);if(_=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:_}function $(e,t){return e=e>>>0,a().subarray(e/1,e/1+t)}function w(e){const t=o.__wbindgen_externrefs.get(e);return o.__externref_table_dealloc(e),t}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_querycompiler_free(e>>>0,1));class F{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();o.__wbg_querycompiler_free(t,0)}compileBatch(t){const n=l(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=f,r=o.querycompiler_compileBatch(this.__wbg_ptr,n,_);if(r[2])throw w(r[1]);return w(r[0])}constructor(t){const n=o.querycompiler_new(t);if(n[2])throw w(n[1]);return this.__wbg_ptr=n[0]>>>0,E.register(this,this.__wbg_ptr,this),this}compile(t){const n=l(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=f,r=o.querycompiler_compile(this.__wbg_ptr,n,_);if(r[2])throw w(r[1]);return w(r[0])}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);function q(e,t){return Error(m(e,t))}function C(e){return Number(e)}function k(e,t){const n=String(t),_=l(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;u().setInt32(e+4*1,r,!0),u().setInt32(e+4*0,_,!0)}function W(e){const t=e,n=typeof t=="boolean"?t:void 0;return x(n)?16777215:n?1:0}function V(e,t){const n=I(t),_=l(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;u().setInt32(e+4*1,r,!0),u().setInt32(e+4*0,_,!0)}function z(e,t){return e in t}function L(e){const t=e;return typeof t=="object"&&t!==null}function P(e){return typeof e=="string"}function Q(e){return e===void 0}function Y(e,t){return e==t}function G(e,t){const n=t,_=typeof n=="number"?n:void 0;u().setFloat64(e+8*1,x(_)?0:_,!0),u().setInt32(e+4*0,!x(_),!0)}function J(e,t){const n=t,_=typeof n=="string"?n:void 0;var r=x(_)?0:l(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=f;u().setInt32(e+4*1,s,!0),u().setInt32(e+4*0,r,!0)}function X(e,t){throw new Error(m(e,t))}function H(e){return Object.entries(e)}function K(e){return e.getTime()}function Z(e,t){return e[t>>>0]}function v(e,t){return e[t]}function ee(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function te(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function ne(e){return Number.isSafeInteger(e)}function re(e){return e.length}function _e(e){return e.length}function oe(){return new Date}function ce(){return new Object}function ie(e){return new Uint8Array(e)}function se(){return new Map}function ue(){return new Array}function fe(e,t,n){Uint8Array.prototype.set.call($(e,t),n)}function be(e,t,n){e[t]=n}function de(e,t,n){return e.set(t,n)}function ae(e,t,n){e[t>>>0]=n}function ge(e,t){global.PRISMA_WASM_PANIC_REGISTRY.set_message(m(e,t))}function le(e,t){return m(e,t)}function we(e){return BigInt.asUintN(64,e)}function pe(e){return e}function ye(e){return e}function me(){const e=o.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}0&&(module.exports={QueryCompiler,__wbg_Error_e83987f665cf5504,__wbg_Number_bb48ca12f395cd08,__wbg_String_8f0eb39a4a4c2f66,__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68,__wbg___wbindgen_debug_string_df47ffb5e35e6763,__wbg___wbindgen_in_bb933bd9e1b3bc0f,__wbg___wbindgen_is_object_c818261d21f283a4,__wbg___wbindgen_is_string_fbb76cb2940daafd,__wbg___wbindgen_is_undefined_2d472862bd29a478,__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147,__wbg___wbindgen_number_get_a20bf9b85341449d,__wbg___wbindgen_string_get_e4f06c90489ad01b,__wbg___wbindgen_throw_b855445ff6a94295,__wbg_entries_e171b586f8f6bdbf,__wbg_getTime_14776bfb48a1bff9,__wbg_get_7bed016f185add81,__wbg_get_with_ref_key_1dc361bd10053bfe,__wbg_instanceof_ArrayBuffer_70beb1189ca63b38,__wbg_instanceof_Uint8Array_20c8e73002f7af98,__wbg_isSafeInteger_d216eda7911dde36,__wbg_length_69bca3cb64fc8748,__wbg_length_cdd215e10d9dd507,__wbg_new_0_f9740686d739025c,__wbg_new_1acc0b6eea89d040,__wbg_new_5a79be3ab53b8aa5,__wbg_new_68651c719dcda04e,__wbg_new_e17d9f43105b08be,__wbg_prototypesetcall_2a6620b6922694b2,__wbg_set_3f1d0b984ed272ed,__wbg_set_907fb406c34a251d,__wbg_set_c213c871859d6500,__wbg_set_message_82ae475bb413aa5c,__wbg_set_wasm,__wbindgen_cast_2241b6af4c4b2941,__wbindgen_cast_4625c577ab2ec9ee,__wbindgen_cast_9ae0607507abb057,__wbindgen_cast_d6cd19b81560fd6e,__wbindgen_init_externref_table});
|
|
Binary file
|