@merkl/api 1.0.47 → 1.0.49

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 (69) hide show
  1. package/dist/src/eden/index.d.ts +4 -604
  2. package/dist/src/engine/implementations/Ajna/metadata.d.ts +1 -1
  3. package/dist/src/engine/implementations/Ambient/metadata.d.ts +1 -1
  4. package/dist/src/engine/implementations/Badger/metadata.d.ts +1 -1
  5. package/dist/src/engine/implementations/Clamm/metadata.d.ts +1 -1
  6. package/dist/src/engine/implementations/Compound/metadata.d.ts +1 -1
  7. package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +1 -1
  8. package/dist/src/engine/implementations/Default/metadata.d.ts +1 -1
  9. package/dist/src/engine/implementations/Dolomite/metadata.d.ts +1 -1
  10. package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +1 -1
  11. package/dist/src/engine/implementations/Encompassing/metadata.d.ts +1 -1
  12. package/dist/src/engine/implementations/Erc20/metadata.d.ts +1 -1
  13. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +1 -1
  14. package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/metadata.d.ts +18 -0
  15. package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/tvl.d.ts +6 -0
  16. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +1 -1
  17. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/metadata.d.ts +1 -1
  18. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +1 -1
  19. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +1 -1
  20. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +1 -1
  21. package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +1 -1
  22. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +1 -1
  23. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +1 -1
  24. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +1 -1
  25. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +1 -1
  26. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +1 -1
  27. package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +1 -1
  28. package/dist/src/engine/implementations/Erc721/metadata.d.ts +1 -1
  29. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
  30. package/dist/src/engine/implementations/EventBased/metadata.d.ts +1 -1
  31. package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +2 -2
  32. package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +1 -1
  33. package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +1 -1
  34. package/dist/src/engine/implementations/Ion/metadata.d.ts +1 -1
  35. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
  36. package/dist/src/engine/implementations/Locker/metadata.d.ts +1 -1
  37. package/dist/src/engine/implementations/Morpho/metadata.d.ts +1 -1
  38. package/dist/src/engine/implementations/MultiLog/metadata.d.ts +1 -1
  39. package/dist/src/engine/implementations/Radiant/metadata.d.ts +1 -1
  40. package/dist/src/engine/implementations/Silo/metadata.d.ts +1 -1
  41. package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +1 -1
  42. package/dist/src/engine/implementations/Vest/metadata.d.ts +1 -1
  43. package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +1 -1
  44. package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +1 -1
  45. package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +1 -1
  46. package/dist/src/index.d.ts +2 -307
  47. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -55
  48. package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +6 -0
  49. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +6 -0
  50. package/dist/src/modules/v4/campaign/campaign.model.d.ts +11 -9
  51. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +32 -31
  52. package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -702
  53. package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -162
  54. package/dist/src/modules/v4/creator/creator.service.d.ts +2 -162
  55. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -90
  56. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -6
  57. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +174 -0
  58. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +15 -5
  59. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +2 -4
  60. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -460
  61. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +125 -1
  62. package/dist/src/modules/v4/reward/reward.service.d.ts +8 -88
  63. package/dist/src/modules/v4/router.d.ts +2 -307
  64. package/dist/src/modules/v4/status/status.model.d.ts +0 -1
  65. package/dist/src/modules/v4/status/status.service.d.ts +2 -2
  66. package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
  67. package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
  68. package/dist/tsconfig.tsbuildinfo +1 -1
  69. package/package.json +1 -1
