@merkl/api 1.14.27 → 1.16.6

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 (118) hide show
  1. package/dist/src/eden/index.d.ts +516 -5
  2. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js.map +1 -1
  3. package/dist/src/engine/implementations/AaveV4Hub/metadata.d.ts +41 -0
  4. package/dist/src/engine/implementations/AaveV4Hub/metadata.js.map +1 -0
  5. package/dist/src/engine/implementations/AaveV4Spoke/metadata.d.ts +40 -0
  6. package/dist/src/engine/implementations/AaveV4Spoke/metadata.js.map +1 -0
  7. package/dist/src/engine/implementations/Blend/metadata.js.map +1 -1
  8. package/dist/src/engine/implementations/Blend/tvl.d.ts +13 -0
  9. package/dist/src/engine/implementations/Blend/tvl.js.map +1 -0
  10. package/dist/src/engine/implementations/Ekubo/tvl.js.map +1 -1
  11. package/dist/src/engine/implementations/FluidVault/tvl.js.map +1 -1
  12. package/dist/src/engine/implementations/SacHolder/tvl.d.ts +12 -0
  13. package/dist/src/engine/implementations/SacHolder/tvl.js.map +1 -0
  14. package/dist/src/engine/implementations/clamm/utils.js.map +1 -1
  15. package/dist/src/engine/implementations/morphoCollateral/tvl.js.map +1 -1
  16. package/dist/src/engine/implementations/uniswapv4/tvl.js.map +1 -1
  17. package/dist/src/engine/metadata/factory.js.map +1 -1
  18. package/dist/src/engine/tvl/factory.js.map +1 -1
  19. package/dist/src/engine/tvl/logStates.js.map +1 -1
  20. package/dist/src/index.d.ts +590 -5
  21. package/dist/src/jobs/auto-claim-etl/config.d.ts +0 -5
  22. package/dist/src/jobs/auto-claim-etl/config.js.map +1 -1
  23. package/dist/src/jobs/auto-claim-etl/index.js.map +1 -1
  24. package/dist/src/jobs/diff-breakdown-etl/index.js.map +1 -1
  25. package/dist/src/jobs/diff-etl/index.js.map +1 -1
  26. package/dist/src/jobs/leaf-breakdown-etl/index.js.map +1 -1
  27. package/dist/src/jobs/leaf-etl/index.js.map +1 -1
  28. package/dist/src/jobs/reward-breakdowns-etl/index.js.map +1 -1
  29. package/dist/src/jobs/rewards-etl/index.js.map +1 -1
  30. package/dist/src/jobs/tx-executor/hooks/auto-claim.d.ts +10 -0
  31. package/dist/src/jobs/tx-executor/hooks/auto-claim.js.map +1 -0
  32. package/dist/src/jobs/tx-executor/hooks/index.d.ts +9 -0
  33. package/dist/src/jobs/tx-executor/hooks/index.js.map +1 -0
  34. package/dist/src/jobs/tx-executor/index.d.ts +1 -0
  35. package/dist/src/jobs/tx-executor/index.js.map +1 -0
  36. package/dist/src/jobs/tx-executor/process.d.ts +11 -0
  37. package/dist/src/jobs/tx-executor/process.js.map +1 -0
  38. package/dist/src/jobs/tx-executor/types.d.ts +56 -0
  39. package/dist/src/jobs/tx-executor/types.js.map +1 -0
  40. package/dist/src/jobs/utils/etl.d.ts +4 -32
  41. package/dist/src/jobs/utils/etl.js.map +1 -1
  42. package/dist/src/modules/v4/autoclaim/autoclaim.controller.d.ts +430 -0
  43. package/dist/src/modules/v4/autoclaim/autoclaim.controller.js.map +1 -0
  44. package/dist/src/modules/v4/autoclaim/autoclaim.model.d.ts +52 -0
  45. package/dist/src/modules/v4/autoclaim/autoclaim.model.js.map +1 -0
  46. package/dist/src/modules/v4/autoclaim/autoclaim.pricing.d.ts +10 -0
  47. package/dist/src/modules/v4/autoclaim/autoclaim.pricing.js.map +1 -0
  48. package/dist/src/modules/v4/autoclaim/autoclaim.repository.d.ts +260 -0
  49. package/dist/src/modules/v4/autoclaim/autoclaim.repository.js.map +1 -0
  50. package/dist/src/modules/v4/autoclaim/autoclaim.service.d.ts +219 -0
  51. package/dist/src/modules/v4/autoclaim/autoclaim.service.js.map +1 -0
  52. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +16 -4
  53. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +2 -1
  54. package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
  55. package/dist/src/modules/v4/campaign/campaign.model.d.ts +4 -2
  56. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  57. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +70 -70
  58. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +11 -0
  59. package/dist/src/modules/v4/campaign/campaign.service.d.ts +24 -10
  60. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
  61. package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +1 -0
  62. package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +1 -1
  63. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.repository.js.map +1 -1
  64. package/dist/src/modules/v4/config/config.controller.d.ts +1 -0
  65. package/dist/src/modules/v4/config/config.service.d.ts +1 -0
  66. package/dist/src/modules/v4/creator/creator.controller.d.ts +6 -1
  67. package/dist/src/modules/v4/creator/creator.model.d.ts +1 -0
  68. package/dist/src/modules/v4/creator/creator.service.d.ts +3 -1
  69. package/dist/src/modules/v4/credit/credit.controller.d.ts +181 -0
  70. package/dist/src/modules/v4/credit/credit.controller.js.map +1 -0
  71. package/dist/src/modules/v4/credit/credit.model.d.ts +20 -0
  72. package/dist/src/modules/v4/credit/credit.model.js.map +1 -0
  73. package/dist/src/modules/v4/credit/credit.repository.d.ts +51 -0
  74. package/dist/src/modules/v4/credit/credit.repository.js.map +1 -0
  75. package/dist/src/modules/v4/credit/credit.service.d.ts +52 -0
  76. package/dist/src/modules/v4/credit/credit.service.js.map +1 -0
  77. package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
  78. package/dist/src/modules/v4/enum/enum.service.js.map +1 -1
  79. package/dist/src/modules/v4/icon/icon.service.d.ts +1 -1
  80. package/dist/src/modules/v4/icon/icon.service.js.map +1 -1
  81. package/dist/src/modules/v4/indexingRange/indexingRange.repository.d.ts +5 -0
  82. package/dist/src/modules/v4/indexingRange/indexingRange.repository.js.map +1 -1
  83. package/dist/src/modules/v4/leaf/leaf.repository.d.ts +4 -0
  84. package/dist/src/modules/v4/leaf/leaf.service.d.ts +2 -0
  85. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +16 -0
  86. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +2 -1
  87. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +4 -0
  88. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  89. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +9 -0
  90. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.js.map +1 -1
  91. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +6 -0
  92. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +11 -2
  93. package/dist/src/modules/v4/payload/payload.controller.d.ts +3 -0
  94. package/dist/src/modules/v4/payload/payload.service.d.ts +4 -0
  95. package/dist/src/modules/v4/programPayload/programPayload.service.js.map +1 -1
  96. package/dist/src/modules/v4/protocol/protocol.service.js.map +1 -1
  97. package/dist/src/modules/v4/reward/reward.service.d.ts +5 -0
  98. package/dist/src/modules/v4/router.d.ts +590 -5
  99. package/dist/src/modules/v4/router.js.map +1 -1
  100. package/dist/src/modules/v4/token/token.service.d.ts +4 -0
  101. package/dist/src/modules/v4/token/token.service.js.map +1 -1
  102. package/dist/src/modules/v4/transaction/transaction.service.d.ts +2178 -1650
  103. package/dist/src/utils/getAPR.d.ts +1299 -1035
  104. package/dist/src/utils/parseDistributionType.d.ts +268 -4
  105. package/dist/tsconfig.tsbuildinfo +1 -1
  106. package/package.json +1 -1
  107. package/dist/src/jobs/auto-claim-etl/extract.d.ts +0 -35
  108. package/dist/src/jobs/auto-claim-etl/extract.js.map +0 -1
  109. package/dist/src/jobs/auto-claim-etl/load.d.ts +0 -18
  110. package/dist/src/jobs/auto-claim-etl/load.js.map +0 -1
  111. package/dist/src/jobs/auto-claim-etl/transform.d.ts +0 -3
  112. package/dist/src/jobs/auto-claim-etl/transform.js.map +0 -1
  113. package/dist/src/jobs/auto-claim-etl/types.d.ts +0 -52
  114. package/dist/src/jobs/auto-claim-etl/types.js.map +0 -1
  115. package/dist/src/modules/v4/bucket/bucket.model.d.ts +0 -9
  116. package/dist/src/modules/v4/bucket/bucket.model.js.map +0 -1
  117. package/dist/src/modules/v4/bucket/bucket.service.d.ts +0 -14
  118. package/dist/src/modules/v4/bucket/bucket.service.js.map +0 -1
