@orbe-agro/client-core 5.3.163 → 5.3.165

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.
Files changed (26) hide show
  1. package/dist/@types/base/@types/api/response/originacao/TBloqueioResponse.d.ts +7 -0
  2. package/dist/@types/base/@types/api/response/originacao/TBloqueioResponse.d.ts.map +1 -0
  3. package/dist/@types/base/@types/api/response/originacao/TSaldoValueObjectResponse.d.ts +6 -5
  4. package/dist/@types/base/@types/api/response/originacao/TSaldoValueObjectResponse.d.ts.map +1 -1
  5. package/dist/@types/base/@types/enums/originacao/TipoEntidadeBloqueadora.d.ts +6 -0
  6. package/dist/@types/base/@types/enums/originacao/TipoEntidadeBloqueadora.d.ts.map +1 -0
  7. package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts +1 -1
  8. package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts +1 -1
  9. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -1
  10. package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts +1 -1
  11. package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts.map +1 -1
  12. package/dist/base/@types/api/response/originacao/TBloqueioResponse.js +2 -0
  13. package/dist/base/@types/api/response/originacao/TBloqueioResponse.js.map +1 -0
  14. package/dist/base/@types/enums/originacao/TipoEntidadeBloqueadora.js +5 -0
  15. package/dist/base/@types/enums/originacao/TipoEntidadeBloqueadora.js.map +1 -0
  16. package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js +3 -3
  17. package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js.map +1 -1
  18. package/dist/base/services/modules/centralNfe/index.js +15 -15
  19. package/dist/base/services/modules/centralNfe/nfe/NfeService.js +10 -10
  20. package/dist/base/services/modules/centralNfe/nfe/NfeService.js.map +1 -1
  21. package/lib/base/@types/api/response/originacao/TBloqueioResponse.ts +7 -0
  22. package/lib/base/@types/api/response/originacao/TSaldoValueObjectResponse.ts +6 -5
  23. package/lib/base/@types/enums/originacao/TipoEntidadeBloqueadora.ts +5 -0
  24. package/lib/base/configs/endpoints.config/centralNfe/config/nfe.ts +1 -1
  25. package/lib/base/services/modules/centralNfe/nfe/NfeService.ts +5 -3
  26. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import { TipoEntidadeBloqueadora } from "@base/@types/enums/originacao/TipoEntidadeBloqueadora";
2
+ export type TBloqueioResponse = {
3
+ tipo: TipoEntidadeBloqueadora;
4
+ entidadeId: number;
5
+ quantidade: number;
6
+ };
7
+ //# sourceMappingURL=TBloqueioResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TBloqueioResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TBloqueioResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAA;AAE/F,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA"}
@@ -1,10 +1,11 @@
1
1
  import { StatusSaldoTicket } from "@base/@types/enums/originacao/StatusSaldoTicket";
2
+ import { TBloqueioResponse } from "./TBloqueioResponse";
2
3
  export type TSaldoValueObjectResponse = {
3
- disponivel: string;
4
- quantidadeInicial: string;
5
- quantidadeUtilizada: string;
6
- totalBloqueado: string;
7
- bloqueios: Record<string, string>;
4
+ disponivel: number;
5
+ quantidadeInicial: number;
6
+ quantidadeUtilizada: number;
7
+ totalBloqueado: number;
8
+ bloqueios: TBloqueioResponse[];
8
9
  status: StatusSaldoTicket;
9
10
  };
10
11
  //# sourceMappingURL=TSaldoValueObjectResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TSaldoValueObjectResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TSaldoValueObjectResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAEnF,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,MAAM,EAAE,iBAAiB,CAAA;CAC5B,CAAA"}
1
+ {"version":3,"file":"TSaldoValueObjectResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TSaldoValueObjectResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B,MAAM,EAAE,iBAAiB,CAAA;CAC5B,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare enum TipoEntidadeBloqueadora {
2
+ TICKET = "TICKET",
3
+ LIQUIDACAO = "LIQUIDACAO",
4
+ CONTRATO = "CONTRATO"
5
+ }
6
+ //# sourceMappingURL=TipoEntidadeBloqueadora.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TipoEntidadeBloqueadora.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/enums/originacao/TipoEntidadeBloqueadora.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IAC/B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,QAAQ,aAAa;CACxB"}
@@ -88,7 +88,7 @@ declare const centralNfe: {
88
88
  endpoint: string;
89
89
  httpMethod: string;
90
90
  };
