@companieshouse/api-sdk-node 2.0.12 → 2.0.15
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.
|
@@ -17,12 +17,14 @@ const mapOverseasEntity = (body) => {
|
|
|
17
17
|
presenter: Object.assign({}, body.presenter),
|
|
18
18
|
entity: Object.assign({}, body.entity),
|
|
19
19
|
due_diligence: mapDueDiligence(body.due_diligence),
|
|
20
|
+
overseas_entity_due_diligence: mapOverseasEntityDueDiligence(body.overseas_entity_due_diligence),
|
|
20
21
|
beneficial_owners_statement: body.beneficial_owners_statement,
|
|
21
22
|
beneficial_owners_individual: mapBeneficialOwnersIndividual(body.beneficial_owners_individual),
|
|
22
23
|
beneficial_owners_corporate: mapBeneficialOwnersCorporate(body.beneficial_owners_corporate),
|
|
23
24
|
beneficial_owners_government_or_public_authority: mapBeneficialOwnersGovernment(body.beneficial_owners_government_or_public_authority),
|
|
24
25
|
managing_officers_individual: mapManagingOfficersIndividual(body.managing_officers_individual),
|
|
25
|
-
managing_officers_corporate: body.managing_officers_corporate
|
|
26
|
+
managing_officers_corporate: body.managing_officers_corporate,
|
|
27
|
+
trusts: mapTrusts(body.trusts)
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
exports.mapOverseasEntity = mapOverseasEntity;
|
|
@@ -96,6 +98,72 @@ const mapDueDiligence = (dueDiligence) => {
|
|
|
96
98
|
}
|
|
97
99
|
return {};
|
|
98
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* Convert the Overseas Entity Due Diligence data into the Resource format that the API expects
|
|
103
|
+
* (just converting dates currently)
|
|
104
|
+
* @param oeDueDiligence OverseasEntityDueDiligence objects
|
|
105
|
+
* @returns OverseasEntityDueDiligenceResource
|
|
106
|
+
*/
|
|
107
|
+
const mapOverseasEntityDueDiligence = (oeDueDiligence) => {
|
|
108
|
+
if (oeDueDiligence && Object.keys(oeDueDiligence).length) {
|
|
109
|
+
const { identity_date } = oeDueDiligence, rest = __rest(oeDueDiligence, ["identity_date"]);
|
|
110
|
+
const identityDateResource = convertOptionalDateToIsoDateString(identity_date === null || identity_date === void 0 ? void 0 : identity_date.day, identity_date === null || identity_date === void 0 ? void 0 : identity_date.month, identity_date === null || identity_date === void 0 ? void 0 : identity_date.year);
|
|
111
|
+
return (identityDateResource)
|
|
112
|
+
? Object.assign(Object.assign({}, rest), { identity_date: identityDateResource }) : Object.assign({}, rest);
|
|
113
|
+
}
|
|
114
|
+
return {};
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Convert the Trust Data into the Resource format which the API expects
|
|
118
|
+
* (just converting dates currently)
|
|
119
|
+
* @param trusts Array of Trust objects
|
|
120
|
+
* @returns Array of TrustResource
|
|
121
|
+
*/
|
|
122
|
+
const mapTrusts = (trusts = []) => {
|
|
123
|
+
return trusts.map(trust => {
|
|
124
|
+
const { creation_date_day, creation_date_month, creation_date_year, INDIVIDUAL, HISTORICAL_BO, CORPORATE } = trust, rest = __rest(trust, ["creation_date_day", "creation_date_month", "creation_date_year", "INDIVIDUAL", "HISTORICAL_BO", "CORPORATE"]);
|
|
125
|
+
return Object.assign(Object.assign({}, rest), { creation_date: convertOptionalDateToIsoDateString(creation_date_day, creation_date_month, creation_date_year), INDIVIDUAL: mapTrustIndividuals(INDIVIDUAL), HISTORICAL_BO: mapTrustHistoricalBeneficialOwners(HISTORICAL_BO), CORPORATE: mapTrustCorporates(CORPORATE) });
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Convert the Trust Individuals Data into the Resource format which the API expects
|
|
130
|
+
* (just converting dates currently)
|
|
131
|
+
* @param trustIndividuals Array of TrustIndividuals objects
|
|
132
|
+
* @returns Array of TrustIndividualResource
|
|
133
|
+
*/
|
|
134
|
+
const mapTrustIndividuals = (trustIndividuals = []) => {
|
|
135
|
+
return trustIndividuals.map(trustIndividual => {
|
|
136
|
+
const { dob_day, dob_month, dob_year, date_became_interested_person_day, date_became_interested_person_month, date_became_interested_person_year } = trustIndividual, rest = __rest(trustIndividual, ["dob_day", "dob_month", "dob_year", "date_became_interested_person_day", "date_became_interested_person_month", "date_became_interested_person_year"]);
|
|
137
|
+
return Object.assign(Object.assign({}, rest), { date_of_birth: convertOptionalDateToIsoDateString(dob_day, dob_month, dob_year), date_became_interested_person: convertOptionalDateToIsoDateString(date_became_interested_person_day, date_became_interested_person_month, date_became_interested_person_year) });
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Convert the Trust Historical BO Data into the Resource format which the API expects
|
|
142
|
+
* (just converting dates currently)
|
|
143
|
+
* @param trustHistoricalBos Array of TrustHistoricalBeneficialOwner objects
|
|
144
|
+
* @returns Array of TrustHistoricalBeneficialOwnerResource
|
|
145
|
+
*/
|
|
146
|
+
const mapTrustHistoricalBeneficialOwners = (trustHistoricalBos = []) => {
|
|
147
|
+
return trustHistoricalBos.map(trustHistoricalBo => {
|
|
148
|
+
const { notified_date_day, notified_date_month, notified_date_year, ceased_date_day, ceased_date_month, ceased_date_year } = trustHistoricalBo, rest = __rest(trustHistoricalBo, ["notified_date_day", "notified_date_month", "notified_date_year", "ceased_date_day", "ceased_date_month", "ceased_date_year"]);
|
|
149
|
+
return Object.assign({ notified_date: convertOptionalDateToIsoDateString(notified_date_day, notified_date_month, notified_date_year), ceased_date: convertOptionalDateToIsoDateString(ceased_date_day, ceased_date_month, ceased_date_year) }, rest);
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Convert the Trust Corporates Data into the Resource format which the API expects
|
|
154
|
+
* (just converting dates currently)
|
|
155
|
+
* @param trustCorporates Array of TrustCorporate objects
|
|
156
|
+
* @returns Array of TrustCorporateResource
|
|
157
|
+
*/
|
|
158
|
+
const mapTrustCorporates = (trustCorporates = []) => {
|
|
159
|
+
return trustCorporates.map(trustCorporate => {
|
|
160
|
+
const { date_became_interested_person_day, date_became_interested_person_month, date_became_interested_person_year } = trustCorporate, rest = __rest(trustCorporate, ["date_became_interested_person_day", "date_became_interested_person_month", "date_became_interested_person_year"]);
|
|
161
|
+
return Object.assign(Object.assign({}, rest), { date_became_interested_person: convertOptionalDateToIsoDateString(date_became_interested_person_day, date_became_interested_person_month, date_became_interested_person_year) });
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
const convertOptionalDateToIsoDateString = (day = "", month = "", year = "") => {
|
|
165
|
+
return (day && month && year) ? convertDateToIsoDateString(day, month, year) : "";
|
|
166
|
+
};
|
|
99
167
|
const convertDateToIsoDateString = (day, month, year) => {
|
|
100
168
|
return `${year}-${zeroPadNumber(month)}-${zeroPadNumber(day)}`;
|
|
101
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/mapping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/mapping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA0BO,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAA0B,EAAE;IAC9E,OAAO;QACH,SAAS,oBAAO,IAAI,CAAC,SAAS,CAAE;QAChC,MAAM,oBAAO,IAAI,CAAC,MAAM,CAAE;QAC1B,aAAa,EAAE,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC;QAClD,6BAA6B,EAAE,6BAA6B,CAAC,IAAI,CAAC,6BAA6B,CAAC;QAChG,2BAA2B,EAAE,IAAI,CAAC,2BAA2B;QAC7D,4BAA4B,EAAE,6BAA6B,CAAC,IAAI,CAAC,4BAA4B,CAAC;QAC9F,2BAA2B,EAAE,4BAA4B,CAAC,IAAI,CAAC,2BAA2B,CAAC;QAC3F,gDAAgD,EAAE,6BAA6B,CAAC,IAAI,CAAC,gDAAgD,CAAC;QACtI,4BAA4B,EAAE,6BAA6B,CAAC,IAAI,CAAC,4BAA4B,CAAC;QAC9F,2BAA2B,EAA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27 @@ export interface OverseasEntity {
|
|
|
5
5
|
presenter?: Presenter;
|
|
6
6
|
entity?: Entity;
|
|
7
7
|
due_diligence?: DueDiligence;
|
|
8
|
+
overseas_entity_due_diligence?: OverseasEntityDueDiligence;
|
|
8
9
|
beneficial_owners_statement?: BeneficialOwnersStatementType;
|
|
9
10
|
beneficial_owners_individual?: BeneficialOwnerIndividual[];
|
|
10
11
|
beneficial_owners_corporate?: BeneficialOwnerCorporate[];
|
|
11
12
|
beneficial_owners_government_or_public_authority?: BeneficialOwnerGovernmentOrPublicAuthority[];
|
|
12
13
|
managing_officers_individual?: ManagingOfficerIndividual[];
|
|
13
14
|
managing_officers_corporate?: ManagingOfficerCorporate[];
|
|
15
|
+
trusts?: Trust[];
|
|
14
16
|
}
|
|
15
17
|
export interface OverseasEntityResource {
|
|
16
18
|
presenter?: Presenter;
|
|
17
19
|
entity?: Entity;
|
|
18
20
|
due_diligence?: DueDiligenceResource;
|
|
21
|
+
overseas_entity_due_diligence?: OverseasEntityDueDiligenceResource;
|
|
19
22
|
beneficial_owners_statement?: BeneficialOwnersStatementType;
|
|
20
23
|
beneficial_owners_individual?: BeneficialOwnerIndividualResource[];
|
|
21
24
|
beneficial_owners_corporate?: BeneficialOwnerCorporateResource[];
|
|
22
25
|
beneficial_owners_government_or_public_authority?: BeneficialOwnerGovernmentOrPublicAuthorityResource[];
|
|
23
26
|
managing_officers_individual?: ManagingOfficerIndividualResource[];
|
|
24
27
|
managing_officers_corporate?: ManagingOfficerCorporateResource[];
|
|
28
|
+
trusts?: TrustResource[];
|
|
25
29
|
}
|
|
26
30
|
export interface OverseasEntityCreated {
|
|
27
31
|
id: string;
|
|
@@ -68,6 +72,24 @@ export interface DueDiligenceResource {
|
|
|
68
72
|
partner_name?: string;
|
|
69
73
|
diligence?: string;
|
|
70
74
|
}
|
|
75
|
+
export interface OverseasEntityDueDiligence {
|
|
76
|
+
identity_date?: InputDate;
|
|
77
|
+
name?: string;
|
|
78
|
+
identity_address?: Address;
|
|
79
|
+
email?: string;
|
|
80
|
+
supervisory_name?: string;
|
|
81
|
+
aml_number?: string;
|
|
82
|
+
partner_name?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface OverseasEntityDueDiligenceResource {
|
|
85
|
+
identity_date?: string;
|
|
86
|
+
name?: string;
|
|
87
|
+
identity_address?: Address;
|
|
88
|
+
email?: string;
|
|
89
|
+
supervisory_name?: string;
|
|
90
|
+
aml_number?: string;
|
|
91
|
+
partner_name?: string;
|
|
92
|
+
}
|
|
71
93
|
export interface BeneficialOwnerIndividual {
|
|
72
94
|
first_name?: string;
|
|
73
95
|
last_name?: string;
|
|
@@ -190,6 +212,160 @@ export interface ManagingOfficerCorporate {
|
|
|
190
212
|
}
|
|
191
213
|
export interface ManagingOfficerCorporateResource extends ManagingOfficerCorporate {
|
|
192
214
|
}
|
|
215
|
+
export interface Trust {
|
|
216
|
+
trust_id: string;
|
|
217
|
+
trust_name: string;
|
|
218
|
+
creation_date_day: string;
|
|
219
|
+
creation_date_month: string;
|
|
220
|
+
creation_date_year: string;
|
|
221
|
+
unable_to_obtain_all_trust_info: boolean;
|
|
222
|
+
INDIVIDUAL?: TrustIndividual[];
|
|
223
|
+
HISTORICAL_BO?: TrustHistoricalBeneficialOwner[];
|
|
224
|
+
CORPORATE?: TrustCorporate[];
|
|
225
|
+
}
|
|
226
|
+
export interface TrustResource {
|
|
227
|
+
trust_id: string;
|
|
228
|
+
trust_name: string;
|
|
229
|
+
creation_date: string;
|
|
230
|
+
unable_to_obtain_all_trust_info: boolean;
|
|
231
|
+
INDIVIDUAL?: TrustIndividualResource[];
|
|
232
|
+
HISTORICAL_BO?: TrustHistoricalBeneficialOwnerResource[];
|
|
233
|
+
CORPORATE?: TrustCorporateResource[];
|
|
234
|
+
}
|
|
235
|
+
export interface TrustIndividual {
|
|
236
|
+
type?: string;
|
|
237
|
+
forename?: string;
|
|
238
|
+
other_forenames?: string;
|
|
239
|
+
surname?: string;
|
|
240
|
+
dob_day?: string;
|
|
241
|
+
dob_month?: string;
|
|
242
|
+
dob_year?: string;
|
|
243
|
+
nationality?: string;
|
|
244
|
+
sa_address_line1?: string;
|
|
245
|
+
sa_address_line2?: string;
|
|
246
|
+
sa_address_care_of?: string;
|
|
247
|
+
sa_address_country?: string;
|
|
248
|
+
sa_address_locality?: string;
|
|
249
|
+
sa_address_po_box?: string;
|
|
250
|
+
sa_address_postal_code?: string;
|
|
251
|
+
sa_address_premises?: string;
|
|
252
|
+
sa_address_region?: string;
|
|
253
|
+
ura_address_line1?: string;
|
|
254
|
+
ura_address_line2?: string;
|
|
255
|
+
ura_address_care_of?: string;
|
|
256
|
+
ura_address_country?: string;
|
|
257
|
+
ura_address_locality?: string;
|
|
258
|
+
ura_address_po_box?: string;
|
|
259
|
+
ura_address_postal_code?: string;
|
|
260
|
+
ura_address_premises?: string;
|
|
261
|
+
ura_address_region?: string;
|
|
262
|
+
date_became_interested_person_day?: string;
|
|
263
|
+
date_became_interested_person_month?: string;
|
|
264
|
+
date_became_interested_person_year?: string;
|
|
265
|
+
}
|
|
266
|
+
export interface TrustIndividualResource {
|
|
267
|
+
type?: string;
|
|
268
|
+
forename?: string;
|
|
269
|
+
other_forenames?: string;
|
|
270
|
+
surname?: string;
|
|
271
|
+
date_of_birth?: string;
|
|
272
|
+
nationality?: string;
|
|
273
|
+
sa_address_line1?: string;
|
|
274
|
+
sa_address_line2?: string;
|
|
275
|
+
sa_address_care_of?: string;
|
|
276
|
+
sa_address_country?: string;
|
|
277
|
+
sa_address_locality?: string;
|
|
278
|
+
sa_address_po_box?: string;
|
|
279
|
+
sa_address_postal_code?: string;
|
|
280
|
+
sa_address_premises?: string;
|
|
281
|
+
sa_address_region?: string;
|
|
282
|
+
ura_address_line1?: string;
|
|
283
|
+
ura_address_line2?: string;
|
|
284
|
+
ura_address_care_of?: string;
|
|
285
|
+
ura_address_country?: string;
|
|
286
|
+
ura_address_locality?: string;
|
|
287
|
+
ura_address_po_box?: string;
|
|
288
|
+
ura_address_postal_code?: string;
|
|
289
|
+
ura_address_premises?: string;
|
|
290
|
+
ura_address_region?: string;
|
|
291
|
+
date_became_interested_person?: string;
|
|
292
|
+
}
|
|
293
|
+
export interface TrustHistoricalBeneficialOwner {
|
|
294
|
+
forename?: string;
|
|
295
|
+
other_forenames?: string;
|
|
296
|
+
surname?: string;
|
|
297
|
+
notified_date_day?: string;
|
|
298
|
+
notified_date_month?: string;
|
|
299
|
+
notified_date_year?: string;
|
|
300
|
+
ceased_date_day?: string;
|
|
301
|
+
ceased_date_month?: string;
|
|
302
|
+
ceased_date_year?: string;
|
|
303
|
+
}
|
|
304
|
+
export interface TrustHistoricalBeneficialOwnerResource {
|
|
305
|
+
forename?: string;
|
|
306
|
+
other_forenames?: string;
|
|
307
|
+
surname?: string;
|
|
308
|
+
notified_date?: string;
|
|
309
|
+
ceased_date?: string;
|
|
310
|
+
}
|
|
311
|
+
export interface TrustCorporate {
|
|
312
|
+
type?: string;
|
|
313
|
+
name?: string;
|
|
314
|
+
date_became_interested_person_day?: string;
|
|
315
|
+
date_became_interested_person_month?: string;
|
|
316
|
+
date_became_interested_person_year?: string;
|
|
317
|
+
ro_address_line1?: string;
|
|
318
|
+
ro_address_line2?: string;
|
|
319
|
+
ro_address_care_of?: string;
|
|
320
|
+
ro_address_country?: string;
|
|
321
|
+
ro_address_locality?: string;
|
|
322
|
+
ro_address_po_box?: string;
|
|
323
|
+
ro_address_postal_code?: string;
|
|
324
|
+
ro_address_premises?: string;
|
|
325
|
+
ro_address_region?: string;
|
|
326
|
+
sa_address_line1?: string;
|
|
327
|
+
sa_address_line2?: string;
|
|
328
|
+
sa_address_care_of?: string;
|
|
329
|
+
sa_address_country?: string;
|
|
330
|
+
sa_address_locality?: string;
|
|
331
|
+
sa_address_po_box?: string;
|
|
332
|
+
sa_address_postal_code?: string;
|
|
333
|
+
sa_address_premises?: string;
|
|
334
|
+
sa_address_region?: string;
|
|
335
|
+
identification_country_registration?: string;
|
|
336
|
+
identification_legal_authority?: string;
|
|
337
|
+
identification_legal_form?: string;
|
|
338
|
+
identification_place_registered?: string;
|
|
339
|
+
identification_registration_number?: string;
|
|
340
|
+
}
|
|
341
|
+
export interface TrustCorporateResource {
|
|
342
|
+
type?: string;
|
|
343
|
+
name?: string;
|
|
344
|
+
date_became_interested_person?: string;
|
|
345
|
+
ro_address_line1?: string;
|
|
346
|
+
ro_address_line2?: string;
|
|
347
|
+
ro_address_care_of?: string;
|
|
348
|
+
ro_address_country?: string;
|
|
349
|
+
ro_address_locality?: string;
|
|
350
|
+
ro_address_po_box?: string;
|
|
351
|
+
ro_address_postal_code?: string;
|
|
352
|
+
ro_address_premises?: string;
|
|
353
|
+
ro_address_region?: string;
|
|
354
|
+
sa_address_line1?: string;
|
|
355
|
+
sa_address_line2?: string;
|
|
356
|
+
sa_address_care_of?: string;
|
|
357
|
+
sa_address_country?: string;
|
|
358
|
+
sa_address_locality?: string;
|
|
359
|
+
sa_address_po_box?: string;
|
|
360
|
+
sa_address_postal_code?: string;
|
|
361
|
+
sa_address_premises?: string;
|
|
362
|
+
sa_address_region?: string;
|
|
363
|
+
identification_country_registration?: string;
|
|
364
|
+
identification_legal_authority?: string;
|
|
365
|
+
identification_legal_form?: string;
|
|
366
|
+
identification_place_registered?: string;
|
|
367
|
+
identification_registration_number?: string;
|
|
368
|
+
}
|
|
193
369
|
/**
|
|
194
370
|
* Shared Data Type
|
|
195
371
|
*/
|
|
@@ -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;;;AAoZH,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,6CAAM,CAAA;IACN,+CAAO,CAAA;AACX,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAQD,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACrC,0FAAyD,CAAA;IACzD,4FAA2D,CAAA;IAC3D,oEAAmC,CAAA;AACvC,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC;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"}
|