lang-database 7.2.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 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": "7.2.0",
3
+ "version": "8.0.0",
4
4
  "description": "",
5
- "main": "generated/prisma-client/index.js",
6
- "types": "generated/prisma-client/index.d.ts",
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",
package/schema.prisma CHANGED
@@ -76,6 +76,7 @@ model User {
76
76
  packs Pack[]
77
77
  userCards UserCard[]
78
78
  answers Answer[]
79
+ subscriptionExpire DateTime?
79
80
  team Team? @relation(fields: [teamId], references: [id])
80
81
  teamId String?
81
82
  passwordActivated Boolean @default(false)
@@ -1,242 +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
- teamId: 'teamId',
198
- passwordActivated: 'passwordActivated'
199
- });
200
- exports.AchievementType = makeEnum({
201
- Today15Min: 'Today15Min',
202
- Weekly15Min: 'Weekly15Min',
203
- Monthly15Min: 'Monthly15Min',
204
- CardDone: 'CardDone',
205
- FiveCardsDone: 'FiveCardsDone',
206
- DeckDone: 'DeckDone',
207
- DeckAlreadyKnown: 'DeckAlreadyKnown'
208
- });
209
-
210
- exports.PurchaseStatus = makeEnum({
211
- PENDING: 'PENDING',
212
- APPROVED: 'APPROVED'
213
- });
214
-
215
- exports.Prisma.ModelName = makeEnum({
216
- Card: 'Card',
217
- UserCard: 'UserCard',
218
- Category: 'Category',
219
- Pack: 'Pack',
220
- User: 'User',
221
- Achievement: 'Achievement',
222
- Team: 'Team',
223
- Teacher: 'Teacher',
224
- GoogleUser: 'GoogleUser',
225
- Answer: 'Answer',
226
- Purchase: 'Purchase'
227
- });
228
-
229
- /**
230
- * Create the Client
231
- */
232
- class PrismaClient {
233
- constructor() {
234
- throw new Error(
235
- `PrismaClient is unable to be run in the browser.
236
- In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
237
- )
238
- }
239
- }
240
- exports.PrismaClient = PrismaClient
241
-
242
- Object.assign(exports, Prisma)