@orbe-agro/client-core 5.3.163 → 5.3.164
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/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -1
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts +1 -1
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js +3 -3
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js.map +1 -1
- package/dist/base/services/modules/centralNfe/index.js +15 -15
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js +10 -10
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js.map +1 -1
- package/lib/base/configs/endpoints.config/centralNfe/config/nfe.ts +1 -1
- package/lib/base/services/modules/centralNfe/nfe/NfeService.ts +5 -3
- package/package.json +1 -1
|
@@ -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
|
|
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,
|
|
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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const t = "/central-nfe/api/nfe",
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
2
|
-
import { apiCreateIntervaloPrecoXml as r, apiFindMonitorIntervaloPrecoXml as p, apiFindOneIntervaloPrecoXml as
|
|
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
|
|
5
|
-
import { addLancamentoManual as
|
|
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
|
-
|
|
7
|
+
I as addLancamentoManual,
|
|
8
8
|
U as apiCreateCnpjLiberadoNota,
|
|
9
9
|
r as apiCreateIntervaloPrecoXml,
|
|
10
|
-
|
|
10
|
+
e as apiCreateNotificacaoCentralNfe,
|
|
11
11
|
N as apiCreateVinculoUnidadeMedida,
|
|
12
12
|
u as apiFindMonitorCnpjLiberadoNota,
|
|
13
13
|
p as apiFindMonitorIntervaloPrecoXml,
|
|
14
|
-
|
|
14
|
+
L as apiFindMonitorNfe,
|
|
15
15
|
o as apiFindMonitorNotificacaoCentralNfe,
|
|
16
16
|
C as apiFindMonitorVinculoUnidadeMedida,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
b as apiFindOneCnpjLiberadoNota,
|
|
18
|
+
c as apiFindOneIntervaloPrecoXml,
|
|
19
|
+
O as apiFindOneNfe,
|
|
20
20
|
n as apiFindOneNotificacaoCentralNfe,
|
|
21
21
|
m as apiFindOneVinculoUnidadeMedida,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
v as apiUpdateCnpjLiberadoNota,
|
|
23
|
+
l as apiUpdateIntervaloPrecoXml,
|
|
24
|
+
P as apiUpdateNfe,
|
|
25
25
|
d as apiUpdateNotificacaoCentralNfe,
|
|
26
26
|
F as apiUpdateVinculoUnidadeMedida,
|
|
27
|
-
|
|
28
|
-
|
|
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
|
|
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
|
|
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:
|
|
33
|
-
method: t.
|
|
32
|
+
url: t.validacaoImposto.endpoint.replace("{id}", n.toString()).replace("{numeroPedido}", a),
|
|
33
|
+
method: t.validacaoImposto.httpMethod
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
async function
|
|
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
|
-
|
|
45
|
-
|
|
44
|
+
u as addLancamentoManual,
|
|
45
|
+
c as apiFindMonitorNfe,
|
|
46
46
|
h as apiFindOneNfe,
|
|
47
47
|
r as apiUpdateNfe,
|
|
48
|
-
f as
|
|
49
|
-
|
|
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
|
|
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;"}
|
|
@@ -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
|
-
|
|
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
|
|
36
|
+
export async function buscaValidacaoImposto(id: number, numeroPedido: string) {
|
|
37
37
|
return ApiService.fetchDataWithAxios<any>({
|
|
38
|
-
url:
|
|
39
|
-
|
|
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