@companieshouse/api-sdk-node 2.0.154 → 2.0.155
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PscVerification, PscVerificationResource } from "./types";
|
|
2
2
|
import { IHttpClient } from "../../http";
|
|
3
3
|
import Resource, { ApiErrorResponse } from "../resource";
|
|
4
|
-
export default class {
|
|
4
|
+
export default class PscVerificationService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
constructor(client: IHttpClient);
|
|
7
7
|
postPscVerification(transactionId: string, pscVerification: PscVerification): Promise<Resource<PscVerificationResource> | ApiErrorResponse>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
class
|
|
12
|
+
class PscVerificationService {
|
|
13
13
|
constructor(client) {
|
|
14
14
|
this.client = client;
|
|
15
15
|
}
|
|
@@ -35,5 +35,5 @@ class default_1 {
|
|
|
35
35
|
resource.resource = body;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.default =
|
|
38
|
+
exports.default = PscVerificationService;
|
|
39
39
|
//# sourceMappingURL=service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/psc-verification-link/service.ts"],"names":[],"mappings":";;;;;;;;;;;AAOA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/psc-verification-link/service.ts"],"names":[],"mappings":";;;;;;;;;;;AAOA,MAAqB,sBAAsB;IACvC,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAExC,mBAAmB,CAAE,aAAqB,EAAE,eAAgC;;YACrF,MAAM,GAAG,GAAG,iBAAiB,aAAa,gDAAgD,CAAC;YAC3F,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;YAElE,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,QAAQ,GAAsC;gBAChD,cAAc,EAAE,QAAQ,CAAC,MAAM;aAClC,CAAC;YACF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAA+B,CAAA;YACrD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACtC,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;IAEO,gBAAgB,CAAE,QAA2C,EAAE,IAA6B;QAChG,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC7B,CAAC;CACJ;AAzBD,yCAyBC"}
|
|
@@ -27,9 +27,9 @@ export interface VerificationDetails {
|
|
|
27
27
|
}
|
|
28
28
|
export interface PscVerification {
|
|
29
29
|
company_number: string;
|
|
30
|
-
psc_appointment_id
|
|
30
|
+
psc_appointment_id?: string;
|
|
31
31
|
relevant_officer?: RelevantOfficer;
|
|
32
|
-
verification_details
|
|
32
|
+
verification_details?: VerificationDetails;
|
|
33
33
|
}
|
|
34
34
|
export interface Links {
|
|
35
35
|
self: string;
|
package/package.json
CHANGED
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
2
|
+
"name": "@companieshouse/api-sdk-node",
|
|
3
|
+
"version": "2.0.155",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"test": "mocha",
|
|
13
|
+
"test:coverage": "nyc --check-coverage --reporter=text-summary npm run test",
|
|
14
|
+
"coverage:report": "nyc --reporter=lcov --reporter=text npm run test",
|
|
15
|
+
"lint": "eslint 'src/*.ts' 'src/**/*.ts' 'test/**/*.ts'",
|
|
16
|
+
"lint:fix": "eslint 'src/*.ts' 'src/**/*.ts' 'test/**/*.ts' --fix",
|
|
17
|
+
"prepublishOnly": "[ ! -d node_modules ] && npm install; tsc",
|
|
18
|
+
"postpublish": "rm -rf dist",
|
|
19
|
+
"analyse-code": "sonar-scanner"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"axios": "^1.6.7",
|
|
23
|
+
"camelcase-keys": "~6.2.2",
|
|
24
|
+
"snakecase-keys": "~3.2.0",
|
|
25
|
+
"url-search-params-polyfill": "~8.1.1"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
29
|
+
"@types/axios": "^0.14.0",
|
|
30
|
+
"@types/chai": "^4.2.22",
|
|
31
|
+
"@types/chai-as-promised": "^7.1.4",
|
|
32
|
+
"@types/chai-http": "~4.2.0",
|
|
33
|
+
"@types/mocha": "~8.0.4",
|
|
34
|
+
"@types/node": "^14.14.45",
|
|
35
|
+
"@types/request": "^2.48.8",
|
|
36
|
+
"@types/request-promise-native": "^1.0.18",
|
|
37
|
+
"@types/sinon": "^9.0.11",
|
|
38
|
+
"@types/sinon-chai": "^3.2.8",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
40
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
41
|
+
"chai": "~4.2.0",
|
|
42
|
+
"chai-as-promised": "~7.1.1",
|
|
43
|
+
"chai-http": "~4.3.0",
|
|
44
|
+
"eslint": "^7.32.0",
|
|
45
|
+
"eslint-config-standard": "14.1.1",
|
|
46
|
+
"eslint-plugin-import": "2.23.0",
|
|
47
|
+
"eslint-plugin-node": "11.1.0",
|
|
48
|
+
"eslint-plugin-promise": "6.0.0",
|
|
49
|
+
"eslint-plugin-standard": "5.0.0",
|
|
50
|
+
"mocha": "^9.2.0",
|
|
51
|
+
"nock": "^13.3.2",
|
|
52
|
+
"nyc": "^15.1.0",
|
|
53
|
+
"sinon": "^9.2.4",
|
|
54
|
+
"sinon-chai": "~3.5.0",
|
|
55
|
+
"sonarqube-scanner": "^2.8.1",
|
|
56
|
+
"ts-node": "9.1.1",
|
|
57
|
+
"typescript": "4.1.6"
|
|
58
|
+
},
|
|
59
|
+
"overrides": {
|
|
60
|
+
"semver": "7.5.2"
|
|
61
|
+
}
|
|
58
62
|
}
|