@companieshouse/api-sdk-node 2.0.252 → 2.0.254

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.
@@ -12,5 +12,5 @@ export default class CompanyPscService {
12
12
  *
13
13
  * @param number the company number to look up
14
14
  */
15
- getCompanyPsc(number: string): Promise<Resource<CompanyPersonsWithSignificantControl>>;
15
+ getCompanyPsc(number: string, startIndex?: number, itemsPerPage?: number): Promise<Resource<CompanyPersonsWithSignificantControl>>;
16
16
  }
@@ -25,9 +25,9 @@ class CompanyPscService {
25
25
  *
26
26
  * @param number the company number to look up
27
27
  */
28
- getCompanyPsc(number) {
28
+ getCompanyPsc(number, startIndex = 0, itemsPerPage = 25) {
29
29
  return __awaiter(this, void 0, void 0, function* () {
30
- const resp = yield this.client.httpGet(`/company/${number}/persons-with-significant-control`);
30
+ const resp = yield this.client.httpGet(`/company/${number}/persons-with-significant-control?start_index=${startIndex}&items_per_page=${itemsPerPage}`);
31
31
  const resource = {
32
32
  httpStatusCode: resp.status
33
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/company-psc/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA,oEAA4C;AAE5C;;GAEG;AACH,MAAqB,iBAAiB;IAClC,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;KAIC;IACY,aAAa,CAAE,MAAc;;YACtC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,MAAM,mCAAmC,CAAC,CAAC;YAE9F,MAAM,QAAQ,GAAmD;gBAC7D,cAAc,EAAE,IAAI,CAAC,MAAM;aAC9B,CAAC;YAEF,IAAI,IAAI,CAAC,KAAK,EAAE;gBACZ,OAAO,QAAQ,CAAC;aACnB;YAED,MAAM,IAAI,GAAG,IAAI,CAAC,IAAoD,CAAC;YAEvE,QAAQ,CAAC,QAAQ,GAAG,iBAAO,CAAC,aAAa,CAAuC,IAAI,CAAC,CAAC;YAEtF,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAzBD,oCAyBC"}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/company-psc/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA,oEAA4C;AAE5C;;GAEG;AACH,MAAqB,iBAAiB;IAClC,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;KAIC;IACY,aAAa,CAAE,MAAc,EAAE,aAAqB,CAAC,EAAE,eAAuB,EAAE;;YACzF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,MAAM,iDAAiD,UAAU,mBAAmB,YAAY,EAAE,CAAC,CAAC;YAEvJ,MAAM,QAAQ,GAAmD;gBAC7D,cAAc,EAAE,IAAI,CAAC,MAAM;aAC9B,CAAC;YAEF,IAAI,IAAI,CAAC,KAAK,EAAE;gBACZ,OAAO,QAAQ,CAAC;aACnB;YAED,MAAM,IAAI,GAAG,IAAI,CAAC,IAAoD,CAAC;YAEvE,QAAQ,CAAC,QAAQ,GAAG,iBAAO,CAAC,aAAa,CAAuC,IAAI,CAAC,CAAC;YAEtF,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAzBD,oCAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companieshouse/api-sdk-node",
3
- "version": "2.0.252",
3
+ "version": "2.0.254",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [