@northstake/northstakeapi 1.0.14 → 1.0.16
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/.openapi-generator/FILES +6 -6
- package/api/accountApi.ts +3 -3
- package/api/apis.ts +1 -3
- package/api/depositAddressesApi.ts +18 -18
- package/api/linkedWalletsApi.ts +12 -12
- package/api/managedUsersApi.ts +12 -12
- package/api/managedUsersDepositAddressesApi.ts +4 -4
- package/api/managedUsersLinkedWalletsApi.ts +12 -12
- package/api/managedUsersOrdersApi.ts +6 -6
- package/api/managedUsersPortfolioApi.ts +4 -4
- package/api/managedUsersTransactionsApi.ts +3 -3
- package/api/managedUsersValidatorsApi.ts +3 -3
- package/api/ordersApi.ts +6 -6
- package/api/portfolioApi.ts +3 -3
- package/api/transactionsApi.ts +3 -3
- package/api/validatorMarketplaceBuyersApi.ts +6 -6
- package/api/validatorMarketplaceSellersApi.ts +8 -8
- package/api/validatorMarketplaceWebhooksApi.ts +5 -5
- package/api/validatorsApi.ts +3 -3
- package/api.ts +6 -9
- package/dist/api/accountApi.d.ts +1 -1
- package/dist/api/accountApi.js +3 -4
- package/dist/api/apis.d.ts +1 -3
- package/dist/api/apis.js +1 -3
- package/dist/api/depositAddressesApi.d.ts +7 -7
- package/dist/api/depositAddressesApi.js +14 -15
- package/dist/api/linkedWalletsApi.d.ts +3 -3
- package/dist/api/linkedWalletsApi.js +12 -13
- package/dist/api/managedUsersApi.d.ts +5 -5
- package/dist/api/managedUsersApi.js +9 -10
- package/dist/api/managedUsersDepositAddressesApi.d.ts +2 -2
- package/dist/api/managedUsersDepositAddressesApi.js +4 -5
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +3 -3
- package/dist/api/managedUsersLinkedWalletsApi.js +12 -13
- package/dist/api/managedUsersOrdersApi.d.ts +1 -1
- package/dist/api/managedUsersOrdersApi.js +6 -7
- package/dist/api/managedUsersPortfolioApi.d.ts +2 -2
- package/dist/api/managedUsersPortfolioApi.js +4 -5
- package/dist/api/managedUsersTransactionsApi.d.ts +1 -1
- package/dist/api/managedUsersTransactionsApi.js +3 -4
- package/dist/api/managedUsersValidatorsApi.d.ts +1 -1
- package/dist/api/managedUsersValidatorsApi.js +3 -4
- package/dist/api/ordersApi.d.ts +1 -1
- package/dist/api/ordersApi.js +6 -7
- package/dist/api/portfolioApi.d.ts +1 -1
- package/dist/api/portfolioApi.js +3 -4
- package/dist/api/transactionsApi.d.ts +1 -1
- package/dist/api/transactionsApi.js +3 -4
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +1 -1
- package/dist/api/validatorMarketplaceBuyersApi.js +6 -7
- package/dist/api/validatorMarketplaceSellersApi.d.ts +1 -1
- package/dist/api/validatorMarketplaceSellersApi.js +8 -9
- package/dist/api/validatorMarketplaceWebhooksApi.d.ts +1 -1
- package/dist/api/validatorMarketplaceWebhooksApi.js +5 -6
- package/dist/api/validatorsApi.d.ts +1 -1
- package/dist/api/validatorsApi.js +3 -4
- package/dist/api.d.ts +6 -7
- package/dist/api.js +6 -8
- package/dist/model/{settlementStepAcceptedQuote.d.ts → acceptedQuote.d.ts} +5 -5
- package/dist/model/{settlementStepAcceptedQuote.js → acceptedQuote.js} +7 -7
- package/dist/model/accountEntity.d.ts +2 -2
- package/dist/model/accountEntity.js +1 -1
- package/dist/model/addLinkedWalletForUserRequest.d.ts +2 -2
- package/dist/model/addLinkedWalletForUserRequest.js +3 -3
- package/dist/model/addLinkedWalletRequest.d.ts +2 -2
- package/dist/model/addLinkedWalletRequest.js +3 -3
- package/dist/model/allManagedUsersResponse.d.ts +1 -1
- package/dist/model/allManagedUsersResponse.js +1 -1
- package/dist/model/asset.d.ts +1 -1
- package/dist/model/asset.js +1 -1
- package/dist/model/createManagedUserRequest.d.ts +1 -1
- package/dist/model/createManagedUserRequest.js +1 -1
- package/dist/model/createRFQRequest.d.ts +1 -1
- package/dist/model/createRFQRequest.js +1 -1
- package/dist/model/{depositAccount.d.ts → depositAddress.d.ts} +5 -5
- package/dist/model/{depositAccount.js → depositAddress.js} +8 -8
- package/dist/model/depositAddressesForUserResponse.d.ts +3 -3
- package/dist/model/depositAddressesForUserResponse.js +2 -2
- package/dist/model/errorResponse.d.ts +1 -1
- package/dist/model/errorResponse.js +1 -1
- package/dist/model/{settlementStepEscrowPayment.d.ts → escrowPayment.d.ts} +2 -2
- package/dist/model/{settlementStepEscrowPayment.js → escrowPayment.js} +7 -7
- package/dist/model/{settlementStepEscrowReleased.d.ts → escrowReleased.d.ts} +2 -2
- package/dist/model/{settlementStepEscrowReleased.js → escrowReleased.js} +7 -7
- package/dist/model/ethereumValidatorKey.d.ts +1 -1
- package/dist/model/ethereumValidatorKey.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystore.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystore.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCrypto.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCrypto.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.js +1 -1
- package/dist/model/exitEstimateBase.d.ts +1 -1
- package/dist/model/exitEstimateBase.js +1 -1
- package/dist/model/exitEstimateSeller.d.ts +1 -1
- package/dist/model/exitEstimateSeller.js +1 -1
- package/dist/model/getTransactionsResponse.d.ts +1 -1
- package/dist/model/getTransactionsResponse.js +1 -1
- package/dist/model/managedUser.d.ts +1 -1
- package/dist/model/managedUser.js +1 -1
- package/dist/model/managedUserDetails.d.ts +31 -0
- package/dist/model/managedUserDetails.js +41 -0
- package/dist/model/models.d.ts +6 -5
- package/dist/model/models.js +19 -16
- package/dist/model/order.d.ts +3 -3
- package/dist/model/order.js +1 -1
- package/dist/model/orderDocument.d.ts +3 -3
- package/dist/model/orderDocument.js +1 -1
- package/dist/model/orderDocumentSteps.d.ts +1 -1
- package/dist/model/orderDocumentSteps.js +1 -1
- package/dist/model/orderType.d.ts +1 -1
- package/dist/model/orderType.js +1 -1
- package/dist/model/orderUpdatePayload.d.ts +1 -1
- package/dist/model/orderUpdatePayload.js +1 -1
- package/dist/model/portfolioEntity.d.ts +1 -1
- package/dist/model/portfolioEntity.js +1 -1
- package/dist/model/provideEscrowHashForRFQDocumentRequest.d.ts +1 -1
- package/dist/model/provideEscrowHashForRFQDocumentRequest.js +1 -1
- package/dist/model/quote.d.ts +1 -1
- package/dist/model/quote.js +1 -1
- package/dist/model/rFQBids.d.ts +1 -1
- package/dist/model/rFQBids.js +1 -1
- package/dist/model/rFQDocumentBase.d.ts +1 -1
- package/dist/model/rFQDocumentBase.js +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +1 -1
- package/dist/model/rFQDocumentBuyer.js +1 -1
- package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +1 -1
- package/dist/model/rFQDocumentBuyerAllOfValidators.js +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.js +1 -1
- package/dist/model/rFQDocumentSeller.d.ts +1 -1
- package/dist/model/rFQDocumentSeller.js +1 -1
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +1 -1
- package/dist/model/rFQDocumentSellerAllOfValidators.js +1 -1
- package/dist/model/rFQDocumentSellerStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentSellerStatusFilter.js +1 -1
- package/dist/model/rFQDocumentStatus.d.ts +1 -1
- package/dist/model/rFQDocumentStatus.js +1 -1
- package/dist/model/rFQDocumentUpdate.d.ts +1 -1
- package/dist/model/rFQDocumentUpdate.js +1 -1
- package/dist/model/rFQUpdatePayload.d.ts +1 -1
- package/dist/model/rFQUpdatePayload.js +1 -1
- package/dist/model/rFQWebhookEventType.d.ts +1 -1
- package/dist/model/rFQWebhookEventType.js +1 -1
- package/dist/model/registerWithdrawalRecipientSettlementRequest.d.ts +1 -1
- package/dist/model/registerWithdrawalRecipientSettlementRequest.js +1 -1
- package/dist/model/settlementSteps.d.ts +9 -9
- package/dist/model/settlementSteps.js +5 -5
- package/dist/model/smartContract.d.ts +1 -1
- package/dist/model/smartContract.js +1 -1
- package/dist/model/stakeStep.d.ts +1 -1
- package/dist/model/stakeStep.js +1 -1
- package/dist/model/stakeStepElement.d.ts +1 -1
- package/dist/model/stakeStepElement.js +1 -1
- package/dist/model/stepStatus.d.ts +1 -1
- package/dist/model/stepStatus.js +1 -1
- package/dist/model/submittedQuote.d.ts +1 -1
- package/dist/model/submittedQuote.js +1 -1
- package/dist/model/transaction.d.ts +1 -1
- package/dist/model/transaction.js +1 -1
- package/dist/model/transactionEventType.d.ts +1 -1
- package/dist/model/transactionEventType.js +1 -1
- package/dist/model/transactionsforUser.d.ts +1 -1
- package/dist/model/transactionsforUser.js +1 -1
- package/dist/model/unstakeStep.d.ts +1 -1
- package/dist/model/unstakeStep.js +1 -1
- package/dist/model/unstakeStepElement.d.ts +1 -1
- package/dist/model/unstakeStepElement.js +1 -1
- package/dist/model/unstakeStepType.d.ts +1 -1
- package/dist/model/unstakeStepType.js +1 -1
- package/dist/model/validatorContractType.d.ts +1 -1
- package/dist/model/validatorContractType.js +1 -1
- package/dist/model/validatorInfo.d.ts +6 -6
- package/dist/model/validatorInfo.js +4 -4
- package/dist/model/validatorInfoValidatorType.d.ts +1 -1
- package/dist/model/validatorInfoValidatorType.js +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
- package/dist/model/validatorKeyHolder.d.ts +1 -1
- package/dist/model/validatorKeyHolder.js +1 -1
- package/dist/model/wallet.d.ts +6 -3
- package/dist/model/wallet.js +5 -5
- package/dist/model/webHookLookupAnswer.d.ts +1 -1
- package/dist/model/webHookLookupAnswer.js +1 -1
- package/dist/model/webhookPayload.d.ts +1 -1
- package/dist/model/webhookPayload.js +1 -1
- package/dist/model/webhookPayloadData.d.ts +1 -1
- package/dist/model/webhookPayloadData.js +1 -1
- package/dist/model/webhookPayloadRFQAvailable.d.ts +1 -1
- package/dist/model/webhookPayloadRFQAvailable.js +1 -1
- package/dist/model/webhookPayloadRFQBidAccepted.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidAccepted.js +1 -1
- package/dist/model/webhookPayloadRFQBidAcceptedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidAcceptedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQBidReceived.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidReceived.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowEvent.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowEvent.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowEventDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowEventDetails.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleased.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleased.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceived.d.ts +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceived.js +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorExited.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorExited.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
- package/dist/model/webhookRegistration.d.ts +1 -1
- package/dist/model/webhookRegistration.js +1 -1
- package/dist/model/webhookRegistrationDetails.d.ts +1 -1
- package/dist/model/webhookRegistrationDetails.js +1 -1
- package/dist/model/{settlementStepWithdrawalRecipientSettlement.d.ts → withdrawalRecipientSettlement.d.ts} +2 -2
- package/dist/model/{settlementStepWithdrawalRecipientSettlement.js → withdrawalRecipientSettlement.js} +7 -7
- package/dist/model/withdrawalStep.d.ts +1 -1
- package/dist/model/withdrawalStep.js +1 -1
- package/dist/model/withdrawalStepElement.d.ts +1 -1
- package/dist/model/withdrawalStepElement.js +1 -1
- package/dist/model/withdrawalStepType.d.ts +1 -1
- package/dist/model/withdrawalStepType.js +1 -1
- package/model/{settlementStepAcceptedQuote.ts → acceptedQuote.ts} +6 -6
- package/model/accountEntity.ts +2 -2
- package/model/addLinkedWalletForUserRequest.ts +4 -4
- package/model/addLinkedWalletRequest.ts +4 -4
- package/model/allManagedUsersResponse.ts +1 -1
- package/model/asset.ts +1 -1
- package/model/createManagedUserRequest.ts +1 -1
- package/model/createRFQRequest.ts +1 -1
- package/model/{depositAccount.ts → depositAddress.ts} +6 -6
- package/model/depositAddressesForUserResponse.ts +4 -4
- package/model/errorResponse.ts +1 -1
- package/model/{settlementStepEscrowPayment.ts → escrowPayment.ts} +3 -3
- package/model/{settlementStepEscrowReleased.ts → escrowReleased.ts} +3 -3
- package/model/ethereumValidatorKey.ts +1 -1
- package/model/ethereumValidatorKeyKeystore.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCrypto.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoChecksum.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoCipher.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoCipherParams.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoKdf.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts +1 -1
- package/model/exitEstimateBase.ts +1 -1
- package/model/exitEstimateSeller.ts +1 -1
- package/model/getTransactionsResponse.ts +1 -1
- package/model/managedUser.ts +1 -1
- package/model/managedUserDetails.ts +47 -0
- package/model/models.ts +29 -24
- package/model/order.ts +3 -3
- package/model/orderDocument.ts +3 -3
- package/model/orderDocumentSteps.ts +1 -1
- package/model/orderType.ts +1 -1
- package/model/orderUpdatePayload.ts +1 -1
- package/model/portfolioEntity.ts +1 -1
- package/model/provideEscrowHashForRFQDocumentRequest.ts +1 -1
- package/model/quote.ts +1 -1
- package/model/rFQBids.ts +1 -1
- package/model/rFQDocumentBase.ts +1 -1
- package/model/rFQDocumentBaseUniqueEscrowVault.ts +1 -1
- package/model/rFQDocumentBuyer.ts +1 -1
- package/model/rFQDocumentBuyerAllOfValidators.ts +1 -1
- package/model/rFQDocumentBuyerStatusFilter.ts +1 -1
- package/model/rFQDocumentSeller.ts +1 -1
- package/model/rFQDocumentSellerAllOfValidators.ts +1 -1
- package/model/rFQDocumentSellerStatusFilter.ts +1 -1
- package/model/rFQDocumentStatus.ts +1 -1
- package/model/rFQDocumentUpdate.ts +1 -1
- package/model/rFQUpdatePayload.ts +1 -1
- package/model/rFQWebhookEventType.ts +1 -1
- package/model/registerWithdrawalRecipientSettlementRequest.ts +1 -1
- package/model/settlementSteps.ts +13 -13
- package/model/smartContract.ts +1 -1
- package/model/stakeStep.ts +1 -1
- package/model/stakeStepElement.ts +1 -1
- package/model/stepStatus.ts +1 -1
- package/model/submittedQuote.ts +1 -1
- package/model/transaction.ts +1 -1
- package/model/transactionEventType.ts +1 -1
- package/model/transactionsforUser.ts +1 -1
- package/model/unstakeStep.ts +1 -1
- package/model/unstakeStepElement.ts +1 -1
- package/model/unstakeStepType.ts +1 -1
- package/model/validatorContractType.ts +1 -1
- package/model/validatorInfo.ts +9 -9
- package/model/validatorInfoValidatorType.ts +1 -1
- package/model/validatorInfoValidatorTypeContract.ts +1 -1
- package/model/validatorKeyHolder.ts +1 -1
- package/model/wallet.ts +9 -6
- package/model/webHookLookupAnswer.ts +1 -1
- package/model/webhookPayload.ts +1 -1
- package/model/webhookPayloadData.ts +1 -1
- package/model/webhookPayloadRFQAvailable.ts +1 -1
- package/model/webhookPayloadRFQBidAccepted.ts +1 -1
- package/model/webhookPayloadRFQBidAcceptedDetails.ts +1 -1
- package/model/webhookPayloadRFQBidReceived.ts +1 -1
- package/model/webhookPayloadRFQEscrowEvent.ts +1 -1
- package/model/webhookPayloadRFQEscrowEventDetails.ts +1 -1
- package/model/webhookPayloadRFQEscrowReleased.ts +1 -1
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +1 -1
- package/model/webhookPayloadRFQTransferProposalReceived.ts +1 -1
- package/model/webhookPayloadRFQTransferProposalReceivedDetails.ts +1 -1
- package/model/webhookPayloadRFQValidatorExited.ts +1 -1
- package/model/webhookPayloadRFQValidatorExitedDetails.ts +1 -1
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +1 -1
- package/model/webhookRegistration.ts +1 -1
- package/model/webhookRegistrationDetails.ts +1 -1
- package/model/{settlementStepWithdrawalRecipientSettlement.ts → withdrawalRecipientSettlement.ts} +3 -3
- package/model/withdrawalStep.ts +1 -1
- package/model/withdrawalStepElement.ts +1 -1
- package/model/withdrawalStepType.ts +1 -1
- package/package.json +2 -2
- package/api/liquidityProviderApi.ts +0 -178
- package/dist/api/liquidityProviderApi.d.ts +0 -49
- package/dist/api/liquidityProviderApi.js +0 -139
package/model/wallet.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Northstake
|
|
3
|
-
* Northstake api
|
|
3
|
+
* Northstake api
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
*
|
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { Asset } from './asset';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
|
-
* Details about a linked wallet including
|
|
16
|
+
* Details about a linked wallet including asset, address, and name.
|
|
16
17
|
*/
|
|
17
18
|
export class Wallet {
|
|
18
|
-
'
|
|
19
|
+
'asset'?: Asset;
|
|
19
20
|
'walletAddress'?: string;
|
|
20
21
|
'walletName'?: string;
|
|
21
22
|
|
|
@@ -23,9 +24,9 @@ export class Wallet {
|
|
|
23
24
|
|
|
24
25
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
25
26
|
{
|
|
26
|
-
"name": "
|
|
27
|
-
"baseName": "
|
|
28
|
-
"type": "
|
|
27
|
+
"name": "asset",
|
|
28
|
+
"baseName": "asset",
|
|
29
|
+
"type": "Asset"
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
"name": "walletAddress",
|
|
@@ -43,4 +44,6 @@ export class Wallet {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
export namespace Wallet {
|
|
48
|
+
}
|
|
46
49
|
|
package/model/webhookPayload.ts
CHANGED
package/model/{settlementStepWithdrawalRecipientSettlement.ts → withdrawalRecipientSettlement.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Northstake
|
|
3
|
-
* Northstake api
|
|
3
|
+
* Northstake api
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
export class
|
|
14
|
+
export class WithdrawalRecipientSettlement {
|
|
15
15
|
'timestamp': string;
|
|
16
16
|
'transaction_hash': string;
|
|
17
17
|
|
|
@@ -30,7 +30,7 @@ export class SettlementStepWithdrawalRecipientSettlement {
|
|
|
30
30
|
} ];
|
|
31
31
|
|
|
32
32
|
static getAttributeTypeMap() {
|
|
33
|
-
return
|
|
33
|
+
return WithdrawalRecipientSettlement.attributeTypeMap;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
package/model/withdrawalStep.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "Northstake SDK",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Northstake build process <buildadmin@northstake.dk>",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^20.12.
|
|
24
|
+
"@types/node": "^20.12.11",
|
|
25
25
|
"typescript": "^5.4.5"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import localVarRequest from 'request';
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
|
|
20
|
-
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
21
|
-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
22
|
-
|
|
23
|
-
import { HttpError, RequestFile } from './apis';
|
|
24
|
-
|
|
25
|
-
let defaultBasePath = '/v1';
|
|
26
|
-
|
|
27
|
-
// ===============================================
|
|
28
|
-
// This file is autogenerated - Please do not edit
|
|
29
|
-
// ===============================================
|
|
30
|
-
|
|
31
|
-
export enum LiquidityProviderApiApiKeys {
|
|
32
|
-
ApiKeyAuth,
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export class LiquidityProviderApi {
|
|
38
|
-
protected _basePath = defaultBasePath;
|
|
39
|
-
protected _defaultHeaders : any = {};
|
|
40
|
-
protected _useQuerystring : boolean = false;
|
|
41
|
-
|
|
42
|
-
protected authentications = {
|
|
43
|
-
'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
|
|
44
|
-
'bearerTokenAuth': new HttpBearerAuth(),
|
|
45
|
-
'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
protected interceptors: Interceptor[] = [];
|
|
49
|
-
|
|
50
|
-
constructor(basePath?: string);
|
|
51
|
-
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
52
|
-
if (password) {
|
|
53
|
-
if (basePath) {
|
|
54
|
-
this.basePath = basePath;
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
if (basePathOrUsername) {
|
|
58
|
-
this.basePath = basePathOrUsername
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
set useQuerystring(value: boolean) {
|
|
64
|
-
this._useQuerystring = value;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
set basePath(basePath: string) {
|
|
68
|
-
this._basePath = basePath;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
set defaultHeaders(defaultHeaders: any) {
|
|
72
|
-
this._defaultHeaders = defaultHeaders;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
get defaultHeaders() {
|
|
76
|
-
return this._defaultHeaders;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
get basePath() {
|
|
80
|
-
return this._basePath;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
public setDefaultAuthentication(auth: Authentication) {
|
|
84
|
-
this.authentications.default = auth;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
public setApiKey(key: LiquidityProviderApiApiKeys, value: string) {
|
|
88
|
-
(this.authentications as any)[LiquidityProviderApiApiKeys[key]].apiKey = value;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
set accessToken(accessToken: string | (() => string)) {
|
|
92
|
-
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
public addInterceptor(interceptor: Interceptor) {
|
|
96
|
-
this.interceptors.push(interceptor);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Get liquidity provider basic info
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
public async getProviderIdInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
109
|
-
|
|
110
|
-
const localVarPath = this.basePath + '/liquidityProvider/';
|
|
111
|
-
|
|
112
|
-
let localVarQueryParameters: any = {};
|
|
113
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
114
|
-
const produces = ['application/json'];
|
|
115
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
116
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
117
|
-
} else {
|
|
118
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
119
|
-
}
|
|
120
|
-
let localVarFormParams: any = {};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
131
|
-
|
|
132
|
-
let localVarUseFormData = false;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
137
|
-
method: 'GET',
|
|
138
|
-
qs: localVarQueryParameters,
|
|
139
|
-
headers: localVarHeaderParams,
|
|
140
|
-
uri: localVarPath,
|
|
141
|
-
useQuerystring: this._useQuerystring,
|
|
142
|
-
json: true,
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
let authenticationPromise = Promise.resolve();
|
|
146
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
147
|
-
|
|
148
|
-
let interceptorPromise = authenticationPromise;
|
|
149
|
-
for (const interceptor of this.interceptors) {
|
|
150
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return interceptorPromise.then(() => {
|
|
154
|
-
if (Object.keys(localVarFormParams).length) {
|
|
155
|
-
if (localVarUseFormData) {
|
|
156
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
157
|
-
} else {
|
|
158
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
162
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
163
|
-
if (error) {
|
|
164
|
-
console.error('API call error:', error);
|
|
165
|
-
reject(error);
|
|
166
|
-
} else {
|
|
167
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
168
|
-
resolve({ body: body, status: response.statusCode });
|
|
169
|
-
} else {
|
|
170
|
-
console.error('API response error:', response.statusCode);
|
|
171
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
} )
|
|
177
|
-
}
|
|
178
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { Authentication, Interceptor } from '../model/models';
|
|
13
|
-
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
14
|
-
export declare enum LiquidityProviderApiApiKeys {
|
|
15
|
-
ApiKeyAuth = 0
|
|
16
|
-
}
|
|
17
|
-
export declare class LiquidityProviderApi {
|
|
18
|
-
protected _basePath: string;
|
|
19
|
-
protected _defaultHeaders: any;
|
|
20
|
-
protected _useQuerystring: boolean;
|
|
21
|
-
protected authentications: {
|
|
22
|
-
default: Authentication;
|
|
23
|
-
bearerTokenAuth: HttpBearerAuth;
|
|
24
|
-
ApiKeyAuth: ApiKeyAuth;
|
|
25
|
-
};
|
|
26
|
-
protected interceptors: Interceptor[];
|
|
27
|
-
constructor(basePath?: string);
|
|
28
|
-
set useQuerystring(value: boolean);
|
|
29
|
-
set basePath(basePath: string);
|
|
30
|
-
set defaultHeaders(defaultHeaders: any);
|
|
31
|
-
get defaultHeaders(): any;
|
|
32
|
-
get basePath(): string;
|
|
33
|
-
setDefaultAuthentication(auth: Authentication): void;
|
|
34
|
-
setApiKey(key: LiquidityProviderApiApiKeys, value: string): void;
|
|
35
|
-
set accessToken(accessToken: string | (() => string));
|
|
36
|
-
addInterceptor(interceptor: Interceptor): void;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @summary Get liquidity provider basic info
|
|
40
|
-
*/
|
|
41
|
-
getProviderIdInfo(options?: {
|
|
42
|
-
headers: {
|
|
43
|
-
[name: string]: string;
|
|
44
|
-
};
|
|
45
|
-
}): Promise<{
|
|
46
|
-
body: any;
|
|
47
|
-
status: number;
|
|
48
|
-
}>;
|
|
49
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Northstake
|
|
4
|
-
* Northstake api.
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.LiquidityProviderApi = exports.LiquidityProviderApiApiKeys = void 0;
|
|
18
|
-
const request_1 = __importDefault(require("request"));
|
|
19
|
-
const models_1 = require("../model/models");
|
|
20
|
-
const apis_1 = require("./apis");
|
|
21
|
-
let defaultBasePath = '/v1';
|
|
22
|
-
// ===============================================
|
|
23
|
-
// This file is autogenerated - Please do not edit
|
|
24
|
-
// ===============================================
|
|
25
|
-
var LiquidityProviderApiApiKeys;
|
|
26
|
-
(function (LiquidityProviderApiApiKeys) {
|
|
27
|
-
LiquidityProviderApiApiKeys[LiquidityProviderApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
-
})(LiquidityProviderApiApiKeys || (exports.LiquidityProviderApiApiKeys = LiquidityProviderApiApiKeys = {}));
|
|
29
|
-
class LiquidityProviderApi {
|
|
30
|
-
constructor(basePathOrUsername, password, basePath) {
|
|
31
|
-
this._basePath = defaultBasePath;
|
|
32
|
-
this._defaultHeaders = {};
|
|
33
|
-
this._useQuerystring = false;
|
|
34
|
-
this.authentications = {
|
|
35
|
-
'default': new models_1.JWTAuth('your_api_key', 'your_private_key'),
|
|
36
|
-
'bearerTokenAuth': new models_1.HttpBearerAuth(),
|
|
37
|
-
'ApiKeyAuth': new models_1.ApiKeyAuth('header', 'x-api-key'),
|
|
38
|
-
};
|
|
39
|
-
this.interceptors = [];
|
|
40
|
-
if (password) {
|
|
41
|
-
if (basePath) {
|
|
42
|
-
this.basePath = basePath;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
if (basePathOrUsername) {
|
|
47
|
-
this.basePath = basePathOrUsername;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
set useQuerystring(value) {
|
|
52
|
-
this._useQuerystring = value;
|
|
53
|
-
}
|
|
54
|
-
set basePath(basePath) {
|
|
55
|
-
this._basePath = basePath;
|
|
56
|
-
}
|
|
57
|
-
set defaultHeaders(defaultHeaders) {
|
|
58
|
-
this._defaultHeaders = defaultHeaders;
|
|
59
|
-
}
|
|
60
|
-
get defaultHeaders() {
|
|
61
|
-
return this._defaultHeaders;
|
|
62
|
-
}
|
|
63
|
-
get basePath() {
|
|
64
|
-
return this._basePath;
|
|
65
|
-
}
|
|
66
|
-
setDefaultAuthentication(auth) {
|
|
67
|
-
this.authentications.default = auth;
|
|
68
|
-
}
|
|
69
|
-
setApiKey(key, value) {
|
|
70
|
-
this.authentications[LiquidityProviderApiApiKeys[key]].apiKey = value;
|
|
71
|
-
}
|
|
72
|
-
set accessToken(accessToken) {
|
|
73
|
-
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
74
|
-
}
|
|
75
|
-
addInterceptor(interceptor) {
|
|
76
|
-
this.interceptors.push(interceptor);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary Get liquidity provider basic info
|
|
81
|
-
*/
|
|
82
|
-
async getProviderIdInfo(options = { headers: {} }) {
|
|
83
|
-
const localVarPath = this.basePath + '/liquidityProvider/';
|
|
84
|
-
let localVarQueryParameters = {};
|
|
85
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
86
|
-
const produces = ['application/json'];
|
|
87
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
88
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
92
|
-
}
|
|
93
|
-
let localVarFormParams = {};
|
|
94
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
95
|
-
let localVarUseFormData = false;
|
|
96
|
-
let localVarRequestOptions = {
|
|
97
|
-
method: 'GET',
|
|
98
|
-
qs: localVarQueryParameters,
|
|
99
|
-
headers: localVarHeaderParams,
|
|
100
|
-
uri: localVarPath,
|
|
101
|
-
useQuerystring: this._useQuerystring,
|
|
102
|
-
json: true,
|
|
103
|
-
};
|
|
104
|
-
let authenticationPromise = Promise.resolve();
|
|
105
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
106
|
-
let interceptorPromise = authenticationPromise;
|
|
107
|
-
for (const interceptor of this.interceptors) {
|
|
108
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
109
|
-
}
|
|
110
|
-
return interceptorPromise.then(() => {
|
|
111
|
-
if (Object.keys(localVarFormParams).length) {
|
|
112
|
-
if (localVarUseFormData) {
|
|
113
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return new Promise((resolve, reject) => {
|
|
120
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
121
|
-
if (error) {
|
|
122
|
-
console.error('API call error:', error);
|
|
123
|
-
reject(error);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
127
|
-
resolve({ body: body, status: response.statusCode });
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
console.error('API response error:', response.statusCode);
|
|
131
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
exports.LiquidityProviderApi = LiquidityProviderApi;
|