{"_id":"@digigov-oss/search-identities-by-id-client","_rev":"2-6876d58b0f0c45c8c8344841f02aa49c","name":"@digigov-oss/search-identities-by-id-client","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@digigov-oss/search-identities-by-id-client","version":"1.0.0","type":"module","description":"Client for searchidentitiesbyid service of Police","engines":{"node":">=16.13.1"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"dependencies":{"@digigov-oss/gsis-audit-record-db":"^1.3.1","soap":"^0.43.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient.git"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"directories":{"src":"src","test":"test"},"scripts":{"test":"node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm ./test/test.ts","testesm":"node --experimental-json-modules --no-warnings ./test/test.mjs","testcjs":"node ./test/test.cjs","build":"rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig.commonjs.json && ./setType.sh"},"eslintConfig":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/recommended-requiring-type-checking"],"parserOptions":{"project":"./tsconfig.json"},"rules":{"max-len":["error",{"code":100}],"no-console":1,"no-extra-boolean-cast":0,"@typescript-eslint/restrict-plus-operands":0,"@typescript-eslint/explicit-module-boundary-types":0,"@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-floating-promises":0,"@typescript-eslint/no-unsafe-member-access":0,"@typescript-eslint/no-unsafe-assignment":0}},"eslintIgnore":[],"keywords":["police"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"devDependencies":{"@types/node":"^16.9.0","@types/object-inspect":"^1.8.1","object-inspect":"^1.12.0","ts-node":"^10.4.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.4"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/blob/main/README.md","types":"./dist\\cjs\\index.d.ts","gitHead":"a45f13b1623a96be681dc9097f1041cc4f7a50ad","_id":"@digigov-oss/search-identities-by-id-client@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-rrO60RYiPb1WmLZV2crRvkTVGI/jH1SrjOgWaKDdk9tcelGxArEOYpzcpTS5TZGiJbR98yyL3VrgHblQ652Sog==","shasum":"7a7bbe24eb73f93dcef29cf1f0837d1c4f730447","tarball":"https://registry.npmjs.org/@digigov-oss/search-identities-by-id-client/-/search-identities-by-id-client-1.0.0.tgz","fileCount":25,"unpackedSize":39944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFj/uirOUcoUPGCuakgWLXA0Yrt8Xh2PoxTUtoJFLdWrAiEAhYU9jmqud3gPSps4A+aonyFsSkDqC1psLRZGvEyIphM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbQhKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8KBAAjkKRkNJlBlqZ9E1AbiELydMomrhOcNqCe0SozzRM+JzEUFyV\r\n4ivjIDDGmtyXpGJcxm/Ow9JqJcCa/xu8sgeAfoRzpx8f8cqm3yYB6hoNCOCf\r\nV+Zf6CYDaV0xTqwm8r499a8UKyNLyOWYHgmhEzWUWHqmHezxF88w8YDb6DOa\r\nuhpDP0GhRnoNkj8Ow/2Yl/UeLULrWt1xh5A5EmU/NCM1rq4etUs1upRywn4G\r\n8g8yFaZmX4QLirf/oz/T8krQYpuJtGaxRIXldIyWCMPehKJgRQOR9o7H68dX\r\nQScjtczbbSmeBEc/rIC/XkbcThJvEfTURmsa9wimtLThV2CvuSsuH+1wyxby\r\n+mosh6fM14hoTBYEI5cVTxqThy3/lOIUdT+25+uQem9vUhIWuroGy/fUQaDU\r\nOAotNSd1e/REVGWqD+C2Bjaw8atym4ufYpzrjMDX0Pewdyk5aRMoA35BJ/+u\r\nAPPO1a+QrXydSd8omTh6eEaldxT5I29kHI+j+5J6MzM04fXqojMklpF9tao/\r\nCndRIFTSVB2s1dnPbgT0HlWf2GIydG5gI67M/lQTn4tKET3roGZlsbjiDDZf\r\nV3M17H+qjMS9SGhF3Q3RMDVf8SjWawpuN15X4wiH1/UCv5boteSh3Lhorql/\r\ndz3fAM4xRUpqQg4i8c7iEIRDlssftDqWMVs=\r\n=hoHQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dmassaad-grnet","email":"dmassaad@admin.grnet.gr"},"maintainers":[{"name":"dmassaad-grnet","email":"dmassaad@admin.grnet.gr"},{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-identities-by-id-client_1.0.0_1668089929802_0.923308756489944"},"_hasShrinkwrap":false},"1.0.1":{"name":"@digigov-oss/search-identities-by-id-client","version":"1.0.1","type":"module","description":"Client for searchidentitiesbyid service of Police","engines":{"node":">=16.13.1"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"dependencies":{"@digigov-oss/gsis-audit-record-db":"^1.3.1","soap":"^0.43.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient.git"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"directories":{"src":"src","test":"test"},"scripts":{"test":"node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm ./test/test.ts","testesm":"node --experimental-json-modules --no-warnings ./test/test.mjs","testcjs":"node ./test/test.cjs","build":"rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig.commonjs.json && ./setType.sh"},"eslintConfig":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/recommended-requiring-type-checking"],"parserOptions":{"project":"./tsconfig.json"},"rules":{"max-len":["error",{"code":100}],"no-console":1,"no-extra-boolean-cast":0,"@typescript-eslint/restrict-plus-operands":0,"@typescript-eslint/explicit-module-boundary-types":0,"@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-floating-promises":0,"@typescript-eslint/no-unsafe-member-access":0,"@typescript-eslint/no-unsafe-assignment":0}},"eslintIgnore":[],"keywords":["police"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"devDependencies":{"@types/node":"^16.9.0","@types/object-inspect":"^1.8.1","object-inspect":"^1.12.0","ts-node":"^10.4.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.4"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/blob/main/README.md","types":"./dist\\cjs\\index.d.ts","gitHead":"d148237828758aa928509ac188e70fbf80152f30","_id":"@digigov-oss/search-identities-by-id-client@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-xcU5PuktvKoh7JAZvG3YwTo69IjQEQU6zJhqOsaGdyFdFn1ZrZuRL1fIpc7Qgq7LRAbfdTvzks+GdBulbK2V3A==","shasum":"8bb6b4c9288db7c98b8ca90d128d817945d495e7","tarball":"https://registry.npmjs.org/@digigov-oss/search-identities-by-id-client/-/search-identities-by-id-client-1.0.1.tgz","fileCount":32,"unpackedSize":41453,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtq8wNM683uYpgWntpMyaexKK60tgWfYtDK/J2tqjo5AIhANDUMIqyVeO8D1YSW+GTSH2ZmTF1FAmCl1CVlv/PhZUM"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcf0kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGzRAAjQiVw3xNY+cyFeWn+OKF15wsnbUqQ+KdMItePSXFbyhzZnHA\r\n3m3vhRkxQ/vwNSGBNR1nWYRAquzRbZ4CwCmxBsnvz5RA0EuIR52PEeyD5dSW\r\n0WlZCvim4/svFM97NAGrvw1H+Ul1E4LzoZT3ObEogVU8k32uW2NOZ5qtFija\r\nVuJ9mN9E9dJyIedtvb4kntsGdEglHjK7NIA5jxDlP1aILkXIDKIncIMjbUfv\r\nEtgah5PVRd1EVYTAtjk9yU1fPClryd465/ds+vc4+Xie2kDQshwWjCcCpp0j\r\nCsSKr4jwn/qJVHATOkzBKl34+wa/ptaaNBlHK8wjxZAUGSYzyc3JUgi0WjH/\r\n/iPQXFXG5ykJqHuMkEvPJ1yVZBw6vssmmkosLwR+7tIWWXG8yXxJVSbf77Kd\r\noyy45R9+dIyxI0rAsrJO5+FjLKXHuJB9b9QB1GYyuGApXIiTy2/0hwGO28WJ\r\nfl33764MxoXVxO9Mz7mr+0puO/bEGEFuQbe48qLLMKceNGmYg/PeT5Ag5p+m\r\nkbCGTbIRs7zIkT5yIol2hoe/5gRFERS0ECs02AVHYpzj8e4mRhsKu10K7rPq\r\noKmx7K/uDd6A8mrcU27rlUYQyyME/t0Ey90w9mzAp/b+355qPXIQIB9/hIxV\r\nriLpoSIa1LrveODAXdQIvvrNv5NuieGlJ+E=\r\n=XVCs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dmassaad-grnet","email":"dmassaad@admin.grnet.gr"},"maintainers":[{"name":"dmassaad-grnet","email":"dmassaad@admin.grnet.gr"},{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-identities-by-id-client_1.0.1_1668414756237_0.8952445985869946"},"_hasShrinkwrap":false},"1.0.3":{"name":"@digigov-oss/search-identities-by-id-client","version":"1.0.3","type":"module","description":"Client for searchidentitiesbyid service of Police","engines":{"node":">=16.13.1"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"dependencies":{"@digigov-oss/gsis-audit-record-db":"^1.3.1","soap":"^0.45.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient.git"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"test":"node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm ./test/test.ts","testesm":"node --experimental-json-modules --no-warnings ./test/test.mjs","testcjs":"node ./test/test.cjs","build":"rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig.commonjs.json && ./setType.sh"},"eslintConfig":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/recommended-requiring-type-checking"],"parserOptions":{"project":"./tsconfig.json"},"rules":{"max-len":["error",{"code":100}],"no-console":1,"no-extra-boolean-cast":0,"@typescript-eslint/restrict-plus-operands":0,"@typescript-eslint/explicit-module-boundary-types":0,"@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-floating-promises":0,"@typescript-eslint/no-unsafe-member-access":0,"@typescript-eslint/no-unsafe-assignment":0}},"eslintIgnore":[],"keywords":["police"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"devDependencies":{"@types/node":"^16.9.0","@types/object-inspect":"^1.8.1","object-inspect":"^1.12.0","ts-node":"^10.4.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.4"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/blob/main/README.md","license":"MIT","_id":"@digigov-oss/search-identities-by-id-client@1.0.3","dist":{"shasum":"b3fa3b357cf49fb4498a82498fce8dd0f35e48c1","integrity":"sha512-8Uoe4ChwnQvgM96FoKmAFtPwoRWiPU9HOyZle47KGkPvYg6toyM5uTpyxJ4K+y9uFlbd6CSgZqTZ8hY1f8VSfQ==","tarball":"https://registry.npmjs.org/@digigov-oss/search-identities-by-id-client/-/search-identities-by-id-client-1.0.3.tgz","fileCount":32,"unpackedSize":40084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBanoe8CzzmTLVejr0pw1m9hOOR9iMmFjI71uHFEJ11NAiEAwNTIHOlCqJCEjMyWYEhIiaTyb9+k34tqmGdg/pXvypU="}]},"_npmUser":{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"},"directories":{},"maintainers":[{"name":"dmassaad-grnet","email":"dmassaad@admin.grnet.gr"},{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-identities-by-id-client_1.0.3_1702288523312_0.2587658773301631"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-10T14:18:49.709Z","1.0.0":"2022-11-10T14:18:49.989Z","modified":"2023-12-11T09:55:23.723Z","1.0.1":"2022-11-14T08:32:36.413Z","1.0.3":"2023-12-11T09:55:23.489Z"},"maintainers":[{"name":"dmassaad-grnet","email":"dmassaad@admin.grnet.gr"},{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"description":"Client for searchidentitiesbyid service of Police","homepage":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/blob/main/README.md","keywords":["police"],"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient.git"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/searchidentitiesbyidclient/-/issues"},"readme":"# searchIdentitiesByIdClient\n\nClient to connect on Police service. \n\nReturns person identity details for the provided ADT.\n\n#### Example:\n\n```\nimport getIdentitys from '@digigov-oss/search-identities-by-name-client';\nimport config from './config.json'; \nconst test = async () => {\n\n   const input ={\n    adt: \"ΑΔ100000\", \n    reasonDesc:\"ΔΟΚΙΜΗ ΑΝΑΖΗΤΗΣΗΣ\"\n   }\n\n    try {\n        const Identitys = await getIdentitys(input, config.user, config.pass);\n        return Identitys;\n    } catch (error) {\n        console.log(error);\n    }\n}\n\ntest().then((record) => { console.log(record.searchIdentitiesByIdOutputRecord.identities); });\n```\n\n* you can use `overrides` to override the default values for auditrecord and input fields.\n* for your tests, you don't need to use the `overrides` mechanism, in that case, the default storage path will be used ie `/tmp`\n* look at [KED](https://www.gsis.gr/dimosia-dioikisi/ked/) standard guides for records you can use on auditInit\"\nAlso, you can use `overrides` to override the default storage engine. \n\nLook at module [AuditRecordDB](https://gitlab.grnet.gr/digigov-oss/auditRecordDB/-/blob/main/README.md) for more details on how to use the AuditEngine.\n\nIf you plan to use only the `FileEngine`, you can skip the installation of other engines by ignoring optional dependencies.\ni.e.` yarn install --ignore-optional`\n\n#### Returns\nan object like the following:\n```\n{\n        searchIdentitiesByIdOutputRecord: {\n                status: '1',\n                errorCode: '',\n                recordsNumber: 1,\n                transactionId: 0,\n                identities: {\n                        identity: [\n                                {\n                                        birthDate: '22/07/1982',\n                                        birthPlace: 'ΑΘΗΝΑ',\n                                        cancelReason: {\n                                                description: 'ΦΘΟΡΑ',\n                                                id: 3\n                                        },\n                                        fatherName: 'ΔΟΚΙΜΗ',\n                                        fatherNameLatin: 'DOKIMI',\n                                        gender: 'Α',\n                                        idnumber: 'ΑΔ100001',\n                                        isActive: false,\n                                        issueDate: Thu Apr 09 2015 00:00:00 GMT+0300 (Θερινή ώρα Ανατολικής Ευρώπης),\n                                        issueInstitution: {\n                                                description: 'ΜΗ ΜΗΧΑΝ/ΦΗΜΕΝΗ ΥΠΗΡΕΣΙΑ',\n                                                id: 9999\n                                        },\n                                        lastUpdateDate: Sat Jul 01 2017 11:56:02 GMT+0300 (Θερινή ώρα Ανατολικής Ευρώπης),\n                                        motherName: 'ΔΟΚΙΜΗ',\n                                        name: 'ΔΟΚΙΜΗ',\n                                        nameLatin: 'DOKIMI',\n                                        surname: 'ΔΟΚΙΜΗ',\n                                        surnameLatin: 'DOKIMI'\n                                }\n                        ]\n                }\n        },\n        callSequenceId: 48151708,\n        callSequenceDate: Fri Feb 11 2022 14:04:04 GMT+0200 (Χειμερινή ώρα Ανατολικής Ευρώπης),\n        errorRecord: null,\n        auditUnit: 'gov.gr',\n        auditTransactionId: '69',\n        auditProtocol: '18/2022-02-11',\n        auditTransactionDate: '2022-02-11T12:04:04Z',\n        auditUserIp: '127.0.0.1',\n        auditUserId: 'system'\n}\n```\nor an error object like the following:\n```\n{\n  searchIdentitiesByNameOutputRecord: {\n                status: '0',\n                errorCode: 'INPUT_ERROR',\n                errorMessage: 'Μη έγκυρη είσοδος , πεδίο: ΑΔΤ',\n                errorDescription: 'Μη έγκυρη είσοδος , πεδίο: ΑΔΤ',\n                recordsNumber: 0,\n                transactionId: 0,\n                identities: null\n  },\n  callSequenceId: 48089830,\n  callSequenceDate: 2022-02-11T11:42:02.034Z,\n  errorRecord: null,\n  auditUnit: 'gov.gr',\n  auditTransactionId: '64',\n  auditProtocol: '13/2022-02-11',\n  auditTransactionDate: '2022-02-11T11:42:01Z',\n  auditUserIp: '127.0.0.1',\n  auditUserId: 'system'\n}\n```\nor\n```\n{\n  callSequenceId: 48089837,\n  callSequenceDate: 2022-02-11T11:44:32.824Z,\n  errorRecord: {\n    errorCode: 'GEN_AUDIT_VALIDATION_INVALID_AUDIT_DATA',\n    errorDescr: 'Το πεδίο auditTransactionDate είναι υποχρεωτικό και πρέπει να είναι της μορφής YYYY-MM-ddTHH:mi:ssZ'\n  }\n}\n```\n\n#### note\n* There is two kinds of errors:\n system errors on `errorRecord`, and validation errors on `errorCode`.\n\n* Only \"ΔΟΚΙΜΗ\" user details work on the test.\n\n##### * Notes\nyou have to ask KED for policeIdentitySearchService_v0.98 documentation to get more info about the output and error fields.\n\n#### * known issues\nKED may advertises a wrong endpoint(!) for the `policeIdentitySearch` service on production WSDL. So, you have to use (override) the endpoint: `https://ked.gsis.gr/esb/policeIdentitySearchService`\nYou can do that by setting the `endpoint` property on the `overrides` object.\n\n```\nconst overrides = {\n    endpoint: 'https://ked.gsis.gr/esb/policeIdentitySearchService',\n}\n```\nOn windows you might face the error \"/tmp/sequence\" Path not found.\nThis is because the filestorage module is set by default to work on the UNIX temporary folder /tmp.\n\nWe can solve this by changing the call of `getIdentitys` and giving an overriddes.auditStoragePath property\n```\n const Identitys = await getIdentitys(input, config.user, config.pass, {auditStoragePath:'./test'});\n```","readmeFilename":"README.md","license":"MIT"}