nfse-br 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,51 +1,24 @@
1
1
  # nfse-br
2
2
 
3
- Node/TypeScript client and CLI for Brazilian service invoices (NFS-e), with two issuing
4
- systems behind one certificate and one command line:
5
-
6
- - **Sistema Nacional NFS-e** (SEFIN + ADN): the national issuer, and the way to issue for the
7
- **Simples Nacional** since 2026-11-01 (Res. CGSN 191/2026). Issue, cancel, query, DANFSe.
8
- See [docs/national.md](docs/national.md).
9
- - **GissOnline** (legacy for the Simples): the Web Services of **32 cities** (24 in São Paulo,
10
- including Guarulhos, Santos and Santo André). It follows ABRASF 2.04 with the LC 214/2025
11
- extensions (NT SE/CGNFS-e nº 007). The city is one environment variable; see
12
- [docs/municipalities.md](docs/municipalities.md).
13
-
14
- Formerly `gissonline-nfse`. The `giss` command and `GissClient` still work as aliases.
15
-
16
- On GissOnline it covers all **16 operations** of the two published SOAP services: `nfse`
17
- (services provided) and `nfsc` (services received). It also covers the portal REST API,
18
- the only way to reach the customer and supplier directory and the municipal activity table.
19
-
20
- - Issue, cancel and replace invoices, single or in batches
21
- - Queries by period, competence, number range, RPS and protocol
22
- - The city activity table, where `CodigoTributacaoMunicipio` and its LC 116 item come from
23
- - Declaration of received services (supplier invoices)
24
- - XMLDSig signing with an A1 certificate, in the shape each operation requires
25
- - Portal login with that same certificate, so no CPF and password are needed
26
- - Fale Conosco messages: read the replies from the city hall, and open new ones
3
+ Node/TypeScript client and CLI for Brazilian service invoices (NFS-e) through the
4
+ **Sistema Nacional NFS-e** (SEFIN + ADN) — the issuer for the **Simples Nacional** since
5
+ 2026-11-01 (Res. CGSN 191/2026). One A1 certificate, one command line.
6
+ Formerly `gissonline-nfse`; the `giss` command and `GissClient` still work as aliases.
7
+
8
+ - Issue and cancel invoices, signed in SHA-256 over mutual TLS
9
+ - Query by access key or DPS, and the distribution of every invoice where your CNPJ appears
10
+ - DANFSe rendered locally from the invoice XML (NT 008)
27
11
  - Validation against the official XSD before sending
28
- - National issuer: issue, cancel, query, DANFSe and the distribution of every invoice
29
- where your CNPJ appears
30
12
  - Typed errors that say whether a retry is safe; see [docs/errors.md](docs/errors.md)
31
13
  - No write operation fires without `--confirm`
32
14
 
33
- ## Which system issues?
15
+ The step by step, with what the live service accepts and refuses, is in
16
+ [docs/national.md](docs/national.md). The other guides are in [docs/](docs/).
34
17
 
35
- | Taxpayer | Issue with | Notes |
36
- | --- | --- | --- |
37
- | ME/EPP in the Simples Nacional | **National** (the default) | GissOnline stopped issuing for them on 2026-11-01. Confirmed in production (Suzano, 2026-11-13) |
38
- | Not in the Simples | National is also the default | In a city that has not adopted it, `issue` answers `E0039`: pass `--issuer giss` (check with `nfse national-status`) |
39
- | MEI | National web issuer | Not exercised by this client; RN 239 exempts MEI from the city agreement too |
40
-
41
- GissOnline is still the way to **read** what it already holds: invoices issued until
42
- 2026-10-31, the customer and supplier directory, the activity table and the Fale Conosco
43
- messages. Its issuing, cancelling and replacing are still in the client, but a Simples optant
44
- should not count on them: GissOnline blocks them since 2026-11-01, and on 2026-11-13 its
45
- homologation environment refused an RPS with `E160` (schema). Not tested in production.
46
-
47
- Numbering is separate: the national system numbers invoices from 1 per issuer, apart from
48
- GissOnline's sequence. `nDPS` (the request number) is yours to choose with `--dps`.
18
+ > **GissOnline is legacy.** The Web Services of 32 cities (ABRASF 2.04) are still in the
19
+ > client for reading what they hold and for taxpayers outside the Simples, but a Simples
20
+ > optant cannot issue there anymore. Pass `--issuer giss` to use them; see
21
+ > [docs/municipalities.md](docs/municipalities.md).
49
22
 
