Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@digigov-oss/get-employees-extended-with-status
Advanced tools
Client for getEmployeesExtendedWithStatus service of gsis
Client to connect on GSIS service.
Returns extensive civil service work data.
import getInfo from '@digigov-oss/get-employees-extended-with-status';
import config from './config.json';
const test = async () => {
const input = {
extendedAfm: config.afm // replace with valid real afm of employee!
}
try {
const Info = await getInfo(input, config.user, config.pass);
console.log(Info);
} catch (error) {
console.log(error);
}
}
test();
overrides
to override the default values for auditrecord and input fields.overrides
mechanism, in that case, the default storage path will be used ie /tmp
overrides
to override the default storage engine. Look at module AuditRecordDB for more details on how to use the AuditEngine.an object like the following:
{
getEmployeesExtendedWithStatusOutputRecord: {
data: {
vatId: 'ΑΦΜ',
lastName: 'ΕΠΩΝΥΜΟ',
firstName: 'Όνομα Υπαλ',
fathersFirstName: 'Όνομα Πατέρα',
employmentInfos: {
extendedItem: [
{
organicOrganizationId: '80640',
organicOrganizationName: 'ΕΙΔΙΚΟΣ ΛΟΓΑΡΙΑΣΜΟΣ ΚΟΝΔΥΛΙΩΝ ΕΡΕΥΝΑΣ Ε.Κ.Ε.Φ.Ε "ΔΗΜΟΚΡΙΤΟΣ"',
workOrganizationId: '80640',
organizationName: 'ΕΙΔΙΚΟΣ ΛΟΓΑΡΙΑΣΜΟΣ ΚΟΝΔΥΛΙΩΝ ΕΡΕΥΝΑΣ Ε.Κ.Ε.Φ.Ε "ΔΗΜΟΚΡΙΤΟΣ"',
employmentTypeCategory: 'fixed_term',
staffCategory: 'temporary',
employmentTypeId: 37,
employmentTypeDescription: 'ΣΥΜΒΑΣΙΟΥΧΟΙ ΕΡΓΟΥ /ΧΡΗΜΑΤΟΔΟΤΟΥΜΕΝΑ ΜΕΣΩ ΕΣΠΑ Ή ΑΠΟ ΙΔΙΟΥΣ ΠΟΡΟΥΣ',
employeeCategoryId: 27,
employeeCategoryDescription: 'ΛΟΙΠΟ ΕΚΤΑΚΤΟ ΠΡΟΣΩΠΙΚΟ (ΠΛΗΝ ΚΑΛΛΙΤΕΧΝΙΚΟ)',
hireDate: '2019-07-05',
contractEndDate: '2019-09-04',
primary: false,
supervisor: false,
supervisorPositionId: 8,
supervisorPositionDescription: 'ΧΩΡΙΣ ΘΕΣΗ ΕΥΘΥΝΗΣ'
},
]
}
}
},
callSequenceId: 50155765,
callSequenceDate: Thu Jun 23 2022 14:10:55 GMT+0300 (Θερινή ώρα Ανατολικής Ευρώπης),
errorRecord: null,
auditUnit: 'gov.gr',
auditTransactionId: '17',
auditProtocol: '17/2022-06-23',
auditTransactionDate: '2022-06-23T11:10:54Z',
auditUserIp: '127.0.0.1',
auditUserId: 'system'
}
lastName
,firstName
,fathersFirstName
are always returned with mock values....or an error object like the following:
{
callSequenceId: 50193758,
callSequenceDate: Thu Jun 23 2022 14:20:49 GMT+0300 (Θερινή ώρα Ανατολικής Ευρώπης),
errorRecord: {
errorCode: 'GEN_INVALID_DATA',
errorDescr: 'Το πεδίο afm δεν είναι έγκυρος Αριθμός Φορολογικού Μητρώου'
},
auditUnit: 'gov.gr',
auditTransactionId: '18',
auditProtocol: '18/2022-06-23',
auditTransactionDate: '2022-06-23T11:20:48Z',
auditUserIp: '127.0.0.1',
auditUserId: 'system'
}
In case of KED advertises wrong endpoint on production you have to use (override) the endpoint: https://ked.gsis.gr/esb/apografiEmployeesService
You can do that by setting the endpoint
property on the overrides
object.
const overrides = {
endpoint: 'https://ked.gsis.gr/esb/apografiEmployeesService',
}
FAQs
Client for getEmployeesExtendedWithStatus service of gsis
We found that @digigov-oss/get-employees-extended-with-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.