91
- downloadBoletoById: {
91
+ validacaoImposto: {
92
92
  endpoint: string;
93
93
  httpMethod: string;
94
94
  };
@@ -15,7 +15,7 @@ declare const nfe: {
15
15
  endpoint: string;
16
16
  httpMethod: string;
17
17
  };
18
- downloadBoletoById: {
18
+ validacaoImposto: {
19
19
  endpoint: string;
20
20
  httpMethod: string;
21
21
  };
@@ -1532,7 +1532,7 @@ declare const endpointNavigationConfig: {
1532
1532
  endpoint: string;
1533
1533
  httpMethod: string;
1534
1534
  };
1535
- downloadBoletoById: {
1535
+ validacaoImposto: {
1536
1536
  endpoint: string;
1537
1537
  httpMethod: string;
1538
1538
  };
@@ -2,6 +2,6 @@ export declare function apiFindMonitorNfe(body: any): Promise<any>;
2
2
  export declare function apiFindOneNfe(id: number): Promise<any>;
3
3
  export declare function apiUpdateNfe(body: any): Promise<any>;
4
4
  export declare function downloadPdfByChaveAcesso(chaveAcesso: string): Promise<any>;
5
- export declare function downloadBoletoById(id: number): Promise<any>;
5
+ export declare function buscaValidacaoImposto(id: number, numeroPedido: string): Promise<any>;
6
6
  export declare function addLancamentoManual(body: any): Promise<any>;
7
7
  //# sourceMappingURL=NfeService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"names":[],"mappings":"AAKA,wBAAsB,iBAAiB,CAAC,IAAI,KAAA,gBAM3C;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,gBAK7C;AAED,wBAAsB,YAAY,CAAC,IAAI,KAAA,gBAMtC;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,gBAKjE;AAED,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,gBAKlD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,KAAA,gBAM7C"}
1
+ {"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"names":[],"mappings":"AAKA,wBAAsB,iBAAiB,CAAC,IAAI,KAAA,gBAM3C;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,gBAK7C;AAED,wBAAsB,YAAY,CAAC,IAAI,KAAA,gBAMtC;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,gBAKjE;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAO3E;AAED,wBAAsB,mBAAmB,CAAC,IAAI,KAAA,gBAM7C"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TBloqueioResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TBloqueioResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ var C = /* @__PURE__ */ ((A) => (A.TICKET = "TICKET", A.LIQUIDACAO = "LIQUIDACAO", A.CONTRATO = "CONTRATO", A))(C || {});
2
+ export {
3
+ C as TipoEntidadeBloqueadora
4
+ };
5
+ //# sourceMappingURL=TipoEntidadeBloqueadora.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TipoEntidadeBloqueadora.js","sources":["../../../../../lib/base/@types/enums/originacao/TipoEntidadeBloqueadora.ts"],"sourcesContent":["export enum TipoEntidadeBloqueadora {\n TICKET = 'TICKET',\n LIQUIDACAO = 'LIQUIDACAO',\n CONTRATO = 'CONTRATO'\n}\n"],"names":["TipoEntidadeBloqueadora"],"mappings":"AAAY,IAAAA,sBAAAA,OACRA,EAAA,SAAS,UACTA,EAAA,aAAa,cACbA,EAAA,WAAW,YAHHA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,12 +1,12 @@
1
- const t = "/central-nfe/api/nfe", n = {
1
+ const t = "/central-nfe/api/nfe", o = {
2
2
  findMonitor: { endpoint: `${t}/find-monitor`, httpMethod: "post" },
3
3
  findOne: { endpoint: t, httpMethod: "get" },
4
4
  update: { endpoint: t, httpMethod: "patch" },
5
5
  downloadPdfByChaveAcesso: { endpoint: `${t}/download-pdf`, httpMethod: "get" },
6
- downloadBoletoById: { endpoint: `${t}/download`, httpMethod: "get" },
6
+ validacaoImposto: { endpoint: `${t}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: "post" },
7
7
  addLancamentoManual: { endpoint: `${t}/add/lancamento-manual`, httpMethod: "patch" }
8
8
  };
9
9
  export {
10
- n as default
10
+ o as default
11
11
  };
12
12
  //# sourceMappingURL=nfe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nfe.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"sourcesContent":["const NFE_BASE_URL = '/central-nfe/api/nfe'\n\nconst nfe = {\n findMonitor: { endpoint: `${NFE_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: NFE_BASE_URL, httpMethod: 'get' },\n update: { endpoint: NFE_BASE_URL, httpMethod: 'patch' },\n downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },\n downloadBoletoById: { endpoint: `${NFE_BASE_URL}/download`, httpMethod: 'get' },\n addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },\n}\n\nexport default nfe"],"names":["NFE_BASE_URL","nfe"],"mappings":"AAAA,MAAMA,IAAe,wBAEfC,IAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAGD,CAAY,iBAAiB,YAAY,OAAO;AAAA,EAC5E,SAAS,EAAE,UAAUA,GAAc,YAAY,MAAM;AAAA,EACrD,QAAQ,EAAE,UAAUA,GAAc,YAAY,QAAQ;AAAA,EACtD,0BAA0B,EAAE,UAAU,GAAGA,CAAY,iBAAiB,YAAY,MAAM;AAAA,EACxF,oBAAoB,EAAE,UAAU,GAAGA,CAAY,aAAa,YAAY,MAAM;AAAA,EAC9E,qBAAqB,EAAE,UAAU,GAAGA,CAAY,0BAA0B,YAAY,QAAQ;AAClG;"}
1
+ {"version":3,"file":"nfe.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"sourcesContent":["const NFE_BASE_URL = '/central-nfe/api/nfe'\n\nconst nfe = {\n findMonitor: { endpoint: `${NFE_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: NFE_BASE_URL, httpMethod: 'get' },\n update: { endpoint: NFE_BASE_URL, httpMethod: 'patch' },\n downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },\n validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: 'post' },\n addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },\n}\n\nexport default nfe"],"names":["NFE_BASE_URL","nfe"],"mappings":"AAAA,MAAMA,IAAe,wBAEfC,IAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAGD,CAAY,iBAAiB,YAAY,OAAO;AAAA,EAC5E,SAAS,EAAE,UAAUA,GAAc,YAAY,MAAM;AAAA,EACrD,QAAQ,EAAE,UAAUA,GAAc,YAAY,QAAQ;AAAA,EACtD,0BAA0B,EAAE,UAAU,GAAGA,CAAY,iBAAiB,YAAY,MAAM;AAAA,EACxF,kBAAkB,EAAE,UAAU,GAAGA,CAAY,0CAA0C,YAAY,OAAO;AAAA,EAC1G,qBAAqB,EAAE,UAAU,GAAGA,CAAY,0BAA0B,YAAY,QAAQ;AAClG;"}
@@ -1,30 +1,30 @@
1
- import { apiCreateNotificacaoCentralNfe as i, apiFindMonitorNotificacaoCentralNfe as o, apiFindOneNotificacaoCentralNfe as n, apiUpdateNotificacaoCentralNfe as d } from "./notificacaoCentralNfe/NotificacaoCentralNfeService.js";
2
- import { apiCreateIntervaloPrecoXml as r, apiFindMonitorIntervaloPrecoXml as p, apiFindOneIntervaloPrecoXml as l, apiUpdateIntervaloPrecoXml as c } from "./intervaloPrecoXml/IntervaloPrecoXmlService.js";
1
+ import { apiCreateNotificacaoCentralNfe as e, apiFindMonitorNotificacaoCentralNfe as o, apiFindOneNotificacaoCentralNfe as n, apiUpdateNotificacaoCentralNfe as d } from "./notificacaoCentralNfe/NotificacaoCentralNfeService.js";
2
+ import { apiCreateIntervaloPrecoXml as r, apiFindMonitorIntervaloPrecoXml as p, apiFindOneIntervaloPrecoXml as c, apiUpdateIntervaloPrecoXml as l } from "./intervaloPrecoXml/IntervaloPrecoXmlService.js";
3
3
  import { apiCreateVinculoUnidadeMedida as N, apiFindMonitorVinculoUnidadeMedida as C, apiFindOneVinculoUnidadeMedida as m, apiUpdateVinculoUnidadeMedida as F } from "./vinculoUnidadeMedida/VinculoUnidadeMedidaService.js";
4
- import { apiCreateCnpjLiberadoNota as U, apiFindMonitorCnpjLiberadoNota as u, apiFindOneCnpjLiberadoNota as v, apiUpdateCnpjLiberadoNota as x } from "./cnpjLiberadoNota/CnpjLiberadoNotaService.js";
5
- import { addLancamentoManual as L, apiFindMonitorNfe as O, apiFindOneNfe as P, apiUpdateNfe as b, downloadBoletoById as j, downloadPdfByChaveAcesso as V } from "./nfe/NfeService.js";
4
+ import { apiCreateCnpjLiberadoNota as U, apiFindMonitorCnpjLiberadoNota as u, apiFindOneCnpjLiberadoNota as b, apiUpdateCnpjLiberadoNota as v } from "./cnpjLiberadoNota/CnpjLiberadoNotaService.js";
5
+ import { addLancamentoManual as I, apiFindMonitorNfe as L, apiFindOneNfe as O, apiUpdateNfe as P, buscaValidacaoImposto as V, downloadPdfByChaveAcesso as j } from "./nfe/NfeService.js";
6
6
  export {
7
- L as addLancamentoManual,
7
+ I as addLancamentoManual,
8
8
  U as apiCreateCnpjLiberadoNota,
9
9
  r as apiCreateIntervaloPrecoXml,
10
- i as apiCreateNotificacaoCentralNfe,
10
+ e as apiCreateNotificacaoCentralNfe,
11
11
  N as apiCreateVinculoUnidadeMedida,
12
12
  u as apiFindMonitorCnpjLiberadoNota,
13
13
  p as apiFindMonitorIntervaloPrecoXml,
14
- O as apiFindMonitorNfe,
14
+ L as apiFindMonitorNfe,
15
15
  o as apiFindMonitorNotificacaoCentralNfe,
16
16
  C as apiFindMonitorVinculoUnidadeMedida,
17
- v as apiFindOneCnpjLiberadoNota,
18
- l as apiFindOneIntervaloPrecoXml,
19
- P as apiFindOneNfe,
17
+ b as apiFindOneCnpjLiberadoNota,
18
+ c as apiFindOneIntervaloPrecoXml,
19
+ O as apiFindOneNfe,
20
20
  n as apiFindOneNotificacaoCentralNfe,
21
21
  m as apiFindOneVinculoUnidadeMedida,
22
- x as apiUpdateCnpjLiberadoNota,
23
- c as apiUpdateIntervaloPrecoXml,
24
- b as apiUpdateNfe,
22
+ v as apiUpdateCnpjLiberadoNota,
23
+ l as apiUpdateIntervaloPrecoXml,
24
+ P as apiUpdateNfe,
25
25
  d as apiUpdateNotificacaoCentralNfe,
26
26
  F as apiUpdateVinculoUnidadeMedida,
27
- j as downloadBoletoById,
28
- V as downloadPdfByChaveAcesso
27
+ V as buscaValidacaoImposto,
28
+ j as downloadPdfByChaveAcesso
29
29
  };
30
30
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import o from "../../../../../@ecme/services/ApiService.js";
2
2
  import e from "../../../../configs/endpoints.config/endpoints.navigation.js";
3
3
  const t = e.centralNfe.nfe;
4
- async function i(n) {
4
+ async function c(n) {
5
5
  return o.fetchDataWithAxios({
6
6
  url: t.findMonitor.endpoint,
7
7
  method: t.findMonitor.httpMethod,
@@ -21,19 +21,19 @@ async function r(n) {
21
21
  data: n
22
22
  });
23
23
  }
24
- async function c(n) {
24
+ async function p(n) {
25
25
  return o.fetchDataWithAxios({
26
26
  url: `${t.downloadPdfByChaveAcesso.endpoint}/${n}`,
27
27
  method: t.downloadPdfByChaveAcesso.httpMethod
28
28
  });
29
29
  }
30
- async function f(n) {
30
+ async function f(n, a) {
31
31
  return o.fetchDataWithAxios({
32
- url: `${t.downloadBoletoById.endpoint}/${n}`,
33
- method: t.downloadBoletoById.httpMethod
32
+ url: t.validacaoImposto.endpoint.replace("{id}", n.toString()).replace("{numeroPedido}", a),
33
+ method: t.validacaoImposto.httpMethod
34
34
  });
35
35
  }
36
- async function p(n) {
36
+ async function u(n) {
37
37
  return o.fetchDataWithAxios({
38
38
  url: t.addLancamentoManual.endpoint,
39
39
  method: t.addLancamentoManual.httpMethod,
@@ -41,11 +41,11 @@ async function p(n) {
41
41
  });
42
42
  }
43
43
  export {
44
- p as addLancamentoManual,
45
- i as apiFindMonitorNfe,
44
+ u as addLancamentoManual,
45
+ c as apiFindMonitorNfe,
46
46
  h as apiFindOneNfe,
47
47
  r as apiUpdateNfe,
48
- f as downloadBoletoById,
49
- c as downloadPdfByChaveAcesso
48
+ f as buscaValidacaoImposto,
49
+ p as downloadPdfByChaveAcesso
50
50
  };
51
51
  //# sourceMappingURL=NfeService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NfeService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst NFE_ENDPOINT = endpointConfig.centralNfe.nfe;\n\nexport async function apiFindMonitorNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.findMonitor.endpoint,\n method: NFE_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneNfe(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.findOne.endpoint}/${id}`,\n method: NFE_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.update.endpoint,\n method: NFE_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function downloadPdfByChaveAcesso(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadPdfByChaveAcesso.endpoint}/${chaveAcesso}`,\n method: NFE_ENDPOINT.downloadPdfByChaveAcesso.httpMethod\n })\n}\n\nexport async function downloadBoletoById(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadBoletoById.endpoint}/${id}`,\n method: NFE_ENDPOINT.downloadBoletoById.httpMethod\n })\n}\n\nexport async function addLancamentoManual(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.addLancamentoManual.endpoint,\n method: NFE_ENDPOINT.addLancamentoManual.httpMethod,\n data: body\n })\n}"],"names":["NFE_ENDPOINT","endpointConfig","apiFindMonitorNfe","body","ApiService","apiFindOneNfe","id","apiUpdateNfe","downloadPdfByChaveAcesso","chaveAcesso","downloadBoletoById","addLancamentoManual"],"mappings":";;AAGA,MAAMA,IAAeC,EAAe,WAAW;AAE/C,eAAsBC,EAAkBC,GAAM;AAC1C,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,YAAY;AAAA,IAC9B,QAAQA,EAAa,YAAY;AAAA,IACjC,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAcC,GAAY;AAC5C,SAAOF,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,QAAQ,QAAQ,IAAIM,CAAE;AAAA,IAC3C,QAAQN,EAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsBO,EAAaJ,GAAM;AACrC,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,OAAO;AAAA,IACzB,QAAQA,EAAa,OAAO;AAAA,IAC5B,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBK,EAAyBC,GAAqB;AAChE,SAAOL,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,yBAAyB,QAAQ,IAAIS,CAAW;AAAA,IACrE,QAAQT,EAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEA,eAAsBU,EAAmBJ,GAAY;AACjD,SAAOF,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,mBAAmB,QAAQ,IAAIM,CAAE;AAAA,IACtD,QAAQN,EAAa,mBAAmB;AAAA,EAAA,CAC3C;AACL;AAEA,eAAsBW,EAAoBR,GAAM;AAC5C,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,oBAAoB;AAAA,IACtC,QAAQA,EAAa,oBAAoB;AAAA,IACzC,MAAMG;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"NfeService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst NFE_ENDPOINT = endpointConfig.centralNfe.nfe;\n\nexport async function apiFindMonitorNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.findMonitor.endpoint,\n method: NFE_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneNfe(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.findOne.endpoint}/${id}`,\n method: NFE_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.update.endpoint,\n method: NFE_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function downloadPdfByChaveAcesso(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadPdfByChaveAcesso.endpoint}/${chaveAcesso}`,\n method: NFE_ENDPOINT.downloadPdfByChaveAcesso.httpMethod\n })\n}\n\nexport async function buscaValidacaoImposto(id: number, numeroPedido: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.validacaoImposto.endpoint\n .replace('{id}', id.toString())\n .replace('{numeroPedido}', numeroPedido),\n method: NFE_ENDPOINT.validacaoImposto.httpMethod\n })\n}\n\nexport async function addLancamentoManual(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.addLancamentoManual.endpoint,\n method: NFE_ENDPOINT.addLancamentoManual.httpMethod,\n data: body\n })\n}"],"names":["NFE_ENDPOINT","endpointConfig","apiFindMonitorNfe","body","ApiService","apiFindOneNfe","id","apiUpdateNfe","downloadPdfByChaveAcesso","chaveAcesso","buscaValidacaoImposto","numeroPedido","addLancamentoManual"],"mappings":";;AAGA,MAAMA,IAAeC,EAAe,WAAW;AAE/C,eAAsBC,EAAkBC,GAAM;AAC1C,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,YAAY;AAAA,IAC9B,QAAQA,EAAa,YAAY;AAAA,IACjC,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAcC,GAAY;AAC5C,SAAOF,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,QAAQ,QAAQ,IAAIM,CAAE;AAAA,IAC3C,QAAQN,EAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsBO,EAAaJ,GAAM;AACrC,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,OAAO;AAAA,IACzB,QAAQA,EAAa,OAAO;AAAA,IAC5B,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBK,EAAyBC,GAAqB;AAChE,SAAOL,EAAW,mBAAwB;AAAA,IACtC,KAAK,GAAGJ,EAAa,yBAAyB,QAAQ,IAAIS,CAAW;AAAA,IACrE,QAAQT,EAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEsB,eAAAU,EAAsBJ,GAAYK,GAAsB;AAC1E,SAAOP,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,iBAAiB,SAC9B,QAAQ,QAAQM,EAAG,SAAA,CAAU,EAC7B,QAAQ,kBAAkBK,CAAY;AAAA,IAC3C,QAAQX,EAAa,iBAAiB;AAAA,EAAA,CACzC;AACL;AAEA,eAAsBY,EAAoBT,GAAM;AAC5C,SAAOC,EAAW,mBAAwB;AAAA,IACtC,KAAKJ,EAAa,oBAAoB;AAAA,IACtC,QAAQA,EAAa,oBAAoB;AAAA,IACzC,MAAMG;AAAA,EAAA,CACT;AACL;"}