@@ -343,7 +343,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
343
343
  campaignStatus?: {
344
344
  error?: string | undefined;
345
345
  details?: any;
346
- campaignId: string;
347
346
  status: string;
348
347
  computedUntil: string | number;
349
348
  processingStarted: string | number;
@@ -382,10 +381,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
382
381
  computeChainId: number;
383
382
  distributionChainId: number;
384
383
  endTimestamp: string | number;
385
- opportunityId: string;
386
384
  creatorAddress: string;
387
385
  subType: number | null;
388
- rewardTokenId: string;
389
386
  createdAt: string;
390
387
  chain: {
391
388
  explorers?: {
@@ -686,7 +683,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
686
683
  campaignStatus?: {
687
684
  error?: string | undefined;
688
685
  details?: any;
689
- campaignId: string;
690
686
  status: string;
691
687
  computedUntil: string | number;
692
688
  processingStarted: string | number;
@@ -725,10 +721,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
725
721
  computeChainId: number;
726
722
  distributionChainId: number;
727
723
  endTimestamp: string | number;
728
- opportunityId: string;
729
724
  creatorAddress: string;
730
725
  subType: number | null;
731
- rewardTokenId: string;
732
726
  createdAt: string;
733
727
  chain: {
734
728
  explorers?: {
@@ -1258,90 +1252,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1258
1252
  };
1259
1253
  };
1260
1254
  };
1261
- } & {
1262
- opportunities: {
1263
- post: {
1264
- body: {
1265
- name?: string | undefined;
1266
- description?: string | undefined;
1267
- depositUrl?: string | undefined;
1268
- explorerAddress?: string | undefined;
1269
- howToSteps?: string[] | undefined;
1270
- tags?: string[] | undefined;
1271
- protocols?: string[] | undefined;
1272
- mainProtocol?: string | undefined;
1273
- tokens: {
1274
- address: string;
1275
- chainId: number;
1276
- }[];
1277
- status: "NONE" | "PAST" | "LIVE" | "SOON";
1278
- chainId: number;
1279
- action: "POOL" | "INVALID" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP";
1280
- type: string;
1281
- identifier: string;
1282
- };
1283
- params: {};
1284
- query: unknown;
1285
- headers: {
1286
- authorization: string;
1287
- };
1288
- response: {
1289
- 200: {
1290
- Tokens: {
1291
- symbol: string;
1292
- name: string | null;
1293
- decimals: number;
1294
- price: number | null;
1295
- address: string;
1296
- id: string;
1297
- chainId: number;
1298
- icon: string;
1299
- isNative: boolean;
1300
- isPoint: boolean;
1301
- isPreTGE: boolean;
1302
- isTest: boolean;
1303
- verified: boolean;
1304
- displaySymbol: string;
1305
- }[];
1306
- Protocols: {
1307
- name: string;
1308
- description: string;
1309
- id: string;
1310
- url: string;
1311
- icon: string;
1312
- tags: string[];
1313
- }[];
1314
- name: string;
1315
- apr: number;
1316
- tvl: number;
1317
- description: string;
1318
- id: string;
1319
- status: import("@package/databases").Status;
1320
- chainId: number;
1321
- action: import("@package/databases").OpportunityAction;
1322
- type: string;
1323
- depositUrl: string | null;
1324
- explorerAddress: string | null;
1325
- howToSteps: string[];
1326
- mainProtocolId: string | null;
1327
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
1328
- identifier: string;
1329
- dailyRewards: number;
1330
- tags: string[];
1331
- lastCampaignCreatedAt: Date;
1332
- };
1333
- 422: {
1334
- type: "validation";
1335
- on: string;
1336
- summary?: string;
1337
- message?: string;
1338
- found?: unknown;
1339
- property?: string;
1340
- expected?: string;
1341
- };
1342
- };
1343
- };
1344
- };
1345
1255
  } & {
1346
1256
  opportunities: {
1347
1257
  ":id": {
@@ -1810,7 +1720,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1810
1720
  campaignStatus?: {
1811
1721
  error?: string | undefined;
1812
1722
  details?: any;
1813
- campaignId: string;
1814
1723
  status: string;
1815
1724
  computedUntil: string | number;
1816
1725
  processingStarted: string | number;
@@ -1849,10 +1758,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1849
1758
  computeChainId: number;
1850
1759
  distributionChainId: number;
1851
1760
  endTimestamp: string | number;
1852
- opportunityId: string;
1853
1761
  creatorAddress: string;
1854
1762
  subType: number | null;
1855
- rewardTokenId: string;
1856
1763
  createdAt: string;
1857
1764
  chain: {
1858
1765
  explorers?: {
@@ -2118,7 +2025,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2118
2025
  campaignStatus?: {
2119
2026
  error?: string | undefined;
2120
2027
  details?: any;
2121
- campaignId: string;
2122
2028
  status: string;
2123
2029
  computedUntil: string | number;
2124
2030
  processingStarted: string | number;
@@ -2157,10 +2063,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2157
2063
  computeChainId: number;
2158
2064
  distributionChainId: number;
2159
2065
  endTimestamp: string | number;
2160
- opportunityId: string;
2161
2066
  creatorAddress: string;
2162
2067
  subType: number | null;
2163
- rewardTokenId: string;
2164
2068
  createdAt: string;
2165
2069
  chain: {
2166
2070
  explorers?: {
@@ -2492,55 +2396,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2492
2396
  };
2493
2397
  };
2494
2398
  };
2495
- } & {
2496
- campaigns: {
2497
- metadata: {
2498
- patch: {
2499
- body: {
2500
- campaignId: string;
2501
- url: string;
2502
- distributionChain: number;
2503
- };
2504
- params: {};
2505
- query: unknown;
2506
- headers: {
2507
- authorization: string;
2508
- };
2509
- response: {
2510
- 200: {
2511
- campaignId: string;
2512
- description: string | null;
2513
- id: string;
2514
- params: import("@prisma/client/runtime/library").JsonValue;
2515
- amount: string;
2516
- startTimestamp: bigint;
2517
- type: string;
2518
- computeChainId: number;
2519
- distributionChainId: number;
2520
- endTimestamp: bigint;
2521
- opportunityId: string;
2522
- creatorAddress: string;
2523
- distributionType: import("@package/databases").DistributionType;
2524
- subType: number | null;
2525
- rewardTokenId: string;
2526
- manualOverrides: import("@package/databases").CampaignManualOverride[];
2527
- createdAt: Date;
2528
- rootCampaignId: string | null;
2529
- parentCampaignId: string | null;
2530
- };
2531
- 422: {
2532
- type: "validation";
2533
- on: string;
2534
- summary?: string;
2535
- message?: string;
2536
- found?: unknown;
2537
- property?: string;
2538
- expected?: string;
2539
- };
2540
- };
2541
- };
2542
- };
2543
- };
2544
2399
  } & {
2545
2400
  campaigns: {
2546
2401
  tvls: {
@@ -7752,87 +7607,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
7752
7607
  createdAt: Date;
7753
7608
  rootCampaignId: string | null;
7754
7609
  parentCampaignId: string | null;
7755
- }) | {
7756
- params: any;
7757
- chain: {
7758
- name: string;
7759
- id: number;
7760
- icon: string;
7761
- };
7762
- endTimestamp: number;
7763
- startTimestamp: number;
7764
- rewardToken: {
7765
- symbol: string;
7766
- name: string | null;
7767
- decimals: number;
7768
- address: string;
7769
- id: string;
7770
- chainId: number;
7771
- icon: string;
7772
- isNative: boolean;
7773
- isPoint: boolean;
7774
- isPreTGE: boolean;
7775
- isTest: boolean;
7776
- verified: boolean;
7777
- } & {
7778
- price?: number | null | undefined;
7779
- isTokenWrapper?: boolean | undefined;
7780
- tokenWrapperAddress?: string | undefined;
7781
- };
7782
- distributionChain: {
7783
- name: string;
7784
- id: number;
7785
- icon: string;
7786
- } | undefined;
7787
- campaignStatus: {
7788
- computedUntil: number;
7789
- processingStarted: number;
7790
- campaignId: string;
7791
- error: string;
7792
- status: import("@package/databases").RunStatus;
7793
- details: import("@prisma/client/runtime/library").JsonValue;
7794
- } | undefined;
7795
- creatorAddress: string;
7796
- creator: {
7797
- address: string;
7798
- tags: string[];
7799
- creatorId: string | null;
7800
- };
7801
- createdAt: string;
7802
- description: string | undefined;
7803
- parentCampaignId: string | undefined;
7804
- rootCampaignId: string | undefined;
7805
- Opportunity: {
7806
- name: string;
7807
- apr: number;
7808
- tvl: number;
7809
- description: string;
7810
- id: string;
7811
- status: import("@package/databases").Status;
7812
- chainId: number;
7813
- action: import("@package/databases").OpportunityAction;
7814
- type: string;
7815
- depositUrl: string | null;
7816
- explorerAddress: string | null;
7817
- howToSteps: string[];
7818
- mainProtocolId: string | null;
7819
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
7820
- identifier: string;
7821
- dailyRewards: number;
7822
- tags: string[];
7823
- lastCampaignCreatedAt: Date;
7824
- };
7825
- campaignId: string;
7826
- id: string;
7827
- amount: string;
7828
- type: string;
7829
- computeChainId: number;
7830
- distributionChainId: number;
7831
- opportunityId: string;
7832
- distributionType: import("@package/databases").DistributionType;
7833
- subType: number | null;
7834
- rewardTokenId: string;
7835
- })[];
7610
+ }) | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">)[];
7836
7611
  422: {
7837
7612
  type: "validation";
7838
7613
  on: string;
@@ -7903,87 +7678,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
7903
7678
  createdAt: Date;
7904
7679
  rootCampaignId: string | null;
7905
7680
  parentCampaignId: string | null;
7906
- })[] | {
7907
- params: any;
7908
- chain: {
7909
- name: string;
7910
- id: number;
7911
- icon: string;
7912
- };
7913
- endTimestamp: number;
7914
- startTimestamp: number;
7915
- rewardToken: {
7916
- symbol: string;
7917
- name: string | null;
7918
- decimals: number;
7919
- address: string;
7920
- id: string;
7921
- chainId: number;
7922
- icon: string;
7923
- isNative: boolean;
7924
- isPoint: boolean;
7925
- isPreTGE: boolean;
7926
- isTest: boolean;
7927
- verified: boolean;
7928
- } & {
7929
- price?: number | null | undefined;
7930
- isTokenWrapper?: boolean | undefined;
7931
- tokenWrapperAddress?: string | undefined;
7932
- };
7933
- distributionChain: {
7934
- name: string;
7935
- id: number;
7936
- icon: string;
7937
- } | undefined;
7938
- campaignStatus: {
7939
- computedUntil: number;
7940
- processingStarted: number;
7941
- campaignId: string;
7942
- error: string;
7943
- status: import("@package/databases").RunStatus;
7944
- details: import("@prisma/client/runtime/library").JsonValue;
7945
- } | undefined;
7946
- creatorAddress: string;
7947
- creator: {
7948
- address: string;
7949
- tags: string[];
7950
- creatorId: string | null;
7951
- };
7952
- createdAt: string;
7953
- description: string | undefined;
7954
- parentCampaignId: string | undefined;
7955
- rootCampaignId: string | undefined;
7956
- Opportunity: {
7957
- name: string;
7958
- apr: number;
7959
- tvl: number;
7960
- description: string;
7961
- id: string;
7962
- status: import("@package/databases").Status;
7963
- chainId: number;
7964
- action: import("@package/databases").OpportunityAction;
7965
- type: string;
7966
- depositUrl: string | null;
7967
- explorerAddress: string | null;
7968
- howToSteps: string[];
7969
- mainProtocolId: string | null;
7970
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
7971
- identifier: string;
7972
- dailyRewards: number;
7973
- tags: string[];
7974
- lastCampaignCreatedAt: Date;
7975
- };
7976
- campaignId: string;
7977
- id: string;
7978
- amount: string;
7979
- type: string;
7980
- computeChainId: number;
7981
- distributionChainId: number;
7982
- opportunityId: string;
7983
- distributionType: import("@package/databases").DistributionType;
7984
- subType: number | null;
7985
- rewardTokenId: string;
7986
- }[];
7681
+ })[] | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">[];
7987
7682
  422: {
7988
7683
  type: "validation";
7989
7684
  on: string;
@@ -10613,7 +10308,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
10613
10308
  campaignStatus?: {
10614
10309
  error?: string | undefined;
10615
10310
  details?: any;
10616
- campaignId: string;
10617
10311
  status: string;
10618
10312
  computedUntil: string | number;
10619
10313
  processingStarted: string | number;
@@ -10652,10 +10346,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
10652
10346
  computeChainId: number;
10653
10347
  distributionChainId: number;
10654
10348
  endTimestamp: string | number;
10655
- opportunityId: string;
10656
10349
  creatorAddress: string;
10657
10350
  subType: number | null;
10658
- rewardTokenId: string;
10659
10351
  createdAt: string;
10660
10352
  chain: {
10661
10353
  explorers?: {
@@ -11101,7 +10793,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11101
10793
  campaignStatus?: {
11102
10794
  error?: string | undefined;
11103
10795
  details?: any;
11104
- campaignId: string;
11105
10796
  status: string;
11106
10797
  computedUntil: string | number;
11107
10798
  processingStarted: string | number;
@@ -11140,10 +10831,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11140
10831
  computeChainId: number;
11141
10832
  distributionChainId: number;
11142
10833
  endTimestamp: string | number;
11143
- opportunityId: string;
11144
10834
  creatorAddress: string;
11145
10835
  subType: number | null;
11146
- rewardTokenId: string;
11147
10836
  createdAt: string;
11148
10837
  chain: {
11149
10838
  explorers?: {
@@ -11624,85 +11313,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11624
11313
  }>>;
11625
11314
  }) & {};
11626
11315
  };
11627
- post: (body: {
11628
- name?: string | undefined;
11629
- description?: string | undefined;
11630
- depositUrl?: string | undefined;
11631
- explorerAddress?: string | undefined;
11632
- howToSteps?: string[] | undefined;
11633
- tags?: string[] | undefined;
11634
- protocols?: string[] | undefined;
11635
- mainProtocol?: string | undefined;
11636
- tokens: {
11637
- address: string;
11638
- chainId: number;
11639
- }[];
11640
- status: "NONE" | "PAST" | "LIVE" | "SOON";
11641
- chainId: number;
11642
- action: "POOL" | "INVALID" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP";
11643
- type: string;
11644
- identifier: string;
11645
- }, options: {
11646
- headers: {
11647
- authorization: string;
11648
- };
11649
- query?: Record<string, unknown> | undefined;
11650
- fetch?: RequestInit | undefined;
11651
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11652
- 200: {
11653
- Tokens: {
11654
- symbol: string;
11655
- name: string | null;
11656
- decimals: number;
11657
- price: number | null;
11658
- address: string;
11659
- id: string;
11660
- chainId: number;
11661
- icon: string;
11662
- isNative: boolean;
11663
- isPoint: boolean;
11664
- isPreTGE: boolean;
11665
- isTest: boolean;
11666
- verified: boolean;
11667
- displaySymbol: string;
11668
- }[];
11669
- Protocols: {
11670
- name: string;
11671
- description: string;
11672
- id: string;
11673
- url: string;
11674
- icon: string;
11675
- tags: string[];
11676
- }[];
11677
- name: string;
11678
- apr: number;
11679
- tvl: number;
11680
- description: string;
11681
- id: string;
11682
- status: import("@package/databases").Status;
11683
- chainId: number;
11684
- action: import("@package/databases").OpportunityAction;
11685
- type: string;
11686
- depositUrl: string | null;
11687
- explorerAddress: string | null;
11688
- howToSteps: string[];
11689
- mainProtocolId: string | null;
11690
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11691
- identifier: string;
11692
- dailyRewards: number;
11693
- tags: string[];
11694
- lastCampaignCreatedAt: Date;
11695
- };
11696
- 422: {
11697
- type: "validation";
11698
- on: string;
11699
- summary?: string;
11700
- message?: string;
11701
- found?: unknown;
11702
- property?: string;
11703
- expected?: string;
11704
- };
11705
- }>>;
11706
11316
  };
11707
11317
  campaigns: ((params: {
11708
11318
  id: string | number;
@@ -11725,7 +11335,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11725
11335
  campaignStatus?: {
11726
11336
  error?: string | undefined;
11727
11337
  details?: any;
11728
- campaignId: string;
11729
11338
  status: string;
11730
11339
  computedUntil: string | number;
11731
11340
  processingStarted: string | number;
@@ -11764,10 +11373,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11764
11373
  computeChainId: number;
11765
11374
  distributionChainId: number;
11766
11375
  endTimestamp: string | number;
11767
- opportunityId: string;
11768
11376
  creatorAddress: string;
11769
11377
  subType: number | null;
11770
- rewardTokenId: string;
11771
11378
  createdAt: string;
11772
11379
  chain: {
11773
11380
  explorers?: {
@@ -12120,7 +11727,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12120
11727
  campaignStatus?: {
12121
11728
  error?: string | undefined;
12122
11729
  details?: any;
12123
- campaignId: string;
12124
11730
  status: string;
12125
11731
  computedUntil: string | number;
12126
11732
  processingStarted: string | number;
@@ -12159,10 +11765,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12159
11765
  computeChainId: number;
12160
11766
  distributionChainId: number;
12161
11767
  endTimestamp: string | number;
12162
- opportunityId: string;
12163
11768
  creatorAddress: string;
12164
11769
  subType: number | null;
12165
- rewardTokenId: string;
12166
11770
  createdAt: string;
12167
11771
  chain: {
12168
11772
  explorers?: {
@@ -12403,50 +12007,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12403
12007
  };
12404
12008
  }>>;
12405
12009
  };
12406
- metadata: {
12407
- patch: (body: {
12408
- campaignId: string;
12409
- url: string;
12410
- distributionChain: number;
12411
- }, options: {
12412
- headers: {
12413
- authorization: string;
12414
- };
12415
- query?: Record<string, unknown> | undefined;
12416
- fetch?: RequestInit | undefined;
12417
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12418
- 200: {
12419
- campaignId: string;
12420
- description: string | null;
12421
- id: string;
12422
- params: import("@prisma/client/runtime/library").JsonValue;
12423
- amount: string;
12424
- startTimestamp: bigint;
12425
- type: string;
12426
- computeChainId: number;
12427
- distributionChainId: number;
12428
- endTimestamp: bigint;
12429
- opportunityId: string;
12430
- creatorAddress: string;
12431
- distributionType: import("@package/databases").DistributionType;
12432
- subType: number | null;
12433
- rewardTokenId: string;
12434
- manualOverrides: import("@package/databases").CampaignManualOverride[];
12435
- createdAt: Date;
12436
- rootCampaignId: string | null;
12437
- parentCampaignId: string | null;
12438
- };
12439
- 422: {
12440
- type: "validation";
12441
- on: string;
12442
- summary?: string;
12443
- message?: string;
12444
- found?: unknown;
12445
- property?: string;
12446
- expected?: string;
12447
- };
12448
- }>>;
12449
- };
12450
12010
  tvls: ((params: {
12451
12011
  opportunityId: string | number;
12452
12012
  }) => {
@@ -16930,87 +16490,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
16930
16490
  createdAt: Date;
16931
16491
  rootCampaignId: string | null;
16932
16492
  parentCampaignId: string | null;
16933
- }) | {
16934
- params: any;
16935
- chain: {
16936
- name: string;
16937
- id: number;
16938
- icon: string;
16939
- };
16940
- endTimestamp: number;
16941
- startTimestamp: number;
16942
- rewardToken: {
16943
- symbol: string;
16944
- name: string | null;
16945
- decimals: number;
16946
- address: string;
16947
- id: string;
16948
- chainId: number;
16949
- icon: string;
16950
- isNative: boolean;
16951
- isPoint: boolean;
16952
- isPreTGE: boolean;
16953
- isTest: boolean;
16954
- verified: boolean;
16955
- } & {
16956
- price?: number | null | undefined;
16957
- isTokenWrapper?: boolean | undefined;
16958
- tokenWrapperAddress?: string | undefined;
16959
- };
16960
- distributionChain: {
16961
- name: string;
16962
- id: number;
16963
- icon: string;
16964
- } | undefined;
16965
- campaignStatus: {
16966
- computedUntil: number;
16967
- processingStarted: number;
16968
- campaignId: string;
16969
- error: string;
16970
- status: import("@package/databases").RunStatus;
16971
- details: import("@prisma/client/runtime/library").JsonValue;
16972
- } | undefined;
16973
- creatorAddress: string;
16974
- creator: {
16975
- address: string;
16976
- tags: string[];
16977
- creatorId: string | null;
16978
- };
16979
- createdAt: string;
16980
- description: string | undefined;
16981
- parentCampaignId: string | undefined;
16982
- rootCampaignId: string | undefined;
16983
- Opportunity: {
16984
- name: string;
16985
- apr: number;
16986
- tvl: number;
16987
- description: string;
16988
- id: string;
16989
- status: import("@package/databases").Status;
16990
- chainId: number;
16991
- action: import("@package/databases").OpportunityAction;
16992
- type: string;
16993
- depositUrl: string | null;
16994
- explorerAddress: string | null;
16995
- howToSteps: string[];
16996
- mainProtocolId: string | null;
16997
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
16998
- identifier: string;
16999
- dailyRewards: number;
17000
- tags: string[];
17001
- lastCampaignCreatedAt: Date;
17002
- };
17003
- campaignId: string;
17004
- id: string;
17005
- amount: string;
17006
- type: string;
17007
- computeChainId: number;
17008
- distributionChainId: number;
17009
- opportunityId: string;
17010
- distributionType: import("@package/databases").DistributionType;
17011
- subType: number | null;
17012
- rewardTokenId: string;
17013
- })[];
16493
+ }) | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">)[];
17014
16494
  422: {
17015
16495
  type: "validation";
17016
16496
  on: string;
@@ -17159,87 +16639,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
17159
16639
  createdAt: Date;
17160
16640
  rootCampaignId: string | null;
17161
16641
  parentCampaignId: string | null;
17162
- })[] | {
17163
- params: any;
17164
- chain: {
17165
- name: string;
17166
- id: number;
17167
- icon: string;
17168
- };
17169
- endTimestamp: number;
17170
- startTimestamp: number;
17171
- rewardToken: {
17172
- symbol: string;
17173
- name: string | null;
17174
- decimals: number;
17175
- address: string;
17176
- id: string;
17177
- chainId: number;
17178
- icon: string;
17179
- isNative: boolean;
17180
- isPoint: boolean;
17181
- isPreTGE: boolean;
17182
- isTest: boolean;
17183
- verified: boolean;
17184
- } & {
17185
- price?: number | null | undefined;
17186
- isTokenWrapper?: boolean | undefined;
17187
- tokenWrapperAddress?: string | undefined;
17188
- };
17189
- distributionChain: {
17190
- name: string;
17191
- id: number;
17192
- icon: string;
17193
- } | undefined;
17194
- campaignStatus: {
17195
- computedUntil: number;
17196
- processingStarted: number;
17197
- campaignId: string;
17198
- error: string;
17199
- status: import("@package/databases").RunStatus;
17200
- details: import("@prisma/client/runtime/library").JsonValue;
17201
- } | undefined;
17202
- creatorAddress: string;
17203
- creator: {
17204
- address: string;
17205
- tags: string[];
17206
- creatorId: string | null;
17207
- };
17208
- createdAt: string;
17209
- description: string | undefined;
17210
- parentCampaignId: string | undefined;
17211
- rootCampaignId: string | undefined;
17212
- Opportunity: {
17213
- name: string;
17214
- apr: number;
17215
- tvl: number;
17216
- description: string;
17217
- id: string;
17218
- status: import("@package/databases").Status;
17219
- chainId: number;
17220
- action: import("@package/databases").OpportunityAction;
17221
- type: string;
17222
- depositUrl: string | null;
17223
- explorerAddress: string | null;
17224
- howToSteps: string[];
17225
- mainProtocolId: string | null;
17226
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
17227
- identifier: string;
17228
- dailyRewards: number;
17229
- tags: string[];
17230
- lastCampaignCreatedAt: Date;
17231
- };
17232
- campaignId: string;
17233
- id: string;
17234
- amount: string;
17235
- type: string;
17236
- computeChainId: number;
17237
- distributionChainId: number;
17238
- opportunityId: string;
17239
- distributionType: import("@package/databases").DistributionType;
17240
- subType: number | null;
17241
- rewardTokenId: string;
17242
- }[];
16642
+ })[] | Omit<import("../modules/v4/campaign/campaign.model.ts").CampaignWithParams, "manualOverrides">[];
17243
16643
  422: {
17244
16644
  type: "validation";
17245
16645
  on: string;