@companieshouse/api-sdk-node 2.0.246 → 2.0.248
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/service.d.ts +3 -2
- package/dist/services/limited-partnerships/service.js +12 -2
- package/dist/services/limited-partnerships/service.js.map +1 -1
- package/dist/services/limited-partnerships/types.d.ts +13 -0
- package/dist/services/limited-partnerships/types.js +6 -1
- package/dist/services/limited-partnerships/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHttpClient } from "../../http";
|
|
2
|
-
import { LimitedPartnership, LimitedPartnershipResourceCreated, LimitedPartnershipIncorporation, GeneralPartner } from "./types";
|
|
2
|
+
import { Incorporation, LimitedPartnership, LimitedPartnershipResourceCreated, LimitedPartnershipIncorporation, GeneralPartner } from "./types";
|
|
3
3
|
import Resource, { ApiErrorResponse } from "../resource";
|
|
4
4
|
export default class LimitedPartnershipsService {
|
|
5
5
|
private readonly client;
|
|
@@ -7,8 +7,9 @@ export default class LimitedPartnershipsService {
|
|
|
7
7
|
postLimitedPartnership(transactionId: string, body: LimitedPartnership): Promise<Resource<LimitedPartnershipResourceCreated> | ApiErrorResponse>;
|
|
8
8
|
patchLimitedPartnership(transactionId: string, submissionId: string, body: LimitedPartnership["data"]): Promise<Resource<void> | ApiErrorResponse>;
|
|
9
9
|
getLimitedPartnership(transactionId: string, submissionId: string): Promise<Resource<LimitedPartnership> | ApiErrorResponse>;
|
|
10
|
-
postLimitedPartnershipIncorporation(transactionId: string): Promise<Resource<LimitedPartnershipResourceCreated> | ApiErrorResponse>;
|
|
10
|
+
postLimitedPartnershipIncorporation(transactionId: string, body: Incorporation): Promise<Resource<LimitedPartnershipResourceCreated> | ApiErrorResponse>;
|
|
11
11
|
getLimitedPartnershipIncorporation(transactionId: string, filingResourceId: string, includeSubResources?: boolean): Promise<Resource<LimitedPartnershipIncorporation> | ApiErrorResponse>;
|
|
12
12
|
postGeneralPartner(transactionId: string, body: GeneralPartner): Promise<Resource<LimitedPartnershipResourceCreated> | ApiErrorResponse>;
|
|
13
13
|
getGeneralPartner(transactionId: string, generalPartnerId: string): Promise<Resource<GeneralPartner> | ApiErrorResponse>;
|
|
14
|
+
patchGeneralPartner(transactionId: string, generalPartnerId: string, body: GeneralPartner["data"]): Promise<Resource<void> | ApiErrorResponse>;
|
|
14
15
|
}
|
|
@@ -46,10 +46,10 @@ class LimitedPartnershipsService {
|
|
|
46
46
|
/*
|
|
47
47
|
* Calls to incorporation endpoints
|
|
48
48
|
*/
|
|
49
|
-
postLimitedPartnershipIncorporation(transactionId) {
|
|
49
|
+
postLimitedPartnershipIncorporation(transactionId, body) {
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const URL = `/transactions/${transactionId}/incorporation/limited-partnership`;
|
|
52
|
-
const response = yield this.client.httpPost(URL);
|
|
52
|
+
const response = yield this.client.httpPost(URL, body);
|
|
53
53
|
return {
|
|
54
54
|
httpStatusCode: response.status,
|
|
55
55
|
resource: Object.assign({}, response.body)
|
|
@@ -92,6 +92,16 @@ class LimitedPartnershipsService {
|
|
|
92
92
|
};
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
+
patchGeneralPartner(transactionId, generalPartnerId, body) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const URL = `/transactions/${transactionId}/limited-partnership/general-partner/${generalPartnerId}`;
|
|
98
|
+
const response = yield this.client.httpPatch(URL, body);
|
|
99
|
+
return {
|
|
100
|
+
httpStatusCode: response.status,
|
|
101
|
+
resource: Object.assign({}, response.body)
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
95
105
|
}
|
|
96
106
|
exports.default = LimitedPartnershipsService;
|
|
97
107
|
//# sourceMappingURL=service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/limited-partnerships/service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G,MAAM,QAAQ,GAAiB,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAE9D,OAAO;gBACH,cAAc,EAAE,QAAQ,CAAC,MAAM;gBAC/B,QAAQ,oBAAO,QAAQ,CAAC,IAAI,CAAE;aACjC,CAAC;QACN,CAAC;KAAA;IAEY,mBAAmB,CAC5B,aAAqB,EACrB,gBAAwB,EACxB,IAA4B;;YAE5B,MAAM,GAAG,GAAG,iBAAiB,aAAa,wCAAwC,gBAAgB,EAAE,CAAC;YACrG,MAAM,QAAQ,GAAiB,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAEtE,OAAO;gBACH,cAAc,EAAE,QAAQ,CAAC,MAAM;gBAC/B,QAAQ,oBAAO,QAAQ,CAAC,IAAI,CAAE;aACjC,CAAC;QACN,CAAC;KAAA;CACJ;AAzHD,6CAyHC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Limited Partnership interface types used within this SDK.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* The data model used by the web and API for an Incorporation journey.
|
|
6
|
+
* It could be a registration or a transition, determined by the 'kind'.
|
|
7
|
+
*/
|
|
8
|
+
export interface Incorporation {
|
|
9
|
+
data?: {
|
|
10
|
+
kind: IncorporationKind;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
4
13
|
/**
|
|
5
14
|
* The data model used by the web and API for a Limited Partnership.
|
|
6
15
|
*/
|
|
@@ -48,6 +57,10 @@ export interface GeneralPartner {
|
|
|
48
57
|
export interface LimitedPartnershipResourceCreated {
|
|
49
58
|
id: string;
|
|
50
59
|
}
|
|
60
|
+
export declare enum IncorporationKind {
|
|
61
|
+
REGISTRATION = "limited-partnership-registration",
|
|
62
|
+
TRANSITION = "limited-partnership-transition"
|
|
63
|
+
}
|
|
51
64
|
export declare enum NameEndingType {
|
|
52
65
|
LIMITED_PARTNERSHIP = "Limited Partnership",
|
|
53
66
|
LP = "LP",
|
|
@@ -3,7 +3,12 @@
|
|
|
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 = void 0;
|
|
6
|
+
exports.Term = exports.Jurisdiction = exports.PartnershipType = exports.NameEndingType = exports.IncorporationKind = void 0;
|
|
7
|
+
var IncorporationKind;
|
|
8
|
+
(function (IncorporationKind) {
|
|
9
|
+
IncorporationKind["REGISTRATION"] = "limited-partnership-registration";
|
|
10
|
+
IncorporationKind["TRANSITION"] = "limited-partnership-transition";
|
|
11
|
+
})(IncorporationKind = exports.IncorporationKind || (exports.IncorporationKind = {}));
|
|
7
12
|
var NameEndingType;
|
|
8
13
|
(function (NameEndingType) {
|
|
9
14
|
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;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/limited-partnerships/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA8DH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sEAAiD,CAAA;IACjD,kEAA6C,CAAA;AAC/C,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;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,uDAAuC,CAAA;IACvC,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"}
|