nfets 0.0.63 → 0.0.65

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.
@@ -867,6 +867,7 @@ interface Det {
867
867
  impostoDevol?: Devol;
868
868
  infAdProd?: string;
869
869
  obsItem?: ObsItem;
870
+ vItem?: DecimalValue;
870
871
  }
871
872
 
872
873
  interface ICMSTot {
@@ -927,7 +928,47 @@ interface Total {
927
928
  ICMSTot: ICMSTot;
928
929
  ISSQNtot?: ISSQNTot;
929
930
  retTrib?: RetTrib;
930
- }
931
+ IBSCBSTot?: IBSCBSTot;
932
+ vNFTot?: DecimalValue;
933
+ }
934
+ interface IBSCBSTot {
935
+ vBCIBSCBS?: DecimalValue;
936
+ gIBS?: IBSTot;
937
+ gCBS?: CBSTot;
938
+ gMono?: IBSMonoTot;
939
+ }
940
+ type IBSTot = {
941
+ gIBSUF?: IBSUFTot;
942
+ gIBSMun?: IBSMunTot;
943
+ vIBS?: DecimalValue;
944
+ vCredPres?: DecimalValue;
945
+ vCredPresCondSus?: DecimalValue;
946
+ };
947
+ type IBSUFTot = {
948
+ vDif?: DecimalValue;
949
+ vDevTrib?: DecimalValue;
950
+ vIBSUF?: DecimalValue;
951
+ };
952
+ type IBSMunTot = {
953
+ vDif?: DecimalValue;
954
+ vDevTrib?: DecimalValue;
955
+ vIBSMun?: DecimalValue;
956
+ };
957
+ type CBSTot = {
958
+ vDif?: DecimalValue;
959
+ vDevTrib?: DecimalValue;
960
+ vCBS?: DecimalValue;
961
+ vCredPres?: DecimalValue;
962
+ vCredPresCondSus?: DecimalValue;
963
+ };
964
+ type IBSMonoTot = {
965
+ vIBSMono?: DecimalValue;
966
+ vCBSMono?: DecimalValue;
967
+ vIBSMonoReten?: DecimalValue;
968
+ vCBSMonoReten?: DecimalValue;
969
+ vIBSMonoRet?: DecimalValue;
970
+ vCBSMonoRet?: DecimalValue;
971
+ };
931
972
 
932
973
  interface Transporta {
933
974
  CNPJ?: string;
@@ -1206,9 +1247,19 @@ type PipelineAuthorizerResponse<E extends NFe$1, T extends E | E[]> = T extends
1206
1247
  response: SynchronousAutorizacaoResponse<T>;
1207
1248
  };
1208
1249
 
1250
+ declare const Schemas: {
1251
+ readonly PL_009_V4: "PL_009_V4";
1252
+ readonly PL_010_V1: "PL_010_V1";
1253
+ readonly PL_010_V1_21: "PL_010_V1.21";
1254
+ readonly PL_010_V1_30: "PL_010_V1.30";
1255
+ };
1256
+ declare const schemas: () => string;
1257
+ type Schema = (typeof Schemas)[keyof typeof Schemas];
1258
+
1209
1259
  interface ConsultStatusPayload {
1210
1260
  tpAmb: EnvironmentCode;
1211
1261
  cUF: StateCode;
1262
+ schema?: Schema;
1212
1263
  xServ?: 'STATUS';
1213
1264
  }
