Commit 9ea8fd5d authored by Panagiotis Skarvelis's avatar Panagiotis Skarvelis
Browse files

prepare for publish

parent eabdd510
import { AuditRecord } from '@digigov-oss/gsis-audit-record-db';
export declare type AuditInit = AuditRecord;
export declare type getNncIdentityOutputRecord = {
countryCode?: string;
countryDescr?: string;
addressStreet?: string;
addressNumber?: string;
addressCity?: string;
addressZipCode?: string;
telephone?: string;
countryCode2?: string;
countryDescr2?: string;
addressStreet2?: string;
addressNumber2?: string;
addressCity2?: string;
addressZipCode2?: string;
telephone2?: string;
mobile?: string;
email?: string;
epikForeisFlag?: string;
epidForeisFlag?: string;
message?: string;
};
export declare type errorRecord = {
errorCode: string;
errorDescr: string;
};
export declare type Overides = {
test?: boolean;
prod?: boolean;
auditInit?: AuditRecord;
auditStoragePath?: string;
};
......
......@@ -2,10 +2,10 @@ import soap from './soap';
import { generateAuditRecord } from '@digigov-oss/gsis-audit-record-db';
import config from './config.json';
export const getIdentity = async (afm, user, pass, overides) => {
const test = overides?.test ?? false;
const prod = overides?.prod ?? false;
const auditInit = overides?.auditInit ?? {};
const auditStoragePath = overides?.auditStoragePath ?? "/tmp";
const wsdl = test == true ? config.test.wsdl : config.prod.wsdl;
const wsdl = prod == true ? config.prod.wsdl : config.test.wsdl;
const auditRecord = generateAuditRecord(auditInit, auditStoragePath);
if (!auditRecord)
throw new Error('Audit record is not initialized');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment