@tatumio/shared-abstract-sdk
Advanced tools
Comparing version 2.0.1-alpha.237 to 2.0.1-alpha.238
{ | ||
"name": "@tatumio/shared-abstract-sdk", | ||
"version": "2.0.1-alpha.237", | ||
"version": "2.0.1-alpha.238", | ||
"license": "MIT", | ||
@@ -8,5 +8,6 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"@tatumio/api-client": "2.0.1-alpha.237", | ||
"axios": "^0.25.0", | ||
"@tatumio/api-client": "2.0.1-alpha.238", | ||
"axios": "^0.26.0", | ||
"form-data": "^4.0.0", | ||
"@tatumio/shared-testing-common": "2.0.1-alpha.238", | ||
"bignumber.js": "^9.0.2" | ||
@@ -13,0 +14,0 @@ }, |
@@ -6,1 +6,2 @@ export * from './lib/utils'; | ||
export * from './lib/errors.abstract.sdk'; | ||
export * from './lib/services/ledger.abstract'; |
@@ -9,2 +9,3 @@ "use strict"; | ||
(0, tslib_1.__exportStar)(require("./lib/errors.abstract.sdk"), exports); | ||
(0, tslib_1.__exportStar)(require("./lib/services/ledger.abstract"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -12,59 +12,2 @@ import { LedgerSubscriptionService, SecurityAddressService, StorageIpfsService, TatumServiceService, TatumUrl } from '@tatumio/api-client'; | ||
subscriptions: typeof LedgerSubscriptionService; | ||
ledger: { | ||
customer: { | ||
get: typeof import("@tatumio/api-client").LedgerCustomerService.getCustomerByExternalOrInternalId; | ||
getAll: typeof import("@tatumio/api-client").LedgerCustomerService.findAllCustomers; | ||
update: typeof import("@tatumio/api-client").LedgerCustomerService.updateCustomer; | ||
activate: typeof import("@tatumio/api-client").LedgerCustomerService.activateCustomer; | ||
deactivate: typeof import("@tatumio/api-client").LedgerCustomerService.deactivateCustomer; | ||
enable: typeof import("@tatumio/api-client").LedgerCustomerService.enableCustomer; | ||
disable: typeof import("@tatumio/api-client").LedgerCustomerService.disableCustomer; | ||
}; | ||
orderBook: { | ||
getHistorical: typeof import("@tatumio/api-client").LedgerOrderBookService.getHistoricalTradesBody; | ||
getActiveBuyTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody; | ||
getActiveSellTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody; | ||
newTrade: typeof import("@tatumio/api-client").LedgerOrderBookService.storeTrade; | ||
get: typeof import("@tatumio/api-client").LedgerOrderBookService.getTradeById; | ||
cancel: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteTrade; | ||
cancelByAccount: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteAccountTrades; | ||
}; | ||
transaction: { | ||
send: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransaction; | ||
sendMultiple: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransactionBatch; | ||
getAll: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactions; | ||
getAllByAccount: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByAccountId; | ||
getAllByCustomer: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByCustomerId; | ||
getAllByReference: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByReference; | ||
countByAccount: (filter: import("@tatumio/api-client").TransactionFilter) => any; | ||
countByCustomer: (filter: import("@tatumio/api-client").TransactionFilterCustomer) => any; | ||
}; | ||
virtualCurrency: { | ||
create: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.createCurrency; | ||
mint: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.mintCurrency; | ||
revoke: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.revokeCurrency; | ||
getByName: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.getCurrency; | ||
update: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.updateCurrency; | ||
}; | ||
blockAmount: { | ||
block: typeof import("@tatumio/api-client").LedgerAccountService.blockAmount; | ||
unblock: typeof import("@tatumio/api-client").LedgerAccountService.deleteBlockAmount; | ||
unblockWithTransaction: typeof import("@tatumio/api-client").LedgerAccountService.unblockAmountWithTransaction; | ||
}; | ||
account: { | ||
get: typeof import("@tatumio/api-client").LedgerAccountService.getAccountByAccountId; | ||
getAll: typeof import("@tatumio/api-client").LedgerAccountService.getAllAccounts; | ||
getByCustomerId: typeof import("@tatumio/api-client").LedgerAccountService.getAccountsByCustomerId; | ||
getBalance: typeof import("@tatumio/api-client").LedgerAccountService.getAccountBalance; | ||
create: typeof import("@tatumio/api-client").LedgerAccountService.createAccount; | ||
createMultiple: typeof import("@tatumio/api-client").LedgerAccountService.createAccountBatch; | ||
update: typeof import("@tatumio/api-client").LedgerAccountService.updateAccountByAccountId; | ||
getBlockedAmountsByAccountId: typeof import("@tatumio/api-client").LedgerAccountService.getBlockAmountById; | ||
activate: typeof import("@tatumio/api-client").LedgerAccountService.activateAccount; | ||
deactivate: typeof import("@tatumio/api-client").LedgerAccountService.deactivateAccount; | ||
freeze: typeof import("@tatumio/api-client").LedgerAccountService.freezeAccount; | ||
unfreeze: typeof import("@tatumio/api-client").LedgerAccountService.unfreezeAccount; | ||
generate: (account: import("@tatumio/api-client").CreateAccount, generateNewWalletFn: import("./services/ledger/ledger.account.abstract").GenerateWalletFn, generateNewWallet?: boolean, testnet?: boolean, webhookUrl?: string) => Promise<import("./services/ledger/ledger.account.abstract").GeneratedAccount>; | ||
}; | ||
}; | ||
security: { | ||
@@ -107,3 +50,3 @@ checkMaliciousAddress: typeof SecurityAddressService.checkMalicousAddress; | ||
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress; | ||
getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721; | ||
getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTokensByAddressErc721; | ||
getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721; | ||
@@ -117,3 +60,3 @@ getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721; | ||
}>; | ||
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => Promise<string[]>; | ||
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => string[]; | ||
}; | ||
@@ -120,0 +63,0 @@ kms: { |
@@ -7,3 +7,2 @@ "use strict"; | ||
const kms_abstract_1 = require("./services/kms.abstract"); | ||
const ledger_abstract_1 = require("./services/ledger.abstract"); | ||
const nft_abstract_1 = require("./services/nft.abstract"); | ||
@@ -18,3 +17,2 @@ const abstractSdk = (args) => { | ||
subscriptions: api_client_1.LedgerSubscriptionService, | ||
ledger: (0, ledger_abstract_1.abstractSdkLedgerService)(), | ||
security: { | ||
@@ -21,0 +19,0 @@ checkMaliciousAddress: api_client_1.SecurityAddressService.checkMalicousAddress, |
@@ -1,2 +0,2 @@ | ||
export declare type SdkErrorArgs<T extends SdkErrorCode = SdkErrorCode> = { | ||
export declare type SdkErrorArgs = { | ||
originalError?: Error; | ||
@@ -3,0 +3,0 @@ originalErrorAsString?: string; |
@@ -16,3 +16,3 @@ import { CreateAccount, LedgerAccountService, LedgerCustomerService, LedgerOrderBookService, LedgerTransactionService, LedgerVirtualCurrencyService, TransactionFilter, TransactionFilterCustomer } from '@tatumio/api-client'; | ||
getActiveBuyTrades: typeof LedgerOrderBookService.getBuyTradesBody; | ||
getActiveSellTrades: typeof LedgerOrderBookService.getBuyTradesBody; | ||
getActiveSellTrades: typeof LedgerOrderBookService.getSellTradesBody; | ||
newTrade: typeof LedgerOrderBookService.storeTrade; | ||
@@ -30,4 +30,4 @@ get: typeof LedgerOrderBookService.getTradeById; | ||
getAllByReference: typeof LedgerTransactionService.getTransactionsByReference; | ||
countByAccount: (filter: TransactionFilter) => any; | ||
countByCustomer: (filter: TransactionFilterCustomer) => any; | ||
countByAccount: (filter: TransactionFilter) => import("@tatumio/api-client").CancelablePromise<number | import("@tatumio/api-client").Transaction[]>; | ||
countByCustomer: (filter: TransactionFilterCustomer) => import("@tatumio/api-client").CancelablePromise<number | import("@tatumio/api-client").Transaction[]>; | ||
}; | ||
@@ -34,0 +34,0 @@ virtualCurrency: { |
@@ -20,3 +20,3 @@ "use strict"; | ||
getActiveBuyTrades: api_client_1.LedgerOrderBookService.getBuyTradesBody, | ||
getActiveSellTrades: api_client_1.LedgerOrderBookService.getBuyTradesBody, | ||
getActiveSellTrades: api_client_1.LedgerOrderBookService.getSellTradesBody, | ||
newTrade: api_client_1.LedgerOrderBookService.storeTrade, | ||
@@ -35,6 +35,6 @@ get: api_client_1.LedgerOrderBookService.getTradeById, | ||
countByAccount: function (filter) { | ||
return this.getAllByAccount(filter, 50, 0, true); | ||
return api_client_1.LedgerTransactionService.getTransactionsByAccountId(filter, 50, 0, true); | ||
}, | ||
countByCustomer: function (filter) { | ||
return this.getAllByCustomer(filter, 50, 0, true); | ||
return api_client_1.LedgerTransactionService.getTransactionsByCustomerId(filter, 50, 0, true); | ||
}, | ||
@@ -41,0 +41,0 @@ // @TODO OPENAPI |
@@ -14,3 +14,3 @@ import { AddNftMinter, AddNftMinterKMS, BlockchainNftService } from '@tatumio/api-client'; | ||
getNFTTransactionsByAddress: typeof BlockchainNftService.nftGetTransactionByAddress; | ||
getNFTsByAddress: typeof BlockchainNftService.nftGetBalanceErc721; | ||
getNFTsByAddress: typeof BlockchainNftService.nftGetTokensByAddressErc721; | ||
getNFTProvenanceData: typeof BlockchainNftService.nftGetProvenanceDataErc721; | ||
@@ -24,4 +24,4 @@ getNFTMetadataURI: typeof BlockchainNftService.nftGetMetadataErc721; | ||
}>; | ||
prepareAddNftMinterAbstraction: (body: ChainAddMinter) => Promise<string[]>; | ||
prepareAddNftMinterAbstraction: (body: ChainAddMinter) => string[]; | ||
}; | ||
export {}; |
@@ -19,3 +19,3 @@ "use strict"; | ||
getNFTTransactionsByAddress: api_client_1.BlockchainNftService.nftGetTransactionByAddress, | ||
getNFTsByAddress: api_client_1.BlockchainNftService.nftGetBalanceErc721, | ||
getNFTsByAddress: api_client_1.BlockchainNftService.nftGetTokensByAddressErc721, | ||
getNFTProvenanceData: api_client_1.BlockchainNftService.nftGetProvenanceDataErc721, | ||
@@ -35,5 +35,5 @@ getNFTMetadataURI: api_client_1.BlockchainNftService.nftGetMetadataErc721, | ||
}), | ||
prepareAddNftMinterAbstraction: (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () { | ||
prepareAddNftMinterAbstraction: (body) => { | ||
return ['0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6', body.minter]; | ||
}), | ||
}, | ||
}; | ||
@@ -40,0 +40,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60934
5
788
+ Added@tatumio/api-client@2.0.1-alpha.238(transitive)
+ Added@tatumio/shared-testing-common@2.0.1-alpha.238(transitive)
+ Addedaxios@0.26.1(transitive)
- Removed@tatumio/api-client@2.0.1-alpha.237(transitive)
- Removedaxios@0.25.0(transitive)
Updatedaxios@^0.26.0