@orbe-agro/client-core 5.6.281 → 5.6.282
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/@ecme/components/template/Footer.js +1 -1
- package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts +1 -1
- package/dist/@types/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.d.ts.map +1 -1
- package/dist/@types/base/services/modules/HubFiscal/NfeService.d.ts +1 -1
- package/dist/@types/base/services/modules/HubFiscal/NfeService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/SapService/Sap/ExecuteSapApiService.d.ts +1 -0
- package/dist/@types/base/services/modules/SapService/Sap/ExecuteSapApiService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js +1 -1
- package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js.map +1 -1
- package/dist/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.js +2 -1
- package/dist/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.js.map +1 -1
- package/dist/base/services/modules/HubFiscal/NfeService.js +3 -3
- package/dist/base/services/modules/HubFiscal/NfeService.js.map +1 -1
- package/dist/base/services/modules/SapService/Sap/ExecuteSapApiService.js +9 -1
- package/dist/base/services/modules/SapService/Sap/ExecuteSapApiService.js.map +1 -1
- package/lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts +1 -1
- package/lib/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.ts +1 -0
- package/lib/base/services/modules/HubFiscal/NfeService.ts +2 -2
- package/lib/base/services/modules/SapService/Sap/ExecuteSapApiService.ts +8 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import Container from "../shared/Container.js";
|
|
|
3
3
|
import classNames from "../../utils/classNames.js";
|
|
4
4
|
import { APP_NAME } from "../../constants/app.constant.js";
|
|
5
5
|
import { PAGE_CONTAINER_GUTTER_X } from "../../constants/theme.constant.js";
|
|
6
|
-
const version = true ? "5.6.
|
|
6
|
+
const version = true ? "5.6.282" : "0.0.0";
|
|
7
7
|
const FooterContent = () => {
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-auto items-center justify-between", children: [
|
|
9
9
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeSapApi.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"executeSapApi.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,2BAA2B;;;;CAIhC,CAAA;AAED,eAAe,2BAA2B,CAAA"}
|
|
@@ -3,7 +3,7 @@ export declare function apiGetPdf(id: any): Promise<unknown>;
|
|
|
3
3
|
export declare function apiAddObservacao(body: any): Promise<unknown>;
|
|
4
4
|
export declare function apiGetEventos(body: any): Promise<unknown>;
|
|
5
5
|
export declare function apiGetEventosNfe(chaveAcesso: any): Promise<unknown>;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function apiAddEvento(body: any): Promise<unknown>;
|
|
7
7
|
export declare function apiMontaRelatorioNfeRecebidas(fileName: any, body: any): Promise<unknown>;
|
|
8
8
|
export declare function apiDownloadRelatorioNfeRecebidas(fileName: any): Promise<unknown>;
|
|
9
9
|
//# sourceMappingURL=NfeService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"names":[],"mappings":"AAGA,wBAAsB,UAAU,CAAC,IAAI,KAAA,oBAMpC;AAED,wBAAsB,SAAS,CAAC,EAAE,KAAA,oBAKjC;AAED,wBAAsB,gBAAgB,CAAC,IAAI,KAAA,oBAM1C;AAED,wBAAsB,aAAa,CAAC,IAAI,KAAA,oBAMvC;AAED,wBAAsB,gBAAgB,CAAC,WAAW,KAAA,oBAKjD;AAED,wBAAsB,
|
|
1
|
+
{"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"names":[],"mappings":"AAGA,wBAAsB,UAAU,CAAC,IAAI,KAAA,oBAMpC;AAED,wBAAsB,SAAS,CAAC,EAAE,KAAA,oBAKjC;AAED,wBAAsB,gBAAgB,CAAC,IAAI,KAAA,oBAM1C;AAED,wBAAsB,aAAa,CAAC,IAAI,KAAA,oBAMvC;AAED,wBAAsB,gBAAgB,CAAC,WAAW,KAAA,oBAKjD;AAED,wBAAsB,YAAY,CAAC,IAAI,KAAA,oBAMtC;AAED,wBAAsB,6BAA6B,CAAC,QAAQ,KAAA,EAAE,IAAI,KAAA,oBAMjE;AAED,wBAAsB,gCAAgC,CAAC,QAAQ,KAAA,oBAM9D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function apiBuscaSaldoFisicoDisponivel(body: any): Promise<unknown>;
|
|
2
2
|
export declare function apiFindNfe(body: any): Promise<unknown>;
|
|
3
|
+
export declare function apiRegistraNfeEventoCartaCorrecao(body: any): Promise<unknown>;
|
|
3
4
|
//# sourceMappingURL=ExecuteSapApiService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteSapApiService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/SapService/Sap/ExecuteSapApiService.ts"],"names":[],"mappings":"AAGA,wBAAsB,6BAA6B,CAAC,IAAI,KAAA,oBAMvD;AAED,wBAAsB,UAAU,CAAC,IAAI,KAAA,oBAMpC"}
|
|
1
|
+
{"version":3,"file":"ExecuteSapApiService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/SapService/Sap/ExecuteSapApiService.ts"],"names":[],"mappings":"AAGA,wBAAsB,6BAA6B,CAAC,IAAI,KAAA,oBAMvD;AAED,wBAAsB,UAAU,CAAC,IAAI,KAAA,oBAMpC;AAED,wBAAsB,iCAAiC,CAAC,IAAI,KAAA,oBAM3D"}
|
|
@@ -5,7 +5,7 @@ const nfeEndpointConfig = {
|
|
|
5
5
|
addObservacao: `${NFE_API_PATH}/observacao`,
|
|
6
6
|
findEventos: `${NFE_API_PATH}/eventos`,
|
|
7
7
|
findEventosNfe: `${NFE_API_PATH}/eventos/`,
|
|
8
|
-
|
|
8
|
+
addEvento: `${NFE_API_PATH}/evento`,
|
|
9
9
|
montaRelatorioNfeRecebidas: `${NFE_API_PATH}/relatorio-nfe-recebidas/`,
|
|
10
10
|
downloadRelatorioNfeRecebidas: (fileName) => `${NFE_API_PATH}/relatorio-nfe-recebidas/${fileName}/download`
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfe.endpoint.config.js","sources":["../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"sourcesContent":["const NFE_API_PATH = '/hub-fiscal/api/nfe'\n\nconst nfeEndpointConfig = {\n findAll: `${NFE_API_PATH}/find`,\n getPdf: `${NFE_API_PATH}/pdf/`,\n addObservacao: `${NFE_API_PATH}/observacao`,\n findEventos: `${NFE_API_PATH}/eventos`, \n findEventosNfe: `${NFE_API_PATH}/eventos/`, \n
|
|
1
|
+
{"version":3,"file":"nfe.endpoint.config.js","sources":["../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"sourcesContent":["const NFE_API_PATH = '/hub-fiscal/api/nfe'\n\nconst nfeEndpointConfig = {\n findAll: `${NFE_API_PATH}/find`,\n getPdf: `${NFE_API_PATH}/pdf/`,\n addObservacao: `${NFE_API_PATH}/observacao`,\n findEventos: `${NFE_API_PATH}/eventos`, \n findEventosNfe: `${NFE_API_PATH}/eventos/`, \n addEvento: `${NFE_API_PATH}/evento`,\n montaRelatorioNfeRecebidas: `${NFE_API_PATH}/relatorio-nfe-recebidas/`,\n downloadRelatorioNfeRecebidas: (fileName) => `${NFE_API_PATH}/relatorio-nfe-recebidas/${fileName}/download`,\n}\n\nexport default nfeEndpointConfig\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,oBAAoB;AAAA,EACtB,SAAS,GAAG,YAAY;AAAA,EACxB,QAAQ,GAAG,YAAY;AAAA,EACvB,eAAe,GAAG,YAAY;AAAA,EAC9B,aAAa,GAAG,YAAY;AAAA,EAC5B,gBAAgB,GAAG,YAAY;AAAA,EAC/B,WAAW,GAAG,YAAY;AAAA,EAC1B,4BAA4B,GAAG,YAAY;AAAA,EAC3C,+BAA+B,CAAC,aAAa,GAAG,YAAY,4BAA4B,QAAQ;AACpG;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const EXECUTE_SAP_API_PATH = "/sap/api/sap/execute-sap-api";
|
|
2
2
|
const executeSapApiEndpointConfig = {
|
|
3
3
|
buscaSaldoFisicoDisponivel: `${EXECUTE_SAP_API_PATH}/busca-saldo-fisico-disponivel`,
|
|
4
|
-
findNfe: `${EXECUTE_SAP_API_PATH}/find-nfe
|
|
4
|
+
findNfe: `${EXECUTE_SAP_API_PATH}/find-nfe`,
|
|
5
|
+
registraNfeEventoCartaCorrecao: `${EXECUTE_SAP_API_PATH}/registra-nfe-evento-carta-correcao`
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
7
8
|
executeSapApiEndpointConfig as default
|
package/dist/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeSapApi.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.ts"],"sourcesContent":["const EXECUTE_SAP_API_PATH = '/sap/api/sap/execute-sap-api'\n\nconst executeSapApiEndpointConfig = {\n buscaSaldoFisicoDisponivel: `${EXECUTE_SAP_API_PATH}/busca-saldo-fisico-disponivel`,\n findNfe: `${EXECUTE_SAP_API_PATH}/find-nfe`,\n}\n\nexport default executeSapApiEndpointConfig"],"names":[],"mappings":"AAAA,MAAM,uBAAuB;AAE7B,MAAM,8BAA8B;AAAA,EAChC,4BAA4B,GAAG,oBAAoB;AAAA,EACnD,SAAS,GAAG,oBAAoB;
|
|
1
|
+
{"version":3,"file":"executeSapApi.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config.ts"],"sourcesContent":["const EXECUTE_SAP_API_PATH = '/sap/api/sap/execute-sap-api'\n\nconst executeSapApiEndpointConfig = {\n buscaSaldoFisicoDisponivel: `${EXECUTE_SAP_API_PATH}/busca-saldo-fisico-disponivel`,\n findNfe: `${EXECUTE_SAP_API_PATH}/find-nfe`,\n registraNfeEventoCartaCorrecao: `${EXECUTE_SAP_API_PATH}/registra-nfe-evento-carta-correcao`,\n}\n\nexport default executeSapApiEndpointConfig"],"names":[],"mappings":"AAAA,MAAM,uBAAuB;AAE7B,MAAM,8BAA8B;AAAA,EAChC,4BAA4B,GAAG,oBAAoB;AAAA,EACnD,SAAS,GAAG,oBAAoB;AAAA,EAChC,gCAAgC,GAAG,oBAAoB;AAC3D;"}
|
|
@@ -33,9 +33,9 @@ async function apiGetEventosNfe(chaveAcesso) {
|
|
|
33
33
|
method: "get"
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
async function
|
|
36
|
+
async function apiAddEvento(body) {
|
|
37
37
|
return ApiService.fetchDataWithAxios({
|
|
38
|
-
url: nfeEndpointConfig.
|
|
38
|
+
url: nfeEndpointConfig.addEvento,
|
|
39
39
|
method: "post",
|
|
40
40
|
data: body
|
|
41
41
|
});
|
|
@@ -55,7 +55,7 @@ async function apiDownloadRelatorioNfeRecebidas(fileName) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
apiAddEvento,
|
|
59
59
|
apiAddObservacao,
|
|
60
60
|
apiDownloadRelatorioNfeRecebidas,
|
|
61
61
|
apiGetEventos,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NfeService.js","sources":["../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"sourcesContent":["import nfeEndpointConfig from '@base/configs/endpoints.config/HubFiscal/nfe.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetNfes(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetPdf(id) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.getPdf + id,\n method: 'get',\n })\n}\n\nexport async function apiAddObservacao(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.addObservacao,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetEventos(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findEventos,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetEventosNfe(chaveAcesso) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findEventosNfe + chaveAcesso,\n method: 'get',\n })\n}\n\nexport async function
|
|
1
|
+
{"version":3,"file":"NfeService.js","sources":["../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"sourcesContent":["import nfeEndpointConfig from '@base/configs/endpoints.config/HubFiscal/nfe.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetNfes(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetPdf(id) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.getPdf + id,\n method: 'get',\n })\n}\n\nexport async function apiAddObservacao(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.addObservacao,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetEventos(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findEventos,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetEventosNfe(chaveAcesso) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findEventosNfe + chaveAcesso,\n method: 'get',\n })\n}\n\nexport async function apiAddEvento(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.addEvento,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiMontaRelatorioNfeRecebidas(fileName, body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.montaRelatorioNfeRecebidas + fileName,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiDownloadRelatorioNfeRecebidas(fileName) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.downloadRelatorioNfeRecebidas(fileName),\n method: 'get',\n responseType: 'blob',\n })\n}"],"names":[],"mappings":";;AAGA,eAAsB,WAAW,MAAM;AACnC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,UAAU,IAAI;AAChC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,SAAS;AAAA,IAChC,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,iBAAiB,MAAM;AACzC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,MAAM;AACtC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,iBAAiB,aAAa;AAChD,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,iBAAiB;AAAA,IACxC,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,aAAa,MAAM;AACrC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,8BAA8B,UAAU,MAAM;AAChE,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,6BAA6B;AAAA,IACpD,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,iCAAiC,UAAU;AAC7D,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,8BAA8B,QAAQ;AAAA,IAC7D,QAAQ;AAAA,IACR,cAAc;AAAA,EAAA,CACjB;AACL;"}
|
|
@@ -14,8 +14,16 @@ async function apiFindNfe(body) {
|
|
|
14
14
|
data: body
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
+
async function apiRegistraNfeEventoCartaCorrecao(body) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: executeSapApiEndpointConfig.registraNfeEventoCartaCorrecao,
|
|
20
|
+
method: "post",
|
|
21
|
+
data: body
|
|
22
|
+
});
|
|
23
|
+
}
|
|
17
24
|
export {
|
|
18
25
|
apiBuscaSaldoFisicoDisponivel,
|
|
19
|
-
apiFindNfe
|
|
26
|
+
apiFindNfe,
|
|
27
|
+
apiRegistraNfeEventoCartaCorrecao
|
|
20
28
|
};
|
|
21
29
|
//# sourceMappingURL=ExecuteSapApiService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteSapApiService.js","sources":["../../../../../../lib/base/services/modules/SapService/Sap/ExecuteSapApiService.ts"],"sourcesContent":["import executeSapApiEndpointConfig from '@base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiBuscaSaldoFisicoDisponivel(body) {\n return ApiService.fetchDataWithAxios({\n url: executeSapApiEndpointConfig.buscaSaldoFisicoDisponivel,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindNfe(body) {\n return ApiService.fetchDataWithAxios({\n url: executeSapApiEndpointConfig.findNfe,\n method: 'post',\n data: body,\n })\n}"],"names":[],"mappings":";;AAGA,eAAsB,8BAA8B,MAAM;AACtD,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,4BAA4B;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,WAAW,MAAM;AACnC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,4BAA4B;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
1
|
+
{"version":3,"file":"ExecuteSapApiService.js","sources":["../../../../../../lib/base/services/modules/SapService/Sap/ExecuteSapApiService.ts"],"sourcesContent":["import executeSapApiEndpointConfig from '@base/configs/endpoints.config/SapService/Sap/executeSapApi.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiBuscaSaldoFisicoDisponivel(body) {\n return ApiService.fetchDataWithAxios({\n url: executeSapApiEndpointConfig.buscaSaldoFisicoDisponivel,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindNfe(body) {\n return ApiService.fetchDataWithAxios({\n url: executeSapApiEndpointConfig.findNfe,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiRegistraNfeEventoCartaCorrecao(body) {\n return ApiService.fetchDataWithAxios({\n url: executeSapApiEndpointConfig.registraNfeEventoCartaCorrecao,\n method: 'post',\n data: body,\n })\n}"],"names":[],"mappings":";;AAGA,eAAsB,8BAA8B,MAAM;AACtD,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,4BAA4B;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,WAAW,MAAM;AACnC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,4BAA4B;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,kCAAkC,MAAM;AAC1D,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,4BAA4B;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -6,7 +6,7 @@ const nfeEndpointConfig = {
|
|
|
6
6
|
addObservacao: `${NFE_API_PATH}/observacao`,
|
|
7
7
|
findEventos: `${NFE_API_PATH}/eventos`,
|
|
8
8
|
findEventosNfe: `${NFE_API_PATH}/eventos/`,
|
|
9
|
-
|
|
9
|
+
addEvento: `${NFE_API_PATH}/evento`,
|
|
10
10
|
montaRelatorioNfeRecebidas: `${NFE_API_PATH}/relatorio-nfe-recebidas/`,
|
|
11
11
|
downloadRelatorioNfeRecebidas: (fileName) => `${NFE_API_PATH}/relatorio-nfe-recebidas/${fileName}/download`,
|
|
12
12
|
}
|
|
@@ -3,6 +3,7 @@ const EXECUTE_SAP_API_PATH = '/sap/api/sap/execute-sap-api'
|
|
|
3
3
|
const executeSapApiEndpointConfig = {
|
|
4
4
|
buscaSaldoFisicoDisponivel: `${EXECUTE_SAP_API_PATH}/busca-saldo-fisico-disponivel`,
|
|
5
5
|
findNfe: `${EXECUTE_SAP_API_PATH}/find-nfe`,
|
|
6
|
+
registraNfeEventoCartaCorrecao: `${EXECUTE_SAP_API_PATH}/registra-nfe-evento-carta-correcao`,
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export default executeSapApiEndpointConfig
|
|
@@ -39,9 +39,9 @@ export async function apiGetEventosNfe(chaveAcesso) {
|
|
|
39
39
|
})
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export async function
|
|
42
|
+
export async function apiAddEvento(body) {
|
|
43
43
|
return ApiService.fetchDataWithAxios({
|
|
44
|
-
url: nfeEndpointConfig.
|
|
44
|
+
url: nfeEndpointConfig.addEvento,
|
|
45
45
|
method: 'post',
|
|
46
46
|
data: body,
|
|
47
47
|
})
|
|
@@ -15,4 +15,12 @@ export async function apiFindNfe(body) {
|
|
|
15
15
|
method: 'post',
|
|
16
16
|
data: body,
|
|
17
17
|
})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export async function apiRegistraNfeEventoCartaCorrecao(body) {
|
|
21
|
+
return ApiService.fetchDataWithAxios({
|
|
22
|
+
url: executeSapApiEndpointConfig.registraNfeEventoCartaCorrecao,
|
|
23
|
+
method: 'post',
|
|
24
|
+
data: body,
|
|
25
|
+
})
|
|
18
26
|
}
|
package/package.json
CHANGED