@merkl/api 0.19.12 → 0.19.13
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/src/eden/index.d.ts +460 -456
- package/dist/src/index.d.ts +168 -160
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +199 -158
- package/dist/src/modules/v4/campaign/campaign.controller.js +28 -32
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +3 -1
- package/dist/src/modules/v4/campaign/campaign.model.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.repository.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +5 -10
- package/dist/src/modules/v4/campaign/campaign.service.js +3 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +4 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +5 -6
- package/dist/src/modules/v4/opportunity/opportunity.service.js +6 -9
- package/dist/src/modules/v4/protocol/protocol.service.js +0 -33
- package/dist/src/modules/v4/router.d.ts +168 -160
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
@@ -370,6 +370,7 @@ declare const app: Elysia<"", false, {
|
|
370
370
|
address: string;
|
371
371
|
creatorId: string | null;
|
372
372
|
};
|
373
|
+
createdAt: string;
|
373
374
|
Opportunity: {
|
374
375
|
id: string;
|
375
376
|
name: string;
|
@@ -394,8 +395,6 @@ declare const app: Elysia<"", false, {
|
|
394
395
|
rewardTokenId: string;
|
395
396
|
amount: string;
|
396
397
|
opportunityId: string;
|
397
|
-
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
398
|
-
createdAt: Date;
|
399
398
|
}[] | undefined;
|
400
399
|
id: string;
|
401
400
|
depositUrl: string | undefined;
|
@@ -611,11 +610,11 @@ declare const app: Elysia<"", false, {
|
|
611
610
|
point?: boolean | undefined;
|
612
611
|
tokenAddress?: string | undefined;
|
613
612
|
test?: boolean | undefined;
|
614
|
-
createdAfter?: number | undefined;
|
615
613
|
creatorTag?: string | undefined;
|
616
614
|
distributionChainIds?: number[] | undefined;
|
617
615
|
tokenSymbol?: string | undefined;
|
618
616
|
withOpportunity?: boolean | undefined;
|
617
|
+
createdAfter?: Date | null | undefined;
|
619
618
|
};
|
620
619
|
headers: unknown;
|
621
620
|
response: {
|
@@ -740,6 +739,7 @@ declare const app: Elysia<"", false, {
|
|
740
739
|
startTimestamp: string | number;
|
741
740
|
endTimestamp: string | number;
|
742
741
|
creatorAddress: string;
|
742
|
+
createdAt: string;
|
743
743
|
rewardToken: {
|
744
744
|
price?: number | null | undefined;
|
745
745
|
symbol: string;
|
@@ -903,6 +903,7 @@ declare const app: Elysia<"", false, {
|
|
903
903
|
startTimestamp: string | number;
|
904
904
|
endTimestamp: string | number;
|
905
905
|
creatorAddress: string;
|
906
|
+
createdAt: string;
|
906
907
|
rewardToken: {
|
907
908
|
price?: number | null | undefined;
|
908
909
|
symbol: string;
|
@@ -1246,34 +1247,13 @@ declare const app: Elysia<"", false, {
|
|
1246
1247
|
};
|
1247
1248
|
};
|
1248
1249
|
} & {
|
1249
|
-
|
1250
|
+
":id": {
|
1250
1251
|
get: {
|
1251
1252
|
body: unknown;
|
1252
|
-
params: {
|
1253
|
-
|
1254
|
-
type?: string | undefined;
|
1255
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1256
|
-
items?: number | undefined;
|
1257
|
-
subType?: number | undefined;
|
1258
|
-
page?: number | undefined;
|
1259
|
-
types?: string[] | undefined;
|
1260
|
-
campaignId?: string | undefined;
|
1261
|
-
opportunityId?: string | undefined;
|
1262
|
-
startTimestamp?: string | undefined;
|
1263
|
-
endTimestamp?: string | undefined;
|
1264
|
-
creatorAddress?: string | undefined;
|
1265
|
-
chainId?: number | undefined;
|
1266
|
-
creatorId?: string | undefined;
|
1267
|
-
mainParameter?: string | undefined;
|
1268
|
-
point?: boolean | undefined;
|
1269
|
-
tokenAddress?: string | undefined;
|
1270
|
-
test?: boolean | undefined;
|
1271
|
-
createdAfter?: number | undefined;
|
1272
|
-
creatorTag?: string | undefined;
|
1273
|
-
distributionChainIds?: number[] | undefined;
|
1274
|
-
tokenSymbol?: string | undefined;
|
1275
|
-
withOpportunity?: boolean | undefined;
|
1253
|
+
params: {
|
1254
|
+
id: string;
|
1276
1255
|
};
|
1256
|
+
query: unknown;
|
1277
1257
|
headers: unknown;
|
1278
1258
|
response: {
|
1279
1259
|
200: {
|
@@ -1319,6 +1299,7 @@ declare const app: Elysia<"", false, {
|
|
1319
1299
|
address: string;
|
1320
1300
|
creatorId: string | null;
|
1321
1301
|
};
|
1302
|
+
createdAt: string;
|
1322
1303
|
Opportunity: {
|
1323
1304
|
id: string;
|
1324
1305
|
name: string;
|
@@ -1343,20 +1324,119 @@ declare const app: Elysia<"", false, {
|
|
1343
1324
|
rewardTokenId: string;
|
1344
1325
|
amount: string;
|
1345
1326
|
opportunityId: string;
|
1346
|
-
|
1347
|
-
createdAt: Date;
|
1348
|
-
}[];
|
1327
|
+
};
|
1349
1328
|
};
|
1350
1329
|
};
|
1351
1330
|
};
|
1352
1331
|
} & {
|
1353
|
-
"
|
1332
|
+
"campaigns-to-process": {
|
1333
|
+
index: {
|
1334
|
+
get: {
|
1335
|
+
body: unknown;
|
1336
|
+
params: {};
|
1337
|
+
query: {
|
1338
|
+
chainId: number;
|
1339
|
+
};
|
1340
|
+
headers: unknown;
|
1341
|
+
response: {
|
1342
|
+
200: {
|
1343
|
+
campaignId: string;
|
1344
|
+
endTimestamp: bigint;
|
1345
|
+
CampaignStatus: {
|
1346
|
+
status: import("@db/api").$Enums.RunStatus;
|
1347
|
+
computedUntil: bigint;
|
1348
|
+
processingStarted: bigint;
|
1349
|
+
}[];
|
1350
|
+
}[];
|
1351
|
+
};
|
1352
|
+
};
|
1353
|
+
};
|
1354
|
+
};
|
1355
|
+
} & {
|
1356
|
+
"campaigns-to-process": {
|
1357
|
+
count: {
|
1358
|
+
get: {
|
1359
|
+
body: unknown;
|
1360
|
+
params: {};
|
1361
|
+
query: {
|
1362
|
+
chainId: number;
|
1363
|
+
};
|
1364
|
+
headers: unknown;
|
1365
|
+
response: {
|
1366
|
+
200: number;
|
1367
|
+
};
|
1368
|
+
};
|
1369
|
+
};
|
1370
|
+
};
|
1371
|
+
} & {
|
1372
|
+
"campaigns-to-process": {
|
1373
|
+
next: {
|
1374
|
+
get: {
|
1375
|
+
body: unknown;
|
1376
|
+
params: {};
|
1377
|
+
query: {
|
1378
|
+
chainId: number;
|
1379
|
+
};
|
1380
|
+
headers: unknown;
|
1381
|
+
response: {
|
1382
|
+
200: {
|
1383
|
+
campaignId: string;
|
1384
|
+
};
|
1385
|
+
};
|
1386
|
+
};
|
1387
|
+
};
|
1388
|
+
};
|
1389
|
+
} & {
|
1390
|
+
"campaigns-to-process": {
|
1391
|
+
engine: {
|
1392
|
+
post: {
|
1393
|
+
body: unknown;
|
1394
|
+
params: {};
|
1395
|
+
query: {
|
1396
|
+
chainId: number;
|
1397
|
+
};
|
1398
|
+
headers: {
|
1399
|
+
authorization: string;
|
1400
|
+
};
|
1401
|
+
response: {
|
1402
|
+
200: {
|
1403
|
+
campaignId: string;
|
1404
|
+
};
|
1405
|
+
};
|
1406
|
+
};
|
1407
|
+
};
|
1408
|
+
};
|
1409
|
+
};
|
1410
|
+
} & {
|
1411
|
+
campaigns: {
|
1412
|
+
index: {
|
1354
1413
|
get: {
|
1355
1414
|
body: unknown;
|
1356
|
-
params: {
|
1357
|
-
|
1415
|
+
params: {};
|
1416
|
+
query: {
|
1417
|
+
type?: string | undefined;
|
1418
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1419
|
+
items?: number | undefined;
|
1420
|
+
subType?: number | undefined;
|
1421
|
+
page?: number | undefined;
|
1422
|
+
types?: string[] | undefined;
|
1423
|
+
campaignId?: string | undefined;
|
1424
|
+
opportunityId?: string | undefined;
|
1425
|
+
startTimestamp?: string | undefined;
|
1426
|
+
endTimestamp?: string | undefined;
|
1427
|
+
creatorAddress?: string | undefined;
|
1428
|
+
chainId?: number | undefined;
|
1429
|
+
creatorId?: string | undefined;
|
1430
|
+
mainParameter?: string | undefined;
|
1431
|
+
point?: boolean | undefined;
|
1432
|
+
tokenAddress?: string | undefined;
|
1433
|
+
test?: boolean | undefined;
|
1434
|
+
creatorTag?: string | undefined;
|
1435
|
+
distributionChainIds?: number[] | undefined;
|
1436
|
+
tokenSymbol?: string | undefined;
|
1437
|
+
withOpportunity?: boolean | undefined;
|
1438
|
+
createdAfter?: Date | null | undefined;
|
1358
1439
|
};
|
1359
|
-
query: unknown;
|
1360
1440
|
headers: unknown;
|
1361
1441
|
response: {
|
1362
1442
|
200: {
|
@@ -1402,6 +1482,7 @@ declare const app: Elysia<"", false, {
|
|
1402
1482
|
address: string;
|
1403
1483
|
creatorId: string | null;
|
1404
1484
|
};
|
1485
|
+
createdAt: string;
|
1405
1486
|
Opportunity: {
|
1406
1487
|
id: string;
|
1407
1488
|
name: string;
|
@@ -1426,13 +1507,13 @@ declare const app: Elysia<"", false, {
|
|
1426
1507
|
rewardTokenId: string;
|
1427
1508
|
amount: string;
|
1428
1509
|
opportunityId: string;
|
1429
|
-
|
1430
|
-
createdAt: Date;
|
1431
|
-
};
|
1510
|
+
}[];
|
1432
1511
|
};
|
1433
1512
|
};
|
1434
1513
|
};
|
1435
|
-
}
|
1514
|
+
};
|
1515
|
+
} & {
|
1516
|
+
campaigns: {
|
1436
1517
|
count: {
|
1437
1518
|
get: {
|
1438
1519
|
body: unknown;
|
@@ -1455,11 +1536,11 @@ declare const app: Elysia<"", false, {
|
|
1455
1536
|
point?: boolean | undefined;
|
1456
1537
|
tokenAddress?: string | undefined;
|
1457
1538
|
test?: boolean | undefined;
|
1458
|
-
createdAfter?: number | undefined;
|
1459
1539
|
creatorTag?: string | undefined;
|
1460
1540
|
distributionChainIds?: number[] | undefined;
|
1461
1541
|
tokenSymbol?: string | undefined;
|
1462
1542
|
withOpportunity?: boolean | undefined;
|
1543
|
+
createdAfter?: Date | null | undefined;
|
1463
1544
|
};
|
1464
1545
|
headers: unknown;
|
1465
1546
|
response: {
|
@@ -1467,7 +1548,48 @@ declare const app: Elysia<"", false, {
|
|
1467
1548
|
};
|
1468
1549
|
};
|
1469
1550
|
};
|
1470
|
-
}
|
1551
|
+
};
|
1552
|
+
} & {
|
1553
|
+
campaignscount: {
|
1554
|
+
"by-chains": {
|
1555
|
+
get: {
|
1556
|
+
body: unknown;
|
1557
|
+
params: {};
|
1558
|
+
query: {
|
1559
|
+
type?: string | undefined;
|
1560
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1561
|
+
items?: number | undefined;
|
1562
|
+
subType?: number | undefined;
|
1563
|
+
page?: number | undefined;
|
1564
|
+
types?: string[] | undefined;
|
1565
|
+
campaignId?: string | undefined;
|
1566
|
+
opportunityId?: string | undefined;
|
1567
|
+
startTimestamp?: string | undefined;
|
1568
|
+
endTimestamp?: string | undefined;
|
1569
|
+
creatorAddress?: string | undefined;
|
1570
|
+
chainId?: number | undefined;
|
1571
|
+
creatorId?: string | undefined;
|
1572
|
+
mainParameter?: string | undefined;
|
1573
|
+
point?: boolean | undefined;
|
1574
|
+
tokenAddress?: string | undefined;
|
1575
|
+
test?: boolean | undefined;
|
1576
|
+
creatorTag?: string | undefined;
|
1577
|
+
distributionChainIds?: number[] | undefined;
|
1578
|
+
tokenSymbol?: string | undefined;
|
1579
|
+
withOpportunity?: boolean | undefined;
|
1580
|
+
createdAfter?: Date | null | undefined;
|
1581
|
+
};
|
1582
|
+
headers: unknown;
|
1583
|
+
response: {
|
1584
|
+
200: {
|
1585
|
+
[x: string]: number;
|
1586
|
+
};
|
1587
|
+
};
|
1588
|
+
};
|
1589
|
+
};
|
1590
|
+
};
|
1591
|
+
} & {
|
1592
|
+
campaigns: {
|
1471
1593
|
count: {
|
1472
1594
|
"by-type": {
|
1473
1595
|
get: {
|
@@ -1491,11 +1613,11 @@ declare const app: Elysia<"", false, {
|
|
1491
1613
|
point?: boolean | undefined;
|
1492
1614
|
tokenAddress?: string | undefined;
|
1493
1615
|
test?: boolean | undefined;
|
1494
|
-
createdAfter?: number | undefined;
|
1495
1616
|
creatorTag?: string | undefined;
|
1496
1617
|
distributionChainIds?: number[] | undefined;
|
1497
1618
|
tokenSymbol?: string | undefined;
|
1498
1619
|
withOpportunity?: boolean | undefined;
|
1620
|
+
createdAfter?: Date | null | undefined;
|
1499
1621
|
};
|
1500
1622
|
headers: unknown;
|
1501
1623
|
response: {
|
@@ -1506,7 +1628,9 @@ declare const app: Elysia<"", false, {
|
|
1506
1628
|
};
|
1507
1629
|
};
|
1508
1630
|
};
|
1509
|
-
}
|
1631
|
+
};
|
1632
|
+
} & {
|
1633
|
+
campaigns: {
|
1510
1634
|
count: {
|
1511
1635
|
"by-protocol": {
|
1512
1636
|
get: {
|
@@ -1530,11 +1654,11 @@ declare const app: Elysia<"", false, {
|
|
1530
1654
|
point?: boolean | undefined;
|
1531
1655
|
tokenAddress?: string | undefined;
|
1532
1656
|
test?: boolean | undefined;
|
1533
|
-
createdAfter?: number | undefined;
|
1534
1657
|
creatorTag?: string | undefined;
|
1535
1658
|
distributionChainIds?: number[] | undefined;
|
1536
1659
|
tokenSymbol?: string | undefined;
|
1537
1660
|
withOpportunity?: boolean | undefined;
|
1661
|
+
createdAfter?: Date | null | undefined;
|
1538
1662
|
};
|
1539
1663
|
headers: unknown;
|
1540
1664
|
response: {
|
@@ -1545,122 +1669,6 @@ declare const app: Elysia<"", false, {
|
|
1545
1669
|
};
|
1546
1670
|
};
|
1547
1671
|
};
|
1548
|
-
} & {
|
1549
|
-
"campaigns-to-process": {
|
1550
|
-
index: {
|
1551
|
-
get: {
|
1552
|
-
body: unknown;
|
1553
|
-
params: {};
|
1554
|
-
query: {
|
1555
|
-
chainId: number;
|
1556
|
-
};
|
1557
|
-
headers: unknown;
|
1558
|
-
response: {
|
1559
|
-
200: {
|
1560
|
-
campaignId: string;
|
1561
|
-
endTimestamp: bigint;
|
1562
|
-
CampaignStatus: {
|
1563
|
-
status: import("@db/api").$Enums.RunStatus;
|
1564
|
-
computedUntil: bigint;
|
1565
|
-
processingStarted: bigint;
|
1566
|
-
}[];
|
1567
|
-
}[];
|
1568
|
-
};
|
1569
|
-
};
|
1570
|
-
};
|
1571
|
-
};
|
1572
|
-
} & {
|
1573
|
-
"campaigns-to-process": {
|
1574
|
-
count: {
|
1575
|
-
get: {
|
1576
|
-
body: unknown;
|
1577
|
-
params: {};
|
1578
|
-
query: {
|
1579
|
-
chainId: number;
|
1580
|
-
};
|
1581
|
-
headers: unknown;
|
1582
|
-
response: {
|
1583
|
-
200: number;
|
1584
|
-
};
|
1585
|
-
};
|
1586
|
-
};
|
1587
|
-
};
|
1588
|
-
} & {
|
1589
|
-
"campaigns-to-process": {
|
1590
|
-
next: {
|
1591
|
-
get: {
|
1592
|
-
body: unknown;
|
1593
|
-
params: {};
|
1594
|
-
query: {
|
1595
|
-
chainId: number;
|
1596
|
-
};
|
1597
|
-
headers: unknown;
|
1598
|
-
response: {
|
1599
|
-
200: {
|
1600
|
-
campaignId: string;
|
1601
|
-
};
|
1602
|
-
};
|
1603
|
-
};
|
1604
|
-
};
|
1605
|
-
};
|
1606
|
-
} & {
|
1607
|
-
"campaigns-to-process": {
|
1608
|
-
engine: {
|
1609
|
-
post: {
|
1610
|
-
body: unknown;
|
1611
|
-
params: {};
|
1612
|
-
query: {
|
1613
|
-
chainId: number;
|
1614
|
-
};
|
1615
|
-
headers: {
|
1616
|
-
authorization: string;
|
1617
|
-
};
|
1618
|
-
response: {
|
1619
|
-
200: {
|
1620
|
-
campaignId: string;
|
1621
|
-
};
|
1622
|
-
};
|
1623
|
-
};
|
1624
|
-
};
|
1625
|
-
};
|
1626
|
-
};
|
1627
|
-
campaignscount: {
|
1628
|
-
"by-chains": {
|
1629
|
-
get: {
|
1630
|
-
body: unknown;
|
1631
|
-
params: {};
|
1632
|
-
query: {
|
1633
|
-
type?: string | undefined;
|
1634
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
1635
|
-
items?: number | undefined;
|
1636
|
-
subType?: number | undefined;
|
1637
|
-
page?: number | undefined;
|
1638
|
-
types?: string[] | undefined;
|
1639
|
-
campaignId?: string | undefined;
|
1640
|
-
opportunityId?: string | undefined;
|
1641
|
-
startTimestamp?: string | undefined;
|
1642
|
-
endTimestamp?: string | undefined;
|
1643
|
-
creatorAddress?: string | undefined;
|
1644
|
-
chainId?: number | undefined;
|
1645
|
-
creatorId?: string | undefined;
|
1646
|
-
mainParameter?: string | undefined;
|
1647
|
-
point?: boolean | undefined;
|
1648
|
-
tokenAddress?: string | undefined;
|
1649
|
-
test?: boolean | undefined;
|
1650
|
-
createdAfter?: number | undefined;
|
1651
|
-
creatorTag?: string | undefined;
|
1652
|
-
distributionChainIds?: number[] | undefined;
|
1653
|
-
tokenSymbol?: string | undefined;
|
1654
|
-
withOpportunity?: boolean | undefined;
|
1655
|
-
};
|
1656
|
-
headers: unknown;
|
1657
|
-
response: {
|
1658
|
-
200: {
|
1659
|
-
[x: string]: number;
|
1660
|
-
};
|
1661
|
-
};
|
1662
|
-
};
|
1663
|
-
};
|
1664
1672
|
};
|
1665
1673
|
};
|
1666
1674
|
} & {
|