lang-database 5.1.0 → 6.1.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.
|
@@ -21,6 +21,7 @@ export type Card = {
|
|
|
21
21
|
packId: string
|
|
22
22
|
front: string
|
|
23
23
|
back: string
|
|
24
|
+
lastUpdate: Date
|
|
24
25
|
speechGenerated: boolean
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -74,6 +75,20 @@ export type User = {
|
|
|
74
75
|
passwordActivated: boolean
|
|
75
76
|
}
|
|
76
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Model Achivement
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export type Achivement = {
|
|
83
|
+
id: string
|
|
84
|
+
userId: string
|
|
85
|
+
badge: boolean
|
|
86
|
+
type: AchivementType
|
|
87
|
+
info: string
|
|
88
|
+
timestamp: Date
|
|
89
|
+
dismissed: boolean
|
|
90
|
+
}
|
|
91
|
+
|
|
77
92
|
/**
|
|
78
93
|
* Model Team
|
|
79
94
|
*
|
|
@@ -141,6 +156,17 @@ export type Purchase = {
|
|
|
141
156
|
// Based on
|
|
142
157
|
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
|
143
158
|
|
|
159
|
+
export const AchivementType: {
|
|
160
|
+
Today15Min: 'Today15Min',
|
|
161
|
+
Weekly15Min: 'Weekly15Min',
|
|
162
|
+
Monthly15Min: 'Monthly15Min',
|
|
163
|
+
WordDone: 'WordDone',
|
|
164
|
+
DeckDone: 'DeckDone'
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type AchivementType = (typeof AchivementType)[keyof typeof AchivementType]
|
|
168
|
+
|
|
169
|
+
|
|
144
170
|
export const PurchaseStatus: {
|
|
145
171
|
PENDING: 'PENDING',
|
|
146
172
|
APPROVED: 'APPROVED'
|
|
@@ -339,6 +365,16 @@ export class PrismaClient<
|
|
|
339
365
|
*/
|
|
340
366
|
get user(): Prisma.UserDelegate<GlobalReject>;
|
|
341
367
|
|
|
368
|
+
/**
|
|
369
|
+
* `prisma.achivement`: Exposes CRUD operations for the **Achivement** model.
|
|
370
|
+
* Example usage:
|
|
371
|
+
* ```ts
|
|
372
|
+
* // Fetch zero or more Achivements
|
|
373
|
+
* const achivements = await prisma.achivement.findMany()
|
|
374
|
+
* ```
|
|
375
|
+
*/
|
|
376
|
+
get achivement(): Prisma.AchivementDelegate<GlobalReject>;
|
|
377
|
+
|
|
342
378
|
/**
|
|
343
379
|
* `prisma.team`: Exposes CRUD operations for the **Team** model.
|
|
344
380
|
* Example usage:
|
|
@@ -866,6 +902,7 @@ export namespace Prisma {
|
|
|
866
902
|
Category: 'Category',
|
|
867
903
|
Pack: 'Pack',
|
|
868
904
|
User: 'User',
|
|
905
|
+
Achivement: 'Achivement',
|
|
869
906
|
Team: 'Team',
|
|
870
907
|
Teacher: 'Teacher',
|
|
871
908
|
GoogleUser: 'GoogleUser',
|
|
@@ -1188,6 +1225,7 @@ export namespace Prisma {
|
|
|
1188
1225
|
|
|
1189
1226
|
|
|
1190
1227
|
export type UserCountOutputType = {
|
|
1228
|
+
achivements: number
|
|
1191
1229
|
purchases: number
|
|
1192
1230
|
packs: number
|
|
1193
1231
|
userCards: number
|
|
@@ -1195,6 +1233,7 @@ export namespace Prisma {
|
|
|
1195
1233
|
}
|
|
1196
1234
|
|
|
1197
1235
|
export type UserCountOutputTypeSelect = {
|
|
1236
|
+
achivements?: boolean
|
|
1198
1237
|
purchases?: boolean
|
|
1199
1238
|
packs?: boolean
|
|
1200
1239
|
userCards?: boolean
|
|
@@ -1357,6 +1396,7 @@ export namespace Prisma {
|
|
|
1357
1396
|
packId: string | null
|
|
1358
1397
|
front: string | null
|
|
1359
1398
|
back: string | null
|
|
1399
|
+
lastUpdate: Date | null
|
|
1360
1400
|
speechGenerated: boolean | null
|
|
1361
1401
|
}
|
|
1362
1402
|
|
|
@@ -1365,6 +1405,7 @@ export namespace Prisma {
|
|
|
1365
1405
|
packId: string | null
|
|
1366
1406
|
front: string | null
|
|
1367
1407
|
back: string | null
|
|
1408
|
+
lastUpdate: Date | null
|
|
1368
1409
|
speechGenerated: boolean | null
|
|
1369
1410
|
}
|
|
1370
1411
|
|
|
@@ -1373,6 +1414,7 @@ export namespace Prisma {
|
|
|
1373
1414
|
packId: number
|
|
1374
1415
|
front: number
|
|
1375
1416
|
back: number
|
|
1417
|
+
lastUpdate: number
|
|
1376
1418
|
speechGenerated: number
|
|
1377
1419
|
_all: number
|
|
1378
1420
|
}
|
|
@@ -1383,6 +1425,7 @@ export namespace Prisma {
|
|
|
1383
1425
|
packId?: true
|
|
1384
1426
|
front?: true
|
|
1385
1427
|
back?: true
|
|
1428
|
+
lastUpdate?: true
|
|
1386
1429
|
speechGenerated?: true
|
|
1387
1430
|
}
|
|
1388
1431
|
|
|
@@ -1391,6 +1434,7 @@ export namespace Prisma {
|
|
|
1391
1434
|
packId?: true
|
|
1392
1435
|
front?: true
|
|
1393
1436
|
back?: true
|
|
1437
|
+
lastUpdate?: true
|
|
1394
1438
|
speechGenerated?: true
|
|
1395
1439
|
}
|
|
1396
1440
|
|
|
@@ -1399,6 +1443,7 @@ export namespace Prisma {
|
|
|
1399
1443
|
packId?: true
|
|
1400
1444
|
front?: true
|
|
1401
1445
|
back?: true
|
|
1446
|
+
lastUpdate?: true
|
|
1402
1447
|
speechGenerated?: true
|
|
1403
1448
|
_all?: true
|
|
1404
1449
|
}
|
|
@@ -1486,6 +1531,7 @@ export namespace Prisma {
|
|
|
1486
1531
|
packId: string
|
|
1487
1532
|
front: string
|
|
1488
1533
|
back: string
|
|
1534
|
+
lastUpdate: Date
|
|
1489
1535
|
speechGenerated: boolean
|
|
1490
1536
|
_count: CardCountAggregateOutputType | null
|
|
1491
1537
|
_min: CardMinAggregateOutputType | null
|
|
@@ -1512,6 +1558,7 @@ export namespace Prisma {
|
|
|
1512
1558
|
packId?: boolean
|
|
1513
1559
|
front?: boolean
|
|
1514
1560
|
back?: boolean
|
|
1561
|
+
lastUpdate?: boolean
|
|
1515
1562
|
userCards?: boolean | UserCardFindManyArgs
|
|
1516
1563
|
speechGenerated?: boolean
|
|
1517
1564
|
_count?: boolean | CardCountOutputTypeArgs
|
|
@@ -5349,6 +5396,7 @@ export namespace Prisma {
|
|
|
5349
5396
|
name?: boolean
|
|
5350
5397
|
password?: boolean
|
|
5351
5398
|
googleUser?: boolean | GoogleUserArgs
|
|
5399
|
+
achivements?: boolean | AchivementFindManyArgs
|
|
5352
5400
|
purchases?: boolean | PurchaseFindManyArgs
|
|
5353
5401
|
packs?: boolean | PackFindManyArgs
|
|
5354
5402
|
userCards?: boolean | UserCardFindManyArgs
|
|
@@ -5361,6 +5409,7 @@ export namespace Prisma {
|
|
|
5361
5409
|
|
|
5362
5410
|
export type UserInclude = {
|
|
5363
5411
|
googleUser?: boolean | GoogleUserArgs
|
|
5412
|
+
achivements?: boolean | AchivementFindManyArgs
|
|
5364
5413
|
purchases?: boolean | PurchaseFindManyArgs
|
|
5365
5414
|
packs?: boolean | PackFindManyArgs
|
|
5366
5415
|
userCards?: boolean | UserCardFindManyArgs
|
|
@@ -5381,6 +5430,7 @@ export namespace Prisma {
|
|
|
5381
5430
|
? User & {
|
|
5382
5431
|
[P in TrueKeys<S['include']>]:
|
|
5383
5432
|
P extends 'googleUser' ? GoogleUserGetPayload<Exclude<S['include'], undefined | null>[P]> | null :
|
|
5433
|
+
P extends 'achivements' ? Array < AchivementGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
5384
5434
|
P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
5385
5435
|
P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
5386
5436
|
P extends 'userCards' ? Array < UserCardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
@@ -5392,6 +5442,7 @@ export namespace Prisma {
|
|
|
5392
5442
|
? {
|
|
5393
5443
|
[P in TrueKeys<S['select']>]:
|
|
5394
5444
|
P extends 'googleUser' ? GoogleUserGetPayload<Exclude<S['select'], undefined | null>[P]> | null :
|
|
5445
|
+
P extends 'achivements' ? Array < AchivementGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
5395
5446
|
P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
5396
5447
|
P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
5397
5448
|
P extends 'userCards' ? Array < UserCardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
@@ -5774,6 +5825,8 @@ export namespace Prisma {
|
|
|
5774
5825
|
|
|
5775
5826
|
googleUser<T extends GoogleUserArgs = {}>(args?: Subset<T, GoogleUserArgs>): CheckSelect<T, Prisma__GoogleUserClient<GoogleUser | null >, Prisma__GoogleUserClient<GoogleUserGetPayload<T> | null >>;
|
|
5776
5827
|
|
|
5828
|
+
achivements<T extends AchivementFindManyArgs = {}>(args?: Subset<T, AchivementFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Achivement>>, PrismaPromise<Array<AchivementGetPayload<T>>>>;
|
|
5829
|
+
|
|
5777
5830
|
purchases<T extends PurchaseFindManyArgs = {}>(args?: Subset<T, PurchaseFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Purchase>>, PrismaPromise<Array<PurchaseGetPayload<T>>>>;
|
|
5778
5831
|
|
|
5779
5832
|
packs<T extends PackFindManyArgs = {}>(args?: Subset<T, PackFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Pack>>, PrismaPromise<Array<PackGetPayload<T>>>>;
|
|
@@ -6139,360 +6192,334 @@ export namespace Prisma {
|
|
|
6139
6192
|
|
|
6140
6193
|
|
|
6141
6194
|
/**
|
|
6142
|
-
* Model
|
|
6195
|
+
* Model Achivement
|
|
6143
6196
|
*/
|
|
6144
6197
|
|
|
6145
6198
|
|
|
6146
|
-
export type
|
|
6147
|
-
_count:
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
_min: TeamMinAggregateOutputType | null
|
|
6151
|
-
_max: TeamMaxAggregateOutputType | null
|
|
6152
|
-
}
|
|
6153
|
-
|
|
6154
|
-
export type TeamAvgAggregateOutputType = {
|
|
6155
|
-
userCount: number | null
|
|
6156
|
-
}
|
|
6157
|
-
|
|
6158
|
-
export type TeamSumAggregateOutputType = {
|
|
6159
|
-
userCount: number | null
|
|
6199
|
+
export type AggregateAchivement = {
|
|
6200
|
+
_count: AchivementCountAggregateOutputType | null
|
|
6201
|
+
_min: AchivementMinAggregateOutputType | null
|
|
6202
|
+
_max: AchivementMaxAggregateOutputType | null
|
|
6160
6203
|
}
|
|
6161
6204
|
|
|
6162
|
-
export type
|
|
6205
|
+
export type AchivementMinAggregateOutputType = {
|
|
6163
6206
|
id: string | null
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6207
|
+
userId: string | null
|
|
6208
|
+
badge: boolean | null
|
|
6209
|
+
type: AchivementType | null
|
|
6210
|
+
info: string | null
|
|
6211
|
+
timestamp: Date | null
|
|
6212
|
+
dismissed: boolean | null
|
|
6168
6213
|
}
|
|
6169
6214
|
|
|
6170
|
-
export type
|
|
6215
|
+
export type AchivementMaxAggregateOutputType = {
|
|
6171
6216
|
id: string | null
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6217
|
+
userId: string | null
|
|
6218
|
+
badge: boolean | null
|
|
6219
|
+
type: AchivementType | null
|
|
6220
|
+
info: string | null
|
|
6221
|
+
timestamp: Date | null
|
|
6222
|
+
dismissed: boolean | null
|
|
6176
6223
|
}
|
|
6177
6224
|
|
|
6178
|
-
export type
|
|
6225
|
+
export type AchivementCountAggregateOutputType = {
|
|
6179
6226
|
id: number
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6227
|
+
userId: number
|
|
6228
|
+
badge: number
|
|
6229
|
+
type: number
|
|
6230
|
+
info: number
|
|
6231
|
+
timestamp: number
|
|
6232
|
+
dismissed: number
|
|
6184
6233
|
_all: number
|
|
6185
6234
|
}
|
|
6186
6235
|
|
|
6187
6236
|
|
|
6188
|
-
export type
|
|
6189
|
-
userCount?: true
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
|
-
export type TeamSumAggregateInputType = {
|
|
6193
|
-
userCount?: true
|
|
6194
|
-
}
|
|
6195
|
-
|
|
6196
|
-
export type TeamMinAggregateInputType = {
|
|
6237
|
+
export type AchivementMinAggregateInputType = {
|
|
6197
6238
|
id?: true
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6239
|
+
userId?: true
|
|
6240
|
+
badge?: true
|
|
6241
|
+
type?: true
|
|
6242
|
+
info?: true
|
|
6243
|
+
timestamp?: true
|
|
6244
|
+
dismissed?: true
|
|
6202
6245
|
}
|
|
6203
6246
|
|
|
6204
|
-
export type
|
|
6247
|
+
export type AchivementMaxAggregateInputType = {
|
|
6205
6248
|
id?: true
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6249
|
+
userId?: true
|
|
6250
|
+
badge?: true
|
|
6251
|
+
type?: true
|
|
6252
|
+
info?: true
|
|
6253
|
+
timestamp?: true
|
|
6254
|
+
dismissed?: true
|
|
6210
6255
|
}
|
|
6211
6256
|
|
|
6212
|
-
export type
|
|
6257
|
+
export type AchivementCountAggregateInputType = {
|
|
6213
6258
|
id?: true
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6259
|
+
userId?: true
|
|
6260
|
+
badge?: true
|
|
6261
|
+
type?: true
|
|
6262
|
+
info?: true
|
|
6263
|
+
timestamp?: true
|
|
6264
|
+
dismissed?: true
|
|
6218
6265
|
_all?: true
|
|
6219
6266
|
}
|
|
6220
6267
|
|
|
6221
|
-
export type
|
|
6268
|
+
export type AchivementAggregateArgs = {
|
|
6222
6269
|
/**
|
|
6223
|
-
* Filter which
|
|
6270
|
+
* Filter which Achivement to aggregate.
|
|
6224
6271
|
*
|
|
6225
6272
|
**/
|
|
6226
|
-
where?:
|
|
6273
|
+
where?: AchivementWhereInput
|
|
6227
6274
|
/**
|
|
6228
6275
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6229
6276
|
*
|
|
6230
|
-
* Determine the order of
|
|
6277
|
+
* Determine the order of Achivements to fetch.
|
|
6231
6278
|
*
|
|
6232
6279
|
**/
|
|
6233
|
-
orderBy?: Enumerable<
|
|
6280
|
+
orderBy?: Enumerable<AchivementOrderByWithRelationInput>
|
|
6234
6281
|
/**
|
|
6235
6282
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6236
6283
|
*
|
|
6237
6284
|
* Sets the start position
|
|
6238
6285
|
*
|
|
6239
6286
|
**/
|
|
6240
|
-
cursor?:
|
|
6287
|
+
cursor?: AchivementWhereUniqueInput
|
|
6241
6288
|
/**
|
|
6242
6289
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6243
6290
|
*
|
|
6244
|
-
* Take `±n`
|
|
6291
|
+
* Take `±n` Achivements from the position of the cursor.
|
|
6245
6292
|
*
|
|
6246
6293
|
**/
|
|
6247
6294
|
take?: number
|
|
6248
6295
|
/**
|
|
6249
6296
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6250
6297
|
*
|
|
6251
|
-
* Skip the first `n`
|
|
6298
|
+
* Skip the first `n` Achivements.
|
|
6252
6299
|
*
|
|
6253
6300
|
**/
|
|
6254
6301
|
skip?: number
|
|
6255
6302
|
/**
|
|
6256
6303
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6257
6304
|
*
|
|
6258
|
-
* Count returned
|
|
6259
|
-
**/
|
|
6260
|
-
_count?: true | TeamCountAggregateInputType
|
|
6261
|
-
/**
|
|
6262
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6263
|
-
*
|
|
6264
|
-
* Select which fields to average
|
|
6265
|
-
**/
|
|
6266
|
-
_avg?: TeamAvgAggregateInputType
|
|
6267
|
-
/**
|
|
6268
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6269
|
-
*
|
|
6270
|
-
* Select which fields to sum
|
|
6305
|
+
* Count returned Achivements
|
|
6271
6306
|
**/
|
|
6272
|
-
|
|
6307
|
+
_count?: true | AchivementCountAggregateInputType
|
|
6273
6308
|
/**
|
|
6274
6309
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6275
6310
|
*
|
|
6276
6311
|
* Select which fields to find the minimum value
|
|
6277
6312
|
**/
|
|
6278
|
-
_min?:
|
|
6313
|
+
_min?: AchivementMinAggregateInputType
|
|
6279
6314
|
/**
|
|
6280
6315
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6281
6316
|
*
|
|
6282
6317
|
* Select which fields to find the maximum value
|
|
6283
6318
|
**/
|
|
6284
|
-
_max?:
|
|
6319
|
+
_max?: AchivementMaxAggregateInputType
|
|
6285
6320
|
}
|
|
6286
6321
|
|
|
6287
|
-
export type
|
|
6288
|
-
[P in keyof T & keyof
|
|
6322
|
+
export type GetAchivementAggregateType<T extends AchivementAggregateArgs> = {
|
|
6323
|
+
[P in keyof T & keyof AggregateAchivement]: P extends '_count' | 'count'
|
|
6289
6324
|
? T[P] extends true
|
|
6290
6325
|
? number
|
|
6291
|
-
: GetScalarType<T[P],
|
|
6292
|
-
: GetScalarType<T[P],
|
|
6326
|
+
: GetScalarType<T[P], AggregateAchivement[P]>
|
|
6327
|
+
: GetScalarType<T[P], AggregateAchivement[P]>
|
|
6293
6328
|
}
|
|
6294
6329
|
|
|
6295
6330
|
|
|
6296
6331
|
|
|
6297
6332
|
|
|
6298
|
-
export type
|
|
6299
|
-
where?:
|
|
6300
|
-
orderBy?: Enumerable<
|
|
6301
|
-
by: Array<
|
|
6302
|
-
having?:
|
|
6333
|
+
export type AchivementGroupByArgs = {
|
|
6334
|
+
where?: AchivementWhereInput
|
|
6335
|
+
orderBy?: Enumerable<AchivementOrderByWithAggregationInput>
|
|
6336
|
+
by: Array<AchivementScalarFieldEnum>
|
|
6337
|
+
having?: AchivementScalarWhereWithAggregatesInput
|
|
6303
6338
|
take?: number
|
|
6304
6339
|
skip?: number
|
|
6305
|
-
_count?:
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
_min?: TeamMinAggregateInputType
|
|
6309
|
-
_max?: TeamMaxAggregateInputType
|
|
6340
|
+
_count?: AchivementCountAggregateInputType | true
|
|
6341
|
+
_min?: AchivementMinAggregateInputType
|
|
6342
|
+
_max?: AchivementMaxAggregateInputType
|
|
6310
6343
|
}
|
|
6311
6344
|
|
|
6312
6345
|
|
|
6313
|
-
export type
|
|
6346
|
+
export type AchivementGroupByOutputType = {
|
|
6314
6347
|
id: string
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
_min:
|
|
6323
|
-
_max:
|
|
6348
|
+
userId: string
|
|
6349
|
+
badge: boolean
|
|
6350
|
+
type: AchivementType
|
|
6351
|
+
info: string
|
|
6352
|
+
timestamp: Date
|
|
6353
|
+
dismissed: boolean
|
|
6354
|
+
_count: AchivementCountAggregateOutputType | null
|
|
6355
|
+
_min: AchivementMinAggregateOutputType | null
|
|
6356
|
+
_max: AchivementMaxAggregateOutputType | null
|
|
6324
6357
|
}
|
|
6325
6358
|
|
|
6326
|
-
type
|
|
6359
|
+
type GetAchivementGroupByPayload<T extends AchivementGroupByArgs> = PrismaPromise<
|
|
6327
6360
|
Array<
|
|
6328
|
-
PickArray<
|
|
6361
|
+
PickArray<AchivementGroupByOutputType, T['by']> &
|
|
6329
6362
|
{
|
|
6330
|
-
[P in ((keyof T) & (keyof
|
|
6363
|
+
[P in ((keyof T) & (keyof AchivementGroupByOutputType))]: P extends '_count'
|
|
6331
6364
|
? T[P] extends boolean
|
|
6332
6365
|
? number
|
|
6333
|
-
: GetScalarType<T[P],
|
|
6334
|
-
: GetScalarType<T[P],
|
|
6366
|
+
: GetScalarType<T[P], AchivementGroupByOutputType[P]>
|
|
6367
|
+
: GetScalarType<T[P], AchivementGroupByOutputType[P]>
|
|
6335
6368
|
}
|
|
6336
6369
|
>
|
|
6337
6370
|
>
|
|
6338
6371
|
|
|
6339
6372
|
|
|
6340
|
-
export type
|
|
6373
|
+
export type AchivementSelect = {
|
|
6341
6374
|
id?: boolean
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6375
|
+
user?: boolean | UserArgs
|
|
6376
|
+
userId?: boolean
|
|
6377
|
+
badge?: boolean
|
|
6378
|
+
type?: boolean
|
|
6379
|
+
info?: boolean
|
|
6380
|
+
timestamp?: boolean
|
|
6381
|
+
dismissed?: boolean
|
|
6349
6382
|
}
|
|
6350
6383
|
|
|
6351
|
-
export type
|
|
6352
|
-
|
|
6353
|
-
members?: boolean | UserFindManyArgs
|
|
6354
|
-
_count?: boolean | TeamCountOutputTypeArgs
|
|
6384
|
+
export type AchivementInclude = {
|
|
6385
|
+
user?: boolean | UserArgs
|
|
6355
6386
|
}
|
|
6356
6387
|
|
|
6357
|
-
export type
|
|
6358
|
-
S extends boolean | null | undefined |
|
|
6388
|
+
export type AchivementGetPayload<
|
|
6389
|
+
S extends boolean | null | undefined | AchivementArgs,
|
|
6359
6390
|
U = keyof S
|
|
6360
6391
|
> = S extends true
|
|
6361
|
-
?
|
|
6392
|
+
? Achivement
|
|
6362
6393
|
: S extends undefined
|
|
6363
6394
|
? never
|
|
6364
|
-
: S extends
|
|
6395
|
+
: S extends AchivementArgs | AchivementFindManyArgs
|
|
6365
6396
|
?'include' extends U
|
|
6366
|
-
?
|
|
6397
|
+
? Achivement & {
|
|
6367
6398
|
[P in TrueKeys<S['include']>]:
|
|
6368
|
-
P extends '
|
|
6369
|
-
P extends 'members' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
6370
|
-
P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
6399
|
+
P extends 'user' ? UserGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
6371
6400
|
}
|
|
6372
6401
|
: 'select' extends U
|
|
6373
6402
|
? {
|
|
6374
6403
|
[P in TrueKeys<S['select']>]:
|
|
6375
|
-
P extends '
|
|
6376
|
-
P extends 'members' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
6377
|
-
P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Team ? Team[P] : never
|
|
6404
|
+
P extends 'user' ? UserGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Achivement ? Achivement[P] : never
|
|
6378
6405
|
}
|
|
6379
|
-
:
|
|
6380
|
-
:
|
|
6406
|
+
: Achivement
|
|
6407
|
+
: Achivement
|
|
6381
6408
|
|
|
6382
6409
|
|
|
6383
|
-
type
|
|
6384
|
-
Omit<
|
|
6385
|
-
select?:
|
|
6410
|
+
type AchivementCountArgs = Merge<
|
|
6411
|
+
Omit<AchivementFindManyArgs, 'select' | 'include'> & {
|
|
6412
|
+
select?: AchivementCountAggregateInputType | true
|
|
6386
6413
|
}
|
|
6387
6414
|
>
|
|
6388
6415
|
|
|
6389
|
-
export interface
|
|
6416
|
+
export interface AchivementDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
6390
6417
|
/**
|
|
6391
|
-
* Find zero or one
|
|
6392
|
-
* @param {
|
|
6418
|
+
* Find zero or one Achivement that matches the filter.
|
|
6419
|
+
* @param {AchivementFindUniqueArgs} args - Arguments to find a Achivement
|
|
6393
6420
|
* @example
|
|
6394
|
-
* // Get one
|
|
6395
|
-
* const
|
|
6421
|
+
* // Get one Achivement
|
|
6422
|
+
* const achivement = await prisma.achivement.findUnique({
|
|
6396
6423
|
* where: {
|
|
6397
6424
|
* // ... provide filter here
|
|
6398
6425
|
* }
|
|
6399
6426
|
* })
|
|
6400
6427
|
**/
|
|
6401
|
-
findUnique<T extends
|
|
6402
|
-
args: SelectSubset<T,
|
|
6403
|
-
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', '
|
|
6428
|
+
findUnique<T extends AchivementFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
6429
|
+
args: SelectSubset<T, AchivementFindUniqueArgs>
|
|
6430
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Achivement'> extends True ? CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>> : CheckSelect<T, Prisma__AchivementClient<Achivement | null >, Prisma__AchivementClient<AchivementGetPayload<T> | null >>
|
|
6404
6431
|
|
|
6405
6432
|
/**
|
|
6406
|
-
* Find the first
|
|
6433
|
+
* Find the first Achivement that matches the filter.
|
|
6407
6434
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6408
6435
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6409
|
-
* @param {
|
|
6436
|
+
* @param {AchivementFindFirstArgs} args - Arguments to find a Achivement
|
|
6410
6437
|
* @example
|
|
6411
|
-
* // Get one
|
|
6412
|
-
* const
|
|
6438
|
+
* // Get one Achivement
|
|
6439
|
+
* const achivement = await prisma.achivement.findFirst({
|
|
6413
6440
|
* where: {
|
|
6414
6441
|
* // ... provide filter here
|
|
6415
6442
|
* }
|
|
6416
6443
|
* })
|
|
6417
6444
|
**/
|
|
6418
|
-
findFirst<T extends
|
|
6419
|
-
args?: SelectSubset<T,
|
|
6420
|
-
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', '
|
|
6445
|
+
findFirst<T extends AchivementFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
6446
|
+
args?: SelectSubset<T, AchivementFindFirstArgs>
|
|
6447
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Achivement'> extends True ? CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>> : CheckSelect<T, Prisma__AchivementClient<Achivement | null >, Prisma__AchivementClient<AchivementGetPayload<T> | null >>
|
|
6421
6448
|
|
|
6422
6449
|
/**
|
|
6423
|
-
* Find zero or more
|
|
6450
|
+
* Find zero or more Achivements that matches the filter.
|
|
6424
6451
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6425
6452
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6426
|
-
* @param {
|
|
6453
|
+
* @param {AchivementFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
6427
6454
|
* @example
|
|
6428
|
-
* // Get all
|
|
6429
|
-
* const
|
|
6455
|
+
* // Get all Achivements
|
|
6456
|
+
* const achivements = await prisma.achivement.findMany()
|
|
6430
6457
|
*
|
|
6431
|
-
* // Get first 10
|
|
6432
|
-
* const
|
|
6458
|
+
* // Get first 10 Achivements
|
|
6459
|
+
* const achivements = await prisma.achivement.findMany({ take: 10 })
|
|
6433
6460
|
*
|
|
6434
6461
|
* // Only select the `id`
|
|
6435
|
-
* const
|
|
6462
|
+
* const achivementWithIdOnly = await prisma.achivement.findMany({ select: { id: true } })
|
|
6436
6463
|
*
|
|
6437
6464
|
**/
|
|
6438
|
-
findMany<T extends
|
|
6439
|
-
args?: SelectSubset<T,
|
|
6440
|
-
): CheckSelect<T, PrismaPromise<Array<
|
|
6465
|
+
findMany<T extends AchivementFindManyArgs>(
|
|
6466
|
+
args?: SelectSubset<T, AchivementFindManyArgs>
|
|
6467
|
+
): CheckSelect<T, PrismaPromise<Array<Achivement>>, PrismaPromise<Array<AchivementGetPayload<T>>>>
|
|
6441
6468
|
|
|
6442
6469
|
/**
|
|
6443
|
-
* Create a
|
|
6444
|
-
* @param {
|
|
6470
|
+
* Create a Achivement.
|
|
6471
|
+
* @param {AchivementCreateArgs} args - Arguments to create a Achivement.
|
|
6445
6472
|
* @example
|
|
6446
|
-
* // Create one
|
|
6447
|
-
* const
|
|
6473
|
+
* // Create one Achivement
|
|
6474
|
+
* const Achivement = await prisma.achivement.create({
|
|
6448
6475
|
* data: {
|
|
6449
|
-
* // ... data to create a
|
|
6476
|
+
* // ... data to create a Achivement
|
|
6450
6477
|
* }
|
|
6451
6478
|
* })
|
|
6452
6479
|
*
|
|
6453
6480
|
**/
|
|
6454
|
-
create<T extends
|
|
6455
|
-
args: SelectSubset<T,
|
|
6456
|
-
): CheckSelect<T,
|
|
6481
|
+
create<T extends AchivementCreateArgs>(
|
|
6482
|
+
args: SelectSubset<T, AchivementCreateArgs>
|
|
6483
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6457
6484
|
|
|
6458
6485
|
/**
|
|
6459
|
-
* Create many
|
|
6460
|
-
* @param {
|
|
6486
|
+
* Create many Achivements.
|
|
6487
|
+
* @param {AchivementCreateManyArgs} args - Arguments to create many Achivements.
|
|
6461
6488
|
* @example
|
|
6462
|
-
* // Create many
|
|
6463
|
-
* const
|
|
6489
|
+
* // Create many Achivements
|
|
6490
|
+
* const achivement = await prisma.achivement.createMany({
|
|
6464
6491
|
* data: {
|
|
6465
6492
|
* // ... provide data here
|
|
6466
6493
|
* }
|
|
6467
6494
|
* })
|
|
6468
6495
|
*
|
|
6469
6496
|
**/
|
|
6470
|
-
createMany<T extends
|
|
6471
|
-
args?: SelectSubset<T,
|
|
6497
|
+
createMany<T extends AchivementCreateManyArgs>(
|
|
6498
|
+
args?: SelectSubset<T, AchivementCreateManyArgs>
|
|
6472
6499
|
): PrismaPromise<BatchPayload>
|
|
6473
6500
|
|
|
6474
6501
|
/**
|
|
6475
|
-
* Delete a
|
|
6476
|
-
* @param {
|
|
6502
|
+
* Delete a Achivement.
|
|
6503
|
+
* @param {AchivementDeleteArgs} args - Arguments to delete one Achivement.
|
|
6477
6504
|
* @example
|
|
6478
|
-
* // Delete one
|
|
6479
|
-
* const
|
|
6505
|
+
* // Delete one Achivement
|
|
6506
|
+
* const Achivement = await prisma.achivement.delete({
|
|
6480
6507
|
* where: {
|
|
6481
|
-
* // ... filter to delete one
|
|
6508
|
+
* // ... filter to delete one Achivement
|
|
6482
6509
|
* }
|
|
6483
6510
|
* })
|
|
6484
6511
|
*
|
|
6485
6512
|
**/
|
|
6486
|
-
delete<T extends
|
|
6487
|
-
args: SelectSubset<T,
|
|
6488
|
-
): CheckSelect<T,
|
|
6513
|
+
delete<T extends AchivementDeleteArgs>(
|
|
6514
|
+
args: SelectSubset<T, AchivementDeleteArgs>
|
|
6515
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6489
6516
|
|
|
6490
6517
|
/**
|
|
6491
|
-
* Update one
|
|
6492
|
-
* @param {
|
|
6518
|
+
* Update one Achivement.
|
|
6519
|
+
* @param {AchivementUpdateArgs} args - Arguments to update one Achivement.
|
|
6493
6520
|
* @example
|
|
6494
|
-
* // Update one
|
|
6495
|
-
* const
|
|
6521
|
+
* // Update one Achivement
|
|
6522
|
+
* const achivement = await prisma.achivement.update({
|
|
6496
6523
|
* where: {
|
|
6497
6524
|
* // ... provide filter here
|
|
6498
6525
|
* },
|
|
@@ -6502,34 +6529,34 @@ export namespace Prisma {
|
|
|
6502
6529
|
* })
|
|
6503
6530
|
*
|
|
6504
6531
|
**/
|
|
6505
|
-
update<T extends
|
|
6506
|
-
args: SelectSubset<T,
|
|
6507
|
-
): CheckSelect<T,
|
|
6532
|
+
update<T extends AchivementUpdateArgs>(
|
|
6533
|
+
args: SelectSubset<T, AchivementUpdateArgs>
|
|
6534
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6508
6535
|
|
|
6509
6536
|
/**
|
|
6510
|
-
* Delete zero or more
|
|
6511
|
-
* @param {
|
|
6537
|
+
* Delete zero or more Achivements.
|
|
6538
|
+
* @param {AchivementDeleteManyArgs} args - Arguments to filter Achivements to delete.
|
|
6512
6539
|
* @example
|
|
6513
|
-
* // Delete a few
|
|
6514
|
-
* const { count } = await prisma.
|
|
6540
|
+
* // Delete a few Achivements
|
|
6541
|
+
* const { count } = await prisma.achivement.deleteMany({
|
|
6515
6542
|
* where: {
|
|
6516
6543
|
* // ... provide filter here
|
|
6517
6544
|
* }
|
|
6518
6545
|
* })
|
|
6519
6546
|
*
|
|
6520
6547
|
**/
|
|
6521
|
-
deleteMany<T extends
|
|
6522
|
-
args?: SelectSubset<T,
|
|
6548
|
+
deleteMany<T extends AchivementDeleteManyArgs>(
|
|
6549
|
+
args?: SelectSubset<T, AchivementDeleteManyArgs>
|
|
6523
6550
|
): PrismaPromise<BatchPayload>
|
|
6524
6551
|
|
|
6525
6552
|
/**
|
|
6526
|
-
* Update zero or more
|
|
6553
|
+
* Update zero or more Achivements.
|
|
6527
6554
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6528
6555
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6529
|
-
* @param {
|
|
6556
|
+
* @param {AchivementUpdateManyArgs} args - Arguments to update one or more rows.
|
|
6530
6557
|
* @example
|
|
6531
|
-
* // Update many
|
|
6532
|
-
* const
|
|
6558
|
+
* // Update many Achivements
|
|
6559
|
+
* const achivement = await prisma.achivement.updateMany({
|
|
6533
6560
|
* where: {
|
|
6534
6561
|
* // ... provide filter here
|
|
6535
6562
|
* },
|
|
@@ -6539,53 +6566,1020 @@ export namespace Prisma {
|
|
|
6539
6566
|
* })
|
|
6540
6567
|
*
|
|
6541
6568
|
**/
|
|
6542
|
-
updateMany<T extends
|
|
6543
|
-
args: SelectSubset<T,
|
|
6569
|
+
updateMany<T extends AchivementUpdateManyArgs>(
|
|
6570
|
+
args: SelectSubset<T, AchivementUpdateManyArgs>
|
|
6544
6571
|
): PrismaPromise<BatchPayload>
|
|
6545
6572
|
|
|
6546
6573
|
/**
|
|
6547
|
-
* Create or update one
|
|
6548
|
-
* @param {
|
|
6574
|
+
* Create or update one Achivement.
|
|
6575
|
+
* @param {AchivementUpsertArgs} args - Arguments to update or create a Achivement.
|
|
6549
6576
|
* @example
|
|
6550
|
-
* // Update or create a
|
|
6551
|
-
* const
|
|
6577
|
+
* // Update or create a Achivement
|
|
6578
|
+
* const achivement = await prisma.achivement.upsert({
|
|
6552
6579
|
* create: {
|
|
6553
|
-
* // ... data to create a
|
|
6580
|
+
* // ... data to create a Achivement
|
|
6554
6581
|
* },
|
|
6555
6582
|
* update: {
|
|
6556
6583
|
* // ... in case it already exists, update
|
|
6557
6584
|
* },
|
|
6558
6585
|
* where: {
|
|
6559
|
-
* // ... the filter for the
|
|
6586
|
+
* // ... the filter for the Achivement we want to update
|
|
6560
6587
|
* }
|
|
6561
6588
|
* })
|
|
6562
6589
|
**/
|
|
6563
|
-
upsert<T extends
|
|
6564
|
-
args: SelectSubset<T,
|
|
6565
|
-
): CheckSelect<T,
|
|
6590
|
+
upsert<T extends AchivementUpsertArgs>(
|
|
6591
|
+
args: SelectSubset<T, AchivementUpsertArgs>
|
|
6592
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6566
6593
|
|
|
6567
6594
|
/**
|
|
6568
|
-
* Find one
|
|
6595
|
+
* Find one Achivement that matches the filter or throw
|
|
6569
6596
|
* `NotFoundError` if no matches were found.
|
|
6570
|
-
* @param {
|
|
6597
|
+
* @param {AchivementFindUniqueOrThrowArgs} args - Arguments to find a Achivement
|
|
6571
6598
|
* @example
|
|
6572
|
-
* // Get one
|
|
6573
|
-
* const
|
|
6599
|
+
* // Get one Achivement
|
|
6600
|
+
* const achivement = await prisma.achivement.findUniqueOrThrow({
|
|
6574
6601
|
* where: {
|
|
6575
6602
|
* // ... provide filter here
|
|
6576
6603
|
* }
|
|
6577
6604
|
* })
|
|
6578
6605
|
**/
|
|
6579
|
-
findUniqueOrThrow<T extends
|
|
6580
|
-
args?: SelectSubset<T,
|
|
6581
|
-
): CheckSelect<T,
|
|
6606
|
+
findUniqueOrThrow<T extends AchivementFindUniqueOrThrowArgs>(
|
|
6607
|
+
args?: SelectSubset<T, AchivementFindUniqueOrThrowArgs>
|
|
6608
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6582
6609
|
|
|
6583
6610
|
/**
|
|
6584
|
-
* Find the first
|
|
6611
|
+
* Find the first Achivement that matches the filter or
|
|
6585
6612
|
* throw `NotFoundError` if no matches were found.
|
|
6586
6613
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6587
6614
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6588
|
-
* @param {
|
|
6615
|
+
* @param {AchivementFindFirstOrThrowArgs} args - Arguments to find a Achivement
|
|
6616
|
+
* @example
|
|
6617
|
+
* // Get one Achivement
|
|
6618
|
+
* const achivement = await prisma.achivement.findFirstOrThrow({
|
|
6619
|
+
* where: {
|
|
6620
|
+
* // ... provide filter here
|
|
6621
|
+
* }
|
|
6622
|
+
* })
|
|
6623
|
+
**/
|
|
6624
|
+
findFirstOrThrow<T extends AchivementFindFirstOrThrowArgs>(
|
|
6625
|
+
args?: SelectSubset<T, AchivementFindFirstOrThrowArgs>
|
|
6626
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6627
|
+
|
|
6628
|
+
/**
|
|
6629
|
+
* Count the number of Achivements.
|
|
6630
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6631
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6632
|
+
* @param {AchivementCountArgs} args - Arguments to filter Achivements to count.
|
|
6633
|
+
* @example
|
|
6634
|
+
* // Count the number of Achivements
|
|
6635
|
+
* const count = await prisma.achivement.count({
|
|
6636
|
+
* where: {
|
|
6637
|
+
* // ... the filter for the Achivements we want to count
|
|
6638
|
+
* }
|
|
6639
|
+
* })
|
|
6640
|
+
**/
|
|
6641
|
+
count<T extends AchivementCountArgs>(
|
|
6642
|
+
args?: Subset<T, AchivementCountArgs>,
|
|
6643
|
+
): PrismaPromise<
|
|
6644
|
+
T extends _Record<'select', any>
|
|
6645
|
+
? T['select'] extends true
|
|
6646
|
+
? number
|
|
6647
|
+
: GetScalarType<T['select'], AchivementCountAggregateOutputType>
|
|
6648
|
+
: number
|
|
6649
|
+
>
|
|
6650
|
+
|
|
6651
|
+
/**
|
|
6652
|
+
* Allows you to perform aggregations operations on a Achivement.
|
|
6653
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6654
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6655
|
+
* @param {AchivementAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
6656
|
+
* @example
|
|
6657
|
+
* // Ordered by age ascending
|
|
6658
|
+
* // Where email contains prisma.io
|
|
6659
|
+
* // Limited to the 10 users
|
|
6660
|
+
* const aggregations = await prisma.user.aggregate({
|
|
6661
|
+
* _avg: {
|
|
6662
|
+
* age: true,
|
|
6663
|
+
* },
|
|
6664
|
+
* where: {
|
|
6665
|
+
* email: {
|
|
6666
|
+
* contains: "prisma.io",
|
|
6667
|
+
* },
|
|
6668
|
+
* },
|
|
6669
|
+
* orderBy: {
|
|
6670
|
+
* age: "asc",
|
|
6671
|
+
* },
|
|
6672
|
+
* take: 10,
|
|
6673
|
+
* })
|
|
6674
|
+
**/
|
|
6675
|
+
aggregate<T extends AchivementAggregateArgs>(args: Subset<T, AchivementAggregateArgs>): PrismaPromise<GetAchivementAggregateType<T>>
|
|
6676
|
+
|
|
6677
|
+
/**
|
|
6678
|
+
* Group by Achivement.
|
|
6679
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6680
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6681
|
+
* @param {AchivementGroupByArgs} args - Group by arguments.
|
|
6682
|
+
* @example
|
|
6683
|
+
* // Group by city, order by createdAt, get count
|
|
6684
|
+
* const result = await prisma.user.groupBy({
|
|
6685
|
+
* by: ['city', 'createdAt'],
|
|
6686
|
+
* orderBy: {
|
|
6687
|
+
* createdAt: true
|
|
6688
|
+
* },
|
|
6689
|
+
* _count: {
|
|
6690
|
+
* _all: true
|
|
6691
|
+
* },
|
|
6692
|
+
* })
|
|
6693
|
+
*
|
|
6694
|
+
**/
|
|
6695
|
+
groupBy<
|
|
6696
|
+
T extends AchivementGroupByArgs,
|
|
6697
|
+
HasSelectOrTake extends Or<
|
|
6698
|
+
Extends<'skip', Keys<T>>,
|
|
6699
|
+
Extends<'take', Keys<T>>
|
|
6700
|
+
>,
|
|
6701
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
6702
|
+
? { orderBy: AchivementGroupByArgs['orderBy'] }
|
|
6703
|
+
: { orderBy?: AchivementGroupByArgs['orderBy'] },
|
|
6704
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
6705
|
+
ByFields extends TupleToUnion<T['by']>,
|
|
6706
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
6707
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
6708
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
6709
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
6710
|
+
InputErrors extends ByEmpty extends True
|
|
6711
|
+
? `Error: "by" must not be empty.`
|
|
6712
|
+
: HavingValid extends False
|
|
6713
|
+
? {
|
|
6714
|
+
[P in HavingFields]: P extends ByFields
|
|
6715
|
+
? never
|
|
6716
|
+
: P extends string
|
|
6717
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
6718
|
+
: [
|
|
6719
|
+
Error,
|
|
6720
|
+
'Field ',
|
|
6721
|
+
P,
|
|
6722
|
+
` in "having" needs to be provided in "by"`,
|
|
6723
|
+
]
|
|
6724
|
+
}[HavingFields]
|
|
6725
|
+
: 'take' extends Keys<T>
|
|
6726
|
+
? 'orderBy' extends Keys<T>
|
|
6727
|
+
? ByValid extends True
|
|
6728
|
+
? {}
|
|
6729
|
+
: {
|
|
6730
|
+
[P in OrderFields]: P extends ByFields
|
|
6731
|
+
? never
|
|
6732
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6733
|
+
}[OrderFields]
|
|
6734
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
6735
|
+
: 'skip' extends Keys<T>
|
|
6736
|
+
? 'orderBy' extends Keys<T>
|
|
6737
|
+
? ByValid extends True
|
|
6738
|
+
? {}
|
|
6739
|
+
: {
|
|
6740
|
+
[P in OrderFields]: P extends ByFields
|
|
6741
|
+
? never
|
|
6742
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6743
|
+
}[OrderFields]
|
|
6744
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
6745
|
+
: ByValid extends True
|
|
6746
|
+
? {}
|
|
6747
|
+
: {
|
|
6748
|
+
[P in OrderFields]: P extends ByFields
|
|
6749
|
+
? never
|
|
6750
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6751
|
+
}[OrderFields]
|
|
6752
|
+
>(args: SubsetIntersection<T, AchivementGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAchivementGroupByPayload<T> : PrismaPromise<InputErrors>
|
|
6753
|
+
|
|
6754
|
+
}
|
|
6755
|
+
|
|
6756
|
+
/**
|
|
6757
|
+
* The delegate class that acts as a "Promise-like" for Achivement.
|
|
6758
|
+
* Why is this prefixed with `Prisma__`?
|
|
6759
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
6760
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
6761
|
+
*/
|
|
6762
|
+
export class Prisma__AchivementClient<T> implements PrismaPromise<T> {
|
|
6763
|
+
[prisma]: true;
|
|
6764
|
+
private readonly _dmmf;
|
|
6765
|
+
private readonly _fetcher;
|
|
6766
|
+
private readonly _queryType;
|
|
6767
|
+
private readonly _rootField;
|
|
6768
|
+
private readonly _clientMethod;
|
|
6769
|
+
private readonly _args;
|
|
6770
|
+
private readonly _dataPath;
|
|
6771
|
+
private readonly _errorFormat;
|
|
6772
|
+
private readonly _measurePerformance?;
|
|
6773
|
+
private _isList;
|
|
6774
|
+
private _callsite;
|
|
6775
|
+
private _requestPromise?;
|
|
6776
|
+
constructor(_dmmf: runtime.DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);
|
|
6777
|
+
readonly [Symbol.toStringTag]: 'PrismaClientPromise';
|
|
6778
|
+
|
|
6779
|
+
user<T extends UserArgs = {}>(args?: Subset<T, UserArgs>): CheckSelect<T, Prisma__UserClient<User | null >, Prisma__UserClient<UserGetPayload<T> | null >>;
|
|
6780
|
+
|
|
6781
|
+
private get _document();
|
|
6782
|
+
/**
|
|
6783
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
6784
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
6785
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
6786
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
6787
|
+
*/
|
|
6788
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
6789
|
+
/**
|
|
6790
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
6791
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
6792
|
+
* @returns A Promise for the completion of the callback.
|
|
6793
|
+
*/
|
|
6794
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
6795
|
+
/**
|
|
6796
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
6797
|
+
* resolved value cannot be modified from the callback.
|
|
6798
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
6799
|
+
* @returns A Promise for the completion of the callback.
|
|
6800
|
+
*/
|
|
6801
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
6802
|
+
}
|
|
6803
|
+
|
|
6804
|
+
|
|
6805
|
+
|
|
6806
|
+
// Custom InputTypes
|
|
6807
|
+
|
|
6808
|
+
/**
|
|
6809
|
+
* Achivement base type for findUnique actions
|
|
6810
|
+
*/
|
|
6811
|
+
export type AchivementFindUniqueArgsBase = {
|
|
6812
|
+
/**
|
|
6813
|
+
* Select specific fields to fetch from the Achivement
|
|
6814
|
+
*
|
|
6815
|
+
**/
|
|
6816
|
+
select?: AchivementSelect | null
|
|
6817
|
+
/**
|
|
6818
|
+
* Choose, which related nodes to fetch as well.
|
|
6819
|
+
*
|
|
6820
|
+
**/
|
|
6821
|
+
include?: AchivementInclude | null
|
|
6822
|
+
/**
|
|
6823
|
+
* Filter, which Achivement to fetch.
|
|
6824
|
+
*
|
|
6825
|
+
**/
|
|
6826
|
+
where: AchivementWhereUniqueInput
|
|
6827
|
+
}
|
|
6828
|
+
|
|
6829
|
+
/**
|
|
6830
|
+
* Achivement: findUnique
|
|
6831
|
+
*/
|
|
6832
|
+
export interface AchivementFindUniqueArgs extends AchivementFindUniqueArgsBase {
|
|
6833
|
+
/**
|
|
6834
|
+
* Throw an Error if query returns no results
|
|
6835
|
+
* @deprecated since 4.0.0: use `findUniqueOrThrow` method instead
|
|
6836
|
+
*/
|
|
6837
|
+
rejectOnNotFound?: RejectOnNotFound
|
|
6838
|
+
}
|
|
6839
|
+
|
|
6840
|
+
|
|
6841
|
+
/**
|
|
6842
|
+
* Achivement base type for findFirst actions
|
|
6843
|
+
*/
|
|
6844
|
+
export type AchivementFindFirstArgsBase = {
|
|
6845
|
+
/**
|
|
6846
|
+
* Select specific fields to fetch from the Achivement
|
|
6847
|
+
*
|
|
6848
|
+
**/
|
|
6849
|
+
select?: AchivementSelect | null
|
|
6850
|
+
/**
|
|
6851
|
+
* Choose, which related nodes to fetch as well.
|
|
6852
|
+
*
|
|
6853
|
+
**/
|
|
6854
|
+
include?: AchivementInclude | null
|
|
6855
|
+
/**
|
|
6856
|
+
* Filter, which Achivement to fetch.
|
|
6857
|
+
*
|
|
6858
|
+
**/
|
|
6859
|
+
where?: AchivementWhereInput
|
|
6860
|
+
/**
|
|
6861
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6862
|
+
*
|
|
6863
|
+
* Determine the order of Achivements to fetch.
|
|
6864
|
+
*
|
|
6865
|
+
**/
|
|
6866
|
+
orderBy?: Enumerable<AchivementOrderByWithRelationInput>
|
|
6867
|
+
/**
|
|
6868
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6869
|
+
*
|
|
6870
|
+
* Sets the position for searching for Achivements.
|
|
6871
|
+
*
|
|
6872
|
+
**/
|
|
6873
|
+
cursor?: AchivementWhereUniqueInput
|
|
6874
|
+
/**
|
|
6875
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6876
|
+
*
|
|
6877
|
+
* Take `±n` Achivements from the position of the cursor.
|
|
6878
|
+
*
|
|
6879
|
+
**/
|
|
6880
|
+
take?: number
|
|
6881
|
+
/**
|
|
6882
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6883
|
+
*
|
|
6884
|
+
* Skip the first `n` Achivements.
|
|
6885
|
+
*
|
|
6886
|
+
**/
|
|
6887
|
+
skip?: number
|
|
6888
|
+
/**
|
|
6889
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
6890
|
+
*
|
|
6891
|
+
* Filter by unique combinations of Achivements.
|
|
6892
|
+
*
|
|
6893
|
+
**/
|
|
6894
|
+
distinct?: Enumerable<AchivementScalarFieldEnum>
|
|
6895
|
+
}
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* Achivement: findFirst
|
|
6899
|
+
*/
|
|
6900
|
+
export interface AchivementFindFirstArgs extends AchivementFindFirstArgsBase {
|
|
6901
|
+
/**
|
|
6902
|
+
* Throw an Error if query returns no results
|
|
6903
|
+
* @deprecated since 4.0.0: use `findFirstOrThrow` method instead
|
|
6904
|
+
*/
|
|
6905
|
+
rejectOnNotFound?: RejectOnNotFound
|
|
6906
|
+
}
|
|
6907
|
+
|
|
6908
|
+
|
|
6909
|
+
/**
|
|
6910
|
+
* Achivement findMany
|
|
6911
|
+
*/
|
|
6912
|
+
export type AchivementFindManyArgs = {
|
|
6913
|
+
/**
|
|
6914
|
+
* Select specific fields to fetch from the Achivement
|
|
6915
|
+
*
|
|
6916
|
+
**/
|
|
6917
|
+
select?: AchivementSelect | null
|
|
6918
|
+
/**
|
|
6919
|
+
* Choose, which related nodes to fetch as well.
|
|
6920
|
+
*
|
|
6921
|
+
**/
|
|
6922
|
+
include?: AchivementInclude | null
|
|
6923
|
+
/**
|
|
6924
|
+
* Filter, which Achivements to fetch.
|
|
6925
|
+
*
|
|
6926
|
+
**/
|
|
6927
|
+
where?: AchivementWhereInput
|
|
6928
|
+
/**
|
|
6929
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6930
|
+
*
|
|
6931
|
+
* Determine the order of Achivements to fetch.
|
|
6932
|
+
*
|
|
6933
|
+
**/
|
|
6934
|
+
orderBy?: Enumerable<AchivementOrderByWithRelationInput>
|
|
6935
|
+
/**
|
|
6936
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6937
|
+
*
|
|
6938
|
+
* Sets the position for listing Achivements.
|
|
6939
|
+
*
|
|
6940
|
+
**/
|
|
6941
|
+
cursor?: AchivementWhereUniqueInput
|
|
6942
|
+
/**
|
|
6943
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6944
|
+
*
|
|
6945
|
+
* Take `±n` Achivements from the position of the cursor.
|
|
6946
|
+
*
|
|
6947
|
+
**/
|
|
6948
|
+
take?: number
|
|
6949
|
+
/**
|
|
6950
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6951
|
+
*
|
|
6952
|
+
* Skip the first `n` Achivements.
|
|
6953
|
+
*
|
|
6954
|
+
**/
|
|
6955
|
+
skip?: number
|
|
6956
|
+
distinct?: Enumerable<AchivementScalarFieldEnum>
|
|
6957
|
+
}
|
|
6958
|
+
|
|
6959
|
+
|
|
6960
|
+
/**
|
|
6961
|
+
* Achivement create
|
|
6962
|
+
*/
|
|
6963
|
+
export type AchivementCreateArgs = {
|
|
6964
|
+
/**
|
|
6965
|
+
* Select specific fields to fetch from the Achivement
|
|
6966
|
+
*
|
|
6967
|
+
**/
|
|
6968
|
+
select?: AchivementSelect | null
|
|
6969
|
+
/**
|
|
6970
|
+
* Choose, which related nodes to fetch as well.
|
|
6971
|
+
*
|
|
6972
|
+
**/
|
|
6973
|
+
include?: AchivementInclude | null
|
|
6974
|
+
/**
|
|
6975
|
+
* The data needed to create a Achivement.
|
|
6976
|
+
*
|
|
6977
|
+
**/
|
|
6978
|
+
data: XOR<AchivementCreateInput, AchivementUncheckedCreateInput>
|
|
6979
|
+
}
|
|
6980
|
+
|
|
6981
|
+
|
|
6982
|
+
/**
|
|
6983
|
+
* Achivement createMany
|
|
6984
|
+
*/
|
|
6985
|
+
export type AchivementCreateManyArgs = {
|
|
6986
|
+
/**
|
|
6987
|
+
* The data used to create many Achivements.
|
|
6988
|
+
*
|
|
6989
|
+
**/
|
|
6990
|
+
data: Enumerable<AchivementCreateManyInput>
|
|
6991
|
+
skipDuplicates?: boolean
|
|
6992
|
+
}
|
|
6993
|
+
|
|
6994
|
+
|
|
6995
|
+
/**
|
|
6996
|
+
* Achivement update
|
|
6997
|
+
*/
|
|
6998
|
+
export type AchivementUpdateArgs = {
|
|
6999
|
+
/**
|
|
7000
|
+
* Select specific fields to fetch from the Achivement
|
|
7001
|
+
*
|
|
7002
|
+
**/
|
|
7003
|
+
select?: AchivementSelect | null
|
|
7004
|
+
/**
|
|
7005
|
+
* Choose, which related nodes to fetch as well.
|
|
7006
|
+
*
|
|
7007
|
+
**/
|
|
7008
|
+
include?: AchivementInclude | null
|
|
7009
|
+
/**
|
|
7010
|
+
* The data needed to update a Achivement.
|
|
7011
|
+
*
|
|
7012
|
+
**/
|
|
7013
|
+
data: XOR<AchivementUpdateInput, AchivementUncheckedUpdateInput>
|
|
7014
|
+
/**
|
|
7015
|
+
* Choose, which Achivement to update.
|
|
7016
|
+
*
|
|
7017
|
+
**/
|
|
7018
|
+
where: AchivementWhereUniqueInput
|
|
7019
|
+
}
|
|
7020
|
+
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* Achivement updateMany
|
|
7024
|
+
*/
|
|
7025
|
+
export type AchivementUpdateManyArgs = {
|
|
7026
|
+
/**
|
|
7027
|
+
* The data used to update Achivements.
|
|
7028
|
+
*
|
|
7029
|
+
**/
|
|
7030
|
+
data: XOR<AchivementUpdateManyMutationInput, AchivementUncheckedUpdateManyInput>
|
|
7031
|
+
/**
|
|
7032
|
+
* Filter which Achivements to update
|
|
7033
|
+
*
|
|
7034
|
+
**/
|
|
7035
|
+
where?: AchivementWhereInput
|
|
7036
|
+
}
|
|
7037
|
+
|
|
7038
|
+
|
|
7039
|
+
/**
|
|
7040
|
+
* Achivement upsert
|
|
7041
|
+
*/
|
|
7042
|
+
export type AchivementUpsertArgs = {
|
|
7043
|
+
/**
|
|
7044
|
+
* Select specific fields to fetch from the Achivement
|
|
7045
|
+
*
|
|
7046
|
+
**/
|
|
7047
|
+
select?: AchivementSelect | null
|
|
7048
|
+
/**
|
|
7049
|
+
* Choose, which related nodes to fetch as well.
|
|
7050
|
+
*
|
|
7051
|
+
**/
|
|
7052
|
+
include?: AchivementInclude | null
|
|
7053
|
+
/**
|
|
7054
|
+
* The filter to search for the Achivement to update in case it exists.
|
|
7055
|
+
*
|
|
7056
|
+
**/
|
|
7057
|
+
where: AchivementWhereUniqueInput
|
|
7058
|
+
/**
|
|
7059
|
+
* In case the Achivement found by the `where` argument doesn't exist, create a new Achivement with this data.
|
|
7060
|
+
*
|
|
7061
|
+
**/
|
|
7062
|
+
create: XOR<AchivementCreateInput, AchivementUncheckedCreateInput>
|
|
7063
|
+
/**
|
|
7064
|
+
* In case the Achivement was found with the provided `where` argument, update it with this data.
|
|
7065
|
+
*
|
|
7066
|
+
**/
|
|
7067
|
+
update: XOR<AchivementUpdateInput, AchivementUncheckedUpdateInput>
|
|
7068
|
+
}
|
|
7069
|
+
|
|
7070
|
+
|
|
7071
|
+
/**
|
|
7072
|
+
* Achivement delete
|
|
7073
|
+
*/
|
|
7074
|
+
export type AchivementDeleteArgs = {
|
|
7075
|
+
/**
|
|
7076
|
+
* Select specific fields to fetch from the Achivement
|
|
7077
|
+
*
|
|
7078
|
+
**/
|
|
7079
|
+
select?: AchivementSelect | null
|
|
7080
|
+
/**
|
|
7081
|
+
* Choose, which related nodes to fetch as well.
|
|
7082
|
+
*
|
|
7083
|
+
**/
|
|
7084
|
+
include?: AchivementInclude | null
|
|
7085
|
+
/**
|
|
7086
|
+
* Filter which Achivement to delete.
|
|
7087
|
+
*
|
|
7088
|
+
**/
|
|
7089
|
+
where: AchivementWhereUniqueInput
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
|
|
7093
|
+
/**
|
|
7094
|
+
* Achivement deleteMany
|
|
7095
|
+
*/
|
|
7096
|
+
export type AchivementDeleteManyArgs = {
|
|
7097
|
+
/**
|
|
7098
|
+
* Filter which Achivements to delete
|
|
7099
|
+
*
|
|
7100
|
+
**/
|
|
7101
|
+
where?: AchivementWhereInput
|
|
7102
|
+
}
|
|
7103
|
+
|
|
7104
|
+
|
|
7105
|
+
/**
|
|
7106
|
+
* Achivement: findUniqueOrThrow
|
|
7107
|
+
*/
|
|
7108
|
+
export type AchivementFindUniqueOrThrowArgs = AchivementFindUniqueArgsBase
|
|
7109
|
+
|
|
7110
|
+
|
|
7111
|
+
/**
|
|
7112
|
+
* Achivement: findFirstOrThrow
|
|
7113
|
+
*/
|
|
7114
|
+
export type AchivementFindFirstOrThrowArgs = AchivementFindFirstArgsBase
|
|
7115
|
+
|
|
7116
|
+
|
|
7117
|
+
/**
|
|
7118
|
+
* Achivement without action
|
|
7119
|
+
*/
|
|
7120
|
+
export type AchivementArgs = {
|
|
7121
|
+
/**
|
|
7122
|
+
* Select specific fields to fetch from the Achivement
|
|
7123
|
+
*
|
|
7124
|
+
**/
|
|
7125
|
+
select?: AchivementSelect | null
|
|
7126
|
+
/**
|
|
7127
|
+
* Choose, which related nodes to fetch as well.
|
|
7128
|
+
*
|
|
7129
|
+
**/
|
|
7130
|
+
include?: AchivementInclude | null
|
|
7131
|
+
}
|
|
7132
|
+
|
|
7133
|
+
|
|
7134
|
+
|
|
7135
|
+
/**
|
|
7136
|
+
* Model Team
|
|
7137
|
+
*/
|
|
7138
|
+
|
|
7139
|
+
|
|
7140
|
+
export type AggregateTeam = {
|
|
7141
|
+
_count: TeamCountAggregateOutputType | null
|
|
7142
|
+
_avg: TeamAvgAggregateOutputType | null
|
|
7143
|
+
_sum: TeamSumAggregateOutputType | null
|
|
7144
|
+
_min: TeamMinAggregateOutputType | null
|
|
7145
|
+
_max: TeamMaxAggregateOutputType | null
|
|
7146
|
+
}
|
|
7147
|
+
|
|
7148
|
+
export type TeamAvgAggregateOutputType = {
|
|
7149
|
+
userCount: number | null
|
|
7150
|
+
}
|
|
7151
|
+
|
|
7152
|
+
export type TeamSumAggregateOutputType = {
|
|
7153
|
+
userCount: number | null
|
|
7154
|
+
}
|
|
7155
|
+
|
|
7156
|
+
export type TeamMinAggregateOutputType = {
|
|
7157
|
+
id: string | null
|
|
7158
|
+
name: string | null
|
|
7159
|
+
emailPattern: string | null
|
|
7160
|
+
userCount: number | null
|
|
7161
|
+
subscriptionExpire: Date | null
|
|
7162
|
+
}
|
|
7163
|
+
|
|
7164
|
+
export type TeamMaxAggregateOutputType = {
|
|
7165
|
+
id: string | null
|
|
7166
|
+
name: string | null
|
|
7167
|
+
emailPattern: string | null
|
|
7168
|
+
userCount: number | null
|
|
7169
|
+
subscriptionExpire: Date | null
|
|
7170
|
+
}
|
|
7171
|
+
|
|
7172
|
+
export type TeamCountAggregateOutputType = {
|
|
7173
|
+
id: number
|
|
7174
|
+
name: number
|
|
7175
|
+
emailPattern: number
|
|
7176
|
+
userCount: number
|
|
7177
|
+
subscriptionExpire: number
|
|
7178
|
+
_all: number
|
|
7179
|
+
}
|
|
7180
|
+
|
|
7181
|
+
|
|
7182
|
+
export type TeamAvgAggregateInputType = {
|
|
7183
|
+
userCount?: true
|
|
7184
|
+
}
|
|
7185
|
+
|
|
7186
|
+
export type TeamSumAggregateInputType = {
|
|
7187
|
+
userCount?: true
|
|
7188
|
+
}
|
|
7189
|
+
|
|
7190
|
+
export type TeamMinAggregateInputType = {
|
|
7191
|
+
id?: true
|
|
7192
|
+
name?: true
|
|
7193
|
+
emailPattern?: true
|
|
7194
|
+
userCount?: true
|
|
7195
|
+
subscriptionExpire?: true
|
|
7196
|
+
}
|
|
7197
|
+
|
|
7198
|
+
export type TeamMaxAggregateInputType = {
|
|
7199
|
+
id?: true
|
|
7200
|
+
name?: true
|
|
7201
|
+
emailPattern?: true
|
|
7202
|
+
userCount?: true
|
|
7203
|
+
subscriptionExpire?: true
|
|
7204
|
+
}
|
|
7205
|
+
|
|
7206
|
+
export type TeamCountAggregateInputType = {
|
|
7207
|
+
id?: true
|
|
7208
|
+
name?: true
|
|
7209
|
+
emailPattern?: true
|
|
7210
|
+
userCount?: true
|
|
7211
|
+
subscriptionExpire?: true
|
|
7212
|
+
_all?: true
|
|
7213
|
+
}
|
|
7214
|
+
|
|
7215
|
+
export type TeamAggregateArgs = {
|
|
7216
|
+
/**
|
|
7217
|
+
* Filter which Team to aggregate.
|
|
7218
|
+
*
|
|
7219
|
+
**/
|
|
7220
|
+
where?: TeamWhereInput
|
|
7221
|
+
/**
|
|
7222
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
7223
|
+
*
|
|
7224
|
+
* Determine the order of Teams to fetch.
|
|
7225
|
+
*
|
|
7226
|
+
**/
|
|
7227
|
+
orderBy?: Enumerable<TeamOrderByWithRelationInput>
|
|
7228
|
+
/**
|
|
7229
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
7230
|
+
*
|
|
7231
|
+
* Sets the start position
|
|
7232
|
+
*
|
|
7233
|
+
**/
|
|
7234
|
+
cursor?: TeamWhereUniqueInput
|
|
7235
|
+
/**
|
|
7236
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
7237
|
+
*
|
|
7238
|
+
* Take `±n` Teams from the position of the cursor.
|
|
7239
|
+
*
|
|
7240
|
+
**/
|
|
7241
|
+
take?: number
|
|
7242
|
+
/**
|
|
7243
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
7244
|
+
*
|
|
7245
|
+
* Skip the first `n` Teams.
|
|
7246
|
+
*
|
|
7247
|
+
**/
|
|
7248
|
+
skip?: number
|
|
7249
|
+
/**
|
|
7250
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7251
|
+
*
|
|
7252
|
+
* Count returned Teams
|
|
7253
|
+
**/
|
|
7254
|
+
_count?: true | TeamCountAggregateInputType
|
|
7255
|
+
/**
|
|
7256
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7257
|
+
*
|
|
7258
|
+
* Select which fields to average
|
|
7259
|
+
**/
|
|
7260
|
+
_avg?: TeamAvgAggregateInputType
|
|
7261
|
+
/**
|
|
7262
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7263
|
+
*
|
|
7264
|
+
* Select which fields to sum
|
|
7265
|
+
**/
|
|
7266
|
+
_sum?: TeamSumAggregateInputType
|
|
7267
|
+
/**
|
|
7268
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7269
|
+
*
|
|
7270
|
+
* Select which fields to find the minimum value
|
|
7271
|
+
**/
|
|
7272
|
+
_min?: TeamMinAggregateInputType
|
|
7273
|
+
/**
|
|
7274
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7275
|
+
*
|
|
7276
|
+
* Select which fields to find the maximum value
|
|
7277
|
+
**/
|
|
7278
|
+
_max?: TeamMaxAggregateInputType
|
|
7279
|
+
}
|
|
7280
|
+
|
|
7281
|
+
export type GetTeamAggregateType<T extends TeamAggregateArgs> = {
|
|
7282
|
+
[P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count'
|
|
7283
|
+
? T[P] extends true
|
|
7284
|
+
? number
|
|
7285
|
+
: GetScalarType<T[P], AggregateTeam[P]>
|
|
7286
|
+
: GetScalarType<T[P], AggregateTeam[P]>
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7289
|
+
|
|
7290
|
+
|
|
7291
|
+
|
|
7292
|
+
export type TeamGroupByArgs = {
|
|
7293
|
+
where?: TeamWhereInput
|
|
7294
|
+
orderBy?: Enumerable<TeamOrderByWithAggregationInput>
|
|
7295
|
+
by: Array<TeamScalarFieldEnum>
|
|
7296
|
+
having?: TeamScalarWhereWithAggregatesInput
|
|
7297
|
+
take?: number
|
|
7298
|
+
skip?: number
|
|
7299
|
+
_count?: TeamCountAggregateInputType | true
|
|
7300
|
+
_avg?: TeamAvgAggregateInputType
|
|
7301
|
+
_sum?: TeamSumAggregateInputType
|
|
7302
|
+
_min?: TeamMinAggregateInputType
|
|
7303
|
+
_max?: TeamMaxAggregateInputType
|
|
7304
|
+
}
|
|
7305
|
+
|
|
7306
|
+
|
|
7307
|
+
export type TeamGroupByOutputType = {
|
|
7308
|
+
id: string
|
|
7309
|
+
name: string
|
|
7310
|
+
emailPattern: string
|
|
7311
|
+
userCount: number
|
|
7312
|
+
subscriptionExpire: Date | null
|
|
7313
|
+
_count: TeamCountAggregateOutputType | null
|
|
7314
|
+
_avg: TeamAvgAggregateOutputType | null
|
|
7315
|
+
_sum: TeamSumAggregateOutputType | null
|
|
7316
|
+
_min: TeamMinAggregateOutputType | null
|
|
7317
|
+
_max: TeamMaxAggregateOutputType | null
|
|
7318
|
+
}
|
|
7319
|
+
|
|
7320
|
+
type GetTeamGroupByPayload<T extends TeamGroupByArgs> = PrismaPromise<
|
|
7321
|
+
Array<
|
|
7322
|
+
PickArray<TeamGroupByOutputType, T['by']> &
|
|
7323
|
+
{
|
|
7324
|
+
[P in ((keyof T) & (keyof TeamGroupByOutputType))]: P extends '_count'
|
|
7325
|
+
? T[P] extends boolean
|
|
7326
|
+
? number
|
|
7327
|
+
: GetScalarType<T[P], TeamGroupByOutputType[P]>
|
|
7328
|
+
: GetScalarType<T[P], TeamGroupByOutputType[P]>
|
|
7329
|
+
}
|
|
7330
|
+
>
|
|
7331
|
+
>
|
|
7332
|
+
|
|
7333
|
+
|
|
7334
|
+
export type TeamSelect = {
|
|
7335
|
+
id?: boolean
|
|
7336
|
+
name?: boolean
|
|
7337
|
+
emailPattern?: boolean
|
|
7338
|
+
additionalDecks?: boolean | PackFindManyArgs
|
|
7339
|
+
members?: boolean | UserFindManyArgs
|
|
7340
|
+
userCount?: boolean
|
|
7341
|
+
subscriptionExpire?: boolean
|
|
7342
|
+
_count?: boolean | TeamCountOutputTypeArgs
|
|
7343
|
+
}
|
|
7344
|
+
|
|
7345
|
+
export type TeamInclude = {
|
|
7346
|
+
additionalDecks?: boolean | PackFindManyArgs
|
|
7347
|
+
members?: boolean | UserFindManyArgs
|
|
7348
|
+
_count?: boolean | TeamCountOutputTypeArgs
|
|
7349
|
+
}
|
|
7350
|
+
|
|
7351
|
+
export type TeamGetPayload<
|
|
7352
|
+
S extends boolean | null | undefined | TeamArgs,
|
|
7353
|
+
U = keyof S
|
|
7354
|
+
> = S extends true
|
|
7355
|
+
? Team
|
|
7356
|
+
: S extends undefined
|
|
7357
|
+
? never
|
|
7358
|
+
: S extends TeamArgs | TeamFindManyArgs
|
|
7359
|
+
?'include' extends U
|
|
7360
|
+
? Team & {
|
|
7361
|
+
[P in TrueKeys<S['include']>]:
|
|
7362
|
+
P extends 'additionalDecks' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
7363
|
+
P extends 'members' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
7364
|
+
P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
7365
|
+
}
|
|
7366
|
+
: 'select' extends U
|
|
7367
|
+
? {
|
|
7368
|
+
[P in TrueKeys<S['select']>]:
|
|
7369
|
+
P extends 'additionalDecks' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
7370
|
+
P extends 'members' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
7371
|
+
P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Team ? Team[P] : never
|
|
7372
|
+
}
|
|
7373
|
+
: Team
|
|
7374
|
+
: Team
|
|
7375
|
+
|
|
7376
|
+
|
|
7377
|
+
type TeamCountArgs = Merge<
|
|
7378
|
+
Omit<TeamFindManyArgs, 'select' | 'include'> & {
|
|
7379
|
+
select?: TeamCountAggregateInputType | true
|
|
7380
|
+
}
|
|
7381
|
+
>
|
|
7382
|
+
|
|
7383
|
+
export interface TeamDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
7384
|
+
/**
|
|
7385
|
+
* Find zero or one Team that matches the filter.
|
|
7386
|
+
* @param {TeamFindUniqueArgs} args - Arguments to find a Team
|
|
7387
|
+
* @example
|
|
7388
|
+
* // Get one Team
|
|
7389
|
+
* const team = await prisma.team.findUnique({
|
|
7390
|
+
* where: {
|
|
7391
|
+
* // ... provide filter here
|
|
7392
|
+
* }
|
|
7393
|
+
* })
|
|
7394
|
+
**/
|
|
7395
|
+
findUnique<T extends TeamFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
7396
|
+
args: SelectSubset<T, TeamFindUniqueArgs>
|
|
7397
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Team'> extends True ? CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>> : CheckSelect<T, Prisma__TeamClient<Team | null >, Prisma__TeamClient<TeamGetPayload<T> | null >>
|
|
7398
|
+
|
|
7399
|
+
/**
|
|
7400
|
+
* Find the first Team that matches the filter.
|
|
7401
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7402
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7403
|
+
* @param {TeamFindFirstArgs} args - Arguments to find a Team
|
|
7404
|
+
* @example
|
|
7405
|
+
* // Get one Team
|
|
7406
|
+
* const team = await prisma.team.findFirst({
|
|
7407
|
+
* where: {
|
|
7408
|
+
* // ... provide filter here
|
|
7409
|
+
* }
|
|
7410
|
+
* })
|
|
7411
|
+
**/
|
|
7412
|
+
findFirst<T extends TeamFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
7413
|
+
args?: SelectSubset<T, TeamFindFirstArgs>
|
|
7414
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Team'> extends True ? CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>> : CheckSelect<T, Prisma__TeamClient<Team | null >, Prisma__TeamClient<TeamGetPayload<T> | null >>
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* Find zero or more Teams that matches the filter.
|
|
7418
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7419
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7420
|
+
* @param {TeamFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
7421
|
+
* @example
|
|
7422
|
+
* // Get all Teams
|
|
7423
|
+
* const teams = await prisma.team.findMany()
|
|
7424
|
+
*
|
|
7425
|
+
* // Get first 10 Teams
|
|
7426
|
+
* const teams = await prisma.team.findMany({ take: 10 })
|
|
7427
|
+
*
|
|
7428
|
+
* // Only select the `id`
|
|
7429
|
+
* const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } })
|
|
7430
|
+
*
|
|
7431
|
+
**/
|
|
7432
|
+
findMany<T extends TeamFindManyArgs>(
|
|
7433
|
+
args?: SelectSubset<T, TeamFindManyArgs>
|
|
7434
|
+
): CheckSelect<T, PrismaPromise<Array<Team>>, PrismaPromise<Array<TeamGetPayload<T>>>>
|
|
7435
|
+
|
|
7436
|
+
/**
|
|
7437
|
+
* Create a Team.
|
|
7438
|
+
* @param {TeamCreateArgs} args - Arguments to create a Team.
|
|
7439
|
+
* @example
|
|
7440
|
+
* // Create one Team
|
|
7441
|
+
* const Team = await prisma.team.create({
|
|
7442
|
+
* data: {
|
|
7443
|
+
* // ... data to create a Team
|
|
7444
|
+
* }
|
|
7445
|
+
* })
|
|
7446
|
+
*
|
|
7447
|
+
**/
|
|
7448
|
+
create<T extends TeamCreateArgs>(
|
|
7449
|
+
args: SelectSubset<T, TeamCreateArgs>
|
|
7450
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
7451
|
+
|
|
7452
|
+
/**
|
|
7453
|
+
* Create many Teams.
|
|
7454
|
+
* @param {TeamCreateManyArgs} args - Arguments to create many Teams.
|
|
7455
|
+
* @example
|
|
7456
|
+
* // Create many Teams
|
|
7457
|
+
* const team = await prisma.team.createMany({
|
|
7458
|
+
* data: {
|
|
7459
|
+
* // ... provide data here
|
|
7460
|
+
* }
|
|
7461
|
+
* })
|
|
7462
|
+
*
|
|
7463
|
+
**/
|
|
7464
|
+
createMany<T extends TeamCreateManyArgs>(
|
|
7465
|
+
args?: SelectSubset<T, TeamCreateManyArgs>
|
|
7466
|
+
): PrismaPromise<BatchPayload>
|
|
7467
|
+
|
|
7468
|
+
/**
|
|
7469
|
+
* Delete a Team.
|
|
7470
|
+
* @param {TeamDeleteArgs} args - Arguments to delete one Team.
|
|
7471
|
+
* @example
|
|
7472
|
+
* // Delete one Team
|
|
7473
|
+
* const Team = await prisma.team.delete({
|
|
7474
|
+
* where: {
|
|
7475
|
+
* // ... filter to delete one Team
|
|
7476
|
+
* }
|
|
7477
|
+
* })
|
|
7478
|
+
*
|
|
7479
|
+
**/
|
|
7480
|
+
delete<T extends TeamDeleteArgs>(
|
|
7481
|
+
args: SelectSubset<T, TeamDeleteArgs>
|
|
7482
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
7483
|
+
|
|
7484
|
+
/**
|
|
7485
|
+
* Update one Team.
|
|
7486
|
+
* @param {TeamUpdateArgs} args - Arguments to update one Team.
|
|
7487
|
+
* @example
|
|
7488
|
+
* // Update one Team
|
|
7489
|
+
* const team = await prisma.team.update({
|
|
7490
|
+
* where: {
|
|
7491
|
+
* // ... provide filter here
|
|
7492
|
+
* },
|
|
7493
|
+
* data: {
|
|
7494
|
+
* // ... provide data here
|
|
7495
|
+
* }
|
|
7496
|
+
* })
|
|
7497
|
+
*
|
|
7498
|
+
**/
|
|
7499
|
+
update<T extends TeamUpdateArgs>(
|
|
7500
|
+
args: SelectSubset<T, TeamUpdateArgs>
|
|
7501
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
7502
|
+
|
|
7503
|
+
/**
|
|
7504
|
+
* Delete zero or more Teams.
|
|
7505
|
+
* @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete.
|
|
7506
|
+
* @example
|
|
7507
|
+
* // Delete a few Teams
|
|
7508
|
+
* const { count } = await prisma.team.deleteMany({
|
|
7509
|
+
* where: {
|
|
7510
|
+
* // ... provide filter here
|
|
7511
|
+
* }
|
|
7512
|
+
* })
|
|
7513
|
+
*
|
|
7514
|
+
**/
|
|
7515
|
+
deleteMany<T extends TeamDeleteManyArgs>(
|
|
7516
|
+
args?: SelectSubset<T, TeamDeleteManyArgs>
|
|
7517
|
+
): PrismaPromise<BatchPayload>
|
|
7518
|
+
|
|
7519
|
+
/**
|
|
7520
|
+
* Update zero or more Teams.
|
|
7521
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7522
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7523
|
+
* @param {TeamUpdateManyArgs} args - Arguments to update one or more rows.
|
|
7524
|
+
* @example
|
|
7525
|
+
* // Update many Teams
|
|
7526
|
+
* const team = await prisma.team.updateMany({
|
|
7527
|
+
* where: {
|
|
7528
|
+
* // ... provide filter here
|
|
7529
|
+
* },
|
|
7530
|
+
* data: {
|
|
7531
|
+
* // ... provide data here
|
|
7532
|
+
* }
|
|
7533
|
+
* })
|
|
7534
|
+
*
|
|
7535
|
+
**/
|
|
7536
|
+
updateMany<T extends TeamUpdateManyArgs>(
|
|
7537
|
+
args: SelectSubset<T, TeamUpdateManyArgs>
|
|
7538
|
+
): PrismaPromise<BatchPayload>
|
|
7539
|
+
|
|
7540
|
+
/**
|
|
7541
|
+
* Create or update one Team.
|
|
7542
|
+
* @param {TeamUpsertArgs} args - Arguments to update or create a Team.
|
|
7543
|
+
* @example
|
|
7544
|
+
* // Update or create a Team
|
|
7545
|
+
* const team = await prisma.team.upsert({
|
|
7546
|
+
* create: {
|
|
7547
|
+
* // ... data to create a Team
|
|
7548
|
+
* },
|
|
7549
|
+
* update: {
|
|
7550
|
+
* // ... in case it already exists, update
|
|
7551
|
+
* },
|
|
7552
|
+
* where: {
|
|
7553
|
+
* // ... the filter for the Team we want to update
|
|
7554
|
+
* }
|
|
7555
|
+
* })
|
|
7556
|
+
**/
|
|
7557
|
+
upsert<T extends TeamUpsertArgs>(
|
|
7558
|
+
args: SelectSubset<T, TeamUpsertArgs>
|
|
7559
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
7560
|
+
|
|
7561
|
+
/**
|
|
7562
|
+
* Find one Team that matches the filter or throw
|
|
7563
|
+
* `NotFoundError` if no matches were found.
|
|
7564
|
+
* @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team
|
|
7565
|
+
* @example
|
|
7566
|
+
* // Get one Team
|
|
7567
|
+
* const team = await prisma.team.findUniqueOrThrow({
|
|
7568
|
+
* where: {
|
|
7569
|
+
* // ... provide filter here
|
|
7570
|
+
* }
|
|
7571
|
+
* })
|
|
7572
|
+
**/
|
|
7573
|
+
findUniqueOrThrow<T extends TeamFindUniqueOrThrowArgs>(
|
|
7574
|
+
args?: SelectSubset<T, TeamFindUniqueOrThrowArgs>
|
|
7575
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
7576
|
+
|
|
7577
|
+
/**
|
|
7578
|
+
* Find the first Team that matches the filter or
|
|
7579
|
+
* throw `NotFoundError` if no matches were found.
|
|
7580
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7581
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7582
|
+
* @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team
|
|
6589
7583
|
* @example
|
|
6590
7584
|
* // Get one Team
|
|
6591
7585
|
* const team = await prisma.team.findFirstOrThrow({
|
|
@@ -10850,6 +11844,19 @@ export namespace Prisma {
|
|
|
10850
11844
|
// Based on
|
|
10851
11845
|
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
|
10852
11846
|
|
|
11847
|
+
export const AchivementScalarFieldEnum: {
|
|
11848
|
+
id: 'id',
|
|
11849
|
+
userId: 'userId',
|
|
11850
|
+
badge: 'badge',
|
|
11851
|
+
type: 'type',
|
|
11852
|
+
info: 'info',
|
|
11853
|
+
timestamp: 'timestamp',
|
|
11854
|
+
dismissed: 'dismissed'
|
|
11855
|
+
};
|
|
11856
|
+
|
|
11857
|
+
export type AchivementScalarFieldEnum = (typeof AchivementScalarFieldEnum)[keyof typeof AchivementScalarFieldEnum]
|
|
11858
|
+
|
|
11859
|
+
|
|
10853
11860
|
export const AnswerScalarFieldEnum: {
|
|
10854
11861
|
id: 'id',
|
|
10855
11862
|
userId: 'userId',
|
|
@@ -10866,6 +11873,7 @@ export namespace Prisma {
|
|
|
10866
11873
|
packId: 'packId',
|
|
10867
11874
|
front: 'front',
|
|
10868
11875
|
back: 'back',
|
|
11876
|
+
lastUpdate: 'lastUpdate',
|
|
10869
11877
|
speechGenerated: 'speechGenerated'
|
|
10870
11878
|
};
|
|
10871
11879
|
|
|
@@ -11001,6 +12009,7 @@ export namespace Prisma {
|
|
|
11001
12009
|
packId?: StringFilter | string
|
|
11002
12010
|
front?: StringFilter | string
|
|
11003
12011
|
back?: StringFilter | string
|
|
12012
|
+
lastUpdate?: DateTimeFilter | Date | string
|
|
11004
12013
|
userCards?: UserCardListRelationFilter
|
|
11005
12014
|
speechGenerated?: BoolFilter | boolean
|
|
11006
12015
|
}
|
|
@@ -11011,6 +12020,7 @@ export namespace Prisma {
|
|
|
11011
12020
|
packId?: SortOrder
|
|
11012
12021
|
front?: SortOrder
|
|
11013
12022
|
back?: SortOrder
|
|
12023
|
+
lastUpdate?: SortOrder
|
|
11014
12024
|
userCards?: UserCardOrderByRelationAggregateInput
|
|
11015
12025
|
speechGenerated?: SortOrder
|
|
11016
12026
|
}
|
|
@@ -11026,6 +12036,7 @@ export namespace Prisma {
|
|
|
11026
12036
|
packId?: SortOrder
|
|
11027
12037
|
front?: SortOrder
|
|
11028
12038
|
back?: SortOrder
|
|
12039
|
+
lastUpdate?: SortOrder
|
|
11029
12040
|
speechGenerated?: SortOrder
|
|
11030
12041
|
_count?: CardCountOrderByAggregateInput
|
|
11031
12042
|
_max?: CardMaxOrderByAggregateInput
|
|
@@ -11040,6 +12051,7 @@ export namespace Prisma {
|
|
|
11040
12051
|
packId?: StringWithAggregatesFilter | string
|
|
11041
12052
|
front?: StringWithAggregatesFilter | string
|
|
11042
12053
|
back?: StringWithAggregatesFilter | string
|
|
12054
|
+
lastUpdate?: DateTimeWithAggregatesFilter | Date | string
|
|
11043
12055
|
speechGenerated?: BoolWithAggregatesFilter | boolean
|
|
11044
12056
|
}
|
|
11045
12057
|
|
|
@@ -11213,6 +12225,7 @@ export namespace Prisma {
|
|
|
11213
12225
|
name?: StringFilter | string
|
|
11214
12226
|
password?: StringNullableFilter | string | null
|
|
11215
12227
|
googleUser?: XOR<GoogleUserRelationFilter, GoogleUserWhereInput> | null
|
|
12228
|
+
achivements?: AchivementListRelationFilter
|
|
11216
12229
|
purchases?: PurchaseListRelationFilter
|
|
11217
12230
|
packs?: PackListRelationFilter
|
|
11218
12231
|
userCards?: UserCardListRelationFilter
|
|
@@ -11228,6 +12241,7 @@ export namespace Prisma {
|
|
|
11228
12241
|
name?: SortOrder
|
|
11229
12242
|
password?: SortOrder
|
|
11230
12243
|
googleUser?: GoogleUserOrderByWithRelationInput
|
|
12244
|
+
achivements?: AchivementOrderByRelationAggregateInput
|
|
11231
12245
|
purchases?: PurchaseOrderByRelationAggregateInput
|
|
11232
12246
|
packs?: PackOrderByRelationAggregateInput
|
|
11233
12247
|
userCards?: UserCardOrderByRelationAggregateInput
|
|
@@ -11266,6 +12280,61 @@ export namespace Prisma {
|
|
|
11266
12280
|
passwordActivated?: BoolWithAggregatesFilter | boolean
|
|
11267
12281
|
}
|
|
11268
12282
|
|
|
12283
|
+
export type AchivementWhereInput = {
|
|
12284
|
+
AND?: Enumerable<AchivementWhereInput>
|
|
12285
|
+
OR?: Enumerable<AchivementWhereInput>
|
|
12286
|
+
NOT?: Enumerable<AchivementWhereInput>
|
|
12287
|
+
id?: StringFilter | string
|
|
12288
|
+
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
12289
|
+
userId?: StringFilter | string
|
|
12290
|
+
badge?: BoolFilter | boolean
|
|
12291
|
+
type?: EnumAchivementTypeFilter | AchivementType
|
|
12292
|
+
info?: StringFilter | string
|
|
12293
|
+
timestamp?: DateTimeFilter | Date | string
|
|
12294
|
+
dismissed?: BoolFilter | boolean
|
|
12295
|
+
}
|
|
12296
|
+
|
|
12297
|
+
export type AchivementOrderByWithRelationInput = {
|
|
12298
|
+
id?: SortOrder
|
|
12299
|
+
user?: UserOrderByWithRelationInput
|
|
12300
|
+
userId?: SortOrder
|
|
12301
|
+
badge?: SortOrder
|
|
12302
|
+
type?: SortOrder
|
|
12303
|
+
info?: SortOrder
|
|
12304
|
+
timestamp?: SortOrder
|
|
12305
|
+
dismissed?: SortOrder
|
|
12306
|
+
}
|
|
12307
|
+
|
|
12308
|
+
export type AchivementWhereUniqueInput = {
|
|
12309
|
+
id?: string
|
|
12310
|
+
}
|
|
12311
|
+
|
|
12312
|
+
export type AchivementOrderByWithAggregationInput = {
|
|
12313
|
+
id?: SortOrder
|
|
12314
|
+
userId?: SortOrder
|
|
12315
|
+
badge?: SortOrder
|
|
12316
|
+
type?: SortOrder
|
|
12317
|
+
info?: SortOrder
|
|
12318
|
+
timestamp?: SortOrder
|
|
12319
|
+
dismissed?: SortOrder
|
|
12320
|
+
_count?: AchivementCountOrderByAggregateInput
|
|
12321
|
+
_max?: AchivementMaxOrderByAggregateInput
|
|
12322
|
+
_min?: AchivementMinOrderByAggregateInput
|
|
12323
|
+
}
|
|
12324
|
+
|
|
12325
|
+
export type AchivementScalarWhereWithAggregatesInput = {
|
|
12326
|
+
AND?: Enumerable<AchivementScalarWhereWithAggregatesInput>
|
|
12327
|
+
OR?: Enumerable<AchivementScalarWhereWithAggregatesInput>
|
|
12328
|
+
NOT?: Enumerable<AchivementScalarWhereWithAggregatesInput>
|
|
12329
|
+
id?: StringWithAggregatesFilter | string
|
|
12330
|
+
userId?: StringWithAggregatesFilter | string
|
|
12331
|
+
badge?: BoolWithAggregatesFilter | boolean
|
|
12332
|
+
type?: EnumAchivementTypeWithAggregatesFilter | AchivementType
|
|
12333
|
+
info?: StringWithAggregatesFilter | string
|
|
12334
|
+
timestamp?: DateTimeWithAggregatesFilter | Date | string
|
|
12335
|
+
dismissed?: BoolWithAggregatesFilter | boolean
|
|
12336
|
+
}
|
|
12337
|
+
|
|
11269
12338
|
export type TeamWhereInput = {
|
|
11270
12339
|
AND?: Enumerable<TeamWhereInput>
|
|
11271
12340
|
OR?: Enumerable<TeamWhereInput>
|
|
@@ -11512,6 +12581,7 @@ export namespace Prisma {
|
|
|
11512
12581
|
pack: PackCreateNestedOneWithoutCardsInput
|
|
11513
12582
|
front: string
|
|
11514
12583
|
back: string
|
|
12584
|
+
lastUpdate?: Date | string
|
|
11515
12585
|
userCards?: UserCardCreateNestedManyWithoutCardInput
|
|
11516
12586
|
speechGenerated?: boolean
|
|
11517
12587
|
}
|
|
@@ -11521,6 +12591,7 @@ export namespace Prisma {
|
|
|
11521
12591
|
packId: string
|
|
11522
12592
|
front: string
|
|
11523
12593
|
back: string
|
|
12594
|
+
lastUpdate?: Date | string
|
|
11524
12595
|
userCards?: UserCardUncheckedCreateNestedManyWithoutCardInput
|
|
11525
12596
|
speechGenerated?: boolean
|
|
11526
12597
|
}
|
|
@@ -11530,6 +12601,7 @@ export namespace Prisma {
|
|
|
11530
12601
|
pack?: PackUpdateOneRequiredWithoutCardsNestedInput
|
|
11531
12602
|
front?: StringFieldUpdateOperationsInput | string
|
|
11532
12603
|
back?: StringFieldUpdateOperationsInput | string
|
|
12604
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11533
12605
|
userCards?: UserCardUpdateManyWithoutCardNestedInput
|
|
11534
12606
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
11535
12607
|
}
|
|
@@ -11539,6 +12611,7 @@ export namespace Prisma {
|
|
|
11539
12611
|
packId?: StringFieldUpdateOperationsInput | string
|
|
11540
12612
|
front?: StringFieldUpdateOperationsInput | string
|
|
11541
12613
|
back?: StringFieldUpdateOperationsInput | string
|
|
12614
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11542
12615
|
userCards?: UserCardUncheckedUpdateManyWithoutCardNestedInput
|
|
11543
12616
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
11544
12617
|
}
|
|
@@ -11548,6 +12621,7 @@ export namespace Prisma {
|
|
|
11548
12621
|
packId: string
|
|
11549
12622
|
front: string
|
|
11550
12623
|
back: string
|
|
12624
|
+
lastUpdate?: Date | string
|
|
11551
12625
|
speechGenerated?: boolean
|
|
11552
12626
|
}
|
|
11553
12627
|
|
|
@@ -11555,6 +12629,7 @@ export namespace Prisma {
|
|
|
11555
12629
|
id?: StringFieldUpdateOperationsInput | string
|
|
11556
12630
|
front?: StringFieldUpdateOperationsInput | string
|
|
11557
12631
|
back?: StringFieldUpdateOperationsInput | string
|
|
12632
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11558
12633
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
11559
12634
|
}
|
|
11560
12635
|
|
|
@@ -11563,6 +12638,7 @@ export namespace Prisma {
|
|
|
11563
12638
|
packId?: StringFieldUpdateOperationsInput | string
|
|
11564
12639
|
front?: StringFieldUpdateOperationsInput | string
|
|
11565
12640
|
back?: StringFieldUpdateOperationsInput | string
|
|
12641
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
11566
12642
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
11567
12643
|
}
|
|
11568
12644
|
|
|
@@ -11763,6 +12839,7 @@ export namespace Prisma {
|
|
|
11763
12839
|
name: string
|
|
11764
12840
|
password?: string | null
|
|
11765
12841
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
12842
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
11766
12843
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
11767
12844
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
11768
12845
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -11777,6 +12854,7 @@ export namespace Prisma {
|
|
|
11777
12854
|
name: string
|
|
11778
12855
|
password?: string | null
|
|
11779
12856
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
12857
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
11780
12858
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
11781
12859
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
11782
12860
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -11791,6 +12869,7 @@ export namespace Prisma {
|
|
|
11791
12869
|
name?: StringFieldUpdateOperationsInput | string
|
|
11792
12870
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11793
12871
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
12872
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
11794
12873
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
11795
12874
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
11796
12875
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -11805,6 +12884,7 @@ export namespace Prisma {
|
|
|
11805
12884
|
name?: StringFieldUpdateOperationsInput | string
|
|
11806
12885
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11807
12886
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
12887
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
11808
12888
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
11809
12889
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
11810
12890
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -11839,6 +12919,75 @@ export namespace Prisma {
|
|
|
11839
12919
|
passwordActivated?: BoolFieldUpdateOperationsInput | boolean
|
|
11840
12920
|
}
|
|
11841
12921
|
|
|
12922
|
+
export type AchivementCreateInput = {
|
|
12923
|
+
id?: string
|
|
12924
|
+
user: UserCreateNestedOneWithoutAchivementsInput
|
|
12925
|
+
badge: boolean
|
|
12926
|
+
type: AchivementType
|
|
12927
|
+
info: string
|
|
12928
|
+
timestamp: Date | string
|
|
12929
|
+
dismissed?: boolean
|
|
12930
|
+
}
|
|
12931
|
+
|
|
12932
|
+
export type AchivementUncheckedCreateInput = {
|
|
12933
|
+
id?: string
|
|
12934
|
+
userId: string
|
|
12935
|
+
badge: boolean
|
|
12936
|
+
type: AchivementType
|
|
12937
|
+
info: string
|
|
12938
|
+
timestamp: Date | string
|
|
12939
|
+
dismissed?: boolean
|
|
12940
|
+
}
|
|
12941
|
+
|
|
12942
|
+
export type AchivementUpdateInput = {
|
|
12943
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
12944
|
+
user?: UserUpdateOneRequiredWithoutAchivementsNestedInput
|
|
12945
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
12946
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
12947
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
12948
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
12949
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
12950
|
+
}
|
|
12951
|
+
|
|
12952
|
+
export type AchivementUncheckedUpdateInput = {
|
|
12953
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
12954
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
12955
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
12956
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
12957
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
12958
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
12959
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
12960
|
+
}
|
|
12961
|
+
|
|
12962
|
+
export type AchivementCreateManyInput = {
|
|
12963
|
+
id?: string
|
|
12964
|
+
userId: string
|
|
12965
|
+
badge: boolean
|
|
12966
|
+
type: AchivementType
|
|
12967
|
+
info: string
|
|
12968
|
+
timestamp: Date | string
|
|
12969
|
+
dismissed?: boolean
|
|
12970
|
+
}
|
|
12971
|
+
|
|
12972
|
+
export type AchivementUpdateManyMutationInput = {
|
|
12973
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
12974
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
12975
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
12976
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
12977
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
12978
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
12979
|
+
}
|
|
12980
|
+
|
|
12981
|
+
export type AchivementUncheckedUpdateManyInput = {
|
|
12982
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
12983
|
+
userId?: StringFieldUpdateOperationsInput | string
|
|
12984
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
12985
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
12986
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
12987
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
12988
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
12989
|
+
}
|
|
12990
|
+
|
|
11842
12991
|
export type TeamCreateInput = {
|
|
11843
12992
|
id?: string
|
|
11844
12993
|
name: string
|
|
@@ -12140,6 +13289,17 @@ export namespace Prisma {
|
|
|
12140
13289
|
isNot?: PackWhereInput
|
|
12141
13290
|
}
|
|
12142
13291
|
|
|
13292
|
+
export type DateTimeFilter = {
|
|
13293
|
+
equals?: Date | string
|
|
13294
|
+
in?: Enumerable<Date> | Enumerable<string>
|
|
13295
|
+
notIn?: Enumerable<Date> | Enumerable<string>
|
|
13296
|
+
lt?: Date | string
|
|
13297
|
+
lte?: Date | string
|
|
13298
|
+
gt?: Date | string
|
|
13299
|
+
gte?: Date | string
|
|
13300
|
+
not?: NestedDateTimeFilter | Date | string
|
|
13301
|
+
}
|
|
13302
|
+
|
|
12143
13303
|
export type UserCardListRelationFilter = {
|
|
12144
13304
|
every?: UserCardWhereInput
|
|
12145
13305
|
some?: UserCardWhereInput
|
|
@@ -12170,6 +13330,7 @@ export namespace Prisma {
|
|
|
12170
13330
|
packId?: SortOrder
|
|
12171
13331
|
front?: SortOrder
|
|
12172
13332
|
back?: SortOrder
|
|
13333
|
+
lastUpdate?: SortOrder
|
|
12173
13334
|
speechGenerated?: SortOrder
|
|
12174
13335
|
}
|
|
12175
13336
|
|
|
@@ -12178,6 +13339,7 @@ export namespace Prisma {
|
|
|
12178
13339
|
packId?: SortOrder
|
|
12179
13340
|
front?: SortOrder
|
|
12180
13341
|
back?: SortOrder
|
|
13342
|
+
lastUpdate?: SortOrder
|
|
12181
13343
|
speechGenerated?: SortOrder
|
|
12182
13344
|
}
|
|
12183
13345
|
|
|
@@ -12186,6 +13348,7 @@ export namespace Prisma {
|
|
|
12186
13348
|
packId?: SortOrder
|
|
12187
13349
|
front?: SortOrder
|
|
12188
13350
|
back?: SortOrder
|
|
13351
|
+
lastUpdate?: SortOrder
|
|
12189
13352
|
speechGenerated?: SortOrder
|
|
12190
13353
|
}
|
|
12191
13354
|
|
|
@@ -12207,6 +13370,20 @@ export namespace Prisma {
|
|
|
12207
13370
|
_max?: NestedStringFilter
|
|
12208
13371
|
}
|
|
12209
13372
|
|
|
13373
|
+
export type DateTimeWithAggregatesFilter = {
|
|
13374
|
+
equals?: Date | string
|
|
13375
|
+
in?: Enumerable<Date> | Enumerable<string>
|
|
13376
|
+
notIn?: Enumerable<Date> | Enumerable<string>
|
|
13377
|
+
lt?: Date | string
|
|
13378
|
+
lte?: Date | string
|
|
13379
|
+
gt?: Date | string
|
|
13380
|
+
gte?: Date | string
|
|
13381
|
+
not?: NestedDateTimeWithAggregatesFilter | Date | string
|
|
13382
|
+
_count?: NestedIntFilter
|
|
13383
|
+
_min?: NestedDateTimeFilter
|
|
13384
|
+
_max?: NestedDateTimeFilter
|
|
13385
|
+
}
|
|
13386
|
+
|
|
12210
13387
|
export type BoolWithAggregatesFilter = {
|
|
12211
13388
|
equals?: boolean
|
|
12212
13389
|
not?: NestedBoolWithAggregatesFilter | boolean
|
|
@@ -12498,6 +13675,12 @@ export namespace Prisma {
|
|
|
12498
13675
|
isNot?: GoogleUserWhereInput | null
|
|
12499
13676
|
}
|
|
12500
13677
|
|
|
13678
|
+
export type AchivementListRelationFilter = {
|
|
13679
|
+
every?: AchivementWhereInput
|
|
13680
|
+
some?: AchivementWhereInput
|
|
13681
|
+
none?: AchivementWhereInput
|
|
13682
|
+
}
|
|
13683
|
+
|
|
12501
13684
|
export type AnswerListRelationFilter = {
|
|
12502
13685
|
every?: AnswerWhereInput
|
|
12503
13686
|
some?: AnswerWhereInput
|
|
@@ -12509,6 +13692,10 @@ export namespace Prisma {
|
|
|
12509
13692
|
isNot?: TeamWhereInput | null
|
|
12510
13693
|
}
|
|
12511
13694
|
|
|
13695
|
+
export type AchivementOrderByRelationAggregateInput = {
|
|
13696
|
+
_count?: SortOrder
|
|
13697
|
+
}
|
|
13698
|
+
|
|
12512
13699
|
export type AnswerOrderByRelationAggregateInput = {
|
|
12513
13700
|
_count?: SortOrder
|
|
12514
13701
|
}
|
|
@@ -12540,6 +13727,53 @@ export namespace Prisma {
|
|
|
12540
13727
|
passwordActivated?: SortOrder
|
|
12541
13728
|
}
|
|
12542
13729
|
|
|
13730
|
+
export type EnumAchivementTypeFilter = {
|
|
13731
|
+
equals?: AchivementType
|
|
13732
|
+
in?: Enumerable<AchivementType>
|
|
13733
|
+
notIn?: Enumerable<AchivementType>
|
|
13734
|
+
not?: NestedEnumAchivementTypeFilter | AchivementType
|
|
13735
|
+
}
|
|
13736
|
+
|
|
13737
|
+
export type AchivementCountOrderByAggregateInput = {
|
|
13738
|
+
id?: SortOrder
|
|
13739
|
+
userId?: SortOrder
|
|
13740
|
+
badge?: SortOrder
|
|
13741
|
+
type?: SortOrder
|
|
13742
|
+
info?: SortOrder
|
|
13743
|
+
timestamp?: SortOrder
|
|
13744
|
+
dismissed?: SortOrder
|
|
13745
|
+
}
|
|
13746
|
+
|
|
13747
|
+
export type AchivementMaxOrderByAggregateInput = {
|
|
13748
|
+
id?: SortOrder
|
|
13749
|
+
userId?: SortOrder
|
|
13750
|
+
badge?: SortOrder
|
|
13751
|
+
type?: SortOrder
|
|
13752
|
+
info?: SortOrder
|
|
13753
|
+
timestamp?: SortOrder
|
|
13754
|
+
dismissed?: SortOrder
|
|
13755
|
+
}
|
|
13756
|
+
|
|
13757
|
+
export type AchivementMinOrderByAggregateInput = {
|
|
13758
|
+
id?: SortOrder
|
|
13759
|
+
userId?: SortOrder
|
|
13760
|
+
badge?: SortOrder
|
|
13761
|
+
type?: SortOrder
|
|
13762
|
+
info?: SortOrder
|
|
13763
|
+
timestamp?: SortOrder
|
|
13764
|
+
dismissed?: SortOrder
|
|
13765
|
+
}
|
|
13766
|
+
|
|
13767
|
+
export type EnumAchivementTypeWithAggregatesFilter = {
|
|
13768
|
+
equals?: AchivementType
|
|
13769
|
+
in?: Enumerable<AchivementType>
|
|
13770
|
+
notIn?: Enumerable<AchivementType>
|
|
13771
|
+
not?: NestedEnumAchivementTypeWithAggregatesFilter | AchivementType
|
|
13772
|
+
_count?: NestedIntFilter
|
|
13773
|
+
_min?: NestedEnumAchivementTypeFilter
|
|
13774
|
+
_max?: NestedEnumAchivementTypeFilter
|
|
13775
|
+
}
|
|
13776
|
+
|
|
12543
13777
|
export type IntFilter = {
|
|
12544
13778
|
equals?: number
|
|
12545
13779
|
in?: Enumerable<number>
|
|
@@ -12635,17 +13869,6 @@ export namespace Prisma {
|
|
|
12635
13869
|
userId?: SortOrder
|
|
12636
13870
|
}
|
|
12637
13871
|
|
|
12638
|
-
export type DateTimeFilter = {
|
|
12639
|
-
equals?: Date | string
|
|
12640
|
-
in?: Enumerable<Date> | Enumerable<string>
|
|
12641
|
-
notIn?: Enumerable<Date> | Enumerable<string>
|
|
12642
|
-
lt?: Date | string
|
|
12643
|
-
lte?: Date | string
|
|
12644
|
-
gt?: Date | string
|
|
12645
|
-
gte?: Date | string
|
|
12646
|
-
not?: NestedDateTimeFilter | Date | string
|
|
12647
|
-
}
|
|
12648
|
-
|
|
12649
13872
|
export type AnswerCountOrderByAggregateInput = {
|
|
12650
13873
|
id?: SortOrder
|
|
12651
13874
|
userId?: SortOrder
|
|
@@ -12670,20 +13893,6 @@ export namespace Prisma {
|
|
|
12670
13893
|
timestamp?: SortOrder
|
|
12671
13894
|
}
|
|
12672
13895
|
|
|
12673
|
-
export type DateTimeWithAggregatesFilter = {
|
|
12674
|
-
equals?: Date | string
|
|
12675
|
-
in?: Enumerable<Date> | Enumerable<string>
|
|
12676
|
-
notIn?: Enumerable<Date> | Enumerable<string>
|
|
12677
|
-
lt?: Date | string
|
|
12678
|
-
lte?: Date | string
|
|
12679
|
-
gt?: Date | string
|
|
12680
|
-
gte?: Date | string
|
|
12681
|
-
not?: NestedDateTimeWithAggregatesFilter | Date | string
|
|
12682
|
-
_count?: NestedIntFilter
|
|
12683
|
-
_min?: NestedDateTimeFilter
|
|
12684
|
-
_max?: NestedDateTimeFilter
|
|
12685
|
-
}
|
|
12686
|
-
|
|
12687
13896
|
export type EnumPurchaseStatusFilter = {
|
|
12688
13897
|
equals?: PurchaseStatus
|
|
12689
13898
|
in?: Enumerable<PurchaseStatus>
|
|
@@ -12774,6 +13983,10 @@ export namespace Prisma {
|
|
|
12774
13983
|
update?: XOR<PackUpdateWithoutCardsInput, PackUncheckedUpdateWithoutCardsInput>
|
|
12775
13984
|
}
|
|
12776
13985
|
|
|
13986
|
+
export type DateTimeFieldUpdateOperationsInput = {
|
|
13987
|
+
set?: Date | string
|
|
13988
|
+
}
|
|
13989
|
+
|
|
12777
13990
|
export type UserCardUpdateManyWithoutCardNestedInput = {
|
|
12778
13991
|
create?: XOR<Enumerable<UserCardCreateWithoutCardInput>, Enumerable<UserCardUncheckedCreateWithoutCardInput>>
|
|
12779
13992
|
connectOrCreate?: Enumerable<UserCardCreateOrConnectWithoutCardInput>
|
|
@@ -13096,6 +14309,13 @@ export namespace Prisma {
|
|
|
13096
14309
|
connect?: GoogleUserWhereUniqueInput
|
|
13097
14310
|
}
|
|
13098
14311
|
|
|
14312
|
+
export type AchivementCreateNestedManyWithoutUserInput = {
|
|
14313
|
+
create?: XOR<Enumerable<AchivementCreateWithoutUserInput>, Enumerable<AchivementUncheckedCreateWithoutUserInput>>
|
|
14314
|
+
connectOrCreate?: Enumerable<AchivementCreateOrConnectWithoutUserInput>
|
|
14315
|
+
createMany?: AchivementCreateManyUserInputEnvelope
|
|
14316
|
+
connect?: Enumerable<AchivementWhereUniqueInput>
|
|
14317
|
+
}
|
|
14318
|
+
|
|
13099
14319
|
export type PurchaseCreateNestedManyWithoutUserInput = {
|
|
13100
14320
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13101
14321
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13135,6 +14355,13 @@ export namespace Prisma {
|
|
|
13135
14355
|
connect?: GoogleUserWhereUniqueInput
|
|
13136
14356
|
}
|
|
13137
14357
|
|
|
14358
|
+
export type AchivementUncheckedCreateNestedManyWithoutUserInput = {
|
|
14359
|
+
create?: XOR<Enumerable<AchivementCreateWithoutUserInput>, Enumerable<AchivementUncheckedCreateWithoutUserInput>>
|
|
14360
|
+
connectOrCreate?: Enumerable<AchivementCreateOrConnectWithoutUserInput>
|
|
14361
|
+
createMany?: AchivementCreateManyUserInputEnvelope
|
|
14362
|
+
connect?: Enumerable<AchivementWhereUniqueInput>
|
|
14363
|
+
}
|
|
14364
|
+
|
|
13138
14365
|
export type PurchaseUncheckedCreateNestedManyWithoutUserInput = {
|
|
13139
14366
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13140
14367
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13172,6 +14399,20 @@ export namespace Prisma {
|
|
|
13172
14399
|
update?: XOR<GoogleUserUpdateWithoutUserInput, GoogleUserUncheckedUpdateWithoutUserInput>
|
|
13173
14400
|
}
|
|
13174
14401
|
|
|
14402
|
+
export type AchivementUpdateManyWithoutUserNestedInput = {
|
|
14403
|
+
create?: XOR<Enumerable<AchivementCreateWithoutUserInput>, Enumerable<AchivementUncheckedCreateWithoutUserInput>>
|
|
14404
|
+
connectOrCreate?: Enumerable<AchivementCreateOrConnectWithoutUserInput>
|
|
14405
|
+
upsert?: Enumerable<AchivementUpsertWithWhereUniqueWithoutUserInput>
|
|
14406
|
+
createMany?: AchivementCreateManyUserInputEnvelope
|
|
14407
|
+
set?: Enumerable<AchivementWhereUniqueInput>
|
|
14408
|
+
disconnect?: Enumerable<AchivementWhereUniqueInput>
|
|
14409
|
+
delete?: Enumerable<AchivementWhereUniqueInput>
|
|
14410
|
+
connect?: Enumerable<AchivementWhereUniqueInput>
|
|
14411
|
+
update?: Enumerable<AchivementUpdateWithWhereUniqueWithoutUserInput>
|
|
14412
|
+
updateMany?: Enumerable<AchivementUpdateManyWithWhereWithoutUserInput>
|
|
14413
|
+
deleteMany?: Enumerable<AchivementScalarWhereInput>
|
|
14414
|
+
}
|
|
14415
|
+
|
|
13175
14416
|
export type PurchaseUpdateManyWithoutUserNestedInput = {
|
|
13176
14417
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13177
14418
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13247,6 +14488,20 @@ export namespace Prisma {
|
|
|
13247
14488
|
update?: XOR<GoogleUserUpdateWithoutUserInput, GoogleUserUncheckedUpdateWithoutUserInput>
|
|
13248
14489
|
}
|
|
13249
14490
|
|
|
14491
|
+
export type AchivementUncheckedUpdateManyWithoutUserNestedInput = {
|
|
14492
|
+
create?: XOR<Enumerable<AchivementCreateWithoutUserInput>, Enumerable<AchivementUncheckedCreateWithoutUserInput>>
|
|
14493
|
+
connectOrCreate?: Enumerable<AchivementCreateOrConnectWithoutUserInput>
|
|
14494
|
+
upsert?: Enumerable<AchivementUpsertWithWhereUniqueWithoutUserInput>
|
|
14495
|
+
createMany?: AchivementCreateManyUserInputEnvelope
|
|
14496
|
+
set?: Enumerable<AchivementWhereUniqueInput>
|
|
14497
|
+
disconnect?: Enumerable<AchivementWhereUniqueInput>
|
|
14498
|
+
delete?: Enumerable<AchivementWhereUniqueInput>
|
|
14499
|
+
connect?: Enumerable<AchivementWhereUniqueInput>
|
|
14500
|
+
update?: Enumerable<AchivementUpdateWithWhereUniqueWithoutUserInput>
|
|
14501
|
+
updateMany?: Enumerable<AchivementUpdateManyWithWhereWithoutUserInput>
|
|
14502
|
+
deleteMany?: Enumerable<AchivementScalarWhereInput>
|
|
14503
|
+
}
|
|
14504
|
+
|
|
13250
14505
|
export type PurchaseUncheckedUpdateManyWithoutUserNestedInput = {
|
|
13251
14506
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13252
14507
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13302,6 +14557,24 @@ export namespace Prisma {
|
|
|
13302
14557
|
deleteMany?: Enumerable<AnswerScalarWhereInput>
|
|
13303
14558
|
}
|
|
13304
14559
|
|
|
14560
|
+
export type UserCreateNestedOneWithoutAchivementsInput = {
|
|
14561
|
+
create?: XOR<UserCreateWithoutAchivementsInput, UserUncheckedCreateWithoutAchivementsInput>
|
|
14562
|
+
connectOrCreate?: UserCreateOrConnectWithoutAchivementsInput
|
|
14563
|
+
connect?: UserWhereUniqueInput
|
|
14564
|
+
}
|
|
14565
|
+
|
|
14566
|
+
export type UserUpdateOneRequiredWithoutAchivementsNestedInput = {
|
|
14567
|
+
create?: XOR<UserCreateWithoutAchivementsInput, UserUncheckedCreateWithoutAchivementsInput>
|
|
14568
|
+
connectOrCreate?: UserCreateOrConnectWithoutAchivementsInput
|
|
14569
|
+
upsert?: UserUpsertWithoutAchivementsInput
|
|
14570
|
+
connect?: UserWhereUniqueInput
|
|
14571
|
+
update?: XOR<UserUpdateWithoutAchivementsInput, UserUncheckedUpdateWithoutAchivementsInput>
|
|
14572
|
+
}
|
|
14573
|
+
|
|
14574
|
+
export type EnumAchivementTypeFieldUpdateOperationsInput = {
|
|
14575
|
+
set?: AchivementType
|
|
14576
|
+
}
|
|
14577
|
+
|
|
13305
14578
|
export type PackCreateNestedManyWithoutTeamsInput = {
|
|
13306
14579
|
create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
|
|
13307
14580
|
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
|
|
@@ -13460,10 +14733,6 @@ export namespace Prisma {
|
|
|
13460
14733
|
update?: XOR<UserUpdateWithoutAnswersInput, UserUncheckedUpdateWithoutAnswersInput>
|
|
13461
14734
|
}
|
|
13462
14735
|
|
|
13463
|
-
export type DateTimeFieldUpdateOperationsInput = {
|
|
13464
|
-
set?: Date | string
|
|
13465
|
-
}
|
|
13466
|
-
|
|
13467
14736
|
export type UserCreateNestedOneWithoutPurchasesInput = {
|
|
13468
14737
|
create?: XOR<UserCreateWithoutPurchasesInput, UserUncheckedCreateWithoutPurchasesInput>
|
|
13469
14738
|
connectOrCreate?: UserCreateOrConnectWithoutPurchasesInput
|
|
@@ -13510,6 +14779,17 @@ export namespace Prisma {
|
|
|
13510
14779
|
not?: NestedStringFilter | string
|
|
13511
14780
|
}
|
|
13512
14781
|
|
|
14782
|
+
export type NestedDateTimeFilter = {
|
|
14783
|
+
equals?: Date | string
|
|
14784
|
+
in?: Enumerable<Date> | Enumerable<string>
|
|
14785
|
+
notIn?: Enumerable<Date> | Enumerable<string>
|
|
14786
|
+
lt?: Date | string
|
|
14787
|
+
lte?: Date | string
|
|
14788
|
+
gt?: Date | string
|
|
14789
|
+
gte?: Date | string
|
|
14790
|
+
not?: NestedDateTimeFilter | Date | string
|
|
14791
|
+
}
|
|
14792
|
+
|
|
13513
14793
|
export type NestedBoolFilter = {
|
|
13514
14794
|
equals?: boolean
|
|
13515
14795
|
not?: NestedBoolFilter | boolean
|
|
@@ -13543,6 +14823,20 @@ export namespace Prisma {
|
|
|
13543
14823
|
not?: NestedIntFilter | number
|
|
13544
14824
|
}
|
|
13545
14825
|
|
|
14826
|
+
export type NestedDateTimeWithAggregatesFilter = {
|
|
14827
|
+
equals?: Date | string
|
|
14828
|
+
in?: Enumerable<Date> | Enumerable<string>
|
|
14829
|
+
notIn?: Enumerable<Date> | Enumerable<string>
|
|
14830
|
+
lt?: Date | string
|
|
14831
|
+
lte?: Date | string
|
|
14832
|
+
gt?: Date | string
|
|
14833
|
+
gte?: Date | string
|
|
14834
|
+
not?: NestedDateTimeWithAggregatesFilter | Date | string
|
|
14835
|
+
_count?: NestedIntFilter
|
|
14836
|
+
_min?: NestedDateTimeFilter
|
|
14837
|
+
_max?: NestedDateTimeFilter
|
|
14838
|
+
}
|
|
14839
|
+
|
|
13546
14840
|
export type NestedBoolWithAggregatesFilter = {
|
|
13547
14841
|
equals?: boolean
|
|
13548
14842
|
not?: NestedBoolWithAggregatesFilter | boolean
|
|
@@ -13672,6 +14966,23 @@ export namespace Prisma {
|
|
|
13672
14966
|
_max?: NestedDecimalFilter
|
|
13673
14967
|
}
|
|
13674
14968
|
|
|
14969
|
+
export type NestedEnumAchivementTypeFilter = {
|
|
14970
|
+
equals?: AchivementType
|
|
14971
|
+
in?: Enumerable<AchivementType>
|
|
14972
|
+
notIn?: Enumerable<AchivementType>
|
|
14973
|
+
not?: NestedEnumAchivementTypeFilter | AchivementType
|
|
14974
|
+
}
|
|
14975
|
+
|
|
14976
|
+
export type NestedEnumAchivementTypeWithAggregatesFilter = {
|
|
14977
|
+
equals?: AchivementType
|
|
14978
|
+
in?: Enumerable<AchivementType>
|
|
14979
|
+
notIn?: Enumerable<AchivementType>
|
|
14980
|
+
not?: NestedEnumAchivementTypeWithAggregatesFilter | AchivementType
|
|
14981
|
+
_count?: NestedIntFilter
|
|
14982
|
+
_min?: NestedEnumAchivementTypeFilter
|
|
14983
|
+
_max?: NestedEnumAchivementTypeFilter
|
|
14984
|
+
}
|
|
14985
|
+
|
|
13675
14986
|
export type NestedIntWithAggregatesFilter = {
|
|
13676
14987
|
equals?: number
|
|
13677
14988
|
in?: Enumerable<number>
|
|
@@ -13699,31 +15010,6 @@ export namespace Prisma {
|
|
|
13699
15010
|
not?: NestedFloatFilter | number
|
|
13700
15011
|
}
|
|
13701
15012
|
|
|
13702
|
-
export type NestedDateTimeFilter = {
|
|
13703
|
-
equals?: Date | string
|
|
13704
|
-
in?: Enumerable<Date> | Enumerable<string>
|
|
13705
|
-
notIn?: Enumerable<Date> | Enumerable<string>
|
|
13706
|
-
lt?: Date | string
|
|
13707
|
-
lte?: Date | string
|
|
13708
|
-
gt?: Date | string
|
|
13709
|
-
gte?: Date | string
|
|
13710
|
-
not?: NestedDateTimeFilter | Date | string
|
|
13711
|
-
}
|
|
13712
|
-
|
|
13713
|
-
export type NestedDateTimeWithAggregatesFilter = {
|
|
13714
|
-
equals?: Date | string
|
|
13715
|
-
in?: Enumerable<Date> | Enumerable<string>
|
|
13716
|
-
notIn?: Enumerable<Date> | Enumerable<string>
|
|
13717
|
-
lt?: Date | string
|
|
13718
|
-
lte?: Date | string
|
|
13719
|
-
gt?: Date | string
|
|
13720
|
-
gte?: Date | string
|
|
13721
|
-
not?: NestedDateTimeWithAggregatesFilter | Date | string
|
|
13722
|
-
_count?: NestedIntFilter
|
|
13723
|
-
_min?: NestedDateTimeFilter
|
|
13724
|
-
_max?: NestedDateTimeFilter
|
|
13725
|
-
}
|
|
13726
|
-
|
|
13727
15013
|
export type NestedEnumPurchaseStatusFilter = {
|
|
13728
15014
|
equals?: PurchaseStatus
|
|
13729
15015
|
in?: Enumerable<PurchaseStatus>
|
|
@@ -13868,6 +15154,7 @@ export namespace Prisma {
|
|
|
13868
15154
|
name: string
|
|
13869
15155
|
password?: string | null
|
|
13870
15156
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
15157
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
13871
15158
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
13872
15159
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
13873
15160
|
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
@@ -13881,6 +15168,7 @@ export namespace Prisma {
|
|
|
13881
15168
|
name: string
|
|
13882
15169
|
password?: string | null
|
|
13883
15170
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
15171
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
13884
15172
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
13885
15173
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
13886
15174
|
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -13898,6 +15186,7 @@ export namespace Prisma {
|
|
|
13898
15186
|
pack: PackCreateNestedOneWithoutCardsInput
|
|
13899
15187
|
front: string
|
|
13900
15188
|
back: string
|
|
15189
|
+
lastUpdate?: Date | string
|
|
13901
15190
|
speechGenerated?: boolean
|
|
13902
15191
|
}
|
|
13903
15192
|
|
|
@@ -13906,6 +15195,7 @@ export namespace Prisma {
|
|
|
13906
15195
|
packId: string
|
|
13907
15196
|
front: string
|
|
13908
15197
|
back: string
|
|
15198
|
+
lastUpdate?: Date | string
|
|
13909
15199
|
speechGenerated?: boolean
|
|
13910
15200
|
}
|
|
13911
15201
|
|
|
@@ -13925,6 +15215,7 @@ export namespace Prisma {
|
|
|
13925
15215
|
name?: StringFieldUpdateOperationsInput | string
|
|
13926
15216
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13927
15217
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
15218
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
13928
15219
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
13929
15220
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
13930
15221
|
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
@@ -13938,6 +15229,7 @@ export namespace Prisma {
|
|
|
13938
15229
|
name?: StringFieldUpdateOperationsInput | string
|
|
13939
15230
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13940
15231
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
15232
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
13941
15233
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
13942
15234
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
13943
15235
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -13955,6 +15247,7 @@ export namespace Prisma {
|
|
|
13955
15247
|
pack?: PackUpdateOneRequiredWithoutCardsNestedInput
|
|
13956
15248
|
front?: StringFieldUpdateOperationsInput | string
|
|
13957
15249
|
back?: StringFieldUpdateOperationsInput | string
|
|
15250
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13958
15251
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
13959
15252
|
}
|
|
13960
15253
|
|
|
@@ -13963,6 +15256,7 @@ export namespace Prisma {
|
|
|
13963
15256
|
packId?: StringFieldUpdateOperationsInput | string
|
|
13964
15257
|
front?: StringFieldUpdateOperationsInput | string
|
|
13965
15258
|
back?: StringFieldUpdateOperationsInput | string
|
|
15259
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13966
15260
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
13967
15261
|
}
|
|
13968
15262
|
|
|
@@ -14075,6 +15369,7 @@ export namespace Prisma {
|
|
|
14075
15369
|
id?: string
|
|
14076
15370
|
front: string
|
|
14077
15371
|
back: string
|
|
15372
|
+
lastUpdate?: Date | string
|
|
14078
15373
|
userCards?: UserCardCreateNestedManyWithoutCardInput
|
|
14079
15374
|
speechGenerated?: boolean
|
|
14080
15375
|
}
|
|
@@ -14083,6 +15378,7 @@ export namespace Prisma {
|
|
|
14083
15378
|
id?: string
|
|
14084
15379
|
front: string
|
|
14085
15380
|
back: string
|
|
15381
|
+
lastUpdate?: Date | string
|
|
14086
15382
|
userCards?: UserCardUncheckedCreateNestedManyWithoutCardInput
|
|
14087
15383
|
speechGenerated?: boolean
|
|
14088
15384
|
}
|
|
@@ -14103,6 +15399,7 @@ export namespace Prisma {
|
|
|
14103
15399
|
name: string
|
|
14104
15400
|
password?: string | null
|
|
14105
15401
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
15402
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14106
15403
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14107
15404
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
14108
15405
|
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
@@ -14116,6 +15413,7 @@ export namespace Prisma {
|
|
|
14116
15413
|
name: string
|
|
14117
15414
|
password?: string | null
|
|
14118
15415
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
15416
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14119
15417
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14120
15418
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
14121
15419
|
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14239,6 +15537,7 @@ export namespace Prisma {
|
|
|
14239
15537
|
packId?: StringFilter | string
|
|
14240
15538
|
front?: StringFilter | string
|
|
14241
15539
|
back?: StringFilter | string
|
|
15540
|
+
lastUpdate?: DateTimeFilter | Date | string
|
|
14242
15541
|
speechGenerated?: BoolFilter | boolean
|
|
14243
15542
|
}
|
|
14244
15543
|
|
|
@@ -14340,6 +15639,34 @@ export namespace Prisma {
|
|
|
14340
15639
|
create: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
|
|
14341
15640
|
}
|
|
14342
15641
|
|
|
15642
|
+
export type AchivementCreateWithoutUserInput = {
|
|
15643
|
+
id?: string
|
|
15644
|
+
badge: boolean
|
|
15645
|
+
type: AchivementType
|
|
15646
|
+
info: string
|
|
15647
|
+
timestamp: Date | string
|
|
15648
|
+
dismissed?: boolean
|
|
15649
|
+
}
|
|
15650
|
+
|
|
15651
|
+
export type AchivementUncheckedCreateWithoutUserInput = {
|
|
15652
|
+
id?: string
|
|
15653
|
+
badge: boolean
|
|
15654
|
+
type: AchivementType
|
|
15655
|
+
info: string
|
|
15656
|
+
timestamp: Date | string
|
|
15657
|
+
dismissed?: boolean
|
|
15658
|
+
}
|
|
15659
|
+
|
|
15660
|
+
export type AchivementCreateOrConnectWithoutUserInput = {
|
|
15661
|
+
where: AchivementWhereUniqueInput
|
|
15662
|
+
create: XOR<AchivementCreateWithoutUserInput, AchivementUncheckedCreateWithoutUserInput>
|
|
15663
|
+
}
|
|
15664
|
+
|
|
15665
|
+
export type AchivementCreateManyUserInputEnvelope = {
|
|
15666
|
+
data: Enumerable<AchivementCreateManyUserInput>
|
|
15667
|
+
skipDuplicates?: boolean
|
|
15668
|
+
}
|
|
15669
|
+
|
|
14343
15670
|
export type PurchaseCreateWithoutUserInput = {
|
|
14344
15671
|
id?: string
|
|
14345
15672
|
pack: PackCreateNestedOneWithoutPurchasesInput
|
|
@@ -14489,6 +15816,35 @@ export namespace Prisma {
|
|
|
14489
15816
|
id?: StringFieldUpdateOperationsInput | string
|
|
14490
15817
|
}
|
|
14491
15818
|
|
|
15819
|
+
export type AchivementUpsertWithWhereUniqueWithoutUserInput = {
|
|
15820
|
+
where: AchivementWhereUniqueInput
|
|
15821
|
+
update: XOR<AchivementUpdateWithoutUserInput, AchivementUncheckedUpdateWithoutUserInput>
|
|
15822
|
+
create: XOR<AchivementCreateWithoutUserInput, AchivementUncheckedCreateWithoutUserInput>
|
|
15823
|
+
}
|
|
15824
|
+
|
|
15825
|
+
export type AchivementUpdateWithWhereUniqueWithoutUserInput = {
|
|
15826
|
+
where: AchivementWhereUniqueInput
|
|
15827
|
+
data: XOR<AchivementUpdateWithoutUserInput, AchivementUncheckedUpdateWithoutUserInput>
|
|
15828
|
+
}
|
|
15829
|
+
|
|
15830
|
+
export type AchivementUpdateManyWithWhereWithoutUserInput = {
|
|
15831
|
+
where: AchivementScalarWhereInput
|
|
15832
|
+
data: XOR<AchivementUpdateManyMutationInput, AchivementUncheckedUpdateManyWithoutAchivementsInput>
|
|
15833
|
+
}
|
|
15834
|
+
|
|
15835
|
+
export type AchivementScalarWhereInput = {
|
|
15836
|
+
AND?: Enumerable<AchivementScalarWhereInput>
|
|
15837
|
+
OR?: Enumerable<AchivementScalarWhereInput>
|
|
15838
|
+
NOT?: Enumerable<AchivementScalarWhereInput>
|
|
15839
|
+
id?: StringFilter | string
|
|
15840
|
+
userId?: StringFilter | string
|
|
15841
|
+
badge?: BoolFilter | boolean
|
|
15842
|
+
type?: EnumAchivementTypeFilter | AchivementType
|
|
15843
|
+
info?: StringFilter | string
|
|
15844
|
+
timestamp?: DateTimeFilter | Date | string
|
|
15845
|
+
dismissed?: BoolFilter | boolean
|
|
15846
|
+
}
|
|
15847
|
+
|
|
14492
15848
|
export type PurchaseUpsertWithWhereUniqueWithoutUserInput = {
|
|
14493
15849
|
where: PurchaseWhereUniqueInput
|
|
14494
15850
|
update: XOR<PurchaseUpdateWithoutUserInput, PurchaseUncheckedUpdateWithoutUserInput>
|
|
@@ -14587,6 +15943,72 @@ export namespace Prisma {
|
|
|
14587
15943
|
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
14588
15944
|
}
|
|
14589
15945
|
|
|
15946
|
+
export type UserCreateWithoutAchivementsInput = {
|
|
15947
|
+
id?: string
|
|
15948
|
+
email: string
|
|
15949
|
+
name: string
|
|
15950
|
+
password?: string | null
|
|
15951
|
+
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
15952
|
+
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
15953
|
+
packs?: PackCreateNestedManyWithoutUsersInput
|
|
15954
|
+
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
15955
|
+
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
15956
|
+
team?: TeamCreateNestedOneWithoutMembersInput
|
|
15957
|
+
passwordActivated?: boolean
|
|
15958
|
+
}
|
|
15959
|
+
|
|
15960
|
+
export type UserUncheckedCreateWithoutAchivementsInput = {
|
|
15961
|
+
id?: string
|
|
15962
|
+
email: string
|
|
15963
|
+
name: string
|
|
15964
|
+
password?: string | null
|
|
15965
|
+
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
15966
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
15967
|
+
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
15968
|
+
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
15969
|
+
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
15970
|
+
teamId?: string | null
|
|
15971
|
+
passwordActivated?: boolean
|
|
15972
|
+
}
|
|
15973
|
+
|
|
15974
|
+
export type UserCreateOrConnectWithoutAchivementsInput = {
|
|
15975
|
+
where: UserWhereUniqueInput
|
|
15976
|
+
create: XOR<UserCreateWithoutAchivementsInput, UserUncheckedCreateWithoutAchivementsInput>
|
|
15977
|
+
}
|
|
15978
|
+
|
|
15979
|
+
export type UserUpsertWithoutAchivementsInput = {
|
|
15980
|
+
update: XOR<UserUpdateWithoutAchivementsInput, UserUncheckedUpdateWithoutAchivementsInput>
|
|
15981
|
+
create: XOR<UserCreateWithoutAchivementsInput, UserUncheckedCreateWithoutAchivementsInput>
|
|
15982
|
+
}
|
|
15983
|
+
|
|
15984
|
+
export type UserUpdateWithoutAchivementsInput = {
|
|
15985
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
15986
|
+
email?: StringFieldUpdateOperationsInput | string
|
|
15987
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
15988
|
+
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15989
|
+
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
15990
|
+
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
15991
|
+
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
15992
|
+
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
15993
|
+
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
15994
|
+
team?: TeamUpdateOneWithoutMembersNestedInput
|
|
15995
|
+
passwordActivated?: BoolFieldUpdateOperationsInput | boolean
|
|
15996
|
+
}
|
|
15997
|
+
|
|
15998
|
+
export type UserUncheckedUpdateWithoutAchivementsInput = {
|
|
15999
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
16000
|
+
email?: StringFieldUpdateOperationsInput | string
|
|
16001
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
16002
|
+
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
16003
|
+
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16004
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
16005
|
+
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
16006
|
+
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
16007
|
+
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
16008
|
+
teamId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
16009
|
+
passwordActivated?: BoolFieldUpdateOperationsInput | boolean
|
|
16010
|
+
}
|
|
16011
|
+
|
|
14590
16012
|
export type PackCreateWithoutTeamsInput = {
|
|
14591
16013
|
id?: string
|
|
14592
16014
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
@@ -14628,6 +16050,7 @@ export namespace Prisma {
|
|
|
14628
16050
|
name: string
|
|
14629
16051
|
password?: string | null
|
|
14630
16052
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
16053
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14631
16054
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14632
16055
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14633
16056
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -14641,6 +16064,7 @@ export namespace Prisma {
|
|
|
14641
16064
|
name: string
|
|
14642
16065
|
password?: string | null
|
|
14643
16066
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
16067
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14644
16068
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14645
16069
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14646
16070
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14751,6 +16175,7 @@ export namespace Prisma {
|
|
|
14751
16175
|
email: string
|
|
14752
16176
|
name: string
|
|
14753
16177
|
password?: string | null
|
|
16178
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14754
16179
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14755
16180
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14756
16181
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -14764,6 +16189,7 @@ export namespace Prisma {
|
|
|
14764
16189
|
email: string
|
|
14765
16190
|
name: string
|
|
14766
16191
|
password?: string | null
|
|
16192
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14767
16193
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14768
16194
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14769
16195
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14787,6 +16213,7 @@ export namespace Prisma {
|
|
|
14787
16213
|
email?: StringFieldUpdateOperationsInput | string
|
|
14788
16214
|
name?: StringFieldUpdateOperationsInput | string
|
|
14789
16215
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
16216
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
14790
16217
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
14791
16218
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
14792
16219
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -14800,6 +16227,7 @@ export namespace Prisma {
|
|
|
14800
16227
|
email?: StringFieldUpdateOperationsInput | string
|
|
14801
16228
|
name?: StringFieldUpdateOperationsInput | string
|
|
14802
16229
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
16230
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
14803
16231
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
14804
16232
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
14805
16233
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -14814,6 +16242,7 @@ export namespace Prisma {
|
|
|
14814
16242
|
name: string
|
|
14815
16243
|
password?: string | null
|
|
14816
16244
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
16245
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14817
16246
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14818
16247
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14819
16248
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -14827,6 +16256,7 @@ export namespace Prisma {
|
|
|
14827
16256
|
name: string
|
|
14828
16257
|
password?: string | null
|
|
14829
16258
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
16259
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14830
16260
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14831
16261
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14832
16262
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14850,6 +16280,7 @@ export namespace Prisma {
|
|
|
14850
16280
|
name?: StringFieldUpdateOperationsInput | string
|
|
14851
16281
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14852
16282
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16283
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
14853
16284
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
14854
16285
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
14855
16286
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -14863,6 +16294,7 @@ export namespace Prisma {
|
|
|
14863
16294
|
name?: StringFieldUpdateOperationsInput | string
|
|
14864
16295
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14865
16296
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16297
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
14866
16298
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
14867
16299
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
14868
16300
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -14876,6 +16308,7 @@ export namespace Prisma {
|
|
|
14876
16308
|
name: string
|
|
14877
16309
|
password?: string | null
|
|
14878
16310
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
16311
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14879
16312
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14880
16313
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
14881
16314
|
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
@@ -14889,6 +16322,7 @@ export namespace Prisma {
|
|
|
14889
16322
|
name: string
|
|
14890
16323
|
password?: string | null
|
|
14891
16324
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
16325
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14892
16326
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14893
16327
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
14894
16328
|
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14947,6 +16381,7 @@ export namespace Prisma {
|
|
|
14947
16381
|
name?: StringFieldUpdateOperationsInput | string
|
|
14948
16382
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14949
16383
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16384
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
14950
16385
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
14951
16386
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
14952
16387
|
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
@@ -14960,6 +16395,7 @@ export namespace Prisma {
|
|
|
14960
16395
|
name?: StringFieldUpdateOperationsInput | string
|
|
14961
16396
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14962
16397
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16398
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
14963
16399
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
14964
16400
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
14965
16401
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -15086,6 +16522,7 @@ export namespace Prisma {
|
|
|
15086
16522
|
id?: string
|
|
15087
16523
|
front: string
|
|
15088
16524
|
back: string
|
|
16525
|
+
lastUpdate?: Date | string
|
|
15089
16526
|
speechGenerated?: boolean
|
|
15090
16527
|
}
|
|
15091
16528
|
|
|
@@ -15103,6 +16540,7 @@ export namespace Prisma {
|
|
|
15103
16540
|
id?: StringFieldUpdateOperationsInput | string
|
|
15104
16541
|
front?: StringFieldUpdateOperationsInput | string
|
|
15105
16542
|
back?: StringFieldUpdateOperationsInput | string
|
|
16543
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
15106
16544
|
userCards?: UserCardUpdateManyWithoutCardNestedInput
|
|
15107
16545
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
15108
16546
|
}
|
|
@@ -15111,6 +16549,7 @@ export namespace Prisma {
|
|
|
15111
16549
|
id?: StringFieldUpdateOperationsInput | string
|
|
15112
16550
|
front?: StringFieldUpdateOperationsInput | string
|
|
15113
16551
|
back?: StringFieldUpdateOperationsInput | string
|
|
16552
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
15114
16553
|
userCards?: UserCardUncheckedUpdateManyWithoutCardNestedInput
|
|
15115
16554
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
15116
16555
|
}
|
|
@@ -15119,6 +16558,7 @@ export namespace Prisma {
|
|
|
15119
16558
|
id?: StringFieldUpdateOperationsInput | string
|
|
15120
16559
|
front?: StringFieldUpdateOperationsInput | string
|
|
15121
16560
|
back?: StringFieldUpdateOperationsInput | string
|
|
16561
|
+
lastUpdate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
15122
16562
|
speechGenerated?: BoolFieldUpdateOperationsInput | boolean
|
|
15123
16563
|
}
|
|
15124
16564
|
|
|
@@ -15128,6 +16568,7 @@ export namespace Prisma {
|
|
|
15128
16568
|
name?: StringFieldUpdateOperationsInput | string
|
|
15129
16569
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15130
16570
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16571
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
15131
16572
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
15132
16573
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
15133
16574
|
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
@@ -15141,6 +16582,7 @@ export namespace Prisma {
|
|
|
15141
16582
|
name?: StringFieldUpdateOperationsInput | string
|
|
15142
16583
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15143
16584
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16585
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
15144
16586
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
15145
16587
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
15146
16588
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -15213,6 +16655,15 @@ export namespace Prisma {
|
|
|
15213
16655
|
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
15214
16656
|
}
|
|
15215
16657
|
|
|
16658
|
+
export type AchivementCreateManyUserInput = {
|
|
16659
|
+
id?: string
|
|
16660
|
+
badge: boolean
|
|
16661
|
+
type: AchivementType
|
|
16662
|
+
info: string
|
|
16663
|
+
timestamp: Date | string
|
|
16664
|
+
dismissed?: boolean
|
|
16665
|
+
}
|
|
16666
|
+
|
|
15216
16667
|
export type PurchaseCreateManyUserInput = {
|
|
15217
16668
|
id?: string
|
|
15218
16669
|
packId: string
|
|
@@ -15237,6 +16688,33 @@ export namespace Prisma {
|
|
|
15237
16688
|
timestamp: Date | string
|
|
15238
16689
|
}
|
|
15239
16690
|
|
|
16691
|
+
export type AchivementUpdateWithoutUserInput = {
|
|
16692
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
16693
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
16694
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
16695
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
16696
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
16697
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
16698
|
+
}
|
|
16699
|
+
|
|
16700
|
+
export type AchivementUncheckedUpdateWithoutUserInput = {
|
|
16701
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
16702
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
16703
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
16704
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
16705
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
16706
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
16707
|
+
}
|
|
16708
|
+
|
|
16709
|
+
export type AchivementUncheckedUpdateManyWithoutAchivementsInput = {
|
|
16710
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
16711
|
+
badge?: BoolFieldUpdateOperationsInput | boolean
|
|
16712
|
+
type?: EnumAchivementTypeFieldUpdateOperationsInput | AchivementType
|
|
16713
|
+
info?: StringFieldUpdateOperationsInput | string
|
|
16714
|
+
timestamp?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
16715
|
+
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
16716
|
+
}
|
|
16717
|
+
|
|
15240
16718
|
export type PurchaseUpdateWithoutUserInput = {
|
|
15241
16719
|
id?: StringFieldUpdateOperationsInput | string
|
|
15242
16720
|
pack?: PackUpdateOneRequiredWithoutPurchasesNestedInput
|
|
@@ -15378,6 +16856,7 @@ export namespace Prisma {
|
|
|
15378
16856
|
name?: StringFieldUpdateOperationsInput | string
|
|
15379
16857
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15380
16858
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16859
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
15381
16860
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
15382
16861
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
15383
16862
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -15391,6 +16870,7 @@ export namespace Prisma {
|
|
|
15391
16870
|
name?: StringFieldUpdateOperationsInput | string
|
|
15392
16871
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15393
16872
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16873
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
15394
16874
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
15395
16875
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
15396
16876
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|