@merkl/api 0.10.362 → 0.10.377

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.
Files changed (84) hide show
  1. package/README.md +78 -14
  2. package/dist/database/api/.generated/edge.js +21 -6
  3. package/dist/database/api/.generated/index-browser.js +18 -3
  4. package/dist/database/api/.generated/index.d.ts +1746 -256
  5. package/dist/database/api/.generated/index.js +21 -6
  6. package/dist/database/api/.generated/package.json +1 -1
  7. package/dist/database/api/.generated/schema.prisma +12 -2
  8. package/dist/database/api/.generated/wasm.js +18 -3
  9. package/dist/src/eden/index.d.ts +1041 -140
  10. package/dist/src/entities/campaign.js +2 -1
  11. package/dist/src/entities/opportunity.js +169 -3
  12. package/dist/src/index.d.ts +340 -9
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +45 -54
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ERC4626Processor.d.ts +34 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ERC4626Processor.js +36 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +3 -0
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +4 -1
  20. package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.d.ts +5 -0
  21. package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +76 -0
  22. package/dist/src/libs/campaigns/campaignsDynamicData.js +8 -0
  23. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -0
  24. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  25. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  26. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +63 -1
  27. package/dist/src/modules/v4/campaign/campaign.repository.js +15 -10
  28. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +7 -4
  29. package/dist/src/modules/v4/computedValue/computedValue.controller.js +7 -5
  30. package/dist/src/modules/v4/computedValue/computedValue.model.js +12 -4
  31. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +8 -5
  32. package/dist/src/modules/v4/computedValue/computedValue.repository.js +7 -3
  33. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +7 -4
  34. package/dist/src/modules/v4/computedValue/computedValue.service.js +10 -0
  35. package/dist/src/modules/v4/creator/creator.controller.d.ts +118 -0
  36. package/dist/src/modules/v4/creator/creator.controller.js +30 -0
  37. package/dist/src/modules/v4/creator/creator.model.d.ts +29 -0
  38. package/dist/src/modules/v4/creator/creator.model.js +18 -0
  39. package/dist/src/modules/v4/creator/creator.repository.d.ts +40 -0
  40. package/dist/src/modules/v4/creator/creator.repository.js +63 -0
  41. package/dist/src/modules/v4/creator/creator.service.d.ts +61 -0
  42. package/dist/src/modules/v4/creator/creator.service.js +44 -0
  43. package/dist/src/modules/v4/creator/index.d.ts +3 -0
  44. package/dist/src/modules/v4/creator/index.js +3 -0
  45. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +3 -4
  46. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -1
  47. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -0
  48. package/dist/src/modules/v4/dynamicData/dynamicData.model.js +1 -0
  49. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -3
  50. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +50 -9
  51. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +171 -1
  52. package/dist/src/modules/v4/opportunity/opportunity.controller.js +14 -0
  53. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -1
  54. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +185 -0
  55. package/dist/src/modules/v4/opportunity/opportunity.repository.js +41 -0
  56. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +151 -1
  57. package/dist/src/modules/v4/opportunity/opportunity.service.js +45 -2
  58. package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.d.ts +1 -1
  59. package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.js +2 -2
  60. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +30 -0
  61. package/dist/src/modules/v4/programPayload/programPayload.controller.js +12 -1
  62. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +21 -1
  63. package/dist/src/modules/v4/programPayload/programPayload.model.js +12 -0
  64. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +3 -2
  65. package/dist/src/modules/v4/programPayload/programPayload.repository.js +28 -2
  66. package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +2 -1
  67. package/dist/src/modules/v4/programPayload/programPayload.service.js +42 -2
  68. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +1 -0
  69. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -0
  70. package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
  71. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -1
  72. package/dist/src/modules/v4/reward/reward.repository.js +12 -1
  73. package/dist/src/modules/v4/reward/reward.service.js +5 -2
  74. package/dist/src/modules/v4/router.d.ts +340 -9
  75. package/dist/src/modules/v4/router.js +3 -1
  76. package/dist/src/modules/v4/user/user.controller.d.ts +28 -0
  77. package/dist/src/modules/v4/user/user.controller.js +5 -0
  78. package/dist/src/modules/v4/user/user.repository.d.ts +5 -0
  79. package/dist/src/modules/v4/user/user.service.d.ts +5 -0
  80. package/dist/src/utils/decodeCalls.js +7 -1
  81. package/dist/src/utils/encodeCalls.js +19 -1
  82. package/dist/src/utils/generateCardName.js +3 -0
  83. package/dist/tsconfig.package.tsbuildinfo +1 -1
  84. package/package.json +6 -2
@@ -93,6 +93,11 @@ export type DailyRewardsBreakdown = $Result.DefaultSelection<Prisma.$DailyReward
93
93
  *
94
94
  */
95
95
  export type User = $Result.DefaultSelection<Prisma.$UserPayload>
96
+ /**
97
+ * Model Creator
98
+ *
99
+ */
100
+ export type Creator = $Result.DefaultSelection<Prisma.$CreatorPayload>
96
101
  /**
97
102
  * Model Reward
98
103
  *
@@ -173,7 +178,6 @@ export const OpportunityAction: {
173
178
  DROP: 'DROP',
174
179
  LEND: 'LEND',
175
180
  BORROW: 'BORROW',
176
- LP: 'LP',
177
181
  LONG: 'LONG',
178
182
  SHORT: 'SHORT',
179
183
  INVALID: 'INVALID'
@@ -546,6 +550,16 @@ export class PrismaClient<
546
550
  */
547
551
  get user(): Prisma.UserDelegate<ExtArgs>;
548
552
 
553
+ /**
554
+ * `prisma.creator`: Exposes CRUD operations for the **Creator** model.
555
+ * Example usage:
556
+ * ```ts
557
+ * // Fetch zero or more Creators
558
+ * const creators = await prisma.creator.findMany()
559
+ * ```
560
+ */
561
+ get creator(): Prisma.CreatorDelegate<ExtArgs>;
562
+
549
563
  /**
550
564
  * `prisma.reward`: Exposes CRUD operations for the **Reward** model.
551
565
  * Example usage:
@@ -1061,6 +1075,7 @@ export namespace Prisma {
1061
1075
  DailyRewardsRecord: 'DailyRewardsRecord',
1062
1076
  DailyRewardsBreakdown: 'DailyRewardsBreakdown',
1063
1077
  User: 'User',
1078
+ Creator: 'Creator',
1064
1079
  Reward: 'Reward',
1065
1080
  RewardBreakdown: 'RewardBreakdown',
1066
1081
  MerklRoot: 'MerklRoot',
@@ -1082,7 +1097,7 @@ export namespace Prisma {
1082
1097
 
1083
1098
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
1084
1099
  meta: {
1085
- modelProps: "campaign" | "campaignStatus" | "campaignComputedValue" | "userComputedValue" | "chain" | "explorer" | "opportunity" | "protocol" | "token" | "aprRecord" | "aprBreakdown" | "tVLRecord" | "tVLBreakdown" | "dailyRewardsRecord" | "dailyRewardsBreakdown" | "user" | "reward" | "rewardBreakdown" | "merklRoot" | "priceSource" | "blacklist" | "dump"
1100
+ modelProps: "campaign" | "campaignStatus" | "campaignComputedValue" | "userComputedValue" | "chain" | "explorer" | "opportunity" | "protocol" | "token" | "aprRecord" | "aprBreakdown" | "tVLRecord" | "tVLBreakdown" | "dailyRewardsRecord" | "dailyRewardsBreakdown" | "user" | "creator" | "reward" | "rewardBreakdown" | "merklRoot" | "priceSource" | "blacklist" | "dump"
1086
1101
  txIsolationLevel: Prisma.TransactionIsolationLevel
1087
1102
  }
1088
1103
  model: {
@@ -2206,6 +2221,76 @@ export namespace Prisma {
2206
2221
  }
2207
2222
  }
2208
2223
  }
2224
+ Creator: {
2225
+ payload: Prisma.$CreatorPayload<ExtArgs>
2226
+ fields: Prisma.CreatorFieldRefs
2227
+ operations: {
2228
+ findUnique: {
2229
+ args: Prisma.CreatorFindUniqueArgs<ExtArgs>
2230
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload> | null
2231
+ }
2232
+ findUniqueOrThrow: {
2233
+ args: Prisma.CreatorFindUniqueOrThrowArgs<ExtArgs>
2234
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>
2235
+ }
2236
+ findFirst: {
2237
+ args: Prisma.CreatorFindFirstArgs<ExtArgs>
2238
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload> | null
2239
+ }
2240
+ findFirstOrThrow: {
2241
+ args: Prisma.CreatorFindFirstOrThrowArgs<ExtArgs>
2242
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>
2243
+ }
2244
+ findMany: {
2245
+ args: Prisma.CreatorFindManyArgs<ExtArgs>
2246
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>[]
2247
+ }
2248
+ create: {
2249
+ args: Prisma.CreatorCreateArgs<ExtArgs>
2250
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>
2251
+ }
2252
+ createMany: {
2253
+ args: Prisma.CreatorCreateManyArgs<ExtArgs>
2254
+ result: BatchPayload
2255
+ }
2256
+ createManyAndReturn: {
2257
+ args: Prisma.CreatorCreateManyAndReturnArgs<ExtArgs>
2258
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>[]
2259
+ }
2260
+ delete: {
2261
+ args: Prisma.CreatorDeleteArgs<ExtArgs>
2262
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>
2263
+ }
2264
+ update: {
2265
+ args: Prisma.CreatorUpdateArgs<ExtArgs>
2266
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>
2267
+ }
2268
+ deleteMany: {
2269
+ args: Prisma.CreatorDeleteManyArgs<ExtArgs>
2270
+ result: BatchPayload
2271
+ }
2272
+ updateMany: {
2273
+ args: Prisma.CreatorUpdateManyArgs<ExtArgs>
2274
+ result: BatchPayload
2275
+ }
2276
+ upsert: {
2277
+ args: Prisma.CreatorUpsertArgs<ExtArgs>
2278
+ result: $Utils.PayloadToResult<Prisma.$CreatorPayload>
2279
+ }
2280
+ aggregate: {
2281
+ args: Prisma.CreatorAggregateArgs<ExtArgs>
2282
+ result: $Utils.Optional<AggregateCreator>
2283
+ }
2284
+ groupBy: {
2285
+ args: Prisma.CreatorGroupByArgs<ExtArgs>
2286
+ result: $Utils.Optional<CreatorGroupByOutputType>[]
2287
+ }
2288
+ count: {
2289
+ args: Prisma.CreatorCountArgs<ExtArgs>
2290
+ result: $Utils.Optional<CreatorCountAggregateOutputType> | number
2291
+ }
2292
+ }
2293
+ }
2209
2294
  Reward: {
2210
2295
  payload: Prisma.$RewardPayload<ExtArgs>
2211
2296
  fields: Prisma.RewardFieldRefs
@@ -3286,6 +3371,37 @@ export namespace Prisma {
3286
3371
  }
3287
3372
 
3288
3373
 
3374
+ /**
3375
+ * Count Type CreatorCountOutputType
3376
+ */
3377
+
3378
+ export type CreatorCountOutputType = {
3379
+ Users: number
3380
+ }
3381
+
3382
+ export type CreatorCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3383
+ Users?: boolean | CreatorCountOutputTypeCountUsersArgs
3384
+ }
3385
+
3386
+ // Custom InputTypes
3387
+ /**
3388
+ * CreatorCountOutputType without action
3389
+ */
3390
+ export type CreatorCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3391
+ /**
3392
+ * Select specific fields to fetch from the CreatorCountOutputType
3393
+ */
3394
+ select?: CreatorCountOutputTypeSelect<ExtArgs> | null
3395
+ }
3396
+
3397
+ /**
3398
+ * CreatorCountOutputType without action
3399
+ */
3400
+ export type CreatorCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3401
+ where?: UserWhereInput
3402
+ }
3403
+
3404
+
3289
3405
  /**
3290
3406
  * Count Type RewardCountOutputType
3291
3407
  */
@@ -6555,14 +6671,17 @@ export namespace Prisma {
6555
6671
  }
6556
6672
 
6557
6673
  export type UserComputedValueAvgAggregateOutputType = {
6674
+ id: number | null
6558
6675
  boost: number | null
6559
6676
  }
6560
6677
 
6561
6678
  export type UserComputedValueSumAggregateOutputType = {
6679
+ id: number | null
6562
6680
  boost: number | null
6563
6681
  }
6564
6682
 
