restauração
This commit is contained in:
parent
c7c8e377c3
commit
4d5c641223
357 changed files with 23543 additions and 591 deletions
8
dist/GEE/Escopo3/upstream/aereo/aereo1.d.ts
vendored
Normal file
8
dist/GEE/Escopo3/upstream/aereo/aereo1.d.ts
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { type tipoFonteObjeto } from "../../../interfaces";
|
||||
export declare const escopo3aereo1: tipoFonteObjeto<[
|
||||
"partida",
|
||||
"descricao",
|
||||
"chegada"
|
||||
], [
|
||||
"carga"
|
||||
]>;
|
||||
45
dist/GEE/Escopo3/upstream/aereo/aereo1.js
vendored
Normal file
45
dist/GEE/Escopo3/upstream/aereo/aereo1.js
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escopo3aereo1 = void 0;
|
||||
const resposta_1 = require("../../../../resposta");
|
||||
const listas_1 = require("../../../ListasFatoresEmissao/listas");
|
||||
const interfaces_1 = require("../../../interfaces");
|
||||
exports.escopo3aereo1 = {
|
||||
escopo: "Escopo3",
|
||||
idTipoFonte: "escopo3aereo1",
|
||||
descricao: "(Upstream)Transporte Aéreo por aeroportos de origem e destino",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "descricao",
|
||||
descricao: "Registro da viagem",
|
||||
tipo: interfaces_1.tiposCamposGee.texto,
|
||||
},
|
||||
{
|
||||
idCampo: "partida",
|
||||
descricao: "Partida",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: listas_1.listaCombuAereo,
|
||||
},
|
||||
{
|
||||
idCampo: "chegada",
|
||||
descricao: "Chegada",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: listas_1.listaCombuAereo,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "carga",
|
||||
descricao: "Carga transportada (tonelada)",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ reg }) => {
|
||||
const carga = reg.carga;
|
||||
const carbono = 1 * carga;
|
||||
const bio = 0;
|
||||
//Arredondamento para duas casas do valor
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=aereo1.js.map
|
||||
1
dist/GEE/Escopo3/upstream/aereo/aereo1.js.map
vendored
Normal file
1
dist/GEE/Escopo3/upstream/aereo/aereo1.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"aereo1.js","sourceRoot":"","sources":["../../../../../src/GEE/Escopo3/upstream/aereo/aereo1.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAClD,iEAAuE;AACvE,oDAA2E;AAE9D,QAAA,aAAa,GAGtB;IACF,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,eAAe;IAC5B,SAAS,EAAE,+DAA+D;IAC1E,iBAAiB,EAAE;QACjB;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,oBAAoB;YAC/B,IAAI,EAAE,2BAAc,CAAC,KAAK;SAC3B;QACD;YACE,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,SAAS;YACpB,IAAI,EAAE,2BAAc,CAAC,MAAM;YAC3B,MAAM,EAAE,wBAAe;SACxB;QACD;YACE,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,SAAS;YACpB,IAAI,EAAE,2BAAc,CAAC,MAAM;YAC3B,MAAM,EAAE,wBAAe;SACxB;KACF;IACD,iBAAiB,EAAE;QACjB;YACE,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,+BAA+B;YAC1C,IAAI,EAAE,2BAAc,CAAC,MAAM;SAC5B;KACF;IAED,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;QACnB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QAExB,MAAM,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,MAAM,GAAG,GAAG,CAAC,CAAC;QACd,yCAAyC;QACzC,OAAO,qBAAU,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC;CACF,CAAC"}
|
||||
2
dist/GEE/Escopo3/upstream/aereo/aereo2.d.ts
vendored
Normal file
2
dist/GEE/Escopo3/upstream/aereo/aereo2.d.ts
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import { type tipoFonteObjeto } from "../../../interfaces";
|
||||
export declare const escopo3aereo2: tipoFonteObjeto<["tipoAereo"], ["consumo"]>;
|
||||
59
dist/GEE/Escopo3/upstream/aereo/aereo2.js
vendored
Normal file
59
dist/GEE/Escopo3/upstream/aereo/aereo2.js
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.escopo3aereo2 = void 0;
|
||||
const resposta_1 = require("../../../../resposta");
|
||||
const fatorEmissaoCombustivel_1 = require("../../../ListasFatoresEmissao/fatorEmissaoCombustivel");
|
||||
const gwp_1 = require("../../../ListasFatoresEmissao/gwp");
|
||||
const listas_1 = require("../../../ListasFatoresEmissao/listas");
|
||||
const interfaces_1 = require("../../../interfaces");
|
||||
exports.escopo3aereo2 = {
|
||||
escopo: "Escopo3",
|
||||
idTipoFonte: "escopo3aereo2",
|
||||
descricao: "(Upstream)Transporte Aéreo a partir do consumo de combustível ",
|
||||
estruturaCadastro: [
|
||||
{
|
||||
idCampo: "tipoAereo",
|
||||
descricao: "Tipo de combustível Aereo",
|
||||
tipo: interfaces_1.tiposCamposGee.opcoes,
|
||||
opcoes: listas_1.listaCombuAereo,
|
||||
},
|
||||
],
|
||||
estruturaRegistro: [
|
||||
{
|
||||
campo: "consumo",
|
||||
descricao: "Consumo de combustível em Litros",
|
||||
tipo: interfaces_1.tiposCamposGee.numero,
|
||||
},
|
||||
],
|
||||
formula: ({ cad, reg }) => {
|
||||
//Cadastro do tipo de combustivel são 2
|
||||
const tipoCombustivel = fatorEmissaoCombustivel_1.listaAereo.find((a) => a.ref == cad.tipoAereo);
|
||||
if (!tipoCombustivel) {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado tipo de combustivel aereo");
|
||||
}
|
||||
const QTDCombustivel = Number(reg.consumo);
|
||||
//Fatores de emissão
|
||||
let [CH4, CO2, N2O] = [0, 0, 0];
|
||||
if (tipoCombustivel.combustivel == "Gasolina de Aviação") {
|
||||
CH4 = fatorEmissaoCombustivel_1.listaAereo[0].fator_emissao_CH4;
|
||||
CO2 = fatorEmissaoCombustivel_1.listaAereo[0].fator_emissao_CO2;
|
||||
N2O = fatorEmissaoCombustivel_1.listaAereo[0].fator_emissao_N2O;
|
||||
}
|
||||
else if (tipoCombustivel.combustivel == "Querosene de Aviação") {
|
||||
CH4 = fatorEmissaoCombustivel_1.listaAereo[1].fator_emissao_CH4;
|
||||
CO2 = fatorEmissaoCombustivel_1.listaAereo[1].fator_emissao_CO2;
|
||||
N2O = fatorEmissaoCombustivel_1.listaAereo[1].fator_emissao_N2O;
|
||||
}
|
||||
else {
|
||||
return resposta_1.respostaCM.addErro("não foi encontrado fator de emissao");
|
||||
}
|
||||
//Calculo de carbono Final
|
||||
const carbono = QTDCombustivel * (CO2 / 1000) * Number(gwp_1.gwp[0].gwp) +
|
||||
QTDCombustivel * (CH4 / 1000) * Number(gwp_1.gwp[1].gwp) +
|
||||
QTDCombustivel * (N2O / 1000) * Number(gwp_1.gwp[2].gwp);
|
||||
//Arredondamento para duas casas do valor
|
||||
const bio = 0;
|
||||
return resposta_1.respostaCM.addResultado([carbono, bio]);
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=aereo2.js.map
|
||||
1
dist/GEE/Escopo3/upstream/aereo/aereo2.js.map
vendored
Normal file
1
dist/GEE/Escopo3/upstream/aereo/aereo2.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"aereo2.js","sourceRoot":"","sources":["../../../../../src/GEE/Escopo3/upstream/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