Skip to content

Commit 3050976

Browse files
Merge pull request #150 from companieshouse/feature/faml-746-psc-discrepancies
feature: added new services to client
2 parents addcd0f + 015cdec commit 3050976

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import CompanyFilingHistoryService from "./services/company-filing-history/servi
99
import { RefreshTokenService } from "./services/refresh-token";
1010
import AlphabeticalSearchService from "./services/search/alphabetical-search/service";
1111
import DissolvedSearchService from "./services/search/dissolved-search/service";
12+
import PSCDiscrepancyService from "./services/psc-discrepancies/service";
13+
import PSCDiscrepancyReportService from "./services/psc-discrepancies-report/service";
14+
import { PSCDiscrepanciesReportService } from "services/psc-discrepancies-report";
1215

1316
/**
1417
* ApiClient is the class that all service objects hang off.
@@ -28,6 +31,8 @@ export default class ApiClient {
2831
public readonly refreshToken: RefreshTokenService;
2932
public readonly alphabeticalSearch: AlphabeticalSearchService;
3033
public readonly dissolvedSearch: DissolvedSearchService;
34+
public readonly pscDiscrepancies: PSCDiscrepancyService;
35+
public readonly pscDiscrepancyReport:PSCDiscrepanciesReportService;
3136

3237
constructor (readonly apiClient: IHttpClient, readonly accountClient: IHttpClient) {
3338
// services on the api domain using the apiClient
@@ -47,5 +52,7 @@ export default class ApiClient {
4752
// service on the account/identity domain using the accountClient
4853
// e.g. user profile service can be added here when required
4954
this.refreshToken = new RefreshTokenService(accountClient);
55+
this.pscDiscrepancies = new PSCDiscrepancyService(apiClient);
56+
this.pscDiscrepancyReport = new PSCDiscrepancyReportService(apiClient);
5057
}
5158
}

0 commit comments

Comments
 (0)