6565
6683
  export type UserComputedValueMinAggregateOutputType = {
6684
+ id: number | null
6566
6685
  campaignId: string | null
6567
6686
  address: string | null
6568
6687
  reason: string | null
@@ -6570,6 +6689,7 @@ export namespace Prisma {
6570
6689
  }
6571
6690
 
6572
6691
  export type UserComputedValueMaxAggregateOutputType = {
6692
+ id: number | null
6573
6693
  campaignId: string | null
6574
6694
  address: string | null
6575
6695
  reason: string | null
@@ -6577,6 +6697,7 @@ export namespace Prisma {
6577
6697
  }
6578
6698
 
6579
6699
  export type UserComputedValueCountAggregateOutputType = {
6700
+ id: number
6580
6701
  campaignId: number
6581
6702
  address: number
6582
6703
  reason: number
@@ -6586,14 +6707,17 @@ export namespace Prisma {
6586
6707
 
6587
6708
 
6588
6709
  export type UserComputedValueAvgAggregateInputType = {
6710
+ id?: true
6589
6711
  boost?: true
6590
6712
  }
6591
6713
 
6592
6714
  export type UserComputedValueSumAggregateInputType = {
6715
+ id?: true
6593
6716
  boost?: true
6594
6717
  }
6595
6718
 
6596
6719
  export type UserComputedValueMinAggregateInputType = {
6720
+ id?: true
6597
6721
  campaignId?: true
6598
6722
  address?: true
6599
6723
  reason?: true
@@ -6601,6 +6725,7 @@ export namespace Prisma {
6601
6725
  }
6602
6726
 
6603
6727
  export type UserComputedValueMaxAggregateInputType = {
6728
+ id?: true
6604
6729
  campaignId?: true
6605
6730
  address?: true
6606
6731
  reason?: true
@@ -6608,6 +6733,7 @@ export namespace Prisma {
6608
6733
  }
6609
6734
 
6610
6735
  export type UserComputedValueCountAggregateInputType = {
6736
+ id?: true
6611
6737
  campaignId?: true
6612
6738
  address?: true
6613
6739
  reason?: true
@@ -6702,6 +6828,7 @@ export namespace Prisma {
6702
6828
  }
6703
6829
 
6704
6830
  export type UserComputedValueGroupByOutputType = {
6831
+ id: number
6705
6832
  campaignId: string
6706
6833
  address: string
6707
6834
  reason: string
@@ -6728,6 +6855,7 @@ export namespace Prisma {
6728
6855
 
6729
6856
 
6730
6857
  export type UserComputedValueSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
6858
+ id?: boolean
6731
6859
  campaignId?: boolean
6732
6860
  address?: boolean
6733
6861
  reason?: boolean
@@ -6737,6 +6865,7 @@ export namespace Prisma {
6737
6865
  }, ExtArgs["result"]["userComputedValue"]>
6738
6866
 
6739
6867
  export type UserComputedValueSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
6868
+ id?: boolean
6740
6869
  campaignId?: boolean
6741
6870
  address?: boolean
6742
6871
  reason?: boolean
@@ -6746,6 +6875,7 @@ export namespace Prisma {
6746
6875
  }, ExtArgs["result"]["userComputedValue"]>
6747
6876
 
6748
6877
  export type UserComputedValueSelectScalar = {
6878
+ id?: boolean
6749
6879
  campaignId?: boolean
6750
6880
  address?: boolean
6751
6881
  reason?: boolean
@@ -6768,6 +6898,7 @@ export namespace Prisma {
6768
6898
  User: Prisma.$UserPayload<ExtArgs> | null
6769
6899
  }
6770
6900
  scalars: $Extensions.GetPayloadResult<{
6901
+ id: number
6771
6902
  campaignId: string
6772
6903
  address: string
6773
6904
  reason: string
@@ -6855,8 +6986,8 @@ export namespace Prisma {
6855
6986
  * // Get first 10 UserComputedValues
6856
6987
  * const userComputedValues = await prisma.userComputedValue.findMany({ take: 10 })
6857
6988
  *
6858
- * // Only select the `campaignId`
6859
- * const userComputedValueWithCampaignIdOnly = await prisma.userComputedValue.findMany({ select: { campaignId: true } })
6989
+ * // Only select the `id`
6990
+ * const userComputedValueWithIdOnly = await prisma.userComputedValue.findMany({ select: { id: true } })
6860
6991
  *
6861
6992
  */
6862
6993
  findMany<T extends UserComputedValueFindManyArgs>(args?: SelectSubset<T, UserComputedValueFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserComputedValuePayload<ExtArgs>, T, "findMany">>
@@ -6900,9 +7031,9 @@ export namespace Prisma {
6900
7031
  * ]
6901
7032
  * })
6902
7033
  *
6903
- * // Create many UserComputedValues and only return the `campaignId`
6904
- * const userComputedValueWithCampaignIdOnly = await prisma.userComputedValue.createManyAndReturn({
6905
- * select: { campaignId: true },
7034
+ * // Create many UserComputedValues and only return the `id`
7035
+ * const userComputedValueWithIdOnly = await prisma.userComputedValue.createManyAndReturn({
7036
+ * select: { id: true },
6906
7037
  * data: [
6907
7038
  * // ... provide data here
6908
7039
  * ]
@@ -7167,6 +7298,7 @@ export namespace Prisma {
7167
7298
  * Fields of the UserComputedValue model
7168
7299
  */
7169
7300
  interface UserComputedValueFieldRefs {
7301
+ readonly id: FieldRef<"UserComputedValue", 'Int'>
7170
7302
  readonly campaignId: FieldRef<"UserComputedValue", 'String'>
7171
7303
  readonly address: FieldRef<"UserComputedValue", 'String'>
7172
7304
  readonly reason: FieldRef<"UserComputedValue", 'String'>
@@ -18992,30 +19124,36 @@ export namespace Prisma {
18992
19124
 
18993
19125
  export type UserMinAggregateOutputType = {
18994
19126
  address: string | null
19127
+ creatorId: string | null
18995
19128
  }
18996
19129
 
18997
19130
  export type UserMaxAggregateOutputType = {
18998
19131
  address: string | null
19132
+ creatorId: string | null
18999
19133
  }
19000
19134
 
19001
19135
  export type UserCountAggregateOutputType = {
19002
19136
  address: number
19003
19137
  tags: number
19138
+ creatorId: number
19004
19139
  _all: number
19005
19140
  }
19006
19141
 
19007
19142
 
19008
19143
  export type UserMinAggregateInputType = {
19009
19144
  address?: true
19145
+ creatorId?: true
19010
19146
  }
19011
19147
 
19012
19148
  export type UserMaxAggregateInputType = {
19013
19149
  address?: true
19150
+ creatorId?: true
19014
19151
  }
19015
19152
 
19016
19153
  export type UserCountAggregateInputType = {
19017
19154
  address?: true
19018
19155
  tags?: true
19156
+ creatorId?: true
19019
19157
  _all?: true
19020
19158
  }
19021
19159
 
@@ -19094,6 +19232,7 @@ export namespace Prisma {
19094
19232
  export type UserGroupByOutputType = {
19095
19233
  address: string
19096
19234
  tags: string[]
19235
+ creatorId: string | null
19097
19236
  _count: UserCountAggregateOutputType | null
19098
19237
  _min: UserMinAggregateOutputType | null
19099
19238
  _max: UserMaxAggregateOutputType | null
@@ -19116,21 +19255,26 @@ export namespace Prisma {
19116
19255
  export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19117
19256
  address?: boolean
19118
19257
  tags?: boolean
19258
+ creatorId?: boolean
19119
19259
  Rewards?: boolean | User$RewardsArgs<ExtArgs>
19120
19260
  Blacklist?: boolean | User$BlacklistArgs<ExtArgs>
19121
19261
  CampaignsCreated?: boolean | User$CampaignsCreatedArgs<ExtArgs>
19122
19262
  UserComputedValue?: boolean | User$UserComputedValueArgs<ExtArgs>
19263
+ Creator?: boolean | User$CreatorArgs<ExtArgs>
19123
19264
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
19124
19265
  }, ExtArgs["result"]["user"]>
19125
19266
 
19126
19267
  export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19127
19268
  address?: boolean
19128
19269
  tags?: boolean
19270
+ creatorId?: boolean
19271
+ Creator?: boolean | User$CreatorArgs<ExtArgs>
19129
19272
  }, ExtArgs["result"]["user"]>
19130
19273
 
19131
19274
  export type UserSelectScalar = {
19132
19275
  address?: boolean
19133
19276
  tags?: boolean
19277
+ creatorId?: boolean
19134
19278
  }
19135
19279
 
19136
19280
  export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -19138,9 +19282,12 @@ export namespace Prisma {
19138
19282
  Blacklist?: boolean | User$BlacklistArgs<ExtArgs>
19139
19283
  CampaignsCreated?: boolean | User$CampaignsCreatedArgs<ExtArgs>
19140
19284
  UserComputedValue?: boolean | User$UserComputedValueArgs<ExtArgs>
19285
+ Creator?: boolean | User$CreatorArgs<ExtArgs>
19141
19286
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
19142
19287
  }
19143
- export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
19288
+ export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19289
+ Creator?: boolean | User$CreatorArgs<ExtArgs>
19290
+ }
19144
19291
 
19145
19292
  export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19146
19293
  name: "User"
@@ -19149,10 +19296,12 @@ export namespace Prisma {
19149
19296
  Blacklist: Prisma.$BlacklistPayload<ExtArgs>[]
19150
19297
  CampaignsCreated: Prisma.$CampaignPayload<ExtArgs>[]
19151
19298
  UserComputedValue: Prisma.$UserComputedValuePayload<ExtArgs>[]
19299
+ Creator: Prisma.$CreatorPayload<ExtArgs> | null
19152
19300
  }
19153
19301
  scalars: $Extensions.GetPayloadResult<{
19154
19302
  address: string
19155
19303
  tags: string[]
19304
+ creatorId: string | null
19156
19305
  }, ExtArgs["result"]["user"]>
19157
19306
  composites: {}
19158
19307
  }
@@ -19521,6 +19670,7 @@ export namespace Prisma {
19521
19670
  Blacklist<T extends User$BlacklistArgs<ExtArgs> = {}>(args?: Subset<T, User$BlacklistArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BlacklistPayload<ExtArgs>, T, "findMany"> | Null>
19522
19671
  CampaignsCreated<T extends User$CampaignsCreatedArgs<ExtArgs> = {}>(args?: Subset<T, User$CampaignsCreatedArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findMany"> | Null>
19523
19672
  UserComputedValue<T extends User$UserComputedValueArgs<ExtArgs> = {}>(args?: Subset<T, User$UserComputedValueArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserComputedValuePayload<ExtArgs>, T, "findMany"> | Null>
19673
+ Creator<T extends User$CreatorArgs<ExtArgs> = {}>(args?: Subset<T, User$CreatorArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
19524
19674
  /**
19525
19675
  * Attaches callbacks for the resolution and/or rejection of the Promise.
19526
19676
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -19552,6 +19702,7 @@ export namespace Prisma {
19552
19702
  interface UserFieldRefs {
19553
19703
  readonly address: FieldRef<"User", 'String'>
19554
19704
  readonly tags: FieldRef<"User", 'String[]'>
19705
+ readonly creatorId: FieldRef<"User", 'String'>
19555
19706
  }
19556
19707
 
19557
19708
 
@@ -19779,6 +19930,10 @@ export namespace Prisma {
19779
19930
  */
19780
19931
  data: UserCreateManyInput | UserCreateManyInput[]
19781
19932
  skipDuplicates?: boolean
19933
+ /**
19934
+ * Choose, which related nodes to fetch as well
19935
+ */
19936
+ include?: UserIncludeCreateManyAndReturn<ExtArgs> | null
19782
19937
  }
19783
19938
 
19784
19939
  /**
@@ -19954,6 +20109,21 @@ export namespace Prisma {
19954
20109
  distinct?: UserComputedValueScalarFieldEnum | UserComputedValueScalarFieldEnum[]
19955
20110
  }
19956
20111
 
20112
+ /**
20113
+ * User.Creator
20114
+ */
20115
+ export type User$CreatorArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20116
+ /**
20117
+ * Select specific fields to fetch from the Creator
20118
+ */
20119
+ select?: CreatorSelect<ExtArgs> | null
20120
+ /**
20121
+ * Choose, which related nodes to fetch as well
20122
+ */
20123
+ include?: CreatorInclude<ExtArgs> | null
20124
+ where?: CreatorWhereInput
20125
+ }
20126
+
19957
20127
  /**
19958
20128
  * User without action
19959
20129
  */
@@ -19970,381 +20140,314 @@ export namespace Prisma {
19970
20140
 
19971
20141
 
19972
20142
  /**
19973
- * Model Reward
20143
+ * Model Creator
19974
20144
  */
19975
20145
 
19976
- export type AggregateReward = {
19977
- _count: RewardCountAggregateOutputType | null
19978
- _min: RewardMinAggregateOutputType | null
19979
- _max: RewardMaxAggregateOutputType | null
20146
+ export type AggregateCreator = {
20147
+ _count: CreatorCountAggregateOutputType | null
20148
+ _min: CreatorMinAggregateOutputType | null
20149
+ _max: CreatorMaxAggregateOutputType | null
19980
20150
  }
19981
20151
 
19982
- export type RewardMinAggregateOutputType = {
20152
+ export type CreatorMinAggregateOutputType = {
19983
20153
  id: string | null
19984
- root: string | null
19985
- recipient: string | null
19986
- rewardTokenId: string | null
19987
- amount: string | null
19988
- claimed: string | null
19989
- pending: string | null
20154
+ icon: string | null
20155
+ name: string | null
19990
20156
  }
19991
20157
 
19992
- export type RewardMaxAggregateOutputType = {
20158
+ export type CreatorMaxAggregateOutputType = {
19993
20159
  id: string | null
19994
- root: string | null
19995
- recipient: string | null
19996
- rewardTokenId: string | null
19997
- amount: string | null
19998
- claimed: string | null
19999
- pending: string | null
20160
+ icon: string | null
20161
+ name: string | null
20000
20162
  }
20001
20163
 
20002
- export type RewardCountAggregateOutputType = {
20164
+ export type CreatorCountAggregateOutputType = {
20003
20165
  id: number
20004
- root: number
20005
- recipient: number
20006
- rewardTokenId: number
20007
- amount: number
20008
- claimed: number
20009
- pending: number
20010
- proofs: number
20166
+ icon: number
20167
+ name: number
20011
20168
  _all: number
20012
20169
  }
20013
20170
 
20014
20171
 
20015
- export type RewardMinAggregateInputType = {
20172
+ export type CreatorMinAggregateInputType = {
20016
20173
  id?: true
20017
- root?: true
20018
- recipient?: true
20019
- rewardTokenId?: true
20020
- amount?: true
20021
- claimed?: true
20022
- pending?: true
20174
+ icon?: true
20175
+ name?: true
20023
20176
  }
20024
20177
 
20025
- export type RewardMaxAggregateInputType = {
20178
+ export type CreatorMaxAggregateInputType = {
20026
20179
  id?: true
20027
- root?: true
20028
- recipient?: true
20029
- rewardTokenId?: true
20030
- amount?: true
20031
- claimed?: true
20032
- pending?: true
20180
+ icon?: true
20181
+ name?: true
20033
20182
  }
20034
20183
 
20035
- export type RewardCountAggregateInputType = {
20184
+ export type CreatorCountAggregateInputType = {
20036
20185
  id?: true
20037
- root?: true
20038
- recipient?: true
20039
- rewardTokenId?: true
20040
- amount?: true
20041
- claimed?: true
20042
- pending?: true
20043
- proofs?: true
20186
+ icon?: true
20187
+ name?: true
20044
20188
  _all?: true
20045
20189
  }
20046
20190
 
20047
- export type RewardAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20191
+ export type CreatorAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20048
20192
  /**
20049
- * Filter which Reward to aggregate.
20193
+ * Filter which Creator to aggregate.
20050
20194
  */
20051
- where?: RewardWhereInput
20195
+ where?: CreatorWhereInput
20052
20196
  /**
20053
20197
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20054
20198
  *
20055
- * Determine the order of Rewards to fetch.
20199
+ * Determine the order of Creators to fetch.
20056
20200
  */
20057
- orderBy?: RewardOrderByWithRelationInput | RewardOrderByWithRelationInput[]
20201
+ orderBy?: CreatorOrderByWithRelationInput | CreatorOrderByWithRelationInput[]
20058
20202
  /**
20059
20203
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20060
20204
  *
20061
20205
  * Sets the start position
20062
20206
  */
20063
- cursor?: RewardWhereUniqueInput
20207
+ cursor?: CreatorWhereUniqueInput
20064
20208
  /**
20065
20209
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20066
20210
  *
20067
- * Take `±n` Rewards from the position of the cursor.
20211
+ * Take `±n` Creators from the position of the cursor.
20068
20212
  */
20069
20213
  take?: number
20070
20214
  /**
20071
20215
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20072
20216
  *
20073
- * Skip the first `n` Rewards.
20217
+ * Skip the first `n` Creators.
20074
20218
  */
20075
20219
  skip?: number
20076
20220
  /**
20077
20221
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20078
20222
  *
20079
- * Count returned Rewards
20223
+ * Count returned Creators
20080
20224
  **/
20081
- _count?: true | RewardCountAggregateInputType
20225
+ _count?: true | CreatorCountAggregateInputType
20082
20226
  /**
20083
20227
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20084
20228
  *
20085
20229
  * Select which fields to find the minimum value
20086
20230
  **/
20087
- _min?: RewardMinAggregateInputType
20231
+ _min?: CreatorMinAggregateInputType
20088
20232
  /**
20089
20233
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20090
20234
  *
20091
20235
  * Select which fields to find the maximum value
20092
20236
  **/
20093
- _max?: RewardMaxAggregateInputType
20237
+ _max?: CreatorMaxAggregateInputType
20094
20238
  }
20095
20239
 
20096
- export type GetRewardAggregateType<T extends RewardAggregateArgs> = {
20097
- [P in keyof T & keyof AggregateReward]: P extends '_count' | 'count'
20240
+ export type GetCreatorAggregateType<T extends CreatorAggregateArgs> = {
20241
+ [P in keyof T & keyof AggregateCreator]: P extends '_count' | 'count'
20098
20242
  ? T[P] extends true
20099
20243
  ? number
20100
- : GetScalarType<T[P], AggregateReward[P]>
20101
- : GetScalarType<T[P], AggregateReward[P]>
20244
+ : GetScalarType<T[P], AggregateCreator[P]>
20245
+ : GetScalarType<T[P], AggregateCreator[P]>
20102
20246
  }
20103
20247
 
20104
20248
 
20105
20249
 
20106
20250
 
20107
- export type RewardGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20108
- where?: RewardWhereInput
20109
- orderBy?: RewardOrderByWithAggregationInput | RewardOrderByWithAggregationInput[]
20110
- by: RewardScalarFieldEnum[] | RewardScalarFieldEnum
20111
- having?: RewardScalarWhereWithAggregatesInput
20251
+ export type CreatorGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20252
+ where?: CreatorWhereInput
20253
+ orderBy?: CreatorOrderByWithAggregationInput | CreatorOrderByWithAggregationInput[]
20254
+ by: CreatorScalarFieldEnum[] | CreatorScalarFieldEnum
20255
+ having?: CreatorScalarWhereWithAggregatesInput
20112
20256
  take?: number
20113
20257
  skip?: number
20114
- _count?: RewardCountAggregateInputType | true
20115
- _min?: RewardMinAggregateInputType
20116
- _max?: RewardMaxAggregateInputType
20258
+ _count?: CreatorCountAggregateInputType | true
20259
+ _min?: CreatorMinAggregateInputType
20260
+ _max?: CreatorMaxAggregateInputType
20117
20261
  }
20118
20262
 
20119
- export type RewardGroupByOutputType = {
20263
+ export type CreatorGroupByOutputType = {
20120
20264
  id: string
20121
- root: string
20122
- recipient: string
20123
- rewardTokenId: string
20124
- amount: string
20125
- claimed: string
20126
- pending: string
20127
- proofs: string[]
20128
- _count: RewardCountAggregateOutputType | null
20129
- _min: RewardMinAggregateOutputType | null
20130
- _max: RewardMaxAggregateOutputType | null
20265
+ icon: string | null
20266
+ name: string
20267
+ _count: CreatorCountAggregateOutputType | null
20268
+ _min: CreatorMinAggregateOutputType | null
20269
+ _max: CreatorMaxAggregateOutputType | null
20131
20270
  }
20132
20271
 
20133
- type GetRewardGroupByPayload<T extends RewardGroupByArgs> = Prisma.PrismaPromise<
20272
+ type GetCreatorGroupByPayload<T extends CreatorGroupByArgs> = Prisma.PrismaPromise<
20134
20273
  Array<
20135
- PickEnumerable<RewardGroupByOutputType, T['by']> &
20274
+ PickEnumerable<CreatorGroupByOutputType, T['by']> &
20136
20275
  {
20137
- [P in ((keyof T) & (keyof RewardGroupByOutputType))]: P extends '_count'
20276
+ [P in ((keyof T) & (keyof CreatorGroupByOutputType))]: P extends '_count'
20138
20277
  ? T[P] extends boolean
20139
20278
  ? number
20140
- : GetScalarType<T[P], RewardGroupByOutputType[P]>
20141
- : GetScalarType<T[P], RewardGroupByOutputType[P]>
20279
+ : GetScalarType<T[P], CreatorGroupByOutputType[P]>
20280
+ : GetScalarType<T[P], CreatorGroupByOutputType[P]>
20142
20281
  }
20143
20282
  >
20144
20283
  >
20145
20284
 
20146
20285
 
20147
- export type RewardSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20286
+ export type CreatorSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20148
20287
  id?: boolean
20149
- root?: boolean
20150
- recipient?: boolean
20151
- rewardTokenId?: boolean
20152
- amount?: boolean
20153
- claimed?: boolean
20154
- pending?: boolean
20155
- proofs?: boolean
20156
- MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
20157
- User?: boolean | UserDefaultArgs<ExtArgs>
20158
- RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
20159
- Breakdown?: boolean | Reward$BreakdownArgs<ExtArgs>
20160
- _count?: boolean | RewardCountOutputTypeDefaultArgs<ExtArgs>
20161
- }, ExtArgs["result"]["reward"]>
20288
+ icon?: boolean
20289
+ name?: boolean
20290
+ Users?: boolean | Creator$UsersArgs<ExtArgs>
20291
+ _count?: boolean | CreatorCountOutputTypeDefaultArgs<ExtArgs>
20292
+ }, ExtArgs["result"]["creator"]>
20162
20293
 
20163
- export type RewardSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20294
+ export type CreatorSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20164
20295
  id?: boolean
20165
- root?: boolean
20166
- recipient?: boolean
20167
- rewardTokenId?: boolean
20168
- amount?: boolean
20169
- claimed?: boolean
20170
- pending?: boolean
20171
- proofs?: boolean
20172
- MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
20173
- User?: boolean | UserDefaultArgs<ExtArgs>
20174
- RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
20175
- }, ExtArgs["result"]["reward"]>
20296
+ icon?: boolean
20297
+ name?: boolean
20298
+ }, ExtArgs["result"]["creator"]>
20176
20299
 
20177
- export type RewardSelectScalar = {
20300
+ export type CreatorSelectScalar = {
20178
20301
  id?: boolean
20179
- root?: boolean
20180
- recipient?: boolean
20181
- rewardTokenId?: boolean
20182
- amount?: boolean
20183
- claimed?: boolean
20184
- pending?: boolean
20185
- proofs?: boolean
20302
+ icon?: boolean
20303
+ name?: boolean
20186
20304
  }
20187
20305
 
20188
- export type RewardInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20189
- MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
20190
- User?: boolean | UserDefaultArgs<ExtArgs>
20191
- RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
20192
- Breakdown?: boolean | Reward$BreakdownArgs<ExtArgs>
20193
- _count?: boolean | RewardCountOutputTypeDefaultArgs<ExtArgs>
20194
- }
20195
- export type RewardIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20196
- MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
20197
- User?: boolean | UserDefaultArgs<ExtArgs>
20198
- RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
20306
+ export type CreatorInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20307
+ Users?: boolean | Creator$UsersArgs<ExtArgs>
20308
+ _count?: boolean | CreatorCountOutputTypeDefaultArgs<ExtArgs>
20199
20309
  }
20310
+ export type CreatorIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
20200
20311
 
20201
- export type $RewardPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20202
- name: "Reward"
20312
+ export type $CreatorPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20313
+ name: "Creator"
20203
20314
  objects: {
20204
- MerklRoot: Prisma.$MerklRootPayload<ExtArgs>
20205
- User: Prisma.$UserPayload<ExtArgs>
20206
- RewardToken: Prisma.$TokenPayload<ExtArgs>
20207
- Breakdown: Prisma.$RewardBreakdownPayload<ExtArgs>[]
20315
+ Users: Prisma.$UserPayload<ExtArgs>[]
20208
20316
  }
20209
20317
  scalars: $Extensions.GetPayloadResult<{
20210
20318
  id: string
20211
- root: string
20212
- recipient: string
20213
- rewardTokenId: string
20214
- amount: string
20215
- claimed: string
20216
- pending: string
20217
- proofs: string[]
20218
- }, ExtArgs["result"]["reward"]>
20319
+ icon: string | null
20320
+ name: string
20321
+ }, ExtArgs["result"]["creator"]>
20219
20322
  composites: {}
20220
20323
  }
20221
20324
 
20222
- type RewardGetPayload<S extends boolean | null | undefined | RewardDefaultArgs> = $Result.GetResult<Prisma.$RewardPayload, S>
20325
+ type CreatorGetPayload<S extends boolean | null | undefined | CreatorDefaultArgs> = $Result.GetResult<Prisma.$CreatorPayload, S>
20223
20326
 
20224
- type RewardCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
20225
- Omit<RewardFindManyArgs, 'select' | 'include' | 'distinct' | 'relationLoadStrategy'> & {
20226
- select?: RewardCountAggregateInputType | true
20327
+ type CreatorCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
20328
+ Omit<CreatorFindManyArgs, 'select' | 'include' | 'distinct' | 'relationLoadStrategy'> & {
20329
+ select?: CreatorCountAggregateInputType | true
20227
20330
  }
20228
20331
 
20229
- export interface RewardDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
20230
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Reward'], meta: { name: 'Reward' } }
20332
+ export interface CreatorDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
20333
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Creator'], meta: { name: 'Creator' } }
20231
20334
  /**
20232
- * Find zero or one Reward that matches the filter.
20233
- * @param {RewardFindUniqueArgs} args - Arguments to find a Reward
20335
+ * Find zero or one Creator that matches the filter.
20336
+ * @param {CreatorFindUniqueArgs} args - Arguments to find a Creator
20234
20337
  * @example
20235
- * // Get one Reward
20236
- * const reward = await prisma.reward.findUnique({
20338
+ * // Get one Creator
20339
+ * const creator = await prisma.creator.findUnique({
20237
20340
  * where: {
20238
20341
  * // ... provide filter here
20239
20342
  * }
20240
20343
  * })
20241
20344
  */
20242
- findUnique<T extends RewardFindUniqueArgs>(args: SelectSubset<T, RewardFindUniqueArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
20345
+ findUnique<T extends CreatorFindUniqueArgs>(args: SelectSubset<T, CreatorFindUniqueArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
20243
20346
 
20244
20347
  /**
20245
- * Find one Reward that matches the filter or throw an error with `error.code='P2025'`
20348
+ * Find one Creator that matches the filter or throw an error with `error.code='P2025'`
20246
20349
  * if no matches were found.
20247
- * @param {RewardFindUniqueOrThrowArgs} args - Arguments to find a Reward
20350
+ * @param {CreatorFindUniqueOrThrowArgs} args - Arguments to find a Creator
20248
20351
  * @example
20249
- * // Get one Reward
20250
- * const reward = await prisma.reward.findUniqueOrThrow({
20352
+ * // Get one Creator
20353
+ * const creator = await prisma.creator.findUniqueOrThrow({
20251
20354
  * where: {
20252
20355
  * // ... provide filter here
20253
20356
  * }
20254
20357
  * })
20255
20358
  */
20256
- findUniqueOrThrow<T extends RewardFindUniqueOrThrowArgs>(args: SelectSubset<T, RewardFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
20359
+ findUniqueOrThrow<T extends CreatorFindUniqueOrThrowArgs>(args: SelectSubset<T, CreatorFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
20257
20360
 
20258
20361
  /**
20259
- * Find the first Reward that matches the filter.
20362
+ * Find the first Creator that matches the filter.
20260
20363
  * Note, that providing `undefined` is treated as the value not being there.
20261
20364
  * Read more here: https://pris.ly/d/null-undefined
20262
- * @param {RewardFindFirstArgs} args - Arguments to find a Reward
20365
+ * @param {CreatorFindFirstArgs} args - Arguments to find a Creator
20263
20366
  * @example
20264
- * // Get one Reward
20265
- * const reward = await prisma.reward.findFirst({
20367
+ * // Get one Creator
20368
+ * const creator = await prisma.creator.findFirst({
20266
20369
  * where: {
20267
20370
  * // ... provide filter here
20268
20371
  * }
20269
20372
  * })
20270
20373
  */
20271
- findFirst<T extends RewardFindFirstArgs>(args?: SelectSubset<T, RewardFindFirstArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
20374
+ findFirst<T extends CreatorFindFirstArgs>(args?: SelectSubset<T, CreatorFindFirstArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
20272
20375
 
20273
20376
  /**
20274
- * Find the first Reward that matches the filter or
20377
+ * Find the first Creator that matches the filter or
20275
20378
  * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
20276
20379
  * Note, that providing `undefined` is treated as the value not being there.
20277
20380
  * Read more here: https://pris.ly/d/null-undefined
20278
- * @param {RewardFindFirstOrThrowArgs} args - Arguments to find a Reward
20381
+ * @param {CreatorFindFirstOrThrowArgs} args - Arguments to find a Creator
20279
20382
  * @example
20280
- * // Get one Reward
20281
- * const reward = await prisma.reward.findFirstOrThrow({
20383
+ * // Get one Creator
20384
+ * const creator = await prisma.creator.findFirstOrThrow({
20282
20385
  * where: {
20283
20386
  * // ... provide filter here
20284
20387
  * }
20285
20388
  * })
20286
20389
  */
20287
- findFirstOrThrow<T extends RewardFindFirstOrThrowArgs>(args?: SelectSubset<T, RewardFindFirstOrThrowArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
20390
+ findFirstOrThrow<T extends CreatorFindFirstOrThrowArgs>(args?: SelectSubset<T, CreatorFindFirstOrThrowArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
20288
20391
 
20289
20392
  /**
20290
- * Find zero or more Rewards that matches the filter.
20393
+ * Find zero or more Creators that matches the filter.
20291
20394
  * Note, that providing `undefined` is treated as the value not being there.
20292
20395
  * Read more here: https://pris.ly/d/null-undefined
20293
- * @param {RewardFindManyArgs} args - Arguments to filter and select certain fields only.
20396
+ * @param {CreatorFindManyArgs} args - Arguments to filter and select certain fields only.
20294
20397
  * @example
20295
- * // Get all Rewards
20296
- * const rewards = await prisma.reward.findMany()
20398
+ * // Get all Creators
20399
+ * const creators = await prisma.creator.findMany()
20297
20400
  *
20298
- * // Get first 10 Rewards
20299
- * const rewards = await prisma.reward.findMany({ take: 10 })
20401
+ * // Get first 10 Creators
20402
+ * const creators = await prisma.creator.findMany({ take: 10 })
20300
20403
  *
20301
20404
  * // Only select the `id`
20302
- * const rewardWithIdOnly = await prisma.reward.findMany({ select: { id: true } })
20405
+ * const creatorWithIdOnly = await prisma.creator.findMany({ select: { id: true } })
20303
20406
  *
20304
20407
  */
20305
- findMany<T extends RewardFindManyArgs>(args?: SelectSubset<T, RewardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findMany">>
20408
+ findMany<T extends CreatorFindManyArgs>(args?: SelectSubset<T, CreatorFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "findMany">>
20306
20409
 
20307
20410
  /**
20308
- * Create a Reward.
20309
- * @param {RewardCreateArgs} args - Arguments to create a Reward.
20411
+ * Create a Creator.
20412
+ * @param {CreatorCreateArgs} args - Arguments to create a Creator.
20310
20413
  * @example
20311
- * // Create one Reward
20312
- * const Reward = await prisma.reward.create({
20414
+ * // Create one Creator
20415
+ * const Creator = await prisma.creator.create({
20313
20416
  * data: {
20314
- * // ... data to create a Reward
20417
+ * // ... data to create a Creator
20315
20418
  * }
20316
20419
  * })
20317
20420
  *
20318
20421
  */
20319
- create<T extends RewardCreateArgs>(args: SelectSubset<T, RewardCreateArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "create">, never, ExtArgs>
20422
+ create<T extends CreatorCreateArgs>(args: SelectSubset<T, CreatorCreateArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "create">, never, ExtArgs>
20320
20423
 
20321
20424
  /**
20322
- * Create many Rewards.
20323
- * @param {RewardCreateManyArgs} args - Arguments to create many Rewards.
20425
+ * Create many Creators.
20426
+ * @param {CreatorCreateManyArgs} args - Arguments to create many Creators.
20324
20427
  * @example
20325
- * // Create many Rewards
20326
- * const reward = await prisma.reward.createMany({
20428
+ * // Create many Creators
20429
+ * const creator = await prisma.creator.createMany({
20327
20430
  * data: [
20328
20431
  * // ... provide data here
20329
20432
  * ]
20330
20433
  * })
20331
20434
  *
20332
20435
  */
20333
- createMany<T extends RewardCreateManyArgs>(args?: SelectSubset<T, RewardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20436
+ createMany<T extends CreatorCreateManyArgs>(args?: SelectSubset<T, CreatorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20334
20437
 
20335
20438
  /**
20336
- * Create many Rewards and returns the data saved in the database.
20337
- * @param {RewardCreateManyAndReturnArgs} args - Arguments to create many Rewards.
20439
+ * Create many Creators and returns the data saved in the database.
20440
+ * @param {CreatorCreateManyAndReturnArgs} args - Arguments to create many Creators.
20338
20441
  * @example
20339
- * // Create many Rewards
20340
- * const reward = await prisma.reward.createManyAndReturn({
20442
+ * // Create many Creators
20443
+ * const creator = await prisma.creator.createManyAndReturn({
20341
20444
  * data: [
20342
20445
  * // ... provide data here
20343
20446
  * ]
20344
20447
  * })
20345
20448
  *
20346
- * // Create many Rewards and only return the `id`
20347
- * const rewardWithIdOnly = await prisma.reward.createManyAndReturn({
20449
+ * // Create many Creators and only return the `id`
20450
+ * const creatorWithIdOnly = await prisma.creator.createManyAndReturn({
20348
20451
  * select: { id: true },
20349
20452
  * data: [
20350
20453
  * // ... provide data here
@@ -20354,28 +20457,28 @@ export namespace Prisma {
20354
20457
  * Read more here: https://pris.ly/d/null-undefined
20355
20458
  *
20356
20459
  */
20357
- createManyAndReturn<T extends RewardCreateManyAndReturnArgs>(args?: SelectSubset<T, RewardCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "createManyAndReturn">>
20460
+ createManyAndReturn<T extends CreatorCreateManyAndReturnArgs>(args?: SelectSubset<T, CreatorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "createManyAndReturn">>
20358
20461
 
20359
20462
  /**
20360
- * Delete a Reward.
20361
- * @param {RewardDeleteArgs} args - Arguments to delete one Reward.
20463
+ * Delete a Creator.
20464
+ * @param {CreatorDeleteArgs} args - Arguments to delete one Creator.
20362
20465
  * @example
20363
- * // Delete one Reward
20364
- * const Reward = await prisma.reward.delete({
20466
+ * // Delete one Creator
20467
+ * const Creator = await prisma.creator.delete({
20365
20468
  * where: {
20366
- * // ... filter to delete one Reward
20469
+ * // ... filter to delete one Creator
20367
20470
  * }
20368
20471
  * })
20369
20472
  *
20370
20473
  */
20371
- delete<T extends RewardDeleteArgs>(args: SelectSubset<T, RewardDeleteArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "delete">, never, ExtArgs>
20474
+ delete<T extends CreatorDeleteArgs>(args: SelectSubset<T, CreatorDeleteArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "delete">, never, ExtArgs>
20372
20475
 
20373
20476
  /**
20374
- * Update one Reward.
20375
- * @param {RewardUpdateArgs} args - Arguments to update one Reward.
20477
+ * Update one Creator.
20478
+ * @param {CreatorUpdateArgs} args - Arguments to update one Creator.
20376
20479
  * @example
20377
- * // Update one Reward
20378
- * const reward = await prisma.reward.update({
20480
+ * // Update one Creator
20481
+ * const creator = await prisma.creator.update({
20379
20482
  * where: {
20380
20483
  * // ... provide filter here
20381
20484
  * },
@@ -20385,30 +20488,30 @@ export namespace Prisma {
20385
20488
  * })
20386
20489
  *
20387
20490
  */
20388
- update<T extends RewardUpdateArgs>(args: SelectSubset<T, RewardUpdateArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "update">, never, ExtArgs>
20491
+ update<T extends CreatorUpdateArgs>(args: SelectSubset<T, CreatorUpdateArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "update">, never, ExtArgs>
20389
20492
 
20390
20493
  /**
20391
- * Delete zero or more Rewards.
20392
- * @param {RewardDeleteManyArgs} args - Arguments to filter Rewards to delete.
20494
+ * Delete zero or more Creators.
20495
+ * @param {CreatorDeleteManyArgs} args - Arguments to filter Creators to delete.
20393
20496
  * @example
20394
- * // Delete a few Rewards
20395
- * const { count } = await prisma.reward.deleteMany({
20497
+ * // Delete a few Creators
20498
+ * const { count } = await prisma.creator.deleteMany({
20396
20499
  * where: {
20397
20500
  * // ... provide filter here
20398
20501
  * }
20399
20502
  * })
20400
20503
  *
20401
20504
  */
20402
- deleteMany<T extends RewardDeleteManyArgs>(args?: SelectSubset<T, RewardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20505
+ deleteMany<T extends CreatorDeleteManyArgs>(args?: SelectSubset<T, CreatorDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20403
20506
 
20404
20507
  /**
20405
- * Update zero or more Rewards.
20508
+ * Update zero or more Creators.
20406
20509
  * Note, that providing `undefined` is treated as the value not being there.
20407
20510
  * Read more here: https://pris.ly/d/null-undefined
20408
- * @param {RewardUpdateManyArgs} args - Arguments to update one or more rows.
20511
+ * @param {CreatorUpdateManyArgs} args - Arguments to update one or more rows.
20409
20512
  * @example
20410
- * // Update many Rewards
20411
- * const reward = await prisma.reward.updateMany({
20513
+ * // Update many Creators
20514
+ * const creator = await prisma.creator.updateMany({
20412
20515
  * where: {
20413
20516
  * // ... provide filter here
20414
20517
  * },
@@ -20418,56 +20521,56 @@ export namespace Prisma {
20418
20521
  * })
20419
20522
  *
20420
20523
  */
20421
- updateMany<T extends RewardUpdateManyArgs>(args: SelectSubset<T, RewardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20524
+ updateMany<T extends CreatorUpdateManyArgs>(args: SelectSubset<T, CreatorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20422
20525
 
20423
20526
  /**
20424
- * Create or update one Reward.
20425
- * @param {RewardUpsertArgs} args - Arguments to update or create a Reward.
20527
+ * Create or update one Creator.
20528
+ * @param {CreatorUpsertArgs} args - Arguments to update or create a Creator.
20426
20529
  * @example
20427
- * // Update or create a Reward
20428
- * const reward = await prisma.reward.upsert({
20530
+ * // Update or create a Creator
20531
+ * const creator = await prisma.creator.upsert({
20429
20532
  * create: {
20430
- * // ... data to create a Reward
20533
+ * // ... data to create a Creator
20431
20534
  * },
20432
20535
  * update: {
20433
20536
  * // ... in case it already exists, update
20434
20537
  * },
20435
20538
  * where: {
20436
- * // ... the filter for the Reward we want to update
20539
+ * // ... the filter for the Creator we want to update
20437
20540
  * }
20438
20541
  * })
20439
20542
  */
20440
- upsert<T extends RewardUpsertArgs>(args: SelectSubset<T, RewardUpsertArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
20543
+ upsert<T extends CreatorUpsertArgs>(args: SelectSubset<T, CreatorUpsertArgs<ExtArgs>>): Prisma__CreatorClient<$Result.GetResult<Prisma.$CreatorPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
20441
20544
 
20442
20545
 
20443
20546
  /**
20444
- * Count the number of Rewards.
20547
+ * Count the number of Creators.
20445
20548
  * Note, that providing `undefined` is treated as the value not being there.
20446
20549
  * Read more here: https://pris.ly/d/null-undefined
20447
- * @param {RewardCountArgs} args - Arguments to filter Rewards to count.
20550
+ * @param {CreatorCountArgs} args - Arguments to filter Creators to count.
20448
20551
  * @example
20449
- * // Count the number of Rewards
20450
- * const count = await prisma.reward.count({
20552
+ * // Count the number of Creators
20553
+ * const count = await prisma.creator.count({
20451
20554
  * where: {
20452
- * // ... the filter for the Rewards we want to count
20555
+ * // ... the filter for the Creators we want to count
20453
20556
  * }
20454
20557
  * })
20455
20558
  **/
20456
- count<T extends RewardCountArgs>(
20457
- args?: Subset<T, RewardCountArgs>,
20559
+ count<T extends CreatorCountArgs>(
20560
+ args?: Subset<T, CreatorCountArgs>,
20458
20561
  ): Prisma.PrismaPromise<
20459
20562
  T extends $Utils.Record<'select', any>
20460
20563
  ? T['select'] extends true
20461
20564
  ? number
20462
- : GetScalarType<T['select'], RewardCountAggregateOutputType>
20565
+ : GetScalarType<T['select'], CreatorCountAggregateOutputType>
20463
20566
  : number
20464
20567
  >
20465
20568
 
20466
20569
  /**
20467
- * Allows you to perform aggregations operations on a Reward.
20570
+ * Allows you to perform aggregations operations on a Creator.
20468
20571
  * Note, that providing `undefined` is treated as the value not being there.
20469
20572
  * Read more here: https://pris.ly/d/null-undefined
20470
- * @param {RewardAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
20573
+ * @param {CreatorAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
20471
20574
  * @example
20472
20575
  * // Ordered by age ascending
20473
20576
  * // Where email contains prisma.io
@@ -20487,13 +20590,13 @@ export namespace Prisma {
20487
20590
  * take: 10,
20488
20591
  * })
20489
20592
  **/
20490
- aggregate<T extends RewardAggregateArgs>(args: Subset<T, RewardAggregateArgs>): Prisma.PrismaPromise<GetRewardAggregateType<T>>
20593
+ aggregate<T extends CreatorAggregateArgs>(args: Subset<T, CreatorAggregateArgs>): Prisma.PrismaPromise<GetCreatorAggregateType<T>>
20491
20594
 
20492
20595
  /**
20493
- * Group by Reward.
20596
+ * Group by Creator.
20494
20597
  * Note, that providing `undefined` is treated as the value not being there.
20495
20598
  * Read more here: https://pris.ly/d/null-undefined
20496
- * @param {RewardGroupByArgs} args - Group by arguments.
20599
+ * @param {CreatorGroupByArgs} args - Group by arguments.
20497
20600
  * @example
20498
20601
  * // Group by city, order by createdAt, get count
20499
20602
  * const result = await prisma.user.groupBy({
@@ -20508,14 +20611,1014 @@ export namespace Prisma {
20508
20611
  *
20509
20612
  **/
20510
20613
  groupBy<
20511
- T extends RewardGroupByArgs,
20614
+ T extends CreatorGroupByArgs,
20512
20615
  HasSelectOrTake extends Or<
20513
20616
  Extends<'skip', Keys<T>>,
20514
20617
  Extends<'take', Keys<T>>
20515
20618
  >,
20516
20619
  OrderByArg extends True extends HasSelectOrTake
20517
- ? { orderBy: RewardGroupByArgs['orderBy'] }
20518
- : { orderBy?: RewardGroupByArgs['orderBy'] },
20620
+ ? { orderBy: CreatorGroupByArgs['orderBy'] }
20621
+ : { orderBy?: CreatorGroupByArgs['orderBy'] },
20622
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
20623
+ ByFields extends MaybeTupleToUnion<T['by']>,
20624
+ ByValid extends Has<ByFields, OrderFields>,
20625
+ HavingFields extends GetHavingFields<T['having']>,
20626
+ HavingValid extends Has<ByFields, HavingFields>,
20627
+ ByEmpty extends T['by'] extends never[] ? True : False,
20628
+ InputErrors extends ByEmpty extends True
20629
+ ? `Error: "by" must not be empty.`
20630
+ : HavingValid extends False
20631
+ ? {
20632
+ [P in HavingFields]: P extends ByFields
20633
+ ? never
20634
+ : P extends string
20635
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
20636
+ : [
20637
+ Error,
20638
+ 'Field ',
20639
+ P,
20640
+ ` in "having" needs to be provided in "by"`,
20641
+ ]
20642
+ }[HavingFields]
20643
+ : 'take' extends Keys<T>
20644
+ ? 'orderBy' extends Keys<T>
20645
+ ? ByValid extends True
20646
+ ? {}
20647
+ : {
20648
+ [P in OrderFields]: P extends ByFields
20649
+ ? never
20650
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20651
+ }[OrderFields]
20652
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
20653
+ : 'skip' extends Keys<T>
20654
+ ? 'orderBy' extends Keys<T>
20655
+ ? ByValid extends True
20656
+ ? {}
20657
+ : {
20658
+ [P in OrderFields]: P extends ByFields
20659
+ ? never
20660
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20661
+ }[OrderFields]
20662
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
20663
+ : ByValid extends True
20664
+ ? {}
20665
+ : {
20666
+ [P in OrderFields]: P extends ByFields
20667
+ ? never
20668
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20669
+ }[OrderFields]
20670
+ >(args: SubsetIntersection<T, CreatorGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCreatorGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
20671
+ /**
20672
+ * Fields of the Creator model
20673
+ */
20674
+ readonly fields: CreatorFieldRefs;
20675
+ }
20676
+
20677
+ /**
20678
+ * The delegate class that acts as a "Promise-like" for Creator.
20679
+ * Why is this prefixed with `Prisma__`?
20680
+ * Because we want to prevent naming conflicts as mentioned in
20681
+ * https://github.com/prisma/prisma-client-js/issues/707
20682
+ */
20683
+ export interface Prisma__CreatorClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
20684
+ readonly [Symbol.toStringTag]: "PrismaPromise"
20685
+ Users<T extends Creator$UsersArgs<ExtArgs> = {}>(args?: Subset<T, Creator$UsersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany"> | Null>
20686
+ /**
20687
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
20688
+ * @param onfulfilled The callback to execute when the Promise is resolved.
20689
+ * @param onrejected The callback to execute when the Promise is rejected.
20690
+ * @returns A Promise for the completion of which ever callback is executed.
20691
+ */
20692
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
20693
+ /**
20694
+ * Attaches a callback for only the rejection of the Promise.
20695
+ * @param onrejected The callback to execute when the Promise is rejected.
20696
+ * @returns A Promise for the completion of the callback.
20697
+ */
20698
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
20699
+ /**
20700
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
20701
+ * resolved value cannot be modified from the callback.
20702
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
20703
+ * @returns A Promise for the completion of the callback.
20704
+ */
20705
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
20706
+ }
20707
+
20708
+
20709
+
20710
+
20711
+ /**
20712
+ * Fields of the Creator model
20713
+ */
20714
+ interface CreatorFieldRefs {
20715
+ readonly id: FieldRef<"Creator", 'String'>
20716
+ readonly icon: FieldRef<"Creator", 'String'>
20717
+ readonly name: FieldRef<"Creator", 'String'>
20718
+ }
20719
+
20720
+
20721
+ // Custom InputTypes
20722
+ /**
20723
+ * Creator findUnique
20724
+ */
20725
+ export type CreatorFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20726
+ /**
20727
+ * Select specific fields to fetch from the Creator
20728
+ */
20729
+ select?: CreatorSelect<ExtArgs> | null
20730
+ /**
20731
+ * Choose, which related nodes to fetch as well
20732
+ */
20733
+ include?: CreatorInclude<ExtArgs> | null
20734
+ /**
20735
+ * Filter, which Creator to fetch.
20736
+ */
20737
+ where: CreatorWhereUniqueInput
20738
+ relationLoadStrategy?: RelationLoadStrategy
20739
+ }
20740
+
20741
+ /**
20742
+ * Creator findUniqueOrThrow
20743
+ */
20744
+ export type CreatorFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20745
+ /**
20746
+ * Select specific fields to fetch from the Creator
20747
+ */
20748
+ select?: CreatorSelect<ExtArgs> | null
20749
+ /**
20750
+ * Choose, which related nodes to fetch as well
20751
+ */
20752
+ include?: CreatorInclude<ExtArgs> | null
20753
+ /**
20754
+ * Filter, which Creator to fetch.
20755
+ */
20756
+ where: CreatorWhereUniqueInput
20757
+ relationLoadStrategy?: RelationLoadStrategy
20758
+ }
20759
+
20760
+ /**
20761
+ * Creator findFirst
20762
+ */
20763
+ export type CreatorFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20764
+ /**
20765
+ * Select specific fields to fetch from the Creator
20766
+ */
20767
+ select?: CreatorSelect<ExtArgs> | null
20768
+ /**
20769
+ * Choose, which related nodes to fetch as well
20770
+ */
20771
+ include?: CreatorInclude<ExtArgs> | null
20772
+ /**
20773
+ * Filter, which Creator to fetch.
20774
+ */
20775
+ where?: CreatorWhereInput
20776
+ /**
20777
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20778
+ *
20779
+ * Determine the order of Creators to fetch.
20780
+ */
20781
+ orderBy?: CreatorOrderByWithRelationInput | CreatorOrderByWithRelationInput[]
20782
+ /**
20783
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20784
+ *
20785
+ * Sets the position for searching for Creators.
20786
+ */
20787
+ cursor?: CreatorWhereUniqueInput
20788
+ /**
20789
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20790
+ *
20791
+ * Take `±n` Creators from the position of the cursor.
20792
+ */
20793
+ take?: number
20794
+ /**
20795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20796
+ *
20797
+ * Skip the first `n` Creators.
20798
+ */
20799
+ skip?: number
20800
+ /**
20801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20802
+ *
20803
+ * Filter by unique combinations of Creators.
20804
+ */
20805
+ distinct?: CreatorScalarFieldEnum | CreatorScalarFieldEnum[]
20806
+ relationLoadStrategy?: RelationLoadStrategy
20807
+ }
20808
+
20809
+ /**
20810
+ * Creator findFirstOrThrow
20811
+ */
20812
+ export type CreatorFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20813
+ /**
20814
+ * Select specific fields to fetch from the Creator
20815
+ */
20816
+ select?: CreatorSelect<ExtArgs> | null
20817
+ /**
20818
+ * Choose, which related nodes to fetch as well
20819
+ */
20820
+ include?: CreatorInclude<ExtArgs> | null
20821
+ /**
20822
+ * Filter, which Creator to fetch.
20823
+ */
20824
+ where?: CreatorWhereInput
20825
+ /**
20826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20827
+ *
20828
+ * Determine the order of Creators to fetch.
20829
+ */
20830
+ orderBy?: CreatorOrderByWithRelationInput | CreatorOrderByWithRelationInput[]
20831
+ /**
20832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20833
+ *
20834
+ * Sets the position for searching for Creators.
20835
+ */
20836
+ cursor?: CreatorWhereUniqueInput
20837
+ /**
20838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20839
+ *
20840
+ * Take `±n` Creators from the position of the cursor.
20841
+ */
20842
+ take?: number
20843
+ /**
20844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20845
+ *
20846
+ * Skip the first `n` Creators.
20847
+ */
20848
+ skip?: number
20849
+ /**
20850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20851
+ *
20852
+ * Filter by unique combinations of Creators.
20853
+ */
20854
+ distinct?: CreatorScalarFieldEnum | CreatorScalarFieldEnum[]
20855
+ relationLoadStrategy?: RelationLoadStrategy
20856
+ }
20857
+
20858
+ /**
20859
+ * Creator findMany
20860
+ */
20861
+ export type CreatorFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20862
+ /**
20863
+ * Select specific fields to fetch from the Creator
20864
+ */
20865
+ select?: CreatorSelect<ExtArgs> | null
20866
+ /**
20867
+ * Choose, which related nodes to fetch as well
20868
+ */
20869
+ include?: CreatorInclude<ExtArgs> | null
20870
+ /**
20871
+ * Filter, which Creators to fetch.
20872
+ */
20873
+ where?: CreatorWhereInput
20874
+ /**
20875
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20876
+ *
20877
+ * Determine the order of Creators to fetch.
20878
+ */
20879
+ orderBy?: CreatorOrderByWithRelationInput | CreatorOrderByWithRelationInput[]
20880
+ /**
20881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20882
+ *
20883
+ * Sets the position for listing Creators.
20884
+ */
20885
+ cursor?: CreatorWhereUniqueInput
20886
+ /**
20887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20888
+ *
20889
+ * Take `±n` Creators from the position of the cursor.
20890
+ */
20891
+ take?: number
20892
+ /**
20893
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20894
+ *
20895
+ * Skip the first `n` Creators.
20896
+ */
20897
+ skip?: number
20898
+ distinct?: CreatorScalarFieldEnum | CreatorScalarFieldEnum[]
20899
+ relationLoadStrategy?: RelationLoadStrategy
20900
+ }
20901
+
20902
+ /**
20903
+ * Creator create
20904
+ */
20905
+ export type CreatorCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20906
+ /**
20907
+ * Select specific fields to fetch from the Creator
20908
+ */
20909
+ select?: CreatorSelect<ExtArgs> | null
20910
+ /**
20911
+ * Choose, which related nodes to fetch as well
20912
+ */
20913
+ include?: CreatorInclude<ExtArgs> | null
20914
+ /**
20915
+ * The data needed to create a Creator.
20916
+ */
20917
+ data: XOR<CreatorCreateInput, CreatorUncheckedCreateInput>
20918
+ relationLoadStrategy?: RelationLoadStrategy
20919
+ }
20920
+
20921
+ /**
20922
+ * Creator createMany
20923
+ */
20924
+ export type CreatorCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20925
+ /**
20926
+ * The data used to create many Creators.
20927
+ */
20928
+ data: CreatorCreateManyInput | CreatorCreateManyInput[]
20929
+ skipDuplicates?: boolean
20930
+ }
20931
+
20932
+ /**
20933
+ * Creator createManyAndReturn
20934
+ */
20935
+ export type CreatorCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20936
+ /**
20937
+ * Select specific fields to fetch from the Creator
20938
+ */
20939
+ select?: CreatorSelectCreateManyAndReturn<ExtArgs> | null
20940
+ /**
20941
+ * The data used to create many Creators.
20942
+ */
20943
+ data: CreatorCreateManyInput | CreatorCreateManyInput[]
20944
+ skipDuplicates?: boolean
20945
+ }
20946
+
20947
+ /**
20948
+ * Creator update
20949
+ */
20950
+ export type CreatorUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20951
+ /**
20952
+ * Select specific fields to fetch from the Creator
20953
+ */
20954
+ select?: CreatorSelect<ExtArgs> | null
20955
+ /**
20956
+ * Choose, which related nodes to fetch as well
20957
+ */
20958
+ include?: CreatorInclude<ExtArgs> | null
20959
+ /**
20960
+ * The data needed to update a Creator.
20961
+ */
20962
+ data: XOR<CreatorUpdateInput, CreatorUncheckedUpdateInput>
20963
+ /**
20964
+ * Choose, which Creator to update.
20965
+ */
20966
+ where: CreatorWhereUniqueInput
20967
+ relationLoadStrategy?: RelationLoadStrategy
20968
+ }
20969
+
20970
+ /**
20971
+ * Creator updateMany
20972
+ */
20973
+ export type CreatorUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20974
+ /**
20975
+ * The data used to update Creators.
20976
+ */
20977
+ data: XOR<CreatorUpdateManyMutationInput, CreatorUncheckedUpdateManyInput>
20978
+ /**
20979
+ * Filter which Creators to update
20980
+ */
20981
+ where?: CreatorWhereInput
20982
+ }
20983
+
20984
+ /**
20985
+ * Creator upsert
20986
+ */
20987
+ export type CreatorUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20988
+ /**
20989
+ * Select specific fields to fetch from the Creator
20990
+ */
20991
+ select?: CreatorSelect<ExtArgs> | null
20992
+ /**
20993
+ * Choose, which related nodes to fetch as well
20994
+ */
20995
+ include?: CreatorInclude<ExtArgs> | null
20996
+ /**
20997
+ * The filter to search for the Creator to update in case it exists.
20998
+ */
20999
+ where: CreatorWhereUniqueInput
21000
+ /**
21001
+ * In case the Creator found by the `where` argument doesn't exist, create a new Creator with this data.
21002
+ */
21003
+ create: XOR<CreatorCreateInput, CreatorUncheckedCreateInput>
21004
+ /**
21005
+ * In case the Creator was found with the provided `where` argument, update it with this data.
21006
+ */
21007
+ update: XOR<CreatorUpdateInput, CreatorUncheckedUpdateInput>
21008
+ relationLoadStrategy?: RelationLoadStrategy
21009
+ }
21010
+
21011
+ /**
21012
+ * Creator delete
21013
+ */
21014
+ export type CreatorDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21015
+ /**
21016
+ * Select specific fields to fetch from the Creator
21017
+ */
21018
+ select?: CreatorSelect<ExtArgs> | null
21019
+ /**
21020
+ * Choose, which related nodes to fetch as well
21021
+ */
21022
+ include?: CreatorInclude<ExtArgs> | null
21023
+ /**
21024
+ * Filter which Creator to delete.
21025
+ */
21026
+ where: CreatorWhereUniqueInput
21027
+ relationLoadStrategy?: RelationLoadStrategy
21028
+ }
21029
+
21030
+ /**
21031
+ * Creator deleteMany
21032
+ */
21033
+ export type CreatorDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21034
+ /**
21035
+ * Filter which Creators to delete
21036
+ */
21037
+ where?: CreatorWhereInput
21038
+ }
21039
+
21040
+ /**
21041
+ * Creator.Users
21042
+ */
21043
+ export type Creator$UsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21044
+ /**
21045
+ * Select specific fields to fetch from the User
21046
+ */
21047
+ select?: UserSelect<ExtArgs> | null
21048
+ /**
21049
+ * Choose, which related nodes to fetch as well
21050
+ */
21051
+ include?: UserInclude<ExtArgs> | null
21052
+ where?: UserWhereInput
21053
+ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
21054
+ cursor?: UserWhereUniqueInput
21055
+ take?: number
21056
+ skip?: number
21057
+ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
21058
+ }
21059
+
21060
+ /**
21061
+ * Creator without action
21062
+ */
21063
+ export type CreatorDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21064
+ /**
21065
+ * Select specific fields to fetch from the Creator
21066
+ */
21067
+ select?: CreatorSelect<ExtArgs> | null
21068
+ /**
21069
+ * Choose, which related nodes to fetch as well
21070
+ */
21071
+ include?: CreatorInclude<ExtArgs> | null
21072
+ }
21073
+
21074
+
21075
+ /**
21076
+ * Model Reward
21077
+ */
21078
+
21079
+ export type AggregateReward = {
21080
+ _count: RewardCountAggregateOutputType | null
21081
+ _min: RewardMinAggregateOutputType | null
21082
+ _max: RewardMaxAggregateOutputType | null
21083
+ }
21084
+
21085
+ export type RewardMinAggregateOutputType = {
21086
+ id: string | null
21087
+ root: string | null
21088
+ recipient: string | null
21089
+ rewardTokenId: string | null
21090
+ amount: string | null
21091
+ claimed: string | null
21092
+ pending: string | null
21093
+ }
21094
+
21095
+ export type RewardMaxAggregateOutputType = {
21096
+ id: string | null
21097
+ root: string | null
21098
+ recipient: string | null
21099
+ rewardTokenId: string | null
21100
+ amount: string | null
21101
+ claimed: string | null
21102
+ pending: string | null
21103
+ }
21104
+
21105
+ export type RewardCountAggregateOutputType = {
21106
+ id: number
21107
+ root: number
21108
+ recipient: number
21109
+ rewardTokenId: number
21110
+ amount: number
21111
+ claimed: number
21112
+ pending: number
21113
+ proofs: number
21114
+ _all: number
21115
+ }
21116
+
21117
+
21118
+ export type RewardMinAggregateInputType = {
21119
+ id?: true
21120
+ root?: true
21121
+ recipient?: true
21122
+ rewardTokenId?: true
21123
+ amount?: true
21124
+ claimed?: true
21125
+ pending?: true
21126
+ }
21127
+
21128
+ export type RewardMaxAggregateInputType = {
21129
+ id?: true
21130
+ root?: true
21131
+ recipient?: true
21132
+ rewardTokenId?: true
21133
+ amount?: true
21134
+ claimed?: true
21135
+ pending?: true
21136
+ }
21137
+
21138
+ export type RewardCountAggregateInputType = {
21139
+ id?: true
21140
+ root?: true
21141
+ recipient?: true
21142
+ rewardTokenId?: true
21143
+ amount?: true
21144
+ claimed?: true
21145
+ pending?: true
21146
+ proofs?: true
21147
+ _all?: true
21148
+ }
21149
+
21150
+ export type RewardAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21151
+ /**
21152
+ * Filter which Reward to aggregate.
21153
+ */
21154
+ where?: RewardWhereInput
21155
+ /**
21156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21157
+ *
21158
+ * Determine the order of Rewards to fetch.
21159
+ */
21160
+ orderBy?: RewardOrderByWithRelationInput | RewardOrderByWithRelationInput[]
21161
+ /**
21162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21163
+ *
21164
+ * Sets the start position
21165
+ */
21166
+ cursor?: RewardWhereUniqueInput
21167
+ /**
21168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21169
+ *
21170
+ * Take `±n` Rewards from the position of the cursor.
21171
+ */
21172
+ take?: number
21173
+ /**
21174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21175
+ *
21176
+ * Skip the first `n` Rewards.
21177
+ */
21178
+ skip?: number
21179
+ /**
21180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
21181
+ *
21182
+ * Count returned Rewards
21183
+ **/
21184
+ _count?: true | RewardCountAggregateInputType
21185
+ /**
21186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
21187
+ *
21188
+ * Select which fields to find the minimum value
21189
+ **/
21190
+ _min?: RewardMinAggregateInputType
21191
+ /**
21192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
21193
+ *
21194
+ * Select which fields to find the maximum value
21195
+ **/
21196
+ _max?: RewardMaxAggregateInputType
21197
+ }
21198
+
21199
+ export type GetRewardAggregateType<T extends RewardAggregateArgs> = {
21200
+ [P in keyof T & keyof AggregateReward]: P extends '_count' | 'count'
21201
+ ? T[P] extends true
21202
+ ? number
21203
+ : GetScalarType<T[P], AggregateReward[P]>
21204
+ : GetScalarType<T[P], AggregateReward[P]>
21205
+ }
21206
+
21207
+
21208
+
21209
+
21210
+ export type RewardGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21211
+ where?: RewardWhereInput
21212
+ orderBy?: RewardOrderByWithAggregationInput | RewardOrderByWithAggregationInput[]
21213
+ by: RewardScalarFieldEnum[] | RewardScalarFieldEnum
21214
+ having?: RewardScalarWhereWithAggregatesInput
21215
+ take?: number
21216
+ skip?: number
21217
+ _count?: RewardCountAggregateInputType | true
21218
+ _min?: RewardMinAggregateInputType
21219
+ _max?: RewardMaxAggregateInputType
21220
+ }
21221
+
21222
+ export type RewardGroupByOutputType = {
21223
+ id: string
21224
+ root: string
21225
+ recipient: string
21226
+ rewardTokenId: string
21227
+ amount: string
21228
+ claimed: string
21229
+ pending: string
21230
+ proofs: string[]
21231
+ _count: RewardCountAggregateOutputType | null
21232
+ _min: RewardMinAggregateOutputType | null
21233
+ _max: RewardMaxAggregateOutputType | null
21234
+ }
21235
+
21236
+ type GetRewardGroupByPayload<T extends RewardGroupByArgs> = Prisma.PrismaPromise<
21237
+ Array<
21238
+ PickEnumerable<RewardGroupByOutputType, T['by']> &
21239
+ {
21240
+ [P in ((keyof T) & (keyof RewardGroupByOutputType))]: P extends '_count'
21241
+ ? T[P] extends boolean
21242
+ ? number
21243
+ : GetScalarType<T[P], RewardGroupByOutputType[P]>
21244
+ : GetScalarType<T[P], RewardGroupByOutputType[P]>
21245
+ }
21246
+ >
21247
+ >
21248
+
21249
+
21250
+ export type RewardSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
21251
+ id?: boolean
21252
+ root?: boolean
21253
+ recipient?: boolean
21254
+ rewardTokenId?: boolean
21255
+ amount?: boolean
21256
+ claimed?: boolean
21257
+ pending?: boolean
21258
+ proofs?: boolean
21259
+ MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
21260
+ User?: boolean | UserDefaultArgs<ExtArgs>
21261
+ RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
21262
+ Breakdown?: boolean | Reward$BreakdownArgs<ExtArgs>
21263
+ _count?: boolean | RewardCountOutputTypeDefaultArgs<ExtArgs>
21264
+ }, ExtArgs["result"]["reward"]>
21265
+
21266
+ export type RewardSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
21267
+ id?: boolean
21268
+ root?: boolean
21269
+ recipient?: boolean
21270
+ rewardTokenId?: boolean
21271
+ amount?: boolean
21272
+ claimed?: boolean
21273
+ pending?: boolean
21274
+ proofs?: boolean
21275
+ MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
21276
+ User?: boolean | UserDefaultArgs<ExtArgs>
21277
+ RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
21278
+ }, ExtArgs["result"]["reward"]>
21279
+
21280
+ export type RewardSelectScalar = {
21281
+ id?: boolean
21282
+ root?: boolean
21283
+ recipient?: boolean
21284
+ rewardTokenId?: boolean
21285
+ amount?: boolean
21286
+ claimed?: boolean
21287
+ pending?: boolean
21288
+ proofs?: boolean
21289
+ }
21290
+
21291
+ export type RewardInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21292
+ MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
21293
+ User?: boolean | UserDefaultArgs<ExtArgs>
21294
+ RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
21295
+ Breakdown?: boolean | Reward$BreakdownArgs<ExtArgs>
21296
+ _count?: boolean | RewardCountOutputTypeDefaultArgs<ExtArgs>
21297
+ }
21298
+ export type RewardIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21299
+ MerklRoot?: boolean | MerklRootDefaultArgs<ExtArgs>
21300
+ User?: boolean | UserDefaultArgs<ExtArgs>
21301
+ RewardToken?: boolean | TokenDefaultArgs<ExtArgs>
21302
+ }
21303
+
21304
+ export type $RewardPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21305
+ name: "Reward"
21306
+ objects: {
21307
+ MerklRoot: Prisma.$MerklRootPayload<ExtArgs>
21308
+ User: Prisma.$UserPayload<ExtArgs>
21309
+ RewardToken: Prisma.$TokenPayload<ExtArgs>
21310
+ Breakdown: Prisma.$RewardBreakdownPayload<ExtArgs>[]
21311
+ }
21312
+ scalars: $Extensions.GetPayloadResult<{
21313
+ id: string
21314
+ root: string
21315
+ recipient: string
21316
+ rewardTokenId: string
21317
+ amount: string
21318
+ claimed: string
21319
+ pending: string
21320
+ proofs: string[]
21321
+ }, ExtArgs["result"]["reward"]>
21322
+ composites: {}
21323
+ }
21324
+
21325
+ type RewardGetPayload<S extends boolean | null | undefined | RewardDefaultArgs> = $Result.GetResult<Prisma.$RewardPayload, S>
21326
+
21327
+ type RewardCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
21328
+ Omit<RewardFindManyArgs, 'select' | 'include' | 'distinct' | 'relationLoadStrategy'> & {
21329
+ select?: RewardCountAggregateInputType | true
21330
+ }
21331
+
21332
+ export interface RewardDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
21333
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Reward'], meta: { name: 'Reward' } }
21334
+ /**
21335
+ * Find zero or one Reward that matches the filter.
21336
+ * @param {RewardFindUniqueArgs} args - Arguments to find a Reward
21337
+ * @example
21338
+ * // Get one Reward
21339
+ * const reward = await prisma.reward.findUnique({
21340
+ * where: {
21341
+ * // ... provide filter here
21342
+ * }
21343
+ * })
21344
+ */
21345
+ findUnique<T extends RewardFindUniqueArgs>(args: SelectSubset<T, RewardFindUniqueArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
21346
+
21347
+ /**
21348
+ * Find one Reward that matches the filter or throw an error with `error.code='P2025'`
21349
+ * if no matches were found.
21350
+ * @param {RewardFindUniqueOrThrowArgs} args - Arguments to find a Reward
21351
+ * @example
21352
+ * // Get one Reward
21353
+ * const reward = await prisma.reward.findUniqueOrThrow({
21354
+ * where: {
21355
+ * // ... provide filter here
21356
+ * }
21357
+ * })
21358
+ */
21359
+ findUniqueOrThrow<T extends RewardFindUniqueOrThrowArgs>(args: SelectSubset<T, RewardFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
21360
+
21361
+ /**
21362
+ * Find the first Reward that matches the filter.
21363
+ * Note, that providing `undefined` is treated as the value not being there.
21364
+ * Read more here: https://pris.ly/d/null-undefined
21365
+ * @param {RewardFindFirstArgs} args - Arguments to find a Reward
21366
+ * @example
21367
+ * // Get one Reward
21368
+ * const reward = await prisma.reward.findFirst({
21369
+ * where: {
21370
+ * // ... provide filter here
21371
+ * }
21372
+ * })
21373
+ */
21374
+ findFirst<T extends RewardFindFirstArgs>(args?: SelectSubset<T, RewardFindFirstArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
21375
+
21376
+ /**
21377
+ * Find the first Reward that matches the filter or
21378
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
21379
+ * Note, that providing `undefined` is treated as the value not being there.
21380
+ * Read more here: https://pris.ly/d/null-undefined
21381
+ * @param {RewardFindFirstOrThrowArgs} args - Arguments to find a Reward
21382
+ * @example
21383
+ * // Get one Reward
21384
+ * const reward = await prisma.reward.findFirstOrThrow({
21385
+ * where: {
21386
+ * // ... provide filter here
21387
+ * }
21388
+ * })
21389
+ */
21390
+ findFirstOrThrow<T extends RewardFindFirstOrThrowArgs>(args?: SelectSubset<T, RewardFindFirstOrThrowArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
21391
+
21392
+ /**
21393
+ * Find zero or more Rewards that matches the filter.
21394
+ * Note, that providing `undefined` is treated as the value not being there.
21395
+ * Read more here: https://pris.ly/d/null-undefined
21396
+ * @param {RewardFindManyArgs} args - Arguments to filter and select certain fields only.
21397
+ * @example
21398
+ * // Get all Rewards
21399
+ * const rewards = await prisma.reward.findMany()
21400
+ *
21401
+ * // Get first 10 Rewards
21402
+ * const rewards = await prisma.reward.findMany({ take: 10 })
21403
+ *
21404
+ * // Only select the `id`
21405
+ * const rewardWithIdOnly = await prisma.reward.findMany({ select: { id: true } })
21406
+ *
21407
+ */
21408
+ findMany<T extends RewardFindManyArgs>(args?: SelectSubset<T, RewardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "findMany">>
21409
+
21410
+ /**
21411
+ * Create a Reward.
21412
+ * @param {RewardCreateArgs} args - Arguments to create a Reward.
21413
+ * @example
21414
+ * // Create one Reward
21415
+ * const Reward = await prisma.reward.create({
21416
+ * data: {
21417
+ * // ... data to create a Reward
21418
+ * }
21419
+ * })
21420
+ *
21421
+ */
21422
+ create<T extends RewardCreateArgs>(args: SelectSubset<T, RewardCreateArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "create">, never, ExtArgs>
21423
+
21424
+ /**
21425
+ * Create many Rewards.
21426
+ * @param {RewardCreateManyArgs} args - Arguments to create many Rewards.
21427
+ * @example
21428
+ * // Create many Rewards
21429
+ * const reward = await prisma.reward.createMany({
21430
+ * data: [
21431
+ * // ... provide data here
21432
+ * ]
21433
+ * })
21434
+ *
21435
+ */
21436
+ createMany<T extends RewardCreateManyArgs>(args?: SelectSubset<T, RewardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
21437
+
21438
+ /**
21439
+ * Create many Rewards and returns the data saved in the database.
21440
+ * @param {RewardCreateManyAndReturnArgs} args - Arguments to create many Rewards.
21441
+ * @example
21442
+ * // Create many Rewards
21443
+ * const reward = await prisma.reward.createManyAndReturn({
21444
+ * data: [
21445
+ * // ... provide data here
21446
+ * ]
21447
+ * })
21448
+ *
21449
+ * // Create many Rewards and only return the `id`
21450
+ * const rewardWithIdOnly = await prisma.reward.createManyAndReturn({
21451
+ * select: { id: true },
21452
+ * data: [
21453
+ * // ... provide data here
21454
+ * ]
21455
+ * })
21456
+ * Note, that providing `undefined` is treated as the value not being there.
21457
+ * Read more here: https://pris.ly/d/null-undefined
21458
+ *
21459
+ */
21460
+ createManyAndReturn<T extends RewardCreateManyAndReturnArgs>(args?: SelectSubset<T, RewardCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "createManyAndReturn">>
21461
+
21462
+ /**
21463
+ * Delete a Reward.
21464
+ * @param {RewardDeleteArgs} args - Arguments to delete one Reward.
21465
+ * @example
21466
+ * // Delete one Reward
21467
+ * const Reward = await prisma.reward.delete({
21468
+ * where: {
21469
+ * // ... filter to delete one Reward
21470
+ * }
21471
+ * })
21472
+ *
21473
+ */
21474
+ delete<T extends RewardDeleteArgs>(args: SelectSubset<T, RewardDeleteArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "delete">, never, ExtArgs>
21475
+
21476
+ /**
21477
+ * Update one Reward.
21478
+ * @param {RewardUpdateArgs} args - Arguments to update one Reward.
21479
+ * @example
21480
+ * // Update one Reward
21481
+ * const reward = await prisma.reward.update({
21482
+ * where: {
21483
+ * // ... provide filter here
21484
+ * },
21485
+ * data: {
21486
+ * // ... provide data here
21487
+ * }
21488
+ * })
21489
+ *
21490
+ */
21491
+ update<T extends RewardUpdateArgs>(args: SelectSubset<T, RewardUpdateArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "update">, never, ExtArgs>
21492
+
21493
+ /**
21494
+ * Delete zero or more Rewards.
21495
+ * @param {RewardDeleteManyArgs} args - Arguments to filter Rewards to delete.
21496
+ * @example
21497
+ * // Delete a few Rewards
21498
+ * const { count } = await prisma.reward.deleteMany({
21499
+ * where: {
21500
+ * // ... provide filter here
21501
+ * }
21502
+ * })
21503
+ *
21504
+ */
21505
+ deleteMany<T extends RewardDeleteManyArgs>(args?: SelectSubset<T, RewardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
21506
+
21507
+ /**
21508
+ * Update zero or more Rewards.
21509
+ * Note, that providing `undefined` is treated as the value not being there.
21510
+ * Read more here: https://pris.ly/d/null-undefined
21511
+ * @param {RewardUpdateManyArgs} args - Arguments to update one or more rows.
21512
+ * @example
21513
+ * // Update many Rewards
21514
+ * const reward = await prisma.reward.updateMany({
21515
+ * where: {
21516
+ * // ... provide filter here
21517
+ * },
21518
+ * data: {
21519
+ * // ... provide data here
21520
+ * }
21521
+ * })
21522
+ *
21523
+ */
21524
+ updateMany<T extends RewardUpdateManyArgs>(args: SelectSubset<T, RewardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
21525
+
21526
+ /**
21527
+ * Create or update one Reward.
21528
+ * @param {RewardUpsertArgs} args - Arguments to update or create a Reward.
21529
+ * @example
21530
+ * // Update or create a Reward
21531
+ * const reward = await prisma.reward.upsert({
21532
+ * create: {
21533
+ * // ... data to create a Reward
21534
+ * },
21535
+ * update: {
21536
+ * // ... in case it already exists, update
21537
+ * },
21538
+ * where: {
21539
+ * // ... the filter for the Reward we want to update
21540
+ * }
21541
+ * })
21542
+ */
21543
+ upsert<T extends RewardUpsertArgs>(args: SelectSubset<T, RewardUpsertArgs<ExtArgs>>): Prisma__RewardClient<$Result.GetResult<Prisma.$RewardPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
21544
+
21545
+
21546
+ /**
21547
+ * Count the number of Rewards.
21548
+ * Note, that providing `undefined` is treated as the value not being there.
21549
+ * Read more here: https://pris.ly/d/null-undefined
21550
+ * @param {RewardCountArgs} args - Arguments to filter Rewards to count.
21551
+ * @example
21552
+ * // Count the number of Rewards
21553
+ * const count = await prisma.reward.count({
21554
+ * where: {
21555
+ * // ... the filter for the Rewards we want to count
21556
+ * }
21557
+ * })
21558
+ **/
21559
+ count<T extends RewardCountArgs>(
21560
+ args?: Subset<T, RewardCountArgs>,
21561
+ ): Prisma.PrismaPromise<
21562
+ T extends $Utils.Record<'select', any>
21563
+ ? T['select'] extends true
21564
+ ? number
21565
+ : GetScalarType<T['select'], RewardCountAggregateOutputType>
21566
+ : number
21567
+ >
21568
+
21569
+ /**
21570
+ * Allows you to perform aggregations operations on a Reward.
21571
+ * Note, that providing `undefined` is treated as the value not being there.
21572
+ * Read more here: https://pris.ly/d/null-undefined
21573
+ * @param {RewardAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
21574
+ * @example
21575
+ * // Ordered by age ascending
21576
+ * // Where email contains prisma.io
21577
+ * // Limited to the 10 users
21578
+ * const aggregations = await prisma.user.aggregate({
21579
+ * _avg: {
21580
+ * age: true,
21581
+ * },
21582
+ * where: {
21583
+ * email: {
21584
+ * contains: "prisma.io",
21585
+ * },
21586
+ * },
21587
+ * orderBy: {
21588
+ * age: "asc",
21589
+ * },
21590
+ * take: 10,
21591
+ * })
21592
+ **/
21593
+ aggregate<T extends RewardAggregateArgs>(args: Subset<T, RewardAggregateArgs>): Prisma.PrismaPromise<GetRewardAggregateType<T>>
21594
+
21595
+ /**
21596
+ * Group by Reward.
21597
+ * Note, that providing `undefined` is treated as the value not being there.
21598
+ * Read more here: https://pris.ly/d/null-undefined
21599
+ * @param {RewardGroupByArgs} args - Group by arguments.
21600
+ * @example
21601
+ * // Group by city, order by createdAt, get count
21602
+ * const result = await prisma.user.groupBy({
21603
+ * by: ['city', 'createdAt'],
21604
+ * orderBy: {
21605
+ * createdAt: true
21606
+ * },
21607
+ * _count: {
21608
+ * _all: true
21609
+ * },
21610
+ * })
21611
+ *
21612
+ **/
21613
+ groupBy<
21614
+ T extends RewardGroupByArgs,
21615
+ HasSelectOrTake extends Or<
21616
+ Extends<'skip', Keys<T>>,
21617
+ Extends<'take', Keys<T>>
21618
+ >,
21619
+ OrderByArg extends True extends HasSelectOrTake
21620
+ ? { orderBy: RewardGroupByArgs['orderBy'] }
21621
+ : { orderBy?: RewardGroupByArgs['orderBy'] },
20519
21622
  OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
20520
21623
  ByFields extends MaybeTupleToUnion<T['by']>,
20521
21624
  ByValid extends Has<ByFields, OrderFields>,
@@ -26057,6 +27160,7 @@ export namespace Prisma {
26057
27160
 
26058
27161
 
26059
27162
  export const UserComputedValueScalarFieldEnum: {
27163
+ id: 'id',
26060
27164
  campaignId: 'campaignId',
26061
27165
  address: 'address',
26062
27166
  reason: 'reason',
@@ -26197,12 +27301,22 @@ export namespace Prisma {
26197
27301
 
26198
27302
  export const UserScalarFieldEnum: {
26199
27303
  address: 'address',
26200
- tags: 'tags'
27304
+ tags: 'tags',
27305
+ creatorId: 'creatorId'
26201
27306
  };
26202
27307
 
26203
27308
  export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
26204
27309
 
26205
27310
 
27311
+ export const CreatorScalarFieldEnum: {
27312
+ id: 'id',
27313
+ icon: 'icon',
27314
+ name: 'name'
27315
+ };
27316
+
27317
+ export type CreatorScalarFieldEnum = (typeof CreatorScalarFieldEnum)[keyof typeof CreatorScalarFieldEnum]
27318
+
27319
+
26206
27320
  export const RewardScalarFieldEnum: {
26207
27321
  id: 'id',
26208
27322
  root: 'root',
@@ -26467,12 +27581,22 @@ export namespace Prisma {
26467
27581
 
26468
27582
  export const UserOrderByRelevanceFieldEnum: {
26469
27583
  address: 'address',
26470
- tags: 'tags'
27584
+ tags: 'tags',
27585
+ creatorId: 'creatorId'
26471
27586
  };
26472
27587
 
26473
27588
  export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum]
26474
27589
 
26475
27590
 
27591
+ export const CreatorOrderByRelevanceFieldEnum: {
27592
+ id: 'id',
27593
+ icon: 'icon',
27594
+ name: 'name'
27595
+ };
27596
+
27597
+ export type CreatorOrderByRelevanceFieldEnum = (typeof CreatorOrderByRelevanceFieldEnum)[keyof typeof CreatorOrderByRelevanceFieldEnum]
27598
+
27599
+
26476
27600
  export const RewardOrderByRelevanceFieldEnum: {
26477
27601
  id: 'id',
26478
27602
  root: 'root',
@@ -26988,6 +28112,7 @@ export namespace Prisma {
26988
28112
  AND?: UserComputedValueWhereInput | UserComputedValueWhereInput[]
26989
28113
  OR?: UserComputedValueWhereInput[]
26990
28114
  NOT?: UserComputedValueWhereInput | UserComputedValueWhereInput[]
28115
+ id?: IntFilter<"UserComputedValue"> | number
26991
28116
  campaignId?: StringFilter<"UserComputedValue"> | string
26992
28117
  address?: StringFilter<"UserComputedValue"> | string
26993
28118
  reason?: StringFilter<"UserComputedValue"> | string
@@ -26997,6 +28122,7 @@ export namespace Prisma {
26997
28122
  }
26998
28123
 
26999
28124
  export type UserComputedValueOrderByWithRelationInput = {
28125
+ id?: SortOrder
27000
28126
  campaignId?: SortOrder
27001
28127
  address?: SortOrder
27002
28128
  reason?: SortOrder
@@ -27007,19 +28133,21 @@ export namespace Prisma {
27007
28133
  }
27008
28134
 
27009
28135
  export type UserComputedValueWhereUniqueInput = Prisma.AtLeast<{
27010
- campaignId?: string
28136
+ id?: number
27011
28137
  campaignId_address_reason?: UserComputedValueCampaignIdAddressReasonCompoundUniqueInput
27012
28138
  AND?: UserComputedValueWhereInput | UserComputedValueWhereInput[]
27013
28139
  OR?: UserComputedValueWhereInput[]
27014
28140
  NOT?: UserComputedValueWhereInput | UserComputedValueWhereInput[]
28141
+ campaignId?: StringFilter<"UserComputedValue"> | string
27015
28142
  address?: StringFilter<"UserComputedValue"> | string
27016
28143
  reason?: StringFilter<"UserComputedValue"> | string
27017
28144
  boost?: FloatNullableFilter<"UserComputedValue"> | number | null
27018
28145
  Campaign?: XOR<CampaignScalarRelationFilter, CampaignWhereInput>
27019
28146
  User?: XOR<UserNullableScalarRelationFilter, UserWhereInput> | null
27020
- }, "campaignId" | "campaignId_address_reason">
28147
+ }, "id" | "campaignId_address_reason">
27021
28148
 
27022
28149
  export type UserComputedValueOrderByWithAggregationInput = {
28150
+ id?: SortOrder
27023
28151
  campaignId?: SortOrder
27024
28152
  address?: SortOrder
27025
28153
  reason?: SortOrder
@@ -27035,6 +28163,7 @@ export namespace Prisma {
27035
28163
  AND?: UserComputedValueScalarWhereWithAggregatesInput | UserComputedValueScalarWhereWithAggregatesInput[]
27036
28164
  OR?: UserComputedValueScalarWhereWithAggregatesInput[]
27037
28165
  NOT?: UserComputedValueScalarWhereWithAggregatesInput | UserComputedValueScalarWhereWithAggregatesInput[]
28166
+ id?: IntWithAggregatesFilter<"UserComputedValue"> | number
27038
28167
  campaignId?: StringWithAggregatesFilter<"UserComputedValue"> | string
27039
28168
  address?: StringWithAggregatesFilter<"UserComputedValue"> | string
27040
28169
  reason?: StringWithAggregatesFilter<"UserComputedValue"> | string
@@ -27804,19 +28933,23 @@ export namespace Prisma {
27804
28933
  NOT?: UserWhereInput | UserWhereInput[]
27805
28934
  address?: StringFilter<"User"> | string
27806
28935
  tags?: StringNullableListFilter<"User">
28936
+ creatorId?: StringNullableFilter<"User"> | string | null
27807
28937
  Rewards?: RewardListRelationFilter
27808
28938
  Blacklist?: BlacklistListRelationFilter
27809
28939
  CampaignsCreated?: CampaignListRelationFilter
27810
28940
  UserComputedValue?: UserComputedValueListRelationFilter
28941
+ Creator?: XOR<CreatorNullableScalarRelationFilter, CreatorWhereInput> | null
27811
28942
  }
27812
28943
 
27813
28944
  export type UserOrderByWithRelationInput = {
27814
28945
  address?: SortOrder
27815
28946
  tags?: SortOrder
28947
+ creatorId?: SortOrderInput | SortOrder
27816
28948
  Rewards?: RewardOrderByRelationAggregateInput
27817
28949
  Blacklist?: BlacklistOrderByRelationAggregateInput
27818
28950
  CampaignsCreated?: CampaignOrderByRelationAggregateInput
27819
28951
  UserComputedValue?: UserComputedValueOrderByRelationAggregateInput
28952
+ Creator?: CreatorOrderByWithRelationInput
27820
28953
  _relevance?: UserOrderByRelevanceInput
27821
28954
  }
27822
28955
 
@@ -27826,15 +28959,18 @@ export namespace Prisma {
27826
28959
  OR?: UserWhereInput[]
27827
28960
  NOT?: UserWhereInput | UserWhereInput[]
27828
28961
  tags?: StringNullableListFilter<"User">
28962
+ creatorId?: StringNullableFilter<"User"> | string | null
27829
28963
  Rewards?: RewardListRelationFilter
27830
28964
  Blacklist?: BlacklistListRelationFilter
27831
28965
  CampaignsCreated?: CampaignListRelationFilter
27832
28966
  UserComputedValue?: UserComputedValueListRelationFilter
28967
+ Creator?: XOR<CreatorNullableScalarRelationFilter, CreatorWhereInput> | null
27833
28968
  }, "address">
27834
28969
 
27835
28970
  export type UserOrderByWithAggregationInput = {
27836
28971
  address?: SortOrder
27837
28972
  tags?: SortOrder
28973
+ creatorId?: SortOrderInput | SortOrder
27838
28974
  _count?: UserCountOrderByAggregateInput
27839
28975
  _max?: UserMaxOrderByAggregateInput
27840
28976
  _min?: UserMinOrderByAggregateInput
@@ -27846,6 +28982,53 @@ export namespace Prisma {
27846
28982
  NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
27847
28983
  address?: StringWithAggregatesFilter<"User"> | string
27848
28984
  tags?: StringNullableListFilter<"User">
28985
+ creatorId?: StringNullableWithAggregatesFilter<"User"> | string | null
28986
+ }
28987
+
28988
+ export type CreatorWhereInput = {
28989
+ AND?: CreatorWhereInput | CreatorWhereInput[]
28990
+ OR?: CreatorWhereInput[]
28991
+ NOT?: CreatorWhereInput | CreatorWhereInput[]
28992
+ id?: StringFilter<"Creator"> | string
28993
+ icon?: StringNullableFilter<"Creator"> | string | null
28994
+ name?: StringFilter<"Creator"> | string
28995
+ Users?: UserListRelationFilter
28996
+ }
28997
+
28998
+ export type CreatorOrderByWithRelationInput = {
28999
+ id?: SortOrder
29000
+ icon?: SortOrderInput | SortOrder
29001
+ name?: SortOrder
29002
+ Users?: UserOrderByRelationAggregateInput
29003
+ _relevance?: CreatorOrderByRelevanceInput
29004
+ }
29005
+
29006
+ export type CreatorWhereUniqueInput = Prisma.AtLeast<{
29007
+ id?: string
29008
+ AND?: CreatorWhereInput | CreatorWhereInput[]
29009
+ OR?: CreatorWhereInput[]
29010
+ NOT?: CreatorWhereInput | CreatorWhereInput[]
29011
+ icon?: StringNullableFilter<"Creator"> | string | null
29012
+ name?: StringFilter<"Creator"> | string
29013
+ Users?: UserListRelationFilter
29014
+ }, "id">
29015
+
29016
+ export type CreatorOrderByWithAggregationInput = {
29017
+ id?: SortOrder
29018
+ icon?: SortOrderInput | SortOrder
29019
+ name?: SortOrder
29020
+ _count?: CreatorCountOrderByAggregateInput
29021
+ _max?: CreatorMaxOrderByAggregateInput
29022
+ _min?: CreatorMinOrderByAggregateInput
29023
+ }
29024
+
29025
+ export type CreatorScalarWhereWithAggregatesInput = {
29026
+ AND?: CreatorScalarWhereWithAggregatesInput | CreatorScalarWhereWithAggregatesInput[]
29027
+ OR?: CreatorScalarWhereWithAggregatesInput[]
29028
+ NOT?: CreatorScalarWhereWithAggregatesInput | CreatorScalarWhereWithAggregatesInput[]
29029
+ id?: StringWithAggregatesFilter<"Creator"> | string
29030
+ icon?: StringNullableWithAggregatesFilter<"Creator"> | string | null
29031
+ name?: StringWithAggregatesFilter<"Creator"> | string
27849
29032
  }
27850
29033
 
27851
29034
  export type RewardWhereInput = {
@@ -28527,6 +29710,7 @@ export namespace Prisma {
28527
29710
  }
28528
29711
 
28529
29712
  export type UserComputedValueUncheckedCreateInput = {
29713
+ id?: number
28530
29714
  campaignId: string
28531
29715
  address: string
28532
29716
  reason: string
@@ -28541,6 +29725,7 @@ export namespace Prisma {
28541
29725
  }
28542
29726
 
28543
29727
  export type UserComputedValueUncheckedUpdateInput = {
29728
+ id?: IntFieldUpdateOperationsInput | number
28544
29729
  campaignId?: StringFieldUpdateOperationsInput | string
28545
29730
  address?: StringFieldUpdateOperationsInput | string
28546
29731
  reason?: StringFieldUpdateOperationsInput | string
@@ -28548,6 +29733,7 @@ export namespace Prisma {
28548
29733
  }
28549
29734
 
28550
29735
  export type UserComputedValueCreateManyInput = {
29736
+ id?: number
28551
29737
  campaignId: string
28552
29738
  address: string
28553
29739
  reason: string
@@ -28560,6 +29746,7 @@ export namespace Prisma {
28560
29746
  }
28561
29747
 
28562
29748
  export type UserComputedValueUncheckedUpdateManyInput = {
29749
+ id?: IntFieldUpdateOperationsInput | number
28563
29750
  campaignId?: StringFieldUpdateOperationsInput | string
28564
29751
  address?: StringFieldUpdateOperationsInput | string
28565
29752
  reason?: StringFieldUpdateOperationsInput | string
@@ -29325,11 +30512,13 @@ export namespace Prisma {
29325
30512
  Blacklist?: BlacklistCreateNestedManyWithoutUserInput
29326
30513
  CampaignsCreated?: CampaignCreateNestedManyWithoutCreatorInput
29327
30514
  UserComputedValue?: UserComputedValueCreateNestedManyWithoutUserInput
30515
+ Creator?: CreatorCreateNestedOneWithoutUsersInput
29328
30516
  }
29329
30517
 
29330
30518
  export type UserUncheckedCreateInput = {
29331
30519
  address: string
29332
30520
  tags?: UserCreatetagsInput | string[]
30521
+ creatorId?: string | null
29333
30522
  Rewards?: RewardUncheckedCreateNestedManyWithoutUserInput
29334
30523
  Blacklist?: BlacklistUncheckedCreateNestedManyWithoutUserInput
29335
30524
  CampaignsCreated?: CampaignUncheckedCreateNestedManyWithoutCreatorInput
@@ -29343,11 +30532,13 @@ export namespace Prisma {
29343
30532
  Blacklist?: BlacklistUpdateManyWithoutUserNestedInput
29344
30533
  CampaignsCreated?: CampaignUpdateManyWithoutCreatorNestedInput
29345
30534
  UserComputedValue?: UserComputedValueUpdateManyWithoutUserNestedInput
30535
+ Creator?: CreatorUpdateOneWithoutUsersNestedInput
29346
30536
  }
29347
30537
 
29348
30538
  export type UserUncheckedUpdateInput = {
29349
30539
  address?: StringFieldUpdateOperationsInput | string
29350
30540
  tags?: UserUpdatetagsInput | string[]
30541
+ creatorId?: NullableStringFieldUpdateOperationsInput | string | null
29351
30542
  Rewards?: RewardUncheckedUpdateManyWithoutUserNestedInput
29352
30543
  Blacklist?: BlacklistUncheckedUpdateManyWithoutUserNestedInput
29353
30544
  CampaignsCreated?: CampaignUncheckedUpdateManyWithoutCreatorNestedInput
@@ -29357,6 +30548,7 @@ export namespace Prisma {
29357
30548
  export type UserCreateManyInput = {
29358
30549
  address: string
29359
30550
  tags?: UserCreatetagsInput | string[]
30551
+ creatorId?: string | null
29360
30552
  }
29361
30553
 
29362
30554
  export type UserUpdateManyMutationInput = {
@@ -29367,6 +30559,53 @@ export namespace Prisma {
29367
30559
  export type UserUncheckedUpdateManyInput = {
29368
30560
  address?: StringFieldUpdateOperationsInput | string
29369
30561
  tags?: UserUpdatetagsInput | string[]
30562
+ creatorId?: NullableStringFieldUpdateOperationsInput | string | null
30563
+ }
30564
+
30565
+ export type CreatorCreateInput = {
30566
+ id: string
30567
+ icon?: string | null
30568
+ name: string
30569
+ Users?: UserCreateNestedManyWithoutCreatorInput
30570
+ }
30571
+
30572
+ export type CreatorUncheckedCreateInput = {
30573
+ id: string
30574
+ icon?: string | null
30575
+ name: string
30576
+ Users?: UserUncheckedCreateNestedManyWithoutCreatorInput
30577
+ }
30578
+
30579
+ export type CreatorUpdateInput = {
30580
+ id?: StringFieldUpdateOperationsInput | string
30581
+ icon?: NullableStringFieldUpdateOperationsInput | string | null
30582
+ name?: StringFieldUpdateOperationsInput | string
30583
+ Users?: UserUpdateManyWithoutCreatorNestedInput
30584
+ }
30585
+
30586
+ export type CreatorUncheckedUpdateInput = {
30587
+ id?: StringFieldUpdateOperationsInput | string
30588
+ icon?: NullableStringFieldUpdateOperationsInput | string | null
30589
+ name?: StringFieldUpdateOperationsInput | string
30590
+ Users?: UserUncheckedUpdateManyWithoutCreatorNestedInput
30591
+ }
30592
+
30593
+ export type CreatorCreateManyInput = {
30594
+ id: string
30595
+ icon?: string | null
30596
+ name: string
30597
+ }
30598
+
30599
+ export type CreatorUpdateManyMutationInput = {
30600
+ id?: StringFieldUpdateOperationsInput | string
30601
+ icon?: NullableStringFieldUpdateOperationsInput | string | null
30602
+ name?: StringFieldUpdateOperationsInput | string
30603
+ }
30604
+
30605
+ export type CreatorUncheckedUpdateManyInput = {
30606
+ id?: StringFieldUpdateOperationsInput | string
30607
+ icon?: NullableStringFieldUpdateOperationsInput | string | null
30608
+ name?: StringFieldUpdateOperationsInput | string
29370
30609
  }
29371
30610
 
29372
30611
  export type RewardCreateInput = {
@@ -30254,6 +31493,7 @@ export namespace Prisma {
30254
31493
  }
30255
31494
 
30256
31495
  export type UserComputedValueCountOrderByAggregateInput = {
31496
+ id?: SortOrder
30257
31497
  campaignId?: SortOrder
30258
31498
  address?: SortOrder
30259
31499
  reason?: SortOrder
@@ -30261,10 +31501,12 @@ export namespace Prisma {
30261
31501
  }
30262
31502
 
30263
31503
  export type UserComputedValueAvgOrderByAggregateInput = {
31504
+ id?: SortOrder
30264
31505
  boost?: SortOrder
30265
31506
  }
30266
31507
 
30267
31508
  export type UserComputedValueMaxOrderByAggregateInput = {
31509
+ id?: SortOrder
30268
31510
  campaignId?: SortOrder
30269
31511
  address?: SortOrder
30270
31512
  reason?: SortOrder
@@ -30272,6 +31514,7 @@ export namespace Prisma {
30272
31514
  }
30273
31515
 
30274
31516
  export type UserComputedValueMinOrderByAggregateInput = {
31517
+ id?: SortOrder
30275
31518
  campaignId?: SortOrder
30276
31519
  address?: SortOrder
30277
31520
  reason?: SortOrder
@@ -30279,6 +31522,7 @@ export namespace Prisma {
30279
31522
  }
30280
31523
 
30281
31524
  export type UserComputedValueSumOrderByAggregateInput = {
31525
+ id?: SortOrder
30282
31526
  boost?: SortOrder
30283
31527
  }
30284
31528
 
@@ -31093,6 +32337,11 @@ export namespace Prisma {
31093
32337
  value?: SortOrder
31094
32338
  }
31095
32339
 
32340
+ export type CreatorNullableScalarRelationFilter = {
32341
+ is?: CreatorWhereInput | null
32342
+ isNot?: CreatorWhereInput | null
32343
+ }
32344
+
31096
32345
  export type UserOrderByRelevanceInput = {
31097
32346
  fields: UserOrderByRelevanceFieldEnum | UserOrderByRelevanceFieldEnum[]
31098
32347
  sort: SortOrder
@@ -31102,14 +32351,51 @@ export namespace Prisma {
31102
32351
  export type UserCountOrderByAggregateInput = {
31103
32352
  address?: SortOrder
31104
32353
  tags?: SortOrder
32354
+ creatorId?: SortOrder
31105
32355
  }
31106
32356
 
31107
32357
  export type UserMaxOrderByAggregateInput = {
31108
32358
  address?: SortOrder
32359
+ creatorId?: SortOrder
31109
32360
  }
31110
32361
 
31111
32362
  export type UserMinOrderByAggregateInput = {
31112
32363
  address?: SortOrder
32364
+ creatorId?: SortOrder
32365
+ }
32366
+
32367
+ export type UserListRelationFilter = {
32368
+ every?: UserWhereInput
32369
+ some?: UserWhereInput
32370
+ none?: UserWhereInput
32371
+ }
32372
+
32373
+ export type UserOrderByRelationAggregateInput = {
32374
+ _count?: SortOrder
32375
+ }
32376
+
32377
+ export type CreatorOrderByRelevanceInput = {
32378
+ fields: CreatorOrderByRelevanceFieldEnum | CreatorOrderByRelevanceFieldEnum[]
32379
+ sort: SortOrder
32380
+ search: string
32381
+ }
32382
+
32383
+ export type CreatorCountOrderByAggregateInput = {
32384
+ id?: SortOrder
32385
+ icon?: SortOrder
32386
+ name?: SortOrder
32387
+ }
32388
+
32389
+ export type CreatorMaxOrderByAggregateInput = {
32390
+ id?: SortOrder
32391
+ icon?: SortOrder
32392
+ name?: SortOrder
32393
+ }
32394
+
32395
+ export type CreatorMinOrderByAggregateInput = {
32396
+ id?: SortOrder
32397
+ icon?: SortOrder
32398
+ name?: SortOrder
31113
32399
  }
31114
32400
 
31115
32401
  export type MerklRootScalarRelationFilter = {
@@ -33152,6 +34438,12 @@ export namespace Prisma {
33152
34438
  connect?: UserComputedValueWhereUniqueInput | UserComputedValueWhereUniqueInput[]
33153
34439
  }
33154
34440
 
34441
+ export type CreatorCreateNestedOneWithoutUsersInput = {
34442
+ create?: XOR<CreatorCreateWithoutUsersInput, CreatorUncheckedCreateWithoutUsersInput>
34443
+ connectOrCreate?: CreatorCreateOrConnectWithoutUsersInput
34444
+ connect?: CreatorWhereUniqueInput
34445
+ }
34446
+
33155
34447
  export type RewardUncheckedCreateNestedManyWithoutUserInput = {
33156
34448
  create?: XOR<RewardCreateWithoutUserInput, RewardUncheckedCreateWithoutUserInput> | RewardCreateWithoutUserInput[] | RewardUncheckedCreateWithoutUserInput[]
33157
34449
  connectOrCreate?: RewardCreateOrConnectWithoutUserInput | RewardCreateOrConnectWithoutUserInput[]
@@ -33241,6 +34533,16 @@ export namespace Prisma {
33241
34533
  deleteMany?: UserComputedValueScalarWhereInput | UserComputedValueScalarWhereInput[]
33242
34534
  }
33243
34535
 
34536
+ export type CreatorUpdateOneWithoutUsersNestedInput = {
34537
+ create?: XOR<CreatorCreateWithoutUsersInput, CreatorUncheckedCreateWithoutUsersInput>
34538
+ connectOrCreate?: CreatorCreateOrConnectWithoutUsersInput
34539
+ upsert?: CreatorUpsertWithoutUsersInput
34540
+ disconnect?: CreatorWhereInput | boolean
34541
+ delete?: CreatorWhereInput | boolean
34542
+ connect?: CreatorWhereUniqueInput
34543
+ update?: XOR<XOR<CreatorUpdateToOneWithWhereWithoutUsersInput, CreatorUpdateWithoutUsersInput>, CreatorUncheckedUpdateWithoutUsersInput>
34544
+ }
34545
+
33244
34546
  export type RewardUncheckedUpdateManyWithoutUserNestedInput = {
33245
34547
  create?: XOR<RewardCreateWithoutUserInput, RewardUncheckedCreateWithoutUserInput> | RewardCreateWithoutUserInput[] | RewardUncheckedCreateWithoutUserInput[]
33246
34548
  connectOrCreate?: RewardCreateOrConnectWithoutUserInput | RewardCreateOrConnectWithoutUserInput[]
@@ -33297,6 +34599,48 @@ export namespace Prisma {
33297
34599
  deleteMany?: UserComputedValueScalarWhereInput | UserComputedValueScalarWhereInput[]
33298
34600
  }
33299
34601
 
34602
+ export type UserCreateNestedManyWithoutCreatorInput = {
34603
+ create?: XOR<UserCreateWithoutCreatorInput, UserUncheckedCreateWithoutCreatorInput> | UserCreateWithoutCreatorInput[] | UserUncheckedCreateWithoutCreatorInput[]
34604
+ connectOrCreate?: UserCreateOrConnectWithoutCreatorInput | UserCreateOrConnectWithoutCreatorInput[]
34605
+ createMany?: UserCreateManyCreatorInputEnvelope
34606
+ connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
34607
+ }
34608
+
34609
+ export type UserUncheckedCreateNestedManyWithoutCreatorInput = {
34610
+ create?: XOR<UserCreateWithoutCreatorInput, UserUncheckedCreateWithoutCreatorInput> | UserCreateWithoutCreatorInput[] | UserUncheckedCreateWithoutCreatorInput[]
34611
+ connectOrCreate?: UserCreateOrConnectWithoutCreatorInput | UserCreateOrConnectWithoutCreatorInput[]
34612
+ createMany?: UserCreateManyCreatorInputEnvelope
34613
+ connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
34614
+ }
34615
+
34616
+ export type UserUpdateManyWithoutCreatorNestedInput = {
34617
+ create?: XOR<UserCreateWithoutCreatorInput, UserUncheckedCreateWithoutCreatorInput> | UserCreateWithoutCreatorInput[] | UserUncheckedCreateWithoutCreatorInput[]
34618
+ connectOrCreate?: UserCreateOrConnectWithoutCreatorInput | UserCreateOrConnectWithoutCreatorInput[]
34619
+ upsert?: UserUpsertWithWhereUniqueWithoutCreatorInput | UserUpsertWithWhereUniqueWithoutCreatorInput[]
34620
+ createMany?: UserCreateManyCreatorInputEnvelope
34621
+ set?: UserWhereUniqueInput | UserWhereUniqueInput[]
34622
+ disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
34623
+ delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
34624
+ connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
34625
+ update?: UserUpdateWithWhereUniqueWithoutCreatorInput | UserUpdateWithWhereUniqueWithoutCreatorInput[]
34626
+ updateMany?: UserUpdateManyWithWhereWithoutCreatorInput | UserUpdateManyWithWhereWithoutCreatorInput[]
34627
+ deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
34628
+ }
34629
+
34630
+ export type UserUncheckedUpdateManyWithoutCreatorNestedInput = {
34631
+ create?: XOR<UserCreateWithoutCreatorInput, UserUncheckedCreateWithoutCreatorInput> | UserCreateWithoutCreatorInput[] | UserUncheckedCreateWithoutCreatorInput[]
34632
+ connectOrCreate?: UserCreateOrConnectWithoutCreatorInput | UserCreateOrConnectWithoutCreatorInput[]
34633
+ upsert?: UserUpsertWithWhereUniqueWithoutCreatorInput | UserUpsertWithWhereUniqueWithoutCreatorInput[]
34634
+ createMany?: UserCreateManyCreatorInputEnvelope
34635
+ set?: UserWhereUniqueInput | UserWhereUniqueInput[]
34636
+ disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
34637
+ delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
34638
+ connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
34639
+ update?: UserUpdateWithWhereUniqueWithoutCreatorInput | UserUpdateWithWhereUniqueWithoutCreatorInput[]
34640
+ updateMany?: UserUpdateManyWithWhereWithoutCreatorInput | UserUpdateManyWithWhereWithoutCreatorInput[]
34641
+ deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
34642
+ }
34643
+
33300
34644
  export type RewardCreateproofsInput = {
33301
34645
  set: string[]
33302
34646
  }
@@ -34197,11 +35541,13 @@ export namespace Prisma {
34197
35541
  Rewards?: RewardCreateNestedManyWithoutUserInput
34198
35542
  Blacklist?: BlacklistCreateNestedManyWithoutUserInput
34199
35543
  UserComputedValue?: UserComputedValueCreateNestedManyWithoutUserInput
35544
+ Creator?: CreatorCreateNestedOneWithoutUsersInput
34200
35545
  }
34201
35546
 
34202
35547
  export type UserUncheckedCreateWithoutCampaignsCreatedInput = {
34203
35548
  address: string
34204
35549
  tags?: UserCreatetagsInput | string[]
35550
+ creatorId?: string | null
34205
35551
  Rewards?: RewardUncheckedCreateNestedManyWithoutUserInput
34206
35552
  Blacklist?: BlacklistUncheckedCreateNestedManyWithoutUserInput
34207
35553
  UserComputedValue?: UserComputedValueUncheckedCreateNestedManyWithoutUserInput
@@ -34267,6 +35613,7 @@ export namespace Prisma {
34267
35613
  }
34268
35614
 
34269
35615
  export type UserComputedValueUncheckedCreateWithoutCampaignInput = {
35616
+ id?: number
34270
35617
  address: string
34271
35618
  reason: string
34272
35619
  boost?: number | null
@@ -34531,11 +35878,13 @@ export namespace Prisma {
34531
35878
  Rewards?: RewardUpdateManyWithoutUserNestedInput
34532
35879
  Blacklist?: BlacklistUpdateManyWithoutUserNestedInput
34533
35880
  UserComputedValue?: UserComputedValueUpdateManyWithoutUserNestedInput
35881
+ Creator?: CreatorUpdateOneWithoutUsersNestedInput
34534
35882
  }
34535
35883
 
34536
35884
  export type UserUncheckedUpdateWithoutCampaignsCreatedInput = {
34537
35885
  address?: StringFieldUpdateOperationsInput | string
34538
35886
  tags?: UserUpdatetagsInput | string[]
35887
+ creatorId?: NullableStringFieldUpdateOperationsInput | string | null
34539
35888
  Rewards?: RewardUncheckedUpdateManyWithoutUserNestedInput
34540
35889
  Blacklist?: BlacklistUncheckedUpdateManyWithoutUserNestedInput
34541
35890
  UserComputedValue?: UserComputedValueUncheckedUpdateManyWithoutUserNestedInput
@@ -34615,6 +35964,7 @@ export namespace Prisma {
34615
35964
  AND?: UserComputedValueScalarWhereInput | UserComputedValueScalarWhereInput[]
34616
35965
  OR?: UserComputedValueScalarWhereInput[]
34617
35966
  NOT?: UserComputedValueScalarWhereInput | UserComputedValueScalarWhereInput[]
35967
+ id?: IntFilter<"UserComputedValue"> | number
34618
35968
  campaignId?: StringFilter<"UserComputedValue"> | string
34619
35969
  address?: StringFilter<"UserComputedValue"> | string
34620
35970
  reason?: StringFilter<"UserComputedValue"> | string
@@ -34864,11 +36214,13 @@ export namespace Prisma {
34864
36214
  Rewards?: RewardCreateNestedManyWithoutUserInput
34865
36215
  Blacklist?: BlacklistCreateNestedManyWithoutUserInput
34866
36216
  CampaignsCreated?: CampaignCreateNestedManyWithoutCreatorInput
36217
+ Creator?: CreatorCreateNestedOneWithoutUsersInput
34867
36218
  }
34868
36219
 
34869
36220
  export type UserUncheckedCreateWithoutUserComputedValueInput = {
34870
36221
  address: string
34871
36222
  tags?: UserCreatetagsInput | string[]
36223
+ creatorId?: string | null
34872
36224
  Rewards?: RewardUncheckedCreateNestedManyWithoutUserInput
34873
36225
  Blacklist?: BlacklistUncheckedCreateNestedManyWithoutUserInput
34874
36226
  CampaignsCreated?: CampaignUncheckedCreateNestedManyWithoutCreatorInput
@@ -34947,11 +36299,13 @@ export namespace Prisma {
34947
36299
  Rewards?: RewardUpdateManyWithoutUserNestedInput
34948
36300
  Blacklist?: BlacklistUpdateManyWithoutUserNestedInput
34949
36301
  CampaignsCreated?: CampaignUpdateManyWithoutCreatorNestedInput
36302
+ Creator?: CreatorUpdateOneWithoutUsersNestedInput
34950
36303
  }
34951
36304
 
34952
36305
  export type UserUncheckedUpdateWithoutUserComputedValueInput = {
34953
36306
  address?: StringFieldUpdateOperationsInput | string
34954
36307
  tags?: UserUpdatetagsInput | string[]
36308
+ creatorId?: NullableStringFieldUpdateOperationsInput | string | null
34955
36309
  Rewards?: RewardUncheckedUpdateManyWithoutUserNestedInput
34956
36310
  Blacklist?: BlacklistUncheckedUpdateManyWithoutUserNestedInput
34957
36311
  CampaignsCreated?: CampaignUncheckedUpdateManyWithoutCreatorNestedInput
@@ -37335,6 +38689,7 @@ export namespace Prisma {
37335
38689
  }
37336
38690
 
37337
38691
  export type UserComputedValueUncheckedCreateWithoutUserInput = {
38692
+ id?: number
37338
38693
  campaignId: string
37339
38694
  reason: string
37340
38695
  boost?: number | null
@@ -37350,6 +38705,23 @@ export namespace Prisma {
37350
38705
  skipDuplicates?: boolean
37351
38706
  }
37352
38707
 
38708
+ export type CreatorCreateWithoutUsersInput = {
38709
+ id: string
38710
+ icon?: string | null
38711
+ name: string
38712
+ }
38713
+
38714
+ export type CreatorUncheckedCreateWithoutUsersInput = {
38715
+ id: string
38716
+ icon?: string | null
38717
+ name: string
38718
+ }
38719
+
38720
+ export type CreatorCreateOrConnectWithoutUsersInput = {
38721
+ where: CreatorWhereUniqueInput
38722
+ create: XOR<CreatorCreateWithoutUsersInput, CreatorUncheckedCreateWithoutUsersInput>
38723
+ }
38724
+
37353
38725
  export type RewardUpsertWithWhereUniqueWithoutUserInput = {
37354
38726
  where: RewardWhereUniqueInput
37355
38727
  update: XOR<RewardUpdateWithoutUserInput, RewardUncheckedUpdateWithoutUserInput>
@@ -37414,6 +38786,82 @@ export namespace Prisma {
37414
38786
  data: XOR<UserComputedValueUpdateManyMutationInput, UserComputedValueUncheckedUpdateManyWithoutUserInput>
37415
38787
  }
37416
38788
 
38789
+ export type CreatorUpsertWithoutUsersInput = {
38790
+ update: XOR<CreatorUpdateWithoutUsersInput, CreatorUncheckedUpdateWithoutUsersInput>
38791
+ create: XOR<CreatorCreateWithoutUsersInput, CreatorUncheckedCreateWithoutUsersInput>
38792
+ where?: CreatorWhereInput
38793
+ }
38794
+
38795
+ export type CreatorUpdateToOneWithWhereWithoutUsersInput = {
38796
+ where?: CreatorWhereInput
38797
+ data: XOR<CreatorUpdateWithoutUsersInput, CreatorUncheckedUpdateWithoutUsersInput>
38798
+ }
38799
+
38800
+ export type CreatorUpdateWithoutUsersInput = {
38801
+ id?: StringFieldUpdateOperationsInput | string
38802
+ icon?: NullableStringFieldUpdateOperationsInput | string | null
38803
+ name?: StringFieldUpdateOperationsInput | string
38804
+ }
38805
+
38806
+ export type CreatorUncheckedUpdateWithoutUsersInput = {
38807
+ id?: StringFieldUpdateOperationsInput | string
38808
+ icon?: NullableStringFieldUpdateOperationsInput | string | null
38809
+ name?: StringFieldUpdateOperationsInput | string
38810
+ }
38811
+
38812
+ export type UserCreateWithoutCreatorInput = {
38813
+ address: string
38814
+ tags?: UserCreatetagsInput | string[]
38815
+ Rewards?: RewardCreateNestedManyWithoutUserInput
38816
+ Blacklist?: BlacklistCreateNestedManyWithoutUserInput
38817
+ CampaignsCreated?: CampaignCreateNestedManyWithoutCreatorInput
38818
+ UserComputedValue?: UserComputedValueCreateNestedManyWithoutUserInput
38819
+ }
38820
+
38821
+ export type UserUncheckedCreateWithoutCreatorInput = {
38822
+ address: string
38823
+ tags?: UserCreatetagsInput | string[]
38824
+ Rewards?: RewardUncheckedCreateNestedManyWithoutUserInput
38825
+ Blacklist?: BlacklistUncheckedCreateNestedManyWithoutUserInput
38826
+ CampaignsCreated?: CampaignUncheckedCreateNestedManyWithoutCreatorInput
38827
+ UserComputedValue?: UserComputedValueUncheckedCreateNestedManyWithoutUserInput
38828
+ }
38829
+
38830
+ export type UserCreateOrConnectWithoutCreatorInput = {
38831
+ where: UserWhereUniqueInput
38832
+ create: XOR<UserCreateWithoutCreatorInput, UserUncheckedCreateWithoutCreatorInput>
38833
+ }
38834
+
38835
+ export type UserCreateManyCreatorInputEnvelope = {
38836
+ data: UserCreateManyCreatorInput | UserCreateManyCreatorInput[]
38837
+ skipDuplicates?: boolean
38838
+ }
38839
+
38840
+ export type UserUpsertWithWhereUniqueWithoutCreatorInput = {
38841
+ where: UserWhereUniqueInput
38842
+ update: XOR<UserUpdateWithoutCreatorInput, UserUncheckedUpdateWithoutCreatorInput>
38843
+ create: XOR<UserCreateWithoutCreatorInput, UserUncheckedCreateWithoutCreatorInput>
38844
+ }
38845
+
38846
+ export type UserUpdateWithWhereUniqueWithoutCreatorInput = {
38847
+ where: UserWhereUniqueInput
38848
+ data: XOR<UserUpdateWithoutCreatorInput, UserUncheckedUpdateWithoutCreatorInput>
38849
+ }
38850
+
38851
+ export type UserUpdateManyWithWhereWithoutCreatorInput = {
38852
+ where: UserScalarWhereInput
38853
+ data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyWithoutCreatorInput>
38854
+ }
38855
+
38856
+ export type UserScalarWhereInput = {
38857
+ AND?: UserScalarWhereInput | UserScalarWhereInput[]
38858
+ OR?: UserScalarWhereInput[]
38859
+ NOT?: UserScalarWhereInput | UserScalarWhereInput[]
38860
+ address?: StringFilter<"User"> | string
38861
+ tags?: StringNullableListFilter<"User">
38862
+ creatorId?: StringNullableFilter<"User"> | string | null
38863
+ }
38864
+
37417
38865
  export type MerklRootCreateWithoutRewardsInput = {
37418
38866
  root: string
37419
38867
  epoch: number
@@ -37439,11 +38887,13 @@ export namespace Prisma {
37439
38887
  Blacklist?: BlacklistCreateNestedManyWithoutUserInput
37440
38888
  CampaignsCreated?: CampaignCreateNestedManyWithoutCreatorInput
37441
38889
  UserComputedValue?: UserComputedValueCreateNestedManyWithoutUserInput
38890
+ Creator?: CreatorCreateNestedOneWithoutUsersInput
37442
38891
  }
37443
38892
 
37444
38893
  export type UserUncheckedCreateWithoutRewardsInput = {
37445
38894
  address: string
37446
38895
  tags?: UserCreatetagsInput | string[]
38896
+ creatorId?: string | null
37447
38897
  Blacklist?: BlacklistUncheckedCreateNestedManyWithoutUserInput
37448
38898
  CampaignsCreated?: CampaignUncheckedCreateNestedManyWithoutCreatorInput
37449
38899
  UserComputedValue?: UserComputedValueUncheckedCreateNestedManyWithoutUserInput
@@ -37570,11 +39020,13 @@ export namespace Prisma {
37570
39020
  Blacklist?: BlacklistUpdateManyWithoutUserNestedInput
37571
39021
  CampaignsCreated?: CampaignUpdateManyWithoutCreatorNestedInput
37572
39022
  UserComputedValue?: UserComputedValueUpdateManyWithoutUserNestedInput
39023
+ Creator?: CreatorUpdateOneWithoutUsersNestedInput
37573
39024
  }
37574
39025
 
37575
39026
  export type UserUncheckedUpdateWithoutRewardsInput = {
37576
39027
  address?: StringFieldUpdateOperationsInput | string
37577
39028
  tags?: UserUpdatetagsInput | string[]
39029
+ creatorId?: NullableStringFieldUpdateOperationsInput | string | null
37578
39030
  Blacklist?: BlacklistUncheckedUpdateManyWithoutUserNestedInput
37579
39031
  CampaignsCreated?: CampaignUncheckedUpdateManyWithoutCreatorNestedInput
37580
39032
  UserComputedValue?: UserComputedValueUncheckedUpdateManyWithoutUserNestedInput
@@ -38012,11 +39464,13 @@ export namespace Prisma {
38012
39464
  Rewards?: RewardCreateNestedManyWithoutUserInput
38013
39465
  CampaignsCreated?: CampaignCreateNestedManyWithoutCreatorInput
38014
39466
  UserComputedValue?: UserComputedValueCreateNestedManyWithoutUserInput
39467
+ Creator?: CreatorCreateNestedOneWithoutUsersInput
38015
39468
  }
38016
39469
 
38017
39470
  export type UserUncheckedCreateWithoutBlacklistInput = {
38018
39471
  address: string
38019
39472
  tags?: UserCreatetagsInput | string[]
39473
+ creatorId?: string | null
38020
39474
  Rewards?: RewardUncheckedCreateNestedManyWithoutUserInput
38021
39475
  CampaignsCreated?: CampaignUncheckedCreateNestedManyWithoutCreatorInput
38022
39476
  UserComputedValue?: UserComputedValueUncheckedCreateNestedManyWithoutUserInput
@@ -38081,11 +39535,13 @@ export namespace Prisma {
38081
39535
  Rewards?: RewardUpdateManyWithoutUserNestedInput
38082
39536
  CampaignsCreated?: CampaignUpdateManyWithoutCreatorNestedInput
38083
39537
  UserComputedValue?: UserComputedValueUpdateManyWithoutUserNestedInput
39538
+ Creator?: CreatorUpdateOneWithoutUsersNestedInput
38084
39539
  }
38085
39540
 
38086
39541
  export type UserUncheckedUpdateWithoutBlacklistInput = {
38087
39542
  address?: StringFieldUpdateOperationsInput | string
38088
39543
  tags?: UserUpdatetagsInput | string[]
39544
+ creatorId?: NullableStringFieldUpdateOperationsInput | string | null
38089
39545
  Rewards?: RewardUncheckedUpdateManyWithoutUserNestedInput
38090
39546
  CampaignsCreated?: CampaignUncheckedUpdateManyWithoutCreatorNestedInput
38091
39547
  UserComputedValue?: UserComputedValueUncheckedUpdateManyWithoutUserNestedInput
@@ -38368,6 +39824,7 @@ export namespace Prisma {
38368
39824
  }
38369
39825
 
38370
39826
  export type UserComputedValueCreateManyCampaignInput = {
39827
+ id?: number
38371
39828
  address: string
38372
39829
  reason: string
38373
39830
  boost?: number | null
@@ -38474,12 +39931,14 @@ export namespace Prisma {
38474
39931
  }
38475
39932
 
38476
39933
  export type UserComputedValueUncheckedUpdateWithoutCampaignInput = {
39934
+ id?: IntFieldUpdateOperationsInput | number
38477
39935
  address?: StringFieldUpdateOperationsInput | string
38478
39936
  reason?: StringFieldUpdateOperationsInput | string
38479
39937
  boost?: NullableFloatFieldUpdateOperationsInput | number | null
38480
39938
  }
38481
39939
 
38482
39940
  export type UserComputedValueUncheckedUpdateManyWithoutCampaignInput = {
39941
+ id?: IntFieldUpdateOperationsInput | number
38483
39942
  address?: StringFieldUpdateOperationsInput | string
38484
39943
  reason?: StringFieldUpdateOperationsInput | string
38485
39944
  boost?: NullableFloatFieldUpdateOperationsInput | number | null
@@ -39672,6 +41131,7 @@ export namespace Prisma {
39672
41131
  }
39673
41132
 
39674
41133
  export type UserComputedValueCreateManyUserInput = {
41134
+ id?: number
39675
41135
  campaignId: string
39676
41136
  reason: string
39677
41137
  boost?: number | null
@@ -39795,17 +41255,47 @@ export namespace Prisma {
39795
41255
  }
39796
41256
 
39797
41257
  export type UserComputedValueUncheckedUpdateWithoutUserInput = {
41258
+ id?: IntFieldUpdateOperationsInput | number
39798
41259
  campaignId?: StringFieldUpdateOperationsInput | string
39799
41260
  reason?: StringFieldUpdateOperationsInput | string
39800
41261
  boost?: NullableFloatFieldUpdateOperationsInput | number | null
39801
41262
  }
39802
41263
 
39803
41264
  export type UserComputedValueUncheckedUpdateManyWithoutUserInput = {
41265
+ id?: IntFieldUpdateOperationsInput | number
39804
41266
  campaignId?: StringFieldUpdateOperationsInput | string
39805
41267
  reason?: StringFieldUpdateOperationsInput | string
39806
41268
  boost?: NullableFloatFieldUpdateOperationsInput | number | null
39807
41269
  }
39808
41270
 
41271
+ export type UserCreateManyCreatorInput = {
41272
+ address: string
41273
+ tags?: UserCreatetagsInput | string[]
41274
+ }
41275
+
41276
+ export type UserUpdateWithoutCreatorInput = {
41277
+ address?: StringFieldUpdateOperationsInput | string
41278
+ tags?: UserUpdatetagsInput | string[]
41279
+ Rewards?: RewardUpdateManyWithoutUserNestedInput
41280
+ Blacklist?: BlacklistUpdateManyWithoutUserNestedInput
41281
+ CampaignsCreated?: CampaignUpdateManyWithoutCreatorNestedInput
41282
+ UserComputedValue?: UserComputedValueUpdateManyWithoutUserNestedInput
41283
+ }
41284
+
41285
+ export type UserUncheckedUpdateWithoutCreatorInput = {
41286
+ address?: StringFieldUpdateOperationsInput | string
41287
+ tags?: UserUpdatetagsInput | string[]
41288
+ Rewards?: RewardUncheckedUpdateManyWithoutUserNestedInput
41289
+ Blacklist?: BlacklistUncheckedUpdateManyWithoutUserNestedInput
41290
+ CampaignsCreated?: CampaignUncheckedUpdateManyWithoutCreatorNestedInput
41291
+ UserComputedValue?: UserComputedValueUncheckedUpdateManyWithoutUserNestedInput
41292
+ }
41293
+
41294
+ export type UserUncheckedUpdateManyWithoutCreatorInput = {
41295
+ address?: StringFieldUpdateOperationsInput | string
41296
+ tags?: UserUpdatetagsInput | string[]
41297
+ }
41298
+
39809
41299
  export type RewardBreakdownCreateManyRewardInput = {
39810
41300
  id?: number
39811
41301
  protocolId?: string | null