const { ClientFactory } = require("@pliance/pliance.js.sdk"); let clientFactory = new ClientFactory('2bb80d537b1da3e38bd303', 'Test', 'https://test-stage3.pliance.io/'); let client = clientFactory.create('username', 'userId'); let person = { firstName: 'John F.', lastName: 'Kennedy', personReferenceId: 'person-id' }; let res = await client.registerPerson(person);
{ "hits": [ [ { "aliasId": "5e9642c5f7b00dcebc42098008fde48e28d7e30962d8b128f9a3bd7dab080b81", "referenceId": "person-id", "matchedFirstName": [ { "text": "John", "isMatch": true }, { "text": " ", "isMatch": false }, { "text": "F", "isMatch": true }, { "text": ".", "isMatch": false } ], "matchedLastName": [ { "text": "Kennedy", "isMatch": true } ], "isSanction": false, "isPep": true, "isRca": false, "firstName": "John F.", "lastName": "Kennedy", "matchId": "7116f1a85030f2ed16d5d53224d772b9", "classification": "Unknown", "score": 1.0 } ] ], "data": { "personReferenceId": "person-id", "identity": { "identity": null, "country": "us" }, "firstName": "John F.", "lastName": "Kennedy", "birthdate": "????-??-??", "addresses": [], "hits": [ [ { "aliasId": "5e9642c5f7b00dcebc42098008fde48e28d7e30962d8b128f9a3bd7dab080b81", "referenceId": "person-id", "matchedFirstName": [ { "text": "John", "isMatch": true }, { "text": " ", "isMatch": false }, { "text": "F", "isMatch": true }, { "text": ".", "isMatch": false } ], "matchedLastName": [ { "text": "Kennedy", "isMatch": true } ], "isSanction": false, "isPep": true, "isRca": false, "firstName": "John F.", "lastName": "Kennedy", "matchId": "7116f1a85030f2ed16d5d53224d772b9", "classification": "Unknown", "score": 1.0 } ] ], "gender": "Unknown", "archived": false, "engagements": null, "isPep": true, "isRca": false, "isSanction": false, "birth": null, "highRiskCountry": false, "lastChanged": { "timestampUtc": "2020-08-05T11:04:41.307+00:00", "checkpoint": "bb8f14bef389153f9275a2e01a91b9af98e45ccad03861352f6d752d0c1c6e9f" } }, "status": "Success", "success": true, "message": null, "checkpoint": "bb8f14bef389153f9275a2e01a91b9af98e45ccad03861352f6d752d0c1c6e9f" }