melhorias no build
This commit is contained in:
parent
cd6d9c35a2
commit
1d6a109fc4
387 changed files with 765 additions and 23443 deletions
|
|
@ -1,7 +0,0 @@
|
|||
import { type tipoFonteObjeto } from "../../interfaces";
|
||||
export declare const fontesEscopo2CompraTermica: tipoFonteObjeto<[
|
||||
"tipo",
|
||||
"eficiencia"
|
||||
], [
|
||||
"vapor"
|
||||
]>;
|
||||
48
dist/GEE/Escopo2/compraTermica/compraTermica.js
vendored
48
dist/GEE/Escopo2/compraTermica/compraTermica.js
vendored
|
|
@ -1,48 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.fontesEscopo2CompraTermica = void 0;
|
||||
const resposta_1 = require("../../../resposta");
|
||||
const listas_1 = require("../../ListasFatoresEmissao/listas");
|
||||
const interfaces_1 = require("../../interfaces");
|
||||
exports.fontesEscopo2CompraTermica = {
|
||||
escopo: "Escopo2",
|
||||
idTipoFonte: "CompraTermica",
|
||||
descricao: "Compra de energia térmica",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "tipo",
|
||||
descricao: "Tipo de combustível",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: listas_1.listaCombustiveis,
|
||||
},
|
||||
{
|
||||
idCampo: "eficiencia",
|
||||
descricao: "Eficiência do Fervedor (%)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "vapor",
|
||||
descricao: "Vapor comprado (GJ)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ cad, reg }) => {
|
||||
const eficiencia = cad.eficiencia;
|
||||
if (!eficiencia) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado eficiencia");
|
||||
}
|
||||
if (eficiencia > 100) {
|
||||
return resposta_1.respostaCM.addErro("O valor da eficiencia deve estar entre 0 e 100");
|
||||
}
|
||||
const tipoCombustivel = cad.tipo;
|
||||
if (!tipoCombustivel) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado tipo de combustivel");
|
||||
}
|
||||
const carbono = Number(reg.vapor) / (cad.eficiencia / 100);
|
||||
const bio = carbono / 1000;
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=compraTermica.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"compraTermica.js","sourceRoot":"","sources":["../../../../src/GEE/Escopo2/compraTermica/compraTermica.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAC/C,8DAAsE;AACtE,iDAAwE;AAE3D,QAAA,0BAA0B,GAGnC;IACF,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,eAAe;IAC5B,SAAS,EAAE,2BAA2B;IACtC,iBAAiB,EAAE;QACjB;YACE,OAAO,EAAE,MAAM;YACf,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,2BAAc,CAAC,MAAM;YAC3B,MAAM,EAAE,0BAAiB;SAC1B;QACD;YACE,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,4BAA4B;YACvC,IAAI,EAAE,2BAAc,CAAC,MAAM;SAC5B;KACF;IACD,iBAAiB,EAAE;QACjB;YACE,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,2BAAc,CAAC,MAAM;SAC5B;KACF;IACD,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE;QACxB,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,qBAAU,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,UAAU,GAAG,GAAG,EAAE,CAAC;YACrB,OAAO,qBAAU,CAAC,OAAO,CACvB,gDAAgD,CACjD,CAAC;QACJ,CAAC;QACD,MAAM,eAA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