@@ -0,0 +1,7 @@
1
+ import { TipoEntidadeBloqueadora } from "@base/@types/enums/originacao/TipoEntidadeBloqueadora"
2
+
3
+ export type TBloqueioResponse = {
4
+ tipo: TipoEntidadeBloqueadora
5
+ entidadeId: number
6
+ quantidade: number
7
+ }
@@ -1,10 +1,11 @@
1
1
  import { StatusSaldoTicket } from "@base/@types/enums/originacao/StatusSaldoTicket"
2
+ import { TBloqueioResponse } from "./TBloqueioResponse"
2
3
 
3
4
  export type TSaldoValueObjectResponse = {
4
- disponivel: string
5
- quantidadeInicial: string
6
- quantidadeUtilizada: string
7
- totalBloqueado: string
8
- bloqueios: Record<string, string>,
5
+ disponivel: number
6
+ quantidadeInicial: number
7
+ quantidadeUtilizada: number
8
+ totalBloqueado: number
9
+ bloqueios: TBloqueioResponse[]
9
10
  status: StatusSaldoTicket
10
11
  }
@@ -0,0 +1,5 @@
1
+ export enum TipoEntidadeBloqueadora {
2
+ TICKET = 'TICKET',
3
+ LIQUIDACAO = 'LIQUIDACAO',
4
+ CONTRATO = 'CONTRATO'
5
+ }
@@ -5,7 +5,7 @@ const nfe = {
5
5
  findOne: { endpoint: NFE_BASE_URL, httpMethod: 'get' },
6
6
  update: { endpoint: NFE_BASE_URL, httpMethod: 'patch' },
7
7
  downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },
8
- downloadBoletoById: { endpoint: `${NFE_BASE_URL}/download`, httpMethod: 'get' },
8
+ validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: 'post' },
9
9
  addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },
10
10
  }
11
11
 
@@ -33,10 +33,12 @@ export async function downloadPdfByChaveAcesso(chaveAcesso: string) {
33
33
  })
34
34
  }
35
35
 
36
- export async function downloadBoletoById(id: number) {
36
+ export async function buscaValidacaoImposto(id: number, numeroPedido: string) {
37
37
  return ApiService.fetchDataWithAxios<any>({
38
- url: `${NFE_ENDPOINT.downloadBoletoById.endpoint}/${id}`,
39
- method: NFE_ENDPOINT.downloadBoletoById.httpMethod
38
+ url: NFE_ENDPOINT.validacaoImposto.endpoint
39
+ .replace('{id}', id.toString())
40
+ .replace('{numeroPedido}', numeroPedido),
41
+ method: NFE_ENDPOINT.validacaoImposto.httpMethod
40
42
  })
41
43
  }
42
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.163",
3
+ "version": "5.3.165",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",