50
23
  ## Requirements
51
24
 
@@ -83,7 +56,6 @@ their contents never enter the repository.
83
56
  ## Quick start
84
57
 
85
58
  ```bash
86
- # National issuer — the default for `issue` (use --issuer giss for a city that has not adopted it)
87
59
  nfse national-status # the city's agreement (see docs/national.md)
88
60
  nfse issue --customer acme --amount 1500 --description "Consulting" --dps 7
89
61
  nfse issue --customer acme --amount 1500 --description "Consulting" --dps 7 --confirm
@@ -93,79 +65,40 @@ nfse cancel --key <key> --reason 1 --text "Wrong service code, will be reissued"
93
65
 
94
66
  For an ME/EPP apportioned through the Simples the DPS carries no ISS rate (the DAS carries
95
67
  it). Pass `--item`, `--cnae` and `--nbs` of the service you are billing: the default profile
96
- is software development. Use `--dps N` in sequence so a retry is safe. The step by step, with
97
- what the service refused and why, is in [docs/national.md](docs/national.md).
98
-
99
- ```bash
100
- # GissOnline (queries, directory, and issuing where the city still serves you)
101
- nfse latest # the most recent invoices
102
- nfse activities --company # activity codes this company can use
103
- nfse issue --issuer giss --customer acme --amount 1500 --description "Consulting"
104
- nfse issue --issuer giss --customer acme --amount 1500 --description "Consulting" --confirm
105
- nfse pdf --number 573 # the invoice as a file
106
- ```
68
+ is software development. Use `--dps N` in sequence so a retry is safe.
107
69
 
108
70
  ```ts
109
- import { NfseClient, PortalService } from "nfse-br";
110
-
111
- // `nfse` and `nfsc` are the two Web Services; `config` and `certificate` come
112
- // resolved. Destructuring a service is safe — destructuring a method is not.
113
- const { nfse, config, certificate } = new NfseClient();
71
+ import { NfseClient } from "nfse-br";
114
72
 
