@companieshouse/api-sdk-node 2.0.89 → 2.0.91
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 +2 -0
- package/dist/client.js +28 -26
- package/dist/client.js.map +1 -1
- package/dist/services/company-metrics/index.d.ts +2 -0
- package/dist/services/company-metrics/index.js +15 -0
- package/dist/services/company-metrics/index.js.map +1 -0
- package/dist/services/company-metrics/service.d.ts +13 -0
- package/dist/services/company-metrics/service.js +42 -0
- package/dist/services/company-metrics/service.js.map +1 -0
- package/dist/services/company-metrics/types.d.ts +93 -0
- package/dist/services/company-metrics/types.js +3 -0
- package/dist/services/company-metrics/types.js.map +1 -0
- package/dist/services/company-officers/types.d.ts +8 -0
- package/package.json +1 -1
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-
|
|
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
|
|
13
|
+
const service_5 = __importDefault(require("./services/company-filing-history/service"));
|
|
13
14
|
const refresh_token_1 = require("./services/refresh-token");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
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
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
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
|
|
38
|
+
this.companyFilingHistory = new service_5.default(apiClient);
|
|
38
39
|
this.companyProfile = new service_2.default(apiClient);
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
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
|
|
49
|
+
this.checkoutItem = new service_15.default(apiClient);
|
|
48
50
|
this.order = new order_1.OrderService(apiClient);
|
|
49
|
-
this.orderItem = new
|
|
50
|
-
this.officerFiling = new
|
|
51
|
-
this.checkoutSearchService = new
|
|
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
|
|
54
|
-
this.dissolvedSearch = new
|
|
55
|
-
this.advancedSearch = new
|
|
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
|
|
61
|
-
this.pscDiscrepancyReport = new
|
|
62
|
-
this.transaction = new
|
|
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;
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;AACA,kFAAyE;AACzE,iFAAuE;AACvE,6EAA+D;AAC/D,wCAA0D;AAC1D,6CAO2B;AAC3B,iDAAqD;AACrD,wFAAoF;AACpF,4DAA+D;AAC/D,wFAA8E;AAC9E,4FAAsF;AACtF,yFAAgF;AAChF,mFAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use 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 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/company-metrics/types.ts"],"names":[],"mappings":""}
|
|
@@ -28,6 +28,7 @@ export interface CompanyOfficerResource {
|
|
|
28
28
|
nationality?: string;
|
|
29
29
|
occupation?: string;
|
|
30
30
|
officer_role: string;
|
|
31
|
+
contact_details?: ContactDetailsResource;
|
|
31
32
|
responsibilities?: string;
|
|
32
33
|
resigned_on?: string;
|
|
33
34
|
}
|
|
@@ -65,6 +66,9 @@ export interface CompanyOfficerResourceLinks {
|
|
|
65
66
|
export interface OfficerResourceLinks {
|
|
66
67
|
appointments: string;
|
|
67
68
|
}
|
|
69
|
+
export interface ContactDetailsResource {
|
|
70
|
+
contact_name?: string;
|
|
71
|
+
}
|
|
68
72
|
/**
|
|
69
73
|
* CompanyOfficers is the interface used within this SDK.
|
|
70
74
|
*/
|
|
@@ -95,6 +99,7 @@ export interface CompanyOfficer {
|
|
|
95
99
|
nationality?: string;
|
|
96
100
|
occupation?: string;
|
|
97
101
|
officerRole: string;
|
|
102
|
+
contactDetails: ContactDetails;
|
|
98
103
|
responsibilities?: string;
|
|
99
104
|
resignedOn?: string;
|
|
100
105
|
}
|
|
@@ -132,3 +137,6 @@ export interface CompanyOfficerLinks {
|
|
|
132
137
|
export interface OfficerLinks {
|
|
133
138
|
appointments: string;
|
|
134
139
|
}
|
|
140
|
+
export interface ContactDetails {
|
|
141
|
+
contactName?: string;
|
|
142
|
+
}
|