@orbe-agro/client-core 5.6.7 → 5.6.8
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 +4 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts +1 -0
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js +2 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js.map +1 -1
- package/dist/base/services/modules/centralNfe/index.js +2 -1
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js +11 -0
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js.map +1 -1
- package/lib/base/configs/endpoints.config/centralNfe/config/nfe.ts +1 -0
- package/lib/base/services/modules/centralNfe/nfe/NfeService.ts +11 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUf,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"nfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYR,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqD7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -8,4 +8,5 @@ export declare function addLancamentoManual(body: any): Promise<any>;
|
|
|
8
8
|
export declare function apiDesvincularOrdemCompra(body: any): Promise<any>;
|
|
9
9
|
export declare function apiEstornarPedidoCompra(numeroPedido: string): Promise<any>;
|
|
10
10
|
export declare function apiEstornarOperacao(id: number): Promise<any>;
|
|
11
|
+
export declare function apiSetNfeLock(idNfe: number, lock: boolean): Promise<any>;
|
|
11
12
|
//# 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,WAAW,CAAC,IAAI,KAAA,gBAMrC;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;AAED,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD;AAED,wBAAsB,uBAAuB,CAAC,YAAY,EAAE,MAAM,gBAMjE;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,gBAMnD"}
|
|
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,WAAW,CAAC,IAAI,KAAA,gBAMrC;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;AAED,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD;AAED,wBAAsB,uBAAuB,CAAC,YAAY,EAAE,MAAM,gBAMjE;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,gBAMnD;AAED,wBAAsB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,gBAS/D"}
|
|
@@ -9,7 +9,8 @@ const nfe = {
|
|
|
9
9
|
addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: "patch" },
|
|
10
10
|
desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: "post" },
|
|
11
11
|
estornarPedidoCompra: { endpoint: `${NFE_BASE_URL}/estornar-pedido-compra/{numeroPedido}`, httpMethod: "post" },
|
|
12
|
-
estornarOperacao: { endpoint: `${NFE_BASE_URL}/estornar-operacao?id={id}`, httpMethod: "post" }
|
|
12
|
+
estornarOperacao: { endpoint: `${NFE_BASE_URL}/estornar-operacao?id={id}`, httpMethod: "post" },
|
|
13
|
+
lock: { endpoint: `${NFE_BASE_URL}/lock`, httpMethod: "post" }
|
|
13
14
|
};
|
|
14
15
|
export {
|
|
15
16
|
nfe as default
|
|
@@ -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 count: { endpoint: `${NFE_BASE_URL}/count`, httpMethod: 'post' },\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 desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },\n estornarPedidoCompra: { endpoint: `${NFE_BASE_URL}/estornar-pedido-compra/{numeroPedido}`, httpMethod: 'post' },\n estornarOperacao: { endpoint: `${NFE_BASE_URL}/estornar-operacao?id={id}`, httpMethod: 'post' },\n}\n\nexport default nfe"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,MAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,OAAA;AAAA,EACrE,SAAS,EAAE,UAAU,cAAc,YAAY,MAAA;AAAA,EAC/C,QAAQ,EAAE,UAAU,cAAc,YAAY,QAAA;AAAA,EAC9C,OAAO,EAAE,UAAU,GAAG,YAAY,UAAU,YAAY,OAAA;AAAA,EACxD,0BAA0B,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,MAAA;AAAA,EAClF,kBAAkB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAA;AAAA,EACnG,qBAAqB,EAAE,UAAU,GAAG,YAAY,0BAA0B,YAAY,QAAA;AAAA,EACtF,wBAAwB,EAAE,UAAU,GAAG,YAAY,6BAA6B,YAAY,OAAA;AAAA,EAC5F,sBAAsB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAA;AAAA,EACvG,kBAAkB,EAAE,UAAU,GAAG,YAAY,8BAA8B,YAAY,OAAA;
|
|
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 count: { endpoint: `${NFE_BASE_URL}/count`, httpMethod: 'post' },\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 desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },\n estornarPedidoCompra: { endpoint: `${NFE_BASE_URL}/estornar-pedido-compra/{numeroPedido}`, httpMethod: 'post' },\n estornarOperacao: { endpoint: `${NFE_BASE_URL}/estornar-operacao?id={id}`, httpMethod: 'post' },\n lock: { endpoint: `${NFE_BASE_URL}/lock`, httpMethod: 'post' },\n}\n\nexport default nfe"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,MAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,OAAA;AAAA,EACrE,SAAS,EAAE,UAAU,cAAc,YAAY,MAAA;AAAA,EAC/C,QAAQ,EAAE,UAAU,cAAc,YAAY,QAAA;AAAA,EAC9C,OAAO,EAAE,UAAU,GAAG,YAAY,UAAU,YAAY,OAAA;AAAA,EACxD,0BAA0B,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,MAAA;AAAA,EAClF,kBAAkB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAA;AAAA,EACnG,qBAAqB,EAAE,UAAU,GAAG,YAAY,0BAA0B,YAAY,QAAA;AAAA,EACtF,wBAAwB,EAAE,UAAU,GAAG,YAAY,6BAA6B,YAAY,OAAA;AAAA,EAC5F,sBAAsB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAA;AAAA,EACvG,kBAAkB,EAAE,UAAU,GAAG,YAAY,8BAA8B,YAAY,OAAA;AAAA,EACvF,MAAM,EAAE,UAAU,GAAG,YAAY,SAAS,YAAY,OAAA;AAC1D;"}
|
|
@@ -2,7 +2,7 @@ import { apiCreateNotificacaoCentralNfe, apiFindMonitorNotificacaoCentralNfe, ap
|
|
|
2
2
|
import { apiCreateIntervaloPrecoXml, apiFindMonitorIntervaloPrecoXml, apiFindOneIntervaloPrecoXml, apiUpdateIntervaloPrecoXml } from "./intervaloPrecoXml/IntervaloPrecoXmlService.js";
|
|
3
3
|
import { apiCreateVinculoUnidadeMedida, apiFindMonitorVinculoUnidadeMedida, apiFindOneVinculoUnidadeMedida, apiUpdateVinculoUnidadeMedida } from "./vinculoUnidadeMedida/VinculoUnidadeMedidaService.js";
|
|
4
4
|
import { apiCreateCnpjLiberadoNota, apiFindMonitorCnpjLiberadoNota, apiFindOneCnpjLiberadoNota, apiUpdateCnpjLiberadoNota } from "./cnpjLiberadoNota/CnpjLiberadoNotaService.js";
|
|
5
|
-
import { addLancamentoManual, apiCountNfe, apiDesvincularOrdemCompra, apiEstornarOperacao, apiEstornarPedidoCompra, apiFindMonitorNfe, apiFindOneNfe, apiUpdateNfe, buscaValidacaoImposto, downloadPdfByChaveAcesso } from "./nfe/NfeService.js";
|
|
5
|
+
import { addLancamentoManual, apiCountNfe, apiDesvincularOrdemCompra, apiEstornarOperacao, apiEstornarPedidoCompra, apiFindMonitorNfe, apiFindOneNfe, apiSetNfeLock, apiUpdateNfe, buscaValidacaoImposto, downloadPdfByChaveAcesso } from "./nfe/NfeService.js";
|
|
6
6
|
export {
|
|
7
7
|
addLancamentoManual,
|
|
8
8
|
apiCountNfe,
|
|
@@ -23,6 +23,7 @@ export {
|
|
|
23
23
|
apiFindOneNfe,
|
|
24
24
|
apiFindOneNotificacaoCentralNfe,
|
|
25
25
|
apiFindOneVinculoUnidadeMedida,
|
|
26
|
+
apiSetNfeLock,
|
|
26
27
|
apiUpdateCnpjLiberadoNota,
|
|
27
28
|
apiUpdateIntervaloPrecoXml,
|
|
28
29
|
apiUpdateNfe,
|
|
@@ -66,6 +66,16 @@ async function apiEstornarOperacao(id) {
|
|
|
66
66
|
method: NFE_ENDPOINT.estornarPedidoCompra.httpMethod
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
+
async function apiSetNfeLock(idNfe, lock) {
|
|
70
|
+
return ApiService.fetchDataWithAxios({
|
|
71
|
+
url: NFE_ENDPOINT.lock.endpoint,
|
|
72
|
+
method: NFE_ENDPOINT.lock.httpMethod,
|
|
73
|
+
params: {
|
|
74
|
+
idNfe,
|
|
75
|
+
lock
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
69
79
|
export {
|
|
70
80
|
addLancamentoManual,
|
|
71
81
|
apiCountNfe,
|
|
@@ -74,6 +84,7 @@ export {
|
|
|
74
84
|
apiEstornarPedidoCompra,
|
|
75
85
|
apiFindMonitorNfe,
|
|
76
86
|
apiFindOneNfe,
|
|
87
|
+
apiSetNfeLock,
|
|
77
88
|
apiUpdateNfe,
|
|
78
89
|
buscaValidacaoImposto,
|
|
79
90
|
downloadPdfByChaveAcesso
|
|
@@ -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 apiCountNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.count.endpoint,\n method: NFE_ENDPOINT.count.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}\n\nexport async function apiDesvincularOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,\n method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,\n data: body\n })\n}\n\nexport async function apiEstornarPedidoCompra(numeroPedido: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.estornarPedidoCompra.endpoint\n .replace('{numeroPedido}', numeroPedido),\n method: NFE_ENDPOINT.estornarPedidoCompra.httpMethod\n })\n}\n\nexport async function apiEstornarOperacao(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.estornarOperacao.endpoint\n .replace('{id}', id.toString()),\n method: NFE_ENDPOINT.estornarPedidoCompra.httpMethod\n })\n}"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,eAAeA,yBAAe,WAAW;AAE/C,eAAsB,kBAAkB,MAAM;AAC1C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,YAAY;AAAA,IAC9B,QAAQ,aAAa,YAAY;AAAA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sB,wBAAwB,cAAsB;AAChE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,qBAAqB,SAClC,QAAQ,kBAAkB,YAAY;AAAA,IAC3C,QAAQ,aAAa,qBAAqB;AAAA,EAAA,CAC7C;AACL;AAEA,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,iBAAiB,SAC9B,QAAQ,QAAQ,GAAG,UAAU;AAAA,IAClC,QAAQ,aAAa,qBAAqB;AAAA,EAAA,CAC7C;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 apiCountNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.count.endpoint,\n method: NFE_ENDPOINT.count.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}\n\nexport async function apiDesvincularOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,\n method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,\n data: body\n })\n}\n\nexport async function apiEstornarPedidoCompra(numeroPedido: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.estornarPedidoCompra.endpoint\n .replace('{numeroPedido}', numeroPedido),\n method: NFE_ENDPOINT.estornarPedidoCompra.httpMethod\n })\n}\n\nexport async function apiEstornarOperacao(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.estornarOperacao.endpoint\n .replace('{id}', id.toString()),\n method: NFE_ENDPOINT.estornarPedidoCompra.httpMethod\n })\n}\n\nexport async function apiSetNfeLock(idNfe: number, lock: boolean) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.lock.endpoint,\n method: NFE_ENDPOINT.lock.httpMethod,\n params: {\n idNfe,\n lock\n }\n })\n}"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,eAAeA,yBAAe,WAAW;AAE/C,eAAsB,kBAAkB,MAAM;AAC1C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,YAAY;AAAA,IAC9B,QAAQ,aAAa,YAAY;AAAA,IACjC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,YAAY,MAAM;AACpC,SAAO,WAAW,mBAAwB;AAAA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kBAAkB,YAAY;AAAA,IAC3C,QAAQ,aAAa,qBAAqB;AAAA,EAAA,CAC7C;AACL;AAEA,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,iBAAiB,SAC9B,QAAQ,QAAQ,GAAG,UAAU;AAAA,IAClC,QAAQ,aAAa,qBAAqB;AAAA,EAAA,CAC7C;AACL;AAEA,eAAsB,cAAc,OAAe,MAAe;AAC9D,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,KAAK;AAAA,IACvB,QAAQ,aAAa,KAAK;AAAA,IAC1B,QAAQ;AAAA,MACJ;AAAA,MACA;AAAA,IAAA;AAAA,EACJ,CACH;AACL;"}
|
|
@@ -11,6 +11,7 @@ const nfe = {
|
|
|
11
11
|
desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },
|
|
12
12
|
estornarPedidoCompra: { endpoint: `${NFE_BASE_URL}/estornar-pedido-compra/{numeroPedido}`, httpMethod: 'post' },
|
|
13
13
|
estornarOperacao: { endpoint: `${NFE_BASE_URL}/estornar-operacao?id={id}`, httpMethod: 'post' },
|
|
14
|
+
lock: { endpoint: `${NFE_BASE_URL}/lock`, httpMethod: 'post' },
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export default nfe
|
|
@@ -80,4 +80,15 @@ export async function apiEstornarOperacao(id: number) {
|
|
|
80
80
|
.replace('{id}', id.toString()),
|
|
81
81
|
method: NFE_ENDPOINT.estornarPedidoCompra.httpMethod
|
|
82
82
|
})
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export async function apiSetNfeLock(idNfe: number, lock: boolean) {
|
|
86
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
87
|
+
url: NFE_ENDPOINT.lock.endpoint,
|
|
88
|
+
method: NFE_ENDPOINT.lock.httpMethod,
|
|
89
|
+
params: {
|
|
90
|
+
idNfe,
|
|
91
|
+
lock
|
|
92
|
+
}
|
|
93
|
+
})
|
|
83
94
|
}
|