lang-database 7.3.0 → 8.0.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/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +5 -4
- package/generated/prisma-client/index-browser.js +0 -243
- package/generated/prisma-client/index.d.ts +0 -17254
- package/generated/prisma-client/index.js +0 -291
- package/generated/prisma-client/package.json +0 -6
- package/generated/prisma-client/query_engine-windows.dll.node +0 -0
- package/generated/prisma-client/runtime/edge.js +0 -98
- package/generated/prisma-client/runtime/index-browser.d.ts +0 -323
- package/generated/prisma-client/runtime/index-browser.js +0 -2479
- package/generated/prisma-client/runtime/index.d.ts +0 -1566
- package/generated/prisma-client/runtime/index.js +0 -31190
- package/generated/prisma-client/schema.prisma +0 -165
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@prisma/client'
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@prisma/client')
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lang-database",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"generate": "prisma generate",
|
|
9
9
|
"push-dev-dbs": "npm run push-dev-db && npm run push-local-db && npm run push-test-db",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"push-dev-db": "copy .env-dev .env && prisma db push --skip-generate",
|
|
12
12
|
"push-local-db": "copy .env-local .env && prisma db push --skip-generate",
|
|
13
13
|
"push-test-db": "copy .env-test .env && prisma db push --skip-generate",
|
|
14
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
15
|
+
"postinstall": "npm run generate"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
const {
|
|
5
|
-
Decimal,
|
|
6
|
-
objectEnumValues,
|
|
7
|
-
makeStrictEnum
|
|
8
|
-
} = require('./runtime/index-browser')
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const Prisma = {}
|
|
12
|
-
|
|
13
|
-
exports.Prisma = Prisma
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Prisma Client JS version: 4.3.1
|
|
17
|
-
* Query Engine version: c875e43600dfe042452e0b868f7a48b817b9640b
|
|
18
|
-
*/
|
|
19
|
-
Prisma.prismaVersion = {
|
|
20
|
-
client: "4.3.1",
|
|
21
|
-
engine: "c875e43600dfe042452e0b868f7a48b817b9640b"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
Prisma.PrismaClientKnownRequestError = () => {
|
|
25
|
-
throw new Error(`PrismaClientKnownRequestError is unable to be run in the browser.
|
|
26
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
27
|
-
)};
|
|
28
|
-
Prisma.PrismaClientUnknownRequestError = () => {
|
|
29
|
-
throw new Error(`PrismaClientUnknownRequestError is unable to be run in the browser.
|
|
30
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
31
|
-
)}
|
|
32
|
-
Prisma.PrismaClientRustPanicError = () => {
|
|
33
|
-
throw new Error(`PrismaClientRustPanicError is unable to be run in the browser.
|
|
34
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
35
|
-
)}
|
|
36
|
-
Prisma.PrismaClientInitializationError = () => {
|
|
37
|
-
throw new Error(`PrismaClientInitializationError is unable to be run in the browser.
|
|
38
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
39
|
-
)}
|
|
40
|
-
Prisma.PrismaClientValidationError = () => {
|
|
41
|
-
throw new Error(`PrismaClientValidationError is unable to be run in the browser.
|
|
42
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
43
|
-
)}
|
|
44
|
-
Prisma.NotFoundError = () => {
|
|
45
|
-
throw new Error(`NotFoundError is unable to be run in the browser.
|
|
46
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
47
|
-
)}
|
|
48
|
-
Prisma.Decimal = Decimal
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Re-export of sql-template-tag
|
|
52
|
-
*/
|
|
53
|
-
Prisma.sql = () => {
|
|
54
|
-
throw new Error(`sqltag is unable to be run in the browser.
|
|
55
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
56
|
-
)}
|
|
57
|
-
Prisma.empty = () => {
|
|
58
|
-
throw new Error(`empty is unable to be run in the browser.
|
|
59
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
60
|
-
)}
|
|
61
|
-
Prisma.join = () => {
|
|
62
|
-
throw new Error(`join is unable to be run in the browser.
|
|
63
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
64
|
-
)}
|
|
65
|
-
Prisma.raw = () => {
|
|
66
|
-
throw new Error(`raw is unable to be run in the browser.
|
|
67
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
68
|
-
)}
|
|
69
|
-
Prisma.validator = () => (val) => val
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Shorthand utilities for JSON filtering
|
|
73
|
-
*/
|
|
74
|
-
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
75
|
-
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
76
|
-
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
77
|
-
|
|
78
|
-
Prisma.NullTypes = {
|
|
79
|
-
DbNull: objectEnumValues.classes.DbNull,
|
|
80
|
-
JsonNull: objectEnumValues.classes.JsonNull,
|
|
81
|
-
AnyNull: objectEnumValues.classes.AnyNull
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Enums
|
|
86
|
-
*/
|
|
87
|
-
// Based on
|
|
88
|
-
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
|
89
|
-
function makeEnum(x) { return x; }
|
|
90
|
-
|
|
91
|
-
exports.Prisma.AchievementScalarFieldEnum = makeEnum({
|
|
92
|
-
id: 'id',
|
|
93
|
-
userId: 'userId',
|
|
94
|
-
badge: 'badge',
|
|
95
|
-
type: 'type',
|
|
96
|
-
info: 'info',
|
|
97
|
-
timestamp: 'timestamp',
|
|
98
|
-
dismissed: 'dismissed'
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
exports.Prisma.AnswerScalarFieldEnum = makeEnum({
|
|
102
|
-
id: 'id',
|
|
103
|
-
userId: 'userId',
|
|
104
|
-
cardId: 'cardId',
|
|
105
|
-
status: 'status',
|
|
106
|
-
timestamp: 'timestamp'
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
exports.Prisma.CardScalarFieldEnum = makeEnum({
|
|
110
|
-
id: 'id',
|
|
111
|
-
packId: 'packId',
|
|
112
|
-
front: 'front',
|
|
113
|
-
back: 'back',
|
|
114
|
-
lastUpdate: 'lastUpdate',
|
|
115
|
-
speechGenerated: 'speechGenerated'
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
exports.Prisma.CategoryScalarFieldEnum = makeEnum({
|
|
119
|
-
id: 'id',
|
|
120
|
-
name: 'name'
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
exports.Prisma.GoogleUserScalarFieldEnum = makeEnum({
|
|
124
|
-
id: 'id',
|
|
125
|
-
userId: 'userId'
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
exports.Prisma.PackScalarFieldEnum = makeEnum({
|
|
129
|
-
id: 'id',
|
|
130
|
-
teacherId: 'teacherId',
|
|
131
|
-
name: 'name',
|
|
132
|
-
shortDescription: 'shortDescription',
|
|
133
|
-
longDescription: 'longDescription',
|
|
134
|
-
categoryId: 'categoryId',
|
|
135
|
-
published: 'published',
|
|
136
|
-
currentPrice: 'currentPrice',
|
|
137
|
-
public: 'public'
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
exports.Prisma.PurchaseScalarFieldEnum = makeEnum({
|
|
141
|
-
id: 'id',
|
|
142
|
-
userId: 'userId',
|
|
143
|
-
packId: 'packId',
|
|
144
|
-
currency: 'currency',
|
|
145
|
-
amount: 'amount',
|
|
146
|
-
orderDate: 'orderDate',
|
|
147
|
-
paymentDate: 'paymentDate',
|
|
148
|
-
status: 'status'
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
exports.Prisma.QueryMode = makeEnum({
|
|
152
|
-
default: 'default',
|
|
153
|
-
insensitive: 'insensitive'
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
exports.Prisma.SortOrder = makeEnum({
|
|
157
|
-
asc: 'asc',
|
|
158
|
-
desc: 'desc'
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
exports.Prisma.TeacherScalarFieldEnum = makeEnum({
|
|
162
|
-
id: 'id',
|
|
163
|
-
email: 'email',
|
|
164
|
-
name: 'name',
|
|
165
|
-
password: 'password'
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
exports.Prisma.TeamScalarFieldEnum = makeEnum({
|
|
169
|
-
id: 'id',
|
|
170
|
-
name: 'name',
|
|
171
|
-
emailPattern: 'emailPattern',
|
|
172
|
-
userCount: 'userCount',
|
|
173
|
-
subscriptionExpire: 'subscriptionExpire'
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
177
|
-
ReadUncommitted: 'ReadUncommitted',
|
|
178
|
-
ReadCommitted: 'ReadCommitted',
|
|
179
|
-
RepeatableRead: 'RepeatableRead',
|
|
180
|
-
Serializable: 'Serializable'
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
exports.Prisma.UserCardScalarFieldEnum = makeEnum({
|
|
184
|
-
userId: 'userId',
|
|
185
|
-
cardId: 'cardId',
|
|
186
|
-
currentInterval: 'currentInterval',
|
|
187
|
-
dueDate: 'dueDate',
|
|
188
|
-
done: 'done'
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
exports.Prisma.UserScalarFieldEnum = makeEnum({
|
|
192
|
-
id: 'id',
|
|
193
|
-
email: 'email',
|
|
194
|
-
timestamp: 'timestamp',
|
|
195
|
-
name: 'name',
|
|
196
|
-
password: 'password',
|
|
197
|
-
subscriptionExpire: 'subscriptionExpire',
|
|
198
|
-
teamId: 'teamId',
|
|
199
|
-
passwordActivated: 'passwordActivated'
|
|
200
|
-
});
|
|
201
|
-
exports.AchievementType = makeEnum({
|
|
202
|
-
Today15Min: 'Today15Min',
|
|
203
|
-
Weekly15Min: 'Weekly15Min',
|
|
204
|
-
Monthly15Min: 'Monthly15Min',
|
|
205
|
-
CardDone: 'CardDone',
|
|
206
|
-
FiveCardsDone: 'FiveCardsDone',
|
|
207
|
-
DeckDone: 'DeckDone',
|
|
208
|
-
DeckAlreadyKnown: 'DeckAlreadyKnown'
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
exports.PurchaseStatus = makeEnum({
|
|
212
|
-
PENDING: 'PENDING',
|
|
213
|
-
APPROVED: 'APPROVED'
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
exports.Prisma.ModelName = makeEnum({
|
|
217
|
-
Card: 'Card',
|
|
218
|
-
UserCard: 'UserCard',
|
|
219
|
-
Category: 'Category',
|
|
220
|
-
Pack: 'Pack',
|
|
221
|
-
User: 'User',
|
|
222
|
-
Achievement: 'Achievement',
|
|
223
|
-
Team: 'Team',
|
|
224
|
-
Teacher: 'Teacher',
|
|
225
|
-
GoogleUser: 'GoogleUser',
|
|
226
|
-
Answer: 'Answer',
|
|
227
|
-
Purchase: 'Purchase'
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Create the Client
|
|
232
|
-
*/
|
|
233
|
-
class PrismaClient {
|
|
234
|
-
constructor() {
|
|
235
|
-
throw new Error(
|
|
236
|
-
`PrismaClient is unable to be run in the browser.
|
|
237
|
-
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
238
|
-
)
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
exports.PrismaClient = PrismaClient
|
|
242
|
-
|
|
243
|
-
Object.assign(exports, Prisma)
|