@coinbase-sample/prime-sdk-ts 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +2 -2
- package/dist/index.js +18 -1
- package/dist/model/StakingInitiateResponse.js +21 -0
- package/dist/model/StakingInputs.js +21 -0
- package/dist/model/StakingUnstakeResponse.js +21 -0
- package/dist/model/enums/index.js +85 -0
- package/dist/{addressBooks/service.js → staking/index.js} +11 -9
- package/dist/{activities → types/activities}/index.d.ts +8 -9
- package/dist/{activities → types/activities}/types.d.ts +6 -9
- package/dist/{addressBooks → types/addressBooks}/index.d.ts +4 -5
- package/dist/{addressBooks → types/addressBooks}/types.d.ts +4 -5
- package/dist/{allocations → types/allocations}/index.d.ts +10 -11
- package/dist/types/allocations/types.d.ts +42 -0
- package/dist/{assets → types/assets}/index.d.ts +2 -3
- package/dist/{assets → types/assets}/types.d.ts +3 -2
- package/dist/{balances → types/balances}/index.d.ts +8 -9
- package/dist/{balances → types/balances}/types.d.ts +7 -10
- package/dist/{client.d.ts → types/client.d.ts} +1 -1
- package/dist/{commission → types/commission}/index.d.ts +2 -3
- package/dist/{commission → types/commission}/types.d.ts +3 -2
- package/dist/{financing → types/financing}/index.d.ts +24 -25
- package/dist/{financing → types/financing}/types.d.ts +14 -23
- package/dist/{futures → types/futures}/index.d.ts +12 -13
- package/dist/{futures → types/futures}/types.d.ts +8 -13
- package/dist/{index.d.ts → types/index.d.ts} +4 -0
- package/dist/{invoices → types/invoices}/index.d.ts +2 -3
- package/dist/{invoices → types/invoices}/types.d.ts +3 -2
- package/dist/{model → types/model}/CreateOnchainTransactionRequestEvmParams.d.ts +9 -1
- package/dist/{model → types/model}/RpcConfig.d.ts +1 -1
- package/dist/types/model/StakingInitiateRequest.d.ts +27 -0
- package/dist/types/model/StakingInitiateResponse.d.ts +33 -0
- package/dist/types/model/StakingInputs.d.ts +25 -0
- package/dist/types/model/StakingUnstakeResponse.d.ts +33 -0
- package/dist/types/model/enums/index.d.ts +41 -0
- package/dist/types/model/index.d.ts +167 -0
- package/dist/{onchainAddressBook → types/onchainAddressBook}/index.d.ts +8 -9
- package/dist/{onchainAddressBook → types/onchainAddressBook}/types.d.ts +6 -7
- package/dist/{orders → types/orders}/index.d.ts +20 -21
- package/dist/{orders → types/orders}/types.d.ts +13 -26
- package/dist/{paymentMethods → types/paymentMethods}/index.d.ts +4 -5
- package/dist/{paymentMethods → types/paymentMethods}/types.d.ts +4 -4
- package/dist/{portfolios → types/portfolios}/index.d.ts +3 -4
- package/dist/{portfolios → types/portfolios}/types.d.ts +5 -6
- package/dist/{positions → types/positions}/index.d.ts +4 -5
- package/dist/types/positions/types.d.ts +29 -0
- package/dist/{products → types/products}/index.d.ts +2 -3
- package/dist/{products → types/products}/types.d.ts +3 -2
- package/dist/types/shared/brand.d.ts +3 -0
- package/dist/types/staking/index.d.ts +28 -0
- package/dist/types/staking/types.d.ts +27 -0
- package/dist/{transactions → types/transactions}/index.d.ts +14 -15
- package/dist/types/transactions/types.d.ts +60 -0
- package/dist/{users → types/users}/index.d.ts +4 -5
- package/dist/{users → types/users}/types.d.ts +4 -3
- package/dist/{wallets → types/wallets}/index.d.ts +12 -13
- package/dist/{wallets → types/wallets}/types.d.ts +9 -15
- package/package.json +3 -2
- package/dist/activities/service.d.ts +0 -18
- package/dist/activities/service.js +0 -54
- package/dist/addressBooks/service.d.ts +0 -11
- package/dist/allocations/service.d.ts +0 -14
- package/dist/allocations/service.js +0 -65
- package/dist/allocations/types.d.ts +0 -46
- package/dist/assets/service.d.ts +0 -10
- package/dist/assets/service.js +0 -27
- package/dist/invoices/service.d.ts +0 -10
- package/dist/invoices/service.js +0 -27
- package/dist/model/assets.d.ts +0 -13
- package/dist/model/assets.js +0 -2
- package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.d.ts +0 -23
- package/dist/model/enums/ActivityType.d.ts +0 -63
- package/dist/model/enums/ActivityType.js +0 -67
- package/dist/model/services/activitityService.d.ts +0 -33
- package/dist/model/services/addressBookService.d.ts +0 -14
- package/dist/model/services/allocationService.d.ts +0 -24
- package/dist/model/services/allocationService.js +0 -2
- package/dist/model/services/assetService.d.ts +0 -5
- package/dist/model/services/assetService.js +0 -2
- package/dist/model/services/balanceService.d.ts +0 -24
- package/dist/model/services/balanceService.js +0 -2
- package/dist/model/services/commissionService.d.ts +0 -5
- package/dist/model/services/commissionService.js +0 -2
- package/dist/model/services/invoiceService.d.ts +0 -5
- package/dist/model/services/invoiceService.js +0 -2
- package/dist/model/services/orderService.d.ts +0 -62
- package/dist/model/services/orderService.js +0 -2
- package/dist/model/services/pagination.d.ts +0 -9
- package/dist/model/services/pagination.js +0 -2
- package/dist/model/services/paymentMethodsService.d.ts +0 -10
- package/dist/model/services/paymentMethodsService.js +0 -2
- package/dist/model/services/portfolioService.d.ts +0 -15
- package/dist/model/services/portfolioService.js +0 -2
- package/dist/model/services/productService.d.ts +0 -6
- package/dist/model/services/productService.js +0 -2
- package/dist/model/services/shared.d.ts +0 -6
- package/dist/model/services/shared.js +0 -2
- package/dist/model/services/transactionService.d.ts +0 -47
- package/dist/model/services/transactionService.js +0 -2
- package/dist/model/services/usersService.d.ts +0 -9
- package/dist/model/services/usersService.js +0 -2
- package/dist/model/services/walletService.d.ts +0 -27
- package/dist/model/services/walletService.js +0 -2
- package/dist/onchainAddressGroups/index.d.ts +0 -27
- package/dist/onchainAddressGroups/index.js +0 -27
- package/dist/onchainAddressGroups/types.d.ts +0 -20
- package/dist/paymentMethods/service.d.ts +0 -11
- package/dist/paymentMethods/service.js +0 -36
- package/dist/portfolio/service.d.ts +0 -12
- package/dist/portfolio/service.js +0 -42
- package/dist/positions/types.d.ts +0 -14
- package/dist/transactions/types.d.ts +0 -69
- package/dist/users/service.d.ts +0 -11
- package/dist/users/service.js +0 -36
- /package/dist/model/{changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.js → Portfolio.js} +0 -0
- /package/dist/model/{portfolio.js → StakingInitiateRequest.js} +0 -0
- /package/dist/model/{services/activitityService.js → index.js} +0 -0
- /package/dist/{model/services/addressBookService.js → shared/brand.js} +0 -0
- /package/dist/{onchainAddressGroups → staking}/types.js +0 -0
- /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
- /package/dist/{credentials → types/credentials}/index.d.ts +0 -0
- /package/dist/{errors → types/errors}/index.d.ts +0 -0
- /package/dist/{model → types/model}/AcceptQuoteRequest.d.ts +0 -0
- /package/dist/{model → types/model}/AcceptQuoteResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Accrual.d.ts +0 -0
- /package/dist/{model → types/model}/Activity.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityCreationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataAccount.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataConsensus.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataTransactions.d.ts +0 -0
- /package/dist/{model → types/model}/AddressBookEntry.d.ts +0 -0
- /package/dist/{model → types/model}/AddressEntry.d.ts +0 -0
- /package/dist/{model → types/model}/AddressGroup.d.ts +0 -0
- /package/dist/{model → types/model}/AggregatedFiatBalance.d.ts +0 -0
- /package/dist/{model → types/model}/Allocation.d.ts +0 -0
- /package/dist/{model → types/model}/AllocationLeg.d.ts +0 -0
- /package/dist/{model → types/model}/AmountDue.d.ts +0 -0
- /package/dist/{model → types/model}/Asset.d.ts +0 -0
- /package/dist/{model → types/model}/AssetBalance.d.ts +0 -0
- /package/dist/{model → types/model}/AssetChange.d.ts +0 -0
- /package/dist/{model → types/model}/Balance.d.ts +0 -0
- /package/dist/{model → types/model}/BlockchainAddress.d.ts +0 -0
- /package/dist/{model → types/model}/BuyingPower.d.ts +0 -0
- /package/dist/{model → types/model}/CancelFuturesSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CancelOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Commission.d.ts +0 -0
- /package/dist/{model → types/model}/Conversion.d.ts +0 -0
- /package/dist/{model → types/model}/ConversionDetail.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAddressGroup.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationResponseBody.d.ts +0 -0
- /package/dist/{model → types/model}/CreateConversionRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateConversionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNetAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNetAllocationResponseBody.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNewLocatesRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNewLocatesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOnchainTransactionRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOnchainTransactionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOrderRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletTransferResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletWithdrawalRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletWithdrawalResponse.d.ts +0 -0
- /package/dist/{model → types/model}/DefiBalance.d.ts +0 -0
- /package/dist/{model → types/model}/DestinationAlloc.d.ts +0 -0
- /package/dist/{model → types/model}/DisplayUser.d.ts +0 -0
- /package/dist/{model → types/model}/EntityBalance.d.ts +0 -0
- /package/dist/{model → types/model}/EntityUser.d.ts +0 -0
- /package/dist/{model → types/model}/EstimatedNetworkFees.d.ts +0 -0
- /package/dist/{model → types/model}/ExistingLocate.d.ts +0 -0
- /package/dist/{model → types/model}/FcmFuturesSweep.d.ts +0 -0
- /package/dist/{model → types/model}/FcmFuturesSweepRequestAmount.d.ts +0 -0
- /package/dist/{model → types/model}/FcmPosition.d.ts +0 -0
- /package/dist/{model → types/model}/Fill.d.ts +0 -0
- /package/dist/{model → types/model}/GetActivityResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetAllocationsByClientNettingIdResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetBuyingPowerResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityActivitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityAssetsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityPaymentMethodDetailsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityPaymentMethodsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityUsersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetExistingLocatesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetFcmBalanceResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetFuturesSweepsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetInterestAccrualsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetInvoicesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetLocateAvailabilitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetMarginConversionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetMarginInformationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetMarginSummariesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOpenOrdersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrderFillsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrdersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioActivitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioActivityResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioAddressBookResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioAllocationsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioCommissionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioFillsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioInterestAccrualsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioProductsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioTransactionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioUsersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfoliosResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPostTradeCreditResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetTFTieredPricingFeesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetTransactionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletAddressesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletBalanceResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletDepositInstructionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletTransactionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWithdrawalPowerResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Invoice.d.ts +0 -0
- /package/dist/{model → types/model}/InvoiceItem.d.ts +0 -0
- /package/dist/{model → types/model}/ListAggregateEntityPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListEntityBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListEntityPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListOnchainAddressGroupsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListWeb3WalletBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/LoanInfo.d.ts +0 -0
- /package/dist/{model → types/model}/Locate.d.ts +0 -0
- /package/dist/{model → types/model}/MarginAddOn.d.ts +0 -0
- /package/dist/{model → types/model}/MarginCallRecord.d.ts +0 -0
- /package/dist/{model → types/model}/MarginInformation.d.ts +0 -0
- /package/dist/{model → types/model}/MarginSummary.d.ts +0 -0
- /package/dist/{model → types/model}/MarginSummaryHistorical.d.ts +0 -0
- /package/dist/{model → types/model}/MarketRate.d.ts +0 -0
- /package/dist/{model → types/model}/MatchMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/NFTCollection.d.ts +0 -0
- /package/dist/{model → types/model}/NFTItem.d.ts +0 -0
- /package/dist/{model → types/model}/Network.d.ts +0 -0
- /package/dist/{model → types/model}/NetworkDetails.d.ts +0 -0
- /package/dist/{model → types/model}/OnchainTransactionDetails.d.ts +0 -0
- /package/dist/{model → types/model}/Order.d.ts +0 -0
- /package/dist/{model → types/model}/OrderPreviewRequest.d.ts +0 -0
- /package/dist/{model → types/model}/PMAssetInfo.d.ts +0 -0
- /package/dist/{model → types/model}/PaginatedResponse.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodDestination.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodDetails.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodSummary.d.ts +0 -0
- /package/dist/{model/portfolio.d.ts → types/model/Portfolio.d.ts} +0 -0
- /package/dist/{model → types/model}/PortfolioUser.d.ts +0 -0
- /package/dist/{model → types/model}/Position.d.ts +0 -0
- /package/dist/{model → types/model}/PositionReference.d.ts +0 -0
- /package/dist/{model → types/model}/PostOrderPreviewResponse.d.ts +0 -0
- /package/dist/{model → types/model}/PostTradeCreditInformation.d.ts +0 -0
- /package/dist/{model → types/model}/Product.d.ts +0 -0
- /package/dist/{model → types/model}/QuoteResponse.d.ts +0 -0
- /package/dist/{model → types/model}/RFQ.d.ts +0 -0
- /package/dist/{model → types/model}/RFQProductDetails.d.ts +0 -0
- /package/dist/{model → types/model}/RiskAssessment.d.ts +0 -0
- /package/dist/{model → types/model}/ScheduleFuturesSweepRequest.d.ts +0 -0
- /package/dist/{model → types/model}/ScheduleFuturesSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/SetAutoSweepRequest.d.ts +0 -0
- /package/dist/{model → types/model}/SetAutoSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ShortCollateral.d.ts +0 -0
- /package/dist/{model → types/model}/TieredPricingFee.d.ts +0 -0
- /package/dist/{model → types/model}/Transaction.d.ts +0 -0
- /package/dist/{model → types/model}/TransactionMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/TransferLocation.d.ts +0 -0
- /package/dist/{model → types/model}/UserAction.d.ts +0 -0
- /package/dist/{model → types/model}/Wallet.d.ts +0 -0
- /package/dist/{model → types/model}/WalletCryptoDepositInstructions.d.ts +0 -0
- /package/dist/{model → types/model}/WalletFiatDepositInstructions.d.ts +0 -0
- /package/dist/{model → types/model}/Web3Asset.d.ts +0 -0
- /package/dist/{model → types/model}/Web3Balance.d.ts +0 -0
- /package/dist/{model → types/model}/Web3TransactionMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/WithdrawalPower.d.ts +0 -0
- /package/dist/{model → types/model}/createATransferBetweenTwoWallets.d.ts +0 -0
- /package/dist/{model → types/model}/enums/Action.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityCategory.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityLevel.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivitySecondaryType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AddressBookType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AllocationSizeType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AllocationStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AssetChangeType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/Benchmark.d.ts +0 -0
- /package/dist/{model → types/model}/enums/CustodyActivityType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/DestinationType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/FcmFuturesSweepStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/FcmPositionSide.d.ts +0 -0
- /package/dist/{model → types/model}/enums/HierarchyType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/InvoiceState.d.ts +0 -0
- /package/dist/{model → types/model}/enums/InvoiceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/LoanType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/MarginAddOnType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/NetworkFamily.d.ts +0 -0
- /package/dist/{model → types/model}/enums/NetworkType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderSide.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PaymentMethodType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PortfolioBalanceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PositionReferenceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PrimeActivityType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ProductPermissions.d.ts +0 -0
- /package/dist/{model → types/model}/enums/RateType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/SigningStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/SortDirection.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TimeInForceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransactionStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransactionType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransferLocationType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/UserRole.d.ts +0 -0
- /package/dist/{model → types/model}/enums/VisibilityStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletDepositInstructionType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletVisibility.d.ts +0 -0
- /package/dist/{shared → types/shared}/pagination.d.ts +0 -0
- /package/dist/{shared → types/shared}/toCamelCase.d.ts +0 -0
package/dist/client.js
CHANGED
|
@@ -16,10 +16,10 @@ exports.CoinbasePrimeClient = void 0;
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
20
20
|
const constants_1 = require("./constants");
|
|
21
21
|
const toCamelCase_1 = require("./shared/toCamelCase");
|
|
22
|
-
class CoinbasePrimeClient extends
|
|
22
|
+
class CoinbasePrimeClient extends core_ts_1.CoinbaseClient {
|
|
23
23
|
constructor(credentials, apiBasePath) {
|
|
24
24
|
super(apiBasePath !== null && apiBasePath !== void 0 ? apiBasePath : constants_1.API_BASE_PATH, credentials, constants_1.USER_AGENT);
|
|
25
25
|
// transform the response data to camelCase
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
|
|
17
|
+
exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.StakingService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
|
|
4
18
|
/**
|
|
5
19
|
* Copyright 2024-present Coinbase Global, Inc.
|
|
6
20
|
*
|
|
@@ -48,9 +62,12 @@ var positions_1 = require("./positions");
|
|
|
48
62
|
Object.defineProperty(exports, "PositionsService", { enumerable: true, get: function () { return positions_1.PositionsService; } });
|
|
49
63
|
var products_1 = require("./products");
|
|
50
64
|
Object.defineProperty(exports, "ProductsService", { enumerable: true, get: function () { return products_1.ProductsService; } });
|
|
65
|
+
var staking_1 = require("./staking");
|
|
66
|
+
Object.defineProperty(exports, "StakingService", { enumerable: true, get: function () { return staking_1.StakingService; } });
|
|
51
67
|
var transactions_1 = require("./transactions");
|
|
52
68
|
Object.defineProperty(exports, "TransactionsService", { enumerable: true, get: function () { return transactions_1.TransactionsService; } });
|
|
53
69
|
var users_1 = require("./users");
|
|
54
70
|
Object.defineProperty(exports, "UsersService", { enumerable: true, get: function () { return users_1.UsersService; } });
|
|
55
71
|
var wallets_1 = require("./wallets");
|
|
56
72
|
Object.defineProperty(exports, "WalletsService", { enumerable: true, get: function () { return wallets_1.WalletsService; } });
|
|
73
|
+
__exportStar(require("./model/enums/"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletVisibility = exports.WalletType = exports.WalletDepositInstructionType = exports.VisibilityStatus = exports.UserRole = exports.TransferLocationType = exports.TransactionType = exports.TransactionStatus = exports.TimeInForceType = exports.SortDirection = exports.SigningStatus = exports.RateType = exports.ProductPermissions = exports.PositionReferenceType = exports.PortfolioBalanceType = exports.PaymentMethodType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.NetworkType = exports.NetworkFamily = exports.MarginAddOnType = exports.LoanType = exports.InvoiceType = exports.InvoiceState = exports.HierarchyType = exports.FcmPositionSide = exports.FcmFuturesSweepStatus = exports.DestinationType = exports.Benchmark = exports.AssetChangeType = exports.AllocationStatus = exports.AllocationSizeType = exports.PrimeActivityType = exports.ActivityStatus = exports.ActivitySecondaryType = exports.ActivityLevel = exports.ActivityCategory = exports.Action = exports.AddressBookType = exports.CustodyActivityType = void 0;
|
|
4
|
+
var CustodyActivityType_1 = require("./CustodyActivityType");
|
|
5
|
+
Object.defineProperty(exports, "CustodyActivityType", { enumerable: true, get: function () { return CustodyActivityType_1.ActivityType; } });
|
|
6
|
+
var AddressBookType_1 = require("./AddressBookType");
|
|
7
|
+
Object.defineProperty(exports, "AddressBookType", { enumerable: true, get: function () { return AddressBookType_1.AddressBookType; } });
|
|
8
|
+
var Action_1 = require("./Action");
|
|
9
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
|
|
10
|
+
var ActivityCategory_1 = require("./ActivityCategory");
|
|
11
|
+
Object.defineProperty(exports, "ActivityCategory", { enumerable: true, get: function () { return ActivityCategory_1.ActivityCategory; } });
|
|
12
|
+
var ActivityLevel_1 = require("./ActivityLevel");
|
|
13
|
+
Object.defineProperty(exports, "ActivityLevel", { enumerable: true, get: function () { return ActivityLevel_1.ActivityLevel; } });
|
|
14
|
+
var ActivitySecondaryType_1 = require("./ActivitySecondaryType");
|
|
15
|
+
Object.defineProperty(exports, "ActivitySecondaryType", { enumerable: true, get: function () { return ActivitySecondaryType_1.ActivitySecondaryType; } });
|
|
16
|
+
var ActivityStatus_1 = require("./ActivityStatus");
|
|
17
|
+
Object.defineProperty(exports, "ActivityStatus", { enumerable: true, get: function () { return ActivityStatus_1.ActivityStatus; } });
|
|
18
|
+
var PrimeActivityType_1 = require("./PrimeActivityType");
|
|
19
|
+
Object.defineProperty(exports, "PrimeActivityType", { enumerable: true, get: function () { return PrimeActivityType_1.ActivityType; } });
|
|
20
|
+
var AllocationSizeType_1 = require("./AllocationSizeType");
|
|
21
|
+
Object.defineProperty(exports, "AllocationSizeType", { enumerable: true, get: function () { return AllocationSizeType_1.AllocationSizeType; } });
|
|
22
|
+
var AllocationStatus_1 = require("./AllocationStatus");
|
|
23
|
+
Object.defineProperty(exports, "AllocationStatus", { enumerable: true, get: function () { return AllocationStatus_1.AllocationStatus; } });
|
|
24
|
+
var AssetChangeType_1 = require("./AssetChangeType");
|
|
25
|
+
Object.defineProperty(exports, "AssetChangeType", { enumerable: true, get: function () { return AssetChangeType_1.AssetChangeType; } });
|
|
26
|
+
var Benchmark_1 = require("./Benchmark");
|
|
27
|
+
Object.defineProperty(exports, "Benchmark", { enumerable: true, get: function () { return Benchmark_1.Benchmark; } });
|
|
28
|
+
var DestinationType_1 = require("./DestinationType");
|
|
29
|
+
Object.defineProperty(exports, "DestinationType", { enumerable: true, get: function () { return DestinationType_1.DestinationType; } });
|
|
30
|
+
var FcmFuturesSweepStatus_1 = require("./FcmFuturesSweepStatus");
|
|
31
|
+
Object.defineProperty(exports, "FcmFuturesSweepStatus", { enumerable: true, get: function () { return FcmFuturesSweepStatus_1.FcmFuturesSweepStatus; } });
|
|
32
|
+
var FcmPositionSide_1 = require("./FcmPositionSide");
|
|
33
|
+
Object.defineProperty(exports, "FcmPositionSide", { enumerable: true, get: function () { return FcmPositionSide_1.FcmPositionSide; } });
|
|
34
|
+
var HierarchyType_1 = require("./HierarchyType");
|
|
35
|
+
Object.defineProperty(exports, "HierarchyType", { enumerable: true, get: function () { return HierarchyType_1.HierarchyType; } });
|
|
36
|
+
var InvoiceState_1 = require("./InvoiceState");
|
|
37
|
+
Object.defineProperty(exports, "InvoiceState", { enumerable: true, get: function () { return InvoiceState_1.InvoiceState; } });
|
|
38
|
+
var InvoiceType_1 = require("./InvoiceType");
|
|
39
|
+
Object.defineProperty(exports, "InvoiceType", { enumerable: true, get: function () { return InvoiceType_1.InvoiceType; } });
|
|
40
|
+
var LoanType_1 = require("./LoanType");
|
|
41
|
+
Object.defineProperty(exports, "LoanType", { enumerable: true, get: function () { return LoanType_1.LoanType; } });
|
|
42
|
+
var MarginAddOnType_1 = require("./MarginAddOnType");
|
|
43
|
+
Object.defineProperty(exports, "MarginAddOnType", { enumerable: true, get: function () { return MarginAddOnType_1.MarginAddOnType; } });
|
|
44
|
+
var NetworkFamily_1 = require("./NetworkFamily");
|
|
45
|
+
Object.defineProperty(exports, "NetworkFamily", { enumerable: true, get: function () { return NetworkFamily_1.NetworkFamily; } });
|
|
46
|
+
var NetworkType_1 = require("./NetworkType");
|
|
47
|
+
Object.defineProperty(exports, "NetworkType", { enumerable: true, get: function () { return NetworkType_1.NetworkType; } });
|
|
48
|
+
var OrderSide_1 = require("./OrderSide");
|
|
49
|
+
Object.defineProperty(exports, "OrderSide", { enumerable: true, get: function () { return OrderSide_1.OrderSide; } });
|
|
50
|
+
var OrderStatus_1 = require("./OrderStatus");
|
|
51
|
+
Object.defineProperty(exports, "OrderStatus", { enumerable: true, get: function () { return OrderStatus_1.OrderStatus; } });
|
|
52
|
+
var OrderType_1 = require("./OrderType");
|
|
53
|
+
Object.defineProperty(exports, "OrderType", { enumerable: true, get: function () { return OrderType_1.OrderType; } });
|
|
54
|
+
var PaymentMethodType_1 = require("./PaymentMethodType");
|
|
55
|
+
Object.defineProperty(exports, "PaymentMethodType", { enumerable: true, get: function () { return PaymentMethodType_1.PaymentMethodType; } });
|
|
56
|
+
var PortfolioBalanceType_1 = require("./PortfolioBalanceType");
|
|
57
|
+
Object.defineProperty(exports, "PortfolioBalanceType", { enumerable: true, get: function () { return PortfolioBalanceType_1.PortfolioBalanceType; } });
|
|
58
|
+
var PositionReferenceType_1 = require("./PositionReferenceType");
|
|
59
|
+
Object.defineProperty(exports, "PositionReferenceType", { enumerable: true, get: function () { return PositionReferenceType_1.PositionReferenceType; } });
|
|
60
|
+
var ProductPermissions_1 = require("./ProductPermissions");
|
|
61
|
+
Object.defineProperty(exports, "ProductPermissions", { enumerable: true, get: function () { return ProductPermissions_1.ProductPermissions; } });
|
|
62
|
+
var RateType_1 = require("./RateType");
|
|
63
|
+
Object.defineProperty(exports, "RateType", { enumerable: true, get: function () { return RateType_1.RateType; } });
|
|
64
|
+
var SigningStatus_1 = require("./SigningStatus");
|
|
65
|
+
Object.defineProperty(exports, "SigningStatus", { enumerable: true, get: function () { return SigningStatus_1.SigningStatus; } });
|
|
66
|
+
var SortDirection_1 = require("./SortDirection");
|
|
67
|
+
Object.defineProperty(exports, "SortDirection", { enumerable: true, get: function () { return SortDirection_1.SortDirection; } });
|
|
68
|
+
var TimeInForceType_1 = require("./TimeInForceType");
|
|
69
|
+
Object.defineProperty(exports, "TimeInForceType", { enumerable: true, get: function () { return TimeInForceType_1.TimeInForceType; } });
|
|
70
|
+
var TransactionStatus_1 = require("./TransactionStatus");
|
|
71
|
+
Object.defineProperty(exports, "TransactionStatus", { enumerable: true, get: function () { return TransactionStatus_1.TransactionStatus; } });
|
|
72
|
+
var TransactionType_1 = require("./TransactionType");
|
|
73
|
+
Object.defineProperty(exports, "TransactionType", { enumerable: true, get: function () { return TransactionType_1.TransactionType; } });
|
|
74
|
+
var TransferLocationType_1 = require("./TransferLocationType");
|
|
75
|
+
Object.defineProperty(exports, "TransferLocationType", { enumerable: true, get: function () { return TransferLocationType_1.TransferLocationType; } });
|
|
76
|
+
var UserRole_1 = require("./UserRole");
|
|
77
|
+
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return UserRole_1.UserRole; } });
|
|
78
|
+
var VisibilityStatus_1 = require("./VisibilityStatus");
|
|
79
|
+
Object.defineProperty(exports, "VisibilityStatus", { enumerable: true, get: function () { return VisibilityStatus_1.VisibilityStatus; } });
|
|
80
|
+
var WalletDepositInstructionType_1 = require("./WalletDepositInstructionType");
|
|
81
|
+
Object.defineProperty(exports, "WalletDepositInstructionType", { enumerable: true, get: function () { return WalletDepositInstructionType_1.WalletDepositInstructionType; } });
|
|
82
|
+
var WalletType_1 = require("./WalletType");
|
|
83
|
+
Object.defineProperty(exports, "WalletType", { enumerable: true, get: function () { return WalletType_1.WalletType; } });
|
|
84
|
+
var WalletVisibility_1 = require("./WalletVisibility");
|
|
85
|
+
Object.defineProperty(exports, "WalletVisibility", { enumerable: true, get: function () { return WalletVisibility_1.WalletVisibility; } });
|
|
@@ -9,30 +9,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
class
|
|
12
|
+
exports.StakingService = void 0;
|
|
13
|
+
class StakingService {
|
|
14
14
|
constructor(client) {
|
|
15
15
|
this.client = client;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
createStake(request, options) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const queryParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
|
|
19
20
|
const response = yield this.client.request({
|
|
20
|
-
url: `portfolios/${request.portfolioId}/
|
|
21
|
+
url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/staking/initiate`,
|
|
22
|
+
queryParams,
|
|
21
23
|
callOptions: options,
|
|
22
24
|
});
|
|
23
25
|
return response.data;
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
createUnstake(request, options) {
|
|
27
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const
|
|
30
|
+
const queryParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
|
|
29
31
|
const response = yield this.client.request({
|
|
30
|
-
url: `portfolios/${request.portfolioId}/
|
|
31
|
-
|
|
32
|
+
url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/staking/unstake`,
|
|
33
|
+
queryParams,
|
|
32
34
|
callOptions: options,
|
|
33
35
|
});
|
|
34
36
|
return response.data;
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
exports.
|
|
40
|
+
exports.StakingService = StakingService;
|
|
@@ -15,19 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
18
|
import { GetActivityRequest, GetActivityResponse, GetPortfolioActivitiesRequest, GetPortfolioActivityResponse, ListPortfolioActivitiesRequest, ListPortfolioActivitiesResponse, ListEntityActivitiesRequest, ListEntityActivitiesResponse } from './types';
|
|
20
19
|
export interface IActivitiesService {
|
|
21
|
-
getActivity(request: GetActivityRequest): Promise<GetActivityResponse
|
|
22
|
-
getPortfolioActivity(request: GetPortfolioActivitiesRequest): Promise<GetPortfolioActivityResponse
|
|
23
|
-
listEntityActivities(request: ListEntityActivitiesRequest): Promise<ListEntityActivitiesResponse
|
|
24
|
-
listPortfolioActivities(request: ListPortfolioActivitiesRequest): Promise<ListPortfolioActivitiesResponse
|
|
20
|
+
getActivity(request: GetActivityRequest): Promise<GetActivityResponse>;
|
|
21
|
+
getPortfolioActivity(request: GetPortfolioActivitiesRequest): Promise<GetPortfolioActivityResponse>;
|
|
22
|
+
listEntityActivities(request: ListEntityActivitiesRequest): Promise<ListEntityActivitiesResponse>;
|
|
23
|
+
listPortfolioActivities(request: ListPortfolioActivitiesRequest): Promise<ListPortfolioActivitiesResponse>;
|
|
25
24
|
}
|
|
26
25
|
export declare class ActivitiesService implements IActivitiesService {
|
|
27
26
|
private client;
|
|
28
27
|
constructor(client: CoinbasePrimeClient);
|
|
29
|
-
getActivity(request: GetActivityRequest, options?: CoinbaseCallOptions): Promise<GetActivityResponse
|
|
30
|
-
getPortfolioActivity(request: GetPortfolioActivitiesRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioActivityResponse
|
|
31
|
-
listEntityActivities(request: ListEntityActivitiesRequest, options?: CoinbaseCallOptions): Promise<ListEntityActivitiesResponse
|
|
32
|
-
listPortfolioActivities(request: ListPortfolioActivitiesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioActivitiesResponse
|
|
28
|
+
getActivity(request: GetActivityRequest, options?: CoinbaseCallOptions): Promise<GetActivityResponse>;
|
|
29
|
+
getPortfolioActivity(request: GetPortfolioActivitiesRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioActivityResponse>;
|
|
30
|
+
listEntityActivities(request: ListEntityActivitiesRequest, options?: CoinbaseCallOptions): Promise<ListEntityActivitiesResponse>;
|
|
31
|
+
listPortfolioActivities(request: ListPortfolioActivitiesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioActivitiesResponse>;
|
|
33
32
|
}
|
|
@@ -13,13 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { Brand } from 'src/shared/brand';
|
|
17
|
+
import { ActivityCategory, ActivityStatus } from '../model/enums/';
|
|
18
|
+
import { GetActivityResponse as internalGet, GetEntityActivitiesResponse, GetPortfolioActivitiesResponse, GetPortfolioActivityResponse as internalGetPortAct } from '../model/';
|
|
16
19
|
import { Pagination } from '../shared/pagination';
|
|
17
|
-
import { ActivityCategory } from '../model/enums/ActivityCategory';
|
|
18
|
-
import { ActivityStatus } from '../model/enums/ActivityStatus';
|
|
19
|
-
import { GetActivityResponse as internalGet } from '../model/GetActivityResponse';
|
|
20
|
-
import { GetEntityActivitiesResponse } from '../model/GetEntityActivitiesResponse';
|
|
21
|
-
import { GetPortfolioActivitiesResponse } from '../model/GetPortfolioActivitiesResponse';
|
|
22
|
-
import { GetPortfolioActivityResponse as internalGetPortAct } from '../model/GetPortfolioActivityResponse';
|
|
23
20
|
export type ActivityFilters = Pagination & {
|
|
24
21
|
symbols?: string[];
|
|
25
22
|
categories?: ActivityCategory[];
|
|
@@ -30,7 +27,7 @@ export type ActivityFilters = Pagination & {
|
|
|
30
27
|
export type GetActivityRequest = {
|
|
31
28
|
activityId: string;
|
|
32
29
|
};
|
|
33
|
-
export type GetActivityResponse = internalGet
|
|
30
|
+
export type GetActivityResponse = Brand<internalGet, 'GetActivityResponse'>;
|
|
34
31
|
export type ListEntityActivitiesRequest = Pagination & ActivityFilters & {
|
|
35
32
|
entityId: string;
|
|
36
33
|
activityLevel?: string;
|
|
@@ -39,9 +36,9 @@ export type ListEntityActivitiesResponse = GetEntityActivitiesResponse;
|
|
|
39
36
|
export type ListPortfolioActivitiesRequest = Pagination & ActivityFilters & {
|
|
40
37
|
portfolioId: string;
|
|
41
38
|
};
|
|
42
|
-
export type ListPortfolioActivitiesResponse = GetPortfolioActivitiesResponse
|
|
39
|
+
export type ListPortfolioActivitiesResponse = Brand<GetPortfolioActivitiesResponse, 'ListPortfolioActivitiesResponse'>;
|
|
43
40
|
export type GetPortfolioActivitiesRequest = {
|
|
44
41
|
portfolioId: string;
|
|
45
42
|
activityId: string;
|
|
46
43
|
};
|
|
47
|
-
export type GetPortfolioActivityResponse = internalGetPortAct
|
|
44
|
+
export type GetPortfolioActivityResponse = Brand<internalGetPortAct, 'GetPortfolioActivityResponse'>;
|
|
@@ -15,15 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
18
|
import { ListAddressBooksRequest, ListAddressBooksResponse, CreateAddressBookRequest, CreateAddressBookResponse } from './types';
|
|
20
19
|
export interface IAddressBooksService {
|
|
21
|
-
listAddressBooks(request: ListAddressBooksRequest, options?: CoinbaseCallOptions): Promise<ListAddressBooksResponse
|
|
22
|
-
createAddressBook(request: CreateAddressBookRequest, options?: CoinbaseCallOptions): Promise<CreateAddressBookResponse
|
|
20
|
+
listAddressBooks(request: ListAddressBooksRequest, options?: CoinbaseCallOptions): Promise<ListAddressBooksResponse>;
|
|
21
|
+
createAddressBook(request: CreateAddressBookRequest, options?: CoinbaseCallOptions): Promise<CreateAddressBookResponse>;
|
|
23
22
|
}
|
|
24
23
|
export declare class AddressBooksService implements IAddressBooksService {
|
|
25
24
|
private client;
|
|
26
25
|
constructor(client: CoinbasePrimeClient);
|
|
27
|
-
listAddressBooks(request: ListAddressBooksRequest, options?: CoinbaseCallOptions): Promise<ListAddressBooksResponse
|
|
28
|
-
createAddressBook(request: CreateAddressBookRequest, options?: CoinbaseCallOptions): Promise<CreateAddressBookResponse
|
|
26
|
+
listAddressBooks(request: ListAddressBooksRequest, options?: CoinbaseCallOptions): Promise<ListAddressBooksResponse>;
|
|
27
|
+
createAddressBook(request: CreateAddressBookRequest, options?: CoinbaseCallOptions): Promise<CreateAddressBookResponse>;
|
|
29
28
|
}
|
|
@@ -13,17 +13,16 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
import { CreatePortfolioAddressBookEntryRequest } from '../model/
|
|
18
|
-
import { CreatePortfolioAddressBookEntryResponse } from '../model/CreatePortfolioAddressBookEntryResponse';
|
|
16
|
+
import { Brand } from 'src/shared/brand';
|
|
17
|
+
import { GetPortfolioAddressBookResponse, CreatePortfolioAddressBookEntryRequest, CreatePortfolioAddressBookEntryResponse } from '../model/';
|
|
19
18
|
import { Pagination } from '../shared/pagination';
|
|
20
19
|
export type ListAddressBooksRequest = Pagination & {
|
|
21
20
|
portfolioId: string;
|
|
22
21
|
currencySymbol?: string;
|
|
23
22
|
search?: string;
|
|
24
23
|
};
|
|
25
|
-
export type ListAddressBooksResponse = GetPortfolioAddressBookResponse
|
|
24
|
+
export type ListAddressBooksResponse = Brand<GetPortfolioAddressBookResponse, 'ListAddressBooksResponse'>;
|
|
26
25
|
export type CreateAddressBookRequest = CreatePortfolioAddressBookEntryRequest & {
|
|
27
26
|
portfolioId: string;
|
|
28
27
|
};
|
|
29
|
-
export type CreateAddressBookResponse = CreatePortfolioAddressBookEntryResponse
|
|
28
|
+
export type CreateAddressBookResponse = Brand<CreatePortfolioAddressBookEntryResponse, 'CreateAddressBookResponse'>;
|
|
@@ -15,21 +15,20 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
18
|
import { CreateAllocationRequest, CreateAllocationResponse, CreateNetAllocationRequest, CreateNetAllocationResponse, ListPortfolioAllocationsRequest, ListPortfolioAllocationsResponse, ListNetAllocationsRequest, ListNetAllocationsResponse, GetAllocationRequest, GetAllocationResponse } from './types';
|
|
20
19
|
export interface IAllocationService {
|
|
21
|
-
createAllocation(request: CreateAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateAllocationResponse
|
|
22
|
-
createNetAllocation(request: CreateNetAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateNetAllocationResponse
|
|
23
|
-
listPortfolioAllocations(request: ListPortfolioAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioAllocationsResponse
|
|
24
|
-
listNetAllocations(request:
|
|
25
|
-
getAllocation(request: GetAllocationRequest, options?: CoinbaseCallOptions): Promise<GetAllocationResponse
|
|
20
|
+
createAllocation(request: CreateAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateAllocationResponse>;
|
|
21
|
+
createNetAllocation(request: CreateNetAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateNetAllocationResponse>;
|
|
22
|
+
listPortfolioAllocations(request: ListPortfolioAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioAllocationsResponse>;
|
|
23
|
+
listNetAllocations(request: ListNetAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListNetAllocationsResponse>;
|
|
24
|
+
getAllocation(request: GetAllocationRequest, options?: CoinbaseCallOptions): Promise<GetAllocationResponse>;
|
|
26
25
|
}
|
|
27
26
|
export declare class AllocationService implements IAllocationService {
|
|
28
27
|
private client;
|
|
29
28
|
constructor(client: CoinbasePrimeClient);
|
|
30
|
-
createAllocation(request: CreateAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateAllocationResponse
|
|
31
|
-
createNetAllocation(request: CreateNetAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateNetAllocationResponse
|
|
32
|
-
listPortfolioAllocations(request: ListPortfolioAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioAllocationsResponse
|
|
33
|
-
listNetAllocations(request: ListNetAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListNetAllocationsResponse
|
|
34
|
-
getAllocation(request: GetAllocationRequest, options?: CoinbaseCallOptions): Promise<GetAllocationResponse
|
|
29
|
+
createAllocation(request: CreateAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateAllocationResponse>;
|
|
30
|
+
createNetAllocation(request: CreateNetAllocationRequest, options?: CoinbaseCallOptions): Promise<CreateNetAllocationResponse>;
|
|
31
|
+
listPortfolioAllocations(request: ListPortfolioAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioAllocationsResponse>;
|
|
32
|
+
listNetAllocations(request: ListNetAllocationsRequest, options?: CoinbaseCallOptions): Promise<ListNetAllocationsResponse>;
|
|
33
|
+
getAllocation(request: GetAllocationRequest, options?: CoinbaseCallOptions): Promise<GetAllocationResponse>;
|
|
35
34
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Brand } from 'src/shared/brand';
|
|
17
|
+
import { CreateAllocationRequest as internalCreate, CreateAllocationResponse as internalResponse, CreateNetAllocationResponse as internalNetCreate, GetPortfolioAllocationsResponse, GetAllocationResponse as internalGet, GetAllocationsByClientNettingIdResponse } from '../model/';
|
|
18
|
+
import { OrderSide } from '../model/enums/';
|
|
19
|
+
import { Pagination } from '../shared/pagination';
|
|
20
|
+
export type CreateAllocationRequest = Brand<internalCreate, 'CreateAllocationRequest'>;
|
|
21
|
+
export type CreateAllocationResponse = Brand<internalResponse, 'CreateAllocationResponse'>;
|
|
22
|
+
export type CreateNetAllocationRequest = Brand<internalCreate, 'CreateNetAllocationRequest'>;
|
|
23
|
+
export type CreateNetAllocationResponse = Brand<internalNetCreate, 'CreateNetAllocationResponse'>;
|
|
24
|
+
export type ListPortfolioAllocationsRequest = Pagination & {
|
|
25
|
+
portfolioId: string;
|
|
26
|
+
productIds?: string[];
|
|
27
|
+
orderSide?: OrderSide;
|
|
28
|
+
startDate?: string;
|
|
29
|
+
endDate?: string;
|
|
30
|
+
};
|
|
31
|
+
export type ListPortfolioAllocationsResponse = Brand<GetPortfolioAllocationsResponse, 'ListPortfolioAllocationsResponse'>;
|
|
32
|
+
export type ListNetAllocationsRequest = {
|
|
33
|
+
portfolioId: string;
|
|
34
|
+
nettingId: string;
|
|
35
|
+
allocationId?: string;
|
|
36
|
+
};
|
|
37
|
+
export type ListNetAllocationsResponse = Brand<GetAllocationsByClientNettingIdResponse, 'ListNetAllocationsResponse'>;
|
|
38
|
+
export type GetAllocationRequest = {
|
|
39
|
+
portfolioId: string;
|
|
40
|
+
allocationId: string;
|
|
41
|
+
};
|
|
42
|
+
export type GetAllocationResponse = Brand<internalGet, 'GetAllocationResponse'>;
|
|
@@ -15,13 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
18
|
import { ListAssetsRequest, ListAssetsResponse } from './types';
|
|
20
19
|
export interface IAssetsService {
|
|
21
|
-
listAssets(request: ListAssetsRequest, options?: CoinbaseCallOptions): Promise<ListAssetsResponse
|
|
20
|
+
listAssets(request: ListAssetsRequest, options?: CoinbaseCallOptions): Promise<ListAssetsResponse>;
|
|
22
21
|
}
|
|
23
22
|
export declare class AssetsService implements IAssetsService {
|
|
24
23
|
private client;
|
|
25
24
|
constructor(client: CoinbasePrimeClient);
|
|
26
|
-
listAssets(request: ListAssetsRequest, options?: CoinbaseCallOptions): Promise<ListAssetsResponse
|
|
25
|
+
listAssets(request: ListAssetsRequest, options?: CoinbaseCallOptions): Promise<ListAssetsResponse>;
|
|
27
26
|
}
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { Brand } from 'src/shared/brand';
|
|
17
|
+
import { GetEntityAssetsResponse } from '../model/';
|
|
17
18
|
export type ListAssetsRequest = {
|
|
18
19
|
entityId: string;
|
|
19
20
|
};
|
|
20
|
-
export type ListAssetsResponse = GetEntityAssetsResponse
|
|
21
|
+
export type ListAssetsResponse = Brand<GetEntityAssetsResponse, 'ListAssetsResponse'>;
|
|
@@ -15,19 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
18
|
import { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse, ListEntityBalancesRequest, ListEntityBalancesResponse } from './types';
|
|
20
19
|
export interface IBalancesService {
|
|
21
|
-
listPortfolioBalances(request: ListPortfolioBalancesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioBalancesResponse
|
|
22
|
-
getWalletBalance(request: GetWalletBalanceRequest, options?: CoinbaseCallOptions): Promise<GetWalletBalanceResponse
|
|
23
|
-
listOnchainWalletBalances(request: ListOnchainWalletBalancesRequest, options?: CoinbaseCallOptions): Promise<ListOnchainWalletBalancesResponse
|
|
24
|
-
listEntityBalances(request: ListEntityBalancesRequest, options?: CoinbaseCallOptions): Promise<ListEntityBalancesResponse
|
|
20
|
+
listPortfolioBalances(request: ListPortfolioBalancesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioBalancesResponse>;
|
|
21
|
+
getWalletBalance(request: GetWalletBalanceRequest, options?: CoinbaseCallOptions): Promise<GetWalletBalanceResponse>;
|
|
22
|
+
listOnchainWalletBalances(request: ListOnchainWalletBalancesRequest, options?: CoinbaseCallOptions): Promise<ListOnchainWalletBalancesResponse>;
|
|
23
|
+
listEntityBalances(request: ListEntityBalancesRequest, options?: CoinbaseCallOptions): Promise<ListEntityBalancesResponse>;
|
|
25
24
|
}
|
|
26
25
|
export declare class BalancesService implements IBalancesService {
|
|
27
26
|
private client;
|
|
28
27
|
constructor(client: CoinbasePrimeClient);
|
|
29
|
-
listPortfolioBalances(request: ListPortfolioBalancesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioBalancesResponse
|
|
30
|
-
getWalletBalance(request: GetWalletBalanceRequest, options?: CoinbaseCallOptions): Promise<GetWalletBalanceResponse
|
|
31
|
-
listOnchainWalletBalances(request: ListOnchainWalletBalancesRequest, options?: CoinbaseCallOptions): Promise<ListOnchainWalletBalancesResponse
|
|
32
|
-
listEntityBalances(request: ListEntityBalancesRequest, options?: CoinbaseCallOptions): Promise<ListEntityBalancesResponse
|
|
28
|
+
listPortfolioBalances(request: ListPortfolioBalancesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioBalancesResponse>;
|
|
29
|
+
getWalletBalance(request: GetWalletBalanceRequest, options?: CoinbaseCallOptions): Promise<GetWalletBalanceResponse>;
|
|
30
|
+
listOnchainWalletBalances(request: ListOnchainWalletBalancesRequest, options?: CoinbaseCallOptions): Promise<ListOnchainWalletBalancesResponse>;
|
|
31
|
+
listEntityBalances(request: ListEntityBalancesRequest, options?: CoinbaseCallOptions): Promise<ListEntityBalancesResponse>;
|
|
33
32
|
}
|
|
@@ -13,23 +13,20 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
import { VisibilityStatus } from '../model/enums/
|
|
18
|
-
import { GetPortfolioBalancesResponse } from '../model/
|
|
19
|
-
import { GetWalletBalanceResponse as internalGetResp } from '../model/GetWalletBalanceResponse';
|
|
20
|
-
import { ListWeb3WalletBalancesResponse } from '../model/ListWeb3WalletBalancesResponse';
|
|
21
|
-
import { ListEntityBalancesResponse as internalListEntityBalances } from '../model/ListEntityBalancesResponse';
|
|
16
|
+
import { Brand } from 'src/shared/brand';
|
|
17
|
+
import { PortfolioBalanceType, VisibilityStatus } from '../model/enums/';
|
|
18
|
+
import { GetPortfolioBalancesResponse, GetWalletBalanceResponse as internalGetResp, ListWeb3WalletBalancesResponse, ListEntityBalancesResponse as internalListEntityBalances } from '../model/';
|
|
22
19
|
export type ListPortfolioBalancesRequest = {
|
|
23
20
|
portfolioId: string;
|
|
24
21
|
symbol: string;
|
|
25
22
|
balanceType?: PortfolioBalanceType;
|
|
26
23
|
};
|
|
27
|
-
export type ListPortfolioBalancesResponse = GetPortfolioBalancesResponse
|
|
24
|
+
export type ListPortfolioBalancesResponse = Brand<GetPortfolioBalancesResponse, 'ListPortfolioBalancesResponse'>;
|
|
28
25
|
export type GetWalletBalanceRequest = {
|
|
29
26
|
portfolioId: string;
|
|
30
27
|
walletId: string;
|
|
31
28
|
};
|
|
32
|
-
export type GetWalletBalanceResponse = internalGetResp
|
|
29
|
+
export type GetWalletBalanceResponse = Brand<internalGetResp, 'GetWalletBalanceResponse'>;
|
|
33
30
|
export type ListOnchainWalletBalancesRequest = {
|
|
34
31
|
portfolioId: string;
|
|
35
32
|
walletId: string;
|
|
@@ -37,7 +34,7 @@ export type ListOnchainWalletBalancesRequest = {
|
|
|
37
34
|
cursor?: string;
|
|
38
35
|
limit?: number;
|
|
39
36
|
};
|
|
40
|
-
export type ListOnchainWalletBalancesResponse = ListWeb3WalletBalancesResponse
|
|
37
|
+
export type ListOnchainWalletBalancesResponse = Brand<ListWeb3WalletBalancesResponse, 'ListOnchainWalletBalancesResponse'>;
|
|
41
38
|
export type ListEntityBalancesRequest = {
|
|
42
39
|
entityId: string;
|
|
43
40
|
symbols?: string;
|
|
@@ -45,4 +42,4 @@ export type ListEntityBalancesRequest = {
|
|
|
45
42
|
limit?: number;
|
|
46
43
|
aggregationType?: PortfolioBalanceType;
|
|
47
44
|
};
|
|
48
|
-
export type ListEntityBalancesResponse = internalListEntityBalances
|
|
45
|
+
export type ListEntityBalancesResponse = Brand<internalListEntityBalances, 'ListEntityBalancesResponse'>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { CoinbaseClient } from '
|
|
16
|
+
import { CoinbaseClient } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeCredentials } from './credentials';
|
|
18
18
|
export declare class CoinbasePrimeClient extends CoinbaseClient {
|
|
19
19
|
constructor(credentials?: CoinbasePrimeCredentials, apiBasePath?: string);
|
|
@@ -15,13 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
18
|
import { GetPortfolioCommissionRequest, GetPortfolioCommissionResponse } from './types';
|
|
20
19
|
export interface ICommissionService {
|
|
21
|
-
getPortfolioCommission(request: GetPortfolioCommissionRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCommissionResponse
|
|
20
|
+
getPortfolioCommission(request: GetPortfolioCommissionRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCommissionResponse>;
|
|
22
21
|
}
|
|
23
22
|
export declare class CommissionService implements ICommissionService {
|
|
24
23
|
private client;
|
|
25
24
|
constructor(client: CoinbasePrimeClient);
|
|
26
|
-
getPortfolioCommission(request: GetPortfolioCommissionRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCommissionResponse
|
|
25
|
+
getPortfolioCommission(request: GetPortfolioCommissionRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCommissionResponse>;
|
|
27
26
|
}
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { Brand } from 'src/shared/brand';
|
|
17
|
+
import { GetPortfolioCommissionResponse as internalGet } from '../model/';
|
|
17
18
|
export type GetPortfolioCommissionRequest = {
|
|
18
19
|
portfolioId: string;
|
|
19
20
|
};
|
|
20
|
-
export type GetPortfolioCommissionResponse = internalGet
|
|
21
|
+
export type GetPortfolioCommissionResponse = Brand<internalGet, 'GetPortfolioCommissionResponse'>;
|