prg-class
Version:
Clases genéricas utilizadas por microservicios Programamos SPA.
229 lines (228 loc) • 3.88 kB
TypeScript
export interface IParamRet {
'error': string;
'json': any;
's': number;
}
export interface IStorProcParam {
name: string;
type: string;
value: string;
}
export interface IVersionData {
a: string;
v: string;
}
export interface IRut {
'r': number;
'd': string;
'rut': string;
'rp': string;
}
export interface ISqlExec {
's': string;
'm': string;
'a': boolean;
'c': boolean;
'ct': boolean;
'ii': number;
'ca': number;
'cc': number;
'cf': number;
'cw': number;
}
export interface UPRM {
UA: string;
IP: string;
P_USR: string;
P_SYS: string;
P_EMP: string;
P_SUC: string;
P_TKN: string;
}
export interface IConnParams {
host: string;
user: string;
password: string;
database: string;
}
export interface IPagesize {
name: string;
mt: number;
mb: number;
ml: number;
mr: number;
w: number;
h: number;
}
export interface IColDocPdf {
c: string;
w: number;
a: string;
f: string;
ft: string;
mx: number;
fs: number;
md: number;
}
export interface IAudDataMod {
n: string;
c: string;
a: string;
d: string;
}
export interface ICheckData {
n: string;
c: string;
t: string;
fa: string;
}
export interface IParamXlsExport {
'fileName': string;
'stripRow': boolean;
'pattern': {
'even': {
'style': string;
'color': {
'argb': string;
};
};
'odd': {
'style': string;
'color': {
'argb': string;
};
};
};
}
export interface IColExcel {
t?: number;
a?: string;
n: string;
f?: string;
f1?: string;
c: string;
w?: number;
tt?: string;
mw?: number;
s?: boolean;
lo?: number;
}
export interface IWorkbook {
title: string;
tag: string;
subject: string;
}
export interface IParamXls {
l: IColExcel[];
d: any[];
ps: number;
cp: number;
wb: IWorkbook;
filename?: string;
u: string;
strip: boolean;
mc?: IMergedCell[];
vw?: any[];
cc?: ICellColor;
fml?: number;
tag?: any;
}
export interface ICellColor {
colIni: number;
qty: number;
step: number;
color: string;
}
export interface IMergedCell {
il: string;
in: number;
fl: string;
fn: number;
v: string;
a: string;
}
export interface IDataXls {
data: any[];
fields: any[];
}
export interface IMailServerParam {
userFrom: string;
host: string;
port: number;
secure: boolean;
auth: {
user: string;
pass: string;
};
}
export interface ITextHtml {
m: string;
e: number;
h: {
b: string;
r: string;
};
}
export interface IFileUpload {
t: string;
i: number;
d: string;
o: string;
on: string;
n: string;
e: string;
s: number;
p: string;
}
export interface ITable {
T: string;
V: string;
PK: string;
}
export interface IParamSP {
n: string;
v: any;
t: string;
p: number;
e?: number;
}
export interface IPageData {
pageSize: number;
currPage: number;
records: {
from: number;
to: number;
total: number;
};
}
export interface IColToRender {
id?: string;
w: number;
h?: string;
a?: string;
cl?: string;
b?: boolean;
img?: boolean;
imgH?: number;
imgW?: number;
fs?: number;
csv?: boolean;
pd?: number[];
bd?: string;
elas?: boolean;
u?: boolean;
}
export interface IDBError {
k: number;
i: number;
msg: string;
imsg?: string;
ik?: number;
}
export interface IDBErrorInternal {
code: string;
errno: number;
sqlMessage: string;
sqlState: string;
sql: number;
}