This commit is contained in:
Luiz Silva 2024-05-06 08:45:08 -03:00
commit b5ca2d50ac
337 changed files with 24672 additions and 0 deletions

87
dist/GEE/interfaces.d.ts vendored Normal file
View file

@ -0,0 +1,87 @@
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 {};