Bump swag wallet api, add identities api party id (#155)

This commit is contained in:
Rinat Arsaev 2023-10-13 19:32:52 +07:00 committed by GitHub
parent 7ca4d4fe2b
commit fe6438f83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 11 deletions

8
package-lock.json generated
View File

@ -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"
},

View File

@ -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",

View File

@ -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<void>(undefined),
switchMap(() => this.listIdentities()),

View File

@ -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<Wallet[]> = this.listWallets({ limit: 1000 }).pipe(
catchError(() => of({ result: [] })),
pluck('result'),
shareReplay(SHARE_REPLAY_CONF),

View File

@ -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]) {}

View File

@ -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]) {}