mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
Bump swag wallet api, add identities api party id (#155)
This commit is contained in:
parent
7ca4d4fe2b
commit
fe6438f83c
8
package-lock.json
generated
8
package-lock.json
generated
@ -33,7 +33,7 @@
|
|||||||
"@vality/swag-payments": "0.1.1-01da4bb.0",
|
"@vality/swag-payments": "0.1.1-01da4bb.0",
|
||||||
"@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0",
|
"@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0",
|
||||||
"@vality/swag-url-shortener": "0.1.1-f780d07.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",
|
"angular-file": "^3.0.1",
|
||||||
"apexcharts": "^3.19.2",
|
"apexcharts": "^3.19.2",
|
||||||
"coerce-property": "^15.0.1",
|
"coerce-property": "^15.0.1",
|
||||||
@ -6563,9 +6563,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vality/swag-wallet": {
|
"node_modules/@vality/swag-wallet": {
|
||||||
"version": "0.1.1",
|
"version": "0.1.3-6c7361c.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.3-6c7361c.0.tgz",
|
||||||
"integrity": "sha512-T7XmQxLzwoONxHgQdSifmI+kRudud3ql/WHcgQEIC9MoetPs0SaxSQW70YWd7ZiiFgmKBNGP6OUgGPrQr/QYyA==",
|
"integrity": "sha512-LwQ53QDyGkbfIXX0Qairmvf0MyW51nfVYWBtD18YaNO7n7O8HqK67Jc+KXx4htimp6J2mfv9vVSOSQn5XBuj6A==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
},
|
},
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
"@vality/swag-payments": "0.1.1-01da4bb.0",
|
"@vality/swag-payments": "0.1.1-01da4bb.0",
|
||||||
"@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0",
|
"@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0",
|
||||||
"@vality/swag-url-shortener": "0.1.1-f780d07.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",
|
"angular-file": "^3.0.1",
|
||||||
"apexcharts": "^3.19.2",
|
"apexcharts": "^3.19.2",
|
||||||
"coerce-property": "^15.0.1",
|
"coerce-property": "^15.0.1",
|
||||||
|
@ -3,6 +3,7 @@ import { IdentitiesService as ApiIdentitiesService, Identity } from '@vality/swa
|
|||||||
import { Subject, defer, switchMap } from 'rxjs';
|
import { Subject, defer, switchMap } from 'rxjs';
|
||||||
import { startWith, map } from 'rxjs/operators';
|
import { startWith, map } from 'rxjs/operators';
|
||||||
|
|
||||||
|
import { PartyIdExtension } from '@dsh/app/api/utils/extensions';
|
||||||
import { shareReplayRefCount } from '@dsh/app/custom-operators';
|
import { shareReplayRefCount } from '@dsh/app/custom-operators';
|
||||||
|
|
||||||
import { createApi } from '../utils';
|
import { createApi } from '../utils';
|
||||||
@ -10,7 +11,7 @@ import { createApi } from '../utils';
|
|||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class IdentitiesService extends createApi(ApiIdentitiesService) {
|
export class IdentitiesService extends createApi(ApiIdentitiesService, [PartyIdExtension]) {
|
||||||
identities$ = defer(() => this.reloadIdentities$).pipe(
|
identities$ = defer(() => this.reloadIdentities$).pipe(
|
||||||
startWith<void>(undefined),
|
startWith<void>(undefined),
|
||||||
switchMap(() => this.listIdentities()),
|
switchMap(() => this.listIdentities()),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { WalletsService as ApiWalletsService } from '@vality/swag-wallet';
|
import { WalletsService as ApiWalletsService, Wallet } from '@vality/swag-wallet';
|
||||||
import { of } from 'rxjs';
|
import { of, Observable } from 'rxjs';
|
||||||
import { catchError, map, pluck, shareReplay } from 'rxjs/operators';
|
import { catchError, map, pluck, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
import { SHARE_REPLAY_CONF } from '@dsh/app/custom-operators';
|
import { SHARE_REPLAY_CONF } from '@dsh/app/custom-operators';
|
||||||
@ -12,7 +12,7 @@ import { PartyIdExtension } from '../utils/extensions';
|
|||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class WalletsService extends createApi(ApiWalletsService, [PartyIdExtension]) {
|
export class WalletsService extends createApi(ApiWalletsService, [PartyIdExtension]) {
|
||||||
wallets$ = this.listWallets({ limit: 1000 }).pipe(
|
wallets$: Observable<Wallet[]> = this.listWallets({ limit: 1000 }).pipe(
|
||||||
catchError(() => of({ result: [] })),
|
catchError(() => of({ result: [] })),
|
||||||
pluck('result'),
|
pluck('result'),
|
||||||
shareReplay(SHARE_REPLAY_CONF),
|
shareReplay(SHARE_REPLAY_CONF),
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { WebhooksService as ApiWebhooksService } from '@vality/swag-wallet';
|
import { WebhooksService as ApiWebhooksService } from '@vality/swag-wallet';
|
||||||
|
|
||||||
|
import { PartyIdExtension } from '@dsh/app/api/utils/extensions';
|
||||||
|
|
||||||
import { createApi } from '../utils';
|
import { createApi } from '../utils';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class WebhooksService extends createApi(ApiWebhooksService) {}
|
export class WebhooksService extends createApi(ApiWebhooksService, [PartyIdExtension]) {}
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { WithdrawalsService as ApiWithdrawalsService } from '@vality/swag-wallet';
|
import { WithdrawalsService as ApiWithdrawalsService } from '@vality/swag-wallet';
|
||||||
|
|
||||||
|
import { PartyIdExtension } from '@dsh/app/api/utils/extensions';
|
||||||
|
|
||||||
import { createApi } from '../utils';
|
import { createApi } from '../utils';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class WithdrawalsService extends createApi(ApiWithdrawalsService) {}
|
export class WithdrawalsService extends createApi(ApiWithdrawalsService, [PartyIdExtension]) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user