lang-database 6.0.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.
|
@@ -75,6 +75,20 @@ export type User = {
|
|
|
75
75
|
passwordActivated: boolean
|
|
76
76
|
}
|
|
77
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
|
+
|
|
78
92
|
/**
|
|
79
93
|
* Model Team
|
|
80
94
|
*
|
|
@@ -142,6 +156,17 @@ export type Purchase = {
|
|
|
142
156
|
// Based on
|
|
143
157
|
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
|
144
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
|
+
|
|
145
170
|
export const PurchaseStatus: {
|
|
146
171
|
PENDING: 'PENDING',
|
|
147
172
|
APPROVED: 'APPROVED'
|
|
@@ -340,6 +365,16 @@ export class PrismaClient<
|
|
|
340
365
|
*/
|
|
341
366
|
get user(): Prisma.UserDelegate<GlobalReject>;
|
|
342
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
|
+
|
|
343
378
|
/**
|
|
344
379
|
* `prisma.team`: Exposes CRUD operations for the **Team** model.
|
|
345
380
|
* Example usage:
|
|
@@ -867,6 +902,7 @@ export namespace Prisma {
|
|
|
867
902
|
Category: 'Category',
|
|
868
903
|
Pack: 'Pack',
|
|
869
904
|
User: 'User',
|
|
905
|
+
Achivement: 'Achivement',
|
|
870
906
|
Team: 'Team',
|
|
871
907
|
Teacher: 'Teacher',
|
|
872
908
|
GoogleUser: 'GoogleUser',
|
|
@@ -1189,6 +1225,7 @@ export namespace Prisma {
|
|
|
1189
1225
|
|
|
1190
1226
|
|
|
1191
1227
|
export type UserCountOutputType = {
|
|
1228
|
+
achivements: number
|
|
1192
1229
|
purchases: number
|
|
1193
1230
|
packs: number
|
|
1194
1231
|
userCards: number
|
|
@@ -1196,6 +1233,7 @@ export namespace Prisma {
|
|
|
1196
1233
|
}
|
|
1197
1234
|
|
|
1198
1235
|
export type UserCountOutputTypeSelect = {
|
|
1236
|
+
achivements?: boolean
|
|
1199
1237
|
purchases?: boolean
|
|
1200
1238
|
packs?: boolean
|
|
1201
1239
|
userCards?: boolean
|
|
@@ -5358,6 +5396,7 @@ export namespace Prisma {
|
|
|
5358
5396
|
name?: boolean
|
|
5359
5397
|
password?: boolean
|
|
5360
5398
|
googleUser?: boolean | GoogleUserArgs
|
|
5399
|
+
achivements?: boolean | AchivementFindManyArgs
|
|
5361
5400
|
purchases?: boolean | PurchaseFindManyArgs
|
|
5362
5401
|
packs?: boolean | PackFindManyArgs
|
|
5363
5402
|
userCards?: boolean | UserCardFindManyArgs
|
|
@@ -5370,6 +5409,7 @@ export namespace Prisma {
|
|
|
5370
5409
|
|
|
5371
5410
|
export type UserInclude = {
|
|
5372
5411
|
googleUser?: boolean | GoogleUserArgs
|
|
5412
|
+
achivements?: boolean | AchivementFindManyArgs
|
|
5373
5413
|
purchases?: boolean | PurchaseFindManyArgs
|
|
5374
5414
|
packs?: boolean | PackFindManyArgs
|
|
5375
5415
|
userCards?: boolean | UserCardFindManyArgs
|
|
@@ -5390,6 +5430,7 @@ export namespace Prisma {
|
|
|
5390
5430
|
? User & {
|
|
5391
5431
|
[P in TrueKeys<S['include']>]:
|
|
5392
5432
|
P extends 'googleUser' ? GoogleUserGetPayload<Exclude<S['include'], undefined | null>[P]> | null :
|
|
5433
|
+
P extends 'achivements' ? Array < AchivementGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
5393
5434
|
P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
5394
5435
|
P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
5395
5436
|
P extends 'userCards' ? Array < UserCardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
@@ -5401,6 +5442,7 @@ export namespace Prisma {
|
|
|
5401
5442
|
? {
|
|
5402
5443
|
[P in TrueKeys<S['select']>]:
|
|
5403
5444
|
P extends 'googleUser' ? GoogleUserGetPayload<Exclude<S['select'], undefined | null>[P]> | null :
|
|
5445
|
+
P extends 'achivements' ? Array < AchivementGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
5404
5446
|
P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
5405
5447
|
P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
5406
5448
|
P extends 'userCards' ? Array < UserCardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
@@ -5783,6 +5825,8 @@ export namespace Prisma {
|
|
|
5783
5825
|
|
|
5784
5826
|
googleUser<T extends GoogleUserArgs = {}>(args?: Subset<T, GoogleUserArgs>): CheckSelect<T, Prisma__GoogleUserClient<GoogleUser | null >, Prisma__GoogleUserClient<GoogleUserGetPayload<T> | null >>;
|
|
5785
5827
|
|
|
5828
|
+
achivements<T extends AchivementFindManyArgs = {}>(args?: Subset<T, AchivementFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Achivement>>, PrismaPromise<Array<AchivementGetPayload<T>>>>;
|
|
5829
|
+
|
|
5786
5830
|
purchases<T extends PurchaseFindManyArgs = {}>(args?: Subset<T, PurchaseFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Purchase>>, PrismaPromise<Array<PurchaseGetPayload<T>>>>;
|
|
5787
5831
|
|
|
5788
5832
|
packs<T extends PackFindManyArgs = {}>(args?: Subset<T, PackFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Pack>>, PrismaPromise<Array<PackGetPayload<T>>>>;
|
|
@@ -5995,154 +6039,1095 @@ export namespace Prisma {
|
|
|
5995
6039
|
|
|
5996
6040
|
|
|
5997
6041
|
/**
|
|
5998
|
-
* User createMany
|
|
6042
|
+
* User createMany
|
|
6043
|
+
*/
|
|
6044
|
+
export type UserCreateManyArgs = {
|
|
6045
|
+
/**
|
|
6046
|
+
* The data used to create many Users.
|
|
6047
|
+
*
|
|
6048
|
+
**/
|
|
6049
|
+
data: Enumerable<UserCreateManyInput>
|
|
6050
|
+
skipDuplicates?: boolean
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6053
|
+
|
|
6054
|
+
/**
|
|
6055
|
+
* User update
|
|
6056
|
+
*/
|
|
6057
|
+
export type UserUpdateArgs = {
|
|
6058
|
+
/**
|
|
6059
|
+
* Select specific fields to fetch from the User
|
|
6060
|
+
*
|
|
6061
|
+
**/
|
|
6062
|
+
select?: UserSelect | null
|
|
6063
|
+
/**
|
|
6064
|
+
* Choose, which related nodes to fetch as well.
|
|
6065
|
+
*
|
|
6066
|
+
**/
|
|
6067
|
+
include?: UserInclude | null
|
|
6068
|
+
/**
|
|
6069
|
+
* The data needed to update a User.
|
|
6070
|
+
*
|
|
6071
|
+
**/
|
|
6072
|
+
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
6073
|
+
/**
|
|
6074
|
+
* Choose, which User to update.
|
|
6075
|
+
*
|
|
6076
|
+
**/
|
|
6077
|
+
where: UserWhereUniqueInput
|
|
6078
|
+
}
|
|
6079
|
+
|
|
6080
|
+
|
|
6081
|
+
/**
|
|
6082
|
+
* User updateMany
|
|
6083
|
+
*/
|
|
6084
|
+
export type UserUpdateManyArgs = {
|
|
6085
|
+
/**
|
|
6086
|
+
* The data used to update Users.
|
|
6087
|
+
*
|
|
6088
|
+
**/
|
|
6089
|
+
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
|
|
6090
|
+
/**
|
|
6091
|
+
* Filter which Users to update
|
|
6092
|
+
*
|
|
6093
|
+
**/
|
|
6094
|
+
where?: UserWhereInput
|
|
6095
|
+
}
|
|
6096
|
+
|
|
6097
|
+
|
|
6098
|
+
/**
|
|
6099
|
+
* User upsert
|
|
6100
|
+
*/
|
|
6101
|
+
export type UserUpsertArgs = {
|
|
6102
|
+
/**
|
|
6103
|
+
* Select specific fields to fetch from the User
|
|
6104
|
+
*
|
|
6105
|
+
**/
|
|
6106
|
+
select?: UserSelect | null
|
|
6107
|
+
/**
|
|
6108
|
+
* Choose, which related nodes to fetch as well.
|
|
6109
|
+
*
|
|
6110
|
+
**/
|
|
6111
|
+
include?: UserInclude | null
|
|
6112
|
+
/**
|
|
6113
|
+
* The filter to search for the User to update in case it exists.
|
|
6114
|
+
*
|
|
6115
|
+
**/
|
|
6116
|
+
where: UserWhereUniqueInput
|
|
6117
|
+
/**
|
|
6118
|
+
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
6119
|
+
*
|
|
6120
|
+
**/
|
|
6121
|
+
create: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
6122
|
+
/**
|
|
6123
|
+
* In case the User was found with the provided `where` argument, update it with this data.
|
|
6124
|
+
*
|
|
6125
|
+
**/
|
|
6126
|
+
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
6127
|
+
}
|
|
6128
|
+
|
|
6129
|
+
|
|
6130
|
+
/**
|
|
6131
|
+
* User delete
|
|
6132
|
+
*/
|
|
6133
|
+
export type UserDeleteArgs = {
|
|
6134
|
+
/**
|
|
6135
|
+
* Select specific fields to fetch from the User
|
|
6136
|
+
*
|
|
6137
|
+
**/
|
|
6138
|
+
select?: UserSelect | null
|
|
6139
|
+
/**
|
|
6140
|
+
* Choose, which related nodes to fetch as well.
|
|
6141
|
+
*
|
|
6142
|
+
**/
|
|
6143
|
+
include?: UserInclude | null
|
|
6144
|
+
/**
|
|
6145
|
+
* Filter which User to delete.
|
|
6146
|
+
*
|
|
6147
|
+
**/
|
|
6148
|
+
where: UserWhereUniqueInput
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6151
|
+
|
|
6152
|
+
/**
|
|
6153
|
+
* User deleteMany
|
|
6154
|
+
*/
|
|
6155
|
+
export type UserDeleteManyArgs = {
|
|
6156
|
+
/**
|
|
6157
|
+
* Filter which Users to delete
|
|
6158
|
+
*
|
|
6159
|
+
**/
|
|
6160
|
+
where?: UserWhereInput
|
|
6161
|
+
}
|
|
6162
|
+
|
|
6163
|
+
|
|
6164
|
+
/**
|
|
6165
|
+
* User: findUniqueOrThrow
|
|
6166
|
+
*/
|
|
6167
|
+
export type UserFindUniqueOrThrowArgs = UserFindUniqueArgsBase
|
|
6168
|
+
|
|
6169
|
+
|
|
6170
|
+
/**
|
|
6171
|
+
* User: findFirstOrThrow
|
|
6172
|
+
*/
|
|
6173
|
+
export type UserFindFirstOrThrowArgs = UserFindFirstArgsBase
|
|
6174
|
+
|
|
6175
|
+
|
|
6176
|
+
/**
|
|
6177
|
+
* User without action
|
|
6178
|
+
*/
|
|
6179
|
+
export type UserArgs = {
|
|
6180
|
+
/**
|
|
6181
|
+
* Select specific fields to fetch from the User
|
|
6182
|
+
*
|
|
6183
|
+
**/
|
|
6184
|
+
select?: UserSelect | null
|
|
6185
|
+
/**
|
|
6186
|
+
* Choose, which related nodes to fetch as well.
|
|
6187
|
+
*
|
|
6188
|
+
**/
|
|
6189
|
+
include?: UserInclude | null
|
|
6190
|
+
}
|
|
6191
|
+
|
|
6192
|
+
|
|
6193
|
+
|
|
6194
|
+
/**
|
|
6195
|
+
* Model Achivement
|
|
6196
|
+
*/
|
|
6197
|
+
|
|
6198
|
+
|
|
6199
|
+
export type AggregateAchivement = {
|
|
6200
|
+
_count: AchivementCountAggregateOutputType | null
|
|
6201
|
+
_min: AchivementMinAggregateOutputType | null
|
|
6202
|
+
_max: AchivementMaxAggregateOutputType | null
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
export type AchivementMinAggregateOutputType = {
|
|
6206
|
+
id: string | null
|
|
6207
|
+
userId: string | null
|
|
6208
|
+
badge: boolean | null
|
|
6209
|
+
type: AchivementType | null
|
|
6210
|
+
info: string | null
|
|
6211
|
+
timestamp: Date | null
|
|
6212
|
+
dismissed: boolean | null
|
|
6213
|
+
}
|
|
6214
|
+
|
|
6215
|
+
export type AchivementMaxAggregateOutputType = {
|
|
6216
|
+
id: string | null
|
|
6217
|
+
userId: string | null
|
|
6218
|
+
badge: boolean | null
|
|
6219
|
+
type: AchivementType | null
|
|
6220
|
+
info: string | null
|
|
6221
|
+
timestamp: Date | null
|
|
6222
|
+
dismissed: boolean | null
|
|
6223
|
+
}
|
|
6224
|
+
|
|
6225
|
+
export type AchivementCountAggregateOutputType = {
|
|
6226
|
+
id: number
|
|
6227
|
+
userId: number
|
|
6228
|
+
badge: number
|
|
6229
|
+
type: number
|
|
6230
|
+
info: number
|
|
6231
|
+
timestamp: number
|
|
6232
|
+
dismissed: number
|
|
6233
|
+
_all: number
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
|
|
6237
|
+
export type AchivementMinAggregateInputType = {
|
|
6238
|
+
id?: true
|
|
6239
|
+
userId?: true
|
|
6240
|
+
badge?: true
|
|
6241
|
+
type?: true
|
|
6242
|
+
info?: true
|
|
6243
|
+
timestamp?: true
|
|
6244
|
+
dismissed?: true
|
|
6245
|
+
}
|
|
6246
|
+
|
|
6247
|
+
export type AchivementMaxAggregateInputType = {
|
|
6248
|
+
id?: true
|
|
6249
|
+
userId?: true
|
|
6250
|
+
badge?: true
|
|
6251
|
+
type?: true
|
|
6252
|
+
info?: true
|
|
6253
|
+
timestamp?: true
|
|
6254
|
+
dismissed?: true
|
|
6255
|
+
}
|
|
6256
|
+
|
|
6257
|
+
export type AchivementCountAggregateInputType = {
|
|
6258
|
+
id?: true
|
|
6259
|
+
userId?: true
|
|
6260
|
+
badge?: true
|
|
6261
|
+
type?: true
|
|
6262
|
+
info?: true
|
|
6263
|
+
timestamp?: true
|
|
6264
|
+
dismissed?: true
|
|
6265
|
+
_all?: true
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6268
|
+
export type AchivementAggregateArgs = {
|
|
6269
|
+
/**
|
|
6270
|
+
* Filter which Achivement to aggregate.
|
|
6271
|
+
*
|
|
6272
|
+
**/
|
|
6273
|
+
where?: AchivementWhereInput
|
|
6274
|
+
/**
|
|
6275
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6276
|
+
*
|
|
6277
|
+
* Determine the order of Achivements to fetch.
|
|
6278
|
+
*
|
|
6279
|
+
**/
|
|
6280
|
+
orderBy?: Enumerable<AchivementOrderByWithRelationInput>
|
|
6281
|
+
/**
|
|
6282
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6283
|
+
*
|
|
6284
|
+
* Sets the start position
|
|
6285
|
+
*
|
|
6286
|
+
**/
|
|
6287
|
+
cursor?: AchivementWhereUniqueInput
|
|
6288
|
+
/**
|
|
6289
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6290
|
+
*
|
|
6291
|
+
* Take `±n` Achivements from the position of the cursor.
|
|
6292
|
+
*
|
|
6293
|
+
**/
|
|
6294
|
+
take?: number
|
|
6295
|
+
/**
|
|
6296
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6297
|
+
*
|
|
6298
|
+
* Skip the first `n` Achivements.
|
|
6299
|
+
*
|
|
6300
|
+
**/
|
|
6301
|
+
skip?: number
|
|
6302
|
+
/**
|
|
6303
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6304
|
+
*
|
|
6305
|
+
* Count returned Achivements
|
|
6306
|
+
**/
|
|
6307
|
+
_count?: true | AchivementCountAggregateInputType
|
|
6308
|
+
/**
|
|
6309
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6310
|
+
*
|
|
6311
|
+
* Select which fields to find the minimum value
|
|
6312
|
+
**/
|
|
6313
|
+
_min?: AchivementMinAggregateInputType
|
|
6314
|
+
/**
|
|
6315
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6316
|
+
*
|
|
6317
|
+
* Select which fields to find the maximum value
|
|
6318
|
+
**/
|
|
6319
|
+
_max?: AchivementMaxAggregateInputType
|
|
6320
|
+
}
|
|
6321
|
+
|
|
6322
|
+
export type GetAchivementAggregateType<T extends AchivementAggregateArgs> = {
|
|
6323
|
+
[P in keyof T & keyof AggregateAchivement]: P extends '_count' | 'count'
|
|
6324
|
+
? T[P] extends true
|
|
6325
|
+
? number
|
|
6326
|
+
: GetScalarType<T[P], AggregateAchivement[P]>
|
|
6327
|
+
: GetScalarType<T[P], AggregateAchivement[P]>
|
|
6328
|
+
}
|
|
6329
|
+
|
|
6330
|
+
|
|
6331
|
+
|
|
6332
|
+
|
|
6333
|
+
export type AchivementGroupByArgs = {
|
|
6334
|
+
where?: AchivementWhereInput
|
|
6335
|
+
orderBy?: Enumerable<AchivementOrderByWithAggregationInput>
|
|
6336
|
+
by: Array<AchivementScalarFieldEnum>
|
|
6337
|
+
having?: AchivementScalarWhereWithAggregatesInput
|
|
6338
|
+
take?: number
|
|
6339
|
+
skip?: number
|
|
6340
|
+
_count?: AchivementCountAggregateInputType | true
|
|
6341
|
+
_min?: AchivementMinAggregateInputType
|
|
6342
|
+
_max?: AchivementMaxAggregateInputType
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
|
|
6346
|
+
export type AchivementGroupByOutputType = {
|
|
6347
|
+
id: string
|
|
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
|
|
6357
|
+
}
|
|
6358
|
+
|
|
6359
|
+
type GetAchivementGroupByPayload<T extends AchivementGroupByArgs> = PrismaPromise<
|
|
6360
|
+
Array<
|
|
6361
|
+
PickArray<AchivementGroupByOutputType, T['by']> &
|
|
6362
|
+
{
|
|
6363
|
+
[P in ((keyof T) & (keyof AchivementGroupByOutputType))]: P extends '_count'
|
|
6364
|
+
? T[P] extends boolean
|
|
6365
|
+
? number
|
|
6366
|
+
: GetScalarType<T[P], AchivementGroupByOutputType[P]>
|
|
6367
|
+
: GetScalarType<T[P], AchivementGroupByOutputType[P]>
|
|
6368
|
+
}
|
|
6369
|
+
>
|
|
6370
|
+
>
|
|
6371
|
+
|
|
6372
|
+
|
|
6373
|
+
export type AchivementSelect = {
|
|
6374
|
+
id?: boolean
|
|
6375
|
+
user?: boolean | UserArgs
|
|
6376
|
+
userId?: boolean
|
|
6377
|
+
badge?: boolean
|
|
6378
|
+
type?: boolean
|
|
6379
|
+
info?: boolean
|
|
6380
|
+
timestamp?: boolean
|
|
6381
|
+
dismissed?: boolean
|
|
6382
|
+
}
|
|
6383
|
+
|
|
6384
|
+
export type AchivementInclude = {
|
|
6385
|
+
user?: boolean | UserArgs
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
export type AchivementGetPayload<
|
|
6389
|
+
S extends boolean | null | undefined | AchivementArgs,
|
|
6390
|
+
U = keyof S
|
|
6391
|
+
> = S extends true
|
|
6392
|
+
? Achivement
|
|
6393
|
+
: S extends undefined
|
|
6394
|
+
? never
|
|
6395
|
+
: S extends AchivementArgs | AchivementFindManyArgs
|
|
6396
|
+
?'include' extends U
|
|
6397
|
+
? Achivement & {
|
|
6398
|
+
[P in TrueKeys<S['include']>]:
|
|
6399
|
+
P extends 'user' ? UserGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
6400
|
+
}
|
|
6401
|
+
: 'select' extends U
|
|
6402
|
+
? {
|
|
6403
|
+
[P in TrueKeys<S['select']>]:
|
|
6404
|
+
P extends 'user' ? UserGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Achivement ? Achivement[P] : never
|
|
6405
|
+
}
|
|
6406
|
+
: Achivement
|
|
6407
|
+
: Achivement
|
|
6408
|
+
|
|
6409
|
+
|
|
6410
|
+
type AchivementCountArgs = Merge<
|
|
6411
|
+
Omit<AchivementFindManyArgs, 'select' | 'include'> & {
|
|
6412
|
+
select?: AchivementCountAggregateInputType | true
|
|
6413
|
+
}
|
|
6414
|
+
>
|
|
6415
|
+
|
|
6416
|
+
export interface AchivementDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
6417
|
+
/**
|
|
6418
|
+
* Find zero or one Achivement that matches the filter.
|
|
6419
|
+
* @param {AchivementFindUniqueArgs} args - Arguments to find a Achivement
|
|
6420
|
+
* @example
|
|
6421
|
+
* // Get one Achivement
|
|
6422
|
+
* const achivement = await prisma.achivement.findUnique({
|
|
6423
|
+
* where: {
|
|
6424
|
+
* // ... provide filter here
|
|
6425
|
+
* }
|
|
6426
|
+
* })
|
|
6427
|
+
**/
|
|
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 >>
|
|
6431
|
+
|
|
6432
|
+
/**
|
|
6433
|
+
* Find the first Achivement that matches the filter.
|
|
6434
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6435
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6436
|
+
* @param {AchivementFindFirstArgs} args - Arguments to find a Achivement
|
|
6437
|
+
* @example
|
|
6438
|
+
* // Get one Achivement
|
|
6439
|
+
* const achivement = await prisma.achivement.findFirst({
|
|
6440
|
+
* where: {
|
|
6441
|
+
* // ... provide filter here
|
|
6442
|
+
* }
|
|
6443
|
+
* })
|
|
6444
|
+
**/
|
|
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 >>
|
|
6448
|
+
|
|
6449
|
+
/**
|
|
6450
|
+
* Find zero or more Achivements that matches the filter.
|
|
6451
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6452
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6453
|
+
* @param {AchivementFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
6454
|
+
* @example
|
|
6455
|
+
* // Get all Achivements
|
|
6456
|
+
* const achivements = await prisma.achivement.findMany()
|
|
6457
|
+
*
|
|
6458
|
+
* // Get first 10 Achivements
|
|
6459
|
+
* const achivements = await prisma.achivement.findMany({ take: 10 })
|
|
6460
|
+
*
|
|
6461
|
+
* // Only select the `id`
|
|
6462
|
+
* const achivementWithIdOnly = await prisma.achivement.findMany({ select: { id: true } })
|
|
6463
|
+
*
|
|
6464
|
+
**/
|
|
6465
|
+
findMany<T extends AchivementFindManyArgs>(
|
|
6466
|
+
args?: SelectSubset<T, AchivementFindManyArgs>
|
|
6467
|
+
): CheckSelect<T, PrismaPromise<Array<Achivement>>, PrismaPromise<Array<AchivementGetPayload<T>>>>
|
|
6468
|
+
|
|
6469
|
+
/**
|
|
6470
|
+
* Create a Achivement.
|
|
6471
|
+
* @param {AchivementCreateArgs} args - Arguments to create a Achivement.
|
|
6472
|
+
* @example
|
|
6473
|
+
* // Create one Achivement
|
|
6474
|
+
* const Achivement = await prisma.achivement.create({
|
|
6475
|
+
* data: {
|
|
6476
|
+
* // ... data to create a Achivement
|
|
6477
|
+
* }
|
|
6478
|
+
* })
|
|
6479
|
+
*
|
|
6480
|
+
**/
|
|
6481
|
+
create<T extends AchivementCreateArgs>(
|
|
6482
|
+
args: SelectSubset<T, AchivementCreateArgs>
|
|
6483
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6484
|
+
|
|
6485
|
+
/**
|
|
6486
|
+
* Create many Achivements.
|
|
6487
|
+
* @param {AchivementCreateManyArgs} args - Arguments to create many Achivements.
|
|
6488
|
+
* @example
|
|
6489
|
+
* // Create many Achivements
|
|
6490
|
+
* const achivement = await prisma.achivement.createMany({
|
|
6491
|
+
* data: {
|
|
6492
|
+
* // ... provide data here
|
|
6493
|
+
* }
|
|
6494
|
+
* })
|
|
6495
|
+
*
|
|
6496
|
+
**/
|
|
6497
|
+
createMany<T extends AchivementCreateManyArgs>(
|
|
6498
|
+
args?: SelectSubset<T, AchivementCreateManyArgs>
|
|
6499
|
+
): PrismaPromise<BatchPayload>
|
|
6500
|
+
|
|
6501
|
+
/**
|
|
6502
|
+
* Delete a Achivement.
|
|
6503
|
+
* @param {AchivementDeleteArgs} args - Arguments to delete one Achivement.
|
|
6504
|
+
* @example
|
|
6505
|
+
* // Delete one Achivement
|
|
6506
|
+
* const Achivement = await prisma.achivement.delete({
|
|
6507
|
+
* where: {
|
|
6508
|
+
* // ... filter to delete one Achivement
|
|
6509
|
+
* }
|
|
6510
|
+
* })
|
|
6511
|
+
*
|
|
6512
|
+
**/
|
|
6513
|
+
delete<T extends AchivementDeleteArgs>(
|
|
6514
|
+
args: SelectSubset<T, AchivementDeleteArgs>
|
|
6515
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6516
|
+
|
|
6517
|
+
/**
|
|
6518
|
+
* Update one Achivement.
|
|
6519
|
+
* @param {AchivementUpdateArgs} args - Arguments to update one Achivement.
|
|
6520
|
+
* @example
|
|
6521
|
+
* // Update one Achivement
|
|
6522
|
+
* const achivement = await prisma.achivement.update({
|
|
6523
|
+
* where: {
|
|
6524
|
+
* // ... provide filter here
|
|
6525
|
+
* },
|
|
6526
|
+
* data: {
|
|
6527
|
+
* // ... provide data here
|
|
6528
|
+
* }
|
|
6529
|
+
* })
|
|
6530
|
+
*
|
|
6531
|
+
**/
|
|
6532
|
+
update<T extends AchivementUpdateArgs>(
|
|
6533
|
+
args: SelectSubset<T, AchivementUpdateArgs>
|
|
6534
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6535
|
+
|
|
6536
|
+
/**
|
|
6537
|
+
* Delete zero or more Achivements.
|
|
6538
|
+
* @param {AchivementDeleteManyArgs} args - Arguments to filter Achivements to delete.
|
|
6539
|
+
* @example
|
|
6540
|
+
* // Delete a few Achivements
|
|
6541
|
+
* const { count } = await prisma.achivement.deleteMany({
|
|
6542
|
+
* where: {
|
|
6543
|
+
* // ... provide filter here
|
|
6544
|
+
* }
|
|
6545
|
+
* })
|
|
6546
|
+
*
|
|
6547
|
+
**/
|
|
6548
|
+
deleteMany<T extends AchivementDeleteManyArgs>(
|
|
6549
|
+
args?: SelectSubset<T, AchivementDeleteManyArgs>
|
|
6550
|
+
): PrismaPromise<BatchPayload>
|
|
6551
|
+
|
|
6552
|
+
/**
|
|
6553
|
+
* Update zero or more Achivements.
|
|
6554
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6555
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6556
|
+
* @param {AchivementUpdateManyArgs} args - Arguments to update one or more rows.
|
|
6557
|
+
* @example
|
|
6558
|
+
* // Update many Achivements
|
|
6559
|
+
* const achivement = await prisma.achivement.updateMany({
|
|
6560
|
+
* where: {
|
|
6561
|
+
* // ... provide filter here
|
|
6562
|
+
* },
|
|
6563
|
+
* data: {
|
|
6564
|
+
* // ... provide data here
|
|
6565
|
+
* }
|
|
6566
|
+
* })
|
|
6567
|
+
*
|
|
6568
|
+
**/
|
|
6569
|
+
updateMany<T extends AchivementUpdateManyArgs>(
|
|
6570
|
+
args: SelectSubset<T, AchivementUpdateManyArgs>
|
|
6571
|
+
): PrismaPromise<BatchPayload>
|
|
6572
|
+
|
|
6573
|
+
/**
|
|
6574
|
+
* Create or update one Achivement.
|
|
6575
|
+
* @param {AchivementUpsertArgs} args - Arguments to update or create a Achivement.
|
|
6576
|
+
* @example
|
|
6577
|
+
* // Update or create a Achivement
|
|
6578
|
+
* const achivement = await prisma.achivement.upsert({
|
|
6579
|
+
* create: {
|
|
6580
|
+
* // ... data to create a Achivement
|
|
6581
|
+
* },
|
|
6582
|
+
* update: {
|
|
6583
|
+
* // ... in case it already exists, update
|
|
6584
|
+
* },
|
|
6585
|
+
* where: {
|
|
6586
|
+
* // ... the filter for the Achivement we want to update
|
|
6587
|
+
* }
|
|
6588
|
+
* })
|
|
6589
|
+
**/
|
|
6590
|
+
upsert<T extends AchivementUpsertArgs>(
|
|
6591
|
+
args: SelectSubset<T, AchivementUpsertArgs>
|
|
6592
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6593
|
+
|
|
6594
|
+
/**
|
|
6595
|
+
* Find one Achivement that matches the filter or throw
|
|
6596
|
+
* `NotFoundError` if no matches were found.
|
|
6597
|
+
* @param {AchivementFindUniqueOrThrowArgs} args - Arguments to find a Achivement
|
|
6598
|
+
* @example
|
|
6599
|
+
* // Get one Achivement
|
|
6600
|
+
* const achivement = await prisma.achivement.findUniqueOrThrow({
|
|
6601
|
+
* where: {
|
|
6602
|
+
* // ... provide filter here
|
|
6603
|
+
* }
|
|
6604
|
+
* })
|
|
6605
|
+
**/
|
|
6606
|
+
findUniqueOrThrow<T extends AchivementFindUniqueOrThrowArgs>(
|
|
6607
|
+
args?: SelectSubset<T, AchivementFindUniqueOrThrowArgs>
|
|
6608
|
+
): CheckSelect<T, Prisma__AchivementClient<Achivement>, Prisma__AchivementClient<AchivementGetPayload<T>>>
|
|
6609
|
+
|
|
6610
|
+
/**
|
|
6611
|
+
* Find the first Achivement that matches the filter or
|
|
6612
|
+
* throw `NotFoundError` if no matches were found.
|
|
6613
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6614
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
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
|
|
5999
6984
|
*/
|
|
6000
|
-
export type
|
|
6985
|
+
export type AchivementCreateManyArgs = {
|
|
6001
6986
|
/**
|
|
6002
|
-
* The data used to create many
|
|
6987
|
+
* The data used to create many Achivements.
|
|
6003
6988
|
*
|
|
6004
6989
|
**/
|
|
6005
|
-
data: Enumerable<
|
|
6990
|
+
data: Enumerable<AchivementCreateManyInput>
|
|
6006
6991
|
skipDuplicates?: boolean
|
|
6007
6992
|
}
|
|
6008
6993
|
|
|
6009
6994
|
|
|
6010
6995
|
/**
|
|
6011
|
-
*
|
|
6996
|
+
* Achivement update
|
|
6012
6997
|
*/
|
|
6013
|
-
export type
|
|
6998
|
+
export type AchivementUpdateArgs = {
|
|
6014
6999
|
/**
|
|
6015
|
-
* Select specific fields to fetch from the
|
|
7000
|
+
* Select specific fields to fetch from the Achivement
|
|
6016
7001
|
*
|
|
6017
7002
|
**/
|
|
6018
|
-
select?:
|
|
7003
|
+
select?: AchivementSelect | null
|
|
6019
7004
|
/**
|
|
6020
7005
|
* Choose, which related nodes to fetch as well.
|
|
6021
7006
|
*
|
|
6022
7007
|
**/
|
|
6023
|
-
include?:
|
|
7008
|
+
include?: AchivementInclude | null
|
|
6024
7009
|
/**
|
|
6025
|
-
* The data needed to update a
|
|
7010
|
+
* The data needed to update a Achivement.
|
|
6026
7011
|
*
|
|
6027
7012
|
**/
|
|
6028
|
-
data: XOR<
|
|
7013
|
+
data: XOR<AchivementUpdateInput, AchivementUncheckedUpdateInput>
|
|
6029
7014
|
/**
|
|
6030
|
-
* Choose, which
|
|
7015
|
+
* Choose, which Achivement to update.
|
|
6031
7016
|
*
|
|
6032
7017
|
**/
|
|
6033
|
-
where:
|
|
7018
|
+
where: AchivementWhereUniqueInput
|
|
6034
7019
|
}
|
|
6035
7020
|
|
|
6036
7021
|
|
|
6037
7022
|
/**
|
|
6038
|
-
*
|
|
7023
|
+
* Achivement updateMany
|
|
6039
7024
|
*/
|
|
6040
|
-
export type
|
|
7025
|
+
export type AchivementUpdateManyArgs = {
|
|
6041
7026
|
/**
|
|
6042
|
-
* The data used to update
|
|
7027
|
+
* The data used to update Achivements.
|
|
6043
7028
|
*
|
|
6044
7029
|
**/
|
|
6045
|
-
data: XOR<
|
|
7030
|
+
data: XOR<AchivementUpdateManyMutationInput, AchivementUncheckedUpdateManyInput>
|
|
6046
7031
|
/**
|
|
6047
|
-
* Filter which
|
|
7032
|
+
* Filter which Achivements to update
|
|
6048
7033
|
*
|
|
6049
7034
|
**/
|
|
6050
|
-
where?:
|
|
7035
|
+
where?: AchivementWhereInput
|
|
6051
7036
|
}
|
|
6052
7037
|
|
|
6053
7038
|
|
|
6054
7039
|
/**
|
|
6055
|
-
*
|
|
7040
|
+
* Achivement upsert
|
|
6056
7041
|
*/
|
|
6057
|
-
export type
|
|
7042
|
+
export type AchivementUpsertArgs = {
|
|
6058
7043
|
/**
|
|
6059
|
-
* Select specific fields to fetch from the
|
|
7044
|
+
* Select specific fields to fetch from the Achivement
|
|
6060
7045
|
*
|
|
6061
7046
|
**/
|
|
6062
|
-
select?:
|
|
7047
|
+
select?: AchivementSelect | null
|
|
6063
7048
|
/**
|
|
6064
7049
|
* Choose, which related nodes to fetch as well.
|
|
6065
7050
|
*
|
|
6066
7051
|
**/
|
|
6067
|
-
include?:
|
|
7052
|
+
include?: AchivementInclude | null
|
|
6068
7053
|
/**
|
|
6069
|
-
* The filter to search for the
|
|
7054
|
+
* The filter to search for the Achivement to update in case it exists.
|
|
6070
7055
|
*
|
|
6071
7056
|
**/
|
|
6072
|
-
where:
|
|
7057
|
+
where: AchivementWhereUniqueInput
|
|
6073
7058
|
/**
|
|
6074
|
-
* In case the
|
|
7059
|
+
* In case the Achivement found by the `where` argument doesn't exist, create a new Achivement with this data.
|
|
6075
7060
|
*
|
|
6076
7061
|
**/
|
|
6077
|
-
create: XOR<
|
|
7062
|
+
create: XOR<AchivementCreateInput, AchivementUncheckedCreateInput>
|
|
6078
7063
|
/**
|
|
6079
|
-
* In case the
|
|
7064
|
+
* In case the Achivement was found with the provided `where` argument, update it with this data.
|
|
6080
7065
|
*
|
|
6081
7066
|
**/
|
|
6082
|
-
update: XOR<
|
|
7067
|
+
update: XOR<AchivementUpdateInput, AchivementUncheckedUpdateInput>
|
|
6083
7068
|
}
|
|
6084
7069
|
|
|
6085
7070
|
|
|
6086
7071
|
/**
|
|
6087
|
-
*
|
|
7072
|
+
* Achivement delete
|
|
6088
7073
|
*/
|
|
6089
|
-
export type
|
|
7074
|
+
export type AchivementDeleteArgs = {
|
|
6090
7075
|
/**
|
|
6091
|
-
* Select specific fields to fetch from the
|
|
7076
|
+
* Select specific fields to fetch from the Achivement
|
|
6092
7077
|
*
|
|
6093
7078
|
**/
|
|
6094
|
-
select?:
|
|
7079
|
+
select?: AchivementSelect | null
|
|
6095
7080
|
/**
|
|
6096
7081
|
* Choose, which related nodes to fetch as well.
|
|
6097
7082
|
*
|
|
6098
7083
|
**/
|
|
6099
|
-
include?:
|
|
7084
|
+
include?: AchivementInclude | null
|
|
6100
7085
|
/**
|
|
6101
|
-
* Filter which
|
|
7086
|
+
* Filter which Achivement to delete.
|
|
6102
7087
|
*
|
|
6103
7088
|
**/
|
|
6104
|
-
where:
|
|
7089
|
+
where: AchivementWhereUniqueInput
|
|
6105
7090
|
}
|
|
6106
7091
|
|
|
6107
7092
|
|
|
6108
7093
|
/**
|
|
6109
|
-
*
|
|
7094
|
+
* Achivement deleteMany
|
|
6110
7095
|
*/
|
|
6111
|
-
export type
|
|
7096
|
+
export type AchivementDeleteManyArgs = {
|
|
6112
7097
|
/**
|
|
6113
|
-
* Filter which
|
|
7098
|
+
* Filter which Achivements to delete
|
|
6114
7099
|
*
|
|
6115
7100
|
**/
|
|
6116
|
-
where?:
|
|
7101
|
+
where?: AchivementWhereInput
|
|
6117
7102
|
}
|
|
6118
7103
|
|
|
6119
7104
|
|
|
6120
7105
|
/**
|
|
6121
|
-
*
|
|
7106
|
+
* Achivement: findUniqueOrThrow
|
|
6122
7107
|
*/
|
|
6123
|
-
export type
|
|
7108
|
+
export type AchivementFindUniqueOrThrowArgs = AchivementFindUniqueArgsBase
|
|
6124
7109
|
|
|
6125
7110
|
|
|
6126
7111
|
/**
|
|
6127
|
-
*
|
|
7112
|
+
* Achivement: findFirstOrThrow
|
|
6128
7113
|
*/
|
|
6129
|
-
export type
|
|
7114
|
+
export type AchivementFindFirstOrThrowArgs = AchivementFindFirstArgsBase
|
|
6130
7115
|
|
|
6131
7116
|
|
|
6132
7117
|
/**
|
|
6133
|
-
*
|
|
7118
|
+
* Achivement without action
|
|
6134
7119
|
*/
|
|
6135
|
-
export type
|
|
7120
|
+
export type AchivementArgs = {
|
|
6136
7121
|
/**
|
|
6137
|
-
* Select specific fields to fetch from the
|
|
7122
|
+
* Select specific fields to fetch from the Achivement
|
|
6138
7123
|
*
|
|
6139
7124
|
**/
|
|
6140
|
-
select?:
|
|
7125
|
+
select?: AchivementSelect | null
|
|
6141
7126
|
/**
|
|
6142
7127
|
* Choose, which related nodes to fetch as well.
|
|
6143
7128
|
*
|
|
6144
7129
|
**/
|
|
6145
|
-
include?:
|
|
7130
|
+
include?: AchivementInclude | null
|
|
6146
7131
|
}
|
|
6147
7132
|
|
|
6148
7133
|
|
|
@@ -10859,6 +11844,19 @@ export namespace Prisma {
|
|
|
10859
11844
|
// Based on
|
|
10860
11845
|
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
|
10861
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
|
+
|
|
10862
11860
|
export const AnswerScalarFieldEnum: {
|
|
10863
11861
|
id: 'id',
|
|
10864
11862
|
userId: 'userId',
|
|
@@ -11227,6 +12225,7 @@ export namespace Prisma {
|
|
|
11227
12225
|
name?: StringFilter | string
|
|
11228
12226
|
password?: StringNullableFilter | string | null
|
|
11229
12227
|
googleUser?: XOR<GoogleUserRelationFilter, GoogleUserWhereInput> | null
|
|
12228
|
+
achivements?: AchivementListRelationFilter
|
|
11230
12229
|
purchases?: PurchaseListRelationFilter
|
|
11231
12230
|
packs?: PackListRelationFilter
|
|
11232
12231
|
userCards?: UserCardListRelationFilter
|
|
@@ -11242,6 +12241,7 @@ export namespace Prisma {
|
|
|
11242
12241
|
name?: SortOrder
|
|
11243
12242
|
password?: SortOrder
|
|
11244
12243
|
googleUser?: GoogleUserOrderByWithRelationInput
|
|
12244
|
+
achivements?: AchivementOrderByRelationAggregateInput
|
|
11245
12245
|
purchases?: PurchaseOrderByRelationAggregateInput
|
|
11246
12246
|
packs?: PackOrderByRelationAggregateInput
|
|
11247
12247
|
userCards?: UserCardOrderByRelationAggregateInput
|
|
@@ -11280,6 +12280,61 @@ export namespace Prisma {
|
|
|
11280
12280
|
passwordActivated?: BoolWithAggregatesFilter | boolean
|
|
11281
12281
|
}
|
|
11282
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
|
+
|
|
11283
12338
|
export type TeamWhereInput = {
|
|
11284
12339
|
AND?: Enumerable<TeamWhereInput>
|
|
11285
12340
|
OR?: Enumerable<TeamWhereInput>
|
|
@@ -11784,6 +12839,7 @@ export namespace Prisma {
|
|
|
11784
12839
|
name: string
|
|
11785
12840
|
password?: string | null
|
|
11786
12841
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
12842
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
11787
12843
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
11788
12844
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
11789
12845
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -11798,6 +12854,7 @@ export namespace Prisma {
|
|
|
11798
12854
|
name: string
|
|
11799
12855
|
password?: string | null
|
|
11800
12856
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
12857
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
11801
12858
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
11802
12859
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
11803
12860
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -11812,6 +12869,7 @@ export namespace Prisma {
|
|
|
11812
12869
|
name?: StringFieldUpdateOperationsInput | string
|
|
11813
12870
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11814
12871
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
12872
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
11815
12873
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
11816
12874
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
11817
12875
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -11826,6 +12884,7 @@ export namespace Prisma {
|
|
|
11826
12884
|
name?: StringFieldUpdateOperationsInput | string
|
|
11827
12885
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
11828
12886
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
12887
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
11829
12888
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
11830
12889
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
11831
12890
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -11860,6 +12919,75 @@ export namespace Prisma {
|
|
|
11860
12919
|
passwordActivated?: BoolFieldUpdateOperationsInput | boolean
|
|
11861
12920
|
}
|
|
11862
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
|
+
|
|
11863
12991
|
export type TeamCreateInput = {
|
|
11864
12992
|
id?: string
|
|
11865
12993
|
name: string
|
|
@@ -12547,6 +13675,12 @@ export namespace Prisma {
|
|
|
12547
13675
|
isNot?: GoogleUserWhereInput | null
|
|
12548
13676
|
}
|
|
12549
13677
|
|
|
13678
|
+
export type AchivementListRelationFilter = {
|
|
13679
|
+
every?: AchivementWhereInput
|
|
13680
|
+
some?: AchivementWhereInput
|
|
13681
|
+
none?: AchivementWhereInput
|
|
13682
|
+
}
|
|
13683
|
+
|
|
12550
13684
|
export type AnswerListRelationFilter = {
|
|
12551
13685
|
every?: AnswerWhereInput
|
|
12552
13686
|
some?: AnswerWhereInput
|
|
@@ -12558,6 +13692,10 @@ export namespace Prisma {
|
|
|
12558
13692
|
isNot?: TeamWhereInput | null
|
|
12559
13693
|
}
|
|
12560
13694
|
|
|
13695
|
+
export type AchivementOrderByRelationAggregateInput = {
|
|
13696
|
+
_count?: SortOrder
|
|
13697
|
+
}
|
|
13698
|
+
|
|
12561
13699
|
export type AnswerOrderByRelationAggregateInput = {
|
|
12562
13700
|
_count?: SortOrder
|
|
12563
13701
|
}
|
|
@@ -12589,6 +13727,53 @@ export namespace Prisma {
|
|
|
12589
13727
|
passwordActivated?: SortOrder
|
|
12590
13728
|
}
|
|
12591
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
|
+
|
|
12592
13777
|
export type IntFilter = {
|
|
12593
13778
|
equals?: number
|
|
12594
13779
|
in?: Enumerable<number>
|
|
@@ -13124,6 +14309,13 @@ export namespace Prisma {
|
|
|
13124
14309
|
connect?: GoogleUserWhereUniqueInput
|
|
13125
14310
|
}
|
|
13126
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
|
+
|
|
13127
14319
|
export type PurchaseCreateNestedManyWithoutUserInput = {
|
|
13128
14320
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13129
14321
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13163,6 +14355,13 @@ export namespace Prisma {
|
|
|
13163
14355
|
connect?: GoogleUserWhereUniqueInput
|
|
13164
14356
|
}
|
|
13165
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
|
+
|
|
13166
14365
|
export type PurchaseUncheckedCreateNestedManyWithoutUserInput = {
|
|
13167
14366
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13168
14367
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13200,6 +14399,20 @@ export namespace Prisma {
|
|
|
13200
14399
|
update?: XOR<GoogleUserUpdateWithoutUserInput, GoogleUserUncheckedUpdateWithoutUserInput>
|
|
13201
14400
|
}
|
|
13202
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
|
+
|
|
13203
14416
|
export type PurchaseUpdateManyWithoutUserNestedInput = {
|
|
13204
14417
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13205
14418
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13275,6 +14488,20 @@ export namespace Prisma {
|
|
|
13275
14488
|
update?: XOR<GoogleUserUpdateWithoutUserInput, GoogleUserUncheckedUpdateWithoutUserInput>
|
|
13276
14489
|
}
|
|
13277
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
|
+
|
|
13278
14505
|
export type PurchaseUncheckedUpdateManyWithoutUserNestedInput = {
|
|
13279
14506
|
create?: XOR<Enumerable<PurchaseCreateWithoutUserInput>, Enumerable<PurchaseUncheckedCreateWithoutUserInput>>
|
|
13280
14507
|
connectOrCreate?: Enumerable<PurchaseCreateOrConnectWithoutUserInput>
|
|
@@ -13330,6 +14557,24 @@ export namespace Prisma {
|
|
|
13330
14557
|
deleteMany?: Enumerable<AnswerScalarWhereInput>
|
|
13331
14558
|
}
|
|
13332
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
|
+
|
|
13333
14578
|
export type PackCreateNestedManyWithoutTeamsInput = {
|
|
13334
14579
|
create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
|
|
13335
14580
|
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
|
|
@@ -13721,6 +14966,23 @@ export namespace Prisma {
|
|
|
13721
14966
|
_max?: NestedDecimalFilter
|
|
13722
14967
|
}
|
|
13723
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
|
+
|
|
13724
14986
|
export type NestedIntWithAggregatesFilter = {
|
|
13725
14987
|
equals?: number
|
|
13726
14988
|
in?: Enumerable<number>
|
|
@@ -13892,6 +15154,7 @@ export namespace Prisma {
|
|
|
13892
15154
|
name: string
|
|
13893
15155
|
password?: string | null
|
|
13894
15156
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
15157
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
13895
15158
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
13896
15159
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
13897
15160
|
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
@@ -13905,6 +15168,7 @@ export namespace Prisma {
|
|
|
13905
15168
|
name: string
|
|
13906
15169
|
password?: string | null
|
|
13907
15170
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
15171
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
13908
15172
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
13909
15173
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
13910
15174
|
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -13951,6 +15215,7 @@ export namespace Prisma {
|
|
|
13951
15215
|
name?: StringFieldUpdateOperationsInput | string
|
|
13952
15216
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13953
15217
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
15218
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
13954
15219
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
13955
15220
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
13956
15221
|
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
@@ -13964,6 +15229,7 @@ export namespace Prisma {
|
|
|
13964
15229
|
name?: StringFieldUpdateOperationsInput | string
|
|
13965
15230
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13966
15231
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
15232
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
13967
15233
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
13968
15234
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
13969
15235
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -14133,6 +15399,7 @@ export namespace Prisma {
|
|
|
14133
15399
|
name: string
|
|
14134
15400
|
password?: string | null
|
|
14135
15401
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
15402
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14136
15403
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14137
15404
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
14138
15405
|
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
@@ -14146,6 +15413,7 @@ export namespace Prisma {
|
|
|
14146
15413
|
name: string
|
|
14147
15414
|
password?: string | null
|
|
14148
15415
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
15416
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14149
15417
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14150
15418
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
14151
15419
|
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14371,6 +15639,34 @@ export namespace Prisma {
|
|
|
14371
15639
|
create: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
|
|
14372
15640
|
}
|
|
14373
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
|
+
|
|
14374
15670
|
export type PurchaseCreateWithoutUserInput = {
|
|
14375
15671
|
id?: string
|
|
14376
15672
|
pack: PackCreateNestedOneWithoutPurchasesInput
|
|
@@ -14520,6 +15816,35 @@ export namespace Prisma {
|
|
|
14520
15816
|
id?: StringFieldUpdateOperationsInput | string
|
|
14521
15817
|
}
|
|
14522
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
|
+
|
|
14523
15848
|
export type PurchaseUpsertWithWhereUniqueWithoutUserInput = {
|
|
14524
15849
|
where: PurchaseWhereUniqueInput
|
|
14525
15850
|
update: XOR<PurchaseUpdateWithoutUserInput, PurchaseUncheckedUpdateWithoutUserInput>
|
|
@@ -14618,6 +15943,72 @@ export namespace Prisma {
|
|
|
14618
15943
|
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
14619
15944
|
}
|
|
14620
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
|
+
|
|
14621
16012
|
export type PackCreateWithoutTeamsInput = {
|
|
14622
16013
|
id?: string
|
|
14623
16014
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
@@ -14659,6 +16050,7 @@ export namespace Prisma {
|
|
|
14659
16050
|
name: string
|
|
14660
16051
|
password?: string | null
|
|
14661
16052
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
16053
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14662
16054
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14663
16055
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14664
16056
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -14672,6 +16064,7 @@ export namespace Prisma {
|
|
|
14672
16064
|
name: string
|
|
14673
16065
|
password?: string | null
|
|
14674
16066
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
16067
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14675
16068
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14676
16069
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14677
16070
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14782,6 +16175,7 @@ export namespace Prisma {
|
|
|
14782
16175
|
email: string
|
|
14783
16176
|
name: string
|
|
14784
16177
|
password?: string | null
|
|
16178
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14785
16179
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14786
16180
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14787
16181
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -14795,6 +16189,7 @@ export namespace Prisma {
|
|
|
14795
16189
|
email: string
|
|
14796
16190
|
name: string
|
|
14797
16191
|
password?: string | null
|
|
16192
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14798
16193
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14799
16194
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14800
16195
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14818,6 +16213,7 @@ export namespace Prisma {
|
|
|
14818
16213
|
email?: StringFieldUpdateOperationsInput | string
|
|
14819
16214
|
name?: StringFieldUpdateOperationsInput | string
|
|
14820
16215
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
16216
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
14821
16217
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
14822
16218
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
14823
16219
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -14831,6 +16227,7 @@ export namespace Prisma {
|
|
|
14831
16227
|
email?: StringFieldUpdateOperationsInput | string
|
|
14832
16228
|
name?: StringFieldUpdateOperationsInput | string
|
|
14833
16229
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
16230
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
14834
16231
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
14835
16232
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
14836
16233
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -14845,6 +16242,7 @@ export namespace Prisma {
|
|
|
14845
16242
|
name: string
|
|
14846
16243
|
password?: string | null
|
|
14847
16244
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
16245
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14848
16246
|
purchases?: PurchaseCreateNestedManyWithoutUserInput
|
|
14849
16247
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14850
16248
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
@@ -14858,6 +16256,7 @@ export namespace Prisma {
|
|
|
14858
16256
|
name: string
|
|
14859
16257
|
password?: string | null
|
|
14860
16258
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
16259
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14861
16260
|
purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
|
|
14862
16261
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14863
16262
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14881,6 +16280,7 @@ export namespace Prisma {
|
|
|
14881
16280
|
name?: StringFieldUpdateOperationsInput | string
|
|
14882
16281
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14883
16282
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16283
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
14884
16284
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
14885
16285
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
14886
16286
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -14894,6 +16294,7 @@ export namespace Prisma {
|
|
|
14894
16294
|
name?: StringFieldUpdateOperationsInput | string
|
|
14895
16295
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14896
16296
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16297
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
14897
16298
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
14898
16299
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
14899
16300
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -14907,6 +16308,7 @@ export namespace Prisma {
|
|
|
14907
16308
|
name: string
|
|
14908
16309
|
password?: string | null
|
|
14909
16310
|
googleUser?: GoogleUserCreateNestedOneWithoutUserInput
|
|
16311
|
+
achivements?: AchivementCreateNestedManyWithoutUserInput
|
|
14910
16312
|
packs?: PackCreateNestedManyWithoutUsersInput
|
|
14911
16313
|
userCards?: UserCardCreateNestedManyWithoutUserInput
|
|
14912
16314
|
answers?: AnswerCreateNestedManyWithoutUserInput
|
|
@@ -14920,6 +16322,7 @@ export namespace Prisma {
|
|
|
14920
16322
|
name: string
|
|
14921
16323
|
password?: string | null
|
|
14922
16324
|
googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
|
|
16325
|
+
achivements?: AchivementUncheckedCreateNestedManyWithoutUserInput
|
|
14923
16326
|
packs?: PackUncheckedCreateNestedManyWithoutUsersInput
|
|
14924
16327
|
userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
|
|
14925
16328
|
answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
|
|
@@ -14978,6 +16381,7 @@ export namespace Prisma {
|
|
|
14978
16381
|
name?: StringFieldUpdateOperationsInput | string
|
|
14979
16382
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14980
16383
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16384
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
14981
16385
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
14982
16386
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
14983
16387
|
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
@@ -14991,6 +16395,7 @@ export namespace Prisma {
|
|
|
14991
16395
|
name?: StringFieldUpdateOperationsInput | string
|
|
14992
16396
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14993
16397
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16398
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
14994
16399
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
14995
16400
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
14996
16401
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -15163,6 +16568,7 @@ export namespace Prisma {
|
|
|
15163
16568
|
name?: StringFieldUpdateOperationsInput | string
|
|
15164
16569
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15165
16570
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16571
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
15166
16572
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
15167
16573
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
15168
16574
|
answers?: AnswerUpdateManyWithoutUserNestedInput
|
|
@@ -15176,6 +16582,7 @@ export namespace Prisma {
|
|
|
15176
16582
|
name?: StringFieldUpdateOperationsInput | string
|
|
15177
16583
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15178
16584
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16585
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
15179
16586
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
15180
16587
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|
|
15181
16588
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
@@ -15248,6 +16655,15 @@ export namespace Prisma {
|
|
|
15248
16655
|
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
15249
16656
|
}
|
|
15250
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
|
+
|
|
15251
16667
|
export type PurchaseCreateManyUserInput = {
|
|
15252
16668
|
id?: string
|
|
15253
16669
|
packId: string
|
|
@@ -15272,6 +16688,33 @@ export namespace Prisma {
|
|
|
15272
16688
|
timestamp: Date | string
|
|
15273
16689
|
}
|
|
15274
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
|
+
|
|
15275
16718
|
export type PurchaseUpdateWithoutUserInput = {
|
|
15276
16719
|
id?: StringFieldUpdateOperationsInput | string
|
|
15277
16720
|
pack?: PackUpdateOneRequiredWithoutPurchasesNestedInput
|
|
@@ -15413,6 +16856,7 @@ export namespace Prisma {
|
|
|
15413
16856
|
name?: StringFieldUpdateOperationsInput | string
|
|
15414
16857
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15415
16858
|
googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
|
|
16859
|
+
achivements?: AchivementUpdateManyWithoutUserNestedInput
|
|
15416
16860
|
purchases?: PurchaseUpdateManyWithoutUserNestedInput
|
|
15417
16861
|
packs?: PackUpdateManyWithoutUsersNestedInput
|
|
15418
16862
|
userCards?: UserCardUpdateManyWithoutUserNestedInput
|
|
@@ -15426,6 +16870,7 @@ export namespace Prisma {
|
|
|
15426
16870
|
name?: StringFieldUpdateOperationsInput | string
|
|
15427
16871
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
15428
16872
|
googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
|
|
16873
|
+
achivements?: AchivementUncheckedUpdateManyWithoutUserNestedInput
|
|
15429
16874
|
purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
|
|
15430
16875
|
packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
|
|
15431
16876
|
userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
|