87 lines
2.1 KiB
TypeScript
87 lines
2.1 KiB
TypeScript
import type { tipoResposta } from "../resposta";
|
|
export declare enum tiposCamposGee {
|
|
texto = "texto",
|
|
numero = "numero",
|
|
inteiro = "inteiro",
|
|
opcoes = "opcoes"
|
|
}
|
|
type ClasseGeeInventarios = any;
|
|
type ClasseGeeFontes = any;
|
|
type ClasseGeeRegistros = any;
|
|
type tipoCampo = {
|
|
tipo: Exclude<tiposCamposGee, tiposCamposGee.opcoes>;
|
|
opcoes?: undefined;
|
|
} | {
|
|
tipo: Extract<tiposCamposGee, tiposCamposGee.opcoes>;
|
|
opcoes: string[] | {
|
|
[k: string]: string;
|
|
};
|
|
};
|
|
export type tipoEstruturaCadastroGee<T> = {
|
|
idCampo: T;
|
|
descricao: string;
|
|
} & tipoCampo;
|
|
export type tipoEstruturaRegistroGee<T> = {
|
|
campo: T;
|
|
descricao: string;
|
|
} & tipoCampo;
|
|
export declare const escopos: {
|
|
Escopo1: string;
|
|
Escopo2: string;
|
|
Escopo3: string;
|
|
};
|
|
export declare enum setorGee {
|
|
energia = "energia",
|
|
residencial = "residencial",
|
|
comercial = "comercial",
|
|
manufatura = "manufatura"
|
|
}
|
|
export declare const setorGeeDescricao: {
|
|
[k in setorGee]: string;
|
|
};
|
|
export type tipoFonteObjeto<T extends string[], U extends string[]> = {
|
|
escopo: keyof typeof escopos;
|
|
idTipoFonte: string;
|
|
descricao: string;
|
|
estruturaCadastro: tipoEstruturaCadastroGee<T[number]>[];
|
|
estruturaRegistro: tipoEstruturaRegistroGee<U[number]>[];
|
|
condicaoCadastro?: {
|
|
campos: T[number][];
|
|
condicao: (opcoes: {
|
|
[cr in T[number]]: any;
|
|
}) => boolean;
|
|
}[];
|
|
formula: (opcoes: {
|
|
cad: {
|
|
[cr in T[number]]: any;
|
|
};
|
|
reg: {
|
|
[cr in U[number]]: any;
|
|
};
|
|
inventario: ClasseGeeInventarios;
|
|
fonte: ClasseGeeFontes;
|
|
registro: ClasseGeeRegistros;
|
|
}) => tipoResposta<[carbono: number, biogenico: number | null]>;
|
|
};
|
|
export declare enum messes {
|
|
Janeiro = 1,
|
|
Fevereiro = 2,
|
|
Março = 3,
|
|
Abril = 4,
|
|
Maio = 5,
|
|
Junho = 6,
|
|
Julho = 7,
|
|
Agosto = 8,
|
|
Setembro = 9,
|
|
Outubro = 10,
|
|
Novembro = 11,
|
|
Dezembro = 12
|
|
}
|
|
export declare enum frequencias {
|
|
Mensal = "30",
|
|
Bimestral = "60",
|
|
Trimestral = "90",
|
|
Semestral = "180",
|
|
Anual = "365"
|
|
}
|
|
export {};
|