diff --git a/CHANGELOG.md b/CHANGELOG.md index df18c889..e896d954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +## [0.6.1] - 2024-09-23 + +### Added +- Export all missing types in `src/index` + ## [0.6.0] - 2024-09-18 ### Added diff --git a/src/index.ts b/src/index.ts index 485f509e..52995d59 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,24 +1,29 @@ -export * from "./coinbase/coinbase"; -export * from "./coinbase/wallet"; export * from "./coinbase/address"; -export * from "./coinbase/asset"; -export * from "./coinbase/balance"; -export * from "./coinbase/balance_map"; -export * from "./coinbase/constants"; -export * from "./coinbase/errors"; -export * from "./coinbase/faucet_transaction"; -export * from "./coinbase/server_signer"; -export * from "./coinbase/trade"; -export * from "./coinbase/transaction"; -export * from "./coinbase/transfer"; -export * from "./coinbase/types"; export * from "./coinbase/address/external_address"; export * from "./coinbase/address/wallet_address"; -export * from "./coinbase/staking_operation"; -export * from "./coinbase/staking_reward"; -export * from "./coinbase/staking_balance"; -export * from "./coinbase/validator"; -export * from "./coinbase/webhook"; -export * from "./coinbase/smart_contract"; -export * from "./coinbase/payload_signature"; -export * from "./coinbase/hash"; +export * from './coinbase/api_error'; +export * from './coinbase/asset'; +export * from './coinbase/authenticator'; +export * from './coinbase/balance'; +export * from './coinbase/balance_map'; +export * from './coinbase/coinbase'; +export * from './coinbase/constants'; +export * from './coinbase/contract_event'; +export * from './coinbase/contract_invocation'; +export * from './coinbase/errors'; +export * from './coinbase/faucet_transaction'; +export * from './coinbase/hash'; +export * from './coinbase/historical_balance'; +export * from './coinbase/payload_signature'; +export * from './coinbase/server_signer'; +export * from './coinbase/smart_contract'; +export * from './coinbase/staking_balance'; +export * from './coinbase/staking_operation'; +export * from './coinbase/staking_reward'; +export * from './coinbase/trade'; +export * from './coinbase/transaction'; +export * from './coinbase/transfer'; +export * from './coinbase/types'; +export * from './coinbase/validator'; +export * from './coinbase/wallet'; +export * from './coinbase/webhook'; \ No newline at end of file diff --git a/src/tests/index_test.ts b/src/tests/index_test.ts new file mode 100644 index 00000000..29f73fac --- /dev/null +++ b/src/tests/index_test.ts @@ -0,0 +1,39 @@ +// test/index.test.ts +import * as index from "../index"; + +describe('Index file exports', () => { + it('should export all modules correctly', () => { + expect(index).toBeDefined(); + expect(index).toHaveProperty('Address'); + expect(index).toHaveProperty('APIError'); + expect(index).toHaveProperty('Asset'); + expect(index).toHaveProperty('Balance'); + expect(index).toHaveProperty('BalanceMap'); + expect(index).toHaveProperty('Coinbase'); + expect(index).toHaveProperty('ContractEvent'); + expect(index).toHaveProperty('ContractInvocation'); + expect(index).toHaveProperty('ExternalAddress'); + expect(index).toHaveProperty('FaucetTransaction'); + expect(index).toHaveProperty('GWEI_DECIMALS'); + expect(index).toHaveProperty('HistoricalBalance'); + expect(index).toHaveProperty('InvalidAPIKeyFormatError'); + expect(index).toHaveProperty('PayloadSignature'); + expect(index).toHaveProperty('ServerSigner'); + expect(index).toHaveProperty('SmartContract'); + expect(index).toHaveProperty('SponsoredSendStatus'); + expect(index).toHaveProperty('StakeOptionsMode'); + expect(index).toHaveProperty('StakingBalance'); + expect(index).toHaveProperty('StakingOperation'); + expect(index).toHaveProperty('StakingReward'); + expect(index).toHaveProperty('Trade'); + expect(index).toHaveProperty('Transaction'); + expect(index).toHaveProperty('TransactionStatus'); + expect(index).toHaveProperty('Transfer'); + expect(index).toHaveProperty('TransferStatus'); + expect(index).toHaveProperty('Validator'); + expect(index).toHaveProperty('Wallet'); + expect(index).toHaveProperty('WalletAddress'); + expect(index).toHaveProperty('Webhook'); + }); +}); +