@companieshouse/api-sdk-node 2.0.90 → 2.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import IHttpClient from "./http/http-client";
2
2
  import CompanyOfficersService from "./services/company-officers/service";
3
3
  import CompanyProfileService from "./services/company-profile/service";
4
+ import CompanyMetricsService from "./services/company-metrics/service";
4
5
  import CompanyPscService from "./services/company-psc/service";
5
6
  import { LateFilingPenaltyService } from "./services/lfp";
6
7
  import { BasketService, CertificateService, CertifiedCopiesService, CheckoutService, MidService, OrderService } from "./services/order/";
@@ -32,6 +33,7 @@ export default class ApiClient {
32
33
  readonly companyOfficers: CompanyOfficersService;
33
34
  readonly companyFilingHistory: CompanyFilingHistoryService;
34
35
  readonly companyProfile: CompanyProfileService;
36
+ readonly companyMetrics: CompanyMetricsService;
35
37
  readonly companyPsc: CompanyPscService;
36
38
  readonly companyPscStatements: CompanyPscStatementsService;
37
39
  readonly confirmationStatementService: ConfirmationStatementService;
package/dist/client.js CHANGED
@@ -5,25 +5,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const service_1 = __importDefault(require("./services/company-officers/service"));
7
7
  const service_2 = __importDefault(require("./services/company-profile/service"));
8
- const service_3 = __importDefault(require("./services/company-psc/service"));
8
+ const service_3 = __importDefault(require("./services/company-metrics/service"));
9
+ const service_4 = __importDefault(require("./services/company-psc/service"));
9
10
  const lfp_1 = require("./services/lfp");
10
11
  const order_1 = require("./services/order/");
11
12
  const payment_1 = require("./services/payment/");
12
- const service_4 = __importDefault(require("./services/company-filing-history/service"));
13
+ const service_5 = __importDefault(require("./services/company-filing-history/service"));
13
14
  const refresh_token_1 = require("./services/refresh-token");
14
- const service_5 = __importDefault(require("./services/search/advanced-search/service"));
15
- const service_6 = __importDefault(require("./services/search/alphabetical-search/service"));
16
- const service_7 = __importDefault(require("./services/search/dissolved-search/service"));
17
- const service_8 = __importDefault(require("./services/psc-discrepancies/service"));
18
- const service_9 = __importDefault(require("./services/psc-discrepancies-report/service"));
19
- const service_10 = __importDefault(require("./services/transaction/service"));
20
- const service_11 = __importDefault(require("./services/company-psc-statements/service"));
15
+ const service_6 = __importDefault(require("./services/search/advanced-search/service"));
16
+ const service_7 = __importDefault(require("./services/search/alphabetical-search/service"));
17
+ const service_8 = __importDefault(require("./services/search/dissolved-search/service"));
18
+ const service_9 = __importDefault(require("./services/psc-discrepancies/service"));
19
+ const service_10 = __importDefault(require("./services/psc-discrepancies-report/service"));
20
+ const service_11 = __importDefault(require("./services/transaction/service"));
21
+ const service_12 = __importDefault(require("./services/company-psc-statements/service"));
21
22
  const confirmation_statement_1 = require("./services/confirmation-statement");
22
23
  const overseas_entities_1 = require("./services/overseas-entities");
23
- const service_12 = require("./services/order/search/service");
24
- const service_13 = __importDefault(require("./services/order/order-item/service"));
25
- const service_14 = __importDefault(require("./services/order/checkout-item/service"));
26
- const service_15 = __importDefault(require("./services/officer-filing/service"));
24
+ const service_13 = require("./services/order/search/service");
25
+ const service_14 = __importDefault(require("./services/order/order-item/service"));
26
+ const service_15 = __importDefault(require("./services/order/checkout-item/service"));
27
+ const service_16 = __importDefault(require("./services/officer-filing/service"));
27
28
  /**
28
29
  * ApiClient is the class that all service objects hang off.
29
30
  */
@@ -34,32 +35,33 @@ class ApiClient {
34
35
  // services on the api domain using the apiClient
35
36
  this.lateFilingPenalties = new lfp_1.LateFilingPenaltyService(apiClient);
36
37
  this.companyOfficers = new service_1.default(apiClient);
37
- this.companyFilingHistory = new service_4.default(apiClient);
38
+ this.companyFilingHistory = new service_5.default(apiClient);
38
39
  this.companyProfile = new service_2.default(apiClient);
39
- this.companyPsc = new service_3.default(apiClient);
40
- this.companyPscStatements = new service_11.default(apiClient);
40
+ this.companyMetrics = new service_3.default(apiClient);
41
+ this.companyPsc = new service_4.default(apiClient);
42
+ this.companyPscStatements = new service_12.default(apiClient);
41
43
  this.confirmationStatementService = new confirmation_statement_1.ConfirmationStatementService(apiClient);
42
44
  this.certificate = new order_1.CertificateService(apiClient);
43
45
  this.certifiedCopies = new order_1.CertifiedCopiesService(apiClient);
44
46
  this.basket = new order_1.BasketService(apiClient);
45
47
  this.payment = new payment_1.PaymentService(apiClient); // TODO split payments url/domain into a separate config item and http client
46
48
  this.checkout = new order_1.CheckoutService(apiClient);
47
- this.checkoutItem = new service_14.default(apiClient);
49
+ this.checkoutItem = new service_15.default(apiClient);
48
50
  this.order = new order_1.OrderService(apiClient);
49
- this.orderItem = new service_13.default(apiClient);
50
- this.officerFiling = new service_15.default(apiClient);
51
- this.checkoutSearchService = new service_12.CheckoutSearchService(apiClient);
51
+ this.orderItem = new service_14.default(apiClient);
52
+ this.officerFiling = new service_16.default(apiClient);
53
+ this.checkoutSearchService = new service_13.CheckoutSearchService(apiClient);
52
54
  this.mid = new order_1.MidService(apiClient);
53
- this.alphabeticalSearch = new service_6.default(apiClient);
54
- this.dissolvedSearch = new service_7.default(apiClient);
55
- this.advancedSearch = new service_5.default(apiClient);
55
+ this.alphabeticalSearch = new service_7.default(apiClient);
56
+ this.dissolvedSearch = new service_8.default(apiClient);
57
+ this.advancedSearch = new service_6.default(apiClient);
56
58
  this.overseasEntity = new overseas_entities_1.OverseasEntityService(apiClient);
57
59
  // service on the account/identity domain using the accountClient
58
60
  // e.g. user profile service can be added here when required
59
61
  this.refreshToken = new refresh_token_1.RefreshTokenService(accountClient);
60
- this.pscDiscrepancies = new service_8.default(apiClient);
61
- this.pscDiscrepancyReport = new service_9.default(apiClient);
62
- this.transaction = new service_10.default(apiClient);
62
+ this.pscDiscrepancies = new service_9.default(apiClient);
63
+ this.pscDiscrepancyReport = new service_10.default(apiClient);
64
+ this.transaction = new service_11.default(apiClient);
63
65
  }
64
66
  }
