@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
@@ -568,6 +568,407 @@ declare const app: Elysia<"", {
568
568
  };
569
569
  };
570
570
  };
571
+ } & {
572
+ autoclaim: {
573
+ get: {
574
+ body: unknown;
575
+ params: {};
576
+ query: {
577
+ page?: number | undefined;
578
+ items?: number | undefined;
579
+ chainId?: number | undefined;
580
+ scopeType?: "CAMPAIGN" | "CREATOR" | "TOKEN" | "USER" | undefined;
581
+ creatorId?: string | undefined;
582
+ tokenAddress?: string | undefined;
583
+ userAddress?: string | undefined;
584
+ active?: boolean | undefined;
585
+ };
586
+ headers: unknown;
587
+ response: {
588
+ 200: ({
589
+ Campaign: {
590
+ id: string;
591
+ computeChainId: number;
592
+ distributionChainId: number;
593
+ campaignId: string;
594
+ type: string;
595
+ distributionType: import("@package/databases").DistributionType;
596
+ subType: number | null;
597
+ rewardTokenId: string;
598
+ amount: string;
599
+ opportunityId: string;
600
+ startTimestamp: bigint;
601
+ endTimestamp: bigint;
602
+ params: import("@prisma/client/runtime/client").JsonValue;
603
+ description: string | null;
604
+ pauseCompute: string | null;
605
+ pausePrecompute: string | null;
606
+ dailyRewards: number;
607
+ apr: number;
608
+ creatorAddress: string;
609
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
610
+ createdAt: Date;
611
+ rootCampaignId: string | null;
612
+ parentCampaignId: string | null;
613
+ isPrivate: boolean;
614
+ campaignEncodingHash: string | null;
615
+ } | null;
616
+ Creator: {
617
+ Credit: {
618
+ creatorId: string;
619
+ amount: number;
620
+ } | null;
621
+ } & {
622
+ id: string;
623
+ icon: string | null;
624
+ name: string;
625
+ rebateFee: number;
626
+ hubspotCompanyId: string | null;
627
+ };
628
+ Token: {
629
+ id: string;
630
+ name: string | null;
631
+ chainId: number;
632
+ address: string;
633
+ decimals: number;
634
+ symbol: string;
635
+ displaySymbol: string;
636
+ icon: string;
637
+ verified: boolean;
638
+ isTest: boolean;
639
+ type: import("@package/databases").TokenType;
640
+ isNative: boolean;
641
+ underlyingTokenId: string | null;
642
+ price: number | null;
643
+ updatedAt: number | null;
644
+ priceSource: string | null;
645
+ } | null;
646
+ User: {
647
+ address: string;
648
+ tags: string[];
649
+ creatorId: string | null;
650
+ } | null;
651
+ } & {
652
+ chainId: number;
653
+ scopeType: import("@package/databases").AutoClaimScopeType;
654
+ scopeId: string;
655
+ creatorId: string;
656
+ tokenAddress: string | null;
657
+ campaignId: string | null;
658
+ userAddress: string | null;
659
+ minimumAmount: number | null;
660
+ minimumInterval: number | null;
661
+ active: boolean;
662
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
663
+ })[];
664
+ 422: {
665
+ type: "validation";
666
+ on: string;
667
+ summary?: string | undefined;
668
+ message?: string | undefined;
669
+ found?: unknown;
670
+ property?: string | undefined;
671
+ expected?: string | undefined;
672
+ };
673
+ };
674
+ };
675
+ };
676
+ } & {
677
+ autoclaim: {
678
+ ":chainId": {
679
+ ":scopeId": {
680
+ get: {
681
+ body: unknown;
682
+ params: {
683
+ chainId: number;
684
+ scopeId: string;
685
+ };
686
+ query: unknown;
687
+ headers: unknown;
688
+ response: {
689
+ 200: {
690
+ Campaign: {
691
+ id: string;
692
+ computeChainId: number;
693
+ distributionChainId: number;
694
+ campaignId: string;
695
+ type: string;
696
+ distributionType: import("@package/databases").DistributionType;
697
+ subType: number | null;
698
+ rewardTokenId: string;
699
+ amount: string;
700
+ opportunityId: string;
701
+ startTimestamp: bigint;
702
+ endTimestamp: bigint;
703
+ params: import("@prisma/client/runtime/client").JsonValue;
704
+ description: string | null;
705
+ pauseCompute: string | null;
706
+ pausePrecompute: string | null;
707
+ dailyRewards: number;
708
+ apr: number;
709
+ creatorAddress: string;
710
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
711
+ createdAt: Date;
712
+ rootCampaignId: string | null;
713
+ parentCampaignId: string | null;
714
+ isPrivate: boolean;
715
+ campaignEncodingHash: string | null;
716
+ } | null;
717
+ Creator: {
718
+ Credit: {
719
+ creatorId: string;
720
+ amount: number;
721
+ } | null;
722
+ } & {
723
+ id: string;
724
+ icon: string | null;
725
+ name: string;
726
+ rebateFee: number;
727
+ hubspotCompanyId: string | null;
728
+ };
729
+ Token: {
730
+ id: string;
731
+ name: string | null;
732
+ chainId: number;
733
+ address: string;
734
+ decimals: number;
735
+ symbol: string;
736
+ displaySymbol: string;
737
+ icon: string;
738
+ verified: boolean;
739
+ isTest: boolean;
740
+ type: import("@package/databases").TokenType;
741
+ isNative: boolean;
742
+ underlyingTokenId: string | null;
743
+ price: number | null;
744
+ updatedAt: number | null;
745
+ priceSource: string | null;
746
+ } | null;
747
+ User: {
748
+ address: string;
749
+ tags: string[];
750
+ creatorId: string | null;
751
+ } | null;
752
+ } & {
753
+ chainId: number;
754
+ scopeType: import("@package/databases").AutoClaimScopeType;
755
+ scopeId: string;
756
+ creatorId: string;
757
+ tokenAddress: string | null;
758
+ campaignId: string | null;
759
+ userAddress: string | null;
760
+ minimumAmount: number | null;
761
+ minimumInterval: number | null;
762
+ active: boolean;
763
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
764
+ };
765
+ 422: {
766
+ type: "validation";
767
+ on: string;
768
+ summary?: string | undefined;
769
+ message?: string | undefined;
770
+ found?: unknown;
771
+ property?: string | undefined;
772
+ expected?: string | undefined;
773
+ };
774
+ };
775
+ };
776
+ };
777
+ };
778
+ };
779
+ } & {
780
+ autoclaim: {
781
+ post: {
782
+ body: {
783
+ chainId: number;
784
+ scopeType: "CAMPAIGN" | "CREATOR" | "TOKEN" | "USER";
785
+ scopeId: string;
786
+ creatorId: string;
787
+ tokenAddress?: string | undefined;
788
+ campaignId?: string | undefined;
789
+ userAddress?: string | undefined;
790
+ minimumAmount?: number | undefined;
791
+ minimumInterval?: number | undefined;
792
+ pricingConfig?: {
793
+ type: import("@package/resources/enums").PricingConfigType.PER_CLAIM;
794
+ pricePerClaim?: number | undefined;
795
+ allowNegativeCredits?: boolean | undefined;
796
+ } | undefined;
797
+ };
798
+ params: {};
799
+ query: unknown;
800
+ headers: {
801
+ authorization: string;
802
+ };
803
+ response: {
804
+ 200: {
805
+ chainId: number;
806
+ scopeType: import("@package/databases").AutoClaimScopeType;
807
+ scopeId: string;
808
+ creatorId: string;
809
+ tokenAddress: string | null;
810
+ campaignId: string | null;
811
+ userAddress: string | null;
812
+ minimumAmount: number | null;
813
+ minimumInterval: number | null;
814
+ active: boolean;
815
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
816
+ };
817
+ 422: {
818
+ type: "validation";
819
+ on: string;
820
+ summary?: string | undefined;
821
+ message?: string | undefined;
822
+ found?: unknown;
823
+ property?: string | undefined;
824
+ expected?: string | undefined;
825
+ };
826
+ };
827
+ };
828
+ };
829
+ } & {
830
+ autoclaim: {
831
+ ":chainId": {
832
+ ":scopeId": {
833
+ tracked: {
834
+ get: {
835
+ body: unknown;
836
+ params: {
837
+ chainId: number;
838
+ scopeId: string;
839
+ };
840
+ query: unknown;
841
+ headers: {
842
+ authorization: string;
843
+ };
844
+ response: {
845
+ 200: {
846
+ recipient: string;
847
+ tokenAddress: string;
848
+ tokenSymbol: string;
849
+ tokenDecimals: number;
850
+ tokenIcon: string;
851
+ distributionChainId: number;
852
+ amount: string;
853
+ claimed: string;
854
+ unclaimed: string;
855
+ unclaimedUsd: number;
856
+ proof: string[];
857
+ root: string;
858
+ lastClaimedTimestamp: number | undefined;
859
+ }[];
860
+ 422: {
861
+ type: "validation";
862
+ on: string;
863
+ summary?: string | undefined;
864
+ message?: string | undefined;
865
+ found?: unknown;
866
+ property?: string | undefined;
867
+ expected?: string | undefined;
868
+ };
869
+ };
870
+ };
871
+ };
872
+ };
873
+ };
874
+ };
875
+ } & {
876
+ autoclaim: {
877
+ ":chainId": {
878
+ ":scopeId": {
879
+ claims: {
880
+ get: {
881
+ body: unknown;
882
+ params: {
883
+ chainId: number;
884
+ scopeId: string;
885
+ };
886
+ query: unknown;
887
+ headers: {
888
+ authorization: string;
889
+ };
890
+ response: {
891
+ 200: {
892
+ recipient: string;
893
+ tokenAddress: string;
894
+ tokenSymbol: string;
895
+ tokenDecimals: number;
896
+ tokenIcon: string;
897
+ distributionChainId: number;
898
+ amount: string;
899
+ claimed: string;
900
+ unclaimed: string;
901
+ unclaimedUsd: number;
902
+ proof: string[];
903
+ root: string;
904
+ lastClaimedTimestamp: number | undefined;
905
+ }[];
906
+ 422: {
907
+ type: "validation";
908
+ on: string;
909
+ summary?: string | undefined;
910
+ message?: string | undefined;
911
+ found?: unknown;
912
+ property?: string | undefined;
913
+ expected?: string | undefined;
914
+ };
915
+ };
916
+ };
917
+ };
918
+ };
919
+ };
920
+ };
921
+ } & {
922
+ autoclaim: {
923
+ ":chainId": {
924
+ ":scopeId": {
925
+ patch: {
926
+ body: {
927
+ minimumAmount?: number | undefined;
928
+ minimumInterval?: number | undefined;
929
+ active?: boolean | undefined;
930
+ pricingConfig?: {
931
+ type: import("@package/resources/enums").PricingConfigType.PER_CLAIM;
932
+ pricePerClaim?: number | undefined;
933
+ allowNegativeCredits?: boolean | undefined;
934
+ } | null | undefined;
935
+ };
936
+ params: {
937
+ chainId: number;
938
+ scopeId: string;
939
+ };
940
+ query: unknown;
941
+ headers: {
942
+ authorization: string;
943
+ };
944
+ response: {
945
+ 200: {
946
+ chainId: number;
947
+ scopeType: import("@package/databases").AutoClaimScopeType;
948
+ scopeId: string;
949
+ creatorId: string;
950
+ tokenAddress: string | null;
951
+ campaignId: string | null;
952
+ userAddress: string | null;
953
+ minimumAmount: number | null;
954
+ minimumInterval: number | null;
955
+ active: boolean;
956
+ pricingConfig: import("@prisma/client/runtime/client").JsonValue;
957
+ };
958
+ 422: {
959
+ type: "validation";
960
+ on: string;
961
+ summary?: string | undefined;
962
+ message?: string | undefined;
963
+ found?: unknown;
964
+ property?: string | undefined;
965
+ expected?: string | undefined;
966
+ };
967
+ };
968
+ };
969
+ };
970
+ };
971
+ };
571
972
  } & {
572
973
  blacklists: {
573
974
  get: {
@@ -891,7 +1292,7 @@ declare const app: Elysia<"", {
891
1292
  authorization: string;
892
1293
  };
893
1294
  response: {
894
- 200: Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
1295
+ 200: Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
895
1296
  subType: number | null;
896
1297
  startTimestamp: number;
897
1298
  endTimestamp: number;
@@ -899,6 +1300,7 @@ declare const app: Elysia<"", {
899
1300
  parentCampaignId?: string | undefined;
900
1301
  rootCampaignId?: string | undefined;
901
1302
  pauseCompute?: string | undefined;
1303
+ pausePrecompute?: string | undefined;
902
1304
  } & {
903
1305
  Opportunity: {
904
1306
  chainId: number;
@@ -1148,6 +1550,7 @@ declare const app: Elysia<"", {
1148
1550
  onChainCampaignId?: string | undefined;
1149
1551
  }[] | undefined;
1150
1552
  pauseCompute?: string | null | undefined;
1553
+ pausePrecompute?: string | null | undefined;
1151
1554
  hasOverrides?: boolean | undefined;
1152
1555
  isPrivate: boolean;
1153
1556
  campaignEncodingHash?: string | undefined;
@@ -1274,6 +1677,7 @@ declare const app: Elysia<"", {
1274
1677
  params: unknown;
1275
1678
  parentCampaignId?: string | null | undefined;
1276
1679
  pauseCompute?: string | null | undefined;
1680
+ pausePrecompute?: string | null | undefined;
1277
1681
  rewardToken: {
1278
1682
  id: string;
1279
1683
  name: string | null;
@@ -1732,6 +2136,7 @@ declare const app: Elysia<"", {
1732
2136
  onChainCampaignId?: string | undefined;
1733
2137
  }[] | undefined;
1734
2138
  pauseCompute?: string | null | undefined;
2139
+ pausePrecompute?: string | null | undefined;
1735
2140
  hasOverrides?: boolean | undefined;
1736
2141
  isPrivate: boolean;
1737
2142
  campaignEncodingHash?: string | undefined;
@@ -2012,6 +2417,7 @@ declare const app: Elysia<"", {
2012
2417
  onChainCampaignId?: string | undefined;
2013
2418
  }[] | undefined;
2014
2419
  pauseCompute?: string | null | undefined;
2420
+ pausePrecompute?: string | null | undefined;
2015
2421
  hasOverrides?: boolean | undefined;
2016
2422
  isPrivate: boolean;
2017
2423
  campaignEncodingHash?: string | undefined;
@@ -2292,6 +2698,7 @@ declare const app: Elysia<"", {
2292
2698
  onChainCampaignId?: string | undefined;
2293
2699
  }[] | undefined;
2294
2700
  pauseCompute?: string | null | undefined;
2701
+ pausePrecompute?: string | null | undefined;
2295
2702
  hasOverrides?: boolean | undefined;
2296
2703
  isPrivate: boolean;
2297
2704
  campaignEncodingHash?: string | undefined;
@@ -2619,6 +3026,7 @@ declare const app: Elysia<"", {
2619
3026
  onChainCampaignId?: string | undefined;
2620
3027
  }[] | undefined;
2621
3028
  pauseCompute?: string | null | undefined;
3029
+ pausePrecompute?: string | null | undefined;
2622
3030
  hasOverrides?: boolean | undefined;
2623
3031
  isPrivate: boolean;
2624
3032
  campaignEncodingHash?: string | undefined;
@@ -2745,6 +3153,7 @@ declare const app: Elysia<"", {
2745
3153
  params: unknown;
2746
3154
  parentCampaignId?: string | null | undefined;
2747
3155
  pauseCompute?: string | null | undefined;
3156
+ pausePrecompute?: string | null | undefined;
2748
3157
  rewardToken: {
2749
3158
  id: string;
2750
3159
  name: string | null;
@@ -3047,7 +3456,7 @@ declare const app: Elysia<"", {
3047
3456
  authorization: string;
3048
3457
  };
3049
3458
  response: {
3050
- 200: Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
3459
+ 200: Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
3051
3460
  subType: number | null;
3052
3461
  startTimestamp: number;
3053
3462
  endTimestamp: number;
@@ -3055,6 +3464,7 @@ declare const app: Elysia<"", {
3055
3464
  parentCampaignId?: string | undefined;
3056
3465
  rootCampaignId?: string | undefined;
3057
3466
  pauseCompute?: string | undefined;
3467
+ pausePrecompute?: string | undefined;
3058
3468
  } & {
3059
3469
  Opportunity: {
3060
3470
  chainId: number;
@@ -3217,6 +3627,7 @@ declare const app: Elysia<"", {
3217
3627
  body: {
3218
3628
  description?: string | undefined;
3219
3629
  pauseCompute?: string | null | undefined;
3630
+ pausePrecompute?: string | null | undefined;
3220
3631
  };
3221
3632
  params: {
3222
3633
  id: string;
@@ -3228,7 +3639,7 @@ declare const app: Elysia<"", {
3228
3639
  authorization: string;
3229
3640
  };
3230
3641
  response: {
3231
- 200: (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
3642
+ 200: (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
3232
3643
  subType: number | null;
3233
3644
  startTimestamp: number;
3234
3645
  endTimestamp: number;
@@ -3236,7 +3647,8 @@ declare const app: Elysia<"", {
3236
3647
  parentCampaignId?: string | undefined;
3237
3648
  rootCampaignId?: string | undefined;
3238
3649
  pauseCompute?: string | undefined;
3239
- })[] | (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
3650
+ pausePrecompute?: string | undefined;
3651
+ })[] | (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
3240
3652
  subType: number | null;
3241
3653
  startTimestamp: number;
3242
3654
  endTimestamp: number;
@@ -3244,6 +3656,7 @@ declare const app: Elysia<"", {
3244
3656
  parentCampaignId?: string | undefined;
3245
3657
  rootCampaignId?: string | undefined;
3246
3658
  pauseCompute?: string | undefined;
3659
+ pausePrecompute?: string | undefined;
3247
3660
  } & {
3248
3661
  Opportunity: {
3249
3662
  chainId: number;
@@ -4091,6 +4504,7 @@ declare const app: Elysia<"", {
4091
4504
  params: import("@prisma/client/runtime/client").JsonValue;
4092
4505
  description: string | null;
4093
4506
  pauseCompute: string | null;
4507
+ pausePrecompute: string | null;
4094
4508
  dailyRewards: number;
4095
4509
  apr: number;
4096
4510
  creatorAddress: string;
@@ -4956,6 +5370,7 @@ declare const app: Elysia<"", {
4956
5370
  params: import("@prisma/client/runtime/client").JsonValue;
4957
5371
  description: string | null;
4958
5372
  pauseCompute: string | null;
5373
+ pausePrecompute: string | null;
4959
5374
  dailyRewards: number;
4960
5375
  apr: number;
4961
5376
  creatorAddress: string;
@@ -5220,6 +5635,7 @@ declare const app: Elysia<"", {
5220
5635
  params: import("@prisma/client/runtime/client").JsonValue;
5221
5636
  description: string | null;
5222
5637
  pauseCompute: string | null;
5638
+ pausePrecompute: string | null;
5223
5639
  dailyRewards: number;
5224
5640
  apr: number;
5225
5641
  creatorAddress: string;
@@ -5483,6 +5899,7 @@ declare const app: Elysia<"", {
5483
5899
  params: import("@prisma/client/runtime/client").JsonValue;
5484
5900
  description: string | null;
5485
5901
  pauseCompute: string | null;
5902
+ pausePrecompute: string | null;
5486
5903
  dailyRewards: number;
5487
5904
  apr: number;
5488
5905
  creatorAddress: string;
@@ -8905,6 +9322,7 @@ declare const app: Elysia<"", {
8905
9322
  params: import("@prisma/client/runtime/client").JsonValue;
8906
9323
  description: string | null;
8907
9324
  pauseCompute: string | null;
9325
+ pausePrecompute: string | null;
8908
9326
  dailyRewards: number;
8909
9327
  apr: number;
8910
9328
  creatorAddress: string;
@@ -9903,6 +10321,7 @@ declare const app: Elysia<"", {
9903
10321
  maximumDailyRewards?: number | undefined;
9904
10322
  status?: string | undefined;
9905
10323
  identifier?: string | undefined;
10324
+ id?: string | undefined;
9906
10325
  tokens?: string | undefined;
9907
10326
  stablecoin?: boolean | undefined;
9908
10327
  rewardTokenSymbol?: string | undefined;
@@ -9961,6 +10380,7 @@ declare const app: Elysia<"", {
9961
10380
  maximumDailyRewards?: number | undefined;
9962
10381
  status?: string | undefined;
9963
10382
  identifier?: string | undefined;
10383
+ id?: string | undefined;
9964
10384
  tokens?: string | undefined;
9965
10385
  stablecoin?: boolean | undefined;
9966
10386
  rewardTokenSymbol?: string | undefined;
@@ -10250,6 +10670,7 @@ declare const app: Elysia<"", {
10250
10670
  onChainCampaignId?: string | undefined;
10251
10671
  }[] | undefined;
10252
10672
  pauseCompute?: string | null | undefined;
10673
+ pausePrecompute?: string | null | undefined;
10253
10674
  hasOverrides?: boolean | undefined;
10254
10675
  isPrivate: boolean;
10255
10676
  campaignEncodingHash?: string | undefined;
@@ -10283,7 +10704,7 @@ declare const app: Elysia<"", {
10283
10704
  };
10284
10705
  headers: unknown;
10285
10706
  response: {
10286
- 200: (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
10707
+ 200: (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
10287
10708
  subType: number | null;
10288
10709
  startTimestamp: number;
10289
10710
  endTimestamp: number;
@@ -10291,6 +10712,7 @@ declare const app: Elysia<"", {
10291
10712
  parentCampaignId?: string | undefined;
10292
10713
  rootCampaignId?: string | undefined;
10293
10714
  pauseCompute?: string | undefined;
10715
+ pausePrecompute?: string | undefined;
10294
10716
  })[] | ({
10295
10717
  Opportunity: {
10296
10718
  id: string;
@@ -10336,6 +10758,7 @@ declare const app: Elysia<"", {
10336
10758
  params: import("@prisma/client/runtime/client").JsonValue;
10337
10759
  description: string | null;
10338
10760
  pauseCompute: string | null;
10761
+ pausePrecompute: string | null;
10339
10762
  dailyRewards: number;
10340
10763
  apr: number;
10341
10764
  creatorAddress: string;
@@ -10522,6 +10945,149 @@ declare const app: Elysia<"", {
10522
10945
  };
10523
10946
  };
10524
10947
  };
10948
+ } & {
10949
+ credits: {
10950
+ ":creatorId": {
10951
+ get: {
10952
+ body: unknown;
10953
+ params: {
10954
+ creatorId: string;
10955
+ };
10956
+ query: unknown;
10957
+ headers: unknown;
10958
+ response: {
10959
+ 200: {
10960
+ Creator: {
10961
+ id: string;
10962
+ icon: string | null;
10963
+ name: string;
10964
+ rebateFee: number;
10965
+ hubspotCompanyId: string | null;
10966
+ };
10967
+ CreditOperations: {
10968
+ id: string;
10969
+ creatorId: string;
10970
+ type: import("@package/databases").CreditOperationType;
10971
+ amount: number;
10972
+ label: string;
10973
+ timestamp: Date;
10974
+ }[];
10975
+ } & {
10976
+ creatorId: string;
10977
+ amount: number;
10978
+ };
10979
+ 422: {
10980
+ type: "validation";
10981
+ on: string;
10982
+ summary?: string | undefined;
10983
+ message?: string | undefined;
10984
+ found?: unknown;
10985
+ property?: string | undefined;
10986
+ expected?: string | undefined;
10987
+ };
10988
+ };
10989
+ };
10990
+ };
10991
+ };
10992
+ } & {
10993
+ credits: {
10994
+ ":creatorId": {
10995
+ operations: {
10996
+ get: {
10997
+ body: unknown;
10998
+ params: {
10999
+ creatorId: string;
11000
+ };
11001
+ query: {
11002
+ page?: number | undefined;
11003
+ items?: number | undefined;
11004
+ };
11005
+ headers: unknown;
11006
+ response: {
11007
+ 200: {
11008
+ id: string;
11009
+ creatorId: string;
11010
+ type: import("@package/databases").CreditOperationType;
11011
+ amount: number;
11012
+ label: string;
11013
+ timestamp: string;
11014
+ }[];
11015
+ 422: {
11016
+ type: "validation";
11017
+ on: string;
11018
+ summary?: string | undefined;
11019
+ message?: string | undefined;
11020
+ found?: unknown;
11021
+ property?: string | undefined;
11022
+ expected?: string | undefined;
11023
+ };
11024
+ };
11025
+ };
11026
+ };
11027
+ };
11028
+ };
11029
+ } & {
11030
+ credits: {
11031
+ post: {
11032
+ body: {
11033
+ creatorId: string;
11034
+ amount: number;
11035
+ label: string;
11036
+ };
11037
+ params: {};
11038
+ query: unknown;
11039
+ headers: {
11040
+ authorization: string;
11041
+ };
11042
+ response: {
11043
+ 200: {
11044
+ creatorId: string;
11045
+ amount: number;
11046
+ };
11047
+ 422: {
11048
+ type: "validation";
11049
+ on: string;
11050
+ summary?: string | undefined;
11051
+ message?: string | undefined;
11052
+ found?: unknown;
11053
+ property?: string | undefined;
11054
+ expected?: string | undefined;
11055
+ };
11056
+ };
11057
+ };
11058
+ };
11059
+ } & {
11060
+ credits: {
11061
+ subtract: {
11062
+ post: {
11063
+ body: {
11064
+ creatorId: string;
11065
+ amount: number;
11066
+ label: string;
11067
+ };
11068
+ params: {};
11069
+ query: unknown;
11070
+ headers: {
11071
+ authorization: string;
11072
+ };
11073
+ response: {
11074
+ 200: {
11075
+ creatorId: string;
11076
+ amount: number;
11077
+ };
11078
+ 422: {
11079
+ type: "validation";
11080
+ on: string;
11081
+ summary?: string | undefined;
11082
+ message?: string | undefined;
11083
+ found?: unknown;
11084
+ property?: string | undefined;
11085
+ expected?: string | undefined;
11086
+ };
11087
+ };
11088
+ };
11089
+ };
11090
+ };
10525
11091
  } & {
10526
11092
  diffs: {
10527
11093
  get: {
@@ -12313,6 +12879,7 @@ declare const app: Elysia<"", {
12313
12879
  onChainCampaignId?: string | undefined;
12314
12880
  }[] | undefined;
12315
12881
  pauseCompute?: string | null | undefined;
12882
+ pausePrecompute?: string | null | undefined;
12316
12883
  hasOverrides?: boolean | undefined;
12317
12884
  isPrivate: boolean;
12318
12885
  campaignEncodingHash?: string | undefined;
@@ -12632,6 +13199,7 @@ declare const app: Elysia<"", {
12632
13199
  onChainCampaignId?: string | undefined;
12633
13200
  }[] | undefined;
12634
13201
  pauseCompute?: string | null | undefined;
13202
+ pausePrecompute?: string | null | undefined;
12635
13203
  hasOverrides?: boolean | undefined;
12636
13204
  isPrivate: boolean;
12637
13205
  campaignEncodingHash?: string | undefined;
@@ -12911,6 +13479,7 @@ declare const app: Elysia<"", {
12911
13479
  onChainCampaignId?: string | undefined;
12912
13480
  }[] | undefined;
12913
13481
  pauseCompute?: string | null | undefined;
13482
+ pausePrecompute?: string | null | undefined;
12914
13483
  hasOverrides?: boolean | undefined;
12915
13484
  isPrivate: boolean;
12916
13485
  campaignEncodingHash?: string | undefined;
@@ -13231,6 +13800,7 @@ declare const app: Elysia<"", {
13231
13800
  onChainCampaignId?: string | undefined;
13232
13801
  }[] | undefined;
13233
13802
  pauseCompute?: string | null | undefined;
13803
+ pausePrecompute?: string | null | undefined;
13234
13804
  hasOverrides?: boolean | undefined;
13235
13805
  isPrivate: boolean;
13236
13806
  campaignEncodingHash?: string | undefined;
@@ -13355,6 +13925,7 @@ declare const app: Elysia<"", {
13355
13925
  maximumDailyRewards?: number | undefined;
13356
13926
  status?: string | undefined;
13357
13927
  identifier?: string | undefined;
13928
+ id?: string | undefined;
13358
13929
  campaigns?: boolean | undefined;
13359
13930
  tokens?: string | undefined;
13360
13931
  stablecoin?: boolean | undefined;
@@ -13647,6 +14218,7 @@ declare const app: Elysia<"", {
13647
14218
  onChainCampaignId?: string | undefined;
13648
14219
  }[] | undefined;
13649
14220
  pauseCompute?: string | null | undefined;
14221
+ pausePrecompute?: string | null | undefined;
13650
14222
  hasOverrides?: boolean | undefined;
13651
14223
  isPrivate: boolean;
13652
14224
  campaignEncodingHash?: string | undefined;
@@ -13926,6 +14498,7 @@ declare const app: Elysia<"", {
13926
14498
  onChainCampaignId?: string | undefined;
13927
14499
  }[] | undefined;
13928
14500
  pauseCompute?: string | null | undefined;
14501
+ pausePrecompute?: string | null | undefined;
13929
14502
  hasOverrides?: boolean | undefined;
13930
14503
  isPrivate: boolean;
13931
14504
  campaignEncodingHash?: string | undefined;
@@ -13972,6 +14545,7 @@ declare const app: Elysia<"", {
13972
14545
  maximumDailyRewards?: number | undefined;
13973
14546
  status?: string | undefined;
13974
14547
  identifier?: string | undefined;
14548
+ id?: string | undefined;
13975
14549
  campaigns?: boolean | undefined;
13976
14550
  tokens?: string | undefined;
13977
14551
  stablecoin?: boolean | undefined;
@@ -14033,6 +14607,7 @@ declare const app: Elysia<"", {
14033
14607
  maximumDailyRewards?: number | undefined;
14034
14608
  status?: string | undefined;
14035
14609
  identifier?: string | undefined;
14610
+ id?: string | undefined;
14036
14611
  campaigns?: boolean | undefined;
14037
14612
  tokens?: string | undefined;
14038
14613
  stablecoin?: boolean | undefined;
@@ -14101,6 +14676,7 @@ declare const app: Elysia<"", {
14101
14676
  maximumDailyRewards?: number | undefined;
14102
14677
  status?: string | undefined;
14103
14678
  identifier?: string | undefined;
14679
+ id?: string | undefined;
14104
14680
  campaigns?: boolean | undefined;
14105
14681
  tokens?: string | undefined;
14106
14682
  stablecoin?: boolean | undefined;
@@ -14169,6 +14745,7 @@ declare const app: Elysia<"", {
14169
14745
  maximumDailyRewards?: number | undefined;
14170
14746
  status?: string | undefined;
14171
14747
  identifier?: string | undefined;
14748
+ id?: string | undefined;
14172
14749
  campaigns?: boolean | undefined;
14173
14750
  tokens?: string | undefined;
14174
14751
  stablecoin?: boolean | undefined;
@@ -14239,6 +14816,7 @@ declare const app: Elysia<"", {
14239
14816
  maximumDailyRewards?: number | undefined;
14240
14817
  status?: string | undefined;
14241
14818
  identifier?: string | undefined;
14819
+ id?: string | undefined;
14242
14820
  campaigns?: boolean | undefined;
14243
14821
  tokens?: string | undefined;
14244
14822
  stablecoin?: boolean | undefined;
@@ -14306,6 +14884,7 @@ declare const app: Elysia<"", {
14306
14884
  maximumDailyRewards?: number | undefined;
14307
14885
  status?: string | undefined;
14308
14886
  identifier?: string | undefined;
14887
+ id?: string | undefined;
14309
14888
  campaigns?: boolean | undefined;
14310
14889
  tokens?: string | undefined;
14311
14890
  stablecoin?: boolean | undefined;
@@ -14374,6 +14953,7 @@ declare const app: Elysia<"", {
14374
14953
  maximumDailyRewards?: number | undefined;
14375
14954
  status?: string | undefined;
14376
14955
  identifier?: string | undefined;
14956
+ id?: string | undefined;
14377
14957
  campaigns?: boolean | undefined;
14378
14958
  tokens?: string | undefined;
14379
14959
  stablecoin?: boolean | undefined;
@@ -14481,6 +15061,7 @@ declare const app: Elysia<"", {
14481
15061
  params: import("@prisma/client/runtime/client").JsonValue;
14482
15062
  description: string | null;
14483
15063
  pauseCompute: string | null;
15064
+ pausePrecompute: string | null;
14484
15065
  dailyRewards: number;
14485
15066
  apr: number;
14486
15067
  creatorAddress: string;
@@ -14984,6 +15565,7 @@ declare const app: Elysia<"", {
14984
15565
  params: import("@prisma/client/runtime/client").JsonValue;
14985
15566
  description: string | null;
14986
15567
  pauseCompute: string | null;
15568
+ pausePrecompute: string | null;
14987
15569
  dailyRewards: number;
14988
15570
  apr: number;
14989
15571
  creatorAddress: string;
@@ -15604,6 +16186,7 @@ declare const app: Elysia<"", {
15604
16186
  params: import("@prisma/client/runtime/client").JsonValue;
15605
16187
  description: string | null;
15606
16188
  pauseCompute: string | null;
16189
+ pausePrecompute: string | null;
15607
16190
  dailyRewards: number;
15608
16191
  apr: number;
15609
16192
  creatorAddress: string;
@@ -15886,6 +16469,7 @@ declare const app: Elysia<"", {
15886
16469
  params: import("@prisma/client/runtime/client").JsonValue;
15887
16470
  description: string | null;
15888
16471
  pauseCompute: string | null;
16472
+ pausePrecompute: string | null;
15889
16473
  dailyRewards: number;
15890
16474
  apr: number;
15891
16475
  creatorAddress: string;
@@ -16169,6 +16753,7 @@ declare const app: Elysia<"", {
16169
16753
  params: import("@prisma/client/runtime/client").JsonValue;
16170
16754
  description: string | null;
16171
16755
  pauseCompute: string | null;
16756
+ pausePrecompute: string | null;
16172
16757
  dailyRewards: number;
16173
16758
  apr: number;
16174
16759
  creatorAddress: string;