Add wallet to args (#121)

This commit is contained in:
Rinat Arsaev 2023-04-27 14:01:37 +04:00 committed by GitHub
parent dbde4152bd
commit 57db0bbe3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 9 deletions

14
package-lock.json generated
View File

@ -37,7 +37,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.2-21b69d2.0",
"@vality/swag-wallet": "0.1.2-e2ef042.0",
"angular-epic-spinners": "2.0.0",
"angular-file": "^3.0.1",
"angular2-text-mask": "^9.0.0",
@ -6120,9 +6120,9 @@
}
},
"node_modules/@vality/swag-wallet": {
"version": "0.1.2-21b69d2.0",
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.2-21b69d2.0.tgz",
"integrity": "sha512-zbyoiJ4ZJAvCtXpTRad5n7xwTwavl40UWLaU2DWSdp/cgjKd9yhUoEUU89+HLE6rZpqQL6fdSuqZ5CyFEfh9Yg==",
"version": "0.1.2-e2ef042.0",
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.2-e2ef042.0.tgz",
"integrity": "sha512-hLC2ddgB2IIiKABtThuyOWPuhKYciQuID/JBkpRqsPZMfyme+QPbJRuCFbhxScfF0WR5Urk4pngsgXapZO/YIA==",
"dependencies": {
"tslib": "^2.3.0"
},
@ -22525,9 +22525,9 @@
}
},
"@vality/swag-wallet": {
"version": "0.1.2-21b69d2.0",
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.2-21b69d2.0.tgz",
"integrity": "sha512-zbyoiJ4ZJAvCtXpTRad5n7xwTwavl40UWLaU2DWSdp/cgjKd9yhUoEUU89+HLE6rZpqQL6fdSuqZ5CyFEfh9Yg==",
"version": "0.1.2-e2ef042.0",
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.2-e2ef042.0.tgz",
"integrity": "sha512-hLC2ddgB2IIiKABtThuyOWPuhKYciQuID/JBkpRqsPZMfyme+QPbJRuCFbhxScfF0WR5Urk4pngsgXapZO/YIA==",
"requires": {
"tslib": "^2.3.0"
}

View File

@ -55,7 +55,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.2-21b69d2.0",
"@vality/swag-wallet": "0.1.2-e2ef042.0",
"angular-epic-spinners": "2.0.0",
"angular-file": "^3.0.1",
"angular2-text-mask": "^9.0.0",

View File

@ -6,11 +6,12 @@ import { catchError, map, pluck, shareReplay } from 'rxjs/operators';
import { SHARE_REPLAY_CONF } from '@dsh/operators';
import { createApi } from '../utils';
import { PartyIdExtension } from '../utils/extensions';
@Injectable({
providedIn: 'root',
})
export class WalletsService extends createApi(ApiWalletsService) {
export class WalletsService extends createApi(ApiWalletsService, [PartyIdExtension]) {
wallets$ = this.listWallets({ limit: 1000 }).pipe(
catchError(() => of({ result: [] })),
pluck('result'),