1214
1265
  interface ConsultStatusRequest {
@@ -1550,15 +1601,6 @@ interface NFCeProc {
1550
1601
  protNFe: ProtNFe;
1551
1602
  }
1552
1603
 
1553
- declare const Schemas: {
1554
- readonly PL_009_V4: "PL_009_V4";
1555
- readonly PL_010_V1: "PL_010_V1";
1556
- readonly PL_010_V1_21: "PL_010_V1.21";
1557
- readonly PL_010_V1_30: "PL_010_V1.30";
1558
- };
1559
- declare const schemas: () => string;
1560
- type Schema = (typeof Schemas)[keyof typeof Schemas];
1561
-
1562
1604
  type WebserviceForState<WS extends Record<string, unknown>, S extends StateCode> = S extends keyof WS ? WS[S] : never;
1563
1605
  type UfMap = typeof StateCodes;
1564
1606
  type StateAcronymFromCode<S extends StateCode> = {
@@ -1686,7 +1728,12 @@ interface IcmsufdestBuilder {
1686
1728
  icmsufdest(payload: ICMSUFDest): IbscbsBuilder & AssembleDetXmlBuilder;
1687
1729
  }
1688
1730
  interface IbscbsBuilder {
1689
- ibscbs(payload: IBSCBS$1): AssembleDetXmlBuilder;
1731
+ ibscbs(payload: IBSCBS$1): vItemBuilder;
1732
+ }
1733
+ interface vItemBuilder {
1734
+ vItem(payload: {
1735
+ vItem: string;
1736
+ }): AssembleDetXmlBuilder;
1690
1737
  }
1691
1738
  interface AssembleDetXmlBuilder {
1692
1739
  assemble(): Det;
@@ -1723,7 +1770,7 @@ interface DetGroupBuilder<T extends object> {
1723
1770
  }
1724
1771
  interface TotalBuilder<T extends object> {
1725
1772
  total(payload: Total): TranspBuilder<T>;
1726
- increment(callback: (context: DeepPartial<Total>) => DeepPartial<Total>): TranspBuilder<T>;
1773
+ increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): TranspBuilder<T>;
1727
1774
  }
1728
1775
  interface TranspBuilder<T extends object> {
1729
1776
  transp(payload: Transp): CobrBuilder<T> & PagBuilder<T>;
@@ -1761,6 +1808,7 @@ interface AssembleNfeBuilder<T extends object> {
1761
1808
  assemble(): Promise<Either<NFeTsError, string>>;
1762
1809
  }
1763
1810
  interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetGroupBuilder<T>, DestBuilder<T>, RetiradaBuilder<T>, EntregaBuilder<T>, AutXMLBuilder<T>, TotalBuilder<T>, TranspBuilder<T>, PagBuilder<T>, InfIntermedBuilder<T>, ExportaBuilder<T>, CompraBuilder<T>, CanaBuilder<T>, InfRespTecBuilder<T>, InfSolicNFFBuilder<T>, InfAdicBuilder<T>, AvulsaBuilder<T>, AssembleNfeBuilder<T> {
1811
+ schema?: Schema;
1764
1812
  }
1765
1813
 
1766
1814
  declare class AccessKeyBuilder {
@@ -4918,6 +4966,7 @@ declare class DanfceReducedPdfDocument extends DanfcePdfDocument {
4918
4966
  declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<T> {
4919
4967
  protected readonly builder: XmlToolkit;
4920
4968
  protected contingency?: ContingencyOptions | undefined;
4969
+ readonly schema: Schema;
4921
4970
  protected readonly data: NFe$1;
4922
4971
  private $data;
4923
4972
  protected get entity(): new () => T;
@@ -4925,8 +4974,8 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4925
4974
  protected readonly $det: DetBuilderAggregator | undefined;
4926
4975
  protected readonly $total: TotalBuilderAggregator | undefined;
4927
4976
  protected readonly nfeDetXmlBuilder: DetBuilder & ProdBuilder;
4928
- static create<T extends object = NFe$1>(builder: XmlToolkit, contingency?: ContingencyOptions): InfNFeBuilder<T> & IdeBuilder<T>;
4929
- protected constructor(builder: XmlToolkit, contingency?: ContingencyOptions | undefined);
4977
+ static create<T extends object = NFe$1>(builder: XmlToolkit, contingency?: ContingencyOptions, schema?: Schema): InfNFeBuilder<T> & IdeBuilder<T>;
4978
+ protected constructor(builder: XmlToolkit, contingency?: ContingencyOptions | undefined, schema?: Schema);
4930
4979
  infNFe($: InfNFeAttributes): this;
4931
4980
  ide(payload: Ide): this;
4932
4981
  emit(payload: Emit): this;
@@ -4937,7 +4986,8 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4937
4986
  autXML(payload: AutXML): this;
4938
4987
  det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder, item: D) => AssembleDetXmlBuilder): TotalBuilder<T> & TranspBuilder<T>;
4939
4988
  total(payload: Total): this;
4940
- increment(callback: (context: DeepPartial<Total>) => DeepPartial<Total>): this;
4989
+ increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): this;
4990
+ private buildTotalForPL_010;
4941
4991
  transp(payload: Transp): this;
4942
4992
  cobr(payload: Cobr): this;
4943
4993
  pag(payload: Pag): this;
@@ -4962,7 +5012,7 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4962
5012
  declare class NfceXmlBuilder<T extends object = NFCe$1> extends NfeXmlBuilder<T> implements INfeXmlBuilder<T> {
4963
5013
  protected readonly data: NFCe$1;
4964
5014
  protected get entity(): new () => T;
4965
- static create<T extends object = NFCe$1>(builder: XmlToolkit, contingency?: ContingencyOptions): InfNFeBuilder<T> & IdeBuilder<T>;
5015
+ static create<T extends object = NFCe$1>(builder: XmlToolkit, contingency?: ContingencyOptions, schema?: Schema): InfNFeBuilder<T> & IdeBuilder<T>;
4966
5016
  protected assertHomologValidations(): boolean;
4967
5017
  protected assertContingencyModes(): void;
4968
5018
  }
@@ -5103,9 +5153,10 @@ declare class IBSCBS implements IBSCBS$1 {
5103
5153
 
5104
5154
  declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
5105
5155
  private readonly listener?;
5156
+ private readonly schema;
5106
5157
  protected data: Det;
5107
- static create(listener?: DetBuilderAggregator): DetBuilder & ProdBuilder;
5108
- protected constructor(listener?: DetBuilderAggregator | undefined);
5158
+ static create(listener?: DetBuilderAggregator, schema?: Schema): DetBuilder & ProdBuilder;
5159
+ protected constructor(listener?: DetBuilderAggregator | undefined, schema?: Schema);
5109
5160
  det(payload: DetAttributes): this;
5110
5161
  prod(payload: Prod): this;
5111
5162
  imposto(payload: Imposto): this;
@@ -5119,6 +5170,9 @@ declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
5119
5170
  cofinsst(payload: COFINSST): this;
5120
5171
  icmsufdest(payload: ICMSUFDest): this;
5121
5172
  ibscbs(payload: IBSCBS): this;
5173
+ vItem(payload: {
5174
+ vItem: string;
5175
+ }): this;
5122
5176
  assemble(): Det;
5123
5177
  }
5124
5178
 
@@ -5129,4 +5183,4 @@ declare class NFCe implements NFCe$1 {
5129
5183
  Signature?: Signature;
5130
5184
  }
5131
5185
 
5132
- export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas };
5186
+ export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas, type vItemBuilder };
@@ -867,6 +867,7 @@ interface Det {
867
867
  impostoDevol?: Devol;
868
868
  infAdProd?: string;
869
869
  obsItem?: ObsItem;
870
+ vItem?: DecimalValue;
870
871
  }
871
872
 
872
873
  interface ICMSTot {
@@ -927,7 +928,47 @@ interface Total {
927
928
  ICMSTot: ICMSTot;
928
929
  ISSQNtot?: ISSQNTot;
929
930
  retTrib?: RetTrib;
930
- }
931
+ IBSCBSTot?: IBSCBSTot;
932
+ vNFTot?: DecimalValue;
933
+ }
934
+ interface IBSCBSTot {
935
+ vBCIBSCBS?: DecimalValue;
936
+ gIBS?: IBSTot;
937
+ gCBS?: CBSTot;
938
+ gMono?: IBSMonoTot;
939
+ }
940
+ type IBSTot = {
941
+ gIBSUF?: IBSUFTot;
942
+ gIBSMun?: IBSMunTot;
943
+ vIBS?: DecimalValue;
944
+ vCredPres?: DecimalValue;
945
+ vCredPresCondSus?: DecimalValue;
946
+ };
947
+ type IBSUFTot = {
948
+ vDif?: DecimalValue;
949
+ vDevTrib?: DecimalValue;
950
+ vIBSUF?: DecimalValue;
951
+ };
952
+ type IBSMunTot = {
953
+ vDif?: DecimalValue;
954
+ vDevTrib?: DecimalValue;
955
+ vIBSMun?: DecimalValue;
956
+ };
957
+ type CBSTot = {
958
+ vDif?: DecimalValue;
959
+ vDevTrib?: DecimalValue;
960
+ vCBS?: DecimalValue;
961
+ vCredPres?: DecimalValue;
962
+ vCredPresCondSus?: DecimalValue;
963
+ };
964
+ type IBSMonoTot = {
965
+ vIBSMono?: DecimalValue;
966
+ vCBSMono?: DecimalValue;
967
+ vIBSMonoReten?: DecimalValue;
968
+ vCBSMonoReten?: DecimalValue;
969
+ vIBSMonoRet?: DecimalValue;
970
+ vCBSMonoRet?: DecimalValue;
971
+ };
931
972
 
932
973
  interface Transporta {
933
974
  CNPJ?: string;
@@ -1206,9 +1247,19 @@ type PipelineAuthorizerResponse<E extends NFe$1, T extends E | E[]> = T extends
1206
1247
  response: SynchronousAutorizacaoResponse<T>;
1207
1248
  };
1208
1249
 
1250
+ declare const Schemas: {
1251
+ readonly PL_009_V4: "PL_009_V4";
1252
+ readonly PL_010_V1: "PL_010_V1";
1253
+ readonly PL_010_V1_21: "PL_010_V1.21";
1254
+ readonly PL_010_V1_30: "PL_010_V1.30";
1255
+ };
1256
+ declare const schemas: () => string;
1257
+ type Schema = (typeof Schemas)[keyof typeof Schemas];
1258
+
1209
1259
  interface ConsultStatusPayload {
1210
1260
  tpAmb: EnvironmentCode;
1211
1261
  cUF: StateCode;
1262
+ schema?: Schema;
1212
1263
  xServ?: 'STATUS';
1213
1264
  }
1214
1265
  interface ConsultStatusRequest {
@@ -1550,15 +1601,6 @@ interface NFCeProc {
1550
1601
  protNFe: ProtNFe;
1551
1602
  }
1552
1603
 
1553
- declare const Schemas: {
1554
- readonly PL_009_V4: "PL_009_V4";
1555
- readonly PL_010_V1: "PL_010_V1";
1556
- readonly PL_010_V1_21: "PL_010_V1.21";
1557
- readonly PL_010_V1_30: "PL_010_V1.30";
1558
- };
1559
- declare const schemas: () => string;
1560
- type Schema = (typeof Schemas)[keyof typeof Schemas];
1561
-
1562
1604
  type WebserviceForState<WS extends Record<string, unknown>, S extends StateCode> = S extends keyof WS ? WS[S] : never;
1563
1605
  type UfMap = typeof StateCodes;
1564
1606
  type StateAcronymFromCode<S extends StateCode> = {
@@ -1686,7 +1728,12 @@ interface IcmsufdestBuilder {
1686
1728
  icmsufdest(payload: ICMSUFDest): IbscbsBuilder & AssembleDetXmlBuilder;
1687
1729
  }
1688
1730
  interface IbscbsBuilder {
1689
- ibscbs(payload: IBSCBS$1): AssembleDetXmlBuilder;
1731
+ ibscbs(payload: IBSCBS$1): vItemBuilder;
1732
+ }
1733
+ interface vItemBuilder {
1734
+ vItem(payload: {
1735
+ vItem: string;
1736
+ }): AssembleDetXmlBuilder;
1690
1737
  }
1691
1738
  interface AssembleDetXmlBuilder {
1692
1739
  assemble(): Det;
@@ -1723,7 +1770,7 @@ interface DetGroupBuilder<T extends object> {
1723
1770
  }
1724
1771
  interface TotalBuilder<T extends object> {
1725
1772
  total(payload: Total): TranspBuilder<T>;
1726
- increment(callback: (context: DeepPartial<Total>) => DeepPartial<Total>): TranspBuilder<T>;
1773
+ increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): TranspBuilder<T>;
1727
1774
  }
1728
1775
  interface TranspBuilder<T extends object> {
1729
1776
  transp(payload: Transp): CobrBuilder<T> & PagBuilder<T>;
@@ -1761,6 +1808,7 @@ interface AssembleNfeBuilder<T extends object> {
1761
1808
  assemble(): Promise<Either<NFeTsError, string>>;
1762
1809
  }
1763
1810
  interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetGroupBuilder<T>, DestBuilder<T>, RetiradaBuilder<T>, EntregaBuilder<T>, AutXMLBuilder<T>, TotalBuilder<T>, TranspBuilder<T>, PagBuilder<T>, InfIntermedBuilder<T>, ExportaBuilder<T>, CompraBuilder<T>, CanaBuilder<T>, InfRespTecBuilder<T>, InfSolicNFFBuilder<T>, InfAdicBuilder<T>, AvulsaBuilder<T>, AssembleNfeBuilder<T> {
1811
+ schema?: Schema;
1764
1812
  }
1765
1813
 
1766
1814
  declare class AccessKeyBuilder {
@@ -4918,6 +4966,7 @@ declare class DanfceReducedPdfDocument extends DanfcePdfDocument {
4918
4966
  declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<T> {
4919
4967
  protected readonly builder: XmlToolkit;
4920
4968
  protected contingency?: ContingencyOptions | undefined;
4969
+ readonly schema: Schema;
4921
4970
  protected readonly data: NFe$1;
4922
4971
  private $data;
4923
4972
  protected get entity(): new () => T;
@@ -4925,8 +4974,8 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4925
4974
  protected readonly $det: DetBuilderAggregator | undefined;
4926
4975
  protected readonly $total: TotalBuilderAggregator | undefined;
4927
4976
  protected readonly nfeDetXmlBuilder: DetBuilder & ProdBuilder;
4928
- static create<T extends object = NFe$1>(builder: XmlToolkit, contingency?: ContingencyOptions): InfNFeBuilder<T> & IdeBuilder<T>;
4929
- protected constructor(builder: XmlToolkit, contingency?: ContingencyOptions | undefined);
4977
+ static create<T extends object = NFe$1>(builder: XmlToolkit, contingency?: ContingencyOptions, schema?: Schema): InfNFeBuilder<T> & IdeBuilder<T>;
4978
+ protected constructor(builder: XmlToolkit, contingency?: ContingencyOptions | undefined, schema?: Schema);
4930
4979
  infNFe($: InfNFeAttributes): this;
4931
4980
  ide(payload: Ide): this;
4932
4981
  emit(payload: Emit): this;
@@ -4937,7 +4986,8 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4937
4986
  autXML(payload: AutXML): this;
4938
4987
  det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder, item: D) => AssembleDetXmlBuilder): TotalBuilder<T> & TranspBuilder<T>;
4939
4988
  total(payload: Total): this;
4940
- increment(callback: (context: DeepPartial<Total>) => DeepPartial<Total>): this;
4989
+ increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): this;
4990
+ private buildTotalForPL_010;
4941
4991
  transp(payload: Transp): this;
4942
4992
  cobr(payload: Cobr): this;
4943
4993
  pag(payload: Pag): this;
@@ -4962,7 +5012,7 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4962
5012
  declare class NfceXmlBuilder<T extends object = NFCe$1> extends NfeXmlBuilder<T> implements INfeXmlBuilder<T> {
4963
5013
  protected readonly data: NFCe$1;
4964
5014
  protected get entity(): new () => T;
4965
- static create<T extends object = NFCe$1>(builder: XmlToolkit, contingency?: ContingencyOptions): InfNFeBuilder<T> & IdeBuilder<T>;
5015
+ static create<T extends object = NFCe$1>(builder: XmlToolkit, contingency?: ContingencyOptions, schema?: Schema): InfNFeBuilder<T> & IdeBuilder<T>;
4966
5016
  protected assertHomologValidations(): boolean;
4967
5017
  protected assertContingencyModes(): void;
4968
5018
  }
@@ -5103,9 +5153,10 @@ declare class IBSCBS implements IBSCBS$1 {
5103
5153
 
5104
5154
  declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
5105
5155
  private readonly listener?;
5156
+ private readonly schema;
5106
5157
  protected data: Det;
5107
- static create(listener?: DetBuilderAggregator): DetBuilder & ProdBuilder;
5108
- protected constructor(listener?: DetBuilderAggregator | undefined);
5158
+ static create(listener?: DetBuilderAggregator, schema?: Schema): DetBuilder & ProdBuilder;
5159
+ protected constructor(listener?: DetBuilderAggregator | undefined, schema?: Schema);
5109
5160
  det(payload: DetAttributes): this;
5110
5161
  prod(payload: Prod): this;
5111
5162
  imposto(payload: Imposto): this;
@@ -5119,6 +5170,9 @@ declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
5119
5170
  cofinsst(payload: COFINSST): this;
5120
5171
  icmsufdest(payload: ICMSUFDest): this;
5121
5172
  ibscbs(payload: IBSCBS): this;
5173
+ vItem(payload: {
5174
+ vItem: string;
5175
+ }): this;
5122
5176
  assemble(): Det;
5123
5177
  }
5124
5178
 
@@ -5129,4 +5183,4 @@ declare class NFCe implements NFCe$1 {
5129
5183
  Signature?: Signature;
5130
5184
  }
5131
5185
 
5132
- export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas };
5186
+ export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas, type vItemBuilder };
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../chunk-Z3FG7SNK.mjs";import"../chunk-EF64O2NU.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,x as DanfceDefaultPdfDocument,y as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,u as NFCeDto,q as NFeDto,k as NfceAuthorizerPipeline,m as NfceConsultStatusPipeline,j as NfceQrcode,i as NfceRemoteTransmitter,v as NfceXmlBuilder,w as NfceXmlBuilderPipeline,n as NfeAuthorizationResponsePipeline,h as NfeAuthorizerPipeline,l as NfeConsultStatusPipeline,r as NfeDetXmlBuilder,o as NfeNfceCancelPipeline,p as NfeNfceVoidRangePipeline,g as NfeRemoteTransmitter,s as NfeXmlBuilder,t as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../chunk-TG5H65GZ.mjs";import"../chunk-EF64O2NU.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,x as DanfceDefaultPdfDocument,y as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,u as NFCeDto,q as NFeDto,k as NfceAuthorizerPipeline,m as NfceConsultStatusPipeline,j as NfceQrcode,i as NfceRemoteTransmitter,v as NfceXmlBuilder,w as NfceXmlBuilderPipeline,n as NfeAuthorizationResponsePipeline,h as NfeAuthorizerPipeline,l as NfeConsultStatusPipeline,r as NfeDetXmlBuilder,o as NfeNfceCancelPipeline,p as NfeNfceVoidRangePipeline,g as NfeRemoteTransmitter,s as NfeXmlBuilder,t as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",