@@ -1206,6 +1206,356 @@ declare const eden: {
1206
1206
  }>>;
1207
1207
  };
1208
1208
  };
1209
+ autoclaim: ((params: {
1210
+ chainId: string | number;
1211
+ }) => {} & ((params: {
1212
+ scopeId: string | number;
1213
+ }) => {
1214
+ get: (options?: {
1215
+ fetch?: RequestInit | undefined;
1216
+ headers?: Record<string, unknown> | undefined;
1217
+ query?: Record<string, unknown> | undefined;
1218
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1219
+ 200: {
1220
+ Campaign: {
1221
+ id: string;
1222
+ computeChainId: number;
1223
+ distributionChainId: number;
1224
+ campaignId: string;
1225
+ type: string;
1226
+ distributionType: import("@package/databases").DistributionType;
1227
+ subType: number | null;
1228
+ rewardTokenId: string;
1229
+ amount: string;
1230
+ opportunityId: string;
1231
+ startTimestamp: bigint;
1232
+ endTimestamp: bigint;
1233
+ params: import("@prisma/client/runtime/client").JsonValue;
1234
+ description: string | null;
1235
+ pauseCompute: string | null;
1236
+ pausePrecompute: string | null;
1237
+ dailyRewards: number;
1238
+ apr: number;
1239
+ creatorAddress: string;
1240
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
1241
+ createdAt: Date;
1242
+ rootCampaignId: string | null;
1243
+ parentCampaignId: string | null;
1244
+ isPrivate: boolean;
1245
+ campaignEncodingHash: string | null;
1246
+ } | null;
1247
+ Creator: {
1248
+ Credit: {
1249
+ creatorId: string;
1250
+ amount: number;
1251
+ } | null;
1252
+ } & {
1253
+ id: string;
1254
+ icon: string | null;
1255
+ name: string;
1256
+ rebateFee: number;
1257
+ hubspotCompanyId: string | null;
1258
+ };
1259
+ Token: {
1260
+ id: string;
1261
+ name: string | null;
1262
+ chainId: number;
1263
+ address: string;
1264
+ decimals: number;
1265
+ symbol: string;
1266
+ displaySymbol: string;
1267
+ icon: string;
1268
+ verified: boolean;
1269
+ isTest: boolean;
1270
+ type: import("@package/databases").TokenType;
1271
+ isNative: boolean;
1272
+ underlyingTokenId: string | null;
1273
+ price: number | null;
1274
+ updatedAt: number | null;
1275
+ priceSource: string | null;
1276
+ } | null;
1277
+ User: {
1278
+ address: string;
1279
+ tags: string[];
1280
+ creatorId: string | null;
1281
+ } | null;
1282
+ } & {
1283
+ chainId: number;
1284
+ scopeType: import("@package/databases").AutoClaimScopeType;
1285
+ scopeId: string;
1286
+ creatorId: string;
1287
+ tokenAddress: string | null;
1288
+ campaignId: string | null;
1289
+ userAddress: string | null;
1290
+ minimumAmount: number | null;
1291
+ minimumInterval: number | null;
1292
+ active: boolean;
1293
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
1294
+ };
1295
+ 422: {
1296
+ type: "validation";
1297
+ on: string;
1298
+ summary?: string | undefined;
1299
+ message?: string | undefined;
1300
+ found?: unknown;
1301
+ property?: string | undefined;
1302
+ expected?: string | undefined;
1303
+ };
1304
+ }>>;
1305
+ patch: (body: {
1306
+ minimumAmount?: number | undefined;
1307
+ minimumInterval?: number | undefined;
1308
+ active?: boolean | undefined;
1309
+ pricingConfig?: {
1310
+ type: import("@package/resources/enums").PricingConfigType.PER_CLAIM;
1311
+ pricePerClaim?: number | undefined;
1312
+ allowNegativeCredits?: boolean | undefined;
1313
+ } | null | undefined;
1314
+ }, options: {
1315
+ fetch?: RequestInit | undefined;
1316
+ headers: {
1317
+ authorization: string;
1318
+ };
1319
+ query?: Record<string, unknown> | undefined;
1320
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1321
+ 200: {
1322
+ chainId: number;
1323
+ scopeType: import("@package/databases").AutoClaimScopeType;
1324
+ scopeId: string;
1325
+ creatorId: string;
1326
+ tokenAddress: string | null;
1327
+ campaignId: string | null;
1328
+ userAddress: string | null;
1329
+ minimumAmount: number | null;
1330
+ minimumInterval: number | null;
1331
+ active: boolean;
1332
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
1333
+ };
1334
+ 422: {
1335
+ type: "validation";
1336
+ on: string;
1337
+ summary?: string | undefined;
1338
+ message?: string | undefined;
1339
+ found?: unknown;
1340
+ property?: string | undefined;
1341
+ expected?: string | undefined;
1342
+ };
1343
+ }>>;
1344
+ claims: {
1345
+ get: (options: {
1346
+ fetch?: RequestInit | undefined;
1347
+ headers: {
1348
+ authorization: string;
1349
+ };
1350
+ query?: Record<string, unknown> | undefined;
1351
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1352
+ 200: {
1353
+ recipient: string;
1354
+ tokenAddress: string;
1355
+ tokenSymbol: string;
1356
+ tokenDecimals: number;
1357
+ tokenIcon: string;
1358
+ distributionChainId: number;
1359
+ amount: string;
1360
+ claimed: string;
1361
+ unclaimed: string;
1362
+ unclaimedUsd: number;
1363
+ proof: string[];
1364
+ root: string;
1365
+ lastClaimedTimestamp: number | undefined;
1366
+ }[];
1367
+ 422: {
1368
+ type: "validation";
1369
+ on: string;
1370
+ summary?: string | undefined;
1371
+ message?: string | undefined;
1372
+ found?: unknown;
1373
+ property?: string | undefined;
1374
+ expected?: string | undefined;
1375
+ };
1376
+ }>>;
1377
+ };
1378
+ tracked: {
1379
+ get: (options: {
1380
+ fetch?: RequestInit | undefined;
1381
+ headers: {
1382
+ authorization: string;
1383
+ };
1384
+ query?: Record<string, unknown> | undefined;
1385
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1386
+ 200: {
1387
+ recipient: string;
1388
+ tokenAddress: string;
1389
+ tokenSymbol: string;
1390
+ tokenDecimals: number;
1391
+ tokenIcon: string;
1392
+ distributionChainId: number;
1393
+ amount: string;
1394
+ claimed: string;
1395
+ unclaimed: string;
1396
+ unclaimedUsd: number;
1397
+ proof: string[];
1398
+ root: string;
1399
+ lastClaimedTimestamp: number | undefined;
1400
+ }[];
1401
+ 422: {
1402
+ type: "validation";
1403
+ on: string;
1404
+ summary?: string | undefined;
1405
+ message?: string | undefined;
1406
+ found?: unknown;
1407
+ property?: string | undefined;
1408
+ expected?: string | undefined;
1409
+ };
1410
+ }>>;
1411
+ };
1412
+ })) & {
1413
+ get: (options: {
1414
+ fetch?: RequestInit | undefined;
1415
+ headers?: Record<string, unknown> | undefined;
1416
+ query: {
1417
+ page?: number | undefined;
1418
+ items?: number | undefined;
1419
+ chainId?: number | undefined;
1420
+ scopeType?: "CAMPAIGN" | "CREATOR" | "TOKEN" | "USER" | undefined;
1421
+ creatorId?: string | undefined;
1422
+ tokenAddress?: string | undefined;
1423
+ userAddress?: string | undefined;
1424
+ active?: boolean | undefined;
1425
+ };
1426
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1427
+ 200: ({
1428
+ Campaign: {
1429
+ id: string;
1430
+ computeChainId: number;
1431
+ distributionChainId: number;
1432
+ campaignId: string;
1433
+ type: string;
1434
+ distributionType: import("@package/databases").DistributionType;
1435
+ subType: number | null;
1436
+ rewardTokenId: string;
1437
+ amount: string;
1438
+ opportunityId: string;
1439
+ startTimestamp: bigint;
1440
+ endTimestamp: bigint;
1441
+ params: import("@prisma/client/runtime/client").JsonValue;
1442
+ description: string | null;
1443
+ pauseCompute: string | null;
1444
+ pausePrecompute: string | null;
1445
+ dailyRewards: number;
1446
+ apr: number;
1447
+ creatorAddress: string;
1448
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
1449
+ createdAt: Date;
1450
+ rootCampaignId: string | null;
1451
+ parentCampaignId: string | null;
1452
+ isPrivate: boolean;
1453
+ campaignEncodingHash: string | null;
1454
+ } | null;
1455
+ Creator: {
1456
+ Credit: {
1457
+ creatorId: string;
1458
+ amount: number;
1459
+ } | null;
1460
+ } & {
1461
+ id: string;
1462
+ icon: string | null;
1463
+ name: string;
1464
+ rebateFee: number;
1465
+ hubspotCompanyId: string | null;
1466
+ };
1467
+ Token: {
1468
+ id: string;
1469
+ name: string | null;
1470
+ chainId: number;
1471
+ address: string;
1472
+ decimals: number;
1473
+ symbol: string;
1474
+ displaySymbol: string;
1475
+ icon: string;
1476
+ verified: boolean;
1477
+ isTest: boolean;
1478
+ type: import("@package/databases").TokenType;
1479
+ isNative: boolean;
1480
+ underlyingTokenId: string | null;
1481
+ price: number | null;
1482
+ updatedAt: number | null;
1483
+ priceSource: string | null;
1484
+ } | null;
1485
+ User: {
1486
+ address: string;
1487
+ tags: string[];
1488
+ creatorId: string | null;
1489
+ } | null;
1490
+ } & {
1491
+ chainId: number;
1492
+ scopeType: import("@package/databases").AutoClaimScopeType;
1493
+ scopeId: string;
1494
+ creatorId: string;
1495
+ tokenAddress: string | null;
1496
+ campaignId: string | null;
1497
+ userAddress: string | null;
1498
+ minimumAmount: number | null;
1499
+ minimumInterval: number | null;
1500
+ active: boolean;
1501
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
1502
+ })[];
1503
+ 422: {
1504
+ type: "validation";
1505
+ on: string;
1506
+ summary?: string | undefined;
1507
+ message?: string | undefined;
1508
+ found?: unknown;
1509
+ property?: string | undefined;
1510
+ expected?: string | undefined;
1511
+ };
1512
+ }>>;
1513
+ post: (body: {
1514
+ chainId: number;
1515
+ scopeType: "CAMPAIGN" | "CREATOR" | "TOKEN" | "USER";
1516
+ scopeId: string;
1517
+ creatorId: string;
1518
+ tokenAddress?: string | undefined;
1519
+ campaignId?: string | undefined;
1520
+ userAddress?: string | undefined;
1521
+ minimumAmount?: number | undefined;
1522
+ minimumInterval?: number | undefined;
1523
+ pricingConfig?: {
1524
+ type: import("@package/resources/enums").PricingConfigType.PER_CLAIM;
1525
+ pricePerClaim?: number | undefined;
1526
+ allowNegativeCredits?: boolean | undefined;
1527
+ } | undefined;
1528
+ }, options: {
1529
+ fetch?: RequestInit | undefined;
1530
+ headers: {
1531
+ authorization: string;
1532
+ };
1533
+ query?: Record<string, unknown> | undefined;
1534
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1535
+ 200: {
1536
+ chainId: number;
1537
+ scopeType: import("@package/databases").AutoClaimScopeType;
1538
+ scopeId: string;
1539
+ creatorId: string;
1540
+ tokenAddress: string | null;
1541
+ campaignId: string | null;
1542
+ userAddress: string | null;
1543
+ minimumAmount: number | null;
1544
+ minimumInterval: number | null;
1545
+ active: boolean;
1546
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
1547
+ };
1548
+ 422: {
1549
+ type: "validation";
1550
+ on: string;
1551
+ summary?: string | undefined;
1552
+ message?: string | undefined;
1553
+ found?: unknown;
1554
+ property?: string | undefined;
1555
+ expected?: string | undefined;
1556
+ };
1557
+ }>>;
1558
+ };
1209
1559
  blacklists: {
1210
1560
  get: (options: {
1211
1561
  fetch?: RequestInit | undefined;
@@ -2039,6 +2389,7 @@ declare const eden: {
2039
2389
  onChainCampaignId?: string | undefined;
2040
2390
  }[] | undefined;
2041
2391
  pauseCompute?: string | null | undefined;
2392
+ pausePrecompute?: string | null | undefined;
2042
2393
  hasOverrides?: boolean | undefined;
2043
2394
  isPrivate: boolean;
2044
2395
  campaignEncodingHash?: string | undefined;
@@ -2165,6 +2516,7 @@ declare const eden: {
2165
2516
  params: unknown;
2166
2517
  parentCampaignId?: string | null | undefined;
2167
2518
  pauseCompute?: string | null | undefined;
2519
+ pausePrecompute?: string | null | undefined;
2168
2520
  rewardToken: {
2169
2521
  id: string;
2170
2522
  name: string | null;
@@ -2202,6 +2554,7 @@ declare const eden: {
2202
2554
  patch: (body: {
2203
2555
  description?: string | undefined;
2204
2556
  pauseCompute?: string | null | undefined;
2557
+ pausePrecompute?: string | null | undefined;
2205
2558
  }, options: {
2206
2559
  fetch?: RequestInit | undefined;
2207
2560
  headers: {
@@ -2211,7 +2564,7 @@ declare const eden: {
2211
2564
  applyToAllCampaignsInOpportunity?: boolean | undefined;
2212
2565
  };
2213
2566
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2214
- 200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
2567
+ 200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
2215
2568
  subType: number | null;
2216
2569
  startTimestamp: number;
2217
2570
  endTimestamp: number;
@@ -2219,7 +2572,8 @@ declare const eden: {
2219
2572
  parentCampaignId?: string | undefined;
2220
2573
  rootCampaignId?: string | undefined;
2221
2574
  pauseCompute?: string | undefined;
2222
- })[] | (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
2575
+ pausePrecompute?: string | undefined;
2576
+ })[] | (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
2223
2577
  subType: number | null;
2224
2578
  startTimestamp: number;
2225
2579
  endTimestamp: number;
@@ -2227,6 +2581,7 @@ declare const eden: {
2227
2581
  parentCampaignId?: string | undefined;
2228
2582
  rootCampaignId?: string | undefined;
2229
2583
  pauseCompute?: string | undefined;
2584
+ pausePrecompute?: string | undefined;
2230
2585
  } & {
2231
2586
  Opportunity: {
2232
2587
  chainId: number;
@@ -2688,6 +3043,7 @@ declare const eden: {
2688
3043
  onChainCampaignId?: string | undefined;
2689
3044
  }[] | undefined;
2690
3045
  pauseCompute?: string | null | undefined;
3046
+ pausePrecompute?: string | null | undefined;
2691
3047
  hasOverrides?: boolean | undefined;
2692
3048
  isPrivate: boolean;
2693
3049
  campaignEncodingHash?: string | undefined;
@@ -2968,6 +3324,7 @@ declare const eden: {
2968
3324
  onChainCampaignId?: string | undefined;
2969
3325
  }[] | undefined;
2970
3326
  pauseCompute?: string | null | undefined;
3327
+ pausePrecompute?: string | null | undefined;
2971
3328
  hasOverrides?: boolean | undefined;
2972
3329
  isPrivate: boolean;
2973
3330
  campaignEncodingHash?: string | undefined;
@@ -3248,6 +3605,7 @@ declare const eden: {
3248
3605
  onChainCampaignId?: string | undefined;
3249
3606
  }[] | undefined;
3250
3607
  pauseCompute?: string | null | undefined;
3608
+ pausePrecompute?: string | null | undefined;
3251
3609
  hasOverrides?: boolean | undefined;
3252
3610
  isPrivate: boolean;
3253
3611
  campaignEncodingHash?: string | undefined;
@@ -3465,6 +3823,7 @@ declare const eden: {
3465
3823
  onChainCampaignId?: string | undefined;
3466
3824
  }[] | undefined;
3467
3825
  pauseCompute?: string | null | undefined;
3826
+ pausePrecompute?: string | null | undefined;
3468
3827
  hasOverrides?: boolean | undefined;
3469
3828
  isPrivate: boolean;
3470
3829
  campaignEncodingHash?: string | undefined;
@@ -3591,6 +3950,7 @@ declare const eden: {
3591
3950
  params: unknown;
3592
3951
  parentCampaignId?: string | null | undefined;
3593
3952
  pauseCompute?: string | null | undefined;
3953
+ pausePrecompute?: string | null | undefined;
3594
3954
  rewardToken: {
3595
3955
  id: string;
3596
3956
  name: string | null;
@@ -4042,6 +4402,7 @@ declare const eden: {
4042
4402
  params: import("@prisma/client/runtime/client").JsonValue;
4043
4403
  description: string | null;
4044
4404
  pauseCompute: string | null;
4405
+ pausePrecompute: string | null;
4045
4406
  dailyRewards: number;
4046
4407
  apr: number;
4047
4408
  creatorAddress: string;
@@ -4297,6 +4658,7 @@ declare const eden: {
4297
4658
  params: import("@prisma/client/runtime/client").JsonValue;
4298
4659
  description: string | null;
4299
4660
  pauseCompute: string | null;
4661
+ pausePrecompute: string | null;
4300
4662
  dailyRewards: number;
4301
4663
  apr: number;
4302
4664
  creatorAddress: string;
@@ -4551,6 +4913,7 @@ declare const eden: {
4551
4913
  params: import("@prisma/client/runtime/client").JsonValue;
4552
4914
  description: string | null;
4553
4915
  pauseCompute: string | null;
4916
+ pausePrecompute: string | null;
4554
4917
  dailyRewards: number;
4555
4918
  apr: number;
4556
4919
  creatorAddress: string;
@@ -4805,6 +5168,7 @@ declare const eden: {
4805
5168
  params: import("@prisma/client/runtime/client").JsonValue;
4806
5169
  description: string | null;
4807
5170
  pauseCompute: string | null;
5171
+ pausePrecompute: string | null;
4808
5172
  dailyRewards: number;
4809
5173
  apr: number;
4810
5174
  creatorAddress: string;
@@ -5556,7 +5920,7 @@ declare const eden: {
5556
5920
  };
5557
5921
  query?: Record<string, unknown> | undefined;
5558
5922
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5559
- 200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
5923
+ 200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
5560
5924
  subType: number | null;
5561
5925
  startTimestamp: number;
5562
5926
  endTimestamp: number;
@@ -5564,6 +5928,7 @@ declare const eden: {
5564
5928
  parentCampaignId?: string | undefined;
5565
5929
  rootCampaignId?: string | undefined;
5566
5930
  pauseCompute?: string | undefined;
5931
+ pausePrecompute?: string | undefined;
5567
5932
  } & {
5568
5933
  Opportunity: {
5569
5934
  chainId: number;
@@ -5725,7 +6090,7 @@ declare const eden: {
5725
6090
  };
5726
6091
  query?: Record<string, unknown> | undefined;
5727
6092
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5728
- 200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
6093
+ 200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
5729
6094
  subType: number | null;
5730
6095
  startTimestamp: number;
5731
6096
  endTimestamp: number;
@@ -5733,6 +6098,7 @@ declare const eden: {
5733
6098
  parentCampaignId?: string | undefined;
5734
6099
  rootCampaignId?: string | undefined;
5735
6100
  pauseCompute?: string | undefined;
6101
+ pausePrecompute?: string | undefined;
5736
6102
  } & {
5737
6103
  Opportunity: {
5738
6104
  chainId: number;
@@ -9057,6 +9423,7 @@ declare const eden: {
9057
9423
  params: import("@prisma/client/runtime/client").JsonValue;
9058
9424
  description: string | null;
9059
9425
  pauseCompute: string | null;
9426
+ pausePrecompute: string | null;
9060
9427
  dailyRewards: number;
9061
9428
  apr: number;
9062
9429
  creatorAddress: string;
@@ -9462,7 +9829,7 @@ declare const eden: {
9462
9829
  status?: "FUTURE" | "LIVE" | "PAST" | undefined;
9463
9830
  };
9464
9831
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9465
- 200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
9832
+ 200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
9466
9833
  subType: number | null;
9467
9834
  startTimestamp: number;
9468
9835
  endTimestamp: number;
@@ -9470,6 +9837,7 @@ declare const eden: {
9470
9837
  parentCampaignId?: string | undefined;
9471
9838
  rootCampaignId?: string | undefined;
9472
9839
  pauseCompute?: string | undefined;
9840
+ pausePrecompute?: string | undefined;
9473
9841
  })[] | ({
9474
9842
  Opportunity: {
9475
9843
  id: string;
@@ -9515,6 +9883,7 @@ declare const eden: {
9515
9883
  params: import("@prisma/client/runtime/client").JsonValue;
9516
9884
  description: string | null;
9517
9885
  pauseCompute: string | null;
9886
+ pausePrecompute: string | null;
9518
9887
  dailyRewards: number;
9519
9888
  apr: number;
9520
9889
  creatorAddress: string;
@@ -9652,6 +10021,7 @@ declare const eden: {
9652
10021
  maximumDailyRewards?: number | undefined;
9653
10022
  status?: string | undefined;
9654
10023
  identifier?: string | undefined;
10024
+ id?: string | undefined;
9655
10025
  tokens?: string | undefined;
9656
10026
  stablecoin?: boolean | undefined;
9657
10027
  rewardTokenSymbol?: string | undefined;
@@ -9940,6 +10310,7 @@ declare const eden: {
9940
10310
  onChainCampaignId?: string | undefined;
9941
10311
  }[] | undefined;
9942
10312
  pauseCompute?: string | null | undefined;
10313
+ pausePrecompute?: string | null | undefined;
9943
10314
  hasOverrides?: boolean | undefined;
9944
10315
  isPrivate: boolean;
9945
10316
  campaignEncodingHash?: string | undefined;
@@ -9976,6 +10347,7 @@ declare const eden: {
9976
10347
  maximumDailyRewards?: number | undefined;
9977
10348
  status?: string | undefined;
9978
10349
  identifier?: string | undefined;
10350
+ id?: string | undefined;
9979
10351
  tokens?: string | undefined;
9980
10352
  stablecoin?: boolean | undefined;
9981
10353
  rewardTokenSymbol?: string | undefined;
@@ -10192,6 +10564,126 @@ declare const eden: {
10192
10564
  };
10193
10565
  }) & {};
10194
10566
  };
10567
+ credits: ((params: {
10568
+ creatorId: string | number;
10569
+ }) => {
10570
+ get: (options?: {
10571
+ fetch?: RequestInit | undefined;
10572
+ headers?: Record<string, unknown> | undefined;
10573
+ query?: Record<string, unknown> | undefined;
10574
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10575
+ 200: {
10576
+ Creator: {
10577
+ id: string;
10578
+ icon: string | null;
10579
+ name: string;
10580
+ rebateFee: number;
10581
+ hubspotCompanyId: string | null;
10582
+ };
10583
+ CreditOperations: {
10584
+ id: string;
10585
+ creatorId: string;
10586
+ type: import("@package/databases").CreditOperationType;
10587
+ amount: number;
10588
+ label: string;
10589
+ timestamp: Date;
10590
+ }[];
10591
+ } & {
10592
+ creatorId: string;
10593
+ amount: number;
10594
+ };
10595
+ 422: {
10596
+ type: "validation";
10597
+ on: string;
10598
+ summary?: string | undefined;
10599
+ message?: string | undefined;
10600
+ found?: unknown;
10601
+ property?: string | undefined;
10602
+ expected?: string | undefined;
10603
+ };
10604
+ }>>;
10605
+ operations: {
10606
+ get: (options: {
10607
+ fetch?: RequestInit | undefined;
10608
+ headers?: Record<string, unknown> | undefined;
10609
+ query: {
10610
+ page?: number | undefined;
10611
+ items?: number | undefined;
10612
+ };
10613
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10614
+ 200: {
10615
+ id: string;
10616
+ creatorId: string;
10617
+ type: import("@package/databases").CreditOperationType;
10618
+ amount: number;
10619
+ label: string;
10620
+ timestamp: string;
10621
+ }[];
10622
+ 422: {
10623
+ type: "validation";
10624
+ on: string;
10625
+ summary?: string | undefined;
10626
+ message?: string | undefined;
10627
+ found?: unknown;
10628
+ property?: string | undefined;
10629
+ expected?: string | undefined;
10630
+ };
10631
+ }>>;
10632
+ };
10633
+ }) & {
10634
+ post: (body: {
10635
+ creatorId: string;
10636
+ amount: number;
10637
+ label: string;
10638
+ }, options: {
10639
+ fetch?: RequestInit | undefined;
10640
+ headers: {
10641
+ authorization: string;
10642
+ };
10643
+ query?: Record<string, unknown> | undefined;
10644
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10645
+ 200: {
10646
+ creatorId: string;
10647
+ amount: number;
10648
+ };
10649
+ 422: {
10650
+ type: "validation";
10651
+ on: string;
10652
+ summary?: string | undefined;
10653
+ message?: string | undefined;
10654
+ found?: unknown;
10655
+ property?: string | undefined;
10656
+ expected?: string | undefined;
10657
+ };
10658
+ }>>;
10659
+ subtract: {
10660
+ post: (body: {
10661
+ creatorId: string;
10662
+ amount: number;
10663
+ label: string;
10664
+ }, options: {
10665
+ fetch?: RequestInit | undefined;
10666
+ headers: {
10667
+ authorization: string;
10668
+ };
10669
+ query?: Record<string, unknown> | undefined;
10670
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10671
+ 200: {
10672
+ creatorId: string;
10673
+ amount: number;
10674
+ };
10675
+ 422: {
10676
+ type: "validation";
10677
+ on: string;
10678
+ summary?: string | undefined;
10679
+ message?: string | undefined;
10680
+ found?: unknown;
10681
+ property?: string | undefined;
10682
+ expected?: string | undefined;
10683
+ };
10684
+ }>>;
10685
+ };
10686
+ };
10195
10687
  diffs: {
10196
10688
  get: (options: {
10197
10689
  fetch?: RequestInit | undefined;
@@ -11665,6 +12157,7 @@ declare const eden: {
11665
12157
  onChainCampaignId?: string | undefined;
11666
12158
  }[] | undefined;
11667
12159
  pauseCompute?: string | null | undefined;
12160
+ pausePrecompute?: string | null | undefined;
11668
12161
  hasOverrides?: boolean | undefined;
11669
12162
  isPrivate: boolean;
11670
12163
  campaignEncodingHash?: string | undefined;
@@ -11944,6 +12437,7 @@ declare const eden: {
11944
12437
  onChainCampaignId?: string | undefined;
11945
12438
  }[] | undefined;
11946
12439
  pauseCompute?: string | null | undefined;
12440
+ pausePrecompute?: string | null | undefined;
11947
12441
  hasOverrides?: boolean | undefined;
11948
12442
  isPrivate: boolean;
11949
12443
  campaignEncodingHash?: string | undefined;
@@ -12033,6 +12527,7 @@ declare const eden: {
12033
12527
  params: import("@prisma/client/runtime/client").JsonValue;
12034
12528
  description: string | null;
12035
12529
  pauseCompute: string | null;
12530
+ pausePrecompute: string | null;
12036
12531
  dailyRewards: number;
12037
12532
  apr: number;
12038
12533
  creatorAddress: string;
@@ -12576,6 +13071,7 @@ declare const eden: {
12576
13071
  onChainCampaignId?: string | undefined;
12577
13072
  }[] | undefined;
12578
13073
  pauseCompute?: string | null | undefined;
13074
+ pausePrecompute?: string | null | undefined;
12579
13075
  hasOverrides?: boolean | undefined;
12580
13076
  isPrivate: boolean;
12581
13077
  campaignEncodingHash?: string | undefined;
@@ -12815,6 +13311,7 @@ declare const eden: {
12815
13311
  params: import("@prisma/client/runtime/client").JsonValue;
12816
13312
  description: string | null;
12817
13313
  pauseCompute: string | null;
13314
+ pausePrecompute: string | null;
12818
13315
  dailyRewards: number;
12819
13316
  apr: number;
12820
13317
  creatorAddress: string;
@@ -13121,6 +13618,7 @@ declare const eden: {
13121
13618
  maximumDailyRewards?: number | undefined;
13122
13619
  status?: string | undefined;
13123
13620
  identifier?: string | undefined;
13621
+ id?: string | undefined;
13124
13622
  campaigns?: boolean | undefined;
13125
13623
  tokens?: string | undefined;
13126
13624
  stablecoin?: boolean | undefined;
@@ -13412,6 +13910,7 @@ declare const eden: {
13412
13910
  onChainCampaignId?: string | undefined;
13413
13911
  }[] | undefined;
13414
13912
  pauseCompute?: string | null | undefined;
13913
+ pausePrecompute?: string | null | undefined;
13415
13914
  hasOverrides?: boolean | undefined;
13416
13915
  isPrivate: boolean;
13417
13916
  campaignEncodingHash?: string | undefined;
@@ -13691,6 +14190,7 @@ declare const eden: {
13691
14190
  onChainCampaignId?: string | undefined;
13692
14191
  }[] | undefined;
13693
14192
  pauseCompute?: string | null | undefined;
14193
+ pausePrecompute?: string | null | undefined;
13694
14194
  hasOverrides?: boolean | undefined;
13695
14195
  isPrivate: boolean;
13696
14196
  campaignEncodingHash?: string | undefined;
@@ -13735,6 +14235,7 @@ declare const eden: {
13735
14235
  maximumDailyRewards?: number | undefined;
13736
14236
  status?: string | undefined;
13737
14237
  identifier?: string | undefined;
14238
+ id?: string | undefined;
13738
14239
  campaigns?: boolean | undefined;
13739
14240
  tokens?: string | undefined;
13740
14241
  stablecoin?: boolean | undefined;
@@ -13794,6 +14295,7 @@ declare const eden: {
13794
14295
  maximumDailyRewards?: number | undefined;
13795
14296
  status?: string | undefined;
13796
14297
  identifier?: string | undefined;
14298
+ id?: string | undefined;
13797
14299
  campaigns?: boolean | undefined;
13798
14300
  tokens?: string | undefined;
13799
14301
  stablecoin?: boolean | undefined;
@@ -13853,6 +14355,7 @@ declare const eden: {
13853
14355
  maximumDailyRewards?: number | undefined;
13854
14356
  status?: string | undefined;
13855
14357
  identifier?: string | undefined;
14358
+ id?: string | undefined;
13856
14359
  campaigns?: boolean | undefined;
13857
14360
  tokens?: string | undefined;
13858
14361
  stablecoin?: boolean | undefined;
@@ -13949,6 +14452,7 @@ declare const eden: {
13949
14452
  maximumDailyRewards?: number | undefined;
13950
14453
  status?: string | undefined;
13951
14454
  identifier?: string | undefined;
14455
+ id?: string | undefined;
13952
14456
  campaigns?: boolean | undefined;
13953
14457
  tokens?: string | undefined;
13954
14458
  stablecoin?: boolean | undefined;
@@ -14010,6 +14514,7 @@ declare const eden: {
14010
14514
  maximumDailyRewards?: number | undefined;
14011
14515
  status?: string | undefined;
14012
14516
  identifier?: string | undefined;
14517
+ id?: string | undefined;
14013
14518
  campaigns?: boolean | undefined;
14014
14519
  tokens?: string | undefined;
14015
14520
  stablecoin?: boolean | undefined;
@@ -14071,6 +14576,7 @@ declare const eden: {
14071
14576
  maximumDailyRewards?: number | undefined;
14072
14577
  status?: string | undefined;
14073
14578
  identifier?: string | undefined;
14579
+ id?: string | undefined;
14074
14580
  campaigns?: boolean | undefined;
14075
14581
  tokens?: string | undefined;
14076
14582
  stablecoin?: boolean | undefined;
@@ -14422,6 +14928,7 @@ declare const eden: {
14422
14928
  onChainCampaignId?: string | undefined;
14423
14929
  }[] | undefined;
14424
14930
  pauseCompute?: string | null | undefined;
14931
+ pausePrecompute?: string | null | undefined;
14425
14932
  hasOverrides?: boolean | undefined;
14426
14933
  isPrivate: boolean;
14427
14934
  campaignEncodingHash?: string | undefined;
@@ -14474,6 +14981,7 @@ declare const eden: {
14474
14981
  maximumDailyRewards?: number | undefined;
14475
14982
  status?: string | undefined;
14476
14983
  identifier?: string | undefined;
14984
+ id?: string | undefined;
14477
14985
  campaigns?: boolean | undefined;
14478
14986
  tokens?: string | undefined;
14479
14987
  stablecoin?: boolean | undefined;
@@ -14760,6 +15268,7 @@ declare const eden: {
14760
15268
  params: import("@prisma/client/runtime/client").JsonValue;
14761
15269
  description: string | null;
14762
15270
  pauseCompute: string | null;
15271
+ pausePrecompute: string | null;
14763
15272
  dailyRewards: number;
14764
15273
  apr: number;
14765
15274
  creatorAddress: string;
@@ -15055,6 +15564,7 @@ declare const eden: {
15055
15564
  params: import("@prisma/client/runtime/client").JsonValue;
15056
15565
  description: string | null;
15057
15566
  pauseCompute: string | null;
15567
+ pausePrecompute: string | null;
15058
15568
  dailyRewards: number;
15059
15569
  apr: number;
15060
15570
  creatorAddress: string;
@@ -15396,6 +15906,7 @@ declare const eden: {
15396
15906
  params: import("@prisma/client/runtime/client").JsonValue;
15397
15907
  description: string | null;
15398
15908
  pauseCompute: string | null;
15909
+ pausePrecompute: string | null;
15399
15910
  dailyRewards: number;
15400
15911
  apr: number;
15401
15912
  creatorAddress: string;