115
- const { invoices } = await nfse.queryProvidedServices({
116
- issuePeriod: { from: "2026-07-01", to: "2026-07-31" },
73
+ const client = new NfseClient({
74
+ // The fiscal profile lives in the client; each invoice only brings what varies.
75
+ profile: { serviceListItem: "01.09.02", cnaeCode: "6319400", nbsCode: "117031000" },
117
76
  });
118
77
 
119
- // CodigoTributacaoMunicipio and its LC 116 item, from the city's own table.
120
- // This route is public — no login, no certificate:
121
- const activities = await PortalService.listActivities(config.cityCode);
122
- // [{ code: "6319400", serviceListItem: "1.09", description: "Portais…", rate: 4 }, …]
123
-
124
- // Anything company-specific needs a session. The A1 that signs the RPS opens
125
- // the portal too, so no CPF and password are required:
126
- const portal = await PortalService.authenticate({ certificate, cityCode: config.cityCode });
127
- const mine = await portal.companyActivities(); // rate valid today, by default
78
+ const invoice = {
79
+ number: 5, // the DPS number: reusing it never issues twice
80
+ serviceAmount: 550,
81
+ description: "Recarga de conta",
82
+ taker: {
83
+ cnpj: "10966296000153",
84
+ legalName: "L.A. MOTORS LTDA",
85
+ address: {
86
+ street: "Rua das Flores",
87
+ number: "100",
88
+ district: "Centro",
89
+ cityCode: "3552502",
90
+ state: "SP",
91
+ zipCode: "08600000",
92
+ },
93
+ },
94
+ };
95
+
96
+ client.previewIssue(invoice); // the signed DPS, nothing sent
97
+ const { nfse } = await client.issue(invoice);
98
+ await client.cancel(nfse.accessKey, 1, "Erro na emissao do servico");
128
99
  ```
129
100
 
130
- Nothing that writes fires without `--confirm`.
131
-
132
- ## Documentation
133
-
134
- | | |
135
- | --- | --- |
136
- | [examples/](examples/) | Runnable scripts, all checked against production |
137
- | [docs/cli.md](docs/cli.md) | Every command, completion, documents and lookups |
138
- | [docs/municipalities.md](docs/municipalities.md) | The cities that publish the Web Service |
139
- | [docs/library.md](docs/library.md) | Using it as a package, and the 16 operations |
140
- | [docs/configuration.md](docs/configuration.md) | `.env`, serving several companies, tax profile, homologation |
141
- | [docs/issuing.md](docs/issuing.md) | What actually issues an invoice, and why |
142
- | [docs/national.md](docs/national.md) | The national issuer: the 2026-11-01 move for Simples Nacional, what the live service accepts, numbering |
143
- | [docs/errors.md](docs/errors.md) | Error codes, retries, and what is safe to repeat |
144
- | [docs/gotchas.md](docs/gotchas.md) | What the live service taught us the hard way |
145
- | [docs/architecture.md](docs/architecture.md) | Layers, patterns, mTLS, SOAP and the signature |
146
-
147
- Under `docs/`: technical manuals (Services Provided v1.6, Services Received/CST v2.5,
148
- PIS/COFINS/CSLL v1.0), XML samples and the errors and alerts spreadsheet. The XSD live
149
- in `schemas/`, one folder per provider.
150
- Source: <https://suzano.giss.com.br/giss-ajuda/desenvolvedores.html>.
151
-
152
- `schemas/giss/tomados/vigente/` carries the services-received XSD with the `tipos` v1_01
153
- merged over v1_00 — necessary because the published v1_01 is a delta that does not compile
154
- on its own. The originals stay untouched in the directory above.
155
-
156
- ## Security
157
-
158
- Never committed (already covered by `.gitignore`):
159
-
160
- - `.env` — certificate password and portal credentials
161
- - `cert/*` — the `.pfx` and exported PEM files (the key is written **without a passphrase**,
162
- mode `0600`)
163
- - `data/*` — local directory and tax profile, holding third-party data
164
-
165
- Two notes on the code: the `APP_ID` in `portal-service.ts` is not a secret — it is a public
166
- constant from the portal bundle, sent by any browser that opens the site. And the signature
167
- uses `rsa-sha1` with a `sha1` digest: weak by today's standards, but it is what the service
168
- validates (manual, section 6.3).
101
+ GissOnline queries and the portal directory are in [docs/library.md](docs/library.md).
169
102
 
170
103
  ## Contributing
171
104
 
package/dist/client.d.ts CHANGED
@@ -3,7 +3,9 @@ import type { PartyIdentification } from "./domain/types.ts";
3
3
  import { type Certificate, type CertificateInput } from "./infra/certificate.ts";
4
4
  import type { QueryResult } from "./providers/giss/messages/parser.ts";
5
5
  import { NfscService } from "./providers/giss/nfsc-service.ts";
6
- import { NationalService } from "./providers/nacional/national-service.ts";
6
+ import { NationalService, type NationalIssueOutcome } from "./providers/nacional/national-service.ts";
7
+ import type { NationalCancellationReason } from "./providers/nacional/messages.ts";
8
+ import { type IssueInput, type IssuingProfile } from "./storage/profile-repository.ts";
7
9
  import { NfseService } from "./providers/giss/nfse-service.ts";
8
10
  export interface NfseClientOptions extends Partial<GissConfig> {
9
11
  /**
@@ -14,15 +16,36 @@ export interface NfseClientOptions extends Partial<GissConfig> {
14
16
  certificate?: CertificateInput;
15
17
  /** Loga na saída de erro os XMLs enviados e recebidos */
16
18
  debug?: boolean;
19
+ /**
20
+ * Perfil fiscal do prestador (item, CNAE, NBS, regime…), por cima do
21
+ * `DEFAULT_PROFILE`. É o que `issue` usa; cada nota só informa o que varia.
22
+ */
23
+ profile?: Partial<IssuingProfile>;
24
+ }
25
+ /** Uma nota nacional: só o que varia por emissão. O resto vem do `profile` do client. */
26
+ export interface NationalInvoiceInput extends Omit<IssueInput, "rpsNumber" | "rpsType" | "series"> {
27
+ /** Número da DPS, escolhido por você. Repetir o mesmo número nunca emite duas notas. */
28
+ number: string | number;
29
+ /** Série da DPS; por padrão `profile.nationalSeries`, ou "1" */
30
+ series?: string | number;
17
31
  }
18
32
  export declare class NfseClient {
33
+ #private;
19
34
  readonly config: GissConfig;
20
35
  readonly certificate: Certificate;
36
+ /** Sistema Nacional NFS-e — o emissor principal. Mesmo certificado, assinatura SHA-256 */
37
+ readonly national: NationalService;
38
+ /** GissOnline, serviços prestados (SOAP). Legado: o Simples Nacional não emite mais por ele */
21
39
  readonly nfse: NfseService;
40
+ /** GissOnline, serviços tomados (SOAP) */
22
41
  readonly nfsc: NfscService;
23
- /** Sistema Nacional NFS-e — mesmo certificado, assinatura SHA-256 */
24
- readonly national: NationalService;
25
42
  constructor(options?: NfseClientOptions);
43
+ /** Emite pelo Sistema Nacional, com o perfil do client e os dados desta nota. */
44
+ issue(invoice: NationalInvoiceInput): Promise<NationalIssueOutcome>;
45
+ /** A DPS assinada que `issue` enviaria, sem enviar nada. */
46
+ previewIssue(invoice: NationalInvoiceInput): string;
47
+ /** Cancela uma nota nacional pela chave de acesso (evento 101101). */
48
+ cancel(accessKey: string, reason: NationalCancellationReason, justification: string): Promise<string>;
26
49
  /** Identificação do prestador configurado no `.env`. */
27
50
  get provider(): PartyIdentification;
28
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAA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KnD,sEAAsE;IACtE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM;IAyBnF,wDAAwD;IACxD,IAAI,QAAQ,IAAI,mBAAmB,CAKlC;IAED;;;OAGG;IACI,QAAQ,CACb,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,EAC7C,SAAS,SAAM,GACd,cAAc,CAAC,WAAW,CAAC;CAO/B;AAED,wEAAwE;AACxE,eAAO,MAAM,UAAU,mBAAa,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC;AACpC,2BAA2B;AAC3B,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC"}
package/dist/client.js CHANGED
@@ -2,7 +2,8 @@ import { loadConfig } from "./config/index.js";
2
2
  import { loadCertificate, } from "./infra/certificate.js";
3
3
  import { createXmlSigner } from "./infra/xml-signer.js";
4
4
  import { NfscService } from "./providers/giss/nfsc-service.js";
5
- import { NationalService } from "./providers/nacional/national-service.js";
5
+ import { NationalService, } from "./providers/nacional/national-service.js";
6
+ import { buildRps, DEFAULT_PROFILE, } from "./storage/profile-repository.js";
6
7
  import { NfseService } from "./providers/giss/nfse-service.js";
7
8
  /**
8
9
  * Fachada sobre os dois Web Services SOAP.
@@ -17,12 +18,16 @@ const MEMORY_CERTIFICATE = "<in-memory>";
17
18
  export class NfseClient {
18
19
  config;
19
20
  certificate;
21
+ /** Sistema Nacional NFS-e — o emissor principal. Mesmo certificado, assinatura SHA-256 */
22
+ national;
23
+ #profile;
24
+ /** GissOnline, serviços prestados (SOAP). Legado: o Simples Nacional não emite mais por ele */
20
25
  nfse;
26
+ /** GissOnline, serviços tomados (SOAP) */
21
27
  nfsc;
22
- /** Sistema Nacional NFS-e — mesmo certificado, assinatura SHA-256 */
23
- national;
24
28
  constructor(options = {}) {
25
- const { debug = false, certificate, ...overrides } = options;
29
+ const { debug = false, certificate, profile, ...overrides } = options;
30
+ this.#profile = { ...DEFAULT_PROFILE, ...profile };
26
31
  // `CERT_PATH` e `CERT_PASSWORD` só existem para abrir o arquivo: quando o
27
32
  // certificado chega pronto, nada disso é necessário e exigir as variáveis
28
33
  // impediria o uso sem `.env`. Um .pfx em memória ainda precisa da senha.
@@ -57,6 +62,38 @@ export class NfseClient {
57
62
  debug,
58
63
  });
59
64
  }
65
+ /** Emite pelo Sistema Nacional, com o perfil do client e os dados desta nota. */
66
+ issue(invoice) {
67
+ const { rps, dps } = this.#compose(invoice);
68
+ return this.national.issue(rps, dps);
69
+ }
70
+ /** A DPS assinada que `issue` enviaria, sem enviar nada. */
71
+ previewIssue(invoice) {
72
+ const { rps, dps } = this.#compose(invoice);
73
+ return this.national.previewDps(rps, dps);
74
+ }
75
+ /** Cancela uma nota nacional pela chave de acesso (evento 101101). */
76
+ cancel(accessKey, reason, justification) {
77
+ return this.national.cancel(accessKey, reason, justification);
78
+ }
79
+ #compose({ number, series, ...input }) {
80
+ const profile = { ...this.#profile, ...input.profile };
81
+ const optant = profile.simplesNacionalOptant === 1;
82
+ const apportionment = profile.simplesApportionment ?? 1;
83
+ // ME/EPP apurada pelo Simples e sem retenção de ISS não envia alíquota na DPS
84
+ // (RN 657). O `buildRps` a exige só por causa do GissOnline, então o placeholder
85
+ // fica aqui dentro e nunca chega ao XML. Em qualquer outro caso, a falta é erro.
86
+ const rateIsOptional = optant && profile.issWithheld !== 1 && apportionment === 1;
87
+ return {
88
+ rps: buildRps(profile, { ...input, rate: input.rate ?? (rateIsOptional ? 0 : undefined) }),
89
+ dps: {
90
+ number,
91
+ series: series ?? profile.nationalSeries ?? "1",
92
+ simplesOption: profile.simplesOption ?? (optant ? 3 : 1),
93
+ simplesApportionment: profile.simplesApportionment,
94
+ },
95
+ };
96
+ }
60
97
  /** Identificação do prestador configurado no `.env`. */
61
98
  get provider() {
62
99
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":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M,IAAI,OAAO,CAAC,WAAW,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,CAAC;QAElF,OAAO;YACL,GAAG,EAAE,QAAQ,CAAC,OAAO,EAAE,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;YAC1F,GAAG,EAAE;gBACH,MAAM;gBACN,MAAM,EAAE,MAAM,IAAI,OAAO,CAAC,cAAc,IAAI,GAAG;gBAC/C,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACxD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;aACpB;SACjC,CAAC;IACJ,CAAC;IAED,wDAAwD;IACxD,IAAI,QAAQ;QACV,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;YACtB,qBAAqB,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB;SACzD,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,CAAC,QAAQ,CACb,KAA6C,EAC7C,SAAS,GAAG,GAAG;QAEf,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;YAC7C,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;YACjC,MAAM,MAAM,CAAC;YACb,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,EAAE;gBAAE,OAAO;QAC1C,CAAC;IACH,CAAC;CACF;AAED,wEAAwE;AACxE,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC"}
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export type { SignatureAlgorithm } from "./infra/xml-signer.ts";
13
13
  export { SOAP_SERVICES } from "./providers/giss/soap-client.ts";
14
14
  export type { NfscOperation, NfseOperation, SoapOperation, SoapService, } from "./providers/giss/soap-client.ts";
15
15
  export { NfseClient, GissClient } from "./client.ts";
16
- export type { NfseClientOptions, GissClientOptions } from "./client.ts";
16
+ export type { NfseClientOptions, GissClientOptions, NationalInvoiceInput, } from "./client.ts";
17
17
  export { lookupZip, lookupCompany, lookupParty, LookupError, type ZipLookup, type CompanyLookup, } from "./services/lookup-service.ts";
18
18
  export { NfseService } from "./providers/giss/nfse-service.ts";
19
19
  export type { IssueOutcome } from "./providers/giss/nfse-service.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,OAAO,EACL,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,YAAY,GAClB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,aAAa,GACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,O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AClB,qBAAqB,GACtB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,OAAO,EACL,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,gBAAgB,GAEjB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAQ5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMpE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAQhE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,GAGZ,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAQ3F,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,YAAY,EA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AEtC,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAQ3F,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAU3F,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAerF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAWnE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,QAAQ,GACT,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EACL,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,kCAAkC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfse-br",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "description": "Node/TypeScript client and CLI for Brazilian NFS-e: the Sistema Nacional NFS-e (SEFIN/ADN, the default issuer and the only one left for the Simples Nacional since 2026-11-01) and the GissOnline Web Services (ABRASF 2.04 + LC 214/2025, 32 cities)",
6
6
  "keywords": [