@merkl/api 0.10.86 → 0.10.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/api/.generated/index.d.ts +28 -100
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +2 -3
- package/dist/src/eden/index.d.ts +48 -18
- package/dist/src/index.d.ts +16 -6
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getBlacklistedSupply.d.ts +1 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +16 -5
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -3
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -4
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +0 -4
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +0 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +0 -3
- package/dist/src/modules/v4/router.d.ts +16 -6
- package/dist/src/modules/v4/status/status.controller.d.ts +2 -2
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +16 -6
- package/dist/src/routes/v3/blacklist.d.ts +16 -6
- package/dist/src/routes/v3/campaigns.d.ts +16 -6
- package/dist/src/routes/v3/campaignsInfo.d.ts +16 -6
- package/dist/src/routes/v3/multiChainPositions.d.ts +16 -6
- package/dist/src/routes/v3/opportunity.d.ts +16 -6
- package/dist/src/routes/v3/positions.d.ts +16 -6
- package/dist/src/routes/v3/rewards.d.ts +16 -6
- package/dist/src/routes/v3/updates.d.ts +16 -6
- package/dist/src/routes/v3/userRewards.d.ts +16 -6
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -3223,7 +3223,6 @@ export namespace Prisma {
|
|
3223
3223
|
id: string | null
|
3224
3224
|
computeChainId: number | null
|
3225
3225
|
distributionChainId: number | null
|
3226
|
-
identifier: string | null
|
3227
3226
|
campaignId: string | null
|
3228
3227
|
type: $Enums.CampaignType | null
|
3229
3228
|
subType: number | null
|
@@ -3239,7 +3238,6 @@ export namespace Prisma {
|
|
3239
3238
|
id: string | null
|
3240
3239
|
computeChainId: number | null
|
3241
3240
|
distributionChainId: number | null
|
3242
|
-
identifier: string | null
|
3243
3241
|
campaignId: string | null
|
3244
3242
|
type: $Enums.CampaignType | null
|
3245
3243
|
subType: number | null
|
@@ -3255,7 +3253,6 @@ export namespace Prisma {
|
|
3255
3253
|
id: number
|
3256
3254
|
computeChainId: number
|
3257
3255
|
distributionChainId: number
|
3258
|
-
identifier: number
|
3259
3256
|
campaignId: number
|
3260
3257
|
type: number
|
3261
3258
|
subType: number
|
@@ -3290,7 +3287,6 @@ export namespace Prisma {
|
|
3290
3287
|
id?: true
|
3291
3288
|
computeChainId?: true
|
3292
3289
|
distributionChainId?: true
|
3293
|
-
identifier?: true
|
3294
3290
|
campaignId?: true
|
3295
3291
|
type?: true
|
3296
3292
|
subType?: true
|
@@ -3306,7 +3302,6 @@ export namespace Prisma {
|
|
3306
3302
|
id?: true
|
3307
3303
|
computeChainId?: true
|
3308
3304
|
distributionChainId?: true
|
3309
|
-
identifier?: true
|
3310
3305
|
campaignId?: true
|
3311
3306
|
type?: true
|
3312
3307
|
subType?: true
|
@@ -3322,7 +3317,6 @@ export namespace Prisma {
|
|
3322
3317
|
id?: true
|
3323
3318
|
computeChainId?: true
|
3324
3319
|
distributionChainId?: true
|
3325
|
-
identifier?: true
|
3326
3320
|
campaignId?: true
|
3327
3321
|
type?: true
|
3328
3322
|
subType?: true
|
@@ -3426,7 +3420,6 @@ export namespace Prisma {
|
|
3426
3420
|
id: string
|
3427
3421
|
computeChainId: number
|
3428
3422
|
distributionChainId: number
|
3429
|
-
identifier: string
|
3430
3423
|
campaignId: string
|
3431
3424
|
type: $Enums.CampaignType
|
3432
3425
|
subType: number | null
|
@@ -3462,7 +3455,6 @@ export namespace Prisma {
|
|
3462
3455
|
id?: boolean
|
3463
3456
|
computeChainId?: boolean
|
3464
3457
|
distributionChainId?: boolean
|
3465
|
-
identifier?: boolean
|
3466
3458
|
campaignId?: boolean
|
3467
3459
|
type?: boolean
|
3468
3460
|
subType?: boolean
|
@@ -3488,7 +3480,6 @@ export namespace Prisma {
|
|
3488
3480
|
id?: boolean
|
3489
3481
|
computeChainId?: boolean
|
3490
3482
|
distributionChainId?: boolean
|
3491
|
-
identifier?: boolean
|
3492
3483
|
campaignId?: boolean
|
3493
3484
|
type?: boolean
|
3494
3485
|
subType?: boolean
|
@@ -3510,7 +3501,6 @@ export namespace Prisma {
|
|
3510
3501
|
id?: boolean
|
3511
3502
|
computeChainId?: boolean
|
3512
3503
|
distributionChainId?: boolean
|
3513
|
-
identifier?: boolean
|
3514
3504
|
campaignId?: boolean
|
3515
3505
|
type?: boolean
|
3516
3506
|
subType?: boolean
|
@@ -3558,7 +3548,6 @@ export namespace Prisma {
|
|
3558
3548
|
id: string
|
3559
3549
|
computeChainId: number
|
3560
3550
|
distributionChainId: number
|
3561
|
-
identifier: string
|
3562
3551
|
campaignId: string
|
3563
3552
|
type: $Enums.CampaignType
|
3564
3553
|
subType: number | null
|
@@ -3973,7 +3962,6 @@ export namespace Prisma {
|
|
3973
3962
|
readonly id: FieldRef<"Campaign", 'String'>
|
3974
3963
|
readonly computeChainId: FieldRef<"Campaign", 'Int'>
|
3975
3964
|
readonly distributionChainId: FieldRef<"Campaign", 'Int'>
|
3976
|
-
readonly identifier: FieldRef<"Campaign", 'String'>
|
3977
3965
|
readonly campaignId: FieldRef<"Campaign", 'String'>
|
3978
3966
|
readonly type: FieldRef<"Campaign", 'CampaignType'>
|
3979
3967
|
readonly subType: FieldRef<"Campaign", 'Int'>
|
@@ -23581,7 +23569,6 @@ export namespace Prisma {
|
|
23581
23569
|
id: 'id',
|
23582
23570
|
computeChainId: 'computeChainId',
|
23583
23571
|
distributionChainId: 'distributionChainId',
|
23584
|
-
identifier: 'identifier',
|
23585
23572
|
campaignId: 'campaignId',
|
23586
23573
|
type: 'type',
|
23587
23574
|
subType: 'subType',
|
@@ -23868,7 +23855,6 @@ export namespace Prisma {
|
|
23868
23855
|
|
23869
23856
|
export const CampaignOrderByRelevanceFieldEnum: {
|
23870
23857
|
id: 'id',
|
23871
|
-
identifier: 'identifier',
|
23872
23858
|
campaignId: 'campaignId',
|
23873
23859
|
rewardTokenId: 'rewardTokenId',
|
23874
23860
|
amount: 'amount',
|
@@ -24279,7 +24265,6 @@ export namespace Prisma {
|
|
24279
24265
|
id?: StringFilter<"Campaign"> | string
|
24280
24266
|
computeChainId?: IntFilter<"Campaign"> | number
|
24281
24267
|
distributionChainId?: IntFilter<"Campaign"> | number
|
24282
|
-
identifier?: StringFilter<"Campaign"> | string
|
24283
24268
|
campaignId?: StringFilter<"Campaign"> | string
|
24284
24269
|
type?: EnumCampaignTypeFilter<"Campaign"> | $Enums.CampaignType
|
24285
24270
|
subType?: IntNullableFilter<"Campaign"> | number | null
|
@@ -24304,7 +24289,6 @@ export namespace Prisma {
|
|
24304
24289
|
id?: SortOrder
|
24305
24290
|
computeChainId?: SortOrder
|
24306
24291
|
distributionChainId?: SortOrder
|
24307
|
-
identifier?: SortOrder
|
24308
24292
|
campaignId?: SortOrder
|
24309
24293
|
type?: SortOrder
|
24310
24294
|
subType?: SortOrderInput | SortOrder
|
@@ -24328,13 +24312,12 @@ export namespace Prisma {
|
|
24328
24312
|
|
24329
24313
|
export type CampaignWhereUniqueInput = Prisma.AtLeast<{
|
24330
24314
|
id?: string
|
24331
|
-
|
24315
|
+
distributionChainId_campaignId?: CampaignDistributionChainIdCampaignIdCompoundUniqueInput
|
24332
24316
|
AND?: CampaignWhereInput | CampaignWhereInput[]
|
24333
24317
|
OR?: CampaignWhereInput[]
|
24334
24318
|
NOT?: CampaignWhereInput | CampaignWhereInput[]
|
24335
24319
|
computeChainId?: IntFilter<"Campaign"> | number
|
24336
24320
|
distributionChainId?: IntFilter<"Campaign"> | number
|
24337
|
-
identifier?: StringFilter<"Campaign"> | string
|
24338
24321
|
campaignId?: StringFilter<"Campaign"> | string
|
24339
24322
|
type?: EnumCampaignTypeFilter<"Campaign"> | $Enums.CampaignType
|
24340
24323
|
subType?: IntNullableFilter<"Campaign"> | number | null
|
@@ -24353,13 +24336,12 @@ export namespace Prisma {
|
|
24353
24336
|
DailyRewardsBreakdown?: DailyRewardsBreakdownListRelationFilter
|
24354
24337
|
Creator?: XOR<UserRelationFilter, UserWhereInput>
|
24355
24338
|
CampaignStatus?: CampaignStatusListRelationFilter
|
24356
|
-
}, "id" | "
|
24339
|
+
}, "id" | "distributionChainId_campaignId">
|
24357
24340
|
|
24358
24341
|
export type CampaignOrderByWithAggregationInput = {
|
24359
24342
|
id?: SortOrder
|
24360
24343
|
computeChainId?: SortOrder
|
24361
24344
|
distributionChainId?: SortOrder
|
24362
|
-
identifier?: SortOrder
|
24363
24345
|
campaignId?: SortOrder
|
24364
24346
|
type?: SortOrder
|
24365
24347
|
subType?: SortOrderInput | SortOrder
|
@@ -24384,7 +24366,6 @@ export namespace Prisma {
|
|
24384
24366
|
id?: StringWithAggregatesFilter<"Campaign"> | string
|
24385
24367
|
computeChainId?: IntWithAggregatesFilter<"Campaign"> | number
|
24386
24368
|
distributionChainId?: IntWithAggregatesFilter<"Campaign"> | number
|
24387
|
-
identifier?: StringWithAggregatesFilter<"Campaign"> | string
|
24388
24369
|
campaignId?: StringWithAggregatesFilter<"Campaign"> | string
|
24389
24370
|
type?: EnumCampaignTypeWithAggregatesFilter<"Campaign"> | $Enums.CampaignType
|
24390
24371
|
subType?: IntNullableWithAggregatesFilter<"Campaign"> | number | null
|
@@ -25670,8 +25651,7 @@ export namespace Prisma {
|
|
25670
25651
|
|
25671
25652
|
export type CampaignCreateInput = {
|
25672
25653
|
id: string
|
25673
|
-
|
25674
|
-
campaignId?: string
|
25654
|
+
campaignId: string
|
25675
25655
|
type: $Enums.CampaignType
|
25676
25656
|
subType?: number | null
|
25677
25657
|
amount: string
|
@@ -25692,8 +25672,7 @@ export namespace Prisma {
|
|
25692
25672
|
id: string
|
25693
25673
|
computeChainId: number
|
25694
25674
|
distributionChainId: number
|
25695
|
-
|
25696
|
-
campaignId?: string
|
25675
|
+
campaignId: string
|
25697
25676
|
type: $Enums.CampaignType
|
25698
25677
|
subType?: number | null
|
25699
25678
|
rewardTokenId: string
|
@@ -25710,7 +25689,6 @@ export namespace Prisma {
|
|
25710
25689
|
|
25711
25690
|
export type CampaignUpdateInput = {
|
25712
25691
|
id?: StringFieldUpdateOperationsInput | string
|
25713
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
25714
25692
|
campaignId?: StringFieldUpdateOperationsInput | string
|
25715
25693
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
25716
25694
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -25732,7 +25710,6 @@ export namespace Prisma {
|
|
25732
25710
|
id?: StringFieldUpdateOperationsInput | string
|
25733
25711
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
25734
25712
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
25735
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
25736
25713
|
campaignId?: StringFieldUpdateOperationsInput | string
|
25737
25714
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
25738
25715
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -25752,8 +25729,7 @@ export namespace Prisma {
|
|
25752
25729
|
id: string
|
25753
25730
|
computeChainId: number
|
25754
25731
|
distributionChainId: number
|
25755
|
-
|
25756
|
-
campaignId?: string
|
25732
|
+
campaignId: string
|
25757
25733
|
type: $Enums.CampaignType
|
25758
25734
|
subType?: number | null
|
25759
25735
|
rewardTokenId: string
|
@@ -25767,7 +25743,6 @@ export namespace Prisma {
|
|
25767
25743
|
|
25768
25744
|
export type CampaignUpdateManyMutationInput = {
|
25769
25745
|
id?: StringFieldUpdateOperationsInput | string
|
25770
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
25771
25746
|
campaignId?: StringFieldUpdateOperationsInput | string
|
25772
25747
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
25773
25748
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -25781,7 +25756,6 @@ export namespace Prisma {
|
|
25781
25756
|
id?: StringFieldUpdateOperationsInput | string
|
25782
25757
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
25783
25758
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
25784
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
25785
25759
|
campaignId?: StringFieldUpdateOperationsInput | string
|
25786
25760
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
25787
25761
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -27162,16 +27136,15 @@ export namespace Prisma {
|
|
27162
27136
|
search: string
|
27163
27137
|
}
|
27164
27138
|
|
27165
|
-
export type
|
27139
|
+
export type CampaignDistributionChainIdCampaignIdCompoundUniqueInput = {
|
27166
27140
|
distributionChainId: number
|
27167
|
-
|
27141
|
+
campaignId: string
|
27168
27142
|
}
|
27169
27143
|
|
27170
27144
|
export type CampaignCountOrderByAggregateInput = {
|
27171
27145
|
id?: SortOrder
|
27172
27146
|
computeChainId?: SortOrder
|
27173
27147
|
distributionChainId?: SortOrder
|
27174
|
-
identifier?: SortOrder
|
27175
27148
|
campaignId?: SortOrder
|
27176
27149
|
type?: SortOrder
|
27177
27150
|
subType?: SortOrder
|
@@ -27196,7 +27169,6 @@ export namespace Prisma {
|
|
27196
27169
|
id?: SortOrder
|
27197
27170
|
computeChainId?: SortOrder
|
27198
27171
|
distributionChainId?: SortOrder
|
27199
|
-
identifier?: SortOrder
|
27200
27172
|
campaignId?: SortOrder
|
27201
27173
|
type?: SortOrder
|
27202
27174
|
subType?: SortOrder
|
@@ -27212,7 +27184,6 @@ export namespace Prisma {
|
|
27212
27184
|
id?: SortOrder
|
27213
27185
|
computeChainId?: SortOrder
|
27214
27186
|
distributionChainId?: SortOrder
|
27215
|
-
identifier?: SortOrder
|
27216
27187
|
campaignId?: SortOrder
|
27217
27188
|
type?: SortOrder
|
27218
27189
|
subType?: SortOrder
|
@@ -31495,8 +31466,7 @@ export namespace Prisma {
|
|
31495
31466
|
|
31496
31467
|
export type CampaignCreateWithoutComputeChainInput = {
|
31497
31468
|
id: string
|
31498
|
-
|
31499
|
-
campaignId?: string
|
31469
|
+
campaignId: string
|
31500
31470
|
type: $Enums.CampaignType
|
31501
31471
|
subType?: number | null
|
31502
31472
|
amount: string
|
@@ -31515,8 +31485,7 @@ export namespace Prisma {
|
|
31515
31485
|
export type CampaignUncheckedCreateWithoutComputeChainInput = {
|
31516
31486
|
id: string
|
31517
31487
|
distributionChainId: number
|
31518
|
-
|
31519
|
-
campaignId?: string
|
31488
|
+
campaignId: string
|
31520
31489
|
type: $Enums.CampaignType
|
31521
31490
|
subType?: number | null
|
31522
31491
|
rewardTokenId: string
|
@@ -31543,8 +31512,7 @@ export namespace Prisma {
|
|
31543
31512
|
|
31544
31513
|
export type CampaignCreateWithoutDistributionChainInput = {
|
31545
31514
|
id: string
|
31546
|
-
|
31547
|
-
campaignId?: string
|
31515
|
+
campaignId: string
|
31548
31516
|
type: $Enums.CampaignType
|
31549
31517
|
subType?: number | null
|
31550
31518
|
amount: string
|
@@ -31563,8 +31531,7 @@ export namespace Prisma {
|
|
31563
31531
|
export type CampaignUncheckedCreateWithoutDistributionChainInput = {
|
31564
31532
|
id: string
|
31565
31533
|
computeChainId: number
|
31566
|
-
|
31567
|
-
campaignId?: string
|
31534
|
+
campaignId: string
|
31568
31535
|
type: $Enums.CampaignType
|
31569
31536
|
subType?: number | null
|
31570
31537
|
rewardTokenId: string
|
@@ -31814,7 +31781,6 @@ export namespace Prisma {
|
|
31814
31781
|
id?: StringFilter<"Campaign"> | string
|
31815
31782
|
computeChainId?: IntFilter<"Campaign"> | number
|
31816
31783
|
distributionChainId?: IntFilter<"Campaign"> | number
|
31817
|
-
identifier?: StringFilter<"Campaign"> | string
|
31818
31784
|
campaignId?: StringFilter<"Campaign"> | string
|
31819
31785
|
type?: EnumCampaignTypeFilter<"Campaign"> | $Enums.CampaignType
|
31820
31786
|
subType?: IntNullableFilter<"Campaign"> | number | null
|
@@ -32132,8 +32098,7 @@ export namespace Prisma {
|
|
32132
32098
|
|
32133
32099
|
export type CampaignCreateWithoutOpportunityInput = {
|
32134
32100
|
id: string
|
32135
|
-
|
32136
|
-
campaignId?: string
|
32101
|
+
campaignId: string
|
32137
32102
|
type: $Enums.CampaignType
|
32138
32103
|
subType?: number | null
|
32139
32104
|
amount: string
|
@@ -32153,8 +32118,7 @@ export namespace Prisma {
|
|
32153
32118
|
id: string
|
32154
32119
|
computeChainId: number
|
32155
32120
|
distributionChainId: number
|
32156
|
-
|
32157
|
-
campaignId?: string
|
32121
|
+
campaignId: string
|
32158
32122
|
type: $Enums.CampaignType
|
32159
32123
|
subType?: number | null
|
32160
32124
|
rewardTokenId: string
|
@@ -32766,8 +32730,7 @@ export namespace Prisma {
|
|
32766
32730
|
|
32767
32731
|
export type CampaignCreateWithoutRewardTokenInput = {
|
32768
32732
|
id: string
|
32769
|
-
|
32770
|
-
campaignId?: string
|
32733
|
+
campaignId: string
|
32771
32734
|
type: $Enums.CampaignType
|
32772
32735
|
subType?: number | null
|
32773
32736
|
amount: string
|
@@ -32787,8 +32750,7 @@ export namespace Prisma {
|
|
32787
32750
|
id: string
|
32788
32751
|
computeChainId: number
|
32789
32752
|
distributionChainId: number
|
32790
|
-
|
32791
|
-
campaignId?: string
|
32753
|
+
campaignId: string
|
32792
32754
|
type: $Enums.CampaignType
|
32793
32755
|
subType?: number | null
|
32794
32756
|
amount: string
|
@@ -33549,8 +33511,7 @@ export namespace Prisma {
|
|
33549
33511
|
|
33550
33512
|
export type CampaignCreateWithoutDailyRewardsBreakdownInput = {
|
33551
33513
|
id: string
|
33552
|
-
|
33553
|
-
campaignId?: string
|
33514
|
+
campaignId: string
|
33554
33515
|
type: $Enums.CampaignType
|
33555
33516
|
subType?: number | null
|
33556
33517
|
amount: string
|
@@ -33570,8 +33531,7 @@ export namespace Prisma {
|
|
33570
33531
|
id: string
|
33571
33532
|
computeChainId: number
|
33572
33533
|
distributionChainId: number
|
33573
|
-
|
33574
|
-
campaignId?: string
|
33534
|
+
campaignId: string
|
33575
33535
|
type: $Enums.CampaignType
|
33576
33536
|
subType?: number | null
|
33577
33537
|
rewardTokenId: string
|
@@ -33622,7 +33582,6 @@ export namespace Prisma {
|
|
33622
33582
|
|
33623
33583
|
export type CampaignUpdateWithoutDailyRewardsBreakdownInput = {
|
33624
33584
|
id?: StringFieldUpdateOperationsInput | string
|
33625
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
33626
33585
|
campaignId?: StringFieldUpdateOperationsInput | string
|
33627
33586
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
33628
33587
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -33643,7 +33602,6 @@ export namespace Prisma {
|
|
33643
33602
|
id?: StringFieldUpdateOperationsInput | string
|
33644
33603
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
33645
33604
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
33646
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
33647
33605
|
campaignId?: StringFieldUpdateOperationsInput | string
|
33648
33606
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
33649
33607
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -33737,8 +33695,7 @@ export namespace Prisma {
|
|
33737
33695
|
|
33738
33696
|
export type CampaignCreateWithoutCreatorInput = {
|
33739
33697
|
id: string
|
33740
|
-
|
33741
|
-
campaignId?: string
|
33698
|
+
campaignId: string
|
33742
33699
|
type: $Enums.CampaignType
|
33743
33700
|
subType?: number | null
|
33744
33701
|
amount: string
|
@@ -33758,8 +33715,7 @@ export namespace Prisma {
|
|
33758
33715
|
id: string
|
33759
33716
|
computeChainId: number
|
33760
33717
|
distributionChainId: number
|
33761
|
-
|
33762
|
-
campaignId?: string
|
33718
|
+
campaignId: string
|
33763
33719
|
type: $Enums.CampaignType
|
33764
33720
|
subType?: number | null
|
33765
33721
|
rewardTokenId: string
|
@@ -34098,8 +34054,7 @@ export namespace Prisma {
|
|
34098
34054
|
|
34099
34055
|
export type CampaignCreateWithoutRewardBreakdownInput = {
|
34100
34056
|
id: string
|
34101
|
-
|
34102
|
-
campaignId?: string
|
34057
|
+
campaignId: string
|
34103
34058
|
type: $Enums.CampaignType
|
34104
34059
|
subType?: number | null
|
34105
34060
|
amount: string
|
@@ -34119,8 +34074,7 @@ export namespace Prisma {
|
|
34119
34074
|
id: string
|
34120
34075
|
computeChainId: number
|
34121
34076
|
distributionChainId: number
|
34122
|
-
|
34123
|
-
campaignId?: string
|
34077
|
+
campaignId: string
|
34124
34078
|
type: $Enums.CampaignType
|
34125
34079
|
subType?: number | null
|
34126
34080
|
rewardTokenId: string
|
@@ -34212,7 +34166,6 @@ export namespace Prisma {
|
|
34212
34166
|
|
34213
34167
|
export type CampaignUpdateWithoutRewardBreakdownInput = {
|
34214
34168
|
id?: StringFieldUpdateOperationsInput | string
|
34215
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
34216
34169
|
campaignId?: StringFieldUpdateOperationsInput | string
|
34217
34170
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
34218
34171
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -34233,7 +34186,6 @@ export namespace Prisma {
|
|
34233
34186
|
id?: StringFieldUpdateOperationsInput | string
|
34234
34187
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
34235
34188
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
34236
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
34237
34189
|
campaignId?: StringFieldUpdateOperationsInput | string
|
34238
34190
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
34239
34191
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -34700,8 +34652,7 @@ export namespace Prisma {
|
|
34700
34652
|
|
34701
34653
|
export type CampaignCreateWithoutCampaignStatusInput = {
|
34702
34654
|
id: string
|
34703
|
-
|
34704
|
-
campaignId?: string
|
34655
|
+
campaignId: string
|
34705
34656
|
type: $Enums.CampaignType
|
34706
34657
|
subType?: number | null
|
34707
34658
|
amount: string
|
@@ -34721,8 +34672,7 @@ export namespace Prisma {
|
|
34721
34672
|
id: string
|
34722
34673
|
computeChainId: number
|
34723
34674
|
distributionChainId: number
|
34724
|
-
|
34725
|
-
campaignId?: string
|
34675
|
+
campaignId: string
|
34726
34676
|
type: $Enums.CampaignType
|
34727
34677
|
subType?: number | null
|
34728
34678
|
rewardTokenId: string
|
@@ -34754,7 +34704,6 @@ export namespace Prisma {
|
|
34754
34704
|
|
34755
34705
|
export type CampaignUpdateWithoutCampaignStatusInput = {
|
34756
34706
|
id?: StringFieldUpdateOperationsInput | string
|
34757
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
34758
34707
|
campaignId?: StringFieldUpdateOperationsInput | string
|
34759
34708
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
34760
34709
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -34775,7 +34724,6 @@ export namespace Prisma {
|
|
34775
34724
|
id?: StringFieldUpdateOperationsInput | string
|
34776
34725
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
34777
34726
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
34778
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
34779
34727
|
campaignId?: StringFieldUpdateOperationsInput | string
|
34780
34728
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
34781
34729
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -34901,8 +34849,7 @@ export namespace Prisma {
|
|
34901
34849
|
export type CampaignCreateManyComputeChainInput = {
|
34902
34850
|
id: string
|
34903
34851
|
distributionChainId: number
|
34904
|
-
|
34905
|
-
campaignId?: string
|
34852
|
+
campaignId: string
|
34906
34853
|
type: $Enums.CampaignType
|
34907
34854
|
subType?: number | null
|
34908
34855
|
rewardTokenId: string
|
@@ -34917,8 +34864,7 @@ export namespace Prisma {
|
|
34917
34864
|
export type CampaignCreateManyDistributionChainInput = {
|
34918
34865
|
id: string
|
34919
34866
|
computeChainId: number
|
34920
|
-
|
34921
|
-
campaignId?: string
|
34867
|
+
campaignId: string
|
34922
34868
|
type: $Enums.CampaignType
|
34923
34869
|
subType?: number | null
|
34924
34870
|
rewardTokenId: string
|
@@ -35001,7 +34947,6 @@ export namespace Prisma {
|
|
35001
34947
|
|
35002
34948
|
export type CampaignUpdateWithoutComputeChainInput = {
|
35003
34949
|
id?: StringFieldUpdateOperationsInput | string
|
35004
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35005
34950
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35006
34951
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35007
34952
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35021,7 +34966,6 @@ export namespace Prisma {
|
|
35021
34966
|
export type CampaignUncheckedUpdateWithoutComputeChainInput = {
|
35022
34967
|
id?: StringFieldUpdateOperationsInput | string
|
35023
34968
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
35024
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35025
34969
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35026
34970
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35027
34971
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35040,7 +34984,6 @@ export namespace Prisma {
|
|
35040
34984
|
export type CampaignUncheckedUpdateManyWithoutComputeChainInput = {
|
35041
34985
|
id?: StringFieldUpdateOperationsInput | string
|
35042
34986
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
35043
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35044
34987
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35045
34988
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35046
34989
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35055,7 +34998,6 @@ export namespace Prisma {
|
|
35055
34998
|
|
35056
34999
|
export type CampaignUpdateWithoutDistributionChainInput = {
|
35057
35000
|
id?: StringFieldUpdateOperationsInput | string
|
35058
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35059
35001
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35060
35002
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35061
35003
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35075,7 +35017,6 @@ export namespace Prisma {
|
|
35075
35017
|
export type CampaignUncheckedUpdateWithoutDistributionChainInput = {
|
35076
35018
|
id?: StringFieldUpdateOperationsInput | string
|
35077
35019
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
35078
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35079
35020
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35080
35021
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35081
35022
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35094,7 +35035,6 @@ export namespace Prisma {
|
|
35094
35035
|
export type CampaignUncheckedUpdateManyWithoutDistributionChainInput = {
|
35095
35036
|
id?: StringFieldUpdateOperationsInput | string
|
35096
35037
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
35097
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35098
35038
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35099
35039
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35100
35040
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35288,8 +35228,7 @@ export namespace Prisma {
|
|
35288
35228
|
id: string
|
35289
35229
|
computeChainId: number
|
35290
35230
|
distributionChainId: number
|
35291
|
-
|
35292
|
-
campaignId?: string
|
35231
|
+
campaignId: string
|
35293
35232
|
type: $Enums.CampaignType
|
35294
35233
|
subType?: number | null
|
35295
35234
|
rewardTokenId: string
|
@@ -35364,7 +35303,6 @@ export namespace Prisma {
|
|
35364
35303
|
|
35365
35304
|
export type CampaignUpdateWithoutOpportunityInput = {
|
35366
35305
|
id?: StringFieldUpdateOperationsInput | string
|
35367
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35368
35306
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35369
35307
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35370
35308
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35385,7 +35323,6 @@ export namespace Prisma {
|
|
35385
35323
|
id?: StringFieldUpdateOperationsInput | string
|
35386
35324
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
35387
35325
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
35388
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35389
35326
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35390
35327
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35391
35328
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35404,7 +35341,6 @@ export namespace Prisma {
|
|
35404
35341
|
id?: StringFieldUpdateOperationsInput | string
|
35405
35342
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
35406
35343
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
35407
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35408
35344
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35409
35345
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35410
35346
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35681,8 +35617,7 @@ export namespace Prisma {
|
|
35681
35617
|
id: string
|
35682
35618
|
computeChainId: number
|
35683
35619
|
distributionChainId: number
|
35684
|
-
|
35685
|
-
campaignId?: string
|
35620
|
+
campaignId: string
|
35686
35621
|
type: $Enums.CampaignType
|
35687
35622
|
subType?: number | null
|
35688
35623
|
amount: string
|
@@ -35781,7 +35716,6 @@ export namespace Prisma {
|
|
35781
35716
|
|
35782
35717
|
export type CampaignUpdateWithoutRewardTokenInput = {
|
35783
35718
|
id?: StringFieldUpdateOperationsInput | string
|
35784
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35785
35719
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35786
35720
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35787
35721
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35802,7 +35736,6 @@ export namespace Prisma {
|
|
35802
35736
|
id?: StringFieldUpdateOperationsInput | string
|
35803
35737
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
35804
35738
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
35805
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35806
35739
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35807
35740
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35808
35741
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -35821,7 +35754,6 @@ export namespace Prisma {
|
|
35821
35754
|
id?: StringFieldUpdateOperationsInput | string
|
35822
35755
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
35823
35756
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
35824
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
35825
35757
|
campaignId?: StringFieldUpdateOperationsInput | string
|
35826
35758
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
35827
35759
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -36024,8 +35956,7 @@ export namespace Prisma {
|
|
36024
35956
|
id: string
|
36025
35957
|
computeChainId: number
|
36026
35958
|
distributionChainId: number
|
36027
|
-
|
36028
|
-
campaignId?: string
|
35959
|
+
campaignId: string
|
36029
35960
|
type: $Enums.CampaignType
|
36030
35961
|
subType?: number | null
|
36031
35962
|
rewardTokenId: string
|
@@ -36085,7 +36016,6 @@ export namespace Prisma {
|
|
36085
36016
|
|
36086
36017
|
export type CampaignUpdateWithoutCreatorInput = {
|
36087
36018
|
id?: StringFieldUpdateOperationsInput | string
|
36088
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
36089
36019
|
campaignId?: StringFieldUpdateOperationsInput | string
|
36090
36020
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
36091
36021
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -36106,7 +36036,6 @@ export namespace Prisma {
|
|
36106
36036
|
id?: StringFieldUpdateOperationsInput | string
|
36107
36037
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
36108
36038
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
36109
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
36110
36039
|
campaignId?: StringFieldUpdateOperationsInput | string
|
36111
36040
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
36112
36041
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -36125,7 +36054,6 @@ export namespace Prisma {
|
|
36125
36054
|
id?: StringFieldUpdateOperationsInput | string
|
36126
36055
|
computeChainId?: IntFieldUpdateOperationsInput | number
|
36127
36056
|
distributionChainId?: IntFieldUpdateOperationsInput | number
|
36128
|
-
identifier?: StringFieldUpdateOperationsInput | string
|
36129
36057
|
campaignId?: StringFieldUpdateOperationsInput | string
|
36130
36058
|
type?: EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType
|
36131
36059
|
subType?: NullableIntFieldUpdateOperationsInput | number | null
|
@@ -17,8 +17,7 @@ model Campaign {
|
|
17
17
|
computeChainId Int
|
18
18
|
DistributionChain Chain @relation("distribution", fields: [distributionChainId], references: [id])
|
19
19
|
distributionChainId Int
|
20
|
-
|
21
|
-
campaignId String @default("")
|
20
|
+
campaignId String
|
22
21
|
type CampaignType
|
23
22
|
subType Int?
|
24
23
|
RewardToken Token @relation(fields: [rewardTokenId], references: [id])
|
@@ -35,7 +34,7 @@ model Campaign {
|
|
35
34
|
creatorAddress String @db.Char(42)
|
36
35
|
CampaignStatus CampaignStatus[]
|
37
36
|
|
38
|
-
@@unique([distributionChainId,
|
37
|
+
@@unique([distributionChainId, campaignId])
|
39
38
|
}
|
40
39
|
|
41
40
|
model Chain {
|