@orbe-agro/client-core 5.3.266 → 5.3.267
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 +8 -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 +8 -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQR,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":"AAgDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -4,4 +4,5 @@ export declare function apiUpdateNfe(body: any): Promise<any>;
|
|
|
4
4
|
export declare function downloadPdfByChaveAcesso(chaveAcesso: string): Promise<any>;
|
|
5
5
|
export declare function buscaValidacaoImposto(id: number, numeroPedido: string): Promise<any>;
|
|
6
6
|
export declare function addLancamentoManual(body: any): Promise<any>;
|
|
7
|
+
export declare function apiDesvincularOrdemCompra(body: any): Promise<any>;
|
|
7
8
|
//# 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,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAO3E;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;AAED,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD"}
|
|
@@ -5,7 +5,8 @@ const nfe = {
|
|
|
5
5
|
update: { endpoint: NFE_BASE_URL, httpMethod: "patch" },
|
|
6
6
|
downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: "get" },
|
|
7
7
|
validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: "post" },
|
|
8
|
-
addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: "patch" }
|
|
8
|
+
addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: "patch" },
|
|
9
|
+
desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: "post" }
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
12
|
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 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":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,MAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,OAAO;AAAA,EAC5E,SAAS,EAAE,UAAU,cAAc,YAAY,MAAM;AAAA,EACrD,QAAQ,EAAE,UAAU,cAAc,YAAY,QAAQ;AAAA,EACtD,0BAA0B,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,MAAM;AAAA,EACxF,kBAAkB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAO;AAAA,EAC1G,qBAAqB,EAAE,UAAU,GAAG,YAAY,0BAA0B,YAAY,QAAQ;
|
|
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 desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },\n}\n\nexport default nfe"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,MAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,OAAO;AAAA,EAC5E,SAAS,EAAE,UAAU,cAAc,YAAY,MAAM;AAAA,EACrD,QAAQ,EAAE,UAAU,cAAc,YAAY,QAAQ;AAAA,EACtD,0BAA0B,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,MAAM;AAAA,EACxF,kBAAkB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAO;AAAA,EAC1G,qBAAqB,EAAE,UAAU,GAAG,YAAY,0BAA0B,YAAY,QAAQ;AAAA,EAC9F,wBAAwB,EAAE,UAAU,GAAG,YAAY,6BAA6B,YAAY,OAAO;AACvG;"}
|
|
@@ -2,13 +2,14 @@ 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, apiFindMonitorNfe, apiFindOneNfe, apiUpdateNfe, buscaValidacaoImposto, downloadPdfByChaveAcesso } from "./nfe/NfeService.js";
|
|
5
|
+
import { addLancamentoManual, apiDesvincularOrdemCompra, apiFindMonitorNfe, apiFindOneNfe, apiUpdateNfe, buscaValidacaoImposto, downloadPdfByChaveAcesso } from "./nfe/NfeService.js";
|
|
6
6
|
export {
|
|
7
7
|
addLancamentoManual,
|
|
8
8
|
apiCreateCnpjLiberadoNota,
|
|
9
9
|
apiCreateIntervaloPrecoXml,
|
|
10
10
|
apiCreateNotificacaoCentralNfe,
|
|
11
11
|
apiCreateVinculoUnidadeMedida,
|
|
12
|
+
apiDesvincularOrdemCompra,
|
|
12
13
|
apiFindMonitorCnpjLiberadoNota,
|
|
13
14
|
apiFindMonitorIntervaloPrecoXml,
|
|
14
15
|
apiFindMonitorNfe,
|
|
@@ -40,8 +40,16 @@ async function addLancamentoManual(body) {
|
|
|
40
40
|
data: body
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
+
async function apiDesvincularOrdemCompra(body) {
|
|
44
|
+
return ApiService.fetchDataWithAxios({
|
|
45
|
+
url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,
|
|
46
|
+
method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,
|
|
47
|
+
data: body
|
|
48
|
+
});
|
|
49
|
+
}
|
|
43
50
|
export {
|
|
44
51
|
addLancamentoManual,
|
|
52
|
+
apiDesvincularOrdemCompra,
|
|
45
53
|
apiFindMonitorNfe,
|
|
46
54
|
apiFindOneNfe,
|
|
47
55
|
apiUpdateNfe,
|
|
@@ -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 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":["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,cAAc,IAAY;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,QAAQ,QAAQ,IAAI,EAAE;AAAA,IAC3C,QAAQ,aAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsB,aAAa,MAAM;AACrC,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,OAAO;AAAA,IACzB,QAAQ,aAAa,OAAO;AAAA,IAC5B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,yBAAyB,aAAqB;AAChE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,yBAAyB,QAAQ,IAAI,WAAW;AAAA,IACrE,QAAQ,aAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEsB,eAAA,sBAAsB,IAAY,cAAsB;AAC1E,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,iBAAiB,SAC9B,QAAQ,QAAQ,GAAG,SAAA,CAAU,EAC7B,QAAQ,kBAAkB,YAAY;AAAA,IAC3C,QAAQ,aAAa,iBAAiB;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,oBAAoB,MAAM;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,oBAAoB;AAAA,IACtC,QAAQ,aAAa,oBAAoB;AAAA,IACzC,MAAM;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}\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}"],"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,cAAc,IAAY;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,QAAQ,QAAQ,IAAI,EAAE;AAAA,IAC3C,QAAQ,aAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsB,aAAa,MAAM;AACrC,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,OAAO;AAAA,IACzB,QAAQ,aAAa,OAAO;AAAA,IAC5B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,yBAAyB,aAAqB;AAChE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,yBAAyB,QAAQ,IAAI,WAAW;AAAA,IACrE,QAAQ,aAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEsB,eAAA,sBAAsB,IAAY,cAAsB;AAC1E,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,iBAAiB,SAC9B,QAAQ,QAAQ,GAAG,SAAA,CAAU,EAC7B,QAAQ,kBAAkB,YAAY;AAAA,IAC3C,QAAQ,aAAa,iBAAiB;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,oBAAoB,MAAM;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,oBAAoB;AAAA,IACtC,QAAQ,aAAa,oBAAoB;AAAA,IACzC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0BAA0B,MAAM;AAClD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,uBAAuB;AAAA,IACzC,QAAQ,aAAa,uBAAuB;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -7,6 +7,7 @@ const nfe = {
|
|
|
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
|
+
desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export default nfe
|
|
@@ -48,4 +48,12 @@ export async function addLancamentoManual(body) {
|
|
|
48
48
|
method: NFE_ENDPOINT.addLancamentoManual.httpMethod,
|
|
49
49
|
data: body
|
|
50
50
|
})
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function apiDesvincularOrdemCompra(body) {
|
|
54
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
55
|
+
url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,
|
|
56
|
+
method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,
|
|
57
|
+
data: body
|
|
58
|
+
})
|
|
51
59
|
}
|
package/package.json
CHANGED