diff --git a/e2e/infrastructure/AccountHttp.spec.ts b/e2e/infrastructure/AccountHttp.spec.ts index 85c3c1e9d9..8fb50fa302 100644 --- a/e2e/infrastructure/AccountHttp.spec.ts +++ b/e2e/infrastructure/AccountHttp.spec.ts @@ -18,6 +18,7 @@ import { assert, expect } from 'chai'; import { AccountRepository } from '../../src/infrastructure/AccountRepository'; import { MultisigRepository } from '../../src/infrastructure/MultisigRepository'; import { NamespaceRepository } from '../../src/infrastructure/NamespaceRepository'; +import { QueryParams } from '../../src/infrastructure/QueryParams'; import { Account } from '../../src/model/account/Account'; import { Address } from '../../src/model/account/Address'; import { PublicAccount } from '../../src/model/account/PublicAccount'; @@ -31,6 +32,7 @@ import { AggregateTransaction } from '../../src/model/transaction/AggregateTrans import { Deadline } from '../../src/model/transaction/Deadline'; import { MultisigAccountModificationTransaction } from '../../src/model/transaction/MultisigAccountModificationTransaction'; import { NamespaceRegistrationTransaction } from '../../src/model/transaction/NamespaceRegistrationTransaction'; +import { TransactionType } from '../../src/model/transaction/TransactionType'; import { TransferTransaction } from '../../src/model/transaction/TransferTransaction'; import { UInt64 } from '../../src/model/UInt64'; import { IntegrationTestHelper } from './IntegrationTestHelper'; @@ -238,6 +240,17 @@ describe('AccountHttp', () => { }); }); + describe('transactions', () => { + it('should call transactions successfully by type', async () => { + const transactions = await accountRepository.getAccountTransactions(publicAccount.address, {transactionType: TransactionType.TRANSFER} as QueryParams).toPromise(); + + expect(transactions.length).to.be.greaterThan(0); + transactions.forEach(t => { + expect(t.type).to.be.eq(TransactionType.TRANSFER); + }); + }); + }); + describe('transactions', () => { it('should call transactions successfully', (done) => { accountRepository.getAccountTransactions(publicAccount.address).subscribe((transactions) => { diff --git a/package-lock.json b/package-lock.json index 4593736762..00f4659091 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3818,9 +3818,9 @@ } }, "nem2-sdk-openapi-typescript-node-client": { - "version": "0.7.2-0.6", - "resolved": "https://registry.npmjs.org/nem2-sdk-openapi-typescript-node-client/-/nem2-sdk-openapi-typescript-node-client-0.7.2-0.6.tgz", - "integrity": "sha512-dmXget4cHUe3LUUS52GrP8hwQHa4HL9Whbjqog2575e2UocKlwcBAskJrbURnVzEtp//CT2ChZKkiyKB+DRZvQ==", + "version": "0.7.2-0.6.1", + "resolved": "https://registry.npmjs.org/nem2-sdk-openapi-typescript-node-client/-/nem2-sdk-openapi-typescript-node-client-0.7.2-0.6.1.tgz", + "integrity": "sha512-04rNdoeazQXB6BAeOiQmJlI/LvKC4ZyR+qt7t0LndiHELpdHTKeqbEv+MkZix8+8fzYJ39inXWhGWjodFZPq8w==", "requires": { "@types/bluebird": "*", "@types/request": "*", diff --git a/package.json b/package.json index fdc10ce791..e77585c29c 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "dependencies": { "bluebird": "^3.5.5", "catbuffer": "0.0.6-SNAPSHOT", - "nem2-sdk-openapi-typescript-node-client": "0.7.2-0.6", + "nem2-sdk-openapi-typescript-node-client": "0.7.2-0.6.1", "crypto-js": "^3.1.9-1", "js-joda": "^1.6.2", "js-sha256": "^0.9.0",