65
67
  exports.default = ApiClient;
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[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strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./types"), exports);
14
+ __exportStar(require("./service"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/company-metrics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B"}
@@ -0,0 +1,13 @@
1
+ import { IHttpClient } from "../../http";
2
+ import { MetricsApi } from "./types";
3
+ import Resource from "../resource";
4
+ export default class CompanyMetricsService {
5
+ private readonly client;
6
+ constructor(client: IHttpClient);
7
+ /**
8
+ * Get the metrics for a company.
9
+ *
10
+ * @param number the company number to look up
11
+ */
12
+ getCompanyMetrics(number: string): Promise<Resource<MetricsApi>>;
13
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const mapping_1 = __importDefault(require("../../mapping/mapping"));
16
+ class CompanyMetricsService {
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Get the metrics for a company.
22
+ *
23
+ * @param number the company number to look up
24
+ */
25
+ getCompanyMetrics(number) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const resp = yield this.client.httpGet(`/company/${number}/metrics`);
28
+ const resource = {
29
+ httpStatusCode: resp.status
30
+ };
31
+ if (resp.error) {
32
+ return resource;
33
+ }
34
+ // cast the response body to the expected type
35
+ const body = resp.body;
36
+ resource.resource = mapping_1.default.camelCaseKeys(body);
37
+ return resource;
38
+ });
39
+ }
40
+ }
41
+ exports.default = CompanyMetricsService;
42
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/company-metrics/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,oEAA4C;AAI5C,MAAqB,qBAAqB;IACtC,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;MAIE;IACW,iBAAiB,CAAE,MAAc;;YAC1C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,MAAM,UAAU,CAAC,CAAC;YAErE,MAAM,QAAQ,GAAyB;gBACnC,cAAc,EAAE,IAAI,CAAC,MAAM;aAC9B,CAAC;YAEF,IAAI,IAAI,CAAC,KAAK,EAAE;gBACZ,OAAO,QAAQ,CAAC;aACnB;YAED,8CAA8C;YAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,IAA0B,CAAC;YAE7C,QAAQ,CAAC,QAAQ,GAAG,iBAAO,CAAC,aAAa,CAAa,IAAI,CAAC,CAAC;YAE5D,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AA1BD,wCA0BC"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * MetricsApi is what is returned from the api.
3
+ */
4
+ export interface MetricsApi {
5
+ etag: string;
6
+ counts: CountsApi;
7
+ mortgage: MortgageApi;
8
+ registers?: RegistersApi;
9
+ }
10
+ export interface MetricsApiResource {
11
+ etag: string;
12
+ counts: CountsApi;
13
+ mortgage: MortgageApi;
14
+ registers?: RegistersApi;
15
+ }
16
+ export interface CountsApi {
17
+ personsWithSignificantControl?: PscApi;
18
+ appointments: AppointmentsApi;
19
+ }
20
+ export interface CountsApiResource {
21
+ persons_with_significant_control?: PscApi;
22
+ appointments: AppointmentsApi;
23
+ }
24
+ export interface PscApi {
25
+ statementsCount: number;
26
+ ceasedPscsCount: number;
27
+ totalCount: number;
28
+ activePscsCount: number;
29
+ withdrawnStatementsCount: number;
30
+ activeStatementsCount: number;
31
+ pscsCount: number;
32
+ }
33
+ export interface PscApiResource {
34
+ statements_count: number;
35
+ ceased_pscs_count: number;
36
+ total_count: number;
37
+ active_pscs_count: number;
38
+ withdrawn_statements_count: number;
39
+ active_statements_count: number;
40
+ pscs_count: number;
41
+ }
42
+ export interface AppointmentsApi {
43
+ activeDirectorsCount: number;
44
+ activeSecretariesCount: number;
45
+ activeCount: number;
46
+ resignedCount: number;
47
+ totalCount: number;
48
+ activeLlpMembersCount: number;
49
+ }
50
+ export interface AppointmentsApiResource {
51
+ active_directors_count: number;
52
+ active_secretaries_count: number;
53
+ active_count: number;
54
+ resigned_count: number;
55
+ total_count: number;
56
+ active_llp_members_count: number;
57
+ }
58
+ export interface MortgageApi {
59
+ satisfiedCount: number;
60
+ partSatisfiedCount: number;
61
+ totalCount: number;
62
+ }
63
+ export interface MortgageApiResource {
64
+ satisfied_count: number;
65
+ part_satisfied_count: number;
66
+ total_count: number;
67
+ }
68
+ export interface RegistersApi {
69
+ directors: RegisterApi;
70
+ members: RegisterApi;
71
+ secretaries: RegisterApi;
72
+ usualResidentialAddress: RegisterApi;
73
+ personsWithSignificantControl: RegisterApi;
74
+ llpMembers: RegisterApi;
75
+ llpUsualResidentialAddress: RegisterApi;
76
+ }
77
+ export interface RegistersApiResource {
78
+ directors: RegisterApi;
79
+ members: RegisterApi;
80
+ secretaries: RegisterApi;
81
+ usual_residential_address: RegisterApi;
82
+ persons_with_significant_control: RegisterApi;
83
+ llp_members: RegisterApi;
84
+ llp_usual_residential_address: RegisterApi;
85
+ }
86
+ export interface RegisterApi {
87
+ registerMovedTo: string;
88
+ movedOn: string;
89
+ }
90
+ export interface RegisterApiResource {
91
+ register_moved_to: string;
92
+ moved_on: string;
93
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/company-metrics/types.ts"],"names":[],"mappings":""}
@@ -10,6 +10,9 @@ export interface CompanyOfficerResource {
10
10
  identification?: IdentificationResource;
11
11
  links: CompanyOfficerResourceLinks;
12
12
  name: string;
13
+ forename?: string;
14
+ surname?: string;
15
+ other_forenames?: string;
13
16
  nationality?: string;
14
17
  occupation?: string;
15
18
  officer_role: string;
@@ -75,6 +78,9 @@ export interface CompanyOfficer {
75
78
  identification?: Identification;
76
79
  links: CompanyOfficerLinks;
77
80
  name: string;
81
+ forename?: string;
82
+ surname?: string;
83
+ otherForenames?: string;
78
84
  nationality?: string;
79
85
  occupation?: string;
80
86
  officerRole: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companieshouse/api-sdk-node",
3
- "version": "2.0.90",
3
+ "version": "2.0.92",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [