Browse Source

feat(client): enforce encapsulation

pull/7214/head
KenTandrian 2 months ago
parent
commit
b46475496a
  1. 20
      apps/client/src/app/pages/api/api-page.component.ts

20
apps/client/src/app/pages/api/api-page.component.ts

@ -38,18 +38,20 @@ import { FetchFailure, FetchResult } from './interfaces/interfaces';
templateUrl: './api-page.html' templateUrl: './api-page.html'
}) })
export class GfApiPageComponent implements OnInit { export class GfApiPageComponent implements OnInit {
public aiServiceHealth$: Observable<FetchResult<AiServiceHealthResponse>>; protected aiServiceHealth$: Observable<FetchResult<AiServiceHealthResponse>>;
public assetProfile$: Observable< protected assetProfile$: Observable<
FetchResult<DataProviderGhostfolioAssetProfileResponse> FetchResult<DataProviderGhostfolioAssetProfileResponse>
>; >;
public dividends$: Observable<FetchResult<DividendsResponse['dividends']>>; protected dividends$: Observable<FetchResult<DividendsResponse['dividends']>>;
public historicalData$: Observable< protected historicalData$: Observable<
FetchResult<HistoricalResponse['historicalData']> FetchResult<HistoricalResponse['historicalData']>
>; >;
public isinLookupItems$: Observable<FetchResult<LookupResponse['items']>>; protected isinLookupItems$: Observable<FetchResult<LookupResponse['items']>>;
public lookupItems$: Observable<FetchResult<LookupResponse['items']>>; protected lookupItems$: Observable<FetchResult<LookupResponse['items']>>;
public quotes$: Observable<FetchResult<QuotesResponse['quotes']>>; protected quotes$: Observable<FetchResult<QuotesResponse['quotes']>>;
public status$: Observable<FetchResult<DataProviderGhostfolioStatusResponse>>; protected status$: Observable<
FetchResult<DataProviderGhostfolioStatusResponse>
>;
private apiKey: string; private apiKey: string;
@ -70,7 +72,7 @@ export class GfApiPageComponent implements OnInit {
this.status$ = this.fetchStatus(); this.status$ = this.fetchStatus();
} }
public isFetchFailure(value: unknown): value is FetchFailure { protected isFetchFailure(value: unknown): value is FetchFailure {
return isObject(value) && value !== null && 'fetchError' in value; return isObject(value) && value !== null && 'fetchError' in value;
} }

Loading…
Cancel
Save