@companieshouse/api-sdk-node 1.0.101 → 1.0.104
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/services/order/search/types.d.ts +1 -0
- package/dist/services/overseas-entities/mapping.js +5 -1
- package/dist/services/overseas-entities/mapping.js.map +1 -1
- package/dist/services/overseas-entities/types.d.ts +66 -1
- package/dist/services/overseas-entities/types.js +17 -1
- package/dist/services/overseas-entities/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,11 @@ exports.mapOverseasEntity = void 0;
|
|
|
4
4
|
const mapOverseasEntity = (body) => {
|
|
5
5
|
return {
|
|
6
6
|
presenter: Object.assign({}, body.presenter),
|
|
7
|
-
entity: Object.assign({}, body.entity)
|
|
7
|
+
entity: Object.assign({}, body.entity),
|
|
8
|
+
beneficial_owners_statement: body.beneficial_owners_statement,
|
|
9
|
+
beneficial_owners_individual: Object.assign({}, body.beneficial_owners_individual),
|
|
10
|
+
beneficial_owners_corporate: Object.assign({}, body.beneficial_owners_corporate),
|
|
11
|
+
beneficial_owners_government_or_public_authority: Object.assign({}, body.beneficial_owners_government_or_public_authority)
|
|
8
12
|
};
|
|
9
13
|
};
|
|
10
14
|
exports.mapOverseasEntity = mapOverseasEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/mapping.ts"],"names":[],"mappings":";;;AAEO,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAAkB,EAAE;IACtE,OAAO;QACH,SAAS,oBAAO,IAAI,CAAC,SAAS,CAAE;QAChC,MAAM,oBAAO,IAAI,CAAC,MAAM,CAAE;
|
|
1
|
+
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/mapping.ts"],"names":[],"mappings":";;;AAEO,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAAkB,EAAE;IACtE,OAAO;QACH,SAAS,oBAAO,IAAI,CAAC,SAAS,CAAE;QAChC,MAAM,oBAAO,IAAI,CAAC,MAAM,CAAE;QAC1B,2BAA2B,EAAE,IAAI,CAAC,2BAA2B;QAC7D,4BAA4B,oBAAO,IAAI,CAAC,4BAA4B,CAAE;QACtE,2BAA2B,oBAAO,IAAI,CAAC,2BAA2B,CAAE;QACpE,gDAAgD,oBAAO,IAAI,CAAC,gDAAgD,CAAE;KACjH,CAAC;AACN,CAAC,CAAC;AATW,QAAA,iBAAiB,qBAS5B"}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
export interface OverseasEntity {
|
|
5
5
|
presenter?: Presenter;
|
|
6
6
|
entity?: Entity;
|
|
7
|
+
beneficial_owners_statement?: BeneficialOwnersStatementType;
|
|
8
|
+
beneficial_owners_individual?: BeneficialOwnerIndividual[];
|
|
9
|
+
beneficial_owners_corporate?: BeneficialOwnerCorporate[];
|
|
10
|
+
beneficial_owners_government_or_public_authority?: BeneficialOwnerGovernmentOrPublicAuthority[];
|
|
7
11
|
}
|
|
8
12
|
export interface OverseasEntityCreated {
|
|
9
13
|
id: string;
|
|
@@ -30,6 +34,49 @@ export interface Entity {
|
|
|
30
34
|
public_register_name?: string;
|
|
31
35
|
registration_number?: string;
|
|
32
36
|
}
|
|
37
|
+
export interface BeneficialOwnerIndividual {
|
|
38
|
+
first_name?: string;
|
|
39
|
+
last_name?: string;
|
|
40
|
+
date_of_birth?: InputDate;
|
|
41
|
+
nationality?: string;
|
|
42
|
+
usual_residential_address?: Address;
|
|
43
|
+
service_address?: Address;
|
|
44
|
+
is_service_address_same_as_usual_residential_address?: yesNoResponse;
|
|
45
|
+
start_date?: InputDate;
|
|
46
|
+
beneficial_owner_nature_of_control_types?: NatureOfControlType[];
|
|
47
|
+
trustees_nature_of_control_types?: NatureOfControlType[];
|
|
48
|
+
non_legal_firm_members_nature_of_control_types?: NatureOfControlType[];
|
|
49
|
+
is_on_sanctions_list?: yesNoResponse;
|
|
50
|
+
}
|
|
51
|
+
export interface BeneficialOwnerCorporate {
|
|
52
|
+
name?: string;
|
|
53
|
+
principal_address?: Address;
|
|
54
|
+
service_address?: Address;
|
|
55
|
+
is_service_address_same_as_principal_address?: yesNoResponse;
|
|
56
|
+
legal_form?: string;
|
|
57
|
+
law_governed?: string;
|
|
58
|
+
is_on_register_in_country_formed_in?: yesNoResponse;
|
|
59
|
+
register_name?: string;
|
|
60
|
+
registration_number?: string;
|
|
61
|
+
start_date?: string;
|
|
62
|
+
beneficial_owner_nature_of_control_types?: NatureOfControlType;
|
|
63
|
+
trustees_nature_of_control_types?: NatureOfControlType;
|
|
64
|
+
non_legal_firm_members_nature_of_control_types?: NatureOfControlType;
|
|
65
|
+
is_on_sanctions_list?: yesNoResponse;
|
|
66
|
+
}
|
|
67
|
+
export interface BeneficialOwnerGovernmentOrPublicAuthority {
|
|
68
|
+
name?: string;
|
|
69
|
+
principal_address?: Address;
|
|
70
|
+
service_address?: Address;
|
|
71
|
+
is_service_address_same_as_principal_address?: yesNoResponse;
|
|
72
|
+
legal_form?: string;
|
|
73
|
+
law_governed?: string;
|
|
74
|
+
is_on_register_in_country_formed_in?: yesNoResponse;
|
|
75
|
+
register_name?: string;
|
|
76
|
+
registration_number?: string;
|
|
77
|
+
beneficial_owner_nature_of_control_types?: NatureOfControlType;
|
|
78
|
+
non_legal_firm_members_nature_of_control_types?: NatureOfControlType;
|
|
79
|
+
}
|
|
33
80
|
/**
|
|
34
81
|
* Shared Data Type
|
|
35
82
|
*/
|
|
@@ -42,10 +89,15 @@ export interface Address {
|
|
|
42
89
|
country?: string;
|
|
43
90
|
postcode?: string;
|
|
44
91
|
}
|
|
45
|
-
declare enum yesNoResponse {
|
|
92
|
+
export declare enum yesNoResponse {
|
|
46
93
|
No = 0,
|
|
47
94
|
Yes = 1
|
|
48
95
|
}
|
|
96
|
+
export interface InputDate {
|
|
97
|
+
day: string;
|
|
98
|
+
month: string;
|
|
99
|
+
year: string;
|
|
100
|
+
}
|
|
49
101
|
declare enum presenterRole {
|
|
50
102
|
administrator = "administrator",
|
|
51
103
|
agent = "agent",
|
|
@@ -53,4 +105,17 @@ declare enum presenterRole {
|
|
|
53
105
|
beneficial_owner = "beneficial_owner",
|
|
54
106
|
other = "other"
|
|
55
107
|
}
|
|
108
|
+
export declare enum BeneficialOwnersStatementType {
|
|
109
|
+
all_identified_all_details = "all_identified_all_details",
|
|
110
|
+
all_identified_some_details = "all_identified_some_details",
|
|
111
|
+
some_identified_all_details = "some_identified_all_details",
|
|
112
|
+
some_identified_some_details = "some_identified_some_details",
|
|
113
|
+
none_identified = "none_identified"
|
|
114
|
+
}
|
|
115
|
+
export declare enum NatureOfControlType {
|
|
116
|
+
over_25_percent_of_shares = "over_25_percent_of_shares",
|
|
117
|
+
over_25_percent_of_voting_rights = "over_25_percent_of_voting_rights",
|
|
118
|
+
appoint_or_remove_majority_board_directors = "appoint_or_remove_majority_board_directors",
|
|
119
|
+
significant_influence_or_control = "significant_influence_or_control"
|
|
120
|
+
}
|
|
56
121
|
export {};
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* Overseas Entity interface used within this SDK
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NatureOfControlType = exports.BeneficialOwnersStatementType = exports.yesNoResponse = void 0;
|
|
6
7
|
var yesNoResponse;
|
|
7
8
|
(function (yesNoResponse) {
|
|
8
9
|
yesNoResponse[yesNoResponse["No"] = 0] = "No";
|
|
9
10
|
yesNoResponse[yesNoResponse["Yes"] = 1] = "Yes";
|
|
10
|
-
})(yesNoResponse || (yesNoResponse = {}));
|
|
11
|
+
})(yesNoResponse = exports.yesNoResponse || (exports.yesNoResponse = {}));
|
|
11
12
|
var presenterRole;
|
|
12
13
|
(function (presenterRole) {
|
|
13
14
|
presenterRole["administrator"] = "administrator";
|
|
@@ -16,4 +17,19 @@ var presenterRole;
|
|
|
16
17
|
presenterRole["beneficial_owner"] = "beneficial_owner";
|
|
17
18
|
presenterRole["other"] = "other";
|
|
18
19
|
})(presenterRole || (presenterRole = {}));
|
|
20
|
+
var BeneficialOwnersStatementType;
|
|
21
|
+
(function (BeneficialOwnersStatementType) {
|
|
22
|
+
BeneficialOwnersStatementType["all_identified_all_details"] = "all_identified_all_details";
|
|
23
|
+
BeneficialOwnersStatementType["all_identified_some_details"] = "all_identified_some_details";
|
|
24
|
+
BeneficialOwnersStatementType["some_identified_all_details"] = "some_identified_all_details";
|
|
25
|
+
BeneficialOwnersStatementType["some_identified_some_details"] = "some_identified_some_details";
|
|
26
|
+
BeneficialOwnersStatementType["none_identified"] = "none_identified";
|
|
27
|
+
})(BeneficialOwnersStatementType = exports.BeneficialOwnersStatementType || (exports.BeneficialOwnersStatementType = {}));
|
|
28
|
+
var NatureOfControlType;
|
|
29
|
+
(function (NatureOfControlType) {
|
|
30
|
+
NatureOfControlType["over_25_percent_of_shares"] = "over_25_percent_of_shares";
|
|
31
|
+
NatureOfControlType["over_25_percent_of_voting_rights"] = "over_25_percent_of_voting_rights";
|
|
32
|
+
NatureOfControlType["appoint_or_remove_majority_board_directors"] = "appoint_or_remove_majority_board_directors";
|
|
33
|
+
NatureOfControlType["significant_influence_or_control"] = "significant_influence_or_control";
|
|
34
|
+
})(NatureOfControlType = exports.NatureOfControlType || (exports.NatureOfControlType = {}));
|
|
19
35
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/types.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiGH,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,6CAAM,CAAA;IACN,+CAAO,CAAA;AACX,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAQD,IAAK,aAMJ;AAND,WAAK,aAAa;IACd,gDAA+B,CAAA;IAC/B,gCAAe,CAAA;IACf,wCAAuB,CAAA;IACvB,sDAAqC,CAAA;IACrC,gCAAe,CAAA;AACnB,CAAC,EANI,aAAa,KAAb,aAAa,QAMjB;AAED,IAAY,6BAMX;AAND,WAAY,6BAA6B;IACrC,0FAAyD,CAAA;IACzD,4FAA2D,CAAA;IAC3D,4FAA2D,CAAA;IAC3D,8FAA6D,CAAA;IAC7D,oEAAmC,CAAA;AACvC,CAAC,EANW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAMxC;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,8EAAuD,CAAA;IACvD,4FAAqE,CAAA;IACrE,gHAAyF,CAAA;IACzF,4FAAqE,CAAA;AACzE,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B"}
|