@companieshouse/api-sdk-node 2.0.278 → 2.0.280
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/limited-partnerships/types.d.ts +8 -1
- package/dist/services/limited-partnerships/types.js +9 -1
- package/dist/services/limited-partnerships/types.js.map +1 -1
- package/dist/services/psc/service.js +1 -1
- package/dist/services/psc/service.js.map +1 -1
- package/dist/services/psc/types.d.ts +12 -15
- package/dist/services/psc/types.js +1 -7
- package/dist/services/psc/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -73,7 +73,14 @@ export interface LimitedPartnershipResourceCreated {
|
|
|
73
73
|
}
|
|
74
74
|
export declare enum IncorporationKind {
|
|
75
75
|
REGISTRATION = "limited-partnership-registration",
|
|
76
|
-
TRANSITION = "limited-partnership-transition"
|
|
76
|
+
TRANSITION = "limited-partnership-transition",
|
|
77
|
+
POST_TRANSITION = "limited-partnership-post-transition"
|
|
78
|
+
}
|
|
79
|
+
export declare enum PartnerKind {
|
|
80
|
+
ADD_GENERAL_PARTNER_PERSON = "limited-partnership#add-general-partner-person",
|
|
81
|
+
ADD_GENERAL_PARTNER_LEGAL_ENTITY = "limited-partnership#add-general-partner-legal-entity",
|
|
82
|
+
ADD_LIMITED_PARTNER_PERSON = "limited-partnership#add-limited-partner-person",
|
|
83
|
+
ADD_LIMITED_PARTNER_LEGAL_ENTITY = "limited-partnership#add-limited-partner-legal-entity"
|
|
77
84
|
}
|
|
78
85
|
export declare enum NameEndingType {
|
|
79
86
|
LIMITED_PARTNERSHIP = "Limited Partnership",
|
|
@@ -3,12 +3,20 @@
|
|
|
3
3
|
* Limited Partnership interface types used within this SDK.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Term = exports.Jurisdiction = exports.PartnershipType = exports.NameEndingType = exports.IncorporationKind = void 0;
|
|
6
|
+
exports.Term = exports.Jurisdiction = exports.PartnershipType = exports.NameEndingType = exports.PartnerKind = exports.IncorporationKind = void 0;
|
|
7
7
|
var IncorporationKind;
|
|
8
8
|
(function (IncorporationKind) {
|
|
9
9
|
IncorporationKind["REGISTRATION"] = "limited-partnership-registration";
|
|
10
10
|
IncorporationKind["TRANSITION"] = "limited-partnership-transition";
|
|
11
|
+
IncorporationKind["POST_TRANSITION"] = "limited-partnership-post-transition";
|
|
11
12
|
})(IncorporationKind = exports.IncorporationKind || (exports.IncorporationKind = {}));
|
|
13
|
+
var PartnerKind;
|
|
14
|
+
(function (PartnerKind) {
|
|
15
|
+
PartnerKind["ADD_GENERAL_PARTNER_PERSON"] = "limited-partnership#add-general-partner-person";
|
|
16
|
+
PartnerKind["ADD_GENERAL_PARTNER_LEGAL_ENTITY"] = "limited-partnership#add-general-partner-legal-entity";
|
|
17
|
+
PartnerKind["ADD_LIMITED_PARTNER_PERSON"] = "limited-partnership#add-limited-partner-person";
|
|
18
|
+
PartnerKind["ADD_LIMITED_PARTNER_LEGAL_ENTITY"] = "limited-partnership#add-limited-partner-legal-entity";
|
|
19
|
+
})(PartnerKind = exports.PartnerKind || (exports.PartnerKind = {}));
|
|
12
20
|
var NameEndingType;
|
|
13
21
|
(function (NameEndingType) {
|
|
14
22
|
NameEndingType["LIMITED_PARTNERSHIP"] = "Limited Partnership";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/limited-partnerships/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA8EH,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/limited-partnerships/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA8EH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,sEAAiD,CAAA;IACjD,kEAA6C,CAAA;IAC7C,4EAAuD,CAAA;AAC3D,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,4FAA6E,CAAA;IAC7E,wGAAyF,CAAA;IACzF,4FAA6E,CAAA;IAC7E,wGAAyF,CAAA;AAC7F,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,cAOX;AAPD,WAAY,cAAc;IACtB,6DAA2C,CAAA;IAC3C,2BAAS,CAAA;IACT,sCAAoB,CAAA;IACpB,qEAAmD,CAAA;IACnD,2BAAS,CAAA;IACT,sCAAoB,CAAA;AACxB,CAAC,EAPW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAOzB;AAED,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,kCAAe,CAAA;AACnB,CAAC,EALW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAK1B;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mDAAmC,CAAA;IACnC,qDAAqC,CAAA;IACrC,qCAAqB,CAAA;AACzB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAsBD,IAAY,IAIX;AAJD,WAAY,IAAI;IACZ,qCAA6B,CAAA;IAC7B,+CAAuC,CAAA;IACvC,qBAAa,CAAA;AACjB,CAAC,EAJW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAIf"}
|
|
@@ -28,7 +28,7 @@ class PscService {
|
|
|
28
28
|
*/
|
|
29
29
|
getPscIndividual(companyNumber, pscNotificationId, headers) {
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
const resourceUri = `/company/${companyNumber}/persons-with-significant-control/individual/${pscNotificationId}/verification-
|
|
31
|
+
const resourceUri = `/company/${companyNumber}/persons-with-significant-control/individual/${pscNotificationId}/identity-verification-details`;
|
|
32
32
|
const response = yield this.client.httpGet(resourceUri, headers);
|
|
33
33
|
if (response.error) {
|
|
34
34
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/psc/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,oEAA4C;AAI5C;;GAEG;AACH,MAAqB,UAAU;IAC3B,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;;KAKC;IACY,gBAAgB,CAAE,aAAqB,EAAE,iBAAyB,EAAE,OAAiB;;YAC9F,MAAM,WAAW,GAAG,YAAY,aAAa,gDAAgD,iBAAiB,
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/psc/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,oEAA4C;AAI5C;;GAEG;AACH,MAAqB,UAAU;IAC3B,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;;KAKC;IACY,gBAAgB,CAAE,aAAqB,EAAE,iBAAyB,EAAE,OAAiB;;YAC9F,MAAM,WAAW,GAAG,YAAY,aAAa,gDAAgD,iBAAiB,gCAAgC,CAAC;YAC/I,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YAEjE,IAAI,QAAQ,CAAC,KAAK,EAAE;gBAChB,OAAO;oBACH,cAAc,EAAE,QAAQ,CAAC,MAAM;oBAC/B,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;iBAC3B,CAAA;aACJ;YAED,MAAM,gBAAgB,GAA2C;gBAC7D,cAAc,EAAE,QAAQ,CAAC,MAAM;aAClC,CAAC;YAEF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAA4C,CAAC;YACnE,gBAAgB,CAAC,QAAQ,GAAG,iBAAO,CAAC,aAAa,CAA+B,IAAI,CAAC,CAAC;YAEtF,OAAO,gBAAgB,CAAC;QAC5B,CAAC;KAAA;CACJ;AA7BD,6BA6BC"}
|
|
@@ -15,7 +15,7 @@ export interface PersonWithSignificantControlResource {
|
|
|
15
15
|
notified_on: string;
|
|
16
16
|
is_sanctioned?: boolean;
|
|
17
17
|
kind?: KindEnum;
|
|
18
|
-
|
|
18
|
+
identity_verification_details?: IdentityVerificationDetailsResource;
|
|
19
19
|
}
|
|
20
20
|
export interface AddressResource {
|
|
21
21
|
address_line_1: string;
|
|
@@ -48,15 +48,11 @@ export interface ItemLinksResource {
|
|
|
48
48
|
self: string;
|
|
49
49
|
statement?: string;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export declare enum VerificationStatusEnum {
|
|
57
|
-
UNVERIFIED = "UNVERIFIED",
|
|
58
|
-
VERIFIED = "VERIFIED",
|
|
59
|
-
PENDING = "PENDING"
|
|
51
|
+
export interface IdentityVerificationDetailsResource {
|
|
52
|
+
appointment_verification_end_on?: Date;
|
|
53
|
+
appointment_verification_statement_date?: Date;
|
|
54
|
+
appointment_verification_statement_due_on?: Date;
|
|
55
|
+
appointment_verification_start_on?: Date;
|
|
60
56
|
}
|
|
61
57
|
export declare enum KindEnum {
|
|
62
58
|
INDIVIDUAL_PERSON_WITH_SIGNIFICANT_CONTROL = "individual-person-with-significant-control"
|
|
@@ -75,7 +71,7 @@ export interface PersonWithSignificantControl {
|
|
|
75
71
|
notifiedOn: string;
|
|
76
72
|
isSanctioned?: boolean;
|
|
77
73
|
kind?: KindEnum;
|
|
78
|
-
|
|
74
|
+
identityVerificationDetails?: IdentityVerificationDetails;
|
|
79
75
|
}
|
|
80
76
|
export interface Address {
|
|
81
77
|
addressLine1: string;
|
|
@@ -108,8 +104,9 @@ export interface ItemLinks {
|
|
|
108
104
|
self: string;
|
|
109
105
|
statement?: string;
|
|
110
106
|
}
|
|
111
|
-
export interface
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
export interface IdentityVerificationDetails {
|
|
108
|
+
appointmentVerificationEndOn?: Date;
|
|
109
|
+
appointmentVerificationStatementDate?: Date;
|
|
110
|
+
appointmentVerificationStatementDueOn?: Date;
|
|
111
|
+
appointmentVerificationStartOn?: Date;
|
|
115
112
|
}
|
|
@@ -3,19 +3,13 @@
|
|
|
3
3
|
* PersonWithSignificantControlResource is what is returned from the PSC data API, and will apply to individual PSC types only.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.KindEnum =
|
|
6
|
+
exports.KindEnum = void 0;
|
|
7
7
|
;
|
|
8
8
|
;
|
|
9
9
|
;
|
|
10
10
|
;
|
|
11
11
|
;
|
|
12
12
|
;
|
|
13
|
-
var VerificationStatusEnum;
|
|
14
|
-
(function (VerificationStatusEnum) {
|
|
15
|
-
VerificationStatusEnum["UNVERIFIED"] = "UNVERIFIED";
|
|
16
|
-
VerificationStatusEnum["VERIFIED"] = "VERIFIED";
|
|
17
|
-
VerificationStatusEnum["PENDING"] = "PENDING";
|
|
18
|
-
})(VerificationStatusEnum = exports.VerificationStatusEnum || (exports.VerificationStatusEnum = {}));
|
|
19
13
|
var KindEnum;
|
|
20
14
|
(function (KindEnum) {
|
|
21
15
|
KindEnum["INDIVIDUAL_PERSON_WITH_SIGNIFICANT_CONTROL"] = "individual-person-with-significant-control";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/psc/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiBF,CAAC;AAYD,CAAC;AAMD,CAAC;AAQD,CAAC;AAKD,CAAC;AAKD,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/psc/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiBF,CAAC;AAYD,CAAC;AAMD,CAAC;AAQD,CAAC;AAKD,CAAC;AAKD,CAAC;AASF,IAAY,QAEX;AAFD,WAAY,QAAQ;IAClB,qGAAyF,CAAA;AAC3F,CAAC,EAFW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAEnB;AAiBA,CAAC;AAYD,CAAC;AAMD,CAAC;AAQD,CAAC;AAKD,CAAC;AAKD,CAAC"}
|