@nfewizard/shared 1.0.0 → 1.0.1
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/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js +6 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFSe.d.ts +42 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFSe.js +176 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFSe.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js +37 -10
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js +7 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.d.ts +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js +17 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/NFSeServicosUrl.json +22 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/soapMethod.json +20 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js +15 -4
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.d.ts +29 -2
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js +92 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js.map +1 -1
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/tsconfig.tsbuildinfo +1 -1
- package/README.md +3 -3
- package/dist/index.cjs +462 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +462 -14
- package/dist/index.mjs.map +1 -1
- package/dist/src/base/BaseNFSe.d.ts +42 -0
- package/dist/src/base/index.d.ts +1 -0
- package/dist/src/utils/Utility.d.ts +29 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/resources/schemas/CNC_v1.00.xsd +14 -0
- package/resources/schemas/DPS_v1.01.xsd +14 -0
- package/resources/schemas/NFSe_v1.01.xsd +15 -0
- package/resources/schemas/evento_v1.01.xsd +15 -0
- package/resources/schemas/nfse/CNC_v1.00.xsd +14 -0
- package/resources/schemas/nfse/DPS_v1.01.xsd +14 -0
- package/resources/schemas/nfse/NFSe_v1.01.xsd +15 -0
- package/resources/schemas/nfse/eventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/nfse/eventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/nfse/eventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/nfse/eventoEPEC_v0.01.xsd +267 -0
- package/resources/schemas/nfse/eventoRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/nfse/evento_v1.01.xsd +15 -0
- package/resources/schemas/nfse/pedRegEvento_v1.01.xsd +15 -0
- package/resources/schemas/nfse/tiposBasico_v1.03.xsd +834 -0
- package/resources/schemas/nfse/tiposBasico_v3.10.xsd +833 -0
- package/resources/schemas/nfse/tiposBasico_v4.00.xsd +598 -0
- package/resources/schemas/nfse/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
- package/resources/schemas/nfse/tiposCnc_v1.00.xsd +166 -0
- package/resources/schemas/nfse/tiposComplexos_v1.01.xsd +2677 -0
- package/resources/schemas/nfse/tiposDistDFe_v1.01.xsd +1 -0
- package/resources/schemas/nfse/tiposEventos_v1.01.xsd +780 -0
- package/resources/schemas/nfse/tiposSimples_v1.01.xsd +1774 -0
- package/resources/schemas/nfse/xmldsig-core-schema.xsd +318 -0
- package/resources/schemas/nfse/xmldsig-core-schema_v1.01.xsd +98 -0
- package/resources/schemas/pedRegEvento_v1.01.xsd +15 -0
- package/resources/schemas/tiposCnc_v1.00.xsd +166 -0
- package/resources/schemas/tiposComplexos_v1.01.xsd +2677 -0
- package/resources/schemas/tiposEventos_v1.01.xsd +780 -0
- package/resources/schemas/tiposSimples_v1.01.xsd +1774 -0
- package/resources/schemas/xmldsig-core-schema.xsd +318 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
3
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
|
4
|
+
targetNamespace="http://www.sped.fazenda.gov.br/nfse"
|
|
5
|
+
xmlns="http://www.sped.fazenda.gov.br/nfse"
|
|
6
|
+
attributeFormDefault="unqualified"
|
|
7
|
+
elementFormDefault="qualified">
|
|
8
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
|
|
9
|
+
<xs:include schemaLocation="tiposComplexos_v1.01.xsd"/>
|
|
10
|
+
<xs:include schemaLocation="tiposSimples_v1.01.xsd"/>
|
|
11
|
+
<!--TIPO COMPLEXO PARA ENDEREÇO UPLOAD DE CONTRIBUINTES -->
|
|
12
|
+
<xs:complexType name="TCEnderContribuinteCNC">
|
|
13
|
+
<xs:sequence>
|
|
14
|
+
<xs:element name="CEP" type="TSCEP">
|
|
15
|
+
<xs:annotation>
|
|
16
|
+
<xs:documentation>Código de endereçamento postal do estabelecimento do contribuinte</xs:documentation>
|
|
17
|
+
</xs:annotation>
|
|
18
|
+
</xs:element>
|
|
19
|
+
<xs:element name="nro" type="TSNumeroEndereco">
|
|
20
|
+
<xs:annotation>
|
|
21
|
+
<xs:documentation>Número do estabelecimento no logradouro informado</xs:documentation>
|
|
22
|
+
</xs:annotation>
|
|
23
|
+
</xs:element>
|
|
24
|
+
<xs:element name="xCpl" type="TSComplementoEndereco" minOccurs="0">
|
|
25
|
+
<xs:annotation>
|
|
26
|
+
<xs:documentation>Informação complementar para identificação do endereço do contribuinte</xs:documentation>
|
|
27
|
+
</xs:annotation>
|
|
28
|
+
</xs:element>
|
|
29
|
+
</xs:sequence>
|
|
30
|
+
</xs:complexType>
|
|
31
|
+
<!--TIPO COMPLEXO PARA UPLOAD DE CONTRIBUINTES DO CNC -->
|
|
32
|
+
<xs:complexType name="TCNC">
|
|
33
|
+
<xs:sequence>
|
|
34
|
+
<xs:element name="infCNC" type="TCInfCNC"/>
|
|
35
|
+
</xs:sequence>
|
|
36
|
+
<xs:attribute name="versao" type="TVerCNC" use="required"/>
|
|
37
|
+
</xs:complexType>
|
|
38
|
+
<!--TIPO COMPLEXO PARA INFORMAÇÕES DO UPLOAD DE CONTRIBUINTES DO CNC -->
|
|
39
|
+
<xs:complexType name="TCInfCNC">
|
|
40
|
+
<xs:sequence>
|
|
41
|
+
<xs:element name="tpAmb" type="TSTipoAmbiente">
|
|
42
|
+
<xs:annotation>
|
|
43
|
+
<xs:documentation>Identificação do Ambiente: 1 - Produção; 2 - Homologação</xs:documentation>
|
|
44
|
+
</xs:annotation>
|
|
45
|
+
</xs:element>
|
|
46
|
+
<xs:element name="dhGeracaoArquivo" type="TSDateTimeUTC">
|
|
47
|
+
<xs:annotation>
|
|
48
|
+
<xs:documentation>Data e hora da geração do arquivo CNC. Data e hora no formato UTC (Universal Coordinated Time): AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
|
|
49
|
+
</xs:annotation>
|
|
50
|
+
</xs:element>
|
|
51
|
+
<xs:element name="verAplic" type="TSVerAplic">
|
|
52
|
+
<xs:annotation>
|
|
53
|
+
<xs:documentation>Versão do aplicativo que gerou Informações para cadastramento de novos contribuintes CNC</xs:documentation>
|
|
54
|
+
</xs:annotation>
|
|
55
|
+
</xs:element>
|
|
56
|
+
<xs:element name="contribuintesCnc">
|
|
57
|
+
<xs:complexType>
|
|
58
|
+
<xs:sequence>
|
|
59
|
+
<xs:element name="contribuinteCnc" type="TCInfoContribuinteCNC" maxOccurs="unbounded">
|
|
60
|
+
<xs:annotation>
|
|
61
|
+
<xs:documentation>Grupo de informações cadastramento de novos contribuintes CNC</xs:documentation>
|
|
62
|
+
</xs:annotation>
|
|
63
|
+
</xs:element>
|
|
64
|
+
</xs:sequence>
|
|
65
|
+
</xs:complexType>
|
|
66
|
+
</xs:element>
|
|
67
|
+
</xs:sequence>
|
|
68
|
+
</xs:complexType>
|
|
69
|
+
<!--TIPO COMPLEXO PARA INFORMAÇÕES DE UMA PESSOA MANTIDA PELO CADASTRO DO CNC (CNPJ,CPF)-->
|
|
70
|
+
<xs:complexType name="TCInfoContribuinteCNC">
|
|
71
|
+
<xs:annotation>
|
|
72
|
+
<xs:documentation>Informações para cadastramento de novos contribuintes CNC </xs:documentation>
|
|
73
|
+
</xs:annotation>
|
|
74
|
+
<xs:sequence>
|
|
75
|
+
<xs:choice>
|
|
76
|
+
<xs:element name="CNPJ" type="TSCNPJ">
|
|
77
|
+
<xs:annotation>
|
|
78
|
+
<xs:documentation>Número do CNPJ</xs:documentation>
|
|
79
|
+
</xs:annotation>
|
|
80
|
+
</xs:element>
|
|
81
|
+
<xs:element name="CPF" type="TSCPF">
|
|
82
|
+
<xs:annotation>
|
|
83
|
+
<xs:documentation>Número do CPF</xs:documentation>
|
|
84
|
+
</xs:annotation>
|
|
85
|
+
</xs:element>
|
|
86
|
+
</xs:choice>
|
|
87
|
+
<xs:element name="IM" type="TSInscMun" minOccurs="0">
|
|
88
|
+
<xs:annotation>
|
|
89
|
+
<xs:documentation>Número da inscrição municipal</xs:documentation>
|
|
90
|
+
</xs:annotation>
|
|
91
|
+
</xs:element>
|
|
92
|
+
<xs:element name="dInscricaoMunicipal" type="TSData">
|
|
93
|
+
<xs:annotation>
|
|
94
|
+
<xs:documentation> Data da Inscrição Municipal: Dia, mês e ano (AAAAMMDD)</xs:documentation>
|
|
95
|
+
</xs:annotation>
|
|
96
|
+
</xs:element>
|
|
97
|
+
<xs:element name="enderContribuinteCNC" type="TCEnderContribuinteCNC">
|
|
98
|
+
<xs:annotation>
|
|
99
|
+
<xs:documentation>Grupo de informações do endereço do contribuinte do CNC</xs:documentation>
|
|
100
|
+
</xs:annotation>
|
|
101
|
+
</xs:element>
|
|
102
|
+
<xs:element name="fone" type="TSTelefone" minOccurs="0">
|
|
103
|
+
<xs:annotation>
|
|
104
|
+
<xs:documentation>
|
|
105
|
+
Número do telefone do prestador:
|
|
106
|
+
Preencher com o Código DDD + número do telefone.
|
|
107
|
+
Nas operações com exterior é permitido informar o código do país + código da localidade + número do telefone)
|
|
108
|
+
</xs:documentation>
|
|
109
|
+
</xs:annotation>
|
|
110
|
+
</xs:element>
|
|
111
|
+
<xs:element name="email" type="TSEmail" minOccurs="0">
|
|
112
|
+
<xs:annotation>
|
|
113
|
+
<xs:documentation>Endereço de e-mail para contato com o contribuinte</xs:documentation>
|
|
114
|
+
</xs:annotation>
|
|
115
|
+
</xs:element>
|
|
116
|
+
<xs:element name="regEspTribContribuinteCNC" type="TSRegEspTrib">
|
|
117
|
+
<xs:annotation>
|
|
118
|
+
<xs:documentation>
|
|
119
|
+
Tipos de Regimes Especiais de Tributação:
|
|
120
|
+
0 - Nenhum;
|
|
121
|
+
1 - Ato Cooperado (Cooperativa);
|
|
122
|
+
2 - Estimativa;
|
|
123
|
+
3 - Microempresa Municipal;
|
|
124
|
+
4 - Notário ou Registrador;
|
|
125
|
+
5 - Profissional Autônomo;
|
|
126
|
+
6 - Sociedade de Profissionais;
|
|
127
|
+
</xs:documentation>
|
|
128
|
+
</xs:annotation>
|
|
129
|
+
</xs:element>
|
|
130
|
+
<xs:element name="situacaoCadastroContribuinte" type="TSSituacaoCadastroContribuinte" minOccurs="0">
|
|
131
|
+
<xs:annotation>
|
|
132
|
+
<xs:documentation>
|
|
133
|
+
Identificação da situação do cadastro do contribuinte
|
|
134
|
+
</xs:documentation>
|
|
135
|
+
</xs:annotation>
|
|
136
|
+
</xs:element>
|
|
137
|
+
<xs:element name="motivoSituacaoCadastroContribuinte" type="TSMotivoSituacaoCadastroContribuinte" minOccurs="0">
|
|
138
|
+
<xs:annotation>
|
|
139
|
+
<xs:documentation>
|
|
140
|
+
Motivo pelo qual o contribuinte se enquadra na situação informada
|
|
141
|
+
</xs:documentation>
|
|
142
|
+
</xs:annotation>
|
|
143
|
+
</xs:element>
|
|
144
|
+
<xs:element name="situacaoEmissaoNFSE" type="TSSituacaoEmissaoNFSE">
|
|
145
|
+
<xs:annotation>
|
|
146
|
+
<xs:documentation>
|
|
147
|
+
Situação Emissão NFS-e:
|
|
148
|
+
0 - Não Habilitado;
|
|
149
|
+
1 - Habilitado;
|
|
150
|
+
</xs:documentation>
|
|
151
|
+
</xs:annotation>
|
|
152
|
+
</xs:element>
|
|
153
|
+
</xs:sequence>
|
|
154
|
+
</xs:complexType>
|
|
155
|
+
|
|
156
|
+
<xs:simpleType name="TVerCNC">
|
|
157
|
+
<xs:annotation>
|
|
158
|
+
<xs:documentation>Tipo Versão do CNC - 1.00</xs:documentation>
|
|
159
|
+
</xs:annotation>
|
|
160
|
+
<xs:restriction base="xs:string">
|
|
161
|
+
<xs:whiteSpace value="preserve"/>
|
|
162
|
+
<xs:pattern value="1\.00"/>
|
|
163
|
+
</xs:restriction>
|
|
164
|
+
</xs:simpleType>
|
|
165
|
+
|
|
166
|
+
</xs:schema>
|