diff --git a/package-lock.json b/package-lock.json index e5c9380a..6b746ea6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "@vality/swag-payments": "0.1.1-01da4bb.0", "@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0", "@vality/swag-url-shortener": "0.1.1-f780d07.0", - "@vality/swag-wallet": "0.1.1", + "@vality/swag-wallet": "0.1.3-6c7361c.0", "angular-file": "^3.0.1", "apexcharts": "^3.19.2", "coerce-property": "^15.0.1", @@ -6563,9 +6563,9 @@ } }, "node_modules/@vality/swag-wallet": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.1.tgz", - "integrity": "sha512-T7XmQxLzwoONxHgQdSifmI+kRudud3ql/WHcgQEIC9MoetPs0SaxSQW70YWd7ZiiFgmKBNGP6OUgGPrQr/QYyA==", + "version": "0.1.3-6c7361c.0", + "resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.3-6c7361c.0.tgz", + "integrity": "sha512-LwQ53QDyGkbfIXX0Qairmvf0MyW51nfVYWBtD18YaNO7n7O8HqK67Jc+KXx4htimp6J2mfv9vVSOSQn5XBuj6A==", "dependencies": { "tslib": "^2.3.0" }, diff --git a/package.json b/package.json index 96b42d14..e0c8ef99 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@vality/swag-payments": "0.1.1-01da4bb.0", "@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0", "@vality/swag-url-shortener": "0.1.1-f780d07.0", - "@vality/swag-wallet": "0.1.1", + "@vality/swag-wallet": "0.1.3-6c7361c.0", "angular-file": "^3.0.1", "apexcharts": "^3.19.2", "coerce-property": "^15.0.1", diff --git a/src/app/api/wallet/identities.service.ts b/src/app/api/wallet/identities.service.ts index 6242bfd9..73aaa1bc 100644 --- a/src/app/api/wallet/identities.service.ts +++ b/src/app/api/wallet/identities.service.ts @@ -3,6 +3,7 @@ import { IdentitiesService as ApiIdentitiesService, Identity } from '@vality/swa import { Subject, defer, switchMap } from 'rxjs'; import { startWith, map } from 'rxjs/operators'; +import { PartyIdExtension } from '@dsh/app/api/utils/extensions'; import { shareReplayRefCount } from '@dsh/app/custom-operators'; import { createApi } from '../utils'; @@ -10,7 +11,7 @@ import { createApi } from '../utils'; @Injectable({ providedIn: 'root', }) -export class IdentitiesService extends createApi(ApiIdentitiesService) { +export class IdentitiesService extends createApi(ApiIdentitiesService, [PartyIdExtension]) { identities$ = defer(() => this.reloadIdentities$).pipe( startWith(undefined), switchMap(() => this.listIdentities()), diff --git a/src/app/api/wallet/wallets.service.ts b/src/app/api/wallet/wallets.service.ts index 14045a16..653c12d4 100644 --- a/src/app/api/wallet/wallets.service.ts +++ b/src/app/api/wallet/wallets.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core'; -import { WalletsService as ApiWalletsService } from '@vality/swag-wallet'; -import { of } from 'rxjs'; +import { WalletsService as ApiWalletsService, Wallet } from '@vality/swag-wallet'; +import { of, Observable } from 'rxjs'; import { catchError, map, pluck, shareReplay } from 'rxjs/operators'; import { SHARE_REPLAY_CONF } from '@dsh/app/custom-operators'; @@ -12,7 +12,7 @@ import { PartyIdExtension } from '../utils/extensions'; providedIn: 'root', }) export class WalletsService extends createApi(ApiWalletsService, [PartyIdExtension]) { - wallets$ = this.listWallets({ limit: 1000 }).pipe( + wallets$: Observable = this.listWallets({ limit: 1000 }).pipe( catchError(() => of({ result: [] })), pluck('result'), shareReplay(SHARE_REPLAY_CONF), diff --git a/src/app/api/wallet/webhooks.service.ts b/src/app/api/wallet/webhooks.service.ts index 29fcf3b1..354bff71 100644 --- a/src/app/api/wallet/webhooks.service.ts +++ b/src/app/api/wallet/webhooks.service.ts @@ -1,9 +1,11 @@ import { Injectable } from '@angular/core'; import { WebhooksService as ApiWebhooksService } from '@vality/swag-wallet'; +import { PartyIdExtension } from '@dsh/app/api/utils/extensions'; + import { createApi } from '../utils'; @Injectable({ providedIn: 'root', }) -export class WebhooksService extends createApi(ApiWebhooksService) {} +export class WebhooksService extends createApi(ApiWebhooksService, [PartyIdExtension]) {} diff --git a/src/app/api/wallet/withdrawals.service.ts b/src/app/api/wallet/withdrawals.service.ts index dc738882..809233e8 100644 --- a/src/app/api/wallet/withdrawals.service.ts +++ b/src/app/api/wallet/withdrawals.service.ts @@ -1,9 +1,11 @@ import { Injectable } from '@angular/core'; import { WithdrawalsService as ApiWithdrawalsService } from '@vality/swag-wallet'; +import { PartyIdExtension } from '@dsh/app/api/utils/extensions'; + import { createApi } from '../utils'; @Injectable({ providedIn: 'root', }) -export class WithdrawalsService extends createApi(ApiWithdrawalsService) {} +export class WithdrawalsService extends createApi(ApiWithdrawalsService, [PartyIdExtension]) {}