@merkl/api 0.10.78
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +125 -0
- package/dist/database/api/.generated/default.d.ts +1 -0
- package/dist/database/api/.generated/edge.d.ts +1 -0
- package/dist/database/api/.generated/index.d.ts +36404 -0
- package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +84 -0
- package/dist/database/api/.generated/runtime/index-browser.d.ts +365 -0
- package/dist/database/api/.generated/runtime/library.d.ts +3273 -0
- package/dist/database/api/.generated/schema.prisma +366 -0
- package/dist/database/api/.generated/wasm.d.ts +1 -0
- package/dist/database/api/seeder/resources/protocol.d.ts +353 -0
- package/dist/database/engine/.generated/default.d.ts +1 -0
- package/dist/database/engine/.generated/edge.d.ts +1 -0
- package/dist/database/engine/.generated/index.d.ts +16342 -0
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +84 -0
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +365 -0
- package/dist/database/engine/.generated/runtime/library.d.ts +3273 -0
- package/dist/database/engine/.generated/schema.prisma +205 -0
- package/dist/database/engine/.generated/wasm.d.ts +1 -0
- package/dist/src/backgroundJobs/index.d.ts +1 -0
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +45 -0
- package/dist/src/backgroundJobs/jobs/health.d.ts +40 -0
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +37 -0
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +35 -0
- package/dist/src/backgroundJobs/jobs/sync.d.ts +39 -0
- package/dist/src/cache/declaration.d.ts +153 -0
- package/dist/src/cache/index.d.ts +52 -0
- package/dist/src/cache/redis.d.ts +311 -0
- package/dist/src/constants.d.ts +349 -0
- package/dist/src/eden/index.d.ts +4882 -0
- package/dist/src/eden/index.js +4 -0
- package/dist/src/entities/campaign.d.ts +58 -0
- package/dist/src/entities/opportunity.d.ts +17 -0
- package/dist/src/errors/BadRequest.error.d.ts +4 -0
- package/dist/src/errors/Conflict.error.d.ts +4 -0
- package/dist/src/errors/HttpError.d.ts +6 -0
- package/dist/src/errors/NotFound.error.d.ts +4 -0
- package/dist/src/errors/Opportunity.error.d.ts +6 -0
- package/dist/src/errors/Unauthorized.error.d.ts +4 -0
- package/dist/src/errors/index.d.ts +5 -0
- package/dist/src/guards/BackOffice.guard.d.ts +7 -0
- package/dist/src/guards/Engine.guard.d.ts +7 -0
- package/dist/src/guards/TokenAuth.guard.d.ts +7 -0
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +21 -0
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +21 -0
- package/dist/src/index.d.ts +1889 -0
- package/dist/src/internal/controllers/endingCampaigns.d.ts +42 -0
- package/dist/src/internal/controllers/unclaimed.d.ts +43 -0
- package/dist/src/internal/index.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/DolomiteDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/eulerVaultNames.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getBlacklistedSupply.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/metamorphoTvl.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/spliceTVL.d.ts +7 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +45 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +23 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.d.ts +7 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.d.ts +6 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.d.ts +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20_SNAPSHOTDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/EulerDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/JSON_AIRDROPDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/MORPHODynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/SILODynamicData.d.ts +7 -0
- package/dist/src/libs/campaigns/campaignsDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/getCampaigns.d.ts +1 -0
- package/dist/src/libs/campaigns/getRewards.d.ts +29 -0
- package/dist/src/libs/campaigns/utils/fetchA51Strategies.d.ts +18 -0
- package/dist/src/libs/campaigns/utils/fetchClamInfo.d.ts +2 -0
- package/dist/src/libs/campaigns/utils/fetchLogs.d.ts +10 -0
- package/dist/src/libs/campaigns/utils/getCompV2ForksVaults.d.ts +19 -0
- package/dist/src/libs/campaigns/utils/getContractCreationBlock.d.ts +2 -0
- package/dist/src/libs/campaigns/utils/getDolomiteMarkets.d.ts +7 -0
- package/dist/src/libs/campaigns/utils/getEulerV2Vaults.d.ts +16 -0
- package/dist/src/libs/campaigns/utils/getLastEligibilityRatio.d.ts +2 -0
- package/dist/src/libs/computeFee.d.ts +4 -0
- package/dist/src/libs/custom/twtParticipants.d.ts +6 -0
- package/dist/src/libs/deprecated-merklv3/index.d.ts +5 -0
- package/dist/src/libs/getTokensList.d.ts +27 -0
- package/dist/src/libs/merklChainData.d.ts +4 -0
- package/dist/src/libs/parse/marketsWithCache.d.ts +4 -0
- package/dist/src/libs/positions/ajna/index.d.ts +41 -0
- package/dist/src/libs/positions/badger/index.d.ts +27 -0
- package/dist/src/libs/positions/clamm/index.d.ts +8 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +5 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +8 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +11 -0
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +37 -0
- package/dist/src/libs/positions/compound/index.d.ts +26 -0
- package/dist/src/libs/positions/dolomite/index.d.ts +17 -0
- package/dist/src/libs/positions/erc20/index.d.ts +5 -0
- package/dist/src/libs/positions/euler/index.d.ts +5 -0
- package/dist/src/libs/positions/index.d.ts +3 -0
- package/dist/src/libs/positions/morpho/index.d.ts +40 -0
- package/dist/src/libs/positions/prepareFetch.d.ts +22 -0
- package/dist/src/libs/positions/silo/index.d.ts +5 -0
- package/dist/src/libs/positions/types.d.ts +20 -0
- package/dist/src/libs/reports/campaignReport.d.ts +9 -0
- package/dist/src/libs/reports/mainParameterRewards.d.ts +3 -0
- package/dist/src/libs/rewards/userRewards.d.ts +2 -0
- package/dist/src/libs/staticCampaigns.d.ts +2 -0
- package/dist/src/libs/tokens/balances.d.ts +11 -0
- package/dist/src/libs/tokens/tokenInfo.d.ts +8 -0
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +206 -0
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +32 -0
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +99 -0
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +44 -0
- package/dist/src/modules/v4/accounting/index.d.ts +3 -0
- package/dist/src/modules/v4/apr/apr.controller.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.model.d.ts +15 -0
- package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.service.d.ts +6 -0
- package/dist/src/modules/v4/apr/index.d.ts +2 -0
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +122 -0
- package/dist/src/modules/v4/blacklist/blacklist.model.d.ts +15 -0
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +24 -0
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +24 -0
- package/dist/src/modules/v4/blacklist/index.d.ts +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +139 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +85 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +110 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +180 -0
- package/dist/src/modules/v4/campaign/index.d.ts +3 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +91 -0
- package/dist/src/modules/v4/chain/chain.model.d.ts +19 -0
- package/dist/src/modules/v4/chain/chain.repository.d.ts +66 -0
- package/dist/src/modules/v4/chain/chain.service.d.ts +42 -0
- package/dist/src/modules/v4/chain/index.d.ts +3 -0
- package/dist/src/modules/v4/enso/enso.model.d.ts +130 -0
- package/dist/src/modules/v4/enso/enso.service.d.ts +47 -0
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +8 -0
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +8 -0
- package/dist/src/modules/v4/explorer/index.d.ts +1 -0
- package/dist/src/modules/v4/index.d.ts +4 -0
- package/dist/src/modules/v4/merklRoot/index.d.ts +3 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +44 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.model.d.ts +6 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +21 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +34 -0
- package/dist/src/modules/v4/opportunity/index.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +349 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +113 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +432 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +413 -0
- package/dist/src/modules/v4/opportunity/subservices/getAjnaMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getBadgerMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getClammMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getCompoundMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getDolomiteMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getErc20Metadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getErc20SnapshotMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getEulerMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getJsonAirDropMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getMorphoMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getRadiantMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getSiloMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/transform-id.pipe.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/validate-id.pipe.d.ts +5 -0
- package/dist/src/modules/v4/participate/participate.controller.d.ts +120 -0
- package/dist/src/modules/v4/participate/participate.model.d.ts +51 -0
- package/dist/src/modules/v4/participate/participate.service.d.ts +8 -0
- package/dist/src/modules/v4/price/index.d.ts +3 -0
- package/dist/src/modules/v4/price/price.controller.d.ts +169 -0
- package/dist/src/modules/v4/price/price.model.d.ts +32 -0
- package/dist/src/modules/v4/price/price.repository.d.ts +33 -0
- package/dist/src/modules/v4/price/price.service.d.ts +33 -0
- package/dist/src/modules/v4/prisma/index.d.ts +32 -0
- package/dist/src/modules/v4/protocol/index.d.ts +3 -0
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +87 -0
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +27 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +37 -0
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +10 -0
- package/dist/src/modules/v4/reward/index.d.ts +3 -0
- package/dist/src/modules/v4/reward/reward.controller.d.ts +158 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +158 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +158 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +523 -0
- package/dist/src/modules/v4/reward/rewardConvertor.service.d.ts +14 -0
- package/dist/src/modules/v4/router.d.ts +1865 -0
- package/dist/src/modules/v4/status/index.d.ts +3 -0
- package/dist/src/modules/v4/status/status.controller.d.ts +143 -0
- package/dist/src/modules/v4/status/status.model.d.ts +23 -0
- package/dist/src/modules/v4/status/status.repository.d.ts +68 -0
- package/dist/src/modules/v4/status/status.service.d.ts +38 -0
- package/dist/src/modules/v4/token/index.d.ts +3 -0
- package/dist/src/modules/v4/token/token.controller.d.ts +131 -0
- package/dist/src/modules/v4/token/token.model.d.ts +35 -0
- package/dist/src/modules/v4/token/token.repository.d.ts +59 -0
- package/dist/src/modules/v4/token/token.service.d.ts +165 -0
- package/dist/src/modules/v4/tvl/index.d.ts +2 -0
- package/dist/src/modules/v4/tvl/tvl.controller.d.ts +0 -0
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +15 -0
- package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
- package/dist/src/modules/v4/tvl/tvl.service.d.ts +6 -0
- package/dist/src/modules/v4/uniswapV4/index.d.ts +4 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +52 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.model.d.ts +15 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.repository.d.ts +2 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.service.d.ts +20 -0
- package/dist/src/modules/v4/user/index.d.ts +3 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +325 -0
- package/dist/src/modules/v4/user/user.model.d.ts +25 -0
- package/dist/src/modules/v4/user/user.repository.d.ts +19 -0
- package/dist/src/modules/v4/user/user.service.d.ts +19 -0
- package/dist/src/plugins/error-handling.plugin.d.ts +28 -0
- package/dist/src/plugins/logger.plugin.d.ts +21 -0
- package/dist/src/routes/v1/allowances.d.ts +66 -0
- package/dist/src/routes/v1/balances.d.ts +49 -0
- package/dist/src/routes/v1/prices.d.ts +41 -0
- package/dist/src/routes/v1/tokens.d.ts +44 -0
- package/dist/src/routes/v2/merkl.d.ts +54 -0
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +1910 -0
- package/dist/src/routes/v3/app.d.ts +39 -0
- package/dist/src/routes/v3/blacklist.d.ts +1910 -0
- package/dist/src/routes/v3/campaign/delay.d.ts +41 -0
- package/dist/src/routes/v3/campaignClaims.d.ts +43 -0
- package/dist/src/routes/v3/campaignReport.d.ts +42 -0
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +43 -0
- package/dist/src/routes/v3/campaigns.d.ts +1915 -0
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +42 -0
- package/dist/src/routes/v3/campaignsInfo.d.ts +1902 -0
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +43 -0
- package/dist/src/routes/v3/claims.d.ts +45 -0
- package/dist/src/routes/v3/compoundV2.d.ts +40 -0
- package/dist/src/routes/v3/createCampaign.d.ts +46 -0
- package/dist/src/routes/v3/dolomite.d.ts +40 -0
- package/dist/src/routes/v3/euler.d.ts +40 -0
- package/dist/src/routes/v3/exports/campaigns.d.ts +42 -0
- package/dist/src/routes/v3/fetch.d.ts +45 -0
- package/dist/src/routes/v3/health.d.ts +39 -0
- package/dist/src/routes/v3/lostyield.d.ts +52 -0
- package/dist/src/routes/v3/merkl.d.ts +87 -0
- package/dist/src/routes/v3/morphoMarkets.d.ts +61 -0
- package/dist/src/routes/v3/morphoVaults.d.ts +51 -0
- package/dist/src/routes/v3/multiChainPositions.d.ts +1909 -0
- package/dist/src/routes/v3/opportunity.d.ts +1946 -0
- package/dist/src/routes/v3/overview.d.ts +60 -0
- package/dist/src/routes/v3/parse.d.ts +46 -0
- package/dist/src/routes/v3/payload.d.ts +57 -0
- package/dist/src/routes/v3/poolInfo.d.ts +42 -0
- package/dist/src/routes/v3/positions.d.ts +1927 -0
- package/dist/src/routes/v3/radiant.d.ts +55 -0
- package/dist/src/routes/v3/recipients.d.ts +38 -0
- package/dist/src/routes/v3/rewards.d.ts +1910 -0
- package/dist/src/routes/v3/rewardsReport.d.ts +48 -0
- package/dist/src/routes/v3/rootForTimestamp.d.ts +52 -0
- package/dist/src/routes/v3/silo.d.ts +52 -0
- package/dist/src/routes/v3/token.d.ts +50 -0
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +43 -0
- package/dist/src/routes/v3/twt/participants.d.ts +40 -0
- package/dist/src/routes/v3/updates.d.ts +1907 -0
- package/dist/src/routes/v3/userRewards.d.ts +1931 -0
- package/dist/src/types/index.d.ts +46 -0
- package/dist/src/types/parameters/Action.d.ts +4 -0
- package/dist/src/types/parameters/Chain.d.ts +4 -0
- package/dist/src/types/parameters/ChainCampaignId.d.ts +4 -0
- package/dist/src/types/parameters/MainParameter.d.ts +4 -0
- package/dist/src/types/parameters/OpportunityId.d.ts +4 -0
- package/dist/src/types/parameters/Timestamp.d.ts +4 -0
- package/dist/src/types/parameters/Type.d.ts +4 -0
- package/dist/src/types/parameters/index.d.ts +36 -0
- package/dist/src/types/returnTypes.d.ts +27 -0
- package/dist/src/types/utils.d.ts +5 -0
- package/dist/src/utils/addString.d.ts +2 -0
- package/dist/src/utils/bigintToString.d.ts +1 -0
- package/dist/src/utils/crypto.d.ts +1 -0
- package/dist/src/utils/error.d.ts +53 -0
- package/dist/src/utils/execute.d.ts +32 -0
- package/dist/src/utils/generic.d.ts +24 -0
- package/dist/src/utils/hashArray.d.ts +1 -0
- package/dist/src/utils/lastBlockBefore.d.ts +3 -0
- package/dist/src/utils/logger.d.ts +24 -0
- package/dist/src/utils/pricer.d.ts +52 -0
- package/dist/src/utils/prices/chainlinkRead.d.ts +4 -0
- package/dist/src/utils/prices/curveVirtualPrice.d.ts +4 -0
- package/dist/src/utils/prices/getDQUICK.d.ts +4 -0
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +10 -0
- package/dist/src/utils/prices/priceService.d.ts +13 -0
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +12 -0
- package/dist/src/utils/prices/services/defillamaService.d.ts +12 -0
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +12 -0
- package/dist/src/utils/prices/services/erc4626Service.d.ts +9 -0
- package/dist/src/utils/prices/services/getERC4626.d.ts +4 -0
- package/dist/src/utils/prices/services/indexCoopService.d.ts +12 -0
- package/dist/src/utils/prices/services/priceFetcher.d.ts +8 -0
- package/dist/src/utils/prices/uniV2Price.d.ts +7 -0
- package/dist/src/utils/prisma.d.ts +16 -0
- package/dist/src/utils/providers.d.ts +13 -0
- package/dist/src/utils/queries/activeCampaigns.d.ts +3 -0
- package/dist/src/utils/queries/allCampaigns.d.ts +6 -0
- package/dist/src/utils/queries/campaignsForMainParameter.d.ts +2 -0
- package/dist/src/utils/queries/claimsOverTime.d.ts +8 -0
- package/dist/src/utils/queries/endingCampaigns.d.ts +10 -0
- package/dist/src/utils/queries/futureCampaigns.d.ts +3 -0
- package/dist/src/utils/queries/mainParameterCampaigns.d.ts +5 -0
- package/dist/src/utils/queries/rewardsAmount.d.ts +10 -0
- package/dist/src/utils/queries/unclaimed.d.ts +11 -0
- package/dist/src/utils/rateLimit.d.ts +63 -0
- package/dist/src/utils/stryke.d.ts +2 -0
- package/dist/src/utils/throw.d.ts +4 -0
- package/dist/src/utils/trace.d.ts +26 -0
- package/dist/src/utils/validation.d.ts +5 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -0
- package/package.json +91 -0
Binary file
|
Binary file
|
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"name": "prisma-client-965afba2a21638c37deff7e80d13b253f9e3bfecec10a787c0d6baf69ba748b7",
|
3
|
+
"main": "index.js",
|
4
|
+
"types": "index.d.ts",
|
5
|
+
"browser": "index-browser.js",
|
6
|
+
"exports": {
|
7
|
+
"./package.json": "./package.json",
|
8
|
+
".": {
|
9
|
+
"require": {
|
10
|
+
"node": "./index.js",
|
11
|
+
"edge-light": "./wasm.js",
|
12
|
+
"workerd": "./wasm.js",
|
13
|
+
"worker": "./wasm.js",
|
14
|
+
"browser": "./index-browser.js",
|
15
|
+
"default": "./index.js"
|
16
|
+
},
|
17
|
+
"import": {
|
18
|
+
"node": "./index.js",
|
19
|
+
"edge-light": "./wasm.js",
|
20
|
+
"workerd": "./wasm.js",
|
21
|
+
"worker": "./wasm.js",
|
22
|
+
"browser": "./index-browser.js",
|
23
|
+
"default": "./index.js"
|
24
|
+
},
|
25
|
+
"default": "./index.js"
|
26
|
+
},
|
27
|
+
"./edge": {
|
28
|
+
"types": "./edge.d.ts",
|
29
|
+
"require": "./edge.js",
|
30
|
+
"import": "./edge.js",
|
31
|
+
"default": "./edge.js"
|
32
|
+
},
|
33
|
+
"./react-native": {
|
34
|
+
"types": "./react-native.d.ts",
|
35
|
+
"require": "./react-native.js",
|
36
|
+
"import": "./react-native.js",
|
37
|
+
"default": "./react-native.js"
|
38
|
+
},
|
39
|
+
"./extension": {
|
40
|
+
"types": "./extension.d.ts",
|
41
|
+
"require": "./extension.js",
|
42
|
+
"import": "./extension.js",
|
43
|
+
"default": "./extension.js"
|
44
|
+
},
|
45
|
+
"./index-browser": {
|
46
|
+
"types": "./index.d.ts",
|
47
|
+
"require": "./index-browser.js",
|
48
|
+
"import": "./index-browser.js",
|
49
|
+
"default": "./index-browser.js"
|
50
|
+
},
|
51
|
+
"./index": {
|
52
|
+
"types": "./index.d.ts",
|
53
|
+
"require": "./index.js",
|
54
|
+
"import": "./index.js",
|
55
|
+
"default": "./index.js"
|
56
|
+
},
|
57
|
+
"./wasm": {
|
58
|
+
"types": "./wasm.d.ts",
|
59
|
+
"require": "./wasm.js",
|
60
|
+
"import": "./wasm.js",
|
61
|
+
"default": "./wasm.js"
|
62
|
+
},
|
63
|
+
"./runtime/library": {
|
64
|
+
"types": "./runtime/library.d.ts",
|
65
|
+
"require": "./runtime/library.js",
|
66
|
+
"import": "./runtime/library.js",
|
67
|
+
"default": "./runtime/library.js"
|
68
|
+
},
|
69
|
+
"./runtime/binary": {
|
70
|
+
"types": "./runtime/binary.d.ts",
|
71
|
+
"require": "./runtime/binary.js",
|
72
|
+
"import": "./runtime/binary.js",
|
73
|
+
"default": "./runtime/binary.js"
|
74
|
+
},
|
75
|
+
"./generator-build": {
|
76
|
+
"require": "./generator-build/index.js",
|
77
|
+
"import": "./generator-build/index.js",
|
78
|
+
"default": "./generator-build/index.js"
|
79
|
+
},
|
80
|
+
"./*": "./*"
|
81
|
+
},
|
82
|
+
"version": "5.18.0",
|
83
|
+
"sideEffects": false
|
84
|
+
}
|
@@ -0,0 +1,365 @@
|
|
1
|
+
declare class AnyNull extends NullTypesEnumValue {
|
2
|
+
}
|
3
|
+
|
4
|
+
declare type Args<T, F extends Operation> = T extends {
|
5
|
+
[K: symbol]: {
|
6
|
+
types: {
|
7
|
+
operations: {
|
8
|
+
[K in F]: {
|
9
|
+
args: any;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|
14
|
+
} ? T[symbol]['types']['operations'][F]['args'] : any;
|
15
|
+
|
16
|
+
declare class DbNull extends NullTypesEnumValue {
|
17
|
+
}
|
18
|
+
|
19
|
+
export declare namespace Decimal {
|
20
|
+
export type Constructor = typeof Decimal;
|
21
|
+
export type Instance = Decimal;
|
22
|
+
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
23
|
+
export type Modulo = Rounding | 9;
|
24
|
+
export type Value = string | number | Decimal;
|
25
|
+
|
26
|
+
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
27
|
+
export interface Config {
|
28
|
+
precision?: number;
|
29
|
+
rounding?: Rounding;
|
30
|
+
toExpNeg?: number;
|
31
|
+
toExpPos?: number;
|
32
|
+
minE?: number;
|
33
|
+
maxE?: number;
|
34
|
+
crypto?: boolean;
|
35
|
+
modulo?: Modulo;
|
36
|
+
defaults?: boolean;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
export declare class Decimal {
|
41
|
+
readonly d: number[];
|
42
|
+
readonly e: number;
|
43
|
+
readonly s: number;
|
44
|
+
|
45
|
+
constructor(n: Decimal.Value);
|
46
|
+
|
47
|
+
absoluteValue(): Decimal;
|
48
|
+
abs(): Decimal;
|
49
|
+
|
50
|
+
ceil(): Decimal;
|
51
|
+
|
52
|
+
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
53
|
+
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
54
|
+
|
55
|
+
comparedTo(n: Decimal.Value): number;
|
56
|
+
cmp(n: Decimal.Value): number;
|
57
|
+
|
58
|
+
cosine(): Decimal;
|
59
|
+
cos(): Decimal;
|
60
|
+
|
61
|
+
cubeRoot(): Decimal;
|
62
|
+
cbrt(): Decimal;
|
63
|
+
|
64
|
+
decimalPlaces(): number;
|
65
|
+
dp(): number;
|
66
|
+
|
67
|
+
dividedBy(n: Decimal.Value): Decimal;
|
68
|
+
div(n: Decimal.Value): Decimal;
|
69
|
+
|
70
|
+
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
71
|
+
divToInt(n: Decimal.Value): Decimal;
|
72
|
+
|
73
|
+
equals(n: Decimal.Value): boolean;
|
74
|
+
eq(n: Decimal.Value): boolean;
|
75
|
+
|
76
|
+
floor(): Decimal;
|
77
|
+
|
78
|
+
greaterThan(n: Decimal.Value): boolean;
|
79
|
+
gt(n: Decimal.Value): boolean;
|
80
|
+
|
81
|
+
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
82
|
+
gte(n: Decimal.Value): boolean;
|
83
|
+
|
84
|
+
hyperbolicCosine(): Decimal;
|
85
|
+
cosh(): Decimal;
|
86
|
+
|
87
|
+
hyperbolicSine(): Decimal;
|
88
|
+
sinh(): Decimal;
|
89
|
+
|
90
|
+
hyperbolicTangent(): Decimal;
|
91
|
+
tanh(): Decimal;
|
92
|
+
|
93
|
+
inverseCosine(): Decimal;
|
94
|
+
acos(): Decimal;
|
95
|
+
|
96
|
+
inverseHyperbolicCosine(): Decimal;
|
97
|
+
acosh(): Decimal;
|
98
|
+
|
99
|
+
inverseHyperbolicSine(): Decimal;
|
100
|
+
asinh(): Decimal;
|
101
|
+
|
102
|
+
inverseHyperbolicTangent(): Decimal;
|
103
|
+
atanh(): Decimal;
|
104
|
+
|
105
|
+
inverseSine(): Decimal;
|
106
|
+
asin(): Decimal;
|
107
|
+
|
108
|
+
inverseTangent(): Decimal;
|
109
|
+
atan(): Decimal;
|
110
|
+
|
111
|
+
isFinite(): boolean;
|
112
|
+
|
113
|
+
isInteger(): boolean;
|
114
|
+
isInt(): boolean;
|
115
|
+
|
116
|
+
isNaN(): boolean;
|
117
|
+
|
118
|
+
isNegative(): boolean;
|
119
|
+
isNeg(): boolean;
|
120
|
+
|
121
|
+
isPositive(): boolean;
|
122
|
+
isPos(): boolean;
|
123
|
+
|
124
|
+
isZero(): boolean;
|
125
|
+
|
126
|
+
lessThan(n: Decimal.Value): boolean;
|
127
|
+
lt(n: Decimal.Value): boolean;
|
128
|
+
|
129
|
+
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
130
|
+
lte(n: Decimal.Value): boolean;
|
131
|
+
|
132
|
+
logarithm(n?: Decimal.Value): Decimal;
|
133
|
+
log(n?: Decimal.Value): Decimal;
|
134
|
+
|
135
|
+
minus(n: Decimal.Value): Decimal;
|
136
|
+
sub(n: Decimal.Value): Decimal;
|
137
|
+
|
138
|
+
modulo(n: Decimal.Value): Decimal;
|
139
|
+
mod(n: Decimal.Value): Decimal;
|
140
|
+
|
141
|
+
naturalExponential(): Decimal;
|
142
|
+
exp(): Decimal;
|
143
|
+
|
144
|
+
naturalLogarithm(): Decimal;
|
145
|
+
ln(): Decimal;
|
146
|
+
|
147
|
+
negated(): Decimal;
|
148
|
+
neg(): Decimal;
|
149
|
+
|
150
|
+
plus(n: Decimal.Value): Decimal;
|
151
|
+
add(n: Decimal.Value): Decimal;
|
152
|
+
|
153
|
+
precision(includeZeros?: boolean): number;
|
154
|
+
sd(includeZeros?: boolean): number;
|
155
|
+
|
156
|
+
round(): Decimal;
|
157
|
+
|
158
|
+
sine() : Decimal;
|
159
|
+
sin() : Decimal;
|
160
|
+
|
161
|
+
squareRoot(): Decimal;
|
162
|
+
sqrt(): Decimal;
|
163
|
+
|
164
|
+
tangent() : Decimal;
|
165
|
+
tan() : Decimal;
|
166
|
+
|
167
|
+
times(n: Decimal.Value): Decimal;
|
168
|
+
mul(n: Decimal.Value) : Decimal;
|
169
|
+
|
170
|
+
toBinary(significantDigits?: number): string;
|
171
|
+
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
172
|
+
|
173
|
+
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
174
|
+
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
175
|
+
toDP(decimalPlaces?: number): Decimal;
|
176
|
+
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
177
|
+
|
178
|
+
toExponential(decimalPlaces?: number): string;
|
179
|
+
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
180
|
+
|
181
|
+
toFixed(decimalPlaces?: number): string;
|
182
|
+
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
183
|
+
|
184
|
+
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
185
|
+
|
186
|
+
toHexadecimal(significantDigits?: number): string;
|
187
|
+
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
188
|
+
toHex(significantDigits?: number): string;
|
189
|
+
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
190
|
+
|
191
|
+
toJSON(): string;
|
192
|
+
|
193
|
+
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
194
|
+
|
195
|
+
toNumber(): number;
|
196
|
+
|
197
|
+
toOctal(significantDigits?: number): string;
|
198
|
+
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
199
|
+
|
200
|
+
toPower(n: Decimal.Value): Decimal;
|
201
|
+
pow(n: Decimal.Value): Decimal;
|
202
|
+
|
203
|
+
toPrecision(significantDigits?: number): string;
|
204
|
+
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
205
|
+
|
206
|
+
toSignificantDigits(significantDigits?: number): Decimal;
|
207
|
+
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
208
|
+
toSD(significantDigits?: number): Decimal;
|
209
|
+
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
210
|
+
|
211
|
+
toString(): string;
|
212
|
+
|
213
|
+
truncated(): Decimal;
|
214
|
+
trunc(): Decimal;
|
215
|
+
|
216
|
+
valueOf(): string;
|
217
|
+
|
218
|
+
static abs(n: Decimal.Value): Decimal;
|
219
|
+
static acos(n: Decimal.Value): Decimal;
|
220
|
+
static acosh(n: Decimal.Value): Decimal;
|
221
|
+
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
222
|
+
static asin(n: Decimal.Value): Decimal;
|
223
|
+
static asinh(n: Decimal.Value): Decimal;
|
224
|
+
static atan(n: Decimal.Value): Decimal;
|
225
|
+
static atanh(n: Decimal.Value): Decimal;
|
226
|
+
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
227
|
+
static cbrt(n: Decimal.Value): Decimal;
|
228
|
+
static ceil(n: Decimal.Value): Decimal;
|
229
|
+
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
230
|
+
static clone(object?: Decimal.Config): Decimal.Constructor;
|
231
|
+
static config(object: Decimal.Config): Decimal.Constructor;
|
232
|
+
static cos(n: Decimal.Value): Decimal;
|
233
|
+
static cosh(n: Decimal.Value): Decimal;
|
234
|
+
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
235
|
+
static exp(n: Decimal.Value): Decimal;
|
236
|
+
static floor(n: Decimal.Value): Decimal;
|
237
|
+
static hypot(...n: Decimal.Value[]): Decimal;
|
238
|
+
static isDecimal(object: any): object is Decimal;
|
239
|
+
static ln(n: Decimal.Value): Decimal;
|
240
|
+
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
241
|
+
static log2(n: Decimal.Value): Decimal;
|
242
|
+
static log10(n: Decimal.Value): Decimal;
|
243
|
+
static max(...n: Decimal.Value[]): Decimal;
|
244
|
+
static min(...n: Decimal.Value[]): Decimal;
|
245
|
+
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
246
|
+
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
247
|
+
static noConflict(): Decimal.Constructor; // Browser only
|
248
|
+
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
249
|
+
static random(significantDigits?: number): Decimal;
|
250
|
+
static round(n: Decimal.Value): Decimal;
|
251
|
+
static set(object: Decimal.Config): Decimal.Constructor;
|
252
|
+
static sign(n: Decimal.Value): number;
|
253
|
+
static sin(n: Decimal.Value): Decimal;
|
254
|
+
static sinh(n: Decimal.Value): Decimal;
|
255
|
+
static sqrt(n: Decimal.Value): Decimal;
|
256
|
+
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
257
|
+
static sum(...n: Decimal.Value[]): Decimal;
|
258
|
+
static tan(n: Decimal.Value): Decimal;
|
259
|
+
static tanh(n: Decimal.Value): Decimal;
|
260
|
+
static trunc(n: Decimal.Value): Decimal;
|
261
|
+
|
262
|
+
static readonly default?: Decimal.Constructor;
|
263
|
+
static readonly Decimal?: Decimal.Constructor;
|
264
|
+
|
265
|
+
static readonly precision: number;
|
266
|
+
static readonly rounding: Decimal.Rounding;
|
267
|
+
static readonly toExpNeg: number;
|
268
|
+
static readonly toExpPos: number;
|
269
|
+
static readonly minE: number;
|
270
|
+
static readonly maxE: number;
|
271
|
+
static readonly crypto: boolean;
|
272
|
+
static readonly modulo: Decimal.Modulo;
|
273
|
+
|
274
|
+
static readonly ROUND_UP: 0;
|
275
|
+
static readonly ROUND_DOWN: 1;
|
276
|
+
static readonly ROUND_CEIL: 2;
|
277
|
+
static readonly ROUND_FLOOR: 3;
|
278
|
+
static readonly ROUND_HALF_UP: 4;
|
279
|
+
static readonly ROUND_HALF_DOWN: 5;
|
280
|
+
static readonly ROUND_HALF_EVEN: 6;
|
281
|
+
static readonly ROUND_HALF_CEIL: 7;
|
282
|
+
static readonly ROUND_HALF_FLOOR: 8;
|
283
|
+
static readonly EUCLID: 9;
|
284
|
+
}
|
285
|
+
|
286
|
+
declare type Exact<A, W> = (A extends unknown ? (W extends A ? {
|
287
|
+
[K in keyof A]: Exact<A[K], W[K]>;
|
288
|
+
} : W) : never) | (A extends Narrowable ? A : never);
|
289
|
+
|
290
|
+
export declare function getRuntime(): GetRuntimeOutput;
|
291
|
+
|
292
|
+
declare type GetRuntimeOutput = {
|
293
|
+
id: Runtime;
|
294
|
+
prettyName: string;
|
295
|
+
isEdge: boolean;
|
296
|
+
};
|
297
|
+
|
298
|
+
declare class JsonNull extends NullTypesEnumValue {
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* Generates more strict variant of an enum which, unlike regular enum,
|
303
|
+
* throws on non-existing property access. This can be useful in following situations:
|
304
|
+
* - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
|
305
|
+
* - enum values are generated dynamically from DMMF.
|
306
|
+
*
|
307
|
+
* In that case, if using normal enums and no compile-time typechecking, using non-existing property
|
308
|
+
* will result in `undefined` value being used, which will be accepted. Using strict enum
|
309
|
+
* in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
|
310
|
+
*
|
311
|
+
* Note: if you need to check for existence of a value in the enum you can still use either
|
312
|
+
* `in` operator or `hasOwnProperty` function.
|
313
|
+
*
|
314
|
+
* @param definition
|
315
|
+
* @returns
|
316
|
+
*/
|
317
|
+
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
318
|
+
|
319
|
+
declare type Narrowable = string | number | bigint | boolean | [];
|
320
|
+
|
321
|
+
declare class NullTypesEnumValue extends ObjectEnumValue {
|
322
|
+
_getNamespace(): string;
|
323
|
+
}
|
324
|
+
|
325
|
+
/**
|
326
|
+
* Base class for unique values of object-valued enums.
|
327
|
+
*/
|
328
|
+
declare abstract class ObjectEnumValue {
|
329
|
+
constructor(arg?: symbol);
|
330
|
+
abstract _getNamespace(): string;
|
331
|
+
_getName(): string;
|
332
|
+
toString(): string;
|
333
|
+
}
|
334
|
+
|
335
|
+
export declare const objectEnumValues: {
|
336
|
+
classes: {
|
337
|
+
DbNull: typeof DbNull;
|
338
|
+
JsonNull: typeof JsonNull;
|
339
|
+
AnyNull: typeof AnyNull;
|
340
|
+
};
|
341
|
+
instances: {
|
342
|
+
DbNull: DbNull;
|
343
|
+
JsonNull: JsonNull;
|
344
|
+
AnyNull: AnyNull;
|
345
|
+
};
|
346
|
+
};
|
347
|
+
|
348
|
+
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
349
|
+
|
350
|
+
declare namespace Public {
|
351
|
+
export {
|
352
|
+
validator
|
353
|
+
}
|
354
|
+
}
|
355
|
+
export { Public }
|
356
|
+
|
357
|
+
declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
|
358
|
+
|
359
|
+
declare function validator<V>(): <S>(select: Exact<S, V>) => S;
|
360
|
+
|
361
|
+
declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): <S>(select: Exact<S, Args<C[M], O>>) => S;
|
362
|
+
|
363
|
+
declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation, P extends keyof Args<C[M], O>>(client: C, model: M, operation: O, prop: P): <S>(select: Exact<S, Args<C[M], O>[P]>) => S;
|
364
|
+
|
365
|
+
export { }
|