{"_id":"@digigov-oss/get-employees-extended-with-status","_rev":"1-41985adfda80b36a8a0109c90dc26f03","name":"@digigov-oss/get-employees-extended-with-status","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@digigov-oss/get-employees-extended-with-status","version":"1.0.1","type":"module","description":"Client for getEmployeesExtendedWithStatus 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.3.1","soap":"^0.43.0"},"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/getemployeesextendedwithstatus.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":["gsis"],"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/getemployeesextendedwithstatus/-/issues"},"homepage":"https://gitlab.grnet.gr/digigov-oss/getemployeesextendedwithstatus/-/blob/main/README.md","license":"MIT","_id":"@digigov-oss/get-employees-extended-with-status@1.0.1","dist":{"shasum":"93df7cb2e88024eb046ef147fd88e6c442684f40","integrity":"sha512-qaiIj+TiWsfXqtqLFlr29kkm5Oc3Cx067dBFzae3YdOsQ2Owb43BDaRAFEQJFbIdJPa3VAkdxEgwctuYgFSAJA==","tarball":"https://registry.npmjs.org/@digigov-oss/get-employees-extended-with-status/-/get-employees-extended-with-status-1.0.1.tgz","fileCount":31,"unpackedSize":37927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxw/7DxQ65rWF1fIO/YGR+EmONn8sP/V0IV+RJQ4g21QIgQUZqMg5Fg7k4aKpQ38n2sOBaqoFxFetPx4fAEwYOLEs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitE50ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJWA/8C2m0NSzaxyRaciC2q4rSZR6oOrMSvY+lHk6JYMbdGJ1X0tub\r\nRjeQ/toT2TA7NPKYKswZ6yDNxEX09gGladN86dxu1qUVi6ZfvWhaY7Kf9liN\r\n6IAshFX7tFkWZUaHDfTLeGPkMf80GS1RvUk5ruTwSflZq+tLtW8jGN4PrE35\r\nh+Pfw3yi3V7Va2+7TA0D+2PL26LDOk9U7G0bpL8oF4wpS5LKzC1FjZW82He1\r\nE7Id4r9WgWi4vFQU9sc34NeC6F5/m4FAoLi+VdCVY0w/98rEV4UGmTEiOBLU\r\nB4wDEkLdzfZnev91m+al/RSCDXRC/Dm4F+KYX8jQICJrvISqQFQQFu3NwMLB\r\nJOJSqOx4rF3OvnibAzuGgt1JKKC0eMz781Ob6OFardYsE1OqN14HMXCgE8C9\r\n951NOrOcYAzbgQ6GZuZMb2nToCXUxxbh3EdfWCSxkBTqOG+5eCPLVK9ez76g\r\n0KEY56ffz8z8tJeGGUPmc2ZJq2Jy8HQQmSHWoeuh0WMMA4gGrZb/8GOy+KKp\r\nyvgAo9pIvtZUvhqUMZcIBUaQQfKr3q62Y4XnIs/Nng9DlE3TegXYOpIQADGc\r\n9IMW+QBFBeINSTo1Xq+1n3iC41hnyYeQNDMuqkHI/r96kiF1x8otFvykv1t7\r\ncYH7ZruLnaB6QVj8isrRsHhrrXAiVZg/RH8=\r\n=EWR2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"},"directories":{},"maintainers":[{"name":"dmichail","email":"dimitrios.michail@gmail.com"},{"name":"pskarvelis","email":"pskarvelis@admin.grnet.gr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-employees-extended-with-status_1.0.1_1655983732582_0.4173401935617014"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-23T11:28:52.521Z","1.0.1":"2022-06-23T11:28:52.789Z","modified":"2022-11-02T10:53:41.730Z"},"maintainers":[{"email":"dmassaad@admin.grnet.gr","name":"dmassaad-grnet"},{"email":"dimitrios.michail@gmail.com","name":"dmichail"},{"email":"pskarvelis@admin.grnet.gr","name":"pskarvelis"}],"description":"Client for getEmployeesExtendedWithStatus service of gsis","homepage":"https://gitlab.grnet.gr/digigov-oss/getemployeesextendedwithstatus/-/blob/main/README.md","keywords":["gsis"],"repository":{"type":"git","url":"git+https://gitlab.grnet.gr/digigov-oss/getemployeesextendedwithstatus.git"},"author":{"name":"Panagiotis Skarvelis","email":"pskarvelis@admin.grnet.gr"},"bugs":{"url":"https://gitlab.grnet.gr/digigov-oss/getemployeesextendedwithstatus/-/issues"},"license":"MIT","readme":"# getEmployeesExtendedWithStatus\n\nClient to connect on GSIS service.\n\nReturns extensive civil service work data.\n\n### Example\n```\nimport getInfo from '@digigov-oss/get-employees-extended-with-status';\nimport config from './config.json'; \n\nconst test = async () => {\n   \n   const input = {\n         extendedAfm: config.afm // replace with valid real afm of employee!\n   }\n   \n    try {\n        const Info = await getInfo(input, config.user, config.pass);\n        console.log(Info); \n    } catch (error) {\n        console.log(error);\n    }\n}\n\ntest();\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. Look at module [AuditRecordDB](https://gitlab.grnet.gr/digigov-oss/auditRecordDB/-/blob/main/README.md) for more details on how to use the AuditEngine.\n\n#### Returns\nan object like the following:\n```\n{\n        getEmployeesExtendedWithStatusOutputRecord: {\n                data: {\n                        vatId: 'ΑΦΜ',\n                        lastName: 'ΕΠΩΝΥΜΟ',\n                        firstName: 'Όνομα Υπαλ',\n                        fathersFirstName: 'Όνομα Πατέρα',\n                        employmentInfos: {\n                                extendedItem: [\n                                        {\n                                                organicOrganizationId: '80640',\n                                                organicOrganizationName: 'ΕΙΔΙΚΟΣ ΛΟΓΑΡΙΑΣΜΟΣ ΚΟΝΔΥΛΙΩΝ ΕΡΕΥΝΑΣ Ε.Κ.Ε.Φ.Ε \"ΔΗΜΟΚΡΙΤΟΣ\"',\n                                                workOrganizationId: '80640',\n                                                organizationName: 'ΕΙΔΙΚΟΣ ΛΟΓΑΡΙΑΣΜΟΣ ΚΟΝΔΥΛΙΩΝ ΕΡΕΥΝΑΣ Ε.Κ.Ε.Φ.Ε \"ΔΗΜΟΚΡΙΤΟΣ\"',\n                                                employmentTypeCategory: 'fixed_term',\n                                                staffCategory: 'temporary',\n                                                employmentTypeId: 37,\n                                                employmentTypeDescription: 'ΣΥΜΒΑΣΙΟΥΧΟΙ ΕΡΓΟΥ /ΧΡΗΜΑΤΟΔΟΤΟΥΜΕΝΑ ΜΕΣΩ ΕΣΠΑ Ή ΑΠΟ ΙΔΙΟΥΣ ΠΟΡΟΥΣ',\n                                                employeeCategoryId: 27,\n                                                employeeCategoryDescription: 'ΛΟΙΠΟ ΕΚΤΑΚΤΟ ΠΡΟΣΩΠΙΚΟ (ΠΛΗΝ ΚΑΛΛΙΤΕΧΝΙΚΟ)',\n                                                hireDate: '2019-07-05',\n                                                contractEndDate: '2019-09-04',\n                                                primary: false,\n                                                supervisor: false,\n                                                supervisorPositionId: 8,\n                                                supervisorPositionDescription: 'ΧΩΡΙΣ ΘΕΣΗ ΕΥΘΥΝΗΣ'\n                                        },\n                                ]\n                        }\n                }\n        },\n        callSequenceId: 50155765,\n        callSequenceDate: Thu Jun 23 2022 14:10:55 GMT+0300 (Θερινή ώρα Ανατολικής Ευρώπης),\n        errorRecord: null,\n        auditUnit: 'gov.gr',\n        auditTransactionId: '17',\n        auditProtocol: '17/2022-06-23',\n        auditTransactionDate: '2022-06-23T11:10:54Z',\n        auditUserIp: '127.0.0.1',\n        auditUserId: 'system'\n}\n```\n* Please note: on test the `lastName`,`firstName`,`fathersFirstName` are always returned with mock values....\n\nor an error object like the following:\n```\n{\n        callSequenceId: 50193758,\n        callSequenceDate: Thu Jun 23 2022 14:20:49 GMT+0300 (Θερινή ώρα Ανατολικής Ευρώπης),\n        errorRecord: {\n                errorCode: 'GEN_INVALID_DATA',\n                errorDescr: 'Το πεδίο afm δεν είναι έγκυρος Αριθμός Φορολογικού Μητρώου'\n        },\n        auditUnit: 'gov.gr',\n        auditTransactionId: '18',\n        auditProtocol: '18/2022-06-23',\n        auditTransactionDate: '2022-06-23T11:20:48Z',\n        auditUserIp: '127.0.0.1',\n        auditUserId: 'system'\n}\n```\n### Notes\nIn case of KED advertises wrong endpoint on production you have to use (override) the endpoint: `https://ked.gsis.gr/esb/apografiEmployeesService`\nYou can do that by setting the `endpoint` property on the `overrides` object.\n```\nconst overrides = {\n    endpoint: 'https://ked.gsis.gr/esb/apografiEmployeesService',\n}\n```\n\n","readmeFilename":"README.md"}