@s-hirano-ist/s-database 1.5.0 → 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
|
@@ -1,185 +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
|
-
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.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
|
-
|
|
18
|
-
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
19
|
-
|
|
20
|
-
export type * from '../models'
|
|
21
|
-
export type * from './prismaNamespace'
|
|
22
|
-
|
|
23
|
-
export const Decimal = runtime.Decimal
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export const NullTypes = {
|
|
27
|
-
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
28
|
-
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
29
|
-
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
33
|
-
*
|
|
34
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
35
|
-
*/
|
|
36
|
-
export const DbNull = runtime.DbNull
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
40
|
-
*
|
|
41
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
42
|
-
*/
|
|
43
|
-
export const JsonNull = runtime.JsonNull
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
47
|
-
*
|
|
48
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
49
|
-
*/
|
|
50
|
-
export const AnyNull = runtime.AnyNull
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export const ModelName = {
|
|
54
|
-
Category: 'Category',
|
|
55
|
-
Article: 'Article',
|
|
56
|
-
Note: 'Note',
|
|
57
|
-
Image: 'Image',
|
|
58
|
-
Book: 'Book'
|
|
59
|
-
} as const
|
|
60
|
-
|
|
61
|
-
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
* Enums
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
export const TransactionIsolationLevel = {
|
|
68
|
-
ReadUncommitted: 'ReadUncommitted',
|
|
69
|
-
ReadCommitted: 'ReadCommitted',
|
|
70
|
-
RepeatableRead: 'RepeatableRead',
|
|
71
|
-
Serializable: 'Serializable'
|
|
72
|
-
} as const
|
|
73
|
-
|
|
74
|
-
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export const CategoryScalarFieldEnum = {
|
|
78
|
-
id: 'id',
|
|
79
|
-
name: 'name',
|
|
80
|
-
createdAt: 'createdAt',
|
|
81
|
-
updatedAt: 'updatedAt',
|
|
82
|
-
userId: 'userId'
|
|
83
|
-
} as const
|
|
84
|
-
|
|
85
|
-
export type CategoryScalarFieldEnum = (typeof CategoryScalarFieldEnum)[keyof typeof CategoryScalarFieldEnum]
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export const ArticleScalarFieldEnum = {
|
|
89
|
-
id: 'id',
|
|
90
|
-
title: 'title',
|
|
91
|
-
url: 'url',
|
|
92
|
-
quote: 'quote',
|
|
93
|
-
ogImageUrl: 'ogImageUrl',
|
|
94
|
-
ogTitle: 'ogTitle',
|
|
95
|
-
ogDescription: 'ogDescription',
|
|
96
|
-
categoryId: 'categoryId',
|
|
97
|
-
status: 'status',
|
|
98
|
-
userId: 'userId',
|
|
99
|
-
createdAt: 'createdAt',
|
|
100
|
-
updatedAt: 'updatedAt',
|
|
101
|
-
exportedAt: 'exportedAt'
|
|
102
|
-
} as const
|
|
103
|
-
|
|
104
|
-
export type ArticleScalarFieldEnum = (typeof ArticleScalarFieldEnum)[keyof typeof ArticleScalarFieldEnum]
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export const NoteScalarFieldEnum = {
|
|
108
|
-
id: 'id',
|
|
109
|
-
title: 'title',
|
|
110
|
-
markdown: 'markdown',
|
|
111
|
-
status: 'status',
|
|
112
|
-
userId: 'userId',
|
|
113
|
-
createdAt: 'createdAt',
|
|
114
|
-
updatedAt: 'updatedAt',
|
|
115
|
-
exportedAt: 'exportedAt'
|
|
116
|
-
} as const
|
|
117
|
-
|
|
118
|
-
export type NoteScalarFieldEnum = (typeof NoteScalarFieldEnum)[keyof typeof NoteScalarFieldEnum]
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
export const ImageScalarFieldEnum = {
|
|
122
|
-
id: 'id',
|
|
123
|
-
path: 'path',
|
|
124
|
-
contentType: 'contentType',
|
|
125
|
-
fileSize: 'fileSize',
|
|
126
|
-
width: 'width',
|
|
127
|
-
height: 'height',
|
|
128
|
-
tags: 'tags',
|
|
129
|
-
description: 'description',
|
|
130
|
-
status: 'status',
|
|
131
|
-
userId: 'userId',
|
|
132
|
-
createdAt: 'createdAt',
|
|
133
|
-
updatedAt: 'updatedAt',
|
|
134
|
-
exportedAt: 'exportedAt'
|
|
135
|
-
} as const
|
|
136
|
-
|
|
137
|
-
export type ImageScalarFieldEnum = (typeof ImageScalarFieldEnum)[keyof typeof ImageScalarFieldEnum]
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
export const BookScalarFieldEnum = {
|
|
141
|
-
id: 'id',
|
|
142
|
-
ISBN: 'ISBN',
|
|
143
|
-
title: 'title',
|
|
144
|
-
googleTitle: 'googleTitle',
|
|
145
|
-
googleSubTitle: 'googleSubTitle',
|
|
146
|
-
googleAuthors: 'googleAuthors',
|
|
147
|
-
googleDescription: 'googleDescription',
|
|
148
|
-
googleImgSrc: 'googleImgSrc',
|
|
149
|
-
googleHref: 'googleHref',
|
|
150
|
-
markdown: 'markdown',
|
|
151
|
-
rating: 'rating',
|
|
152
|
-
tags: 'tags',
|
|
153
|
-
status: 'status',
|
|
154
|
-
userId: 'userId',
|
|
155
|
-
createdAt: 'createdAt',
|
|
156
|
-
updatedAt: 'updatedAt',
|
|
157
|
-
exportedAt: 'exportedAt'
|
|
158
|
-
} as const
|
|
159
|
-
|
|
160
|
-
export type BookScalarFieldEnum = (typeof BookScalarFieldEnum)[keyof typeof BookScalarFieldEnum]
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
export const SortOrder = {
|
|
164
|
-
asc: 'asc',
|
|
165
|
-
desc: 'desc'
|
|
166
|
-
} as const
|
|
167
|
-
|
|
168
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export const QueryMode = {
|
|
172
|
-
default: 'default',
|
|
173
|
-
insensitive: 'insensitive'
|
|
174
|
-
} as const
|
|
175
|
-
|
|
176
|
-
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
export const NullsOrder = {
|
|
180
|
-
first: 'first',
|
|
181
|
-
last: 'last'
|
|
182
|
-
} as const
|
|
183
|
-
|
|
184
|
-
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
185
|
-
|