@merkl/api 0.17.21 → 0.17.23
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/drizzle/schema.d.ts +46 -0
- package/dist/database/api/.generated/drizzle/schema.js +5 -1
- package/dist/database/api/.generated/drizzle/schema.ts +8 -1
- package/dist/database/api/.generated/edge.js +26 -4
- package/dist/database/api/.generated/index-browser.js +7 -1
- package/dist/database/api/.generated/index.d.ts +149 -2
- package/dist/database/api/.generated/index.js +26 -4
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +29 -8
- package/dist/database/api/.generated/wasm.js +7 -1
- package/dist/src/eden/index.d.ts +241 -10
- package/dist/src/index.d.ts +53 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +40 -1
- package/dist/src/modules/v4/campaign/campaign.controller.js +16 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +14 -1
- package/dist/src/modules/v4/campaign/campaign.model.js +11 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +64 -32
- package/dist/src/modules/v4/campaign/campaign.repository.js +84 -122
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +61 -19
- package/dist/src/modules/v4/campaign/campaign.service.js +51 -63
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +100 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +146 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/router.d.ts +53 -2
- package/dist/src/modules/v4/status/status.service.js +1 -1
- package/dist/src/modules/v4/token/token.controller.d.ts +12 -1
- package/dist/src/modules/v4/token/token.controller.js +2 -2
- package/dist/src/modules/v4/token/token.service.d.ts +13 -1
- package/dist/src/modules/v4/token/token.service.js +1 -3
- package/dist/src/utils/error.d.ts +6 -0
- package/dist/src/utils/error.js +12 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -23,7 +23,7 @@ model Campaign {
|
|
23
23
|
distributionChainId Int
|
24
24
|
campaignId String
|
25
25
|
type String
|
26
|
-
// distributionType DistributionType
|
26
|
+
// distributionType DistributionType @default(DUTCH_AUCTION)
|
27
27
|
subType Int?
|
28
28
|
RewardToken Token @relation(fields: [rewardTokenId], references: [id])
|
29
29
|
rewardTokenId String
|
@@ -42,6 +42,10 @@ model Campaign {
|
|
42
42
|
CampaignEngineValues CampaignComputedValue[]
|
43
43
|
UserComputedValue UserComputedValue[]
|
44
44
|
|
45
|
+
// Fields should be automatically parsable and overriden periodically UNLESS
|
46
|
+
// they are manually overridden, in which case they should be kept as is
|
47
|
+
manualOverrides CampaignManualOverride[] @default([])
|
48
|
+
|
45
49
|
@@unique([distributionChainId, campaignId])
|
46
50
|
@@index([opportunityId], type: Hash)
|
47
51
|
}
|
@@ -127,6 +131,10 @@ model Opportunity {
|
|
127
131
|
DailyRewardsRecords DailyRewardsRecord[]
|
128
132
|
tags String[] @default([])
|
129
133
|
|
134
|
+
// Fields should be automatically parsable and overriden periodically UNLESS
|
135
|
+
// they are manually overridden, in which case they should be kept as is
|
136
|
+
// manualOverrides OpportunityManualOverride[] @default([])
|
137
|
+
|
130
138
|
@@unique([chainId, type, identifier])
|
131
139
|
}
|
132
140
|
|
@@ -422,10 +430,23 @@ enum PriceSourceMethod {
|
|
422
430
|
DEFILLAMA
|
423
431
|
}
|
424
432
|
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
433
|
+
enum CampaignManualOverride {
|
434
|
+
opportunityId
|
435
|
+
creatorAddress
|
436
|
+
}
|
437
|
+
|
438
|
+
enum OpportunityManualOverride {
|
439
|
+
identifier
|
440
|
+
name
|
441
|
+
depositUrl
|
442
|
+
action
|
443
|
+
mainProtocolId
|
444
|
+
}
|
445
|
+
|
446
|
+
enum DistributionType {
|
447
|
+
DUTCH_AUCTION
|
448
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE // The fix reward value will lie in params.apr
|
449
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE
|
450
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT
|
451
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT
|
452
|
+
}
|
@@ -130,7 +130,8 @@ exports.Prisma.CampaignScalarFieldEnum = {
|
|
130
130
|
startTimestamp: 'startTimestamp',
|
131
131
|
endTimestamp: 'endTimestamp',
|
132
132
|
params: 'params',
|
133
|
-
creatorAddress: 'creatorAddress'
|
133
|
+
creatorAddress: 'creatorAddress',
|
134
|
+
manualOverrides: 'manualOverrides'
|
134
135
|
};
|
135
136
|
|
136
137
|
exports.Prisma.RelationLoadStrategy = {
|
@@ -523,6 +524,11 @@ exports.Prisma.LoggedOrderByRelevanceFieldEnum = {
|
|
523
524
|
address: 'address',
|
524
525
|
caughtFromAddress: 'caughtFromAddress'
|
525
526
|
};
|
527
|
+
exports.CampaignManualOverride = exports.$Enums.CampaignManualOverride = {
|
528
|
+
opportunityId: 'opportunityId',
|
529
|
+
creatorAddress: 'creatorAddress'
|
530
|
+
};
|
531
|
+
|
526
532
|
exports.RunStatus = exports.$Enums.RunStatus = {
|
527
533
|
PROCESSING: 'PROCESSING',
|
528
534
|
SUCCESS: 'SUCCESS',
|
package/dist/src/eden/index.d.ts
CHANGED
@@ -579,6 +579,7 @@ declare const eden: {
|
|
579
579
|
rewardTokenId: string;
|
580
580
|
amount: string;
|
581
581
|
opportunityId: string;
|
582
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
582
583
|
}[] | undefined;
|
583
584
|
id: string;
|
584
585
|
depositUrl: string | undefined;
|
@@ -970,6 +971,7 @@ declare const eden: {
|
|
970
971
|
rewardTokenId: string;
|
971
972
|
amount: string;
|
972
973
|
opportunityId: string;
|
974
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
973
975
|
};
|
974
976
|
}>>;
|
975
977
|
} | {
|
@@ -1022,12 +1024,12 @@ declare const eden: {
|
|
1022
1024
|
amount: string;
|
1023
1025
|
opportunityId: string;
|
1024
1026
|
creatorAddress: string;
|
1027
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
1025
1028
|
} | undefined;
|
1026
1029
|
}>>;
|
1027
1030
|
};
|
1028
1031
|
opportunity: {
|
1029
1032
|
patch: (body: {
|
1030
|
-
tags?: string[] | undefined;
|
1031
1033
|
opportunityIdentifier?: string | undefined;
|
1032
1034
|
campaignId: string;
|
1033
1035
|
distributionChain: number;
|
@@ -1041,6 +1043,36 @@ declare const eden: {
|
|
1041
1043
|
200: string;
|
1042
1044
|
}>>;
|
1043
1045
|
};
|
1046
|
+
creator: {
|
1047
|
+
patch: (body: {
|
1048
|
+
campaignId: string;
|
1049
|
+
creatorAddress: string;
|
1050
|
+
distributionChain: number;
|
1051
|
+
}, options: {
|
1052
|
+
headers: {
|
1053
|
+
authorization: string;
|
1054
|
+
};
|
1055
|
+
query?: Record<string, unknown> | undefined;
|
1056
|
+
fetch?: RequestInit | undefined;
|
1057
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1058
|
+
200: void;
|
1059
|
+
}>>;
|
1060
|
+
};
|
1061
|
+
"remove-override": {
|
1062
|
+
patch: (body: {
|
1063
|
+
campaignId: string;
|
1064
|
+
field: "opportunityId" | "creatorAddress";
|
1065
|
+
distributionChain: number;
|
1066
|
+
}, options: {
|
1067
|
+
headers: {
|
1068
|
+
authorization: string;
|
1069
|
+
};
|
1070
|
+
query?: Record<string, unknown> | undefined;
|
1071
|
+
fetch?: RequestInit | undefined;
|
1072
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1073
|
+
200: void;
|
1074
|
+
}>>;
|
1075
|
+
};
|
1044
1076
|
metadata: {
|
1045
1077
|
patch: (body: {
|
1046
1078
|
url: string;
|
@@ -1067,6 +1099,7 @@ declare const eden: {
|
|
1067
1099
|
amount: string;
|
1068
1100
|
opportunityId: string;
|
1069
1101
|
creatorAddress: string;
|
1102
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
1070
1103
|
};
|
1071
1104
|
}>>;
|
1072
1105
|
};
|
@@ -1143,6 +1176,7 @@ declare const eden: {
|
|
1143
1176
|
rewardTokenId: string;
|
1144
1177
|
amount: string;
|
1145
1178
|
opportunityId: string;
|
1179
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
1146
1180
|
}[];
|
1147
1181
|
}>>;
|
1148
1182
|
};
|
@@ -1524,7 +1558,18 @@ declare const eden: {
|
|
1524
1558
|
query?: Record<string, unknown> | undefined;
|
1525
1559
|
fetch?: RequestInit | undefined;
|
1526
1560
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1527
|
-
200:
|
1561
|
+
200: {
|
1562
|
+
symbol: string;
|
1563
|
+
name: string | null;
|
1564
|
+
id: string;
|
1565
|
+
icon: string;
|
1566
|
+
chainId: number;
|
1567
|
+
address: string;
|
1568
|
+
decimals: number;
|
1569
|
+
verified: boolean;
|
1570
|
+
isTest: boolean;
|
1571
|
+
price?: number | null | undefined;
|
1572
|
+
} | undefined;
|
1528
1573
|
}>>;
|
1529
1574
|
};
|
1530
1575
|
count: {
|
@@ -3874,6 +3919,7 @@ declare const eden: {
|
|
3874
3919
|
rewardTokenId: string;
|
3875
3920
|
amount: string;
|
3876
3921
|
opportunityId: string;
|
3922
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
3877
3923
|
}[] | undefined;
|
3878
3924
|
id: string;
|
3879
3925
|
depositUrl: string | undefined;
|
@@ -4265,6 +4311,7 @@ declare const eden: {
|
|
4265
4311
|
rewardTokenId: string;
|
4266
4312
|
amount: string;
|
4267
4313
|
opportunityId: string;
|
4314
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
4268
4315
|
};
|
4269
4316
|
}>>;
|
4270
4317
|
} | {
|
@@ -4317,12 +4364,12 @@ declare const eden: {
|
|
4317
4364
|
amount: string;
|
4318
4365
|
opportunityId: string;
|
4319
4366
|
creatorAddress: string;
|
4367
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
4320
4368
|
} | undefined;
|
4321
4369
|
}>>;
|
4322
4370
|
};
|
4323
4371
|
opportunity: {
|
4324
4372
|
patch: (body: {
|
4325
|
-
tags?: string[] | undefined;
|
4326
4373
|
opportunityIdentifier?: string | undefined;
|
4327
4374
|
campaignId: string;
|
4328
4375
|
distributionChain: number;
|
@@ -4336,6 +4383,36 @@ declare const eden: {
|
|
4336
4383
|
200: string;
|
4337
4384
|
}>>;
|
4338
4385
|
};
|
4386
|
+
creator: {
|
4387
|
+
patch: (body: {
|
4388
|
+
campaignId: string;
|
4389
|
+
creatorAddress: string;
|
4390
|
+
distributionChain: number;
|
4391
|
+
}, options: {
|
4392
|
+
headers: {
|
4393
|
+
authorization: string;
|
4394
|
+
};
|
4395
|
+
query?: Record<string, unknown> | undefined;
|
4396
|
+
fetch?: RequestInit | undefined;
|
4397
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4398
|
+
200: void;
|
4399
|
+
}>>;
|
4400
|
+
};
|
4401
|
+
"remove-override": {
|
4402
|
+
patch: (body: {
|
4403
|
+
campaignId: string;
|
4404
|
+
field: "opportunityId" | "creatorAddress";
|
4405
|
+
distributionChain: number;
|
4406
|
+
}, options: {
|
4407
|
+
headers: {
|
4408
|
+
authorization: string;
|
4409
|
+
};
|
4410
|
+
query?: Record<string, unknown> | undefined;
|
4411
|
+
fetch?: RequestInit | undefined;
|
4412
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4413
|
+
200: void;
|
4414
|
+
}>>;
|
4415
|
+
};
|
4339
4416
|
metadata: {
|
4340
4417
|
patch: (body: {
|
4341
4418
|
url: string;
|
@@ -4362,6 +4439,7 @@ declare const eden: {
|
|
4362
4439
|
amount: string;
|
4363
4440
|
opportunityId: string;
|
4364
4441
|
creatorAddress: string;
|
4442
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
4365
4443
|
};
|
4366
4444
|
}>>;
|
4367
4445
|
};
|
@@ -4438,6 +4516,7 @@ declare const eden: {
|
|
4438
4516
|
rewardTokenId: string;
|
4439
4517
|
amount: string;
|
4440
4518
|
opportunityId: string;
|
4519
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
4441
4520
|
}[];
|
4442
4521
|
}>>;
|
4443
4522
|
};
|
@@ -4819,7 +4898,18 @@ declare const eden: {
|
|
4819
4898
|
query?: Record<string, unknown> | undefined;
|
4820
4899
|
fetch?: RequestInit | undefined;
|
4821
4900
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4822
|
-
200:
|
4901
|
+
200: {
|
4902
|
+
symbol: string;
|
4903
|
+
name: string | null;
|
4904
|
+
id: string;
|
4905
|
+
icon: string;
|
4906
|
+
chainId: number;
|
4907
|
+
address: string;
|
4908
|
+
decimals: number;
|
4909
|
+
verified: boolean;
|
4910
|
+
isTest: boolean;
|
4911
|
+
price?: number | null | undefined;
|
4912
|
+
} | undefined;
|
4823
4913
|
}>>;
|
4824
4914
|
};
|
4825
4915
|
count: {
|
@@ -7630,6 +7720,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7630
7720
|
rewardTokenId: string;
|
7631
7721
|
amount: string;
|
7632
7722
|
opportunityId: string;
|
7723
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
7633
7724
|
}[] | undefined;
|
7634
7725
|
id: string;
|
7635
7726
|
depositUrl: string | undefined;
|
@@ -8349,6 +8440,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8349
8440
|
amount: string;
|
8350
8441
|
opportunityId: string;
|
8351
8442
|
creatorAddress: string;
|
8443
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
8352
8444
|
} | undefined;
|
8353
8445
|
};
|
8354
8446
|
};
|
@@ -8357,7 +8449,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8357
8449
|
opportunity: {
|
8358
8450
|
patch: {
|
8359
8451
|
body: {
|
8360
|
-
tags?: string[] | undefined;
|
8361
8452
|
opportunityIdentifier?: string | undefined;
|
8362
8453
|
campaignId: string;
|
8363
8454
|
distributionChain: number;
|
@@ -8372,6 +8463,42 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8372
8463
|
};
|
8373
8464
|
};
|
8374
8465
|
};
|
8466
|
+
} & {
|
8467
|
+
creator: {
|
8468
|
+
patch: {
|
8469
|
+
body: {
|
8470
|
+
campaignId: string;
|
8471
|
+
creatorAddress: string;
|
8472
|
+
distributionChain: number;
|
8473
|
+
};
|
8474
|
+
params: {};
|
8475
|
+
query: unknown;
|
8476
|
+
headers: {
|
8477
|
+
authorization: string;
|
8478
|
+
};
|
8479
|
+
response: {
|
8480
|
+
200: void;
|
8481
|
+
};
|
8482
|
+
};
|
8483
|
+
};
|
8484
|
+
} & {
|
8485
|
+
"remove-override": {
|
8486
|
+
patch: {
|
8487
|
+
body: {
|
8488
|
+
campaignId: string;
|
8489
|
+
field: "opportunityId" | "creatorAddress";
|
8490
|
+
distributionChain: number;
|
8491
|
+
};
|
8492
|
+
params: {};
|
8493
|
+
query: unknown;
|
8494
|
+
headers: {
|
8495
|
+
authorization: string;
|
8496
|
+
};
|
8497
|
+
response: {
|
8498
|
+
200: void;
|
8499
|
+
};
|
8500
|
+
};
|
8501
|
+
};
|
8375
8502
|
} & {
|
8376
8503
|
metadata: {
|
8377
8504
|
patch: {
|
@@ -8400,6 +8527,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8400
8527
|
amount: string;
|
8401
8528
|
opportunityId: string;
|
8402
8529
|
creatorAddress: string;
|
8530
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
8403
8531
|
};
|
8404
8532
|
};
|
8405
8533
|
};
|
@@ -8497,6 +8625,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8497
8625
|
rewardTokenId: string;
|
8498
8626
|
amount: string;
|
8499
8627
|
opportunityId: string;
|
8628
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
8500
8629
|
}[];
|
8501
8630
|
};
|
8502
8631
|
};
|
@@ -8561,6 +8690,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8561
8690
|
rewardTokenId: string;
|
8562
8691
|
amount: string;
|
8563
8692
|
opportunityId: string;
|
8693
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
8564
8694
|
};
|
8565
8695
|
};
|
8566
8696
|
};
|
@@ -9026,7 +9156,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9026
9156
|
authorization: string;
|
9027
9157
|
};
|
9028
9158
|
response: {
|
9029
|
-
200:
|
9159
|
+
200: {
|
9160
|
+
symbol: string;
|
9161
|
+
name: string | null;
|
9162
|
+
id: string;
|
9163
|
+
icon: string;
|
9164
|
+
chainId: number;
|
9165
|
+
address: string;
|
9166
|
+
decimals: number;
|
9167
|
+
verified: boolean;
|
9168
|
+
isTest: boolean;
|
9169
|
+
price?: number | null | undefined;
|
9170
|
+
} | undefined;
|
9030
9171
|
};
|
9031
9172
|
};
|
9032
9173
|
};
|
@@ -12741,6 +12882,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12741
12882
|
rewardTokenId: string;
|
12742
12883
|
amount: string;
|
12743
12884
|
opportunityId: string;
|
12885
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
12744
12886
|
}[] | undefined;
|
12745
12887
|
id: string;
|
12746
12888
|
depositUrl: string | undefined;
|
@@ -13132,6 +13274,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13132
13274
|
rewardTokenId: string;
|
13133
13275
|
amount: string;
|
13134
13276
|
opportunityId: string;
|
13277
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
13135
13278
|
};
|
13136
13279
|
}>>;
|
13137
13280
|
} | {
|
@@ -13184,12 +13327,12 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13184
13327
|
amount: string;
|
13185
13328
|
opportunityId: string;
|
13186
13329
|
creatorAddress: string;
|
13330
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
13187
13331
|
} | undefined;
|
13188
13332
|
}>>;
|
13189
13333
|
};
|
13190
13334
|
opportunity: {
|
13191
13335
|
patch: (body: {
|
13192
|
-
tags?: string[] | undefined;
|
13193
13336
|
opportunityIdentifier?: string | undefined;
|
13194
13337
|
campaignId: string;
|
13195
13338
|
distributionChain: number;
|
@@ -13203,6 +13346,36 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13203
13346
|
200: string;
|
13204
13347
|
}>>;
|
13205
13348
|
};
|
13349
|
+
creator: {
|
13350
|
+
patch: (body: {
|
13351
|
+
campaignId: string;
|
13352
|
+
creatorAddress: string;
|
13353
|
+
distributionChain: number;
|
13354
|
+
}, options: {
|
13355
|
+
headers: {
|
13356
|
+
authorization: string;
|
13357
|
+
};
|
13358
|
+
query?: Record<string, unknown> | undefined;
|
13359
|
+
fetch?: RequestInit | undefined;
|
13360
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
13361
|
+
200: void;
|
13362
|
+
}>>;
|
13363
|
+
};
|
13364
|
+
"remove-override": {
|
13365
|
+
patch: (body: {
|
13366
|
+
campaignId: string;
|
13367
|
+
field: "opportunityId" | "creatorAddress";
|
13368
|
+
distributionChain: number;
|
13369
|
+
}, options: {
|
13370
|
+
headers: {
|
13371
|
+
authorization: string;
|
13372
|
+
};
|
13373
|
+
query?: Record<string, unknown> | undefined;
|
13374
|
+
fetch?: RequestInit | undefined;
|
13375
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
13376
|
+
200: void;
|
13377
|
+
}>>;
|
13378
|
+
};
|
13206
13379
|
metadata: {
|
13207
13380
|
patch: (body: {
|
13208
13381
|
url: string;
|
@@ -13229,6 +13402,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13229
13402
|
amount: string;
|
13230
13403
|
opportunityId: string;
|
13231
13404
|
creatorAddress: string;
|
13405
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
13232
13406
|
};
|
13233
13407
|
}>>;
|
13234
13408
|
};
|
@@ -13305,6 +13479,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13305
13479
|
rewardTokenId: string;
|
13306
13480
|
amount: string;
|
13307
13481
|
opportunityId: string;
|
13482
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
13308
13483
|
}[];
|
13309
13484
|
}>>;
|
13310
13485
|
};
|
@@ -13686,7 +13861,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13686
13861
|
query?: Record<string, unknown> | undefined;
|
13687
13862
|
fetch?: RequestInit | undefined;
|
13688
13863
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
13689
|
-
200:
|
13864
|
+
200: {
|
13865
|
+
symbol: string;
|
13866
|
+
name: string | null;
|
13867
|
+
id: string;
|
13868
|
+
icon: string;
|
13869
|
+
chainId: number;
|
13870
|
+
address: string;
|
13871
|
+
decimals: number;
|
13872
|
+
verified: boolean;
|
13873
|
+
isTest: boolean;
|
13874
|
+
price?: number | null | undefined;
|
13875
|
+
} | undefined;
|
13690
13876
|
}>>;
|
13691
13877
|
};
|
13692
13878
|
count: {
|
@@ -16036,6 +16222,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16036
16222
|
rewardTokenId: string;
|
16037
16223
|
amount: string;
|
16038
16224
|
opportunityId: string;
|
16225
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
16039
16226
|
}[] | undefined;
|
16040
16227
|
id: string;
|
16041
16228
|
depositUrl: string | undefined;
|
@@ -16427,6 +16614,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16427
16614
|
rewardTokenId: string;
|
16428
16615
|
amount: string;
|
16429
16616
|
opportunityId: string;
|
16617
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
16430
16618
|
};
|
16431
16619
|
}>>;
|
16432
16620
|
} | {
|
@@ -16479,12 +16667,12 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16479
16667
|
amount: string;
|
16480
16668
|
opportunityId: string;
|
16481
16669
|
creatorAddress: string;
|
16670
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
16482
16671
|
} | undefined;
|
16483
16672
|
}>>;
|
16484
16673
|
};
|
16485
16674
|
opportunity: {
|
16486
16675
|
patch: (body: {
|
16487
|
-
tags?: string[] | undefined;
|
16488
16676
|
opportunityIdentifier?: string | undefined;
|
16489
16677
|
campaignId: string;
|
16490
16678
|
distributionChain: number;
|
@@ -16498,6 +16686,36 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16498
16686
|
200: string;
|
16499
16687
|
}>>;
|
16500
16688
|
};
|
16689
|
+
creator: {
|
16690
|
+
patch: (body: {
|
16691
|
+
campaignId: string;
|
16692
|
+
creatorAddress: string;
|
16693
|
+
distributionChain: number;
|
16694
|
+
}, options: {
|
16695
|
+
headers: {
|
16696
|
+
authorization: string;
|
16697
|
+
};
|
16698
|
+
query?: Record<string, unknown> | undefined;
|
16699
|
+
fetch?: RequestInit | undefined;
|
16700
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16701
|
+
200: void;
|
16702
|
+
}>>;
|
16703
|
+
};
|
16704
|
+
"remove-override": {
|
16705
|
+
patch: (body: {
|
16706
|
+
campaignId: string;
|
16707
|
+
field: "opportunityId" | "creatorAddress";
|
16708
|
+
distributionChain: number;
|
16709
|
+
}, options: {
|
16710
|
+
headers: {
|
16711
|
+
authorization: string;
|
16712
|
+
};
|
16713
|
+
query?: Record<string, unknown> | undefined;
|
16714
|
+
fetch?: RequestInit | undefined;
|
16715
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16716
|
+
200: void;
|
16717
|
+
}>>;
|
16718
|
+
};
|
16501
16719
|
metadata: {
|
16502
16720
|
patch: (body: {
|
16503
16721
|
url: string;
|
@@ -16524,6 +16742,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16524
16742
|
amount: string;
|
16525
16743
|
opportunityId: string;
|
16526
16744
|
creatorAddress: string;
|
16745
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
16527
16746
|
};
|
16528
16747
|
}>>;
|
16529
16748
|
};
|
@@ -16600,6 +16819,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16600
16819
|
rewardTokenId: string;
|
16601
16820
|
amount: string;
|
16602
16821
|
opportunityId: string;
|
16822
|
+
manualOverrides: import("../../database/api/.generated").$Enums.CampaignManualOverride[];
|
16603
16823
|
}[];
|
16604
16824
|
}>>;
|
16605
16825
|
};
|
@@ -16981,7 +17201,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16981
17201
|
query?: Record<string, unknown> | undefined;
|
16982
17202
|
fetch?: RequestInit | undefined;
|
16983
17203
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16984
|
-
200:
|
17204
|
+
200: {
|
17205
|
+
symbol: string;
|
17206
|
+
name: string | null;
|
17207
|
+
id: string;
|
17208
|
+
icon: string;
|
17209
|
+
chainId: number;
|
17210
|
+
address: string;
|
17211
|
+
decimals: number;
|
17212
|
+
verified: boolean;
|
17213
|
+
isTest: boolean;
|
17214
|
+
price?: number | null | undefined;
|
17215
|
+
} | undefined;
|
16985
17216
|
}>>;
|
16986
17217
|
};
|
16987
17218
|
count: {
|