New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-nfe-nfce

Package Overview
Dependencies
Maintainers
0
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-nfe-nfce - npm Package Compare versions

Comparing version 1.0.94 to 1.0.95

lib/domain/use-cases/processo/consulta-recibo-request.d.ts

0

lib/application/abstract/soap-info.d.ts

@@ -0,0 +0,0 @@ import { type SoapInfo, type InfoQRCodeByUF } from '../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function campo({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputCampo): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function criaLayout({ pathLogo, nf, ajusteX, ajusteY, doc, margemEsquerda, margemTopo, larguraDoFormulario, margemDireita, folha }: GeneratePdf.InputCriaLayout): Promise<void>;

@@ -0,0 +0,0 @@ export declare const DEFAULT_NFE: {

import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function gerarItens({ nf, ajusteX, ajusteY, doc, margemEsquerda, margemTopo, margemDireita, larguraDoFormulario, pathLogo }: GeneratePdf.InputCriaMargem): Promise<void>;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getDadosAdicionais({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, margemDireita, larguraDoFormulario, infAdic, finalEspacoDet }: GeneratePdf.InputDadosAdicionais): void;
import { type GeneratePdf } from "../../../../domain/contracts/repos";
export declare function getDadosEmitente({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, emit, protNFe, pathLogo, ide, folha, }: GeneratePdf.InputDadosEmitente): Promise<void>;
import { type GeneratePdf } from "../../../../domain/contracts/repos";
export declare function getDestinatarioRemetente({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, ide, }: GeneratePdf.InputRemetenteDestinatario): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getFaturaDuplicata({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, cobr }: GeneratePdf.InputFaturaDuplicata): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getHomologacao({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario, protNFe }: GeneratePdf.InputHomologacao): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getImposto({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, total }: GeneratePdf.InputImposto): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getIss({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, emit, total }: GeneratePdf.InputISS): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getMenuItens({ y, doc, ajusteX, ajusteY, margemEsquerda, margemTopo, margemDireita, finalEspacoDet, larguraDoFormulario }: GeneratePdf.InputMenuItens): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getRecibo({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, emit, total, ide }: GeneratePdf.InputRecibo): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function getTransporte({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, transp }: GeneratePdf.InputTransporte): number;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function italico({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputItalico): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function linhaHorizontalTracejada(input: GeneratePdf.InputLinhaHorizontal): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function linhaHorizontal({ ajusteX, ajusteY, doc, x1, x2, y, margemDireita, margemEsquerda, margemTopo, tracejada }: GeneratePdf.InputLinhaHorizontal): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function linhaVertical({ ajusteX, ajusteY, doc, margemEsquerda, margemTopo, x, y1, y2 }: GeneratePdf.InputLinhaVertical): void;
/// <reference types="pdfkit" />
export declare function loadFonts(doc: PDFKit.PDFDocument): void;
export declare function loadFontsNFCe(doc: PDFKit.PDFDocument): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function negrito({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputNegrito): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function normal({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputNormal): void;

@@ -0,0 +0,0 @@ export declare const optionsDocNFe: {

import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function secao({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, tamanho }: GeneratePdf.InputSecao): void;
import { type GeneratePdf } from '../../../../domain/contracts/repos';
export declare function titulo({ doc, largura, value, x, y, margemEsquerda, margemTopo, ajusteX, ajusteY, alinhamento, tamanho }: GeneratePdf.InputTitulo): void;

@@ -0,0 +0,0 @@ import { type SoapInfo, type TNFeInfNFeSupl, type Empresa, type NFeBase, type Geral } from '../../../domain/contracts/repos';

import { type TNFeInfNFeDet } from '../../../domain/contracts/repos';
export declare function getDet(produtos: TNFeInfNFeDet[], ambiente: string, modelo: string): TNFeInfNFeDet[];

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare function gerarChaveNF(cnpj: string, docFiscal: {

export declare function gerarHashCSRT(chave: string, CSRT: string): string;
import { type TNFeInfNFe, type NFeNFCe } from '../../../domain/contracts/repos';
export declare function gerarNFe({ documento, geral }: NFeNFCe.Input): TNFeInfNFe;

@@ -0,0 +0,0 @@ "use strict";

export declare function gerarQRCodeNFCeOffline(urlQRCode: string, chave: string, versaoQRCode: string, ambiente: string, diaEmissao: string, valorTotal: string, digestValue: string, idCSC: string, CSC: string): string;
export declare function gerarQRCodeNFCeOnline(urlQRCode: string, chave: string, versaoQRCode: string, ambiente: string, idCSC: string, CSC: string): string;

3

lib/application/helpers/processo/gerar-retorno-emissao.d.ts

@@ -9,4 +9,5 @@ import { type ProtNFe } from '../../../domain/contracts/repos';

protNFe: ProtNFe;
nRec?: string;
};
export declare function gerarRetornoEmissao({ success, protNFe, xml_enviado, xml_recebido, xMotivo }: GerarRetornoEmissaoInput): Promise<RetornoNF>;
export declare function gerarRetornoEmissao({ success, protNFe, xml_enviado, xml_recebido, xMotivo, nRec }: GerarRetornoEmissaoInput): Promise<RetornoNF>;
export {};

@@ -6,3 +6,3 @@ "use strict";

const xml_1 = require("../xml");
async function gerarRetornoEmissao({ success, protNFe, xml_enviado, xml_recebido, xMotivo }) {
async function gerarRetornoEmissao({ success, protNFe, xml_enviado, xml_recebido, xMotivo, nRec }) {
const xmlObj = await (0, xml_1.deserializeXml)(xml_enviado, { explicitArray: false });

@@ -22,3 +22,4 @@ const nfeProc = {

xml_completo,
mensagem: xMotivo
mensagem: xMotivo,
nRec
};

@@ -25,0 +26,0 @@ }

export declare function gerarXmlLote(xml: string, isAsync: boolean): string;

@@ -0,0 +0,0 @@ import { type NFeBase, type Geral } from '../../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

import { type TNFeInfNFeCobr } from '../../../domain/contracts/repos';
export declare function getCobr(cobr?: TNFeInfNFeCobr): TNFeInfNFeCobr | undefined;

@@ -0,0 +0,0 @@ "use strict";

import { type TNFeInfNFeDest } from '../../../domain/contracts/repos';
export declare function getDest(ambiente: '1' | '2', dest?: TNFeInfNFeDest): TNFeInfNFeDest | undefined;

@@ -0,0 +0,0 @@ "use strict";

import { type TNFeInfNFeEmit } from '../../../domain/contracts/repos';
export declare function getEmit(emit: TNFeInfNFeEmit): TNFeInfNFeEmit;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Geral, type IdeInput, type TNFeInfNFeIde } from '../../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

import { type TNFeInfNFeInfAdic } from '../../../domain/contracts/repos';
export declare function getInfAdic(inf: TNFeInfNFeInfAdic): TNFeInfNFeInfAdic;
import { type TNFeInfNFePag } from '../../../domain/contracts/repos';
export declare function getPag(pag: TNFeInfNFePag): TNFeInfNFePag;

@@ -0,0 +0,0 @@ "use strict";

import { type TInfRespTec } from '../../../domain/contracts/repos';
export declare function getResponsavelTecnico(responsavel?: TInfRespTec): TInfRespTec | undefined;
import { type TNFeInfNFeTotal } from '../../../domain/contracts/repos';
export declare function getTotal(total: TNFeInfNFeTotal): TNFeInfNFeTotal;

@@ -0,0 +0,0 @@ "use strict";

import { type TNFeInfNFeTransp } from '../../../domain/contracts/repos';
export declare function getTransp(transp: TNFeInfNFeTransp): TNFeInfNFeTransp;

@@ -0,0 +0,0 @@ "use strict";

export declare function obterDigitoVerificador(chave: string): string;
import { type Configuracoes, type SoapInfo, type ServicosSefaz } from '../../../domain/contracts/repos';
export declare function configuraUrlsSefaz(cUf: string, configuracoes: Configuracoes, servicoSefaz: ServicosSefaz): SoapInfo.Output;
export declare function hasValue(value: string): boolean;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export * from './has-value';

@@ -0,0 +0,0 @@ "use strict";

export declare function jsonOneLevel(obj: any): string;
export declare function log(msg: string, processo?: string): void;

@@ -0,0 +0,0 @@ "use strict";

export declare function randomInt(min: number, max: number): number;

@@ -0,0 +0,0 @@ "use strict";

export declare function removeSelfClosedFields(o: Object | any): void;
export declare function timeout(ms: number): Promise<number>;

@@ -0,0 +0,0 @@ "use strict";

export declare function validaUrlWsdl(url: string): string;
export declare function buildSoapEnvelope(xml: string, soapMethod: string): string;
export * from './build-soap-envelope';
export * from './make-soap-request';
export * from './proxy-to-url';

@@ -0,0 +0,0 @@ "use strict";

import { type SoapRequest } from '../../../domain/contracts/repos';
export declare function makeSoapRequest({ empresa, soap, xml, webProxy }: SoapRequest.Input): Promise<SoapRequest.Output>;

@@ -52,6 +52,4 @@ "use strict";

const xml_recebido = await res.text();
console.log(xml_recebido);
const retorno = await (0, xml_1.deserializeXml)(xml_recebido, { explicitArray: false });
const objectEnvelope = Object.values(retorno)[0];
console.log(objectEnvelope);
const objectBody = Object.values(objectEnvelope)[1] !== ''

@@ -58,0 +56,0 @@ ? Object.values(objectEnvelope)[1]

import { type WebProxy } from '../../../domain/contracts/repos';
export declare function proxyToUrl(pr: WebProxy): string;
import type xml2js from 'xml2js';
export declare function deserializeXml(xml: string, options?: xml2js.OptionsV2): Promise<any>;

@@ -0,0 +0,0 @@ "use strict";

export * from './serialize';
export * from './deserialize';

@@ -0,0 +0,0 @@ "use strict";

export declare function serializeXml(obj: any, rootTag: string): string;

@@ -0,0 +0,0 @@ "use strict";

export * from './validate';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare function validateEnvNfe(xml: string): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare namespace CertificateLoad {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=certificate-load.js.map

@@ -0,0 +0,0 @@ export interface SolicitaEvento {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=evento.js.map

@@ -0,0 +0,0 @@ /// <reference types="pdfkit" />

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=generate-pdf.js.map

@@ -0,0 +0,0 @@ export * from './certificate-load';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare namespace InfoQRCodeByUF {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=info-qr-code.js.map

@@ -0,0 +0,0 @@ import { type TCodUfIbge } from '.';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=inutilizacao.js.map

@@ -0,0 +0,0 @@ import { type Signature } from './nfe';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=nfe-proc.js.map

@@ -0,0 +0,0 @@ import { type TNFeInfNFeDest, type TNFeInfNFeDet, type TNFeInfNFeEmit, type TNFeInfNFeInfAdic, type TNFeInfNFePag, type TNFeInfNFeTotal, type TNFeInfNFeTransp, type WebProxy, type TNFeInfNFeCobr, type IdeInput, type TAmb, type Tmod, type TInfRespTec } from '.';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Signature } from './nfe';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=proc-evento.js.map

@@ -0,0 +0,0 @@ import { type Signature } from './nfe';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=proc-inut.js.map

@@ -16,2 +16,3 @@ import { type NFeProc } from './nfe-proc';

mensagem: string;
nRec?: string;
}

@@ -18,0 +19,0 @@ export type RetornoNF = Retorno & {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=retorno.js.map

@@ -0,0 +0,0 @@ export type TCodUfIbge = "11" | "12" | "13" | "14" | "15" | "16" | "17" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "31" | "32" | "33" | "35" | "41" | "42" | "43" | "50" | "51" | "52" | "53";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type ServicosSefaz } from './nfe';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=soap-info.js.map

@@ -0,0 +0,0 @@ import { type Empresa } from '.';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=soap-request.js.map

@@ -0,0 +0,0 @@ export interface WebProxy {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=web-proxy.js.map

@@ -0,0 +0,0 @@ export declare class CertificateNotFoundError extends Error {

@@ -0,0 +0,0 @@ "use strict";

export * from './certificate';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type CertificateFromBase64Load } from "../contracts/repos";

@@ -0,0 +0,0 @@ import { type CertificateFromPathLoad } from "../contracts/repos";

@@ -0,0 +0,0 @@ import { type CertificateLoad } from "../../domain/contracts/repos";

@@ -0,0 +0,0 @@ "use strict";

/// <reference types="pdfkit" />
export declare function gerarPDF(xmlNFe: string, pathLogo?: string): Promise<PDFKit.PDFDocument>;

@@ -0,0 +0,0 @@ "use strict";

/// <reference types="pdfkit" />
import { type NFeProc } from '../../../domain/contracts/repos';
export declare function pdfNFCe(nf: NFeProc, pathLogo?: string): Promise<PDFKit.PDFDocument>;

@@ -0,0 +0,0 @@ "use strict";

/// <reference types="pdfkit" />
import { type NFeProc } from '../../../domain/contracts/repos';
export declare function pdfNFe(nf: NFeProc, pathLogo?: string): Promise<PDFKit.PDFDocument>;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Configuracoes } from '../../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Configuracoes } from '../../../domain/contracts/repos';

import { type Configuracoes, type SoapRequest } from '../../../domain/contracts/repos';
import { type RetornoNF } from '../../../domain/contracts/repos/retorno';
export declare function consultaRecibo(response: SoapRequest.Output, uf: string, configuracoes: Configuracoes): Promise<RetornoNF>;

@@ -26,3 +26,4 @@ "use strict";

xml_recebido: responseProtocolo.xml_recebido,
xMotivo: responseProtocolo.data.retConsReciNFe.protNFe.infProt.xMotivo
xMotivo: responseProtocolo.data.retConsReciNFe.protNFe.infProt.xMotivo,
nRec: response.data.retEnviNFe.infRec.nRec
});

@@ -29,0 +30,0 @@ _tentativa++;

@@ -0,0 +0,0 @@ import { type Configuracoes, type NFeBase } from '../../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

import { type Configuracoes, type SolicitaEvento, type TCodUfIbge } from '../../../domain/contracts/repos';
import { type RetornoEvento } from '../../../domain/contracts/repos/retorno';
export declare function gerarEvento(cuf: TCodUfIbge, cnpj: string, evento: SolicitaEvento, configuracoes: Configuracoes): Promise<RetornoEvento>;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Configuracoes, type Inutilizar } from '../../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

import { type Configuracoes, type TCodUfIbge } from '../../../domain/contracts/repos';
import { type RetornoStatusServico } from '../../../domain/contracts/repos/retorno';
export declare function statusServico(configuracoes: Configuracoes, cUf: TCodUfIbge): Promise<RetornoStatusServico>;

@@ -0,0 +0,0 @@ "use strict";

export * from './sign-xml';
export * from './sign-xml-x509';

@@ -0,0 +0,0 @@ "use strict";

import { type Empresa } from '../../../domain/contracts/repos';
export declare function signXmlX509(xml: string, tag: string, empresa: Empresa): string;
export declare function signXml(xml: string, tag: string, certificado: any): string;

@@ -0,0 +0,0 @@ "use strict";

export declare function getDataAtual(): string;

@@ -0,0 +0,0 @@ "use strict";

export declare function getUf(value: string): string;

@@ -0,0 +0,0 @@ "use strict";

export * from './data-atual';
export * from './ibge-code-to-uf';
export * from './uf-to-ibge-code';

@@ -0,0 +0,0 @@ "use strict";

import { type TCodUfIbge } from '../../../domain/contracts/repos';
export declare function getcUf(value: string): TCodUfIbge;

@@ -0,0 +0,0 @@ "use strict";

@@ -5,8 +5,9 @@ declare const carregaCertificadoBase64: import("./domain/use-cases/load-certificate-from-base64").LoadCertificate;

export { carregaCertificadoPath };
export { emitir } from "./domain/use-cases/processo/emissao";
export { statusServico } from "./domain/use-cases/processo/status";
export { inutilizar } from "./domain/use-cases/processo/inutiliza";
export { cartaCorrecao } from "./domain/use-cases/processo/carta-correcao";
export { cancelar } from "./domain/use-cases/processo/cancelar";
export { gerarPDF } from "./domain/use-cases/pdf";
export * from "./domain/use-cases/utils";
export { emitir } from './domain/use-cases/processo/emissao';
export { consultanRec } from './domain/use-cases/processo/consulta-recibo-request';
export { statusServico } from './domain/use-cases/processo/status';
export { inutilizar } from './domain/use-cases/processo/inutiliza';
export { cartaCorrecao } from './domain/use-cases/processo/carta-correcao';
export { cancelar } from './domain/use-cases/processo/cancelar';
export { gerarPDF } from './domain/use-cases/pdf';
export * from './domain/use-cases/utils';

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.gerarPDF = exports.cancelar = exports.cartaCorrecao = exports.inutilizar = exports.statusServico = exports.emitir = exports.carregaCertificadoPath = exports.carregaCertificadoBase64 = void 0;
exports.gerarPDF = exports.cancelar = exports.cartaCorrecao = exports.inutilizar = exports.statusServico = exports.consultanRec = exports.emitir = exports.carregaCertificadoPath = exports.carregaCertificadoBase64 = void 0;
const load_certificate_from_base64_1 = require("./domain/use-cases/load-certificate-from-base64");

@@ -27,2 +27,4 @@ const load_certificate_from_path_1 = require("./domain/use-cases/load-certificate-from-path");

Object.defineProperty(exports, "emitir", { enumerable: true, get: function () { return emissao_1.emitir; } });
var consulta_recibo_request_1 = require("./domain/use-cases/processo/consulta-recibo-request");
Object.defineProperty(exports, "consultanRec", { enumerable: true, get: function () { return consulta_recibo_request_1.consultanRec; } });
var status_1 = require("./domain/use-cases/processo/status");

@@ -29,0 +31,0 @@ Object.defineProperty(exports, "statusServico", { enumerable: true, get: function () { return status_1.statusServico; } });

@@ -0,0 +0,0 @@ import 'dotenv/config';

@@ -0,0 +0,0 @@ "use strict";

export declare function getContentType(uf: string): string;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type InfoQRCodeByUF } from '../../domain/contracts/repos';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { SoapAbsctract } from '../../application/abstract/soap-info';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Empresa, type Configuracoes, type TNFeInfNFeEmit, type IdeInput, type NFeBase } from "../../domain/contracts/repos";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { type Empresa, type Configuracoes, type NFeBase } from '../../domain/contracts/repos';

@@ -36,3 +36,3 @@ "use strict";

serie: '1',
nNF: '56',
nNF: '62',
dhEmi: '',

@@ -115,9 +115,9 @@ tpNF: '1',

CFOP: '5102',
uCom: 'KG',
qCom: '30.0000',
uCom: 'SAC',
qCom: '1.0000',
vUnCom: valorProduto.toFixed(2),
vProd: valorProduto.toFixed(2),
cEANTrib: '7898221456293',
uTrib: 'KG',
qTrib: '30.0000',
uTrib: 'SAC',
qTrib: '1.0000',
vUnTrib: valorProduto.toFixed(2),

@@ -130,24 +130,26 @@ vFrete: '',

xPed: '',
nItemPed: i.toString()
nItemPed: ''
},
imposto: {
vTotTrib: 0,
ICMS: {
ICMS20: {
ICMSSN102: {
orig: '0',
CST: '20',
modBC: '3',
pRedBC: '41.670',
vBC: '647.29',
pICMS: '12.00',
vICMS: '77.67'
CSOSN: '102'
}
},
PIS: {
PISNT: {
CST: '06'
PISOutr: {
CST: '99',
vBC: 0,
pPIS: 0,
vPIS: 0
}
},
COFINS: {
COFINSNT: {
CST: '06'
COFINSOutr: {
CST: '99',
vBC: 0,
pCOFINS: 0,
vCOFINS: 0
}

@@ -154,0 +156,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

export declare function gerarArquivoPDF(danfe: any, callback: any): void;

@@ -0,0 +0,0 @@ "use strict";

@@ -9,7 +9,7 @@ "use strict";

const __1 = require("../..");
const pathDoArquivoPdf = path_1.default.join(__dirname, "danfe.pdf");
const pathDoArquivoPdf = path_1.default.join(__dirname, 'danfe.pdf');
async function criaPDF() {
for (let i = 0; i < 70; i++) {
}
const xmlNFe = '<nfeProc versao="4.00" xmlns="http://www.portalfiscal.inf.br/nfe"><NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe versao="4.00" Id="NFe35230434337001000148550010000000081512434997"><ide><cUF>35</cUF><cNF>51243499</cNF><natOp>VENDA</natOp><mod>55</mod><serie>1</serie><nNF>8</nNF><dhEmi>2023-04-13T13:33:02-03:00</dhEmi><tpNF>1</tpNF><idDest>1</idDest><cMunFG>3504602</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>7</cDV><tpAmb>2</tpAmb><finNFe>1</finNFe><indFinal>1</indFinal><indPres>1</indPres><procEmi>0</procEmi><verProc>NODE-NFE TEST 1.0</verProc></ide><emit><CNPJ>34337001000148</CNPJ><xNome>R M COMERCIO DE SALGADOS</xNome><xFant>JUBERNAL SALGADOS</xFant><enderEmit><xLgr>Rua Teste</xLgr><nro>123</nro><xBairro>Bairro Teste</xBairro><cMun>3504602</cMun><xMun>BADY BASSITT</xMun><UF>SP</UF><CEP>15115000</CEP><cPais>1058</cPais><xPais>BRASIL</xPais><fone>999999999</fone></enderEmit><IE>195032740110</IE><IM>000711419</IM><CRT>1</CRT></emit><dest><CPF>41267310324</CPF><xNome>NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome><enderDest><xLgr>RUA TEST</xLgr><nro>1231</nro><xBairro>teste</xBairro><cMun>4303103</cMun><xMun>testeee</xMun><UF>RS</UF><CEP>11111111</CEP><fone>5111111111</fone></enderDest><indIEDest>9</indIEDest><email>test@test.com</email></dest><det nItem="1"><prod><cProd>84233</cProd><cEAN>7898221456293</cEAN><xProd>NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xProd><NCM>85164000</NCM><CFOP>5102</CFOP><uCom>SAC</uCom><qCom>1.0000</qCom><vUnCom>31.80</vUnCom><vProd>31.80</vProd><cEANTrib>7898221456293</cEANTrib><uTrib>SAC</uTrib><qTrib>1.0000</qTrib><vUnTrib>31.80</vUnTrib><indTot>1</indTot></prod><imposto><vTotTrib>0</vTotTrib><ICMS><ICMSSN102><orig>0</orig><CSOSN>102</CSOSN></ICMSSN102></ICMS><PIS><PISOutr><CST>99</CST><vBC>0</vBC><pPIS>0</pPIS><vPIS>0</vPIS></PISOutr></PIS><COFINS><COFINSOutr><CST>99</CST><vBC>0</vBC><pCOFINS>0</pCOFINS><vCOFINS>0</vCOFINS></COFINSOutr></COFINS></imposto></det><total><ICMSTot><vBC>0.00</vBC><vICMS>0.00</vICMS><vICMSDeson>0.00</vICMSDeson><vFCP>0.00</vFCP><vBCST>0.00</vBCST><vST>0.00</vST><vFCPST>0.00</vFCPST><vFCPSTRet>0.00</vFCPSTRet><vProd>31.80</vProd><vFrete>0.00</vFrete><vSeg>0.00</vSeg><vDesc>0.00</vDesc><vII>0.00</vII><vIPI>0.00</vIPI><vIPIDevol>0.00</vIPIDevol><vPIS>0.00</vPIS><vCOFINS>0.00</vCOFINS><vOutro>0.00</vOutro><vNF>31.80</vNF></ICMSTot></total><transp><modFrete>9</modFrete></transp><pag><detPag><indPag>0</indPag><tPag>01</tPag><vPag>31.80</vPag></detPag></pag><infAdic><infCpl>TESTTESTETSTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT</infCpl></infAdic></infNFe><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#NFe35230434337001000148550010000000081512434997"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>B7NMfEicmDjHPd5nojsJWGgtTNk=</DigestValue></Reference></SignedInfo><SignatureValue>G4KUi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SQ&#xD;pr2coHvPEYyD5JJvm/0oenl1BhJYZNP+EdLP7zJ1IW077KRvsUICJ5BkU+A3yXCy&#xD;XYZb09p+pJVNPlQkjX5mwhgpqOS2NQxYtrnXQg+9WRK+HKPdIIzjNzv6qem72i93&#xD;lRUSZ4j2EeIHZpBgnHI=&#xD;</X509Certificate></X509Data></KeyInfo></Signature></NFe><protNFe versao="4.00"><infProt><tpAmb>2</tpAmb><verAplic>SP_NFE_PL009_V4</verAplic><chNFe>35230434337001000148550010000000081512434997</chNFe><dhRecbto>2023-04-13T13:35:46-03:00</dhRecbto><nProt>135230001542582</nProt><digVal>B7NMfEicmDjHPd5nojsJWGgtTNk=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso da NF-e</xMotivo></infProt></protNFe></nfeProc>';
const xmlNFe = '<nfeProc versao="4.00" xmlns="http://www.portalfiscal.inf.br/nfe"><NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe versao="4.00" Id="NFe51250226093979000183550010000000121754916151"><ide><cUF>51</cUF><cNF>75491615</cNF><natOp>VENDA</natOp><mod>55</mod><serie>1</serie><nNF>12</nNF><dhEmi>2025-02-03T19:23:22+00:00</dhEmi><tpNF>1</tpNF><idDest>1</idDest><cMunFG>5107925</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>1</cDV><tpAmb>2</tpAmb><finNFe>1</finNFe><indFinal>1</indFinal><indPres>1</indPres><procEmi>0</procEmi><verProc>NODE-NFE TEST 1.0</verProc></ide><emit><CNPJ>26093979000183</CNPJ><xNome>LF CALCADOS LTDA</xNome><xFant>Raphaella Booz Sorriso</xFant><enderEmit><xLgr>Avenida Natalino Joao Brescansin</xLgr><nro>1783</nro><xCpl>Sala 02</xCpl><xBairro>Centro</xBairro><cMun>5107925</cMun><xMun>Sorriso</xMun><UF>MT</UF><CEP>78890000</CEP><cPais>1058</cPais><xPais>Brasil</xPais><fone>6699979556</fone></enderEmit><IE>00136478085</IE><IM>000888999</IM><CNAE>4782201</CNAE><CRT>3</CRT></emit><dest><CPF>04607130192</CPF><xNome>NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome><enderDest><xLgr>Rua Luiz Zilli</xLgr><nro>360</nro><xBairro>Campo Comprido</xBairro><cMun>4106902</cMun><xMun>Curitiba</xMun><UF>PR</UF><CEP>81220100</CEP><cPais>1058</cPais><xPais>BRASIL</xPais></enderDest><indIEDest>9</indIEDest><email>teste@email.com</email></dest><det nItem="1"><prod><cProd>976347dc-a32c-459e-8fe7-fa09d7d6819c</cProd><cEAN>7894900011517</cEAN><xProd>NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xProd><NCM>85164000</NCM><CFOP>5102</CFOP><uCom>UN</uCom><qCom>1.0000</qCom><vUnCom>20.00</vUnCom><vProd>20.00</vProd><cEANTrib>7894900011517</cEANTrib><uTrib>UN</uTrib><qTrib>1.0000</qTrib><vUnTrib>20.00</vUnTrib><indTot>1</indTot></prod><imposto><vTotTrib>1.85</vTotTrib><ICMS><ICMS00><orig>0</orig><CST>00</CST><modBC>3</modBC><vBC>20.00</vBC><pICMS>18.00</pICMS><vICMS>3.60</vICMS></ICMS00></ICMS><PIS><PISOutr><CST>99</CST><vBC>20.00</vBC><pPIS>1.65</pPIS><vPIS>0.33</vPIS></PISOutr></PIS><COFINS><COFINSOutr><CST>99</CST><vBC>20.00</vBC><pCOFINS>7.60</pCOFINS><vCOFINS>1.52</vCOFINS></COFINSOutr></COFINS></imposto></det><total><ICMSTot><vBC>20.00</vBC><vICMS>3.60</vICMS><vICMSDeson>0.00</vICMSDeson><vFCP>0.00</vFCP><vBCST>0.00</vBCST><vST>0.00</vST><vFCPST>0.00</vFCPST><vFCPSTRet>0.00</vFCPSTRet><vProd>20.00</vProd><vFrete>0.00</vFrete><vSeg>0.00</vSeg><vDesc>0.00</vDesc><vII>0.00</vII><vIPI>0.00</vIPI><vIPIDevol>0.00</vIPIDevol><vPIS>0.33</vPIS><vCOFINS>1.52</vCOFINS><vOutro>0.00</vOutro><vNF>20.00</vNF><vTotTrib>1.85</vTotTrib></ICMSTot></total><transp><modFrete>9</modFrete></transp><pag><detPag><indPag>0</indPag><tPag>17</tPag><vPag>20.00</vPag></detPag><vTroco>0</vTroco></pag></infNFe><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#NFe51250226093979000183550010000000121754916151"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>Ge+oG4fnGWc3SoHkOmB5ecmQ+Ww=</DigestValue></Reference></SignedInfo><SignatureValue>Iv1qTf4zmHYsyHftKpXL/oj5330hOvClAOIkEixRvCSjAdOP9LxlqRiP9/a8gAEbna7M/vp8eJmpsxYuwPOZCZ3llIc40+7i89UbI9HOM7BrJLgNJdEgpM71ainZs3gql4/3H7gVrClodKPcSY4ZfHatm/4gEyrPUY+xC4UH5OKtjWoWcd9WQfBv2zzBQ2HkliKyYyMUj8i3IXEzadMcmiM77WRWixyXiIulCzXnGfZZPyxm2NOD9C5v9+Swy8Scn7mwLSfKOXnXl09D925AzrIWROsFfk0LCIXnsP4kQaCJ50zGriSG/UIq/2gIkIh3qE4PxNUC5dpoVHWEr8dlyw==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHLzCCBRegAwIBAgIIGg4kEhdzefwwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UE&#xD;BhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxFTATBgNVBAsTDEFDIFNPTFVUSSB2&#xD;NTEeMBwGA1UEAxMVQUMgU09MVVRJIE11bHRpcGxhIHY1M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RIxHxVjOMZee3zMjdqZZC47T90zK9K0nKx4uYwMUhZbmk&#xD;Cys+P07BAG6FQChA1yWYnPkEMIdCg4VlaEhlvqZkr9zOBnVUPHDaBr8NrmVXO1pU&#xD;IwF0uNgVNQKvY0SOI5rf+0KAx4ezY/SbAyu5R60CLX6l42veIBISsopY5ypCs8vB&#xD;uwB/a+6aZAjdZwPTrThPPwKIX1PYLODMsI4xMw8IzRwT4hdWGQUBgbcxmIFK48Zn&#xD;5ayrpEWBpsu/RmYa7Kxrh9CT3l5nrIYaoIDnRgPEopwKSOqCV6c7Q422YJ9NFTTs&#xD;teRCwJdYoECz6yUtum0R+8D7Cw==&#xD;</X509Certificate></X509Data></KeyInfo></Signature></NFe><protNFe versao="4.00"><infProt><tpAmb>2</tpAmb><verAplic>MT_A2_240725-4.00</verAplic><chNFe>51250226093979000183550010000000121754916151</chNFe><dhRecbto>2025-02-03T15:21:56-04:00</dhRecbto><nProt>151250000473728</nProt><digVal>Ge+oG4fnGWc3SoHkOmB5ecmQ+Ww=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso da NF-e</xMotivo></infProt></protNFe></nfeProc>';
const pdf = await (0, __1.gerarPDF)(xmlNFe);

@@ -16,0 +16,0 @@ pdf.pipe(fs_1.default.createWriteStream(pathDoArquivoPdf));

{
"name": "node-nfe-nfce",
"version": "1.0.94",
"version": "1.0.95",
"description": "Modulo que auxilia na geração de NFe e NFCe",

@@ -17,4 +17,6 @@ "main": "lib/index.js",

"keywords": [
"NFe",
"NFCe"
"nfe",
"nfce",
"danfe",
"sefaz"
],

@@ -46,3 +48,4 @@ "repository": {

"correcaoNFE": "ts-node-dev --respawn --transpile-only ./src/testes/nfe/carta-correcao.ts",
"pdf": "ts-node-dev --respawn --transpile-only ./src/testes/pdf/pdf.ts"
"pdf": "ts-node-dev --respawn --transpile-only ./src/testes/pdf/pdf.ts",
"pub": "npm run build && npm publish"
},

@@ -93,2 +96,2 @@ "dependencies": {

}
}
}
<h1 align="center">node-nfe-nfce</h1>
<h4>Biblioteca para geração/integração de NF-e/NFC-e em aplicações node.js</h4>
<h4>Biblioteca para geração/integração de NF-e/NFC-e e gereção da DANFE em aplicações node.js</h4>

@@ -4,0 +4,0 @@ <h2>Sabia que você pode utilizar essa lib sem custo?</h2>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc