{"_id":"@digigov-oss/get-nnc-identity-ext-client","_rev":"3-a52d317636b7e9214642df2ea10dfeff","name":"@digigov-oss/get-nnc-identity-ext-client","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.1":{"name":"@digigov-oss/get-nnc-identity-ext-client","version":"1.1.1","type":"module","description":"Client for getNncIdentityExt service of GSIS","engines":{"node":">=16.13.1"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"dependencies":{"@digigov-oss/gsis-audit-record-db":"^1.2.0","soap":"^0.43.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient.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","testPostgreSql":"node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm ./test/testPostgreSql.ts","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":["gsis","emep","getNncIdentityExt"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"devDependencies":{"@types/node":"^16.9.0","ts-node":"^10.4.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.4"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/blob/main/README.md","types":"./dist/cjs/index.d.ts","gitHead":"ad094f016eeca41dd721bfe26a2ae5238a92ee3d","_id":"@digigov-oss/get-nnc-identity-ext-client@1.1.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-QyhQbrVvtLLogOX/MVAst67G3S9ffoToJ2j45L/cbojS+/g9YEtpSgeFYGc76Jj4dUUAIown/l3rr8bz0Wh8iw==","shasum":"e3888abe8e046d43dab26b9b2eacac6ed448bb32","tarball":"https://registry.npmjs.org/@digigov-oss/get-nnc-identity-ext-client/-/get-nnc-identity-ext-client-1.1.1.tgz","fileCount":29,"unpackedSize":38578,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa+lQLEY8Ku7UODOmT9fumGPrAjv5Dl8GEtA9WLYHtigIhAO1Cm9fOI1Uu755rkhgFycmEFiqZ2ubluVNsLPfxoVlo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYM8sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVlw//UiOFDdUhEe6sy5t8KaGyl2yJ1yZLFdkGMm160U9eiocDQvwl\r\nFLOC1mor1uRnmMYU3fCIUdBzwjBP1v7Z8Iw1RrzHG4uzUOaA7zBqbHA26KyJ\r\ndgDJfs6gqeu3fabikt8vIjoUTyOcw34r5CkaW9ZXRKvFRM0TQY4aXnCzlhqL\r\n7t18F+/tnPFDGEK6DQXBzmEOYamOvKgEfylSK8fvJ5HSfZpTwsPVWLWThnqZ\r\n5LP07l+jLo11kHwIfBQGmW6q7yQ/IDCPmuCz98vUq02Et5Bg6RCWpFg33uuz\r\nQJFJ7lsSvFT4NwTIZv5aPqjXhH5kbxZNyd/oxnV8fMycjbf2rmPQt69PsZcL\r\ngLyD02iTxrUhoTwaf3wzM22NWFTmJ1ZJk/LQ+h9VXKfUawQoU+Nvq56apE7a\r\n5NGhQS0MRayaA3q2UdFZ7LxNQ8QK3iKO0S0DjjUpApI5oJY9M5E//72rmcDn\r\n62MZZWoY2Bps/xmB+6k0PAgJXIbMGRvIasnn6IPgtaaszRpTCgu1Vg6EJV0+\r\naGx2FYkjCIUsSPke1Za2l/M0gz32LlJbDHW+kn66ePQmshI7WQkydiuu3EW+\r\nbpgOmQq93G9UFR9byM0V5PX3YckJof5HWa4CRNlJdXwmOWnQu4w8ZyZkbdYr\r\nUP6n//sPfuauFMqd118aYPchh7IdEXohJBw=\r\n=0sVx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dmichail","email":"dimitrios.michail@gmail.com"},"maintainers":[{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-nnc-identity-ext-client_1.1.1_1667288876771_0.2828867481724542"},"_hasShrinkwrap":false},"1.1.2":{"name":"@digigov-oss/get-nnc-identity-ext-client","version":"1.1.2","type":"module","description":"Client for getNncIdentityExt service of GSIS","engines":{"node":">=16.13.1"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"dependencies":{"@digigov-oss/gsis-audit-record-db":"^1.2.0","soap":"^0.43.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient.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","testPostgreSql":"node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm ./test/testPostgreSql.ts","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":["gsis","emep","getNncIdentityExt"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"devDependencies":{"@types/node":"^16.9.0","ts-node":"^10.4.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.4"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/blob/main/README.md","types":"./dist/cjs/index.d.ts","gitHead":"88409a6b2b9d5fc2579b65e1142d7581523c5240","_id":"@digigov-oss/get-nnc-identity-ext-client@1.1.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-kl7O69EtNGcBnbj9tBq6QfYc7HYH/zqdNrPYjG0EEDaK0q3tJN4Jw+WqK/pHz+gxWiLTI7Tpb4rQjjoCTjtInw==","shasum":"86b83fc46ba1c02c26afa0fc6ac3eac261a81efa","tarball":"https://registry.npmjs.org/@digigov-oss/get-nnc-identity-ext-client/-/get-nnc-identity-ext-client-1.1.2.tgz","fileCount":29,"unpackedSize":39480,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlrWyayjAqsZhzh4UBPjYCM42TSNQyQJNHodf66s7L5AiEA2sCb7vlpBeMoxlWrmpkBtloy+pv/DUVZKtVMeW1ZJtE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYTXtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkSQ/9GFEUJ1RFh1YWupDhWZZZn35qyYQYd2rsEDGra7+6owOiLZYm\r\ntIzzKwVKLq/muXBJL7VD2NMLYfAG/8os4IURDkVXFnrTgzEXBq2wnPszU7aD\r\nHJ136TQ2sgWMVXClQdE87jr4hsQrf87+Tt7ryPb0QlkFEfAYEuOCLOgKqauk\r\npMrVCpGylF+kKN8CKXT7O05NitZ6uLgw0tD03Ef+gmetHkCkLvtSCoiZTH17\r\nRTuFJ+Iq1ViU8cWo/eSkGLK05HLNO4gqdjooQxd+wnOLGaPVT3u8lN3zqPGe\r\n9nfny9JayFD9NRayVYKhbBiu1xXV7pUmNRgu7fjJVOCBkmUKBsoSCW2TheQp\r\nJYiBbOsgmMxQugKpjvSENvlAXjzk60vbA807tZz/pIvG21dWwrGZZryXPfbf\r\ndbQ4eGeL0Z3wZ49e5ZSiZIk735p/nqO/iGgF2EBhAKnAxSONuX0HP1Axu5kE\r\nQGcZgIFVHZHDv0DOtJNSaP/77k0FvYdk2PNVl9rstwof3WKRGHFu6ns+xBcT\r\nEHTC6bww0fst9SKT8TVCMb4DuhrcvFeMcJlP30AXSpJ4piQ8dqTORUT6EqSu\r\n9YH4e9GVoSICHY9hh5uQUfWIiEv9NELKIz+Zpn4D8/eR6kpa+Sq/3s/rUTvr\r\nBuwug2PzRfLfs4gVUxSm2EzTlLwrNcrI5j4=\r\n=wCWr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dmichail","email":"dimitrios.michail@gmail.com"},"maintainers":[{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-nnc-identity-ext-client_1.1.2_1667315180932_0.4550524981665567"},"_hasShrinkwrap":false},"1.1.4":{"name":"@digigov-oss/get-nnc-identity-ext-client","version":"1.1.4","type":"module","description":"Client for getNncIdentityExt service of GSIS","engines":{"node":">=16.13.1"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"dependencies":{"@digigov-oss/gsis-audit-record-db":"^1.2.0","soap":"^0.45.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient.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","testPostgreSql":"node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm ./test/testPostgreSql.ts","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":["gsis","emep","getNncIdentityExt"],"licenses":[{"type":"MIT","url":"http://en.wikipedia.org/wiki/MIT_License"}],"devDependencies":{"@types/node":"^16.9.0","ts-node":"^10.4.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.4"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/blob/main/README.md","license":"MIT","_id":"@digigov-oss/get-nnc-identity-ext-client@1.1.4","dist":{"shasum":"699be8c5ca43edeb1363d403f37a5559b9060fc8","integrity":"sha512-X0hL/aAXGdsKluTeb4Ug9Q4hG68KaVOZv0g+niZ5pxNJerp4ru27HwOCzAcz17VRW2zVhQ1dPv2nZLxMLPpE8g==","tarball":"https://registry.npmjs.org/@digigov-oss/get-nnc-identity-ext-client/-/get-nnc-identity-ext-client-1.1.4.tgz","fileCount":35,"unpackedSize":70729,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ3PUYtn3ydyJtdKxzzhgJGKRHFx/ZVXvtJFFBjfdLeAIgG+2dFXQnn0+smJJsnSDec0SRJopqGOrj0iUkWc1FpNk="}]},"_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/get-nnc-identity-ext-client_1.1.4_1702068267667_0.11503240101302459"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-01T07:47:56.723Z","1.1.1":"2022-11-01T07:47:56.967Z","modified":"2023-12-08T20:44:28.108Z","1.1.2":"2022-11-01T15:06:21.069Z","1.1.4":"2023-12-08T20:44:27.836Z"},"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 getNncIdentityExt service of GSIS","homepage":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/blob/main/README.md","keywords":["gsis","emep","getNncIdentityExt"],"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient.git"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/getnncidentityextclient/-/issues"},"readme":"# Client for getNncIdentityExt service of KED\n\nClient to connect EMEP service, useful for nextjs/nodejs projects.\n\n#### Example:\n```\nimport getIdentityExt from '@digigov-oss/get-nnc-identity-ext-client';\n\nconst test = async () => {\n   const overrides = {\n        prod:false,\n        auditInit: {\n            auditUnit: 'grnet.gr',\n        },\n        auditStoragePath: '/auditStorage',\n    }\n\n    try {\n        const Identity = await getIdentityExt(\"052704062\", \"username\", \"password\",overrides);\n         return Identity;\n        } catch (error) {\n        console.log(error);\n        }\n}\n\ntest().then((identity) => { console.log('getNncIdentityExtOutputRecord',identity); });\n```\n* you can use `overrides` to override the default values\n* for your tests, you don't need to use the `overrides` mecahnism,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```\nimport getIdentityExt from '@digigov-oss/get-nnc-identity-Ext-client';\nimport {PostgreSqlEngine} from '@digigov-oss/gsis-audit-record-db'; \nconst test = async () => {\n    try {\n        const overrides = {\n        auditEngine: new PostgreSqlEngine('postgres://postgres:postgres@localhost:5432/postgres'),\n        auditInit: {\n            auditUnit: 'grnet.gr',\n        },\n        }\n        const Identity = await getIdentityExt(\"052704062\", config.user, config.pass, overrides);\n        return Identity;\n    } catch (error) {\n        console.log(error);\n    }\n}\n\ntest().then((identity) => { console.log('getNncIdentityExtOutputRecord',identity); });\n\n```\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  countryCode: 'GRC',\n  countryDescr: 'Ελλάδα',\n  addressStreet: 'Βενιζέλου Ελευθερίου',\n  addressNumber: '86',\n  addressCity: 'Αθήνα',\n  telephone: '2101234567',\n  countryCode2: 'GRC',\n  countryDescr2: 'Ελλάδα',\n  addressStreet2: 'Ιάσονος',\n  addressNumber2: '14',\n  addressCity2: 'Αθήνα',\n  mobile: '6979114217',\n  email: 'andreas-hal@hotmail.com',\n  epikForeisFlag: '1',\n  epidForeisFlag: '1',\n  auditUnit: 'gov.gr',\n  auditTransactionId: '52',\n  auditProtocol: '1/2022-02-11',\n  auditTransactionDate: '2022-02-11T08:39:50Z',\n  auditUserIp: '127.0.0.1',\n  auditUserId: 'system'  \n}\n```\nor an error message like:\n```\n{ message: 'Ο Α.Φ.Μ. δεν είναι καταχωρημένος' }\n```\n\n#### Available AFM for testing:\n019285930,  052704062,  076509078 \n\n##### * Notes\nyou have to ask KED for notificationCenter_v_0.95 documentation to get more info about the output and error fields.\n\n#### * known issues\nKED advertises a wrong endpoint(!) for the `getNncIdentityExt` service on production WSDL. So, you have to use (override) the endpoint: `https://ked.gsis.gr/esb/notificationCenterElementsService`\nYou can do that by setting the `endpoint` property on the `overrides` object.\n\n```\nconst overrides = {\n    endpoint: 'https://ked.gsis.gr/esb/notificationCenterElementsService',\n}\n```\n","readmeFilename":"README.md","license":"MIT"}