restauração
This commit is contained in:
parent
c7c8e377c3
commit
4d5c641223
357 changed files with 23543 additions and 591 deletions
9
dist/GEE/OutrasEmissoes/calculoAlternativo.d.ts
vendored
Normal file
9
dist/GEE/OutrasEmissoes/calculoAlternativo.d.ts
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { type tipoFonteObjeto } from "../interfaces";
|
||||
export declare const fontesEscopo1OutrasEmissoes: tipoFonteObjeto<[
|
||||
"descricao"
|
||||
], [
|
||||
"emissao",
|
||||
"emissaoCH4",
|
||||
"emissaoN2O",
|
||||
"emissaoBio"
|
||||
]>;
|
||||
52
dist/GEE/OutrasEmissoes/calculoAlternativo.js
vendored
Normal file
52
dist/GEE/OutrasEmissoes/calculoAlternativo.js
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.fontesEscopo1OutrasEmissoes = void 0;
|
||||
const resposta_1 = require("../../resposta");
|
||||
const gwp_1 = require("../ListasFatoresEmissao/gwp");
|
||||
const interfaces_1 = require("../interfaces");
|
||||
exports.fontesEscopo1OutrasEmissoes = {
|
||||
escopo: "Escopo1",
|
||||
idTipoFonte: "outrasEmissoes",
|
||||
descricao: "Emissões estimadas a partir de outras ferramentas de cálculo",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "descricao",
|
||||
descricao: "Descrição da fonte",
|
||||
tipo: interfaces_1.tiposCamposGee.texto,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "emissao",
|
||||
descricao: "Emissões de CO2 (t)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "emissaoCH4",
|
||||
descricao: "Emissões de CH4 (t)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "emissaoN2O",
|
||||
descricao: "Emissões de N2O (t)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
{
|
||||
campo: "emissaoBio",
|
||||
descricao: "Emissões de CO2 Biogênico (t)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ cad, reg }) => {
|
||||
const descricao = cad.descricao;
|
||||
if (!descricao) {
|
||||
return resposta_1.respostaCM.addErro("Não foi encontrado um tipo de resíduo");
|
||||
}
|
||||
const carbono = Number(reg.emissao) * Number(gwp_1.gwp[0].gwp) +
|
||||
Number(reg.emissaoCH4) * Number(gwp_1.gwp[1].gwp) +
|
||||
Number(reg.emissaoN2O) * Number(gwp_1.gwp[2].gwp);
|
||||
const bio = Number(reg.emissaoBio);
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=calculoAlternativo.js.map
|
||||
1
dist/GEE/OutrasEmissoes/calculoAlternativo.js.map
vendored
Normal file
1
dist/GEE/OutrasEmissoes/calculoAlternativo.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"calculoAlternativo.js","sourceRoot":"","sources":["../../../src/GEE/OutrasEmissoes/calculoAlternativo.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,qDAAkD;AAClD,8CAAqE;AAExD,QAAA,2BAA2B,GAGpC;IACF,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,gBAAgB;IAC7B,SAAS,EAAE,8DAA8D;IACzE,iBAAiB,EAAE;QACjB;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,oBAAoB;YAC/B,IAAI,EAAE,2BAAc,CAAC,KAAK;SAC3B;KACF;IACD,iBAAiB,EAAE;QACjB;YACE,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,2BAAc,CAAC,MAAM;SAC5B;QACD;YACE,KAAK,EAAE,YAAY;YACnB,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,2BAAc,CAAC,MAAM;SAC5B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